@fox-js/foxui-pad 4.0.1-22 → 4.0.1-24

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Tue Mar 26 2024 08:12:08 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Ge=require("@fox-js/validator"),x=require("element-plus"),ve=require("@element-plus/icons-vue"),Ee=require("@fox-js/i18n"),Bt=window,Zr=typeof window<"u";function Jr(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Qr(e){Zr?cancelAnimationFrame(e):clearTimeout(e)}const _l=Jr();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Wed Apr 17 2024 10:34:43 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),ot=require("@fox-js/validator"),O=require("element-plus"),Te=require("@element-plus/icons-vue"),ye=require("@fox-js/i18n"),Rt=window,Er=typeof window<"u";function Vr(){return typeof Rt<"u"?Rt.requestAnimationFrame||Rt.webkitRequestAnimationFrame||function(e){Rt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ir(e){Er?cancelAnimationFrame(e):clearTimeout(e)}const nl=Vr();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function zt(e,n="0"){let l=0,o=-1;e[0]=="-"&&(l++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=_n(Ce(e),Ce(n)),l==1&&(o==1?e=hn(e):n=hn(n));let r=Hl(e,n);return l?l==2?"-"+Ce(r):e.length<r.length?Ce(r.substring(1)):"-"+Ce(hn(r)):Ce(r)}function hn(e){let n="",l=e.length,o=e.split(".")[1],r=o?o.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Hl(n,a)}function Ce(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function _n(e,n){let l=e.split("."),o=n.split("."),r=l[0].length,a=o[0].length;return r>a?o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=o[1]?o[1].length:0,(r||a)&&(r>a?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Hl(e,n){[e,n]=_n(e,n);let l="",o=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(n[r])+o;l=a%10+l,o=Math.floor(a/10)}return o?o.toString()+l:l}var de=(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))(de||{});function bt(e,n=0,l=de.HALF_EVEN){if(l===de.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let u=a.substr(0,a.length-n);return e=u+"."+a.substr(a.length-n)+i,u=bt(e,0,l),(o?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return a.length,qo(r[1],a,o,l)?(o?"-":"")+pn(a):(o?"-":"")+a;if(r[1]){if(r[1].length<n)return(o?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(o?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let s=r[1].substring(n);return s&&qo(s,i,o,l)&&(i=pn(i),i.length>n)?(o?"-":"")+pn(a,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+a+"."+i}function qo(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===de.DOWN||!l&&o===de.FLOOR||l&&o===de.CEILING)return!1;if(o===de.UP||l&&o===de.FLOOR||!l&&o===de.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(o){case de.HALF_DOWN:return!1;case de.HALF_UP:return!0;case de.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function pn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,o="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,o+=a}return n&&(o+=n),o.split("").reverse().join("")}function En(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=pt(e),n=pt(n);let o=0,r=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=o+r;if(e=pt(e.replace(".","")),n=pt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,s=0,u=[],c=i-1,d="";for(let m=0;m<i;m++)u[m]=e.length-1;for(let m=0;m<2*e.length;m++){let g=0;for(let T=n.length-1;T>=c&&T>=0;T--)u[T]>-1&&u[T]<e.length&&(g+=parseInt(e[u[T]--])*parseInt(n[T]));g+=s,s=Math.floor(g/10),d=g%10+d,c--}return d=pt(ea(d,a)),l==1&&(d="-"+d),d}function ea(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function pt(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 Nn(e,n,l=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ce(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ce(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ce(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ce(e.replace(".","")))}let a=0,i=n.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 c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(l=l+2;a<=l;){let c=0;for(;parseInt(u)>=parseInt(n);)u=zt(u,"-"+n),c++;s+=c,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(o==1?"-":"")+Ce(bt(s,l-2))}function Vn(e,n){return e=e.toString(),n=n.toString(),n=Pn(n),zt(e,n)}function Pn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),jo(e),jo(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Vn(e,En(n,bt(Nn(e,n),0,de.FLOOR)));return l+o}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _o(e,n){let l=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),l=!0),[e,n]=_n(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=de;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[l,o]=n.split(/[eE]/);l=Ce(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=r+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=r+Ce(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=r+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=re.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,o){if(!(l||o))l=3,o=",";else if(!(l&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=re.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",s=a;s>0;)s<l?(l=s,s=0):s-=l,i=n.substring(s,s+l)+(s<a-l&&s>=0?o:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,l){return re.getPrettyValue(this.value,n,l)}static round(n,l=0,o=de.HALF_EVEN){if(n=re.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return bt(n,l,o)}round(n=0,l=de.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new re(bt(this.value,n,l))}static floor(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,de.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,de.FLOOR)}static ceil(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,de.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,de.CEILING)}static add(n,l){return n=re.validate(n),l=re.validate(l),zt(n,l)}add(n){return new re(zt(this.value,n.getValue()))}static subtract(n,l){return n=re.validate(n),l=re.validate(l),Vn(n,l)}subtract(n){return new re(Vn(this.value,n.getValue()))}static multiply(n,l){return n=re.validate(n),l=re.validate(l),En(n,l)}multiply(n){return new re(En(this.value,n.getValue()))}static divide(n,l,o){return n=re.validate(n),l=re.validate(l),Nn(n,l,o)}divide(n,l){return new re(Nn(this.value,n.getValue(),l))}static modulus(n,l){return n=re.validate(n),l=re.validate(l),zo(n,l)}modulus(n){return new re(zo(this.value,n.getValue()))}static compareTo(n,l){return n=re.validate(n),l=re.validate(l),_o(n,l)}compareTo(n){return _o(this.value,n.getValue())}static negate(n){return n=re.validate(n),Pn(n)}negate(){return new re(Pn(this.value))}}function Kl(e,n){return re.multiply(`${e}`,`${n}`)}function Hn(e,n,l=8){return re.divide(`${e}`,`${n}`,l)}function In(e,n){return e=`${e}`,n=`${n}`,re.compareTo(e,n)}function Wl(e){return re.negate(e)}function Yt(e,n=-1,l=!1,o=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="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),n!=-1&&(n<u.length?u=u.substring(0,n):l&&n>u.length&&(u=u.padEnd(n,"0")));let d;if(o>0){let m="",g=s.split("").reverse();for(let T=0;T<g.length;T++)m+=g[T]+((T+1)%o==0&&T+1!=g.length?r:"");u.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${u}`}else u.length==0?d=`${i}${s}`:d=`${i}${s}.${u}`;return d}function Yl(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const Ul=_l,ta=Array.isArray,na=e=>Ut(e)==="[object Map]",oa=e=>Ut(e)==="[object Set]",Me=e=>e instanceof Date,On=e=>typeof e=="function",Gl=e=>typeof e=="string",la=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",ra=e=>Ae(e)&&On(e.then)&&On(e.catch),Xl=Object.prototype.toString,Ut=e=>Xl.call(e),Bn=e=>Ut(e)==="[object Object]",Zl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function aa(e){return e.__esModule||Zl&&e[Symbol.toStringTag]==="Module"}const ia=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Je(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,o=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=n[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},n[i]=Je(r,c,u)}else u!==void 0&&(n[i]=u)}}return n}function An(e,n,l=!1){if(!l)Je(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Bn(i))continue;a=An(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const o=Object.getOwnPropertySymbols(n);for(let r of o){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Bn(i))continue;a=An(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const gn=ia?Promise.resolve():null;function sa(e,...n){gn!==null?n&&n.length>0?gn.then(()=>{e(n)}):gn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function le(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ie(e){return typeof e=="number"?e:Number(e)}const ua={"[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 st(e){let l=Object.prototype.toString.call(e);return e==null?String(e):ua[l]||"object"}function Jl(e){return e&&typeof e=="object"&&"setInterval"in e}function Gt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ql(e){let n=!!e&&"length"in e&&e.length,l=st(e);return l==="function"||Jl(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function er(e,n){let l=+n.length,o=0,r=e.length;for(;o<l;o++)e[r++]=n[o];return e.length=r,e}function ca(e,n=[]){let l=n;return e!=null&&(Ql(Object(e))?er(l,typeof e=="string"?[e]:e):l.push(e)),l}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=st(e),o=st(n);if(l!==o)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],c=n[s];if(!Le(u,c))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!Le(a,i))return!1}return!0}return!1}const et=typeof window<"u";function Kn(e){return e==null}function tr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(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 n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const l=n.indexOf(".");return l==-1?n.length:l}function lr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function Ho(e,n,l){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(l,"")}function fa(e,n=!0,l=!0){n?e=Ho(e,".",/\./g):e=e.replace(/\./g,""),l?e=Ho(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function da(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(Le(e,l))return!0}):n.indexOf(e)}function ma(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(Le(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function Pe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Pt(e,...n){const l={};return n.forEach(o=>{for(const r in o)l[r]=e[r]}),l}function Se(e,...n){const l=[];n.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const o={};for(const r in e)l.includes(r)||(o[r]=e[r]);return o}const ha=(e,n,l)=>{const o=Object.assign({},e),r=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(o[a]=n[r[a]]):n[a]&&(o[a]=n[a])}),o):e},ye=Symbol.for("BroadcastKey");class Wn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,l,o){this.parent=n,this.proxy=l,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const l=this.children.findIndex(o=>n===o);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,l,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let r=!1;!n.name||n.name==="*"?r=!0:!n.name||n.name==="+"?(r=!1,n.name="*"):tr(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...o]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...o]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},l,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(n,l,...o){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},l,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,l){this.callbacks.set(n,l)}}function Xt(e,n,l,o){const r=new Wn(n,e,l);if(o&&typeof o=="object")for(const a in o)r.on(a,o[a]);return r}function pa(e,n,l){const o=l;if(o[ye])return o[ye];const r=t.inject(ye,null),a=new Wn(r,l,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return o[ye]=a,t.provide(ye,a),t.onUnmounted(()=>{a.destroy(),o[ye]=void 0}),a}function vt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ye]??t.inject(ye,null):t.inject(ye,null)}const Xe=e=>e.default??e;class ga{error(n,l){const o=l,r=vt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=vt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=vt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,o){Array.isArray(n)||(n=[n]);const r=o,a=vt(o),i=l.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.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(o))}getValue(n){return n.modelValue}}let rr=new ga;function ya(e){rr=e}function va(e,n){Xe(Ge).setValidator(e,n)}function ba(e){Xe(Ge).deleteValidator(e)}let ar=["blur","clear"];function wa(e){ar=e}function ir(){return ar}let sr=["focus","change"];function Sa(e){sr=e}function ur(){return sr}function xa(e){Xe(Ge).messages(e)}function gt(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const r=n.findIndex(a=>a.type===o.type);r!==-1&&n.splice(r,1),n.push(o)})}),n}function At(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Re=Symbol("ValidateSchemaKey");class cr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,l,o){this.parent=n,this.descriptor=l,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=At(gt(this.attrRules,this.rules)),o=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),o.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};o.push(u)}}this.attrRules=At(o);const r=gt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...l){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...l]);const r=rr;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...l]):null}decorate(n,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,l,o=!1){o?Xe(Ge).setValidator(n,l):this.validators[n]=l}getValidator(n){let l=this.validators[n]??null;return l||(l=this.parent?.getValidator(n)??null),l}deleteValidator(n,l=!1){l?Xe(Ge).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return Xe(Ge).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const l=gt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=At(n):this.rules=At([n]);const o=gt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=gt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${o}`]:l},a=this.getValue(),i={[`${o}`]:a},s=Xe(Ge),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(m=>{if(m.pass)this.success();else{let g="error";Array.isArray(m.errors)&&m.errors.length>0&&(g=m.errors[0].message??g,m.errors=[m.errors[0]],m.errors[0].ref=c),this.error(g)}return m}).catch(m=>{const g=m.message??`${m}`;return this.error(g),m})}}return Promise.resolve({pass:!0})}}function Zt(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new cr(n,l,e)}const Ko=Symbol.for("EventEmitterKey");class Ca{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,l){let o=this.register.get(n);if(o&&Array.isArray(o)){let r=o.findIndex(a=>a===l);r!==-1&&o.splice(r,1)}}on(n,l){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(l)}emit(n,...l){const o=this.register.get(n);o&&o.forEach(r=>{try{Reflect.apply(r,null,[n,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...l])}}function wt(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function fr(e,n){let l=0;return function(...o){const r=new Date().getTime();r-l<n||(l=r,Reflect.apply(e,null,[...o]))}}function Ta(e,n){const l=wt((o,r)=>{e=o,r()},n);return t.customRef((o,r)=>({get(){return o(),e},set(a){l(a,r)}}))}function ka(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function Jt(e,n,l,o=0,r=!0,a){let i=n,s=0;if(r){const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=o,setTimeout(u,i)};setTimeout(u,i)}const Ve=Symbol("DomainKey"),ot=Symbol("DataItemsKey");class Qt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,l=[]){for(const o in n){const r=n[o];l.length>0&&l.indexOf(r)!==-1||(this._props[o]=r)}}has(n){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,l){this._props[n]=l}get(n,l){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?l:this.parent.get(n,l)}getForParent(n,l){return this.parent==null?l:this.parent.get(n,l)}getForSelf(n){return this._props[n]}getAll(n){const l=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const r=o._props[n];l.push(r)}o=o._parent}return l}}const $a=new Qt;function rt(){return $a}function ze(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const yn=Symbol("OriginalDateKey");function Yn(e,n,l=[],o){const r=t.getCurrentInstance(),a=r?.proxy;let i=t.inject(Ve,null);i===null&&(i=rt());const s=e||n.prop||n.name,u=new Qt(s);u.parent=i;const c=p=>{a[yn]||g(p),u.set("modelValue",p)},d=()=>u.getForSelf("modelValue")??null,m=()=>a[yn]??null,g=p=>{const b={};Je(!0,b,t.toRaw(p)),a[yn]=b};t.isReactive(n)||typeof n=="function"?t.watch(n,p=>{u.merge(p,l)},{immediate:!0}):u.merge(n,l),n.modelValue&&g(n.modelValue),a[Ve]=u,t.provide(Ve,u);let T=null,h=null;if(r!==null){const p=t.inject(ye,null);T=Xt(a,p,s,o),u.broadcast=T,a[ye]=T,t.provide(ye,T),a.broadcast=(y,v,...f)=>Reflect.apply(T.emit,T,[y,v,...f]);const b=t.inject(Re,null);h=Zt(a,b,{componentName:""}),u.validateSchema=h,a[Re]=h,t.provide(Re,h),a[ot]=new Map,a.validate=(y=!0)=>{const v=[];let f=null;const B={deep:!1};if(y===!0)f={name:"*"};else if(Array.isArray(y)&&y.length>0){const V=y;f={name:L=>L?V.indexOf(L)!==-1:!1}}else if(y!=null&&typeof y=="object"){const V=y;if(B.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const L=V.include;f={name:R=>R?L.indexOf(R)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const L=V.exclude;f={name:R=>R?L.indexOf(R)===-1:!1}}else f={name:"*"}}if(f){const V=T?.emitToChildren(f,"validate",B);V&&Reflect.apply([].push,v,V)}return v.length==1?v[0]:v.length>1?Promise.all(v).then(V=>{let L=[];return V.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(L=[...L,...R.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(y,v=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(y).forEach(V=>{let L=String(V);const I=hr(u,L,{componentName:"",fieldName:L,pureDataValidate:!0},T,h);a[ot].set(L,I);const E=y[L];E&&I.validateSchema.setRule(E)});return}if(v){const B=Reflect.ownKeys(y),V={name:L=>B.includes(L)};T?.emitToChildren(V,"setNameValidateRules",y,!1)}},a.clearValidate=(y=!0)=>{let v=null;if(y===!0)v={name:"*"};else if(Array.isArray(y)&&y.length>0){const f=y;v={name:B=>B?f.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const f=y;if(Array.isArray(f.include)&&f.include.length>0){const B=f.include;v={name:V=>V?B.indexOf(V)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const B=f.exclude;v={name:V=>V?B.indexOf(V)===-1:!1}}else v={name:"*"}}v&&T?.emitToChildren(v,"clearValidate",!1)},a.resetFields=y=>{const v=d();if(!v)return;const f={};if(Je(!0,f,m()??{}),Array.isArray(y))y.forEach(B=>{v[B]=f[B]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(V=>{v[V]=f[V]});else if(y&&Array.isArray(y.exclude)){let B=y.exclude??[];Reflect.ownKeys(f).forEach(V=>{B.includes(V)||(v[V]=f[V])})}else Object.assign(v,f);a.clearValidate(y)},a.setModelValue=(y,v)=>{!v||v===s?c(y):T?.emitToChildren({name:v},"setModelValue",y)},a.getModelValue=()=>d()}return t.onUnmounted(()=>{u.destroy(),a[Ve]=void 0,a[ot]&&(a[ot].clear(),a[ot]=void 0),T!==null&&(T.destroy(),a[ye]=void 0),h!==null&&(h.destroy(),a[Re]=void 0)}),u}function dr(e,n,l=[]){const r=t.getCurrentInstance()?.proxy;let a=t.inject(Ve,null);a===null&&(a=rt());const i=e||n.prop||n.name,s=new Qt(i);return s.parent=a,t.isReactive(n)||typeof n=="function"?t.watch(n,u=>{s.merge(u,l)},{immediate:!0}):s.merge(n,l),r[Ve]=s,t.provide(Ve,s),t.onUnmounted(()=>{s.destroy(),r[Ve]=void 0}),s}function mr(e,n,l){const r=ze(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{n.setRule(i)}))}function be(e,n,l){const r=t.getCurrentInstance()?.proxy,a=n??"",i=t.inject(ye,null),s=Xt(r,i,a,l);r[ye]=s,t.provide(ye,s),r.broadcast=(h,p,...b)=>Reflect.apply(s.emit,s,[h,p,...b]);const u=t.inject(Re,null);e.fieldName=e.fieldName??a;const c=Zt(r,u,e);r[Re]=c,t.provide(Re,c),mr(r,c,a),r.validate=(h=null)=>{const p=[];let b=!1,y=!1;if(Array.isArray(h)&&h.indexOf(a)!==-1)y=!0,b=!0;else if(h&&typeof h=="object"){const v=h;v.ignoreHidden===!0&&Gt(r.$el)?y=!1:(Array.isArray(v.include)&&v.include.indexOf(a)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(a),y=!0),b=v.deep??!1}else typeof h=="boolean"&&(b=h),y=!0;if(y){const v=c?.validate();p.push(v)}if(b){let v=null;const f={deep:!1};if(h===!0)v={name:"*"};else if(Array.isArray(h)&&h.length>0){const B=h;v={name:V=>V?B.indexOf(V)!==-1:!1}}else if(h!=null&&typeof h=="object"){const B=h;if(f.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const V=B.include;v={name:L=>L?V.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const V=B.exclude;v={name:L=>L?V.indexOf(L)===-1:!1}}else v={name:"*"}}if(v){const B=s.emitToChildren(v,"validate",f);Reflect.apply([].push,p,B)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(v=>{let f=[];return v.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(f=[...f,...B.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>c?.setRule(h),r.setNameValidateRules=(h,p=!1)=>{const b=h[a];if(b&&c?.setRule(b),p){const y={name:v=>Reflect.ownKeys(h).includes(v)};s.emitToChildren(y,"setNameValidateRules",h,!1)}},r.clearValidate=(h=null)=>{(!Array.isArray(h)||h.indexOf(n??"")!==-1)&&c?.clear();let p=null;if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const b=h;p={name:y=>y?b.indexOf(y)!==-1:!1}}else if(h!=null&&typeof h=="object"){const b=h;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;p={name:v=>v?y.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;p={name:v=>v?y.indexOf(v)===-1:!1}}else p={name:"*"}}p&&s.emitToChildren(p,"clearValidate",!1)};const d=new Ca(r);r[Ko]=d;const m=wt((h="validate")=>{h==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(h=>{d.on(h,p=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ur()).forEach(h=>{d.on(h,p=>{m("reset")})}),t.onUnmounted(()=>{s.destroy(),r[ye]=void 0,c.destroy(),r[Re]=void 0,d.destroy(),r[Ko]=void 0}),{broadcast:s,validateSchema:c,emitEvent:(h,...p)=>{Reflect.apply(d.emit,d,[h,...p])},onEvent:(h,p)=>{Reflect.apply(d.on,d,[p])},offEvent:(h,p)=>{Reflect.apply(d.off,d,[p])}}}function hr(e,n,l,o,r){const a={},i=n??"",s={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};l.fieldName=i,l.validateHandler={getValue(d){return s.getValue()}};const u=Zt({},r,l);a.validate=(d=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let g=!1,T=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)T=!0,g=!0;else if(d&&typeof d=="object"){const h=d;Array.isArray(h.include)&&h.include.indexOf(i)!==-1||Array.isArray(h.exclude)&&h.exclude.indexOf(i),T=!0,g=h.deep??!1}else typeof d=="boolean"&&(g=d),T=!0;if(T){const h=u?.validate();m.push(h)}if(g){let h=null;const p={deep:!1};if(d===!0)h={name:"*"};else if(Array.isArray(d)&&d.length>0){const b=d;h={name:y=>y?b.indexOf(y)!==-1:!1}}else if(d!=null&&typeof d=="object"){const b=d;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;h={name:v=>v?y.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;h={name:v=>v?y.indexOf(v)===-1:!1}}else h={name:"*"}}if(h){const b=c.emitToChildren(h,"validate",p);Reflect.apply([].push,m,b)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(h=>{let p=[];return h.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(p=[...p,...b.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>u?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&u?.setRule(m)};const c=Xt(null,o,i,a);return{broadcast:c,validateSchema:u}}const we=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e,n)}px`:"";function se(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(et){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(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*n;const o=Number(e);return isNaN(o)?0:o}const We="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function Fn(e,n,l={},o=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=se(l.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(l.headerPadding??n.headerPadding),e.footerHeight=se(l.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(l.footerPadding??n.footerPadding),e.contentPadding=Oe(l.contentPadding??n.contentPadding),o){const u=l.height??n.height;u?e.height=se(u,a):e.height=se(a)-se(i,a)-se(s,a),e.width=se(l.width??n.width??0,r)}}function pr(e,n={}){const l={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(o.safeAreaTop=se(r.top),o.safeAreaBottom=se(r.bottom),o.safeAreaLeft=se(r.left),o.safeAreaRight=se(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,c=e.get("footerBarHeight")??0;Fn(o,a,n,!0,i,s,u,c);const d=t.reactive(o),m=e.getForParent(We);m&&(o.height=jt(e,m),o.width=_t(e,m),t.watch([()=>jt(e,m),()=>_t(e,m)],([T,h])=>{d.height=T,d.width=h}));const g=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,h,p=-1,b=-1,y=0,v=0])=>{Fn(d,h,n,g,p,b,y,v)}),e.set(We,d),d}function en(e){return e.get(We)}function St(e,n){if(n=n??e.get(We),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function xt(e,n){if(n=n??e.get(We),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function jt(e,n){if(n=n??e.get(We),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=St(e,n),o=xt(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function _t(e,n){return n=n??e.get(We),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Da(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function Ea(e){return!!e.getForParent(We)}var Ye=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ye||{});function vn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,l=1,o){const r=ze();return r==null?e:l===0?t.computed(()=>{const a=r.getAll(n);for(let s=a.length-1;s>=0;s--){const u=a[s];if(vn(u,o))return u}const i=e.value;return vn(i,o)?i:null}):t.computed(()=>{const a=e.value;return vn(a,o)?a:r?.get(n)})}function ke(e){return Ne(e,"readonly",0,function(l){return le(l)})}function $e(e){return Ne(e,"disabled",0,function(l){return le(l)})}function ae(e,n="modelValue",l){const o=t.toRef(e,n);let r=o.value;typeof l=="function"&&(r=l(o.value));const a=t.ref(r);return t.watch(o,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const gr=new Map,Ht=new Map;let Rn=null;function Na(e){Rn=e}function yr(e,n,l){if(l){let o=Ht.get(l);o||(o=new Map,Ht.set(l,o)),o.set(e,n)}else gr.set(e,n)}function Be(e,n,l){!l&&Rn&&(l=Rn(e)??void 0);let o=null;if(l){let r=Ht.get(l);r&&(o=r.get(n))}return o||(o=gr.get(n)),o}function Va(e,n){for(let l in e){const o=e[l];yr(l,o,n)}}function Pa(e){Ht.delete(e)}function Ia(){return{top:0,left:0,bottom:0,right:0}}function Oa(e=0,n=0){if(et){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:o-se(e,o)-se(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ba{packages;installers;_version;get version(){return this._version}constructor(n,l,o){this.packages=n,this.installers=l,this._version=o}install(n,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?n.use(a):a.name&&n.component(a.name,a)}),this.installers.forEach(a=>{a(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=rt();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=fr(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)o.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(n,l){const o=n.headerBarHeight??0,r=n.footerBarHeight??0,a=Je({},Ia(),n.safeAreaInset),i=Oa(o,r),s=Je({},i.pageLayout,n.pageLayout);l=l??rt(),l.set("safeAreaInset",a),l.set("headerBarHeight",o),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(n){Na(n)}setAPI(n,l,o){yr(n,l,o)}getAPI(n,l,o){return Be(n,l,o)}batchSetAPI(n,l){Va(n,l)}clearScopeAPI(n){Pa(n)}getRootDomain(){return rt()}}const Aa=[x.ElAffix,x.ElAlert,x.ElAutocomplete,x.ElAutoResizer,x.ElAvatar,x.ElBacktop,x.ElBadge,x.ElBreadcrumb,x.ElBreadcrumbItem,x.ElButton,x.ElButtonGroup,x.ElCalendar,x.ElCard,x.ElCarousel,x.ElCarouselItem,x.ElCascader,x.ElCascaderPanel,x.ElCheckTag,x.ElCheckbox,x.ElCheckboxButton,x.ElCheckboxGroup,x.ElCol,x.ElCollapse,x.ElCollapseItem,x.ElCollapseTransition,x.ElColorPicker,x.ElConfigProvider,x.ElContainer,x.ElAside,x.ElFooter,x.ElHeader,x.ElMain,x.ElDatePicker,x.ElDescriptions,x.ElDescriptionsItem,x.ElDialog,x.ElDivider,x.ElDrawer,x.ElDropdown,x.ElDropdownItem,x.ElDropdownMenu,x.ElEmpty,x.ElForm,x.ElFormItem,x.ElIcon,x.ElImage,x.ElImageViewer,x.ElInput,x.ElInputNumber,x.ElLink,x.ElMenu,x.ElSubMenu,x.ElMenuItem,x.ElMenuItemGroup,x.ElPageHeader,x.ElPagination,x.ElPopconfirm,x.ElPopover,x.ElPopper,x.ElProgress,x.ElRadio,x.ElRadioButton,x.ElRadioGroup,x.ElRate,x.ElResult,x.ElRow,x.ElScrollbar,x.ElSelect,x.ElOption,x.ElOptionGroup,x.ElSelectV2,x.ElSkeleton,x.ElSkeletonItem,x.ElSlider,x.ElSpace,x.ElSteps,x.ElStep,x.ElSwitch,x.ElTable,x.ElTableColumn,x.ElTableV2,x.ElTabs,x.ElTabPane,x.ElTag,x.ElTimePicker,x.ElTimeSelect,x.ElTimeline,x.ElTimelineItem,x.ElTooltip,x.ElTransfer,x.ElTree,x.ElTreeSelect,x.ElTreeV2,x.ElUpload],Fa=[x.ElInfiniteScroll,x.ElLoading,x.ElMessage,x.ElMessageBox,x.ElNotification,x.ElPopoverDirective],Ra=e=>{Aa.forEach(n=>{let l=n.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,n)):e.use(n)}),Fa.forEach(n=>{e.use(n)})};function oe(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=o=>{o.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},xe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},vr={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}},br={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}},wr=[];for(const e in br)wr.push(e);function me(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const Ma=Symbol.for("InnerPageScopeKey"),La=(e,n)=>({inheritAttrs:!0,props:{...he,...vr,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}},setup(l,o){const r=Yn(l.name,l);if(r){const c=pr(r,l);me({getPageContentHeight:()=>jt(r,c),getPageContentWidth:()=>_t(r,c),getPageHeaderHeight:()=>St(r,c),getPageFooterHeight:()=>xt(r,c)});const d=t.inject(Ma,!1);c&&d&&(c.contentHeight="100%")}const a=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),s=t.getCurrentInstance(),u=(c,d=!1)=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(c,!0,d)};return t.watch([()=>l.rules,()=>l.pureDataRules],([c,d],[m,g])=>{if(c&&m){const T=t.toRaw(m),h=t.toRaw(c),p=h?Reflect.ownKeys(h):[];(T?Reflect.ownKeys(T):[]).forEach(y=>{p.includes(y)||(h[y]=[])}),u(h)}if(d&&g){const T=t.toRaw(g),h=t.toRaw(d),p=h?Reflect.ownKeys(h):[];(T?Reflect.ownKeys(T):[]).forEach(y=>{p.includes(y)||(h[y]=[])}),u(h,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const c=t.toRaw(l.rules);u(c)}if(l.pureDataRules){const c=t.toRaw(l.pureDataRules);u(c,!0)}}),t.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:qa,create:za,scope:rh}=oe("page"),ja=za(La(qa));function _a(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const ce=(e,n)=>{const l=e.__vccOpts||e;for(const[o,r]of n)l[o]=r;return l},Un=ce(ja,[["render",_a]]);function Gn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Xn(e){const n=t.unref(e),l=window.getComputedStyle(n,null),o=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-r,height:n.clientHeight-a-i}}const Ha=(e,n,l,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=ze(),s=i?en(i):null;s&&(s.headerMounted=!0);const u=e,c=t.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?se(r.height):null,g=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const C=Oe(r.padding??s.headerPadding);return Object.assign(w,C),m&&(s.headerHeight=m),s.headerHeight>0&&(w.height=s.headerHeight),w.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(C.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(m&&(w.height=m),r.padding){const C=Oe(r.padding);Object.assign(w,C)}return w}),T=t.ref(null),h=()=>{if(s&&T.value&&!Gt(T.value)){if(!o){const w=Gn(T.value);s.headerAllHeight=w.height}return s.headerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{s&&(Jt(h,50,5,50,!0),window.ResizeObserver&&T.value&&(p=new window.ResizeObserver(()=>{h()}),p.observe(T.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,p&&(p.disconnect(),p=null))});const b=t.computed(()=>{const w={};return g.value.height!==null&&g.value.height!==void 0&&(w.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(w.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(w.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(w.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(w.paddingBottom=`${g.value.bottom}px`),w}),y=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function v(){a.emit("back")}function f(){a.emit("click-title")}function B(){a.emit("click-right")}function V(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const w=[];if(a.slots.left)w.push(a.slots.left());else{if(a.slots.leftIcon){const C=t.h("view",{class:"left-icon",onClick:v},[a.slots.leftIcon()]);w.push(C)}else if(r.leftIcon){const C=t.h("view",{class:"left-icon",onClick:v},[t.h(r.leftIcon)]);w.push(C)}if(r.leftText){const C=t.h("view",{class:"left-text",onClick:v},[r.leftText]);w.push(C)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},R=()=>{if(!r.rightShow)return null;const w=[];if(a.slots.right)w.push(a.slots.right());else{if(r.rightText){const C=t.h("view",{class:"right-text",onClick:V},[r.rightText]);w.push(C)}if(a.slots.rightIcon){const C=t.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);w.push(C)}else if(r.rightIcon){const C=t.h("view",{class:"right-icon",onClick:B},[t.h(r.rightIcon)]);w.push(C)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},I=()=>{if(!r.titleShow)return null;const w=[],C=a.slots.default?a.slots.default():null;if(C)w.push(C);else{if(r.title){const O=t.h("view",{class:"title-text"},[r.title]);w.push(O)}if(a.slots.titleIcon){const O=t.h("view",{class:"title-icon",onClick:f},[a.slots.titleIcon()]);w.push(O)}else if(r.titleIcon){const O=t.h("view",{class:"title-icon",onClick:f},[t.h(r.titleIcon)]);w.push(O)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},E=()=>{const w=[],C=a.slots.bottom?a.slots.bottom():null;return C&&w.push(C),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!y.value)return null;const w=[];if(a.slots.all)w.push(a.slots.all());else{const O=[],S=L();S&&O.push(S);const k=I();k&&O.push(k);const D=R();if(D&&O.push(D),O.length>0){const N=t.h("view",{class:d.value},O);w.push(N)}const F=E();F&&w.push(F)}if(w.length===0)return null;const C={class:c.value,style:b.value,ref:T};return t.h("view",C,w)}}}),{componentName:Ka,create:Wa,scope:Ya}=oe("header-bar"),Zn=Wa(Ha(Ka,Ya,ve.ArrowLeft));function Ua(e,n,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,r){const a=ze(),i=a?en(a):null,s=t.computed(()=>{const h=e;return{[h]:!0,[`${h}--${o.align}`]:!0,[`${h}--border`]:o.border,[`${h}--fixed`]:o.fixed,[`${h}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),u=o.height!==null&&o.height!==void 0?se(o.height):null,c=t.computed(()=>{const h={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const p=Oe(o.padding??i.footerPadding);return Object.assign(h,p),u&&(i.footerHeight=u),i.footerHeight>0&&(h.height=i.footerHeight),h.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,h.safeAreaBottom>0&&(h.bottom=h.safeAreaBottom+(p.bottom??0),h.height&&h.height>0&&(h.height=h.height+h.safeAreaBottom)),h}if(u&&(h.height=u),o.padding){const p=Oe(o.padding);Object.assign(h,p)}return h}),d=t.ref(null),m=()=>{if(i&&d.value&&!Gt(d.value)){if(!l){const h=Gn(d.value);i.footerAllHeight=h.height}return i.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{i&&(Jt(m,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{m()}),g.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,g&&(g.disconnect(),g=null))});const T=t.computed(()=>{const h={};return c.value.height!==null&&c.value.height!==void 0&&(h.height=we(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(h.paddingTop=we(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(h.paddingLeft=we(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(h.paddingRight=we(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(h.paddingBottom=we(c.value.bottom)),h});return()=>{const h=r.slots.default?r.slots.default():[],p={ref:d,class:s.value,style:T.value};return t.h("view",p,h)}}}}const{componentName:Ga,create:Xa,scope:ah}=oe("footer-bar"),Jn=Xa(Ua(Ga));function Za(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=ze(),r=t.computed(()=>({[e]:!0})),a=o?en(o):null,i=t.computed(()=>{const c={};if(o&&a){if(l.padding){const T=Oe(l.padding);Object.assign(a.contentPadding,T)}const d=St(o,a),m=xt(o,a);let g="";if(a.contentHeight?g=`${a.contentHeight}`:g=`${a.height}px`,a.contentPadding,c.height=g,a.contentPadding.top||d>0){const T=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+T}px`}if(a.contentPadding.bottom||m>0){const T=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${m+T}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(l.padding){const d=Oe(l.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),s=t.ref(null),u=()=>{if(a&&s.value){const c=Xn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return t.onMounted(()=>{u()}),o&&a&&t.watch([()=>St(o),()=>xt(o)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ja,create:Qa,scope:ih}=oe("content"),ei=Qa(Za(Ja));function ti(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Qn=ce(ei,[["render",ti]]),ut="GroupStateKey",Sr=Symbol.for("GroupScopeKey");function tn(){return t.inject(Sr,!1)}function nn(e=!0){t.provide(Sr,e)}function ni(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const r=n[o];Kn(r)||(e[o]=r)})}function oi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ni(o,n);const r=t.shallowRef(o),a=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ut,a),a}function bn(e,n,l=-1,o=-1,r=!1,a,i,s){const u=e.get(ut);if(!u)return;const c=e.get("groupLayout")??{};l===-1&&(l=c.column??1),o===-1&&(o=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=se(a),m=se(i);s||(s=c.type??"grid");const g=()=>{const T=n===""||n===-1,h=se(n);let p=ie(l);const b=se(o);if(!T){let f=(h-(p-1)*b)/p;for(;m!==-1&&f>m;)p++,f=(h-(p-1)*b)/p;for(;d!==-1&&p>1&&f<d;)p--,f=(h-(p-1)*b)/p}let y=!1;const v=u.layout;v.value.width=n,v.value.column!==p&&(v.value.column=p,y=!0),v.value.gutter!==b&&(v.value.gutter=b,y=!0),v.value.type!==s&&(v.value.type=s,y=!0),y&&t.triggerRef(v)};if(r)g();else{const T=++u.passport;setTimeout(()=>{T===u.passport&&g()},50)}}function on(e,n=!1){let l;return n?l=e.getForParent(ut):l=e.get(ut),l.layout}function ln(e,n=!1){let l;return n?l=e.getForParent(ut):l=e.get(ut),l.order}function Wo(e,n=1){if(n==="stretch")return-1;const l=ie(n);return l===-1?100:100*l/e}function rn(e,n,l=1,o=0,r){const a={};let i=0;r?i=se(r):i=Wo(n.column,l),i>0&&(a.width=`${i}%`);const s=Wo(n.column,o);s>0&&(a["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function an(e,n,l=1,o=0){if(l==="stretch"){const u=e.index%n.column,c=u+(n.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let r=ie(l);if(r===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const a=ie(o)%n.column;let i=(e.index+a)%n.column,s=i+r;return s>n.column?(i=0,s=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const xr=Symbol("RollingStateKey");function li(e){t.provide(xr,e)}function ri(){return t.inject(xr,null)}function Mn(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function ai(e){let n=Mn(e);if(n<=0){const l=e.cloneNode(!0),o=e.offsetWidth;l.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=Mn(l),document.body.removeChild(l)}return n}function ii(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const si={...he,...vr,...br};function ui(e,n,l){return{props:si,emits:["update:collapse"],setup(o,r){const a=Yn(o.name,o,wr),i=oi(a,{type:o.type}),s=tn();nn(!0);const u=o.rollingDisplay?ri():null,c=t.ref(null),d=t.computed(()=>o.rollingDisplay?u&&!u.disabled:!1),m=t.computed(()=>s&&a?on(a,!0).value:null),g=t.getCurrentInstance(),T=(q,W=!1)=>{const X=g?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(q,!0,W)};t.watch([()=>o.rules,()=>o.pureDataRules],([q,W],[X,K])=>{if(q&&X){const P=t.toRaw(X),Y=t.toRaw(q),Q=Y?Reflect.ownKeys(Y):[];(P?Reflect.ownKeys(P):[]).forEach(fe=>{Q.includes(fe)||(Y[fe]=[])}),T(Y)}if(W&&K){const P=t.toRaw(K),Y=t.toRaw(W),Q=Y?Reflect.ownKeys(Y):[];(P?Reflect.ownKeys(P):[]).forEach(fe=>{Q.includes(fe)||(Y[fe]=[])}),T(Y,!0)}},{deep:!0});const h=e,p=t.computed(()=>{const q={};q.height=D.value;const W=s?ln(a,!0):null;if(m.value&&W){if(m.value.type==="grid"){const X=an(W,m.value,o.span,o.offset);Object.assign(q,X)}else if(m.value.type==="flow"){const X=rn(W,m.value,o.span,o.offset,o.width);Object.assign(q,X)}}else if(o.width){const X=we(o.width);q.width=X}return q}),b=t.computed(()=>{const q=i.layout.value.type;return q==="grid"||q==="flow"?{[`${h}--${q}`]:!0,[`${h}--${q}-justify-${o.justify}`]:!0,[`${h}--${q}-align-${o.align}`]:!0,[`${h}--gutter`]:!0}:{[`${h}--${q}`]:!0,[`${h}--gutter`]:!0}}),y=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const X=ii(I.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),v=t.toRef(o,"gutter"),f=t.toRef(o,"column"),B=t.computed(()=>s||d.value?!0:le(o.isWrap)),V=[],L=q=>{V.push(q)},R=()=>{let q=V.length;V.splice(0,q)},I=t.ref(-1),E=q=>{const W=Xn(q).width;W>0&&W!==I.value&&(I.value=W)};bn(a,I.value,f.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([I,f,v],([q,W,X])=>{i.order.index=0,bn(a,q,W,X,!1,o.minItemWidth,o.maxItemWidth,o.type)});const w=t.computed(()=>F.value?o.expandText??"":o.collapseText??""),C=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),O=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),S=t.ref(),k=t.ref(),D=t.computed(()=>N.value||we(o.height)||""),F=t.ref(!1),N=t.ref(""),_=t.ref(!1);let A=-1;const z=(q,W=!0)=>{const X=S.value;if(X&&F.value!==q){if(A=A===-1?ai(X):A,_.value=!0,W)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",q||(N.value="",_.value=!1)},q){let K=0;o.collapseHeight?K=o.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(K=k.value.offsetHeight),N.value=`${A}px`,t.nextTick(()=>{N.value=`${K}px`})}else N.value=`${A}px`;else if(q){let K=0;o.collapseHeight?K=o.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(K=k.value.offsetHeight),N.value=`${K}px`}else _.value=!1,N.value=`${A}px`;F.value=q,r.emit("update:collapse",q)}};t.watch(()=>o.collapse,q=>{z(q)});const U=()=>{H()},H=q=>{q=q??!F.value,z(q)};me({toggleCollapse:H,doLayout:()=>{V[0]&&(E(V[0]),bn(a,I.value,f.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let Z=null,ee=!0;const M=q=>{if(o.rules){const W=t.toRaw(o.rules);T(W)}if(o.pureDataRules){const W=t.toRaw(o.pureDataRules);T(W,!0)}if(et&&(q&&z(le(o.collapse),!1),o.autoLayout&&Array.isArray(V)&&V.length>0)){const W=V[0];E(W),window.ResizeObserver&&(Z=new window.ResizeObserver(()=>{E(W)}),Z.observe(W))}},J=()=>{Z?.disconnect(),Z=null},te=!d.value||u?.acquire();te&&(c.value=d.value?!0:null),t.onMounted(()=>{if(te&&(M(ee),ee=!1),d.value&&u){let q=null,W=u.initialHeight;u.observe(S.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(N.value=""),q=setTimeout(()=>{q=null,c.value!==!1&&(M(ee),ee=!1)},100);else{if(q!==null&&clearTimeout(q),c.value=!1,!F.value)if(ee)N.value=u.initialHeight;else{let K=Mn(S.value);K<=0?N.value=W:(N.value=`${K}px`,W=N.value)}ee||J()}})}}),t.onUnmounted(()=>{Z?.disconnect(),u&&u.unobserve(S.value)});const $=(q="right")=>{const W=[];if(w.value){const P={class:C.value},Y=t.h("span",P,[w.value]);W.push(Y)}const X={class:O.value},K=l(o.collapseIcon,X);return K&&W.push(K),W.length>0?t.h("div",{class:{[`${h}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:U},W):null},j=(q,W,X,K)=>{const P={...b.value};return W===0&&(P[`${h}__first`]=!0),X>=K-1&&(P[`${h}__last`]=!0),t.h("div",{ref:L,key:`${W}`,class:P,style:y.value},q)};return()=>{if(d.value&&c.value!==!0){const P=o.tag||"div";return t.h(P,{ref:S,prop:o.name,class:{[`${h}`]:!0,"is-collapse":_.value},style:p.value},[])}i.order.index=0;const q=[];let W=0;if(r.slots.header){const P={key:`${W++}`,ref:k,class:{[`${h}__header`]:!0,[`${h}__first`]:!0}},Y=t.h("div",P,[r.slots.header()]);q.push(Y)}else{const P=[],Y=o.collapsePosition==="left";if(Y&&o.showCollapse){const Q=$("left");Q&&P.push(Q)}if(o.title||r.slots.title){if(o.showMark){const Q={class:{[`${h}__header-mark`]:!0}};o.markColor&&(Q.style={background:o.markColor});const ue=t.h("div",Q);P.push(ue)}if(r.slots.title){const Q=t.h("div",{class:{[`${h}__header-title`]:!0}},[r.slots.title()]);P.push(Q)}else if(o.title){const Q=t.h("div",{class:{[`${h}__header-title`]:!0}},[o.title]);P.push(Q)}}if(r.slots.toolbar&&P.push(r.slots.toolbar()),!Y&&o.showCollapse){const Q=$("right");Q&&P.push(Q)}if(P.length>0){const Q={key:`${W++}`,ref:k,class:{[`${h}__header`]:!0,[`${h}__first`]:!0}},ue=t.h("div",Q,P);q.push(ue)}}R();const X=r.slots.default?r.slots.default():[],K=i.layout.value.type;if(K==="grid"){const P=j(X,W++,0,X.length);q.push(P)}else if(K==="flow"){const P=j(X,W++,0,X.length);q.push(P)}else for(let P=0;P<X.length;P++){const Y=X[P],Q=j([Y],W++,P,X.length);q.push(Q)}if(B.value){const P=o.tag||"div";return t.h(P,{ref:S,prop:o.name,class:{[`${h}`]:!0,"is-collapse":_.value},style:p.value},[q])}else return q}}}}const{componentName:ci,create:fi,scope:di}=oe("group"),mi=(e,n)=>(e=e??ve.ArrowUp,t.h(x.ElIcon,n,{default:()=>[t.h(e)]})),eo=fi(ui(ci,di,mi));function hi(e){return e===window}const pi=/matrix\((.+)\)/,Cr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(hi(n))return{x:0,y:0};let l=0,o=0,r=n;for(;r!==null;)l+=r.offsetLeft,o+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=pi.exec(c);if(d){let g=d[1].split(/\s*,\s*/);g.length==6&&(s+=Number(g[4]),u+=Number(g[5]))}}r=r.parentNode}return l-=a,o-=i,l+=s,o+=u,{x:l,y:o}};class gi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const l=this.watchedListeners.indexOf(n);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class yi{monitorRegister=new WeakMap;watch(n,l){let o=n.parentNode;const r=document.body.parentNode;for(;o&&o!==r;){let a=this.monitorRegister.get(o);a||(a=new gi,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(l),o=o.parentNode}}unwatch(n,l){let o=n.parentNode;const r=document.body.parentNode;for(;o&&o!==r;){let a=this.monitorRegister.get(o);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}}const Yo=new yi,Tr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:vi,create:bi}=oe("price"),wi=bi({props:{...Tr},setup(e){const n=t.computed(()=>({[vi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Pe(e.price)==0?"":Yt(e.price,e.decimalLength,!0,ie(e.digits),e.separator)),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:l,intText:r,decimalText:a}}}),Si=["innerHTML"],xi=["innerHTML"];function Ci(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Si)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,xi)):t.createCommentVNode("",!0)],2)}const sn=ce(wi,[["render",Ci]]),{componentName:wn,create:Ti}=oe("hint-text"),ki=Ti({components:{Price:sn},props:{...Tr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const l=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),r=t.ref(0),a=t.ref(0),i=t.ref(e.placement),s=t.ref(!1),u=t.ref(null),c=(C,O,S,k,D,F)=>{const N=document.documentElement.clientWidth||document.body.clientWidth,_=document.documentElement.clientHeight||document.body.clientHeight,A=C.split("-");let z=[];A[0]==="top"?z=["top","bottom","right","left"]:A[0]==="bottom"?z=["bottom","top","right","left"]:A[0]==="left"?z=["left","top","bottom","right"]:A[0]==="right"&&(z=["right","top","bottom","left"]);const U={top:null,right:null,bottom:null,left:null},H=[];for(let G=0;G<z.length;G++){const Z=z[G];if(H[0]=Z,A[1]&&(H[1]=A[1]),Z==="top"){const ee=O.y-F-e.arrowSize-e.offset;if(ee>=0){U.top=ee;let M=0;A[1]==="start"?M=O.x:A[1]==="end"?M=O.x+S-D:M=O.x+S/2-D/2;const J=N-M-D;J<0?(M+=J,m.value=-J):m.value=0,U.left=M<0?0:M;break}}else if(Z==="bottom"){const ee=O.y+k+e.arrowSize+e.offset;if(ee+F<=_){U.top=ee;let M=0;A[1]==="start"?M=O.x:A[1]==="end"?M=O.x+S-D:M=O.x+S/2-D/2;const J=N-M-D;J<0?(M+=J,m.value=-J):m.value=0,U.left=M<0?0:M;break}}else if(Z==="left"){const ee=O.x-D-e.arrowSize-e.offset;if(ee>=0){U.left=ee;let M=0;A[1]==="start"?M=O.y:A[1]==="end"?M=O.y+k-F:M=O.y+k/2-F/2,U.top=M<0?0:M;break}}else if(Z==="right"){const ee=O.x+S+e.arrowSize+e.offset;if(ee+D<=N){U.left=ee;let M=0;A[1]==="start"?M=O.y:A[1]==="end"?M=O.y+k-F:M=O.y+k/2-F/2,U.top=M<0?0:M;break}}}return{bestPlacement:H.join("-"),bestInsetRect:U}},d=(C,O,S=10)=>{if(!et||O===!1||!C)return;o.value=Cr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:F,bestInsetRect:N}=c(e.placement,o.value,r.value,a.value,D,k);i.value=F,l.value=N,s.value=!0},m=t.ref(0),g=wt(()=>{d(e.message,e.visible)},10),T=t.ref(e.visible);t.watch(()=>e.visible,C=>{T.value=C});const h=t.computed(()=>T.value&&p.value),p=t.ref(!0),b=wt(C=>{const O=C[0];O&&(p.value=O.isIntersecting)},10),y=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([C,O])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Yo.watch(e.reference,g),y.observe(e.reference)}),t.onBeforeMount(()=>{Yo.unwatch(e.reference,g),y.unobserve(e.reference),y.disconnect()});const v=t.computed(()=>{const C={[wn]:!0};return i.value.startsWith("top")?C["is-top"]=!0:i.value.startsWith("right")?C["is-right"]=!0:i.value.startsWith("bottom")?C["is-bottom"]=!0:i.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),f=t.computed(()=>{const C={};l.value.top!==null&&(C.top=`${l.value.top}px`),l.value.right!==null&&(C.right=`${l.value.right}px`),l.value.bottom!==null&&(C.bottom=`${l.value.bottom}px`),l.value.left!==null&&(C.left=`${l.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`);const O=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${O}px`,s.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),B=t.computed(()=>{const C=[`${wn}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),V=t.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),L=t.computed(()=>({[`${wn}__arrow`]:!0})),R=t.computed(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,i.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="top-start"?(C.left=`${e.arrowOffset+m.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-m.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(C.left=`${e.arrowOffset+m.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-m.value}px`,C.top=`-${e.arrowSize}px`):i.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),I=t.computed(()=>h.value&&e.closeOnClick),E=t.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:h,tipRef:u,classes:v,styles:f,textClasses:B,textStyles:V,arrowClasses:L,arrowStyles:R,overlayShow:I,overlayStyle:E,onClickOverlay:()=>{T.value=!1,n.emit("update:visible",!1)}}}});function $i(e,n,l,o,r,a){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const It=ce(ki,[["render",$i]]);class kr{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Ln={},Di=new kr,at=new Map,Kt=e=>{if(e){const n=document.getElementById(e);at.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of at.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}at.clear()}},Ei=e=>{e.unmount=Kt;const n=document.getElementById(e.id);if(n){const l=at.get(e.id);l?e={...Ln,...l,...e}:e={...Ln,...e},e.transition=!1;const o=t.createVNode(It,e);return t.render(o,n),e.id}},Ni=e=>{e.unmount=Kt;let n=e.id??`hinttext_${Di.get()}`;e={...Ln,...e},e.id=n,at.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(It,e);return t.render(o,l),document.body.appendChild(l),n},Vi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Te={show(e,n,l={},o=!0){Vi(n);const r=l.id;return r&&at.has(r)?Ei({...l,message:n,reference:e}):(o&&Kt(),Ni({...l,message:n,reference:e}))},hide(e){Kt(e)},install(e){e.config.globalProperties.$hintText=Te}},{componentName:Uo,create:Pi}=oe("item"),Ii=Pi({inheritAttrs:!0,props:{...he,...xe},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;be({componentName:Uo,validate:!1},l);const o=ze(),r=tn();nn(!1);const a=t.computed(()=>r&&o?on(o,!1).value:null),i=Uo,s=t.ref(null),u=t.computed(()=>{const $={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:le(e.hasBorder)};if($[e.errorMarkClass]=!!O.value,$[e.warnMarkClass]=!!w.value,$[e.infoMarkClass]=!!I.value,typeof s.value=="function"){const j=s.value(l);$[j]=!0}else if(typeof s.value=="string"){const j=s.value;$[j]=!0}return $}),c=t.ref(null),d=t.computed(()=>{const $={},j=r&&o?ln(o,!1):null;if(a.value&&j)if(a.value.type==="grid"){const q=an(j,a.value,e.span,e.offset);Object.assign($,q)}else if(a.value.type==="flow"){const q=rn(j,a.value,e.span,e.offset,e.width);Object.assign($,q)}else return e.width&&($.width=we(e.width)),$;else e.width&&($.width=we(e.width));if(typeof c.value=="function"){const q=c.value(l);q&&Object.assign($,q)}else if(c.value&&typeof c.value=="object"){const q=c.value;Object.assign($,q)}return $}),m=t.ref(null),g=t.computed({get:()=>m.value??le(e.isRequired),set:$=>{m.value=$}}),T=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),h=Ne(t.toRef(e,"labelPosition"),"labelPosition",Ye.Near),p=t.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),b=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${p.value}`]:!0})),y=t.computed(()=>({label:!0,[`label--${p.value}`]:!0})),v=Ne(t.toRef(e,"labelWidth"),"labelWidth",Ye.Near),f=t.computed(()=>v&&v.value?{width:we(v.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":g.value})),V=t.computed(()=>({content:!0,[e.contentClass]:!0})),L=t.computed(()=>({...e.contentStyle})),R=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired($){g.value=$},setErrorTip($){R.errorTip=$},setErrorIcon($){R.errorIcon=$},setWarnTip($){R.warnTip=$},setWarnIcon($){R.warnIcon=$},setInfoTip($){R.infoTip=$},setInfoIcon($){R.infoIcon=$},setCustomClassName($){s.value=$},setCustomStyle($){c.value=$}});const I=t.computed(()=>e.infoTip||R.infoTip),E=t.computed(()=>e.infoIcon||R.infoIcon),w=t.computed(()=>e.warnTip||R.warnTip),C=t.computed(()=>e.warnIcon||R.warnIcon),O=t.computed(()=>e.errorTip||R.errorTip),S=t.computed(()=>e.errorIcon||R.errorIcon),k=t.computed(()=>O.value?"error":w.value?"warn":I.value?"info":""),D=t.computed(()=>k.value.length>0),F=t.computed(()=>k.value==="error"?O.value:k.value==="warn"?w.value:k.value==="info"?I.value:""),N=t.computed(()=>k.value==="error"?S.value:k.value==="warn"?C.value:k.value==="info"?E.value:null),_=t.computed(()=>{let $={[`${i}__tip`]:!0,[`${i}__tip--${k.value}`]:!0};return k.value==="error"&&e.errorClass?$[`${e.errorClass}`]=!0:k.value==="warn"&&e.warnClass?$[`${e.warnClass}`]=!0:k.value==="info"&&e.infoClass&&($[`${e.infoClass}`]=!0),$}),A=t.computed(()=>{let $={};return h&&h.value==="top"||!T.value?$["padding-left"]="0px":v&&v.value&&($["padding-left"]=we(v.value)),$}),z=()=>{const $=N.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--icon"},[$()]):t.h("div",{class:"fox-item__tip--icon"},[t.h($)]):null},U=()=>{const $=F.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--text"},[$()]):t.h("div",{class:"fox-item__tip--text"},[$]):null},H=t.computed(()=>n.slots.fixedTip),G=t.computed(()=>({[`${i}__fixed-tip`]:!0})),Z=t.ref();let ee="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([$,j,q,W])=>{Z.value&&($&&!ge(j)?ee?Te.show(Z.value,j,{...W,id:ee,type:q},!0):ee=Te.show(Z.value,j,{...W,type:q},!0):Te.hide(ee))});let M=null;const J=()=>{M||!Z.value||(M=new IntersectionObserver($=>{let j=!1;for(let q of $)if(q.intersectionRatio>0){j=!0,j&&n.emit("appear",q);break}j||n.emit("disappear")}),M.observe(Z.value))},te=()=>{!M||!Z.value||(M.unobserve(Z.value),M=null)};return t.watch(()=>le(e.appearListen),$=>{$?J():te()}),t.onMounted(()=>{le(e.appearListen)&&J()}),t.onUnmounted(te),{classes:u,styles:d,mainClasses:b,hasLabel:T,labelClasses:y,labelStyles:f,labelStringClasses:B,contentClasses:V,contentStyles:L,contentRef:Z,hasTip:D,mTip:F,mIcon:N,renderIcon:z,renderTip:U,tipClasses:_,tipStyles:A,hasFixedTip:H,fixedTipClasses:G}}}),Oi=["prop"];function Bi(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Oi)}const pe=ce(Ii,[["render",Bi]]);function Ai(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,o){const r=ze(),a=tn();nn(!1);const i=t.computed(()=>a&&r?on(r,!1).value:null),s=e,u=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),c=t.computed(()=>{const d={},m=a&&r?ln(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const g=an(m,i.value,l.span,l.offset);Object.assign(d,g)}else if(i.value.type==="flow"){const g=rn(m,i.value,l.span,l.offset,l.width);Object.assign(d,g)}else return l.width&&(d.width=we(l.width)),d;else l.width&&(d.width=we(l.width));return d});return()=>{const d={class:u.value,style:c.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",d,o.slots.default()):t.h("div",d)}}}}const{componentName:Fi,create:Ri,scope:sh}=oe("slot-item"),to=Ri(Ai(Fi));function Mi(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,o){const r=e,a=t.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=ze(),s=tn();nn(!1);const u=t.computed(()=>{const c={};if(s&&i){const d=on(i,!1),m=ln(i,!1);if(d.value&&m)if(d.value.type==="grid"){const g=an(m,d.value,l.span,l.offset);Object.assign(c,g)}else if(d.value.type==="flow"){const g=rn(m,d.value,l.span,l.offset,l.width);Object.assign(c,g)}else l.width&&(c.width=we(l.width))}else l.width&&(c.width=we(l.width));return c});return()=>{const c=[];if(o.slots.default){const m=o.slots.default();if(l.divide)for(let g=0;g<m.length;g++){if(g>0){const T=t.h("div",{class:{[`${r}__divide`]:!0}});c.push(T)}c.push(m[g])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:u.value};return t.h("div",d,c)}}}}const{componentName:Li,create:qi,scope:uh}=oe("row-item"),no=qi(Mi(Li)),je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(o=>{typeof o=="string"&&o.indexOf("data-fox")!==0&&(n[o]=e[o])}),n},Go={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 zi(e,n,l){return{props:{...he,...xe,...Go},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__readonly`]:i.value})),h=S=>{m.value=S,s("update:modelValue",S),s("input",S)},p=S=>{s("change",S)};let b=ae(o,"hintText"),y=t.ref(!1);const v=S=>{let D=S.target.value;d.value=!0,ge(b.value)||(y.value=!0),s("focus",D,S)},f=S=>{setTimeout(()=>{y.value&&(y.value=!1),d.value=!1},0);let D=S.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),s("blur",D,S)},B=()=>{s("clear","")},V=t.ref(!1);let L=null;const R=()=>{o.showTooltip&&V.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{V.value=!0},150))},I=()=>{L&&(clearTimeout(L),V.value=!1,L=null)},E=t.computed(()=>V.value||y.value),w=t.computed(()=>V.value?m.value:b.value),C=t.computed(()=>Pe(o.unit)>0),O=t.ref();return me({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const k={...je(r.attrs),ref:O,class:T.value,placeholder:c.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:p,onInput:h,onFocus:v,onBlur:f,onMouseover:R,onMouseleave:I},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:C.value&&(D.suffix=()=>[o.unit]);const F=[],N=t.h(x.ElInput,k,D);F.push(N);const _={default:()=>F};r.slots.default&&(_.label=r.slots.default),r.slots.default&&(_.fixedTip=r.slots.fixedTip);const z={...Se(o,Go),hintText:w.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(l,z,_)}}}}const{componentName:ji,create:_i,scope:Hi}=oe("input-item"),oo=_i(zi(ji,Hi,pe)),lo={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String]},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:{}}},$r=2500;let Sn=$r;const Ki=(e,n)=>({components:n,props:{...lo},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:o}){const r=t.reactive({zIndex:l.zIndex??Sn,showSlot:!0,closed:l.closeable}),a=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=t.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{l.zIndex&&l.zIndex!==$r&&(Sn=Number(l.zIndex)),o("update:visible",!0),r.zIndex=++Sn,l.destroyOnClose&&(r.showSlot=!0),o("open")},c=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},d=p=>{o("click-pop",p)},m=p=>{p.stopPropagation(),o("click-close-icon",p),o("update:visible",!1)},g=p=>{o("click-overlay",p),l.closeOnClickOverlay&&o("update:visible",!1)},T=p=>{o("opend",p)},h=p=>{o("closed",p)};return t.watch(()=>l.visible,p=>{l.visible?u():c()}),t.watchEffect(()=>{r.closed=l.closeable}),{...t.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:g,onOpened:T,onClosed:h}}}),Dr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},ro={...lo,...Dr,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};function Wi(e){return e===window}const Ze=e=>{const n=t.unref(e);if(Wi(n)){const l=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let yt=0;const Xo="fox-overflow-hidden",Zo=()=>et?document.body:{classList:[]},Yi=e=>[()=>{if(e())try{!yt&&Zo().classList.add(Xo),yt++}catch{}},()=>{if(e()&&yt)try{yt--,!yt&&Zo().classList.remove(Xo)}catch{}}],Ui={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:Gi,create:Xi}=oe("overlay"),Zi=Xi({props:{...Ui},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=Yi(()=>e.lockScroll),r=t.computed(()=>({[Gi]:!0,[e.overlayClass]:!0})),a=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():o()}),{classes:r,style:a,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ji(e,n,l,o,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Ct=ce(Zi,[["render",Ji]]),Qi=["aria-labelledby"],es=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ts=[es],ns=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,r=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ts,14,Qi))}}),os=["aria-labelledby"],ls=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),rs=[ls],as=t.defineComponent({__name:"JoySmile",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,r=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},rs,14,os))}}),is=["aria-labelledby"],ss=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),us=[ss],cs=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,r=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},us,14,is))}}),fs=["aria-labelledby"],ds=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ms=[ds],hs=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,r=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ms,14,fs))}}),{componentName:ps,create:gs}=oe("popup"),ys=gs(Ki(ps,{[Ct.name]:Ct,Close:cs}));function vs(e,n,l,o,r,a){const i=t.resolveComponent("fox-overlay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const qe=ce(ys,[["render",vs]]),Jo=10;function bs(e,n){return e>n&&e>Jo?"horizontal":n>e&&n>Jo?"vertical":""}function ao(){const e=t.ref(0),n=t.ref(0),l=t.ref(0),o=t.ref(0),r=t.ref(0),a=t.ref(0),i=t.ref(0),s=t.ref(0),u=t.ref(0),c=t.ref(0),d=t.ref(""),m=()=>d.value==="vertical",g=()=>d.value==="horizontal",T=()=>{i.value=0,s.value=0,u.value=0,c.value=0,d.value="",l.value=0};return{move:b=>{const y=b.touches[0];i.value=y.clientX-e.value,s.value=y.clientY-n.value,r.value=y.clientX,a.value=y.clientY,u.value=Math.abs(i.value),c.value=Math.abs(s.value),o.value=Date.now()-l.value,d.value||(d.value=bs(u.value,c.value))},start:b=>{T(),e.value=b.touches[0].clientX,n.value=b.touches[0].clientY,l.value=Date.now()},reset:T,startX:e,startY:n,startTime:l,duration:o,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:d,isVertical:m,isHorizontal:g}}let Er=36;function ws(){return Er}function Ss(e){Er=e}function Ie(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function xs(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function Qe(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Cs=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Ts(){const e=t.getCurrentInstance();return new Cs(e.proxy)}function el(e,n,l){const o=Ie(e,n),r=Ie(e,l);if(o!==r)return!1;const a=Qe(e,n),i=Qe(e,l);return a===i}function ks(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],a=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<l.length;i++){const s=n[i];let c=l[i].findIndex(d=>{if(a==="text")return Ie(e,d)===s;if(a==="value"){let m=Qe(e,d);return m==null&&(m=Ie(e,d)),m===s}else if(a==="item")return el(e,d,s)});if(c==-1)break;r.push(c)}else{let i=l[0];for(let s=0;s<n.length;s++){const u=n[s];let c=i.findIndex(m=>{if(a==="text")return Ie(e,m)===u;if(a==="value"){let g=Qe(e,m);return g==null&&(g=Ie(e,m)),g===u}else if(a==="item")return el(e,m,u)});if(c==-1)break;r.push(c);const d=qn(e,i[c]);if(!Array.isArray(d))break;i=d}}return r}function tl(e,n,l,o){if(l.length==0)return null;const r={texts:[],values:[],items:[]},a=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<l.length;i++){const s=l[i];let u=n[i];u<0&&u>=s.length&&(u=0);const c=s[u],d=Ie(e,c);if(r.texts.push(d),r.items.push(c),a==="text")r.values.push(d);else if(a==="value"){let m=Qe(e,c);m==null&&(m=d),r.values.push(m)}else r.values.push(c)}else{let i=l[0];for(let s=0;s<n.length;s++){let u=n[s];u<0&&u>=i.length&&(u=0);const c=i[u],d=Ie(e,c),m=Object.assign({},c);if(m.children=null,r.texts.push(d),r.items.push(m),a==="text")r.values.push(d);else if(a==="value"){let g=Qe(e,c);g==null&&(g=d),r.values.push(g)}else r.values.push(m);if(!Array.isArray(c.children))break;i=c.children}}return r}function nl(e){return{text:e,value:e}}const $s=15,Ds=300,Es=200,{create:Ns}=oe("picker-column");function Vs(e){e.stopPropagation()}function Ps(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Vs(e)}const Is=Ns({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...Dr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${ie(e.visibleItemCount)*+e.itemHeight}px`})),r=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),a=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=I=>I>=m.currIndex+8||I<=m.currIndex-8,s=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${a.value}px`})),u=I=>`transform: rotate3d(1, 0, 0, ${-m.rotation*I}deg) translate3d(0px, 0px, 104px)`,c=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+a.value}px, 0)`})),d=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),T=I=>Ie(e,I),h=I=>Qe(e,I),p=ao(),b=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},y=(I,E=!1,w=!1)=>{if(m.currIndex=I,E){const C=()=>{m.moving=!1,n("update:modelValue",I),n("change",I)};w?m.transitionEndTrigger=C:C()}},v=(I,E,w)=>{let C=I+m.startDistance;if(E==="end"){const O=-(g.value.length-1)*e.itemHeight;C<O&&(C=O,(!w||w<=0)&&(w=e.swipeDuration)),C>0&&(C=0,(!w||w<=0)&&(w=e.swipeDuration));let S=Math.abs(Math.round(-C/e.itemHeight));const k=-S*e.itemHeight,D=`${(S+1)*m.rotation}deg`,F=w?w>0:!1;y(S,!0,F),f(k,E,w,D)}else{let O=(-C/e.itemHeight+1)*m.rotation;const S=(g.value.length+1)*m.rotation,k=0;if(O=Math.min(Math.max(O,k),S),e.threeDimensional&&(O<k||O>S))return;f(C,null,void 0,`${O}deg`)}},f=(I=0,E,w=Es,C)=>{E==="end"?m.scrollTime=w:m.scrollTime=0,m.deg=C,m.scrollDistance=I},B=(I,E)=>(I=Math.abs(I/E)/.003*(I<0?-1:1),I),V=I=>{if(!e.readonly){if(m.moving){const E=d.value,{transform:w}=window.getComputedStyle(E);m.scrollDistance=+w.slice(7,w.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,p.start(I),m.transitionEndTrigger=null}},L=I=>{e.readonly||(m.moving=!0,p.move(I),p.isVertical()&&(m.moving=!0,Ps(I,!0)),v(p.deltaY.value,"",0))},R=()=>{if(e.readonly)return;const I=p.deltaY.value,E=p.duration.value;if(E<Ds&&Math.abs(I)>$s){const C=B(I,E);v(C,"end",e.swipeDuration)}else v(I,"end",0)};return t.watch(()=>e.modelValue,I=>{if(m.currIndex!==I){m.currIndex=I;const E=-I*e.itemHeight;v(E)}}),t.onMounted(()=>{const I=-e.modelValue*e.itemHeight;v(I)}),{classes:l,styles:o,contentClasses:r,source:g,itemText:T,itemValue:h,...t.toRefs(m),roller:d,getItemText:Ie,onTouchStart:V,onTouchMove:L,onTouchEnd:R,isHidden:i,setRollerStyle:u,touchRollerStyle:s,touchTileStyle:c,stopMomentum:b}}}),Os={key:1,class:"fox-picker__item-tile"};function Bs(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Os,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const ol=ce(Is,[["render",Bs]]),{create:As,componentName:Fs,scope:Rs}=oe("picker"),Ms=As({components:{[ol.name]:ol,[qe.name]:qe},props:{...ro},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=Ee.useFoxI18n(Rs),r=l(e,["title","cancelText","clearText","confirmText"]),a=t.ref(null),i=t.ref(ws());t.watch(()=>e.visible,w=>{w&&i.value<=0&&setTimeout(()=>{if(a.value){const C=Ze(a.value);i.value=C.height,Ss(i.value)}},50)});const s=t.computed(()=>({[Fs]:!0})),u=Ts(),c=t.ref("singleColumn");let d=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,C])=>{if(w){let O=await u.load("select",w,C);if(O.length>0){let S=O[0];if(Array.isArray(S)){if(typeof S[0]=="string"){let k=O,D=[];k.forEach(F=>{let N=F.map(_=>nl(_));D.push(N)}),d.value=D}else d.value=O;c.value="multipleColumn"}else if(typeof S=="string"){let k=O,D=[],F=k.map(N=>nl(N));D.push(F),d.value=D,c.value="singleColumn"}else{const k=qn(e,S);Array.isArray(k)?(c.value="cascade",d.value=[O]):(c.value="singleColumn",d.value=[O])}}else d.value=[]}},{immediate:!0});const m=t.ref([]),g=t.ref(e.modelValue),T=t.ref([]),h=t.ref([]);t.watch([()=>e.modelValue,()=>d.value],([w,C])=>{let O=ks(e,w,C,c.value);if(!Le(O,h.value)){h.value=O;let S=tl(e,O,C,c.value);S&&(m.value=S.texts,n("update:text",m.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,w=>{p.value=w});const b=w=>{let C=Qo(e,w);return Ae(C)?C.defaultIndex??0:0},y=w=>{if(e.readonly===!0)return!0;let C=Qo(e,w);return Ae(C)?C.readonly??!1:!1},v=(w,C)=>{let O=h.value;O[w]=C;for(let k=0;k<w;k++)O[k]==null&&(O[k]=b(k));if(c.value==="cascade")for(let k=w+1;k<B.value.length;k++){let D=b(k);k<O.length?O[k]=D:O.push(D)}else for(let k=O.length;k<B.value.length;k++){let D=b(k);O.push(D)}h.value=O;let S=tl(e,O,d.value,c.value);S&&(m.value=S.texts,g.value=S.values,T.value=S.items)},f=w=>w<h.value.length?h.value[w]:b(w),B=t.computed(()=>{if(d.value.length==0)return[];if(c.value=="singleColumn"||c.value=="multipleColumn")return d.value;let w=[],C=0,O=d.value[0],S=0;for(;;){let k=O.map(N=>{let _=Object.assign({},N);return xs(e,_,null),_});w.push(k),C>=h.value.length?S=0:S=h.value[C],(S<0||S>=O.length)&&(S=0);let D=O[S];const F=qn(e,D);if(!Array.isArray(F))break;O=F,C++}return w}),V=t.computed(()=>ie(+e.visibleItemCount-1)/2*i.value);return{...r,pickerLineRef:a,classes:s,columns:B,dataType:c,show:p,itemHeight:i,top:V,isReadonly:y,getIndex:f,change:(w,C)=>{v(w,C)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let w=d.value.length-1;for(;w>=0&&!(h.value[w]===null||h.value[w]===void 0);w--);if(w>=0&&v(w,0),c.value==="singleColumn"){let C=g.value.length>0?g.value[0]:"",O=T.value.length>0?T.value[0]:null;e.readonly||(n("update:modelValue",C),n("update:text",m.value),n("change",C,O)),n("confirm",C)}else e.readonly||(n("update:modelValue",g.value),n("update:text",m.value),n("change",g.value,T.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}c.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Ls={class:"fox-picker__bar"},qs={class:"fox-picker__title"},zs={class:"fox-picker__bar__action"},js={class:"fox-picker__column"};function _s(e,n,l,o,r,a){const i=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=u=>e.show=u),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Ls,[t.createElementVNode("view",qs,t.toDisplayString(e.title),1),t.createElementVNode("view",zs,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...u)=>e.close&&e.close(...u))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...u)=>e.confirm&&e.confirm(...u))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...u)=>e.clear&&e.clear(...u))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",js,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(u,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:"fox-picker__columnitem"},[t.createVNode(i,{source:u,readonly:e.isReadonly(c),"column-index":c,modelValue:e.getIndex(c),"onUpdate:modelValue":d=>e.change(c,d),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const ct=ce(Ms,[["render",_s]]),ll={...ro,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Hs(e,n,l){return{props:{...he,...xe,...ll},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=e,g=t.computed(()=>({[m]:!0})),T=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:T.value??"right"})),p=ae(o,"modelValue"),b=t.ref([]),y=t.computed(()=>Array.isArray(b.value)?b.value.join(" "):b.value),v=t.ref(!1),f=()=>{v.value=!0},B=D=>{v.value=D},V=D=>{p.value=D,s("update:modelValue",D)},L=D=>{b.value=D,Array.isArray(D)&&D.length===0?s("update:text",D[0]):s("update:text",D)},R=(D,F)=>{Array.isArray(F)&&F.length==1?s("change",D,F[0]):s("change",D,F)};let I=ae(o,"hintText"),E=t.ref(!1);const w=D=>{let N=D.target.value;d.value=!0,ge(I.value)||(E.value=!0),s("focus",N,D)},C=D=>{setTimeout(()=>{E.value&&(E.value=!1),d.value=!1},0);let N=D.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),v.value?setTimeout(()=>{s("blur",N,D)},50):s("blur",N,D)},O=()=>{s("clear","")},S=t.computed(()=>Pe(o.unit)>0),k=t.ref();return me({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const D={class:g.value,style:h.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,clearable:le(o.clearable),readonly:!0,value:y.value,onClick:f,onFocus:w,onBlur:C},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:S.value?F.suffix=()=>[o.unit]:F.suffix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const N=[],_=t.h(x.ElInput,D,F);N.push(_);const A={default:()=>N};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const z=Pt(o,ro);z.disabled=!1,z.readonly=a.value||i.value,z.visible=v.value,z["onUpdate:visible"]=B,z.modelValue=p.value,z.onUpdateModel=V,z.text=b.value,z["onUpdate:text"]=L,z.onClear=O,z.onChange=R;const U=t.h(ct,z);A.hide=()=>[U];const G={...Se(o,ll),hintText:I.value,hintVisible:E.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,G,A)}}}}const{componentName:Ks,create:Ws,scope:Ys}=oe("select-item"),io=Ws(Hs(Ks,Ys,pe));var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){var l=1e3,o=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",d="week",m="month",g="quarter",T="year",h="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,v={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("_")},f=function(S,k,D){var F=String(S);return!F||F.length>=k?S:""+Array(k+1-F.length).join(D)+S},B={s:f,z:function(S){var k=-S.utcOffset(),D=Math.abs(k),F=Math.floor(D/60),N=D%60;return(k<=0?"+":"-")+f(F,2,"0")+":"+f(N,2,"0")},m:function S(k,D){if(k.date()<D.date())return-S(D,k);var F=12*(D.year()-k.year())+(D.month()-k.month()),N=k.clone().add(F,m),_=D-N<0,A=k.clone().add(F+(_?-1:1),m);return+(-(F+(D-N)/(_?N-A:A-N))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:m,y:T,w:d,d:c,D:h,h:u,m:s,s:i,ms:a,Q:g}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},V="en",L={};L[V]=v;var R=function(S){return S instanceof C},I=function S(k,D,F){var N;if(!k)return V;if(typeof k=="string"){var _=k.toLowerCase();L[_]&&(N=_),D&&(L[_]=D,N=_);var A=k.split("-");if(!N&&A.length>1)return S(A[0])}else{var z=k.name;L[z]=k,N=z}return!F&&N&&(V=N),N||!F&&V},E=function(S,k){if(R(S))return S.clone();var D=typeof k=="object"?k:{};return D.date=S,D.args=arguments,new C(D)},w=B;w.l=I,w.i=R,w.w=function(S,k){return E(S,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var C=function(){function S(D){this.$L=I(D.locale,null,!0),this.parse(D)}var k=S.prototype;return k.parse=function(D){this.$d=function(F){var N=F.date,_=F.utc;if(N===null)return new Date(NaN);if(w.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var A=N.match(b);if(A){var z=A[2]-1||0,U=(A[7]||"0").substring(0,3);return _?new Date(Date.UTC(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)):new Date(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)}}return new Date(N)}(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 w},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(D,F){var N=E(D);return this.startOf(F)<=N&&N<=this.endOf(F)},k.isAfter=function(D,F){return E(D)<this.startOf(F)},k.isBefore=function(D,F){return this.endOf(F)<E(D)},k.$g=function(D,F,N){return w.u(D)?this[F]:this.set(N,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,F){var N=this,_=!!w.u(F)||F,A=w.p(D),z=function(te,$){var j=w.w(N.$u?Date.UTC(N.$y,$,te):new Date(N.$y,$,te),N);return _?j:j.endOf(c)},U=function(te,$){return w.w(N.toDate()[te].apply(N.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice($)),N)},H=this.$W,G=this.$M,Z=this.$D,ee="set"+(this.$u?"UTC":"");switch(A){case T:return _?z(1,0):z(31,11);case m:return _?z(1,G):z(0,G+1);case d:var M=this.$locale().weekStart||0,J=(H<M?H+7:H)-M;return z(_?Z-J:Z+(6-J),G);case c:case h:return U(ee+"Hours",0);case u:return U(ee+"Minutes",1);case s:return U(ee+"Seconds",2);case i:return U(ee+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,F){var N,_=w.p(D),A="set"+(this.$u?"UTC":""),z=(N={},N[c]=A+"Date",N[h]=A+"Date",N[m]=A+"Month",N[T]=A+"FullYear",N[u]=A+"Hours",N[s]=A+"Minutes",N[i]=A+"Seconds",N[a]=A+"Milliseconds",N)[_],U=_===c?this.$D+(F-this.$W):F;if(_===m||_===T){var H=this.clone().set(h,1);H.$d[z](U),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else z&&this.$d[z](U);return this.init(),this},k.set=function(D,F){return this.clone().$set(D,F)},k.get=function(D){return this[w.p(D)]()},k.add=function(D,F){var N,_=this;D=Number(D);var A=w.p(F),z=function(G){var Z=E(_);return w.w(Z.date(Z.date()+Math.round(G*D)),_)};if(A===m)return this.set(m,this.$M+D);if(A===T)return this.set(T,this.$y+D);if(A===c)return z(1);if(A===d)return z(7);var U=(N={},N[s]=o,N[u]=r,N[i]=l,N)[A]||1,H=this.$d.getTime()+D*U;return w.w(H,this)},k.subtract=function(D,F){return this.add(-1*D,F)},k.format=function(D){var F=this,N=this.$locale();if(!this.isValid())return N.invalidDate||p;var _=D||"YYYY-MM-DDTHH:mm:ssZ",A=w.z(this),z=this.$H,U=this.$m,H=this.$M,G=N.weekdays,Z=N.months,ee=function($,j,q,W){return $&&($[j]||$(F,_))||q[j].slice(0,W)},M=function($){return w.s(z%12||12,$,"0")},J=N.meridiem||function($,j,q){var W=$<12?"AM":"PM";return q?W.toLowerCase():W},te={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:w.s(H+1,2,"0"),MMM:ee(N.monthsShort,H,Z,3),MMMM:ee(Z,H),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:ee(N.weekdaysMin,this.$W,G,2),ddd:ee(N.weekdaysShort,this.$W,G,3),dddd:G[this.$W],H:String(z),HH:w.s(z,2,"0"),h:M(1),hh:M(2),a:J(z,U,!0),A:J(z,U,!1),m:String(U),mm:w.s(U,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:A};return _.replace(y,function($,j){return j||te[$]||A.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,F,N){var _,A=w.p(F),z=E(D),U=(z.utcOffset()-this.utcOffset())*o,H=this-z,G=w.m(this,z);return G=(_={},_[T]=G/12,_[m]=G,_[g]=G/3,_[d]=(H-U)/6048e5,_[c]=(H-U)/864e5,_[u]=H/r,_[s]=H/o,_[i]=H/l,_)[A]||H,N?G:w.a(G)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return L[this.$L]},k.locale=function(D,F){if(!D)return this.$L;var N=this.clone(),_=I(D,F,!0);return _&&(N.$L=_),N},k.clone=function(){return w.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()},S}(),O=C.prototype;return E.prototype=O,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",m],["$y",T],["$D",h]].forEach(function(S){O[S[1]]=function(k){return this.$g(k,S[0],S[1])}}),E.extend=function(S,k){return S.$i||(S(k,C,E),S.$i=!0),E},E.locale=I,E.isDayjs=R,E.unix=function(S){return E(1e3*S)},E.en=L[V],E.Ls=L,E.p={},E})})(Nr);var Us=Nr.exports;const Fe=He(Us);var Vr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\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(p){return(p=+p)+(p>68?1900:2e3)},c=function(p){return function(b){this[p]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(p)}],m=function(p){var b=s[p];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(p,b){var y,v=s.meridiem;if(v){for(var f=1;f<=24;f+=1)if(p.indexOf(v(f,0,b))>-1){y=f>12;break}}else y=p===(b?"pm":"PM");return y},T={A:[i,function(p){this.afternoon=g(p,!1)}],a:[i,function(p){this.afternoon=g(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[r,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(p){var b=s.ordinal,y=p.match(/\d+/);if(this.day=y[0],b)for(var v=1;v<=31;v+=1)b(v).replace(/\[|\]/g,"")===p&&(this.day=v)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(p){var b=m("months"),y=(m("monthsShort")||b.map(function(v){return v.slice(0,3)})).indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(p){var b=m("months").indexOf(p)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(p){this.year=u(p)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function h(p){var b,y;b=p,y=s&&s.formats;for(var v=(p=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,w,C){var O=C&&C.toUpperCase();return w||y[C]||l[C]||y[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,k,D){return k||D.slice(1)})})).match(o),f=v.length,B=0;B<f;B+=1){var V=v[B],L=T[V],R=L&&L[0],I=L&&L[1];v[B]=I?{regex:R,parser:I}:V.replace(/^\[|\]$/g,"")}return function(E){for(var w={},C=0,O=0;C<f;C+=1){var S=v[C];if(typeof S=="string")O+=S.length;else{var k=S.regex,D=S.parser,F=E.slice(O),N=k.exec(F)[0];D.call(w,N),E=E.replace(N,"")}}return function(_){var A=_.afternoon;if(A!==void 0){var z=_.hours;A?z<12&&(_.hours+=12):z===12&&(_.hours=0),delete _.afternoon}}(w),w}}return function(p,b,y){y.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var v=b.prototype,f=v.parse;v.parse=function(B){var V=B.date,L=B.utc,R=B.args;this.$u=L;var I=R[1];if(typeof I=="string"){var E=R[2]===!0,w=R[3]===!0,C=E||w,O=R[2];w&&(O=R[2]),s=this.$locale(),!E&&O&&(s=y.Ls[O]),this.$d=function(F,N,_){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*F);var A=h(N)(F),z=A.year,U=A.month,H=A.day,G=A.hours,Z=A.minutes,ee=A.seconds,M=A.milliseconds,J=A.zone,te=new Date,$=H||(z||U?1:te.getDate()),j=z||te.getFullYear(),q=0;z&&!U||(q=U>0?U-1:te.getMonth());var W=G||0,X=Z||0,K=ee||0,P=M||0;return J?new Date(Date.UTC(j,q,$,W,X,K,P+60*J.offset*1e3)):_?new Date(Date.UTC(j,q,$,W,X,K,P)):new Date(j,q,$,W,X,K,P)}catch{return new Date("")}}(V,I,L),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),C&&V!=this.format(I)&&(this.$d=new Date("")),s={}}else if(I instanceof Array)for(var S=I.length,k=1;k<=S;k+=1){R[1]=I[k-1];var D=y.apply(this,R);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===S&&(this.$d=new Date(""))}else f.call(this,B)}}})})(Vr);var Gs=Vr.exports;const Xs=He(Gs);var Pr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o,r){var a=o.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var d=this.$utils(),m=(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(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}});return i.bind(this)(m)}}})})(Pr);var Zs=Pr.exports;const Js=He(Zs);var Ir={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o,r){var a=o.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},s=function(m,g,T,h,p){var b=m.name?m:m.$locale(),y=i(b[g]),v=i(b[T]),f=y||v.map(function(V){return V.slice(0,h)});if(!p)return f;var B=b.weekStart;return f.map(function(V,L){return f[(L+(B||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(m,g){return m.formats[g]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,p,b){return p||b.slice(1)})}(m.formats[g.toUpperCase()])},d=function(){var m=this;return{months:function(g){return g?g.format("MMMM"):s(m,"months")},monthsShort:function(g){return g?g.format("MMM"):s(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(m,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(m,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return c(m.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=u();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return c(m,g)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(m){return s(u(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return s(u(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return s(u(),"weekdaysMin","weekdays",2,m)}}})})(Ir);var Qs=Ir.exports;const eu=He(Qs);var Or={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){var l="week",o="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 c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(o).add(1,o).date(c),m=i(this).endOf(l);if(d.isBefore(m))return 1}var g=i(this).startOf(o).date(c).startOf(l).subtract(1,"millisecond"),T=this.diff(g,l,!0);return T<0?i(this).startOf("week").week():Math.ceil(T)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Or);var tu=Or.exports;const nu=He(tu);var Br={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o){o.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}}})})(Br);var ou=Br.exports;const lu=He(ou);var Ar={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o,r){o.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")}}})})(Ar);var ru=Ar.exports;const au=He(ru);var Fr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o){o.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Fr);var iu=Fr.exports;const su=He(iu);var Rr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o){o.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Rr);var uu=Rr.exports;const cu=He(uu);Fe.extend(eu);Fe.extend(Js);Fe.extend(Xs);Fe.extend(nu);Fe.extend(lu);Fe.extend(au);Fe.extend(su);Fe.extend(cu);const ne={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){const r=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const l=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,o,r].join(n)},getDay(e,n){e=e||0;let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),this.date2Str(l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(l>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,l==o},getMonthWeek:function(e,n,l,o=0){const r=new Date(Number(e),parseInt(n)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return o!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,n,l,o=0){const r=new Date(Number(e),parseInt(n)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return o!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,n,l,o=0){const r=new Date(Number(e),parseInt(n)-1,Number(l)),a=r.getTime();let i=r.getDay();if(o===0){const u=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(u)),m=this.date2Str(new Date(c));return[d,m]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,d=this.date2Str(new Date(u)),m=this.date2Str(new Date(c));return[d,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ne.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ne.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),r=e.getTime(),a=o.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),r=e.getTime(),a=o.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},rl=new Date().getFullYear(),so={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Wt=(e,n,l)=>{let o;if(Me(n)?o=n:typeof n=="string"&&Pe(n)>0?o=ne.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let r=Math.max(o.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},zn=(e,n,l)=>{Me(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ne.format(new Date(o),l)};let uo={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(rl-10,0,1),validator:Me},maxDate:{type:Date,default:()=>new Date(rl+10,11,31),validator:Me},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:fu,scope:du}=oe("date-picker"),mu=fu({components:{[ct.name]:ct},props:{...uo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=Ee.useFoxI18n(du),o={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},r=t.ref(!1);t.watch(()=>e.visible,y=>{r.value=y});function a(y,v){return new Date(y,v,0).getDate()}const i=(y,v)=>{const f=e[`${y}Date`],B=f.getFullYear();let V=1,L=1,R=0,I=0;y==="max"&&(V=12,L=a(v.getFullYear(),v.getMonth()+1),R=23,I=59);const E=I;return v.getFullYear()===B&&(V=f.getMonth()+1,v.getMonth()+1===V&&(L=f.getDate(),v.getDate()===L&&(R=f.getHours(),v.getHours()===R&&(I=f.getMinutes())))),{[`${y}Year`]:B,[`${y}Month`]:V,[`${y}Date`]:L,[`${y}Hour`]:R,[`${y}Minute`]:I,[`${y}Seconds`]:E}},s=t.computed(()=>{if(!g.value)return[];const{maxYear:y,maxDate:v,maxMonth:f,maxHour:B,maxMinute:V,maxSeconds:L}=i("max",g.value),{minYear:R,minDate:I,minMonth:E,minHour:w,minMinute:C,minSeconds:O}=i("min",g.value);let S=[{type:"year",range:[R,y]},{type:"month",range:[E,f]},{type:"day",range:[I,v]},{type:"hour",range:[w,B]},{type:"minute",range:[C,V]},{type:"seconds",range:[O,L]}];switch(e.type){case"date":S=S.slice(0,3);break;case"datetime":S=S.slice(0,5);break;case"time":S=S.slice(3,6);break;case"year-month":S=S.slice(0,2);break;case"month-day":S=S.slice(1,3);break;case"datehour":S=S.slice(0,4);break;case"hour-minute":S=S.slice(3,5);break}return S}),u=(y,v,f)=>{if(!(v>y))return null;const B=[];for(;y<=v;)e.isShowChinese?B.push({text:y+o[f],value:y}):B.push({text:`${y}`,value:y}),f==="minute"?y+=e.minuteStep:y++;return B},c=t.computed(()=>{let y=[];return s.value.forEach(v=>{let f=u(v.range[0],v.range[1],v.type);f&&y.push(f)}),y}),d=(y,v)=>y==="year"?v.getFullYear():y==="month"?v.getMonth()+1:y==="day"?v.getDate():y==="hour"?v.getHours():y==="minute"?v.getMinutes():y==="seconds"?v.getSeconds():0,m=t.ref(),g=t.ref(null);t.watchEffect(()=>{let y,v=e.modelValue;if(typeof v=="string"?v.length==0?y=new Date:e.valueFormat?y=Wt(e,e.modelValue,e.valueFormat):y=Wt(e,v,so[e.type]):Me(v)?y=v:y=new Date,!!y&&(!g.value||y.getTime()!==g.value.getTime())){g.value=y;let f=[];s.value.forEach(B=>{let V=d(B.type,y);f.push(V)}),m.value=f}});const T=y=>{if(e.type==="date"){let v=y;g.value=new Date(v[0],v[1]-1,Math.min(v[2],a(v[0],v[1])))}else if(e.type==="datetime"){let v=y;g.value=new Date(v[0],v[1]-1,Math.min(v[2],a(v[0],v[1])),v[3],v[4])}else if(e.type==="time"){let v=y,f=g.value??new Date,B=new Date(f.getFullYear(),f.getMonth(),f.getDate(),v[0],v[1],v[2]);g.value=B}else if(e.type==="year-month"){let v=y,f=new Date(v[0],v[1]-1);g.value=f}else if(e.type==="month-day"){let v=y,f=g.value??new Date,B=new Date(f.getFullYear(),v[0]-1,v[1]);g.value=B}else if(e.type==="datehour"){let v=y;g.value=new Date(v[0],v[1]-1,Math.min(v[2],a(v[0],v[1])),v[3])}else if(e.type==="hour-minute"){let v=y,f=g.value??new Date,B=new Date(f.getFullYear(),f.getMonth(),f.getDate(),v[0],v[1]);g.value=B}m.value=y};return{columns:c,dateIndexs:m,show:r,onClose:()=>{r.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:y=>{T(y),r.value=!1;let v=g.value??new Date;if(e.valueFormat){let f=zn(e,v,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",v);n("update:visible",!1),n("confirm",y)},onClear:()=>{n("clear")}}}});function hu(e,n,l,o,r,a){const i=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const un=ce(mu,[["render",hu]]);function pu(e){let n=e.format;if(!n){let l=e.type??"date";n=so[l]}return n}const al={...uo,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function gu(e,n,l){return{props:{...he,...xe,...al,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),g=ae(o,"modelValue",A=>A==null?null:typeof A=="string"?A.length==0?null:o.valueFormat?Wt(o,A,o.valueFormat)??A:Wt(o,A,so[o.type])??A:Me(A)?A:null),T=t.computed(()=>{if(!g.value)return"";const A=pu(o);return zn(o,g.value,A)}),h=e,p=t.computed(()=>({[`${h}__input`]:!0})),b=Ne(t.computed(()=>o.textAlign),"textAlign"),y=t.computed(()=>({textAlign:b.value??"right"}));let v=ae(o,"hintText"),f=t.ref(!1);const B=t.ref(!1),V=()=>{B.value=!0},L=()=>{B.value=!1},R=A=>{B.value=A},I=A=>{if(g.value=A,o.valueFormat){let z=zn(o,A,o.valueFormat);s("update:modelValue",z,{}),s("change",z,{})}else s("update:modelValue",A,{}),s("change",A,{})},E=A=>{let U=A.target.value;d.value=!0,s("focus",U,A)},w=A=>{setTimeout(()=>{d.value=!1},0);let U=A.target.value;o.maxLength&&U.length>Number(o.maxLength)&&(U=U.slice(0,Number(o.maxLength))),s("blur",U,A)},C=A=>{g.value="",s("update:modelValue","",A),s("change","",A),s("clear",""),L()},O=t.computed(()=>Pe(o.unit)>0),S=Ne(t.computed(()=>o.longTermValue),"longTermValue",Ye.Near);let k=null;const D=t.ref(le(o.longTerm)),F=A=>{if(D.value=A,s("update:longTerm",A),A){let z="";Array.isArray(S.value)?z=S.value.map((U,H)=>U||(Array.isArray(g.value)&&g.value[H]?g.value[H]:o.valueFormat?ne.format(new Date,o.valueFormat):new Date)):z=S.value,k=g.value,s("update:modelValue",z)}else s("update:modelValue",k)},N=le(o.isLongTerm);if(N){const A=()=>{if(D.value===!0){let z="";Array.isArray(S.value)?z=S.value.map((U,H)=>U||(Array.isArray(g.value)&&g.value[H]?g.value[H]:o.valueFormat?ne.format(new Date,o.valueFormat):new Date)):z=S.value,k=g.value,s("update:modelValue",z)}else Le(S.value,g.value)&&(D.value=!0)};A(),t.watch([()=>o.longTerm],([z])=>{D.value!==z&&A()})}const _=t.ref();return me({showPicker:V,hidePicker:L,focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const A={class:p.value,style:y.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,readonly:!0,clearable:o.clearable,value:T.value,onClick:V,onFocus:E,onBlur:w},z={};r.slots.prepend&&(z.prepend=r.slots.prepend),r.slots.append&&(z.append=r.slots.append),r.slots.prefix?z.prefix=r.slots.prefix:z.prefix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.Calendar)}),r.slots.suffix?z.suffix=r.slots.suffix:O.value&&(z.suffix=()=>[o.unit]);const U=[],H=t.h(x.ElInput,A,z);U.push(H);const G={default:()=>U};r.slots.default&&(G.label=r.slots.default),r.slots.fixedTip&&(G.fixedTip=r.slots.fixedTip);const Z=Pt(o,uo);Z.valueFormat=null,Z.disabled=!1,Z.readonly=a.value||i.value||D.value,Z.visible=B.value,Z["onUpdate:visible"]=R,Z.modelValue=g.value,Z["onUpdate:modelValue"]=I,Z.onClear=C;const ee={};if(r.slots.top){const j=r.slots.top();ee.top=()=>j}if(r.slots.bottom){const j=r.slots.bottom();ee.default=()=>j}const M=t.h(un,Z,ee);if(G.hide=()=>[M],N){const j={label:o.longTermText,modelValue:D.value,"onUpdate:modelValue":F},q=t.h(x.ElCheckbox,j),W=t.h("div",{class:{[`${h}__append`]:!0}},[q]);G.append=()=>W}const te={...Se(o,al),class:{[`${h}__wrapper`]:!0,"has-append":N},hintText:v.value,hintVisible:f.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,te,G)}}}}const{componentName:yu,create:vu,scope:bu}=oe("date-item"),co=vu(gu(yu,bu,pe)),wu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),fo={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},il=39,sl=64,{create:Su,scope:xu}=oe("calendar-pane"),Cu=Su({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ne.getDay(0)},endDate:{type:String,default:ne.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:r}=Ee.useFoxI18n(xu),a=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${il}px`})),s=t.computed(()=>({height:`${sl}px`})),u=JSON.parse(r("weekdays")),c=t.ref([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=t.ref(null),m=t.ref(null),g=t.ref(null),T=t.ref(null),h=t.ref(0),p=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),b=t.computed(()=>l.btn),y=t.computed(()=>l["top-info"]),v=t.computed(()=>l["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),B=$=>$.split("-"),V=$=>ne.isEqual(f.currDate[0],$),L=$=>ne.isEqual(f.currDate[1],$),R=$=>f.currDate?.length>0?f.currDate?.some(j=>ne.isEqual(j,$)):!1,I=($,j)=>j.curData[0]+"-"+j.curData[1]+"-"+ne.getNumTwoBit(+$.day),E=($,j)=>{const q=I($,j),{type:W}=e;return $.type=="curr"?ne.isEqual(f.currDate,q)||(W=="range"||W=="week")&&(V(q)||L(q))||W=="multiple"&&R(q)?`${f.dayPrefix}--active`:f.propStartDate&&ne.compareDate(q,f.propStartDate)||f.propEndDate&&ne.compareDate(f.propEndDate,q)?`${f.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ne.compareDate(f.currDate[0],q)&&ne.compareDate(q,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},w=()=>{const{type:$}=e;if($=="range"&&f.chooseData.length==2||$!="range"){let j=f.chooseData.slice(0);$=="week"&&(j={weekDate:[O(f.chooseData[0]),O(f.chooseData[1])]}),n("choose",j),e.poppable&&n("update")}},C=($,j,q=!1)=>{if(E($,j)!=`${f.dayPrefix}--disabled`){const{type:W}=e;let[X,K]=j.curData,P=[...j.curData];if(P[2]=ne.getNumTwoBit(Number($.day)),P[3]=`${P[0]}-${P[1]}-${P[2]}`,P[4]=ne.getWhatDay(+P[0],+P[1],+P[2]),W=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((Q,ue)=>{Q==P[3]&&(Y=ue)}),q?f.chooseData.push([...P]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(P[3]),f.chooseData.push([...P]))}else f.currDate=[P[3]],f.chooseData=[[...P]];else if(W=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[P[3]]:ne.compareDate(f.currDate[0],P[3])?Array.isArray(f.currDate)&&f.currDate.push(P[3]):Array.isArray(f.currDate)&&f.currDate.unshift(P[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...P]]:ne.compareDate(f.chooseData[0][3],P[3])?f.chooseData=[...f.chooseData,[...P]]:f.chooseData=[[...P],...f.chooseData]}else if(W=="week"){let Y=ne.getWeekDate(X,K,$.day,e.firstDayOfWeek);f.propStartDate&&ne.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&ne.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[ne.formatResultDate(Y[0]),ne.formatResultDate(Y[1])]}else f.currDate=P[3],f.chooseData=[...P];if(!q){let Y=f.chooseData;W=="week"&&(Y={weekDate:[O(f.chooseData[0]),O(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&w()}}},O=$=>{let[j,q,W]=$;return{date:$,monthWeekNum:ne.getMonthWeek(j,q,W,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(j,q,W,e.firstDayOfWeek)}},S=$=>{const j=$=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let q=parseInt(j.curData[0]),W=parseInt(j.curData[1].toString().replace(/^0/,""));switch($){case"prev":W==1&&(q-=1),W=W==1?12:--W;break;case"next":W==12&&(q+=1),W=W==12?1:++W;break}return[q+"",ne.getNumTwoBit(W),ne.getMonthDays(String(q),String(W))+""]},k=($,j,q)=>{let{year:W,month:X}=q;return j=="prev"&&$>=7&&($-=7),Array.from(Array($),(K,P)=>({day:String(P+1),type:j,year:W,month:X}))},D=($,j,q,W)=>{$=$-e.firstDayOfWeek;let{year:X,month:K}=q;return j=="prev"&&$>=7&&($-=7),Array.from(Array(W),(Y,Q)=>({day:String(Q+1),type:j,year:X,month:K})).slice(W-$)},F=($,j)=>{const q=ne.getMonthPreDay(+$[0],+$[1]);let W=Number($[1])-1,X=Number($[0]);W<=0&&(W=12,X+=1);const K=ne.getMonthDays(String($[0]),String($[1])),P=ne.getMonthDays(X+"",W+""),Y={year:$[0],month:$[1]},Q={curData:$,title:r("monthTitle",{year:Y.year,month:Y.month}),monthData:[...D(q,"prev",{month:String(W),year:String(X)},P),...k(K,"curr",Y)],cssHeight:0,cssScrollHeight:0},ue=Q.monthData.length>35?6:5;Q.cssHeight=il+sl*ue;let fe=0;f.monthsData.length>0&&(fe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),Q.cssScrollHeight=fe,j=="next"?(!f.endData||!ne.compareDate(`${f.endData[0]}-${f.endData[1]}-${ne.getMonthDays(f.endData[0],f.endData[1])}`,`${$[0]}-${$[1]}-${$[2]}`))&&f.monthsData.push(Q):!f.startData||!ne.compareDate(`${$[0]}-${$[1]}-${$[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(Q):f.unLoadPrev=!0},N=()=>{let $=e.startDate?e.startDate:ne.getDay(0),j=e.endDate?e.endDate:ne.getDay(365);f.propStartDate=$,f.propEndDate=j,f.startData=B($),f.endData=B(j),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const q={year:Number(f.startData[0]),month:Number(f.startData[1])},W={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=W.month-q.month;W.year-q.year>0&&(X=X+12*(W.year-q.year)),X<=0&&(X=1),F(f.startData,"next");let K=1;do F(S("next"),"next");while(K++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&($&&ne.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),j&&ne.compareDate(j,f.currDate[1])&&f.currDate.splice(1,1,j),f.defaultData=[...B(f.currDate[0]),...B(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let P=[],Y={};f.currDate.forEach(Q=>{$&&!ne.compareDate(Q,$)&&j&&!ne.compareDate(j,Q)&&(Object.hasOwnProperty.call(Y,Q)||(P.push(Q),Y[Q]=Q))}),f.currDate=[...P],f.defaultData=[...B(P[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[P,Y,Q]=B(f.currDate[0]),ue=ne.getWeekDate(P,Y,Q,e.firstDayOfWeek);f.currDate=ue,$&&ne.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),j&&ne.compareDate(j,f.currDate[1])&&f.currDate.splice(1,1,j),f.defaultData=[...B(f.currDate[0]),...B(f.currDate[1])]}}else f.currDate&&($&&ne.compareDate(f.currDate,$)?f.currDate=$:j&&!ne.compareDate(f.currDate,j)&&(f.currDate=j),f.defaultData=[...B(f.currDate)])};me({scrollToDate:$=>{ne.compareDate($,f.propStartDate)?$=f.propStartDate:ne.compareDate($,f.propEndDate)||($=f.propEndDate);let j=B($);f.monthsData.forEach((q,W)=>{if(q.title==r("monthTitle",{year:j[0],month:j[1]})&&d.value){let X=f.monthsData[W].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let K=0,P=setInterval(()=>{if(K++,d.value){let Y=X/10;d.value.scrollTop=d.value.scrollTop+Y}K>=10&&(clearInterval(P),d.value&&(d.value.scrollTop=f.monthsData[W].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[W].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let $=0,j=0;f.defaultData.length>0&&f.monthsData.forEach((X,K)=>{X.title==r("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&($=K),(e.type=="range"||e.type=="week")&&X.title==r("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(j=K)}),U(f.monthsNum,$),f.currentIndex=$,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),C({day:f.defaultData[5],type:"curr"},f.monthsData[j],!0)):e.type=="week"?C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let K=B(X),P=f.currentIndex;f.monthsData.forEach((Y,Q)=>{Y.title==r("monthTitle",{year:K[0],month:K[1]})&&(P=Q)}),C({day:K[2],type:"curr"},f.monthsData[P],!0)}):C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let q=f.monthsData[f.monthsData.length-1],W=q.cssHeight+q.cssScrollHeight;_l(()=>{d?.value&&m?.value&&T?.value&&(h.value=d.value.clientHeight,m.value.style.height=`${W}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(W/(f.monthsNum+1))}});const U=($,j)=>{$>=3?j>0&&j<$?f.defaultRange=[j-1,j+3]:j==0?f.defaultRange=[j,j+4]:j==$&&(f.defaultRange=[j-2,j+2]):f.defaultRange=[0,$+2];let q=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=q},H=($,j)=>(e.type=="range"||e.type=="week")&&$.type=="curr"&&E($,j)=="fox-calendar__day--active",G=($,j)=>H($,j)&&V(I($,j)),Z=($,j)=>f.currDate.length>=2&&L(I($,j))?H($,j):!1,ee=()=>{if(f.currDate.length>=2)return ne.isEqual(f.currDate[0],f.currDate[1])},M=$=>{const j=`${$.year}-${$.month}-${Number($.day)<10?"0"+$.day:$.day}`;return ne.isEqual(j,ne.date2Str(new Date))},J=$=>{if(f.monthsData.length<=1)return;const j=$.target.scrollTop;let q=Math.floor(j/f.avgHeight);if(q==0)j>=f.monthsData[q+1].cssScrollHeight&&(q+=1);else if(q>0&&q<f.monthsNum-1)j>=f.monthsData[q+1].cssScrollHeight&&(q+=1),j<f.monthsData[q].cssScrollHeight&&(q-=1);else{const W=Math.round(j+h.value);W<f.monthsData[q].cssScrollHeight+f.monthsData[q].cssHeight&&j>f.monthsData[q-1].cssScrollHeight&&(q-=1),q+1<=f.monthsNum&&W>=f.monthsData[q+1].cssScrollHeight+f.monthsData[q+1].cssHeight&&(q+=1),q>=1&&j<f.monthsData[q-1].cssScrollHeight&&(q-=1)}f.currentIndex!==q&&(f.currentIndex=q,U(f.monthsNum,q)),f.yearMonthTitle=f.monthsData[q].title},te=()=>{f.chooseData.splice(0),f.monthsData.splice(0),N()};return N(),t.watch(()=>e.defaultValue,$=>{$&&e.poppable&&te()}),{dayTitleStyle:i,dayCellStyle:s,weeks:c,compConthsData:p,showTopBtn:b,topInfo:y,bottomInfo:v,rangeTip:ee,mothsViewScroll:J,getClass:E,isStartTip:G,isEndTip:Z,chooseDay:C,isCurrDay:M,confirm:w,months:d,...t.toRefs(f),...t.toRefs(e),...a,monthsPanel:m,weeksPanel:g,viewArea:T}}}),Tu={class:"fox-calendar__header"},ku={key:0,class:"fox-calendar__header-title"},$u={key:1,class:"fox-calendar__header-slot"},Du={key:2,class:"fox-calendar__header-subtitle"},Eu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Nu={class:"fox-calendar__panel",ref:"monthsPanel"},Vu={class:"fox-calendar__days"},Pu=["onClick"],Iu={class:"fox-calendar__day-value"},Ou={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Bu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Au={key:2,class:"fox-calendar__day-tips--curr"},Fu={key:4,class:"fox-calendar__day-tip"},Ru={key:0,class:"fox-calendar__footer"};function Mu(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Tu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",ku,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",$u,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Du,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Eu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Nu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Vu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(u,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-calendar__day",e.getClass(u,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:d=>e.chooseDay(u,i)},[t.createElementVNode("view",Iu,[t.renderSlot(e.$slots,"day",{date:u.type=="curr"?u:""},()=>[t.createTextVNode(t.toDisplayString(u.type=="curr"?u.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ou,[t.renderSlot(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Bu,[t.renderSlot(e.$slots,"bottom-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(u)?(t.openBlock(),t.createElementBlock("view",Au,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(u,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(u,i)?(t.openBlock(),t.createElementBlock("view",Fu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Pu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Ru,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ul=ce(Cu,[["render",Mu]]),{create:Lu}=oe("calendar-picker"),qu=Lu({components:{[ul.name]:ul,[qe.name]:qe},props:{...fo},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=t.computed(()=>l.btn),r=t.computed(()=>l["top-info"]),a=t.computed(()=>l.day),i=t.computed(()=>l["bottom-info"]),s=t.ref(null),u=p=>{s.value?.scrollToDate(p)},c=()=>{s.value?.initPosition()};t.watch(()=>e.visible,p=>{p&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),me({scrollToDate:u,initPosition:c});const d=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:d,close:m,select:p=>{n("select",p)},choose:p=>{m(),n("choose",p)},calendarRef:s,showTopBtn:o,topInfo:r,dayInfo:a,bottomInfo:i}}});function zu(e,n,l,o,r,a){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const cn=ce(qu,[["render",zu]]),xn=(e,n)=>{let l;return Me(e)?l=e:typeof e=="string"&&Pe(e)>0?l=ne.parser(e,n):l=new Date,l},tt=(e,n,l)=>(Me(n)||(n=new Date),ne.format(n,l)),nt=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,r=ne.date2Str(e),a=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,r,a]},cl={...fo,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function ju(e,n,l){return{props:{...he,...xe,...cl},emits:["change","update:modelValue","blur","focus","clear"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]);let d=ae(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=t.computed(()=>o.type==="range"),h=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},b=(N,_="one",A="YYYY-MM-DD")=>{if(wu(N)){p();return}if(T.value&&Array.isArray(N)&&N.length==2){let z,U;typeof N[0]=="string"?(z=xn(N[0],A),U=xn(N[1],A)):(z=N[0],U=N[1]);let H=nt(z),G=nt(U);(h.startDate===null||h.startDate.getTime()!==z.getTime()||h.endDate?.getTime()!==U.getTime())&&(h.startDate=z,h.startArray=H,h.endDate=U,h.endArray=G)}else{let z;typeof N=="string"?z=xn(N,A):z=N;let U=nt(z);(h.startDate===null||h.startDate.getTime()!==z.getTime())&&(h.startDate=z,h.startArray=U)}};b(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,N=>{b(N,o.type,o.valueFormat)});const y=t.computed(()=>{if(h.startDate===null)return"";if(T.value){let N=tt(o,h.startDate,o.format),_=tt(o,h.endDate,o.format);return`${N} ${o.rangeSeparator} ${_}`}else{let N=tt(o,h.startDate,o.format);return o.showWeek&&(N=`${N} ${h.startArray[4]}`),N}}),v=t.computed(()=>{if(h.startDate===null)return null;if(T.value){let N=ne.date2Str(h.startDate),_=ne.date2Str(h.endDate??new Date);return[N,_]}else return ne.date2Str(h.startDate)}),f="fox-input-item",B=t.computed(()=>({[f]:!0,[`${f}__disabled`]:a.value})),V=Ne(t.computed(()=>o.textAlign),"textAlign"),L=t.computed(()=>({textAlign:V.value??"right"})),R=t.ref(!1),I=()=>{i.value||a.value||(R.value=!0)},E=()=>{R.value=!1},w=N=>{R.value=N},C=N=>{if(N){if(T.value&&Array.isArray(N)){let _=N[0],A=ie(_[0]),z=ie(_[1]),U=ie(_[2]),H=new Date(A,z-1,U),G=N[1];A=ie(G[0]),z=ie(G[1]),U=ie(G[2]);let Z=new Date(A,z-1,U);if(h.startDate=H,h.startArray=nt(H),h.endDate=Z,h.endArray=nt(Z),o.valueFormat){let ee=tt(o,H,o.valueFormat),M=tt(o,Z,o.valueFormat);s("update:modelValue",[ee,M],{})}else s("update:modelValue",[H,Z],{})}else{let _=N,A=ie(_[0]),z=ie(_[1]),U=ie(_[2]),H=new Date(A,z-1,U);if(h.startDate=H,h.startArray=nt(H),o.valueFormat){let G=tt(o,H,o.valueFormat);s("update:modelValue",G,{})}else s("update:modelValue",H,{})}s("change",N,{})}},O=N=>{let A=N.target.value;g.value=!0,s("focus",A,N)},S=N=>{setTimeout(()=>{g.value=!1},0);let A=N.target.value;o.maxLength&&A.length>Number(o.maxLength)&&(A=A.slice(0,Number(o.maxLength))),s("blur",A,N)},k=t.computed(()=>Pe(o.unit)>0),D=N=>{p(),s("update:modelValue",null,N),s("change","",N),s("clear","")},F=t.ref();return me({showPicker:I,hidePicker:E,focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const N={class:B.value,style:L.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,readonly:!0,clearable:o.clearable,value:y.value,onClick:I,onFocus:O,onBlur:S,onClear:D},_={};r.slots.prepend&&(_.prepend=r.slots.prepend),r.slots.append&&(_.append=r.slots.append),r.slots.prefix?_.prefix=r.slots.prefix:_.prefix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.Calendar)}),r.slots.suffix?_.suffix=r.slots.suffix:k.value&&(_.suffix=()=>[o.unit]);const A=[],z=t.h(x.ElInput,N,_);A.push(z);const U={default:()=>A};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const H=Pt(o,fo);H.visible=R.value,H["onUpdate:visible"]=w,H["default-value"]=v.value,H.onChoose=C;const G={};if(r.slots.btn){const te=r.slots.btn();G.btn=()=>te}r.slots.day&&(G.day=r.slots.day),r.slots.topInfo&&(G.topInfo=r.slots.topInfo),r.slots.bottomInfo&&(G.bottomInfo=r.slots.bottomInfo);const Z=t.h(cn,H,G);U.hide=()=>[Z];const M={...Se(o,cl),hintText:d.value,hintVisible:m.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,M,U)}}}}const{componentName:_u,create:Hu,scope:Ku}=oe("calendar-item"),mo=Hu(ju(_u,Ku,pe)),fl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Wu(e,n,l){return{props:{...he,...xe,...fl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),h=L=>{m.value=L,s("update:modelValue",L),s("change",L)};let p=ae(o,"hintText"),b=t.ref(!1);const y=L=>{let I=L.target.value;d.value=!0,ge(p.value)||(b.value=!0),s("focus",I,L)},v=L=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let I=L.target.value;o.maxLength&&I.length>Number(o.maxLength)&&(I=I.slice(0,Number(o.maxLength))),s("blur",I,L)},f=()=>{s("clear","")},B=L=>{s("visible-change",L)},V=t.ref();return me({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const R={...r.attrs,ref:V,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":h,onClear:f,onFocus:y,onBlur:v,onVisibleChange:B},I={},E=[],w=t.h(x.ElTimePicker,R,I);E.push(w);const C={default:()=>E};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const S={...Se(o,fl),hintText:p.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(l,S,C)}}}}const{componentName:Yu,create:Uu,scope:Gu}=oe("time-item"),ho=Uu(Wu(Yu,Gu,pe)),dl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xu(e,n,l){return{props:{...he,...xe,...dl},emits:["change","update:modelValue","blur","focus","clear"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),h=V=>{m.value=V,s("update:modelValue",V),s("change",V)};let p=ae(o,"hintText"),b=t.ref(!1);const y=V=>{let R=V.target.value;d.value=!0,ge(p.value)||(b.value=!0),s("focus",R,V)},v=V=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let R=V.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),s("blur",R,V)},f=()=>{s("clear","")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":h,onClear:f,onFocus:y,onBlur:v},R={},I=[],E=t.h(x.ElTimeSelect,L,R);I.push(E);const w={default:()=>I};r.slots.default&&(w.label=r.slots.default),r.slots.fixedTip&&(w.fixedTip=r.slots.fixedTip);const O={...Se(o,dl),hintText:p.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(l,O,w)}}}}const{componentName:Zu,create:Ju,scope:Qu}=oe("time-select-item"),po=Ju(Xu(Zu,Qu,pe));function ml(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let r=o;for(let a=l.length-1;a>=o;a--)if(l.charAt(a)!="0"){r=a;break}return r-o<n?r=o+n+1:r!=o&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function hl(e,n,l=20){if(typeof n=="string"&&(n=ie(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Kl(`${e}`,`${n}`);return ml(o)}else{let o=Hn(`${e}`,Wl(`${n}`),20);return ml(o)}}function ec(e,n=-1,l=!1,o=3,r=","){return Yt(e,n,l,o,r)}function pl(e,n,l,o,r=!0){if(e=="")return"";if(e=Yl(e),n=ie(n),n==1)return e;if(o)e=hl(e,n),l&&(e=="0"&&r?e=`${e}.`.padEnd(ie(l)+2,"0"):e=Hn(e,1,ie(l)));else{let a=-1*n;e=hl(e,a)}return e}function gl(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=le(n.minInclude),r=In(e,n.min);if(o&&r==-1||!o&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let o=le(n.maxInclude),r=In(e,n.max);(o&&r==1||!o&&(r==0||r==1))&&(l.maxValid=!1)}return l}const yl={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 tc(e,n,l){return{props:{...he,...xe,...yl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=t.ref(!1),c=ae(o,"modelValue"),d=t.ref("");t.watch([()=>c.value,()=>o.rates,()=>o.precision],([S,k,D])=>{if(ge(S)){d.value="";return}const F=pl(S,k,D,!1);d.value!==F&&(d.value=F)},{immediate:!0});const m=t.computed(()=>{let S="";return u.value&&(S=d.value),S}),{t:g}=Ee.useFoxI18n(n),T=t.computed(()=>{let S=o.placeholder??"";return!u.value&&!ge(d.value)?S=ec(d.value,o.decimalLength,o.autoPadding,o.digits,o.separator):S=g(["placeholder",S]),S}),h=e,p=t.computed(()=>({[h]:!0,[`${h}__disabled`]:a.value,[`${h}__placeholder`]:d.value.length>0})),b=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const y=t.ref(""),v=t.computed(()=>{let S=y.value;return ge(S)&&(S=o.errorTip??""),S}),f=t.ref(""),B=t.ref(!1),V=(S,k)=>{if(S=`${S}`,ge(S)){d.value="",c.value="",k.forEach(D=>{s(D,"")}),le(o.showTip)&&B.value&&(B.value=!1);return}if(S.length>=2){let D=S;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){t.triggerRef(d);return}}if(S!="-"){if(!nr(S)){t.triggerRef(d);return}if(o.integerLength!=-1&&or(S)>Number(o.integerLength)){t.triggerRef(d);return}if(o.decimalLength&&o.decimalLength!=-1&&lr(S)>Number(o.decimalLength)){t.triggerRef(d);return}let D=gl(S,o);if(D.maxValid===!1){y.value=D.message,t.triggerRef(d);return}}else if(o.min!=null&&ie(o.min)>=0){t.triggerRef(d);return}f.value=S,le(o.showTip)&&(B.value=S.length>0),d.value=S,c.value=pl(S,o.rates,o.precision,!0),k.forEach(D=>{s(D,c.value)})},L=S=>{V(S,["update:modelValue","input"])},R=S=>{V(S,["update:modelValue","change"])},I=S=>{if(u.value=!0,le(o.showTip)){let k=d.value;ge(k)&&(k=o.hintText),ge(k)||(f.value=k,B.value=!0)}y.value="",s("focus",c.value,S)},E=S=>{if(setTimeout(()=>{u.value=!1,le(o.showTip)&&B.value===!0&&(B.value=!1)},0),!ge(d.value)){let k=gl(d.value,o);if(k.minValid===!1||k.maxValid===!1){y.value=k.message;return}}s("update:modelValue",c.value,S),s("blur",c.value,S)},w=()=>{s("clear","")},C=t.computed(()=>Pe(o.unit)>0),O=t.ref();return me({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const k={...je(r.attrs),ref:O,class:p.value,type:"digit",maxlength:o.maxLength,placeholder:T.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:w,onInput:L,onChange:R,onFocus:I,onBlur:E},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:C.value&&(D.suffix=()=>[o.unit]);const F=[],N=t.h(x.ElInput,k,D);F.push(N);const _={default:()=>F};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const z={...Se(o,yl),errorTip:v.value,hintText:f.value,hintVisible:B.value,hintType:"number",prop:`${o.prop}_item`};return t.h(l,z,_)}}}}const{componentName:nc,create:oc,scope:lc}=oe("money-item"),go=oc(tc(nc,lc,pe)),vl={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 rc(e,n,l){return{props:{...he,...xe,...vl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__append`]:L.value})),h=t.computed(()=>({[`${g}__unit`]:!0})),p=I=>{m.value=I,s("update:modelValue",I),s("input",I)},b=I=>{s("change",I)};let y=ae(o,"hintText"),v=t.ref(!1);const f=I=>{let w=I.target.value;d.value=!0,ge(y.value)||(v.value=!0),s("focus",w,I)},B=I=>{setTimeout(()=>{v.value&&(v.value=!1),d.value=!1},0);let w=I.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),s("blur",w,I)},V=()=>{s("clear","")},L=t.computed(()=>Pe(o.unit)>0),R=t.ref();return me({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const E={...je(r.attrs),ref:R,class:T.value,placeholder:c.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:V,onChange:b,onInput:p,onFocus:f,onBlur:B},w={},C=[],O=t.h(x.ElInputNumber,E,w);C.push(O);const S={default:()=>C};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const D={...Se(o,vl),hintText:y.value,hintVisible:v.value,prop:`${o.prop}_item`};if(r.slots.append)S.append=r.slots.append;else if(L.value){const N={class:h.value},_=t.h("div",N,[o.unit]);S.append=()=>_}return t.h(l,D,S)}}}}const{componentName:ac,create:ic,scope:sc}=oe("input-number-item"),yo=ic(rc(ac,sc,pe));function Tt(e,n){const l=e.textKey??"text";return n[l]??""}function kt(e,n){const l=e.valueKey??"value";return n[l]}function Mr(e,n){const l=e.childrenKey??"children";return n[l]}function Ft(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const r=n[o],a=Tt(e,r),i=kt(e,r);l.texts.push(a),l.values.push(i??"")}return l}function Lr(e,n,l,o,r=[]){if(!l)return;const a=l[o];for(let i=0;i<n.length;i++)if(Tt(e,n[i])===a){const u=kt(e,n[i])??"",c={[e.textKey]:a,[e.valueKey]:u};r.push(c);const d=Mr(e,n[i]);Array.isArray(d)&&Lr(e,d,l,o+1,r);return}}function qr(e,n,l,o,r=[]){if(!l)return;const a=l[o];for(let i=0;i<n.length;i++)if(kt(e,n[i])===a){const u=Tt(e,n[i])??"",c={[e.textKey]:u,[e.valueKey]:a};r.push(c);const d=Mr(e,n[i]);Array.isArray(d)&&qr(e,d,l,o+1,r);return}}function Cn(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++){const r=Tt(e,n[o]),a=Tt(e,l[o]);if(r!==a)return!1;const i=kt(e,n[o]),s=kt(e,l[o]);if(i!==s)return!1}return!0}let uc=class{proxy;constructor(n){this.proxy=n}async load(n,l){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const r=Be(this.proxy,o);return r===null?(console.error(`${o} component not found api function`),[]):(Ae(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(n,l))}};function cc(){const e=t.getCurrentInstance();return new uc(e.proxy)}const qt=(e,n,l)=>e.map(o=>{const{value:r="value",text:a="text",children:i="children"}=l??{},{[r]:s,[a]:u,[i]:c,...d}=o,m={loading:!1,...d,level:n?(n&&n.level||0)+1:0,value:s,text:u,children:c,_parent:n};return m.children&&m.children.length&&(m.children=qt(m.children,m,l)),m}),zr=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&zr(o.children,n)},fc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},dc=(e,n)=>{const l={...fc,...n||{}},{topId:o,idKey:r,pidKey:a,sortKey:i}=l;let s=[],u={};return e.forEach(c=>{c={...c};const{[r]:d,[a]:m}=c,g=u[m]=u[m]||[];!s.length&&m===o&&(s=g),g.push(c),c.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(c=>{u[c].length>1&&u[c].sort((d,m)=>d[i]-m[i])}),u=null,s},mc=/scroll|auto|overlay/i,hc=window;function pc(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bl(e,n=hc){let l=e;for(;l&&l!==n&&pc(l);){const{overflowY:o}=window.getComputedStyle(l);if(mc.test(o))return l;l=l.parentNode}return n}const{create:gc}=oe("sticky"),yc=gc({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const l=t.ref(),o=t.ref(),r=t.reactive({fixed:!1,height:0,transform:0}),a=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>r.fixed?{height:`${r.height}px`}:{}),s=t.computed(()=>r.fixed?{[e.position]:`${a.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),u=()=>{const c=e.container;if(!l.value&&!c)return;const d=Ze(l),m=o.value,g=Ze(m),T=Ze(c);r.height=d.height;const h=()=>{let b=!1;if(e.position==="top")b=c?a.value>d.top&&T.bottom>0:a.value>d.top;else{const y=document.documentElement.clientHeight;b=c?T.bottom>0&&y-a.value-g.height>T.top:y-a.value<d.bottom}return b},p=()=>{if(c)if(e.position==="top"){const b=T.bottom-a.value-g.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,y=T.bottom-(b-a.value);return y<0?y:0}return 0};r.transform=p(),r.fixed=h()};return t.watch(()=>r.fixed,c=>{n("change",c)}),t.onMounted(()=>{u(),bl(l.value).addEventListener("scroll",u,!0)}),t.onUnmounted(()=>{bl(l.value).removeEventListener("scroll",u)}),{rootRef:l,rootStyle:i,stickyRef:o,stickyStyle:s}}});function vc(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const $t=ce(yc,[["render",vc]]),bc=(e,n,l,o)=>{const r=t.ref(),a=t.ref({width:0,height:0}),i=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let g=await o(r,l);a.value.width=g.width||0,a.value.height=g.height||0}else a.value.width=r.value?.clientWidth||0,a.value.height=r.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),u=ao();let c="";const d=(g,T)=>{let h=g;switch(e.direction=="horizontal"?(c=g>0?"right":"left",h=Math.abs(h)/a.value.width*100):(c=T>0?"bottom":"top",h=T,h=Math.abs(h)/a.value?.height*100),h>85&&(h=85),c){case"left":case"top":n.isEnd()&&(h=0,s.moving=!1);break;case"right":case"bottom":h=-h,n.isBegin()&&(h=0,s.moving=!1);break}s.offset=h};return{touchMethods:{onTouchStart(g){e.swipeable&&u.start(g)},onTouchMove(g){e.swipeable&&(u.move(g),s.moving=!0,d(u.deltaX.value,u.deltaY.value),e.direction=="horizontal"&&u.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&u.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,c){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:r}};class wc{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Sc}=oe("ext-tabs"),xc=Sc({components:{[$t.name]:$t,JoySmile:as},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:l}){const o=t.ref(null);let r;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const a=t.ref([]),i=E=>{E.forEach((w,C)=>{let O=w.type;if(O=O.name||O,O=="fox-ext-tab-pane"){let S=new wc;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let k=st(w.props?.["pane-key"]),D=k=="number"||k=="string"?String(w.props?.["pane-key"]):null,F=st(w.props?.paneKey),N=F=="number"||F=="string"?String(w.props?.paneKey):null;S.title=w.props?.title,S.paneKey=D||N||String(C),S.disabled=w.props?.disabled}a.value.push(S)}else{if(w.children==" ")return;Array.isArray(w.children)&&i(w.children)}})},s=t.ref(e.modelValue||0),u=E=>{let w=a.value.findIndex(C=>C.paneKey==E);a.value.length==0||w==-1||(s.value=w)},c=t.computed(()=>e.titleScroll&&e.direction==="vertical"),d=t.ref(),m=t.ref([]),g=E=>{const w=d.value,C=m.value;if(!w||!C||!C[s.value])return;const O=C[s.value];let S=0;e.direction==="vertical"?S=O.offsetTop-w.offsetTop+10-(w.offsetHeight-O.offsetHeight)/2:S=O.offsetLeft-(w.offsetWidth-O.offsetWidth)/2,T(w,S,E?0:.3,e.direction)},T=(E,w,C,O)=>{let S=0;const k=O==="horizontal"?E.scrollLeft:E.scrollTop,D=C===0?1:Math.round(C*1e3/16);function F(){O==="horizontal"?E.scrollLeft+=(w-k)/D:E.scrollTop+=(w-k)/D,++S<D&&Ul(F)}F()},h=(E=l.default?.())=>{a.value=[],E=E?.filter(w=>typeof w.children!="string"),E&&E.length&&i(E),u(e.modelValue),t.nextTick(()=>{g()})},p=E=>{r=E.fixed};t.watch(()=>l.default?.(),E=>{h(E)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(u(E),g(),r){let w=Ze(o.value).top+b(),C=Math.ceil(w-e.top);window.scrollTo({top:C,behavior:"smooth"})}}),t.onMounted(h),t.onActivated(h);const y={isBegin:()=>s.value==0,isEnd:()=>s.value==a.value.length-1,next:()=>{s.value+=1,y.updateValue(a.value[s.value])},prev:()=>{s.value-=1,y.updateValue(a.value[s.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,w)=>{n("click",E),!(E.disabled||s.value==w)&&(s.value=w,y.updateValue(E))},setTabItemRef:(E,w)=>{m.value[w]=E}},{tabsContentRef:v,touchState:f,touchMethods:B}=bc(e,y),V=t.computed(()=>{let E=s.value*100;f.moving&&(E+=f.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),L=t.computed(()=>({background:e.background})),R=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),I=t.computed(()=>{if(!e.titleGutter)return{};const E=we(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}});return{navRef:d,tabsContentRef:v,titles:a,contentStyle:V,tabsNavStyle:L,titleStyle:I,tabsActiveStyle:R,container:o,getScrollY:c,onStickyScroll:p,...y,...B}}}),Cc=["onClick"],Tc=["onClick"];function kc(e,n,l,o,r,a){const i=t.resolveComponent("JoySmile"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(u,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(u,c),key:u.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(u.title),3)],14,Cc))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(u,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(u,c),key:u.paneKey,ref_for:!0,ref:d=>e.setTabItemRef(d,c)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(u.title),3)],14,Tc))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...u)=>e.onTouchStart&&e.onTouchStart(...u)),onTouchmove:n[1]||(n[1]=(...u)=>e.onTouchMove&&e.onTouchMove(...u)),onTouchend:n[2]||(n[2]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u)),onTouchcancel:n[3]||(n[3]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[t.renderSlot(e.$slots,"default")],36)],2)}const Dt=ce(xc,[["render",kc]]),{create:$c}=oe("ext-tab-pane"),Dc=$c({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const l=t.inject("tabsOpiton"),o=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:o}}});function Ec(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Et=ce(Dc,[["render",Ec]]);class wl{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=qt(n,null,this.config)}updateChildren(n,l){l?l.children=qt(n,l,this.config):this.nodes=qt(n,null,this.config)}getNodeByValue(n){let l;return zr(this.nodes,o=>{if(o.value===n)return l=o,!0}),l}getPathNodesByValue(n){if(!n.length)return[];const l=[];let o=this.nodes;for(;o&&o.length;){const r=o.find(a=>a.value===n[a.level]);if(!r)break;l.push(r),o=r.children}return l}isLeaf(n,l){const{leaf:o,children:r}=n,a=Array.isArray(r)&&!!r.length;return o||!a&&!l}hasChildren(n,l){if(this.isLeaf(n,l))return!1;const{children:r}=n;return Array.isArray(r)&&!!r.length}}const{create:Nc,scope:Vc}=oe("cascader-pane"),Pc=Nc({components:{Loading:ns,Checklist:hs,[Dt.name]:Dt,[Et.name]:Et},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),a=t.ref(e.modelValue),i=t.ref(new wl([],{})),s=t.ref([]),u=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),c=new Map;let d;const m=async()=>{c.clear(),s.value=[],o.value=0,r.value=!1,d=null;let{options:y}=e;l.value.convertConfig&&(y=dc(y,l.value.convertConfig)),i.value=new wl(y,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),u.value&&!i.value.nodes.length&&await T({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],g()},g=async()=>{const y=a.value;if(y===void 0||!i.value.nodes.length)return;if(y.length===0){o.value=0,s.value=[{nodes:i.value.nodes,selectedNode:null}];return}let v=y;if(u.value&&Array.isArray(y)&&y.length){v=[];let f=i.value.nodes.find(B=>B.value===y[0]);if(f){v=[f.value],r.value=!0;const B=await y.slice(1).reduce(async(V,L)=>{const R=await V;await T(R);const I=R?.children?.find(E=>E.value===L);return I&&v.push(L),Promise.resolve(I)},Promise.resolve(f));await T(B),r.value=!1}}v.length&&y===e.modelValue&&i.value.getPathNodesByValue(v).map((B,V)=>{o.value=V,b.handleNode(B,!0)})},T=async y=>{if(!y)return;if(!l.value.lazyLoad){y.leaf=!0;return}if(i.value.isLeaf(y,u.value)||i.value.hasChildren(y,u.value))return;y.loading=!0;const v=y.root?null:y;let f=c.get(y);f||(f=new Promise(V=>{l.value.lazyLoad?.(y,V)}),c.set(y,f));const B=await f;Array.isArray(B)&&B.length>0?i.value.updateChildren(B,v):y.leaf=!0,y.loading=!1,c.delete(y)},h=y=>{const v=y.map(f=>f.value);a.value=v,n("change",v,y),n("update:modelValue",v,y)},{t:p}=Ee.useFoxI18n(Vc),b={async handleNode(y,v){const{disabled:f,loading:B}=y;if(!(!v&&f||!s.value[o.value])){if(i.value.isLeaf(y,u.value)){if(y.leaf=!0,s.value[o.value].selectedNode=y,s.value=s.value.slice(0,y.level+1),!v){const V=s.value.map(L=>L.selectedNode);h(V),n("pathChange",V)}return}if(i.value.hasChildren(y,u.value)){const V=y.level+1;if(s.value[o.value].selectedNode=y,s.value=s.value.slice(0,V),s.value.push({nodes:y.children||[],selectedNode:null}),o.value=V,!v){const L=s.value.map(R=>R.selectedNode);n("pathChange",L)}return}d=y,!B&&(await T(y),d===y&&(s.value[o.value].selectedNode=y,b.handleNode(y,v)))}},handleTabClick(y){d=null,o.value=Number(y.paneKey)},formatTabTitle(y){return y.selectedNode?y.selectedNode.text:p("select")},isSelected(y,v){return y.selectedNode&&y.selectedNode.value===v.value}};return t.watch([l,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,y=>{y!==a.value&&(a.value=y,g())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(a.value)&&a.value.length>0&&g()}),{panes:s,initLoading:r,tabsCursor:o,...b}}}),Ic={role:"menu",class:"fox-cascader__pane"},Oc=["aria-checked","aria-disabled","onClick"],Bc={class:"fox-cascader__item__title"},Ac=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Fc(e,n,l,o,r,a){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),u=t.resolveComponent("fox-ext-tab-pane"),c=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,m)=>(t.openBlock(),t.createBlock(u,{title:e.formatTabTitle(d),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,g),disabled:g.disabled}]),"aria-checked":e.isSelected(d,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:T=>e.handleNode(g,!1)},[t.createElementVNode("view",Bc,t.toDisplayString(g.text),1),g.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Oc))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Ac]),_:1}))]),_:1},8,["modelValue","onClick"])}const Sl=ce(Pc,[["render",Fc]]),{create:Rc}=oe("cascader-picker"),Mc=Rc({components:{[Sl.name]:Sl,[qe.name]:qe},props:{...lo,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const l=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),r=(i,s)=>{l.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},a=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==l.value&&(l.value=i)}),{onChange:r,onPathChange:a,innerValue:l,innerVisible:o}}}),Lc=["innerHTML"];function qc(e,n,l,o,r,a){const i=t.resolveComponent("fox-cascader-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=u=>e.innerVisible=u),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Lc)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const fn=ce(Mc,[["render",qc]]),xl={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function zc(e,n,l){return{props:{...he,...xe,...xl},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]);let d=ae(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=cc(),h=t.ref([]);t.watch([()=>o.source,()=>o.params],async([F,N])=>{F&&(h.value=await T.load(F,N))},{immediate:!0});const p=t.ref([]),b=t.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),y=t.ref([]),v=t.ref([]);t.watch([()=>o.modelValue,h],async([F,N])=>{if(o.lazy===!0){v.value.length==0&&(p.value=Array.isArray(F)?F:[],y.value=Array.isArray(F)?F:[]);return}if(o.valueType==="item"){let _=F;if(!Cn(o,_,v.value)){v.value=_;let A=Ft(o,_);p.value=A.texts,y.value=A.values}}else if(o.valueType==="text"){let _=F,A=[];if(Lr(o,N,_,0,A),!Cn(o,A,v.value)){v.value=A;let z=Ft(o,A);_.value=z.texts,y.value=z.values}}else{let _=F,A=[];if(qr(o,N,_,0,A),!Cn(o,A,v.value)){v.value=A;let z=Ft(o,A);p.value=z.texts,_.value=z.values}}});const f=e,B=t.computed(()=>({[f]:!0})),V=Ne(t.computed(()=>o.textAlign),"textAlign"),L=t.computed(()=>({textAlign:V.value??"right"})),R=t.ref(!1),I=()=>{a.value===!0||i.value===!0||(R.value=!0)},E=F=>{R.value=F},w=(F,N)=>{let _=N.map(z=>{if(z==null)return z;let U={...z};return Reflect.deleteProperty(U,"text"),U[o.textKey]=z.text??"",Reflect.deleteProperty(U,"value"),U[o.valueKey]=z.value??"",U});v.value=_;let A=Ft(o,_);p.value=A.texts,y.value=A.values,o.valueType==="text"?(s("change",p.value,_),s("update:modelValue",p.value)):o.valueType==="item"?(s("change",_,_),s("update:modelValue",_)):(s("change",y.value,_),s("update:modelValue",y.value)),s("update:pathNodes",_)},C=F=>{let N=F.map(_=>{if(_==null)return _;let A={..._};return Reflect.deleteProperty(A,"text"),A[o.textKey]=_.text??"",Reflect.deleteProperty(A,"value"),A[o.valueKey]=_.value??"",A});s("pathChange",N)},O=F=>{g.value=!0,s("focus",y.value,F)},S=F=>{setTimeout(()=>{g.value=!1},0),s("blur",y.value,F)},k=t.computed(()=>Pe(o.unit)>0);t.computed(()=>o.clearable&&!a.value&&!i.value);const D=t.ref();return me({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const F={class:B.value,style:L.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,readonly:!0,value:b.value,onClick:I,onFocus:O,onBlur:S},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:k.value?N.suffix=()=>[o.unit]:N.suffix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const _=[],A=t.h(x.ElInput,F,N);_.push(A);const z={default:()=>_};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);let U={};U.visible=R.value,U["onUpdate:visible"]=E,U.modelValue=y.value,U.onChange=w,U.onPathChange=C,U.options=h.value,U.title=o.title,U.lazy=o.lazy,U.lazyLoad=o.lazyLoad,U.valueKey=o.valueKey,U.textKey=o.textKey,U.childrenKey=o.childrenKey,U.convertConfig=o.convertConfig;const H=t.h(fn,U);z.hide=()=>[H];const Z={...Se(o,xl),hintText:d.value,hintVisible:m.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,Z,z)}}}}const{componentName:jc,create:_c,scope:Hc}=oe("cascader-item"),vo=_c(zc(jc,Hc,pe)),Cl={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Kc(e,n,l){return{props:{...he,...xe,...Cl},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),h=R=>{m.value=R,s("update:modelValue",R),s("input",R)},p=R=>{s("change",R)},b=R=>{s("select",R)};let y=ae(o,"hintText"),v=t.ref(!1);const f=R=>{let E=R.target.value;d.value=!0,ge(y.value)||(v.value=!0),s("focus",E,R)},B=R=>{setTimeout(()=>{v.value&&(v.value=!1),d.value=!1},0);let E=R.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),s("blur",E,R)},V=()=>{s("clear","")},L=t.ref();return me({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const I={...r.attrs,ref:L,class:T.value,placeholder:c.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,onClear:V,onChange:p,onInput:h,onFocus:f,onBlur:B,onSelect:b},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const w=[],C=t.h(x.ElAutocomplete,I,E);w.push(C);const O={default:()=>w};r.slots.default&&(O.label=r.slots.default),r.slots.fixedTip&&(O.fixedTip=r.slots.fixedTip);const k={...Se(o,Cl),hintText:y.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(l,k,O)}}}}const{componentName:Wc,create:Yc,scope:Uc}=oe("autocomplete-item"),bo=Yc(Kc(Wc,Uc,pe));function Gc(e,n,l,o,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=n;for(let c=0;u&&c<a.length;c++){let d=a[c],m=u.find(g=>g[o]===d);if(!m)break;i.push(m[l])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<a.length;u++){let c=n[u],d=a[u];const m=c.find(g=>g[o]===d);if(!m)break;i.push(m[l])}else{let u=n;for(let c=0;u&&c<a.length;c++){let d=a[c],m=u.find(g=>g[o]===d);if(!m)break;i.push(m[l]),u=m[r]}}return i}let Xc=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Zc(){const e=t.getCurrentInstance();return new Xc(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 Jc(e,n){return{props:{...jr},setup(l,{attrs:o,slots:r}){const a=Zc(),i=t.ref([]);t.watch([()=>l.source,()=>l.params],async([c,d])=>{i.value=await a.load(l.sourceType,c,d)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Gc(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return c.length==0?l.emptyText??"":c.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${c[0]}`:c[0]:c.join(l.separator)}),u=l.resolveTag?t.resolveComponent(l.tag):l.tag;return()=>{const c={...o};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?t.h(l.emptyTag??"span",{...o,class:l.emptyClass},s.value):t.h(u,c,{default:()=>s.value}):t.h(u,c,s.value)}}}}const{componentName:mh,create:Qc,scope:hh}=oe("mapping"),Nt=Qc(Jc());function ef(e,n){let l=n.split("."),o=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,s);o=o[m][d]}else o=o[d];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function tf(e,n){return{props:{...jr},setup(l,{attrs:o,slots:r}){return()=>{const a={default:i=>{const s=ef(i.row,i.column.property);return r.default?t.h(Nt,{...l,modelValue:s},{default:r.default}):t.h(Nt,{...l,modelValue:s})}};return t.h(x.ElTableColumn,{...o},a)}}}}const{componentName:ph,create:nf,scope:gh}=oe("table-mapping-column"),wo=nf(tf()),of=Symbol.for("TableStateKey");function Tl(e,n){let l=n.split("."),o=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,s);o=o[m][d]}else o=o[d];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function lf(e,n){return{props:{},setup(l,{attrs:o}){const r=t.inject(of,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=Tl(s.row,s.column.property),c=a?Tl(a,s.column.property):null,d=u===c,m={class:{"el-radio__input":!0,"is-checked":d}},g=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":d}};return t.h("label",T,[g])}};return t.h(x.ElTableColumn,{...o},i)}}}}const{componentName:yh,create:rf,scope:vh}=oe("table-radio-column"),So=rf(lf()),af={},sf={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"},uf=t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),cf=[uf];function ff(e,n){return t.openBlock(),t.createElementBlock("svg",sf,cf)}const df=ce(af,[["render",ff]]),{componentName:bh,create:mf,scope:wh}=oe("table-setting"),hf={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:"不固定"}},pf=mf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:df,Download:ve.Download,RefreshLeft:ve.RefreshLeft},props:{...hf},setup(e,{emit:n,attrs:l}){let o=[];const r=t.ref([]),a=t.computed(()=>r.value.filter(M=>M.label===""||M.type?!1:M.fixed===""||M.fixed===!0||M.fixed==="left")),i=t.computed(()=>r.value.filter(M=>M.label===""||M.type?!1:M.fixed==="right")),s=t.computed(()=>r.value.filter(M=>!(M.label===""||M.type||M.fixed!==void 0))),u=t.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=t.computed(()=>a.value.length>0),d=t.computed(()=>i.value.length>0),m=M=>M.length>1,g=(M,J)=>{Array.isArray(M)&&Array.isArray(J)&&M.forEach(j=>{J.some(q=>q.prop===j.prop?(j.label=q.label,!0):!1)});const te=[];r.value=M.map((j,q)=>(!(j.label===""||j.type)&&j.visible!==!1&&te.push(j.prop),{...j,sortIndex:q})),s.value.length+a.value.length+i.value.length===te.length?v.value=!0:te.length>0&&(f.value=!0),L.value=te},T=M=>M?M.type?M.type:M.label?M.prop:"":"",h=(M,J)=>{if(M.length!==J.length)return!1;const te=M.map($=>T($));for(let $ of J){const j=T($);if(te.indexOf(j)===-1)return!1}return!0},p=M=>{if(!M){const J=e.tableRef.getColumnSetting(),te=J.srcColumnPropertyList;o=te.map(($,j)=>({...$,sortIndex:j})),M=J.columnPropertyList,M&&M.length>0&&h(te,M)||(M=te)}g(M,o)},b=()=>{e.tableRef.setColumnSetting(r.value)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),v=t.ref(!1),f=t.ref(!1),B=M=>{const J=[];r.value.forEach($=>{M&&!($.label===""||$.type)&&J.push($.prop),$.visible=M}),v.value=!1,f.value=!1,s.value.length+a.value.length+i.value.length===J.length?v.value=!0:J.length>0&&(f.value=!0),L.value=J,b()},V=()=>{p(o),b()},L=t.ref([]),R=M=>{r.value.forEach(te=>{if(te.label===""||te.type)return;const $=M.indexOf(te.prop)!==-1;te.visible=$}),v.value=!1,f.value=!1;const J=s.value.length+a.value.length+i.value.length;M.length===J?v.value=!0:M.length>0&&(f.value=!0),b()},I=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const E={currentRow:null,index:null,roleType:null},w=M=>M?M.dataset&&M.dataset.role==="row"?M:M.tagName.toLowerCase()!=="body"?(M=M.parentElement,w(M)):null:null,C=M=>{const J=M.currentTarget;J&&J.dataset&&(E.roleType=J.dataset.roleType,E.index=J.dataset.index)},O=M=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},S=M=>{const J=M.currentTarget;M.relatedTarget;const te=w(J);if(!te)return;const $=te.dataset&&te.dataset.roleType;E.roleType===$&&(M.preventDefault(),E.currentRow&&E.currentRow!==te&&E.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),E.currentRow=te)},k=M=>{M.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},D=M=>{const J=M.currentTarget,te=w(J);if(!te)return;const $=te.dataset&&te.dataset.roleType;if(E.roleType!==$)return;M.preventDefault();const j=Number(E.index),q=Number(te.dataset.index);if(j!==q){if(j<q){const W=r.value[j];r.value.splice(j,1),r.value.splice(q,0,W)}else{const W=r.value[j];r.value.splice(j,1),r.value.splice(q+1,0,W)}g(r.value,o),b()}},F=M=>{const J=r.value[M];J.fixed="left",b()},N=M=>{const J=r.value[M];J.fixed="right",b()},_=M=>{const J=r.value[M];J.fixed=void 0,b()},A=new Map;let z=null;function U(M){const J=document.createRange();return J.setStart(M,0),J.setEnd(M,M.childNodes.length),J.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:v,isIndeterminate:f,handleCheckAllChange:B,handleReset:V,checkedValue:L,handleCheckChange:R,onShow:I,onDragStart:C,onDragEnd:O,onDragOver:S,onDragLeave:k,onDrop:D,toLeftFixed:F,toRightFixed:N,toUnFixed:_,checkboxLabelStyle:y,onMouseOverForOverflowText:(M,J,te)=>{const $=M.currentTarget;if($){const j=Math.floor($.offsetWidth);if(Math.floor(U($))>j){let W=A.get(J);if(W){if(W===z)return;Te.hide(W)}W=Te.show($,te,{type:"text",placement:"top",closeOnClick:!1}),A.set(J,W),z=W}}},onMouseLeaveForOverflowText:(M,J)=>{const te=A.get(J);te&&(Te.hide(te),te===z&&(z=null))},onMouseOverForTip:(M,J)=>{const te=M.currentTarget;te&&(z&&Te.hide(z),z=Te.show(te,J,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:M=>{z&&(Te.hide(z),z=null)}}}}),gf={class:"fox-table-setting"},yf={class:"fox-table-setting__header"},vf={class:"fox-table-setting__body"},bf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},wf={key:0,class:"fox-table-setting__body-title"},Sf=["data-index","draggable"],xf=["onMouseover","onMouseleave"],Cf={class:"tools-item"},Tf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},kf={key:0,class:"fox-table-setting__body-title"},$f=["data-index","draggable"],Df=["onMouseover","onMouseleave"],Ef={class:"tools-item"},Nf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vf={key:0,class:"fox-table-setting__body-title"},Pf=["data-index","draggable"],If=["onMouseover","onMouseleave"],Of={class:"tools-item"};function Bf(e,n,l,o,r,a){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),c=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),m=t.resolveComponent("Download"),g=t.resolveComponent("fox-checkbox"),T=t.resolveComponent("FoxCheckboxGroup"),h=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(h,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",gf,[t.createElementVNode("div",yf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",vf,[t.createVNode(T,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",bf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",wf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[6]||(n[6]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[7]||(n[7]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[8]||(n[8]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[9]||(n[9]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,p.prop,p.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,xf)]),_:2},1032,["label"]),t.createElementVNode("div",Cf,[t.createVNode(d,{onClick:b=>e.toUnFixed(p.sortIndex),onMouseover:n[1]||(n[1]=b=>e.onMouseOverForTip(b,e.unFixedText)),onMouseleave:n[2]||(n[2]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:b=>e.toRightFixed(p.sortIndex),onMouseover:n[3]||(n[3]=b=>e.onMouseOverForTip(b,e.fixedRightText)),onMouseleave:n[4]||(n[4]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"])])],40,Sf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Tf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",kf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[15]||(n[15]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[16]||(n[16]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[17]||(n[17]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[18]||(n[18]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,p.prop,p.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Df)]),_:2},1032,["label"]),t.createElementVNode("div",Ef,[t.createVNode(d,{onClick:b=>e.toLeftFixed(p.sortIndex),onMouseover:n[10]||(n[10]=b=>e.onMouseOverForTip(b,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:b=>e.toRightFixed(p.sortIndex),onMouseover:n[12]||(n[12]=b=>e.onMouseOverForTip(b,e.fixedRightText)),onMouseleave:n[13]||(n[13]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"])])],40,$f))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Nf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Vf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[24]||(n[24]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[25]||(n[25]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[26]||(n[26]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[27]||(n[27]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(g,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,p.prop,p.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,If)]),_:2},1032,["label"]),t.createElementVNode("div",Of,[t.createVNode(d,{onClick:b=>e.toUnFixed(p.sortIndex),onMouseover:n[19]||(n[19]=b=>e.onMouseOverForTip(b,e.unFixedText)),onMouseleave:n[20]||(n[20]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:b=>e.toLeftFixed(p.sortIndex),onMouseover:n[21]||(n[21]=b=>e.onMouseOverForTip(b,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"])])],40,Pf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const dn=ce(pf,[["render",Bf]]);let Af=class{proxy;constructor(n){this.proxy=n}async load(n,l,o,r,a,i,s){if(Array.isArray(l)){let c=(o-1)*r,d=c+r;d>l.length&&(d=l.length);const m=l.slice(c,d);return{totalSize:l.length,page:m}}if(typeof l=="function")return await Reflect.apply(l,null,[o,r,a,i,s]);const u=Be(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await Reflect.apply(u,null,[l,o,r,a,i,s]))}};function Ff(){const e=t.getCurrentInstance();return new Af(e.proxy)}class Rf{proxy;constructor(n){this.proxy=n}async load(n){let l=null;const o=Be(this.proxy,"tableSetting");return typeof o=="function"&&(l=await Reflect.apply(o,null,["load",n])),l}save(n,l){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,l])}remove(n){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",n])}}function _r(){const e=t.getCurrentInstance();return new Rf(e.proxy)}const Mf=Symbol.for("TableStateKey");function Lf(e,n){let l=n.split("."),o=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,s);o=o[m][d]}else o=o[d];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function Tn(e,n){return e.filter(o=>{for(let r in n){const a=n[r],i=Lf(o,r);if(a!==i)return!1}return!0})}const kl={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{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"}},$l={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},kn={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:"不固定"}};function qf(e,n,l){return{inheritAttrs:!1,props:{...he,...xe,...kl,...$l,...kn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,r){const{locale:a}=Ee.useFoxI18n(n),{emitEvent:i}=be({componentName:e,validateHandler:{getValue(...K){return f.value}}},o.prop??r.attrs.name),s=e,u=t.computed(()=>({[s]:!0})),c=t.computed(()=>({[`${s}__setting`]:!0})),d=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,K=>{g.value=K});const T=K=>{g.value=K,i("page-index-change",K)},h=t.ref(o.pageSize);t.watch(()=>o.pageSize,K=>{h.value=K});const p=K=>{h.value=K,i("page-size-change",K)},b=t.shallowRef({}),y=t.computed(()=>({...b.value,...o.params??{},...o.baseParams??{}})),v=t.ref(0),f=t.ref(),B=Ff();let V=!0;const L=()=>Array.isArray(o.data)?!0:le(o.autoLoad),R=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,K=>le(K)),I=async(K,P,Y,Q)=>{try{const ue=await B.load("table",K,P,Y,Q,V,a.value);v.value=ue.totalSize,f.value=ue.page}catch(ue){console.error("[FoxUI] Load Table Data Fail",ue),v.value=0,f.value=[]}V=!1,setTimeout(()=>{i("loaded-data")},250)};t.watch([g,h],([K,P],[Y,Q])=>{P!==Q&&(g.value=1,K=1),I(o.data,K,P,y.value)}),t.watch([()=>o.data,y],([K,P],[Y,Q])=>{L()&&(K!==Y&&(V=!0),!(!Array.isArray(K)&&Le(K,Y)&&Le(P,Q))&&I(K,g.value,h.value,P))},{deep:!0});const E=(K={},P=!1)=>new Promise(Y=>{b.value=t.toRaw(K??{}),t.triggerRef(b),P||(g.value=o.pageIndex??1),t.nextTick(async()=>{await I(o.data,g.value,h.value,y.value),Y()})}),w=()=>{v.value=0,f.value=[]};let C=!1;const O=()=>{C||(C=!0,E())};L()&&!R.value&&E();const S=t.ref(null);t.provide(Mf,{currentRow:S});const k=(K,P)=>{S.value=K,i("current-change",K,P)},D=(K,P,Y)=>{i("row-click",K,P,Y),le(o.rowClickSelectable)===!0&&X?.value.toggleRowSelection(K)},F=[],N=(K,P)=>{if(i("expand-change",K,P),le(o.uniqueExpansion))if(Array.isArray(P)&&P.length==0){const Y=F.length;F.splice(0,Y)}else{F.forEach(Q=>{Q!==K&&X?.value.toggleRowExpansion(Q,!1)});const Y=F.length;F.splice(0,Y,K)}},_=r.attrs.id??o.prop??r.attrs.name,A=_r(),z=t.ref([]);let U=[];const H=()=>({srcColumnPropertyList:U.map(P=>({...P})),columnPropertyList:z.value}),G=K=>{z.value=[...K],ee()},Z=async()=>{const K=await A.load(_);K&&(z.value=K)},ee=()=>{A.save(_,z.value)},M=()=>{A.remove(_)};Z();const J=K=>K?K.type?K.type:K.label?K.prop:"":"",te=t.computed(()=>{if(typeof r.slots.default=="function"){const K=r.slots.default(),P=new Map;if(U=[],K.forEach(Y=>{const Q=Y;if(!Q.props)return;const ue=J(Q.props);P.set(ue,Y);const fe={label:"",prop:""};Object.assign(fe,Q.props),U.push(fe)}),z.value.length===U.length){const Y=[];for(let Q of z.value){const ue=J(Q),fe=P.get(ue);if(!fe)return K;if(Q.visible===!1)continue;const Ot=fe;Ot.props.fixed=Q.fixed,Y.push(Ot)}return Y}return K}return[]}),$=t.shallowRef(new Map),j=({column:K,rowIndex:P})=>{const Y=`${P}_${K.property}`;return $.value.get(Y)??""},q=K=>typeof K=="function"?P=>{const Y=[];let Q=j(P);return Q&&Y.push(Q),Q=K(P),Q&&Y.push(Q),Y.length===0?"":Y.join(" ")}:j,W=(K,P,Y)=>{const Q=`${K}_${P}`;Y?$.value.set(Q,Y):$.value.delete(Q),t.triggerRef($)},X=t.ref();return me({clearSelection:()=>X?.value.clearSelection(),getSelectionRows:()=>X?.value.getSelectionRows(),toggleRowSelection:(K,P)=>{X?.value.toggleRowSelection(K,P)},toggleRowSelectionByProp:(K,P)=>{if(!f.value)return;const Y=Tn(f.value,K);Y.length!==0&&Y.forEach(Q=>{X?.value.toggleRowSelection(Q,P)})},toggleAllSelection:()=>{X?.value.toggleAllSelection()},toggleRowExpansion:(K,P)=>{X?.value.toggleRowExpansion(K,P)},toggleRowExpansionByProp:(K,P)=>{if(!f.value)return;const Y=Tn(f.value,K);Y.length!==0&&Y.forEach(Q=>{X?.value.toggleRowExpansion(Q,P)})},setCurrentRow:K=>{X?.value.setCurrentRow(K)},setCurrentRowByProp:K=>{if(!f.value)return;const P=Tn(f.value,K);P.length!==0&&X?.value.setCurrentRow(P[0])},getCurrentRow:()=>S.value,clearSort:()=>{X?.value.clearSort()},clearFilter:K=>{X?.value.clearFilter(K)},doLayout:()=>{X?.value.doLayout()},sort:(K,P)=>{X?.value.sort(K,P)},scrollTo:(K,P)=>{X?.value.scrollTo(K,P)},setScrollTop:K=>{X?.value.setScrollTop(K)},setScrollLeft:K=>{X?.value.setScrollLeft(K)},loadData:E,clearData:w,getData(){return f.value},getTotalSize(){return v.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:H,setColumnSetting:G,removeColumnSetting:M,setCellClassName:W}),()=>{const P={...je(r.attrs),onCurrentChange:k,onRowClick:D,onExpandChange:N,data:f.value,ref:X,class:u.value,"cell-class-name":q(o.cellClassName)},Y={};r.slots.default&&(Y.default=()=>te.value),r.slots.append&&(Y.append=r.slots.append),r.slots.empty&&(Y.empty=r.slots.empty);const Q=[],ue=t.h(x.ElTable,P,Y);Q.push(ue);let fe=null;if(typeof r.slots.pagination=="function")fe=r.slots.pagination();else if(o.showPagination){const ht={class:m.value,total:v.value,pageSize:h.value,"onUpdate:pageSize":p,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":T,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};fe=t.h(x.ElPagination,ht)}if(o.showSetting){const ht=[];fe&&ht.push(fe);const Yr=t.h(x.ElIcon,{class:c.value},{default:()=>t.h(ve.Setting)}),Ur=Pt(o,kn),Gr=t.h(dn,{...Ur,tableRef:{getColumnSetting:H,setColumnSetting:G,removeColumnSetting:M}},{default:()=>Yr});ht.push(Gr);const Xr=t.h("div",{class:d.value},ht);Q.push(Xr)}else fe&&Q.push(fe);const Ot={default:()=>Q},mt={...Se(o,kl,$l,kn),prop:`${o.prop}_item`};return mt.contentClass=`${s}__wrap`,mt.errorMarkClass="is-table-error",R.value&&L()&&(mt["appear-listen"]=!0,mt.onAppear=O),t.h(l,mt,Ot)}}}}const{componentName:zf,create:jf,scope:_f}=oe("table-item"),xo=jf(qf(zf,_f,pe));function ft(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Vt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Kf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Wf(){const e=t.getCurrentInstance();return new Kf(e.proxy)}function Hr(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ft(e,n),r=ft(e,l);if(o!==r)return!1;const a=Vt(e,n),i=Vt(e,l);return a===i}function Yf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of o){let i=!1;if(l==="text")i=ft(e,a)===n;else if(l==="item")i=Hr(e,a,n);else{let s=Vt(e,a);s==null&&(s=ft(e,a)),i=s===n}if(i){r=a;break}}return r}function Uf(e){return{text:e,value:e}}function Gf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Dl={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Xf(e,n,l){return{inheritAttrs:!0,props:{...he,...xe,...Dl},emits:["change","update:modelValue"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=t.ref(null),c=t.ref(null),d=(R,I,E,w=!0)=>{const C=Yf(o,R,I,E);if(C===null){if(c.value===null)return;c.value=null,u.value=null,w&&(s("update:modelValue",null),s("change",null));return}if(!Hr(o,C,c.value)){u.value=R;const S=t.toRaw(C);c.value=S;let k=null;o.valueType==="text"?k=ft(o,S):o.valueType==="item"?k=S:k=Vt(o,S),w&&(s("update:modelValue",k),s("change",k))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,R=>le(R)),T=Wf(),h=async(R,I)=>{if(R){const E=await T.load("radio",R,I);if(E.length>0)if(typeof E[0]=="string"){let O=E.map(S=>Uf(S));m.value=O}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([R,I])=>{h(R,I)},{immediate:!g.value});let p=!1;const b=()=>{p||(p=!0,h(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,I])=>{d(I,o.valueType,R,!1)});const y=e,v=t.computed(()=>({[y]:!0,[`is-${o.direction}`]:!0})),f=R=>{d(R,"value",m.value,!0)};let B=ae(o,"hintText"),V=ae(o,"hintVisible");const L=(R,I)=>{const E=[];return R.forEach((w,C)=>{const O=Vt(o,w),S=ft(o,w);let k=Hf(o,w);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=Gf(o,w,C)??{},F=`${O}_${C}`,N={...D,key:F,label:O,size:o.size,border:le(o.border)};k&&(N.disabled=k),o.itemType==="button"?E.push(t.h(x.ElRadioButton,N,{default:()=>[S]})):typeof I=="function"?E.push(t.h(x.ElRadio,N,{default:()=>I(w)})):E.push(t.h(x.ElRadio,N,{default:()=>[S]}))}),E};return()=>{const I={...je(r.attrs),class:v.value,disabled:a.value||i.value,modelValue:u.value,"text-color":o.textColor,fill:o.fill,onChange:f},E=[],w={};r.slots.options?w.default=r.slots.options:w.default=()=>L(m.value,r.slots.text);const C=t.h(x.ElRadioGroup,I,w);E.push(C);const O={default:()=>E};r.slots.default&&(O.label=r.slots.default),r.slots.fixedTip&&(O.fixedTip=r.slots.fixedTip);const k={...Se(o,Dl),hintText:B.value,hintVisible:V.value,prop:`${o.prop??r.attrs.name}_item`};return g.value&&(k["appear-listen"]=!0,k.onAppear=b),t.h(l,k,O)}}}}const{componentName:Zf,create:Jf,scope:Qf}=oe("radio-item"),Co=Jf(Xf(Zf,Qf,pe));function dt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ed(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class td{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}}function nd(){const e=t.getCurrentInstance();return new td(e.proxy)}function Kr(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=dt(e,n),r=dt(e,l);if(o!==r)return!1;const a=it(e,n),i=it(e,l);return a===i}function od(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of o){let s=!1;if(l==="text")s=dt(e,i)===a;else if(l==="item")s=Kr(e,i,a);else{let u=it(e,i);u==null&&(u=dt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function ld(e){return{text:e,value:e}}function rd(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const El={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"},lazyLoad:{type:[Boolean,String],default:!1}};function ad(e,n,l){return{inheritAttrs:!0,props:{...he,...xe,...El},emits:["change","update:modelValue"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=t.ref([]),c=t.ref([]),d=(R,I,E,w=!0)=>{const C=od(o,R,I,E);if(C===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],w&&(s("update:modelValue",[]),s("change",[]));return}let O=!0;if(C.length!==c.value.length)O=!1;else for(let S=0;S<C.length;S++){const k=C[S],D=c.value[S];if(!Kr(o,k,D)){O=!1;break}}if(!O){c.value=C;let S=[],k=[];C.forEach(F=>{S.push(it(o,F)),o.valueType==="text"?k.push(dt(o,F)):o.valueType==="item"?k.push(F):k.push(it(o,F))}),u.value=S;const D=t.toRaw(k);w&&(s("update:modelValue",D),s("change",D))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,R=>le(R)),T=nd(),h=async(R,I)=>{if(R){const E=await T.load("checkbox",R,I);if(E.length>0)if(typeof E[0]=="string"){let O=E.map(S=>ld(S));m.value=O}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([R,I])=>{h(R,I)},{immediate:!g.value});let p=!1;const b=()=>{p||(p=!0,h(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,I])=>{d(I,o.valueType,R,!1)});const y=e,v=t.computed(()=>({[y]:!0,[`is-${o.direction}`]:!0})),f=R=>{d(R,"value",m.value,!0)};let B=ae(o,"hintText"),V=ae(o,"hintVisible");const L=(R,I)=>{const E=[];return R.forEach((w,C)=>{const O=it(o,w),S=dt(o,w);let k=ed(o,w);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=rd(o,w,C)??{},F=`${O}_${C}`,N={...D,key:F,class:o.itemClass,label:O,size:o.size,border:le(o.border)};k&&(N.disabled=k),o.itemType==="button"?E.push(t.h(x.ElCheckboxButton,N,{default:()=>[S]})):typeof I=="function"?E.push(t.h(x.ElCheckbox,N,{default:()=>I(w)})):E.push(t.h(x.ElCheckbox,N,{default:()=>[S]}))}),E};return()=>{const I={...je(r.attrs),class:v.value,disabled:a.value||i.value,modelValue:u.value,"text-color":o.textColor,fill:o.fill,max:ie(o.max),min:ie(o.min),onChange:f},E=[],w={};r.slots.options?w.default=r.slots.options:w.default=()=>L(m.value,r.slots.text);const C=t.h(x.ElCheckboxGroup,I,w);E.push(C);const O={default:()=>E};r.slots.default&&(O.label=r.slots.default),r.slots.fixedTip&&(O.fixedTip=r.slots.fixedTip);const k={...Se(o,El),hintText:B.value,hintVisible:V.value,prop:`${o.prop??r.attrs.name}_item`};return g.value&&(k["appear-listen"]=!0,k.onAppear=b),t.h(l,k,O)}}}}const{componentName:id,create:sd,scope:ud}=oe("checkbox-item"),To=sd(ad(id,ud,pe)),Nl={modelValue:{type:[Number,String],required:!1}};function cd(e,n,l){return{props:{...he,...xe,...Nl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=ae(o,"modelValue",p=>ie(p)),c=e,d=t.computed(()=>({[c]:!0})),m=p=>{s("update:modelValue",p),s("change",p)};let g=ae(o,"hintText"),T=t.ref(!1);const h=t.ref();return me({}),()=>{const b={...je(r.attrs),ref:h,class:d.value,readonly:i.value||a.value,modelValue:u.value,onChange:m},y={},v=[],f=t.h(x.ElRate,b,y);v.push(f);const B={default:()=>v};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Se(o,Nl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(l,L,B)}}}}const{componentName:fd,create:dd,scope:md}=oe("rate-item"),ko=dd(cd(fd,md,pe)),Vl={modelValue:{type:[Boolean,String,Number],required:!1}};function hd(e,n,l){return{props:{...he,...xe,...Vl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=ae(o,"modelValue"),c=e,d=t.computed(()=>({[c]:!0})),m=p=>{s("update:modelValue",p),s("change",p)};let g=ae(o,"hintText"),T=ae(o,"hintVisible");const h=t.ref();return me({}),()=>{const b={...je(r.attrs),ref:h,class:d.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:m},y={},v=[],f=t.h(x.ElSwitch,b,y);v.push(f);const B={default:()=>v};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Se(o,Vl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(l,L,B)}}}}const{componentName:pd,create:gd,scope:yd}=oe("switch-item"),$o=gd(hd(pd,yd,pe)),Pl={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function vd(e,n,l){return{props:{...he,...xe,...Pl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:u}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=ae(o,"modelValue"),d=e,m=t.computed(()=>({[d]:!0})),g=V=>{u("update:modelValue",V),u("change",V)};let T=ae(o,"hintText"),h=t.ref(!1);const p=V=>{let R=V.target.value;s.value=!0,ge(T.value)||(h.value=!0),u("focus",R,V)},b=V=>{setTimeout(()=>{h.value&&(h.value=!1),s.value=!1},0);let R=V.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),v.value||u("blur",R,V)},y=()=>{u("clear","")},v=t.ref(!1),f=V=>{v.value=V,u("visible-change",V),V||u("selected")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const L={...je(r.attrs),ref:B,class:m.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:y,onFocus:p,onBlur:b,onVisibleChange:f},R={};r.slots.option&&(R.default=r.slots.option);const I=[],E=t.h(x.ElTreeSelect,L,R);I.push(E);const w={default:()=>I};r.slots.default&&(w.label=r.slots.default),r.slots.fixedTip&&(w.fixedTip=r.slots.fixedTip);const O={...Se(o,Pl),hintText:T.value,hintVisible:h.value,prop:`${o.prop}_item`};return t.h(l,O,w)}}}}const{componentName:bd,create:wd,scope:Sd}=oe("tree-select-item"),Do=wd(vd(bd,Sd,pe)),xd={},Cd={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"},Td=t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),kd=[Td];function $d(e,n){return t.openBlock(),t.createElementBlock("svg",Cd,kd)}const Dd=ce(xd,[["render",$d]]),{componentName:Ch,create:Ed,scope:Th}=oe("group-setting"),Nd={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:"到底部"}},Vd=Ed({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:Dd,Download:ve.Download,RefreshLeft:ve.RefreshLeft},props:{...Nd},emits:["change"],setup(e,{emit:n,attrs:l,expose:o}){let r=null;const a=t.ref([]),i=_r(),s=H=>H.length>1,u=()=>{const H=[],G=[...a.value];a.value=G.map((ee,M)=>(ee.visible!==!1&&H.push(ee.prop),{...ee,sortIndex:M})),a.value.length===H.length?p.value=!0:H.length>0&&(b.value=!0),f.value=H},c=H=>{let G=null;if(typeof H=="string")G=document.querySelectorAll(`.fox-group[prop="${H}"] > div > .fox-item[prop]`);else if(H&&typeof H=="object"){const ee=H.$el??H;typeof ee.querySelectorAll=="function"&&(G=ee.querySelectorAll(".fox-item[prop]"))}if(!G)return[];const Z=[];return G.forEach(ee=>{const M=ee.querySelector(".label--string");let J="";M&&(J=M.textContent??"");const te=ee.getAttribute("prop")??"",j=window.getComputedStyle(ee,null).getPropertyValue("display");Z.push({label:J,prop:te,sortIndex:0,visible:j!=="none"})}),Z},d=()=>{if(!r){const H=c(e.groupRef??e.groupProp);if(H.length===0)return!1;r=H}return!0},m=async(H=!1)=>{const G=await i.load(e.groupProp),Z=ee=>{if(!ee||!r)return;const M=r.map(J=>({...J}));Array.isArray(G)&&G.forEach(J=>{M.some(te=>{if(te.prop===J.prop){const $=te.label;return Object.assign(te,J),te.label=$,!0}return!1})}),a.value=M.sort((J,te)=>J.sortIndex-te.sortIndex),u(),H&&T(!1)};r?Z(!0):Jt(d,e.initDelay,5,50,!1,Z)},g=()=>{const H=r??[];a.value=H.map(G=>({...G})),u(),T()},T=(H=!0)=>{H&&i.save(e.groupProp,a.value);const G=a.value.map(Z=>({...Z}));n("change",G)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),b=t.ref(!1),y=H=>{const G=[];a.value.forEach(ee=>{H&&G.push(ee.prop),ee.visible=H}),p.value=!1,b.value=!1,a.value.length===G.length?p.value=!0:G.length>0&&(b.value=!0),f.value=G,T()},v=()=>{g()},f=t.ref([]),B=H=>{a.value.forEach(Z=>{const ee=H.indexOf(Z.prop)!==-1;Z.visible=ee}),p.value=!1,b.value=!1;const G=a.value.length;H.length===G?p.value=!0:H.length>0&&(b.value=!0),T()},V=()=>{m()};t.onMounted(()=>{m(!0)});const L={currentRow:null,index:null},R=H=>H?H.dataset&&H.dataset.role==="row"?H:H.tagName.toLowerCase()!=="body"?(H=H.parentElement,R(H)):null:null,I=H=>{const G=H.currentTarget;G&&G.dataset&&(L.index=G.dataset.index)},E=H=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},w=H=>{const G=H.currentTarget;H.relatedTarget;const Z=R(G);Z&&(H.preventDefault(),L.currentRow&&L.currentRow!==Z&&L.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),L.currentRow=Z)},C=H=>{H.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},O=H=>{const G=H.currentTarget,Z=R(G);if(!Z)return;H.preventDefault();const ee=Number(L.index),M=Number(Z.dataset.index);if(ee!==M){if(ee<M){const J=a.value[ee];a.value.splice(ee,1),a.value.splice(M,0,J)}else{const J=a.value[ee];a.value.splice(ee,1),a.value.splice(M+1,0,J)}u(),T()}},S=H=>{const G=a.value[H];a.value.splice(H,1),a.value.splice(0,0,G),u(),T()},k=H=>{const G=a.value[H];a.value.splice(H,1),a.value.push(G),u(),T()};o({refresh:()=>{r=null,m(!1)}});const D=new Map;let F=null;function N(H){const G=document.createRange();return G.setStart(H,0),G.setEnd(H,H.childNodes.length),G.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:p,isIndeterminate:b,handleCheckAllChange:y,handleReset:v,checkedValue:f,handleCheckChange:B,onShow:V,onDragStart:I,onDragEnd:E,onDragOver:w,onDragLeave:C,onDrop:O,checkboxLabelStyle:h,toTop:S,toBottom:k,onMouseOverForOverflowText:(H,G,Z)=>{const ee=H.currentTarget;if(ee){const M=Math.floor(ee.offsetWidth);if(Math.floor(N(ee))>M){let te=D.get(G);if(te){if(te===F)return;Te.hide(te)}te=Te.show(ee,Z,{type:"text",placement:"top",closeOnClick:!1}),D.set(G,te),F=te}}},onMouseLeaveForOverflowText:(H,G)=>{const Z=D.get(G);Z&&(Te.hide(Z),Z===F&&(F=null))},onMouseOverForTip:(H,G)=>{const Z=H.currentTarget;Z&&(F&&Te.hide(F),F=Te.show(Z,G,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:H=>{F&&(Te.hide(F),F=null)}}}}),Pd={class:"fox-group-setting"},Id={class:"fox-group-setting__header"},Od={class:"fox-group-setting__body"},Bd={class:"fox-group-setting__body-list","data-role":"container"},Ad=["data-index","draggable"],Fd=["onMouseover","onMouseleave"],Rd={class:"tools-item"};function Md(e,n,l,o,r,a){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),c=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),m=t.resolveComponent("FoxCheckboxGroup"),g=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(g,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Pd,[t.createElementVNode("div",Id,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=T=>e.isCheckAll=T),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Od,[t.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=T=>e.checkedValue=T),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,T=>(t.openBlock(),t.createElementBlock("div",{key:T.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":T.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:T.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,T.prop,T.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,T.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(T.label),45,Fd)]),_:2},1032,["label"]),t.createElementVNode("div",Rd,[t.createVNode(d,{onClick:h=>e.toTop(T.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.toTopText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toBottom(T.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.toBottomText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Ad))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Eo=ce(Vd,[["render",Md]]),Ld=Symbol.for("InnerPageScopeKey"),qd=Symbol.for("PageWrapperKey");function zd(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(l,o){t.provide(Ld,!0);const r={};t.provide(qd,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=t.ref(!0),s=u=>{i.value=u};return()=>{const c={...o.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},d={};if(typeof o.slots.default=="function"){const m=o.slots.default();d.default=()=>m}return t.h(x.ElDialog,c,d)}}}}const{componentName:kh,create:jd,scope:$h}=oe("dialog-item"),No=jd(zd());function _d(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(l,{slots:o}){const r=e,a=t.computed(()=>({[r]:!0})),i=t.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=t.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),u=t.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=t.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(o.mark)d=o.mark()[0];else{const p={class:i.value,style:s.value};d=t.h(l.icon??"div",p)}const m={class:u.value,style:c.value},g=o.default?o.default():[],T=t.h("div",m,g),h={class:a.value};return l.textPosition==="right"?t.h("div",h,[d,T]):t.h("div",h,[T,d])}}}}const{componentName:Hd,create:Kd,scope:Dh}=oe("indicator"),Vo=Kd(_d(Hd));function Wd(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const o=l.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}const Yd={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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 Ud(e,n){return{props:{...Yd},setup(l,o){const r=t.ref(!0),a=t.ref(null),i=t.computed(()=>{const d={[`${e}`]:!0,"is-truncated":l.truncated};return typeof l.class=="string"&&l.class.length>0&&l.class.split(/\s+/).forEach(g=>{d[g]=!0}),l.type&&(d[`${e}--${l.type}`]=!0),l.size&&(d[`${e}--${l.size}`]=!0),d}),s=d=>{if(d&&le(l.showOverflowTooltip)){const m=d.clientWidth;Wd(d,g=>{r.value=g<=m})}};let u=null;t.onMounted(()=>{if(!le(l.showOverflowTooltip))return;const d=a.value;s(d),d&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(d)}),u.observe(d))}),t.onUnmounted(()=>{u?.disconnect()});const c=(d,m)=>{let g=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const T=l.highlightFilter;if(d.indexOf(T)!==-1){const p=d.replace(new RegExp(T,"g"),`<span>${T}</span>`);m.innerHTML=p,m.class["is-highlight"]=!0,g=t.h(l.tag,m)}}else if(typeof l.highlightFilter=="function"){const T=l.highlightFilter(d);T&&(m.innerHTML=T,m.class["is-highlight"]=!0,g=t.h(l.tag,m))}return g};return()=>{const d={},m={...o.attrs,class:{...i.value},ref:a};let g=null;if(le(l.numberFormat)&&typeof o.slots.default=="function"){const b=o.slots.default();if(Array.isArray(b)&&b.length===1){const y=b[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const v=ie(l.digits),f=ie(l.decimalLength),B=le(l.autoPadding);let V=`${b[0].children}`,L=V.split("").reverse().join("");L=Yt(L,f,B,v,l.separator),V=L.split("").reverse().join(""),l.highlightFilter!==void 0&&(g=c(V,m)),g||(m.innerHTML=V,g=t.h(l.tag,m))}}}else{if(l.highlightFilter!==void 0&&typeof o.slots.default=="function"){const b=o.slots.default();if(Array.isArray(b)&&b.length===1){const y=b[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const v=`${b[0].children}`;g=c(v,m),g||(m.innerHTML=v,g=t.h(l.tag,m))}}}g||(g=t.h(l.tag,m,{default:o.slots.default}))}if(!l.mark&&!l.icon&&!o.slots.mark)d.default=()=>g;else{let b=null;if(l.icon){const f={[`${e}__mark-wrap`]:!0};l.type&&(f[`${e}__mark-wrap--${l.type}`]=!0);const B={},V=l.color;V&&(B.color=V);const L={class:f,style:B};b=t.h("div",L,t.h(l.icon))}else if(o.slots.mark){const f={[`${e}__mark-wrap`]:!0};l.type&&(f[`${e}__mark-wrap--${l.type}`]=!0);const B={},V=l.color;V&&(B.color=V);const L={class:f,style:B};b=t.h("div",L,{default:o.slots.mark})}else{const f={[`${e}__mark`]:!0};l.type&&(f[`${e}__mark--${l.type??"default"}`]=!0);const B={},V=l.color;V&&(B["background-color"]=V);const L={class:f,style:B};b=t.h("div",L)}const y={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}},v=t.h("view",y,[b,g]);d.default=()=>v}const h={disabled:r.value};return d.content=o.slots.default,t.h(x.ElTooltip,h,d)}}}}const{componentName:Gd,create:Xd,scope:Eh}=oe("text"),Po=Xd(Ud(Gd)),{create:Zd}=oe("toast"),Jd=Zd({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let l=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{o.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,T=>{T&&i()});const u=t.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const T=se(e.iconSize);return t.h(e.icon,{width:T,height:T,color:e.iconColor})},d=t.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]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Qd={key:1,class:"fox-toast-title"},em=["innerHTML"];function tm(e,n,l,o,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Qd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,em)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Io=ce(Jd,[["render",tm]]),nm={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:ve.ArrowUp}};function om(e,n,l){return{props:{...nm},emits:["click","update:modelValue"],setup(o,{emit:r}){const a=t.computed(()=>{const m={[`${e}`]:!0};return o.disabled?m[`${e}__disabled`]=!0:m[`${e}__${o.type}`]=!0,m}),i=ae(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),u=t.computed(()=>({[`${e}__text`]:!0})),c=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(s.value){const p={class:u.value},b=t.h("span",p,[s.value]);m.push(b)}const g={class:c.value},T=l(o.icon,g);return T&&m.push(T),t.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:lm,create:rm,scope:am}=oe("more-button"),im=(e,n)=>(e=e??ve.ArrowUp,t.h(x.ElIcon,n,{default:()=>[t.h(e)]})),Oo=rm(om(lm,am,im)),{componentName:sm,create:um,scope:Nh}=oe("tour"),cm=um({components:{Close:ve.Close,ElPopover:x.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const l=sm,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=t.ref({}),a=t.computed(()=>`${l}`),i=t.computed(()=>{const{offset:h,maskWidth:p,maskHeight:b}=e,{width:y,height:v,left:f,top:B}=r.value,V=e.steps[o.active].offset??h,L=[f+y/2,B+v/2],R=Number(p||y),I=Number(b||v);return{width:`${R+ +V.left+V.right}px`,height:`${I+V.top+V.bottom}px`,top:`${L[1]-I/2-+V.top}px`,left:`${L[0]-R/2-+V.left}px`}}),s=h=>{h=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,d()}),n("change",o.active)},u=h=>h.popoverWidth??e.width,c=h=>h.location??e.location,d=()=>{const h=document.querySelector(`${e.steps[o.active].target}`),p=Ze(h);r.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},m=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&m()},T=(h,p=0)=>{h&&d(),e.steps,o.active=p,o.showTour=h,o.showPopup=h};return t.onMounted(()=>{T(e.modelValue,e.current)}),t.watch(()=>e.modelValue,h=>{T(h)}),{...t.toRefs(o),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:m,handleClickMask:g}}}),fm={key:0,class:"fox-tour__content"},dm={key:0,class:"fox-tour__content-top"},mm={class:"fox-tour__content-inner"},hm={class:"fox-tour__content-bottom"},pm={class:"fox-tour__content-bottom-init"},gm={class:"fox-tour__content-bottom-operate"},ym={key:1,class:"fox-tour__content fox-tour__content-tile"},vm={class:"fox-tour__content-inner"};function bm(e,n,l,o,r,a){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),u=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",fm,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",mm,t.toDisplayString(c.content),1),t.createElementVNode("div",hm,[t.createElementVNode("div",pm,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",gm,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",ym,[t.createElementVNode("div",vm,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Bo=ce(cm,[["render",bm]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Ue=e=>e==null,Il=10;function wm(e,n){return e>n&&e>Il?"horizontal":n>e&&n>Il?"vertical":""}function Sm(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=wm(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:l,state:e}}function xm(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class Cm{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=xm()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=Sm(),o=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),o(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{o(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ol(e,n){return new Cm(e,n)}var Bl;const jn=typeof window<"u";jn&&((Bl=window?.navigator)!=null&&Bl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let lt=[];const Al=e=>{const n=e;n.key==="Escape"&&lt.forEach(l=>l(n))},Tm=e=>{t.onMounted(()=>{lt.length===0&&document.addEventListener("keydown",Al),jn&&lt.push(e)}),t.onBeforeUnmount(()=>{lt=lt.filter(n=>n!==e),lt.length===0&&jn&&document.removeEventListener("keydown",Al)})},$n="fox-focus-trap.focus-after-trapped",Dn="fox-focus-trap.focus-after-released",km="fox-focus-trap.focusout-prevented",Fl={cancelable:!0,bubbles:!1},$m={cancelable:!0,bubbles:!1},Rl="foxFocusAfterTrapped",Ml="foxFocusAfterReleased",Dm=Symbol("foxFocusTrap"),Ao=t.ref(),mn=t.ref(0),Fo=t.ref(0);let Rt=0;const Wr=e=>{const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)n.push(l.currentNode);return n},Em=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ll=(e,n)=>{for(const l of e)if(!Em(l,n))return l},Nm=e=>{const n=Wr(e),l=Ll(n,e),o=Ll(n.reverse(),e);return[l,o]},Vm=e=>e instanceof HTMLInputElement&&"select"in e,Ke=(e,n)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&Vm(e)&&n&&e.select()}};function ql(e,n){const l=[...e],o=e.indexOf(n);return o!==-1&&l.splice(o,1),l}const Pm=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=ql(e,o),e.unshift(o)},remove:o=>{e=ql(e,o),e[0]?.resume?.()}}},Im=(e,n=!1)=>{const l=document.activeElement;for(const o of e)if(Ke(o,n),document.activeElement!==l)return},zl=Pm(),Om=()=>mn.value>Fo.value,Mt=()=>{Ao.value="pointer",mn.value=window.performance.now()},jl=()=>{Ao.value="keyboard",mn.value=window.performance.now()},Bm=()=>(t.onMounted(()=>{Rt===0&&(document.addEventListener("mousedown",Mt),document.addEventListener("touchstart",Mt),document.addEventListener("keydown",jl)),Rt++}),t.onBeforeUnmount(()=>{Rt--,Rt<=0&&(document.removeEventListener("mousedown",Mt),document.removeEventListener("touchstart",Mt),document.removeEventListener("keydown",jl))}),{focusReason:Ao,lastUserFocusTimestamp:mn,lastAutomatedFocusTimestamp:Fo}),Lt=e=>new CustomEvent(km,{...$m,detail:e}),{componentName:Vh,create:Am,scope:Ph}=oe("focus-trap"),Fm={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"}},Rm=Am({props:Fm,emits:[Rl,Ml,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:l}){const o=t.ref();let r,a;const{focusReason:i}=Bm();Tm(p=>{le(e.trapped)&&!s.paused&&l("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=p=>{if(!e.loop&&!le(e.trapped)||s.paused)return;const{key:b,altKey:y,ctrlKey:v,metaKey:f,currentTarget:B,shiftKey:V}=p,{loop:L}=e,R=b==="Tab"&&!y&&!v&&!f,I=document.activeElement;if(R&&I){const E=B,[w,C]=Nm(E);if(w&&C){if(!V&&I===C){const S=Lt({focusReason:i.value});l("focusout-prevented",S),S.defaultPrevented||(p.preventDefault(),L&&Ke(w,!0))}else if(V&&[w,E].includes(I)){const S=Lt({focusReason:i.value});l("focusout-prevented",S),S.defaultPrevented||(p.preventDefault(),L&&Ke(C,!0))}}else if(I===E){const S=Lt({focusReason:i.value});l("focusout-prevented",S),S.defaultPrevented||p.preventDefault()}}};t.provide(Dm,{focusTrapRef:o,onKeydown:u}),t.watch(()=>e.focusTrapEl,p=>{p&&(o.value=p)},{immediate:!0}),t.watch([o],([p],[b])=>{p&&(p.addEventListener("keydown",u),p.addEventListener("focusin",m),p.addEventListener("focusout",g)),b&&(b.removeEventListener("keydown",u),b.removeEventListener("focusin",m),b.removeEventListener("focusout",g))});const c=p=>{l(Rl,p)},d=p=>l(Ml,p),m=p=>{const b=t.unref(o);if(!b)return;const y=p.target,v=p.relatedTarget,f=y&&b.contains(y);le(e.trapped)||v&&b.contains(v)||(r=v),f&&l("focusin",p),!s.paused&&le(e.trapped)&&(f?a=y:Ke(a,!0))},g=p=>{const b=t.unref(o);if(!(s.paused||!b))if(!e.escape&&le(e.trapped)){const y=p.relatedTarget;!Kn(y)&&!b.contains(y)&&setTimeout(()=>{if(!s.paused&&le(e.trapped)){const v=Lt({focusReason:i.value});l("focusout-prevented",v),v.defaultPrevented||Ke(a,!0)}},0)}else{const y=p.target;y&&b.contains(y)||l("focusout",p)}};async function T(){await t.nextTick();const p=t.unref(o);if(p){zl.push(s);const b=p.contains(document.activeElement)?r:document.activeElement;if(r=b,!p.contains(b)){const v=new Event($n,Fl);p.addEventListener($n,c),p.dispatchEvent(v),v.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Gl(f)||(Ke(f),document.activeElement!==f&&(f="first")),f==="first"&&Im(Wr(p),!0),(document.activeElement===b||f==="container")&&Ke(p)})}}}function h(){const p=t.unref(o);if(p){p.removeEventListener($n,c);const b=new CustomEvent(Dn,{...Fl,detail:{focusReason:i.value}});p.addEventListener(Dn,d),p.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!Om())&&Ke(r??document.body,!0),p.removeEventListener(Dn,c),zl.remove(s)}}return t.onMounted(()=>{le(e.trapped)&&T(),t.watch(()=>e.trapped,p=>{le(p)?T():h()})}),t.onBeforeUnmount(()=>{le(e.trapped)&&h()}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:Mm,create:Lm,scope:Ih}=oe("floating-window"),qm=Symbol.for("InnerPageScopeKey"),zm=Symbol.for("PageWrapperKey"),jm={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}},_m=Lm({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Rm},props:{...jm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const l=Mm,o=t.ref(e.modelValue),r=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,P=>{o.value=P});const a=t.computed(()=>o.value===!1?!1:!I.value),i=t.ref(e.left),s=t.ref(e.top),u=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const P=["fox-floating-window"];return e.customClass&&P.push(e.customClass),P}),m=t.computed(()=>{const P={};return Ue(i.value)?P.left="auto":P.left=De(i.value),Ue(s.value)?P.top="auto":P.top=De(s.value),Ue(u.value)?P.right="auto":P.right=De(u.value),Ue(c.value)?P.bottom="auto":P.bottom=De(c.value),Ue(e.zIndex)||(P["z-index"]=De(e.zIndex)),Ue(L.value)||(P.height=L.value),Ue(R.value)||(P.width=R.value),P}),g=t.computed(()=>e.closeIcon??ve.Close),T=t.computed(()=>e.collapseIcon??ve.ArrowUp),h=t.computed(()=>e.collapseText??""),p=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ve.ArrowRight:e.expandIcon??ve.ArrowLeft),b=t.computed(()=>e.expandText??e.title??"展开"),y=t.computed(()=>({[`${l}__collapse-text`]:!0})),v=t.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),f=t.ref(),B=t.ref(null),V=t.ref(null),L=t.computed(()=>De(e.height)||""),R=t.computed(()=>De(e.width)||""),I=t.ref(le(e.collapse)),E=(P,Y=!0)=>{I.value!==P&&(I.value=P,P?G():Z(),n("update:collapse",P),P&&typeof O.onHide=="function"?O.onHide():!P&&typeof O.onShow=="function"&&O.onShow())};t.watch(()=>e.collapse,P=>{E(P)});const w=()=>{C()},C=P=>{P=P??!I.value,E(P)};t.provide(qm,!0);const O={setCollapse:E,setFixedNavVisible:P=>{z.value=P}};t.provide(zm,O);const S=()=>{typeof O.beforeClose=="function"?O.beforeClose(()=>{o.value=!1}):o.value=!1},k=t.ref(null),D=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const P=["fox-floating-window__fixednav"];return e.expandClass&&P.push(e.expandClass),e.collapsePosition==="left"?P.push("is-left"):e.collapsePosition==="right"&&P.push("is-right"),P}),N=t.ref(""),_=t.computed(()=>{const P={};return N.value?P.top=N.value:e.collapseTop&&(P.top=e.collapseTop),P}),A=t.ref(I.value),z=t.computed({set:P=>{A.value=P},get:()=>o.value===!1?!1:A.value});let U=null;const H=()=>{typeof U=="function"&&(U(),U=null)},G=()=>{k.value&&k.value.classList.add("slide-in"),z.value=!0,U=()=>{k.value&&k.value.classList.remove("slide-in")}},Z=()=>{k.value&&k.value.classList.add("slide-out"),U=()=>{k.value&&k.value.classList.remove("slide-out"),z.value=!1}},ee=()=>{i.value=null,s.value=null,u.value=null,c.value=null},M={x:0,y:0},$=Ol(P=>{if(!f.value)return;const Y=f.value;if(ee(),e.origin==="left-top")i.value=Y.offsetLeft,s.value=Y.offsetTop,M.x=i.value,M.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=Y.offsetLeft,c.value=Q-(Y.offsetTop+Y.offsetHeight),M.x=i.value,M.y=c.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,ue=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(Y.offsetLeft+Y.offsetWidth),c.value=ue-(Y.offsetTop+Y.offsetHeight),M.x=u.value,M.y=c.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(Y.offsetLeft+Y.offsetWidth),s.value=Y.offsetTop,M.x=u.value,M.y=s.value}},P=>{if(!f.value)return;const Y=f.value;ee(),e.origin==="left-top"?(i.value=M.x+P.x,s.value=M.y+P.y,Y.style.left=De(i.value),Y.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=M.x+P.x,c.value=M.y-P.y,Y.style.left=De(i.value),Y.style.bottom=De(c.value)):e.origin==="right-bottom"?(u.value=M.x-P.x,c.value=M.y-P.y,Y.style.right=De(u.value),Y.style.bottom=De(c.value)):(u.value=M.x-P.x,s.value=M.y+P.y,Y.style.right=De(u.value),Y.style.top=De(s.value))}),j={x:0,y:0},X=Ol(P=>{k.value&&(j.x=k.value.offsetLeft,j.y=k.value.offsetTop)},P=>{if(!k.value)return;const Y=j.y+P.y;N.value=`${Y}px`}),K=()=>{if(f.value){const P=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");V.value=P}};return t.onMounted(()=>{if(e.draggable&&f.value){const P=[];B.value&&P.push(B.value),e.footerDraggable&&(K(),V.value&&P.push(V.value)),$.open(P)}e.collapse===!0&&E(e.collapse,!1),k.value&&X.open(k.value)}),t.onBeforeUnmount(()=>{e.draggable&&B.value&&$.close(),k.value&&X.close()}),{classes:d,styles:m,isShow:a,closeIcon:g,onClose:S,dialogRef:f,headerRef:B,onClickToggle:w,collapseIcon:T,collapseText:h,collapseTextClasses:y,collapseIconClasses:v,expandIcon:p,expandText:b,isShowFixedNav:z,fixedNavRef:k,fixedNavClasses:F,fixedNavStyles:_,onAnimationEnd:H,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),Hm={ref:"headerRef",class:"fox-floating-window__header"},Km={class:"fox-floating-window__title"},Wm={class:"fox-floating-window__tools"},Ym={class:"fox-floating-window__body"},Um={class:"fox-floating-window__fixednav__text"};function Gm(e,n,l,o,r,a){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Hm,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Km,t.toDisplayString(e.title),1),t.createElementVNode("div",Wm,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Ym,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Um,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ro=ce(_m,[["render",Gm]]);function Xm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return dr(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:Oh,create:Zm,scope:Bh}=oe("domain-provider"),Mo=Zm(Xm()),Jm={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 Qm(e,n){return{inheritAttrs:!1,props:Jm,setup(l,{slots:o}){if(et&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(g,T)=>{if(d===null){a.set(g,{visible:null,callback:T});return}r.has(g)&&d.unobserve(g),r.set(g,{visible:null,callback:T}),d.observe(g)},s=g=>{if(d===null){a.delete(g);return}r.has(g)&&(r.delete(g),d.unobserve(g))};let u=l.initialVisibleObserverSize;li({acquire:()=>{const g=u>0;return u--,g},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let d=null;const m=(g,T,h)=>{d=new IntersectionObserver(p=>{for(let b of p){let y=!1;b.intersectionRatio>0&&(y=!0);const v=r.get(b.target);if(v)try{if(l.loadPolicy==="lazy"&&!y&&v.visible!==null)return;v.visible=y,v.callback(y)}catch(f){console.error(f)}}},{root:g,rootMargin:T,threshold:h}),a.forEach((p,b)=>{r.set(b,p),d?.observe(b)}),a.clear()};t.watch([()=>l.root,()=>l.disabled],([g,T])=>{if(T||!g||d)return;let h=null;typeof g=="string"?h=document.querySelector(g):h=g,h&&m(h,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:Ah,create:eh,scope:Fh}=oe("rolling-provider"),Lo=eh(Qm()),th=[Un,Zn,Jn,Qn,eo,pe,to,no,It,oo,io,co,mo,ho,po,go,yo,vo,bo,wo,So,dn,xo,Co,To,ko,$o,Do,Eo,No,Nt,sn,Vo,Po,Io,Ct,qe,ct,un,cn,Et,Dt,fn,Oo,Bo,$t,Ro,Mo,Lo],nh=new Ba(th,[Ra],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>x.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>x.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>x.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>x.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>x.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>x.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>x.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>x.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>x.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>x.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>x.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>x.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>x.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>x.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>x.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>x.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>x.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>x.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>x.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>x.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>x.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>x.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>x.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>x.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>x.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>x.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>x.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>x.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>x.ElContainer});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>x.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>x.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>x.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>x.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>x.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>x.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>x.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>x.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>x.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>x.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>x.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>x.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>x.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>x.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>x.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>x.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>x.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>x.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>x.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>x.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>x.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>x.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>x.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>x.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>x.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>x.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>x.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>x.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>x.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>x.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>x.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>x.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>x.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>x.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>x.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>x.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>x.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>x.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>x.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>x.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>x.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>x.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>x.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>x.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>x.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>x.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>x.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>x.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>x.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>x.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>x.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>x.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>x.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>x.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>x.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>x.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>x.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>x.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>x.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>x.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>x.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>x.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>x.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>x.ElUpload});exports.AutocompleteItem=bo;exports.Broadcast=Wn;exports.BroadcastKey=ye;exports.CalendarItem=mo;exports.CalendarPicker=cn;exports.CascaderItem=vo;exports.CascaderPicker=fn;exports.CheckboxItem=To;exports.Content=Qn;exports.DataItemsKey=ot;exports.DateItem=co;exports.DatePicker=un;exports.DateUtils=ne;exports.DialogItem=No;exports.Domain=Qt;exports.DomainKey=Ve;exports.DomainProvider=Mo;exports.ExtTabPane=Et;exports.ExtTabs=Dt;exports.FloatingWindow=Ro;exports.FooterBar=Jn;exports.FoxAutocompleteItem=bo;exports.FoxCalendarItem=mo;exports.FoxCalendarPicker=cn;exports.FoxCascaderItem=vo;exports.FoxCascaderPicker=fn;exports.FoxCheckboxItem=To;exports.FoxContent=Qn;exports.FoxDateItem=co;exports.FoxDatePicker=un;exports.FoxDialogItem=No;exports.FoxDomainProvider=Mo;exports.FoxExtTabPane=Et;exports.FoxExtTabs=Dt;exports.FoxFloatingWindow=Ro;exports.FoxFooterBar=Jn;exports.FoxGroup=eo;exports.FoxGroupSetting=Eo;exports.FoxHeaderBar=Zn;exports.FoxHintText=It;exports.FoxIndicator=Vo;exports.FoxInputItem=oo;exports.FoxInputNumberItem=yo;exports.FoxItem=pe;exports.FoxMapping=Nt;exports.FoxMoneyItem=go;exports.FoxMoreButton=Oo;exports.FoxOverlay=Ct;exports.FoxPage=Un;exports.FoxPicker=ct;exports.FoxPopup=qe;exports.FoxPrice=sn;exports.FoxRadioItem=Co;exports.FoxRateItem=ko;exports.FoxRollingProvider=Lo;exports.FoxRowItem=no;exports.FoxSelectItem=io;exports.FoxSlotItem=to;exports.FoxSwitchItem=$o;exports.FoxTableItem=xo;exports.FoxTableMappingColumn=wo;exports.FoxTableRadioColumn=So;exports.FoxTableSetting=dn;exports.FoxText=Po;exports.FoxTimeItem=ho;exports.FoxTimeSelectItem=po;exports.FoxToast=Io;exports.FoxTour=Bo;exports.FoxTreeSelectItem=Do;exports.Foxsticky=$t;exports.Group=eo;exports.GroupSetting=Eo;exports.HeaderBar=Zn;exports.HintText=It;exports.Indicator=Vo;exports.InputItem=oo;exports.InputNumberItem=yo;exports.Item=pe;exports.Mapping=Nt;exports.MoneyItem=go;exports.MoreButton=Oo;exports.Overlay=Ct;exports.Page=Un;exports.Picker=ct;exports.Popup=qe;exports.Price=sn;exports.PriorityPolicy=Ye;exports.RadioItem=Co;exports.RateItem=ko;exports.RollingProvider=Lo;exports.RowItem=no;exports.SelectItem=io;exports.SlotItem=to;exports.SwitchItem=$o;exports.TableItem=xo;exports.TableMappingColumn=wo;exports.TableRadioColumn=So;exports.TableSetting=dn;exports.Text=Po;exports.TimeItem=ho;exports.TimeSelectItem=po;exports.Toast=Io;exports.Tour=Bo;exports.TreeSelectItem=Do;exports.UniqueID=kr;exports.ValidateSchema=cr;exports.ValidateSchemaKey=Re;exports.cancelRaf=Qr;exports.clearNonNumber=fa;exports.clone=An;exports.compareTo=In;exports.createBroadcast=Xt;exports.createValidateSchema=Zt;exports.debounce=wt;exports.debounceRef=Ta;exports.decimalLength=lr;exports.default=nh;exports.defineBroadcast=pa;exports.defineConfigDomain=dr;exports.defineDataItem=hr;exports.defineDomain=Yn;exports.defineItem=be;exports.definePageState=pr;exports.deleteGlobalValidator=ba;exports.disabledProperty=$e;exports.divide=Hn;exports.excludeProps=Se;exports.extend=Je;exports.floatData=ha;exports.getGlobalValidateCheckEvents=ir;exports.getGlobalValidateResetEvents=ur;exports.getPageContentAreaHeight=jt;exports.getPageContentAreaWidth=_t;exports.getPageFooterAreaHeight=xt;exports.getPageHeaderAreaHeight=St;exports.getRootDomain=rt;exports.hasSymbol=Zl;exports.includeProps=Pt;exports.indexOf=da;exports.installRules=mr;exports.integerLength=or;exports.isArray=ta;exports.isArrayLike=Ql;exports.isBrowser=et;exports.isDate=Me;exports.isESModule=aa;exports.isEmptyString=ge;exports.isEqual=Le;exports.isFunction=On;exports.isHidden=Gt;exports.isInnerPage=Da;exports.isMap=na;exports.isNil=Kn;exports.isNumberString=nr;exports.isObject=Ae;exports.isPlainObject=Bn;exports.isPromise=ra;exports.isRegExp=tr;exports.isSet=oa;exports.isString=Gl;exports.isSubPage=Ea;exports.isSymbol=la;exports.isWindow=Jl;exports.lastIndexOf=ma;exports.makeArray=ca;exports.merge=er;exports.multiply=Kl;exports.negate=Wl;exports.nextTick=sa;exports.numberFormat=Yt;exports.objectToString=Xl;exports.once=ka;exports.property=Ne;exports.raf=Ul;exports.readonlyProperty=ke;exports.setGlobalValidateCheckEvents=wa;exports.setGlobalValidateHandler=ya;exports.setGlobalValidateMessages=xa;exports.setGlobalValidateResetEvents=Sa;exports.setGlobalValidator=va;exports.sticky=$t;exports.throttle=fr;exports.toBoolean=le;exports.toNumber=ie;exports.toPadding=Oe;exports.toPx=se;exports.toPxDesc=we;exports.toTypeString=Ut;exports.toValue=ae;exports.tryTimes=Jt;exports.typeOf=st;exports.unNumberFormat=Yl;exports.updatePageState=Fn;exports.useBroadcast=vt;exports.useDomain=ze;exports.useExpose=me;exports.useInnerSize=Xn;exports.usePageState=en;exports.usePosition=Cr;exports.useRect=Ze;exports.useSize=Gn;exports.useTouch=ao;exports.valueLength=Pe;
5
+ */function Yt(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ie(e),n=Ie(n),[e,n]=ll(Ie(e),Ie(n)),o==1&&(l==1?e=Dn(e):n=Dn(n));let a=ya(e,n);return o?o==2?"-"+Ie(a):e.length<a.length?Ie(a.substring(1)):"-"+Ie(Dn(a)):Ie(a)}function Dn(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return ya(n,r)}function Ie(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function ll(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function ya(e,n){[e,n]=ll(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var xe=(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))(xe||{});function Nt(e,n=0,o=xe.HALF_EVEN){if(o===xe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let u=r.substr(0,r.length-n);return e=u+"."+r.substr(r.length-n)+i,u=Nt(e,0,o),(l?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return r.length,io(a[1],r,l,o)?(l?"-":"")+Nn(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let s=a[1].substring(n);return s&&io(s,i,l,o)&&(i=Nn(i),i.length>n)?(l?"-":"")+Nn(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function io(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===xe.DOWN||!o&&l===xe.FLOOR||o&&l===xe.CEILING)return!1;if(l===xe.UP||o&&l===xe.FLOOR||!o&&l===xe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case xe.HALF_DOWN:return!1;case xe.HALF_UP:return!0;case xe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Nn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function qn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Tt(e),n=Tt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=Tt(e.replace(".","")),n=Tt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,s=0,u=[],d=i-1,h="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let N=n.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(b+=parseInt(e[u[N]--])*parseInt(n[N]));b+=s,s=Math.floor(b/10),h=b%10+h,d--}return h=Tt(Pr(h,r)),o==1&&(h="-"+h),h}function Pr(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Tt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function zn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ie(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ie(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ie(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let h=e.length-d+a;e=Ie(e.substring(0,h)+"."+e.substring(h))}else a==d&&(e=Ie(e.replace(".","")))}let r=0,i=n.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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),r=d,s="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(u)>=parseInt(n);)u=Yt(u,"-"+n),d++;s+=d,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,u=u+"0")}return(l==1?"-":"")+Ie(Nt(s,o-2))}function jn(e,n){return e=e.toString(),n=n.toString(),n=Hn(n),Yt(e,n)}function Hn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function so(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),uo(e),uo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=jn(e,qn(n,Nt(zn(e,n),0,xe.FLOOR)));return o+l}function uo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function co(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=ll(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=xe;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ie(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ie(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<o?(o=s,s=0):s-=o,i=n.substring(s,s+o)+(s<r-o&&s>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return ce.getPrettyValue(this.value,n,o)}static round(n,o=0,l=xe.HALF_EVEN){if(n=ce.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Nt(n,o,l)}round(n=0,o=xe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Nt(this.value,n,o))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.CEILING)}static add(n,o){return n=ce.validate(n),o=ce.validate(o),Yt(n,o)}add(n){return new ce(Yt(this.value,n.getValue()))}static subtract(n,o){return n=ce.validate(n),o=ce.validate(o),jn(n,o)}subtract(n){return new ce(jn(this.value,n.getValue()))}static multiply(n,o){return n=ce.validate(n),o=ce.validate(o),qn(n,o)}multiply(n){return new ce(qn(this.value,n.getValue()))}static divide(n,o,l){return n=ce.validate(n),o=ce.validate(o),zn(n,o,l)}divide(n,o){return new ce(zn(this.value,n.getValue(),o))}static modulus(n,o){return n=ce.validate(n),o=ce.validate(o),so(n,o)}modulus(n){return new ce(so(this.value,n.getValue()))}static compareTo(n,o){return n=ce.validate(n),o=ce.validate(o),co(n,o)}compareTo(n){return co(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Hn(n)}negate(){return new ce(Hn(this.value))}}function ba(e,n){return ce.multiply(`${e}`,`${n}`)}function ol(e,n,o=8){return ce.divide(`${e}`,`${n}`,o)}function Kn(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function wa(e){return ce.negate(e)}function Qt(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,u="",d=r.indexOf(".");d!=-1&&(s=r.substring(0,d),u=r.substring(d+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let h;if(l>0){let c="",b=s.split("").reverse();for(let N=0;N<b.length;N++)c+=b[N]+((N+1)%l==0&&N+1!=b.length?a:"");u.length==0?h=`${i}${c.split("").reverse().join("")}`:h=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?h=`${i}${s}`:h=`${i}${s}.${u}`;return h}function xa(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const al=nl,Or=Array.isArray,Ar=e=>en(e)==="[object Map]",Fr=e=>en(e)==="[object Set]",et=e=>e instanceof Date,Yn=e=>typeof e=="function",Sa=e=>typeof e=="string",Br=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",Wt=e=>Me(e)&&Yn(e.then)&&Yn(e.catch),Ta=Object.prototype.toString,en=e=>Ta.call(e),Wn=e=>en(e)==="[object Object]",Ca=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Mr(e){return e.__esModule||Ca&&e[Symbol.toStringTag]==="Module"}const Rr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let s=n[i],u=r[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=it(a,d,u)}else u!==void 0&&(n[i]=u)}}return n}function Un(e,n,o=!1){if(!o)it(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wn(i))continue;r=Un(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const l=Object.getOwnPropertySymbols(n);for(let a of l){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wn(i))continue;r=Un(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const En=Rr?Promise.resolve():null;function Lr(e,...n){En!==null?n&&n.length>0?En.then(()=>{e(n)}):En.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}const _r={"[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 Ut(e){let o=Object.prototype.toString.call(e);return e==null?String(e):_r[o]||"object"}function $a(e){return e&&typeof e=="object"&&"setInterval"in e}function tn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function ka(e){let n=!!e&&"length"in e&&e.length,o=Ut(e);return o==="function"||$a(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Da(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function qr(e,n=[]){let o=n;return e!=null&&(ka(Object(e))?Da(o,typeof e=="string"?[e]:e):o.push(e)),o}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Ut(e),l=Ut(n);if(o!==l)return!1;if(o==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],d=n[s];if(!Le(u,d))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],i=n[a];if(!Le(r,i))return!1}return!0}return!1}const ut=typeof window<"u";function rl(e){return e==null}function Na(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ea(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 Va(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Ia(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function fo(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function zr(e,n=!0,o=!0){n?e=fo(e,".",/\./g):e=e.replace(/\./g,""),o?e=fo(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function jr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Le(e,o))return!0}):n.indexOf(e)}function Hr(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Le(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function He(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Ft(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ce(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}const Kr=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e},De=Symbol.for("BroadcastKey");class il{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):Na(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...l]);u!=null&&r.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...l]);u!=null&&r.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},o,...l]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,o,...l){const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,o){this.callbacks.set(n,o)}}function nn(e,n,o,l){const a=new il(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function Yr(e,n,o){const l=o;if(l[De])return l[De];const a=t.inject(De,null),r=new il(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[De]=r,t.provide(De,r),t.onUnmounted(()=>{r.destroy(),l[De]=void 0}),r}function Dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const at=e=>e.default??e;class Wr{error(n,o){const l=o,a=Dt(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=Dt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=Dt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=Dt(l),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Pa=new Wr;function Ur(e){Pa=e}function Gr(e,n){at(ot).setValidator(e,n)}function Xr(e){at(ot).deleteValidator(e)}let Oa=["blur","clear"];function Zr(e){Oa=e}function Aa(){return Oa}let Fa=["focus","change"];function Jr(e){Fa=e}function Ba(){return Fa}function Qr(e){at(ot).messages(e)}function Ct(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function Lt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const We=Symbol("ValidateSchemaKey");class Ma{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const o=Lt(Ct(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),l.push(u);continue}let s=this.getValidator(r);if(s!==null){let u={type:r,validator:s};l.push(u)}}this.attrRules=Lt(l);const a=Ct(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const a=Pa;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?at(ot).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?at(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return at(ot).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Ct(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Lt(n):this.rules=Lt([n]);const l=Ct(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Ct(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${l}`]:o},r=this.getValue(),i={[`${l}`]:r},s=at(ot),u=new s(a),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function ln(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(r){return r[a]}}}return new Ma(n,o,e)}const ho=Symbol.for("EventEmitterKey");class ei{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let a=l.findIndex(r=>r===o);a!==-1&&l.splice(a,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(a=>{try{Reflect.apply(a,null,[n,...o])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Et(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Ra(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function ti(e,n){const o=Et((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function ni(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function on(e,n,o,l=0,a=!0,r){let i=n,s=0;if(a){const d=e();if(s++,d){typeof r=="function"&&r(!0);return}if(s>o){typeof r=="function"&&r(!1);return}}const u=()=>{const d=e();if(s++,d){typeof r=="function"&&r(!0);return}if(s>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(u,i)};setTimeout(u,i)}const Re=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class an{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const a=n[l];o.length>0&&o.indexOf(a)!==-1||(this._props[l]=a)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const a=l._props[n];o.push(a)}l=l._parent}return o}}const li=new an;function mt(){return li}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Re]??t.inject(Re,null):t.inject(Re,null)}const Vn=Symbol("OriginalDateKey");function sl(e,n,o=[],l){const a=t.getCurrentInstance(),r=a?.proxy;let i=t.inject(Re,null);i===null&&(i=mt());const s=e||n.prop||n.name,u=new an(s);u.parent=i;const d=m=>{r[Vn]||b(m),u.set("modelValue",m)},h=()=>u.getForSelf("modelValue")??null,c=()=>r[Vn]??null,b=m=>{const v={};it(!0,v,t.toRaw(m)),r[Vn]=v};t.isReactive(n)||typeof n=="function"?t.watch(n,m=>{u.merge(m,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&b(n.modelValue),r[Re]=u,t.provide(Re,u);let N=null,p=null;if(a!==null){const m=t.inject(De,null);N=nn(r,m,s,l),u.broadcast=N,r[De]=N,t.provide(De,N),r.broadcast=(w,g,...f)=>Reflect.apply(N.emit,N,[w,g,...f]);const v=t.inject(We,null);p=ln(r,v,{componentName:""}),u.validateSchema=p,r[We]=p,t.provide(We,p),r[dt]=new Map,r.validate=(w=!0)=>{const g=[];let f=null;const B={deep:!1};if(w===!0)f={name:"*"};else if(Array.isArray(w)&&w.length>0){const q=w;f={name:_=>_?q.indexOf(_)!==-1:!1}}else if(w!=null&&typeof w=="object"){const q=w;if(Object.assign(B,q),Array.isArray(q.include)&&q.include.length>0){const _=q.include;f={name:z=>z?_.indexOf(z)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const _=q.exclude;f={name:z=>z?_.indexOf(z)===-1:!1}}else f={name:"*"}}if(f){const q=N?.emitToChildren(f,"validate",B);q&&Reflect.apply([].push,g,q)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(q=>{let _=[];return q.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(_=[..._,...z.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(w,g=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(w).forEach(q=>{let _=String(q);const A=qa(u,_,{componentName:"",fieldName:_,pureDataValidate:!0},N,p);r[dt].set(_,A);const E=w[_];E&&A.validateSchema.setRule(E)});return}if(g){const B=Reflect.ownKeys(w),q={name:_=>B.includes(_)};N?.emitToChildren(q,"setNameValidateRules",w,!1)}},r.clearValidate=(w=!0)=>{let g=null;if(w===!0)g={name:"*"};else if(Array.isArray(w)&&w.length>0){const f=w;g={name:B=>B?f.indexOf(B)!==-1:!1}}else if(w!=null&&typeof w=="object"){const f=w;if(Array.isArray(f.include)&&f.include.length>0){const B=f.include;g={name:q=>q?B.indexOf(q)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const B=f.exclude;g={name:q=>q?B.indexOf(q)===-1:!1}}else g={name:"*"}}g&&N?.emitToChildren(g,"clearValidate",!1)},r.resetFields=w=>{const g=h();if(!g)return;const f={};if(it(!0,f,c()??{}),Array.isArray(w))w.forEach(B=>{g[B]=f[B]});else if(w&&Array.isArray(w.include))(w.include??[]).forEach(q=>{g[q]=f[q]});else if(w&&Array.isArray(w.exclude)){let B=w.exclude??[];Reflect.ownKeys(f).forEach(q=>{B.includes(q)||(g[q]=f[q])})}else Object.assign(g,f);r.clearValidate(w)},r.setModelValue=(w,g)=>{!g||g===s?d(w):N?.emitToChildren({name:g},"setModelValue",w)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{u.destroy(),r[Re]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),N!==null&&(N.destroy(),r[De]=void 0),p!==null&&(p.destroy(),r[We]=void 0)}),u}function La(e,n,o=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Re,null);r===null&&(r=mt());const i=e||n.prop||n.name,s=new an(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,u=>{s.merge(u,o)},{immediate:!0}):s.merge(n,o),a[Re]=s,t.provide(Re,s),t.onUnmounted(()=>{s.destroy(),a[Re]=void 0}),s}function _a(e,n,o){const a=Ue(e)?.get("rules");if(!a)return;let r=a[o];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Se(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(De,null),s=nn(a,i,r,o);a[De]=s,t.provide(De,s),a.broadcast=(p,m,...v)=>Reflect.apply(s.emit,s,[p,m,...v]);const u=t.inject(We,null);e.fieldName=e.fieldName??r;const d=ln(a,u,e);a[We]=d,t.provide(We,d),_a(a,d,r),a.validate=(p=null)=>{const m=[];let v=!1,w=!1;if(Array.isArray(p)&&p.indexOf(r)!==-1)w=!0,v=!0;else if(p&&typeof p=="object"){const g=p,f=g.ignoreDisabled??!0,B=g.ignoreReadonly??!0,q=g.ignoreHidden??!0;f===!0&&e.disabled===!0||B===!0&&e.readonly===!0||q===!0&&tn(a.$el)?w=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),w=!0),v=g.deep??!1}else typeof p=="boolean"&&(v=p),w=!0;if(w){const g=d?.validate();m.push(g)}if(v){let g=null;const f={deep:!1};if(p===!0)g={name:"*"};else if(Array.isArray(p)&&p.length>0){const B=p;g={name:q=>q?B.indexOf(q)!==-1:!1}}else if(p!=null&&typeof p=="object"){const B=p;if(Object.assign(f,B),Array.isArray(B.include)&&B.include.length>0){const q=B.include;g={name:_=>_?q.indexOf(_)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;g={name:_=>_?q.indexOf(_)===-1:!1}}else g={name:"*"}}if(g){const B=s.emitToChildren(g,"validate",f);Reflect.apply([].push,m,B)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let f=[];return g.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(f=[...f,...B.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=p=>d?.setRule(p),a.setNameValidateRules=(p,m=!1)=>{const v=p[r];if(v&&d?.setRule(v),m){const w={name:g=>Reflect.ownKeys(p).includes(g)};s.emitToChildren(w,"setNameValidateRules",p,!1)}},a.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&d?.clear();let m=null;if(p===!0)m={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;m={name:w=>w?v.indexOf(w)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;m={name:g=>g?w.indexOf(g)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;m={name:g=>g?w.indexOf(g)===-1:!1}}else m={name:"*"}}m&&s.emitToChildren(m,"clearValidate",!1)};const h=new ei(a);a[ho]=h;const c=Et((p="validate")=>{p==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Aa()).forEach(p=>{h.on(p,m=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ba()).forEach(p=>{h.on(p,m=>{c("reset")})}),t.onUnmounted(()=>{s.destroy(),a[De]=void 0,d.destroy(),a[We]=void 0,h.destroy(),a[ho]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(p,...m)=>{Reflect.apply(h.emit,h,[p,...m])},onEvent:(p,m)=>{Reflect.apply(h.on,h,[m])},offEvent:(p,m)=>{Reflect.apply(h.off,h,[m])}}}function qa(e,n,o,l,a){const r={},i=n??"",s={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};o.fieldName=i,o.validateHandler={getValue(h){return s.getValue()}};const u=ln({},a,o);r.validate=(h=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,N=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)N=!0,b=!0;else if(h&&typeof h=="object"){const p=h;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),N=!0,b=p.deep??!1}else typeof h=="boolean"&&(b=h),N=!0;if(N){const p=u?.validate();c.push(p)}if(b){let p=null;const m={deep:!1};if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const v=h;p={name:w=>w?v.indexOf(w)!==-1:!1}}else if(h!=null&&typeof h=="object"){const v=h;if(Object.assign(m,v),Array.isArray(v.include)&&v.include.length>0){const w=v.include;p={name:g=>g?w.indexOf(g)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;p={name:g=>g?w.indexOf(g)===-1:!1}}else p={name:"*"}}if(p){const v=d.emitToChildren(p,"validate",m);Reflect.apply([].push,c,v)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(p=>{let m=[];return p.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(m=[...m,...v.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>u?.setRule(h),r.setNameValidateRules=h=>{const c=h[i];c&&u?.setRule(c)};const d=nn(null,l,i,r);return{broadcast:d,validateSchema:u}}const Pe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,n)}px`:"";function he(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(ut){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const tt="PageStateKey";function ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Gn(e,n,o={},l=!0,a=-1,r=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=ze(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=ze(o.footerPadding??n.footerPadding),e.contentPadding=ze(o.contentPadding??n.contentPadding),l){const u=o.height??n.height;u?e.height=he(u,r):e.height=he(r)-he(i,r)-he(s,r),e.width=he(o.width??n.width??0,a)}}function za(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=he(a.top),l.safeAreaBottom=he(a.bottom),l.safeAreaLeft=he(a.left),l.safeAreaRight=he(a.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Gn(l,r,n,!0,i,s,u,d);const h=t.reactive(l),c=e.getForParent(tt);c&&(l.height=Gt(e,c),l.width=Xt(e,c),t.watch([()=>Gt(e,c),()=>Xt(e,c)],([N,p])=>{h.height=N,h.width=p}));const b=!c;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,p,m=-1,v=-1,w=0,g=0])=>{Gn(h,p,n,b,m,v,w,g)}),e.set(tt,h),h}function rn(e){return e.get(tt)}function Vt(e,n){if(n=n??e.get(tt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function It(e,n){if(n=n??e.get(tt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Gt(e,n){if(n=n??e.get(tt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Vt(e,n),l=It(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Xt(e,n){return n=n??e.get(tt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function oi(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function ai(e){return!!e.getForParent(tt)}var Be=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Be||{});function In(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,o=1,l){const a=Ue();return a==null?e:o===0?t.computed(()=>{const r=a.getAll(n);for(let s=r.length-1;s>=0;s--){const u=r[s];if(In(u,l))return u}const i=e.value;return In(i,l)?i:null}):t.computed(()=>{const r=e.value;return In(r,l)?r:a?.get(n)})}function Ee(e){return Ne(e,"readonly",0,function(o){return ue(o)})}function Ve(e){return Ne(e,"disabled",0,function(o){return ue(o)})}function fe(e,n="modelValue",o){const l=t.toRef(e,n);let a=l.value;typeof o=="function"&&(a=o(l.value));const r=t.ref(a);return t.watch(l,i=>{if(typeof o=="function"){const s=o(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const ja=new Map,Zt=new Map;let Xn=null;function ri(e){Xn=e}function Ha(e,n,o){if(o){let l=Zt.get(o);l||(l=new Map,Zt.set(o,l)),l.set(e,n)}else ja.set(e,n)}function Oe(e,n,o){!o&&Xn&&(o=Xn(e)??void 0);let l=null;if(o){let a=Zt.get(o);a&&(l=a.get(n))}return l||(l=ja.get(n)),l}function ii(e,n){for(let o in e){const l=e[o];Ha(o,l,n)}}function si(e){Zt.delete(e)}function ui(){return{top:0,left:0,bottom:0,right:0}}function ci(e=0,n=0){if(ut){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:l-he(e,l)-he(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class fi{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=mt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ra(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in o)l.indexOf(r)===-1&&a.set(r,o[r])}initPageLayout(n,o){const l=n.headerBarHeight??0,a=n.footerBarHeight??0,r=it({},ui(),n.safeAreaInset),i=ci(l,a),s=it({},i.pageLayout,n.pageLayout);o=o??mt(),o.set("safeAreaInset",r),o.set("headerBarHeight",l),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){ri(n)}setAPI(n,o,l){Ha(n,o,l)}getAPI(n,o,l){return Oe(n,o,l)}batchSetAPI(n,o){ii(n,o)}clearScopeAPI(n){si(n)}getRootDomain(){return mt()}}const di=[O.ElAffix,O.ElAlert,O.ElAutocomplete,O.ElAutoResizer,O.ElAvatar,O.ElBacktop,O.ElBadge,O.ElBreadcrumb,O.ElBreadcrumbItem,O.ElButton,O.ElButtonGroup,O.ElCalendar,O.ElCard,O.ElCarousel,O.ElCarouselItem,O.ElCascader,O.ElCascaderPanel,O.ElCheckTag,O.ElCheckbox,O.ElCheckboxButton,O.ElCheckboxGroup,O.ElCol,O.ElCollapse,O.ElCollapseItem,O.ElCollapseTransition,O.ElColorPicker,O.ElConfigProvider,O.ElContainer,O.ElAside,O.ElFooter,O.ElHeader,O.ElMain,O.ElDatePicker,O.ElDescriptions,O.ElDescriptionsItem,O.ElDialog,O.ElDivider,O.ElDrawer,O.ElDropdown,O.ElDropdownItem,O.ElDropdownMenu,O.ElEmpty,O.ElForm,O.ElFormItem,O.ElIcon,O.ElImage,O.ElImageViewer,O.ElInput,O.ElInputNumber,O.ElLink,O.ElMenu,O.ElSubMenu,O.ElMenuItem,O.ElMenuItemGroup,O.ElPageHeader,O.ElPagination,O.ElPopconfirm,O.ElPopover,O.ElPopper,O.ElProgress,O.ElRadio,O.ElRadioButton,O.ElRadioGroup,O.ElRate,O.ElResult,O.ElRow,O.ElScrollbar,O.ElSelect,O.ElOption,O.ElOptionGroup,O.ElSelectV2,O.ElSkeleton,O.ElSkeletonItem,O.ElSlider,O.ElSpace,O.ElSteps,O.ElStep,O.ElSwitch,O.ElTable,O.ElTableColumn,O.ElTableV2,O.ElTabs,O.ElTabPane,O.ElTag,O.ElTimePicker,O.ElTimeSelect,O.ElTimeline,O.ElTimelineItem,O.ElTooltip,O.ElTransfer,O.ElTree,O.ElTreeSelect,O.ElTreeV2,O.ElUpload],hi=[O.ElInfiniteScroll,O.ElLoading,O.ElMessage,O.ElMessageBox,O.ElNotification,O.ElPopoverDirective],mi=e=>{di.forEach(n=>{let o=n.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,n)):e.use(n)}),hi.forEach(n=>{e.use(n)})};function ie(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function pe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const be={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}},$e={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}},Ka={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}},Ya={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}},Wa=[];for(const e in Ya)Wa.push(e);const gi=Symbol.for("InnerPageScopeKey"),pi={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}},vi=(e,n)=>({inheritAttrs:!0,props:{...be,...Ka,...pi},setup(o,{slots:l}){const a=sl(o.name,o),r=t.inject(gi,!1);if(a){const h=za(a,o);pe({getPageContentHeight:()=>Gt(a,h),getPageContentWidth:()=>Xt(a,h),getPageHeaderHeight:()=>Vt(a,h),getPageFooterHeight:()=>It(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),u=t.getCurrentInstance(),d=(h,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(h,!0,c)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,c],[b,N])=>{if(h&&b){const p=t.toRaw(b),m=t.toRaw(h),v=m?Reflect.ownKeys(m):[];(p?Reflect.ownKeys(p):[]).forEach(g=>{v.includes(g)||(m[g]=[])}),d(m)}if(c&&N){const p=t.toRaw(N),m=t.toRaw(c),v=m?Reflect.ownKeys(m):[];(p?Reflect.ownKeys(p):[]).forEach(g=>{v.includes(g)||(m[g]=[])}),d(m,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);d(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:s.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:yi,create:bi,scope:zg}=ie("page"),ul=bi(vi(yi));function sn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function cl(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}const wi=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=Ue(),s=i?rn(i):null;s&&(s.headerMounted=!0);const u=e,d=t.computed(()=>({[u]:!0,[`${u}--border`]:a.border,[`${u}--fixed`]:a.fixed,[`${u}--safe-area-inset-top`]:a.safeAreaInsetTop})),h=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${a.align}`]:!0})),c=a.height!==null&&a.height!==void 0?he(a.height):null,b=t.computed(()=>{const T={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const C=ze(a.padding??s.headerPadding);return Object.assign(T,C),c&&(s.headerHeight=c),s.headerHeight>0&&(T.height=s.headerHeight),T.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,T.safeAreaTop>0&&(T.top=T.safeAreaTop+(C.top??0),T.height&&T.height>0&&(T.height=T.height+T.safeAreaTop)),T}if(c&&(T.height=c),a.padding){const C=ze(a.padding);Object.assign(T,C)}return T}),N=t.ref(null),p=()=>{if(s&&N.value&&!tn(N.value)){if(!l){const T=sn(N.value);s.headerAllHeight=T.height}return s.headerMounted=!0,!0}return!1};let m=null;t.onMounted(()=>{s&&(on(p,50,5,50,!0),window.ResizeObserver&&N.value&&(m=new window.ResizeObserver(()=>{p()}),m.observe(N.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,m&&(m.disconnect(),m=null))});const v=t.computed(()=>{const T={};return b.value.height!==null&&b.value.height!==void 0&&(T.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(T.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(T.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(T.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(T.paddingBottom=`${b.value.bottom}px`),T}),w=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function g(){r.emit("back")}function f(){r.emit("click-title")}function B(){r.emit("click-right")}function q(){r.emit("click-right-text")}const _=()=>{if(!a.leftShow)return null;const T=[];if(r.slots.left)T.push(r.slots.left());else{if(r.slots.leftIcon){const C=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);T.push(C)}else if(a.leftIcon){const C=t.h("view",{class:"left-icon",onClick:g},[t.h(a.leftIcon)]);T.push(C)}if(a.leftText){const C=t.h("view",{class:"left-text",onClick:g},[a.leftText]);T.push(C)}}return T.length===0?null:t.h("view",{class:"fox-header-bar__left"},T)},z=()=>{if(!a.rightShow)return null;const T=[];if(r.slots.right)T.push(r.slots.right());else{if(a.rightText){const C=t.h("view",{class:"right-text",onClick:q},[a.rightText]);T.push(C)}if(r.slots.rightIcon){const C=t.h("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);T.push(C)}else if(a.rightIcon){const C=t.h("view",{class:"right-icon",onClick:B},[t.h(a.rightIcon)]);T.push(C)}}return T.length===0?null:t.h("view",{class:"fox-header-bar__right"},T)},A=()=>{if(!a.titleShow)return null;const T=[],C=r.slots.default?r.slots.default():null;if(C)T.push(C);else{if(a.title){const M=t.h("view",{class:"title-text"},[a.title]);T.push(M)}if(r.slots.titleIcon){const M=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);T.push(M)}else if(a.titleIcon){const M=t.h("view",{class:"title-icon",onClick:f},[t.h(a.titleIcon)]);T.push(M)}}return T.length===0?null:t.h("view",{class:"fox-header-bar__title"},T)},E=()=>{const T=[],C=r.slots.bottom?r.slots.bottom():null;return C&&T.push(C),T.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},T)};return()=>{if(!w.value)return null;const T=[];if(r.slots.all)T.push(r.slots.all());else{const M=[],k=_();k&&M.push(k);const V=A();V&&M.push(V);const D=z();if(D&&M.push(D),M.length>0){const L=t.h("view",{class:h.value},M);T.push(L)}const W=E();W&&T.push(W)}if(T.length===0)return null;const C={class:d.value,style:v.value,ref:N};return t.h("view",C,T)}}}),{componentName:xi,create:Si,scope:Ti}=ie("header-bar"),fl=Si(wi(xi,Ti,Te.ArrowLeft));function Ci(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=Ue(),i=r?rn(r):null,s=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${l.align}`]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed,[`${p}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),u=l.height!==null&&l.height!==void 0?he(l.height):null,d=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const m=ze(l.padding??i.footerPadding);return Object.assign(p,m),u&&(i.footerHeight=u),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(m.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(u&&(p.height=u),l.padding){const m=ze(l.padding);Object.assign(p,m)}return p}),h=t.ref(null),c=()=>{if(i&&h.value&&!tn(h.value)){if(!o){const p=sn(h.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(on(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const N=t.computed(()=>{const p={};return d.value.height!==null&&d.value.height!==void 0&&(p.height=Pe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(p.paddingTop=Pe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(p.paddingLeft=Pe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(p.paddingRight=Pe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(p.paddingBottom=Pe(d.value.bottom)),p});return()=>{const p=a.slots.default?a.slots.default():[],m={ref:h,class:s.value,style:N.value};return t.h("view",m,p)}}}}const{componentName:$i,create:ki,scope:jg}=ie("footer-bar"),dl=ki(Ci($i));function Di(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ue(),a=t.computed(()=>({[e]:!0})),r=l?rn(l):null,i=t.computed(()=>{const d={};if(l&&r){if(o.padding){const N=ze(o.padding);Object.assign(r.contentPadding,N)}const h=Vt(l,r),c=It(l,r);let b="";if(r.contentHeight?b=`${r.contentHeight}`:b=`${r.height}px`,r.contentPadding,d.height=b,r.contentPadding.top||h>0){const N=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+N}px`}if(r.contentPadding.bottom||c>0){const N=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(o.padding){const h=ze(o.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),s=t.ref(null),u=()=>{if(r&&s.value){const d=cl(s.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{u()}),l&&r&&t.watch([()=>Vt(l),()=>It(l)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:Ni,create:Ei,scope:Hg}=ie("content"),Vi=Ei(Di(Ni));function Ii(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ke=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},hl=ke(Vi,[["render",Ii]]),vt="GroupStateKey",Ua=Symbol.for("GroupScopeKey");function un(){return t.inject(Ua,!1)}function cn(e=!0){t.provide(Ua,e)}function Pi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];rl(a)||(e[l]=a)})}function Oi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Pi(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(vt,r),r}function Pn(e,n,o=-1,l=-1,a=!1,r,i,s){const u=e.get(vt);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=he(r),c=he(i);s||(s=d.type??"grid");const b=()=>{const N=n===""||n===-1,p=he(n);let m=de(o);const v=he(l);if(!N){let f=(p-(m-1)*v)/m;for(;c!==-1&&f>c;)m++,f=(p-(m-1)*v)/m;for(;h!==-1&&m>1&&f<h;)m--,f=(p-(m-1)*v)/m}let w=!1;const g=u.layout;g.value.width=n,g.value.column!==m&&(g.value.column=m,w=!0),g.value.gutter!==v&&(g.value.gutter=v,w=!0),g.value.type!==s&&(g.value.type=s,w=!0),w&&t.triggerRef(g)};if(a)b();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&b()},50)}}function fn(e,n=!1){let o;return n?o=e.getForParent(vt):o=e.get(vt),o.layout}function dn(e,n=!1){let o;return n?o=e.getForParent(vt):o=e.get(vt),o.order}function mo(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function hn(e,n,o=1,l=0,a){const r={};let i=0;a?i=he(a):i=mo(n.column,o),i>0&&(r.width=`${i}%`);const s=mo(n.column,l);s>0&&(r["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(r["padding-left"]=`${u}px`,r["padding-right"]=`${u}px`),r}function mn(e,n,o=1,l=0){if(o==="stretch"){const u=e.index%n.column,d=u+(n.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let a=de(o);if(a===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const r=de(l)%n.column;let i=(e.index+r)%n.column,s=i+a;return s>n.column?(i=0,s=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Ga=Symbol("RollingStateKey");function Ai(e){t.provide(Ga,e)}function Fi(){return t.inject(Ga,null)}function Zn(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function Bi(e){let n=Zn(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Zn(o),document.body.removeChild(o)}return n}function Mi(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const Ri={...be,...Ka,...Ya};function Li(e,n,o){return{props:Ri,emits:["update:collapse"],setup(l,a){const r=sl(l.name,l,Wa),i=Oi(r,{type:l.type}),s=un();cn(!0);const u=l.rollingDisplay?Fi():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?u&&!u.disabled:!1),c=t.computed(()=>s&&r?fn(r,!0).value:null),b=t.getCurrentInstance(),N=(S,F=!1)=>{const G=b?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(S,!0,F)};t.watch([()=>l.rules,()=>l.pureDataRules],([S,F],[G,te])=>{if(S&&G){const x=t.toRaw(G),K=t.toRaw(S),Q=K?Reflect.ownKeys(K):[];(x?Reflect.ownKeys(x):[]).forEach(ee=>{Q.includes(ee)||(K[ee]=[])}),N(K)}if(F&&te){const x=t.toRaw(te),K=t.toRaw(F),Q=K?Reflect.ownKeys(K):[];(x?Reflect.ownKeys(x):[]).forEach(ee=>{Q.includes(ee)||(K[ee]=[])}),N(K,!0)}},{deep:!0});const p=e,m=t.computed(()=>{const S={};S.height=D.value;const F=s?dn(r,!0):null;if(c.value&&F){if(c.value.type==="grid"){const G=mn(F,c.value,l.span,l.offset);Object.assign(S,G)}else if(c.value.type==="flow"){const G=hn(F,c.value,l.span,l.offset,l.width);Object.assign(S,G)}}else if(l.width){const G=Pe(l.width);S.width=G}return S}),v=t.computed(()=>{const S=i.layout.value.type;return S==="grid"||S==="flow"?{[`${p}--${S}`]:!0,[`${p}--${S}-justify-${l.justify}`]:!0,[`${p}--${S}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${S}`]:!0,[`${p}--gutter`]:!0}}),w=t.computed(()=>{if(i.layout.value.type==="grid"){let F="";if(l.columnWidth)F=`repeat(auto-fill, ${l.columnWidth})`;else{const G=Mi(A.value,i.layout.value.column,i.layout.value.gutter);F=`repeat(${i.layout.value.column}, ${G})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":F}}}),g=t.toRef(l,"gutter"),f=t.toRef(l,"column"),B=t.computed(()=>s||h.value?!0:ue(l.isWrap)),q=[],_=S=>{q.push(S)},z=()=>{let S=q.length;q.splice(0,S)},A=t.ref(-1),E=S=>{const F=cl(S).width;F>0&&F!==A.value&&(A.value=F)};Pn(r,A.value,f.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([A,f,g],([S,F,G])=>{i.order.index=0,Pn(r,S,F,G,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=t.computed(()=>W.value?l.expandText??"":l.collapseText??""),C=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!W.value,"is-collapse":W.value})),k=t.ref(),V=t.ref(),D=t.computed(()=>L.value||Pe(l.height)||""),W=t.ref(!1),L=t.ref(""),J=t.ref(!1);let X=-1;const Z=(S,F=!0)=>{const G=k.value;if(G&&W.value!==S){if(X=X===-1?Bi(G):X,J.value=!0,F)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",S||(L.value="",J.value=!1)},S){let te=0;l.collapseHeight?te=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(te=V.value.offsetHeight),L.value=`${X}px`,t.nextTick(()=>{L.value=`${te}px`})}else L.value=`${X}px`;else if(S){let te=0;l.collapseHeight?te=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(te=V.value.offsetHeight),L.value=`${te}px`}else J.value=!1,L.value=`${X}px`;W.value=S,a.emit("update:collapse",S)}};t.watch(()=>l.collapse,S=>{Z(S)});const ne=()=>{R()},R=S=>{S=S??!W.value,Z(S)};pe({toggleCollapse:R,doLayout:()=>{q[0]&&(E(q[0]),Pn(r,A.value,f.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let H=null,j=!0;const P=S=>{if(l.rules){const F=t.toRaw(l.rules);N(F)}if(l.pureDataRules){const F=t.toRaw(l.pureDataRules);N(F,!0)}if(ut&&(S&&Z(ue(l.collapse),!1),l.autoLayout&&Array.isArray(q)&&q.length>0)){const F=q[0];E(F),window.ResizeObserver&&(H=new window.ResizeObserver(()=>{E(F)}),H.observe(F))}},U=()=>{H?.disconnect(),H=null},Y=!h.value||u?.acquire();Y&&(d.value=h.value?!0:null),t.onMounted(()=>{if(Y&&(P(j),j=!1),h.value&&u){let S=null,F=u.initialHeight;u.observe(k.value,G=>{if(G!==d.value)if(G)d.value=!0,W.value||(L.value=""),S=setTimeout(()=>{S=null,d.value!==!1&&(P(j),j=!1)},100);else{if(S!==null&&clearTimeout(S),d.value=!1,!W.value)if(j)L.value=u.initialHeight;else{let te=Zn(k.value);te<=0?L.value=F:(L.value=`${te}px`,F=L.value)}j||U()}})}}),t.onUnmounted(()=>{H?.disconnect(),u&&u.unobserve(k.value)});const $=(S="right")=>{const F=[];if(T.value){const x={class:C.value},K=t.h("span",x,[T.value]);F.push(K)}const G={class:M.value},te=o(l.collapseIcon,G);return te&&F.push(te),F.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${S}`]:!0},onClick:ne},F):null},y=(S,F,G,te)=>{const x={...v.value};return F===0&&(x[`${p}__first`]=!0),G>=te-1&&(x[`${p}__last`]=!0),t.h("div",{ref:_,key:`${F}`,class:x,style:w.value},S)};return()=>{if(h.value&&d.value!==!0){const x=l.tag||"div";return t.h(x,{ref:k,prop:l.name,class:{[`${p}`]:!0,"is-collapse":J.value},style:m.value},[])}i.order.index=0;const S=[];let F=0;if(a.slots.header){const x={key:`${F++}`,ref:V,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},K=t.h("div",x,[a.slots.header()]);S.push(K)}else{const x=[],K=l.collapsePosition==="left";if(K&&l.showCollapse){const Q=$("left");Q&&x.push(Q)}if(l.title||a.slots.title){if(l.showMark){const Q={class:{[`${p}__header-mark`]:!0}};l.markColor&&(Q.style={background:l.markColor});const le=t.h("div",Q);x.push(le)}if(a.slots.title){const Q=t.h("div",{class:{[`${p}__header-title`]:!0}},[a.slots.title()]);x.push(Q)}else if(l.title){const Q=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);x.push(Q)}}if(a.slots.toolbar&&x.push(a.slots.toolbar()),!K&&l.showCollapse){const Q=$("right");Q&&x.push(Q)}if(x.length>0){const Q={key:`${F++}`,ref:V,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},le=t.h("div",Q,x);S.push(le)}}z();const G=a.slots.default?a.slots.default():[],te=i.layout.value.type;if(te==="grid"){const x=y(G,F++,0,G.length);S.push(x)}else if(te==="flow"){const x=y(G,F++,0,G.length);S.push(x)}else for(let x=0;x<G.length;x++){const K=G[x],Q=y([K],F++,x,G.length);S.push(Q)}if(B.value){const x=l.tag||"div";return t.h(x,{ref:k,prop:l.name,class:{[`${p}`]:!0,"is-collapse":J.value},style:m.value},[S])}else return S}}}}const{componentName:_i,create:qi,scope:zi}=ie("group"),ji=(e,n)=>(e=e??Te.ArrowUp,t.h(O.ElIcon,n,{default:()=>[t.h(e)]})),ml=qi(Li(_i,zi,ji));function Hi(e){return e===window}const Ki=/matrix\((.+)\)/,Xa=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Hi(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,s=0,u=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const h=Ki.exec(d);if(h){let b=h[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=r,l-=i,o+=s,l+=u,{x:o,y:l}};class Yi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Wi{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r||(r=new Yi,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r&&(r.remove(o),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const go=new Wi,Za={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ui,create:Gi}=ie("price"),Xi=Gi({props:{...Za},setup(e){const n=t.computed(()=>({[Ui]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>He(e.price)==0?"":Qt(e.price,e.decimalLength,!0,de(e.digits),e.separator)),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:o,intText:a,decimalText:r}}}),Zi=["innerHTML"],Ji=["innerHTML"];function Qi(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Zi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ji)):t.createCommentVNode("",!0)],2)}const gn=ke(Xi,[["render",Qi]]),{componentName:On,create:es}=ie("hint-text"),ts=es({components:{Price:gn},props:{...Za,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),i=t.ref(e.placement),s=t.ref(!1),u=t.ref(null),d=(C,M,k,V,D,W)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,X=C.split("-");let Z=[];X[0]==="top"?Z=["top","bottom","right","left"]:X[0]==="bottom"?Z=["bottom","top","right","left"]:X[0]==="left"?Z=["left","top","bottom","right"]:X[0]==="right"&&(Z=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},R=[];for(let I=0;I<Z.length;I++){const H=Z[I];if(R[0]=H,X[1]&&(R[1]=X[1]),H==="top"){const j=M.y-W-e.arrowSize-e.offset;if(j>=0){ne.top=j;let P=0;X[1]==="start"?P=M.x:X[1]==="end"?P=M.x+k-D:P=M.x+k/2-D/2;const U=L-P-D;U<0?(P+=U,c.value=-U):c.value=0,ne.left=P<0?0:P;break}}else if(H==="bottom"){const j=M.y+V+e.arrowSize+e.offset;if(j+W<=J){ne.top=j;let P=0;X[1]==="start"?P=M.x:X[1]==="end"?P=M.x+k-D:P=M.x+k/2-D/2;const U=L-P-D;U<0?(P+=U,c.value=-U):c.value=0,ne.left=P<0?0:P;break}}else if(H==="left"){const j=M.x-D-e.arrowSize-e.offset;if(j>=0){ne.left=j;let P=0;X[1]==="start"?P=M.y:X[1]==="end"?P=M.y+V-W:P=M.y+V/2-W/2,ne.top=P<0?0:P;break}}else if(H==="right"){const j=M.x+k+e.arrowSize+e.offset;if(j+D<=L){ne.left=j;let P=0;X[1]==="start"?P=M.y:X[1]==="end"?P=M.y+V-W:P=M.y+V/2-W/2,ne.top=P<0?0:P;break}}}return{bestPlacement:R.join("-"),bestInsetRect:ne}},h=(C,M,k=10)=>{if(!ut||M===!1||!C)return;l.value=Xa(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const V=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:W,bestInsetRect:L}=d(e.placement,l.value,a.value,r.value,D,V);i.value=W,o.value=L,s.value=!0},c=t.ref(0),b=Et(()=>{h(e.message,e.visible)},10),N=t.ref(e.visible);t.watch(()=>e.visible,C=>{N.value=C});const p=t.computed(()=>N.value&&m.value),m=t.ref(!0),v=Et(C=>{const M=C[0];M&&(m.value=M.isIntersecting)},10),w=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([C,M])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),go.watch(e.reference,b),w.observe(e.reference)}),t.onBeforeMount(()=>{go.unwatch(e.reference,b),w.unobserve(e.reference),w.disconnect()});const g=t.computed(()=>{const C={[On]:!0};return i.value.startsWith("top")?C["is-top"]=!0:i.value.startsWith("right")?C["is-right"]=!0:i.value.startsWith("bottom")?C["is-bottom"]=!0:i.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),f=t.computed(()=>{const C={};o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${a.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${M}px`,s.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),B=t.computed(()=>{const C=[`${On}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),q=t.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),_=t.computed(()=>({[`${On}__arrow`]:!0})),z=t.computed(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,i.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="top-start"?(C.left=`${e.arrowOffset+c.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-c.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(C.left=`${e.arrowOffset+c.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-c.value}px`,C.top=`-${e.arrowSize}px`):i.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),A=t.computed(()=>p.value&&e.closeOnClick),E=t.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:p,tipRef:u,classes:g,styles:f,textClasses:B,textStyles:q,arrowClasses:_,arrowStyles:z,overlayShow:A,overlayStyle:E,onClickOverlay:()=>{N.value=!1,n.emit("update:visible",!1)}}}}),ns=["innerHTML"];function ls(e,n,o,l,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ns))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Bt=ke(ts,[["render",ls]]);class Ja{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Jn={},os=new Ja,gt=new Map,Jt=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of gt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}gt.clear()}},as=e=>{e.unmount=Jt;const n=document.getElementById(e.id);if(n){const o=gt.get(e.id);o?e={...Jn,...o,...e}:e={...Jn,...e},e.transition=!1;const l=t.createVNode(Bt,e);return t.render(l,n),e.id}},rs=e=>{e.unmount=Jt;let n=e.id??`hinttext_${os.get()}`;e={...Jn,...e},e.id=n,gt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Bt,e);return t.render(l,o),document.body.appendChild(o),n},is=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){is(n);const a=o.id;return a&&gt.has(a)?as({...o,message:n,reference:e}):(l&&Jt(),rs({...o,message:n,reference:e}))},hide(e){Jt(e)},install(e){e.config.globalProperties.$hintText=Fe}};function ss(e,n,o,l=!1){return{inheritAttrs:!0,props:{...be,...$e},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Se({componentName:e,validate:!1},i);const s=Ue(),u=un();cn(!1);const d=t.computed(()=>u&&s?fn(s,!1).value:null),h=e,c=t.ref(null),b=t.computed(()=>{const x={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:ue(a.hasBorder)};if(x[a.errorMarkClass]=!!W.value,x[a.warnMarkClass]=!!V.value,x[a.infoMarkClass]=!!M.value,typeof c.value=="function"){const K=c.value(i);x[K]=!0}else if(typeof c.value=="string"){const K=c.value;x[K]=!0}return x}),N=t.ref(null),p=t.computed(()=>{const x={};if(a.width)a.width!=="auto"&&(x.width=Pe(a.width));else{const K=u&&s?dn(s,!1):null;if(d.value&&K){if(d.value.type==="grid"){const Q=mn(K,d.value,a.span,a.offset);Object.assign(x,Q)}else if(d.value.type==="flow"){const Q=hn(K,d.value,a.span,a.offset,a.width);Object.assign(x,Q)}}}if(typeof N.value=="function"){const K=N.value(i);K&&Object.assign(x,K)}else if(N.value&&typeof N.value=="object"){const K=N.value;Object.assign(x,K)}return x}),m=t.ref(null),v=t.computed({get:()=>m.value??ue(a.isRequired),set:x=>{m.value=x}}),w=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",g=Ne(t.toRef(a,"labelPosition"),"labelPosition",Be.Near),f=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),B=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),q=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),_=Ne(t.toRef(a,"labelWidth"),"labelWidth",Be.Near),z=t.computed(()=>_&&_.value?{width:Pe(_.value)}:{}),A=t.computed(()=>({"label--string":!0,"label--required":v.value})),E=t.computed(()=>({content:!0,[a.contentClass]:!0})),T=t.computed(()=>({...a.contentStyle})),C=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(x){v.value=x},setErrorTip(x){C.errorTip=x},setErrorIcon(x){C.errorIcon=x},setWarnTip(x){C.warnTip=x},setWarnIcon(x){C.warnIcon=x},setInfoTip(x){C.infoTip=x},setInfoIcon(x){C.infoIcon=x},setCustomClassName(x){c.value=x},setCustomStyle(x){N.value=x}});const M=t.computed(()=>a.infoTip||C.infoTip),k=t.computed(()=>a.infoIcon||C.infoIcon),V=t.computed(()=>a.warnTip||C.warnTip),D=t.computed(()=>a.warnIcon||C.warnIcon),W=t.computed(()=>a.errorTip||C.errorTip),L=t.computed(()=>a.errorIcon||C.errorIcon),J=t.computed(()=>W.value?"error":V.value?"warn":M.value?"info":""),X=()=>J.value.length>0,Z=t.computed(()=>J.value==="error"?W.value:J.value==="warn"?V.value:J.value==="info"?M.value:""),ne=t.computed(()=>J.value==="error"?L.value:J.value==="warn"?D.value:J.value==="info"?k.value:null),R=t.computed(()=>{const x={[`${h}__tip`]:!0,[`${h}__tip--${J.value}`]:!0,[`${h}--animate`]:!0};return J.value==="error"&&a.errorClass?x[`${a.errorClass}`]=!0:J.value==="warn"&&a.warnClass?x[`${a.warnClass}`]=!0:J.value==="info"&&a.infoClass&&(x[`${a.infoClass}`]=!0),x}),I=t.computed(()=>{const x={};return g&&g.value==="top"||!w()?x["padding-left"]="0px":_&&_.value&&(x["padding-left"]=Pe(_.value)),x}),H=t.ref();let j="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([x,K,Q,le])=>{H.value&&(x&&!ge(K)?j?o.show(H.value,K,{...le,id:j,type:Q},!0):j=o.show(H.value,K,{...le,type:Q},!0):o.hide(j))});let P=null;const U=()=>{P||!H.value||(P=new IntersectionObserver(x=>{let K=!1;for(let Q of x)if(Q.intersectionRatio>0){K=!0,K&&r.emit("appear",Q);break}K||r.emit("disappear")}),P.observe(H.value))},Y=()=>{!P||!H.value||(P.unobserve(H.value),P=null)};t.watch(()=>ue(a.appearListen),x=>{x?U():Y()}),t.onMounted(()=>{ue(a.appearListen)&&U()}),t.onUnmounted(Y);const $=()=>{if(!w())return null;const x=[],K=r.slots?.label?.()??a.label,Q={class:A.value},le=t.h("div",Q,[K]);if(x.push(le),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();x.push(oe)}const ee={class:q.value,style:z.value};return t.h("div",ee,x)},y=()=>{const x=[];if(r.slots.prepend){const Q=r.slots.prepend();x.push(Q)}if(r.slots.default){const Q=r.slots.default();x.push(Q)}if(r.slots.append){const Q=r.slots.append();x.push(Q)}if(r.slots.fixedTip){const Q={class:[`${h}__fixed-tip`]},le=t.h("div",Q,[r.slots.fixedTip()]);x.push(le)}const K={ref:H,class:E.value,style:T.value};return t.h("div",K,x)},S=()=>{const x=ne.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--icon"},[x()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(x)]):null},F=()=>{const x=Z.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--text"},[x()]):t.h("div",{class:"fox-item__tip--text"},[x]):null},G=()=>{if(!X())return null;const x=[],K=S();K&&x.push(K);const Q=F();Q&&x.push(Q);const le={class:R.value,style:I.value};return t.h("div",le,x)},te=()=>r.slots?.hide?.()??null;return()=>{const x=[],K=[],Q=$();Q&&K.push(Q);const le=y();le&&K.push(le);const ee={class:B.value},oe=t.h("div",ee,K);x.push(oe);const re=G();re&&x.push(re);const se=te();se&&x.push(se);const ve={class:b.value,style:p.value,prop:a.prop};return t.h("div",ve,x)}}}}const{componentName:us,create:cs,scope:fs}=ie("item"),we=cs(ss(us,fs,Fe,!1));function ds(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const a=Ue(),r=un();cn(!1);const i=t.computed(()=>r&&a?fn(a,!1).value:null),s=e,u=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=t.computed(()=>{const h={},c=r&&a?dn(a,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=mn(c,i.value,o.span,o.offset);Object.assign(h,b)}else if(i.value.type==="flow"){const b=hn(c,i.value,o.span,o.offset,o.width);Object.assign(h,b)}else return o.width&&(h.width=Pe(o.width)),h;else o.width&&(h.width=Pe(o.width));return h});return()=>{const h={class:u.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:hs,create:ms,scope:Kg}=ie("slot-item"),gl=ms(ds(hs));function gs(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,l){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Ue(),s=un();cn(!1);const u=t.computed(()=>{const d={};if(s&&i){const h=fn(i,!1),c=dn(i,!1);if(h.value&&c)if(h.value.type==="grid"){const b=mn(c,h.value,o.span,o.offset);Object.assign(d,b)}else if(h.value.type==="flow"){const b=hn(c,h.value,o.span,o.offset,o.width);Object.assign(d,b)}else o.width&&(d.width=Pe(o.width))}else o.width&&(d.width=Pe(o.width));return d});return()=>{const d=[];if(l.slots.default){const c=l.slots.default();if(o.divide)for(let b=0;b<c.length;b++){if(b>0){const N=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(N)}d.push(c[b])}else Reflect.apply([].push,d,c)}const h={class:r.value,style:u.value};return t.h("div",h,d)}}}}const{componentName:ps,create:vs,scope:Yg}=ie("row-item"),pl=vs(gs(ps)),Ke=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},po={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 ys(e,n,o){return{props:{...be,...$e,...po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue"),b=e,N=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__readonly`]:i.value})),p=k=>{c.value=k,s("update:modelValue",k),s("input",k)},m=k=>{s("change",k)};let v=fe(l,"hintText"),w=t.ref(!1);const g=k=>{let D=k.target.value;h.value=!0,ge(v.value)||(w.value=!0),s("focus",D,k)},f=k=>{setTimeout(()=>{w.value&&(w.value=!1),h.value=!1},0);let D=k.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),s("blur",D,k)},B=()=>{s("clear","")},q=t.ref(!1);let _=null;const z=()=>{l.showTooltip&&q.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{q.value=!0},150))},A=()=>{_&&(clearTimeout(_),q.value=!1,_=null)},E=t.computed(()=>q.value||w.value),T=t.computed(()=>q.value?c.value:v.value),C=t.computed(()=>He(l.unit)>0),M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const V={...Ke(a.attrs),ref:M,class:N.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:m,onInput:p,onFocus:g,onBlur:f,onMouseover:z,onMouseleave:A},D={};a.slots.prepend&&(D.prepend=a.slots.prepend),a.slots.append&&(D.append=a.slots.append),a.slots.prefix&&(D.prefix=a.slots.prefix),a.slots.suffix?D.suffix=a.slots.suffix:C.value&&(D.suffix=()=>[l.unit]);const W=[],L=t.h(O.ElInput,V,D);W.push(L);const J={default:()=>W};a.slots.default&&(J.label=a.slots.default),a.slots.default&&(J.fixedTip=a.slots.fixedTip);const Z={...Ce(l,po),hintText:T.value,hintVisible:E.value,prop:`${l.prop}_item`};return t.h(o,Z,J)}}}}const{componentName:bs,create:ws,scope:xs}=ie("input-item"),vl=ws(ys(bs,xs,we));function Qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qa(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Ss(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ts=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Cs(){const e=t.getCurrentInstance();return new Ts(e.proxy)}function er(e,n,o){const l=Qe(e,n),a=Qe(e,o);if(l!==a)return!1;const r=Pt(e,n),i=Pt(e,o);return r===i}function tr(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){const s=Qa(e,i);if(Array.isArray(s)&&s.length>0){const u=tr(e,r,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Qe(e,i)===r;else if(o==="item")u=er(e,i,r);else{let d=Pt(e,i);d==null&&(d=Qe(e,i)),u=d===r}if(u){a.push(i);break}}}}),a}function $s(e){return{text:e,value:e}}const vo={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},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ks(e,n,o){return{props:{...be,...$e,...vo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(null),c=t.ref([]),b=t.computed(()=>c.value?c.value.map(S=>Qe(l,S)).join(" "):""),N=(y,S,F,G=!0)=>{const te=tr(l,y,S,F);if(te===null){if(c.value===null||c.value.length===0)return;h.value=null,c.value=[],G&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let x=!0;if(te.length!==c.value.length)x=!1;else for(let K=0;K<te.length;K++){const Q=te[K],le=c.value[K];if(!er(l,Q,le)){x=!1;break}}if(!x){c.value=te;let K=[],Q=[],le=[];te.forEach(se=>{const ve=Pt(l,se),me=Qe(l,se);K.push(ve),le.push(me),l.valueType==="text"?Q.push(me):l.valueType==="item"?Q.push(se):Q.push(ve)});let ee,oe,re;ue(l.multiple)?(h.value=K,ee=t.toRaw(Q),oe=le,re=t.toRaw(te)):(h.value=K[0]??"",ee=t.toRaw(Q[0]??""),oe=le[0]??"",re=t.toRaw(te[0])),G&&(s("update:modelValue",ee),s("change",ee,re)),s("update:text",oe)}},p=t.ref(null),m=t.ref(null),v=t.computed(()=>m.value??p.value??[]),w=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Be.Near,y=>ue(y)),g=Cs(),f=async(y,S)=>{if(y){const F=await g.load("select",y,S);if(F.length>0)if(typeof F[0]=="string"){let x=F.map(K=>$s(K));p.value=x}else p.value=F;else p.value=null}};t.watch([()=>l.source,()=>l.params],([y,S])=>{m.value=null,f(y,S)},{immediate:!w.value});let B=!1;const q=()=>{B||(B=!0,f(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([y,S])=>{if(E()&&ue(l.multiple)){Le(S,h.value)||(h.value=S);return}N(S,l.valueType,v.value,!1)});let _=null,z=t.ref(!1);typeof l.remoteMethod=="function"&&(_=async y=>{if(y==null){m.value=null;return}z.value=!0;try{const S=await l.remoteMethod(y);S&&(m.value=S)}catch(S){m.value=null,console.error(S)}z.value=!1});let A=null;typeof l.filterMethod=="function"&&(A=async y=>{if(y==null){m.value=null;return}z.value=!0;try{const S=await l.filterMethod(y,p.value);S&&(m.value=S)}catch(S){m.value=null,console.error(S)}z.value=!1});const E=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",T=t.ref(!1),C=e,M=t.computed(()=>({[C]:!0})),k=y=>{l.allowCreate||E()&&ue(l.multiple)?(s("update:modelValue",y),s("change",y),s("update:text",y),h.value=y):N(y,"value",v.value,!0)};let V=fe(l,"hintText"),D=t.ref(!1);const W=y=>{let F=y.target.value;T.value=!0,ge(V.value)||(D.value=!0),s("focus",F,y)},L=y=>{setTimeout(()=>{D.value&&(D.value=!1),T.value=!1},0);let F=y.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),j.value||s("blur",F,y)},J=()=>{s("clear","")},X=t.ref(!1);let Z=null;const ne=()=>{l.showTooltip&&X.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{X.value=!0},150))},R=()=>{Z&&(clearTimeout(Z),X.value=!1,Z=null)},I=t.computed(()=>X.value||D.value),H=t.computed(()=>X.value?b.value:V.value),j=t.ref(!1),P=y=>{j.value=y,s("visible-change",y),y||s("selected")},U=y=>{s("remove-tag",y)},Y=(y,S)=>{const F=[];return y.forEach((G,te)=>{const x=Qa(l,G);if(Array.isArray(x)&&x.length>0){const K=Y(x,S),Q=Qe(l,G),ee={key:`${Q}_${te}`,label:Q};F.push(t.h(O.ElOptionGroup,ee,{default:()=>K}))}else{const K=Pt(l,G),Q=Qe(l,G),le=Ss(l,G),oe={key:`${K}_${te}`,label:Q,disabled:le,value:K};if(typeof S=="function")F.push(t.h(O.ElOption,oe,{default:()=>S(G)}));else if(l.optionType==="item"){const re={class:{"fox-select-item__option-left":!0}},se=t.h("span",re,[K]),ve={class:{"fox-select-item__option-right":!0}},me=t.h("span",ve,[Q]),Ze=t.h("div",{class:{"fox-select-item__option":!0}},[se,me]);F.push(t.h(O.ElOption,oe,{default:()=>Ze}))}else l.optionType==="value"?F.push(t.h(O.ElOption,oe,{default:()=>[K]})):F.push(t.h(O.ElOption,oe))}}),F},$=t.ref();return pe({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()}}),()=>{const S={...Ke(a.attrs),ref:$,class:M.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:J,onChange:k,onFocus:W,onBlur:L,onVisibleChange:P,onRemoveTag:U};typeof _=="function"&&(S["remote-method"]=_,S.loading=z.value),typeof A=="function"&&(S["filter-method"]=A,S.loading=z.value);const F={};a.slots.prefix&&(F.prefix=a.slots.prefix),a.slots.empty&&(F.empty=a.slots.empty),a.slots.options?F.default=a.slots.options:F.default=()=>Y(v.value,a.slots.option);const G=[],te=t.h(O.ElSelect,S,F);G.push(te);const x={default:()=>G};a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip);const Q={...Ce(l,vo),hintText:H.value,hintVisible:I.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:ne,onMouseleave:R};return w.value&&(Q["appear-listen"]=!0,Q.onAppear=q),t.h(o,Q,x)}}}}const{componentName:Ds,create:Ns,scope:Es}=ie("select-item"),yl=Ns(ks(Ds,Es,we));var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",s="minute",u="hour",d="day",h="week",c="month",b="quarter",N="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(k,V,D){var W=String(k);return!W||W.length>=V?k:""+Array(V+1-W.length).join(D)+k},B={s:f,z:function(k){var V=-k.utcOffset(),D=Math.abs(V),W=Math.floor(D/60),L=D%60;return(V<=0?"+":"-")+f(W,2,"0")+":"+f(L,2,"0")},m:function k(V,D){if(V.date()<D.date())return-k(D,V);var W=12*(D.year()-V.year())+(D.month()-V.month()),L=V.clone().add(W,c),J=D-L<0,X=V.clone().add(W+(J?-1:1),c);return+(-(W+(D-L)/(J?L-X:X-L))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:c,y:N,w:h,d,D:p,h:u,m:s,s:i,ms:r,Q:b}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},q="en",_={};_[q]=g;var z=function(k){return k instanceof C},A=function k(V,D,W){var L;if(!V)return q;if(typeof V=="string"){var J=V.toLowerCase();_[J]&&(L=J),D&&(_[J]=D,L=J);var X=V.split("-");if(!L&&X.length>1)return k(X[0])}else{var Z=V.name;_[Z]=V,L=Z}return!W&&L&&(q=L),L||!W&&q},E=function(k,V){if(z(k))return k.clone();var D=typeof V=="object"?V:{};return D.date=k,D.args=arguments,new C(D)},T=B;T.l=A,T.i=z,T.w=function(k,V){return E(k,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var C=function(){function k(D){this.$L=A(D.locale,null,!0),this.parse(D)}var V=k.prototype;return V.parse=function(D){this.$d=function(W){var L=W.date,J=W.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var X=L.match(v);if(X){var Z=X[2]-1||0,ne=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],Z,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)):new Date(X[1],Z,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)}}return new Date(L)}(D),this.$x=D.x||{},this.init()},V.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()},V.$utils=function(){return T},V.isValid=function(){return this.$d.toString()!==m},V.isSame=function(D,W){var L=E(D);return this.startOf(W)<=L&&L<=this.endOf(W)},V.isAfter=function(D,W){return E(D)<this.startOf(W)},V.isBefore=function(D,W){return this.endOf(W)<E(D)},V.$g=function(D,W,L){return T.u(D)?this[W]:this.set(L,D)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(D,W){var L=this,J=!!T.u(W)||W,X=T.p(D),Z=function(Y,$){var y=T.w(L.$u?Date.UTC(L.$y,$,Y):new Date(L.$y,$,Y),L);return J?y:y.endOf(d)},ne=function(Y,$){return T.w(L.toDate()[Y].apply(L.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice($)),L)},R=this.$W,I=this.$M,H=this.$D,j="set"+(this.$u?"UTC":"");switch(X){case N:return J?Z(1,0):Z(31,11);case c:return J?Z(1,I):Z(0,I+1);case h:var P=this.$locale().weekStart||0,U=(R<P?R+7:R)-P;return Z(J?H-U:H+(6-U),I);case d:case p:return ne(j+"Hours",0);case u:return ne(j+"Minutes",1);case s:return ne(j+"Seconds",2);case i:return ne(j+"Milliseconds",3);default:return this.clone()}},V.endOf=function(D){return this.startOf(D,!1)},V.$set=function(D,W){var L,J=T.p(D),X="set"+(this.$u?"UTC":""),Z=(L={},L[d]=X+"Date",L[p]=X+"Date",L[c]=X+"Month",L[N]=X+"FullYear",L[u]=X+"Hours",L[s]=X+"Minutes",L[i]=X+"Seconds",L[r]=X+"Milliseconds",L)[J],ne=J===d?this.$D+(W-this.$W):W;if(J===c||J===N){var R=this.clone().set(p,1);R.$d[Z](ne),R.init(),this.$d=R.set(p,Math.min(this.$D,R.daysInMonth())).$d}else Z&&this.$d[Z](ne);return this.init(),this},V.set=function(D,W){return this.clone().$set(D,W)},V.get=function(D){return this[T.p(D)]()},V.add=function(D,W){var L,J=this;D=Number(D);var X=T.p(W),Z=function(I){var H=E(J);return T.w(H.date(H.date()+Math.round(I*D)),J)};if(X===c)return this.set(c,this.$M+D);if(X===N)return this.set(N,this.$y+D);if(X===d)return Z(1);if(X===h)return Z(7);var ne=(L={},L[s]=l,L[u]=a,L[i]=o,L)[X]||1,R=this.$d.getTime()+D*ne;return T.w(R,this)},V.subtract=function(D,W){return this.add(-1*D,W)},V.format=function(D){var W=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var J=D||"YYYY-MM-DDTHH:mm:ssZ",X=T.z(this),Z=this.$H,ne=this.$m,R=this.$M,I=L.weekdays,H=L.months,j=function($,y,S,F){return $&&($[y]||$(W,J))||S[y].slice(0,F)},P=function($){return T.s(Z%12||12,$,"0")},U=L.meridiem||function($,y,S){var F=$<12?"AM":"PM";return S?F.toLowerCase():F},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:R+1,MM:T.s(R+1,2,"0"),MMM:j(L.monthsShort,R,H,3),MMMM:j(H,R),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:j(L.weekdaysMin,this.$W,I,2),ddd:j(L.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(Z),HH:T.s(Z,2,"0"),h:P(1),hh:P(2),a:U(Z,ne,!0),A:U(Z,ne,!1),m:String(ne),mm:T.s(ne,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:X};return J.replace(w,function($,y){return y||Y[$]||X.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(D,W,L){var J,X=T.p(W),Z=E(D),ne=(Z.utcOffset()-this.utcOffset())*l,R=this-Z,I=T.m(this,Z);return I=(J={},J[N]=I/12,J[c]=I,J[b]=I/3,J[h]=(R-ne)/6048e5,J[d]=(R-ne)/864e5,J[u]=R/a,J[s]=R/l,J[i]=R/o,J)[X]||R,L?I:T.a(I)},V.daysInMonth=function(){return this.endOf(c).$D},V.$locale=function(){return _[this.$L]},V.locale=function(D,W){if(!D)return this.$L;var L=this.clone(),J=A(D,W,!0);return J&&(L.$L=J),L},V.clone=function(){return T.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},k}(),M=C.prototype;return E.prototype=M,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",N],["$D",p]].forEach(function(k){M[k[1]]=function(V){return this.$g(V,k[0],k[1])}}),E.extend=function(k,V){return k.$i||(k(V,C,E),k.$i=!0),E},E.locale=A,E.isDayjs=z,E.unix=function(k){return E(1e3*k)},E.en=_[q],E.Ls=_,E.p={},E})})(nr);var Vs=nr.exports;const je=Xe(Vs);var lr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(v){this[m]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),g=60*w[1]+(+w[2]||0);return g===0?0:w[0]==="+"?-g:g}(m)}],c=function(m){var v=s[m];return v&&(v.indexOf?v:v.s.concat(v.f))},b=function(m,v){var w,g=s.meridiem;if(g){for(var f=1;f<=24;f+=1)if(m.indexOf(g(f,0,v))>-1){w=f>12;break}}else w=m===(v?"pm":"PM");return w},N={A:[i,function(m){this.afternoon=b(m,!1)}],a:[i,function(m){this.afternoon=b(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[i,function(m){var v=s.ordinal,w=m.match(/\d+/);if(this.day=w[0],v)for(var g=1;g<=31;g+=1)v(g).replace(/\[|\]/g,"")===m&&(this.day=g)}],M:[r,d("month")],MM:[a,d("month")],MMM:[i,function(m){var v=c("months"),w=(c("monthsShort")||v.map(function(g){return g.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var v=c("months").indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(m){this.year=u(m)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function p(m){var v,w;v=m,w=s&&s.formats;for(var g=(m=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,T,C){var M=C&&C.toUpperCase();return T||w[C]||o[C]||w[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,V,D){return V||D.slice(1)})})).match(l),f=g.length,B=0;B<f;B+=1){var q=g[B],_=N[q],z=_&&_[0],A=_&&_[1];g[B]=A?{regex:z,parser:A}:q.replace(/^\[|\]$/g,"")}return function(E){for(var T={},C=0,M=0;C<f;C+=1){var k=g[C];if(typeof k=="string")M+=k.length;else{var V=k.regex,D=k.parser,W=E.slice(M),L=V.exec(W)[0];D.call(T,L),E=E.replace(L,"")}}return function(J){var X=J.afternoon;if(X!==void 0){var Z=J.hours;X?Z<12&&(J.hours+=12):Z===12&&(J.hours=0),delete J.afternoon}}(T),T}}return function(m,v,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var g=v.prototype,f=g.parse;g.parse=function(B){var q=B.date,_=B.utc,z=B.args;this.$u=_;var A=z[1];if(typeof A=="string"){var E=z[2]===!0,T=z[3]===!0,C=E||T,M=z[2];T&&(M=z[2]),s=this.$locale(),!E&&M&&(s=w.Ls[M]),this.$d=function(W,L,J){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*W);var X=p(L)(W),Z=X.year,ne=X.month,R=X.day,I=X.hours,H=X.minutes,j=X.seconds,P=X.milliseconds,U=X.zone,Y=new Date,$=R||(Z||ne?1:Y.getDate()),y=Z||Y.getFullYear(),S=0;Z&&!ne||(S=ne>0?ne-1:Y.getMonth());var F=I||0,G=H||0,te=j||0,x=P||0;return U?new Date(Date.UTC(y,S,$,F,G,te,x+60*U.offset*1e3)):J?new Date(Date.UTC(y,S,$,F,G,te,x)):new Date(y,S,$,F,G,te,x)}catch{return new Date("")}}(q,A,_),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),C&&q!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var k=A.length,V=1;V<=k;V+=1){z[1]=A[V-1];var D=w.apply(this,z);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}V===k&&(this.$d=new Date(""))}else f.call(this,B)}}})})(lr);var Is=lr.exports;const Ps=Xe(Is);var or={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){var r=l.prototype,i=r.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},r.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var h=this.$utils(),c=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return h.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return h.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return h.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(c)}}})})(or);var Os=or.exports;const As=Xe(Os);var ar={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,N,p,m){var v=c.name?c:c.$locale(),w=i(v[b]),g=i(v[N]),f=w||g.map(function(q){return q.slice(0,p)});if(!m)return f;var B=v.weekStart;return f.map(function(q,_){return f[(_+(B||0))%7]})},u=function(){return a.Ls[a.locale()]},d=function(c,b){return c.formats[b]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,v){return m||v.slice(1)})}(c.formats[b.toUpperCase()])},h=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(c){return s(u(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(ar);var Fs=ar.exports;const Bs=Xe(Fs);var rr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){var o="week",l="year";return function(a,r,i){var s=r.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(o);if(h.isBefore(c))return 1}var b=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(b,o,!0);return N<0?i(this).startOf("week").week():Math.ceil(N)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(rr);var Ms=rr.exports;const Rs=Xe(Ms);var ir={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})})(ir);var Ls=ir.exports;const _s=Xe(Ls);var sr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(sr);var qs=sr.exports;const zs=Xe(qs);var ur={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(ur);var js=ur.exports;const Hs=Xe(js);var cr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(cr);var Ks=cr.exports;const Ys=Xe(Ks);je.extend(Bs);je.extend(As);je.extend(Ps);je.extend(Rs);je.extend(_s);je.extend(zs);je.extend(Hs);je.extend(Ys);const ae={format(e,n){return je(e).format(n)},parser(e,n){return je(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const a=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,l,a].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay(),i=a.getDate(),s=6-r;return l!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let s=a.getDay(),u=6-s;return l!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const u=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[h,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=r-(i-1)*s,d=r+(7-i)*s,h=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[h,c]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},yo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},bo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ws(e,n,o){return{props:{...be,...$e,...yo,...bo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue"),b=t.computed(()=>D.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=t.computed(()=>D.value?"longTermKey":"normalKey"),p=$=>{if(D.value&&l.type==="daterange"){const y=[...c.value];y[0]=$,c.value=y}else c.value=$;s("update:modelValue",c.value),s("change",c.value)},m=t.computed(()=>D.value&&l.type==="daterange"?"date":l.type),v=e,w=t.computed(()=>({[`${v}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":r.value}));let g=fe(l,"hintText"),f=t.ref(!1);const B=$=>{let S=$.target.value;h.value=!0,ge(g.value)||(f.value=!0),s("focus",S,$)},q=$=>{setTimeout(()=>{f.value&&(f.value=!1),h.value=!1},0);let S=$.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),s("blur",S,$)},_=()=>{s("clear","")},z=$=>{s("calendar-change",$)},A=($,y,S)=>{s("panel-change",$,y,S)},E=$=>{s("visible-change",$)},T=Ne(t.computed(()=>l.longTermText),"longTermText",Be.Near),C=Ne(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Be.Near),M=Ne(t.computed(()=>l.longTermValue),"longTermValue",Be.Near),k=Ne(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Be.Near);let V=null;const D=t.ref(ue(l.longTerm)),W=$=>{if(D.value=$,s("update:longTerm",$),$){if(V=c.value,l.type==="daterange"){const y=[];Array.isArray(M.value)?(y[0]=c.value?c.value[0]??M.value[0]:null,y[1]=M.value[1]??M.value[0]):(y[0]=c.value?c.value[0]??M.value:null,y[1]=D.value),y[0]||(y[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),y[1]||(y[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=y}else Array.isArray(M.value)?c.value=M.value[1]??M.value[0]:c.value=M.value,c.value||(c.value=l.valueFormat?ae.format(new Date,l.valueFormat):new Date);s("update:modelValue",c.value)}else{if(l.type==="daterange"){const y=[];y[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(V)?y[1]=V[1]:y[1]=V,y[0]||(y[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),y[1]||(y[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=y}else c.value=V;s("update:modelValue",c.value),setTimeout(()=>{U()},100)}},L=ue(l.isLongTerm);if(L){const $=()=>{if(D.value===!0){if(V=c.value,l.type==="daterange"){const y=[c.value[0]];Array.isArray(M.value)?y[1]=M.value[1]??M.value[0]:y[1]=D.value,y[0]||(y[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),y[1]||(y[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=y}else c.value=M.value;s("update:modelValue",c.value)}else Le(M.value,c.value)&&(D.value=!0)};$(),t.watch([()=>l.longTerm],([y])=>{D.value!==y&&$()}),t.watch([()=>c.value],([y])=>{let S=!1;if(l.type==="daterange"&&Array.isArray(y))try{let F=y[1];if(!F)return;typeof F!="string"&&l.valueFormat&&(F=ae.format(F,l.valueFormat));let G=Array.isArray(M.value)?M.value[1]:M.value;(F===G||Array.isArray(k.value)&&k.value.findIndex(x=>F==x)!==-1)&&(S=!0)}catch(F){console.error(F)}D.value!==S&&(D.value=S)},{immediate:!0})}const J=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),X=t.ref(),Z=t.ref(),ne=/^\d+$/,R=($,y)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold($,y):ne.test($)&&$.length===l.flashFillThreshold,I=($,y)=>{let S;if(typeof l.flashFillFormat=="function")S=l.flashFillFormat($,y);else{const G=l.flashFillFormat??"YYYYMMDD";S=ae.parser($,G)}const F=l.valueFormat??"YYYY-MM-DD";return ae.format(S,F)},H=$=>$?$.endsWith("range"):!1,j=$=>{if(!$.target)return;const y=$.target.value??"";if(R(y,l.type)){const S=I(y,l.type);if(H(l.type)){const F=Array.isArray(c.value)?[...c.value]:[];F[0]=S,p(F)}else p(S)}},P=$=>{if(!$.target)return;const y=$.target.value??"";if(R(y,l.type)){const S=I(y,l.type);if(H(l.type)){const F=Array.isArray(c.value)?[...c.value]:[];F[1]=S,p(F)}else p(S)}},U=()=>{if(l.flashFill&&X.value&&X.value.$el)if(H(l.type)){const $=X.value.$el.querySelectorAll("input.el-range-input");$[0]&&$[0].addEventListener("input",j),$[1]&&$[1].addEventListener("input",P)}else{const $=X.value.$el.querySelector("input.el-input__inner");$&&$.addEventListener("input",j)}},Y=()=>{if(l.flashFill&&X.value&&X.value.$el)if(H(l.type)){const $=X.value.$el.querySelectorAll("input.el-range-input");$[0]&&$[0].removeEventListener("input",j),$[1]&&$[1].removeEventListener("input",P)}else{const $=X.value.$el.querySelector("input.el-input__inner");$&&$.removeEventListener("input",j)}};return t.onMounted(U),t.onBeforeUnmount(Y),pe({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},handleOpen:()=>{Z?.value.handleOpen()},handleClose:()=>{Z?.value.handleClose()}}),()=>{const y={...a.attrs,key:N.value,type:m.value,ref:Z,class:w.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:b.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":p,onClear:_,onFocus:B,onBlur:q,onCalendarChange:z,onPanelChange:A,onVisibleChange:E},S={};a.slots["range-separator"]&&(S["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(S.default=a.slots.cell);const F=[],G=t.h(O.ElDatePicker,y,S);F.push(G);const te={default:()=>F};if(a.slots.default&&(te.label=a.slots.default),a.slots.fixedTip&&(te.fixedTip=a.slots.fixedTip),L){if(D.value){const le=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ee=t.h("input",{class:["fox-date-item__long-text"],value:T.value,readonly:!0}),oe={class:J.value},re=t.h("div",oe,{default:()=>[le,ee]});F.push(re)}if(!i.value&&!r.value){const le={label:C.value||T.value,disabled:i.value||r.value,modelValue:D.value,"onUpdate:modelValue":W},ee=t.h(O.ElCheckbox,le),oe=t.h("div",{class:{[`${v}__append`]:!0}},[ee]);te.append=()=>oe}}const K={...Ce(l,yo,bo),ref:X,class:{[`${v}__wrapper`]:!0,"has-append":L},hintText:g.value,hintVisible:f.value,prop:`${l.prop}_item`};return t.h(o,K,te)}}}}const{componentName:Us,create:Gs,scope:Xs}=ie("date-item"),bl=Gs(Ws(Us,Xs,we)),Zs=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),wl={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},xl={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:{}}},fr=2e3;let wo=fr;const Js=(e,n)=>({components:n,props:{...xl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),r=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==fr&&(wo=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++wo,o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=m=>{l("click-pop",m)},c=m=>{m.stopPropagation(),l("click-close-icon",m),l("update:visible",!1)},b=m=>{l("click-overlay",m),o.closeOnClickOverlay&&l("update:visible",!1)},N=m=>{l("opend",m)},p=m=>{l("closed",m)};return t.watch(()=>o.visible,m=>{o.visible?u():d()}),t.watch(()=>o.closeable,m=>{a.closed=m}),{...t.toRefs(a),popStyle:i,transitionName:s,classes:r,onClick:h,onClickCloseIcon:c,onClickOverlay:b,onOpened:N,onClosed:p}}});let $t=0;const xo="fox-overflow-hidden",So=()=>ut?document.body:{classList:[]},Qs=e=>[()=>{if(e())try{!$t&&So().classList.add(xo),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&So().classList.remove(xo)}catch{}}],eu={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:tu,create:nu}=ie("overlay"),lu=nu({props:{...eu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Qs(()=>e.lockScroll),a=t.computed(()=>({[tu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?o():l()}),{classes:a,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ou(e,n,o,l,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const pn=ke(lu,[["render",ou]]),au=["aria-labelledby"],ru=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),iu=[ru],su=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},iu,14,au))}}),uu=["aria-labelledby"],cu=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),fu=[cu],vn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},fu,14,uu))}}),du=["aria-labelledby"],hu=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),mu=[hu],gu=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},mu,14,du))}}),pu=["aria-labelledby"],vu=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),yu=[vu],dr=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yu,14,pu))}}),bu=["aria-labelledby"],wu=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),xu=[wu],Su=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},xu,14,bu))}}),{componentName:Tu,create:Cu}=ie("popup"),$u=Cu(Js(Tu,{FoxOverLay:pn,Close:gu}));function ku(e,n,o,l,a,r){const i=t.resolveComponent("FoxOverLay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wt=ke($u,[["render",ku]]),To=39,Co=64,{create:Du,scope:Nu}=ie("calendar-pane"),Eu=Du({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=ye.useFoxI18n(Nu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${To}px`})),s=t.computed(()=>({height:`${Co}px`})),u=JSON.parse(a("weekdays")),d=t.ref([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),h=t.ref(null),c=t.ref(null),b=t.ref(null),N=t.ref(null),p=t.ref(0),m=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),v=t.computed(()=>o.btn),w=t.computed(()=>o["top-info"]),g=t.computed(()=>o["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),B=$=>$.split("-"),q=$=>ae.isEqual(f.currDate[0],$),_=$=>ae.isEqual(f.currDate[1],$),z=$=>f.currDate?.length>0?f.currDate?.some(y=>ae.isEqual(y,$)):!1,A=($,y)=>y.curData[0]+"-"+y.curData[1]+"-"+ae.getNumTwoBit(+$.day),E=($,y)=>{const S=A($,y),{type:F}=e;return $.type=="curr"?ae.isEqual(f.currDate,S)||(F=="range"||F=="week")&&(q(S)||_(S))||F=="multiple"&&z(S)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(S,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,S)?`${f.dayPrefix}--disabled`:(F=="range"||F=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],S)&&ae.compareDate(S,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:$}=e;if($=="range"&&f.chooseData.length==2||$!="range"){let y=f.chooseData.slice(0);$=="week"&&(y={weekDate:[M(f.chooseData[0]),M(f.chooseData[1])]}),n("choose",y),e.poppable&&n("update")}},C=($,y,S=!1)=>{if(E($,y)!=`${f.dayPrefix}--disabled`){const{type:F}=e;let[G,te]=y.curData,x=[...y.curData];if(x[2]=ae.getNumTwoBit(Number($.day)),x[3]=`${x[0]}-${x[1]}-${x[2]}`,x[4]=ae.getWhatDay(+x[0],+x[1],+x[2]),F=="multiple")if(f.currDate?.length>0){let K;f.currDate?.forEach((Q,le)=>{Q==x[3]&&(K=le)}),S?f.chooseData.push([...x]):K!==void 0?(f.currDate.splice(K,1),f.chooseData.splice(K,1)):(f.currDate.push(x[3]),f.chooseData.push([...x]))}else f.currDate=[x[3]],f.chooseData=[[...x]];else if(F=="range"){let K=Object.values(f.currDate).length;K==2||K==0?f.currDate=[x[3]]:ae.compareDate(f.currDate[0],x[3])?Array.isArray(f.currDate)&&f.currDate.push(x[3]):Array.isArray(f.currDate)&&f.currDate.unshift(x[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...x]]:ae.compareDate(f.chooseData[0][3],x[3])?f.chooseData=[...f.chooseData,[...x]]:f.chooseData=[[...x],...f.chooseData]}else if(F=="week"){let K=ae.getWeekDate(G,te,$.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(K[0],f.propStartDate)&&K.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,K[1])&&K.splice(1,1,f.propEndDate),f.currDate=K,f.chooseData=[ae.formatResultDate(K[0]),ae.formatResultDate(K[1])]}else f.currDate=x[3],f.chooseData=[...x];if(!S){let K=f.chooseData;F=="week"&&(K={weekDate:[M(f.chooseData[0]),M(f.chooseData[1])]}),n("select",K),(e.isAutoBackFill||!e.poppable)&&T()}}},M=$=>{let[y,S,F]=$;return{date:$,monthWeekNum:ae.getMonthWeek(y,S,F,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(y,S,F,e.firstDayOfWeek)}},k=$=>{const y=$=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let S=parseInt(y.curData[0]),F=parseInt(y.curData[1].toString().replace(/^0/,""));switch($){case"prev":F==1&&(S-=1),F=F==1?12:--F;break;case"next":F==12&&(S+=1),F=F==12?1:++F;break}return[S+"",ae.getNumTwoBit(F),ae.getMonthDays(String(S),String(F))+""]},V=($,y,S)=>{let{year:F,month:G}=S;return y=="prev"&&$>=7&&($-=7),Array.from(Array($),(te,x)=>({day:String(x+1),type:y,year:F,month:G}))},D=($,y,S,F)=>{$=$-e.firstDayOfWeek;let{year:G,month:te}=S;return y=="prev"&&$>=7&&($-=7),Array.from(Array(F),(K,Q)=>({day:String(Q+1),type:y,year:G,month:te})).slice(F-$)},W=($,y)=>{const S=ae.getMonthPreDay(+$[0],+$[1]);let F=Number($[1])-1,G=Number($[0]);F<=0&&(F=12,G+=1);const te=ae.getMonthDays(String($[0]),String($[1])),x=ae.getMonthDays(G+"",F+""),K={year:$[0],month:$[1]},Q={curData:$,title:a("monthTitle",{year:K.year,month:K.month}),monthData:[...D(S,"prev",{month:String(F),year:String(G)},x),...V(te,"curr",K)],cssHeight:0,cssScrollHeight:0},le=Q.monthData.length>35?6:5;Q.cssHeight=To+Co*le;let ee=0;f.monthsData.length>0&&(ee=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),Q.cssScrollHeight=ee,y=="next"?(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${$[0]}-${$[1]}-${$[2]}`))&&f.monthsData.push(Q):!f.startData||!ae.compareDate(`${$[0]}-${$[1]}-${$[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(Q):f.unLoadPrev=!0},L=()=>{let $=e.startDate?e.startDate:ae.getDay(0),y=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=$,f.propEndDate=y,f.startData=B($),f.endData=B(y),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const S={year:Number(f.startData[0]),month:Number(f.startData[1])},F={year:Number(f.endData[0]),month:Number(f.endData[1])};let G=F.month-S.month;F.year-S.year>0&&(G=G+12*(F.year-S.year)),G<=0&&(G=1),W(f.startData,"next");let te=1;do W(k("next"),"next");while(te++<G);if(f.monthsNum=G,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&($&&ae.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),y&&ae.compareDate(y,f.currDate[1])&&f.currDate.splice(1,1,y),f.defaultData=[...B(f.currDate[0]),...B(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let x=[],K={};f.currDate.forEach(Q=>{$&&!ae.compareDate(Q,$)&&y&&!ae.compareDate(y,Q)&&(Object.hasOwnProperty.call(K,Q)||(x.push(Q),K[Q]=Q))}),f.currDate=[...x],f.defaultData=[...B(x[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[x,K,Q]=B(f.currDate[0]),le=ae.getWeekDate(x,K,Q,e.firstDayOfWeek);f.currDate=le,$&&ae.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),y&&ae.compareDate(y,f.currDate[1])&&f.currDate.splice(1,1,y),f.defaultData=[...B(f.currDate[0]),...B(f.currDate[1])]}}else f.currDate&&($&&ae.compareDate(f.currDate,$)?f.currDate=$:y&&!ae.compareDate(f.currDate,y)&&(f.currDate=y),f.defaultData=[...B(f.currDate)])};pe({scrollToDate:$=>{ae.compareDate($,f.propStartDate)?$=f.propStartDate:ae.compareDate($,f.propEndDate)||($=f.propEndDate);let y=B($);f.monthsData.forEach((S,F)=>{if(S.title==a("monthTitle",{year:y[0],month:y[1]})&&h.value){let G=f.monthsData[F].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let te=0,x=setInterval(()=>{if(te++,h.value){let K=G/10;h.value.scrollTop=h.value.scrollTop+K}te>=10&&(clearInterval(x),h.value&&(h.value.scrollTop=f.monthsData[F].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[F].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let $=0,y=0;f.defaultData.length>0&&f.monthsData.forEach((G,te)=>{G.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&($=te),(e.type=="range"||e.type=="week")&&G.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(y=te)}),ne(f.monthsNum,$),f.currentIndex=$,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),C({day:f.defaultData[5],type:"curr"},f.monthsData[y],!0)):e.type=="week"?C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(G=>{let te=B(G),x=f.currentIndex;f.monthsData.forEach((K,Q)=>{K.title==a("monthTitle",{year:te[0],month:te[1]})&&(x=Q)}),C({day:te[2],type:"curr"},f.monthsData[x],!0)}):C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let S=f.monthsData[f.monthsData.length-1],F=S.cssHeight+S.cssScrollHeight;nl(()=>{h?.value&&c?.value&&N?.value&&(p.value=h.value.clientHeight,c.value.style.height=`${F}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(F/(f.monthsNum+1))}});const ne=($,y)=>{$>=3?y>0&&y<$?f.defaultRange=[y-1,y+3]:y==0?f.defaultRange=[y,y+4]:y==$&&(f.defaultRange=[y-2,y+2]):f.defaultRange=[0,$+2];let S=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=S},R=($,y)=>(e.type=="range"||e.type=="week")&&$.type=="curr"&&E($,y)=="fox-calendar__day--active",I=($,y)=>R($,y)&&q(A($,y)),H=($,y)=>f.currDate.length>=2&&_(A($,y))?R($,y):!1,j=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},P=$=>{const y=`${$.year}-${$.month}-${Number($.day)<10?"0"+$.day:$.day}`;return ae.isEqual(y,ae.date2Str(new Date))},U=$=>{if(f.monthsData.length<=1)return;const y=$.target.scrollTop;let S=Math.floor(y/f.avgHeight);if(S==0)y>=f.monthsData[S+1].cssScrollHeight&&(S+=1);else if(S>0&&S<f.monthsNum-1)y>=f.monthsData[S+1].cssScrollHeight&&(S+=1),y<f.monthsData[S].cssScrollHeight&&(S-=1);else{const F=Math.round(y+p.value);F<f.monthsData[S].cssScrollHeight+f.monthsData[S].cssHeight&&y>f.monthsData[S-1].cssScrollHeight&&(S-=1),S+1<=f.monthsNum&&F>=f.monthsData[S+1].cssScrollHeight+f.monthsData[S+1].cssHeight&&(S+=1),S>=1&&y<f.monthsData[S-1].cssScrollHeight&&(S-=1)}f.currentIndex!==S&&(f.currentIndex=S,ne(f.monthsNum,S)),f.yearMonthTitle=f.monthsData[S].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),L()};return L(),t.watch(()=>e.defaultValue,$=>{$&&e.poppable&&Y()}),{dayTitleStyle:i,dayCellStyle:s,weeks:d,compConthsData:m,showTopBtn:v,topInfo:w,bottomInfo:g,rangeTip:j,mothsViewScroll:U,getClass:E,isStartTip:I,isEndTip:H,chooseDay:C,isCurrDay:P,confirm:T,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:c,weeksPanel:b,viewArea:N}}}),Vu={class:"fox-calendar__header"},Iu={key:0,class:"fox-calendar__header-title"},Pu={key:1,class:"fox-calendar__header-slot"},Ou={key:2,class:"fox-calendar__header-subtitle"},Au={class:"fox-calendar__weekdays",ref:"weeksPanel"},Fu={class:"fox-calendar__panel",ref:"monthsPanel"},Bu={class:"fox-calendar__days"},Mu=["onClick"],Ru={class:"fox-calendar__day-value"},Lu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},_u={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},qu={key:2,class:"fox-calendar__day-tips--curr"},zu={key:4,class:"fox-calendar__day-tip"},ju={key:0,class:"fox-calendar__footer"};function Hu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Vu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Iu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Pu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ou,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Au,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Fu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Bu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(u,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(u,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(u,i)},[t.createElementVNode("view",Ru,[t.renderSlot(e.$slots,"day",{date:u.type=="curr"?u:""},()=>[t.createTextVNode(t.toDisplayString(u.type=="curr"?u.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Lu,[t.renderSlot(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",_u,[t.renderSlot(e.$slots,"bottom-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(u)?(t.openBlock(),t.createElementBlock("view",qu,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(u,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(u,i)?(t.openBlock(),t.createElementBlock("view",zu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Mu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",ju,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Ku=ke(Eu,[["render",Hu]]),{create:Yu}=ie("calendar-picker"),Wu=Yu({components:{CalendarPane:Ku,Popup:wt},props:{...wl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>o.btn),a=t.computed(()=>o["top-info"]),r=t.computed(()=>o.day),i=t.computed(()=>o["bottom-info"]),s=t.ref(null),u=v=>{s.value?.scrollToDate(v)},d=()=>{s.value?.initPosition()},h=t.computed(()=>{const v=["fox-calendar__popup"];return e.popClass&&v.push(e.popClass),v});t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),pe({scrollToDate:u,initPosition:d});const c=()=>{n("update:visible",!1)},b=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{b()},update:c,close:b,select:v=>{n("select",v)},choose:v=>{b(),n("choose",v)},calendarRef:s,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Uu(e,n,o,l,a,r){const i=t.resolveComponent("CalendarPane"),s=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const yn=ke(Wu,[["render",Uu]]),An=(e,n)=>{let o;return et(e)?o=e:typeof e=="string"&&He(e)>0?o=ae.parser(e,n):o=new Date,o},ct=(e,n,o)=>(et(n)||(n=new Date),ae.format(n,o)),ft=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,a=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,a,r]},$o={...wl,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Gu(e,n,o){return{props:{...be,...$e,...$o},emits:["change","update:modelValue","blur","focus","clear"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]);let h=fe(l,"hintText"),c=t.ref(!1);const b=t.ref(!1),N=t.computed(()=>l.type==="range"),p=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{p.startDate!==null&&(p.startDate=null,p.endDate=null,p.startArray=[],p.endArray=[])},v=(L,J="one",X="YYYY-MM-DD")=>{if(Zs(L)){m();return}if(N.value&&Array.isArray(L)&&L.length==2){let Z,ne;typeof L[0]=="string"?(Z=An(L[0],X),ne=An(L[1],X)):(Z=L[0],ne=L[1]);let R=ft(Z),I=ft(ne);(p.startDate===null||p.startDate.getTime()!==Z.getTime()||p.endDate?.getTime()!==ne.getTime())&&(p.startDate=Z,p.startArray=R,p.endDate=ne,p.endArray=I)}else{let Z;typeof L=="string"?Z=An(L,X):Z=L;let ne=ft(Z);(p.startDate===null||p.startDate.getTime()!==Z.getTime())&&(p.startDate=Z,p.startArray=ne)}};v(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,L=>{v(L,l.type,l.valueFormat)});const w=t.computed(()=>{if(p.startDate===null)return"";if(N.value){let L=ct(l,p.startDate,l.format),J=ct(l,p.endDate,l.format);return`${L} ${l.rangeSeparator} ${J}`}else{let L=ct(l,p.startDate,l.format);return l.showWeek&&(L=`${L} ${p.startArray[4]}`),L}}),g=t.computed(()=>{if(p.startDate===null)return null;if(N.value){let L=ae.date2Str(p.startDate),J=ae.date2Str(p.endDate??new Date);return[L,J]}else return ae.date2Str(p.startDate)}),f="fox-input-item",B=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),q=Ne(t.computed(()=>l.textAlign),"textAlign"),_=t.computed(()=>({textAlign:q.value??"right"})),z=t.ref(!1),A=()=>{i.value||r.value||(z.value=!0)},E=()=>{z.value=!1},T=L=>{z.value=L},C=L=>{if(L){if(N.value&&Array.isArray(L)){let J=L[0],X=de(J[0]),Z=de(J[1]),ne=de(J[2]),R=new Date(X,Z-1,ne),I=L[1];X=de(I[0]),Z=de(I[1]),ne=de(I[2]);let H=new Date(X,Z-1,ne);if(p.startDate=R,p.startArray=ft(R),p.endDate=H,p.endArray=ft(H),l.valueFormat){let j=ct(l,R,l.valueFormat),P=ct(l,H,l.valueFormat);s("update:modelValue",[j,P],{})}else s("update:modelValue",[R,H],{})}else{let J=L,X=de(J[0]),Z=de(J[1]),ne=de(J[2]),R=new Date(X,Z-1,ne);if(p.startDate=R,p.startArray=ft(R),l.valueFormat){let I=ct(l,R,l.valueFormat);s("update:modelValue",I,{})}else s("update:modelValue",R,{})}s("change",L,{})}},M=L=>{let X=L.target.value;b.value=!0,s("focus",X,L)},k=L=>{setTimeout(()=>{b.value=!1},0);let X=L.target.value;l.maxLength&&X.length>Number(l.maxLength)&&(X=X.slice(0,Number(l.maxLength))),s("blur",X,L)},V=t.computed(()=>He(l.unit)>0),D=L=>{m(),s("update:modelValue",null,L),s("change","",L),s("clear","")},W=t.ref();return pe({showPicker:A,hidePicker:E,focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const L={class:B.value,style:_.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:w.value,onClick:A,onFocus:M,onBlur:k,onClear:D},J={};a.slots.prepend&&(J.prepend=a.slots.prepend),a.slots.append&&(J.append=a.slots.append),a.slots.prefix?J.prefix=a.slots.prefix:J.prefix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Te.Calendar)}),a.slots.suffix?J.suffix=a.slots.suffix:V.value&&(J.suffix=()=>[l.unit]);const X=[],Z=t.h(O.ElInput,L,J);X.push(Z);const ne={default:()=>X};a.slots.default&&(ne.label=a.slots.default),a.slots.fixedTip&&(ne.fixedTip=a.slots.fixedTip);const R=Ft(l,wl);R.visible=z.value,R["onUpdate:visible"]=T,R["default-value"]=g.value,R.onChoose=C;const I={};if(a.slots.btn){const Y=a.slots.btn();I.btn=()=>Y}a.slots.day&&(I.day=a.slots.day),a.slots.topInfo&&(I.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(I.bottomInfo=a.slots.bottomInfo);const H=t.h(yn,R,I);ne.hide=()=>[H];const P={...Ce(l,$o),hintText:h.value,hintVisible:c.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,P,ne)}}}}const{componentName:Xu,create:Zu,scope:Ju}=ie("calendar-item"),Sl=Zu(Gu(Xu,Ju,we)),ko={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qu(e,n,o){return{props:{...be,...$e,...ko},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue"),b=e,N=t.computed(()=>({[b]:!0})),p=_=>{c.value=_,s("update:modelValue",_),s("change",_)};let m=fe(l,"hintText"),v=t.ref(!1);const w=_=>{let A=_.target.value;h.value=!0,ge(m.value)||(v.value=!0),s("focus",A,_)},g=_=>{setTimeout(()=>{v.value&&(v.value=!1),h.value=!1},0);let A=_.target.value;l.maxLength&&A.length>Number(l.maxLength)&&(A=A.slice(0,Number(l.maxLength))),s("blur",A,_)},f=()=>{s("clear","")},B=_=>{s("visible-change",_)},q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const z={...a.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:f,onFocus:w,onBlur:g,onVisibleChange:B},A={},E=[],T=t.h(O.ElTimePicker,z,A);E.push(T);const C={default:()=>E};a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip);const k={...Ce(l,ko),hintText:m.value,hintVisible:v.value,prop:`${l.prop}_item`};return t.h(o,k,C)}}}}const{componentName:ec,create:tc,scope:nc}=ie("time-item"),Tl=tc(Qu(ec,nc,we)),Do={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function lc(e,n,o){return{props:{...be,...$e,...Do},emits:["change","update:modelValue","blur","focus","clear"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue"),b=e,N=t.computed(()=>({[b]:!0})),p=q=>{c.value=q,s("update:modelValue",q),s("change",q)};let m=fe(l,"hintText"),v=t.ref(!1);const w=q=>{let z=q.target.value;h.value=!0,ge(m.value)||(v.value=!0),s("focus",z,q)},g=q=>{setTimeout(()=>{v.value&&(v.value=!1),h.value=!1},0);let z=q.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),s("blur",z,q)},f=()=>{s("clear","")},B=t.ref();return pe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const _={...a.attrs,ref:B,class:N.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:f,onFocus:w,onBlur:g},z={},A=[],E=t.h(O.ElTimeSelect,_,z);A.push(E);const T={default:()=>A};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const M={...Ce(l,Do),hintText:m.value,hintVisible:v.value,prop:`${l.prop}_item`};return t.h(o,M,T)}}}}const{componentName:oc,create:ac,scope:rc}=ie("time-select-item"),Cl=ac(lc(oc,rc,we));function No(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Eo(e,n,o=20){if(typeof n=="string"&&(n=de(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=ba(`${e}`,`${n}`);return No(l)}else{let l=ol(`${e}`,wa(`${n}`),20);return No(l)}}function ic(e,n=-1,o=!1,l=3,a=","){return Qt(e,n,o,l,a)}function Vo(e,n,o,l,a=!0){if(e=="")return"";if(e=xa(e),n=de(n),n==1)return e;if(l)e=Eo(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=ol(e,1,de(o)));else{let r=-1*n;e=Eo(e,r)}return e}function Io(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),a=Kn(e,n.min);if(l&&a==-1||!l&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";o.message=r.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=ue(n.maxInclude),a=Kn(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Po={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 sc(e,n,o){return{props:{...be,...$e,...Po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=t.ref(!1),d=fe(l,"modelValue"),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([k,V,D])=>{if(ge(k)){h.value="";return}const W=Vo(k,V,D,!1);h.value!==W&&(h.value=W)},{immediate:!0});const c=t.computed(()=>{let k="";return u.value&&(k=h.value),k}),{t:b}=ye.useFoxI18n(n),N=t.computed(()=>{let k=l.placeholder??"";return!u.value&&!ge(h.value)?k=ic(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):k=b(["placeholder",k]),k}),p=e,m=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__placeholder`]:h.value.length>0})),v=Ne(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>u.value?{textAlign:"left"}:{textAlign:v.value??"right"});const w=t.ref(""),g=t.computed(()=>{let k=w.value;return ge(k)&&(k=l.errorTip??""),k}),f=t.ref(""),B=t.ref(!1),q=(k,V)=>{if(k=`${k}`,ge(k)){h.value="",d.value="",V.forEach(D=>{s(D,"")}),ue(l.showTip)&&B.value&&(B.value=!1);return}if(k.length>=2){let D=k;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){t.triggerRef(h);return}}if(k!="-"){if(!Ea(k)){t.triggerRef(h);return}if(l.integerLength!=-1&&Va(k)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Ia(k)>Number(l.decimalLength)){t.triggerRef(h);return}let D=Io(k,l);if(D.maxValid===!1){w.value=D.message,t.triggerRef(h);return}}else if(l.min!=null&&de(l.min)>=0){t.triggerRef(h);return}f.value=k,ue(l.showTip)&&(B.value=k.length>0),h.value=k,d.value=Vo(k,l.rates,l.precision,!0),V.forEach(D=>{s(D,d.value)})},_=k=>{q(k,["update:modelValue","input"])},z=k=>{q(k,["update:modelValue","change"])},A=k=>{if(u.value=!0,ue(l.showTip)){let V=h.value;ge(V)&&(V=l.hintText),ge(V)||(f.value=V,B.value=!0)}w.value="",s("focus",d.value,k)},E=k=>{if(setTimeout(()=>{u.value=!1,ue(l.showTip)&&B.value===!0&&(B.value=!1)},0),!ge(h.value)){let V=Io(h.value,l);if(V.minValid===!1||V.maxValid===!1){w.value=V.message;return}}s("update:modelValue",d.value,k),s("blur",d.value,k)},T=()=>{s("clear","")},C=t.computed(()=>He(l.unit)>0),M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const V={...Ke(a.attrs),ref:M,class:m.value,type:"digit",maxlength:l.maxLength,placeholder:N.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:T,onInput:_,onChange:z,onFocus:A,onBlur:E},D={};a.slots.prepend&&(D.prepend=a.slots.prepend),a.slots.append&&(D.append=a.slots.append),a.slots.prefix&&(D.prefix=a.slots.prefix),a.slots.suffix?D.suffix=a.slots.suffix:C.value&&(D.suffix=()=>[l.unit]);const W=[],L=t.h(O.ElInput,V,D);W.push(L);const J={default:()=>W};a.slots.default&&(J.label=a.slots.default),a.slots.fixedTip&&(J.fixedTip=a.slots.fixedTip);const Z={...Ce(l,Po),errorTip:g.value,hintText:f.value,hintVisible:B.value,hintType:"number",prop:`${l.prop}_item`};return t.h(o,Z,J)}}}}const{componentName:uc,create:cc,scope:fc}=ie("money-item"),$l=cc(sc(uc,fc,we)),Oo={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 dc(e,n,o){return{props:{...be,...$e,...Oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue"),b=e,N=t.computed(()=>({[b]:!0,[`${b}__append`]:_.value})),p=t.computed(()=>({[`${b}__unit`]:!0})),m=A=>{c.value=A,s("update:modelValue",A),s("input",A)},v=A=>{s("change",A)};let w=fe(l,"hintText"),g=t.ref(!1);const f=A=>{let T=A.target.value;h.value=!0,ge(w.value)||(g.value=!0),s("focus",T,A)},B=A=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let T=A.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),s("blur",T,A)},q=()=>{s("clear","")},_=t.computed(()=>He(l.unit)>0),z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const E={...Ke(a.attrs),ref:z,class:N.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:q,onChange:v,onInput:m,onFocus:f,onBlur:B},T={},C=[],M=t.h(O.ElInputNumber,E,T);C.push(M);const k={default:()=>C};a.slots.default&&(k.label=a.slots.default),a.slots.fixedTip&&(k.fixedTip=a.slots.fixedTip);const D={...Ce(l,Oo),hintText:w.value,hintVisible:g.value,prop:`${l.prop}_item`};if(a.slots.append)k.append=a.slots.append;else if(_.value){const L={class:p.value},J=t.h("div",L,[l.unit]);k.append=()=>J}return t.h(o,D,k)}}}}const{componentName:hc,create:mc,scope:gc}=ie("input-number-item"),kl=mc(dc(hc,gc,we));function Ye(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function pc(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let vc=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,a);const r=Oe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l,a))}};function yc(){const e=t.getCurrentInstance();return new vc(e.proxy)}function Qn(e,n,o){const l=Ye(e,n),a=Ye(e,o);if(l!==a)return!1;const r=rt(e,n),i=rt(e,o);return r===i}function hr(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const s=n[i];if(Array.isArray(s)){const u=hr(e,s,o,l);a.push(u)}else{let u=!1;for(let d of r){if(o==="text")u=Ye(e,d)===s;else if(o==="item")u=Qn(e,d,s);else{let h=rt(e,d);h==null&&(h=Ye(e,d)),u=h===s}if(u){a.push(d),r=pc(e,d);break}}if(!u)break}}return a}function bc(e){return{text:e,value:e}}const Ao={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function wc(e,n,o){return{props:{...be,...$e,...Ao},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(null),c=t.ref([]),b=t.computed(()=>c.value?c.value.map($=>Array.isArray($)?$.map(S=>Ye(l,S)).join(" "):Ye(l,$)).join(" "):""),N=(Y,$,y,S=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(h.value===Y)return;h.value=Y;const x=t.toRaw(Y);if(S){const K=U?.value.getCheckedNodes();if(K)if(l.multiple){const Q=[];K.forEach(le=>{const oe=(le.pathNodes??[]).map(re=>re.data);Q.push(oe)}),s("update:pathNodes",Q)}else{const le=(K[0]?.pathNodes??[]).map(ee=>ee.data);s("update:pathNodes",le)}s("update:modelValue",x),s("change",x)}return}const F=hr(l,Y,$,y);if(F===null){if(c.value.length===0||c.value===null)return;c.value=[],h.value=null,S&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const G=F[F.length-1];if(T.value.checkStrictly!==!0&&!Array.isArray(G)&&Array.isArray(G.children)&&G.children.length>0){const x=[];F.forEach(K=>{const Q=`${Ye(l,K)}`;x.push(Q)}),x.length>0&&(E.value=x.join(l.separator))}else E.value=null;let te=!0;if(F.length!==c.value.length)te=!1;else for(let x=0;x<F.length;x++){const K=F[x],Q=c.value[x];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let le=0;le<K.length;le++)if(!Qn(l,K[le],Q[le])){te=!1;break}}else Qn(l,K,Q)||(te=!1);if(!te)break}if(!te){c.value=F;let x=[],K=[];F.forEach(le=>{if(Array.isArray(le)){let ee=[],oe=[];for(let re of le)ee.push(rt(l,re)),l.valueType==="text"?oe.push(Ye(l,re)):l.valueType==="item"?oe.push(re):oe.push(rt(l,re));x.push(ee),K.push(oe)}else x.push(rt(l,le)),l.valueType==="text"?K.push(Ye(l,le)):l.valueType==="item"?K.push(le):K.push(rt(l,le))}),h.value=x;const Q=t.toRaw(K);S&&(s("update:pathNodes",F),s("update:modelValue",Q),s("change",Q))}},p=t.ref([]),m=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Be.Near,Y=>ue(Y)),v=yc(),w=async(Y,$)=>{if(Y){const y=await v.load("cascader",Y,$);if(y.length>0)if(typeof y[0]=="string"){let G=y.map(te=>bc(te));p.value=G}else p.value=y}};t.watch([()=>l.source,()=>l.params],async([Y,$])=>{w(Y,$)},{immediate:!(m.value||l.lazy)});let g=!1;const f=()=>{g||(g=!0,w(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([Y,$])=>{N($,l.valueType,Y,!1)}),l.lazy&&N(l.modelValue,"value",[],!1);let B=null,q=t.ref(!1);typeof l.remoteMethod=="function"&&(B=async Y=>{if(Y!=null){q.value=!0;try{const $=await l.remoteMethod(Y);p.value=$}catch($){console.error($)}q.value=!1}});const _=t.ref(!1),z=e,A=t.computed(()=>({[z]:!0})),E=t.ref(null),T=t.computed(()=>{let Y={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(Y.multiple=!0),l.props&&Object.assign(Y,l.props),l.lazy&&(Y.lazy=!0,Y.lazyLoad=async($,y)=>{const S=await v.load("cascader",l.source,$,!0);if($?.config?.checkStrictly!==!0&&Array.isArray(h.value)&&h.value.length===$.level){const F=$.pathLabels??[];let G=[];F.forEach(te=>{te&&G.push(te)}),G.length>0&&(E.value=G.join(l.separator))}else E.value=null;y(S)}),Y}),C=Y=>{l.allowCreate?(s("update:modelValue",Y),s("change",Y),h.value=Y):N(Y,"value",p.value,!0)};let M=fe(l,"hintText"),k=t.ref(!1);const V=Y=>{let y=Y.target.value;_.value=!0,ge(M.value)||(k.value=!0),s("focus",y,Y)},D=Y=>{setTimeout(()=>{k.value&&(k.value=!1),_.value=!1},0);let y=Y.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),I.value||s("blur",y,Y)},W=()=>{s("clear","")},L=t.ref(!1);let J=null;const X=()=>{l.showTooltip&&L.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{L.value=!0},150))},Z=()=>{J&&(clearTimeout(J),L.value=!1,J=null)},ne=t.computed(()=>L.value||k.value),R=t.computed(()=>L.value?b.value:M.value),I=t.ref(!1),H=Y=>{I.value=Y,s("visible-change",Y),Y||s("selected")},j=Y=>{s("remove-tag",Y)},P=Y=>{s("expand-change",Y)},U=t.ref();return pe({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},getCheckedNodes:()=>U?.value.getCheckedNodes()}),()=>{const $={...a.attrs,ref:U,class:A.value,props:T.value,clearable:l.clearable,placeholder:E.value||d.placeholder.value,disabled:r.value||i.value,options:p.value,modelValue:h.value,separator:l.separator,onClear:W,onChange:C,onFocus:V,onBlur:D,onVisibleChange:H,onRemoveTag:j,expandChange:P};typeof B=="function"&&($["remote-method"]=B,$.loading=q.value);const y={};a.slots.option&&(y.default=a.slots.option),a.slots.empty&&(y.empty=a.slots.empty);const S=[],F=t.h(O.ElCascader,$,y);S.push(F);const G={default:()=>S};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const x={...Ce(l,Ao),hintText:R.value,hintVisible:ne.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:X,onMouseleave:Z};return m.value&&!l.lazy&&(x["appear-listen"]=!0,x.onAppear=f),t.h(o,x,G)}}}}const{componentName:xc,create:Sc,scope:Tc}=ie("cascader-item"),Dl=Sc(wc(xc,Tc,we)),Fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Cc(e,n,o){return{props:{...be,...$e,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue"),b=e,N=t.computed(()=>({[b]:!0})),p=z=>{c.value=z,s("update:modelValue",z),s("input",z)},m=z=>{s("change",z)},v=z=>{s("select",z)};let w=fe(l,"hintText"),g=t.ref(!1);const f=z=>{let E=z.target.value;h.value=!0,ge(w.value)||(g.value=!0),s("focus",E,z)},B=z=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let E=z.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),s("blur",E,z)},q=()=>{s("clear","")},_=t.ref();return pe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const A={...a.attrs,ref:_,class:N.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,onClear:q,onChange:m,onInput:p,onFocus:f,onBlur:B,onSelect:v},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix&&(E.suffix=a.slots.suffix),a.slots.option&&(E.default=a.slots.option);const T=[],C=t.h(O.ElAutocomplete,A,E);T.push(C);const M={default:()=>T};a.slots.default&&(M.label=a.slots.default),a.slots.fixedTip&&(M.fixedTip=a.slots.fixedTip);const V={...Ce(l,Fo),hintText:w.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(o,V,M)}}}}const{componentName:$c,create:kc,scope:Dc}=ie("autocomplete-item"),Nl=kc(Cc($c,Dc,we));function Nc(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=n;for(let d=0;u&&d<r.length;d++){let h=r[d],c=u.find(b=>b[l]===h);if(!c)break;i.push(c[o])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<r.length;u++){let d=n[u],h=r[u];const c=d.find(b=>b[l]===h);if(!c)break;i.push(c[o])}else{let u=n;for(let d=0;u&&d<r.length;d++){let h=r[d],c=u.find(b=>b[l]===h);if(!c)break;i.push(c[o]),u=c[a]}}return i}let Ec=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Vc(){const e=t.getCurrentInstance();return new Ec(e.proxy)}const mr={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 Ic(e,n){return{props:{...mr},setup(o,{attrs:l,slots:a}){const r=Vc(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([d,h])=>{i.value=await r.load(o.sourceType,d,h)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Nc(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const d={...l};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},s.value):t.h(u,d,{default:()=>s.value}):t.h(u,d,s.value)}}}}const{componentName:Xg,create:Pc,scope:Zg}=ie("mapping"),Ot=Pc(Ic());function Oc(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,s=r.indexOf("["),u=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=r.substring(s+1,u);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,s);l=l[c][h]}else l=l[h];i++}s=r.indexOf("[",u),u=s==-1?-1:r.indexOf("]",s)}i===0&&(l=l[r])}return l}function Ac(e,n){return{props:{...mr},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const s=Oc(i.row,i.column.property);return a.default?t.h(Ot,{...o,modelValue:s},{default:a.default}):t.h(Ot,{...o,modelValue:s})}};return t.h(O.ElTableColumn,{...l},r)}}}}const{componentName:Jg,create:Fc,scope:Qg}=ie("table-mapping-column"),El=Fc(Ac()),Bc=Symbol.for("TableStateKey");function Bo(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,s=r.indexOf("["),u=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=r.substring(s+1,u);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,s);l=l[c][h]}else l=l[h];i++}s=r.indexOf("[",u),u=s==-1?-1:r.indexOf("]",s)}i===0&&(l=l[r])}return l}function Mc(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Bc,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=Bo(s.row,s.column.property),d=r?Bo(r,s.column.property):null,h=u===d,c={class:{"el-radio__input":!0,"is-checked":h}},b=t.h("span",c,[t.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":h}};return t.h("label",N,[b])}};return t.h(O.ElTableColumn,{...l},i)}}}}const{componentName:ep,create:Rc,scope:tp}=ie("table-radio-column"),Vl=Rc(Mc()),Lc={},_c={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"},qc=t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),zc=[qc];function jc(e,n){return t.openBlock(),t.createElementBlock("svg",_c,zc)}const Hc=ke(Lc,[["render",jc]]),{componentName:np,create:Kc,scope:lp}=ie("table-setting"),Yc={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:"不固定"}},Wc=Kc({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:Hc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...Yc},setup(e,{emit:n,attrs:o}){let l=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(P=>P.label===""||P.type?!1:P.fixed===""||P.fixed===!0||P.fixed==="left")),i=t.computed(()=>a.value.filter(P=>P.label===""||P.type?!1:P.fixed==="right")),s=t.computed(()=>a.value.filter(P=>!(P.label===""||P.type||P.fixed!==void 0))),u=t.computed(()=>(r.value.length>0||i.value.length>0)&&s.value.length>0),d=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),c=P=>P.length>1,b=(P,U)=>{Array.isArray(P)&&Array.isArray(U)&&P.forEach(y=>{U.some(S=>S.prop===y.prop?(y.label=S.label,!0):!1)});const Y=[];a.value=P.map((y,S)=>(!(y.label===""||y.type)&&y.visible!==!1&&Y.push(y.prop),{...y,sortIndex:S})),s.value.length+r.value.length+i.value.length===Y.length?g.value=!0:Y.length>0&&(f.value=!0),_.value=Y},N=P=>P?P.type?P.type:P.label?P.prop:"":"",p=(P,U)=>{if(P.length!==U.length)return!1;const Y=P.map($=>N($));for(let $ of U){const y=N($);if(Y.indexOf(y)===-1)return!1}return!0},m=P=>{if(!P){const U=e.tableRef.getColumnSetting(),Y=U.srcColumnPropertyList;l=Y.map(($,y)=>({...$,sortIndex:y})),P=U.columnPropertyList,P&&P.length>0&&p(Y,P)||(P=Y)}b(P,l)},v=()=>{e.tableRef.setColumnSetting(a.value)},w=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),f=t.ref(!1),B=P=>{const U=[];a.value.forEach($=>{P&&!($.label===""||$.type)&&U.push($.prop),$.visible=P}),g.value=!1,f.value=!1,s.value.length+r.value.length+i.value.length===U.length?g.value=!0:U.length>0&&(f.value=!0),_.value=U,v()},q=()=>{m(l),v()},_=t.ref([]),z=P=>{a.value.forEach(Y=>{if(Y.label===""||Y.type)return;const $=P.indexOf(Y.prop)!==-1;Y.visible=$}),g.value=!1,f.value=!1;const U=s.value.length+r.value.length+i.value.length;P.length===U?g.value=!0:P.length>0&&(f.value=!0),v()},A=()=>{m()};t.onMounted(()=>{setTimeout(()=>{m()},50)});const E={currentRow:null,index:null,roleType:null},T=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,T(P)):null:null,C=P=>{const U=P.currentTarget;U&&U.dataset&&(E.roleType=U.dataset.roleType,E.index=U.dataset.index)},M=P=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},k=P=>{const U=P.currentTarget;P.relatedTarget;const Y=T(U);if(!Y)return;const $=Y.dataset&&Y.dataset.roleType;E.roleType===$&&(P.preventDefault(),E.currentRow&&E.currentRow!==Y&&E.currentRow.classList.remove("is-dragover"),Y.classList.add("is-dragover"),E.currentRow=Y)},V=P=>{P.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},D=P=>{const U=P.currentTarget,Y=T(U);if(!Y)return;const $=Y.dataset&&Y.dataset.roleType;if(E.roleType!==$)return;P.preventDefault();const y=Number(E.index),S=Number(Y.dataset.index);if(y!==S){if(y<S){const F=a.value[y];a.value.splice(y,1),a.value.splice(S,0,F)}else{const F=a.value[y];a.value.splice(y,1),a.value.splice(S+1,0,F)}b(a.value,l),v()}},W=P=>{const U=a.value[P];U.fixed="left",v()},L=P=>{const U=a.value[P];U.fixed="right",v()},J=P=>{const U=a.value[P];U.fixed=void 0,v()},X=new Map;let Z=null;function ne(P){const U=document.createRange();return U.setStart(P,0),U.setEnd(P,P.childNodes.length),U.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:c,isCheckAll:g,isIndeterminate:f,handleCheckAllChange:B,handleReset:q,checkedValue:_,handleCheckChange:z,onShow:A,onDragStart:C,onDragEnd:M,onDragOver:k,onDragLeave:V,onDrop:D,toLeftFixed:W,toRightFixed:L,toUnFixed:J,checkboxLabelStyle:w,onMouseOverForOverflowText:(P,U,Y)=>{const $=P.currentTarget;if($){const y=Math.floor($.offsetWidth);if(Math.floor(ne($))>y){let F=X.get(U);if(F){if(F===Z)return;Fe.hide(F)}F=Fe.show($,Y,{type:"text",placement:"top",closeOnClick:!1}),X.set(U,F),Z=F}}},onMouseLeaveForOverflowText:(P,U)=>{const Y=X.get(U);Y&&(Fe.hide(Y),Y===Z&&(Z=null))},onMouseOverForTip:(P,U)=>{const Y=P.currentTarget;Y&&(Z&&Fe.hide(Z),Z=Fe.show(Y,U,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:P=>{Z&&(Fe.hide(Z),Z=null)}}}}),Uc={class:"fox-table-setting"},Gc={class:"fox-table-setting__header"},Xc={class:"fox-table-setting__body"},Zc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Jc={key:0,class:"fox-table-setting__body-title"},Qc=["data-index","draggable"],ef=["onMouseover","onMouseleave"],tf={class:"tools-item"},nf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},lf={key:0,class:"fox-table-setting__body-title"},of=["data-index","draggable"],af=["onMouseover","onMouseleave"],rf={class:"tools-item"},sf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},uf={key:0,class:"fox-table-setting__body-title"},cf=["data-index","draggable"],ff=["onMouseover","onMouseleave"],df={class:"tools-item"};function hf(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("Download"),b=t.resolveComponent("fox-checkbox"),N=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Uc,[t.createElementVNode("div",Gc,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Xc,[t.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Zc,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Jc,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[6]||(n[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[7]||(n[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[8]||(n[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[9]||(n[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,m.prop,m.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,ef)]),_:2},1032,["label"]),t.createElementVNode("div",tf,[t.createVNode(h,{onClick:v=>e.toUnFixed(m.sortIndex),onMouseover:n[1]||(n[1]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:n[2]||(n[2]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toRightFixed(m.sortIndex),onMouseover:n[3]||(n[3]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:n[4]||(n[4]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Qc))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",nf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",lf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[15]||(n[15]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[16]||(n[16]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[17]||(n[17]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[18]||(n[18]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,m.prop,m.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,af)]),_:2},1032,["label"]),t.createElementVNode("div",rf,[t.createVNode(h,{onClick:v=>e.toLeftFixed(m.sortIndex),onMouseover:n[10]||(n[10]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toRightFixed(m.sortIndex),onMouseover:n[12]||(n[12]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:n[13]||(n[13]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,of))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",sf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",uf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[24]||(n[24]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[25]||(n[25]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[26]||(n[26]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[27]||(n[27]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(b,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,m.prop,m.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,ff)]),_:2},1032,["label"]),t.createElementVNode("div",df,[t.createVNode(h,{onClick:v=>e.toUnFixed(m.sortIndex),onMouseover:n[19]||(n[19]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:n[20]||(n[20]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toLeftFixed(m.sortIndex),onMouseover:n[21]||(n[21]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,cf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const bn=ke(Wc,[["render",hf]]);let mf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,s){if(Array.isArray(o)){let d=(l-1)*a,h=d+a;h>o.length&&(h=o.length);const c=o.slice(d,h);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,s]);const u=Oe(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(u,null,[o,l,a,r,i,s]))}};function gf(){const e=t.getCurrentInstance();return new mf(e.proxy)}let pf=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function vf(){const e=t.getCurrentInstance();return new pf(e.proxy)}const yf=Symbol.for("TableStateKey"),Mo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{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"}},Ro={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:!0},paginationSmall:{type:[Boolean],required:!1,default:!1},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Fn={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:"不固定"}},bf={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function wf(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,s=r.indexOf("["),u=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=r.substring(s+1,u);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,s);l=l[c][h]}else l=l[h];i++}s=r.indexOf("[",u),u=s==-1?-1:r.indexOf("]",s)}i===0&&(l=l[r])}return l}function Bn(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=wf(l,a);if(r!==i)return!1}return!0})}function xf(e,n,o){return{inheritAttrs:!1,props:{...be,...$e,...Mo,...Ro,...Fn,...bf},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=ye.useFoxI18n(n),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...ee){return _.value}}},l.prop??a.attrs.name),s=e,u=t.computed(()=>({[s]:!0})),d=t.computed(()=>({[`${s}__setting`]:!0})),h=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${l.footerAlign}`]:!0})),c=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${l.paginationAlign}`]:!0})),b=t.shallowRef({}),N=t.computed(()=>({...b.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),m=t.ref(l.pageSize),v=ue(l.infiniteLoad);v||(t.watch(()=>l.pageIndex,ee=>{p.value=ee}),t.watch(()=>l.pageSize,ee=>{m.value=ee}),t.watch([p,m],([ee,oe],[re,se])=>{oe!==se&&(p.value=1,ee=1),T(l.data,ee,oe,N.value)}));const w=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);w()&&t.watch([()=>l.data,N],async([ee,oe],[re,se])=>{w()&&(ee!==re&&(A=!0),!(!Array.isArray(ee)&&Le(ee,re)&&Le(oe,se))&&(v?(p.value=0,B.value=!0,_.value=[],M()):p.value===1?T(ee,p.value,m.value,oe):p.value=1))},{deep:!0});const g=ee=>{p.value=ee,i("page-index-change",ee)},f=ee=>{m.value=ee,i("page-size-change",ee)},B=t.ref(!0),q=t.ref(0),_=t.ref(),z=gf();let A=!0;const E=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Be.Near,ee=>ue(ee)),T=async(ee,oe,re,se,ve)=>{A=!1;try{if(ve===!0){if(!B.value)return!1;const me=await z.load("table",ee,oe,re,se,A,r.value);return q.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,_.value,me.page),setTimeout(()=>{i("loaded-data")},250),(_.value?.length??0)>=q.value)||me.page.length<re?(B.value=!1,!1):!0}else{const me=await z.load("table",ee,oe,re,se,A,r.value);return q.value=me.totalSize,_.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),q.value=0,_.value=[]}return!1};let C=!1;const M=async()=>{if(!C){if(C=!0,!B.value){C=!1;return}p.value+=1,await T(l.data,p.value,m.value,N.value,!0),C=!1}},k=(ee={},oe=!1)=>new Promise(async re=>{b.value=t.toRaw(ee??{}),oe||(p.value=l.pageIndex??1),v===!0?(p.value=0,_.value=[],B.value=!0,await M()):await T(l.data,p.value,m.value,N.value),re()}),V=()=>{q.value=0,_.value=[],v===!0&&(p.value=0,B.value=!0)};let D=!1;const W=()=>{D||(D=!0,k())},L=t.ref(null);if(v===!0){let ee=null;const oe=()=>{L.value&&(ee=new IntersectionObserver(se=>{let ve=!1;for(let me of se)if(me.intersectionRatio>0){ve=!0;break}ve&&M()}),ee.observe(L.value))},re=()=>{!ee||!L.value||(ee.unobserve(L.value),ee=null)};t.onMounted(oe),t.onBeforeUnmount(re)}w()&&!E.value&&k();const J=t.ref(null);t.provide(yf,{currentRow:J});const X=(ee,oe)=>{J.value=ee,i("current-change",ee,oe)},Z=(ee,oe,re)=>{i("row-click",ee,oe,re),ue(l.rowClickSelectable)===!0&&le?.value.toggleRowSelection(ee)},ne=[],R=(ee,oe)=>{if(i("expand-change",ee,oe),ue(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=ne.length;ne.splice(0,re)}else{ne.forEach(se=>{se!==ee&&le?.value.toggleRowExpansion(se,!1)});const re=ne.length;ne.splice(0,re,ee)}},I=a.attrs.id??l.prop??a.attrs.name,H=vf(),j=t.ref([]);let P=[];const U=()=>({srcColumnPropertyList:P.map(oe=>({...oe})),columnPropertyList:j.value}),Y=ee=>{j.value=[...ee],y()},$=async()=>{const ee=await H.load(I);ee&&(j.value=ee)},y=()=>{H.save(I,j.value)},S=()=>{H.remove(I)};$();const F=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",G=t.computed(()=>{if(typeof a.slots.default=="function"){const ee=a.slots.default(),oe=new Map;if(P=[],ee.forEach(re=>{const se=re;if(!se.props)return;const ve=F(se.props);oe.set(ve,re);const me={label:"",prop:""};Object.assign(me,se.props),P.push(me)}),j.value.length===P.length){const re=[];for(let se of j.value){const ve=F(se),me=oe.get(ve);if(!me)return ee;if(se.visible===!1)continue;const Ze=me;Ze.props.fixed=se.fixed,re.push(Ze)}return re}return ee}return[]}),te=t.shallowRef(new Map),x=({column:ee,rowIndex:oe})=>{const re=`${oe}_${ee.property}`;return te.value.get(re)??""},K=ee=>typeof ee=="function"?oe=>{const re=[];let se=x(oe);return se&&re.push(se),se=ee(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:x,Q=(ee,oe,re)=>{const se=`${ee}_${oe}`;re?te.value.set(se,re):te.value.delete(se),t.triggerRef(te)},le=t.ref();return pe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{le?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!_.value)return;const re=Bn(_.value,ee);re.length!==0&&re.forEach(se=>{le?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{le?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!_.value)return;const re=Bn(_.value,ee);re.length!==0&&re.forEach(se=>{le?.value.toggleRowExpansion(se,oe)})},setCurrentRow:ee=>{le?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!_.value)return;const oe=Bn(_.value,ee);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:ee=>{le?.value.clearFilter(ee)},doLayout:()=>{le?.value.doLayout()},sort:(ee,oe)=>{le?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{le?.value.scrollTo(ee,oe)},setScrollTop:ee=>{le?.value.setScrollTop(ee)},setScrollLeft:ee=>{le?.value.setScrollLeft(ee)},loadData:k,clearData:V,getData(){return _.value},getTotalSize(){return q.value},getPageIndex(){return p.value},getPageSize(){return m.value},getColumnSetting:U,setColumnSetting:Y,removeColumnSetting:S,setCellClassName:Q}),()=>{const oe={...Ke(a.attrs),onCurrentChange:X,onRowClick:Z,onExpandChange:R,data:_.value,ref:le,class:u.value,"cell-class-name":K(l.cellClassName)},re={};if(a.slots.default&&(re.default=()=>G.value),a.slots.append&&(re.append=()=>a.slots.append),a.slots.empty&&(re.empty=()=>a.slots.empty),v===!0){const _e=[];if(B.value){const St=t.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(St);const kn=t.h("span",{class:`${s}__infinite-text`},[l.loadText]);_e.push(kn)}else{const St=t.h("span",{class:`${s}__infinite-text`},[l.loadMoreText]);_e.push(St)}const nt={ref:L,class:`${s}__infinite`},$n=t.h("div",nt,_e);re.append=()=>$n}const se=t.h(O.ElTable,oe,re),ve=[];if(ve.push(se),!v){let _e=null;if(typeof a.slots.pagination=="function")_e=a.slots.pagination();else if(l.showPagination){const nt={class:c.value,total:q.value,pageSize:m.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":g,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};_e=t.h(O.ElPagination,nt)}if(l.showSetting){const nt=[];_e&&nt.push(_e);const $n=t.h(O.ElIcon,{class:d.value},{default:()=>t.h(Te.Setting)}),St=Ft(l,Fn),kn=t.h(bn,{...St,tableRef:{getColumnSetting:U,setColumnSetting:Y,removeColumnSetting:S}},{default:()=>$n});nt.push(kn);const Nr=t.h("div",{class:h.value},nt);ve.push(Nr)}else _e&&ve.push(_e)}const me={default:()=>ve},xt={...Ce(l,Mo,Ro,Fn),prop:`${l.prop}_item`};return xt.contentClass=`${s}__wrap`,xt.errorMarkClass="is-table-error",E.value&&w()&&(xt["appear-listen"]=!0,xt.onAppear=W),t.h(o,xt,me)}}}}const{componentName:Sf,create:Tf,scope:Cf}=ie("table-item"),Il=Tf(xf(Sf,Cf,we));function yt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function At(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $f(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let kf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Df(){const e=t.getCurrentInstance();return new kf(e.proxy)}function gr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=yt(e,n),a=yt(e,o);if(l!==a)return!1;const r=At(e,n),i=At(e,o);return r===i}function Nf(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of l){let i=!1;if(o==="text")i=yt(e,r)===n;else if(o==="item")i=gr(e,r,n);else{let s=At(e,r);s==null&&(s=yt(e,r)),i=s===n}if(i){a=r;break}}return a}function Ef(e){return{text:e,value:e}}function Vf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Lo={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"},lazyLoad:{type:[Boolean,String],default:!1}};function If(e,n,o){return{inheritAttrs:!0,props:{...be,...$e,...Lo},emits:["change","update:modelValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=t.ref(null),d=t.ref(null),h=(z,A,E,T=!0)=>{const C=Nf(l,z,A,E);if(C===null){if(d.value===null)return;d.value=null,u.value=null,T&&(s("update:modelValue",null),s("change",null));return}if(!gr(l,C,d.value)){u.value=z;const k=t.toRaw(C);d.value=k;let V=null;l.valueType==="text"?V=yt(l,k):l.valueType==="item"?V=k:V=At(l,k),T&&(s("update:modelValue",V),s("change",V))}},c=t.ref([]),b=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Be.Near,z=>ue(z)),N=Df(),p=async(z,A)=>{if(z){const E=await N.load("radio",z,A);if(E.length>0)if(typeof E[0]=="string"){let M=E.map(k=>Ef(k));c.value=M}else c.value=E}};t.watch([()=>l.source,()=>l.params],async([z,A])=>{p(z,A)},{immediate:!b.value});let m=!1;const v=()=>{m||(m=!0,p(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([z,A])=>{h(A,l.valueType,z,!1)});const w=e,g=t.computed(()=>({[w]:!0,[`is-${l.direction}`]:!0})),f=z=>{h(z,"value",c.value,!0)};let B=fe(l,"hintText"),q=fe(l,"hintVisible");const _=(z,A)=>{const E=[];return z.forEach((T,C)=>{const M=At(l,T),k=yt(l,T);let V=$f(l,T);r.value===!0&&(V=r.value),i.value===!0&&(V=i.value);const D=Vf(l,T,C)??{},W=`${M}_${C}`,L={...D,key:W,label:M,size:l.size,border:ue(l.border)};V&&(L.disabled=V),l.itemType==="button"?E.push(t.h(O.ElRadioButton,L,{default:()=>[k]})):typeof A=="function"?E.push(t.h(O.ElRadio,L,{default:()=>A(T)})):E.push(t.h(O.ElRadio,L,{default:()=>[k]}))}),E};return()=>{const A={...Ke(a.attrs),class:g.value,disabled:r.value||i.value,modelValue:u.value,"text-color":l.textColor,fill:l.fill,onChange:f},E=[],T={};a.slots.options?T.default=a.slots.options:T.default=()=>_(c.value,a.slots.text);const C=t.h(O.ElRadioGroup,A,T);E.push(C);const M={default:()=>E};a.slots.default&&(M.label=a.slots.default),a.slots.fixedTip&&(M.fixedTip=a.slots.fixedTip);const V={...Ce(l,Lo),hintText:B.value,hintVisible:q.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&(V["appear-listen"]=!0,V.onAppear=v),t.h(o,V,M)}}}}const{componentName:Pf,create:Of,scope:Af}=ie("radio-item"),Pl=Of(If(Pf,Af,we));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ff(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Bf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Mf(){const e=t.getCurrentInstance();return new Bf(e.proxy)}function pr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=bt(e,n),a=bt(e,o);if(l!==a)return!1;const r=pt(e,n),i=pt(e,o);return r===i}function Rf(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){let s=!1;if(o==="text")s=bt(e,i)===r;else if(o==="item")s=pr(e,i,r);else{let u=pt(e,i);u==null&&(u=bt(e,i)),s=u===r}if(s){a.push(i);break}}}),a}function Lf(e){return{text:e,value:e}}function _f(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const _o={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"},lazyLoad:{type:[Boolean,String],default:!1}};function qf(e,n,o){return{inheritAttrs:!0,props:{...be,...$e,..._o},emits:["change","update:modelValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=t.ref([]),d=t.ref([]),h=(z,A,E,T=!0)=>{const C=Rf(l,z,A,E);if(C===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],T&&(s("update:modelValue",[]),s("change",[]));return}let M=!0;if(C.length!==d.value.length)M=!1;else for(let k=0;k<C.length;k++){const V=C[k],D=d.value[k];if(!pr(l,V,D)){M=!1;break}}if(!M){d.value=C;let k=[],V=[];C.forEach(W=>{k.push(pt(l,W)),l.valueType==="text"?V.push(bt(l,W)):l.valueType==="item"?V.push(W):V.push(pt(l,W))}),u.value=k;const D=t.toRaw(V);T&&(s("update:modelValue",D),s("change",D))}},c=t.ref([]),b=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Be.Near,z=>ue(z)),N=Mf(),p=async(z,A)=>{if(z){const E=await N.load("checkbox",z,A);if(E.length>0)if(typeof E[0]=="string"){let M=E.map(k=>Lf(k));c.value=M}else c.value=E}};t.watch([()=>l.source,()=>l.params],async([z,A])=>{p(z,A)},{immediate:!b.value});let m=!1;const v=()=>{m||(m=!0,p(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([z,A])=>{h(A,l.valueType,z,!1)});const w=e,g=t.computed(()=>({[w]:!0,[`is-${l.direction}`]:!0})),f=z=>{h(z,"value",c.value,!0)};let B=fe(l,"hintText"),q=fe(l,"hintVisible");const _=(z,A)=>{const E=[];return z.forEach((T,C)=>{const M=pt(l,T),k=bt(l,T);let V=Ff(l,T);r.value===!0&&(V=r.value),i.value===!0&&(V=i.value);const D=_f(l,T,C)??{},W=`${M}_${C}`,L={...D,key:W,class:l.itemClass,label:M,size:l.size,border:ue(l.border)};V&&(L.disabled=V),l.itemType==="button"?E.push(t.h(O.ElCheckboxButton,L,{default:()=>[k]})):typeof A=="function"?E.push(t.h(O.ElCheckbox,L,{default:()=>A(T)})):E.push(t.h(O.ElCheckbox,L,{default:()=>[k]}))}),E};return()=>{const A={...Ke(a.attrs),class:g.value,disabled:r.value||i.value,modelValue:u.value,"text-color":l.textColor,fill:l.fill,max:de(l.max),min:de(l.min),onChange:f},E=[],T={};a.slots.options?T.default=a.slots.options:T.default=()=>_(c.value,a.slots.text);const C=t.h(O.ElCheckboxGroup,A,T);E.push(C);const M={default:()=>E};a.slots.default&&(M.label=a.slots.default),a.slots.fixedTip&&(M.fixedTip=a.slots.fixedTip);const V={...Ce(l,_o),hintText:B.value,hintVisible:q.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&(V["appear-listen"]=!0,V.onAppear=v),t.h(o,V,M)}}}}const{componentName:zf,create:jf,scope:Hf}=ie("checkbox-item"),Ol=jf(qf(zf,Hf,we)),qo={modelValue:{type:[Number,String],required:!1}};function Kf(e,n,o){return{props:{...be,...$e,...qo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=fe(l,"modelValue",m=>de(m)),d=e,h=t.computed(()=>({[d]:!0})),c=m=>{s("update:modelValue",m),s("change",m)};let b=fe(l,"hintText"),N=t.ref(!1);const p=t.ref();return pe({}),()=>{const v={...Ke(a.attrs),ref:p,class:h.value,readonly:i.value||r.value,modelValue:u.value,onChange:c},w={},g=[],f=t.h(O.ElRate,v,w);g.push(f);const B={default:()=>g};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const _={...Ce(l,qo),hintText:b.value,hintVisible:N.value,prop:`${l.prop}_item`};return t.h(o,_,B)}}}}const{componentName:Yf,create:Wf,scope:Uf}=ie("rate-item"),Al=Wf(Kf(Yf,Uf,we)),zo={modelValue:{type:[Boolean,String,Number],required:!1}};function Gf(e,n,o){return{props:{...be,...$e,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=fe(l,"modelValue"),d=e,h=t.computed(()=>({[d]:!0})),c=m=>{s("update:modelValue",m),s("change",m)};let b=fe(l,"hintText"),N=fe(l,"hintVisible");const p=t.ref();return pe({}),()=>{const v={...Ke(a.attrs),ref:p,class:h.value,readonly:i.value,disabled:r.value,modelValue:u.value,onChange:c},w={},g=[],f=t.h(O.ElSwitch,v,w);g.push(f);const B={default:()=>g};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const _={...Ce(l,zo),hintText:b.value,hintVisible:N.value,prop:`${l.prop}_item`};return t.h(o,_,B)}}}}const{componentName:Xf,create:Zf,scope:Jf}=ie("switch-item"),Fl=Zf(Gf(Xf,Jf,we)),jo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Qf(e,n,o){return{props:{...be,...$e,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),s=t.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),d=fe(l,"modelValue"),h=e,c=t.computed(()=>({[h]:!0})),b=q=>{u("update:modelValue",q),u("change",q)};let N=fe(l,"hintText"),p=t.ref(!1);const m=q=>{let z=q.target.value;s.value=!0,ge(N.value)||(p.value=!0),u("focus",z,q)},v=q=>{setTimeout(()=>{p.value&&(p.value=!1),s.value=!1},0);let z=q.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),g.value||u("blur",z,q)},w=()=>{u("clear","")},g=t.ref(!1),f=q=>{g.value=q,u("visible-change",q),q||u("selected")},B=t.ref();return pe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const _={...Ke(a.attrs),ref:B,class:c.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:w,onFocus:m,onBlur:v,onVisibleChange:f},z={};a.slots.option&&(z.default=a.slots.option);const A=[],E=t.h(O.ElTreeSelect,_,z);A.push(E);const T={default:()=>A};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const M={...Ce(l,jo),hintText:N.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(o,M,T)}}}}const{componentName:ed,create:td,scope:nd}=ie("tree-select-item"),Bl=td(Qf(ed,nd,we));class ld{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function od(){const e=t.getCurrentInstance();return new ld(e.proxy)}const ad={},rd={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"},id=t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),sd=[id];function ud(e,n){return t.openBlock(),t.createElementBlock("svg",rd,sd)}const cd=ke(ad,[["render",ud]]),{componentName:sp,create:fd,scope:up}=ie("group-setting"),dd={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:"到底部"}},hd=fd({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:cd,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...dd},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=od(),s=R=>R.length>1,u=()=>{const R=[],I=[...r.value];r.value=I.map((j,P)=>(j.visible!==!1&&R.push(j.prop),{...j,sortIndex:P})),r.value.length===R.length?m.value=!0:R.length>0&&(v.value=!0),f.value=R},d=R=>{let I=null;if(typeof R=="string")I=document.querySelectorAll(`.fox-group[prop="${R}"] > div > .fox-item[prop]`);else if(R&&typeof R=="object"){const j=R.$el??R;typeof j.querySelectorAll=="function"&&(I=j.querySelectorAll(".fox-item[prop]"))}if(!I)return[];const H=[];return I.forEach(j=>{const P=j.querySelector(".label--string");let U="";P&&(U=P.textContent??"");const Y=j.getAttribute("prop")??"",y=window.getComputedStyle(j,null).getPropertyValue("display");H.push({label:U,prop:Y,sortIndex:0,visible:y!=="none"})}),H},h=()=>{if(!a){const R=d(e.groupRef??e.groupProp);if(R.length===0)return!1;a=R}return!0},c=async(R=!1)=>{const I=await i.load(e.groupProp),H=j=>{if(!j||!a)return;const P=a.map(U=>({...U}));Array.isArray(I)&&I.forEach(U=>{P.some(Y=>{if(Y.prop===U.prop){const $=Y.label;return Object.assign(Y,U),Y.label=$,!0}return!1})}),r.value=P.sort((U,Y)=>U.sortIndex-Y.sortIndex),u(),R&&N(!1)};a?H(!0):on(h,e.initDelay,5,50,!1,H)},b=()=>{const R=a??[];r.value=R.map(I=>({...I})),u(),N()},N=(R=!0)=>{R&&i.save(e.groupProp,r.value);const I=r.value.map(H=>({...H}));n("change",I)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),v=t.ref(!1),w=R=>{const I=[];r.value.forEach(j=>{R&&I.push(j.prop),j.visible=R}),m.value=!1,v.value=!1,r.value.length===I.length?m.value=!0:I.length>0&&(v.value=!0),f.value=I,N()},g=()=>{b()},f=t.ref([]),B=R=>{r.value.forEach(H=>{const j=R.indexOf(H.prop)!==-1;H.visible=j}),m.value=!1,v.value=!1;const I=r.value.length;R.length===I?m.value=!0:R.length>0&&(v.value=!0),N()},q=()=>{c()};t.onMounted(()=>{c(!0)});const _={currentRow:null,index:null},z=R=>R?R.dataset&&R.dataset.role==="row"?R:R.tagName.toLowerCase()!=="body"?(R=R.parentElement,z(R)):null:null,A=R=>{const I=R.currentTarget;I&&I.dataset&&(_.index=I.dataset.index)},E=R=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},T=R=>{const I=R.currentTarget;R.relatedTarget;const H=z(I);H&&(R.preventDefault(),_.currentRow&&_.currentRow!==H&&_.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),_.currentRow=H)},C=R=>{R.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},M=R=>{const I=R.currentTarget,H=z(I);if(!H)return;R.preventDefault();const j=Number(_.index),P=Number(H.dataset.index);if(j!==P){if(j<P){const U=r.value[j];r.value.splice(j,1),r.value.splice(P,0,U)}else{const U=r.value[j];r.value.splice(j,1),r.value.splice(P+1,0,U)}u(),N()}},k=R=>{const I=r.value[R];r.value.splice(R,1),r.value.splice(0,0,I),u(),N()},V=R=>{const I=r.value[R];r.value.splice(R,1),r.value.push(I),u(),N()};l({refresh:()=>{a=null,c(!1)}});const D=new Map;let W=null;function L(R){const I=document.createRange();return I.setStart(R,0),I.setEnd(R,R.childNodes.length),I.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:s,isCheckAll:m,isIndeterminate:v,handleCheckAllChange:w,handleReset:g,checkedValue:f,handleCheckChange:B,onShow:q,onDragStart:A,onDragEnd:E,onDragOver:T,onDragLeave:C,onDrop:M,checkboxLabelStyle:p,toTop:k,toBottom:V,onMouseOverForOverflowText:(R,I,H)=>{const j=R.currentTarget;if(j){const P=Math.floor(j.offsetWidth);if(Math.floor(L(j))>P){let Y=D.get(I);if(Y){if(Y===W)return;Fe.hide(Y)}Y=Fe.show(j,H,{type:"text",placement:"top",closeOnClick:!1}),D.set(I,Y),W=Y}}},onMouseLeaveForOverflowText:(R,I)=>{const H=D.get(I);H&&(Fe.hide(H),H===W&&(W=null))},onMouseOverForTip:(R,I)=>{const H=R.currentTarget;H&&(W&&Fe.hide(W),W=Fe.show(H,I,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:R=>{W&&(Fe.hide(W),W=null)}}}}),md={class:"fox-group-setting"},gd={class:"fox-group-setting__header"},pd={class:"fox-group-setting__body"},vd={class:"fox-group-setting__body-list","data-role":"container"},yd=["data-index","draggable"],bd=["onMouseover","onMouseleave"],wd={class:"tools-item"};function xd(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",md,[t.createElementVNode("div",gd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",pd,[t.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,N=>(t.openBlock(),t.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:N.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,N.prop,N.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,N.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(N.label),45,bd)]),_:2},1032,["label"]),t.createElementVNode("div",wd,[t.createVNode(h,{onClick:p=>e.toTop(N.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toBottom(N.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,yd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Ml=ke(hd,[["render",xd]]),jt={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Sd(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Ht(e,r)===o)return a}else if(l==="item"){if(Le(o,r))return a}else if(vr(e,r)===o)return a}return-1}function Ht(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ho(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function vr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Td(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Cd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let $d=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,s){if(Array.isArray(o)){let d=o;typeof s=="function"&&(d=d.filter(s));let h=(l-1)*a,c=h+a;c>d.length&&(c=d.length);const b=d.slice(h,c);return{totalSize:d.length,page:b}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const u=Oe(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(u,null,[o,l,a,r]))}};function kd(){const e=t.getCurrentInstance();return new $d(e.proxy)}function Dd(e,n,o,l,a,r,i,s,u,d,h){return{props:{...jt},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{emit:b,slots:N}){const{toLocaleRefs:p}=ye.useFoxI18n(n),m=p(c,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),v=kd(),w=t.ref([]),g=t.ref(0),f=t.ref(""),B=t.shallowRef(null),q=t.computed(()=>{const y={};return c.params&&Object.assign(y,c.params),ge(f.value)||(y[`${c.searchKey}`]=f.value),B.value&&Object.assign(y,B.value),y});let _=!0;const z=async(y,S,F)=>{try{if(E.value===!1)return;let G=null;ge(f.value)||(G=x=>{const K=Ht(c,x);if(typeof K=="string"&&K.includes(f.value))return!0;const Q=Ho(c,x);return!!(typeof Q=="string"&&Q.includes(f.value))});const te=await v.load("actionsheet",y,S,F,q.value,_,G??void 0);_=!1,Array.isArray(te)?(w.value=te,g.value=1,E.value=!1):!Array.isArray(te.page)||te.page.length===0?(console.warn("[FoxUI] can not load more data"),E.value=!1):(Reflect.apply([].push,w.value,te.page),g.value=Math.ceil(w.value.length/c.pageSize),(te.totalSize&&w.value.length>=te.totalSize||F<te.page.length)&&(E.value=!1)),A.value=!1}catch(G){console.error("[FoxUI] ActionSheet load more data fail",G),E.value=!0,g.value=0,w.value=[]}setTimeout(()=>{b("loaded-data")},250)},A=t.ref(!1),E=t.ref(!0),T=async()=>{if(!c.source){A.value=!1;return}await z(c.source,g.value+1,c.pageSize)};t.watch(()=>f.value,(y,S)=>{ge(y)&&!ge(S)&&T()}),t.watch([()=>c.source,()=>c.pageSize,()=>c.params],async([y,S,F])=>{c.source&&T()},{immediate:!0});const C=t.computed(()=>!c.multiple&&c.isAutoBackFill),M=t.ref([]);let k=null;const V=t.ref(c.visible);t.watch(()=>c.visible,y=>{V.value!==y&&(V.value=y),y?k=[...M.value]:k=null});const D=(y,S)=>{const F=[];return Array.isArray(y)||(y=[y]),y.forEach(G=>{let te=Sd(c,S,G,c.valueType);te!==-1&&F.push(te)}),Le(F,M.value)?!1:(M.value=F,!0)};t.watch([()=>c.modelValue,()=>w.value],([y,S],[F,G])=>{if(D(y,S)){const x=W();L(x)}},{deep:!0});const W=()=>{const y=[],S=[],F=[];for(let K of M.value){const Q=w.value[K];S.push(Q);const le=Ht(c,Q);if(F.push(le),c.valueType==="item")y.push(Q);else if(c.valueType==="text")y.push(le);else{const ee=vr(c,Q);y.push(ee)}}let G=null,te=null,x=null;return c.multiple?(G=y,te=F,x=S):(G=y[0]??null,te=F[0]??null,x=S[0]??null),{value:G,text:te,item:x}},L=y=>{b("update:modelValue",y.value),b("update:text",y.text),b("change",y.value,y.item,y.text)},J=()=>{k&&(M.value=k)},X=y=>{const S=M.value.indexOf(y);c.multiple?S===-1?M.value.push(y):M.value.splice(S,1):S===-1?M.value=[y]:M.value=[],(C.value||!c.poppable&&!c.showFooter)&&R()},Z=y=>{V.value=y,b("update:visible",y)},ne=()=>{const y=()=>{J(),Z(!1)},S=c.beforeMethod??c.beforeClose;if(typeof S=="function"){const F=S("close");Wt(F)?F.then(G=>{G!==!1&&y()}).catch(()=>{y()}):F!==!1&&y()}else y()},R=()=>{const y=W(),S=()=>{L(y),Z(!1)},F=c.beforeMethod??c.beforeClose;if(typeof F=="function"){const G=F("confirm",y.value,y.item,y.text);Wt(G)?G.then(te=>{te!==!1&&S()}).catch(()=>{S()}):G!==!1&&S()}else S()},I=()=>{E.value=!0,g.value=0,w.value=[],c.source&&T()},H=()=>{let y=m.title.value??"";N.title&&(y=N.title());const S=t.h("view",{class:["fox-actionsheet__header-title"]},[y]),F=t.h(u,{class:["fox-actionsheet__header-icon"],onClick:ne});return t.h("view",{class:["fox-actionsheet__header"]},[S,F])},j=()=>{let y=null;if(N.search)y=N.search();else{const S={onSearch:I,placeholder:m.seachPlaceholder.value,disabled:c.disabled,modelValue:f.value,"onUpdate:modelValue":F=>{f.value=F}};y=t.h(r,S,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[y])},P=(y,S,F,G,te)=>{if(N.optionLabel)return N.optionLabel({text:y,checked:S,disabled:F,subText:G,item:te});const x=[],K=t.h("view",{class:"fox-actionsheet__list-item-text"},[y]);if(x.push(K),G){const Q=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[G]);x.push(Q)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},x)},U=(y,S,F,G)=>{if(N.optionIcon)return N.optionIcon({checked:y,disabled:S,iconSize:F,item:G});if(y){if(N.checkedIcon)return N.checkedIcon({disabled:S,item:G});{const te=c.checkedIcon??s;return t.h(te,{width:F,height:F,class:["fox-actionsheet__list-item-icon"]})}}else{if(N.icon)return N.icon({disabled:S,item:G});{const te=c.icon??i;return t.h(te,{width:F,height:F,class:["fox-actionsheet__list-item-icon"]})}}},Y=()=>{const y=[];for(let S=0;S<w.value.length;S++){const F=w.value[S],G=Ht(c,F),te=Ho(c,F),x=["fox-actionsheet__list-item"],K={};let Q=Td(c,F),le=c.iconSize?he(c.iconSize):null;const ee=Cd(c,F,S);ee&&(Q=Q||ee.disabled,ee.class&&x.push(ee.class),ee.style&&Object.assign(K,ee.style)),Q=!!(c.disabled||Q);const oe=M.value.includes(S);Q&&x.push("is-disabled"),oe&&x.push("is-checked");const re={class:x,style:K,key:`${S}`,onClick:()=>{Q||X(S)}};let se=[];if(N.option)se.push(N.option({item:F,checked:oe,disabled:Q}));else{const me=P(G,oe,Q,te,F);se.push(me);const Ze=U(oe,Q,le,F);se.push(Ze)}const ve=t.h("view",re,se);y.push(ve)}return y},$=()=>{let y=[];if(N.buttons)y=N.buttons();else{const F=t.h(a,{type:"primary",block:"block",onClick:R,disabled:c.disabled},{default:()=>m.confirmText.value});y.push(F)}return t.h("view",{class:"fox-actionsheet__footer"},[y])};return pe({search:async(y=null,S=!0)=>{B.value=y&&t.toRaw(y),t.triggerRef(B),S&&(E.value=!0,g.value=0,w.value=[]),t.nextTick(()=>{T()})},clear:()=>{E.value=!0,g.value=0,w.value=[]},confirm:()=>{R()},cancel:()=>{ne()}}),()=>{const y=[];if(c.showHeader){const le=H();y.push(le)}if(c.showSearchbar){const le=j();y.push(le)}let S=null;if(N.content)S=N.content();else{const le=Y(),ee={hasMore:E.value,loadText:m.loadText.value,loadMoreText:m.loadMoreText.value,modelValue:A.value,"onUpdate:modelValue":oe=>{A.value=oe},onLoadMore:T};S=t.h(l,ee,{default:()=>le})}const F={};c.optionsHeight&&(F.height=c.optionsHeight);const G={"fox-actionsheet__list":!0};c.poppable||(G["fox-actionsheet__list--inner"]=!0);const te=t.h("view",{class:G,style:F},[S]);if(y.push(te),c.showFooter&&!C.value){const le=$();y.push(le)}const x=t.h("view",{class:"fox-actionsheet"},y);if(!c.poppable)return x;const K=["fox-actionsheet__popup"];c.popClass&&K.push(c.popClass);const Q={popClass:K.join(" "),visible:V.value,closeable:!1,"onUpdate:visible":Z,position:c.position,round:"round",onClickOverlay:ne,closeOnClickOverlay:c.closeOnClickOverlay};return t.h(o,Q,{default:()=>x})}}}}const{componentName:Nd,create:Ed,scope:Vd}=ie("actionsheet-pane"),wn=Ed(Dd(Nd,Vd,!1)),Ko={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Id(e,n,o,l,a){return{props:{...be,...$e,...Ko,...jt},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(r,i){const s=Ve(t.computed(()=>r.disabled)),u=Ee(t.computed(()=>r.readonly)),{emitEvent:d}=Se({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ye.useFoxI18n(n),c=h(r,["placeholder"]),b=t.ref(!1),N=fe(r,"modelValue"),p=t.ref(""),m=t.computed(()=>Array.isArray(p.value)?p.value.join(r.separator):p.value),v="fox-input-item",w=t.computed(()=>({[v]:!0,[`${v}__disabled`]:s.value})),g=Ne(t.computed(()=>r.textAlign),"textAlign"),f=t.computed(()=>{const D={};return g.value&&(D["text-align"]=g.value),D}),B=t.ref(!1),q=()=>{B.value=!0},_=D=>{B.value=D},z=D=>{N.value=D,d("update:modelValue",D)},A=(D,W)=>{d("change",D,W)},E=D=>{let L=D.target.value;b.value=!0,d("focus",L,D)},T=D=>{setTimeout(()=>{b.value=!1},0);let L=D.target.value;r.maxLength&&L.length>Number(r.maxLength)&&(L=L.slice(0,Number(r.maxLength))),d("blur",L,D)},C=D=>{p.value=D,d("update:text",D)},M=t.computed(()=>He(r.unit)>0),k=t.ref(),V=t.ref(null);return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},search:D=>{V.value&&V.value.search(D)},clear:()=>{V.value&&V.value.clear},confirm:D=>{V.value&&V.value.confirm()},cancel:()=>{V.value&&V.value.cancel()}}),()=>{const D={ref:k,class:w.value,style:f.value,type:"text",maxlength:r.maxLength,placeholder:c.placeholder.value,readonly:!0,value:m.value,onClick:q,onFocus:E,onBlur:T},W={};i.slots.prepend&&(W.prepend=i.slots.prepend),i.slots.append&&(W.append=i.slots.append),i.slots.prefix&&(W.prefix=i.slots.prefix),i.slots.suffix?W.suffix=i.slots.suffix:M.value?W.suffix=()=>[r.unit]:W.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Te.ArrowDown)});const L=[],J=t.h(O.ElInput,D,W);L.push(J);const X={default:()=>L};X.label=i.slots.default,X.prepend=i.slots.prepend,X.append=i.slots.append,X.fixedPreTip=i.slots.fixedPreTip,X.fixedTip=i.slots.fixedTip;const Z=Ft(r,jt);Z.ref=V,Z.class=r.actionsheetProps,Z.disabled=s.value||u.value,Z.visible=B.value,Z["onUpdate:visible"]=_,Z.modelValue=N.value,Z["onUpdate:modelValue"]=z,Z.text=p.value,Z["onUpdate:text"]=C,Z.onChange=A,Z.poppable=!0;const ne={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},R=t.h(l,Z,ne);X.hide=()=>[R];const I=Ce(r,Ko,jt);return t.h(o,{...I,prop:`${r.prop}_item`},X)}}}}const{componentName:Pd,create:Od,scope:Ad}=ie("actionsheet-item"),Rl=Od(Id(Pd,Ad,we,wn)),yr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},Ll={...xl,...yr,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};function Fd(e){return e===window}const _l=e=>{const n=t.unref(e);if(Fd(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Yo=10;function br(e,n){return e>n&&e>Yo?"horizontal":n>e&&n>Yo?"vertical":""}function ql(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function zl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=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=br(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:o,state:e}}function wr(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),a=t.ref(0),r=t.ref(0),i=t.ref(0),s=t.ref(0),u=t.ref(0),d=t.ref(0),h=t.ref(""),c=()=>h.value==="vertical",b=()=>h.value==="horizontal",N=()=>{i.value=0,s.value=0,u.value=0,d.value=0,h.value="",o.value=0};return{move:v=>{if(v.touches){const f=v.touches[0];i.value=f.clientX-e.value,s.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const g=v;i.value=g.clientX-e.value,s.value=g.clientY-n.value,a.value=g.clientX,r.value=g.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),l.value=Date.now()-o.value,h.value||(h.value=br(u.value,d.value))},start:v=>{if(N(),v.touches){const f=v.touches[0];e.value=f.clientX,n.value=f.clientY}else{const g=v;e.value=g.clientX,n.value=g.clientY}o.value=Date.now()},reset:N,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:h,isVertical:c,isHorizontal:b}}let xr=36;function Bd(){return xr}function Md(e){xr=e}function qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function el(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Rd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Wo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Ld=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function _d(){const e=t.getCurrentInstance();return new Ld(e.proxy)}function Uo(e,n,o){const l=qe(e,n),a=qe(e,o);if(l!==a)return!1;const r=st(e,n),i=st(e,o);return r===i}function qd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const s=n[i];let d=o[i].findIndex(h=>{if(r==="text")return qe(e,h)===s;if(r==="value"){let c=st(e,h);return c==null&&(c=qe(e,h)),c===s}else if(r==="item")return Uo(e,h,s)});if(d==-1)break;a.push(d)}else{let i=o[0];for(let s=0;s<n.length;s++){const u=n[s];let d=i.findIndex(c=>{if(r==="text")return qe(e,c)===u;if(r==="value"){let b=st(e,c);return b==null&&(b=qe(e,c)),b===u}else if(r==="item")return Uo(e,c,u)});if(d==-1)break;a.push(d);const h=el(e,i[d]);if(!Array.isArray(h))break;i=h}}return a}function Go(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const s=o[i];let u=n[i];u<0&&u>=s.length&&(u=0);const d=s[u],h=qe(e,d);if(a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let c=st(e,d);c==null&&(c=h),a.values.push(c)}else a.values.push(d)}else{let i=o[0];for(let s=0;s<n.length;s++){let u=n[s];u<0&&u>=i.length&&(u=0);const d=i[u],h=qe(e,d),c=Object.assign({},d);if(c.children=null,a.texts.push(h),a.items.push(c),r==="text")a.values.push(h);else if(r==="value"){let b=st(e,d);b==null&&(b=h),a.values.push(b)}else a.values.push(c);if(!Array.isArray(d.children))break;i=d.children}}return a}function Xo(e){return{text:e,value:e}}const zd=15,jd=300,Hd=200,{create:Kd}=ie("picker-column");function Yd(e){e.stopPropagation()}function Wd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Yd(e)}const Ud=Kd({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...yr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=A=>A>=c.currIndex+8||A<=c.currIndex-8,s=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),u=A=>`transform: rotate3d(1, 0, 0, ${-c.rotation*A}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),h=t.ref(null),c=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),b=t.toRef(e,"source"),N=A=>qe(e,A),p=A=>st(e,A),m=wr(),v=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},w=(A,E=!1,T=!1)=>{if(c.currIndex=A,E){const C=()=>{c.moving=!1,n("update:modelValue",A),n("change",A)};T?c.transitionEndTrigger=C:C()}},g=(A,E,T)=>{let C=A+c.startDistance;if(E==="end"){const M=-(b.value.length-1)*e.itemHeight;C<M&&(C=M,(!T||T<=0)&&(T=e.swipeDuration)),C>0&&(C=0,(!T||T<=0)&&(T=e.swipeDuration));let k=Math.abs(Math.round(-C/e.itemHeight));const V=-k*e.itemHeight,D=`${(k+1)*c.rotation}deg`,W=T?T>0:!1;w(k,!0,W),f(V,E,T,D)}else{let M=(-C/e.itemHeight+1)*c.rotation;const k=(b.value.length+1)*c.rotation,V=0;if(M=Math.min(Math.max(M,V),k),e.threeDimensional&&(M<V||M>k))return;f(C,null,void 0,`${M}deg`)}},f=(A=0,E,T=Hd,C)=>{E==="end"?c.scrollTime=T:c.scrollTime=0,c.deg=C,c.scrollDistance=A},B=(A,E)=>(A=Math.abs(A/E)/.003*(A<0?-1:1),A),q=A=>{if(!e.readonly){if(c.moving){const E=h.value,{transform:T}=window.getComputedStyle(E);c.scrollDistance=+T.slice(7,T.length-1).split(", ")[5]}c.startDistance=c.scrollDistance,m.start(A),c.transitionEndTrigger=null}},_=A=>{e.readonly||(c.moving=!0,m.move(A),m.isVertical()&&(c.moving=!0,Wd(A,!0)),g(m.deltaY.value,"",0))},z=()=>{if(e.readonly)return;const A=m.deltaY.value,E=m.duration.value;if(E<jd&&Math.abs(A)>zd){const C=B(A,E);g(C,"end",e.swipeDuration)}else g(A,"end",0)};return t.watch(()=>e.modelValue,A=>{if(c.currIndex!==A){c.currIndex=A;const E=-A*e.itemHeight;g(E)}}),t.onMounted(()=>{const A=-e.modelValue*e.itemHeight;g(A)}),{classes:o,styles:l,contentClasses:a,source:b,itemText:N,itemValue:p,...t.toRefs(c),roller:h,getItemText:qe,onTouchStart:q,onTouchMove:_,onTouchEnd:z,isHidden:i,setRollerStyle:u,touchRollerStyle:s,touchTileStyle:d,stopMomentum:v}}}),Gd={key:1,class:"fox-picker__item-tile"};function Xd(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Gd,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Zd=ke(Ud,[["render",Xd]]),{create:Jd,componentName:Qd,scope:eh}=ie("picker"),th=Jd({components:{PickerColumn:Zd,Popup:wt},props:{...Ll},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=ye.useFoxI18n(eh),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(Bd());t.watch(()=>e.visible,T=>{T&&i.value<=0&&setTimeout(()=>{if(r.value){const C=_l(r.value);i.value=C.height,Md(i.value)}},50)});const s=t.computed(()=>({[Qd]:!0})),u=_d(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([T,C])=>{if(T){let M=await u.load("select",T,C);if(M.length>0){let k=M[0];if(Array.isArray(k)){if(typeof k[0]=="string"){let V=M,D=[];V.forEach(W=>{let L=W.map(J=>Xo(J));D.push(L)}),h.value=D}else h.value=M;d.value="multipleColumn"}else if(typeof k=="string"){let V=M,D=[],W=V.map(L=>Xo(L));D.push(W),h.value=D,d.value="singleColumn"}else{const V=el(e,k);Array.isArray(V)?(d.value="cascade",h.value=[M]):(d.value="singleColumn",h.value=[M])}}else h.value=[]}},{immediate:!0});const c=t.ref([]),b=t.ref(e.modelValue),N=t.ref([]),p=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([T,C])=>{let M=qd(e,T,C,d.value);if(!Le(M,p.value)){p.value=M;let k=Go(e,M,C,d.value);k&&(c.value=k.texts,n("update:text",c.value))}});const m=t.ref(e.visible);t.watch(()=>e.visible,T=>{m.value=T});const v=T=>{let C=Wo(e,T);return Me(C)?C.defaultIndex??0:0},w=T=>{if(e.readonly===!0)return!0;let C=Wo(e,T);return Me(C)?C.readonly??!1:!1},g=(T,C)=>{let M=p.value;M[T]=C;for(let V=0;V<T;V++)M[V]==null&&(M[V]=v(V));if(d.value==="cascade")for(let V=T+1;V<B.value.length;V++){let D=v(V);V<M.length?M[V]=D:M.push(D)}else for(let V=M.length;V<B.value.length;V++){let D=v(V);M.push(D)}p.value=M;let k=Go(e,M,h.value,d.value);k&&(c.value=k.texts,b.value=k.values,N.value=k.items)},f=T=>T<p.value.length?p.value[T]:v(T),B=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let T=[],C=0,M=h.value[0],k=0;for(;;){let V=M.map(L=>{let J=Object.assign({},L);return Rd(e,J,null),J});T.push(V),C>=p.value.length?k=0:k=p.value[C],(k<0||k>=M.length)&&(k=0);let D=M[k];const W=el(e,D);if(!Array.isArray(W))break;M=W,C++}return T}),q=t.computed(()=>de(+e.visibleItemCount-1)/2*i.value);return{...a,pickerLineRef:r,classes:s,columns:B,dataType:d,show:m,itemHeight:i,top:q,isReadonly:w,getIndex:f,change:(T,C)=>{g(T,C)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let T=h.value.length-1;for(;T>=0&&!(p.value[T]===null||p.value[T]===void 0);T--);if(T>=0&&g(T,0),d.value==="singleColumn"){let C=b.value.length>0?b.value[0]:"",M=N.value.length>0?N.value[0]:null;e.readonly||(n("update:modelValue",C),n("update:text",c.value),n("change",C,M)),n("confirm",C)}else e.readonly||(n("update:modelValue",b.value),n("update:text",c.value),n("change",b.value,N.value)),n("confirm",b.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),nh={class:"fox-picker__bar"},lh={class:"fox-picker__title"},oh={class:"fox-picker__bar__action"},ah={class:"fox-picker__column"};function rh(e,n,o,l,a,r){const i=t.resolveComponent("PickerColumn"),s=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=u=>e.show=u),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",nh,[t.createElementVNode("view",lh,t.toDisplayString(e.title),1),t.createElementVNode("view",oh,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...u)=>e.close&&e.close(...u))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...u)=>e.confirm&&e.confirm(...u))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...u)=>e.clear&&e.clear(...u))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",ah,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(u,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{source:u,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Mt=ke(th,[["render",rh]]),Zo={...Ll,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function ih(e,n,o){return{props:{...be,...$e,...Zo},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=ye.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=e,b=t.computed(()=>({[c]:!0})),N=Ne(t.computed(()=>l.textAlign),"textAlign"),p=t.computed(()=>({textAlign:N.value??"right"})),m=fe(l,"modelValue"),v=t.ref([]),w=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),g=t.ref(!1),f=()=>{g.value=!0},B=D=>{g.value=D},q=D=>{m.value=D,s("update:modelValue",D)},_=D=>{v.value=D,Array.isArray(D)&&D.length===0?s("update:text",D[0]):s("update:text",D)},z=(D,W)=>{s("change",D,W)};let A=fe(l,"hintText"),E=t.ref(!1);const T=D=>{let L=D.target.value;h.value=!0,ge(A.value)||(E.value=!0),s("focus",L,D)},C=D=>{setTimeout(()=>{E.value&&(E.value=!1),h.value=!1},0);let L=D.target.value;l.maxLength&&L.length>Number(l.maxLength)&&(L=L.slice(0,Number(l.maxLength))),g.value?setTimeout(()=>{s("blur",L,D)},50):s("blur",L,D)},M=()=>{s("clear","")},k=t.computed(()=>He(l.unit)>0),V=t.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const D={class:b.value,style:p.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ue(l.clearable),readonly:!0,value:w.value,onClick:f,onFocus:T,onBlur:C},W={};a.slots.prepend&&(W.prepend=a.slots.prepend),a.slots.append&&(W.append=a.slots.append),a.slots.prefix&&(W.prefix=a.slots.prefix),a.slots.suffix?W.suffix=a.slots.suffix:k.value?W.suffix=()=>[l.unit]:W.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Te.ArrowDown)});const L=[],J=t.h(O.ElInput,D,W);L.push(J);const X={default:()=>L};a.slots.default&&(X.label=a.slots.default),a.slots.fixedTip&&(X.fixedTip=a.slots.fixedTip);const Z=Ft(l,Ll);Z.disabled=!1,Z.readonly=r.value||i.value,Z.visible=g.value,Z["onUpdate:visible"]=B,Z.modelValue=m.value,Z["onUpdate:modelValue"]=q,Z.text=v.value,Z["onUpdate:text"]=_,Z.onClear=M,Z.onChange=z;const ne=t.h(Mt,Z);X.hide=()=>[ne];const I={...Ce(l,Zo),hintText:A.value,hintVisible:E.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,I,X)}}}}const{componentName:sh,create:uh,scope:ch}=ie("picker-item"),jl=uh(ih(sh,ch,we)),fh={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}},Jo=(e,n)=>n[e.textKey],kt=(e,n)=>n[e.valueKey],dh=(e,n)=>n[e.visibleKey],Qo=(e,n)=>n[e.disabledKey],hh=(e,n)=>{const o=n[e.doitKey];return ue(o)},mh=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},ea=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function gh(e,n,o,l=!1){return{props:{...fh},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const s=t.computed(()=>{const R={};return R[`${e}`]=!0,R}),u=t.computed(()=>{const R={};return R[`${e}__titles`]=!0,R[`${a.direction}`]=!0,a.align==="left"&&(R.left=!0),a.scroll===!0&&(R.scrollable=!0),a.shape&&(R[`${a.shape}`]=!0),R}),d=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const R=he(a.gutter);return R<=0?0:R}),c=t.ref(a.modelValue);t.watch(()=>a.modelValue,R=>{c.value!==R&&(c.value=R,L(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=t.computed(()=>{const R={};return m.value||(R.display="none"),R}),p=t.ref(),m=t.ref(!1),v=()=>{const R=!m.value;w(R)},w=R=>{const I=R;I?(m.value=I,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},g=t.ref(),f=t.ref([]),B=(R,I)=>{f.value[I]=R},q=R=>I=>{B(I,R)},_=(R,I)=>{const H=g.value,j=f.value;if(!H||!j||!j[R])return;const P=j[R];let U=0;a.direction==="vertical"?U=P.offsetTop-(H.offsetHeight-P.offsetHeight)/2:U=P.offsetLeft-(H.offsetWidth-P.offsetWidth)/2,z(H,U,I?0:.3,a.direction)},z=(R,I,H,j)=>{let P=0;const U=j==="horizontal"?R.scrollLeft:R.scrollTop,Y=H===0?1:Math.round(H*1e3/16);function $(){j==="horizontal"?R.scrollLeft+=(I-U)/Y:R.scrollTop+=(I-U)/Y,++P<Y&&al($)}$()},A=(R,I)=>{const H=kt(a,R),j={};return j[`${e}__titles-item`]=!0,j.disabled=Qo(a,R),j.active=H===c.value,a.shape&&(j[`${a.shape}`]=!0),a.ellipsis&&(j.ellipsis=!0),I&&(I.class&&(j[`${I.class}`]=!0),I.disabled===!0&&(j.disabled=I.disabled)),j},E=(R,I)=>{const H={};if(h.value>0){const j=Math.abs(h.value/2);a.direction==="vertical"?(H["margin-top"]=`${j}px`,H["margin-bottom"]=`${j}px`):(H["margin-left"]=`${j}px`,H["margin-right"]=`${j}px`)}return I&&I.style&&Object.assign(H,I.style),H},T=(R,I)=>`${kt(a,R)??I}`,C=(R,I)=>{const H=kt(a,R),j={};j[`${e}__popup-item`]=!0,j.disabled=Qo(a,R),j.active=H===c.value,a.shape&&(j[`${a.shape}`]=!0);const P=ea(a,R,I);return P&&P.disabled===!0&&(j.disabled=P.disabled),j},M=t.computed(()=>(a.data??[]).filter(I=>dh(a,I)!==!1)),k=(R,I)=>{const H=kt(a,R);if(c.value==H)return;const j=()=>{c.value=H,a.scroll&&_(I,!1),i("update:modelValue",H),i("change",R,I)};if(typeof a.beforeChange=="function"){const P=a.beforeChange(R,I);Wt(P)?P.then(U=>{U!==!1&&j()}).catch(()=>{j()}):P!==!1&&j()}else j()},V=(R,I)=>function(){k(R,I)},D=(R,I)=>{k(R,I),w(!1)},W=(R,I)=>function(){D(R,I)},L=R=>{if(!Array.isArray(a.data)||!a.scroll)return;const I=a.data.findIndex(H=>kt(a,H)===c.value);I!==-1&&_(I,R)};t.watch(()=>a.data,()=>{setTimeout(L,0)}),t.onMounted(()=>{L(!0)});const J=(R,I)=>{if(r.item)return r.item({item:R,index:I});const H=ea(a,R,I),j=[];if(r.text){const $=r.text({item:R,index:I});j.push($)}else{const $=[];if(H?.doit===!0||hh(a,R)){const G={class:[`${e}__titles-item-tip`,"doit"]},te=t.h("view",G);$.push(te)}const y=H?.num??mh(a,R);if(y){let G="";const te=de(y);te>=100?G="99+":G=`${te}`;const x={class:[`${e}__titles-item-tip`,"num"]},K=t.h("view",x,[G]);$.push(K)}const S={class:`${e}__titles-item-text`};$.push(Jo(a,R));const F=t.h("view",S,$);j.push(F)}const P={class:`${e}__titles-item-line`},U=t.h("view",P);j.push(U);const Y={ref:q(I),class:A(R,H),style:E(R,H),key:T(R,I),onClick:V(R,I)};return t.h("view",Y,j)},X=()=>{const R=r.default?r.default():[];if(R.length===0)for(let H=0;H<M.value.length;H++){const j=M.value[H],P=J(j,H);R.push(P)}const I={ref:g,class:u.value,style:d.value};return t.h("view",I,R)},Z=()=>{let R=null;r.navigation?R=r.navigation():R=t.h(o);const I={class:`${e}__navigation`,onClick:v};return t.h("view",I,[R])},ne=()=>{const R=[];for(let H=0;H<M.value.length;H++){const j=M.value[H];let P=null;r.popupItem?P=r.popupItem({item:j,index:H}):P=Jo(a,j);const U={class:C(j,H),key:T(j,H),onClick:W(j,H)},Y=t.h("view",U,[P]);R.push(Y)}const I={class:b.value,style:N.value};return t.h("view",I,R)};return()=>{const R=[],I=X();if(R.push(I),a.showQuickNavigation){const j=Z();R.push(j);const P=ne();R.push(P)}const H={class:s.value};return t.h("view",H,R)}}}}const{create:ph,componentName:vh,scope:yh}=ie("tabs-bar"),xn=ph(gh(vh,yh,su,!1)),Sr=Symbol("TabsStatesKey"),bh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function wh(e,n,o=!1){return{props:{...bh},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=t.shallowRef([]),s={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const v={name:m};s.current.value===m&&(v.loaded=!0),i.value.push(v),t.triggerRef(i)},remove:m=>{const v=i.value.findIndex(w=>w.name===m);v!==-1&&i.value.splice(v,1)},isLoaded:m=>{if(!l.lazy)return!0;const v=i.value.findIndex(w=>w.name===m);return v!==-1?s.current.value?i.value[v].loaded??!1:v===0:!1}};t.provide(Sr,s);const u=m=>{const v=i.value.findIndex(w=>w.name===m);v!==-1&&(i.value[v].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([m,v])=>{s.current.value!==m&&(s.current.value=m??"",u(m??"")),s.direction.value!==v&&(s.direction.value=v)});const d=t.ref(null),h=t.ref(null),c=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let b=!0;const N=t.computed(()=>{const m={},v=i.value.length;if(v<=0)return m;const w=i.value.findIndex(g=>g.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(m.height=`${v*s.tabHeight.value}px`,w!==-1&&(m.transform=`translate(0, -${w*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(m.width=`${v*s.tabWidth.value}px`,w!==-1&&(m.transform=`translate(-${w*s.tabWidth.value}px, 0)`)),b&&(b=!1,m.transition="transform 0s ease"),m});let p=null;return t.onMounted(()=>{if(!d.value)return;const m=()=>{const v=sn(d.value);s.tabWidth.value=v.width,s.tabHeight.value=v.height};window.ResizeObserver&&(p=new window.ResizeObserver(m),p.observe(d.value)),m()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const m={class:`${e}__panes`,style:N.value,ref:h},v=t.h("view",m,[r?.default?.()]),w={class:c.value,ref:d};return t.h("view",w,[v])}}}}const{create:xh,componentName:Sh,scope:Th}=ie("tabs-container"),Sn=xh(wh(Sh,Th,!1)),Ch={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function $h(e,n,o){return{props:{...Ch},setup(l,{emit:a,slots:r}){const i=t.inject(Sr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const s=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(u.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const c={class:`${e}__empty-icon`},b=l.emptyIcon??o,N=t.h(b,c),p={class:`${e}__empty-text`},m=l.emptyText??"Loading",v=t.h("view",p,[m]),w={class:`${e}__empty`},g=t.h("view",w,[N,v]);d.push(g)}const h={class:`${e}`,style:s.value};return t.h("view",h,d)}}}}const{create:kh,componentName:Dh,scope:Nh}=ie("tabs-pane"),Tn=kh($h(Dh,Nh,vn)),Eh={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 Vh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ta(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function na(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ih(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Mn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function la(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function oa(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Rn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Ph{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function Oh(){const e=t.getCurrentInstance();return new Ph(e.proxy)}function Ah(e,n,o,l){return{props:{...Eh},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const s=e,u=Oh(),d=t.ref([]),h=t.computed(()=>d.value.filter(I=>Ih(a,I)!==!1)),c=t.ref(-1),b=()=>{const I=a.modelValue,H=h.value.findIndex(j=>ta(a,j)===I);c.value!==H&&(c.value=H,a.scroll&&ne(H,!1))};t.watch([()=>a.modelValue,h],()=>{b()});const N=I=>c.value===I,p=I=>{if(I<0&&I>=h.value.length)return!1;const H=h.value[I],P=(Rn(a,H,I)??{}).status??Mn(a,H);return N(I)||P},m=t.computed(()=>{const I={[s]:!0};return a.mode?I[`is-${a.mode}`]=!0:a.direction&&(I[`is-${a.direction}`]=!0),a.scroll&&(I["is-scroll"]=!0),I}),v=t.computed(()=>({})),w=(I,H,j,P,U)=>{const Y={[`${s}__step`]:!0};return U&&(Y[`${U}`]=!0),Y[`${g.value}`]=!0,P&&(Y["is-doit"]=!0),I===c.value?Y["is-active"]=!0:H==="done"?Y["is-done"]=!0:H==="error"?Y["is-error"]=!0:H==="half"?Y["is-half"]=!0:j?Y["is-disabled"]=!0:Y["is-normal"]=!0,Y},g=t.computed(()=>{if(a.mode==="simple")return"start";let I=a.align;return I||(a.direction==="vertical"?I="start":I="center"),I}),f=(I,H={})=>{const j={...H};return g.value==="start"&&I===h.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},B=(I,H)=>{let j={};if(H<h.value.length-1){const P=H+1;p(H)&&p(P)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},q=I=>h.value.length-1===I,_=(I,H)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&H>c.value||c.value===H)return;const j=c.value,P=H;c.value=H,a.scroll&&ne(H,!1);const U=ta(a,I);i("update:modelValue",U);const Y={fromIndex:j,currentIndex:P,item:I,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",U,Y)},z=t.ref(!0),A=async(I,H)=>{try{const j=await u.load("stesbar",I,H);Array.isArray(j)&&(d.value=j),z.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([I,H])=>{I&&A(I,H)},{immediate:!0});const E=(I,H,j,P,U)=>{let Y=null;if(r.icon)Y=r.icon({item:I,index:H,status:P});else if(P==="done"){const y={};a.iconSize&&(y.width=a.iconSize,y.height=a.iconSize);const S=a.icon??o;Y=t.h(S,y)}else{const y=j??`${H+1}`;Y=t.h("span",{},[y])}const $={class:"fox-steps-bar__icon",onClick:()=>{U||_(I,H)}};return t.h("view",$,[Y])},T=(I,H,j)=>{const P=t.h("i",{class:"fox-steps-bar__line-inner",style:B(I,H)});return t.h("view",{class:"fox-steps-bar__line"},[P])},C=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const P=a.markIcon??l;I=t.h(P,j)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},M=(I,H,j,P,U)=>{const Y=[];if(!q(H)){const S=T(I,H);Y.push(S)}const $=E(I,H,j,P,U);Y.push($);const y={class:"fox-steps-bar__head"};return t.h("view",y,Y)},k=(I,H,j,P)=>{let U=null;r.main?U=r.main({item:I,index:H,status:j}):U=Vh(a,I);const Y={class:"fox-steps-bar__main",onClick:()=>{P||_(I,H)}};return t.h("view",Y,[U])},V=(I,H,j)=>{let P=null;if(r.sub){P=r.sub({item:I,index:H,status:j});const U={class:"fox-steps-bar__sub"};return t.h("view",U,[P])}return null},D=(I,H)=>{const j=Rn(a,I,H)??{},P=j.status??Mn(a,I);let U=na(a,I);j.disabled===!0&&(U=!0),a.disabled===!0&&(U=!0);const Y=j.label??oa(a,I),$=[],y=E(I,H,Y,P,U);y&&$.push(y);const S=k(I,H,P,U);if(S&&$.push(S),!q(H)){const Q=T(I,H);Q&&$.push(Q)}const F=t.h("view",{class:"fox-steps-bar__head"},$),G=j.class,te=j.style??{};let x=la(a,I);j.doit===!0&&(x=!0);const K={ref:Z(H),class:w(H,P,U,x,G),style:f(H,te)};return t.h("view",K,[F])},W=(I,H)=>{const j=Rn(a,I,H)??{},P=j.status??Mn(a,I);let U=na(a,I);j.disabled===!0&&(U=!0),a.disabled===!0&&(U=!0);const Y=j.label??oa(a,I),$=[],y=a.layout;for(let x of y)if(x==="head"){const K=M(I,H,Y,P,U);$.push(K)}else if(x==="main"){const K=k(I,H,P,U);$.push(K)}else if(x==="sub"){const K=V(I,H,P);$.push(K)}else if(x==="mark"){const K=C();$.push(K)}const S=j.class,F=j.style??{};let G=la(a,I);j.doit===!0&&(G=!0);const te={ref:Z(H),class:w(H,P,U,G,S),style:f(H,F)};return t.h("view",te,$)},L=t.ref(),J=t.ref([]),X=(I,H)=>{J.value[H]=I},Z=I=>H=>{X(H,I)},ne=(I,H)=>{const j=L.value,P=J.value;if(!j||!P||!P[I])return;const U=P[I];let Y=0;a.direction==="vertical"?Y=U.offsetTop-(j.offsetHeight-U.offsetHeight)/2:Y=U.offsetLeft-(j.offsetWidth-U.offsetWidth)/2,R(j,Y,H?0:.3,a.direction)},R=(I,H,j,P)=>{let U=0;const Y=P==="horizontal"?I.scrollLeft:I.scrollTop,$=j===0?1:Math.round(j*1e3/16);function y(){P==="horizontal"?I.scrollLeft+=(H-Y)/$:I.scrollTop+=(H-Y)/$,++U<$&&al(y)}y()};return()=>{const I=[];if(a.mode==="simple")for(let j=0;j<h.value.length;j++){const P=h.value[j],U=D(P,j);I.push(U)}else for(let j=0;j<h.value.length;j++){const P=h.value[j],U=W(P,j);I.push(U)}const H={ref:L,class:m.value,style:v.value};return t.h("view",H,I)}}}}const{componentName:Fh,create:Bh,scope:Mh}=ie("steps-bar"),Hl=Bh(Ah(Fh,Mh,dr,Su)),aa=new Date().getFullYear(),Rh={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},ra=(e,n,o)=>{let l;if(et(n)?l=n:typeof n=="string"&&He(n)>0?l=ae.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Lh=(e,n,o)=>{et(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ae.format(new Date(l),o)};let _h={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(aa-10,0,1),validator:et},maxDate:{type:Date,default:()=>new Date(aa+10,11,31),validator:et},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:qh,scope:zh}=ie("date-picker"),jh=qh({components:{Picker:Mt},props:{..._h},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=ye.useFoxI18n(zh),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},a=t.ref(!1);t.watch(()=>e.visible,w=>{a.value=w});function r(w,g){return new Date(w,g,0).getDate()}const i=(w,g)=>{const f=e[`${w}Date`],B=f.getFullYear();let q=1,_=1,z=0,A=0;w==="max"&&(q=12,_=r(g.getFullYear(),g.getMonth()+1),z=23,A=59);const E=A;return g.getFullYear()===B&&(q=f.getMonth()+1,g.getMonth()+1===q&&(_=f.getDate(),g.getDate()===_&&(z=f.getHours(),g.getHours()===z&&(A=f.getMinutes())))),{[`${w}Year`]:B,[`${w}Month`]:q,[`${w}Date`]:_,[`${w}Hour`]:z,[`${w}Minute`]:A,[`${w}Seconds`]:E}},s=t.computed(()=>{if(!b.value)return[];const{maxYear:w,maxDate:g,maxMonth:f,maxHour:B,maxMinute:q,maxSeconds:_}=i("max",b.value),{minYear:z,minDate:A,minMonth:E,minHour:T,minMinute:C,minSeconds:M}=i("min",b.value);let k=[{type:"year",range:[z,w]},{type:"month",range:[E,f]},{type:"day",range:[A,g]},{type:"hour",range:[T,B]},{type:"minute",range:[C,q]},{type:"seconds",range:[M,_]}];switch(e.type){case"date":k=k.slice(0,3);break;case"datetime":k=k.slice(0,5);break;case"time":k=k.slice(3,6);break;case"year-month":k=k.slice(0,2);break;case"month-day":k=k.slice(1,3);break;case"datehour":k=k.slice(0,4);break;case"hour-minute":k=k.slice(3,5);break}return k}),u=(w,g,f)=>{if(!(g>w))return null;const B=[];for(;w<=g;)e.isShowChinese?B.push({text:w+l[f],value:w}):B.push({text:`${w}`,value:w}),f==="minute"?w+=e.minuteStep:w++;return B},d=t.computed(()=>{let w=[];return s.value.forEach(g=>{let f=u(g.range[0],g.range[1],g.type);f&&w.push(f)}),w}),h=(w,g)=>w==="year"?g.getFullYear():w==="month"?g.getMonth()+1:w==="day"?g.getDate():w==="hour"?g.getHours():w==="minute"?g.getMinutes():w==="seconds"?g.getSeconds():0,c=t.ref(),b=t.ref(null);t.watchEffect(()=>{let w,g=e.modelValue;if(typeof g=="string"?g.length==0?w=new Date:e.valueFormat?w=ra(e,e.modelValue,e.valueFormat):w=ra(e,g,Rh[e.type]):et(g)?w=g:w=new Date,!!w&&(!b.value||w.getTime()!==b.value.getTime())){b.value=w;let f=[];s.value.forEach(B=>{let q=h(B.type,w);f.push(q)}),c.value=f}});const N=w=>{if(e.type==="date"){let g=w;b.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])))}else if(e.type==="datetime"){let g=w;b.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])),g[3],g[4])}else if(e.type==="time"){let g=w,f=b.value??new Date,B=new Date(f.getFullYear(),f.getMonth(),f.getDate(),g[0],g[1],g[2]);b.value=B}else if(e.type==="year-month"){let g=w,f=new Date(g[0],g[1]-1);b.value=f}else if(e.type==="month-day"){let g=w,f=b.value??new Date,B=new Date(f.getFullYear(),g[0]-1,g[1]);b.value=B}else if(e.type==="datehour"){let g=w;b.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])),g[3])}else if(e.type==="hour-minute"){let g=w,f=b.value??new Date,B=new Date(f.getFullYear(),f.getMonth(),f.getDate(),g[0],g[1]);b.value=B}c.value=w};return{columns:d,dateIndexs:c,show:a,onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:w=>{N(w),a.value=!1;let g=b.value??new Date;if(e.valueFormat){let f=Lh(e,g,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",w)},onClear:()=>{n("clear")}}}});function Hh(e,n,o,l,a,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Kl=ke(jh,[["render",Hh]]),Kt=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:s,[r]:u,[i]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:s,text:u,children:d,_parent:n};return c.children&&c.children.length&&(c.children=Kt(c.children,c,o)),c}),Tr=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Tr(l.children,n)},Kh={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Yh=(e,n)=>{const o={...Kh,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let s=[],u={};return e.forEach(d=>{d={...d};const{[a]:h,[r]:c}=d,b=u[c]=u[c]||[];!s.length&&c===l&&(s=b),b.push(d),d.children=u[h]||(u[h]=[])}),i&&Object.keys(u).forEach(d=>{u[d].length>1&&u[d].sort((h,c)=>h[i]-c[i])}),u=null,s};class ia{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=Kt(n,null,this.config)}updateChildren(n,o){o?o.children=Kt(n,o,this.config):this.nodes=Kt(n,null,this.config)}getNodeByValue(n){let o;return Tr(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const a=l.find(r=>r.value===n[r.level]);if(!a)break;o.push(a),l=a.children}return o}isLeaf(n,o){const{leaf:l,children:a}=n,r=Array.isArray(a)&&!!a.length;return l||!r&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:Wh,scope:Uh}=ie("cascader-pane"),Gh=Wh({components:{Loading:vn,Checklist:dr,TabsBar:xn,TabsContainer:Sn,TabsPane:Tn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=ye.useFoxI18n(Uh),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),s=t.ref(new ia([],{})),u=t.ref([]),d=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||u.value.length==0?[{text:"Loading",value:0}]:u.value.map((g,f)=>({text:g.selectedNode?g.selectedNode.text:o("select"),value:f}))),c=new Map;let b;const N=async()=>{c.clear(),u.value=[],a.value=0,r.value=!1,b=null;let{options:g}=e;l.value.convertConfig&&(g=Yh(g,l.value.convertConfig)),s.value=new ia(g,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!s.value.nodes.length&&await m({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:s.value.nodes,selectedNode:null}],p()},p=async()=>{const g=i.value;if(g===void 0||!s.value.nodes.length)return;if(g.length===0){a.value=0,u.value=[{nodes:s.value.nodes,selectedNode:null}];return}let f=g;if(d.value&&Array.isArray(g)&&g.length){f=[];let B=s.value.nodes.find(q=>q.value===g[0]);if(B){f=[B.value],r.value=!0;const q=await g.slice(1).reduce(async(_,z)=>{const A=await _;await m(A);const E=A?.children?.find(T=>T.value===z);return E&&f.push(z),Promise.resolve(E)},Promise.resolve(B));await m(q),r.value=!1}}f.length&&g===e.modelValue&&s.value.getPathNodesByValue(f).map((q,_)=>{a.value=_,w.handleNode(q,!0)})},m=async g=>{if(!g)return;if(!l.value.lazyLoad){g.leaf=!0;return}if(s.value.isLeaf(g,d.value)||s.value.hasChildren(g,d.value))return;g.loading=!0;const f=g.root?null:g;let B=c.get(g);B||(B=new Promise(_=>{l.value.lazyLoad?.(g,_)}),c.set(g,B));const q=await B;Array.isArray(q)&&q.length>0?s.value.updateChildren(q,f):g.leaf=!0,g.loading=!1,c.delete(g)},v=g=>{const f=g.map(B=>B.value);i.value=f,n("change",f,g),n("update:modelValue",f,g)},w={async handleNode(g,f){const{disabled:B,loading:q}=g;if(!(!f&&B||!u.value[a.value])){if(s.value.isLeaf(g,d.value)){if(g.leaf=!0,u.value[a.value].selectedNode=g,u.value=u.value.slice(0,g.level+1),!f){const _=u.value.map(z=>z.selectedNode);v(_),n("pathChange",_)}return}if(s.value.hasChildren(g,d.value)){const _=g.level+1;if(u.value[a.value].selectedNode=g,u.value=u.value.slice(0,_),u.value.push({nodes:g.children||[],selectedNode:null}),a.value=_,!f){const z=u.value.map(A=>A.selectedNode);n("pathChange",z)}return}b=g,!q&&(await m(g),b===g&&(u.value[a.value].selectedNode=g,w.handleNode(g,f)))}},handleTabChange(g,f){b=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:o("select")},isSelected(g,f){return g.selectedNode&&g.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{N()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==i.value&&(i.value=g,p())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(i.value)&&i.value.length>0&&p()}),{panes:u,panesTitles:h,initLoading:r,tabsCursor:a,...w}}}),Xh={class:"fox-cascader"},Zh={role:"menu",class:"fox-cascader__pane"},Jh=["aria-checked","aria-disabled","onClick"],Qh={class:"fox-cascader__item__title"},em=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function tm(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),s=t.resolveComponent("Loading"),u=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Xh,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(c,b)=>(t.openBlock(),t.createBlock(d,{"pane-key":b,key:b},{default:t.withCtx(()=>[t.createElementVNode("view",Zh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.nodes,N=>(t.openBlock(),t.createElementBlock("view",{key:N.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(c,N),disabled:N.disabled}]),"aria-checked":e.isSelected(c,N),"aria-disabled":N.disabled||void 0,role:"menuitemradio",onClick:p=>e.handleNode(N,!1)},[t.createElementVNode("view",Qh,t.toDisplayString(N.text),1),N.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(u,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Jh))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[em]),_:1}))]),_:1},8,["modelValue"])])}const nm=ke(Gh,[["render",tm]]),{create:lm}=ie("cascader-picker"),om=lm({components:{FoxCascaderPane:nm,FoxPopup:wt},props:{...xl,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,s)=>{o.value=i,l.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),am=["innerHTML"];function rm(e,n,o,l,a,r){const i=t.resolveComponent("FoxCascaderPane"),s=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=u=>e.innerVisible=u),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,am)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Yl=ke(om,[["render",rm]]),im=Symbol.for("InnerPageScopeKey"),sm=Symbol.for("PageWrapperKey");function um(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,l){t.provide(im,!0);const a={};t.provide(sm,a);const r=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),s=u=>{i.value=u};return()=>{const d={...l.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":r},h={};if(typeof l.slots.default=="function"){const c=l.slots.default();h.default=()=>c}return t.h(O.ElDialog,d,h)}}}}const{componentName:dp,create:cm,scope:hp}=ie("dialog-item"),Wl=cm(um()),{create:fm}=ie("toast"),dm=fm({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},i=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,N=>{N&&i()});const u=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=he(e.iconSize);return t.h(e.icon,{width:N,height:N,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),hm={key:1,class:"fox-toast-title"},mm=["innerHTML"];function gm(e,n,o,l,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",hm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,mm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ul=ke(dm,[["render",gm]]),pm={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"}},vm=(e,n,o)=>({props:{...pm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),s=i(l,["placeholder"]),u=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),c=E=>{let C=E.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),a("update:modelValue",C,E),a("change",C,E)},b=t.ref({}),N=E=>{let C=E.target.value;u.active=!0,b.value=l.focusStyle,a("focus",C,E)},p=E=>{setTimeout(()=>{u.active=!1},0);let C=E.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),b.value={},a("blur",C,E)},m=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},v=t.computed(()=>String(l.modelValue).length>0),w=t.computed(()=>{const E={};return v.value||(E.display="none"),E}),g=()=>{a("search",l.modelValue)},f=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&g()},B=E=>{a("click-input",E)},q=E=>{a("click-left-icon",l.modelValue,E)},_=t.computed(()=>({textAlign:l.inputAlign})),z=t.ref(null);t.onMounted(()=>{l.autofocus&&z.value.focus()});const A=()=>{const E=[];if(r.leftin){const V={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:q},D=t.h("view",V,[r.leftin()]);E.push(D)}const T={ref:z,class:[`${e}__input-inner`],style:_.value,type:l.inputType,maxlengt:l.maxLength,placeholder:s.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:c,onFocus:N,onBlur:p,onkeyup:f},C=t.h("input",T);E.push(C);const M=[];if(l.clearable){const V={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:w.value,onClick:m},D=r?.clear?.()??l.clearIcon??o,W=t.h("view",V,[t.h(D)]);M.push(W)}if(r.rightin){const V={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=t.h("view",V,[r.rightin()]);M.push(D)}if(M.length>0){const V={class:`${e}__input-inner-right`},D=t.h("view",V,M);E.push(D)}const k={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...b.value}};return t.h("view",k,E)};return()=>{const E=[];if(l.label){const M={class:`${e}__search-label`},k=t.h("span",M,[l.label]);E.push(k)}if(r.leftout){const M={class:[`${e}__search-icon`,`${e}__left-search-icon`]},k=t.h("view",M,[r.leftout()]);E.push(k)}const T=A();if(E.push(T),r.rightout){const M={class:[`${e}__search-icon`,`${e}__right-search-icon`]},k=t.h("view",M,[r.rightout()]);E.push(k)}const C={class:`${e}`,style:d.value};return t.h("view",C,E)}}}),{componentName:ym,create:bm,scope:wm}=ie("searchbar"),Gl=bm(vm(ym,wm,Te.CircleClose)),xm=/scroll|auto|overlay/i,Cr=window;function Sm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Tm(e,n=Cr){let o=e;for(;o&&o!==n&&Sm(o);){const{overflowY:l}=window.getComputedStyle(o);if(xm.test(l))return o;o=o.parentNode}return n}function $r(e,n=Cr){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=Tm(e.value,n))}),o}const kr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Cm={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 $m(e,n,o){return{props:{...Cm},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),s=i(l,["pullText","loadText","loadMoreText"]),u=t.ref(),d=$r(u),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[e]:!0})),b=g=>g?g.offsetTop+b(g.offsetParent):0,N=()=>{let g=0,f=0,B="down";if(d.value==window){const q=kr();u.value&&(g=b(u.value)+u.value.offsetHeight-q-window.innerHeight),f=q}else{const{scrollHeight:q,clientHeight:_,scrollTop:z}=d.value;g=q-_-z,f=z}return h.beforeScrollTop>f?B="up":B="down",h.beforeScrollTop=f,a("scroll-change",f),g<=l.threshold&&B=="down"},p=()=>{nl(()=>{if(!N()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},m=()=>{d.value&&d.value.addEventListener("scroll",p,l.useCapture)},v=()=>{d.value&&d.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{m(),l.immediate&&p()}),t.onUnmounted(()=>{v()});const w=t.ref(!1);return t.onActivated(()=>{w.value&&(w.value=!1,m())}),t.onDeactivated(()=>{w.value=!0,v()}),t.watch(()=>l.modelValue,g=>{g||(h.isInfiniting=!1)}),()=>{const g={class:"fox-infinite__container"},f=t.h("view",g,[r?.default?.()]),B=[];if(h.isInfiniting){let A=r?.loading?.()??null;if(!A){let C=r?.loadingIcon?.()??null;if(!C){const V={class:["fox-infinite__bottom-box__img"]};C=t.h(o,V)}const M={class:"fox-infinite__bottom-box__text"},k=t.h("view",M,[s.loadText.value]);A=[C,k]}const E={class:"fox-infinite__bottom-box"},T=t.h("view",E,A);B.push(T)}else if(!l.hasMore){let A=r?.finished?.()??null;if(!A){const E={class:"fox-infinite__bottom-tips"};A=t.h("view",E,[s.loadMoreText.value]),B.push(A)}}const q={class:"fox-infinite__bottom"},_=t.h("view",q,B),z={class:c.value,ref:u};return t.h("view",z,[f,_])}}}}const{componentName:km,create:Dm,scope:Nm}=ie("infinite-loading"),Xl=Dm($m(km,Nm,vn)),Em={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}},Vm=(e,n,o)=>({props:{...Em},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),s=i(l,["pullingText","loosingText","loadingText"]),u=zl(),d=t.ref(),h=$r(d),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),N=t.computed(()=>{switch(c.status){case"pulling":return r.pulling?"":s.pullingText.value;case"loosing":return r.loosing?"":s.loosingText.value;case"loading":return r.loading?"":s.loadingText.value;default:return""}}),p=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),m=t.computed(()=>{const z={};return l.headHeight!=50&&(z.height=Pe(l.headHeight)),z}),v=z=>{const A=+(l.pullDistance||l.headHeight);let E=z;return z>A&&(z<A*2?E=(z+A)/2:E=A+z/4),Math.round(E)},w=(z,A)=>{const E=+(l.pullDistance||l.headHeight);c.distance=z,A?c.status="loading":z===0?c.status="normal":z<E?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:z})},g=()=>c.status!=="loading"&&c.status!=="complete",f=()=>h.value==window?kr()==0:h.value&&h.value.scrollTop==0,B=z=>{g()&&(f()?(u.start(z),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},q=z=>{g()&&c.moving&&(u.move(z),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(z.cancelable&&z.preventDefault(),w(v(u.state.deltaY))))},_=()=>{c.moving=!1,c.isPullRefresh&&g()&&u.state.deltaY&&(c.status==="loosing"?(w(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):w(0)),setTimeout(()=>{u.reset()},0)};return t.watch(()=>l.modelValue,z=>{z?w(+l.headHeight,!0):w(0)}),()=>{const z=[];let A=null;if(c.status==="loading"){if(A=r?.loading?.()??null,!A){const W={class:["fox-pull-refresh-container-topbox-icon"]};A=t.h(o,W)}}else c.status==="pulling"?A=r?.pulling?.()??null:c.status==="loosing"&&(A=r?.loosing?.()??null);A&&z.push(A);const E={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",E,[N.value]);z.push(T);const C={class:["fox-pull-refresh-container-topbox"],style:m.value},M=t.h("div",C,z),k={class:"fox-pull-refresh-container",style:p.value},V=t.h("div",k,[M,r?.default?.()]),D={ref:d,class:b.value};return ql()?Object.assign(D,{onTouchstart:B,onTouchmove:q,onTouchend:_}):Object.assign(D,{onMousedown:B,onMousemove:q,onMouseup:_}),t.h("div",D,[V])}}}),{componentName:Im,create:Pm,scope:Om}=ie("pull-refresh"),Zl=Pm(Vm(Im,Om,vn));function Am(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:l}){const a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=t.computed(()=>{const h={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),d=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const m={class:i.value,style:s.value};h=t.h(o.icon??"div",m)}const c={class:u.value,style:d.value},b=l.default?l.default():[],N=t.h("div",c,b),p={class:r.value};return o.textPosition==="right"?t.h("div",p,[h,N]):t.h("div",p,[N,h])}}}}const{componentName:Fm,create:Bm,scope:mp}=ie("indicator"),Jl=Bm(Am(Fm));function Mm(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const Rm={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 Lm(e,n,o,l=!1){return{props:{...Rm},emits:["click"],setup(a,r){const i=t.ref(null),s=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(f[`${e}--${a.type??"default"}`]=!0),a.size&&(f[`${e}--${a.size}`]=!0),f}),u=t.computed(()=>{const f={},B=a.textColor??a.color;return B&&(f.color=B),f}),d=(f,B)=>{let q=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const _=a.highlightFilter;if(f.indexOf(_)!==-1){const A=f.replace(new RegExp(_,"g"),`<span>${_}</span>`);B.innerHTML=A,B.class["is-highlight"]=!0,q=t.h(a.tag,B)}}else if(typeof a.highlightFilter=="function"){const _=a.highlightFilter(f);_&&(B.innerHTML=_,B.class["is-highlight"]=!0,q=t.h(a.tag,B))}return q},h=f=>{r.emit("click",f)};let c="";const b=()=>{const f=i.value;if(!f)return;const B=f.clientWidth;Mm(f,q=>{const _=f.innerHTML??"";ge(_)||q<B||(c?o?.show(f,_,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(f,_,{type:"text",showArrow:a.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let p=null;const m=f=>{p||(p=setTimeout(()=>{b(),p=null},a.showAfter??0))},v=f=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{N()},a.hideAfter??0)},w=()=>{const f=i.value;f&&(f.addEventListener("mouseover",m),f.addEventListener("mouseleave",v))},g=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",m),f.removeEventListener("mouseleave",v))};return t.onMounted(()=>{!ue(a.showOverflowTooltip)||!o||w()}),t.onBeforeUnmount(()=>{!ue(a.showOverflowTooltip)||!o||g()}),()=>{const f={onClick:h,class:s.value,style:u.value,ref:i};let B=null;if(ue(a.numberFormat)&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const E=A[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const T=de(a.digits),C=de(a.decimalLength),M=ue(a.autoPadding);let k=`${A[0].children}`,V=k.split("").reverse().join("");V=Qt(V,C,M,T,a.separator),k=V.split("").reverse().join(""),a.highlightFilter!==void 0&&(B=d(k,f)),B||(f.innerHTML=k,B=t.h(a.tag,f))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const E=A[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const T=`${A[0].children}`;B=d(T,f),B||(f.innerHTML=T,B=t.h(a.tag,f))}}}B||(B=t.h(a.tag,f,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return B;let _=null;if(a.icon){const A={[`${e}__mark-wrap`]:!0};a.type&&(A[`${e}__mark-wrap--${a.type}`]=!0);const E={},T=a.color;T&&(E.color=T);const C={class:A,style:E};_=t.h("view",C,t.h(a.icon))}else if(r.slots.mark){const A={[`${e}__mark-wrap`]:!0};a.type&&(A[`${e}__mark-wrap--${a.type}`]=!0);const E={},T=a.color;T&&(E.color=T);const C={class:A,style:E};_=t.h("view",C,{default:r.slots.mark})}else{const A={[`${e}__mark`]:!0};a.type&&(A[`${e}__mark--${a.type??"default"}`]=!0);const E={},T=a.color;T&&(E["background-color"]=T);const C={class:A,style:E};_=t.h("view",C)}const z={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",z,[_,B])}}}}const{componentName:_m,create:qm,scope:zm}=ie("text"),Ql=qm(Lm(_m,zm,Fe,!1)),jm={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:Te.ArrowUp}};function Hm(e,n,o){return{props:{...jm},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const c={[`${e}`]:!0};return l.disabled?c[`${e}__disabled`]=!0:c[`${e}__${l.type}`]=!0,c}),i=fe(l,"modelValue"),s=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),u=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const m={class:u.value},v=t.h("span",m,[s.value]);c.push(v)}const b={class:d.value},N=o(l.icon,b);return N&&c.push(N),t.h("div",{class:r.value,onClick:h},c)}}}}const{componentName:Km,create:Ym,scope:Wm}=ie("more-button"),Um=(e,n)=>(e=e??Te.ArrowUp,t.h(O.ElIcon,n,{default:()=>[t.h(e)]})),eo=Ym(Hm(Km,Wm,Um)),{componentName:Gm,create:Xm,scope:gp}=ie("tour"),Zm=Xm({components:{Close:Te.Close,ElPopover:O.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=Gm,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:p,maskWidth:m,maskHeight:v}=e,{width:w,height:g,left:f,top:B}=a.value,q=e.steps[l.active].offset??p,_=[f+w/2,B+g/2],z=Number(m||w),A=Number(v||g);return{width:`${z+ +q.left+q.right}px`,height:`${A+q.top+q.bottom}px`,top:`${_[1]-A/2-+q.top}px`,left:`${_[0]-z/2-+q.left}px`}}),s=p=>{p=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},u=p=>p.popoverWidth??e.width,d=p=>p.location??e.location,h=()=>{const p=document.querySelector(`${e.steps[l.active].target}`),m=_l(p);a.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},N=(p,m=0)=>{p&&h(),e.steps,l.active=m,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{N(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{N(p)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),Jm={key:0,class:"fox-tour__content"},Qm={key:0,class:"fox-tour__content-top"},eg={class:"fox-tour__content-inner"},tg={class:"fox-tour__content-bottom"},ng={class:"fox-tour__content-bottom-init"},lg={class:"fox-tour__content-bottom-operate"},og={key:1,class:"fox-tour__content fox-tour__content-tile"},ag={class:"fox-tour__content-inner"};function rg(e,n,o,l,a,r){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),u=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Jm,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Qm,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...c)=>e.close&&e.close(...c))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",eg,t.toDisplayString(d.content),1),t.createElementVNode("div",tg,[t.createElementVNode("div",ng,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",lg,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=c=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=c=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",og,[t.createElementVNode("div",ag,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const to=ke(Zm,[["render",rg]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class ig{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=ql()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=zl(),l=(a,r,i,s)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),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=a=>{this.moving&&(o.move(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function sa(e,n){return new ig(e,n)}var ua;const tl=typeof window<"u";tl&&((ua=window?.navigator)!=null&&ua.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const ca=e=>{const n=e;n.key==="Escape"&&ht.forEach(o=>o(n))},sg=e=>{t.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",ca),tl&&ht.push(e)}),t.onBeforeUnmount(()=>{ht=ht.filter(n=>n!==e),ht.length===0&&tl&&document.removeEventListener("keydown",ca)})},Ln="fox-focus-trap.focus-after-trapped",_n="fox-focus-trap.focus-after-released",ug="fox-focus-trap.focusout-prevented",fa={cancelable:!0,bubbles:!1},cg={cancelable:!0,bubbles:!1},da="foxFocusAfterTrapped",ha="foxFocusAfterReleased",fg=Symbol("foxFocusTrap"),no=t.ref(),Cn=t.ref(0),lo=t.ref(0);let _t=0;const Dr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},dg=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ma=(e,n)=>{for(const o of e)if(!dg(o,n))return o},hg=e=>{const n=Dr(e),o=ma(n,e),l=ma(n.reverse(),e);return[o,l]},mg=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),lo.value=window.performance.now(),e!==o&&mg(e)&&n&&e.select()}};function ga(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const gg=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=ga(e,l),e.unshift(l)},remove:l=>{e=ga(e,l),e[0]?.resume?.()}}},pg=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(Je(l,n),document.activeElement!==o)return},pa=gg(),vg=()=>Cn.value>lo.value,qt=()=>{no.value="pointer",Cn.value=window.performance.now()},va=()=>{no.value="keyboard",Cn.value=window.performance.now()},yg=()=>(t.onMounted(()=>{_t===0&&(document.addEventListener("mousedown",qt),document.addEventListener("touchstart",qt),document.addEventListener("keydown",va)),_t++}),t.onBeforeUnmount(()=>{_t--,_t<=0&&(document.removeEventListener("mousedown",qt),document.removeEventListener("touchstart",qt),document.removeEventListener("keydown",va))}),{focusReason:no,lastUserFocusTimestamp:Cn,lastAutomatedFocusTimestamp:lo}),zt=e=>new CustomEvent(ug,{...cg,detail:e}),{componentName:pp,create:bg,scope:vp}=ie("focus-trap"),wg={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"}},xg=bg({props:wg,emits:[da,ha,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=yg();sg(m=>{ue(e.trapped)&&!s.paused&&o("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=m=>{if(!e.loop&&!ue(e.trapped)||s.paused)return;const{key:v,altKey:w,ctrlKey:g,metaKey:f,currentTarget:B,shiftKey:q}=m,{loop:_}=e,z=v==="Tab"&&!w&&!g&&!f,A=document.activeElement;if(z&&A){const E=B,[T,C]=hg(E);if(T&&C){if(!q&&A===C){const k=zt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),_&&Je(T,!0))}else if(q&&[T,E].includes(A)){const k=zt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),_&&Je(C,!0))}}else if(A===E){const k=zt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||m.preventDefault()}}};t.provide(fg,{focusTrapRef:l,onKeydown:u}),t.watch(()=>e.focusTrapEl,m=>{m&&(l.value=m)},{immediate:!0}),t.watch([l],([m],[v])=>{m&&(m.addEventListener("keydown",u),m.addEventListener("focusin",c),m.addEventListener("focusout",b)),v&&(v.removeEventListener("keydown",u),v.removeEventListener("focusin",c),v.removeEventListener("focusout",b))});const d=m=>{o(da,m)},h=m=>o(ha,m),c=m=>{const v=t.unref(l);if(!v)return;const w=m.target,g=m.relatedTarget,f=w&&v.contains(w);ue(e.trapped)||g&&v.contains(g)||(a=g),f&&o("focusin",m),!s.paused&&ue(e.trapped)&&(f?r=w:Je(r,!0))},b=m=>{const v=t.unref(l);if(!(s.paused||!v))if(!e.escape&&ue(e.trapped)){const w=m.relatedTarget;!rl(w)&&!v.contains(w)&&setTimeout(()=>{if(!s.paused&&ue(e.trapped)){const g=zt({focusReason:i.value});o("focusout-prevented",g),g.defaultPrevented||Je(r,!0)}},0)}else{const w=m.target;w&&v.contains(w)||o("focusout",m)}};async function N(){await t.nextTick();const m=t.unref(l);if(m){pa.push(s);const v=m.contains(document.activeElement)?a:document.activeElement;if(a=v,!m.contains(v)){const g=new Event(Ln,fa);m.addEventListener(Ln,d),m.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Sa(f)||(Je(f),document.activeElement!==f&&(f="first")),f==="first"&&pg(Dr(m),!0),(document.activeElement===v||f==="container")&&Je(m)})}}}function p(){const m=t.unref(l);if(m){m.removeEventListener(Ln,d);const v=new CustomEvent(_n,{...fa,detail:{focusReason:i.value}});m.addEventListener(_n,h),m.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!vg())&&Je(a??document.body,!0),m.removeEventListener(_n,d),pa.remove(s)}}return t.onMounted(()=>{ue(e.trapped)&&N(),t.watch(()=>e.trapped,m=>{ue(m)?N():p()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:Sg,create:Tg,scope:yp}=ie("floating-window"),Cg=Symbol.for("InnerPageScopeKey"),$g=Symbol.for("PageWrapperKey"),kg={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}},Dg=Tg({inheritAttrs:!1,components:{FoxIcon:O.ElIcon,FocusTrap:xg},props:{...kg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Sg,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,x=>{l.value=x});const r=t.computed(()=>l.value===!1?!1:!A.value),i=t.ref(e.left),s=t.ref(e.top),u=t.ref(e.right),d=t.ref(e.bottom),h=t.computed(()=>{const x=["fox-floating-window"];return e.customClass&&x.push(e.customClass),x}),c=t.computed(()=>{const x={};return lt(i.value)?x.left="auto":x.left=Ae(i.value),lt(s.value)?x.top="auto":x.top=Ae(s.value),lt(u.value)?x.right="auto":x.right=Ae(u.value),lt(d.value)?x.bottom="auto":x.bottom=Ae(d.value),lt(e.zIndex)||(x["z-index"]=Ae(e.zIndex)),lt(_.value)||(x.height=_.value),lt(z.value)||(x.width=z.value),x}),b=t.computed(()=>e.closeIcon??Te.Close),N=t.computed(()=>e.collapseIcon??Te.ArrowUp),p=t.computed(()=>e.collapseText??""),m=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),v=t.computed(()=>e.expandText??e.title??"展开"),w=t.computed(()=>({[`${o}__collapse-text`]:!0})),g=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),f=t.ref(),B=t.ref(null),q=t.ref(null),_=t.computed(()=>Ae(e.height)||""),z=t.computed(()=>Ae(e.width)||""),A=t.ref(ue(e.collapse)),E=(x,K=!0)=>{A.value!==x&&(A.value=x,x?I():H(),n("update:collapse",x),x&&typeof M.onHide=="function"?M.onHide():!x&&typeof M.onShow=="function"&&M.onShow())};t.watch(()=>e.collapse,x=>{E(x)});const T=()=>{C()},C=x=>{x=x??!A.value,E(x)};t.provide(Cg,!0);const M={setCollapse:E,setFixedNavVisible:x=>{Z.value=x}};t.provide($g,M);const k=()=>{typeof M.beforeClose=="function"?M.beforeClose(()=>{l.value=!1}):l.value=!1},V=t.ref(null),D=t.computed(()=>!e.fixedNavTeleport),W=t.computed(()=>{const x=["fox-floating-window__fixednav"];return e.expandClass&&x.push(e.expandClass),e.collapsePosition==="left"?x.push("is-left"):e.collapsePosition==="right"&&x.push("is-right"),x}),L=t.ref(""),J=t.computed(()=>{const x={};return L.value?x.top=L.value:e.collapseTop&&(x.top=e.collapseTop),x}),X=t.ref(A.value),Z=t.computed({set:x=>{X.value=x},get:()=>l.value===!1?!1:X.value});let ne=null;const R=()=>{typeof ne=="function"&&(ne(),ne=null)},I=()=>{V.value&&V.value.classList.add("slide-in"),Z.value=!0,ne=()=>{V.value&&V.value.classList.remove("slide-in")}},H=()=>{V.value&&V.value.classList.add("slide-out"),ne=()=>{V.value&&V.value.classList.remove("slide-out"),Z.value=!1}},j=()=>{i.value=null,s.value=null,u.value=null,d.value=null},P={x:0,y:0},$=sa(x=>{if(!f.value)return;const K=f.value;if(j(),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,d.value=Q-(K.offsetTop+K.offsetHeight),P.x=i.value,P.y=d.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),d.value=le-(K.offsetTop+K.offsetHeight),P.x=u.value,P.y=d.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}},x=>{if(!f.value)return;const K=f.value;j(),e.origin==="left-top"?(i.value=P.x+x.x,s.value=P.y+x.y,K.style.left=Ae(i.value),K.style.top=Ae(s.value)):e.origin==="left-bottom"?(i.value=P.x+x.x,d.value=P.y-x.y,K.style.left=Ae(i.value),K.style.bottom=Ae(d.value)):e.origin==="right-bottom"?(u.value=P.x-x.x,d.value=P.y-x.y,K.style.right=Ae(u.value),K.style.bottom=Ae(d.value)):(u.value=P.x-x.x,s.value=P.y+x.y,K.style.right=Ae(u.value),K.style.top=Ae(s.value))}),y={x:0,y:0},G=sa(x=>{V.value&&(y.x=V.value.offsetLeft,y.y=V.value.offsetTop)},x=>{if(!V.value)return;const K=y.y+x.y;L.value=`${K}px`}),te=()=>{if(f.value){const x=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");q.value=x}};return t.onMounted(()=>{if(e.draggable&&f.value){const x=[];B.value&&x.push(B.value),e.footerDraggable&&(te(),q.value&&x.push(q.value)),$.open(x)}e.collapse===!0&&E(e.collapse,!1),V.value&&G.open(V.value)}),t.onBeforeUnmount(()=>{e.draggable&&B.value&&$.close(),V.value&&G.close()}),{classes:h,styles:c,isShow:r,closeIcon:b,onClose:k,dialogRef:f,headerRef:B,onClickToggle:T,collapseIcon:N,collapseText:p,collapseTextClasses:w,collapseIconClasses:g,expandIcon:m,expandText:v,isShowFixedNav:Z,fixedNavRef:V,fixedNavClasses:W,fixedNavStyles:J,onAnimationEnd:R,teleportDisabled:a,fixedNavTeleportDisabled:D}}}),Ng={ref:"headerRef",class:"fox-floating-window__header"},Eg={class:"fox-floating-window__title"},Vg={class:"fox-floating-window__tools"},Ig={class:"fox-floating-window__body"},Pg={class:"fox-floating-window__fixednav__text"};function Og(e,n,o,l,a,r){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Ng,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Eg,t.toDisplayString(e.title),1),t.createElementVNode("div",Vg,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Ig,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Pg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const oo=ke(Dg,[["render",Og]]);function Ag(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return La(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:bp,create:Fg,scope:wp}=ie("domain-provider"),ao=Fg(Ag()),Bg={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Mg(e,n){return{inheritAttrs:!1,props:Bg,setup(o,{slots:l}){if(ut&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(b,N)=>{if(h===null){r.set(b,{visible:null,callback:N});return}a.has(b)&&h.unobserve(b),a.set(b,{visible:null,callback:N}),h.observe(b)},s=b=>{if(h===null){r.delete(b);return}a.has(b)&&(a.delete(b),h.unobserve(b))};let u=o.initialVisibleObserverSize;Ai({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let h=null;const c=(b,N,p)=>{h=new IntersectionObserver(m=>{for(let v of m){let w=!1;v.intersectionRatio>0&&(w=!0);const g=a.get(v.target);if(g)try{if(o.loadPolicy==="lazy"&&!w&&g.visible!==null)return;g.visible=w,g.callback(w)}catch(f){console.error(f)}}},{root:b,rootMargin:N,threshold:p}),r.forEach((m,v)=>{a.set(v,m),h?.observe(v)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([b,N])=>{if(N||!b||h)return;let p=null;typeof b=="string"?p=document.querySelector(b):p=b,p&&c(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:xp,create:Rg,scope:Sp}=ie("rolling-provider"),ro=Rg(Mg()),Lg=[ul,fl,dl,hl,ml,we,gl,pl,Bt,vl,yl,bl,Sl,Tl,Cl,$l,kl,Dl,Nl,El,Vl,bn,Il,Pl,Ol,Al,Fl,Bl,Ml,wn,Rl,jl,xn,Sn,Tn,Hl,Mt,Kl,yn,Yl,Wl,pn,wt,Ul,Gl,Xl,Zl,Ot,gn,Jl,Ql,eo,to,oo,ao,ro],_g=new fi(Lg,[mi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>O.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>O.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>O.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>O.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>O.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>O.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>O.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>O.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>O.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>O.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>O.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>O.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>O.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>O.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>O.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>O.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>O.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>O.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>O.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>O.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>O.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>O.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>O.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>O.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>O.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>O.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>O.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>O.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>O.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>O.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>O.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>O.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>O.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>O.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>O.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>O.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>O.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>O.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>O.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>O.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>O.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>O.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>O.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>O.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>O.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>O.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>O.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>O.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>O.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>O.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>O.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>O.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>O.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>O.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>O.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>O.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>O.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>O.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>O.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>O.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>O.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>O.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>O.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>O.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>O.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>O.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>O.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>O.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>O.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>O.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>O.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>O.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>O.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>O.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>O.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>O.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>O.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>O.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>O.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>O.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>O.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>O.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>O.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>O.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>O.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>O.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>O.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>O.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>O.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>O.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>O.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>O.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>O.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>O.ElUpload});exports.ActionsheetItem=Rl;exports.ActionsheetPane=wn;exports.AutocompleteItem=Nl;exports.Broadcast=il;exports.BroadcastKey=De;exports.CalendarItem=Sl;exports.CascaderItem=Dl;exports.CheckboxItem=Ol;exports.Content=hl;exports.DataItemsKey=dt;exports.DateItem=bl;exports.DateUtils=ae;exports.DialogItem=Wl;exports.Domain=an;exports.DomainKey=Re;exports.DomainProvider=ao;exports.FloatingWindow=oo;exports.FooterBar=dl;exports.FoxActionsheetItem=Rl;exports.FoxActionsheetPane=wn;exports.FoxAutocompleteItem=Nl;exports.FoxCalendarItem=Sl;exports.FoxCascaderItem=Dl;exports.FoxCheckboxItem=Ol;exports.FoxContent=hl;exports.FoxDateItem=bl;exports.FoxDialogItem=Wl;exports.FoxDomainProvider=ao;exports.FoxFloatingWindow=oo;exports.FoxFooterBar=dl;exports.FoxGroup=ml;exports.FoxGroupSetting=Ml;exports.FoxHeaderBar=fl;exports.FoxHintText=Bt;exports.FoxIndicator=Jl;exports.FoxInfiniteLoading=Xl;exports.FoxInputItem=vl;exports.FoxInputNumberItem=kl;exports.FoxItem=we;exports.FoxMapping=Ot;exports.FoxMoneyItem=$l;exports.FoxMoreButton=eo;exports.FoxOverLay=pn;exports.FoxPage=ul;exports.FoxPickerItem=jl;exports.FoxPopup=wt;exports.FoxPrice=gn;exports.FoxPullRefresh=Zl;exports.FoxRadioItem=Pl;exports.FoxRateItem=Al;exports.FoxRollingProvider=ro;exports.FoxRowItem=pl;exports.FoxSearchBar=Gl;exports.FoxSelectItem=yl;exports.FoxSlotItem=gl;exports.FoxStepsBar=Hl;exports.FoxSwitchItem=Fl;exports.FoxTableItem=Il;exports.FoxTableMappingColumn=El;exports.FoxTableRadioColumn=Vl;exports.FoxTableSetting=bn;exports.FoxTabsBar=xn;exports.FoxTabsContainer=Sn;exports.FoxTabsPane=Tn;exports.FoxText=Ql;exports.FoxTimeItem=Tl;exports.FoxTimeSelectItem=Cl;exports.FoxToast=Ul;exports.FoxTour=to;exports.FoxTreeSelectItem=Bl;exports.Foxcalendarpicker=yn;exports.Foxcascaderpicker=Yl;exports.Foxdatepicker=Kl;exports.Foxpicker=Mt;exports.Group=ml;exports.GroupSetting=Ml;exports.HeaderBar=fl;exports.HintText=Bt;exports.Indicator=Jl;exports.InfiniteLoading=Xl;exports.InputItem=vl;exports.InputNumberItem=kl;exports.Item=we;exports.Mapping=Ot;exports.MoneyItem=$l;exports.MoreButton=eo;exports.OverLay=pn;exports.Page=ul;exports.PickerItem=jl;exports.Popup=wt;exports.Price=gn;exports.PriorityPolicy=Be;exports.PullRefresh=Zl;exports.RadioItem=Pl;exports.RateItem=Al;exports.RollingProvider=ro;exports.RowItem=pl;exports.SearchBar=Gl;exports.SelectItem=yl;exports.SlotItem=gl;exports.StepsBar=Hl;exports.SwitchItem=Fl;exports.TableItem=Il;exports.TableMappingColumn=El;exports.TableRadioColumn=Vl;exports.TableSetting=bn;exports.TabsBar=xn;exports.TabsContainer=Sn;exports.TabsPane=Tn;exports.Text=Ql;exports.TimeItem=Tl;exports.TimeSelectItem=Cl;exports.Toast=Ul;exports.Tour=to;exports.TreeSelectItem=Bl;exports.UniqueID=Ja;exports.ValidateSchema=Ma;exports.ValidateSchemaKey=We;exports.calendarpicker=yn;exports.cancelRaf=Ir;exports.cascaderpicker=Yl;exports.clearNonNumber=zr;exports.clone=Un;exports.compareTo=Kn;exports.createBroadcast=nn;exports.createValidateSchema=ln;exports.datepicker=Kl;exports.debounce=Et;exports.debounceRef=ti;exports.decimalLength=Ia;exports.default=_g;exports.defineBroadcast=Yr;exports.defineConfigDomain=La;exports.defineDataItem=qa;exports.defineDomain=sl;exports.defineItem=Se;exports.definePageState=za;exports.deleteGlobalValidator=Xr;exports.disabledProperty=Ve;exports.divide=ol;exports.excludeProps=Ce;exports.extend=it;exports.floatData=Kr;exports.getGlobalValidateCheckEvents=Aa;exports.getGlobalValidateResetEvents=Ba;exports.getPageContentAreaHeight=Gt;exports.getPageContentAreaWidth=Xt;exports.getPageFooterAreaHeight=It;exports.getPageHeaderAreaHeight=Vt;exports.getRootDomain=mt;exports.hasSymbol=Ca;exports.includeProps=Ft;exports.indexOf=jr;exports.installRules=_a;exports.integerLength=Va;exports.isArray=Or;exports.isArrayLike=ka;exports.isBrowser=ut;exports.isDate=et;exports.isESModule=Mr;exports.isEmptyString=ge;exports.isEqual=Le;exports.isFunction=Yn;exports.isHidden=tn;exports.isInnerPage=oi;exports.isMap=Ar;exports.isNil=rl;exports.isNumberString=Ea;exports.isObject=Me;exports.isPlainObject=Wn;exports.isPromise=Wt;exports.isRegExp=Na;exports.isSet=Fr;exports.isString=Sa;exports.isSubPage=ai;exports.isSymbol=Br;exports.isTouch=ql;exports.isWindow=$a;exports.lastIndexOf=Hr;exports.makeArray=qr;exports.merge=Da;exports.multiply=ba;exports.negate=wa;exports.nextTick=Lr;exports.numberFormat=Qt;exports.objectToString=Ta;exports.once=ni;exports.picker=Mt;exports.property=Ne;exports.raf=al;exports.readonlyProperty=Ee;exports.setGlobalValidateCheckEvents=Zr;exports.setGlobalValidateHandler=Ur;exports.setGlobalValidateMessages=Qr;exports.setGlobalValidateResetEvents=Jr;exports.setGlobalValidator=Gr;exports.throttle=Ra;exports.toBoolean=ue;exports.toNumber=de;exports.toPadding=ze;exports.toPx=he;exports.toPxDesc=Pe;exports.toTypeString=en;exports.toValue=fe;exports.tryTimes=on;exports.typeOf=Ut;exports.unNumberFormat=xa;exports.updatePageState=Gn;exports.useBroadcast=Dt;exports.useDomain=Ue;exports.useExpose=pe;exports.useInnerSize=cl;exports.usePageState=rn;exports.usePosition=Xa;exports.useRawTouch=zl;exports.useRect=_l;exports.useSize=sn;exports.useTouch=wr;exports.valueLength=He;