@fox-js/foxui-pc 4.0.1-121 → 4.0.1-122
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 +2179 -2090
- package/dist/index.umd.js +4 -4
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +78 -8
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),st=require("@fox-js/validator"),v=require("element-plus"),
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Jan 13 2025 15:19:55 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),st=require("@fox-js/validator"),v=require("element-plus"),Ee=require("@element-plus/icons-vue"),Be=require("@fox-js/i18n"),Bt=window,la=typeof window<"u";function oa(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ra(e){la?cancelAnimationFrame(e):clearTimeout(e)}const Ko=oa();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Ht(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ne(e),t=Ne(t),[e,t]=Wn(Ne(e),Ne(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Ko(e,t);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(bn(r)):Ne(r)}function bn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Ko(t,a)}function Ne(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Wn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ko(e,t){[e,t]=Wn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ve=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ve||{});function Vt(e,t=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=Vt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Yl(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Yl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Yl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!o&&n===ve.FLOOR||o&&n===ve.CEILING)return!1;if(n===ve.UP||o&&n===ve.FLOOR||!o&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Pn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(y+=parseInt(e[u[V]--])*parseInt(t[V]));y+=s,s=Math.floor(y/10),c=y%10+c,f--}return c=Ct(ia(c,a)),o==1&&(c="-"+c),c}function ia(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(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 Dn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ne(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ne(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ne(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ne(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Ht(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ne(Vt(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),Ht(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Gl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Ul(e),Ul(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,Pn(t,Vt(Dn(e,t),0,ve.FLOOR)));return o+n}function Ul(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Xl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Wn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ue{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ne(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ue.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ue.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ue.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ve.HALF_EVEN){if(t=ue.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Vt(t,o,n)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ue(Vt(this.value,t,o))}static floor(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.FLOOR)}static ceil(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.CEILING)}static add(t,o){return t=ue.validate(t),o=ue.validate(o),Ht(t,o)}add(t){return new ue(Ht(this.value,t.getValue()))}static subtract(t,o){return t=ue.validate(t),o=ue.validate(o),Fn(t,o)}subtract(t){return new ue(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ue.validate(t),o=ue.validate(o),Pn(t,o)}multiply(t){return new ue(Pn(this.value,t.getValue()))}static divide(t,o,n){return t=ue.validate(t),o=ue.validate(o),Dn(t,o,n)}divide(t,o){return new ue(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ue.validate(t),o=ue.validate(o),Gl(t,o)}modulus(t){return new ue(Gl(this.value,t.getValue()))}static compareTo(t,o){return t=ue.validate(t),o=ue.validate(o),Xl(t,o)}compareTo(t){return Xl(this.value,t.getValue())}static negate(t){return t=ue.validate(t),Rn(t)}negate(){return new ue(Rn(this.value))}}function Wo(e,t){return ue.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return ue.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,ue.compareTo(e,t)}function Yo(e){return ue.negate(e)}function Zt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",y=s.split("").reverse();for(let V=0;V<y.length;V++)d+=y[V]+((V+1)%n==0&&V+1!=y.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function Go(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Gn=Ho,sa=Array.isArray,ua=e=>Jt(e)==="[object Map]",ca=e=>Jt(e)==="[object Set]",fa=e=>e instanceof Date,Ln=e=>typeof e=="function",Uo=e=>typeof e=="string",da=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",Xo=e=>Xe(e)&&Ln(e.then)&&Ln(e.catch),Zo=Object.prototype.toString,Jt=e=>Zo.call(e),Mn=e=>Jt(e)==="[object Object]",Jo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ha(e){return e.__esModule||Jo&&e[Symbol.toStringTag]==="Module"}const ma=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=ft(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)ft(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=ma?Promise.resolve():null;function ga(e,...t){xn!==null?t&&t.length>0?xn.then(()=>{e(t)}):xn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function xe(e){return typeof e=="number"?e:Number(e)}const pa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):pa[o]||"object"}function Qo(e){return e&&typeof e=="object"&&"setInterval"in e}function Qt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function er(e){let t=!!e&&"length"in e&&e.length,o=Kt(e);return o==="function"||Qo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function tr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function va(e,t=[]){let o=t;return e!=null&&(er(Object(e))?tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ue(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Kt(e),n=Kt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Ue(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Ue(a,i))return!1}return!0}return!1}const dt=typeof window<"u";function Un(e){return e==null}function nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lr(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function or(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function rr(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Zl(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ya(e,t=!0,o=!0){t?e=Zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ue(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ue(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ar(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ie(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const xa=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ye=Symbol.for("BroadcastKey");class Xn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):nr(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function en(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Sa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ut=e=>e.default??e;class Ta{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?kt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let It=new Ta;function Ca(e){It=e}function $a(e){It?Object.assign(It,e):It=e}function Na(e,t){ut(st).setValidator(e,t)}function Ea(e){ut(st).deleteValidator(e)}let ir=["blur","clear"];function ka(e){ir=e}function sr(){return ir}let ur=["focus","change","setValue"];function Ia(e){ur=e}function cr(){return ur}function Va(e){ut(st).messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ze=Symbol("ValidateSchemaKey");class fr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ut(st).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ut(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(st).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ut(st),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function tn(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new fr(t,o,e)}const Wt=Symbol.for("EventEmitterKey");class dr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Ot(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function hr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=Ot((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Pa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function nn(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ae=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class ln{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Da=new ln;function pt(){return Da}function Ze(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Sn=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=pt());const s=e||t.prop||t.name;let u=new ln(s);u.parent=i;const f=V=>{a[Sn]||y(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Sn]??null,y=V=>{const g={};ft(!0,g,l.toRaw(V)),a[Sn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&y(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const V=l.inject(ye,null),g=en(a,V,s,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(S,b,...$)=>Reflect.apply(g.emit,g,[S,b,...$]);const h=l.inject(ze,null),m=tn(a,h,{componentName:""});u.validateSchema=m,a[ze]=m,l.provide(ze,m),a[mt]=new Map,a.validate=(S=!0)=>{const b=[];let $=null;const j={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;$={name:M=>M?L.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(j,L),Array.isArray(L.include)&&L.include.length>0){const M=L.include;$={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const M=L.exclude;$={name:O=>O?M.indexOf(O)===-1:!1}}else $={name:"*"}}if($){const L=g?.emitToChildren($,"validate",j);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let M=[];return L.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(M=[...M,...O.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(S).forEach(L=>{let M=String(L);const O={componentName:"",fieldName:M,pureDataValidate:!0};if(u){const R=pr(u,M,O,g,m);a[mt].set(M,R);const N=S[M];N&&R.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),L={name:M=>j.includes(M)};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const $=S;b={name:j=>j?$.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const $=S;if(Array.isArray($.include)&&$.include.length>0){const j=$.include;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const j=$.exclude;b={name:L=>L?j.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=c();if(!b)return;const $={};if(ft(!0,$,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=$[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=$[L]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys($).forEach(L=>{j.includes(L)||(b[L]=$[L])})}else Object.assign(b,$);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?f(S):g?.emitToChildren({name:b},"setModelValue",S)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function mr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=pt());const i=e||t.prop||t.name;let s=new ln(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function gr(e,t,o){const r=Ze(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Ce(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ye,null);let s=en(r,i,a,o);r[ye]=s,l.provide(ye,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=tn(r,u,e);r[ze]=f,l.provide(ze,f),gr(r,f,a),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,$=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;$===!0&&e.disabled===!0||j===!0&&e.readonly===!0||L===!0&&Qt(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=f?.validate();h.push(b)}if(m){let b=null;const $={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign($,j),Array.isArray(j.include)&&j.include.length>0){const L=j.include;b={name:M=>M?L.indexOf(M)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const L=j.exclude;b={name:M=>M?L.indexOf(M)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",$);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&($=[...$,...j.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>f?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&f?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new dr(r);r[Wt]=c;const d=Ot((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sr()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cr()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[ye]=void 0,l.provide(ye,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Wt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(g,...h)=>{c&&Reflect.apply(c.emit,c,[g,...h])},onEvent:(g,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(g,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function pr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=tn({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,y=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),V=!0,y=g.deep??!1}else typeof c=="boolean"&&(y=c),V=!0;if(V&&u){const g=u.validate();d.push(g)}if(y){let g=null;const h={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const m=c;g={name:S=>S?m.indexOf(S)!==-1:!1}}else if(c!=null&&typeof c=="object"){const m=c;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&f){const m=f.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=en(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function vr(){let t=l.getCurrentInstance()?.proxy,o=new dr(t);return t[Wt]=o,l.onUnmounted(()=>{o?.destroy(),t[Wt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ee=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(dt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function _n(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function yr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;_n(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(rt);d&&(n.height=Yt(e,d),n.width=Gt(e,d),l.watch([()=>Yt(e,d),()=>Gt(e,d)],([V,g])=>{c.height=V,c.width=g}));const y=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,g,h=-1,m=-1,S=0,b=0])=>{_n(c,g,t,y,h,m,S,b)}),e.set(rt,c),c}function on(e){return e.get(rt)}function Pt(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Pt(e,t),n=Dt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Fa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ra(e){return!!e.getForParent(rt)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Tn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=Ze();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Tn(u,n))return u}const i=e.value;return Tn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Tn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return se(o)})}function Re(e){return De(e,"disabled",0,function(o){return se(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const br=new Map,Ut=new Map;let qn=null;function Aa(e){qn=e}function wr(e,t,o){if(o){let n=Ut.get(o);n||(n=new Map,Ut.set(o,n)),n.set(e,t)}else br.set(e,t)}function He(e,t,o){!o&&qn&&(o=qn(e)??void 0);let n=null;if(o){let r=Ut.get(o);r&&(n=r.get(t))}return n||(n=br.get(t)),n}function La(e,t){for(let o in e){const n=e[o];wr(o,n,t)}}function Ma(e){Ut.delete(e)}function Ba(){return{top:0,left:0,bottom:0,right:0}}function _a(e=0,t=0){if(dt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function qa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class ja{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=qa(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ft({},Ba(),t.safeAreaInset),i=_a(n,r),s=ft({},i.pageLayout,t.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Aa(t)}setAPI(t,o,n){wr(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){La(t,o)}clearScopeAPI(t){Ma(t)}getRootDomain(){return pt()}}const za=[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],Ha=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ka=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);za.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Ha.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Se={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},xr={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}},Sr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Tr=[];for(const e in Sr)Tr.push(e);const Wa=Symbol.for("InnerPageScopeKey"),Ya={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}},Ga=(e,t)=>({inheritAttrs:!0,props:{...Se,...xr,...Ya},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Wa,!1);if(r){const c=yr(r,o);$e({getPageContentHeight:()=>Yt(r,c),getPageContentWidth:()=>Gt(r,c),getPageHeaderHeight:()=>Pt(r,c),getPageFooterHeight:()=>Dt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[y,V])=>{if(c&&y){const g=l.toRaw(y),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h)}if(d&&V){const g=l.toRaw(V),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ua,create:Xa,scope:Rh}=ie("page"),Jn=Xa(Ga(Ua));function rn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Qn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Za=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=Ze(),s=i?on(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(E,x),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(x.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const x=Ke(r.padding);Object.assign(E,x)}return E}),V=l.ref(null),g=()=>{if(s&&V.value&&!Qt(V.value)){if(!n){const E=rn(V.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(nn(g,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function j(){a.emit("click-right")}function L(){a.emit("click-right-text")}const M=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:L},[r.rightText]);E.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},R=()=>{if(!r.titleShow)return null;const E=[],x=a.slots.default?a.slots.default():null;if(x)E.push(x);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],x=a.slots.bottom?a.slots.bottom():null;return x&&E.push(x),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],C=M();C&&q.push(C);const k=R();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:c.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const x={class:f.value,style:m.value,ref:V};return l.h("view",x,E)}}}),{componentName:Ja,create:Qa,scope:ei}=ie("header-bar"),el=Qa(Za(Ja,ei,ke.ArrowLeft));function ti(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=Ze(),i=a?on(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Ke(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(i&&c.value&&!Qt(c.value)){if(!o){const g=rn(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(nn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const V=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=Ee(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(g.paddingTop=Ee(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(g.paddingLeft=Ee(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(g.paddingRight=Ee(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(g.paddingBottom=Ee(f.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,g)}}}}const{componentName:ni,create:li,scope:Ah}=ie("footer-bar"),tl=li(ti(ni));function oi(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ze(),r=l.computed(()=>({[e]:!0})),a=n?on(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=Ke(o.padding);Object.assign(a.contentPadding,V)}const c=Pt(n,a),d=Dt(n,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,f.height=y,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Qn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Pt(n),()=>Dt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ri,create:ai,scope:Lh}=ie("content"),ii=ai(oi(ri));function si(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=_e(ii,[["render",si]]),bt="GroupStateKey",Cr=Symbol.for("GroupScopeKey");function an(){return l.inject(Cr,!1)}function sn(e=!0){l.provide(Cr,e)}function ui(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Un(r)||(e[n]=r)})}function ci(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ui(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function Cn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(bt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=de(a),d=de(i);s||(s=f.type??"grid");const y=()=>{const V=t===""||t===-1,g=de(t);let h=xe(o);const m=de(n);if(!V){let $=(g-(h-1)*m)/h;for(;d!==-1&&$>d;)h++,$=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&$<c;)h--,$=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&y()},50)}}function un(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.layout}function cn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.order}function Jl(e,t=1){if(t==="stretch")return-1;const o=xe(t);return o===-1?100:100*o/e}function fn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Jl(t.column,o),i>0&&(a.width=`${i}%`);const s=Jl(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function dn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=xe(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=xe(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const $r=Symbol("RollingStateKey");function fi(e){l.provide($r,e)}function di(){return l.inject($r,null)}function jn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function hi(e){let t=jn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=jn(o),document.body.removeChild(o)}return t}function mi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const gi={...Se,...xr,...Sr};function pi(e,t,o){return{props:gi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,Tr),i=ci(a,{type:n.type}),s=an();sn(!0);const u=n.rollingDisplay?di():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?un(a,!0).value:null),y=l.getCurrentInstance(),V=(z,Z=!1)=>{const te=y?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[te,T])=>{if(z&&te){const K=l.toRaw(te),Q=l.toRaw(z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),V(Q)}if(Z&&T){const K=l.toRaw(T),Q=l.toRaw(Z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),V(Q,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Z=s?cn(a,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const te=dn(Z,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=fn(Z,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ee(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const te=mi(R.value,i.layout.value.column,i.layout.value.gutter);Z=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),j=l.computed(()=>s||c.value?!0:se(n.isWrap)),L=[],M=z=>{L.push(z)},O=()=>{let z=L.length;L.splice(0,z)},R=l.ref(-1),N=z=>{const Z=Qn(z).width;Z>0&&Z!==R.value&&(R.value=Z)};Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,$,b],([z,Z,te])=>{i.order.index=0,Cn(a,z,Z,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),C=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ee(n.height)||""),Y=l.ref(!1),W=l.ref(""),X=l.ref(!1);let U=-1;const ee=(z,Z=!0)=>{const te=C.value;if(te&&Y.value!==z){if(U=U===-1?hi(te):U,X.value=!0,Z)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",X.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${U}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${U}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else X.value=!1,W.value=`${U}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const re=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!Y.value,ee(z)};$e({toggleCollapse:w,doLayout:()=>{L[0]&&(N(L[0]),Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let P=null,p=!0;const H=z=>{if(n.rules){const Z=l.toRaw(n.rules);V(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);V(Z,!0)}if(dt&&(z&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];N(Z),window.ResizeObserver&&(P=new window.ResizeObserver(()=>{N(Z)}),P.observe(Z))}},_=()=>{P?.disconnect(),P=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),c.value&&u){let z=null,Z=u.initialHeight;u.observe(C.value,te=>{if(te!==f.value)if(te)f.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,f.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),f.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=jn(C.value);T<=0?W.value=Z:(W.value=`${T}px`,Z=W.value)}p||_()}})}}),l.onUnmounted(()=>{P?.disconnect(),u&&u.unobserve(C.value)});const A=(z="right")=>{const Z=[];if(E.value){const K={class:x.value},Q=l.h("span",K,[E.value]);Z.push(Q)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Z.push(T),Z.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},G=(z,Z,te,T)=>{const K={...m.value};return Z===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:M,key:`${Z}`,class:K,style:S.value},z)};return()=>{if(c.value&&f.value!==!0){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[])}i.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},Q=l.h("div",K,[r.slots.header()]);z.push(Q)}else{const K=[],Q=n.collapsePosition==="left";if(Q&&n.showCollapse){const le=A("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!Q&&n.showCollapse){const le=A("right");le&&K.push(le)}if(K.length>0){const le={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},fe=l.h("div",le,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=G(te,Z++,0,te.length);z.push(K)}else if(T==="flow"){const K=G(te,Z++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const Q=te[K],le=G([Q],Z++,K,te.length);z.push(le)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[z])}else return z}}}}const{componentName:vi,create:yi,scope:bi}=ie("group"),wi=(e,t)=>(e=e??ke.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),ll=yi(pi(vi,bi,wi));function xi(e){return e===window}const Si=/matrix\((.+)\)/,Nr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(xi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=Si.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ti{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Ci{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Ti,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Ql=new Ci,Er={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:$i,create:Ni}=ie("price"),Ei=Ni({props:{...Er},setup(e){const t=l.computed(()=>({[$i]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Lt(e.price)==0?"":Zt(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),ki=["innerHTML"],Ii=["innerHTML"];function Vi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ki)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ii)):l.createCommentVNode("",!0)],2)}const hn=_e(Ei,[["render",Vi]]),{componentName:$n,create:Oi}=ie("hint-text"),Pi=Oi({components:{Price:hn},props:{...Er,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,q,C,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,U=x.split("-");let ee=[];U[0]==="top"?ee=["top","bottom","right","left"]:U[0]==="bottom"?ee=["bottom","top","right","left"]:U[0]==="left"?ee=["left","top","bottom","right"]:U[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<ee.length;w++){const F=ee[w];if(I[0]=F,U[1]&&(I[1]=U[1]),F==="top"){const P=q.y-Y-e.arrowSize-e.offset;if(P>=0){re.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="bottom"){const P=q.y+k+e.arrowSize+e.offset;if(P+Y<=X){re.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="left"){const P=q.x-D-e.arrowSize-e.offset;if(P>=0){re.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}else if(F==="right"){const P=q.x+C+e.arrowSize+e.offset;if(P+D<=W){re.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},c=(x,q,C=10)=>{if(!dt||q===!1||!x)return;n.value=Nr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:W}=f(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0},d=l.ref(0),y=Ot(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const g=l.computed(()=>V.value&&h.value),h=l.ref(!0),m=Ot(x=>{const q=x[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Ql.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeMount(()=>{Ql.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const x={[$n]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),$=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),j=l.computed(()=>{const x=[`${$n}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),L=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),M=l.computed(()=>({[`${$n}__arrow`]:!0})),O=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:b,styles:$,textClasses:j,textStyles:L,arrowClasses:M,arrowStyles:O,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),Di=["innerHTML"];function Fi(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Di))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=_e(Pi,[["render",Fi]]);class kr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const zn={},Ri=new kr,vt=new Map,Xt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}vt.clear()}},Ai=e=>{e.unmount=Xt;const t=document.getElementById(e.id);if(t){const o=vt.get(e.id);o?e={...zn,...o,...e}:e={...zn,...e},e.transition=!1;const n=l.createVNode(Mt,e);return l.render(n,t),e.id}},Li=e=>{e.unmount=Xt;let t=e.id??`hinttext_${Ri.get()}`;e={...zn,...e},e.id=t,vt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Mt,e);return l.render(n,o),document.body.appendChild(o),t},Mi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,t,o={},n=!0){Mi(t);const r=o.id;return r&&vt.has(r)?Ai({...o,message:t,reference:e}):(n&&Xt(),Li({...o,message:t,reference:e}))},hide(e){Xt(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Bi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Se,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ce({componentName:e,validate:!1},i);const s=Ze(),u=an();sn(!1);const f=l.computed(()=>u&&s?un(s,!1).value:null),c=e,d=l.ref(null),y=l.computed(()=>{const T={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:se(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),V=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ee(r.width));else{const K=u&&s?cn(s,!1):null;if(f.value&&K){if(f.value.type==="grid"){const Q=dn(K,f.value,r.span,r.offset);Object.assign(T,Q)}else if(f.value.type==="flow"){const Q=fn(K,f.value,r.span,r.offset,r.width);Object.assign(T,Q)}}}if(typeof V.value=="function"){const K=V.value(i);K&&Object.assign(T,K)}else if(V.value&&typeof V.value=="object"){const K=V.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${$.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),M=De(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),O=l.computed(()=>M&&M.value?{width:Ee(M.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){m.value=T},setErrorTip(T){x.errorTip=T},setErrorIcon(T){x.errorIcon=T},setWarnTip(T){x.warnTip=T},setWarnIcon(T){x.warnIcon=T},setInfoTip(T){x.infoTip=T},setInfoIcon(T){x.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){V.value=T}});const q=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),k=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),Y=l.computed(()=>r.errorTip||x.errorTip),W=l.computed(()=>r.errorIcon||x.errorIcon),X=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),U=()=>X.value.length>0,ee=l.computed(()=>X.value==="error"?Y.value:X.value==="warn"?k.value:X.value==="info"?q.value:""),re=l.computed(()=>X.value==="error"?W.value:X.value==="warn"?D.value:X.value==="info"?C.value:null),I=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${X.value}`]:!0,[`${c}--animate`]:!0};return X.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),w=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":M&&M.value&&(T["padding-left"]=Ee(M.value)),T}),F=l.ref();let P="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,Q,le])=>{F.value&&(T&&!ge(K)?P?o.show(F.value,K,{...le,id:P,type:Q},!0):P=o.show(F.value,K,{...le,type:Q},!0):o.hide(P))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let Q of T)if(Q.intersectionRatio>0){K=!0,K&&a.emit("appear",Q);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{!p||!F.value||(p.unobserve(F.value),p=null)};l.watch(()=>se(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{se(r.appearListen)&&H()}),l.onUnmounted(_);const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,Q={class:R.value},le=l.h("div",Q,[K]);if(T.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();T.push(ce)}const fe={class:L.value,style:O.value};return l.h("div",fe,T)},A=()=>{const T=[];if(a.slots.prepend){const Q=a.slots.prepend();T.push(Q)}if(a.slots.default){const Q=a.slots.default();T.push(Q)}if(a.slots.append){const Q=a.slots.append();T.push(Q)}if(a.slots.fixedTip){const Q={class:[`${c}__fixed-tip`]},le=l.h("div",Q,[a.slots.fixedTip()]);T.push(le)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},G=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Z=()=>{if(!U())return null;const T=[],K=G();K&&T.push(K);const Q=z();Q&&T.push(Q);const le={class:I.value,style:w.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],Q=B();Q&&K.push(Q);const le=A();le&&K.push(le);const fe={class:j.value},ce=l.h("div",fe,K);T.push(ce);const pe=Z();pe&&T.push(pe);const qe=te();qe&&T.push(qe);const et={class:y.value,style:g.value,prop:r.prop};return l.h("div",et,T)}}}}const{componentName:_i,create:qi,scope:ji}=ie("item"),Te=qi(Bi(_i,ji,Pe,!1));function zi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Ze(),a=an();sn(!1);const i=l.computed(()=>a&&r?un(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?cn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=dn(d,i.value,o.span,o.offset);Object.assign(c,y)}else if(i.value.type==="flow"){const y=fn(d,i.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=Ee(o.width)),c;else o.width&&(c.width=Ee(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:Hi,create:Ki,scope:Mh}=ie("slot-item"),ol=Ki(zi(Hi));function Wi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ze(),s=an();sn(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=un(i,!1),d=cn(i,!1);if(c.value&&d)if(c.value.type==="grid"){const y=dn(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=fn(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=Ee(o.width))}else o.width&&(f.width=Ee(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Yi,create:Gi,scope:Bh}=ie("row-item"),rl=Gi(Wi(Yi)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},eo={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 Ui(e,t,o){return{props:{...Se,...Ve,...eo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let m=he(n,"hintText"),S=l.ref(!1);const b=C=>{let D=C.target.value;c.value=!0,ge(m.value)||(S.value=!0),s("focus",D,C)},$=C=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let D=C.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,C)},j=()=>{s("clear","")},L=l.ref(!1);let M=null;const O=()=>{n.showTooltip&&L.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{L.value=!0},150))},R=()=>{M&&(clearTimeout(M),L.value=!1,M=null)},N=l.computed(()=>L.value||S.value),E=l.computed(()=>L.value?d.value:m.value),x=l.computed(()=>Lt(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onChange:h,onInput:g,onFocus:b,onBlur:$,onMouseover:O,onMouseleave:R},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.default&&(X.fixedTip=r.slots.fixedTip);const ee={...Ie(n,eo),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Xi,create:Zi,scope:Ji}=ie("input-item"),al=Zi(Ui(Xi,Ji,Te));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Qi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let es=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ts(){const e=l.getCurrentInstance();return new es(e.proxy)}function Vr(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function Or(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Ir(e,i);if(Array.isArray(s)&&s.length>0){const u=Or(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ot(e,i)===a;else if(o==="item")u=Vr(e,i,a);else{let f=Ft(e,i);f==null&&(f=ot(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function ns(e){return{text:e,value:e}}const to={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 ls(e,t,o){return{props:{...Se,...Ve,...to},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(G=>ot(n,G)).join(" "):""),V=(A,G,z,Z=!0)=>{const te=Or(n,A,G,z);if(te===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const Q=te[K],le=d.value[K];if(!Vr(n,Q,le)){T=!1;break}}if(!T){d.value=te;let K=[],Q=[],le=[];te.forEach(qe=>{const et=Ft(n,qe),ht=ot(n,qe);K.push(et),le.push(ht),n.valueType==="text"?Q.push(ht):n.valueType==="item"?Q.push(qe):Q.push(et)});let fe,ce,pe;se(n.multiple)?(c.value=K,fe=l.toRaw(Q),ce=le,pe=l.toRaw(te)):(c.value=K[0]??"",fe=l.toRaw(Q[0]??""),ce=le[0]??"",pe=l.toRaw(te[0])),Z&&(s("update:modelValue",fe),s("change",fe,pe)),s("update:text",ce)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,A=>se(A)),b=ts(),$=async(A,G)=>{if(A){const z=await b.load("select",A,G);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>ns(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([A,G])=>{h.value=null,$(A,G)},{immediate:!S.value});let j=!1;const L=()=>{j||(j=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([A,G])=>{if(N()&&se(n.multiple)){Ue(G,c.value)||(c.value=G);return}V(G,n.valueType,m.value,!1),s("setValue",G)});let M=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(M=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.remoteMethod(A);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.filterMethod(A,g.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),x=e,q=l.computed(()=>({[x]:!0})),C=A=>{n.allowCreate||N()&&se(n.multiple)?(s("update:modelValue",A),s("change",A),s("update:text",A),c.value=A):V(A,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=A=>{let z=A.target.value;E.value=!0,ge(k.value)||(D.value=!0),s("focus",z,A)},W=A=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=A.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),P.value||s("blur",z,A)},X=()=>{s("clear","")},U=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&U.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{U.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),U.value=!1,ee=null)},w=l.computed(()=>U.value||D.value),F=l.computed(()=>U.value?y.value:k.value),P=l.ref(!1),p=A=>{P.value=A,s("visible-change",A),A||s("selected")},H=A=>{s("remove-tag",A)},_=(A,G)=>{const z=[];return A.forEach((Z,te)=>{const T=Ir(n,Z);if(Array.isArray(T)&&T.length>0){const K=_(T,G),Q=ot(n,Z),fe={key:`${Q}_${te}`,label:Q};z.push(l.h(v.ElOptionGroup,fe,{default:()=>K}))}else{const K=Ft(n,Z),Q=ot(n,Z),le=Qi(n,Z),ce={key:`${K}_${te}`,label:Q,disabled:le,value:K};if(typeof G=="function")z.push(l.h(v.ElOption,ce,{default:()=>G(Z)}));else if(n.optionType==="item"){const pe={class:{"fox-select-item__option-left":!0}},qe=l.h("span",pe,[K]),et={class:{"fox-select-item__option-right":!0}},ht=l.h("span",et,[Q]),tt=l.h("div",{class:{"fox-select-item__option":!0}},[qe,ht]);z.push(l.h(v.ElOption,ce,{default:()=>tt}))}else n.optionType==="value"?z.push(l.h(v.ElOption,ce,{default:()=>[K]})):z.push(l.h(v.ElOption,ce))}}),z},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const G={...Ye(r.attrs),ref:B,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:X,onChange:C,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof M=="function"&&(G["remote-method"]=M,G.loading=O.value),typeof R=="function"&&(G["filter-method"]=R,G.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Z=[],te=l.h(v.ElSelect,G,z);Z.push(te);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const Q={...Ie(n,to),hintText:F.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(Q["appear-listen"]=!0,Q.onAppear=L),l.h(o,Q,T)}}}}const{componentName:os,create:rs,scope:as}=ie("select-item"),il=rs(ls(os,as,Te));var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",y="quarter",V="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,b={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("_")},$=function(C,k,D){var Y=String(C);return!Y||Y.length>=k?C:""+Array(k+1-Y.length).join(D)+C},j={s:$,z:function(C){var k=-C.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+$(Y,2,"0")+":"+$(W,2,"0")},m:function C(k,D){if(k.date()<D.date())return-C(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),X=D-W<0,U=k.clone().add(Y+(X?-1:1),d);return+(-(Y+(D-W)/(X?W-U:U-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:V,w:c,d:f,D:g,h:u,m:s,s:i,ms:a,Q:y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},L="en",M={};M[L]=b;var O=function(C){return C instanceof x},R=function C(k,D,Y){var W;if(!k)return L;if(typeof k=="string"){var X=k.toLowerCase();M[X]&&(W=X),D&&(M[X]=D,W=X);var U=k.split("-");if(!W&&U.length>1)return C(U[0])}else{var ee=k.name;M[ee]=k,W=ee}return!Y&&W&&(L=W),W||!Y&&L},N=function(C,k){if(O(C))return C.clone();var D=typeof k=="object"?k:{};return D.date=C,D.args=arguments,new x(D)},E=j;E.l=R,E.i=O,E.w=function(C,k){return N(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function C(D){this.$L=R(D.locale,null,!0),this.parse(D)}var k=C.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,X=Y.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var U=W.match(m);if(U){var ee=U[2]-1||0,re=(U[7]||"0").substring(0,3);return X?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,X=!!E.u(Y)||Y,U=E.p(D),ee=function(_,B){var A=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return X?A:A.endOf(f)},re=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,w=this.$M,F=this.$D,P="set"+(this.$u?"UTC":"");switch(U){case V:return X?ee(1,0):ee(31,11);case d:return X?ee(1,w):ee(0,w+1);case c:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(X?F-H:F+(6-H),w);case f:case g:return re(P+"Hours",0);case u:return re(P+"Minutes",1);case s:return re(P+"Seconds",2);case i:return re(P+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,X=E.p(D),U="set"+(this.$u?"UTC":""),ee=(W={},W[f]=U+"Date",W[g]=U+"Date",W[d]=U+"Month",W[V]=U+"FullYear",W[u]=U+"Hours",W[s]=U+"Minutes",W[i]=U+"Seconds",W[a]=U+"Milliseconds",W)[X],re=X===f?this.$D+(Y-this.$W):Y;if(X===d||X===V){var I=this.clone().set(g,1);I.$d[ee](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,X=this;D=Number(D);var U=E.p(Y),ee=function(w){var F=N(X);return E.w(F.date(F.date()+Math.round(w*D)),X)};if(U===d)return this.set(d,this.$M+D);if(U===V)return this.set(V,this.$y+D);if(U===f)return ee(1);if(U===c)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[U]||1,I=this.$d.getTime()+D*re;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var X=D||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),ee=this.$H,re=this.$m,I=this.$M,w=W.weekdays,F=W.months,P=function(B,A,G,z){return B&&(B[A]||B(Y,X))||G[A].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,A,G){var z=B<12?"AM":"PM";return G?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:P(W.monthsShort,I,F,3),MMMM:P(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:P(W.weekdaysMin,this.$W,w,2),ddd:P(W.weekdaysShort,this.$W,w,3),dddd:w[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,re,!0),A:H(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:U};return X.replace(S,function(B,A){return A||_[B]||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var X,U=E.p(Y),ee=N(D),re=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,w=E.m(this,ee);return w=(X={},X[V]=w/12,X[d]=w,X[y]=w/3,X[c]=(I-re)/6048e5,X[f]=(I-re)/864e5,X[u]=I/r,X[s]=I/n,X[i]=I/o,X)[U]||I,W?w:E.a(w)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),X=R(D,Y,!0);return X&&(W.$L=X),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},C}(),q=x.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",g]].forEach(function(C){q[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),N.extend=function(C,k){return C.$i||(C(k,x,N),C.$i=!0),N},N.locale=R,N.isDayjs=O,N.unix=function(C){return N(1e3*C)},N.en=M[L],N.Ls=M,N.p={},N})})(Pr);var is=Pr.exports;const We=Qe(is);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(m){this[h]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},y=function(h,m){var S,b=s.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,m))>-1){S=$>12;break}}else S=h===(m?"pm":"PM");return S},V={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,x){var q=x&&x.toUpperCase();return E||S[x]||o[x]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,k,D){return k||D.slice(1)})})).match(n),$=b.length,j=0;j<$;j+=1){var L=b[j],M=V[L],O=M&&M[0],R=M&&M[1];b[j]=R?{regex:O,parser:R}:L.replace(/^\[|\]$/g,"")}return function(N){for(var E={},x=0,q=0;x<$;x+=1){var C=b[x];if(typeof C=="string")q+=C.length;else{var k=C.regex,D=C.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(X){var U=X.afternoon;if(U!==void 0){var ee=X.hours;U?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,$=b.parse;b.parse=function(j){var L=j.date,M=j.utc,O=j.args;this.$u=M;var R=O[1];if(typeof R=="string"){var N=O[2]===!0,E=O[3]===!0,x=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var U=g(W)(Y),ee=U.year,re=U.month,I=U.day,w=U.hours,F=U.minutes,P=U.seconds,p=U.milliseconds,H=U.zone,_=new Date,B=I||(ee||re?1:_.getDate()),A=ee||_.getFullYear(),G=0;ee&&!re||(G=re>0?re-1:_.getMonth());var z=w||0,Z=F||0,te=P||0,T=p||0;return H?new Date(Date.UTC(A,G,B,z,Z,te,T+60*H.offset*1e3)):X?new Date(Date.UTC(A,G,B,z,Z,te,T)):new Date(A,G,B,z,Z,te,T)}catch{return new Date("")}}(L,R,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&L!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var C=R.length,k=1;k<=C;k+=1){O[1]=R[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===C&&(this.$d=new Date(""))}else $.call(this,j)}}})})(Dr);var ss=Dr.exports;const us=Qe(ss);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="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 y}});return i.bind(this)(d)}}})})(Fr);var cs=Fr.exports;const fs=Qe(cs);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,V,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[V]),$=S||b.map(function(L){return L.slice(0,g)});if(!h)return $;var j=m.weekStart;return $.map(function(L,M){return $[(M+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,y){return d.formats[y]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Rr);var ds=Rr.exports;const hs=Qe(ds);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var y=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(y,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Ar);var ms=Ar.exports;const gs=Qe(ms);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Lr);var ps=Lr.exports;const vs=Qe(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Mr);var ys=Mr.exports;const bs=Qe(ys);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Br);var ws=Br.exports;const xs=Qe(ws);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(_r);var Ss=_r.exports;const Ts=Qe(Ss);We.extend(hs);We.extend(fs);We.extend(us);We.extend(gs);We.extend(vs);We.extend(bs);We.extend(xs);We.extend(Ts);const Le={format(e,t){return We(e).format(t)},parser(e,t){return We(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Le.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Le.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},no={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"}},lo={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 Cs(e,t,o){return{props:{...Se,...Ve,...no,...lo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const A=[...d.value];A[0]=B,d.value=A}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const j=B=>{let G=B.target.value;c.value=!0,ge(b.value)||($.value=!0),s("focus",G,B)},L=B=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let G=B.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,B)},M=()=>{s("clear","")},O=B=>{s("calendar-change",B)},R=(B,A,G)=>{s("panel-change",B,A,G)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Me.Near),x=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),C=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let k=null;const D=l.ref(se(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const A=[];Array.isArray(q.value)?(A[0]=d.value?d.value[0]??q.value[0]:null,A[1]=q.value[1]??q.value[0]):(A[0]=d.value?d.value[0]??q.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Le.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const A=[];A[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?A[1]=k[1]:A[1]=k,A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=se(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const A=[d.value[0]];Array.isArray(q.value)?A[1]=q.value[1]??q.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=q.value;s("update:modelValue",d.value)}else Ue(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&B()}),l.watch([()=>d.value],([A])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(A))try{let z=A[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Le.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray(C.value)&&C.value.findIndex(T=>z==T)!==-1)&&(G=!0)}catch(z){console.error(z)}D.value!==G&&(D.value=G)},{immediate:!0})}const X=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),U=l.ref(),ee=l.ref(),re=/^\d+$/,I=(B,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,A):re.test(B)&&B.length===n.flashFillThreshold,w=(B,A)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(B,A);else{const Z=n.flashFillFormat??"YYYYMMDD";G=Le.parser(B,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Le.format(G,z)},F=B=>B?B.endsWith("range"):!1,P=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=G,g(z)}else g(G)}},p=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=G,g(z)}else g(G)}},H=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",P),B[1]&&B[1].addEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",P)}},_=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",P),B[1]&&B[1].removeEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",P)}};return l.onMounted(H),l.onBeforeUnmount(_),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:V.value,type:h.value,ref:ee,class:S.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:M,onFocus:j,onBlur:L,onCalendarChange:O,onPanelChange:R,onVisibleChange:N},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const z=[],Z=l.h(v.ElDatePicker,A,G);z.push(Z);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ce={class:X.value},pe=l.h("div",ce,{default:()=>[le,fe]});z.push(pe)}if(!i.value&&!a.value){const le={label:x.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(v.ElCheckbox,le),ce=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ce}}const K={...Ie(n,no,lo),ref:U,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:$s,create:Ns,scope:Es}=ie("date-item"),sl=Ns(Cs($s,Es,Te)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ks(e,t,o){return{props:{...Se,...Ve,...oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let R=M.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",R,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let R=M.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,M)},$=()=>{s("clear","")},j=M=>{s("visible-change",M)},L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const O={...r.attrs,ref:L,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b,onVisibleChange:j},R={},N=[],E=l.h(v.ElTimePicker,O,R);N.push(E);const x={default:()=>N};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...Ie(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:Is,create:Vs,scope:Os}=ie("time-item"),ul=Vs(ks(Is,Os,Te)),ro={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...Se,...Ve,...ro},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let O=L.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",O,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,L)},$=()=>{s("clear","")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const M={...r.attrs,ref:j,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b},O={},R=[],N=l.h(v.ElTimeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...Ie(n,ro),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Ds,create:Fs,scope:Rs}=ie("time-select-item"),cl=Fs(Ps(Ds,Rs,Te));function ao(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function io(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wo(`${e}`,`${t}`);return ao(n)}else{let n=Yn(`${e}`,Yo(`${t}`),20);return ao(n)}}function As(e,t=-1,o=!1,n=3,r=","){return Zt(e,t,o,n,r)}function so(e,t,o,n,r=!0){if(e==="")return"";if(e=Go(e),t=xe(t),t==1)return e;if(n)e=io(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Yn(e,1,xe(o)));else{let a=-1*t;e=io(e,a)}return e}function uo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=An(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const co={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 Ls(e,t,o){return{props:{...Se,...Ve,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=he(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,k,D])=>{if(ge(C)){c.value="";return}const Y=so(C,k,D,!1);c.value!==Y&&(c.value=Y)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:y}=Be.useFoxI18n(t),V=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(c.value)?C=As(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=y(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let C=S.value;return ge(C)&&(C=n.errorTip??""),C}),$=l.ref(""),j=l.ref(!1),L=(C,k)=>{if(C=`${C}`,ge(C)){c.value="",f.value="",k.forEach(D=>{s(D,"")}),se(n.showTip)&&j.value&&(j.value=!1);return}if(C.length>=2){let D=C;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(c);return}}if(C!="-"){if(!lr(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&or(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&rr(C)>Number(n.decimalLength)){l.triggerRef(c);return}let D=uo(C,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&xe(n.min)>=0){l.triggerRef(c);return}$.value=C,se(n.showTip)&&(j.value=C.length>0),c.value=C,f.value=so(C,n.rates,n.precision,!0),k.forEach(D=>{s(D,f.value)})},M=C=>{L(C,["update:modelValue","input"])},O=C=>{L(C,["update:modelValue","change"])},R=C=>{if(u.value=!0,se(n.showTip)){let k=c.value;ge(k)&&(k=n.hintText),ge(k)||($.value=k,j.value=!0)}S.value="",s("focus",f.value,C)},N=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&j.value===!0&&(j.value=!1)},0),!ge(c.value)){let k=uo(c.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",f.value,C),s("blur",f.value,C)},E=()=>{s("clear","")},x=l.computed(()=>Lt(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:M,onChange:O,onFocus:R,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const ee={...Ie(n,co),errorTip:b.value,hintText:$.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Ms,create:Bs,scope:_s}=ie("money-item"),fl=Bs(Ls(Ms,_s,Te)),fo={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 qs(e,t,o){return{props:{...Se,...Ve,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__append`]:M.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=R=>{d.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)};let S=he(n,"hintText"),b=l.ref(!1);const $=R=>{let E=R.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",E,R)},j=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let E=R.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,R)},L=()=>{s("clear","")},M=l.computed(()=>Lt(n.unit)>0),O=l.ref();return $e({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ye(r.attrs),ref:O,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:$,onBlur:j},E={},x=[],q=l.h(v.ElInputNumber,N,E);x.push(q);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...Ie(n,fo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(M.value){const W={class:g.value},X=l.h("div",W,[n.unit]);C.append=()=>X}return l.h(o,D,C)}}}}const{componentName:js,create:zs,scope:Hs}=ie("input-number-item"),dl=zs(qs(js,Hs,Te));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ks(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ws=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=He(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}function Hn(e,t,o){const n=Ge(e,t),r=Ge(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function qr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=qr(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ge(e,f)===s;else if(o==="item")u=Hn(e,f,s);else{let c=ct(e,f);c==null&&(c=Ge(e,f)),u=c===s}if(u){r.push(f),a=Ks(e,f);break}}if(!u)break}}return r}function Gs(e){return{text:e,value:e}}const ho={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 Us(e,t,o){return{props:{...Se,...Ve,...ho},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(G=>Ge(n,G)).join(" "):Ge(n,B)).join(" "):""),V=(_,B,A,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===_)return;c.value=_;const T=l.toRaw(_);if(G){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const Q=[];K.forEach(le=>{const ce=(le.pathNodes??[]).map(pe=>pe.data);Q.push(ce)}),s("update:pathNodes",Q)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",le)}s("update:modelValue",T),s("change",T)}return}const z=qr(n,_,B,A);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Z=z[z.length-1];if(E.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const T=[];z.forEach(K=>{const Q=`${Ge(n,K)}`;T.push(Q)}),T.length>0&&(R.value=T.join(n.separator))}else R.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],Q=d.value[T];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let le=0;le<K.length;le++)if(!Hn(n,K[le],Q[le])){te=!1;break}}else Hn(n,K,Q)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ce=[];for(let pe of le)fe.push(ct(n,pe)),n.valueType==="text"?ce.push(Ge(n,pe)):n.valueType==="item"?ce.push(pe):ce.push(ct(n,pe));T.push(fe),K.push(ce)}else T.push(ct(n,le)),n.valueType==="text"?K.push(Ge(n,le)):n.valueType==="item"?K.push(le):K.push(ct(n,le))}),c.value=T;const Q=l.toRaw(K);G&&(s("update:pathNodes",z),s("update:modelValue",Q),s("change",Q))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,_=>se(_)),m=Ys(),S=async(_,B)=>{if(_){const A=await m.load("cascader",_,B);if(A.length>0)if(typeof A[0]=="string"){let Z=A.map(te=>Gs(te));g.value=Z}else g.value=A}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{V(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&V(n.modelValue,"value",[],!1);let j=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){L.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}L.value=!1}});const M=l.ref(!1),O=e,R=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":R.value&&R.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,A)=>{const G=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const z=B.pathLabels??[];let Z=[];z.forEach(te=>{te&&Z.push(te)}),Z.length>0&&(R.value=Z.join(n.separator))}else R.value=null;A(G)}),_}),x=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),c.value=_):V(_,"value",g.value,!0)};let q=he(n,"hintText"),C=l.ref(!1);const k=_=>{let A=_.target.value;M.value=!0,ge(q.value)||(C.value=!0),s("focus",A,_)},D=_=>{setTimeout(()=>{C.value&&(C.value=!1),M.value=!1},0);let A=_.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),w.value||s("blur",A,_)},Y=()=>{s("clear","")},W=l.ref(!1);let X=null;const U=()=>{n.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},ee=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},re=l.computed(()=>W.value||C.value),I=l.computed(()=>W.value?y.value:q.value),w=l.ref(!1),F=_=>{w.value=_,s("visible-change",_),_||s("selected")},P=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return $e({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:R.value||f.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:Y,onChange:x,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:P,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=L.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const G=[],z=l.h(v.ElCascader,B,A);G.push(z);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...Ie(n,ho),hintText:I.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:U,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=$),l.h(o,T,Z)}}}}const{componentName:Xs,create:Zs,scope:Js}=ie("cascader-item"),hl=Zs(Us(Xs,Js,Te)),mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,t,o){return{props:{...Se,...Ve,...mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const $=O=>{let N=O.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},L=()=>{s("clear","")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const R={...r.attrs,ref:M,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:$,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],x=l.h(v.ElAutocomplete,R,N);E.push(x);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,mo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:eu,create:tu,scope:nu}=ie("autocomplete-item"),ml=tu(Qs(eu,nu,Te));function lu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(y=>y[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let ou=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ru(){const e=l.getCurrentInstance();return new ou(e.proxy)}const jr={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 au(e,t){return{props:{...jr},setup(o,{attrs:n,slots:r}){const a=ru(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=lu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:zh,create:iu,scope:Hh}=ie("mapping"),Rt=iu(au());function su(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function uu(e,t){return{props:{...jr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=su(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:Kh,create:cu,scope:Wh}=ie("table-mapping-column"),gl=cu(uu()),fu=Symbol.for("TableStateKey");function go(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function du(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(fu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=go(s.row,s.column.property),f=a?go(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[y])}};return l.h(v.ElTableColumn,{...n},i)}}}}const{componentName:Yh,create:hu,scope:Gh}=ie("table-radio-column"),pl=hu(du()),mu={},gu={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"},pu=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),vu=[pu];function yu(e,t){return l.openBlock(),l.createElementBlock("svg",gu,vu)}const bu=_e(mu,[["render",yu]]),{componentName:Uh,create:wu,scope:Xh}=ie("table-setting"),xu={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:"不固定"}},Su=wu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:bu,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...xu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=p=>p.length>1,y=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(A=>{H.some(G=>G.prop===A.prop?(A.label=G.label,!0):!1)});const _=[];r.value=p.map((A,G)=>(!(A.label===""||A.type)&&A.visible!==!1&&_.push(A.prop),{...A,sortIndex:G})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),M.value=_},V=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>V(B));for(let B of H){const A=V(B);if(_.indexOf(A)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,A)=>({...B,sortIndex:A})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}y(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,$.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&($.value=!0),M.value=H,m()},L=()=>{h(n),m()},M=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,$.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&($.value=!0),m()},R=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,x=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const A=Number(N.index),G=Number(_.dataset.index);if(A!==G){if(A<G){const z=r.value[A];r.value.splice(A,1),r.value.splice(G,0,z)}else{const z=r.value[A];r.value.splice(A,1),r.value.splice(G+1,0,z)}y(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},X=p=>{const H=r.value[p];H.fixed=void 0,m()},U=new Map;let ee=null;function re(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:j,handleReset:L,checkedValue:M,handleCheckChange:O,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:C,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:X,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const A=Math.floor(B.offsetWidth);if(Math.floor(re(B))>A){let z=U.get(H);if(z){if(z===ee)return;Pe.hide(z)}z=Pe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),U.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=U.get(H);_&&(Pe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Pe.hide(ee),ee=Pe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Pe.hide(ee),ee=null)}}}}),Tu={class:"fox-table-setting"},Cu={class:"fox-table-setting__header"},$u={class:"fox-table-setting__body"},Nu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Eu={key:0,class:"fox-table-setting__body-title"},ku=["data-index","draggable"],Iu=["onMouseover","onMouseleave"],Vu={class:"tools-item"},Ou={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Pu={key:0,class:"fox-table-setting__body-title"},Du=["data-index","draggable"],Fu=["onMouseover","onMouseleave"],Ru={class:"tools-item"},Au={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Lu={key:0,class:"fox-table-setting__body-title"},Mu=["data-index","draggable"],Bu=["onMouseover","onMouseleave"],_u={class:"tools-item"};function qu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),y=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Tu,[l.createElementVNode("div",Cu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",$u,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Nu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Eu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Iu)]),_:2},1032,["label"]),l.createElementVNode("div",Vu,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,ku))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Pu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Fu)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Du))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Au,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Lu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Bu)]),_:2},1032,["label"]),l.createElementVNode("div",_u,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Mu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const mn=_e(Su,[["render",qu]]);let ju=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=He(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function zu(){const e=l.getCurrentInstance();return new ju(e.proxy)}class Hu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function zr(){const e=l.getCurrentInstance();return new Hu(e.proxy)}const Ku=Symbol.for("TableStateKey"),po={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"}},vo={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}},Nn={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:()=>"不固定"}},Wu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Yu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function En(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Yu(n,r);if(a!==i)return!1}return!0})}function Gu(e,t,o){return{inheritAttrs:!1,props:{...Se,...Ve,...po,...vo,...Nn,...Wu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Ce({componentName:e,validateHandler:{getValue(...J){return O.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),g=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=se(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,J=>{h.value=J}),l.watch(()=>n.pageSize,J=>{m.value=J}),l.watch([h,m],([J,oe],[ne,ae])=>{oe!==ae&&(h.value=1,J=1),x(n.data,J,oe,g.value)}));const b=()=>Array.isArray(n.data)?!0:se(n.autoLoad);b()&&l.watch([()=>n.data,g],async([J,oe],[ne,ae])=>{b()&&(J!==ne&&(N=!0),!(!Array.isArray(J)&&Ue(J,ne)&&Ue(oe,ae))&&(S?(h.value=0,L.value=!0,O.value=[],C()):h.value===1?x(J,h.value,m.value,oe):h.value=1))},{deep:!0});const $=J=>{h.value=J,i("page-index-change",J)},j=J=>{m.value=J,i("page-size-change",J)},L=l.ref(!0),M=l.ref(0),O=l.ref(),R=zu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,J=>se(J)),x=async(J,oe,ne,ae,we)=>{N=!1;try{if(we===!0){if(!L.value)return!1;const me=await R.load("table",J,oe,ne,ae,N,a.value);return M.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=M.value)||me.page.length<ne?(L.value=!1,!1):!0}else{const me=await R.load("table",J,oe,ne,ae,N,a.value);return M.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),M.value=0,O.value=[]}return!1};let q=!1;const C=async()=>{if(!q){if(q=!0,!L.value){q=!1;return}h.value+=1,await x(n.data,h.value,m.value,g.value,!0),q=!1}},k=(J={},oe=!1)=>new Promise(async ne=>{V.value={...l.toRaw(J??{})},oe||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],L.value=!0,await C()):await x(n.data,h.value,m.value,g.value),ne()}),D=()=>{M.value=0,O.value=[],S===!0&&(h.value=0,L.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},X=l.ref(null);if(S===!0){let J=null;const oe=()=>{X.value&&(J=new IntersectionObserver(ae=>{let we=!1;for(let me of ae)if(me.intersectionRatio>0){we=!0;break}we&&C()}),J.observe(X.value))},ne=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(ne)}b()&&!E.value&&k();const U=l.ref(null);l.provide(Ku,{currentRow:U});const ee=(J,oe)=>{U.value=J,i("current-change",J,oe)},re=(J,oe,ne)=>{i("row-click",J,oe,ne),se(n.rowClickSelectable)===!0&&be?.value.toggleRowSelection(J)},I=[],w=(J,oe)=>{if(i("expand-change",J,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ne=I.length;I.splice(0,ne)}else{I.forEach(ae=>{ae!==J&&be?.value.toggleRowExpansion(ae,!1)});const ne=I.length;I.splice(0,ne,J)}Array.isArray(oe)&&oe.length>0&&pe(0)},F=r.attrs.id??n.prop??r.attrs.name,P=zr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:p.value}),B=J=>{p.value=[...J],G()},A=async()=>{const J=await P.load(F);J&&(p.value=J)},G=()=>{P.save(F,p.value)},z=()=>{P.remove(F)};A();const Z=J=>J?J.type?J.type:J.label?J.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(J,oe)=>{for(let ne in oe){const ae=oe[ne];typeof ae!="function"&&(J[ne]=ae)}},K=l.computed(()=>{const J=te(),oe=new Map;if(H=[],J.forEach(ne=>{const ae=ne;if(!ae.props)return;const we=Z(ae.props);oe.set(we,ne);const me={label:"",prop:""};T(me,ae.props),H.push(me)}),p.value.length===H.length){const ne=[];for(let ae of p.value){const we=Z(ae),me=oe.get(we);if(!me)return J;if(ae.visible===!1)continue;const nt=me;nt.props.fixed=ae.fixed,ne.push(nt)}return ne}return J}),Q=l.shallowRef(new Map),le=({row:J,column:oe,rowIndex:ne,columnIndex:ae})=>{const we=`${ne}_${oe.property}`,me=`${ne}_${ae}`;let nt=Q.value.get(we);return nt||(nt=Q.value.get(me)),nt??""},fe=J=>typeof J=="function"?oe=>{const ne=[];let ae=le(oe);return ae&&ne.push(ae),ae=J(oe),ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:le;let ce=null;const pe=(J=-1,oe=!1)=>{J>=0?(ce&&clearTimeout(ce),ce=setTimeout(()=>{ce=null,Q.value.forEach((ne,ae)=>{ne=oe?"":ne;const we=`${ae}_item`;s.emitToChildren({name:we},"setCustomClassName",ne)})},J)):Q.value.forEach((ne,ae)=>{ne=oe?"":ne;const we=`${ae}_item`;s.emitToChildren({name:we},"setCustomClassName",ne)})},qe=(J,oe)=>{const ne=`${J}_item`;s.emitToChildren({name:ne},"setCustomClassName",oe)},et=(J,oe,ne)=>{const ae=`${J}_${oe}`;ne?(Q.value.set(ae,ne),qe(ae,ne)):(Q.value.delete(ae),qe(ae,"")),l.triggerRef(Q)},ht=()=>{pe(0,!0),Q.value.clear(),l.triggerRef(Q)},tt=l.shallowRef(new Map),Wl=({rowIndex:J})=>{const oe=`${J}`;return tt.value.get(oe)??""},ea=J=>typeof J=="function"?oe=>{const ne=[];let ae=Wl(oe);return ae&&ne.push(ae),ae=J(oe),ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:Wl,ta=(J,oe)=>{const ne=`${J}`;oe?tt.value.set(ne,oe):tt.value.delete(ne),l.triggerRef(tt)},na=()=>{tt.value.clear(),l.triggerRef(tt)},be=l.ref();return $e({clearSelection:()=>be?.value.clearSelection(),getSelectionRows:()=>be?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{be?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!O.value)return;const ne=En(O.value,J);ne.length!==0&&ne.forEach(ae=>{be?.value.toggleRowSelection(ae,oe)})},toggleAllSelection:()=>{be?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{be?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!O.value)return;const ne=En(O.value,J);ne.length!==0&&ne.forEach(ae=>{be?.value.toggleRowExpansion(ae,oe)})},setCurrentRow:J=>{be?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!O.value)return;const oe=En(O.value,J);oe.length!==0&&be?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{be?.value.clearSort()},clearFilter:J=>{be?.value.clearFilter(J)},doLayout:()=>{be?.value.doLayout()},sort:(J,oe)=>{be?.value.sort(J,oe)},scrollTo:(J,oe)=>{be?.value.scrollTo(J,oe)},setScrollTop:J=>{be?.value.setScrollTop(J)},setScrollLeft:J=>{be?.value.setScrollLeft(J)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return M.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:et,clearCellClassName:ht,setRowClassName:ta,clearRowClassName:na}),()=>{const oe={...Ye(r.attrs),onCurrentChange:ee,onRowClick:re,onExpandChange:w,data:O.value,ref:be,class:f.value,"cell-class-name":fe(n.cellClassName),"row-class-name":ea(n.rowClassName)},ne={};if(r.slots.default&&(ne.default=()=>K.value),r.slots.append&&(ne.append=r.slots.append),r.slots.empty&&(ne.empty=r.slots.empty),S===!0){const je=[];if(L.value){const Tt=l.h(ke.Loading,{class:`${u}__infinite-icon`});je.push(Tt);const yn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);je.push(yn)}else{const Tt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);je.push(Tt)}const at={ref:X,class:`${u}__infinite`},vn=l.h("div",at,je);ne.append=()=>vn}const ae=l.h(v.ElTable,oe,ne),we=[];if(we.push(ae),!S){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const at={class:y.value,total:M.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,at)}if(n.showSetting){const at=[];je&&at.push(je);const vn=l.h(v.ElIcon,{class:c.value},{default:()=>l.h(ke.Setting)}),Tt=ar(n,Nn),yn=l.h(mn,{...Tt,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>vn});at.push(yn);const la=l.h("div",{class:d.value},at);we.push(la)}else je&&we.push(je)}const me={default:()=>we},St={...Ie(n,po,vo,Nn),prop:`${n.prop}_item`};return St.contentClass=`${u}__wrap`,St.errorMarkClass="is-table-error",E.value&&b()&&(St["appear-listen"]=!0,St.onAppear=W),l.h(o,St,me)}}}}const{componentName:Uu,create:Xu,scope:Zu}=ie("table-item"),vl=Xu(Gu(Uu,Zu,Te));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ju(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Qu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ec(){const e=l.getCurrentInstance();return new Qu(e.proxy)}function Hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function tc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=wt(e,a)===t;else if(o==="item")i=Hr(e,a,t);else{let s=At(e,a);s==null&&(s=wt(e,a)),i=s===t}if(i){r=a;break}}return r}function nc(e){return{text:e,value:e}}function lc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={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 oc(e,t,o){return{inheritAttrs:!0,props:{...Se,...Ve,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(O,R,N,E=!0)=>{const x=tc(n,O,R,N);if(x===null){if(f.value===null)return;f.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!Hr(n,x,f.value)){u.value=O;const C=l.toRaw(x);f.value=C;let k=null;n.valueType==="text"?k=wt(n,C):n.valueType==="item"?k=C:k=At(n,C),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,O=>se(O)),V=ec(),g=async(O,R)=>{if(O){const N=await V.load("radio",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>nc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=At(n,E),C=wt(n,E);let k=Ju(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=lc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElRadioButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElRadio,W,{default:()=>R(E)})):N.push(l.h(v.ElRadio,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElRadioGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,yo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:rc,create:ac,scope:ic}=ie("radio-item"),yl=ac(oc(rc,ic,Te));function xt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function sc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let uc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function cc(){const e=l.getCurrentInstance();return new uc(e.proxy)}function Kr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=xt(e,t),r=xt(e,o);if(n!==r)return!1;const a=yt(e,t),i=yt(e,o);return a===i}function fc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=xt(e,i)===a;else if(o==="item")s=Kr(e,i,a);else{let u=yt(e,i);u==null&&(u=xt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function dc(e){return{text:e,value:e}}function hc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const bo={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 mc(e,t,o){return{inheritAttrs:!0,props:{...Se,...Ve,...bo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(O,R,N,E=!0)=>{const x=fc(n,O,R,N);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(x.length!==f.value.length)q=!1;else for(let C=0;C<x.length;C++){const k=x[C],D=f.value[C];if(!Kr(n,k,D)){q=!1;break}}if(!q){f.value=x;let C=[],k=[];x.forEach(Y=>{C.push(yt(n,Y)),n.valueType==="text"?k.push(xt(n,Y)):n.valueType==="item"?k.push(Y):k.push(yt(n,Y))}),u.value=C;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,O=>se(O)),V=cc(),g=async(O,R)=>{if(O){const N=await V.load("checkbox",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>dc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=yt(n,E),C=xt(n,E);let k=sc(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=hc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElCheckboxButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElCheckbox,W,{default:()=>R(E)})):N.push(l.h(v.ElCheckbox,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:xe(n.max),min:xe(n.min),onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElCheckboxGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,bo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:gc,create:pc,scope:vc}=ie("checkbox-item"),bl=pc(mc(gc,vc,Te)),wo={modelValue:{type:[Number,String],required:!1}};function yc(e,t,o){return{props:{...Se,...Ve,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>xe(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=l.ref(!1);const g=l.ref();return $e({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElRate,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...Ie(n,wo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:bc,create:wc,scope:xc}=ie("rate-item"),wl=wc(yc(bc,xc,Te)),xo={modelValue:{type:[Boolean,String,Number],required:!1}};function Sc(e,t,o){return{props:{...Se,...Ve,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=he(n,"hintVisible");const g=l.ref();return $e({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElSwitch,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...Ie(n,xo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:Tc,create:Cc,scope:$c}=ie("switch-item"),xl=Cc(Sc(Tc,$c,Te)),So={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Nc(e,t,o){return{props:{...Se,...Ve,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=he(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let V=he(n,"hintText"),g=l.ref(!1);const h=L=>{let O=L.target.value;s.value=!0,ge(V.value)||(g.value=!0),u("focus",O,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,L)},S=()=>{u("clear","")},b=l.ref(!1),$=L=>{b.value=L,u("visible-change",L),L||u("selected")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const M={...Ye(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:$},O={};r.slots.option&&(O.default=r.slots.option);const R=[],N=l.h(v.ElTreeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...Ie(n,So),hintText:V.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Ec,create:kc,scope:Ic}=ie("tree-select-item"),Sl=kc(Nc(Ec,Ic,Te)),Vc={},Oc={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"},Pc=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),Dc=[Pc];function Fc(e,t){return l.openBlock(),l.createElementBlock("svg",Oc,Dc)}const Rc=_e(Vc,[["render",Fc]]),{componentName:em,create:Ac,scope:tm}=ie("group-setting"),Lc={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:"到底部"}},Mc=Ac({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Rc,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Lc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=zr(),s=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((P,p)=>(P.visible!==!1&&I.push(P.prop),{...P,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),$.value=I},f=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const P=I.$el??I;typeof P.querySelectorAll=="function"&&(w=P.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const F=[];return w.forEach(P=>{const p=P.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=P.getAttribute("prop")??"",A=window.getComputedStyle(P,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:A!=="none"})}),F},c=()=>{if(!r){const I=f(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const w=await i.load(e.groupProp),F=P=>{if(!P||!r)return;const p=r.map(H=>({...H}));Array.isArray(w)&&w.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&V(!1)};r?F(!0):nn(c,e.initDelay,5,50,!1,F)},y=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),V()},V=(I=!0)=>{I&&i.save(e.groupProp,a.value);const w=a.value.map(F=>({...F}));t("change",w)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const w=[];a.value.forEach(P=>{I&&w.push(P.prop),P.visible=I}),h.value=!1,m.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(m.value=!0),$.value=w,V()},b=()=>{y()},$=l.ref([]),j=I=>{a.value.forEach(F=>{const P=I.indexOf(F.prop)!==-1;F.visible=P}),h.value=!1,m.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(m.value=!0),V()},L=()=>{d()};l.onMounted(()=>{d(!0)});const M={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,R=I=>{const w=I.currentTarget;w&&w.dataset&&(M.index=w.dataset.index)},N=I=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},E=I=>{const w=I.currentTarget;I.relatedTarget;const F=O(w);F&&(I.preventDefault(),M.currentRow&&M.currentRow!==F&&M.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),M.currentRow=F)},x=I=>{I.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=I=>{const w=I.currentTarget,F=O(w);if(!F)return;I.preventDefault();const P=Number(M.index),p=Number(F.dataset.index);if(P!==p){if(P<p){const H=a.value[P];a.value.splice(P,1),a.value.splice(p,0,H)}else{const H=a.value[P];a.value.splice(P,1),a.value.splice(p+1,0,H)}u(),V()}},C=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),V()},k=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),V()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:$,handleCheckChange:j,onShow:L,onDragStart:R,onDragEnd:N,onDragOver:E,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:C,toBottom:k,onMouseOverForOverflowText:(I,w,F)=>{const P=I.currentTarget;if(P){const p=Math.floor(P.offsetWidth);if(Math.floor(W(P))>p){let _=D.get(w);if(_){if(_===Y)return;Pe.hide(_)}_=Pe.show(P,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(w,_),Y=_}}},onMouseLeaveForOverflowText:(I,w)=>{const F=D.get(w);F&&(Pe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,w)=>{const F=I.currentTarget;F&&(Y&&Pe.hide(Y),Y=Pe.show(F,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Pe.hide(Y),Y=null)}}}}),Bc={class:"fox-group-setting"},_c={class:"fox-group-setting__header"},qc={class:"fox-group-setting__body"},jc={class:"fox-group-setting__body-list","data-role":"container"},zc=["data-index","draggable"],Hc=["onMouseover","onMouseleave"],Kc={class:"tools-item"};function Wc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Bc,[l.createElementVNode("div",_c,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",qc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",jc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,V.prop,V.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Hc)]),_:2},1032,["label"]),l.createElementVNode("div",Kc,[l.createVNode(c,{onClick:g=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,zc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=_e(Mc,[["render",Wc]]),Yc=["aria-labelledby"],Gc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uc=[Gc],Xc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],Cl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),ef=["aria-labelledby"],tf=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),nf=[tf],lf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},nf,14,ef))}}),of=["aria-labelledby"],rf=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),af=[rf],sf=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},af,14,of))}}),uf=["aria-labelledby"],cf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),ff=[cf],df=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ff,14,uf))}}),hf={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}},To=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],mf=(e,t)=>t[e.visibleKey],Co=(e,t)=>t[e.disabledKey],gf=(e,t)=>{const o=t[e.doitKey];return se(o)},pf=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function vf(e,t,o,n=!1){return{props:{...hf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const w=I;w?(h.value=w,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,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),j=(I,w)=>{$.value[w]=I},L=I=>w=>{j(w,I)},M=(I,w)=>{const F=b.value,P=$.value;if(!F||!P||!P[I])return;const p=P[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,w?0:.3,r.direction)},O=(I,w,F,P)=>{let p=0;const H=P==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){P==="horizontal"?I.scrollLeft+=(w-H)/_:I.scrollTop+=(w-H)/_,++p<_&&Gn(B)}B()},R=(I,w)=>{const F=Nt(r,I),P={};return P[`${e}__titles-item`]=!0,P.disabled=Co(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0),r.ellipsis&&(P.ellipsis=!0),w&&(w.class&&(P[`${w.class}`]=!0),w.disabled===!0&&(P.disabled=w.disabled)),P},N=(I,w)=>{const F={};if(c.value>0){const P=Math.abs(c.value/2);r.direction==="vertical"?(F["margin-top"]=`${P}px`,F["margin-bottom"]=`${P}px`):(F["margin-left"]=`${P}px`,F["margin-right"]=`${P}px`)}return w&&w.style&&Object.assign(F,w.style),F},E=(I,w)=>`${Nt(r,I)??w}`,x=(I,w)=>{const F=Nt(r,I),P={};P[`${e}__popup-item`]=!0,P.disabled=Co(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0);const p=$o(r,I,w);return p&&p.disabled===!0&&(P.disabled=p.disabled),P},q=l.computed(()=>(r.data??[]).filter(w=>mf(r,w)!==!1)),C=(I,w)=>{const F=Nt(r,I);if(d.value==F)return;const P=()=>{d.value=F,r.scroll&&M(w,!1),i("update:modelValue",F),i("change",I,w)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,w);Xo(p)?p.then(H=>{H!==!1&&P()}).catch(()=>{P()}):p!==!1&&P()}else P()},k=(I,w)=>function(){C(I,w)},D=(I,w)=>{C(I,w),S(!1)},Y=(I,w)=>function(){D(I,w)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(F=>Nt(r,F)===d.value);w!==-1&&M(w,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const X=(I,w)=>{if(a.item)return a.item({item:I,index:w});const F=$o(r,I,w),P=[];if(a.text){const B=a.text({item:I,index:w});P.push(B)}else{const B=[];if(F?.doit===!0||gf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Z);B.push(te)}const A=F?.num??pf(r,I);if(A){let Z="";const te=xe(A);te>=100?Z="99+":Z=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Z]);B.push(K)}const G={class:`${e}__titles-item-text`};B.push(To(r,I));const z=l.h("view",G,B);P.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);P.push(H);const _={ref:L(w),class:R(I,F),style:N(I,F),key:E(I,w),onClick:k(I,w)};return l.h("view",_,P)},U=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const P=q.value[F],p=X(P,F);I.push(p)}const w={ref:b,class:u.value,style:f.value};return l.h("view",w,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:m};return l.h("view",w,[I])},re=()=>{const I=[];for(let F=0;F<q.value.length;F++){const P=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:P,index:F}):p=To(r,P);const H={class:x(P,F),key:E(P,F),onClick:Y(P,F)},_=l.h("view",H,[p]);I.push(_)}const w={class:y.value,style:V.value};return l.h("view",w,I)};return()=>{const I=[],w=U();if(I.push(w),r.showQuickNavigation){const P=ee();I.push(P);const p=re();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:yf,componentName:bf,scope:wf}=ie("tabs-bar"),$l=yf(vf(bf,wf,Xc,!1)),Wr=Symbol("TabsStatesKey"),xf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Sf(e,t,o=!1){return{props:{...xf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Wr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let y=!0;const V=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=rn(f.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(f.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:f};return l.h("view",S,[m])}}}}const{create:Tf,componentName:Cf,scope:$f}=ie("tabs-container"),Nl=Tf(Sf(Cf,$f,!1)),Nf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Ef(e,t,o){return{props:{...Nf},setup(n,{emit:r,slots:a}){const i=l.inject(Wr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},y=n.emptyIcon??o,V=l.h(y,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[V,m]);f.push(b)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:kf,componentName:If,scope:Vf}=ie("tabs-pane"),El=kf(Ef(If,Vf,Cl)),Of={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 Pf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function No(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Eo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Df(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function kn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function ko(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Io(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ff{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Rf(){const e=l.getCurrentInstance();return new Ff(e.proxy)}function Af(e,t,o,n){return{props:{...Of},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Rf(),f=l.ref([]),c=l.computed(()=>f.value.filter(w=>Df(r,w)!==!1)),d=l.ref(-1),y=()=>{const w=r.modelValue,F=c.value.findIndex(P=>No(r,P)===w);d.value!==F&&(d.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,c],()=>{y()});const V=w=>d.value===w,g=w=>{if(w<0&&w>=c.value.length)return!1;const F=c.value[w],p=(In(r,F,w)??{}).status??kn(r,F);return V(w)||p},h=l.computed(()=>{const w={[s]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),m=l.computed(()=>({})),S=(w,F,P,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),w===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:P?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),$=(w,F={})=>{const P={...F};return b.value==="start"&&w===c.value.length-1?P.flex="0 0 auto":r.step?r.direction==="vertical"?P.height=r.step:P.width=r.step:P.flex="1 1 100%",P},j=(w,F)=>{let P={};if(F<c.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},L=w=>c.value.length-1===w,M=(w,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const P=d.value,p=F;d.value=F,r.scroll&&re(F,!1);const H=No(r,w);i("update:modelValue",H);const _={fromIndex:P,currentIndex:p,item:w,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),R=async(w,F)=>{try{const P=await u.load("stesbar",w,F);Array.isArray(P)&&(f.value=P),O.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,F])=>{w&&R(w,F)},{immediate:!0});const N=(w,F,P,p,H)=>{let _=null;if(a.icon)_=a.icon({item:w,index:F,status:p});else if(p==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const G=r.icon??o;_=l.h(G,A)}else{const A=P??`${F+1}`;_=l.h("span",{},[A])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||M(w,F)}};return l.h("view",B,[_])},E=(w,F,P)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(w,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},x=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const P={};r.iconSize&&(P.width=r.markIconSize,P.height=r.markIconSize);const p=r.markIcon??n;w=l.h(p,P)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,F,P,p,H)=>{const _=[];if(!L(F)){const G=E(w,F);_.push(G)}const B=N(w,F,P,p,H);_.push(B);const A={class:"fox-steps-bar__head"};return l.h("view",A,_)},C=(w,F,P,p)=>{let H=null;a.main?H=a.main({item:w,index:F,status:P}):H=Pf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{p||M(w,F)}};return l.h("view",_,[H])},k=(w,F,P)=>{let p=null;if(a.sub){p=a.sub({item:w,index:F,status:P});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=Eo(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??Io(r,w),B=[],A=N(w,F,_,p,H);A&&B.push(A);const G=C(w,F,p,H);if(G&&B.push(G),!L(F)){const Q=E(w,F);Q&&B.push(Q)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Z=P.class,te=P.style??{};let T=ko(r,w);P.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Z),style:$(F,te)};return l.h("view",K,[z])},Y=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=Eo(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??Io(r,w),B=[],A=r.layout;for(let T of A)if(T==="head"){const K=q(w,F,_,p,H);B.push(K)}else if(T==="main"){const K=C(w,F,p,H);B.push(K)}else if(T==="sub"){const K=k(w,F,p);B.push(K)}else if(T==="mark"){const K=x();B.push(K)}const G=P.class,z=P.style??{};let Z=ko(r,w);P.doit===!0&&(Z=!0);const te={ref:ee(F),class:S(F,p,H,Z,G),style:$(F,z)};return l.h("view",te,B)},W=l.ref(),X=l.ref([]),U=(w,F)=>{X.value[F]=w},ee=w=>F=>{U(F,w)},re=(w,F)=>{const P=W.value,p=X.value;if(!P||!p||!p[w])return;const H=p[w];let _=0;r.direction==="vertical"?_=H.offsetTop-(P.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(P.offsetWidth-H.offsetWidth)/2,I(P,_,F?0:.3,r.direction)},I=(w,F,P,p)=>{let H=0;const _=p==="horizontal"?w.scrollLeft:w.scrollTop,B=P===0?1:Math.round(P*1e3/16);function A(){p==="horizontal"?w.scrollLeft+=(F-_)/B:w.scrollTop+=(F-_)/B,++H<B&&Gn(A)}A()};return()=>{const w=[];if(r.mode==="simple")for(let P=0;P<c.value.length;P++){const p=c.value[P],H=D(p,P);w.push(H)}else for(let P=0;P<c.value.length;P++){const p=c.value[P],H=Y(p,P);w.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,w)}}}}const{componentName:Lf,create:Mf,scope:Bf}=ie("steps-bar"),kl=Mf(Af(Lf,Bf,sf,df)),_f=Symbol.for("InnerPageScopeKey"),qf=Symbol.for("PageWrapperKey");function jf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(_f,!0);const r={};l.provide(qf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(v.ElDialog,f,c)}}}}const{componentName:nm,create:zf,scope:lm}=ie("dialog-item"),Il=zf(jf());let Et=0;const Vo="fox-overflow-hidden",Oo=()=>dt?document.body:{classList:[]},Hf=e=>[()=>{if(e())try{!Et&&Oo().classList.add(Vo),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Oo().classList.remove(Vo)}catch{}}],Kf={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:Wf,create:Yf}=ie("overlay"),Gf=Yf({props:{...Kf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Hf(()=>e.lockScroll),r=l.computed(()=>({[Wf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Uf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const gn=_e(Gf,[["render",Uf]]),Xf={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:{}}},Yr=2e3;let Po=Yr;const Zf=(e,t)=>({components:t,props:{...Xf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Yr&&(Po=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Po,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},y=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:y,onOpened:V,onClosed:g}}}),{componentName:Jf,create:Qf}=ie("popup"),ed=Qf(Zf(Jf,{FoxOverLay:gn,Close:lf}));function td(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Vl=_e(ed,[["render",td]]),{create:nd}=ie("toast"),ld=nd({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=de(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),od={key:1,class:"fox-toast-title"},rd=["innerHTML"];function ad(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",od,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,rd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ol=_e(ld,[["render",ad]]),id={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"}},sd=(e,t,o)=>({props:{...id},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=vr(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=N=>{let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,N),a("change",x,N)},y=l.ref({}),V=N=>{let x=N.target.value;u.active=!0,y.value=n.focusStyle,a("focus",x,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),y.value={},a("blur",x,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},$=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},L=N=>{a("click-left-icon",n.modelValue,N)},M=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const R=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:M.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:V,onBlur:g,onkeyup:$},x=l.h("input",E);N.push(x);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...y.value}};return l.h("view",C,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},C=l.h("span",q,[n.label]);N.push(C)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",q,[r.leftout()]);N.push(C)}const E=R();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",q,[r.rightout()]);N.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,N)}}}),{componentName:ud,create:cd,scope:fd}=ie("searchbar"),Pl=cd(sd(ud,fd,ke.CircleClose)),dd=/scroll|auto|overlay/i,Gr=window;function hd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function md(e,t=Gr){let o=e;for(;o&&o!==t&&hd(o);){const{overflowY:n}=window.getComputedStyle(o);if(dd.test(n))return o;o=o.parentNode}return t}function Ur(e,t=Gr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=md(e.value,t))}),o}const Xr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,gd={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 pd(e,t,o){return{props:{...gd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Ur(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,V=()=>{let b=0,$=0,j="down";if(f.value==window){const L=Xr();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),$=L}else{const{scrollHeight:L,clientHeight:M,scrollTop:O}=f.value;b=L-M-O,$=O}return c.beforeScrollTop>$?j="up":j="down",c.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&j=="down"},g=()=>{Ho(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",g,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(c.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),j=[];if(c.isInfiniting){let R=a?.loading?.()??null;if(!R){let x=a?.loadingIcon?.()??null;if(!x){const k={class:["fox-infinite__bottom-box__img"]};x=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},C=l.h("view",q,[s.loadText.value]);R=[x,C]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,R);j.push(E)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const N={class:"fox-infinite__bottom-tips"};R=l.h("view",N,[s.loadMoreText.value]),j.push(R)}}const L={class:"fox-infinite__bottom"},M=l.h("view",L,j),O={class:d.value,ref:u};return l.h("view",O,[$,M])}}}}const{componentName:vd,create:yd,scope:bd}=ie("infinite-loading"),Dl=yd(pd(vd,bd,Cl)),Do=10;function Zr(e,t){return e>t&&e>Do?"horizontal":t>e&&t>Do?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Zr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function wd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const $=m.touches[0];i.value=$.clientX-e.value,s.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Zr(u.value,f.value))},start:m=>{if(V(),m.touches){const $=m.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const xd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Sd=(e,t,o)=>({props:{...xd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),f=l.ref(),c=Ur(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ee(n.headHeight)),O}),m=O=>{const R=+(n.pullDistance||n.headHeight);let N=O;return O>R&&(O<R*2?N=(O+R)/2:N=R+O/4),Math.round(N)},S=(O,R)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,R?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",$=()=>c.value==window?Xr()==0:c.value&&c.value.scrollTop==0,j=O=>{b()&&($()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},M=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let R=null;if(d.status==="loading"){if(R=a?.loading?.()??null,!R){const Y={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,Y)}}else d.status==="pulling"?R=a?.pulling?.()??null:d.status==="loosing"&&(R=a?.loosing?.()??null);R&&O.push(R);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[V.value]);O.push(E);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",x,O),C={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",C,[q,a?.default?.()]),D={ref:f,class:y.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:L,onTouchend:M}):Object.assign(D,{onMousedown:j,onMousemove:L,onMouseup:M}),l.h("div",D,[k])}}}),{componentName:Td,create:Cd,scope:$d}=ie("pull-refresh"),Al=Cd(Sd(Td,$d,Cl));function Nd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],V=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,V]):l.h("div",g,[V,c])}}}}const{componentName:Ed,create:kd,scope:om}=ie("indicator"),Ll=kd(Nd(Ed));function Id(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const 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 Od(e,t,o,n=!1){return{props:{...Vd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},j=r.textColor??r.color;return j&&($.color=j),$}),f=($,j)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if($.indexOf(M)!==-1){const R=$.replace(new RegExp(M,"g"),`<span>${M}</span>`);j.innerHTML=R,j.class["is-highlight"]=!0,L=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter($);M&&(j.innerHTML=M,j.class["is-highlight"]=!0,L=l.h(r.tag,j))}return L},c=$=>{a.emit("click",$)};let d="";const y=()=>{const $=i.value;if(!$)return;const j=$.clientWidth;Id($,L=>{const M=$.innerHTML??"";ge(M)||L<j||(d?o?.show($,M,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show($,M,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let g=null;const h=$=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{V()},r.hideAfter??0)},S=()=>{const $=i.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",m))},b=()=>{const $=i.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||b()}),()=>{const $={onClick:c,class:s.value,style:u.value,ref:i};let j=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=xe(r.digits),x=xe(r.decimalLength),q=se(r.autoPadding);let C=`${R[0].children}`,k=C.split("").reverse().join("");k=Zt(k,x,q,E,r.separator),C=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=f(C,$)),j||($.innerHTML=C,j=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${R[0].children}`;j=f(E,$),j||($.innerHTML=E,j=l.h(r.tag,$))}}}j||(j=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let M=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const x={class:R,style:N};M=l.h("view",x)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[M,j])}}}}const{componentName:Pd,create:Dd,scope:Fd}=ie("text"),Ml=Dd(Od(Pd,Fd,Pe,!1)),Rd={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:ke.ArrowUp}};function Ad(e,t,o){return{props:{...Rd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const y={class:f.value},V=o(n.icon,y);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Ld,create:Md,scope:Bd}=ie("more-button"),_d=(e,t)=>(e=e??ke.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Md(Ad(Ld,Bd,_d));function qd(e){return e===window}const Jr=e=>{const t=l.unref(e);if(qd(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:jd,create:zd,scope:rm}=ie("tour"),Hd=zd({components:{Close:ke.Close,ElPopover:v.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=jd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:$,top:j}=r.value,L=e.steps[n.active].offset??g,M=[$+S/2,j+b/2],O=Number(h||S),R=Number(m||b);return{width:`${O+ +L.left+L.right}px`,height:`${R+L.top+L.bottom}px`,top:`${M[1]-R/2-+L.top}px`,left:`${M[0]-O/2-+L.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,f=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Jr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},V=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{V(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),Kd={key:0,class:"fox-tour__content"},Wd={key:0,class:"fox-tour__content-top"},Yd={class:"fox-tour__content-inner"},Gd={class:"fox-tour__content-bottom"},Ud={class:"fox-tour__content-bottom-init"},Xd={class:"fox-tour__content-bottom-operate"},Zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Jd={class:"fox-tour__content-inner"};function Qd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Kd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Wd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Yd,l.toDisplayString(f.content),1),l.createElementVNode("div",Gd,[l.createElementVNode("div",Ud,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Xd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Zd,[l.createElementVNode("div",Jd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=_e(Hd,[["render",Qd]]),Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class eh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fo(e,t){return new eh(e,t)}var Ro;const Kn=typeof window<"u";Kn&&((Ro=window?.navigator)!=null&&Ro.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let gt=[];const Ao=e=>{const t=e;t.key==="Escape"&>.forEach(o=>o(t))},th=e=>{l.onMounted(()=>{gt.length===0&&document.addEventListener("keydown",Ao),Kn&>.push(e)}),l.onBeforeUnmount(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Kn&&document.removeEventListener("keydown",Ao)})},Vn="fox-focus-trap.focus-after-trapped",On="fox-focus-trap.focus-after-released",nh="fox-focus-trap.focusout-prevented",Lo={cancelable:!0,bubbles:!1},lh={cancelable:!0,bubbles:!1},Mo="foxFocusAfterTrapped",Bo="foxFocusAfterReleased",oh=Symbol("foxFocusTrap"),ql=l.ref(),pn=l.ref(0),jl=l.ref(0);let qt=0;const Qr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},rh=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_o=(e,t)=>{for(const o of e)if(!rh(o,t))return o},ah=e=>{const t=Qr(e),o=_o(t,e),n=_o(t.reverse(),e);return[o,n]},ih=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&ih(e)&&t&&e.select()}};function qo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const sh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=qo(e,n),e.unshift(n)},remove:n=>{e=qo(e,n),e[0]?.resume?.()}}},uh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(lt(n,t),document.activeElement!==o)return},jo=sh(),ch=()=>pn.value>jl.value,jt=()=>{ql.value="pointer",pn.value=window.performance.now()},zo=()=>{ql.value="keyboard",pn.value=window.performance.now()},fh=()=>(l.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",jt),document.addEventListener("touchstart",jt),document.addEventListener("keydown",zo)),qt++}),l.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",jt),document.removeEventListener("touchstart",jt),document.removeEventListener("keydown",zo))}),{focusReason:ql,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:jl}),zt=e=>new CustomEvent(nh,{...lh,detail:e}),{componentName:am,create:dh,scope:im}=ie("focus-trap"),hh={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"}},mh=dh({props:hh,emits:[Mo,Bo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=fh();th(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:$,currentTarget:j,shiftKey:L}=h,{loop:M}=e,O=m==="Tab"&&!S&&!b&&!$,R=document.activeElement;if(O&&R){const N=j,[E,x]=ah(N);if(E&&x){if(!L&&R===x){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),M&<(E,!0))}else if(L&&[E,N].includes(R)){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),M&<(x,!0))}}else if(R===N){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(oh,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=h=>{o(Mo,h)},c=h=>o(Bo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,$=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),$&&o("focusin",h),!s.paused&&se(e.trapped)&&($?a=S:lt(a,!0))},y=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!Un(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=zt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||lt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){jo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Lo);h.addEventListener(Vn,f),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;Uo($)||(lt($),document.activeElement!==$&&($="first")),$==="first"&&uh(Qr(h),!0),(document.activeElement===m||$==="container")&<(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,f);const m=new CustomEvent(On,{...Lo,detail:{focusReason:i.value}});h.addEventListener(On,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!ch())&<(r??document.body,!0),h.removeEventListener(On,f),jo.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{se(h)?V():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:gh,create:ph,scope:sm}=ie("floating-window"),vh=Symbol.for("InnerPageScopeKey"),yh=Symbol.for("PageWrapperKey"),bh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},wh=ph({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:mh},props:{...bh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=gh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return it(i.value)?T.left="auto":T.left=Oe(i.value),it(s.value)?T.top="auto":T.top=Oe(s.value),it(u.value)?T.right="auto":T.right=Oe(u.value),it(f.value)?T.bottom="auto":T.bottom=Oe(f.value),it(e.zIndex)||(T["z-index"]=Oe(e.zIndex)),it(M.value)||(T.height=M.value),it(O.value)||(T.width=O.value),T}),y=l.computed(()=>e.closeIcon??ke.Close),V=l.computed(()=>e.collapseIcon??ke.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),$=l.ref(),j=l.ref(null),L=l.ref(null),M=l.computed(()=>Oe(e.height)||""),O=l.computed(()=>Oe(e.width)||""),R=l.ref(se(e.collapse)),N=(T,K=!0)=>{R.value!==T&&(R.value=T,T?w():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{x()},x=T=>{T=T??!R.value,N(T)};l.provide(vh,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(yh,q);const C=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),X=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),U=l.ref(R.value),ee=l.computed({set:T=>{U.value=T},get:()=>n.value===!1?!1:U.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},w=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,re=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),re=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},P=()=>{i.value=null,s.value=null,u.value=null,f.value=null},p={x:0,y:0},B=Fo(T=>{if(!$.value)return;const K=$.value;if(P(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=Q-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(K.offsetLeft+K.offsetWidth),f.value=le-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!$.value)return;const K=$.value;P(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Oe(i.value),K.style.top=Oe(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,f.value=p.y-T.y,K.style.left=Oe(i.value),K.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,f.value=p.y-T.y,K.style.right=Oe(u.value),K.style.bottom=Oe(f.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Oe(u.value),K.style.top=Oe(s.value))}),A={x:0,y:0},Z=Fo(T=>{k.value&&(A.x=k.value.offsetLeft,A.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=A.y+T.y;W.value=`${K}px`}),te=()=>{if($.value){const T=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=T}};return l.onMounted(()=>{if(e.draggable&&$.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),L.value&&T.push(L.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Z.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Z.close()}),{classes:c,styles:d,isShow:a,closeIcon:y,onClose:C,dialogRef:$,headerRef:j,onClickToggle:E,collapseIcon:V,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:X,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),xh={ref:"headerRef",class:"fox-floating-window__header"},Sh={class:"fox-floating-window__title"},Th={class:"fox-floating-window__tools"},Ch={class:"fox-floating-window__body"},$h={class:"fox-floating-window__fixednav__text"};function Nh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",xh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",Sh,l.toDisplayString(e.title),1),l.createElementVNode("div",Th,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",Ch,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",$h,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=_e(wh,[["render",Nh]]);function Eh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return mr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:um,create:kh,scope:cm}=ie("domain-provider"),Hl=kh(Eh()),Ih={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 Vh(e,t){return{inheritAttrs:!1,props:Ih,setup(o,{slots:n}){if(dt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,V)=>{if(c===null){a.set(y,{visible:null,callback:V});return}r.has(y)&&c.unobserve(y),r.set(y,{visible:null,callback:V}),c.observe(y)},s=y=>{if(c===null){a.delete(y);return}r.has(y)&&(r.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;fi({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(y,V,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch($){console.error($)}}},{root:y,rootMargin:V,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,V])=>{if(V||!y||c)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:fm,create:Oh,scope:dm}=ie("rolling-provider"),Kl=Oh(Vh()),Ph=[Jn,el,tl,nl,ll,Te,ol,rl,Mt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,mn,vl,yl,bl,wl,xl,Sl,Tl,$l,Nl,El,kl,Il,gn,Vl,Ol,Pl,Dl,Al,Rt,hn,Ll,Ml,Bl,_l,zl,Hl,Kl],Dh=new ja(Ph,[Ka],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>v.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>v.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>v.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>v.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>v.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>v.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>v.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>v.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>v.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>v.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>v.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>v.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>v.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>v.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>v.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>v.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>v.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ye;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=mt;exports.DateItem=sl;exports.DateUtils=Le;exports.DialogItem=Il;exports.Domain=ln;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Il;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Mt;exports.FoxIndicator=Ll;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Te;exports.FoxMapping=Rt;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=gn;exports.FoxPage=Jn;exports.FoxPopup=Vl;exports.FoxPrice=hn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=wl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Pl;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=xl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=mn;exports.FoxTabsBar=$l;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ml;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Ol;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Mt;exports.Indicator=Ll;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Te;exports.Mapping=Rt;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=gn;exports.Page=Jn;exports.Popup=Vl;exports.Price=hn;exports.PriorityPolicy=Me;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=wl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Pl;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=xl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=mn;exports.TabsBar=$l;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ml;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Ol;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=kr;exports.ValidateSchema=fr;exports.ValidateSchemaKey=ze;exports.cancelRaf=aa;exports.clearNonNumber=ya;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=en;exports.createValidateSchema=tn;exports.debounce=Ot;exports.debounceRef=Oa;exports.decimalLength=rr;exports.default=Dh;exports.defineBroadcast=Sa;exports.defineConfigDomain=mr;exports.defineDataItem=pr;exports.defineDomain=Zn;exports.defineItem=Ce;exports.definePageState=yr;exports.defineSimpleItem=vr;exports.deleteGlobalValidator=Ea;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=Ie;exports.extend=ft;exports.floatData=xa;exports.getGlobalValidateCheckEvents=sr;exports.getGlobalValidateResetEvents=cr;exports.getPageContentAreaHeight=Yt;exports.getPageContentAreaWidth=Gt;exports.getPageFooterAreaHeight=Dt;exports.getPageHeaderAreaHeight=Pt;exports.getRootDomain=pt;exports.hasSymbol=Jo;exports.includeProps=ar;exports.indexOf=ba;exports.installRules=gr;exports.integerLength=or;exports.isArray=sa;exports.isArrayLike=er;exports.isBrowser=dt;exports.isDate=fa;exports.isESModule=ha;exports.isEmptyString=ge;exports.isEqual=Ue;exports.isFunction=Ln;exports.isHidden=Qt;exports.isInnerPage=Fa;exports.isMap=ua;exports.isNil=Un;exports.isNumberString=lr;exports.isObject=Xe;exports.isPlainObject=Mn;exports.isPromise=Xo;exports.isRegExp=nr;exports.isSet=ca;exports.isString=Uo;exports.isSubPage=Ra;exports.isSymbol=da;exports.isTouch=Fl;exports.isWindow=Qo;exports.lastIndexOf=wa;exports.makeArray=va;exports.merge=tr;exports.multiply=Wo;exports.negate=Yo;exports.nextTick=ga;exports.numberFormat=Zt;exports.objectToString=Zo;exports.once=Pa;exports.overrideGlobalValidateHandler=$a;exports.property=De;exports.raf=Gn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=ka;exports.setGlobalValidateHandler=Ca;exports.setGlobalValidateMessages=Va;exports.setGlobalValidateResetEvents=Ia;exports.setGlobalValidator=Na;exports.throttle=hr;exports.toBoolean=se;exports.toNumber=xe;exports.toPadding=Ke;exports.toPx=de;exports.toPxDesc=Ee;exports.toTypeString=Jt;exports.toValue=he;exports.tryTimes=nn;exports.typeOf=Kt;exports.unNumberFormat=Go;exports.updatePageState=_n;exports.useBroadcast=kt;exports.useDomain=Ze;exports.useExpose=$e;exports.useInnerSize=Qn;exports.usePageState=on;exports.usePosition=Nr;exports.useRawTouch=Rl;exports.useRect=Jr;exports.useSize=rn;exports.useTouch=wd;exports.valueLength=Lt;
|
|
5
|
+
*/function Ht(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=Yn($e(e),$e(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Wo(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(bn(r)):$e(r)}function bn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Wo(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Yn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Wo(e,t){[e,t]=Yn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ve=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ve||{});function It(e,t=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=It(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Ul(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Ul(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Ul(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!o&&n===ve.FLOOR||o&&n===ve.CEILING)return!1;if(n===ve.UP||o&&n===ve.FLOOR||!o&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function On(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let I=t.length-1;I>=f&&I>=0;I--)u[I]>-1&&u[I]<e.length&&(y+=parseInt(e[u[I]--])*parseInt(t[I]));y+=s,s=Math.floor(y/10),c=y%10+c,f--}return c=Ct(aa(c,a)),o==1&&(c="-"+c),c}function aa(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(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 Dn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=$e(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=$e(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=$e(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=$e(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Ht(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(It(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),Ht(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Gl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Xl(e),Xl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,On(t,It(Dn(e,t),0,ve.FLOOR)));return o+n}function Xl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Zl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Yn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ue{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+$e(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ue.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ue.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ue.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ve.HALF_EVEN){if(t=ue.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return It(t,o,n)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ue(It(this.value,t,o))}static floor(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.FLOOR)}static ceil(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.CEILING)}static add(t,o){return t=ue.validate(t),o=ue.validate(o),Ht(t,o)}add(t){return new ue(Ht(this.value,t.getValue()))}static subtract(t,o){return t=ue.validate(t),o=ue.validate(o),Fn(t,o)}subtract(t){return new ue(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ue.validate(t),o=ue.validate(o),On(t,o)}multiply(t){return new ue(On(this.value,t.getValue()))}static divide(t,o,n){return t=ue.validate(t),o=ue.validate(o),Dn(t,o,n)}divide(t,o){return new ue(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ue.validate(t),o=ue.validate(o),Gl(t,o)}modulus(t){return new ue(Gl(this.value,t.getValue()))}static compareTo(t,o){return t=ue.validate(t),o=ue.validate(o),Zl(t,o)}compareTo(t){return Zl(this.value,t.getValue())}static negate(t){return t=ue.validate(t),Rn(t)}negate(){return new ue(Rn(this.value))}}function Yo(e,t){return ue.multiply(`${e}`,`${t}`)}function Un(e,t,o=8){return ue.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,ue.compareTo(e,t)}function Uo(e){return ue.negate(e)}function Zt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",y=s.split("").reverse();for(let I=0;I<y.length;I++)d+=y[I]+((I+1)%n==0&&I+1!=y.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function Go(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Gn=Ko,ia=Array.isArray,sa=e=>Jt(e)==="[object Map]",ua=e=>Jt(e)==="[object Set]",ca=e=>e instanceof Date,Mn=e=>typeof e=="function",Xo=e=>typeof e=="string",fa=e=>typeof e=="symbol",Ze=e=>e!==null&&typeof e=="object",Zo=e=>Ze(e)&&Mn(e.then)&&Mn(e.catch),Jo=Object.prototype.toString,Jt=e=>Jo.call(e),Ln=e=>Jt(e)==="[object Object]",Qo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||Qo&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=ft(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)ft(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Ln(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Ln(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=ha?Promise.resolve():null;function ma(e,...t){xn!==null?t&&t.length>0?xn.then(()=>{e(t)}):xn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function we(e){return typeof e=="number"?e:Number(e)}const ga={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ga[o]||"object"}function er(e){return e&&typeof e=="object"&&"setInterval"in e}function Qt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function tr(e){let t=!!e&&"length"in e&&e.length,o=Kt(e);return o==="function"||er(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function nr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function pa(e,t=[]){let o=t;return e!=null&&(tr(Object(e))?nr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Kt(e),n=Kt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Xe(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const dt=typeof window<"u";function Xn(e){return e==null}function _n(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lr(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 or(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function rr(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Jl(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function va(e,t=!0,o=!0){t?e=Jl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Jl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ya(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function ba(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Mt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ar(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const wa=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ye=Symbol.for("BroadcastKey");class Zn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||_n(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,s=t.uniqueId??"",u=(...f)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...f)};t.resolve=u}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):_n(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};t.resolve=s}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function en(e,t,o,n){const r=new Zn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function xa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new Zn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ut=e=>e.default??e;class Sa{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?kt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Pt=new Sa;function Ta(e){Pt=e}function Ca(e){Pt?Object.assign(Pt,e):Pt=e}function $a(e,t){ut(st).setValidator(e,t)}function Na(e){ut(st).deleteValidator(e)}let ir=["blur","clear"];function Ea(e){ir=e}function sr(){return ir}let ur=["focus","change","setValue"];function ka(e){ur=e}function cr(){return ur}function Pa(e){ut(st).messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const je=Symbol("ValidateSchemaKey");class fr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Pt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ut(st).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ut(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(st).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ut(st),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function tn(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new fr(t,o,e)}const Wt=Symbol.for("EventEmitterKey");class dr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Vt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function hr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ia(e,t){const o=Vt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Va(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function nn(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ae=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class ln{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Oa=new ln;function pt(){return Oa}function rt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Sn=Symbol("OriginalDateKey");function Jn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=pt());const s=e||t.prop||t.name;let u=new ln(s);u.parent=i;const f=I=>{a[Sn]||y(I),u?.set("modelValue",I)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Sn]??null,y=I=>{const g={};ft(!0,g,l.toRaw(I)),a[Sn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,I=>{u?.merge(I,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&y(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const I=l.inject(ye,null),g=en(a,I,s,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(S,b,...$)=>Reflect.apply(g.emit,g,[S,b,...$]);const h=l.inject(je,null),m=tn(a,h,{componentName:""});u.validateSchema=m,a[je]=m,l.provide(je,m),a[mt]=new Map,a.validate=(S=!0)=>{const b=[];let $=null;const j={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const M=S;$={name:L=>L?M.indexOf(L)!==-1:!1}}else if(S!=null&&typeof S=="object"){const M=S;if(Object.assign(j,M),Array.isArray(M.include)&&M.include.length>0){const L=M.include;$={name:V=>V?L.indexOf(V)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const L=M.exclude;$={name:V=>V?L.indexOf(V)===-1:!1}}else $={name:"*"}}if($){const M=g?.emitToChildren($,"validate",j);M&&Reflect.apply([].push,b,M)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(M=>{let L=[];return M.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(L=[...L,...V.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(S).forEach(M=>{let L=String(M);const V={componentName:"",fieldName:L,pureDataValidate:!0};if(u){const R=gr(u,L,V,g,m);a[mt].set(L,R);const N=S[L];N&&R.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),M={name:L=>j.includes(L),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(M,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const $=S;b={name:j=>j?$.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const $=S;if(Array.isArray($.include)&&$.include.length>0){const j=$.include;b={name:M=>M?j.indexOf(M)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const j=$.exclude;b={name:M=>M?j.indexOf(M)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=c();if(!b)return;const $={};if(ft(!0,$,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=$[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(M=>{b[M]=$[M]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys($).forEach(M=>{j.includes(M)||(b[M]=$[M])})}else Object.assign(b,$);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?f(S):g?.emitToChildren({name:b,messagingPolicy:"Once"},"setModelValue",S)},a.getModelValue=()=>c(),setTimeout(function(){g?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[je]=void 0,l.provide(je,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function mr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=pt());const i=e||t.prop||t.name;let s=new ln(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ye,null);let s=en(r,i,a,o);r[ye]=s,l.provide(ye,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(je,null);e.fieldName=e.fieldName??a;let f=tn(r,u,e);r[je]=f,l.provide(je,f),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,$=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,M=b.ignoreHidden??!0;$===!0&&e.disabled===!0||j===!0&&e.readonly===!0||M===!0&&Qt(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=f?.validate();h.push(b)}if(m){let b=null;const $={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:M=>M?j.indexOf(M)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign($,j),Array.isArray(j.include)&&j.include.length>0){const M=j.include;b={name:L=>L?M.indexOf(L)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const M=j.exclude;b={name:L=>L?M.indexOf(L)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",$);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&($=[...$,...j.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>f?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&f?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new dr(r);r[Wt]=c;const d=Vt((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sr()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cr()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ye]=void 0,l.provide(ye,null),s=null,f?.destroy(),r[je]=void 0,l.provide(je,null),f=null,c?.destroy(),r[Wt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(g,...h)=>{c&&Reflect.apply(c.emit,c,[g,...h])},onEvent:(g,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(g,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function gr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=tn({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,I=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)I=!0,y=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),I=!0,y=g.deep??!1}else typeof c=="boolean"&&(y=c),I=!0;if(I&&u){const g=u.validate();d.push(g)}if(y){let g=null;const h={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const m=c;g={name:S=>S?m.indexOf(S)!==-1:!1}}else if(c!=null&&typeof c=="object"){const m=c;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&f){const m=f.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=en(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function pr(){let t=l.getCurrentInstance()?.proxy,o=new dr(t);return t[Wt]=o,l.onUnmounted(()=>{o?.destroy(),t[Wt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(dt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const ot="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function qn(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function vr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;qn(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(ot);d&&(n.height=Yt(e,d),n.width=Ut(e,d),l.watch([()=>Yt(e,d),()=>Ut(e,d)],([I,g])=>{c.height=I,c.width=g}));const y=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([I,g,h=-1,m=-1,S=0,b=0])=>{qn(c,g,t,y,h,m,S,b)}),e.set(ot,c),c}function on(e){return e.get(ot)}function Ot(e,t){if(t=t??e.get(ot),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(ot),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(ot),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Dt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ut(e,t){return t=t??e.get(ot),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Da(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Fa(e){return!!e.getForParent(ot)}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Tn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=rt();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Tn(u,n))return u}const i=e.value;return Tn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Tn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return se(o)})}function Re(e){return De(e,"disabled",0,function(o){return se(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const yr=new Map,Gt=new Map;let jn=null;function Ra(e){jn=e}function br(e,t,o){if(o){let n=Gt.get(o);n||(n=new Map,Gt.set(o,n)),n.set(e,t)}else yr.set(e,t)}function ze(e,t,o){!o&&jn&&(o=jn(e)??void 0);let n=null;if(o){let r=Gt.get(o);r&&(n=r.get(t))}return n||(n=yr.get(t)),n}function Aa(e,t){for(let o in e){const n=e[o];br(o,n,t)}}function Ma(e){Gt.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ba(e=0,t=0){if(dt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function _a(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class qa{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=_a(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ft({},La(),t.safeAreaInset),i=Ba(n,r),s=ft({},i.pageLayout,t.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ra(t)}setAPI(t,o,n){br(t,o,n)}getAPI(t,o,n){return ze(t,o,n)}batchSetAPI(t,o){Aa(t,o)}clearScopeAPI(t){Ma(t)}getRootDomain(){return pt()}}const ja=[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],za=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ha=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),za.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ce(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Pe={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}},wr={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}},xr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Sr=[];for(const e in xr)Sr.push(e);const Ka=Symbol.for("InnerPageScopeKey"),Wa={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}},Ya=(e,t)=>({inheritAttrs:!0,props:{...xe,...wr,...Wa},setup(o,{slots:n}){const r=Jn(o.name,o),a=l.inject(Ka,!1);if(r){const c=vr(r,o);Ce({getPageContentHeight:()=>Yt(r,c),getPageContentWidth:()=>Ut(r,c),getPageHeaderHeight:()=>Ot(r,c),getPageFooterHeight:()=>Dt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[y,I])=>{if(c&&y){const g=l.toRaw(y),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h)}if(d&&I){const g=l.toRaw(I),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ua,create:Ga,scope:Fh}=ie("page"),Qn=Ga(Ya(Ua));function rn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function el(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Xa=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=rt(),s=i?on(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(E,x),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(x.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const x=Ke(r.padding);Object.assign(E,x)}return E}),I=l.ref(null),g=()=>{if(s&&I.value&&!Qt(I.value)){if(!n){const E=rn(I.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(nn(g,50,5,50,!0),window.ResizeObserver&&I.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(I.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function j(){a.emit("click-right")}function M(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},V=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:M},[r.rightText]);E.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},R=()=>{if(!r.titleShow)return null;const E=[],x=a.slots.default?a.slots.default():null;if(x)E.push(x);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],x=a.slots.bottom?a.slots.bottom():null;return x&&E.push(x),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],C=L();C&&q.push(C);const k=R();k&&q.push(k);const D=V();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:c.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const x={class:f.value,style:m.value,ref:I};return l.h("view",x,E)}}}),{componentName:Za,create:Ja,scope:Qa}=ie("header-bar"),tl=Ja(Xa(Za,Qa,Ee.ArrowLeft));function ei(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=rt(),i=a?on(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Ke(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(i&&c.value&&!Qt(c.value)){if(!o){const g=rn(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(nn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const I=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=Ne(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(g.paddingTop=Ne(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(g.paddingLeft=Ne(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(g.paddingRight=Ne(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(g.paddingBottom=Ne(f.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:I.value};return l.h("view",h,g)}}}}const{componentName:ti,create:ni,scope:Rh}=ie("footer-bar"),nl=ni(ei(ti));function li(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=rt(),r=l.computed(()=>({[e]:!0})),a=n?on(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const I=Ke(o.padding);Object.assign(a.contentPadding,I)}const c=Ot(n,a),d=Dt(n,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,f.height=y,a.contentPadding.top||c>0){const I=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+I}px`}if(a.contentPadding.bottom||d>0){const I=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+I}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=el(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Dt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:oi,create:ri,scope:Ah}=ie("content"),ai=ri(li(oi));function ii(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},ll=_e(ai,[["render",ii]]),bt="GroupStateKey",Tr=Symbol.for("GroupScopeKey");function an(){return l.inject(Tr,!1)}function sn(e=!0){l.provide(Tr,e)}function si(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Xn(r)||(e[n]=r)})}function ui(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};si(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function Cn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(bt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=de(a),d=de(i);s||(s=f.type??"grid");const y=()=>{const I=t===""||t===-1,g=de(t);let h=we(o);const m=de(n);if(!I){let $=(g-(h-1)*m)/h;for(;d!==-1&&$>d;)h++,$=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&$<c;)h--,$=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const I=++u.passport;setTimeout(()=>{I===u.passport&&y()},50)}}function un(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.layout}function cn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.order}function Ql(e,t=1){if(t==="stretch")return-1;const o=we(t);return o===-1?100:100*o/e}function fn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Ql(t.column,o),i>0&&(a.width=`${i}%`);const s=Ql(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function dn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=we(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=we(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Cr=Symbol("RollingStateKey");function ci(e){l.provide(Cr,e)}function fi(){return l.inject(Cr,null)}function zn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function di(e){let t=zn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=zn(o),document.body.removeChild(o)}return t}function hi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const mi={...xe,...wr,...xr};function gi(e,t,o){return{props:mi,emits:["update:collapse","header-click"],setup(n,r){const a=Jn(n.name,n,Sr),i=ui(a,{type:n.type}),s=an();sn(!0);const u=n.rollingDisplay?fi():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?un(a,!0).value:null),y=l.getCurrentInstance(),I=(z,Z=!1)=>{const te=y?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[te,T])=>{if(z&&te){const K=l.toRaw(te),Q=l.toRaw(z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),I(Q)}if(Z&&T){const K=l.toRaw(T),Q=l.toRaw(Z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),I(Q,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Z=s?cn(a,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const te=dn(Z,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=fn(Z,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ne(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const te=hi(R.value,i.layout.value.column,i.layout.value.gutter);Z=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),j=l.computed(()=>s||c.value?!0:se(n.isWrap)),M=[],L=z=>{M.push(z)},V=()=>{let z=M.length;M.splice(0,z)},R=l.ref(-1),N=z=>{const Z=el(z).width;Z>0&&Z!==R.value&&(R.value=Z)};Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,$,b],([z,Z,te])=>{i.order.index=0,Cn(a,z,Z,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),C=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ne(n.height)||""),Y=l.ref(!1),W=l.ref(""),X=l.ref(!1);let G=-1;const ee=(z,Z=!0)=>{const te=C.value;if(te&&Y.value!==z){if(G=G===-1?di(te):G,X.value=!0,Z)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",X.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${G}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${G}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else X.value=!1,W.value=`${G}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const re=z=>{r.emit("header-click",z)},P=()=>{w()},w=z=>{z=z??!Y.value,ee(z)};Ce({toggleCollapse:w,doLayout:()=>{M[0]&&(N(M[0]),Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let O=null,p=!0;const H=z=>{if(n.rules){const Z=l.toRaw(n.rules);I(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);I(Z,!0)}if(dt&&(z&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const Z=M[0];N(Z),window.ResizeObserver&&(O=new window.ResizeObserver(()=>{N(Z)}),O.observe(Z))}},_=()=>{O?.disconnect(),O=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),c.value&&u){let z=null,Z=u.initialHeight;u.observe(C.value,te=>{if(te!==f.value)if(te)f.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,f.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),f.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=zn(C.value);T<=0?W.value=Z:(W.value=`${T}px`,Z=W.value)}p||_()}})}}),l.onUnmounted(()=>{O?.disconnect(),u&&u.unobserve(C.value)});const A=(z="right")=>{const Z=[];if(E.value){const K={class:x.value},Q=l.h("span",K,[E.value]);Z.push(Q)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Z.push(T),Z.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:P},Z):null},U=(z,Z,te,T)=>{const K={...m.value};return Z===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:L,key:`${Z}`,class:K,style:S.value},z)};return()=>{if(c.value&&f.value!==!0){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[])}i.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},Q=l.h("div",K,[r.slots.header()]);z.push(Q)}else{const K=[],Q=n.collapsePosition==="left";if(Q&&n.showCollapse){const le=A("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!Q&&n.showCollapse){const le=A("right");le&&K.push(le)}if(K.length>0){const le={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},fe=l.h("div",le,K);z.push(fe)}}V();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=U(te,Z++,0,te.length);z.push(K)}else if(T==="flow"){const K=U(te,Z++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const Q=te[K],le=U([Q],Z++,K,te.length);z.push(le)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[z])}else return z}}}}const{componentName:pi,create:vi,scope:yi}=ie("group"),bi=(e,t)=>(e=e??Ee.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),ol=vi(gi(pi,yi,bi));function wi(e){return e===window}const xi=/matrix\((.+)\)/,$r=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(wi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=xi.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Si{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Ti{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Si,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const eo=new Ti,Nr={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:Ci,create:$i}=ie("price"),Ni=$i({props:{...Nr},setup(e){const t=l.computed(()=>({[Ci]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Mt(e.price)==0?"":Zt(e.price,e.decimalLength,!0,we(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ei=["innerHTML"],ki=["innerHTML"];function Pi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ei)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ki)):l.createCommentVNode("",!0)],2)}const hn=_e(Ni,[["render",Pi]]),{componentName:$n,create:Ii}=ie("hint-text"),Vi=Ii({components:{Price:hn},props:{...Nr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,q,C,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,G=x.split("-");let ee=[];G[0]==="top"?ee=["top","bottom","right","left"]:G[0]==="bottom"?ee=["bottom","top","right","left"]:G[0]==="left"?ee=["left","top","bottom","right"]:G[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},P=[];for(let w=0;w<ee.length;w++){const F=ee[w];if(P[0]=F,G[1]&&(P[1]=G[1]),F==="top"){const O=q.y-Y-e.arrowSize-e.offset;if(O>=0){re.top=O;let p=0;G[1]==="start"?p=q.x:G[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="bottom"){const O=q.y+k+e.arrowSize+e.offset;if(O+Y<=X){re.top=O;let p=0;G[1]==="start"?p=q.x:G[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="left"){const O=q.x-D-e.arrowSize-e.offset;if(O>=0){re.left=O;let p=0;G[1]==="start"?p=q.y:G[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}else if(F==="right"){const O=q.x+C+e.arrowSize+e.offset;if(O+D<=W){re.left=O;let p=0;G[1]==="start"?p=q.y:G[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}}return{bestPlacement:P.join("-"),bestInsetRect:re}},c=(x,q,C=10)=>{if(!dt||q===!1||!x)return;n.value=$r(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:W}=f(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0},d=l.ref(0),y=Vt(()=>{c(e.message,e.visible)},10),I=l.ref(e.visible);l.watch(()=>e.visible,x=>{I.value=x});const g=l.computed(()=>I.value&&h.value),h=l.ref(!0),m=Vt(x=>{const q=x[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),eo.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeMount(()=>{eo.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const x={[$n]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),$=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),j=l.computed(()=>{const x=[`${$n}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),M=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),L=l.computed(()=>({[`${$n}__arrow`]:!0})),V=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:b,styles:$,textClasses:j,textStyles:M,arrowClasses:L,arrowStyles:V,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{I.value=!1,t.emit("update:visible",!1)}}}}),Oi=["innerHTML"];function Di(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Oi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Lt=_e(Vi,[["render",Di]]);class Er{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Hn={},Fi=new Er,vt=new Map,Xt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}vt.clear()}},Ri=e=>{e.unmount=Xt;const t=document.getElementById(e.id);if(t){const o=vt.get(e.id);o?e={...Hn,...o,...e}:e={...Hn,...e},e.transition=!1;const n=l.createVNode(Lt,e);return l.render(n,t),e.id}},Ai=e=>{e.unmount=Xt;let t=e.id??`hinttext_${Fi.get()}`;e={...Hn,...e},e.id=t,vt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Lt,e);return l.render(n,o),document.body.appendChild(o),t},Mi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Oe={show(e,t,o={},n=!0){Mi(t);const r=o.id;return r&&vt.has(r)?Ri({...o,message:t,reference:e}):(n&&Xt(),Ai({...o,message:t,reference:e}))},hide(e){Xt(e)},install(e){e.config.globalProperties.$hintText=Oe}};function Li(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Pe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const s=rt(),u=an();sn(!1);const f=l.computed(()=>u&&s?un(s,!1).value:null),c=e,d=l.ref(null),y=l.computed(()=>{const T={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:se(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),I=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ne(r.width));else{const K=u&&s?cn(s,!1):null;if(f.value&&K){if(f.value.type==="grid"){const Q=dn(K,f.value,r.span,r.offset);Object.assign(T,Q)}else if(f.value.type==="flow"){const Q=fn(K,f.value,r.span,r.offset,r.width);Object.assign(T,Q)}}}if(typeof I.value=="function"){const K=I.value(i);K&&Object.assign(T,K)}else if(I.value&&typeof I.value=="object"){const K=I.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Le.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${$.value}`]:!0})),M=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),L=De(l.toRef(r,"labelWidth"),"labelWidth",Le.Near),V=l.computed(()=>L&&L.value?{width:Ne(L.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ce({setRequired(T){m.value=T},setErrorTip(T){x.errorTip=T},setErrorIcon(T){x.errorIcon=T},setWarnTip(T){x.warnTip=T},setWarnIcon(T){x.warnIcon=T},setInfoTip(T){x.infoTip=T},setInfoIcon(T){x.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){I.value=T}});const q=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),k=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),Y=l.computed(()=>r.errorTip||x.errorTip),W=l.computed(()=>r.errorIcon||x.errorIcon),X=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),G=()=>X.value.length>0,ee=l.computed(()=>X.value==="error"?Y.value:X.value==="warn"?k.value:X.value==="info"?q.value:""),re=l.computed(()=>X.value==="error"?W.value:X.value==="warn"?D.value:X.value==="info"?C.value:null),P=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${X.value}`]:!0,[`${c}--animate`]:!0};return X.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),w=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":L&&L.value&&(T["padding-left"]=Ne(L.value)),T}),F=l.ref();let O="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,Q,le])=>{F.value&&(T&&!pe(K)?O?o.show(F.value,K,{...le,id:O,type:Q},!0):O=o.show(F.value,K,{...le,type:Q},!0):o.hide(O))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let Q of T)if(Q.intersectionRatio>0){K=!0,K&&a.emit("appear",Q);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{!p||!F.value||(p.unobserve(F.value),p=null)};l.watch(()=>se(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{se(r.appearListen)&&H()}),l.onUnmounted(_);const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,Q={class:R.value},le=l.h("div",Q,[K]);if(T.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();T.push(ce)}const fe={class:M.value,style:V.value};return l.h("div",fe,T)},A=()=>{const T=[];if(a.slots.prepend){const Q=a.slots.prepend();T.push(Q)}if(a.slots.default){const Q=a.slots.default();T.push(Q)}if(a.slots.append){const Q=a.slots.append();T.push(Q)}if(a.slots.fixedTip){const Q={class:[`${c}__fixed-tip`]},le=l.h("div",Q,[a.slots.fixedTip()]);T.push(le)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},U=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Z=()=>{if(!G())return null;const T=[],K=U();K&&T.push(K);const Q=z();Q&&T.push(Q);const le={class:P.value,style:w.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],Q=B();Q&&K.push(Q);const le=A();le&&K.push(le);const fe={class:j.value},ce=l.h("div",fe,K);T.push(ce);const ge=Z();ge&&T.push(ge);const He=te();He&&T.push(He);const et={class:y.value,style:g.value,prop:r.prop};return l.h("div",et,T)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("item"),Se=_i(Li(Bi,qi,Oe,!1));function ji(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=rt(),a=an();sn(!1);const i=l.computed(()=>a&&r?un(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?cn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=dn(d,i.value,o.span,o.offset);Object.assign(c,y)}else if(i.value.type==="flow"){const y=fn(d,i.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=Ne(o.width)),c;else o.width&&(c.width=Ne(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:zi,create:Hi,scope:Mh}=ie("slot-item"),rl=Hi(ji(zi));function Ki(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=rt(),s=an();sn(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=un(i,!1),d=cn(i,!1);if(c.value&&d)if(c.value.type==="grid"){const y=dn(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=fn(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=Ne(o.width))}else o.width&&(f.width=Ne(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const I=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(I)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Wi,create:Yi,scope:Lh}=ie("row-item"),al=Yi(Ki(Wi)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},to={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 Ui(e,t,o){return{props:{...xe,...Pe,...to},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,I=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let m=he(n,"hintText"),S=l.ref(!1);const b=C=>{let D=C.target.value;c.value=!0,pe(m.value)||(S.value=!0),s("focus",D,C)},$=C=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let D=C.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,C)},j=()=>{s("clear","")},M=l.ref(!1);let L=null;const V=()=>{n.showTooltip&&M.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{M.value=!0},150))},R=()=>{L&&(clearTimeout(L),M.value=!1,L=null)},N=l.computed(()=>M.value||S.value),E=l.computed(()=>M.value?d.value:m.value),x=l.computed(()=>Mt(n.unit)>0),q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:I.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onChange:h,onInput:g,onFocus:b,onBlur:$,onMouseover:V,onMouseleave:R},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.default&&(X.fixedTip=r.slots.fixedTip);const ee={...ke(n,to),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Gi,create:Xi,scope:Zi}=ie("input-item"),il=Xi(Ui(Gi,Zi,Se));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function kr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Ji(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function es(){const e=l.getCurrentInstance();return new Qi(e.proxy)}function Pr(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function Ir(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=kr(e,i);if(Array.isArray(s)&&s.length>0){const u=Ir(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=Pr(e,i,a);else{let f=Ft(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function ts(e){return{text:e,value:e}}const no={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 ns(e,t,o){return{props:{...xe,...Pe,...no},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(U=>lt(n,U)).join(" "):""),I=(A,U,z,Z=!0)=>{const te=Ir(n,A,U,z);if(te===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const Q=te[K],le=d.value[K];if(!Pr(n,Q,le)){T=!1;break}}if(!T){d.value=te;let K=[],Q=[],le=[];te.forEach(He=>{const et=Ft(n,He),ht=lt(n,He);K.push(et),le.push(ht),n.valueType==="text"?Q.push(ht):n.valueType==="item"?Q.push(He):Q.push(et)});let fe,ce,ge;se(n.multiple)?(c.value=K,fe=l.toRaw(Q),ce=le,ge=l.toRaw(te)):(c.value=K[0]??"",fe=l.toRaw(Q[0]??""),ce=le[0]??"",ge=l.toRaw(te[0])),Z&&(s("update:modelValue",fe),s("change",fe,ge)),s("update:text",ce)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,A=>se(A)),b=es(),$=async(A,U)=>{if(A){const z=await b.load("select",A,U);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>ts(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([A,U])=>{h.value=null,$(A,U)},{immediate:!S.value});let j=!1;const M=()=>{j||(j=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([A,U])=>{if(N()&&se(n.multiple)){Xe(U,c.value)||(c.value=U);return}I(U,n.valueType,m.value,!1),s("setValue",U)});let L=null,V=l.ref(!1);typeof n.remoteMethod=="function"&&(L=async A=>{if(A==null){h.value=null;return}V.value=!0;try{const U=await n.remoteMethod(A);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}V.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async A=>{if(A==null){h.value=null;return}V.value=!0;try{const U=await n.filterMethod(A,g.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}V.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),x=e,q=l.computed(()=>({[x]:!0})),C=A=>{n.allowCreate||N()&&se(n.multiple)?(s("update:modelValue",A),s("change",A),s("update:text",A),c.value=A):I(A,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=A=>{let z=A.target.value;E.value=!0,pe(k.value)||(D.value=!0),s("focus",z,A)},W=A=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=A.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),O.value||s("blur",z,A)},X=()=>{s("clear","")},G=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&G.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{G.value=!0},150))},P=()=>{ee&&(clearTimeout(ee),G.value=!1,ee=null)},w=l.computed(()=>G.value||D.value),F=l.computed(()=>G.value?y.value:k.value),O=l.ref(!1),p=A=>{O.value=A,s("visible-change",A),A||s("selected")},H=A=>{s("remove-tag",A)},_=(A,U)=>{const z=[];return A.forEach((Z,te)=>{const T=kr(n,Z);if(Array.isArray(T)&&T.length>0){const K=_(T,U),Q=lt(n,Z),fe={key:`${Q}_${te}`,label:Q};z.push(l.h(v.ElOptionGroup,fe,{default:()=>K}))}else{const K=Ft(n,Z),Q=lt(n,Z),le=Ji(n,Z),ce={key:`${K}_${te}`,label:Q,disabled:le,value:K};if(typeof U=="function")z.push(l.h(v.ElOption,ce,{default:()=>U(Z)}));else if(n.optionType==="item"){const ge={class:{"fox-select-item__option-left":!0}},He=l.h("span",ge,[K]),et={class:{"fox-select-item__option-right":!0}},ht=l.h("span",et,[Q]),tt=l.h("div",{class:{"fox-select-item__option":!0}},[He,ht]);z.push(l.h(v.ElOption,ce,{default:()=>tt}))}else n.optionType==="value"?z.push(l.h(v.ElOption,ce,{default:()=>[K]})):z.push(l.h(v.ElOption,ce))}}),z},B=l.ref();return Ce({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const U={...Ye(r.attrs),ref:B,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:X,onChange:C,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof L=="function"&&(U["remote-method"]=L,U.loading=V.value),typeof R=="function"&&(U["filter-method"]=R,U.loading=V.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Z=[],te=l.h(v.ElSelect,U,z);Z.push(te);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const Q={...ke(n,no),hintText:F.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:P};return S.value&&(Q["appear-listen"]=!0,Q.onAppear=M),l.h(o,Q,T)}}}}const{componentName:ls,create:os,scope:rs}=ie("select-item"),sl=os(ns(ls,rs,Se));var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",y="quarter",I="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,b={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("_")},$=function(C,k,D){var Y=String(C);return!Y||Y.length>=k?C:""+Array(k+1-Y.length).join(D)+C},j={s:$,z:function(C){var k=-C.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+$(Y,2,"0")+":"+$(W,2,"0")},m:function C(k,D){if(k.date()<D.date())return-C(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),X=D-W<0,G=k.clone().add(Y+(X?-1:1),d);return+(-(Y+(D-W)/(X?W-G:G-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:I,w:c,d:f,D:g,h:u,m:s,s:i,ms:a,Q:y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},M="en",L={};L[M]=b;var V=function(C){return C instanceof x},R=function C(k,D,Y){var W;if(!k)return M;if(typeof k=="string"){var X=k.toLowerCase();L[X]&&(W=X),D&&(L[X]=D,W=X);var G=k.split("-");if(!W&&G.length>1)return C(G[0])}else{var ee=k.name;L[ee]=k,W=ee}return!Y&&W&&(M=W),W||!Y&&M},N=function(C,k){if(V(C))return C.clone();var D=typeof k=="object"?k:{};return D.date=C,D.args=arguments,new x(D)},E=j;E.l=R,E.i=V,E.w=function(C,k){return N(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function C(D){this.$L=R(D.locale,null,!0),this.parse(D)}var k=C.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,X=Y.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var G=W.match(m);if(G){var ee=G[2]-1||0,re=(G[7]||"0").substring(0,3);return X?new Date(Date.UTC(G[1],ee,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)):new Date(G[1],ee,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,X=!!E.u(Y)||Y,G=E.p(D),ee=function(_,B){var A=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return X?A:A.endOf(f)},re=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},P=this.$W,w=this.$M,F=this.$D,O="set"+(this.$u?"UTC":"");switch(G){case I:return X?ee(1,0):ee(31,11);case d:return X?ee(1,w):ee(0,w+1);case c:var p=this.$locale().weekStart||0,H=(P<p?P+7:P)-p;return ee(X?F-H:F+(6-H),w);case f:case g:return re(O+"Hours",0);case u:return re(O+"Minutes",1);case s:return re(O+"Seconds",2);case i:return re(O+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,X=E.p(D),G="set"+(this.$u?"UTC":""),ee=(W={},W[f]=G+"Date",W[g]=G+"Date",W[d]=G+"Month",W[I]=G+"FullYear",W[u]=G+"Hours",W[s]=G+"Minutes",W[i]=G+"Seconds",W[a]=G+"Milliseconds",W)[X],re=X===f?this.$D+(Y-this.$W):Y;if(X===d||X===I){var P=this.clone().set(g,1);P.$d[ee](re),P.init(),this.$d=P.set(g,Math.min(this.$D,P.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,X=this;D=Number(D);var G=E.p(Y),ee=function(w){var F=N(X);return E.w(F.date(F.date()+Math.round(w*D)),X)};if(G===d)return this.set(d,this.$M+D);if(G===I)return this.set(I,this.$y+D);if(G===f)return ee(1);if(G===c)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[G]||1,P=this.$d.getTime()+D*re;return E.w(P,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var X=D||"YYYY-MM-DDTHH:mm:ssZ",G=E.z(this),ee=this.$H,re=this.$m,P=this.$M,w=W.weekdays,F=W.months,O=function(B,A,U,z){return B&&(B[A]||B(Y,X))||U[A].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,A,U){var z=B<12?"AM":"PM";return U?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:E.s(P+1,2,"0"),MMM:O(W.monthsShort,P,F,3),MMMM:O(F,P),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:O(W.weekdaysMin,this.$W,w,2),ddd:O(W.weekdaysShort,this.$W,w,3),dddd:w[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,re,!0),A:H(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:G};return X.replace(S,function(B,A){return A||_[B]||G.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var X,G=E.p(Y),ee=N(D),re=(ee.utcOffset()-this.utcOffset())*n,P=this-ee,w=E.m(this,ee);return w=(X={},X[I]=w/12,X[d]=w,X[y]=w/3,X[c]=(P-re)/6048e5,X[f]=(P-re)/864e5,X[u]=P/r,X[s]=P/n,X[i]=P/o,X)[G]||P,W?w:E.a(w)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return L[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),X=R(D,Y,!0);return X&&(W.$L=X),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},C}(),q=x.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",I],["$D",g]].forEach(function(C){q[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),N.extend=function(C,k){return C.$i||(C(k,x,N),C.$i=!0),N},N.locale=R,N.isDayjs=V,N.unix=function(C){return N(1e3*C)},N.en=L[M],N.Ls=L,N.p={},N})})(Vr);var as=Vr.exports;const We=Qe(as);var Or={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(m){this[h]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},y=function(h,m){var S,b=s.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,m))>-1){S=$>12;break}}else S=h===(m?"pm":"PM");return S},I={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,x){var q=x&&x.toUpperCase();return E||S[x]||o[x]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,k,D){return k||D.slice(1)})})).match(n),$=b.length,j=0;j<$;j+=1){var M=b[j],L=I[M],V=L&&L[0],R=L&&L[1];b[j]=R?{regex:V,parser:R}:M.replace(/^\[|\]$/g,"")}return function(N){for(var E={},x=0,q=0;x<$;x+=1){var C=b[x];if(typeof C=="string")q+=C.length;else{var k=C.regex,D=C.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(X){var G=X.afternoon;if(G!==void 0){var ee=X.hours;G?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,$=b.parse;b.parse=function(j){var M=j.date,L=j.utc,V=j.args;this.$u=L;var R=V[1];if(typeof R=="string"){var N=V[2]===!0,E=V[3]===!0,x=N||E,q=V[2];E&&(q=V[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var G=g(W)(Y),ee=G.year,re=G.month,P=G.day,w=G.hours,F=G.minutes,O=G.seconds,p=G.milliseconds,H=G.zone,_=new Date,B=P||(ee||re?1:_.getDate()),A=ee||_.getFullYear(),U=0;ee&&!re||(U=re>0?re-1:_.getMonth());var z=w||0,Z=F||0,te=O||0,T=p||0;return H?new Date(Date.UTC(A,U,B,z,Z,te,T+60*H.offset*1e3)):X?new Date(Date.UTC(A,U,B,z,Z,te,T)):new Date(A,U,B,z,Z,te,T)}catch{return new Date("")}}(M,R,L),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&M!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var C=R.length,k=1;k<=C;k+=1){V[1]=R[k-1];var D=S.apply(this,V);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===C&&(this.$d=new Date(""))}else $.call(this,j)}}})})(Or);var is=Or.exports;const ss=Qe(is);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="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 y}});return i.bind(this)(d)}}})})(Dr);var us=Dr.exports;const cs=Qe(us);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,I,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[I]),$=S||b.map(function(M){return M.slice(0,g)});if(!h)return $;var j=m.weekStart;return $.map(function(M,L){return $[(L+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,y){return d.formats[y]||function(I){return I.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Fr);var fs=Fr.exports;const ds=Qe(fs);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var y=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),I=this.diff(y,o,!0);return I<0?i(this).startOf("week").week():Math.ceil(I)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Rr);var hs=Rr.exports;const ms=Qe(hs);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Ar);var gs=Ar.exports;const ps=Qe(gs);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Mr);var vs=Mr.exports;const ys=Qe(vs);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Lr);var bs=Lr.exports;const ws=Qe(bs);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Br);var xs=Br.exports;const Ss=Qe(xs);We.extend(ds);We.extend(cs);We.extend(ss);We.extend(ms);We.extend(ps);We.extend(ys);We.extend(ws);We.extend(Ss);const Me={format(e,t){return We(e).format(t)},parser(e,t){return We(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Me.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Me.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},lo={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"}},oo={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 Ts(e,t,o){return{props:{...xe,...Pe,...lo,...oo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),I=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const A=[...d.value];A[0]=B,d.value=A}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const j=B=>{let U=B.target.value;c.value=!0,pe(b.value)||($.value=!0),s("focus",U,B)},M=B=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let U=B.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,B)},L=()=>{s("clear","")},V=B=>{s("calendar-change",B)},R=(B,A,U)=>{s("panel-change",B,A,U)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Le.Near),x=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Le.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Le.Near),C=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Le.Near);let k=null;const D=l.ref(se(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const A=[];Array.isArray(q.value)?(A[0]=d.value?d.value[0]??q.value[0]:null,A[1]=q.value[1]??q.value[0]):(A[0]=d.value?d.value[0]??q.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Me.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const A=[];A[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?A[1]=k[1]:A[1]=k,A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=se(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const A=[d.value[0]];Array.isArray(q.value)?A[1]=q.value[1]??q.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=q.value;s("update:modelValue",d.value)}else Xe(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&B()}),l.watch([()=>d.value],([A])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(A))try{let z=A[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Me.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray(C.value)&&C.value.findIndex(T=>z==T)!==-1)&&(U=!0)}catch(z){console.error(z)}D.value!==U&&(D.value=U)},{immediate:!0})}const X=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),G=l.ref(),ee=l.ref(),re=/^\d+$/,P=(B,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,A):re.test(B)&&B.length===n.flashFillThreshold,w=(B,A)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(B,A);else{const Z=n.flashFillFormat??"YYYYMMDD";U=Me.parser(B,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Me.format(U,z)},F=B=>B?B.endsWith("range"):!1,O=B=>{if(!B.target)return;const A=B.target.value??"";if(P(A,n.type)){const U=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=U,g(z)}else g(U)}},p=B=>{if(!B.target)return;const A=B.target.value??"";if(P(A,n.type)){const U=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=U,g(z)}else g(U)}},H=()=>{if(n.flashFill&&G.value&&G.value.$el)if(F(n.type)){const B=G.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",O),B[1]&&B[1].addEventListener("input",p)}else{const B=G.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",O)}},_=()=>{if(n.flashFill&&G.value&&G.value.$el)if(F(n.type)){const B=G.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",O),B[1]&&B[1].removeEventListener("input",p)}else{const B=G.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",O)}};return l.onMounted(H),l.onBeforeUnmount(_),Ce({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:I.value,type:h.value,ref:ee,class:S.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:L,onFocus:j,onBlur:M,onCalendarChange:V,onPanelChange:R,onVisibleChange:N},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const z=[],Z=l.h(v.ElDatePicker,A,U);z.push(Z);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ce={class:X.value},ge=l.h("div",ce,{default:()=>[le,fe]});z.push(ge)}if(!i.value&&!a.value){const le={label:x.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(v.ElCheckbox,le),ce=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ce}}const K={...ke(n,lo,oo),ref:G,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:Cs,create:$s,scope:Ns}=ie("date-item"),ul=$s(Ts(Cs,Ns,Se)),ro={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Es(e,t,o){return{props:{...xe,...Pe,...ro},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,I=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let R=L.target.value;c.value=!0,pe(h.value)||(m.value=!0),s("focus",R,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let R=L.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,L)},$=()=>{s("clear","")},j=L=>{s("visible-change",L)},M=l.ref();return Ce({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const V={...r.attrs,ref:M,class:I.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b,onVisibleChange:j},R={},N=[],E=l.h(v.ElTimePicker,V,R);N.push(E);const x={default:()=>N};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...ke(n,ro),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:ks,create:Ps,scope:Is}=ie("time-item"),cl=Ps(Es(ks,Is,Se)),ao={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vs(e,t,o){return{props:{...xe,...Pe,...ao},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,I=l.computed(()=>({[y]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let V=M.target.value;c.value=!0,pe(h.value)||(m.value=!0),s("focus",V,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let V=M.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,M)},$=()=>{s("clear","")},j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const L={...r.attrs,ref:j,class:I.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b},V={},R=[],N=l.h(v.ElTimeSelect,L,V);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,ao),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Os,create:Ds,scope:Fs}=ie("time-select-item"),fl=Ds(Vs(Os,Fs,Se));function io(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function so(e,t,o=20){if(typeof t=="string"&&(t=we(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Yo(`${e}`,`${t}`);return io(n)}else{let n=Un(`${e}`,Uo(`${t}`),20);return io(n)}}function Rs(e,t=-1,o=!1,n=3,r=","){return Zt(e,t,o,n,r)}function uo(e,t,o,n,r=!0){if(e==="")return"";if(e=Go(e),t=we(t),t==1)return e;if(n)e=so(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(we(o)+2,"0"):e=Un(e,1,we(o)));else{let a=-1*t;e=so(e,a)}return e}function co(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=An(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const fo={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 As(e,t,o){return{props:{...xe,...Pe,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=he(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,k,D])=>{if(pe(C)){c.value="";return}const Y=uo(C,k,D,!1);c.value!==Y&&(c.value=Y)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:y}=Be.useFoxI18n(t),I=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!pe(c.value)?C=Rs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=y(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let C=S.value;return pe(C)&&(C=n.errorTip??""),C}),$=l.ref(""),j=l.ref(!1),M=(C,k)=>{if(C=`${C}`,pe(C)){c.value="",f.value="",k.forEach(D=>{s(D,"")}),se(n.showTip)&&j.value&&(j.value=!1);return}if(C.length>=2){let D=C;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(c);return}}if(C!="-"){if(!lr(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&or(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&rr(C)>Number(n.decimalLength)){l.triggerRef(c);return}let D=co(C,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&we(n.min)>=0){l.triggerRef(c);return}$.value=C,se(n.showTip)&&(j.value=C.length>0),c.value=C,f.value=uo(C,n.rates,n.precision,!0),k.forEach(D=>{s(D,f.value)})},L=C=>{M(C,["update:modelValue","input"])},V=C=>{M(C,["update:modelValue","change"])},R=C=>{if(u.value=!0,se(n.showTip)){let k=c.value;pe(k)&&(k=n.hintText),pe(k)||($.value=k,j.value=!0)}S.value="",s("focus",f.value,C)},N=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&j.value===!0&&(j.value=!1)},0),!pe(c.value)){let k=co(c.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",f.value,C),s("blur",f.value,C)},E=()=>{s("clear","")},x=l.computed(()=>Mt(n.unit)>0),q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:I.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:L,onChange:V,onFocus:R,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const ee={...ke(n,fo),errorTip:b.value,hintText:$.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Ms,create:Ls,scope:Bs}=ie("money-item"),dl=Ls(As(Ms,Bs,Se)),ho={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 _s(e,t,o){return{props:{...xe,...Pe,...ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,I=l.computed(()=>({[y]:!0,[`${y}__append`]:L.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=R=>{d.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)};let S=he(n,"hintText"),b=l.ref(!1);const $=R=>{let E=R.target.value;c.value=!0,pe(S.value)||(b.value=!0),s("focus",E,R)},j=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let E=R.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,R)},M=()=>{s("clear","")},L=l.computed(()=>Mt(n.unit)>0),V=l.ref();return Ce({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const N={...Ye(r.attrs),ref:V,class:I.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:M,onChange:m,onInput:h,onFocus:$,onBlur:j},E={},x=[],q=l.h(v.ElInputNumber,N,E);x.push(q);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...ke(n,ho),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(L.value){const W={class:g.value},X=l.h("div",W,[n.unit]);C.append=()=>X}return l.h(o,D,C)}}}}const{componentName:qs,create:js,scope:zs}=ie("input-number-item"),hl=js(_s(qs,zs,Se));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Hs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ks=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ws(){const e=l.getCurrentInstance();return new Ks(e.proxy)}function Kn(e,t,o){const n=Ge(e,t),r=Ge(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function _r(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=_r(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ge(e,f)===s;else if(o==="item")u=Kn(e,f,s);else{let c=ct(e,f);c==null&&(c=Ge(e,f)),u=c===s}if(u){r.push(f),a=Hs(e,f);break}}if(!u)break}}return r}function Ys(e){return{text:e,value:e}}const mo={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 Us(e,t,o){return{props:{...xe,...Pe,...mo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(U=>Ge(n,U)).join(" "):Ge(n,B)).join(" "):""),I=(_,B,A,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===_)return;c.value=_;const T=l.toRaw(_);if(U){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const Q=[];K.forEach(le=>{const ce=(le.pathNodes??[]).map(ge=>ge.data);Q.push(ce)}),s("update:pathNodes",Q)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",le)}s("update:modelValue",T),s("change",T)}return}const z=_r(n,_,B,A);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Z=z[z.length-1];if(E.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const T=[];z.forEach(K=>{const Q=`${Ge(n,K)}`;T.push(Q)}),T.length>0&&(R.value=T.join(n.separator))}else R.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],Q=d.value[T];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let le=0;le<K.length;le++)if(!Kn(n,K[le],Q[le])){te=!1;break}}else Kn(n,K,Q)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ce=[];for(let ge of le)fe.push(ct(n,ge)),n.valueType==="text"?ce.push(Ge(n,ge)):n.valueType==="item"?ce.push(ge):ce.push(ct(n,ge));T.push(fe),K.push(ce)}else T.push(ct(n,le)),n.valueType==="text"?K.push(Ge(n,le)):n.valueType==="item"?K.push(le):K.push(ct(n,le))}),c.value=T;const Q=l.toRaw(K);U&&(s("update:pathNodes",z),s("update:modelValue",Q),s("change",Q))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,_=>se(_)),m=Ws(),S=async(_,B)=>{if(_){const A=await m.load("cascader",_,B);if(A.length>0)if(typeof A[0]=="string"){let Z=A.map(te=>Ys(te));g.value=Z}else g.value=A}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{I(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&I(n.modelValue,"value",[],!1);let j=null,M=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){M.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}M.value=!1}});const L=l.ref(!1),V=e,R=l.ref(null),N=l.computed(()=>({[V]:!0,"is-incomplete":R.value&&R.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,A)=>{const U=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const z=B.pathLabels??[];let Z=[];z.forEach(te=>{te&&Z.push(te)}),Z.length>0&&(R.value=Z.join(n.separator))}else R.value=null;A(U)}),_}),x=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),c.value=_):I(_,"value",g.value,!0)};let q=he(n,"hintText"),C=l.ref(!1);const k=_=>{let A=_.target.value;L.value=!0,pe(q.value)||(C.value=!0),s("focus",A,_)},D=_=>{setTimeout(()=>{C.value&&(C.value=!1),L.value=!1},0);let A=_.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),w.value||s("blur",A,_)},Y=()=>{s("clear","")},W=l.ref(!1);let X=null;const G=()=>{n.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},ee=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},re=l.computed(()=>W.value||C.value),P=l.computed(()=>W.value?y.value:q.value),w=l.ref(!1),F=_=>{w.value=_,s("visible-change",_),_||s("selected")},O=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return Ce({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:R.value||f.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:Y,onChange:x,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:O,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=M.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const U=[],z=l.h(v.ElCascader,B,A);U.push(z);const Z={default:()=>U};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...ke(n,mo),hintText:P.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:G,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=$),l.h(o,T,Z)}}}}const{componentName:Gs,create:Xs,scope:Zs}=ie("cascader-item"),ml=Xs(Us(Gs,Zs,Se)),go={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,t,o){return{props:{...xe,...Pe,...go},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,I=l.computed(()=>({[y]:!0})),g=V=>{d.value=V,s("update:modelValue",V),s("input",V)},h=V=>{s("change",V)},m=V=>{s("select",V)};let S=he(n,"hintText"),b=l.ref(!1);const $=V=>{let N=V.target.value;c.value=!0,pe(S.value)||(b.value=!0),s("focus",N,V)},j=V=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,V)},M=()=>{s("clear","")},L=l.ref();return Ce({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const R={...r.attrs,ref:L,class:I.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:M,onChange:h,onInput:g,onFocus:$,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],x=l.h(v.ElAutocomplete,R,N);E.push(x);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,go),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:Qs,create:eu,scope:tu}=ie("autocomplete-item"),gl=eu(Js(Qs,tu,Se));function nu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(y=>y[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ou(){const e=l.getCurrentInstance();return new lu(e.proxy)}const qr={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 ru(e,t){return{props:{...qr},setup(o,{attrs:n,slots:r}){const a=ou(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=nu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:jh,create:au,scope:zh}=ie("mapping"),Rt=au(ru());function iu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function su(e,t){return{props:{...qr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=iu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:Hh,create:uu,scope:Kh}=ie("table-mapping-column"),pl=uu(su()),cu=Symbol.for("TableStateKey");function po(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function fu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(cu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=po(s.row,s.column.property),f=a?po(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),I={class:{"el-radio":!0,"is-checked":c}};return l.h("label",I,[y])}};return l.h(v.ElTableColumn,{...n},i)}}}}const{componentName:Wh,create:du,scope:Yh}=ie("table-radio-column"),vl=du(fu()),hu={},mu={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"},gu=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),pu=[gu];function vu(e,t){return l.openBlock(),l.createElementBlock("svg",mu,pu)}const yu=_e(hu,[["render",vu]]),{componentName:Uh,create:bu,scope:Gh}=ie("table-setting"),wu={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:"不固定"}},xu=bu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:yu,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...wu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=p=>p.length>1,y=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(A=>{H.some(U=>U.prop===A.prop?(A.label=U.label,!0):!1)});const _=[];r.value=p.map((A,U)=>(!(A.label===""||A.type)&&A.visible!==!1&&_.push(A.prop),{...A,sortIndex:U})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),L.value=_},I=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>I(B));for(let B of H){const A=I(B);if(_.indexOf(A)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,A)=>({...B,sortIndex:A})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}y(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,$.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&($.value=!0),L.value=H,m()},M=()=>{h(n),m()},L=l.ref([]),V=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,$.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&($.value=!0),m()},R=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,x=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const A=Number(N.index),U=Number(_.dataset.index);if(A!==U){if(A<U){const z=r.value[A];r.value.splice(A,1),r.value.splice(U,0,z)}else{const z=r.value[A];r.value.splice(A,1),r.value.splice(U+1,0,z)}y(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},X=p=>{const H=r.value[p];H.fixed=void 0,m()},G=new Map;let ee=null;function re(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:j,handleReset:M,checkedValue:L,handleCheckChange:V,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:C,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:X,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const A=Math.floor(B.offsetWidth);if(Math.floor(re(B))>A){let z=G.get(H);if(z){if(z===ee)return;Oe.hide(z)}z=Oe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),G.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=G.get(H);_&&(Oe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Oe.hide(ee),ee=Oe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Oe.hide(ee),ee=null)}}}}),Su={class:"fox-table-setting"},Tu={class:"fox-table-setting__header"},Cu={class:"fox-table-setting__body"},$u={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Nu={key:0,class:"fox-table-setting__body-title"},Eu=["data-index","draggable"],ku=["onMouseover","onMouseleave"],Pu={class:"tools-item"},Iu={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"},Ou=["data-index","draggable"],Du=["onMouseover","onMouseleave"],Fu={class:"tools-item"},Ru={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Au={key:0,class:"fox-table-setting__body-title"},Mu=["data-index","draggable"],Lu=["onMouseover","onMouseleave"],Bu={class:"tools-item"};function _u(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),y=l.resolveComponent("fox-checkbox"),I=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Su,[l.createElementVNode("div",Tu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Cu,[l.createVNode(I,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",$u,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Nu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,ku)]),_:2},1032,["label"]),l.createElementVNode("div",Pu,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Eu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Iu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Vu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Du)]),_:2},1032,["label"]),l.createElementVNode("div",Fu,[l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ou))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ru,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Au,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Lu)]),_:2},1032,["label"]),l.createElementVNode("div",Bu,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Mu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const mn=_e(xu,[["render",_u]]);let qu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=ze(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ze(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function ju(){const e=l.getCurrentInstance();return new qu(e.proxy)}class zu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=ze(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=ze(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function jr(){const e=l.getCurrentInstance();return new zu(e.proxy)}const Hu=Symbol.for("TableStateKey"),vo={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"}},yo={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}},Nn={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:()=>"不固定"}},Ku={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Wu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function En(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Wu(n,r);if(a!==i)return!1}return!0})}function Yu(e,t,o){return{inheritAttrs:!1,props:{...xe,...Pe,...vo,...yo,...Nn,...Ku},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Te({componentName:e,validateHandler:{getValue(...J){return V.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),I=l.shallowRef({}),g=l.computed(()=>({...I.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=se(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,J=>{h.value=J}),l.watch(()=>n.pageSize,J=>{m.value=J}),l.watch([h,m],([J,ne],[oe,ae])=>{ne!==ae&&(h.value=1,J=1),x(n.data,J,ne,g.value)}));const b=()=>Array.isArray(n.data)?!0:se(n.autoLoad);b()&&l.watch([()=>n.data,g],async([J,ne],[oe,ae])=>{b()&&(J!==oe&&(N=!0),!(!Array.isArray(J)&&Xe(J,oe)&&Xe(ne,ae))&&(S?(h.value=0,M.value=!0,V.value=[],C()):h.value===1?x(J,h.value,m.value,ne):h.value=1))},{deep:!0});const $=J=>{h.value=J,i("page-index-change",J)},j=J=>{m.value=J,i("page-size-change",J)},M=l.ref(!0),L=l.ref(0),V=l.ref(),R=ju();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,J=>se(J)),x=async(J,ne,oe,ae,Ie)=>{N=!1;try{if(Ie===!0){if(!M.value)return!1;const me=await R.load("table",J,ne,oe,ae,N,a.value);return L.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,V.value,me.page),setTimeout(()=>{i("loaded-data")},250),(V.value?.length??0)>=L.value)||me.page.length<oe?(M.value=!1,!1):!0}else{const me=await R.load("table",J,ne,oe,ae,N,a.value);return L.value=me.totalSize,V.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),L.value=0,V.value=[]}return!1};let q=!1;const C=async()=>{if(!q){if(q=!0,!M.value){q=!1;return}h.value+=1,await x(n.data,h.value,m.value,g.value,!0),q=!1}},k=(J={},ne=!1)=>new Promise(async oe=>{I.value={...l.toRaw(J??{})},ne||(h.value=n.pageIndex??1),S===!0?(h.value=0,V.value=[],M.value=!0,await C()):await x(n.data,h.value,m.value,g.value),oe()}),D=()=>{L.value=0,V.value=[],S===!0&&(h.value=0,M.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},X=l.ref(null);if(S===!0){let J=null;const ne=()=>{X.value&&(J=new IntersectionObserver(ae=>{let Ie=!1;for(let me of ae)if(me.intersectionRatio>0){Ie=!0;break}Ie&&C()}),J.observe(X.value))},oe=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};l.onMounted(ne),l.onBeforeUnmount(oe)}b()&&!E.value&&k();const G=l.ref(null);l.provide(Hu,{currentRow:G});const ee=(J,ne)=>{G.value=J,i("current-change",J,ne)},re=(J,ne,oe)=>{i("row-click",J,ne,oe),se(n.rowClickSelectable)===!0&&be?.value.toggleRowSelection(J)},P=[],w=(J,ne)=>{if(i("expand-change",J,ne),se(n.uniqueExpansion))if(Array.isArray(ne)&&ne.length==0){const oe=P.length;P.splice(0,oe)}else{P.forEach(ae=>{ae!==J&&be?.value.toggleRowExpansion(ae,!1)});const oe=P.length;P.splice(0,oe,J)}},F=r.attrs.id??n.prop??r.attrs.name,O=jr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(ne=>({...ne})),columnPropertyList:p.value}),B=J=>{p.value=[...J],U()},A=async()=>{const J=await O.load(F);J&&(p.value=J)},U=()=>{O.save(F,p.value)},z=()=>{O.remove(F)};A();const Z=J=>J?J.type?J.type:J.label?J.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(J,ne)=>{for(let oe in ne){const ae=ne[oe];typeof ae!="function"&&(J[oe]=ae)}},K=l.computed(()=>{const J=te(),ne=new Map;if(H=[],J.forEach(oe=>{const ae=oe;if(!ae.props)return;const Ie=Z(ae.props);ne.set(Ie,oe);const me={label:"",prop:""};T(me,ae.props),H.push(me)}),p.value.length===H.length){const oe=[];for(let ae of p.value){const Ie=Z(ae),me=ne.get(Ie);if(!me)return J;if(ae.visible===!1)continue;const Ue=me;Ue.props.fixed=ae.fixed,oe.push(Ue)}return oe}return J}),Q=l.shallowRef(new Map),le=({row:J,column:ne,rowIndex:oe,columnIndex:ae})=>{const Ie=`${oe}_${ne.property}`,me=`${oe}_${ae}`;let Ue=Q.value.get(Ie);return Ue||(Ue=Q.value.get(me)),typeof Ue=="string"?Ue:""},fe=J=>typeof J=="function"?ne=>{const oe=[];let ae=le(ne);return ae&&oe.push(ae),ae=J(ne),ae&&oe.push(ae),oe.length===0?"":oe.join(" ")}:le,ce=(J=!1)=>{Q.value.forEach((ne,oe)=>{ge(oe,ne,J)})},ge=(J,ne,oe=!1)=>{const ae=`${J}_item`;oe?(s.clearPersistantMessage(),Array.isArray(ne)?s.emitToChildren({name:J},"setCellClassNames",[]):s.emitToChildren({name:ae},"setCustomClassName","")):Array.isArray(ne)?s.emitToChildren({name:J,cachePolicy:"Persistant",uniqueId:ae},"setCellClassNames",ne):s.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:ae},"setCustomClassName",ne)},He=(J,ne,oe)=>{const ae=`${J}_${ne}`;oe?(Q.value.set(ae,oe),ge(ae,oe)):(Q.value.delete(ae),ge(ae,"",!0)),l.triggerRef(Q)},et=J=>{ce(!0),Q.value.clear(),J.forEach(ne=>{const oe=`${ne.rowIndex}_${ne.column}`;Array.isArray(ne.children)?Q.value.set(oe,ne.children):typeof ne.cellClassName=="string"&&Q.value.set(oe,ne.cellClassName)}),ce(),l.triggerRef(Q)},ht=()=>{ce(),Q.value.clear(),l.triggerRef(Q)},tt=l.shallowRef(new Map),Yl=({rowIndex:J})=>{const ne=`${J}`;return tt.value.get(ne)??""},Qr=J=>typeof J=="function"?ne=>{const oe=[];let ae=Yl(ne);return ae&&oe.push(ae),ae=J(ne),ae&&oe.push(ae),oe.length===0?"":oe.join(" ")}:Yl,ea=(J,ne)=>{const oe=`${J}`;ne?tt.value.set(oe,ne):tt.value.delete(oe),l.triggerRef(tt)},ta=()=>{tt.value.clear(),l.triggerRef(tt)},be=l.ref();return Ce({clearSelection:()=>be?.value.clearSelection(),getSelectionRows:()=>be?.value.getSelectionRows(),toggleRowSelection:(J,ne)=>{be?.value.toggleRowSelection(J,ne)},toggleRowSelectionByProp:(J,ne)=>{if(!V.value)return;const oe=En(V.value,J);oe.length!==0&&oe.forEach(ae=>{be?.value.toggleRowSelection(ae,ne)})},toggleAllSelection:()=>{be?.value.toggleAllSelection()},toggleRowExpansion:(J,ne)=>{be?.value.toggleRowExpansion(J,ne)},toggleRowExpansionByProp:(J,ne)=>{if(!V.value)return;const oe=En(V.value,J);oe.length!==0&&oe.forEach(ae=>{be?.value.toggleRowExpansion(ae,ne)})},setCurrentRow:J=>{be?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!V.value)return;const ne=En(V.value,J);ne.length!==0&&be?.value.setCurrentRow(ne[0])},getCurrentRow:()=>G.value,clearSort:()=>{be?.value.clearSort()},clearFilter:J=>{be?.value.clearFilter(J)},doLayout:()=>{be?.value.doLayout()},sort:(J,ne)=>{be?.value.sort(J,ne)},scrollTo:(J,ne)=>{be?.value.scrollTo(J,ne)},setScrollTop:J=>{be?.value.setScrollTop(J)},setScrollLeft:J=>{be?.value.setScrollLeft(J)},loadData:k,clearData:D,getData(){return V.value},getTotalSize(){return L.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:He,setCellClassNames:et,clearCellClassName:ht,setRowClassName:ea,clearRowClassName:ta}),()=>{const ne={...Ye(r.attrs),onCurrentChange:ee,onRowClick:re,onExpandChange:w,data:V.value,ref:be,class:f.value,"cell-class-name":fe(n.cellClassName),"row-class-name":Qr(n.rowClassName)},oe={};if(r.slots.default&&(oe.default=()=>K.value),r.slots.append&&(oe.append=r.slots.append),r.slots.empty&&(oe.empty=r.slots.empty),S===!0){const qe=[];if(M.value){const Tt=l.h(Ee.Loading,{class:`${u}__infinite-icon`});qe.push(Tt);const yn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);qe.push(yn)}else{const Tt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);qe.push(Tt)}const at={ref:X,class:`${u}__infinite`},vn=l.h("div",at,qe);oe.append=()=>vn}const ae=l.h(v.ElTable,ne,oe),Ie=[];if(Ie.push(ae),!S){let qe=null;if(typeof r.slots.pagination=="function")qe=r.slots.pagination();else if(n.showPagination){const at={class:y.value,total:L.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};qe=l.h(v.ElPagination,at)}if(n.showSetting){const at=[];qe&&at.push(qe);const vn=l.h(v.ElIcon,{class:c.value},{default:()=>l.h(Ee.Setting)}),Tt=ar(n,Nn),yn=l.h(mn,{...Tt,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>vn});at.push(yn);const na=l.h("div",{class:d.value},at);Ie.push(na)}else qe&&Ie.push(qe)}const me={default:()=>Ie},St={...ke(n,vo,yo,Nn),prop:`${n.prop}_item`};return St.contentClass=`${u}__wrap`,St.errorMarkClass="is-table-error",E.value&&b()&&(St["appear-listen"]=!0,St.onAppear=W),l.h(o,St,me)}}}}const{componentName:Uu,create:Gu,scope:Xu}=ie("table-item"),yl=Gu(Yu(Uu,Xu,Se));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Zu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ju=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Qu(){const e=l.getCurrentInstance();return new Ju(e.proxy)}function zr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function ec(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=wt(e,a)===t;else if(o==="item")i=zr(e,a,t);else{let s=At(e,a);s==null&&(s=wt(e,a)),i=s===t}if(i){r=a;break}}return r}function tc(e){return{text:e,value:e}}function nc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const bo={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 lc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Pe,...bo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(V,R,N,E=!0)=>{const x=ec(n,V,R,N);if(x===null){if(f.value===null)return;f.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!zr(n,x,f.value)){u.value=V;const C=l.toRaw(x);f.value=C;let k=null;n.valueType==="text"?k=wt(n,C):n.valueType==="item"?k=C:k=At(n,C),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,V=>se(V)),I=Qu(),g=async(V,R)=>{if(V){const N=await I.load("radio",V,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>tc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([V,R])=>{g(V,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([V,R])=>{c(R,n.valueType,V,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=V=>{c(V,"value",d.value,!0)};let j=he(n,"hintText"),M=he(n,"hintVisible");const L=(V,R)=>{const N=[];return V.forEach((E,x)=>{const q=At(n,E),C=wt(n,E);let k=Zu(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=nc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElRadioButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElRadio,W,{default:()=>R(E)})):N.push(l.h(v.ElRadio,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>L(d.value,r.slots.text);const x=l.h(v.ElRadioGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,bo),hintText:j.value,hintVisible:M.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:oc,create:rc,scope:ac}=ie("radio-item"),bl=rc(lc(oc,ac,Se));function xt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ic(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let sc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function uc(){const e=l.getCurrentInstance();return new sc(e.proxy)}function Hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=xt(e,t),r=xt(e,o);if(n!==r)return!1;const a=yt(e,t),i=yt(e,o);return a===i}function cc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=xt(e,i)===a;else if(o==="item")s=Hr(e,i,a);else{let u=yt(e,i);u==null&&(u=xt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function fc(e){return{text:e,value:e}}function dc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const wo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function hc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Pe,...wo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(V,R,N,E=!0)=>{const x=cc(n,V,R,N);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(x.length!==f.value.length)q=!1;else for(let C=0;C<x.length;C++){const k=x[C],D=f.value[C];if(!Hr(n,k,D)){q=!1;break}}if(!q){f.value=x;let C=[],k=[];x.forEach(Y=>{C.push(yt(n,Y)),n.valueType==="text"?k.push(xt(n,Y)):n.valueType==="item"?k.push(Y):k.push(yt(n,Y))}),u.value=C;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,V=>se(V)),I=uc(),g=async(V,R)=>{if(V){const N=await I.load("checkbox",V,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>fc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([V,R])=>{g(V,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([V,R])=>{c(R,n.valueType,V,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=V=>{c(V,"value",d.value,!0)};let j=he(n,"hintText"),M=he(n,"hintVisible");const L=(V,R)=>{const N=[];return V.forEach((E,x)=>{const q=yt(n,E),C=xt(n,E);let k=ic(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=dc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElCheckboxButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElCheckbox,W,{default:()=>R(E)})):N.push(l.h(v.ElCheckbox,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:we(n.max),min:we(n.min),onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>L(d.value,r.slots.text);const x=l.h(v.ElCheckboxGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,wo),hintText:j.value,hintVisible:M.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:mc,create:gc,scope:pc}=ie("checkbox-item"),wl=gc(hc(mc,pc,Se)),xo={modelValue:{type:[Number,String],required:!1}};function vc(e,t,o){return{props:{...xe,...Pe,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>we(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),I=l.ref(!1);const g=l.ref();return Ce({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElRate,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const L={...ke(n,xo),hintText:y.value,hintVisible:I.value,prop:`${n.prop}_item`};return l.h(o,L,j)}}}}const{componentName:yc,create:bc,scope:wc}=ie("rate-item"),xl=bc(vc(yc,wc,Se)),So={modelValue:{type:[Boolean,String,Number],required:!1}};function xc(e,t,o){return{props:{...xe,...Pe,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),I=he(n,"hintVisible");const g=l.ref();return Ce({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElSwitch,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const L={...ke(n,So),hintText:y.value,hintVisible:I.value,prop:`${n.prop}_item`};return l.h(o,L,j)}}}}const{componentName:Sc,create:Tc,scope:Cc}=ie("switch-item"),Sl=Tc(xc(Sc,Cc,Se)),To={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function $c(e,t,o){return{props:{...xe,...Pe,...To},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=he(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),y=M=>{u("update:modelValue",M),u("change",M)};let I=he(n,"hintText"),g=l.ref(!1);const h=M=>{let V=M.target.value;s.value=!0,pe(I.value)||(g.value=!0),u("focus",V,M)},m=M=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let V=M.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),b.value||u("blur",V,M)},S=()=>{u("clear","")},b=l.ref(!1),$=M=>{b.value=M,u("visible-change",M),M||u("selected")},j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const L={...Ye(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:$},V={};r.slots.option&&(V.default=r.slots.option);const R=[],N=l.h(v.ElTreeSelect,L,V);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,To),hintText:I.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Nc,create:Ec,scope:kc}=ie("tree-select-item"),Tl=Ec($c(Nc,kc,Se)),Pc={},Ic={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Vc=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),Oc=[Vc];function Dc(e,t){return l.openBlock(),l.createElementBlock("svg",Ic,Oc)}const Fc=_e(Pc,[["render",Dc]]),{componentName:Qh,create:Rc,scope:em}=ie("group-setting"),Ac={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:"到底部"}},Mc=Rc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Fc,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Ac},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=jr(),s=P=>P.length>1,u=()=>{const P=[],w=[...a.value];a.value=w.map((O,p)=>(O.visible!==!1&&P.push(O.prop),{...O,sortIndex:p})),a.value.length===P.length?h.value=!0:P.length>0&&(m.value=!0),$.value=P},f=P=>{let w=null;if(typeof P=="string")w=document.querySelectorAll(`.fox-group[prop="${P}"] > div > .fox-item[prop]`);else if(P&&typeof P=="object"){const O=P.$el??P;typeof O.querySelectorAll=="function"&&(w=O.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const F=[];return w.forEach(O=>{const p=O.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=O.getAttribute("prop")??"",A=window.getComputedStyle(O,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:A!=="none"})}),F},c=()=>{if(!r){const P=f(e.groupRef??e.groupProp);if(P.length===0)return!1;r=P}return!0},d=async(P=!1)=>{const w=await i.load(e.groupProp),F=O=>{if(!O||!r)return;const p=r.map(H=>({...H}));Array.isArray(w)&&w.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),P&&I(!1)};r?F(!0):nn(c,e.initDelay,5,50,!1,F)},y=()=>{const P=r??[];a.value=P.map(w=>({...w})),u(),I()},I=(P=!0)=>{P&&i.save(e.groupProp,a.value);const w=a.value.map(F=>({...F}));t("change",w)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=P=>{const w=[];a.value.forEach(O=>{P&&w.push(O.prop),O.visible=P}),h.value=!1,m.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(m.value=!0),$.value=w,I()},b=()=>{y()},$=l.ref([]),j=P=>{a.value.forEach(F=>{const O=P.indexOf(F.prop)!==-1;F.visible=O}),h.value=!1,m.value=!1;const w=a.value.length;P.length===w?h.value=!0:P.length>0&&(m.value=!0),I()},M=()=>{d()};l.onMounted(()=>{d(!0)});const L={currentRow:null,index:null},V=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,V(P)):null:null,R=P=>{const w=P.currentTarget;w&&w.dataset&&(L.index=w.dataset.index)},N=P=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},E=P=>{const w=P.currentTarget;P.relatedTarget;const F=V(w);F&&(P.preventDefault(),L.currentRow&&L.currentRow!==F&&L.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),L.currentRow=F)},x=P=>{P.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},q=P=>{const w=P.currentTarget,F=V(w);if(!F)return;P.preventDefault();const O=Number(L.index),p=Number(F.dataset.index);if(O!==p){if(O<p){const H=a.value[O];a.value.splice(O,1),a.value.splice(p,0,H)}else{const H=a.value[O];a.value.splice(O,1),a.value.splice(p+1,0,H)}u(),I()}},C=P=>{const w=a.value[P];a.value.splice(P,1),a.value.splice(0,0,w),u(),I()},k=P=>{const w=a.value[P];a.value.splice(P,1),a.value.push(w),u(),I()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(P){const w=document.createRange();return w.setStart(P,0),w.setEnd(P,P.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:$,handleCheckChange:j,onShow:M,onDragStart:R,onDragEnd:N,onDragOver:E,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:C,toBottom:k,onMouseOverForOverflowText:(P,w,F)=>{const O=P.currentTarget;if(O){const p=Math.floor(O.offsetWidth);if(Math.floor(W(O))>p){let _=D.get(w);if(_){if(_===Y)return;Oe.hide(_)}_=Oe.show(O,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(w,_),Y=_}}},onMouseLeaveForOverflowText:(P,w)=>{const F=D.get(w);F&&(Oe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(P,w)=>{const F=P.currentTarget;F&&(Y&&Oe.hide(Y),Y=Oe.show(F,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:P=>{Y&&(Oe.hide(Y),Y=null)}}}}),Lc={class:"fox-group-setting"},Bc={class:"fox-group-setting__header"},_c={class:"fox-group-setting__body"},qc={class:"fox-group-setting__body-list","data-role":"container"},jc=["data-index","draggable"],zc=["onMouseover","onMouseleave"],Hc={class:"tools-item"};function Kc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Lc,[l.createElementVNode("div",Bc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=I=>e.isCheckAll=I),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",_c,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=I=>e.checkedValue=I),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",qc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,I=>(l.openBlock(),l.createElementBlock("div",{key:I.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":I.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:I.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,I.prop,I.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,I.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(I.label),45,zc)]),_:2},1032,["label"]),l.createElementVNode("div",Hc,[l.createVNode(c,{onClick:g=>e.toTop(I.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toBottom(I.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,jc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cl=_e(Mc,[["render",Kc]]),Wc=["aria-labelledby"],Yc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uc=[Yc],Gc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Wc))}}),Xc=["aria-labelledby"],Zc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Jc=[Zc],$l=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Jc,14,Xc))}}),Qc=["aria-labelledby"],ef=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),tf=[ef],nf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},tf,14,Qc))}}),lf=["aria-labelledby"],of=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),rf=[of],af=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},rf,14,lf))}}),sf=["aria-labelledby"],uf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),cf=[uf],ff=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},cf,14,sf))}}),df={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}},Co=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],hf=(e,t)=>t[e.visibleKey],$o=(e,t)=>t[e.disabledKey],mf=(e,t)=>{const o=t[e.doitKey];return se(o)},gf=(e,t)=>{const o=t[e.numKey];return o==null?null:we(t[o])},No=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function pf(e,t,o,n=!1){return{props:{...df},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const P={};return P[`${e}`]=!0,P}),u=l.computed(()=>{const P={};return P[`${e}__titles`]=!0,P[`${r.direction}`]=!0,r.align==="left"&&(P.left=!0),r.scroll===!0&&(P.scrollable=!0),r.shape&&(P[`${r.shape}`]=!0),P}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const P=de(r.gutter);return P<=0?0:P}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,P=>{d.value!==P&&(d.value=P,W(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),I=l.computed(()=>{const P={};return h.value||(P.display="none"),P}),g=l.ref(),h=l.ref(!1),m=()=>{const P=!h.value;S(P)},S=P=>{const w=P;w?(h.value=w,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,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),j=(P,w)=>{$.value[w]=P},M=P=>w=>{j(w,P)},L=(P,w)=>{const F=b.value,O=$.value;if(!F||!O||!O[P])return;const p=O[P];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,V(F,H,w?0:.3,r.direction)},V=(P,w,F,O)=>{let p=0;const H=O==="horizontal"?P.scrollLeft:P.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){O==="horizontal"?P.scrollLeft+=(w-H)/_:P.scrollTop+=(w-H)/_,++p<_&&Gn(B)}B()},R=(P,w)=>{const F=Nt(r,P),O={};return O[`${e}__titles-item`]=!0,O.disabled=$o(r,P),O.active=F===d.value,r.shape&&(O[`${r.shape}`]=!0),r.ellipsis&&(O.ellipsis=!0),w&&(w.class&&(O[`${w.class}`]=!0),w.disabled===!0&&(O.disabled=w.disabled)),O},N=(P,w)=>{const F={};if(c.value>0){const O=Math.abs(c.value/2);r.direction==="vertical"?(F["margin-top"]=`${O}px`,F["margin-bottom"]=`${O}px`):(F["margin-left"]=`${O}px`,F["margin-right"]=`${O}px`)}return w&&w.style&&Object.assign(F,w.style),F},E=(P,w)=>`${Nt(r,P)??w}`,x=(P,w)=>{const F=Nt(r,P),O={};O[`${e}__popup-item`]=!0,O.disabled=$o(r,P),O.active=F===d.value,r.shape&&(O[`${r.shape}`]=!0);const p=No(r,P,w);return p&&p.disabled===!0&&(O.disabled=p.disabled),O},q=l.computed(()=>(r.data??[]).filter(w=>hf(r,w)!==!1)),C=(P,w)=>{const F=Nt(r,P);if(d.value==F)return;const O=()=>{d.value=F,r.scroll&&L(w,!1),i("update:modelValue",F),i("change",P,w)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(P,w);Zo(p)?p.then(H=>{H!==!1&&O()}).catch(()=>{O()}):p!==!1&&O()}else O()},k=(P,w)=>function(){C(P,w)},D=(P,w)=>{C(P,w),S(!1)},Y=(P,w)=>function(){D(P,w)},W=P=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(F=>Nt(r,F)===d.value);w!==-1&&L(w,P)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const X=(P,w)=>{if(a.item)return a.item({item:P,index:w});const F=No(r,P,w),O=[];if(a.text){const B=a.text({item:P,index:w});O.push(B)}else{const B=[];if(F?.doit===!0||mf(r,P)){const Z={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Z);B.push(te)}const A=F?.num??gf(r,P);if(A){let Z="";const te=we(A);te>=100?Z="99+":Z=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Z]);B.push(K)}const U={class:`${e}__titles-item-text`};B.push(Co(r,P));const z=l.h("view",U,B);O.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);O.push(H);const _={ref:M(w),class:R(P,F),style:N(P,F),key:E(P,w),onClick:k(P,w)};return l.h("view",_,O)},G=()=>{const P=a.default?a.default():[];if(P.length===0)for(let F=0;F<q.value.length;F++){const O=q.value[F],p=X(O,F);P.push(p)}const w={ref:b,class:u.value,style:f.value};return l.h("view",w,P)},ee=()=>{let P=null;a.navigation?P=a.navigation():P=l.h(o);const w={class:`${e}__navigation`,onClick:m};return l.h("view",w,[P])},re=()=>{const P=[];for(let F=0;F<q.value.length;F++){const O=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:O,index:F}):p=Co(r,O);const H={class:x(O,F),key:E(O,F),onClick:Y(O,F)},_=l.h("view",H,[p]);P.push(_)}const w={class:y.value,style:I.value};return l.h("view",w,P)};return()=>{const P=[],w=G();if(P.push(w),r.showQuickNavigation){const O=ee();P.push(O);const p=re();P.push(p)}const F={class:s.value};return l.h("view",F,P)}}}}const{create:vf,componentName:yf,scope:bf}=ie("tabs-bar"),Nl=vf(pf(yf,bf,Gc,!1)),Kr=Symbol("TabsStatesKey"),wf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function xf(e,t,o=!1){return{props:{...wf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Kr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let y=!0;const I=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=rn(f.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(f.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:I.value,ref:c},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:f};return l.h("view",S,[m])}}}}const{create:Sf,componentName:Tf,scope:Cf}=ie("tabs-container"),El=Sf(xf(Tf,Cf,!1)),$f={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Nf(e,t,o){return{props:{...$f},setup(n,{emit:r,slots:a}){const i=l.inject(Kr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},y=n.emptyIcon??o,I=l.h(y,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[I,m]);f.push(b)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Ef,componentName:kf,scope:Pf}=ie("tabs-pane"),kl=Ef(Nf(kf,Pf,$l)),If={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 Vf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Eo(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ko(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Of(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function kn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Po(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Io(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Pn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Df{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Ff(){const e=l.getCurrentInstance();return new Df(e.proxy)}function Rf(e,t,o,n){return{props:{...If},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Ff(),f=l.ref([]),c=l.computed(()=>f.value.filter(w=>Of(r,w)!==!1)),d=l.ref(-1),y=()=>{const w=r.modelValue,F=c.value.findIndex(O=>Eo(r,O)===w);d.value!==F&&(d.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,c],()=>{y()});const I=w=>d.value===w,g=w=>{if(w<0&&w>=c.value.length)return!1;const F=c.value[w],p=(Pn(r,F,w)??{}).status??kn(r,F);return I(w)||p},h=l.computed(()=>{const w={[s]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),m=l.computed(()=>({})),S=(w,F,O,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),w===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:O?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),$=(w,F={})=>{const O={...F};return b.value==="start"&&w===c.value.length-1?O.flex="0 0 auto":r.step?r.direction==="vertical"?O.height=r.step:O.width=r.step:O.flex="1 1 100%",O},j=(w,F)=>{let O={};if(F<c.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?O.height="100%":O.width="100%":O.opacity="0"}return O},M=w=>c.value.length-1===w,L=(w,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const O=d.value,p=F;d.value=F,r.scroll&&re(F,!1);const H=Eo(r,w);i("update:modelValue",H);const _={fromIndex:O,currentIndex:p,item:w,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},V=l.ref(!0),R=async(w,F)=>{try{const O=await u.load("stesbar",w,F);Array.isArray(O)&&(f.value=O),V.value=!1}catch(O){console.error("[FoxUI] Load StepsBar Data Fail",O),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,F])=>{w&&R(w,F)},{immediate:!0});const N=(w,F,O,p,H)=>{let _=null;if(a.icon)_=a.icon({item:w,index:F,status:p});else if(p==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const U=r.icon??o;_=l.h(U,A)}else{const A=O??`${F+1}`;_=l.h("span",{},[A])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||L(w,F)}};return l.h("view",B,[_])},E=(w,F,O)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(w,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},x=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const O={};r.iconSize&&(O.width=r.markIconSize,O.height=r.markIconSize);const p=r.markIcon??n;w=l.h(p,O)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,F,O,p,H)=>{const _=[];if(!M(F)){const U=E(w,F);_.push(U)}const B=N(w,F,O,p,H);_.push(B);const A={class:"fox-steps-bar__head"};return l.h("view",A,_)},C=(w,F,O,p)=>{let H=null;a.main?H=a.main({item:w,index:F,status:O}):H=Vf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{p||L(w,F)}};return l.h("view",_,[H])},k=(w,F,O)=>{let p=null;if(a.sub){p=a.sub({item:w,index:F,status:O});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(w,F)=>{const O=Pn(r,w,F)??{},p=O.status??kn(r,w);let H=ko(r,w);O.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=O.label??Io(r,w),B=[],A=N(w,F,_,p,H);A&&B.push(A);const U=C(w,F,p,H);if(U&&B.push(U),!M(F)){const Q=E(w,F);Q&&B.push(Q)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Z=O.class,te=O.style??{};let T=Po(r,w);O.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Z),style:$(F,te)};return l.h("view",K,[z])},Y=(w,F)=>{const O=Pn(r,w,F)??{},p=O.status??kn(r,w);let H=ko(r,w);O.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=O.label??Io(r,w),B=[],A=r.layout;for(let T of A)if(T==="head"){const K=q(w,F,_,p,H);B.push(K)}else if(T==="main"){const K=C(w,F,p,H);B.push(K)}else if(T==="sub"){const K=k(w,F,p);B.push(K)}else if(T==="mark"){const K=x();B.push(K)}const U=O.class,z=O.style??{};let Z=Po(r,w);O.doit===!0&&(Z=!0);const te={ref:ee(F),class:S(F,p,H,Z,U),style:$(F,z)};return l.h("view",te,B)},W=l.ref(),X=l.ref([]),G=(w,F)=>{X.value[F]=w},ee=w=>F=>{G(F,w)},re=(w,F)=>{const O=W.value,p=X.value;if(!O||!p||!p[w])return;const H=p[w];let _=0;r.direction==="vertical"?_=H.offsetTop-(O.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(O.offsetWidth-H.offsetWidth)/2,P(O,_,F?0:.3,r.direction)},P=(w,F,O,p)=>{let H=0;const _=p==="horizontal"?w.scrollLeft:w.scrollTop,B=O===0?1:Math.round(O*1e3/16);function A(){p==="horizontal"?w.scrollLeft+=(F-_)/B:w.scrollTop+=(F-_)/B,++H<B&&Gn(A)}A()};return()=>{const w=[];if(r.mode==="simple")for(let O=0;O<c.value.length;O++){const p=c.value[O],H=D(p,O);w.push(H)}else for(let O=0;O<c.value.length;O++){const p=c.value[O],H=Y(p,O);w.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,w)}}}}const{componentName:Af,create:Mf,scope:Lf}=ie("steps-bar"),Pl=Mf(Rf(Af,Lf,af,ff)),Bf=Symbol.for("InnerPageScopeKey"),_f=Symbol.for("PageWrapperKey");function qf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(Bf,!0);const r={};l.provide(_f,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(v.ElDialog,f,c)}}}}const{componentName:tm,create:jf,scope:nm}=ie("dialog-item"),Il=jf(qf());let Et=0;const Vo="fox-overflow-hidden",Oo=()=>dt?document.body:{classList:[]},zf=e=>[()=>{if(e())try{!Et&&Oo().classList.add(Vo),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Oo().classList.remove(Vo)}catch{}}],Hf={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:Kf,create:Wf}=ie("overlay"),Yf=Wf({props:{...Hf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=zf(()=>e.lockScroll),r=l.computed(()=>({[Kf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Uf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const gn=_e(Yf,[["render",Uf]]),Gf={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:{}}},Wr=2e3;let Do=Wr;const Xf=(e,t)=>({components:t,props:{...Gf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Wr&&(Do=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Do,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},y=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},I=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:y,onOpened:I,onClosed:g}}}),{componentName:Zf,create:Jf}=ie("popup"),Qf=Jf(Xf(Zf,{FoxOverLay:gn,Close:nf}));function ed(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Vl=_e(Qf,[["render",ed]]),{create:td}=ie("toast"),nd=td({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,I=>{I&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const I=de(e.iconSize);return l.h(e.icon,{width:I,height:I,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),ld={key:1,class:"fox-toast-title"},od=["innerHTML"];function rd(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",ld,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,od)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ol=_e(nd,[["render",rd]]),ad={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"}},id=(e,t,o)=>({props:{...ad},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=pr(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=N=>{let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,N),a("change",x,N)},y=l.ref({}),I=N=>{let x=N.target.value;u.active=!0,y.value=n.focusStyle,a("focus",x,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),y.value={},a("blur",x,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},$=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},M=N=>{a("click-left-icon",n.modelValue,N)},L=l.computed(()=>({textAlign:n.inputAlign})),V=l.ref(null);l.onMounted(()=>{n.autofocus&&V.value.focus()});const R=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:V,class:[`${e}__input-inner`],style:L.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:I,onBlur:g,onkeyup:$},x=l.h("input",E);N.push(x);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...y.value}};return l.h("view",C,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},C=l.h("span",q,[n.label]);N.push(C)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",q,[r.leftout()]);N.push(C)}const E=R();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",q,[r.rightout()]);N.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,N)}}}),{componentName:sd,create:ud,scope:cd}=ie("searchbar"),Dl=ud(id(sd,cd,Ee.CircleClose)),fd=/scroll|auto|overlay/i,Yr=window;function dd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function hd(e,t=Yr){let o=e;for(;o&&o!==t&&dd(o);){const{overflowY:n}=window.getComputedStyle(o);if(fd.test(n))return o;o=o.parentNode}return t}function Ur(e,t=Yr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=hd(e.value,t))}),o}const Gr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,md={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 gd(e,t,o){return{props:{...md},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Ur(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,I=()=>{let b=0,$=0,j="down";if(f.value==window){const M=Gr();u.value&&(b=y(u.value)+u.value.offsetHeight-M-window.innerHeight),$=M}else{const{scrollHeight:M,clientHeight:L,scrollTop:V}=f.value;b=M-L-V,$=V}return c.beforeScrollTop>$?j="up":j="down",c.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&j=="down"},g=()=>{Ko(()=>{if(!I()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",g,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(c.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),j=[];if(c.isInfiniting){let R=a?.loading?.()??null;if(!R){let x=a?.loadingIcon?.()??null;if(!x){const k={class:["fox-infinite__bottom-box__img"]};x=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},C=l.h("view",q,[s.loadText.value]);R=[x,C]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,R);j.push(E)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const N={class:"fox-infinite__bottom-tips"};R=l.h("view",N,[s.loadMoreText.value]),j.push(R)}}const M={class:"fox-infinite__bottom"},L=l.h("view",M,j),V={class:d.value,ref:u};return l.h("view",V,[$,L])}}}}const{componentName:pd,create:vd,scope:yd}=ie("infinite-loading"),Fl=vd(gd(pd,yd,$l)),Fo=10;function Xr(e,t){return e>t&&e>Fo?"horizontal":t>e&&t>Fo?"vertical":""}function Rl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Al(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Xr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function bd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",I=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const $=m.touches[0];i.value=$.clientX-e.value,s.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Xr(u.value,f.value))},start:m=>{if(I(),m.touches){const $=m.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:I,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const wd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},xd=(e,t,o)=>({props:{...wd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Al(),f=l.ref(),c=Ur(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),I=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const V={};return n.headHeight!=50&&(V.height=Ne(n.headHeight)),V}),m=V=>{const R=+(n.pullDistance||n.headHeight);let N=V;return V>R&&(V<R*2?N=(V+R)/2:N=R+V/4),Math.round(N)},S=(V,R)=>{const N=+(n.pullDistance||n.headHeight);d.distance=V,R?d.status="loading":V===0?d.status="normal":V<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:V})},b=()=>d.status!=="loading"&&d.status!=="complete",$=()=>c.value==window?Gr()==0:c.value&&c.value.scrollTop==0,j=V=>{b()&&($()?(u.start(V),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=V=>{b()&&d.moving&&(u.move(V),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(V.cancelable&&V.preventDefault(),S(m(u.state.deltaY))))},L=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,V=>{V?S(+n.headHeight,!0):S(0)}),()=>{const V=[];let R=null;if(d.status==="loading"){if(R=a?.loading?.()??null,!R){const Y={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,Y)}}else d.status==="pulling"?R=a?.pulling?.()??null:d.status==="loosing"&&(R=a?.loosing?.()??null);R&&V.push(R);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[I.value]);V.push(E);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",x,V),C={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",C,[q,a?.default?.()]),D={ref:f,class:y.value};return Rl()?Object.assign(D,{onTouchstart:j,onTouchmove:M,onTouchend:L}):Object.assign(D,{onMousedown:j,onMousemove:M,onMouseup:L}),l.h("div",D,[k])}}}),{componentName:Sd,create:Td,scope:Cd}=ie("pull-refresh"),Ml=Td(xd(Sd,Cd,$l));function $d(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],I=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,I]):l.h("div",g,[I,c])}}}}const{componentName:Nd,create:Ed,scope:lm}=ie("indicator"),Ll=Ed($d(Nd));function kd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const Pd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Id(e,t,o,n=!1){return{props:{...Pd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},j=r.textColor??r.color;return j&&($.color=j),$}),f=($,j)=>{let M=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const L=r.highlightFilter;if($.indexOf(L)!==-1){const R=$.replace(new RegExp(L,"g"),`<span>${L}</span>`);j.innerHTML=R,j.class["is-highlight"]=!0,M=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const L=r.highlightFilter($);L&&(j.innerHTML=L,j.class["is-highlight"]=!0,M=l.h(r.tag,j))}return M},c=$=>{a.emit("click",$)};let d="";const y=()=>{const $=i.value;if(!$)return;const j=$.clientWidth;kd($,M=>{const L=$.innerHTML??"";pe(L)||M<j||(d?o?.show($,L,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show($,L,{type:"text",showArrow:r.showArrow},!0)??"")})},I=()=>{d&&o?.hide(d)};let g=null;const h=$=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{I()},r.hideAfter??0)},S=()=>{const $=i.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",m))},b=()=>{const $=i.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||b()}),()=>{const $={onClick:c,class:s.value,style:u.value,ref:i};let j=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=we(r.digits),x=we(r.decimalLength),q=se(r.autoPadding);let C=`${R[0].children}`,k=C.split("").reverse().join("");k=Zt(k,x,q,E,r.separator),C=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=f(C,$)),j||($.innerHTML=C,j=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${R[0].children}`;j=f(E,$),j||($.innerHTML=E,j=l.h(r.tag,$))}}}j||(j=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let L=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};L=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};L=l.h("view",x,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const x={class:R,style:N};L=l.h("view",x)}const V={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",V,[L,j])}}}}const{componentName:Vd,create:Od,scope:Dd}=ie("text"),Bl=Od(Id(Vd,Dd,Oe,!1)),Fd={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:Ee.ArrowUp}};function Rd(e,t,o){return{props:{...Fd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const y={class:f.value},I=o(n.icon,y);return I&&d.push(I),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Ad,create:Md,scope:Ld}=ie("more-button"),Bd=(e,t)=>(e=e??Ee.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),_l=Md(Rd(Ad,Ld,Bd));function _d(e){return e===window}const Zr=e=>{const t=l.unref(e);if(_d(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:qd,create:jd,scope:om}=ie("tour"),zd=jd({components:{Close:Ee.Close,ElPopover:v.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=qd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:$,top:j}=r.value,M=e.steps[n.active].offset??g,L=[$+S/2,j+b/2],V=Number(h||S),R=Number(m||b);return{width:`${V+ +M.left+M.right}px`,height:`${R+M.top+M.bottom}px`,top:`${L[1]-R/2-+M.top}px`,left:`${L[0]-V/2-+M.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,f=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Zr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},I=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{I(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{I(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),Hd={key:0,class:"fox-tour__content"},Kd={key:0,class:"fox-tour__content-top"},Wd={class:"fox-tour__content-inner"},Yd={class:"fox-tour__content-bottom"},Ud={class:"fox-tour__content-bottom-init"},Gd={class:"fox-tour__content-bottom-operate"},Xd={key:1,class:"fox-tour__content fox-tour__content-tile"},Zd={class:"fox-tour__content-inner"};function Jd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Hd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Kd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Wd,l.toDisplayString(f.content),1),l.createElementVNode("div",Yd,[l.createElementVNode("div",Ud,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Gd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Xd,[l.createElementVNode("div",Zd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const ql=_e(zd,[["render",Jd]]),Ve=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class Qd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Rl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Al(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ro(e,t){return new Qd(e,t)}var Ao;const Wn=typeof window<"u";Wn&&((Ao=window?.navigator)!=null&&Ao.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let gt=[];const Mo=e=>{const t=e;t.key==="Escape"&>.forEach(o=>o(t))},eh=e=>{l.onMounted(()=>{gt.length===0&&document.addEventListener("keydown",Mo),Wn&>.push(e)}),l.onBeforeUnmount(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Wn&&document.removeEventListener("keydown",Mo)})},In="fox-focus-trap.focus-after-trapped",Vn="fox-focus-trap.focus-after-released",th="fox-focus-trap.focusout-prevented",Lo={cancelable:!0,bubbles:!1},nh={cancelable:!0,bubbles:!1},Bo="foxFocusAfterTrapped",_o="foxFocusAfterReleased",lh=Symbol("foxFocusTrap"),jl=l.ref(),pn=l.ref(0),zl=l.ref(0);let qt=0;const Jr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},oh=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qo=(e,t)=>{for(const o of e)if(!oh(o,t))return o},rh=e=>{const t=Jr(e),o=qo(t,e),n=qo(t.reverse(),e);return[o,n]},ah=e=>e instanceof HTMLInputElement&&"select"in e,nt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),zl.value=window.performance.now(),e!==o&&ah(e)&&t&&e.select()}};function jo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const ih=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=jo(e,n),e.unshift(n)},remove:n=>{e=jo(e,n),e[0]?.resume?.()}}},sh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(nt(n,t),document.activeElement!==o)return},zo=ih(),uh=()=>pn.value>zl.value,jt=()=>{jl.value="pointer",pn.value=window.performance.now()},Ho=()=>{jl.value="keyboard",pn.value=window.performance.now()},ch=()=>(l.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",jt),document.addEventListener("touchstart",jt),document.addEventListener("keydown",Ho)),qt++}),l.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",jt),document.removeEventListener("touchstart",jt),document.removeEventListener("keydown",Ho))}),{focusReason:jl,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:zl}),zt=e=>new CustomEvent(th,{...nh,detail:e}),{componentName:rm,create:fh,scope:am}=ie("focus-trap"),dh={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"}},hh=fh({props:dh,emits:[Bo,_o,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=ch();eh(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:$,currentTarget:j,shiftKey:M}=h,{loop:L}=e,V=m==="Tab"&&!S&&!b&&!$,R=document.activeElement;if(V&&R){const N=j,[E,x]=rh(N);if(E&&x){if(!M&&R===x){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),L&&nt(E,!0))}else if(M&&[E,N].includes(R)){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),L&&nt(x,!0))}}else if(R===N){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(lh,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=h=>{o(Bo,h)},c=h=>o(_o,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,$=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),$&&o("focusin",h),!s.paused&&se(e.trapped)&&($?a=S:nt(a,!0))},y=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!Xn(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=zt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||nt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function I(){await l.nextTick();const h=l.unref(n);if(h){zo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(In,Lo);h.addEventListener(In,f),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;Xo($)||(nt($),document.activeElement!==$&&($="first")),$==="first"&&sh(Jr(h),!0),(document.activeElement===m||$==="container")&&nt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(In,f);const m=new CustomEvent(Vn,{...Lo,detail:{focusReason:i.value}});h.addEventListener(Vn,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!uh())&&nt(r??document.body,!0),h.removeEventListener(Vn,f),zo.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&I(),l.watch(()=>e.trapped,h=>{se(h)?I():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:mh,create:gh,scope:im}=ie("floating-window"),ph=Symbol.for("InnerPageScopeKey"),vh=Symbol.for("PageWrapperKey"),yh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},bh=gh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:hh},props:{...yh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=mh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return it(i.value)?T.left="auto":T.left=Ve(i.value),it(s.value)?T.top="auto":T.top=Ve(s.value),it(u.value)?T.right="auto":T.right=Ve(u.value),it(f.value)?T.bottom="auto":T.bottom=Ve(f.value),it(e.zIndex)||(T["z-index"]=Ve(e.zIndex)),it(L.value)||(T.height=L.value),it(V.value)||(T.width=V.value),T}),y=l.computed(()=>e.closeIcon??Ee.Close),I=l.computed(()=>e.collapseIcon??Ee.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),$=l.ref(),j=l.ref(null),M=l.ref(null),L=l.computed(()=>Ve(e.height)||""),V=l.computed(()=>Ve(e.width)||""),R=l.ref(se(e.collapse)),N=(T,K=!0)=>{R.value!==T&&(R.value=T,T?w():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{x()},x=T=>{T=T??!R.value,N(T)};l.provide(ph,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(vh,q);const C=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),X=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),G=l.ref(R.value),ee=l.computed({set:T=>{G.value=T},get:()=>n.value===!1?!1:G.value});let re=null;const P=()=>{typeof re=="function"&&(re(),re=null)},w=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,re=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),re=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},O=()=>{i.value=null,s.value=null,u.value=null,f.value=null},p={x:0,y:0},B=Ro(T=>{if(!$.value)return;const K=$.value;if(O(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=Q-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(K.offsetLeft+K.offsetWidth),f.value=le-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!$.value)return;const K=$.value;O(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Ve(i.value),K.style.top=Ve(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,f.value=p.y-T.y,K.style.left=Ve(i.value),K.style.bottom=Ve(f.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,f.value=p.y-T.y,K.style.right=Ve(u.value),K.style.bottom=Ve(f.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Ve(u.value),K.style.top=Ve(s.value))}),A={x:0,y:0},Z=Ro(T=>{k.value&&(A.x=k.value.offsetLeft,A.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=A.y+T.y;W.value=`${K}px`}),te=()=>{if($.value){const T=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=T}};return l.onMounted(()=>{if(e.draggable&&$.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),M.value&&T.push(M.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Z.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Z.close()}),{classes:c,styles:d,isShow:a,closeIcon:y,onClose:C,dialogRef:$,headerRef:j,onClickToggle:E,collapseIcon:I,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:X,onAnimationEnd:P,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),wh={ref:"headerRef",class:"fox-floating-window__header"},xh={class:"fox-floating-window__title"},Sh={class:"fox-floating-window__tools"},Th={class:"fox-floating-window__body"},Ch={class:"fox-floating-window__fixednav__text"};function $h(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",wh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",xh,l.toDisplayString(e.title),1),l.createElementVNode("div",Sh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",Th,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Ch,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Hl=_e(bh,[["render",$h]]);function Nh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return mr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:sm,create:Eh,scope:um}=ie("domain-provider"),Kl=Eh(Nh()),kh={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 Ph(e,t){return{inheritAttrs:!1,props:kh,setup(o,{slots:n}){if(dt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,I)=>{if(c===null){a.set(y,{visible:null,callback:I});return}r.has(y)&&c.unobserve(y),r.set(y,{visible:null,callback:I}),c.observe(y)},s=y=>{if(c===null){a.delete(y);return}r.has(y)&&(r.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;ci({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(y,I,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch($){console.error($)}}},{root:y,rootMargin:I,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,I])=>{if(I||!y||c)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:cm,create:Ih,scope:fm}=ie("rolling-provider"),Wl=Ih(Ph()),Vh=[Qn,tl,nl,ll,ol,Se,rl,al,Lt,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,vl,mn,yl,bl,wl,xl,Sl,Tl,Cl,Nl,El,kl,Pl,Il,gn,Vl,Ol,Dl,Fl,Ml,Rt,hn,Ll,Bl,_l,ql,Hl,Kl,Wl],Oh=new qa(Vh,[Ha],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>v.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>v.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>v.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>v.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>v.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>v.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>v.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>v.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>v.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>v.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>v.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>v.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>v.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>v.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>v.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>v.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>v.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload});exports.AutocompleteItem=gl;exports.Broadcast=Zn;exports.BroadcastKey=ye;exports.CascaderItem=ml;exports.CheckboxItem=wl;exports.Content=ll;exports.DataItemsKey=mt;exports.DateItem=ul;exports.DateUtils=Me;exports.DialogItem=Il;exports.Domain=ln;exports.DomainKey=Ae;exports.DomainProvider=Kl;exports.FloatingWindow=Hl;exports.FooterBar=nl;exports.FoxAutocompleteItem=gl;exports.FoxCascaderItem=ml;exports.FoxCheckboxItem=wl;exports.FoxContent=ll;exports.FoxDateItem=ul;exports.FoxDialogItem=Il;exports.FoxDomainProvider=Kl;exports.FoxFloatingWindow=Hl;exports.FoxFooterBar=nl;exports.FoxGroup=ol;exports.FoxGroupSetting=Cl;exports.FoxHeaderBar=tl;exports.FoxHintText=Lt;exports.FoxIndicator=Ll;exports.FoxInfiniteLoading=Fl;exports.FoxInputItem=il;exports.FoxInputNumberItem=hl;exports.FoxItem=Se;exports.FoxMapping=Rt;exports.FoxMoneyItem=dl;exports.FoxMoreButton=_l;exports.FoxOverLay=gn;exports.FoxPage=Qn;exports.FoxPopup=Vl;exports.FoxPrice=hn;exports.FoxPullRefresh=Ml;exports.FoxRadioItem=bl;exports.FoxRateItem=xl;exports.FoxRollingProvider=Wl;exports.FoxRowItem=al;exports.FoxSearchBar=Dl;exports.FoxSelectItem=sl;exports.FoxSlotItem=rl;exports.FoxStepsBar=Pl;exports.FoxSwitchItem=Sl;exports.FoxTableItem=yl;exports.FoxTableMappingColumn=pl;exports.FoxTableRadioColumn=vl;exports.FoxTableSetting=mn;exports.FoxTabsBar=Nl;exports.FoxTabsContainer=El;exports.FoxTabsPane=kl;exports.FoxText=Bl;exports.FoxTimeItem=cl;exports.FoxTimeSelectItem=fl;exports.FoxToast=Ol;exports.FoxTour=ql;exports.FoxTreeSelectItem=Tl;exports.Group=ol;exports.GroupSetting=Cl;exports.HeaderBar=tl;exports.HintText=Lt;exports.Indicator=Ll;exports.InfiniteLoading=Fl;exports.InputItem=il;exports.InputNumberItem=hl;exports.Item=Se;exports.Mapping=Rt;exports.MoneyItem=dl;exports.MoreButton=_l;exports.OverLay=gn;exports.Page=Qn;exports.Popup=Vl;exports.Price=hn;exports.PriorityPolicy=Le;exports.PullRefresh=Ml;exports.RadioItem=bl;exports.RateItem=xl;exports.RollingProvider=Wl;exports.RowItem=al;exports.SearchBar=Dl;exports.SelectItem=sl;exports.SlotItem=rl;exports.StepsBar=Pl;exports.SwitchItem=Sl;exports.TableItem=yl;exports.TableMappingColumn=pl;exports.TableRadioColumn=vl;exports.TableSetting=mn;exports.TabsBar=Nl;exports.TabsContainer=El;exports.TabsPane=kl;exports.Text=Bl;exports.TimeItem=cl;exports.TimeSelectItem=fl;exports.Toast=Ol;exports.Tour=ql;exports.TreeSelectItem=Tl;exports.UniqueID=Er;exports.ValidateSchema=fr;exports.ValidateSchemaKey=je;exports.cancelRaf=ra;exports.clearNonNumber=va;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=en;exports.createValidateSchema=tn;exports.debounce=Vt;exports.debounceRef=Ia;exports.decimalLength=rr;exports.default=Oh;exports.defineBroadcast=xa;exports.defineConfigDomain=mr;exports.defineDataItem=gr;exports.defineDomain=Jn;exports.defineItem=Te;exports.definePageState=vr;exports.defineSimpleItem=pr;exports.deleteGlobalValidator=Na;exports.disabledProperty=Re;exports.divide=Un;exports.excludeProps=ke;exports.extend=ft;exports.floatData=wa;exports.getGlobalValidateCheckEvents=sr;exports.getGlobalValidateResetEvents=cr;exports.getPageContentAreaHeight=Yt;exports.getPageContentAreaWidth=Ut;exports.getPageFooterAreaHeight=Dt;exports.getPageHeaderAreaHeight=Ot;exports.getRootDomain=pt;exports.hasSymbol=Qo;exports.includeProps=ar;exports.indexOf=ya;exports.integerLength=or;exports.isArray=ia;exports.isArrayLike=tr;exports.isBrowser=dt;exports.isDate=ca;exports.isESModule=da;exports.isEmptyString=pe;exports.isEqual=Xe;exports.isFunction=Mn;exports.isHidden=Qt;exports.isInnerPage=Da;exports.isMap=sa;exports.isNil=Xn;exports.isNumberString=lr;exports.isObject=Ze;exports.isPlainObject=Ln;exports.isPromise=Zo;exports.isRegExp=_n;exports.isSet=ua;exports.isString=Xo;exports.isSubPage=Fa;exports.isSymbol=fa;exports.isTouch=Rl;exports.isWindow=er;exports.lastIndexOf=ba;exports.makeArray=pa;exports.merge=nr;exports.multiply=Yo;exports.negate=Uo;exports.nextTick=ma;exports.numberFormat=Zt;exports.objectToString=Jo;exports.once=Va;exports.overrideGlobalValidateHandler=Ca;exports.property=De;exports.raf=Gn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=Ea;exports.setGlobalValidateHandler=Ta;exports.setGlobalValidateMessages=Pa;exports.setGlobalValidateResetEvents=ka;exports.setGlobalValidator=$a;exports.throttle=hr;exports.toBoolean=se;exports.toNumber=we;exports.toPadding=Ke;exports.toPx=de;exports.toPxDesc=Ne;exports.toTypeString=Jt;exports.toValue=he;exports.tryTimes=nn;exports.typeOf=Kt;exports.unNumberFormat=Go;exports.updatePageState=qn;exports.useBroadcast=kt;exports.useDomain=rt;exports.useExpose=Ce;exports.useInnerSize=el;exports.usePageState=on;exports.usePosition=$r;exports.useRawTouch=Al;exports.useRect=Zr;exports.useSize=rn;exports.useTouch=bd;exports.valueLength=Mt;
|