@fox-js/foxui-pc 4.1.1-16 → 4.1.1-17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(g,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(g=typeof globalThis<"u"?globalThis:g||self,l(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,l,ut,S,Ne,qe){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Sat Aug 02 2025 21:48:44 GMT+0800 (中国标准时间)
3
- */const qt=window,ua=typeof window<"u";function ca(){return typeof qt<"u"?qt.requestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function fa(e){ua?cancelAnimationFrame(e):clearTimeout(e)}const ao=ca();/*!
1
+ (function(m,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(m=typeof globalThis<"u"?globalThis:m||self,l(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,l,ut,T,Ie,Pe){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Sat Aug 30 2025 13:48:00 GMT+0800 (中国标准时间)
3
+ */const _t=window,ya=typeof window<"u";function pa(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ba(e){ya?cancelAnimationFrame(e):clearTimeout(e)}const dr=pa();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function Pt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ie(e),t=Ie(t),[e,t]=Dn(Ie(e),Ie(t)),o==1&&(n==1?e=On(e):t=On(t));let r=io(e,t);return o?o==2?"-"+Ie(r):e.length<r.length?Ie(r.substring(1)):"-"+Ie(On(r)):Ie(r)}function On(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return io(t,a)}function Ie(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Dn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function io(e,t){[e,t]=Dn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ve=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ve||{});function Ct(e,t=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let s=a.substr(0,a.length-t);return e=s+"."+a.substr(a.length-t)+i,s=Ct(e,0,o),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,so(r[1],a,n,o)?(n?"-":"")+Vn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let u=r[1].substring(t);return u&&so(u,i,n,o)&&(i=Vn(i),i.length>t)?(n?"-":"")+Vn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function so(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!o&&n===ve.FLOOR||o&&n===ve.CEILING)return!1;if(n===ve.UP||o&&n===ve.FLOOR||!o&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Vn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Rn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=$t(e),t=$t(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=$t(e.replace(".","")),t=$t(t.replace(".","")),e.length<t.length){let m=e;e=t,t=m}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let b=0;for(let v=t.length-1;v>=c&&v>=0;v--)s[v]>-1&&s[v]<e.length&&(b+=parseInt(e[s[v]--])*parseInt(t[v]));b+=u,u=Math.floor(b/10),d=b%10+d,c--}return d=$t(da(d,a)),o==1&&(d="-"+d),d}function da(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function $t(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 Fn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ie(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ie(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ie(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ie(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ie(e.replace(".","")))}let a=0,i=t.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(t);)s=Pt(s,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(n==1?"-":"")+Ie(Ct(u,o-2))}function An(e,t){return e=e.toString(),t=t.toString(),t=Mn(t),Pt(e,t)}function Mn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function uo(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),co(e),co(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=An(e,Rn(t,Ct(Fn(e,t),0,ve.FLOOR)));return o+n}function co(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function fo(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Dn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class de{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ie(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ie(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=de.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=de.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=t.substring(u,u+o)+(u<a-o&&u>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return de.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ve.HALF_EVEN){if(t=de.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Ct(t,o,n)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new de(Ct(this.value,t,o))}static floor(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.FLOOR)}static ceil(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.CEILING)}static add(t,o){return t=de.validate(t),o=de.validate(o),Pt(t,o)}add(t){return new de(Pt(this.value,t.getValue()))}static subtract(t,o){return t=de.validate(t),o=de.validate(o),An(t,o)}subtract(t){return new de(An(this.value,t.getValue()))}static multiply(t,o){return t=de.validate(t),o=de.validate(o),Rn(t,o)}multiply(t){return new de(Rn(this.value,t.getValue()))}static divide(t,o,n){return t=de.validate(t),o=de.validate(o),Fn(t,o,n)}divide(t,o){return new de(Fn(this.value,t.getValue(),o))}static modulus(t,o){return t=de.validate(t),o=de.validate(o),uo(t,o)}modulus(t){return new de(uo(this.value,t.getValue()))}static compareTo(t,o){return t=de.validate(t),o=de.validate(o),fo(t,o)}compareTo(t){return fo(this.value,t.getValue())}static negate(t){return t=de.validate(t),Mn(t)}negate(){return new de(Mn(this.value))}}function ho(e,t){return de.multiply(`${e}`,`${t}`)}function Ln(e,t,o=8){return de.divide(`${e}`,`${t}`,o)}function Bn(e,t){return e=`${e}`,t=`${t}`,de.compareTo(e,t)}function go(e){return de.negate(e)}function jt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),t!=-1&&(t<s.length?s=s.substring(0,t):o&&t>s.length&&(s=s.padEnd(t,"0")));let d;if(n>0){let m="",b=u.split("").reverse();for(let v=0;v<b.length;v++)m+=b[v]+((v+1)%n==0&&v+1!=b.length?r:"");s.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function mo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const _n=ao,ha=Array.isArray,ga=e=>zt(e)==="[object Map]",ma=e=>zt(e)==="[object Set]",ya=e=>e instanceof Date,qn=e=>typeof e=="function",yo=e=>typeof e=="string",pa=e=>typeof e=="symbol",et=e=>e!==null&&typeof e=="object",po=e=>et(e)&&qn(e.then)&&qn(e.catch),bo=Object.prototype.toString,zt=e=>bo.call(e),Pn=e=>zt(e)==="[object Object]",vo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ba(e){return e.__esModule||vo&&e[Symbol.toStringTag]==="Module"}const va=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ct(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=t[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[i]=ct(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function jn(e,t,o=!1){if(!o)ct(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Pn(i))continue;a=jn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Pn(i))continue;a=jn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const zn=va?Promise.resolve():null;function wa(e,...t){zn!==null?t&&t.length>0?zn.then(()=>{e(t)}):zn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Te(e){return typeof e=="number"?e:Number(e)}const Sa={"[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 Ht(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Sa[o]||"object"}function wo(e){return e&&typeof e=="object"&&"setInterval"in e}function Kt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function So(e){let t=!!e&&"length"in e&&e.length,o=Ht(e);return o==="function"||wo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function xo(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function xa(e,t=[]){let o=t;return e!=null&&(So(Object(e))?xo(o,typeof e=="string"?[e]:e):o.push(e)),o}function tt(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Ht(e),n=Ht(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=t[u];if(!tt(s,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!tt(a,i))return!1}return!0}return!1}const ot=typeof window<"u";function Hn(e){return e==null}function Kn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function To(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Co(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function $o(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Eo(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function Ta(e,t=!0,o=!0){t?e=Eo(e,".",/\./g):e=e.replace(/\./g,""),o?e=Eo(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ca(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(tt(e,o))return!0}):t.indexOf(e)}function $a(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(tt(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Et(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ko(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Oe(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const Ea=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},we=Symbol.for("BroadcastKey");class Wn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||Kn(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,u=t.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};t.resolve=s}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):Kn(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...n]);s!=null&&a.push(s)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},o,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(t,o,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};t.resolve=u}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Wt(e,t,o,n){const r=new Wn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ka(e,t,o){const n=o;if(n[we])return n[we];const r=l.inject(we,null),a=new Wn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[we]=a,l.provide(we,a),l.onUnmounted(()=>{a.destroy(),n[we]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[we]??l.inject(we,null):l.inject(we,null)}class Na{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?kt(n):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Nt=new Na;function Ia(e){Nt=e}function Oa(e){Nt?Object.assign(Nt,e):Nt=e}function Da(e,t){ut.Schema.setValidator(e,t)}function Va(e){ut.Schema.deleteValidator(e)}let No=["blur","clear"];function Ra(e){No=e}function Io(){return No}let Oo=["focus","change","setValue"];function Fa(e){Oo=e}function Do(){return Oo}function Aa(e){ut.Schema.messages(e)}function It(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Yt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const We=Symbol("ValidateSchemaKey");class Vo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Yt(It(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};n.push(s)}}this.attrRules=Yt(n);const r=It(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Nt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ut.Schema.setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ut.Schema.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut.Schema.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=It(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Yt(t):this.rules=Yt([t]);const n=It(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=It(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},u=new ut.Schema(r),s=this.proxy??i;return u.validate(i,{context:s}).then(d=>{if(d.pass)this.success();else{let m="error";Array.isArray(d.errors)&&d.errors.length>0&&(m=d.errors[0].message??m,d.errors=[d.errors[0]],d.errors[0].ref=s),this.error(m)}return d}).catch(d=>{const m=d.message??`${d}`;return this.error(m),d})}}return Promise.resolve({pass:!0})}}function Ut(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new Vo(t,o,e)}const Gt=Symbol.for("EventEmitterKey");class Ro{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Pe(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Ma(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function La(e,t){const o=Pe((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Ba(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Xt(e,t,o,n=0,r=!0,a){let i=t,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(s,i)};setTimeout(s,i)}const _e=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class Zt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const _a=new Zt;function yt(){return _a}function rt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[_e]??l.inject(_e,null):l.inject(_e,null)}const Yn=Symbol("OriginalDateKey");function Un(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(_e,null);i===null&&(i=yt());const u=e||t.prop||t.name;let s=new Zt(u);s.parent=i;const c=f=>{a[Yn]||b(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[Yn]??null,b=f=>{const h={};ct(!0,h,l.toRaw(f)),a[Yn]=h};l.isReactive(t)||typeof t=="function"?l.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&b(t.modelValue);const v=(f,h)=>{s?.set(f,h)},p=f=>s?.getForSelf(f)??null;if(a[_e]=s,l.provide(_e,s),r!==null){const f=l.inject(we,null),h=Wt(a,f,u,n);s.broadcast=h,a[we]=h,l.provide(we,h),a.broadcast=(T,q,...j)=>Reflect.apply(h.emit,h,[T,q,...j]);const A=l.inject(We,null),C=Ut(a,A,{componentName:""});s.validateSchema=C,a[We]=C,l.provide(We,C),a[mt]=new Map,a.validate=(T=!0)=>{const q=[];let j=null;const V={deep:!1};if(T===!0)j={name:"*"};else if(Array.isArray(T)&&T.length>0){const I=T;j={name:R=>R?I.indexOf(R)!==-1:!1}}else if(T!=null&&typeof T=="object"){const I=T;if(Object.assign(V,I),Array.isArray(I.include)&&I.include.length>0){const R=I.include;j={name:x=>x?R.indexOf(x)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const R=I.exclude;j={name:x=>x?R.indexOf(x)===-1:!1}}else j={name:"*"}}if(j){const I=h?.emitToChildren(j,"validate",V);I&&Reflect.apply([].push,q,I)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(I=>{let R=[];return I.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(R=[...R,...x.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(T).forEach(I=>{let R=String(I);const x={componentName:"",fieldName:R,pureDataValidate:!0};if(s){const z=Ao(s,R,x,h,C);a[mt].set(R,z);const y=T[R];y&&z.validateSchema.setRule(y)}});return}if(q){const V=Reflect.ownKeys(T),I={name:R=>V.includes(R),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(I,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let q=null;if(T===!0)q={name:"*"};else if(Array.isArray(T)&&T.length>0){const j=T;q={name:V=>V?j.indexOf(V)!==-1:!1}}else if(T!=null&&typeof T=="object"){const j=T;if(Array.isArray(j.include)&&j.include.length>0){const V=j.include;q={name:I=>I?V.indexOf(I)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const V=j.exclude;q={name:I=>I?V.indexOf(I)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=T=>{const q=d();if(!q)return;const j={};if(ct(!0,j,m()??{}),Array.isArray(T))T.forEach(V=>{q[V]=j[V]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(I=>{q[I]=j[I]});else if(T&&Array.isArray(T.exclude)){let V=T.exclude??[];Reflect.ownKeys(j).forEach(I=>{V.includes(I)||(q[I]=j[I])})}else Object.assign(q,j);a.clearValidate(T)},a.setModelValue=(T,q)=>{if(!q||q===u)c(T);else{const j={name:q,messagingPolicy:"Once"};h?.emitToChildren(j,"setModelValue",T)}},a.getModelValue=()=>d(),a.setDomainProperty=(T,q)=>{v(T,q)},a.getDomainProperty=T=>p(T),setTimeout(function(){h?.pull()},0)}return l.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[We]=void 0,l.provide(We,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[we]=void 0,l.provide(we,null)),s?.destroy(),a[_e]=void 0,l.provide(_e,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function Fo(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(_e,null);a===null&&(a=yt());const i=e||t.prop||t.name;let u=new Zt(i);return u.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(t,o),r[_e]=u,l.provide(_e,u),l.onUnmounted(()=>{u?.destroy(),r[_e]=void 0,l.provide(_e,null),u=null,r=null}),u}function ke(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(we,null);let u=Wt(r,i,a,o);r[we]=u,l.provide(we,u),r.broadcast=(p,f,...h)=>u?Reflect.apply(u.emit,u,[p,f,...h]):null;const s=l.inject(We,null);e.fieldName=e.fieldName??a;let c=Ut(r,s,e);r[We]=c,l.provide(We,c),r.validate=(p=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,A=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)A=!0,h=!0;else if(p&&typeof p=="object"){const C=p,T=C.ignoreDisabled??!0,q=C.ignoreReadonly??!0,j=C.ignoreHidden??!0;T===!0&&e.disabled===!0||q===!0&&e.readonly===!0||j===!0&&Kt(r.$el)?A=!1:(Array.isArray(C.include)&&C.include.indexOf(a)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(a),A=!0),h=C.deep??!1}else typeof p=="boolean"&&(h=p),A=!0;if(A){const C=c?.validate();f.push(C)}if(h){let C=null;const T={deep:!1};if(p===!0)C={name:"*"};else if(Array.isArray(p)&&p.length>0){const q=p;C={name:j=>j?q.indexOf(j)!==-1:!1}}else if(p!=null&&typeof p=="object"){const q=p;if(Object.assign(T,q),Array.isArray(q.include)&&q.include.length>0){const j=q.include;C={name:V=>V?j.indexOf(V)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const j=q.exclude;C={name:V=>V?j.indexOf(V)===-1:!1}}else C={name:"*"}}if(C&&u){const q=u.emitToChildren(C,"validate",T);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(C=>{let T=[];return C.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(T=[...T,...q.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=(p,f=!1)=>{const h=p[a];if(h&&c?.setRule(h),f&&u){const A={name:C=>Reflect.ownKeys(p).includes(C)};u.emitToChildren(A,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(p===!0)f={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;f={name:A=>A?h.indexOf(A)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const A=h.include;f={name:C=>C?A.indexOf(C)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;f={name:C=>C?A.indexOf(C)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Ro(r);r[Gt]=d;const m=Pe((p="validate")=>{c&&(p==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Io()).forEach(p=>{d&&d.on(p,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Do()).forEach(p=>{d&&d.on(p,f=>{m("reset")})}),setTimeout(function(){u?.pull()},0),l.onUnmounted(()=>{u?.destroy(),r[we]=void 0,l.provide(we,null),u=null,c?.destroy(),r[We]=void 0,l.provide(We,null),c=null,d?.destroy(),r[Gt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(p,...f)=>{d&&Reflect.apply(d.emit,d,[p,...f])},onEvent:(p,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(p,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Ao(e,t,o,n,r){const a={},i=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=Ut({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let b=!1,v=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)v=!0,b=!0;else if(d&&typeof d=="object"){const p=d;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),v=!0,b=p.deep??!1}else typeof d=="boolean"&&(b=d),v=!0;if(v&&s){const p=s.validate();m.push(p)}if(b){let p=null;const f={deep:!1};if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;p={name:A=>A?h.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const A=h.include;p={name:C=>C?A.indexOf(C)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;p={name:C=>C?A.indexOf(C)===-1:!1}}else p={name:"*"}}if(p&&c){const h=c.emitToChildren(p,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(p=>{let f=[];return p.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=Wt(null,n,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Mo(){let t=l.getCurrentInstance()?.proxy,o=new Ro(t);return t[Gt]=o,l.onUnmounted(()=>{o?.destroy(),t[Gt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const De=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,t)}px`:"";function me(e,t=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const at="PageStateKey";function Ze(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=me(e.top)),e.left!==null&&e.left!==void 0&&(t.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=me(e.right))),t}function Gn(e,t,o={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ze(o.headerPadding??t.headerPadding),e.footerHeight=me(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ze(o.footerPadding??t.footerPadding),e.contentPadding=Ze(o.contentPadding??t.contentPadding),n){const s=o.height??t.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(o.width??t.width??0,r)}}function Lo(e,t={}){const o={top:null,bottom:null,right:null,left:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=me(r.top),n.safeAreaBottom=me(r.bottom),n.safeAreaLeft=me(r.left),n.safeAreaRight=me(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Gn(n,a,t,!0,i,u,s,c);const d=l.reactive(n),m=e.getForParent(at);m&&(n.height=tn(e,m),n.width=nn(e,m),l.watch([()=>tn(e,m),()=>nn(e,m)],([v,p])=>{d.height=v,d.width=p}));const b=!m;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,p,f=-1,h=-1,A=0,C=0])=>{Gn(d,p,t,b,f,h,A,C)}),e.set(at,d),d}function Qt(e){return e.get(at)}function Jt(e,t){if(t=t??e.get(at),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function en(e,t){if(t=t??e.get(at),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function tn(e,t){if(t=t??e.get(at),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Jt(e,t),n=en(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function nn(e,t){return t=t??e.get(at),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function qa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Pa(e){return!!e.getForParent(at)}var je=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(je||{});function ln(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,o=1,n){const r=rt();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let u=a.length-1;u>=0;u--){const s=a[u];if(ln(s,n))return s}const i=e.value;return ln(i,n)?i:null}):l.computed(()=>{const a=e.value;if(ln(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(ln(s,n))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,n&&n("setValue",s))}else u!==i.value&&(i.value=u,n&&n("setValue",u))}),i}const Bo=new Map,on=new Map;let Xn=null;function ja(e){Xn=e}function _o(e,t,o){if(o){let n=on.get(o);n||(n=new Map,on.set(o,n)),n.set(e,t)}else Bo.set(e,t)}function Ye(e,t,o){!o&&Xn&&(o=Xn(e)??void 0);let n=null;if(o){let r=on.get(o);r&&(n=r.get(t))}return n||(n=Bo.get(t)),n}function za(e,t){for(let o in e){const n=e[o];_o(o,n,t)}}function Ha(e){on.delete(e)}function Ka(){return{top:0,left:0,bottom:0,right:0}}function Wa(){if(ot){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:t,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ya(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ua{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ya(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=yt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Pe(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},120);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ct({},Ka(),t.safeAreaInset),i=Wa(),u=ct({},i.pageLayout,t.pageLayout);o=o??yt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){ja(t)}setAPI(t,o,n){_o(t,o,n)}getAPI(t,o,n){return Ye(t,o,n)}batchSetAPI(t,o){za(t,o)}clearScopeAPI(t){Ha(t)}getRootDomain(){return yt()}}const Ga=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload,S.ElStatistic,S.ElCountdown,S.ElSegmented,S.ElAnchor,S.ElAnchorLink,S.ElWatermark,S.ElMessageBox,S.ElMessage,S.ElNotification],Xa=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Za=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Ga.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Xa.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Se(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Ce={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},qo={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}},Po={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},jo=[];for(const e in Po)jo.push(e);const Qa=Symbol.for("InnerPageScopeKey"),Ja={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}},ei=(e,t)=>({inheritAttrs:!0,props:{...Ce,...qo,...Ja},setup(o,{slots:n}){const r=Un(o.name,o),a=l.inject(Qa,!1);if(r){const d=Lo(r,o);Se({getPageContentHeight:()=>tn(r,d),getPageContentWidth:()=>nn(r,d),getPageHeaderHeight:()=>Jt(r,d),getPageFooterHeight:()=>en(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,m=!1)=>{const b=s?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(d,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[b,v])=>{if(d&&b){const p=l.toRaw(b),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(C=>{h.includes(C)||(f[C]=[])}),c(f)}if(m&&v){const p=l.toRaw(v),f=l.toRaw(m),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(C=>{h.includes(C)||(f[C]=[])}),c(f,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const d=l.toRaw(o.rules);c(d)}if(o.pureDataRules){const d=l.toRaw(o.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return l.h("div",d,[n?.default?.()])}}}),{componentName:ti,create:ni}=ie("page"),Zn=ni(ei(ti));function Qn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function rn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const li=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=rt(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,c=l.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=l.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?me(r.height):null,b=l.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const _=Ze(r.padding??u.headerPadding);return Object.assign(y,_),m&&(u.headerHeight=m),u.headerHeight>0&&(y.height=u.headerHeight),y.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(_.top??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)),y}if(m&&(y.height=m),r.padding){const _=Ze(r.padding);Object.assign(y,_)}return y}),v=l.ref(null),p=()=>{if(u&&v.value&&!Kt(v.value)){if(!n){const y=Qn(v.value);u.headerAllHeight=y.height}return u.headerMounted=!0,!0}return!1},f=Pe(p,120);let h=null;l.onMounted(()=>{u&&(Xt(p,50,5,50,!0),window.ResizeObserver&&v.value&&(h=new window.ResizeObserver(f),h.observe(v.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const A=l.computed(()=>{const y={};return b.value.height!==null&&b.value.height!==void 0&&(y.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(y.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(y.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(y.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(y.paddingBottom=`${b.value.bottom}px`),y}),C=l.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function T(){a.emit("back")}function q(){a.emit("click-title")}function j(){a.emit("click-right")}function V(){a.emit("click-right-text")}const I=()=>{if(!r.leftShow)return null;const y=[];if(a.slots.left)y.push(a.slots.left());else{if(a.slots.leftIcon){const _=l.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);y.push(_)}else if(r.leftIcon){const _=l.h("view",{class:"left-icon",onClick:T},[l.h(r.leftIcon)]);y.push(_)}if(r.leftText){const _=l.h("view",{class:"left-text",onClick:T},[r.leftText]);y.push(_)}}return y.length===0?null:l.h("view",{class:"fox-header-bar__left"},y)},R=()=>{if(!r.rightShow)return null;const y=[];if(a.slots.right)y.push(a.slots.right());else{if(r.rightText){const _=l.h("view",{class:"right-text",onClick:V},[r.rightText]);y.push(_)}if(a.slots.rightIcon){const _=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);y.push(_)}else if(r.rightIcon){const _=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);y.push(_)}}return y.length===0?null:l.h("view",{class:"fox-header-bar__right"},y)},x=()=>{if(!r.titleShow)return null;const y=[],_=a.slots.default?a.slots.default():null;if(_)y.push(_);else{if(r.title){const Z=l.h("view",{class:"title-text"},[r.title]);y.push(Z)}if(a.slots.titleIcon){const Z=l.h("view",{class:"title-icon",onClick:q},[a.slots.titleIcon()]);y.push(Z)}else if(r.titleIcon){const Z=l.h("view",{class:"title-icon",onClick:q},[l.h(r.titleIcon)]);y.push(Z)}}return y.length===0?null:l.h("view",{class:"fox-header-bar__title"},y)},z=()=>{const y=[],_=a.slots.bottom?a.slots.bottom():null;return _&&y.push(_),y.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(!C.value)return null;const y=[];if(a.slots.all)y.push(a.slots.all());else{const Z=[],B=I();B&&Z.push(B);const k=x();k&&Z.push(k);const M=R();if(M&&Z.push(M),Z.length>0){const G=l.h("view",{class:d.value},Z);y.push(G)}const P=z();P&&y.push(P)}if(y.length===0)return null;const _={class:c.value,style:A.value,ref:v};return l.h("view",_,y)}}}),{componentName:oi,create:ri,scope:ai}=ie("header-bar"),Jn=ri(li(oi,ai,Ne.ArrowLeft));function ii(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=rt(),i=a?Qt(a):null,u=l.computed(()=>{const f=e;return{[f]:!0,[`${f}--${n.align}`]:!0,[`${f}--border`]:n.border,[`${f}--fixed`]:n.fixed,[`${f}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),s=n.height!==null&&n.height!==void 0?me(n.height):null,c=l.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ze(n.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),n.padding){const h=Ze(n.padding);Object.assign(f,h)}return f}),d=l.ref(null),m=()=>{if(i&&d.value&&!Kt(d.value)){if(!o){const f=Qn(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},b=Pe(m,120);let v=null;l.onMounted(()=>{i&&(Xt(m,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(b),v.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const p=l.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=De(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=De(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=De(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=De(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=De(c.value.bottom)),f});return()=>{const f=r.slots.default?r.slots.default():[],h={ref:d,class:u.value,style:p.value};return l.h("view",h,f)}}}}const{componentName:si,create:ui}=ie("footer-bar"),el=ui(ii(si));function ci(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:n,attrs:r}){const a=rt(),i=l.computed(()=>({[e]:!0})),u=a?Qt(a):null,s=l.computed(()=>{const v={};if(a&&u){if(o.padding){const j=Ze(o.padding);Object.assign(u.contentPadding,j)}const p=Jt(a,u),f=en(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,v.height=h;let A=(u&&u.contentPadding&&u.contentPadding.top)??-1;(A>=0||p>0)&&(A=A<0?0:A,v.paddingTop=`${p+A}px`);let C=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(C>=0||f>0)&&(C=C<0?0:C,v.paddingBottom=`${f+C}px`);const T=(u&&u.contentPadding&&u.contentPadding.left)??-1;T>=0&&(v.paddingLeft=`${T}px`);const q=(u&&u.contentPadding&&u.contentPadding.right)??-1;return q>=0&&(v.paddingRight=`${q}px`),v}if(o.padding){const p=Ze(o.padding);p.left&&(v.paddingLeft=`${p.left}px`),p.top&&(v.paddingTop=`${p.top}px`),p.right&&(v.paddingRight=`${p.right}px`),p.bottom&&(v.paddingBottom=`${p.bottom}px`)}return v}),c=l.ref(null),d=()=>{if(u&&c.value){const v=rn(c.value);u.contentInnerHeight=v.height,u.contentInnerWidth=v.width}},m=Pe(d,120);let b=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(b=new window.ResizeObserver(m),b.observe(c.value))}),l.onUnmounted(()=>{b&&(b.disconnect(),b=null)}),()=>{const v=o.tag??"view",p={...r,ref:c,class:i.value,style:s.value};return l.h(v,p,n)}}}}const{componentName:fi,create:di}=ie("content"),tl=di(ci(fi)),pt="GroupStateKey",zo=Symbol.for("GroupScopeKey");function an(){return l.inject(zo,!1)}function sn(e=!0){l.provide(zo,e)}function hi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Hn(r)||(e[n]=r)})}function gi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};hi(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(pt,a),a}function nl(e,t,o=-1,n=-1,r=!1,a,i,u){const s=e.get(pt);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),m=me(i);u||(u=c.type??"grid");const b=()=>{const v=t===""||t===-1,p=me(t);let f=Te(o);const h=me(n);if(!v){let T=(p-(f-1)*h)/f;for(;m!==-1&&T>m;)f++,T=(p-(f-1)*h)/f;for(;d!==-1&&f>1&&T<d;)f--,T=(p-(f-1)*h)/f}let A=!1;const C=s.layout;C.value.width=t,C.value.column!==f&&(C.value.column=f,A=!0),C.value.gutter!==h&&(C.value.gutter=h,A=!0),C.value.type!==u&&(C.value.type=u,A=!0),A&&l.triggerRef(C)};if(r)b();else{const v=++s.passport;setTimeout(()=>{v===s.passport&&b()},50)}}function un(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.layout}function cn(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.order}function Ho(e,t=1){if(t==="stretch")return-1;const o=Te(t);return o===-1?100:100*o/e}function fn(e,t,o=1,n=0,r){const a={};let i=0;r?i=me(r):i=Ho(t.column,o),i>0&&(a.width=`${i}%`);const u=Ho(t.column,n);u>0&&(a["margin-left"]=`${u}%`);const s=t.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function dn(e,t,o=1,n=0){if(o==="stretch"){const s=e.index%t.column,c=s+(t.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Te(o);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=Te(n)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Ko=Symbol("RollingStateKey");function mi(e){l.provide(Ko,e)}function yi(){return l.inject(Ko,null)}function ll(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function pi(e){let t=ll(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=ll(o),document.body.removeChild(o)}return t}function bi(e,t,o){const n=typeof e=="number"?e:parseInt(e),r=typeof t=="number"?t:parseInt(t),a=typeof o=="number"?o:parseInt(o);if(n<=0)return"1fr";const i=(n-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const vi={...Ce,...qo,...Po};function wi(e,t,o){return{props:vi,emits:["update:collapse","header-click"],setup(n,r){const a=Un(n.prop??n.name,n,jo),i=gi(a,{type:n.type}),u=an();sn(!0);const s=n.rollingDisplay?yi():null,c=l.ref(null),d=l.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?un(a,!0).value:null),b=l.getCurrentInstance(),v=(N,W=!1)=>{const X=b?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(N,!0,W)};l.watch([()=>n.rules,()=>n.pureDataRules],([N,W],[X,O])=>{if(N&&X){const H=l.toRaw(X),ee=l.toRaw(N),oe=ee?Reflect.ownKeys(ee):[];(H?Reflect.ownKeys(H):[]).forEach(fe=>{oe.includes(fe)||(ee[fe]=[])}),v(ee)}if(W&&O){const H=l.toRaw(O),ee=l.toRaw(W),oe=ee?Reflect.ownKeys(ee):[];(H?Reflect.ownKeys(H):[]).forEach(fe=>{oe.includes(fe)||(ee[fe]=[])}),v(ee,!0)}},{deep:!0});const p=e,f=l.computed(()=>{const N={};N.height=k.value;const W=u?cn(a,!0):null;if(m.value&&W){if(m.value.type==="grid"){const X=dn(W,m.value,n.span,n.offset);Object.assign(N,X)}else if(m.value.type==="flow"){const X=fn(W,m.value,n.span,n.offset,n.width);Object.assign(N,X)}}else if(n.width){const X=De(n.width);N.width=X}return N}),h=l.computed(()=>{const N=i.layout.value.type;return N==="grid"||N==="flow"?{[`${p}--${N}`]:!0,[`${p}--${N}-justify-${n.justify}`]:!0,[`${p}--${N}-align-${n.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${N}`]:!0,[`${p}--gutter`]:!0}}),A=l.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(n.columnWidth)W=`repeat(auto-fill, ${n.columnWidth})`;else{const X=bi(R.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}}}),C=l.toRef(n,"gutter"),T=l.toRef(n,"column"),q=l.computed(()=>u||d.value?!0:ce(n.isWrap)),j=[],V=N=>{j.push(N)},I=()=>{let N=j.length;j.splice(0,N)},R=l.ref(-1),x=N=>{const W=rn(N).width;W>0&&W!==R.value&&(R.value=W)};nl(a,R.value,T.value,C.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,T,C],([N,W,X])=>{i.order.index=0,nl(a,N,W,X,!1,n.minItemWidth,n.maxItemWidth,n.type)});const z=l.computed(()=>M.value?n.expandText??"":n.collapseText??""),y=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),Z=l.ref(),B=l.ref(),k=l.computed(()=>P.value||De(n.height)||""),M=l.ref(!1),P=l.ref(""),G=l.ref(!1);let J=-1;const L=(N,W=!0)=>{const X=Z.value;if(X&&M.value!==N){if(J=J===-1?pi(X):J,G.value=!0,W)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",N||(P.value="",G.value=!1)},N){let O=0;n.collapseHeight?O=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(O=B.value.offsetHeight),P.value=`${J}px`,l.nextTick(()=>{P.value=`${O}px`})}else P.value=`${J}px`;else if(N){let O=0;n.collapseHeight?O=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(O=B.value.offsetHeight),P.value=`${O}px`}else G.value=!1,P.value=`${J}px`;M.value=N,r.emit("update:collapse",N)}};l.watch(()=>n.collapse,N=>{L(N)});const ne=N=>{r.emit("header-click",N)},E=()=>{$()},$=N=>{N=N??!M.value,L(N)};Se({toggleCollapse:$,doLayout:()=>{j[0]&&(x(j[0]),nl(a,R.value,T.value,C.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,w=!0;const K=N=>{if(n.rules){const W=l.toRaw(n.rules);v(W)}if(n.pureDataRules){const W=l.toRaw(n.pureDataRules);v(W,!0)}if(ot&&(N&&L(ce(n.collapse),!1),n.autoLayout&&Array.isArray(j)&&j.length>0)){const W=j[0];if(x(W),window.ResizeObserver){const X=Pe(()=>x(W),120);D=new window.ResizeObserver(X),D.observe(W)}}},Q=()=>{D?.disconnect(),D=null},le=!d.value||s?.acquire();le&&(c.value=d.value?!0:null),l.onMounted(()=>{if(le&&(K(w),w=!1),d.value&&s){let N=null,W=s.initialHeight;s.observe(Z.value,X=>{if(X!==c.value)if(X)c.value=!0,M.value||(P.value=""),N=setTimeout(()=>{N=null,c.value!==!1&&(K(w),w=!1)},100);else{if(N!==null&&clearTimeout(N),c.value=!1,!M.value)if(w)P.value=s.initialHeight;else{let O=ll(Z.value);O<=0?P.value=W:(P.value=`${O}px`,W=P.value)}w||Q()}})}}),l.onUnmounted(()=>{D?.disconnect(),s&&s.unobserve(Z.value)});const U=(N="right")=>{const W=[];if(z.value){const H={class:y.value},ee=l.h("span",H,[z.value]);W.push(ee)}const X={class:_.value},O=o(n.collapseIcon,X);return O&&W.push(O),W.length>0?l.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${N}`]:!0},onClick:E},W):null},Y=(N,W,X,O)=>{const H={...h.value};return W===0&&(H[`${p}__first`]=!0),X>=O-1&&(H[`${p}__last`]=!0),l.h("div",{ref:V,key:`${W}`,class:H,style:A.value},N)};return()=>{if(d.value&&c.value!==!0){const H=n.tag||"div";return l.h(H,{ref:Z,prop:n.name,class:{[`${p}`]:!0,"is-collapse":G.value},style:f.value},[])}i.order.index=0;const N=[];let W=0;if(r.slots.header){const H={key:`${W++}`,ref:B,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:ne},ee=l.h("div",H,[r.slots.header()]);N.push(ee)}else{const H=[],ee=n.collapsePosition==="left";if(ee&&n.showCollapse){const oe=U("left");oe&&H.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${p}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const ue=l.h("div",oe);H.push(ue)}if(r.slots.title){const oe=l.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);H.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${p}__header-title`]:!0}},[n.title]);H.push(oe)}}if(r.slots.toolbar&&H.push(r.slots.toolbar()),!ee&&n.showCollapse){const oe=U("right");oe&&H.push(oe)}if(H.length>0){const oe={key:`${W++}`,ref:B,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:ne},ue=l.h("div",oe,H);N.push(ue)}}I();const X=r.slots.default?r.slots.default():[],O=i.layout.value.type;if(O==="grid"){const H=Y(X,W++,0,X.length);N.push(H)}else if(O==="flow"){const H=Y(X,W++,0,X.length);N.push(H)}else for(let H=0;H<X.length;H++){const ee=X[H],oe=Y([ee],W++,H,X.length);N.push(oe)}if(q.value){const H=n.tag||"div";return l.h(H,{ref:Z,prop:n.name,class:{[`${p}`]:!0,"is-collapse":G.value},style:f.value},[N])}else return N}}}}const{componentName:Si,create:xi,scope:Ti}=ie("group"),ol=xi(wi(Si,Ti,(e,t)=>(e=e??Ne.ArrowUp,l.h(S.ElIcon,t,{default:()=>[l.h(e)]}))));function Ci(e){return e===window}const $i=/matrix\((.+)\)/,rl=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(Ci(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=$i.exec(c);if(d){let b=d[1].split(/\s*,\s*/);b.length==6&&(u+=Number(b[4]),s+=Number(b[5]))}}r=r.parentNode}return o-=a,n-=i,o+=u,n+=s,{x:o,y:n}};class Ei{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ki{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Ei,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Ot=new ki,Wo={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:Ni,create:Ii}=ie("price"),Oi=Ii({props:{...Wo},setup(e){const t=l.computed(()=>({[Ni]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Et(e.price)==0?"":jt(e.price,e.decimalLength,!0,Te(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ue=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Di=["innerHTML"],Vi=["innerHTML"];function Ri(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Di)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vi)):l.createCommentVNode("",!0)],2)}const hn=Ue(Oi,[["render",Ri]]),{componentName:al,create:Fi}=ie("hint-text"),Ai=Fi({components:{Price:hn},props:{...Wo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),u=l.ref(!1),s=l.ref(null),c=(y,_,Z,B,k,M)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,J=y.split("-");let L=[];J[0]==="top"?L=["top","bottom","right","left"]:J[0]==="bottom"?L=["bottom","top","right","left"]:J[0]==="left"?L=["left","top","bottom","right"]:J[0]==="right"&&(L=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},E=[];for(let $=0;$<L.length;$++){const F=L[$];if(E[0]=F,J[1]&&(E[1]=J[1]),F==="top"){const D=_.y-M-e.arrowSize-e.offset;if(D>=0){ne.top=D;let w=0;J[1]==="start"?w=_.x:J[1]==="end"?w=_.x+Z-k:w=_.x+Z/2-k/2;const K=P-w-k;K<0?(w+=K,m.value=-K):m.value=0,ne.left=w<0?0:w;break}}else if(F==="bottom"){const D=_.y+B+e.arrowSize+e.offset;if(D+M<=G){ne.top=D;let w=0;J[1]==="start"?w=_.x:J[1]==="end"?w=_.x+Z-k:w=_.x+Z/2-k/2;const K=P-w-k;K<0?(w+=K,m.value=-K):m.value=0,ne.left=w<0?0:w;break}}else if(F==="left"){const D=_.x-k-e.arrowSize-e.offset;if(D>=0){ne.left=D;let w=0;J[1]==="start"?w=_.y:J[1]==="end"?w=_.y+B-M:w=_.y+B/2-M/2,ne.top=w<0?0:w;break}}else if(F==="right"){const D=_.x+Z+e.arrowSize+e.offset;if(D+k<=P){ne.left=D;let w=0;J[1]==="start"?w=_.y:J[1]==="end"?w=_.y+B-M:w=_.y+B/2-M/2,ne.top=w<0?0:w;break}}}return{bestPlacement:E.join("-"),bestInsetRect:ne}},d=(y,_,Z=10)=>{if(!ot||_===!1||!y)return;n.value=rl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const B=s.value.offsetHeight,k=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:P}=c(e.placement,n.value,r.value,a.value,k,B);i.value=M,o.value=P,u.value=!0},m=l.ref(0),b=Pe(()=>{d(e.message,e.visible)},10),v=l.ref(e.visible);l.watch(()=>e.visible,y=>{v.value=y});const p=l.computed(()=>v.value&&f.value),f=l.ref(!0),h=Pe(y=>{const _=y[0];_&&(f.value=_.isIntersecting)},10),A=new IntersectionObserver(h);l.watch([()=>e.message,()=>e.visible],([y,_])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Ot.watch(e.reference,b),A.observe(e.reference)}),l.onBeforeUnmount(()=>{Ot.unwatch(e.reference,b),A.unobserve(e.reference),A.disconnect()});const C=l.computed(()=>{const y={[al]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),T=l.computed(()=>{const y={};o.value.top!==null&&(y.top=`${o.value.top}px`),o.value.right!==null&&(y.right=`${o.value.right}px`),o.value.bottom!==null&&(y.bottom=`${o.value.bottom}px`),o.value.left!==null&&(y.left=`${o.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${_}px`,u.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=l.computed(()=>{const y=[`${al}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),j=l.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),V=l.computed(()=>({[`${al}__arrow`]:!0})),I=l.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+m.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-m.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+m.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-m.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),R=l.computed(()=>p.value&&e.closeOnClick),x=l.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:p,tipRef:s,classes:C,styles:T,textClasses:q,textStyles:j,arrowClasses:V,arrowStyles:I,overlayShow:R,overlayStyle:x,onClickOverlay:()=>{v.value=!1,t.emit("update:visible",!1)}}}}),Mi=["innerHTML"];function Li(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Mi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Dt=Ue(Ai,[["render",Li]]);class Yo{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const il={},Bi=new Yo,bt=new Map,gn=e=>{if(e){const t=document.getElementById(e);bt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of bt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}bt.clear()}},_i=e=>{e.unmount=gn;const t=document.getElementById(e.id);if(t){const o=bt.get(e.id);o?e={...il,...o,...e}:e={...il,...e},e.transition=!1;const n=l.createVNode(Dt,e);l.render(n,t)}return e.id},qi=e=>{e.unmount=gn;let t=e.id??`hinttext_${Bi.get()}`;e={...il,...e},e.id=t,bt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Dt,e);return l.render(n,o),document.body.appendChild(o),t},Pi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Le={show(e,t,o={},n=!0){Pi(t);const r=o.id;return r&&bt.has(r)?_i({...o,message:t,reference:e}):(n&&gn(),qi({...o,message:t,reference:e}))},hide(e){gn(e)},install(e){e.config.globalProperties.$hintText=Le}};function ji(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Ce,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=rt(),s=an();sn(!1);const c=l.computed(()=>s&&u?un(u,!1).value:null),d=e,m=l.ref(null),b=l.computed(()=>{const O={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ce(r.hasBorder)};if(O[r.errorMarkClass]=!!M.value,O[r.warnMarkClass]=!!B.value,O[r.infoMarkClass]=!!_.value,typeof m.value=="function"){const H=m.value(i);O[H]=!0}else if(typeof m.value=="string"){const H=m.value;O[H]=!0}return O}),v=l.ref(null),p=l.computed(()=>{const O={};if(r.width)r.width!=="auto"&&(O.width=De(r.width));else{const H=s&&u?cn(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const ee=dn(H,c.value,r.span,r.offset);Object.assign(O,ee)}else if(c.value.type==="flow"){const ee=fn(H,c.value,r.span,r.offset,r.width);Object.assign(O,ee)}}}if(typeof v.value=="function"){const H=v.value(i);H&&Object.assign(O,H)}else if(v.value&&typeof v.value=="object"){const H=v.value;Object.assign(O,H)}return O}),f=l.ref(null),h=l.computed({get:()=>f.value??ce(r.isRequired),set:O=>{f.value=O}}),A=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",C=Fe(l.toRef(r,"labelPosition"),"labelPosition",je.Near),T=l.computed(()=>C&&C.value==="top"?"top":C&&C.value==="right"?"right":"left"),q=l.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${T.value}`]:!0})),j=l.computed(()=>({label:!0,[`label--${T.value}`]:!0})),V=Fe(l.toRef(r,"labelWidth"),"labelWidth",je.Near),I=l.computed(()=>V&&V.value?{width:De(V.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":h.value})),x=l.computed(()=>({content:!0,[r.contentClass]:!0})),z=l.computed(()=>({...r.contentStyle})),y=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(O){h.value=O},setErrorTip(O){y.errorTip=O},setErrorIcon(O){y.errorIcon=O},setWarnTip(O){y.warnTip=O},setWarnIcon(O){y.warnIcon=O},setInfoTip(O){y.infoTip=O},setInfoIcon(O){y.infoIcon=O},setCustomClassName(O){m.value=O},setCustomStyle(O){v.value=O}});const _=l.computed(()=>r.infoTip||y.infoTip),Z=l.computed(()=>r.infoIcon||y.infoIcon),B=l.computed(()=>r.warnTip||y.warnTip),k=l.computed(()=>r.warnIcon||y.warnIcon),M=l.computed(()=>r.errorTip||y.errorTip),P=l.computed(()=>r.errorIcon||y.errorIcon),G=l.computed(()=>M.value?"error":B.value?"warn":_.value?"info":""),J=()=>G.value.length>0,L=l.computed(()=>G.value==="error"?M.value:G.value==="warn"?B.value:G.value==="info"?_.value:""),ne=l.computed(()=>G.value==="error"?P.value:G.value==="warn"?k.value:G.value==="info"?Z.value:null),E=l.computed(()=>{const O={[`${d}__tip`]:!0,[`${d}__tip--${G.value}`]:!0,[`${d}--animate`]:!0};return G.value==="error"&&r.errorClass?O[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?O[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(O[`${r.infoClass}`]=!0),O}),$=l.computed(()=>{const O={};return C&&C.value==="top"||!A()?O["padding-left"]="0px":V&&V.value&&(O["padding-left"]=De(V.value)),O}),F=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([O,H,ee,oe])=>{F.value&&(O&&!he(H)?D?o.show(F.value,H,{...oe,id:D,type:ee},!0):D=o.show(F.value,H,{...oe,type:ee},!0):o.hide(D))});let w=null;const K=()=>{w||!F.value||(w=new IntersectionObserver(O=>{let H=!1;for(let ee of O)if(ee.intersectionRatio>0){H=!0,H&&a.emit("appear",ee);break}H||a.emit("disappear")}),w.observe(F.value))},Q=()=>{!w||!F.value||(w.unobserve(F.value),w=null)};l.watch(()=>ce(r.appearListen),O=>{O?K():Q()}),l.onMounted(()=>{ce(r.appearListen)&&K()}),l.onUnmounted(Q);const le=()=>{if(!A())return null;const O=[],H=a.slots?.label?.()??r.label,ee={class:R.value},oe=l.h("div",ee,[H]);if(O.push(oe),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();O.push(fe)}const ue={class:j.value,style:I.value};return l.h("div",ue,O)},U=()=>{const O=[];if(a.slots.prepend){const ee=a.slots.prepend();O.push(ee)}if(a.slots.default){const ee=a.slots.default();O.push(ee)}if(a.slots.append){const ee=a.slots.append();O.push(ee)}if(a.slots.fixedTip){const ee={class:[`${d}__fixed-tip`]},oe=l.h("div",ee,[a.slots.fixedTip()]);O.push(oe)}const H={ref:F,class:x.value,style:z.value};return l.h("div",H,O)},Y=()=>{const O=ne.value;return O?typeof O=="function"?l.h("div",{class:"fox-item__tip--icon"},[O()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(O)]):null},N=()=>{const O=L.value;return O?typeof O=="function"?l.h("div",{class:"fox-item__tip--text"},[O()]):l.h("div",{class:"fox-item__tip--text"},[O]):null},W=()=>{if(!J())return null;const O=[],H=Y();H&&O.push(H);const ee=N();ee&&O.push(ee);const oe={class:E.value,style:$.value};return l.h("div",oe,O)},X=()=>a.slots?.hide?.()??null;return()=>{const O=[],H=[],ee=le();ee&&H.push(ee);const oe=U();oe&&H.push(oe);const ue={class:q.value},fe=l.h("div",ue,H);O.push(fe);const be=W();be&&O.push(be);const ye=X();ye&&O.push(ye);const Ee={class:b.value,style:p.value,prop:r.prop};return l.h("div",Ee,O)}}}}const{componentName:zi,create:Hi,scope:Ki}=ie("item"),$e=Hi(ji(zi,Ki,Le,!1));function Wi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=rt(),a=an();sn(!1);const i=l.computed(()=>a&&r?un(r,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=De(o.width));else{const m=a&&r?cn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const b=dn(m,i.value,o.span,o.offset);Object.assign(d,b)}else if(i.value.type==="flow"){const b=fn(m,i.value,o.span,o.offset,o.width);Object.assign(d,b)}else return o.width&&(d.width=De(o.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",d,n.slots.default()):l.h("div",d)}}}}const{componentName:Yi,create:Ui}=ie("slot-item"),sl=Ui(Wi(Yi));function Gi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=rt(),u=an();sn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=un(i,!1),m=cn(i,!1);if(d.value&&m)if(d.value.type==="grid"){const b=dn(m,d.value,o.span,o.offset);Object.assign(c,b)}else if(d.value.type==="flow"){const b=fn(m,d.value,o.span,o.offset,o.width);Object.assign(c,b)}else o.width&&(c.width=De(o.width))}else o.width&&(c.width=De(o.width));return c});return()=>{const c=[];if(n.slots.default){const m=n.slots.default();if(o.divide)for(let b=0;b<m.length;b++){if(b>0){const v=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(v)}c.push(m[b])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:Xi,create:Zi}=ie("row-item"),ul=Zi(Gi(Xi)),Qe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Uo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Qi(e,t,o){return{props:{...Ce,...Ve,...Uo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(!1),v=ge(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0,[`${p}__disabled`]:i.value,[`${p}__readonly`]:s.value})),h=k=>{v.value=k,c("update:modelValue",k),c("input",k)},A=k=>{c("change",k)};let C=ge(n,"hintText"),T=l.ref(!1);const q=k=>{let P=k.target.value;b.value=!0,he(C.value)||(T.value=!0),c("focus",P,k)},j=k=>{setTimeout(()=>{T.value&&(T.value=!1),b.value=!1},0);let P=k.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),c("blur",P,k)},V=()=>{c("clear","")},I=l.ref(!1);let R=null;const x=()=>{n.showTooltip&&I.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{I.value=!0},150))},z=()=>{R&&(clearTimeout(R),I.value=!1,R=null)},y=l.computed(()=>I.value||T.value),_=l.computed(()=>I.value?v.value:C.value),Z=l.computed(()=>Et(n.unit)>0),B=l.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const M={...Qe(r.attrs),ref:B,class:f.value,placeholder:m.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:A,onInput:h,onFocus:q,onBlur:j,onMouseover:x,onMouseleave:z},P={};r.slots.prepend&&(P.prepend=r.slots.prepend),r.slots.append&&(P.append=r.slots.append),r.slots.prefix&&(P.prefix=r.slots.prefix),r.slots.suffix?P.suffix=r.slots.suffix:Z.value&&(P.suffix=()=>[n.unit]);const G=[],J=l.h(S.ElInput,M,P);G.push(J);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...Oe(n,Uo),hintText:_.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),l.h(o,E,L)}}}}const{componentName:Ji,create:es,scope:ts}=ie("input-item"),cl=es(Qi(Ji,ts,$e));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Go(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ns(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ls=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Ye(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function os(){const e=l.getCurrentInstance();return new ls(e.proxy)}function Xo(e,t,o){const n=it(e,t),r=it(e,o);if(n!==r)return!1;const a=Vt(e,t),i=Vt(e,o);return a===i}function Zo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const u=Go(e,i);if(Array.isArray(u)&&u.length>0){const s=Zo(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=it(e,i)===a;else if(o==="item")s=Xo(e,i,a);else{let c=Vt(e,i);c==null&&(c=it(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function rs(e){return{text:e,value:e}}const Qo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function as(e,t,o){return{props:{...Ce,...Ve,...Qo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(null),v=l.ref([]),p=l.computed(()=>v.value?v.value.map(W=>it(n,W)).join(" "):""),f=(N,W,X,O=!0)=>{if(!X||X.length==0){b.value=N,O&&(c("update:modelValue",N),c("change",N));return}const H=Zo(n,N,W,X);if(H===null){if(v.value===null||v.value.length===0)return;b.value=null,v.value=[],O&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let ee=!0;if(H.length!==v.value.length)ee=!1;else for(let oe=0;oe<H.length;oe++){const ue=H[oe],fe=v.value[oe];if(!Xo(n,ue,fe)){ee=!1;break}}if(!ee){v.value=H;let oe=[],ue=[],fe=[];H.forEach(He=>{const ht=Vt(n,He),Tt=it(n,He);oe.push(ht),fe.push(Tt),n.valueType==="text"?ue.push(Tt):n.valueType==="item"?ue.push(He):ue.push(ht)});let be,ye,Ee;ce(n.multiple)?(b.value=oe,be=l.toRaw(ue),ye=fe,Ee=l.toRaw(H)):(b.value=oe[0]??"",be=l.toRaw(ue[0]??""),ye=fe[0]??"",Ee=l.toRaw(H[0])),O&&(c("update:modelValue",be),c("change",be,Ee)),c("update:text",ye)}},h=l.ref(null),A=l.ref(null),C=l.computed(()=>A.value??h.value??[]),T=Fe(l.computed(()=>n.appearLoad),"appearLoad",je.Near,N=>ce(N)),q=os(),j=async(N,W)=>{if(N){const X=await q.load("select",N,W);if(X.length>0)if(typeof X[0]=="string"){let ee=X.map(oe=>rs(oe));h.value=ee}else h.value=X;else h.value=null}};l.watch([()=>n.source,()=>n.params],([N,W])=>{A.value=null,j(N,W)},{immediate:!T.value});let V=!1;const I=()=>{V||(V=!0,j(n.source,n.params))};l.watch([()=>h.value,()=>n.modelValue],([N,W])=>{if(y()&&ce(n.multiple)){tt(W,b.value)||(b.value=W);return}f(W,n.valueType,C.value,!1),c("setValue",W)}),n.source||(b.value=n.modelValue);let R=null,x=l.ref(!1);typeof n.remoteMethod=="function"&&(R=async N=>{if(N==null){A.value=null;return}x.value=!0;try{const W=await n.remoteMethod(N);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}x.value=!1});let z=null;typeof n.filterMethod=="function"&&(z=async N=>{if(N==null){A.value=null;return}x.value=!0;try{const W=await n.filterMethod(N,h.value);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}x.value=!1});const y=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=l.ref(!1),Z=e,B=l.computed(()=>({[Z]:!0})),k=N=>{n.allowCreate||y()&&ce(n.multiple)?(c("update:modelValue",N),c("change",N),c("update:text",N),b.value=N):f(N,"value",C.value,!0)};let M=ge(n,"hintText"),P=l.ref(!1);const G=N=>{let X=N.target.value;_.value=!0,he(M.value)||(P.value=!0),c("focus",X,N)},J=N=>{setTimeout(()=>{P.value&&(P.value=!1),_.value=!1},0);let X=N.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),K.value||c("blur",X,N)},L=()=>{c("clear","")},ne=l.ref(!1);let E=null;const $=()=>{n.showTooltip&&ne.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{ne.value=!0},150))},F=()=>{E&&(clearTimeout(E),ne.value=!1,E=null)},D=l.computed(()=>ne.value||P.value),w=l.computed(()=>ne.value?p.value:M.value),K=l.ref(!1),Q=N=>{K.value=N,c("visible-change",N),N||c("selected")},le=N=>{c("remove-tag",N)},U=(N,W)=>{const X=[];return N.forEach((O,H)=>{const ee=Go(n,O);if(Array.isArray(ee)&&ee.length>0){const oe=U(ee,W),ue=it(n,O),be={key:`${ue}_${H}`,label:ue};X.push(l.h(S.ElOptionGroup,be,{default:()=>oe}))}else{const oe=Vt(n,O),ue=it(n,O),fe=ns(n,O),ye={key:`${oe}_${H}`,label:ue,disabled:fe,value:oe};if(typeof W=="function")X.push(l.h(S.ElOption,ye,{default:()=>W(O)}));else if(n.optionType==="item"){const Ee={class:{"fox-select-item__option-left":!0}},He=l.h("span",Ee,[oe]),ht={class:{"fox-select-item__option-right":!0}},Tt=l.h("span",ht,[ue]),lo=l.h("div",{class:{"fox-select-item__option":!0}},[He,Tt]);X.push(l.h(S.ElOption,ye,{default:()=>lo}))}else n.optionType==="value"?X.push(l.h(S.ElOption,ye,{default:()=>[oe]})):X.push(l.h(S.ElOption,ye))}}),X},Y=l.ref();return Se({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const W={...Qe(r.attrs),ref:Y,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:b.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:L,onChange:k,onFocus:G,onBlur:J,onVisibleChange:Q,onRemoveTag:le};typeof R=="function"&&(W["remote-method"]=R,W.loading=x.value),typeof z=="function"&&(W["filter-method"]=z,W.loading=x.value);const X={};r.slots.prefix&&(X.prefix=r.slots.prefix),r.slots.empty&&(X.empty=r.slots.empty),r.slots.options?X.default=r.slots.options:X.default=()=>U(C.value,r.slots.option);const O=[],H=l.h(S.ElSelect,W,X);O.push(H);const ee={default:()=>O};ee.label=r.slots.default,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const ue={...Oe(n,Qo),hintText:w.value,hintVisible:D.value,onMouseover:$,onMouseleave:F};return n.prop&&(ue.prop=`${n.prop}_item`),T.value&&(ue["appear-listen"]=!0,ue.onAppear=I),l.h(o,ue,ee)}}}}const{componentName:is,create:ss,scope:us}=ie("select-item"),fl=ss(as(is,us,$e));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mn={exports:{}},cs=mn.exports,Jo;function fs(){return Jo||(Jo=1,function(e,t){(function(o,n){e.exports=n()})(cs,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",b="quarter",v="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var k=["th","st","nd","rd"],M=B%100;return"["+B+(k[(M-20)%10]||k[M]||k[0])+"]"}},T=function(B,k,M){var P=String(B);return!P||P.length>=k?B:""+Array(k+1-P.length).join(M)+B},q={s:T,z:function(B){var k=-B.utcOffset(),M=Math.abs(k),P=Math.floor(M/60),G=M%60;return(k<=0?"+":"-")+T(P,2,"0")+":"+T(G,2,"0")},m:function B(k,M){if(k.date()<M.date())return-B(M,k);var P=12*(M.year()-k.year())+(M.month()-k.month()),G=k.clone().add(P,m),J=M-G<0,L=k.clone().add(P+(J?-1:1),m);return+(-(P+(M-G)/(J?G-L:L-G))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:m,y:v,w:d,d:c,D:p,h:s,m:u,s:i,ms:a,Q:b}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},j="en",V={};V[j]=C;var I="$isDayjsObject",R=function(B){return B instanceof _||!(!B||!B[I])},x=function B(k,M,P){var G;if(!k)return j;if(typeof k=="string"){var J=k.toLowerCase();V[J]&&(G=J),M&&(V[J]=M,G=J);var L=k.split("-");if(!G&&L.length>1)return B(L[0])}else{var ne=k.name;V[ne]=k,G=ne}return!P&&G&&(j=G),G||!P&&j},z=function(B,k){if(R(B))return B.clone();var M=typeof k=="object"?k:{};return M.date=B,M.args=arguments,new _(M)},y=q;y.l=x,y.i=R,y.w=function(B,k){return z(B,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var _=function(){function B(M){this.$L=x(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[I]=!0}var k=B.prototype;return k.parse=function(M){this.$d=function(P){var G=P.date,J=P.utc;if(G===null)return new Date(NaN);if(y.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var L=G.match(h);if(L){var ne=L[2]-1||0,E=(L[7]||"0").substring(0,3);return J?new Date(Date.UTC(L[1],ne,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)):new Date(L[1],ne,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)}}return new Date(G)}(M),this.init()},k.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},k.$utils=function(){return y},k.isValid=function(){return this.$d.toString()!==f},k.isSame=function(M,P){var G=z(M);return this.startOf(P)<=G&&G<=this.endOf(P)},k.isAfter=function(M,P){return z(M)<this.startOf(P)},k.isBefore=function(M,P){return this.endOf(P)<z(M)},k.$g=function(M,P,G){return y.u(M)?this[P]:this.set(G,M)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(M,P){var G=this,J=!!y.u(P)||P,L=y.p(M),ne=function(le,U){var Y=y.w(G.$u?Date.UTC(G.$y,U,le):new Date(G.$y,U,le),G);return J?Y:Y.endOf(c)},E=function(le,U){return y.w(G.toDate()[le].apply(G.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(U)),G)},$=this.$W,F=this.$M,D=this.$D,w="set"+(this.$u?"UTC":"");switch(L){case v:return J?ne(1,0):ne(31,11);case m:return J?ne(1,F):ne(0,F+1);case d:var K=this.$locale().weekStart||0,Q=($<K?$+7:$)-K;return ne(J?D-Q:D+(6-Q),F);case c:case p:return E(w+"Hours",0);case s:return E(w+"Minutes",1);case u:return E(w+"Seconds",2);case i:return E(w+"Milliseconds",3);default:return this.clone()}},k.endOf=function(M){return this.startOf(M,!1)},k.$set=function(M,P){var G,J=y.p(M),L="set"+(this.$u?"UTC":""),ne=(G={},G[c]=L+"Date",G[p]=L+"Date",G[m]=L+"Month",G[v]=L+"FullYear",G[s]=L+"Hours",G[u]=L+"Minutes",G[i]=L+"Seconds",G[a]=L+"Milliseconds",G)[J],E=J===c?this.$D+(P-this.$W):P;if(J===m||J===v){var $=this.clone().set(p,1);$.$d[ne](E),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else ne&&this.$d[ne](E);return this.init(),this},k.set=function(M,P){return this.clone().$set(M,P)},k.get=function(M){return this[y.p(M)]()},k.add=function(M,P){var G,J=this;M=Number(M);var L=y.p(P),ne=function(F){var D=z(J);return y.w(D.date(D.date()+Math.round(F*M)),J)};if(L===m)return this.set(m,this.$M+M);if(L===v)return this.set(v,this.$y+M);if(L===c)return ne(1);if(L===d)return ne(7);var E=(G={},G[u]=n,G[s]=r,G[i]=o,G)[L]||1,$=this.$d.getTime()+M*E;return y.w($,this)},k.subtract=function(M,P){return this.add(-1*M,P)},k.format=function(M){var P=this,G=this.$locale();if(!this.isValid())return G.invalidDate||f;var J=M||"YYYY-MM-DDTHH:mm:ssZ",L=y.z(this),ne=this.$H,E=this.$m,$=this.$M,F=G.weekdays,D=G.months,w=G.meridiem,K=function(U,Y,N,W){return U&&(U[Y]||U(P,J))||N[Y].slice(0,W)},Q=function(U){return y.s(ne%12||12,U,"0")},le=w||function(U,Y,N){var W=U<12?"AM":"PM";return N?W.toLowerCase():W};return J.replace(A,function(U,Y){return Y||function(N){switch(N){case"YY":return String(P.$y).slice(-2);case"YYYY":return y.s(P.$y,4,"0");case"M":return $+1;case"MM":return y.s($+1,2,"0");case"MMM":return K(G.monthsShort,$,D,3);case"MMMM":return K(D,$);case"D":return P.$D;case"DD":return y.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return K(G.weekdaysMin,P.$W,F,2);case"ddd":return K(G.weekdaysShort,P.$W,F,3);case"dddd":return F[P.$W];case"H":return String(ne);case"HH":return y.s(ne,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return le(ne,E,!0);case"A":return le(ne,E,!1);case"m":return String(E);case"mm":return y.s(E,2,"0");case"s":return String(P.$s);case"ss":return y.s(P.$s,2,"0");case"SSS":return y.s(P.$ms,3,"0");case"Z":return L}return null}(U)||L.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(M,P,G){var J,L=this,ne=y.p(P),E=z(M),$=(E.utcOffset()-this.utcOffset())*n,F=this-E,D=function(){return y.m(L,E)};switch(ne){case v:J=D()/12;break;case m:J=D();break;case b:J=D()/3;break;case d:J=(F-$)/6048e5;break;case c:J=(F-$)/864e5;break;case s:J=F/r;break;case u:J=F/n;break;case i:J=F/o;break;default:J=F}return G?J:y.a(J)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return V[this.$L]},k.locale=function(M,P){if(!M)return this.$L;var G=this.clone(),J=x(M,P,!0);return J&&(G.$L=J),G},k.clone=function(){return y.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},B}(),Z=_.prototype;return z.prototype=Z,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",v],["$D",p]].forEach(function(B){Z[B[1]]=function(k){return this.$g(k,B[0],B[1])}}),z.extend=function(B,k){return B.$i||(B(k,_,z),B.$i=!0),z},z.locale=x,z.isDayjs=R,z.unix=function(B){return z(1e3*B)},z.en=V[j],z.Ls=V,z.p={},z})}(mn)),mn.exports}var ds=fs();const Je=nt(ds);var yn={exports:{}},hs=yn.exports,er;function gs(){return er||(er=1,function(e,t){(function(o,n){e.exports=n()})(hs,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var A=h.match(/([+-]|\d\d)/g),C=60*A[1]+(+A[2]||0);return C===0?0:A[0]==="+"?-C:C}(f)}],m=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},b=function(f,h){var A,C=u.meridiem;if(C){for(var T=1;T<=24;T+=1)if(f.indexOf(C(T,0,h))>-1){A=T>12;break}}else A=f===(h?"pm":"PM");return A},v={A:[i,function(f){this.afternoon=b(f,!1)}],a:[i,function(f){this.afternoon=b(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,A=f.match(/\d+/);if(this.day=A[0],h)for(var C=1;C<=31;C+=1)h(C).replace(/\[|\]/g,"")===f&&(this.day=C)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=m("months"),A=(m("monthsShort")||h.map(function(C){return C.slice(0,3)})).indexOf(f)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[i,function(f){var h=m("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function p(f){var h,A;h=f,A=u&&u.formats;for(var C=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,z,y){var _=y&&y.toUpperCase();return z||A[y]||o[y]||A[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,B,k){return B||k.slice(1)})})).match(n),T=C.length,q=0;q<T;q+=1){var j=C[q],V=v[j],I=V&&V[0],R=V&&V[1];C[q]=R?{regex:I,parser:R}:j.replace(/^\[|\]$/g,"")}return function(x){for(var z={},y=0,_=0;y<T;y+=1){var Z=C[y];if(typeof Z=="string")_+=Z.length;else{var B=Z.regex,k=Z.parser,M=x.slice(_),P=B.exec(M)[0];k.call(z,P),x=x.replace(P,"")}}return function(G){var J=G.afternoon;if(J!==void 0){var L=G.hours;J?L<12&&(G.hours+=12):L===12&&(G.hours=0),delete G.afternoon}}(z),z}}return function(f,h,A){A.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var C=h.prototype,T=C.parse;C.parse=function(q){var j=q.date,V=q.utc,I=q.args;this.$u=V;var R=I[1];if(typeof R=="string"){var x=I[2]===!0,z=I[3]===!0,y=x||z,_=I[2];z&&(_=I[2]),u=this.$locale(),!x&&_&&(u=A.Ls[_]),this.$d=function(M,P,G){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*M);var J=p(P)(M),L=J.year,ne=J.month,E=J.day,$=J.hours,F=J.minutes,D=J.seconds,w=J.milliseconds,K=J.zone,Q=new Date,le=E||(L||ne?1:Q.getDate()),U=L||Q.getFullYear(),Y=0;L&&!ne||(Y=ne>0?ne-1:Q.getMonth());var N=$||0,W=F||0,X=D||0,O=w||0;return K?new Date(Date.UTC(U,Y,le,N,W,X,O+60*K.offset*1e3)):G?new Date(Date.UTC(U,Y,le,N,W,X,O)):new Date(U,Y,le,N,W,X,O)}catch{return new Date("")}}(j,R,V),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),y&&j!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var Z=R.length,B=1;B<=Z;B+=1){I[1]=R[B-1];var k=A.apply(this,I);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}B===Z&&(this.$d=new Date(""))}else T.call(this,q)}}})}(yn)),yn.exports}var ms=gs();const ys=nt(ms);var pn={exports:{}},ps=pn.exports,tr;function bs(){return tr||(tr=1,function(e,t){(function(o,n){e.exports=n()})(ps,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}});return a.bind(this)(d)}}})}(pn)),pn.exports}var vs=bs();const ws=nt(vs);var bn={exports:{}},Ss=bn.exports,nr;function xs(){return nr||(nr=1,function(e,t){(function(o,n){e.exports=n()})(Ss,function(){return function(o,n,r){var a=n.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,b,v,p,f){var h=m.name?m:m.$locale(),A=i(h[b]),C=i(h[v]),T=A||C.map(function(j){return j.slice(0,p)});if(!f)return T;var q=h.weekStart;return T.map(function(j,V){return T[(V+(q||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(m,b){return m.formats[b]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,f,h){return f||h.slice(1)})}(m.formats[b.toUpperCase()])},d=function(){var m=this;return{months:function(b){return b?b.format("MMMM"):u(m,"months")},monthsShort:function(b){return b?b.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):u(m,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return c(m.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return c(m,b)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}})}(bn)),bn.exports}var Ts=xs();const Cs=nt(Ts);var vn={exports:{}},$s=vn.exports,lr;function Es(){return lr||(lr=1,function(e,t){(function(o,n){e.exports=n()})($s,function(){var o="week",n="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(n).add(1,n).date(c),m=i(this).endOf(o);if(d.isBefore(m))return 1}var b=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),v=this.diff(b,o,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(vn)),vn.exports}var ks=Es();const Ns=nt(ks);var wn={exports:{}},Is=wn.exports,or;function Os(){return or||(or=1,function(e,t){(function(o,n){e.exports=n()})(Is,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})}(wn)),wn.exports}var Ds=Os();const Vs=nt(Ds);var Sn={exports:{}},Rs=Sn.exports,rr;function Fs(){return rr||(rr=1,function(e,t){(function(o,n){e.exports=n()})(Rs,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})}(Sn)),Sn.exports}var As=Fs();const Ms=nt(As);var xn={exports:{}},Ls=xn.exports,ar;function Bs(){return ar||(ar=1,function(e,t){(function(o,n){e.exports=n()})(Ls,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(xn)),xn.exports}var _s=Bs();const qs=nt(_s);var Tn={exports:{}},Ps=Tn.exports,ir;function js(){return ir||(ir=1,function(e,t){(function(o,n){e.exports=n()})(Ps,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(Tn)),Tn.exports}var zs=js();const Hs=nt(zs);Je.extend(Cs),Je.extend(ws),Je.extend(ys),Je.extend(Ns),Je.extend(Vs),Je.extend(Ms),Je.extend(qs),Je.extend(Hs);const ze={format(e,t){return Je(e).format(t)},parser(e,t){return Je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t,o){e=e||0;let n=t??new Date;const r=e*(1e3*60*60*24);return n=new Date(n.getTime()+r),o=o??"YYYY-MM-DD",this.format(n,o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return n!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return n!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[d,m]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[d,m]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ze.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ze.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},sr={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"}},ur={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 Ks(e,t,o){return{props:{...Ce,...Ve,...sr,...ur},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(!1),v=ge(n,"modelValue",null,c),p=l.computed(()=>P.value&&Array.isArray(v.value)&&v.value.length==2?v.value[0]:v.value),f=l.computed(()=>P.value?"longTermKey":"normalKey"),h=Y=>{if(P.value&&n.type==="daterange"){const N=[...v.value];N[0]=Y,v.value=N}else v.value=Y;c("update:modelValue",v.value),c("change",v.value)},A=l.computed(()=>P.value&&n.type==="daterange"?"date":n.type),C=e,T=l.computed(()=>({[`${C}`]:!0,"is-long":P.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(n,"hintText"),j=l.ref(!1);const V=Y=>{let W=Y.target.value;b.value=!0,he(q.value)||(j.value=!0),c("focus",W,Y)},I=Y=>{setTimeout(()=>{j.value&&(j.value=!1),b.value=!1},0);let W=Y.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),c("blur",W,Y)},R=()=>{c("clear","")},x=Y=>{c("calendar-change",Y)},z=(Y,N,W)=>{c("panel-change",Y,N,W)},y=Y=>{c("visible-change",Y)},_=Fe(l.computed(()=>n.longTermText),"longTermText",je.Near),Z=Fe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",je.Near),B=Fe(l.computed(()=>n.longTermValue),"longTermValue",je.Near),k=Fe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",je.Near);let M=null;const P=l.ref(ce(n.longTerm)),G=Y=>{if(P.value=Y,c("update:longTerm",Y),Y){if(M=v.value,n.type==="daterange"){const N=[];Array.isArray(B.value)?(N[0]=v.value?v.value[0]??B.value[0]:null,N[1]=B.value[1]??B.value[0]):(N[0]=v.value?v.value[0]??B.value:null,N[1]=P.value),N[0]||(N[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=N}else Array.isArray(B.value)?v.value=B.value[1]??B.value[0]:v.value=B.value,v.value||(v.value=n.valueFormat?ze.format(new Date,n.valueFormat):new Date);c("update:modelValue",v.value)}else{if(n.type==="daterange"){const N=[];N[0]=Array.isArray(v.value)?v.value[0]:v.value,Array.isArray(M)?N[1]=M[1]:N[1]=M,N[0]||(N[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=N}else v.value=M;c("update:modelValue",v.value),setTimeout(()=>{le()},100)}},J=ce(n.isLongTerm);if(J){const Y=()=>{if(P.value===!0){if(M=v.value,n.type==="daterange"){const N=[v.value[0]];Array.isArray(B.value)?N[1]=B.value[1]??B.value[0]:N[1]=P.value,N[0]||(N[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=N}else v.value=B.value;c("update:modelValue",v.value)}else tt(B.value,v.value)&&(P.value=!0)};Y(),l.watch([()=>n.longTerm],([N])=>{P.value!==N&&Y()}),l.watch([()=>v.value],([N])=>{let W=!1;if(n.type==="daterange"&&Array.isArray(N))try{let X=N[1];if(!X)return;if(N[0]==null){c("update:modelValue",[]);return}typeof X!="string"&&n.valueFormat&&(X=ze.format(X,n.valueFormat));let O=Array.isArray(B.value)?B.value[1]:B.value;(X===O||Array.isArray(k.value)&&k.value.findIndex(ee=>X==ee)!==-1)&&(W=!0)}catch(X){console.error(X)}P.value!==W&&(P.value=W)},{immediate:!0})}const L=l.computed(()=>({"fox-date-item__long":!0,"is-active":b.value})),ne=l.ref(),E=l.ref(),$=/^\d+$/,F=(Y,N)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(Y,N):$.test(Y)&&Y.length===n.flashFillThreshold,D=(Y,N)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(Y,N);else{const O=n.flashFillFormat??"YYYYMMDD";W=ze.parser(Y,O)}const X=n.valueFormat??"YYYY-MM-DD";return ze.format(W,X)},w=Y=>Y?Y.endsWith("range"):!1,K=Y=>{if(!Y.target)return;const N=Y.target.value??"";if(F(N,n.type)){const W=D(N,n.type);if(w(n.type)){const X=Array.isArray(v.value)?[...v.value]:[];X[0]=W,h(X)}else h(W)}},Q=Y=>{if(!Y.target)return;const N=Y.target.value??"";if(F(N,n.type)){const W=D(N,n.type);if(w(n.type)){const X=Array.isArray(v.value)?[...v.value]:[];X[1]=W,h(X)}else h(W)}},le=()=>{if(n.flashFill&&ne.value&&ne.value.$el)if(w(n.type)){const Y=ne.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",K),Y[1]&&Y[1].addEventListener("input",Q)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",K)}},U=()=>{if(n.flashFill&&ne.value&&ne.value.$el)if(w(n.type)){const Y=ne.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",K),Y[1]&&Y[1].removeEventListener("input",Q)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",K)}};return l.onMounted(le),l.onBeforeUnmount(U),Se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const N={...r.attrs,key:f.value,type:A.value,ref:E,class:T.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:R,onFocus:V,onBlur:I,onCalendarChange:x,onPanelChange:z,onVisibleChange:y},W={};r.slots["range-separator"]&&(W["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(W.default=r.slots.cell);const X=[],O=l.h(S.ElDatePicker,N,W);X.push(O);const H={default:()=>X};if(H.label=r.slots.default,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip,J){if(P.value){const fe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),be=l.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),ye={class:L.value},Ee=l.h("div",ye,{default:()=>[fe,be]});X.push(Ee)}if(!s.value&&!i.value){const fe={label:Z.value||_.value,disabled:s.value||i.value,modelValue:P.value,"onUpdate:modelValue":G},be=l.h(S.ElCheckbox,fe),ye=l.h("div",{class:{[`${C}__append`]:!0}},[be]);H.append=()=>ye}}const oe={...Oe(n,sr,ur),ref:ne,class:{[`${C}__wrapper`]:!0,"has-append":J},hintText:q.value,hintVisible:j.value};return n.prop&&(oe.prop=`${n.prop}_item`),l.h(o,oe,H)}}}}const{componentName:Ws,create:Ys,scope:Us}=ie("date-item"),dl=Ys(Ks(Ws,Us,$e)),cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gs(e,t,o){return{props:{...Ce,...Ve,...cr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(!1),v=ge(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0})),h=R=>{v.value=R,c("update:modelValue",R),c("change",R)};let A=ge(n,"hintText"),C=l.ref(!1);const T=R=>{let z=R.target.value;b.value=!0,he(A.value)||(C.value=!0),c("focus",z,R)},q=R=>{setTimeout(()=>{C.value&&(C.value=!1),b.value=!1},0);let z=R.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),c("blur",z,R)},j=()=>{c("clear","")},V=R=>{c("visible-change",R)},I=l.ref();return Se({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const x={...r.attrs,ref:I,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:T,onBlur:q,onVisibleChange:V},z={},y=[],_=l.h(S.ElTimePicker,x,z);y.push(_);const Z={default:()=>y};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const k={...Oe(n,cr),hintText:A.value,hintVisible:C.value};return n.prop&&(k.prop=`${n.prop}_item`),l.h(o,k,Z)}}}}const{componentName:Xs,create:Zs,scope:Qs}=ie("time-item"),hl=Zs(Gs(Xs,Qs,$e)),fr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Js(e,t,o){return{props:{...Ce,...Ve,...fr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(!1),v=ge(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0})),h=I=>{v.value=I,c("update:modelValue",I),c("change",I)};let A=ge(n,"hintText"),C=l.ref(!1);const T=I=>{let x=I.target.value;b.value=!0,he(A.value)||(C.value=!0),c("focus",x,I)},q=I=>{setTimeout(()=>{C.value&&(C.value=!1),b.value=!1},0);let x=I.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),c("blur",x,I)},j=()=>{c("clear","")},V=l.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const R={...r.attrs,ref:V,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:T,onBlur:q},x={},z=[],y=l.h(S.ElTimeSelect,R,x);z.push(y);const _={default:()=>z};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const B={...Oe(n,fr),hintText:A.value,hintVisible:C.value};return n.prop&&(B.prop=`${n.prop}_item`),l.h(o,B,_)}}}}const{componentName:eu,create:tu,scope:nu}=ie("time-select-item"),gl=tu(Js(eu,nu,$e));function dr(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function hr(e,t,o=20){if(typeof t=="string"&&(t=Te(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=ho(`${e}`,`${t}`);return dr(n)}else{let n=Ln(`${e}`,go(`${t}`),20);return dr(n)}}function lu(e,t=-1,o=!1,n=3,r=","){return jt(e,t,o,n,r)}function gr(e,t,o,n,r=!0){if(e==="")return"";if(e=mo(e),t=Te(t),t==1)return e;if(n)e=hr(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Te(o)+2,"0"):e=Ln(e,1,Te(o)));else{let a=-1*t;e=hr(e,a)}return e}function mr(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ce(t.minInclude),r=Bn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ce(t.maxInclude),r=Bn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const yr={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 ou(e,t,o){return{props:{...Ce,...Ve,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=l.ref(!1),m=ge(n,"modelValue",null,c),b=l.ref("");l.watch([()=>m.value,()=>n.rates,()=>n.precision],([k,M,P])=>{if(he(k)){b.value="";return}const G=gr(k,M,P,!1);b.value!==G&&(b.value=G)},{immediate:!0});const v=l.computed(()=>{let k="";return d.value&&(k=b.value),k}),{t:p}=qe.useFoxI18n(t),f=l.computed(()=>{let k=n.placeholder??"";return!d.value&&!he(b.value)?k=lu(b.value,n.decimalLength,n.autoPadding,n.digits,n.separator):k=p(["placeholder",k]),k}),h=e,A=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:b.value.length>0})),C=Fe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>d.value?{textAlign:"left"}:{textAlign:C.value??"right"});const T=l.ref(""),q=l.computed(()=>{let k=T.value;return he(k)&&(k=n.errorTip??""),k}),j=l.ref(""),V=l.ref(!1),I=(k,M)=>{if(k=`${k}`,he(k)){b.value="",m.value="",M.forEach(P=>{c(P,"")}),ce(n.showTip)&&V.value&&(V.value=!1);return}if(k.length>=2){let P=k;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){l.triggerRef(b);return}}if(k!="-"){if(!To(k)){l.triggerRef(b);return}if(n.integerLength!=-1&&Co(k)>Number(n.integerLength)){l.triggerRef(b);return}if(n.decimalLength&&n.decimalLength!=-1&&$o(k)>Number(n.decimalLength)){l.triggerRef(b);return}let P=mr(k,n);if(P.maxValid===!1){T.value=P.message,l.triggerRef(b);return}}else if(n.min!=null&&Te(n.min)>=0){l.triggerRef(b);return}j.value=k,ce(n.showTip)&&(V.value=k.length>0),b.value=k,m.value=gr(k,n.rates,n.precision,!0),M.forEach(P=>{c(P,m.value)})},R=k=>{I(k,["update:modelValue","input"])},x=k=>{I(k,["update:modelValue","change"])},z=k=>{if(d.value=!0,ce(n.showTip)){let M=b.value;he(M)&&(M=n.hintText),he(M)||(j.value=M,V.value=!0)}T.value="",c("focus",m.value,k)},y=k=>{if(setTimeout(()=>{d.value=!1,ce(n.showTip)&&V.value===!0&&(V.value=!1)},0),!he(b.value)){let M=mr(b.value,n);if(M.minValid===!1||M.maxValid===!1){T.value=M.message;return}}c("update:modelValue",m.value,k),c("blur",m.value,k)},_=()=>{c("clear","")},Z=l.computed(()=>Et(n.unit)>0),B=l.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const M={...Qe(r.attrs),ref:B,class:A.value,type:"digit",maxlength:n.maxLength,placeholder:f.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onInput:R,onChange:x,onFocus:z,onBlur:y},P={};r.slots.prepend&&(P.prepend=r.slots.prepend),r.slots.append&&(P.append=r.slots.append),r.slots.prefix&&(P.prefix=r.slots.prefix),r.slots.suffix?P.suffix=r.slots.suffix:Z.value&&(P.suffix=()=>[n.unit]);const G=[],J=l.h(S.ElInput,M,P);G.push(J);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...Oe(n,yr),errorTip:q.value,hintText:j.value,hintVisible:V.value,hintType:"number"};return n.prop&&(E.prop=`${n.prop}_item`),l.h(o,E,L)}}}}const{componentName:ru,create:au,scope:iu}=ie("money-item"),ml=au(ou(ru,iu,$e)),pr={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 su(e,t,o){return{props:{...Ce,...Ve,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(!1),v=ge(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0,[`${p}__append`]:R.value})),h=l.computed(()=>({[`${p}__unit`]:!0})),A=z=>{v.value=z,c("update:modelValue",z),c("input",z)},C=z=>{c("change",z)};let T=ge(n,"hintText"),q=l.ref(!1);const j=z=>{let _=z.target.value;b.value=!0,he(T.value)||(q.value=!0),c("focus",_,z)},V=z=>{setTimeout(()=>{q.value&&(q.value=!1),b.value=!1},0);let _=z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),c("blur",_,z)},I=()=>{c("clear","")},R=l.computed(()=>Et(n.unit)>0),x=l.ref();return Se({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:z=>{a.value=z},setReadonly:z=>{u.value=z}}),()=>{const y={...Qe(r.attrs),ref:x,class:f.value,placeholder:m.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:C,onInput:A,onFocus:j,onBlur:V},_={},Z=[],B=l.h(S.ElInputNumber,y,_);Z.push(B);const k={default:()=>Z};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const P={...Oe(n,pr),hintText:T.value,hintVisible:q.value};if(n.prop&&(P.prop=`${n.prop}_item`),r.slots.append)k.append=r.slots.append;else if(R.value){const J={class:h.value},L=l.h("div",J,[n.unit]);k.append=()=>L}return l.h(o,P,k)}}}}const{componentName:uu,create:cu,scope:fu}=ie("input-number-item"),yl=cu(su(uu,fu,$e));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function du(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let hu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=Ye(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function gu(){const e=l.getCurrentInstance();return new hu(e.proxy)}function pl(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=ft(e,t),i=ft(e,o);return a===i}function br(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=br(e,u,o,n);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=lt(e,c)===u;else if(o==="item")s=pl(e,c,u);else{let d=ft(e,c);d==null&&(d=lt(e,c)),s=d===u}if(s){r.push(c),a=du(e,c);break}}if(!s)break}}return r}function mu(e){return{text:e,value:e}}const vr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function yu(e,t,o){return{props:{...Ce,...Ve,...vr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(null),v=l.ref([]),p=l.computed(()=>v.value?v.value.map(Y=>Array.isArray(Y)?Y.map(W=>lt(n,W)).join(" "):lt(n,Y)).join(" "):""),f=(U,Y,N,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(b.value===U)return;b.value=U;const ee=l.toRaw(U);if(W){const oe=le?.value.getCheckedNodes();if(oe)if(n.multiple){const ue=[];oe.forEach(fe=>{const ye=(fe.pathNodes??[]).map(Ee=>Ee.data);ue.push(ye)}),c("update:pathNodes",ue)}else{const fe=(oe[0]?.pathNodes??[]).map(be=>be.data);c("update:pathNodes",fe)}c("update:modelValue",ee),c("change",ee)}return}const X=br(n,U,Y,N);if(X===null){if(v.value.length===0||v.value===null)return;v.value=[],b.value=null,W&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const O=X[X.length-1];if(_.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const ee=[];X.forEach(oe=>{const ue=`${lt(n,oe)}`;ee.push(ue)}),ee.length>0&&(z.value=ee.join(n.separator))}else z.value=null;let H=!0;if(X.length!==v.value.length)H=!1;else for(let ee=0;ee<X.length;ee++){const oe=X[ee],ue=v.value[ee];if(Array.isArray(oe)){if(!Array.isArray(ue)||oe.length!==ue.length)H=!1;else for(let fe=0;fe<oe.length;fe++)if(!pl(n,oe[fe],ue[fe])){H=!1;break}}else pl(n,oe,ue)||(H=!1);if(!H)break}if(!H){v.value=X;let ee=[],oe=[];X.forEach(fe=>{if(Array.isArray(fe)){let be=[],ye=[];for(let Ee of fe)be.push(ft(n,Ee)),n.valueType==="text"?ye.push(lt(n,Ee)):n.valueType==="item"?ye.push(Ee):ye.push(ft(n,Ee));ee.push(be),oe.push(ye)}else ee.push(ft(n,fe)),n.valueType==="text"?oe.push(lt(n,fe)):n.valueType==="item"?oe.push(fe):oe.push(ft(n,fe))}),b.value=ee;const ue=l.toRaw(oe);W&&(c("update:pathNodes",X),c("update:modelValue",ue),c("change",ue))}},h=l.ref([]),A=Fe(l.computed(()=>n.appearLoad),"appearLoad",je.Near,U=>ce(U)),C=gu(),T=async(U,Y)=>{if(U){const N=await C.load("cascader",U,Y);if(N.length>0)if(typeof N[0]=="string"){let O=N.map(H=>mu(H));h.value=O}else h.value=N}};l.watch([()=>n.source,()=>n.params],async([U,Y])=>{T(U,Y)},{immediate:!(A.value||n.lazy)});let q=!1;const j=()=>{q||(q=!0,T(n.source,n.params))};l.watch([()=>h.value,()=>n.modelValue],([U,Y])=>{f(Y,n.valueType,U,!1),c("setValue",Y)}),n.lazy&&f(n.modelValue,"value",[],!1);let V=null,I=l.ref(!1);typeof n.remoteMethod=="function"&&(V=async U=>{if(U!=null){I.value=!0;try{const Y=await n.remoteMethod(U);h.value=Y}catch(Y){console.error(Y)}I.value=!1}});const R=l.ref(!1),x=e,z=l.ref(null),y=l.computed(()=>({[x]:!0,"is-incomplete":z.value&&z.value.length>0})),_=l.computed(()=>{let U={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(U.multiple=!0),n.props&&Object.assign(U,n.props),n.lazy&&(U.lazy=!0,typeof n.lazyLoad=="function"?U.lazyLoad=n.lazyLoad:U.lazyLoad=async(Y,N)=>{const W=await C.load("cascader",n.source,Y,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(b.value)&&b.value.length===Y.level){const X=Y.pathLabels??[];let O=[];X.forEach(H=>{H&&O.push(H)}),O.length>0&&(z.value=O.join(n.separator))}else z.value=null;N(W)}),U}),Z=U=>{n.allowCreate?(c("update:modelValue",U),c("change",U),b.value=U):f(U,"value",h.value,!0)};let B=ge(n,"hintText"),k=l.ref(!1);const M=U=>{let N=U.target.value;R.value=!0,he(B.value)||(k.value=!0),c("focus",N,U)},P=U=>{setTimeout(()=>{k.value&&(k.value=!1),R.value=!1},0);let N=U.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),D.value||c("blur",N,U)},G=()=>{c("clear","")},J=l.ref(!1);let L=null;const ne=()=>{n.showTooltip&&J.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{J.value=!0},150))},E=()=>{L&&(clearTimeout(L),J.value=!1,L=null)},$=l.computed(()=>J.value||k.value),F=l.computed(()=>J.value?p.value:B.value),D=l.ref(!1),w=U=>{D.value=U,c("visible-change",U),U||c("selected")},K=U=>{c("remove-tag",U)},Q=U=>{c("expand-change",U)},le=l.ref();return Se({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const Y={...r.attrs,ref:le,class:y.value,props:_.value,clearable:n.clearable,placeholder:z.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:b.value,separator:n.separator,onClear:G,onChange:Z,onFocus:M,onBlur:P,onVisibleChange:w,onRemoveTag:K,expandChange:Q};typeof V=="function"&&(Y["remote-method"]=V,Y.loading=I.value);const N={};r.slots.option&&(N.default=r.slots.option),r.slots.empty&&(N.empty=r.slots.empty);const W=[],X=l.h(S.ElCascader,Y,N);W.push(X);const O={default:()=>W};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const ee={...Oe(n,vr),hintText:F.value,hintVisible:$.value,onMouseover:ne,onMouseleave:E};return n.prop&&(ee.prop=`${n.prop}_item`),A.value&&!n.lazy&&(ee["appear-listen"]=!0,ee.onAppear=j),l.h(o,ee,O)}}}}const{componentName:pu,create:bu,scope:vu}=ie("cascader-item"),bl=bu(yu(pu,vu,$e)),wr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function wu(e,t,o){return{props:{...Ce,...Ve,...wr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),m=d(n,["placeholder"]),b=l.ref(!1),v=ge(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0})),h=x=>{v.value=x,c("update:modelValue",x),c("input",x)},A=x=>{c("change",x)},C=x=>{c("select",x)};let T=ge(n,"hintText"),q=l.ref(!1);const j=x=>{let y=x.target.value;b.value=!0,he(T.value)||(q.value=!0),c("focus",y,x)},V=x=>{setTimeout(()=>{q.value&&(q.value=!1),b.value=!1},0);let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),c("blur",y,x)},I=()=>{c("clear","")},R=l.ref();return Se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...r.attrs,ref:R,class:f.value,placeholder:m.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,onClear:I,onChange:A,onInput:h,onFocus:j,onBlur:V,onSelect:C},y={};r.slots.prepend&&(y.prepend=r.slots.prepend),r.slots.append&&(y.append=r.slots.append),r.slots.prefix&&(y.prefix=r.slots.prefix),r.slots.suffix&&(y.suffix=r.slots.suffix),r.slots.option&&(y.default=r.slots.option);const _=[],Z=l.h(S.ElAutocomplete,z,y);_.push(Z);const B={default:()=>_};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...Oe(n,wr),hintText:T.value,hintVisible:q.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,B)}}}}const{componentName:Su,create:xu,scope:Tu}=ie("autocomplete-item"),vl=xu(wu(Su,Tu,$e));function Cu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(b=>b[n]===d);if(!m)break;i.push(m[o])}return i}if(Array.isArray(u))for(let s=0;s<t.length&&s<a.length;s++){let c=t[s],d=a[s];const m=c.find(b=>b[n]===d);if(!m)break;i.push(m[o])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(b=>b[n]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let $u=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Ye(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Eu(){const e=l.getCurrentInstance();return new $u(e.proxy)}const Sr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ku(e,t){return{props:{...Sr},setup(o,{attrs:n,slots:r}){const a=Eu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([c,d])=>{i.value=await a.load(o.sourceType,c,d)},{immediate:!0});const u=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Cu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},u.value):l.h(s,c,{default:()=>u.value}):l.h(s,c,u.value)}}}}const{create:Nu}=ie("mapping"),Rt=Nu(ku());function Iu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);n=n[m][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Ou(e,t){return{props:{...Sr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Iu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:u},{default:r.default}):l.h(Rt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(S.ElTableColumn,{...n},a)}}}}const{create:Du}=ie("table-mapping-column"),wl=Du(Ou()),Vu=Symbol.for("TableStateKey");function xr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);n=n[m][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Ru(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Vu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=xr(u.row,u.column.property),c=a?xr(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},b=l.h("span",m,[l.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":d}};return l.h("label",v,[b])}};return l.h(S.ElTableColumn,{...n},i)}}}}const{create:Fu}=ie("table-radio-column"),Sl=Fu(Ru()),Au={},Mu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Lu(e,t){return l.openBlock(),l.createElementBlock("svg",Mu,t[0]||(t[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const Bu=Ue(Au,[["render",Lu]]),{create:_u}=ie("table-setting"),qu={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:"不固定"}},Pu=_u({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Bu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...qu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed===""||w.fixed===!0||w.fixed==="left")),i=l.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed==="right")),u=l.computed(()=>r.value.filter(w=>!(w.label===""||w.type||w.fixed!==void 0))),s=l.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=l.computed(()=>a.value.length>0),d=l.computed(()=>i.value.length>0),m=w=>w.length>1,b=(w,K)=>{Array.isArray(w)&&Array.isArray(K)&&w.forEach(U=>{K.some(Y=>Y.prop===U.prop?(U.label=Y.label,!0):!1)});const Q=[];r.value=w.map((U,Y)=>(!(U.label===""||U.type)&&U.visible!==!1&&Q.push(U.prop),{...U,sortIndex:Y})),u.value.length+a.value.length+i.value.length===Q.length?C.value=!0:Q.length>0&&(T.value=!0),V.value=Q},v=w=>w?w.type?w.type:w.label?w.prop:"":"",p=(w,K)=>{if(w.length!==K.length)return!1;const Q=w.map(le=>v(le));for(let le of K){const U=v(le);if(Q.indexOf(U)===-1)return!1}return!0},f=w=>{if(!w){const K=e.tableRef.getColumnSetting(),Q=K.srcColumnPropertyList;n=Q.map((le,U)=>({...le,sortIndex:U})),w=K.columnPropertyList,w&&w.length>0&&p(Q,w)||(w=Q)}b(w,n)},h=()=>{e.tableRef.setColumnSetting(r.value)},A=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),C=l.ref(!1),T=l.ref(!1),q=w=>{const K=[];r.value.forEach(le=>{w&&!(le.label===""||le.type)&&K.push(le.prop),le.visible=w}),C.value=!1,T.value=!1,u.value.length+a.value.length+i.value.length===K.length?C.value=!0:K.length>0&&(T.value=!0),V.value=K,h()},j=()=>{f(n),h()},V=l.ref([]),I=w=>{r.value.forEach(Q=>{if(Q.label===""||Q.type)return;const le=w.indexOf(Q.prop)!==-1;Q.visible=le}),C.value=!1,T.value=!1;const K=u.value.length+a.value.length+i.value.length;w.length===K?C.value=!0:w.length>0&&(T.value=!0),h()},R=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const x={currentRow:null,index:null,roleType:null},z=w=>w?w.dataset&&w.dataset.role==="row"?w:w.tagName.toLowerCase()!=="body"?(w=w.parentElement,z(w)):null:null,y=w=>{const K=w.currentTarget;K&&K.dataset&&(x.roleType=K.dataset.roleType,x.index=K.dataset.index)},_=w=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},Z=w=>{const K=w.currentTarget;w.relatedTarget;const Q=z(K);if(!Q)return;const le=Q.dataset&&Q.dataset.roleType;x.roleType===le&&(w.preventDefault(),x.currentRow&&x.currentRow!==Q&&x.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),x.currentRow=Q)},B=w=>{w.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},k=w=>{const K=w.currentTarget,Q=z(K);if(!Q)return;const le=Q.dataset&&Q.dataset.roleType;if(x.roleType!==le)return;w.preventDefault();const U=Number(x.index),Y=Number(Q.dataset.index);if(U!==Y){if(U<Y){const N=r.value[U];r.value.splice(U,1),r.value.splice(Y,0,N)}else{const N=r.value[U];r.value.splice(U,1),r.value.splice(Y+1,0,N)}b(r.value,n),h()}},M=w=>{const K=r.value[w];K.fixed="left",h()},P=w=>{const K=r.value[w];K.fixed="right",h()},G=w=>{const K=r.value[w];K.fixed=void 0,h()},J=new Map;let L=null;function ne(w){const K=document.createRange();return K.setStart(w,0),K.setEnd(w,w.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:C,isIndeterminate:T,handleCheckAllChange:q,handleReset:j,checkedValue:V,handleCheckChange:I,onShow:R,onDragStart:y,onDragEnd:_,onDragOver:Z,onDragLeave:B,onDrop:k,toLeftFixed:M,toRightFixed:P,toUnFixed:G,checkboxLabelStyle:A,onMouseOverForOverflowText:(w,K,Q)=>{const le=w.currentTarget;if(le){const U=Math.floor(le.offsetWidth);if(Math.floor(ne(le))>U){let N=J.get(K);if(N){if(N===L)return;Le.hide(N)}N=Le.show(le,Q,{type:"text",placement:"top",closeOnClick:!1}),N&&(J.set(K,N),L=N)}}},onMouseLeaveForOverflowText:(w,K)=>{const Q=J.get(K);Q&&(Le.hide(Q),Q===L&&(L=null))},onMouseOverForTip:(w,K)=>{const Q=w.currentTarget;Q&&(L&&Le.hide(L),L=Le.show(Q,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:w=>{L&&(Le.hide(L),L=null)}}}}),ju={class:"fox-table-setting"},zu={class:"fox-table-setting__header"},Hu={class:"fox-table-setting__body"},Ku={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Wu={key:0,class:"fox-table-setting__body-title"},Yu=["data-index","draggable"],Uu=["onMouseover","onMouseleave"],Gu={class:"tools-item"},Xu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Zu={key:0,class:"fox-table-setting__body-title"},Qu=["data-index","draggable"],Ju=["onMouseover","onMouseleave"],ec={class:"tools-item"},tc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},nc={key:0,class:"fox-table-setting__body-title"},lc=["data-index","draggable"],oc=["onMouseover","onMouseleave"],rc={class:"tools-item"};function ac(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),d=l.resolveComponent("FoxIcon"),m=l.resolveComponent("Download"),b=l.resolveComponent("fox-checkbox"),v=l.resolveComponent("FoxCheckboxGroup"),p=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(p,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",ju,[l.createElementVNode("div",zu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Hu,[l.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ku,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Wu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[6]||(t[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[7]||(t[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[8]||(t[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[9]||(t[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,Uu)]),_:2},1032,["value"]),l.createElementVNode("div",Gu,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[2]||(t[2]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[4]||(t[4]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,Yu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Xu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Zu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[15]||(t[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[16]||(t[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[17]||(t[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[18]||(t[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,Ju)]),_:2},1032,["value"]),l.createElementVNode("div",ec,[l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[10]||(t[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[13]||(t[13]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,Qu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",tc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",nc,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[24]||(t[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[25]||(t[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[26]||(t[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[27]||(t[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(b,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,oc)]),_:2},1032,["label"]),l.createElementVNode("div",rc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[20]||(t[20]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[21]||(t[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,lc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cn=Ue(Pu,[["render",ac]]);let ic=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,u){if(Array.isArray(o)){let c=(n-1)*r,d=c+r;d>o.length&&(d=o.length);const m=o.slice(c,d);return{totalSize:o.length,page:m}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,u]);const s=Ye(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(et(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,n,r,a,i,u]))}};function sc(){const e=l.getCurrentInstance();return new ic(e.proxy)}class uc{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ye(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ye(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ye(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Tr(){const e=l.getCurrentInstance();return new uc(e.proxy)}const cc=Symbol.for("TableStateKey"),Cr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},$r={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},xl={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:()=>"不固定"}},fc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function dc(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);n=n[m][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Tl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=dc(n,r);if(a!==i)return!1}return!0})}function hc(e,t,o){return{props:{...Ce,...Ve,...Cr,...$r,...xl,...fc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=qe.useFoxI18n(t),{emitEvent:i,broadcast:u}=ke({componentName:e,validateHandler:{getValue(...te){return I.value}}},n.prop??r.attrs.name),s=e,c=l.computed(()=>({[s]:!0})),d=l.computed(()=>({[`${s}__setting`]:!0})),m=l.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),b=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),v=l.shallowRef({}),p=l.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),f=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),A=ce(n.infiniteLoad);A||(l.watch(()=>n.pageIndex,te=>{f.value=te}),l.watch(()=>n.pageSize,te=>{h.value=te}),l.watch([f,h],([te,re],[ae,se])=>{re!==se&&(f.value=1,te=1),y(n.data,te,re,p.value)}));const C=()=>Array.isArray(n.data)?!0:ce(n.autoLoad);C()&&l.watch([()=>n.data,p],async([te,re],[ae,se])=>{C()&&(te!==ae&&(x=!0),!(!Array.isArray(te)&&tt(te,ae)&&tt(re,se))&&(A?(f.value=0,j.value=!0,I.value=[],Z()):f.value===1?y(te,f.value,h.value,re):f.value=1))},{deep:!0});const T=te=>{f.value=te,i("page-index-change",te)},q=te=>{h.value=te,i("page-size-change",te)},j=l.ref(!0),V=l.ref(0),I=l.ref(),R=sc();let x=!0;const z=Fe(l.computed(()=>n.appearLoad),"appearLoad",je.Near,te=>ce(te)),y=async(te,re,ae,se,Re)=>{x=!1;try{if(Re===!0){if(!j.value)return!1;const pe=await R.load("table",te,re,ae,se,x,a.value);return V.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,I.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(I.value?.length??0)>=V.value)||pe.page.length<ae?(j.value=!1,!1):!0}else{const pe=await R.load("table",te,re,ae,se,x,a.value);return V.value=pe.totalSize,I.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),V.value=0,I.value=[]}return!1};let _=!1;const Z=async()=>{if(!_){if(_=!0,!j.value){_=!1;return}f.value+=1,await y(n.data,f.value,h.value,p.value,!0),_=!1}},B=(te={},re=!1)=>new Promise(async ae=>{v.value={...l.toRaw(te??{})},re||(f.value=n.pageIndex??1),A===!0?(f.value=0,I.value=[],j.value=!0,await Z()):await y(n.data,f.value,h.value,p.value),ae()}),k=()=>{V.value=0,I.value=[],A===!0&&(f.value=0,j.value=!0)};let M=!1;const P=()=>{M||(M=!0,B())},G=l.ref(null);if(A===!0){let te=null;const re=()=>{G.value&&(te=new IntersectionObserver(se=>{let Re=!1;for(let pe of se)if(pe.intersectionRatio>0){Re=!0;break}Re&&Z()}),te.observe(G.value))},ae=()=>{!te||!G.value||(te.unobserve(G.value),te=null)};l.onMounted(re),l.onBeforeUnmount(ae)}C()&&!z.value&&B();const J=l.ref(null);l.provide(cc,{currentRow:J});const L=(te,re)=>{J.value=te,i("current-change",te,re)},ne=(te,re,ae)=>{i("row-click",te,re,ae),ce(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(te)},E=[],$=(te,re)=>{if(i("expand-change",te,re),ce(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=E.length;E.splice(0,ae)}else{E.forEach(se=>{se!==te&&xe?.value.toggleRowExpansion(se,!1)});const ae=E.length;E.splice(0,ae,te)}},F=r.attrs.id??n.prop??r.attrs.name,D=Tr(),w=l.ref([]);let K=[];const Q=()=>({srcColumnPropertyList:K.map(re=>({...re})),columnPropertyList:w.value}),le=te=>{w.value=[...te],Y()},U=async()=>{const te=await D.load(F);te&&(w.value=te)},Y=()=>{D.save(F,w.value)},N=()=>{D.remove(F)};U();const W=te=>te?te.type?te.type:te.label?te.prop:"":"",X=(te,re={})=>{for(let ae in re){const se=re[ae];typeof se!="function"&&(te[ae]=se)}},O=te=>{const re=te?te():[],ae=new Map;if(K=[],re.forEach(se=>{const pe=se;if(!pe.props)return;const Ge=W(pe.props);ae.set(Ge,pe);const Ke={label:"",prop:""};X(Ke,pe.props),K.push(Ke)}),w.value.length===K.length){const se=[];for(let Re of w.value){const pe=W(Re),Ge=ae.get(pe);if(!Ge)return re;if(Re.visible===!1)continue;const Ke=Ge;Ke.props.fixed=Re.fixed,se.push(Ke)}return se}return re},H=l.shallowRef(new Map),ee=({row:te,column:re,rowIndex:ae,columnIndex:se})=>{const Re=`${ae}_${re.property}`,pe=`${ae}_${se}`;let Ge=H.value.get(Re);return Ge||(Ge=H.value.get(pe)),typeof Ge=="string"?Ge:""},oe=te=>te?re=>{const ae=[];let se=ee(re);return se&&ae.push(se),se=se=typeof te=="function"?te(re):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:ee,ue=(te=!1)=>{H.value.forEach((re,ae)=>{fe(ae,re,te)})},fe=(te,re,ae=!1)=>{const se=`${te}_item`;ae?(u.clearPersistantMessage(),Array.isArray(re)?u.emitToChildren({name:te},"setCellClassNames",[]):u.emitToChildren({name:se},"setCustomClassName","")):Array.isArray(re)?u.emitToChildren({name:te,cachePolicy:"Persistant",uniqueId:se},"setCellClassNames",re):u.emitToChildren({name:se,cachePolicy:"Persistant",uniqueId:se},"setCustomClassName",re)},be=(te,re,ae)=>{const se=`${te}_${re}`;ae?(H.value.set(se,ae),fe(se,ae)):(H.value.delete(se),fe(se,"",!0)),l.triggerRef(H)},ye=te=>{ue(!0),H.value.clear(),te.forEach(re=>{const ae=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?H.value.set(ae,re.children):typeof re.cellClassName=="string"&&H.value.set(ae,re.cellClassName)}),ue(),l.triggerRef(H)},Ee=()=>{ue(),H.value.clear(),l.triggerRef(H)},He=l.shallowRef(new Map),ht=({rowIndex:te})=>{const re=`${te}`;return He.value.get(re)??""},Tt=te=>te?re=>{const ae=[];let se=ht(re);return se&&ae.push(se),se=typeof te=="function"?te(re):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:ht,lo=(te,re)=>{const ae=`${te}`;re?He.value.set(ae,re):He.value.delete(ae),l.triggerRef(He)},bg=()=>{He.value.clear(),l.triggerRef(He)},xe=l.ref();return Se({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(te,re)=>{xe?.value.toggleRowSelection(te,re)},toggleRowSelectionByProp:(te,re)=>{if(!I.value)return;const ae=Tl(I.value,te);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowSelection(se,re)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(te,re)=>{xe?.value.toggleRowExpansion(te,re)},toggleRowExpansionByProp:(te,re)=>{if(!I.value)return;const ae=Tl(I.value,te);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowExpansion(se,re)})},setCurrentRow:te=>{xe?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!I.value)return;const re=Tl(I.value,te);re.length!==0&&xe?.value.setCurrentRow(re[0])},getCurrentRow:()=>J.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:te=>{xe?.value.clearFilter(te)},doLayout:()=>{xe?.value.doLayout()},sort:(te,re)=>{xe?.value.sort(te,re)},scrollTo:(te,re)=>{xe?.value.scrollTo(te,re)},setScrollTop:te=>{xe?.value.setScrollTop(te)},setScrollLeft:te=>{xe?.value.setScrollLeft(te)},loadData:B,clearData:k,getData(){return I.value},getTotalSize(){return V.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Q,setColumnSetting:le,removeColumnSetting:N,setCellClassName:be,setCellClassNames:ye,clearCellClassName:Ee,setRowClassName:lo,clearRowClassName:bg}),()=>{const re={...Qe(r.attrs),onCurrentChange:L,onRowClick:ne,onExpandChange:$,data:I.value,ref:xe,class:c.value,"cell-class-name":oe(n.cellClassName),"row-class-name":Tt(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>O(r.slots.default)),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),A===!0){const Xe=[];if(j.value){const _t=l.h(Ne.Loading,{class:`${s}__infinite-icon`});Xe.push(_t);const ro=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);Xe.push(ro)}else{const _t=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Xe.push(_t)}const gt={ref:G,class:`${s}__infinite`},oo=l.h("div",gt,Xe);ae.append=()=>oo}const se=l.h(S.ElTable,re,ae),Re=[];if(Re.push(se),!A){let Xe=null;if(typeof r.slots.pagination=="function")Xe=r.slots.pagination();else if(n.showPagination){const gt={class:b.value,total:V.value,pageSize:h.value,"onUpdate:pageSize":q,pageSizes:n.pageSizes,currentPage:f.value,"onUpdate:currentPage":T,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Xe=l.h(S.ElPagination,gt)}if(n.showSetting){const gt=[];Xe&&gt.push(Xe);const oo=l.h(S.ElIcon,{class:d.value},{default:()=>l.h(Ne.Setting)}),_t=ko(n,xl),ro=l.h(Cn,{..._t,tableRef:{getColumnSetting:Q,setColumnSetting:le,removeColumnSetting:N}},{default:()=>oo});gt.push(ro);const vg=l.h("div",{class:m.value},gt);Re.push(vg)}else Xe&&Re.push(Xe)}const pe={default:()=>Re},Ke={...Oe(n,Cr,$r,xl)};return n.prop&&(Ke.prop=`${n.prop}_item`),Ke.contentClass=`${s}__wrap`,Ke.errorMarkClass="is-table-error",z.value&&C()&&(Ke["appear-listen"]=!0,Ke.onAppear=P),l.h(o,Ke,pe)}}}}const{componentName:gc,create:mc,scope:yc}=ie("table-item"),Cl=mc(hc(gc,yc,$e));function vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function pc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let bc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Ye(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function vc(){const e=l.getCurrentInstance();return new bc(e.proxy)}function Er(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=vt(e,t),r=vt(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function wc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=vt(e,a)===t;else if(o==="item")i=Er(e,a,t);else{let u=Ft(e,a);u==null&&(u=vt(e,a)),i=u===t}if(i){r=a;break}}return r}function Sc(e){return{text:e,value:e}}function xc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const kr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Tc(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,...kr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=l.ref(null),m=l.ref(null),b=(x,z,y,_=!0)=>{const Z=wc(n,x,z,y);if(Z===null){if(m.value===null)return;m.value=null,d.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!Er(n,Z,m.value)){d.value=x;const k=l.toRaw(Z);m.value=k;let M=null;n.valueType==="text"?M=vt(n,k):n.valueType==="item"?M=k:M=Ft(n,k),_&&(c("update:modelValue",M),c("change",M))}},v=l.ref([]),p=Fe(l.computed(()=>n.appearLoad),"appearLoad",je.Near,x=>ce(x)),f=vc(),h=async(x,z)=>{if(x){const y=await f.load("radio",x,z);if(y.length>0)if(typeof y[0]=="string"){let B=y.map(k=>Sc(k));v.value=B}else v.value=y}};l.watch([()=>n.source,()=>n.params],async([x,z])=>{h(x,z)},{immediate:!p.value});let A=!1;const C=()=>{A||(A=!0,h(n.source,n.params))};l.watch([()=>v.value,()=>n.modelValue],([x,z])=>{b(z,n.valueType,x,!1),c("setValue",z)});const T=e,q=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),j=x=>{b(x,"value",v.value,!0)};let V=ge(n,"hintText"),I=ge(n,"hintVisible");const R=(x,z)=>{const y=[];return x.forEach((_,Z)=>{const B=Ft(n,_),k=vt(n,_);let M=pc(n,_);i.value===!0&&(M=i.value),s.value===!0&&(M=s.value);const P=xc(n,_,Z)??{},G=`${B}_${Z}`,J={...P,key:G,value:B,size:n.size,border:ce(n.border)};M&&(J.disabled=M),n.itemType==="button"?y.push(l.h(S.ElRadioButton,J,{default:()=>[k]})):typeof z=="function"?y.push(l.h(S.ElRadio,J,{default:()=>z(_)})):y.push(l.h(S.ElRadio,J,{default:()=>[k]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Qe(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,onChange:j},y=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(v.value,r.slots.text);const Z=l.h(S.ElRadioGroup,z,_);y.push(Z);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...Oe(n,kr),hintText:V.value,hintVisible:I.value};return n.prop&&(M.prop=`${n.prop}_item`),p.value&&(M["appear-listen"]=!0,M.onAppear=C),l.h(o,M,B)}}}}const{componentName:Cc,create:$c,scope:Ec}=ie("radio-item"),$l=$c(Tc(Cc,Ec,$e));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function kc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Nc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Ye(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ic(){const e=l.getCurrentInstance();return new Nc(e.proxy)}function Nr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=St(e,t),i=St(e,o);return a===i}function Oc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let u=!1;if(o==="text")u=wt(e,i)===a;else if(o==="item")u=Nr(e,i,a);else{let s=St(e,i);s==null&&(s=wt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Dc(e){return{text:e,value:e}}function Vc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Ir={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Rc(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,...Ir},emits:["change","update:modelValue","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=l.ref([]),m=l.ref([]),b=(x,z,y,_=!0)=>{const Z=Oc(n,x,z,y);if(Z===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let B=!0;if(Z.length!==m.value.length)B=!1;else for(let k=0;k<Z.length;k++){const M=Z[k],P=m.value[k];if(!Nr(n,M,P)){B=!1;break}}if(!B){m.value=Z;let k=[],M=[];Z.forEach(G=>{k.push(St(n,G)),n.valueType==="text"?M.push(wt(n,G)):n.valueType==="item"?M.push(G):M.push(St(n,G))}),d.value=k;const P=l.toRaw(M);_&&(c("update:modelValue",P),c("change",P))}},v=l.ref([]),p=Fe(l.computed(()=>n.appearLoad),"appearLoad",je.Near,x=>ce(x)),f=Ic(),h=async(x,z)=>{if(x){const y=await f.load("checkbox",x,z);if(y.length>0)if(typeof y[0]=="string"){let B=y.map(k=>Dc(k));v.value=B}else v.value=y}};l.watch([()=>n.source,()=>n.params],async([x,z])=>{h(x,z)},{immediate:!p.value});let A=!1;const C=()=>{A||(A=!0,h(n.source,n.params))};l.watch([()=>v.value,()=>n.modelValue],([x,z])=>{b(z,n.valueType,x,!1),c("setValue",z)});const T=e,q=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),j=x=>{b(x,"value",v.value,!0)};let V=ge(n,"hintText"),I=ge(n,"hintVisible");const R=(x,z)=>{const y=[];return x.forEach((_,Z)=>{const B=St(n,_),k=wt(n,_);let M=kc(n,_);i.value===!0&&(M=i.value),s.value===!0&&(M=s.value);const P=Vc(n,_,Z)??{},G=`${B}_${Z}`,J={...P,key:G,class:n.itemClass,value:B,size:n.size,border:ce(n.border)};M&&(J.disabled=M),n.itemType==="button"?y.push(l.h(S.ElCheckboxButton,J,{default:()=>[k]})):typeof z=="function"?y.push(l.h(S.ElCheckbox,J,{default:()=>z(_)})):y.push(l.h(S.ElCheckbox,J,{default:()=>[k]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Qe(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:Te(n.max),min:Te(n.min),onChange:j},y=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(v.value,r.slots.text);const Z=l.h(S.ElCheckboxGroup,z,_);y.push(Z);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...Oe(n,Ir),hintText:V.value,hintVisible:I.value};return n.prop&&(M.prop=`${n.prop}_item`),p.value&&(M["appear-listen"]=!0,M.onAppear=C),l.h(o,M,B)}}}}const{componentName:Fc,create:Ac,scope:Mc}=ie("checkbox-item"),El=Ac(Rc(Fc,Mc,$e)),Or={modelValue:{type:[Number,String],required:!1}};function Lc(e,t,o){return{props:{...Ce,...Ve,...Or},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",A=>Te(A),c),m=e,b=l.computed(()=>({[m]:!0})),v=A=>{c("update:modelValue",A),c("change",A)};let p=ge(n,"hintText"),f=l.ref(!1);const h=l.ref();return Se({setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const C={...Qe(r.attrs),ref:h,class:b.value,readonly:s.value||i.value,modelValue:d.value,onChange:v},T={},q=[],j=l.h(S.ElRate,C,T);q.push(j);const V={default:()=>q};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const R={...Oe(n,Or),hintText:p.value,hintVisible:f.value};return n.prop&&(R.prop=`${n.prop}_item`),l.h(o,R,V)}}}}const{componentName:Bc,create:_c,scope:qc}=ie("rate-item"),kl=_c(Lc(Bc,qc,$e)),Dr={modelValue:{type:[Boolean,String,Number],required:!1}};function Pc(e,t,o){return{props:{...Ce,...Ve,...Dr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,c),m=e,b=l.computed(()=>({[m]:!0})),v=A=>{c("update:modelValue",A),c("change",A)};let p=ge(n,"hintText"),f=ge(n,"hintVisible");const h=l.ref();return Se({setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const C={...Qe(r.attrs),ref:h,class:b.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:v},T={},q=[],j=l.h(S.ElSwitch,C,T);q.push(j);const V={default:()=>q};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const R={...Oe(n,Dr),hintText:p.value,hintVisible:f.value};return n.prop&&(R.prop=`${n.prop}_item`),l.h(o,R,V)}}}}const{componentName:jc,create:zc,scope:Hc}=ie("switch-item"),Nl=zc(Pc(jc,Hc,$e)),Vr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Kc(e,t,o){return{props:{...Ce,...Ve,...Vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),c=l.ref(!1),{emitEvent:d}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),m=ge(n,"modelValue",null,d),b=e,v=l.computed(()=>({[b]:!0})),p=I=>{d("update:modelValue",I),d("change",I)};let f=ge(n,"hintText"),h=l.ref(!1);const A=I=>{let x=I.target.value;c.value=!0,he(f.value)||(h.value=!0),d("focus",x,I)},C=I=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let x=I.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),q.value||d("blur",x,I)},T=()=>{d("clear","")},q=l.ref(!1),j=I=>{q.value=I,d("visible-change",I),I||d("selected")},V=l.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const R={...Qe(r.attrs),ref:V,class:v.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":p,onClear:T,onFocus:A,onBlur:C,onVisibleChange:j},x={};r.slots.option&&(x.default=r.slots.option);const z=[],y=l.h(S.ElTreeSelect,R,x);z.push(y);const _={default:()=>z};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const B={...Oe(n,Vr),hintText:f.value,hintVisible:h.value};return n.prop&&(B.prop=`${n.prop}_item`),l.h(o,B,_)}}}}const{componentName:Wc,create:Yc,scope:Uc}=ie("tree-select-item"),Il=Yc(Kc(Wc,Uc,$e)),Gc={},Xc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Zc(e,t){return l.openBlock(),l.createElementBlock("svg",Xc,t[0]||(t[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const Qc=Ue(Gc,[["render",Zc]]),{create:Jc}=ie("group-setting"),ef={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},tf=Jc({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Qc,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...ef},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=Tr(),u=E=>E.length>1,s=()=>{const E=[],$=[...a.value];a.value=$.map((D,w)=>(D.visible!==!1&&E.push(D.prop),{...D,sortIndex:w})),a.value.length===E.length?f.value=!0:E.length>0&&(h.value=!0),T.value=E},c=E=>{let $=null;if(typeof E=="string")$=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const D=E.$el??E;typeof D.querySelectorAll=="function"&&($=D.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const F=[];return $.forEach(D=>{const w=D.querySelector(".label--string");let K="";w&&(K=w.textContent??"");const Q=D.getAttribute("prop")??"",U=window.getComputedStyle(D,null).getPropertyValue("display");F.push({label:K,prop:Q,sortIndex:0,visible:U!=="none"})}),F},d=()=>{if(!r){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;r=E}return!0},m=async(E=!1)=>{const $=await i.load(e.groupProp),F=D=>{if(!D||!r)return;const w=r.map(K=>({...K}));Array.isArray($)&&$.forEach(K=>{w.some(Q=>{if(Q.prop===K.prop){const le=Q.label;return Object.assign(Q,K),Q.label=le,!0}return!1})}),a.value=w.sort((K,Q)=>K.sortIndex-Q.sortIndex),s(),E&&v(!1)};r?F(!0):Xt(d,e.initDelay,5,50,!1,F)},b=()=>{const E=r??[];a.value=E.map($=>({...$})),s(),v()},v=(E=!0)=>{E&&i.save(e.groupProp,a.value);const $=a.value.map(F=>({...F}));t("change",$)},p=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),A=E=>{const $=[];a.value.forEach(D=>{E&&$.push(D.prop),D.visible=E}),f.value=!1,h.value=!1,a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),T.value=$,v()},C=()=>{b()},T=l.ref([]),q=E=>{a.value.forEach(F=>{const D=E.indexOf(F.prop)!==-1;F.visible=D}),f.value=!1,h.value=!1;const $=a.value.length;E.length===$?f.value=!0:E.length>0&&(h.value=!0),v()},j=()=>{m()};l.onMounted(()=>{m(!0)});const V={currentRow:null,index:null},I=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,I(E)):null:null,R=E=>{const $=E.currentTarget;$&&$.dataset&&(V.index=$.dataset.index)},x=E=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null},z=E=>{const $=E.currentTarget;E.relatedTarget;const F=I($);F&&(E.preventDefault(),V.currentRow&&V.currentRow!==F&&V.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),V.currentRow=F)},y=E=>{E.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},_=E=>{const $=E.currentTarget,F=I($);if(!F)return;E.preventDefault();const D=Number(V.index),w=Number(F.dataset.index);if(D!==w){if(D<w){const K=a.value[D];a.value.splice(D,1),a.value.splice(w,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(w+1,0,K)}s(),v()}},Z=E=>{const $=a.value[E];a.value.splice(E,1),a.value.splice(0,0,$),s(),v()},B=E=>{const $=a.value[E];a.value.splice(E,1),a.value.push($),s(),v()};n({refresh:()=>{r=null,m(!1)}});const k=new Map;let M=null;function P(E){const $=document.createRange();return $.setStart(E,0),$.setEnd(E,E.childNodes.length),$.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:A,handleReset:C,checkedValue:T,handleCheckChange:q,onShow:j,onDragStart:R,onDragEnd:x,onDragOver:z,onDragLeave:y,onDrop:_,checkboxLabelStyle:p,toTop:Z,toBottom:B,onMouseOverForOverflowText:(E,$,F)=>{const D=E.currentTarget;if(D){const w=Math.floor(D.offsetWidth);if(Math.floor(P(D))>w){let Q=k.get($);if(Q){if(Q===M)return;Le.hide(Q)}Q=Le.show(D,F,{type:"text",placement:"top",closeOnClick:!1}),k.set($,Q),M=Q}}},onMouseLeaveForOverflowText:(E,$)=>{const F=k.get($);F&&(Le.hide(F),F===M&&(M=null))},onMouseOverForTip:(E,$)=>{const F=E.currentTarget;F&&(M&&Le.hide(M),M=Le.show(F,$,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{M&&(Le.hide(M),M=null)}}}}),nf={class:"fox-group-setting"},lf={class:"fox-group-setting__header"},of={class:"fox-group-setting__body"},rf={class:"fox-group-setting__body-list","data-role":"container"},af=["data-index","draggable"],sf=["onMouseover","onMouseleave"],uf={class:"tools-item"};function cf(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),d=l.resolveComponent("FoxIcon"),m=l.resolveComponent("FoxCheckboxGroup"),b=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(b,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",nf,[l.createElementVNode("div",lf,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",of,[l.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",rf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,v=>(l.openBlock(),l.createElementBlock("div",{key:v.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":v.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:v.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(v.label),45,sf)]),_:2},1032,["label"]),l.createElementVNode("div",uf,[l.createVNode(d,{onClick:p=>e.toTop(v.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:p=>e.toBottom(v.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,af))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Ol=Ue(tf,[["render",cf]]),ff=["aria-labelledby"],df=l.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),hf=[df],gf=l.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},hf,14,ff))}}),mf=["aria-labelledby"],yf=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),pf=[yf],bf=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},pf,14,mf))}}),vf=["aria-labelledby"],wf=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Sf=[wf],Dl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Sf,14,vf))}}),xf=["aria-labelledby"],Tf=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Cf=[Tf],$f=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Cf,14,xf))}}),Ef=["aria-labelledby"],kf=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Nf=[kf],If=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Nf,14,Ef))}}),Of=["aria-labelledby"],Df=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vf=[Df],Rf=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vf,14,Of))}}),Ff={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Rr=(e,t)=>t[e.textKey],At=(e,t)=>t[e.valueKey],Af=(e,t)=>t[e.visibleKey],Fr=(e,t)=>t[e.disabledKey],Mf=(e,t)=>{const o=t[e.doitKey];return ce(o)},Lf=(e,t)=>{const o=t[e.numKey];return o==null?null:Te(t[o])},Ar=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function Bf(e,t,o,n=!1){return{props:{...Ff},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const E={};return E[`${e}`]=!0,E}),s=l.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${r.direction}`]=!0,r.align==="left"&&(E.left=!0),r.scroll===!0&&(E.scrollable=!0),r.shape&&(E[`${r.shape}`]=!0),E}),c=l.computed(()=>({})),d=l.computed(()=>{if(!r.gutter)return 0;const E=me(r.gutter);return E<=0?0:E}),m=l.ref(r.modelValue);l.watch(()=>r.modelValue,E=>{m.value!==E&&(m.value=E,P(!1))});const b=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=l.computed(()=>{const E={};return f.value||(E.display="none"),E}),p=l.ref(),f=l.ref(!1),h=()=>{const E=!f.value;A(E)},A=E=>{const $=E;$?(f.value=$,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},C=l.ref(),T=l.ref([]),q=(E,$)=>{T.value[$]=E},j=E=>$=>{q($,E)},V=(E,$)=>{const F=C.value,D=T.value;if(!F||!D||!D[E])return;const w=D[E];let K=0;r.direction==="vertical"?K=w.offsetTop-(F.offsetHeight-w.offsetHeight)/2:K=w.offsetLeft-(F.offsetWidth-w.offsetWidth)/2,I(F,K,$?0:.3,r.direction)},I=(E,$,F,D)=>{let w=0;const K=D==="horizontal"?E.scrollLeft:E.scrollTop,Q=F===0?1:Math.round(F*1e3/16);function le(){D==="horizontal"?E.scrollLeft+=($-K)/Q:E.scrollTop+=($-K)/Q,++w<Q&&_n(le)}le()},R=(E,$)=>{const F=At(r,E),D={};return D[`${e}__titles-item`]=!0,D.disabled=Fr(r,E),D.active=F===m.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),$&&($.class&&(D[`${$.class}`]=!0),$.disabled===!0&&(D.disabled=$.disabled)),D},x=(E,$)=>{const F={};if(d.value>0){const D=Math.abs(d.value/2);r.direction==="vertical"?(F["margin-top"]=`${D}px`,F["margin-bottom"]=`${D}px`):(F["margin-left"]=`${D}px`,F["margin-right"]=`${D}px`)}return $&&$.style&&Object.assign(F,$.style),F},z=(E,$)=>`${At(r,E)??$}`,y=(E,$)=>{const F=At(r,E),D={};D[`${e}__popup-item`]=!0,D.disabled=Fr(r,E),D.active=F===m.value,r.shape&&(D[`${r.shape}`]=!0);const w=Ar(r,E,$);return w&&w.disabled===!0&&(D.disabled=w.disabled),D},_=l.computed(()=>(r.data??[]).filter($=>Af(r,$)!==!1)),Z=(E,$)=>{const F=At(r,E);if(m.value==F)return;const D=()=>{m.value=F,r.scroll&&V($,!1),i("update:modelValue",F),i("change",E,$)};if(typeof r.beforeChange=="function"){const w=r.beforeChange(E,$);po(w)?w.then(K=>{K!==!1&&D()}).catch(()=>{D()}):w!==!1&&D()}else D()},B=(E,$)=>function(){Z(E,$)},k=(E,$)=>{Z(E,$),A(!1)},M=(E,$)=>function(){k(E,$)},P=E=>{if(!Array.isArray(r.data)||!r.scroll)return;const $=r.data.findIndex(F=>At(r,F)===m.value);$!==-1&&V($,E)};l.watch(()=>r.data,()=>{setTimeout(P,0)}),l.onMounted(()=>{P(!0)});const G=(E,$)=>{if(a.item)return a.item({item:E,index:$});const F=Ar(r,E,$),D=[];if(a.text){const le=a.text({item:E,index:$});D.push(le)}else{const le=[];if(F?.doit===!0||Mf(r,E)){const W={class:[`${e}__titles-item-tip`,"doit"]},X=l.h("view",W);le.push(X)}const U=F?.num??Lf(r,E);if(U){let W="";const X=Te(U);X>=100?W="99+":W=`${X}`;const O={class:[`${e}__titles-item-tip`,"num"]},H=l.h("view",O,[W]);le.push(H)}const Y={class:`${e}__titles-item-text`};le.push(Rr(r,E));const N=l.h("view",Y,le);D.push(N)}const w={class:`${e}__titles-item-line`},K=l.h("view",w);D.push(K);const Q={ref:j($),class:R(E,F),style:x(E,F),key:z(E,$),onClick:B(E,$)};return l.h("view",Q,D)},J=()=>{const E=a.default?a.default():[];if(E.length===0)for(let F=0;F<_.value.length;F++){const D=_.value[F],w=G(D,F);E.push(w)}const $={ref:C,class:s.value,style:c.value};return l.h("view",$,E)},L=()=>{let E=null;a.navigation?E=a.navigation():E=l.h(o);const $={class:`${e}__navigation`,onClick:h};return l.h("view",$,[E])},ne=()=>{const E=[];for(let F=0;F<_.value.length;F++){const D=_.value[F];let w=null;a.popupItem?w=a.popupItem({item:D,index:F}):w=Rr(r,D);const K={class:y(D,F),key:z(D,F),onClick:M(D,F)},Q=l.h("view",K,[w]);E.push(Q)}const $={class:b.value,style:v.value};return l.h("view",$,E)};return()=>{const E=[],$=J();if(E.push($),r.showQuickNavigation){const D=L();E.push(D);const w=ne();E.push(w)}const F={class:u.value};return l.h("view",F,E)}}}}const{create:_f,componentName:qf,scope:Pf}=ie("tabs-bar"),Vl=_f(Bf(qf,Pf,bf,!1)),Mr=Symbol("TabsStatesKey"),jf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Lr=10;function Br(e,t){return e>t&&e>Lr?"horizontal":t>e&&t>Lr?"vertical":""}function Mt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Lt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Br(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function zf(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),c=l.ref(0),d=l.ref(""),m=()=>d.value==="vertical",b=()=>d.value==="horizontal",v=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const T=h.touches[0];i.value=T.clientX-e.value,u.value=T.clientY-t.value,r.value=T.clientX,a.value=T.clientY}else{const C=h;i.value=C.clientX-e.value,u.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),n.value=Date.now()-o.value,d.value||(d.value=Br(s.value,c.value))},start:h=>{if(v(),h.touches){const T=h.touches[0];e.value=T.clientX,t.value=T.clientY}else{const C=h;e.value=C.clientX,t.value=C.clientY}o.value=Date.now()},reset:v,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:m,isHorizontal:b}}const Hf=15,Kf=300,Wf=200;function Yf(e,t,o=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*o}function _r(e,t=0,o,n,r=Wf){o==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}let Uf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(t,o,n,r=1){this.onStart=t,this.onMove=o,this.onEnd=n,this.momentumReduceRatio=r,this.isTouch=Mt()}open(t){this.el=t;const o=Lt(),n=(r,a,i)=>{const u={delta:r,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;o.start(r),this.transitionEndTrigger=()=>{t.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,t.removeEventListener("transitionend",this.transitionend),t.addEventListener("transitionend",this.transitionend),t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;o.move(r);let a=0;if(this.direction==="horizontal"){if(o.isVertical())return;a=o.state.deltaX}else{if(o.isHorizontal())return;a=o.state.deltaY}n(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;t.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}r=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}r=o.state.deltaY}const a=o.state.duration;a<Kf&&Math.abs(r)>Hf?(r=Yf(r,a,this.momentumReduceRatio),n(r,this.direction,"end")):n(r,this.direction,"end")},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.transitionend&&t.addEventListener("transitionend",this.transitionend),this.touchstart&&t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&t.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Gf(e,t,o,n=1){return new Uf(e,t,o,n)}function Xf(e,t,o=!1){return{props:{...jf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),u={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:V=>{const I={name:V};u.current.value===V&&(I.loaded=!0),i.value.push(I),l.triggerRef(i)},remove:V=>{const I=i.value.findIndex(R=>R.name===V);I!==-1&&i.value.splice(I,1)},isLoaded:V=>{if(!n.lazy)return!0;const I=i.value.findIndex(R=>R.name===V);return I!==-1?u.current.value?i.value[I].loaded??!1:I===0:!1}};l.provide(Mr,u);const s=V=>{const I=i.value.findIndex(R=>R.name===V);I!==-1&&(i.value[I].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([V,I])=>{u.current.value!==V&&(u.current.value=V??"",s(V??"")),u.direction.value!==I&&(u.direction.value=I)});const c=l.ref(null),d=l.ref(null),m=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const v=l.computed(()=>{const V={},I=i.value.length;if(I<=0)return V;const R=i.value.findIndex(x=>x.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(V.height=`${I*u.tabHeight.value}px`,R!==-1&&(V.transform=`translate(0, -${R*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(V.width=`${I*u.tabWidth.value}px`,R!==-1&&(V.transform=`translate(-${R*u.tabWidth.value}px, 0)`)),b&&(b=!1,V.transition="transform 0s ease"),V}),p={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=V=>{const I=i.value.length,R=i.value.findIndex(x=>x.name===u.current.value);p.moved=0,V.direction==="vertical"?(p.min=-1*(u.tabHeight.value*(I-1)+u.tabHeight.value/4),p.max=u.tabHeight.value/4,p.start=-R*u.tabHeight.value,p.itemDistance=u.tabHeight.value):(p.min=-1*(u.tabWidth.value*(I-1)+u.tabWidth.value/4),p.max=u.tabWidth.value/4,p.start=-R*u.tabWidth.value,p.itemDistance=u.tabWidth.value)},h=V=>{const I=d.value;if(!I)return;let R=p.start+V.delta;if(R>p.max?R=p.max:R<p.min&&(R=p.min),V.type==="move")_r(I,R,"move",V.direction,300);else if(V.type==="end"){let x=Math.floor(Math.abs(R)*1/p.itemDistance);const z=Math.abs(R)%p.itemDistance;p.start>R?z>=p.itemDistance*p.triggerAutoMoveRatio&&(x+=1):z>p.itemDistance-p.itemDistance*p.triggerAutoMoveRatio&&(x+=1),R=-1*x*p.itemDistance,_r(I,R,"end",V.direction,300),p.moved=R;const y=i.value[x].name;u.current.value=y??"",s(y??""),r("update:modelValue",y)}},A=()=>{},C=()=>{if(!c.value)return;const V=rn(c.value);u.tabWidth.value=V.width,u.tabHeight.value=V.height},T=Pe(C,120);let q=null,j=null;return l.onMounted(()=>{c.value&&(window.ResizeObserver&&(j=new window.ResizeObserver(T),j.observe(c.value)),C(),n.draggle&&(q=Gf(f,h,A),q.open(d.value)))}),l.onBeforeUnmount(()=>{j&&(j.disconnect(),j=null),q&&q.close()}),()=>{const V={class:`${e}__panes`,style:v.value,ref:d},I=l.h("view",V,[a?.default?.()]),R={class:m.value,ref:c};return l.h("view",R,[I])}}}}const{create:Zf,componentName:Qf,scope:Jf}=ie("tabs-container"),Rl=Zf(Xf(Qf,Jf,!1)),ed={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function td(e,t,o){return{props:{...ed},setup(n,{emit:r,slots:a}){const i=l.inject(Mr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const u=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=l.computed(()=>n.loaded!=null?ce(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},b=n.emptyIcon??o,v=l.h(b,m),p={class:`${e}__empty-text`},f=n.emptyText??"Loading",h=l.h("view",p,[f]),A={class:`${e}__empty`},C=l.h("view",A,[v,h]);c.push(C)}const d={class:`${e}`,style:u.value};return l.h("view",d,c)}}}}const{create:nd,componentName:ld,scope:od}=ie("tabs-pane"),Fl=nd(td(ld,od,Dl)),rd={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function ad(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function qr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Pr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function id(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Al(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function jr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function zr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Ml(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class sd{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=Ye(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function ud(){const e=l.getCurrentInstance();return new sd(e.proxy)}function cd(e,t,o,n){return{props:{...rd},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=ud(),c=l.ref([]),d=l.computed(()=>c.value.filter($=>id(r,$)!==!1)),m=l.ref(-1),b=()=>{const $=r.modelValue,F=d.value.findIndex(D=>qr(r,D)===$);m.value!==F&&(m.value=F,r.scroll&&ne(F))};l.watch([()=>r.modelValue,d],()=>{b()});const v=$=>m.value===$,p=$=>{if($<0&&$>=d.value.length)return!1;const F=d.value[$],w=(Ml(r,F,$)??{}).status??Al(r,F);return v($)||w},f=l.computed(()=>{const $={[u]:!0};return r.mode?$[`is-${r.mode}`]=!0:r.direction&&($[`is-${r.direction}`]=!0),r.scroll&&($["is-scroll"]=!0),$}),h=l.computed(()=>({})),A=($,F,D,w,K)=>{const Q={[`${u}__step`]:!0};return K&&(Q[`${K}`]=!0),Q[`${C.value}`]=!0,w&&(Q["is-doit"]=!0),$===m.value?Q["is-active"]=!0:F==="done"?Q["is-done"]=!0:F==="error"?Q["is-error"]=!0:F==="half"?Q["is-half"]=!0:D?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},C=l.computed(()=>{if(r.mode==="simple")return"start";let $=r.align;return $||(r.direction==="vertical"?$="start":$="center"),$}),T=($,F={})=>{const D={...F};return C.value==="start"&&$===d.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},q=($,F)=>{let D={};if(F<d.value.length-1){const w=F+1;p(F)&&p(w)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},j=$=>d.value.length-1===$,V=($,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>m.value||m.value===F)return;const D=m.value,w=F;m.value=F,r.scroll&&ne(F);const K=qr(r,$);i("update:modelValue",K);const Q={fromIndex:D,currentIndex:w,item:$,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,Q)},I=l.ref(!0),R=async($,F)=>{try{const D=await s.load("stesbar",$,F);Array.isArray(D)&&(c.value=D),I.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([$,F])=>{$&&R($,F)},{immediate:!0});const x=($,F,D,w,K)=>{let Q=null;if(a.icon)Q=a.icon({item:$,index:F,status:w});else if(w==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const Y=r.icon??o;Q=l.h(Y,U)}else{const U=D??`${F+1}`;Q=l.h("span",{},[U])}const le={class:"fox-steps-bar__icon",onClick:()=>{K||V($,F)}};return l.h("view",le,[Q])},z=($,F,D)=>{const w=l.h("i",{class:"fox-steps-bar__line-inner",style:q($,F)});return l.h("view",{class:"fox-steps-bar__line"},[w])},y=()=>{let $=null;if(a.markIcon)$=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const w=r.markIcon??n;$=l.h(w,D)}return l.h("view",{class:"fox-steps-bar__mark"},[$])},_=($,F,D,w,K)=>{const Q=[];if(!j(F)){const Y=z($,F);Q.push(Y)}const le=x($,F,D,w,K);Q.push(le);const U={class:"fox-steps-bar__head"};return l.h("view",U,Q)},Z=($,F,D,w)=>{let K=null;a.main?K=a.main({item:$,index:F,status:D}):K=ad(r,$);const Q={class:"fox-steps-bar__main",onClick:()=>{w||V($,F)}};return l.h("view",Q,[K])},B=($,F,D)=>{let w=null;if(a.sub){w=a.sub({item:$,index:F,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[w])}return null},k=($,F)=>{const D=Ml(r,$,F)??{},w=D.status??Al(r,$);let K=Pr(r,$);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const Q=D.label??zr(r,$),le=[],U=x($,F,Q,w,K);U&&le.push(U);const Y=Z($,F,w,K);if(Y&&le.push(Y),!j(F)){const ee=z($,F);ee&&le.push(ee)}const N=l.h("view",{class:"fox-steps-bar__head"},le),W=D.class,X=D.style??{};let O=jr(r,$);D.doit===!0&&(O=!0);const H={ref:L(F),class:A(F,w,K,O,W),style:T(F,X)};return l.h("view",H,[N])},M=($,F)=>{const D=Ml(r,$,F)??{},w=D.status??Al(r,$);let K=Pr(r,$);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const Q=D.label??zr(r,$),le=[],U=r.layout;for(let O of U)if(O==="head"){const H=_($,F,Q,w,K);le.push(H)}else if(O==="main"){const H=Z($,F,w,K);le.push(H)}else if(O==="sub"){const H=B($,F,w);le.push(H)}else if(O==="mark"){const H=y();le.push(H)}const Y=D.class,N=D.style??{};let W=jr(r,$);D.doit===!0&&(W=!0);const X={ref:L(F),class:A(F,w,K,W,Y),style:T(F,N)};return l.h("view",X,le)},P=l.ref(),G=l.ref([]),J=($,F)=>{G.value[F]=$},L=$=>F=>{J(F,$)},ne=($,F)=>{const D=P.value,w=G.value;if(!D||!w||!w[$])return;const K=w[$];let Q=0;r.direction==="vertical"?Q=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:Q=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,E(D,Q,.3,r.direction)},E=($,F,D,w)=>{let K=0;const Q=w==="horizontal"?$.scrollLeft:$.scrollTop,le=Math.round(D*1e3/16);function U(){w==="horizontal"?$.scrollLeft+=(F-Q)/le:$.scrollTop+=(F-Q)/le,++K<le&&_n(U)}U()};return()=>{const $=[];if(r.mode==="simple")for(let D=0;D<d.value.length;D++){const w=d.value[D],K=k(w,D);$.push(K)}else for(let D=0;D<d.value.length;D++){const w=d.value[D],K=M(w,D);$.push(K)}const F={ref:P,class:f.value,style:h.value};return l.h("view",F,$)}}}}const{componentName:fd,create:dd,scope:hd}=ie("steps-bar"),Ll=dd(cd(fd,hd,If,Rf)),gd=Symbol.for("InnerPageScopeKey"),md=Symbol.for("PageWrapperKey");function yd(e,t){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,n){l.provide(gd,!0);const r={};l.provide(md,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),u=s=>{i.value=s};return()=>{const c={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},d=["fox-dialog-item "];o.hideHeader&&d.push("hide-header"),o.class&&d.push(o.class),c.class=d.join(" ");const m={};return typeof n.slots.default=="function"&&(m.default=n.slots.default),l.h(S.ElDialog,c,m)}}}}const{create:pd}=ie("dialog-item"),Bl=pd(yd());let Bt=0;const Hr="fox-overflow-hidden",Kr=()=>ot?document.body:{classList:[]},bd=e=>[()=>{if(e())try{!Bt&&Kr().classList.add(Hr),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&Kr().classList.remove(Hr)}catch{}}],vd={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:wd,create:Sd}=ie("overlay"),xd=Sd({props:{...vd},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=bd(()=>e.lockScroll),r=l.computed(()=>({[wd]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,u=>{u?o():n()}),{classes:r,style:a,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Td(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const $n=Ue(xd,[["render",Td]]),Cd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Wr=2e3;let Yr=Wr;const $d=(e,t)=>({components:t,props:{...Cd},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==Wr&&(Yr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Yr,o.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{n("click-pop",f)},m=f=>{f.stopPropagation(),n("click-close-icon",f),n("update:visible",!1)},b=f=>{n("click-overlay",f),o.closeOnClickOverlay&&n("update:visible",!1)},v=f=>{n("opend",f)},p=f=>{n("closed",f)};return l.watch(()=>o.visible,f=>{o.visible?s():c()}),l.watch(()=>o.closeable,f=>{r.closed=f}),{...l.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:b,onOpened:v,onClosed:p}}}),{componentName:Ed,create:kd}=ie("popup"),Nd=kd($d(Ed,{FoxOverLay:$n,Close:$f}));function Id(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),u=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(u)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const _l=Ue(Nd,[["render",Id]]),{create:Od}=ie("toast"),Dd=Od({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,v=>{v&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const v=me(e.iconSize);return l.h(e.icon,{width:v,height:v,color:e.iconColor})},d=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Vd={key:1,class:"fox-toast-title"},Rd=["innerHTML"];function Fd(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Vd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Rd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const ql=Ue(Dd,[["render",Fd]]),Ad={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Md=(e,t,o)=>({props:{...Ad},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=Mo(),{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:n.background})),d=l.computed(()=>({background:n.inputBackground})),m=x=>{let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),a("update:modelValue",y,x),a("change",y,x)},b=l.ref({}),v=x=>{let y=x.target.value;s.active=!0,b.value=n.focusStyle,a("focus",y,x)},p=x=>{setTimeout(()=>{s.active=!1},0);let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),b.value={},a("blur",y,x)},f=x=>{a("update:modelValue","",x),a("change","",x),a("clear","")},h=l.computed(()=>String(n.modelValue).length>0),A=l.computed(()=>{const x={};return h.value||(x.display="none"),x}),C=()=>{a("search",n.modelValue)},T=x=>{a("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&C()},q=x=>{a("click-input",x)},j=x=>{a("click-left-icon",n.modelValue,x)},V=l.computed(()=>({textAlign:n.inputAlign})),I=l.ref(null);l.onMounted(()=>{n.autofocus&&I.value.focus()});const R=()=>{const x=[];if(r.leftin){const B={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},k=l.h("view",B,[r.leftin()]);x.push(k)}const z={ref:I,class:[`${e}__input-inner`],style:V.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:m,onFocus:v,onBlur:p,onkeyup:T},y=l.h("input",z);x.push(y);const _=[];if(n.clearable){const B={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:f},k=r?.clear?.()??n.clearIcon??o,M=l.h("view",B,[l.h(k)]);_.push(M)}if(r.rightin){const B={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},k=l.h("view",B,[r.rightin()]);_.push(k)}if(_.length>0){const B={class:`${e}__input-inner-right`},k=l.h("view",B,_);x.push(k)}const Z={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...b.value}};return l.h("view",Z,x)};return()=>{const x=[];if(n.label){const _={class:`${e}__search-label`},Z=l.h("span",_,[n.label]);x.push(Z)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Z=l.h("view",_,[r.leftout()]);x.push(Z)}const z=R();if(x.push(z),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Z=l.h("view",_,[r.rightout()]);x.push(Z)}const y={class:`${e}`,style:c.value};return l.h("view",y,x)}}}),{componentName:Ld,create:Bd,scope:_d}=ie("searchbar"),Pl=Bd(Md(Ld,_d,Ne.CircleClose)),qd=/scroll|auto|overlay/i,Ur=window;function Pd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function jd(e,t=Ur){let o=e;for(;o&&o!==t&&Pd(o);){const{overflowY:n}=window.getComputedStyle(o);if(qd.test(n))return o;o=o.parentNode}return t}function Gr(e,t=Ur){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=jd(e.value,t))}),o}const Xr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zd={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 Hd(e,t,o){return{props:{...zd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullText","loadText","loadMoreText"]),s=l.ref(),c=Gr(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),b=C=>C?C.offsetTop+b(C.offsetParent):0,v=()=>{let C=0,T=0,q="down";if(c.value==window){const j=Xr();s.value&&(C=b(s.value)+s.value.offsetHeight-j-window.innerHeight),T=j}else{const{scrollHeight:j,clientHeight:V,scrollTop:I}=c.value;C=j-V-I,T=I}return d.beforeScrollTop>T?q="up":q="down",d.beforeScrollTop=T,r("scroll-change",T),C<=n.threshold&&q=="down"},p=()=>{ao(()=>{if(!v()||!n.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",p,n.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",p,n.useCapture)};l.onMounted(()=>{f(),n.immediate&&p()}),l.onUnmounted(()=>{h()});const A=l.ref(!1);return l.onActivated(()=>{A.value&&(A.value=!1,f())}),l.onDeactivated(()=>{A.value=!0,h()}),l.watch(()=>n.modelValue,C=>{C||(d.isInfiniting=!1)}),()=>{const C={class:"fox-infinite__container"},T=l.h("view",C,[a?.default?.()]),q=[];if(d.isInfiniting){let R=a?.loading?.()??null;if(!R){let y=a?.loadingIcon?.()??null;if(!y){const B={class:["fox-infinite__bottom-box__img"]};y=l.h(o,B)}const _={class:"fox-infinite__bottom-box__text"},Z=l.h("view",_,[u.loadText.value]);R=[y,Z]}const x={class:"fox-infinite__bottom-box"},z=l.h("view",x,R);q.push(z)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const x={class:"fox-infinite__bottom-tips"};R=l.h("view",x,[u.loadMoreText.value]),q.push(R)}}const j={class:"fox-infinite__bottom"},V=l.h("view",j,q),I={class:m.value,ref:s};return l.h("view",I,[T,V])}}}}const{componentName:Kd,create:Wd,scope:Yd}=ie("infinite-loading"),jl=Wd(Hd(Kd,Yd,Dl)),Ud={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}},Gd=(e,t,o)=>({props:{...Ud},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Lt(),c=l.ref(),d=Gr(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=l.computed(()=>({[e]:!0})),v=l.computed(()=>{switch(m.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),p=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=l.computed(()=>{const I={};return n.headHeight!=50&&(I.height=De(n.headHeight)),I}),h=I=>{const R=+(n.pullDistance||n.headHeight);let x=I;return I>R&&(I<R*2?x=(I+R)/2:x=R+I/4),Math.round(x)},A=(I,R)=>{const x=+(n.pullDistance||n.headHeight);m.distance=I,R?m.status="loading":I===0?m.status="normal":I<x?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:I})},C=()=>m.status!=="loading"&&m.status!=="complete",T=()=>d.value==window?Xr()==0:d.value&&d.value.scrollTop==0,q=I=>{C()&&(T()?(s.start(I),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},j=I=>{C()&&m.moving&&(s.move(I),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(I.cancelable&&I.preventDefault(),A(h(s.state.deltaY))))},V=()=>{m.moving=!1,m.isPullRefresh&&C()&&s.state.deltaY&&(m.status==="loosing"?(A(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):A(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>n.modelValue,I=>{I?A(+n.headHeight,!0):A(0)}),()=>{const I=[];let R=null;if(m.status==="loading"){if(R=a?.loading?.()??null,!R){const M={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,M)}}else m.status==="pulling"?R=a?.pulling?.()??null:m.status==="loosing"&&(R=a?.loosing?.()??null);R&&I.push(R);const x={class:["fox-pull-refresh-container-topbox-text"]},z=l.h("dive",x,[v.value]);I.push(z);const y={class:["fox-pull-refresh-container-topbox"],style:f.value},_=l.h("div",y,I),Z={class:"fox-pull-refresh-container",style:p.value},B=l.h("div",Z,[_,a?.default?.()]),k={ref:c,class:b.value};return Mt()?Object.assign(k,{onTouchstart:q,onTouchmove:j,onTouchend:V}):Object.assign(k,{onMousedown:q,onMousemove:j,onMouseup:V}),l.h("div",k,[B])}}}),{componentName:Xd,create:Zd,scope:Qd}=ie("pull-refresh"),zl=Zd(Gd(Xd,Qd,Dl));function Jd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=l.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let d=null;if(n.mark)d=n.mark()[0];else{const f={class:i.value,style:u.value};d=l.h(o.icon??"div",f)}const m={class:s.value,style:c.value},b=n.default?n.default():[],v=l.h("div",m,b),p={class:a.value};return o.textPosition==="right"?l.h("div",p,[d,v]):l.h("div",p,[v,d])}}}}const{componentName:eh,create:th}=ie("indicator"),Hl=th(Jd(eh));function nh(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const lh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function oh(e,t,o,n=!1){return{props:{...lh},emits:["click"],setup(r,a){const i=l.ref(null),u=l.computed(()=>{const T={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(T[`${e}--${r.type??"default"}`]=!0),r.size&&(T[`${e}--${r.size}`]=!0),T}),s=l.computed(()=>{const T={},q=r.textColor??r.color;return q&&(T.color=q),T}),c=(T,q)=>{let j=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const V=r.highlightFilter;if(T.indexOf(V)!==-1){const R=T.replace(new RegExp(V,"g"),`<span>${V}</span>`);q.innerHTML=R,q.class["is-highlight"]=!0,j=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const V=r.highlightFilter(T);V&&(q.innerHTML=V,q.class["is-highlight"]=!0,j=l.h(r.tag,q))}return j},d=T=>{a.emit("click",T)};let m="";const b=()=>{const T=i.value;if(!T)return;const q=T.clientWidth;nh(T,j=>{const V=T.innerHTML??"";he(V)||j<q||(m?o?.show(T,V,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show(T,V,{type:"text",showArrow:r.showArrow},!0)??"")})},v=()=>{m&&o?.hide(m)};let p=null;const f=T=>{p||(p=setTimeout(()=>{b(),p=null},r.showAfter??0))},h=T=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{v()},r.hideAfter??0)},A=()=>{const T=i.value;T&&(T.addEventListener("mouseover",f),T.addEventListener("mouseleave",h))},C=()=>{const T=i.value;T&&(T.removeEventListener("mouseover",f),T.removeEventListener("mouseleave",h))};return l.onMounted(()=>{!ce(r.showOverflowTooltip)||!o||A()}),l.onBeforeUnmount(()=>{!ce(r.showOverflowTooltip)||!o||C()}),()=>{const T={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ce(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const x=R[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=Te(r.digits),y=Te(r.decimalLength),_=ce(r.autoPadding);let Z=`${R[0].children}`,B=Z.split("").reverse().join("");B=jt(B,y,_,z,r.separator),Z=B.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(Z,T)),q||(T.innerHTML=Z,q=l.h(r.tag,T))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const x=R[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=`${R[0].children}`;q=c(z,T),q||(T.innerHTML=z,q=l.h(r.tag,T))}}}q||(q=l.h(r.tag,T,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let V=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const x={},z=r.color;z&&(x.color=z);const y={class:R,style:x};V=l.h("view",y,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const x={},z=r.color;z&&(x.color=z);const y={class:R,style:x};V=l.h("view",y,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const x={},z=r.color;z&&(x["background-color"]=z);const y={class:R,style:x};V=l.h("view",y)}const I={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",I,[V,q])}}}}const{componentName:rh,create:ah,scope:ih}=ie("text"),Kl=ah(oh(rh,ih,Le,!1)),sh={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:Ne.ArrowUp}};function uh(e,t,o){return{props:{...sh},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const m={[`${e}`]:!0};return n.disabled?m[`${e}__disabled`]=!0:m[`${e}__${n.type}`]=!0,m}),i=ge(n,"modelValue"),u=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),s=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(u.value){const f={class:s.value},h=l.h("span",f,[u.value]);m.push(h)}const b={class:c.value},v=o(n.icon,b);return v&&m.push(v),l.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:ch,create:fh,scope:dh}=ie("more-button"),Wl=fh(uh(ch,dh,(e,t)=>(e=e??Ne.ArrowUp,l.h(S.ElIcon,t,{default:()=>[l.h(e)]}))));function hh(e){e.stopPropagation()}let gh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Mt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Lt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),hh(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function mh(e,t){return new gh(e,t)}const yh={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},ph=(e,t,o,n=!1)=>({props:{...yh},emits:["click"],setup(r,{slots:a,emit:i}){const u=l.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=l.computed(()=>{const C=[`${e}`];return r.customClass&&C.push(r.customClass),C}),c=l.computed(()=>{const C={};return he(u.top)||(C.top=u.top),he(u.right)||(C.right=u.right),he(u.bottom)||(C.bottom=u.bottom),he(u.left)||(C.left=u.left),he(r.width)||(C.width=r.width),he(r.height)||(C.height=r.height),he(r.color)||(C.color=r.color),he(r.background)||(C.background=r.background),he(r.borderRadius)||(C["border-radius"]=r.borderRadius),he(r.zIndex)||(C["z-index"]=r.zIndex),C}),d=l.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},b=l.ref(null),v=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},p={x:0,y:0},A=mh(C=>{if(!b.value)return;const T=b.value;v(),u.left=T.offsetLeft,u.top=T.offsetTop,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`,T.style.right=null,T.style.bottom=null,p.x=u.left,p.y=u.top},C=>{if(!b.value)return;const T=b.value;v(),u.left=p.x+C.x,u.top=p.y+C.y,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&b.value){const C=[b.value];A.open(C)}}),l.onBeforeUnmount(()=>{r.draggable&&b.value&&A.close()}),()=>{let C=[];const T=typeof a.default=="function"?a.default():[];if(T&&T.length>0)C=T;else{const j=l.h(o,{class:d.value});C.push(j)}const q={ref:j=>{b.value=j},class:s.value,style:c.value,onClick:m};return l.h("view",q,C)}}}),{componentName:bh,create:vh,scope:wh}=ie("floating-button"),Yl=vh(ph(bh,wh,gf,!1));function Sh(e){return e===window}const Zr=e=>{const t=l.unref(e);if(Sh(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:xh,create:Th}=ie("tour"),Ch=Th({components:{Close:Ne.Close,ElPopover:S.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=xh,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:p,maskWidth:f,maskHeight:h}=e,{width:A,height:C,left:T,top:q}=r.value,j=e.steps[n.active].offset??p,V=[T+A/2,q+C/2],I=Number(f||A),R=Number(h||C);return{width:`${I+ +j.left+j.right}px`,height:`${R+j.top+j.bottom}px`,top:`${V[1]-R/2-+j.top}px`,left:`${V[0]-I/2-+j.left}px`}}),u=p=>{p=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,d()}),t("change",n.active)},s=p=>p.popoverWidth??e.width,c=p=>p.location??e.location,d=()=>{const p=document.querySelector(`${e.steps[n.active].target}`),f=Zr(p);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},m=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&m()},v=(p,f=0)=>{p&&d(),e.steps,n.active=f,n.showTour=p,n.showPopup=p};return l.onMounted(()=>{v(e.modelValue,e.current)}),l.watch(()=>e.modelValue,p=>{v(p)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:b}}}),$h={key:0,class:"fox-tour__content"},Eh={key:0,class:"fox-tour__content-top"},kh={class:"fox-tour__content-inner"},Nh={class:"fox-tour__content-bottom"},Ih={class:"fox-tour__content-bottom-init"},Oh={class:"fox-tour__content-bottom-operate"},Dh={key:1,class:"fox-tour__content fox-tour__content-tile"},Vh={class:"fox-tour__content-inner"};function Rh(e,t,o,n,r,a){const i=l.resolveComponent("Close"),u=l.resolveComponent("fox-button"),s=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,d)=>(l.openBlock(),l.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(l.openBlock(),l.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",$h,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Eh,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...m)=>e.close&&e.close(...m))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",kh,l.toDisplayString(c.content),1),l.createElementVNode("div",Nh,[l.createElementVNode("div",Ih,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Oh,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=m=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=m=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Dh,[l.createElementVNode("div",Vh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ul=Ue(Ch,[["render",Rh]]),Be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Fh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Mt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Lt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Qr(e,t){return new Fh(e,t)}const Jr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let xt=[];const ea=e=>{const t=e;t.key==="Escape"&&xt.forEach(o=>o(t))},Ah=e=>{l.onMounted(()=>{xt.length===0&&document.addEventListener("keydown",ea),Jr&&xt.push(e)}),l.onBeforeUnmount(()=>{xt=xt.filter(t=>t!==e),xt.length===0&&Jr&&document.removeEventListener("keydown",ea)})},Gl="fox-focus-trap.focus-after-trapped",Xl="fox-focus-trap.focus-after-released",Mh="fox-focus-trap.focusout-prevented",ta={cancelable:!0,bubbles:!1},Lh={cancelable:!0,bubbles:!1},na="foxFocusAfterTrapped",la="foxFocusAfterReleased",Bh=Symbol("foxFocusTrap"),Zl=l.ref(),En=l.ref(0),Ql=l.ref(0);let kn=0;const oa=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},_h=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ra=(e,t)=>{for(const o of e)if(!_h(o,t))return o},qh=e=>{const t=oa(e),o=ra(t,e),n=ra(t.reverse(),e);return[o,n]},Ph=e=>e instanceof HTMLInputElement&&"select"in e,st=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Ql.value=window.performance.now(),e!==o&&Ph(e)&&t&&e.select()}};function aa(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const jh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=aa(e,n),e.unshift(n)},remove:n=>{e=aa(e,n),e[0]?.resume?.()}}},zh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(st(n,t),document.activeElement!==o)return},ia=jh(),Hh=()=>En.value>Ql.value,Nn=()=>{Zl.value="pointer",En.value=window.performance.now()},sa=()=>{Zl.value="keyboard",En.value=window.performance.now()},Kh=()=>(l.onMounted(()=>{kn===0&&(document.addEventListener("mousedown",Nn),document.addEventListener("touchstart",Nn),document.addEventListener("keydown",sa)),kn++}),l.onBeforeUnmount(()=>{kn--,kn<=0&&(document.removeEventListener("mousedown",Nn),document.removeEventListener("touchstart",Nn),document.removeEventListener("keydown",sa))}),{focusReason:Zl,lastUserFocusTimestamp:En,lastAutomatedFocusTimestamp:Ql}),In=e=>new CustomEvent(Mh,{...Lh,detail:e}),{create:Wh}=ie("focus-trap"),Yh=Wh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[na,la,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Kh();Ah(f=>{ce(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:h,altKey:A,ctrlKey:C,metaKey:T,currentTarget:q,shiftKey:j}=f,{loop:V}=e,I=h==="Tab"&&!A&&!C&&!T,R=document.activeElement;if(I&&R){const x=q,[z,y]=qh(x);if(z&&y){if(!j&&R===y){const Z=In({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),V&&st(z,!0))}else if(j&&[z,x].includes(R)){const Z=In({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),V&&st(y,!0))}}else if(R===x){const Z=In({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||f.preventDefault()}}};l.provide(Bh,{focusTrapRef:n,onKeydown:s}),l.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),l.watch([n],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",m),f.addEventListener("focusout",b)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",b))});const c=f=>{o(na,f)},d=f=>o(la,f),m=f=>{const h=l.unref(n);if(!h)return;const A=f.target,C=f.relatedTarget,T=A&&h.contains(A);ce(e.trapped)||C&&h.contains(C)||(r=C),T&&o("focusin",f),!u.paused&&ce(e.trapped)&&(T?a=A:st(a,!0))},b=f=>{const h=l.unref(n);if(!(u.paused||!h))if(!e.escape&&ce(e.trapped)){const A=f.relatedTarget;!Hn(A)&&!h.contains(A)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const C=In({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||st(a,!0)}},0)}else{const A=f.target;A&&h.contains(A)||o("focusout",f)}};async function v(){await l.nextTick();const f=l.unref(n);if(f){ia.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const C=new Event(Gl,ta);f.addEventListener(Gl,c),f.dispatchEvent(C),C.defaultPrevented||l.nextTick(()=>{let T=e.focusStartEl;yo(T)||(st(T),document.activeElement!==T&&(T="first")),T==="first"&&zh(oa(f),!0),(document.activeElement===h||T==="container")&&st(f)})}}}function p(){const f=l.unref(n);if(f){f.removeEventListener(Gl,c);const h=new CustomEvent(Xl,{...ta,detail:{focusReason:i.value}});f.addEventListener(Xl,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Hh())&&st(r??document.body,!0),f.removeEventListener(Xl,c),ia.remove(u)}}return l.onMounted(()=>{ce(e.trapped)&&v(),l.watch(()=>e.trapped,f=>{ce(f)?v():p()})}),l.onBeforeUnmount(()=>{ce(e.trapped)&&p()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:Uh,create:Gh}=ie("floating-window"),Xh=Symbol.for("InnerPageScopeKey"),Zh=Symbol.for("PageWrapperKey"),Qh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Jh=Gh({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:Yh},props:{...Qh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Uh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,O=>{n.value=O});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),u=l.ref(e.top),s=l.ref(e.right),c=l.ref(e.bottom),d=l.computed(()=>{const O=["fox-floating-window"];return e.customClass&&O.push(e.customClass),O}),m=l.computed(()=>{const O={};return dt(i.value)?O.left="auto":O.left=Be(i.value),dt(u.value)?O.top="auto":O.top=Be(u.value),dt(s.value)?O.right="auto":O.right=Be(s.value),dt(c.value)?O.bottom="auto":O.bottom=Be(c.value),dt(e.zIndex)||(O["z-index"]=Be(e.zIndex)),dt(V.value)||(O.height=V.value),dt(I.value)||(O.width=I.value),O}),b=l.computed(()=>e.closeIcon??Ne.Close),v=l.computed(()=>e.collapseIcon??Ne.ArrowUp),p=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),h=l.computed(()=>e.expandText??e.title??"展开"),A=l.computed(()=>({[`${o}__collapse-text`]:!0})),C=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),T=l.ref(),q=l.ref(null),j=l.ref(null),V=l.computed(()=>Be(e.height)||""),I=l.computed(()=>Be(e.width)||""),R=l.ref(ce(e.collapse)),x=(O,H=!0)=>{R.value!==O&&(R.value=O,O?$():F(),t("update:collapse",O),O&&typeof _.onHide=="function"?_.onHide():!O&&typeof _.onShow=="function"&&_.onShow())};l.watch(()=>e.collapse,O=>{x(O)});const z=()=>{y()},y=O=>{O=O??!R.value,x(O)};l.provide(Xh,!0);const _={setCollapse:x,setFixedNavVisible:O=>{L.value=O}};l.provide(Zh,_);const Z=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},B=l.ref(null),k=l.computed(()=>!e.fixedNavTeleport),M=l.computed(()=>{const O=["fox-floating-window__fixednav"];return e.expandClass&&O.push(e.expandClass),e.collapsePosition==="left"?O.push("is-left"):e.collapsePosition==="right"&&O.push("is-right"),O}),P=l.ref(""),G=l.computed(()=>{const O={};return P.value?O.top=P.value:e.collapseTop&&(O.top=e.collapseTop),O}),J=l.ref(R.value),L=l.computed({set:O=>{J.value=O},get:()=>n.value===!1?!1:J.value});let ne=null;const E=()=>{typeof ne=="function"&&(ne(),ne=null)},$=()=>{B.value&&B.value.classList.add("slide-in"),L.value=!0,ne=()=>{B.value&&B.value.classList.remove("slide-in")}},F=()=>{B.value&&B.value.classList.add("slide-out"),ne=()=>{B.value&&B.value.classList.remove("slide-out"),L.value=!1}},D=()=>{i.value=null,u.value=null,s.value=null,c.value=null},w={x:0,y:0},le=Qr(O=>{if(!T.value)return;const H=T.value;if(D(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,w.x=i.value,w.y=u.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=ee-(H.offsetTop+H.offsetHeight),w.x=i.value,w.y=c.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;s.value=ee-(H.offsetLeft+H.offsetWidth),c.value=oe-(H.offsetTop+H.offsetHeight),w.x=s.value,w.y=c.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;s.value=ee-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,w.x=s.value,w.y=u.value}},O=>{if(!T.value)return;const H=T.value;D(),e.origin==="left-top"?(i.value=w.x+O.x,u.value=w.y+O.y,H.style.left=Be(i.value),H.style.top=Be(u.value)):e.origin==="left-bottom"?(i.value=w.x+O.x,c.value=w.y-O.y,H.style.left=Be(i.value),H.style.bottom=Be(c.value)):e.origin==="right-bottom"?(s.value=w.x-O.x,c.value=w.y-O.y,H.style.right=Be(s.value),H.style.bottom=Be(c.value)):(s.value=w.x-O.x,u.value=w.y+O.y,H.style.right=Be(s.value),H.style.top=Be(u.value))}),U={x:0,y:0},W=Qr(O=>{B.value&&(U.x=B.value.offsetLeft,U.y=B.value.offsetTop)},O=>{if(!B.value)return;const H=U.y+O.y;P.value=`${H}px`}),X=()=>{if(T.value){const O=T.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=O}};return l.onMounted(()=>{if(e.draggable&&T.value){const O=[];q.value&&O.push(q.value),e.footerDraggable&&(X(),j.value&&O.push(j.value)),le.open(O)}e.collapse===!0&&x(e.collapse,!1),B.value&&W.open(B.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&le.close(),B.value&&W.close()}),{classes:d,styles:m,isShow:a,closeIcon:b,onClose:Z,dialogRef:T,headerRef:q,onClickToggle:z,collapseIcon:v,collapseText:p,collapseTextClasses:A,collapseIconClasses:C,expandIcon:f,expandText:h,isShowFixedNav:L,fixedNavRef:B,fixedNavClasses:M,fixedNavStyles:G,onAnimationEnd:E,teleportDisabled:r,fixedNavTeleportDisabled:k}}}),eg={ref:"headerRef",class:"fox-floating-window__header"},tg={class:"fox-floating-window__title"},ng={class:"fox-floating-window__tools"},lg={class:"fox-floating-window__body"},og={class:"fox-floating-window__fixednav__text"};function rg(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),u=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",eg,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",tg,l.toDisplayString(e.title),1),l.createElementVNode("div",ng,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",lg,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",og,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Jl=Ue(Jh,[["render",rg]]),ag={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function ig(e,t,o=!1){return{props:{...ag},emits:["update:visible"],setup(n,{emit:r,slots:a,expose:i}){const u=l.ref({top:null,right:null,bottom:null,left:null}),s=l.ref(0),c=l.ref(0),d=l.ref(0),m=l.ref(0),b=l.ref(n.placement),v=l.ref(!1),p=l.ref(!1),f=l.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,A=(L,ne,E,$,F,D,w,K=!0)=>{const Q=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,U=L.split("-");let Y=[];K?U[0]==="top"?Y=["top","bottom","right","left"]:U[0]==="bottom"?Y=["bottom","top","right","left"]:U[0]==="left"?Y=["left","top","bottom","right"]:U[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[L[0]];const N={top:null,right:null,bottom:null,left:null},W=[];for(let X=0;X<Y.length;X++){const O=Y[X];if(W[0]=O,U[1]&&(W[1]=U[1]),O==="top"){const H=E-w-n.arrowSize/2-n.offset;if(H>=0){N.top=H;let ee=0;U[1]==="start"?ee=ne:U[1]==="end"?ee=ne+$-D:ee=ne+$/2-D/2;const oe=Q-ee-D;oe<0?(ee+=oe,T.value=-oe):T.value=0,N.left=ee<0?0:ee;break}}else if(O==="bottom"){const H=E+F+n.arrowSize/2+n.offset;if(H+w<=le){N.top=H;let ee=0;U[1]==="start"?ee=ne:U[1]==="end"?ee=ne+$-D:ee=ne+$/2-D/2;const oe=Q-ee-D;oe<0?(ee+=oe,T.value=-oe):T.value=0,N.left=ee<0?0:ee;break}}else if(O==="left"){const H=ne-D-n.arrowSize/2-n.offset;if(H>=0){N.left=H;let ee=0;U[1]==="start"?ee=E:U[1]==="end"?ee=E+F-w:ee=E+F/2-w/2,N.top=ee<0?0:ee;break}}else if(O==="right"){const H=ne+$+n.arrowSize/2+n.offset;if(H+D<=Q){N.left=H;let ee=0;U[1]==="start"?ee=E:U[1]==="end"?ee=E+F-w:ee=E+F/2-w/2,N.top=ee<0?0:ee;break}}}return{bestPlacement:W.join("-"),bestInsetRect:N}},C=()=>{const L=n.visible,ne=n.autoFit;if(!ot||L===!1)return;if(n.reference){const w=h(),K=rl(w);s.value=K.x,c.value=K.y,d.value=w.offsetWidth,m.value=w.offsetHeight}else n.referenceInset&&(s.value=n.referenceInset.left,c.value=n.referenceInset.top,d.value=n.referenceInset.right-n.referenceInset.left,m.value=n.referenceInset.bottom-n.referenceInset.top);const E=f.value.offsetWidth,$=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:D}=A(n.placement,s.value,c.value,d.value,m.value,E,$,ne);b.value=F,u.value=D},T=l.ref(0),q=Pe(()=>{C()},10),j=l.ref(n.visible);l.watch([()=>n.visible],([L])=>{j.value=L,L?(v.value=L,setTimeout(()=>{C(),p.value=!0},0)):p.value=!1});const V=l.computed(()=>j.value&&I.value),I=l.ref(!0),R=Pe(L=>{const ne=L[0];ne&&(I.value=ne.isIntersecting)},10),x=new IntersectionObserver(R);l.watch([()=>n.reference,()=>n.referenceInset],([L,ne],[E,$])=>{!L&&!ne||(setTimeout(()=>{C()},0),n.autoFit&&(E&&(Ot.unwatch(E,q),x.unobserve(E)),L&&(Ot.watch(L,q),x.observe(L))))},{immediate:!0}),l.onBeforeUnmount(()=>{n.reference&&(Ot.unwatch(n.reference,q),x.unobserve(n.reference),x.disconnect())});const z=l.computed(()=>{const L={[e]:!0};return b.value.startsWith("top")?L["is-top"]=!0:b.value.startsWith("right")?L["is-right"]=!0:b.value.startsWith("bottom")?L["is-bottom"]=!0:b.value.startsWith("left")&&(L["is-left"]=!0),L[`is-${n.effect}`]=!0,!p.value&&V.value&&(L["is-opacity"]=!0),p.value&&V.value&&(L["is-show"]=!0),V.value||(L["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(L[`${n.customClass}`]=!0),L}),y=l.computed(()=>{const L={};return u.value.top!==null&&(L.top=`${u.value.top}px`),u.value.right!==null&&(L.right=`${u.value.right}px`),u.value.bottom!==null&&(L.bottom=`${u.value.bottom}px`),u.value.left!==null&&(L.left=`${u.value.left}px`),n.width&&(L.width=n.width),n.zIndex&&(L["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(L,n.customStyle),L}),_=()=>{j.value=!1,r("update:visible",!1)},Z=()=>{if(!n.showOverlay)return null;const L={class:`${e}__overlay`,onClick:_};return l.h("div",L)},B=()=>{let L=null;return a.title?L=l.h("div",{class:`${e}__title`},{default:a.title}):n.title&&(L=l.h("div",{class:`${e}__title`},[n.title])),L},k=l.computed(()=>({[`${e}__arrow`]:!0})),M=l.computed(()=>{const L={};return n.showArrow?(L.width=`${n.arrowSize}px`,L.height=`${n.arrowSize}px`,b.value==="top"?(L.left="50%",L.bottom="0",L.transform="translate(-50%, 50%)"):b.value==="top-start"?(L.left=`${n.arrowOffset+T.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):b.value==="top-end"?(L.right=`${n.arrowOffset-T.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):b.value==="right"?(L.left="0",L.top="50%",L.transform="translate(-50%, -50%)"):b.value==="right-start"?(L.left="0",L.top=`${n.arrowOffset}px`,L.transform="translate(-50%, 50%)"):b.value==="right-end"?(L.left="0",L.bottom=`-${n.arrowOffset}px`,L.transform="translate(-50%, 50%)"):b.value==="bottom"?(L.left="50%",L.top="0",L.transform="translate(-50%, -50%)"):b.value==="bottom-start"?(L.left=`${n.arrowOffset+T.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):b.value==="bottom-end"?(L.right=`${n.arrowOffset-T.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):b.value==="left"?(L.right="0",L.top="50%",L.transform="translate(50%, -50%)"):b.value==="left-start"?(L.right="0",L.top=`${n.arrowOffset}px`,L.transform="translate(50%, -50%)"):b.value==="left-end"&&(L.right="0",L.bottom=`-${n.arrowOffset}px`,L.transform="translate(50%, -50%)"),L):{display:"none"}}),P=()=>{const L={class:k.value,style:M.value};return l.h("div",L)},G=()=>{j.value===!1&&(v.value=!1)},J=L=>{if(!f.value||j.value===!1)return;const{relatedTarget:ne}=L;f.value.contains(ne)||(j.value=!1,r("update:visible",!1))};return i({doLayout:C}),()=>{if(!v.value)return null;const L=[],ne=Z();ne&&L.push(ne);const E=[],$=B();if($&&E.push($),a.default){const K=a.default();E.push(K)}const F=P();F&&E.push(F);const D={ref:f,class:z.value,style:y.value,onAnimationend:G};n.leaveHide&&(D.onMouseleave=J);const w=l.h("div",D,{default:()=>E});return L.push(w),L}}}}const{componentName:sg,create:ug,scope:cg}=ie("popover-dialog"),eo=ug(ig(sg,cg,!1));function fg(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Fo(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{create:dg}=ie("domain-provider"),to=dg(fg()),hg={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 gg(e,t){return{inheritAttrs:!1,props:hg,setup(o,{slots:n}){if(ot&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,v)=>{if(d===null){a.set(b,{visible:null,callback:v});return}r.has(b)&&d.unobserve(b),r.set(b,{visible:null,callback:v}),d.observe(b)},u=b=>{if(d===null){a.delete(b);return}r.has(b)&&(r.delete(b),d.unobserve(b))};let s=o.initialVisibleObserverSize;mi({acquire:()=>{const b=s>0;return s--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(b,v,p)=>{d=new IntersectionObserver(f=>{for(let h of f){let A=!1;h.intersectionRatio>0&&(A=!0);const C=r.get(h.target);if(C)try{if(o.loadPolicy==="lazy"&&!A&&C.visible!==null)return;C.visible=A,C.callback(A)}catch(T){console.error(T)}}},{root:b,rootMargin:v,threshold:p}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([b,v])=>{if(v||!b||d)return;let p=null;typeof b=="string"?p=document.querySelector(b):p=b,p&&m(p,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:mg}=ie("rolling-provider"),no=mg(gg()),yg=[Zn,Jn,el,tl,ol,$e,sl,ul,Dt,cl,fl,dl,hl,gl,ml,yl,bl,vl,wl,Sl,Cn,Cl,$l,El,kl,Nl,Il,Ol,Vl,Rl,Fl,Ll,Bl,$n,_l,ql,Pl,jl,zl,Rt,hn,Hl,Kl,Wl,Yl,Ul,Jl,eo,to,no],pg=new Ua(yg,[Za],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(g,"FoxAnchor",{enumerable:!0,get:()=>S.ElAnchor}),Object.defineProperty(g,"FoxAnchorLink",{enumerable:!0,get:()=>S.ElAnchorLink}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(g,"FoxCountdown",{enumerable:!0,get:()=>S.ElCountdown}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(g,"FoxInputTag",{enumerable:!0,get:()=>S.ElInputTag}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(g,"FoxMention",{enumerable:!0,get:()=>S.ElMention}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(g,"FoxMessage",{enumerable:!0,get:()=>S.ElMessage}),Object.defineProperty(g,"FoxMessageBox",{enumerable:!0,get:()=>S.ElMessageBox}),Object.defineProperty(g,"FoxNotification",{enumerable:!0,get:()=>S.ElNotification}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(g,"FoxSegmented",{enumerable:!0,get:()=>S.ElSegmented}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(g,"FoxStatistic",{enumerable:!0,get:()=>S.ElStatistic}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),Object.defineProperty(g,"FoxWatermark",{enumerable:!0,get:()=>S.ElWatermark}),g.AutocompleteItem=vl,g.Broadcast=Wn,g.BroadcastKey=we,g.CascaderItem=bl,g.CheckboxItem=El,g.Content=tl,g.DataItemsKey=mt,g.DateItem=dl,g.DateUtils=ze,g.DialogItem=Bl,g.Domain=Zt,g.DomainKey=_e,g.DomainProvider=to,g.FloatingButton=Yl,g.FloatingWindow=Jl,g.FooterBar=el,g.FoxAutocompleteItem=vl,g.FoxCascaderItem=bl,g.FoxCheckboxItem=El,g.FoxContent=tl,g.FoxDateItem=dl,g.FoxDialogItem=Bl,g.FoxDomainProvider=to,g.FoxFloatingButton=Yl,g.FoxFloatingWindow=Jl,g.FoxFooterBar=el,g.FoxGroup=ol,g.FoxGroupSetting=Ol,g.FoxHeaderBar=Jn,g.FoxHintText=Dt,g.FoxIndicator=Hl,g.FoxInfiniteLoading=jl,g.FoxInputItem=cl,g.FoxInputNumberItem=yl,g.FoxItem=$e,g.FoxMapping=Rt,g.FoxMoneyItem=ml,g.FoxMoreButton=Wl,g.FoxOverLay=$n,g.FoxPage=Zn,g.FoxPopoverDialog=eo,g.FoxPopup=_l,g.FoxPrice=hn,g.FoxPullRefresh=zl,g.FoxRadioItem=$l,g.FoxRateItem=kl,g.FoxRollingProvider=no,g.FoxRowItem=ul,g.FoxSearchBar=Pl,g.FoxSelectItem=fl,g.FoxSlotItem=sl,g.FoxStepsBar=Ll,g.FoxSwitchItem=Nl,g.FoxTableItem=Cl,g.FoxTableMappingColumn=wl,g.FoxTableRadioColumn=Sl,g.FoxTableSetting=Cn,g.FoxTabsBar=Vl,g.FoxTabsContainer=Rl,g.FoxTabsPane=Fl,g.FoxText=Kl,g.FoxTimeItem=hl,g.FoxTimeSelectItem=gl,g.FoxToast=ql,g.FoxTour=Ul,g.FoxTreeSelectItem=Il,g.Group=ol,g.GroupSetting=Ol,g.HeaderBar=Jn,g.HintText=Dt,g.Indicator=Hl,g.InfiniteLoading=jl,g.InputItem=cl,g.InputNumberItem=yl,g.Item=$e,g.Mapping=Rt,g.MoneyItem=ml,g.MoreButton=Wl,g.OverLay=$n,g.Page=Zn,g.PopoverDialog=eo,g.Popup=_l,g.Price=hn,g.PriorityPolicy=je,g.PullRefresh=zl,g.RadioItem=$l,g.RateItem=kl,g.RollingProvider=no,g.RowItem=ul,g.SearchBar=Pl,g.SelectItem=fl,g.SlotItem=sl,g.StepsBar=Ll,g.SwitchItem=Nl,g.TableItem=Cl,g.TableMappingColumn=wl,g.TableRadioColumn=Sl,g.TableSetting=Cn,g.TabsBar=Vl,g.TabsContainer=Rl,g.TabsPane=Fl,g.Text=Kl,g.TimeItem=hl,g.TimeSelectItem=gl,g.Toast=ql,g.Tour=Ul,g.TreeSelectItem=Il,g.UniqueID=Yo,g.ValidateSchema=Vo,g.ValidateSchemaKey=We,g.cancelRaf=fa,g.clearNonNumber=Ta,g.clone=jn,g.compareTo=Bn,g.createBroadcast=Wt,g.createValidateSchema=Ut,g.debounce=Pe,g.debounceRef=La,g.decimalLength=$o,g.default=pg,g.defineBroadcast=ka,g.defineConfigDomain=Fo,g.defineDataItem=Ao,g.defineDomain=Un,g.defineItem=ke,g.definePageState=Lo,g.defineSimpleItem=Mo,g.deleteGlobalValidator=Va,g.disabledProperty=Me,g.divide=Ln,g.excludeProps=Oe,g.extend=ct,g.floatData=Ea,g.getGlobalValidateCheckEvents=Io,g.getGlobalValidateResetEvents=Do,g.getPageContentAreaHeight=tn,g.getPageContentAreaWidth=nn,g.getPageFooterAreaHeight=en,g.getPageHeaderAreaHeight=Jt,g.getRootDomain=yt,g.hasSymbol=vo,g.includeProps=ko,g.indexOf=Ca,g.integerLength=Co,g.isArray=ha,g.isArrayLike=So,g.isBrowser=ot,g.isDate=ya,g.isESModule=ba,g.isEmptyString=he,g.isEqual=tt,g.isFunction=qn,g.isHidden=Kt,g.isInnerPage=qa,g.isMap=ga,g.isNil=Hn,g.isNumberString=To,g.isObject=et,g.isPlainObject=Pn,g.isPromise=po,g.isRegExp=Kn,g.isSet=ma,g.isString=yo,g.isSubPage=Pa,g.isSymbol=pa,g.isTouch=Mt,g.isWindow=wo,g.lastIndexOf=$a,g.makeArray=xa,g.merge=xo,g.multiply=ho,g.negate=go,g.nextTick=wa,g.numberFormat=jt,g.objectToString=bo,g.once=Ba,g.overrideGlobalValidateHandler=Oa,g.property=Fe,g.raf=_n,g.readonlyProperty=Ae,g.setGlobalValidateCheckEvents=Ra,g.setGlobalValidateHandler=Ia,g.setGlobalValidateMessages=Aa,g.setGlobalValidateResetEvents=Fa,g.setGlobalValidator=Da,g.throttle=Ma,g.toBoolean=ce,g.toNumber=Te,g.toPadding=Ze,g.toPx=me,g.toPxDesc=De,g.toTypeString=zt,g.toValue=ge,g.tryTimes=Xt,g.typeOf=Ht,g.unNumberFormat=mo,g.updatePageState=Gn,g.useBroadcast=kt,g.useDomain=rt,g.useExpose=Se,g.useInnerSize=rn,g.usePageState=Qt,g.usePosition=rl,g.useRawTouch=Lt,g.useRect=Zr,g.useSize=Qn,g.useTouch=zf,g.valueLength=Et,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function jt(e,n="0"){let r=0,t=-1;e[0]=="-"&&(r++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(r++,t=2,n=n.substring(1),n.length),e=Oe(e),n=Oe(n),[e,n]=An(Oe(e),Oe(n)),r==1&&(t==1?e=Fn(e):n=Fn(n));let o=hr(e,n);return r?r==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(Fn(o)):Oe(o)}function Fn(e){let n="",r=e.length,t=e.split(".")[1],o=t?t.length:0;for(let i=0;i<r;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=o>0?"0."+new Array(o).join("0")+"1":"1";return hr(n,a)}function Oe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function An(e,n){let r=e.split("."),t=n.split("."),o=r[0].length,a=t[0].length;return o>a?t[0]=new Array(Math.abs(o-a)+1).join("0")+(t[0]?t[0]:""):r[0]=new Array(Math.abs(o-a)+1).join("0")+(r[0]?r[0]:""),o=r[1]?r[1].length:0,a=t[1]?t[1].length:0,(o||a)&&(o>a?t[1]=(t[1]?t[1]:"")+new Array(Math.abs(o-a)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(o-a)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function hr(e,n){[e,n]=An(e,n);let r="",t=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){r="."+r;continue}let a=parseInt(e[o])+parseInt(n[o])+t;r=a%10+r,t=Math.floor(a/10)}return t?t.toString()+r:r}var ve=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ve||{});function Ct(e,n=0,r=ve.HALF_EVEN){if(r===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let o=e.split("."),a=o[0],i=o[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=Ct(e,0,r),(t?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,gr(o[1],a,t,r)?(t?"-":"")+Mn(a):(t?"-":"")+a;if(o[1]){if(o[1].length<n)return(t?"-":"")+a+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let u=o[1].substring(n);return u&&gr(u,i,t,r)&&(i=Mn(i),i.length>n)?(t?"-":"")+Mn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function gr(e,n,r,t){if(!e||e===new Array(e.length+1).join("0")||t===ve.DOWN||!r&&t===ve.FLOOR||r&&t===ve.CEILING)return!1;if(t===ve.UP||r&&t===ve.FLOOR||!r&&t===ve.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(t){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Mn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let r=e.length-1,t="";for(let o=r;o>=0;o--){let a=parseInt(e[o])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function Ln(e,n){e=e.toString(),n=n.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),n[0]=="-"&&(r++,n=n.substr(1)),e=$t(e),n=$t(n);let t=0,o=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let a=t+o;if(e=$t(e.replace(".","")),n=$t(n.replace(".","")),e.length<n.length){let g=e;e=n,n=g}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,d="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let p=0;for(let b=n.length-1;b>=c&&b>=0;b--)s[b]>-1&&s[b]<e.length&&(p+=parseInt(e[s[b]--])*parseInt(n[b]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=$t(va(d,a)),r==1&&(d="-"+d),d}function va(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 $t(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 Bn(e,n,r=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Oe(n.replace(".","")),o>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(o+1).join("0"));else if(o>c)e=e.replace(".",""),e=Oe(e+new Array(o-c+1).join("0"));else if(o<c){e=e.replace(".","");let d=e.length-c+o;e=Oe(e.substring(0,d)+"."+e.substring(d))}else o==c&&(e=Oe(e.replace(".","")))}let a=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(r=r+2;a<=r;){let c=0;for(;parseInt(s)>=parseInt(n);)s=jt(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(t==1?"-":"")+Oe(Ct(u,r-2))}function qn(e,n){return e=e.toString(),n=n.toString(),n=Pn(n),jt(e,n)}function Pn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),yr(e),yr(n);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=qn(e,Ln(n,Ct(Bn(e,n),0,ve.FLOOR)));return r+t}function yr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function pr(e,n){let r=!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),r=!0),[e,n]=An(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?r?-1:1:r?1:-1;return 0}class de{value;static RoundingModes=ve;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[r,t]=n.split(/[eE]/);r=Oe(r);let o="";r[0]=="-"&&(o="-",r=r.substring(1)),r.indexOf(".")>=0?(t=parseInt(t)+r.indexOf("."),r=r.replace(".","")):t=parseInt(t)+r.length,r.length<t?n=o+r+new Array(t-r.length+1).join("0"):r.length>=t&&t>0?n=o+Oe(r.substring(0,t))+(r.length>t?"."+r.substring(t):""):n=o+"0."+new Array(-t+1).join("0")+r}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,r,t){if(!(r||t))r=3,t=",";else if(!(r&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<r?(r=u,u=0):u-=r,i=n.substring(u,u+r)+(u<a-r&&u>=0?t:"")+i;return(o?"-":"")+i+n.substring(a)}getPrettyValue(n,r){return de.getPrettyValue(this.value,n,r)}static round(n,r=0,t=ve.HALF_EVEN){if(n=de.validate(n),isNaN(r))throw Error("Precision is not a number: "+r);return Ct(n,r,t)}round(n=0,r=ve.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(Ct(this.value,n,r))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.CEILING)}static add(n,r){return n=de.validate(n),r=de.validate(r),jt(n,r)}add(n){return new de(jt(this.value,n.getValue()))}static subtract(n,r){return n=de.validate(n),r=de.validate(r),qn(n,r)}subtract(n){return new de(qn(this.value,n.getValue()))}static multiply(n,r){return n=de.validate(n),r=de.validate(r),Ln(n,r)}multiply(n){return new de(Ln(this.value,n.getValue()))}static divide(n,r,t){return n=de.validate(n),r=de.validate(r),Bn(n,r,t)}divide(n,r){return new de(Bn(this.value,n.getValue(),r))}static modulus(n,r){return n=de.validate(n),r=de.validate(r),mr(n,r)}modulus(n){return new de(mr(this.value,n.getValue()))}static compareTo(n,r){return n=de.validate(n),r=de.validate(r),pr(n,r)}compareTo(n){return pr(this.value,n.getValue())}static negate(n){return n=de.validate(n),Pn(n)}negate(){return new de(Pn(this.value))}}function br(e,n){return de.multiply(`${e}`,`${n}`)}function _n(e,n,r=8){return de.divide(`${e}`,`${n}`,r)}function jn(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function vr(e){return de.negate(e)}function zt(e,n=-1,r=!1,t=3,o=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),n!=-1&&(n<s.length?s=s.substring(0,n):r&&n>s.length&&(s=s.padEnd(n,"0")));let d;if(t>0){let g="",p=u.split("").reverse();for(let b=0;b<p.length;b++)g+=p[b]+((b+1)%t==0&&b+1!=p.length?o:"");s.length==0?d=`${i}${g.split("").reverse().join("")}`:d=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function wr(e){let n=`${e}`,r=n.charAt(0);r=="-"?n=n.substring(1):r="";let t=n.replace(/[^\d\.-]/g,"");return`${r}${t}`}const zn=dr,wa=Array.isArray,Sa=e=>Ht(e)==="[object Map]",xa=e=>Ht(e)==="[object Set]",Ta=e=>e instanceof Date,Hn=e=>typeof e=="function",Sr=e=>typeof e=="string",Ca=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",xr=e=>Ye(e)&&Hn(e.then)&&Hn(e.catch),Tr=Object.prototype.toString,Ht=e=>Tr.call(e),Kn=e=>Ht(e)==="[object Object]",Cr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function $a(e){return e.__esModule||Cr&&e[Symbol.toStringTag]==="Module"}const Na=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ct(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,t=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[r]??{},r++),typeof n!="object"&&(n={});r<t;r++)if(e[r]!==null&&e[r]!==void 0){let a=e[r];for(let i in a){let u=n[i],s=a[i];if(u!==s)if(o===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=ct(o,c,s)}else s!==void 0&&(n[i]=s)}}return n}function Wn(e,n,r=!1){if(!r)ct(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let o in n){let a=e[o],i=n[o];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Kn(i))continue;a=Wn(a,i,r),e[o]=a}else{if(typeof i=="function")continue;e[o]=i}}const t=Object.getOwnPropertySymbols(n);for(let o of t){let a=e[o],i=n[o];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Kn(i))continue;a=Wn(a,i,r),e[o]=a}else{if(typeof i=="function")continue;e[o]=i}}}return e}const Yn=Na?Promise.resolve():null;function Ea(e,...n){Yn!==null?n&&n.length>0?Yn.then(()=>{e(n)}):Yn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Ce(e){return typeof e=="number"?e:Number(e)}const ka={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):ka[r]||"object"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function Wt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Nr(e){let n=!!e&&"length"in e&&e.length,r=Kt(e);return r==="function"||$r(e)?!1:r==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Er(e,n){let r=+n.length,t=0,o=e.length;for(;t<r;t++)e[o++]=n[t];return e.length=o,e}function Ia(e,n=[]){let r=n;return e!=null&&(Nr(Object(e))?Er(r,typeof e=="string"?[e]:e):r.push(e)),r}function tt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let r=Kt(e),t=Kt(n);if(r!==t)return!1;if(r==="object"){let o=Object.keys(e),a=Object.keys(n);if(o.length!==a.length)return!1;for(let i=0;i<o.length;i++){let u=o[i],s=e[u],c=n[u];if(!tt(s,c))return!1}return!0}else if(r==="array"){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++){let a=e[o],i=n[o];if(!tt(a,i))return!1}return!0}return!1}const rt=typeof window<"u";function Un(e){return e==null}function Gn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null||typeof e!="string"?!1:e.length===0;function kr(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ir(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 r=n.indexOf(".");return r==-1?n.length:r}function Or(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const r=n.indexOf(".");return r==-1?0:n.length-(r+1)}function Dr(e,n,r){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(r,"")}function Oa(e,n=!0,r=!0){n?e=Dr(e,".",/\./g):e=e.replace(/\./g,""),r?e=Dr(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function Da(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(r=>{if(tt(e,r))return!0}):n.indexOf(e)}function Va(e,n){if(typeof e=="object"||Array.isArray(e)){let r=n.reverse().findIndex(t=>{if(tt(e,t))return!0});return r!==-1&&(r=n.length-1-r),r}return n.lastIndexOf(e)}function Nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Et(e,...n){const r={};return n.forEach(t=>{for(const o in t)r[o]=e[o]}),r}function De(e,...n){const r=[];n.forEach(o=>{Reflect.apply([].push,r,Reflect.ownKeys(o))});const t={};for(const o in e)r.includes(o)||(t[o]=e[o]);return t}const Ra=(e,n,r)=>{const t=Object.assign({},e),o=Object.assign({},r);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{o.hasOwnProperty(a)?typeof o[a]=="string"&&(t[a]=n[o[a]]):n[a]&&(t[a]=n[a])}),t):e},we=Symbol.for("BroadcastKey");class Xn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,r,t){this.parent=n,this.proxy=r,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const r=this.children.findIndex(t=>n===t);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,r,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const o=n.uniqueId,a={matched:n,action:r,args:t};return this.persistantMessages.set(o,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(r=>{n.push(r)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,r){if(!r||r.messagingPolicy==="Once"&&r.resolved===!0)return!1;let t=!1;return!r.name||r.name==="*"||r.name==="+"||Gn(r.name)&&n&&r.name.test(n)?t=!0:typeof r.name=="function"?t=Reflect.apply(r.name,null,[n]):r.name===n&&(t=!0),t}trigger(n,r,t){let o=null;const a=this.callbacks.get(r);typeof a=="function"&&(o=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[r]=="function"&&(o=Reflect.apply(i[r],i,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(o)}pull(){let n=this.parent;for(;n;){const r=n.getPersistantMessages();Array.isArray(r)&&r.length>0&&r.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(o){console.error(o)}}),n=n.parent}}emit(n,r,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,r,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,r,t)){const i=n.resolve,u=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};n.resolve=s}n.cachePolicy="None"}let o=!1;!n.name||n.name==="*"?o=!0:n.name==="+"?(o=!1,n.name="*"):Gn(n.name)&&this.name&&n.name.test(this.name)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(o=!0);const a=[];if(o){const i=this.callbacks.get(r);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[r]=="function"){const s=Reflect.apply(u[r],u,[...t]);s!=null&&a.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},r,...t]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,r,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,r,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,r,t)){const a=n.resolve,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};n.resolve=u}n.cachePolicy="None"}const o=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},r,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}on(n,r){this.callbacks.set(n,r)}}function Yt(e,n,r,t){const o=new Xn(n,e,r);if(t&&typeof t=="object")for(const a in t)o.on(a,t[a]);return o}function Fa(e,n,r){const t=r;if(t[we])return t[we];const o=l.inject(we,null),a=new Xn(o,r,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[we]=a,l.provide(we,a),l.onUnmounted(()=>{a.destroy(),t[we]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[we]??l.inject(we,null):l.inject(we,null)}class Aa{error(n,r){const t=r,o=r||l.hasInjectionContext()?kt(r):null;o?o.emit({name:"*"},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const r=n,t=n||l.hasInjectionContext()?kt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(n){const r=n,t=n||l.hasInjectionContext()?kt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(n,r,t){Array.isArray(n)||(n=[n]);const o=t,a=t||l.hasInjectionContext()?kt(t):null,i=r.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let It=new Aa;function Ma(e){It=e}function La(e){It?Object.assign(It,e):It=e}function Ba(e,n){ut.Schema.setValidator(e,n)}function qa(e){ut.Schema.deleteValidator(e)}let Vr=["blur","clear"];function Pa(e){Vr=e}function Rr(){return Vr}let Fr=["focus","change","setValue"];function _a(e){Fr=e}function Ar(){return Fr}function ja(e){ut.Schema.messages(e)}function Ot(...e){const n=[];return e.forEach(r=>{r.forEach(t=>{const o=n.findIndex(a=>a.type===t.type);o!==-1&&n.splice(o,1),n.push(t)})}),n}function Ut(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ue=Symbol("ValidateSchemaKey");class Mr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,r,t){this.parent=n,this.descriptor=r,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const r=Ut(Ot(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),t.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};t.push(s)}}this.attrRules=Ut(t);const o=Ot(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(o,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...r){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...r]);const o=It;return o&&typeof o[n]=="function"?Reflect.apply(o[n],o,[...r]):null}decorate(n,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,r,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,r,t=!1){t?ut.Schema.setValidator(n,r):this.validators[n]=r}getValidator(n){let r=this.validators[n]??null;return r||(r=this.parent?.getValidator(n)??null),r}deleteValidator(n,r=!1){r?ut.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,r=!1){if(r)return ut.Schema.hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const r=Ot(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const t=Ot(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(t,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Ot(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(r.length>0){const o={[`${t}`]:r},a=this.getValue(),i={[`${t}`]:a},u=new ut.Schema(o),s=this.proxy??i;return u.validate(i,{context:s}).then(d=>{if(d.pass)this.success();else{let g="error";Array.isArray(d.errors)&&d.errors.length>0&&(g=d.errors[0].message??g,d.errors=[d.errors[0]],d.errors[0].ref=s),this.error(g)}return d}).catch(d=>{const g=d.message??`${d}`;return this.error(g),d})}}return Promise.resolve({pass:!0})}}function Gt(e,n,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const o=r.valueName;r.validateHandler={getValue(a){return a[o]}}}return new Mr(n,r,e)}const Xt=Symbol.for("EventEmitterKey");class Lr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,r){let t=this.register.get(n);if(t&&Array.isArray(t)){let o=t.findIndex(a=>a===r);o!==-1&&t.splice(o,1)}}on(n,r){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(r)}emit(n,...r){const t=this.register.get(n);t&&t.forEach(o=>{try{Reflect.apply(o,null,[n,...r])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...r])}}function He(e,n){let r=null;return function(...t){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...t])},n)}}function Br(e,n){let r=0;return function(...t){const o=new Date().getTime();o-r<n||(r=o,Reflect.apply(e,null,[...t]))}}function za(e,n){const r=He((t,o)=>{e=t,o()},n);return l.customRef((t,o)=>({get(){return t(),e},set(a){r(a,o)}}))}function Ha(e){let n=!1;return function(...r){n||(n=!0,Reflect.apply(e,null,[...r]))}}function Zt(e,n,r,t=0,o=!0,a){let i=n,u=0;if(o){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>r){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>r){typeof a=="function"&&a(!1);return}i+=t,setTimeout(s,i)};setTimeout(s,i)}const qe=Symbol("DomainKey"),mt=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=l.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,r=[]){for(const t in n){const o=n[t];r.length>0&&r.indexOf(o)!==-1||(this._props[t]=o)}}has(n){if(Reflect.has(this._props,n)){const r=this._props[n];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,r){this._props[n]=r}get(n,r){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?r:this.parent.get(n,r)}getForParent(n,r){return this.parent==null?r:this.parent.get(n,r)}getForSelf(n){return this._props[n]}getAll(n){const r=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const o=t._props[n];r.push(o)}t=t._parent}return r}}const Ka=new Qt;function yt(){return Ka}function ot(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[qe]??l.inject(qe,null):l.inject(qe,null)}const Zn=Symbol("OriginalDateKey");function Qn(e,n,r=[],t){const o=l.getCurrentInstance();let a=o?.proxy,i=l.inject(qe,null);i===null&&(i=yt());const u=e||n.prop||n.name;let s=new Qt(u);s.parent=i;const c=f=>{a[Zn]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,g=()=>a[Zn]??null,p=f=>{const h={};ct(!0,h,l.toRaw(f)),a[Zn]=h};l.isReactive(n)||typeof n=="function"?l.watch(n,f=>{s?.merge(f,r)},{immediate:!0}):s.merge(n,r),n.modelValue&&p(n.modelValue);const b=(f,h)=>{s?.set(f,h)},v=f=>s?.getForSelf(f)??null;if(a[qe]=s,l.provide(qe,s),o!==null){const f=l.inject(we,null),h=Yt(a,f,u,t);s.broadcast=h,a[we]=h,l.provide(we,h),a.broadcast=(S,q,...P)=>Reflect.apply(h.emit,h,[S,q,...P]);const F=l.inject(Ue,null),x=Gt(a,F,{componentName:""});s.validateSchema=x,a[Ue]=x,l.provide(Ue,x),a[mt]=new Map,a.validate=(S=!0)=>{const q=[];let P=null;const _={deep:!1};if(S===!0)P={name:"*"};else if(Array.isArray(S)&&S.length>0){const O=S;P={name:I=>I?O.indexOf(I)!==-1:!1}}else if(S!=null&&typeof S=="object"){const O=S;if(Object.assign(_,O),Array.isArray(O.include)&&O.include.length>0){const I=O.include;P={name:w=>w?I.indexOf(w)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const I=O.exclude;P={name:w=>w?I.indexOf(w)===-1:!1}}else P={name:"*"}}if(P){const O=h?.emitToChildren(P,"validate",_);O&&Reflect.apply([].push,q,O)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(O=>{let I=[];return O.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(I=[...I,...w.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,q=!0,P=!1)=>{if(P===!0){Reflect.ownKeys(S).forEach(O=>{let I=String(O);const w={componentName:"",fieldName:I,pureDataValidate:!0};if(s){const z=Pr(s,I,w,h,x);a[mt].set(I,z);const y=S[I];y&&z.validateSchema.setRule(y)}});return}if(q){const _=Reflect.ownKeys(S),O={name:I=>_.includes(I),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(O,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let q=null;if(S===!0)q={name:"*"};else if(Array.isArray(S)&&S.length>0){const P=S;q={name:_=>_?P.indexOf(_)!==-1:!1}}else if(S!=null&&typeof S=="object"){const P=S;if(Array.isArray(P.include)&&P.include.length>0){const _=P.include;q={name:O=>O?_.indexOf(O)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const _=P.exclude;q={name:O=>O?_.indexOf(O)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=S=>{const q=d();if(!q)return;const P={};if(ct(!0,P,g()??{}),Array.isArray(S))S.forEach(_=>{q[_]=P[_]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(O=>{q[O]=P[O]});else if(S&&Array.isArray(S.exclude)){let _=S.exclude??[];Reflect.ownKeys(P).forEach(O=>{_.includes(O)||(q[O]=P[O])})}else Object.assign(q,P);a.clearValidate(S)},a.setModelValue=(S,q)=>{if(!q||q===u)c(S);else{const P={name:q,messagingPolicy:"Once"};h?.emitToChildren(P,"setModelValue",S)}},a.getModelValue=()=>d(),a.setDomainProperty=(S,q)=>{b(S,q)},a.getDomainProperty=S=>v(S),setTimeout(function(){h?.pull()},0)}return l.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ue]=void 0,l.provide(Ue,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[we]=void 0,l.provide(we,null)),s?.destroy(),a[qe]=void 0,l.provide(qe,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function qr(e,n,r=[]){let o=l.getCurrentInstance()?.proxy,a=l.inject(qe,null);a===null&&(a=yt());const i=e||n.prop||n.name;let u=new Qt(i);return u.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,s=>{u?.merge(s,r)},{immediate:!0}):u.merge(n,r),o[qe]=u,l.provide(qe,u),l.onUnmounted(()=>{u?.destroy(),o[qe]=void 0,l.provide(qe,null),u=null,o=null}),u}function ke(e,n,r){const o=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(we,null);let u=Yt(o,i,a,r);o[we]=u,l.provide(we,u),o.broadcast=(v,f,...h)=>u?Reflect.apply(u.emit,u,[v,f,...h]):null;const s=l.inject(Ue,null);e.fieldName=e.fieldName??a;let c=Gt(o,s,e);o[Ue]=c,l.provide(Ue,c),o.validate=(v=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,F=!1;if(Array.isArray(v)&&v.indexOf(a)!==-1)F=!0,h=!0;else if(v&&typeof v=="object"){const x=v,S=x.ignoreDisabled??!0,q=x.ignoreReadonly??!0,P=x.ignoreHidden??!0;S===!0&&e.disabled===!0||q===!0&&e.readonly===!0||P===!0&&Wt(o.$el)?F=!1:(Array.isArray(x.include)&&x.include.indexOf(a)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(a),F=!0),h=x.deep??!1}else typeof v=="boolean"&&(h=v),F=!0;if(F){const x=c?.validate();f.push(x)}if(h){let x=null;const S={deep:!1};if(v===!0)x={name:"*"};else if(Array.isArray(v)&&v.length>0){const q=v;x={name:P=>P?q.indexOf(P)!==-1:!1}}else if(v!=null&&typeof v=="object"){const q=v;if(Object.assign(S,q),Array.isArray(q.include)&&q.include.length>0){const P=q.include;x={name:_=>_?P.indexOf(_)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const P=q.exclude;x={name:_=>_?P.indexOf(_)===-1:!1}}else x={name:"*"}}if(x&&u){const q=u.emitToChildren(x,"validate",S);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(x=>{let S=[];return x.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(S=[...S,...q.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=v=>c?.setRule(v),o.setNameValidateRules=(v,f=!1)=>{const h=v[a];if(h&&c?.setRule(h),f&&u){const F={name:x=>Reflect.ownKeys(v).includes(x)};u.emitToChildren(F,"setNameValidateRules",v,!1)}},o.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(v===!0)f={name:"*"};else if(Array.isArray(v)&&v.length>0){const h=v;f={name:F=>F?h.indexOf(F)!==-1:!1}}else if(v!=null&&typeof v=="object"){const h=v;if(Array.isArray(h.include)&&h.include.length>0){const F=h.include;f={name:x=>x?F.indexOf(x)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const F=h.exclude;f={name:x=>x?F.indexOf(x)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Lr(o);o[Xt]=d;const g=He((v="validate")=>{c&&(v==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Rr()).forEach(v=>{d&&d.on(v,f=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ar()).forEach(v=>{d&&d.on(v,f=>{g("reset")})}),setTimeout(function(){u?.pull()},0),l.onUnmounted(()=>{u?.destroy(),o[we]=void 0,l.provide(we,null),u=null,c?.destroy(),o[Ue]=void 0,l.provide(Ue,null),c=null,d?.destroy(),o[Xt]=void 0,d=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(v,...f)=>{d&&Reflect.apply(d.emit,d,[v,...f])},onEvent:(v,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(v,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Pr(e,n,r,t,o){const a={},i=n??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};r.fieldName=i,r.validateHandler={getValue(d){return u.getValue()}};let s=Gt({},o,r);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const g=[];let p=!1,b=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)b=!0,p=!0;else if(d&&typeof d=="object"){const v=d;Array.isArray(v.include)&&v.include.indexOf(i)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(i),b=!0,p=v.deep??!1}else typeof d=="boolean"&&(p=d),b=!0;if(b&&s){const v=s.validate();g.push(v)}if(p){let v=null;const f={deep:!1};if(d===!0)v={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;v={name:F=>F?h.indexOf(F)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const F=h.include;v={name:x=>x?F.indexOf(x)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const F=h.exclude;v={name:x=>x?F.indexOf(x)===-1:!1}}else v={name:"*"}}if(v&&c){const h=c.emitToChildren(v,"validate",f);Reflect.apply([].push,g,h)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(v=>{let f=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const g=d[i];g&&s?.setRule(g)};let c=Yt(null,t,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function _r(){let n=l.getCurrentInstance()?.proxy,r=new Lr(n);return n[Xt]=r,l.onUnmounted(()=>{r?.destroy(),n[Xt]=void 0,r=null,n=null}),{emitEvent:(t,...o)=>{r&&Reflect.apply(r.emit,r,[t,...o])},onEvent:(t,o)=>{r&&Reflect.apply(r.on,r,[o])},offEvent:(t,o)=>{r&&Reflect.apply(r.off,r,[o])}}}const Se=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let o=Number(e.substring(0,r)),a=1;if(rt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return o*=a,o}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*n;const t=Number(e);return isNaN(t)?0:t}const at="PageStateKey";function Je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function Jn(e,n,r={},t=!0,o=-1,a=-1,i=0,u=0){if(e.headerHeight=me(r.headerHeight??n.headerHeight??-1),e.headerPadding=Je(r.headerPadding??n.headerPadding),e.footerHeight=me(r.footerHeight??n.footerHeight??-1),e.footerPadding=Je(r.footerPadding??n.footerPadding),e.contentPadding=Je(r.contentPadding??n.contentPadding),t){const s=r.height??n.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(r.width??n.width??0,o)}}function jr(e,n={}){const r={top:null,bottom:null,right:null,left:null},t={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(t.safeAreaTop=me(o.top),t.safeAreaBottom=me(o.bottom),t.safeAreaLeft=me(o.left),t.safeAreaRight=me(o.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Jn(t,a,n,!0,i,u,s,c);const d=l.reactive(t),g=e.getForParent(at);g&&(t.height=nn(e,g),t.width=ln(e,g),l.watch([()=>nn(e,g),()=>ln(e,g)],([b,v])=>{d.height=b,d.width=v}));const p=!g;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,v,f=-1,h=-1,F=0,x=0])=>{Jn(d,v,n,p,f,h,F,x)}),e.set(at,d),d}function Jt(e){return e.get(at)}function en(e,n){if(n=n??e.get(at),n&&n.headerMounted){const r=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+r}return 0}function tn(e,n){if(n=n??e.get(at),n&&n.footerMounted){const r=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+r}return 0}function nn(e,n){if(n=n??e.get(at),n){if(n.contentInnerHeight)return n.contentInnerHeight;const r=en(e,n),t=tn(e,n);return n.height-r-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function ln(e,n){return n=n??e.get(at),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Wa(e,n){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[n,e]):!1}function Ya(e){return!!e.getForParent(at)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function rn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,r=1,t){const o=ot();return o==null?e:r===0?l.computed(()=>{const a=o.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(rn(s,t))return s}const i=e.value;return rn(i,t)?i:null}):l.computed(()=>{const a=e.value;if(rn(a,t))return a;const i=o.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(rn(s,t))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function ge(e,n="modelValue",r=null,t){const o=l.toRef(e,n);let a=o.value;typeof r=="function"&&(a=r(o.value));const i=l.ref(a);return l.watch(o,u=>{if(typeof r=="function"){const s=r(u);s!==i.value&&(i.value=s,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const zr=new Map,on=new Map;let el=null;function Ua(e){el=e}function Hr(e,n,r){if(r){let t=on.get(r);t||(t=new Map,on.set(r,t)),t.set(e,n)}else zr.set(e,n)}function je(e,n,r){!r&&el&&(r=el(e)??void 0);let t=null;if(r){let o=on.get(r);o&&(t=o.get(n))}return t||(t=zr.get(n)),t}function Ga(e,n){for(let r in e){const t=e[r];Hr(r,t,n)}}function Xa(e){on.delete(e)}function Za(){return{top:0,left:0,bottom:0,right:0}}function Qa(){if(rt){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ja(e,n){if(n.componentPrefix){const r=e.indexOf("-");return`${n.componentPrefix}${e.slice(r)}`}return e}class ei{packages;installers;_version;get version(){return this._version}constructor(n,r,t){this.packages=n,this.installers=r,this._version=t}install(n,r={}){r?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=Ja(a.name,r);n.component(i,a)}}),this.installers.forEach(a=>{a(n,r)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],o=yt();if(r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...r},i=He(()=>{const s={...a};this.initPageLayout(s,o)},120);new window.ResizeObserver(i).observe(window.document.body)}this.initPageLayout(r,o);for(const a in r)t.indexOf(a)===-1&&o.set(a,r[a])}initPageLayout(n,r){const t=n.headerBarHeight??0,o=n.footerBarHeight??0,a=ct({},Za(),n.safeAreaInset),i=Qa(),u=ct({},i.pageLayout,n.pageLayout);r=r??yt(),r.set("safeAreaInset",a),r.set("headerBarHeight",t),r.set("footerBarHeight",o),r.set("pageLayout",u),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ua(n)}setAPI(n,r,t){Hr(n,r,t)}getAPI(n,r,t){return je(n,r,t)}batchSetAPI(n,r){Ga(n,r)}clearScopeAPI(n){Xa(n)}getRootDomain(){return yt()}}const ti=[T.ElAffix,T.ElAlert,T.ElAutocomplete,T.ElAutoResizer,T.ElAvatar,T.ElBacktop,T.ElBadge,T.ElBreadcrumb,T.ElBreadcrumbItem,T.ElButton,T.ElButtonGroup,T.ElCalendar,T.ElCard,T.ElCarousel,T.ElCarouselItem,T.ElCascader,T.ElCascaderPanel,T.ElCheckTag,T.ElCheckbox,T.ElCheckboxButton,T.ElCheckboxGroup,T.ElCol,T.ElCollapse,T.ElCollapseItem,T.ElCollapseTransition,T.ElColorPicker,T.ElConfigProvider,T.ElContainer,T.ElAside,T.ElFooter,T.ElHeader,T.ElMain,T.ElDatePicker,T.ElDescriptions,T.ElDescriptionsItem,T.ElDialog,T.ElDivider,T.ElDrawer,T.ElDropdown,T.ElDropdownItem,T.ElDropdownMenu,T.ElEmpty,T.ElForm,T.ElFormItem,T.ElIcon,T.ElImage,T.ElImageViewer,T.ElInput,T.ElInputNumber,T.ElLink,T.ElMenu,T.ElSubMenu,T.ElMenuItem,T.ElMenuItemGroup,T.ElPageHeader,T.ElPagination,T.ElPopconfirm,T.ElPopover,T.ElPopper,T.ElProgress,T.ElRadio,T.ElRadioButton,T.ElRadioGroup,T.ElRate,T.ElResult,T.ElRow,T.ElScrollbar,T.ElSelect,T.ElOption,T.ElOptionGroup,T.ElSelectV2,T.ElSkeleton,T.ElSkeletonItem,T.ElSlider,T.ElSpace,T.ElSteps,T.ElStep,T.ElSwitch,T.ElTable,T.ElTableColumn,T.ElTableV2,T.ElTabs,T.ElTabPane,T.ElTag,T.ElTimePicker,T.ElTimeSelect,T.ElTimeline,T.ElTimelineItem,T.ElTooltip,T.ElTransfer,T.ElTree,T.ElTreeSelect,T.ElTreeV2,T.ElUpload,T.ElStatistic,T.ElCountdown,T.ElSegmented,T.ElAnchor,T.ElAnchorLink,T.ElWatermark,T.ElMessageBox,T.ElMessage,T.ElNotification],ni=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],li=(e,n={})=>{const r=n.componentPrefix??"fox",t=r[0].toUpperCase()+r.slice(1);ti.forEach(o=>{let a=o.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,o)):e.use(o)}),ni.forEach(o=>{e.use(o)})};function ie(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=n,r.install=t=>{t.component(r.name,r)},l.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,l.defineComponent(r)}}}function xe(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let r=n.proxy;Object.assign(r,e)}}const $e={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Kr={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}},Wr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Yr=[];for(const e in Wr)Yr.push(e);const ri=Symbol.for("InnerPageScopeKey"),oi={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}},ai=(e,n)=>({inheritAttrs:!0,props:{...$e,...Kr,...oi},setup(r,{slots:t}){const o=Qn(r.name,r),a=l.inject(ri,!1);if(o){const d=jr(o,r);xe({getPageContentHeight:()=>nn(o,d),getPageContentWidth:()=>ln(o,d),getPageHeaderHeight:()=>en(o,d),getPageFooterHeight:()=>tn(o,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,g=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,g)};return l.watch([()=>r.rules,()=>r.pureDataRules],([d,g],[p,b])=>{if(d&&p){const v=l.toRaw(p),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(v?Reflect.ownKeys(v):[]).forEach(x=>{h.includes(x)||(f[x]=[])}),c(f)}if(g&&b){const v=l.toRaw(b),f=l.toRaw(g),h=f?Reflect.ownKeys(f):[];(v?Reflect.ownKeys(v):[]).forEach(x=>{h.includes(x)||(f[x]=[])}),c(f,!0)}},{deep:!0}),l.onMounted(()=>{if(r.rules){const d=l.toRaw(r.rules);c(d)}if(r.pureDataRules){const d=l.toRaw(r.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return l.h("div",d,[t?.default?.()])}}}),{componentName:ii,create:si}=ie("page"),tl=si(ai(ii));function nl(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function an(e){const n=l.unref(e),r=window.getComputedStyle(n,null),t=parseFloat(r.getPropertyValue("padding-left")),o=parseFloat(r.getPropertyValue("padding-right")),a=parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("padding-bottom"));return{width:n.clientWidth-t-o,height:n.clientHeight-a-i}}const ui=(e,n,r,t=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:r},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(o,a){const i=ot(),u=i?Jt(i):null;u&&(u.headerMounted=!0);const s=e,c=l.computed(()=>({[s]:!0,[`${s}--border`]:o.border,[`${s}--fixed`]:o.fixed,[`${s}--safe-area-inset-top`]:o.safeAreaInsetTop})),d=l.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${o.align}`]:!0})),g=o.height!==null&&o.height!==void 0?me(o.height):null,p=l.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const A=Je(o.padding??u.headerPadding);return Object.assign(y,A),g&&(u.headerHeight=g),u.headerHeight>0&&(y.height=u.headerHeight),y.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(A.top??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)),y}if(g&&(y.height=g),o.padding){const A=Je(o.padding);Object.assign(y,A)}return y}),b=l.ref(null),v=()=>{if(u&&b.value&&!Wt(b.value)){if(!t){const y=nl(b.value);u.headerAllHeight=y.height}return u.headerMounted=!0,!0}return!1},f=He(v,120);let h=null;l.onMounted(()=>{u&&(Zt(v,50,5,50,!0),window.ResizeObserver&&b.value&&(h=new window.ResizeObserver(f),h.observe(b.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const F=l.computed(()=>{const y={};return p.value.height!==null&&p.value.height!==void 0&&(y.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(y.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(y.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(y.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(y.paddingBottom=`${p.value.bottom}px`),y}),x=l.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function S(){a.emit("back")}function q(){a.emit("click-title")}function P(){a.emit("click-right")}function _(){a.emit("click-right-text")}const O=()=>{if(!o.leftShow)return null;const y=[];if(a.slots.left)y.push(a.slots.left());else{if(a.slots.leftIcon){const A=l.h("view",{class:"left-icon",onClick:S},[a.slots.leftIcon()]);y.push(A)}else if(o.leftIcon){const A=l.h("view",{class:"left-icon",onClick:S},[l.h(o.leftIcon)]);y.push(A)}if(o.leftText){const A=l.h("view",{class:"left-text",onClick:S},[o.leftText]);y.push(A)}}return y.length===0?null:l.h("view",{class:"fox-header-bar__left"},y)},I=()=>{if(!o.rightShow)return null;const y=[];if(a.slots.right)y.push(a.slots.right());else{if(o.rightText){const A=l.h("view",{class:"right-text",onClick:_},[o.rightText]);y.push(A)}if(a.slots.rightIcon){const A=l.h("view",{class:"right-icon",onClick:P},[a.slots.rightIcon()]);y.push(A)}else if(o.rightIcon){const A=l.h("view",{class:"right-icon",onClick:P},[l.h(o.rightIcon)]);y.push(A)}}return y.length===0?null:l.h("view",{class:"fox-header-bar__right"},y)},w=()=>{if(!o.titleShow)return null;const y=[],A=a.slots.default?a.slots.default():null;if(A)y.push(A);else{if(o.title){const X=l.h("view",{class:"title-text"},[o.title]);y.push(X)}if(a.slots.titleIcon){const X=l.h("view",{class:"title-icon",onClick:q},[a.slots.titleIcon()]);y.push(X)}else if(o.titleIcon){const X=l.h("view",{class:"title-icon",onClick:q},[l.h(o.titleIcon)]);y.push(X)}}return y.length===0?null:l.h("view",{class:"fox-header-bar__title"},y)},z=()=>{const y=[],A=a.slots.bottom?a.slots.bottom():null;return A&&y.push(A),y.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(!x.value)return null;const y=[];if(a.slots.all)y.push(a.slots.all());else{const X=[],V=O();V&&X.push(V);const E=w();E&&X.push(E);const L=I();if(L&&X.push(L),X.length>0){const U=l.h("view",{class:d.value},X);y.push(U)}const j=z();j&&y.push(j)}if(y.length===0)return null;const A={class:c.value,style:F.value,ref:b};return l.h("view",A,y)}}}),{componentName:ci,create:fi,scope:di}=ie("header-bar"),ll=fi(ui(ci,di,Ie.ArrowLeft));function hi(e,n,r=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(t,o){const a=ot(),i=a?Jt(a):null,u=l.computed(()=>{const f=e;return{[f]:!0,[`${f}--${t.align}`]:!0,[`${f}--border`]:t.border,[`${f}--fixed`]:t.fixed,[`${f}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),s=t.height!==null&&t.height!==void 0?me(t.height):null,c=l.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Je(t.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),t.padding){const h=Je(t.padding);Object.assign(f,h)}return f}),d=l.ref(null),g=()=>{if(i&&d.value&&!Wt(d.value)){if(!r){const f=nl(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},p=He(g,120);let b=null;l.onMounted(()=>{i&&(Zt(g,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(p),b.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const v=l.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=Se(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=Se(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=Se(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=Se(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=Se(c.value.bottom)),f});return()=>{const f=o.slots.default?o.slots.default():[],h={ref:d,class:u.value,style:v.value};return l.h("view",h,f)}}}}const{componentName:gi,create:mi}=ie("footer-bar"),rl=mi(hi(gi));function yi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(r,{slots:t,attrs:o}){const a=ot(),i=l.computed(()=>({[e]:!0})),u=a?Jt(a):null,s=l.computed(()=>{const b={};if(a&&u){if(r.padding){const P=Je(r.padding);Object.assign(u.contentPadding,P)}const v=en(a,u),f=tn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,b.height=h;let F=(u&&u.contentPadding&&u.contentPadding.top)??-1;(F>=0||v>0)&&(F=F<0?0:F,b.paddingTop=`${v+F}px`);let x=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(x>=0||f>0)&&(x=x<0?0:x,b.paddingBottom=`${f+x}px`);const S=(u&&u.contentPadding&&u.contentPadding.left)??-1;S>=0&&(b.paddingLeft=`${S}px`);const q=(u&&u.contentPadding&&u.contentPadding.right)??-1;return q>=0&&(b.paddingRight=`${q}px`),b}if(r.padding){const v=Je(r.padding);v.left&&(b.paddingLeft=`${v.left}px`),v.top&&(b.paddingTop=`${v.top}px`),v.right&&(b.paddingRight=`${v.right}px`),v.bottom&&(b.paddingBottom=`${v.bottom}px`)}return b}),c=l.ref(null),d=()=>{if(u&&c.value){const b=an(c.value);u.contentInnerHeight=b.height,u.contentInnerWidth=b.width}},g=He(d,120);let p=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(p=new window.ResizeObserver(g),p.observe(c.value))}),l.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const b=r.tag??"view",v={...o,ref:c,class:i.value,style:s.value};return l.h(b,v,t)}}}}const{componentName:pi,create:bi}=ie("content"),ol=bi(yi(pi)),pt="GroupStateKey",Ur=Symbol.for("GroupScopeKey");function sn(){return l.inject(Ur,!1)}function un(e=!0){l.provide(Ur,e)}function vi(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const o=n[t];Un(o)||(e[t]=o)})}function wi(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};vi(t,n);const o=l.shallowRef(t),a=l.markRaw({layout:o,passport:0,order:{index:0}});return e.set(pt,a),a}function al(e,n,r=-1,t=-1,o=!1,a,i,u){const s=e.get(pt);if(!s)return;const c=e.get("groupLayout")??{};r===-1&&(r=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),g=me(i);u||(u=c.type??"grid");const p=()=>{const b=n===""||n===-1,v=me(n);let f=Ce(r);const h=me(t);if(!b){let S=(v-(f-1)*h)/f;for(;g!==-1&&S>g;)f++,S=(v-(f-1)*h)/f;for(;d!==-1&&f>1&&S<d;)f--,S=(v-(f-1)*h)/f}let F=!1;const x=s.layout;x.value.width=n,x.value.column!==f&&(x.value.column=f,F=!0),x.value.gutter!==h&&(x.value.gutter=h,F=!0),x.value.type!==u&&(x.value.type=u,F=!0),F&&l.triggerRef(x)};if(o)p();else{const b=++s.passport;setTimeout(()=>{b===s.passport&&p()},50)}}function cn(e,n=!1){let r;return n?r=e.getForParent(pt):r=e.get(pt),r.layout}function fn(e,n=!1){let r;return n?r=e.getForParent(pt):r=e.get(pt),r.order}function Gr(e,n=1){if(n==="stretch")return-1;const r=Ce(n);return r===-1?100:100*r/e}function dn(e,n,r=1,t=0,o){const a={};let i=0;o?i=me(o):i=Gr(n.column,r),i>0&&(a.width=`${i}%`);const u=Gr(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function hn(e,n,r=1,t=0){if(r==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let o=Ce(r);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Ce(t)%n.column;let i=(e.index+a)%n.column,u=i+o;return u>n.column?(i=0,u=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+a+o,a>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const Xr=Symbol("RollingStateKey");function Si(e){l.provide(Xr,e)}function xi(){return l.inject(Xr,null)}function il(e){let n=0;const r=window.getComputedStyle(e,null);if(r.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("padding-bottom"));n=e.clientHeight-o-a}else n=e.offsetHeight;return n}function Ti(e){let n=il(e);if(n<=0){const r=e.cloneNode(!0),t=e.offsetWidth;r.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),n=il(r),document.body.removeChild(r)}return n}function Ci(e,n,r){const t=typeof e=="number"?e:parseInt(e),o=typeof n=="number"?n:parseInt(n),a=typeof r=="number"?r:parseInt(r);if(t<=0)return"1fr";const i=(t-(o-1)*a)/o;return i>0?`${i}px`:"1fr"}const $i={...$e,...Kr,...Wr};function Ni(e,n,r){return{props:$i,emits:["update:collapse","header-click"],setup(t,o){const a=Qn(t.prop??t.name,t,Yr),i=wi(a,{type:t.type}),u=sn();un(!0);const s=t.rollingDisplay?xi():null,c=l.ref(null),d=l.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),g=l.computed(()=>u&&a?cn(a,!0).value:null),p=l.getCurrentInstance(),b=(k,W=!1)=>{const Z=p?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(k,!0,W)};l.watch([()=>t.rules,()=>t.pureDataRules],([k,W],[Z,D])=>{if(k&&Z){const H=l.toRaw(Z),Q=l.toRaw(k),re=Q?Reflect.ownKeys(Q):[];(H?Reflect.ownKeys(H):[]).forEach(fe=>{re.includes(fe)||(Q[fe]=[])}),b(Q)}if(W&&D){const H=l.toRaw(D),Q=l.toRaw(W),re=Q?Reflect.ownKeys(Q):[];(H?Reflect.ownKeys(H):[]).forEach(fe=>{re.includes(fe)||(Q[fe]=[])}),b(Q,!0)}},{deep:!0});const v=e,f=l.computed(()=>{const k={};k.height=E.value;const W=u?fn(a,!0):null;if(g.value&&W){if(g.value.type==="grid"){const Z=hn(W,g.value,t.span,t.offset);Object.assign(k,Z)}else if(g.value.type==="flow"){const Z=dn(W,g.value,t.span,t.offset,t.width);Object.assign(k,Z)}}else if(t.width){const Z=Se(t.width);k.width=Z}return k}),h=l.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${v}--${k}`]:!0,[`${v}--${k}-justify-${t.justify}`]:!0,[`${v}--${k}-align-${t.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${k}`]:!0,[`${v}--gutter`]:!0}}),F=l.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(t.columnWidth)W=`repeat(auto-fill, ${t.columnWidth})`;else{const Z=Ci(I.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),x=l.toRef(t,"gutter"),S=l.toRef(t,"column"),q=l.computed(()=>u||d.value?!0:ce(t.isWrap)),P=[],_=k=>{P.push(k)},O=()=>{let k=P.length;P.splice(0,k)},I=l.ref(-1),w=k=>{const W=an(k).width;W>0&&W!==I.value&&(I.value=W)};al(a,I.value,S.value,x.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([I,S,x],([k,W,Z])=>{i.order.index=0,al(a,k,W,Z,!1,t.minItemWidth,t.maxItemWidth,t.type)});const z=l.computed(()=>L.value?t.expandText??"":t.collapseText??""),y=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),A=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),X=l.ref(),V=l.ref(),E=l.computed(()=>j.value||Se(t.height)||""),L=l.ref(!1),j=l.ref(""),U=l.ref(!1);let ee=-1;const B=(k,W=!0)=>{const Z=X.value;if(Z&&L.value!==k){if(ee=ee===-1?Ti(Z):ee,U.value=!0,W)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",k||(j.value="",U.value=!1)},k){let D=0;t.collapseHeight?D=t.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(D=V.value.offsetHeight),j.value=`${ee}px`,l.nextTick(()=>{j.value=`${D}px`})}else j.value=`${ee}px`;else if(k){let D=0;t.collapseHeight?D=t.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(D=V.value.offsetHeight),j.value=`${D}px`}else U.value=!1,j.value=`${ee}px`;L.value=k,o.emit("update:collapse",k)}};l.watch(()=>t.collapse,k=>{B(k)});const ne=k=>{o.emit("header-click",k)},N=()=>{$()},$=k=>{k=k??!L.value,B(k)};xe({toggleCollapse:$,doLayout:()=>{P[0]&&(w(P[0]),al(a,I.value,S.value,x.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let R=null,C=!0;const K=k=>{if(t.rules){const W=l.toRaw(t.rules);b(W)}if(t.pureDataRules){const W=l.toRaw(t.pureDataRules);b(W,!0)}if(rt&&(k&&B(ce(t.collapse),!1),t.autoLayout&&Array.isArray(P)&&P.length>0)){const W=P[0];if(w(W),window.ResizeObserver){const Z=He(()=>w(W),120);R=new window.ResizeObserver(Z),R.observe(W)}}},J=()=>{R?.disconnect(),R=null},le=!d.value||s?.acquire();le&&(c.value=d.value?!0:null),l.onMounted(()=>{if(le&&(K(C),C=!1),d.value&&s){let k=null,W=s.initialHeight;s.observe(X.value,Z=>{if(Z!==c.value)if(Z)c.value=!0,L.value||(j.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(K(C),C=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!L.value)if(C)j.value=s.initialHeight;else{let D=il(X.value);D<=0?j.value=W:(j.value=`${D}px`,W=j.value)}C||J()}})}}),l.onUnmounted(()=>{R?.disconnect(),s&&s.unobserve(X.value)});const G=(k="right")=>{const W=[];if(z.value){const H={class:y.value},Q=l.h("span",H,[z.value]);W.push(Q)}const Z={class:A.value},D=r(t.collapseIcon,Z);return D&&W.push(D),W.length>0?l.h("div",{class:{[`${v}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:N},W):null},Y=(k,W,Z,D)=>{const H={...h.value};if(W===0&&(H[`${v}__first`]=!0),Z>=D-1&&(H[`${v}__last`]=!0),q.value===!1){const Q=o.attrs.class;Q&&(H[`${Q}`]=!0)}return l.h("div",{ref:_,key:`${W}`,class:H,style:F.value},k)};return()=>{if(d.value&&c.value!==!0){const H=t.tag||"div";return l.h(H,{ref:X,prop:t.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:f.value},[])}i.order.index=0;const k=[];let W=0;if(o.slots.header){const H={key:`${W++}`,ref:V,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:ne},Q=l.h("div",H,[o.slots.header()]);k.push(Q)}else{const H=[],Q=t.collapsePosition==="left";if(Q&&t.showCollapse){const re=G("left");re&&H.push(re)}if(t.title||o.slots.title){if(t.showMark){const re={class:{[`${v}__header-mark`]:!0}};t.markColor&&(re.style={background:t.markColor});const ue=l.h("div",re);H.push(ue)}if(o.slots.title){const re=l.h("div",{class:{[`${v}__header-title`]:!0}},[o.slots.title()]);H.push(re)}else if(t.title){const re=l.h("div",{class:{[`${v}__header-title`]:!0}},[t.title]);H.push(re)}}if(o.slots.toolbar&&H.push(o.slots.toolbar()),!Q&&t.showCollapse){const re=G("right");re&&H.push(re)}if(H.length>0){const re={key:`${W++}`,ref:V,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:ne},ue=l.h("div",re,H);k.push(ue)}}O();const Z=o.slots.default?o.slots.default():[],D=i.layout.value.type;if(D==="grid"){const H=Y(Z,W++,0,Z.length);k.push(H)}else if(D==="flow"){const H=Y(Z,W++,0,Z.length);k.push(H)}else for(let H=0;H<Z.length;H++){const Q=Z[H],re=Y([Q],W++,H,Z.length);k.push(re)}if(q.value){const H=t.tag||"div";return l.h(H,{ref:X,prop:t.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:f.value},[k])}else return k}}}}const{componentName:Ei,create:ki,scope:Ii}=ie("group"),sl=ki(Ni(Ei,Ii,(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]}))));function Oi(e){return e===window}const Di=/matrix\((.+)\)/,ul=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(Oi(n))return{x:0,y:0};let r=0,t=0,o=n;for(;o!==null;)r+=o.offsetLeft,t+=o.offsetTop,o=o.offsetParent;let a=0,i=0,u=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,a+=o.scrollLeft;const{transform:c}=window.getComputedStyle(o);if(c){const d=Di.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}o=o.parentNode}return r-=a,t-=i,r+=u,t+=s,{x:r,y:t}};class Vi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const r=this.watchedListeners.indexOf(n);r!==-1&&this.watchedListeners.splice(r,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ri{monitorRegister=new WeakMap;watch(n,r){let t=n.parentNode;const o=document.body.parentNode;for(;t&&t!==o;){let a=this.monitorRegister.get(t);a||(a=new Vi,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(r),t=t.parentNode}}unwatch(n,r){let t=n.parentNode;const o=document.body.parentNode;for(;t&&t!==o;){let a=this.monitorRegister.get(t);a&&(a.remove(r),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const Dt=new Ri,Zr={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:Fi,create:Ai}=ie("price"),Mi=Ai({props:{...Zr},setup(e){const n=l.computed(()=>({[Fi]:!0})),r=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>Nt(e.price)==0?"":zt(e.price,e.decimalLength,!0,Ce(e.digits),e.separator)),o=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:r,intText:o,decimalText:a}}}),Ge=(e,n)=>{const r=e.__vccOpts||e;for(const[t,o]of n)r[t]=o;return r},Li=["innerHTML"],Bi=["innerHTML"];function qi(e,n,r,t,o,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Li)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Bi)):l.createCommentVNode("",!0)],2)}const gn=Ge(Mi,[["render",qi]]),{componentName:cl,create:Pi}=ie("hint-text"),_i=Pi({components:{Price:gn},props:{...Zr,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 r=l.ref({top:null,right:null,bottom:null,left:null}),t=l.ref({x:0,y:0}),o=l.ref(0),a=l.ref(0),i=l.ref(e.placement),u=l.ref(!1),s=l.ref(null),c=(y,A,X,V,E,L)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,ee=y.split("-");let B=[];ee[0]==="top"?B=["top","bottom","right","left"]:ee[0]==="bottom"?B=["bottom","top","right","left"]:ee[0]==="left"?B=["left","top","bottom","right"]:ee[0]==="right"&&(B=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},N=[];for(let $=0;$<B.length;$++){const M=B[$];if(N[0]=M,ee[1]&&(N[1]=ee[1]),M==="top"){const R=A.y-L-e.arrowSize-e.offset;if(R>=0){ne.top=R;let C=0;ee[1]==="start"?C=A.x:ee[1]==="end"?C=A.x+X-E:C=A.x+X/2-E/2;const K=j-C-E;K<0?(C+=K,g.value=-K):g.value=0,ne.left=C<0?0:C;break}}else if(M==="bottom"){const R=A.y+V+e.arrowSize+e.offset;if(R+L<=U){ne.top=R;let C=0;ee[1]==="start"?C=A.x:ee[1]==="end"?C=A.x+X-E:C=A.x+X/2-E/2;const K=j-C-E;K<0?(C+=K,g.value=-K):g.value=0,ne.left=C<0?0:C;break}}else if(M==="left"){const R=A.x-E-e.arrowSize-e.offset;if(R>=0){ne.left=R;let C=0;ee[1]==="start"?C=A.y:ee[1]==="end"?C=A.y+V-L:C=A.y+V/2-L/2,ne.top=C<0?0:C;break}}else if(M==="right"){const R=A.x+X+e.arrowSize+e.offset;if(R+E<=j){ne.left=R;let C=0;ee[1]==="start"?C=A.y:ee[1]==="end"?C=A.y+V-L:C=A.y+V/2-L/2,ne.top=C<0?0:C;break}}}return{bestPlacement:N.join("-"),bestInsetRect:ne}},d=(y,A,X=10)=>{if(!rt||A===!1||!y)return;t.value=ul(e.reference),o.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const V=s.value.offsetHeight,E=s.value.offsetWidth,{bestPlacement:L,bestInsetRect:j}=c(e.placement,t.value,o.value,a.value,E,V);i.value=L,r.value=j,u.value=!0},g=l.ref(0),p=He(()=>{d(e.message,e.visible)},10),b=l.ref(e.visible);l.watch(()=>e.visible,y=>{b.value=y});const v=l.computed(()=>b.value&&f.value),f=l.ref(!0),h=He(y=>{const A=y[0];A&&(f.value=A.isIntersecting)},10),F=new IntersectionObserver(h);l.watch([()=>e.message,()=>e.visible],([y,A])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Dt.watch(e.reference,p),F.observe(e.reference)}),l.onBeforeUnmount(()=>{Dt.unwatch(e.reference,p),F.unobserve(e.reference),F.disconnect()});const x=l.computed(()=>{const y={[cl]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),S=l.computed(()=>{const y={};r.value.top!==null&&(y.top=`${r.value.top}px`),r.value.right!==null&&(y.right=`${r.value.right}px`),r.value.bottom!==null&&(y.bottom=`${r.value.bottom}px`),r.value.left!==null&&(y.left=`${r.value.left}px`),e.autoFit&&(y["min-width"]=`${o.value}px`);const A=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${A}px`,u.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=l.computed(()=>{const y=[`${cl}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),P=l.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),_=l.computed(()=>({[`${cl}__arrow`]:!0})),O=l.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),I=l.computed(()=>v.value&&e.closeOnClick),w=l.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:v,tipRef:s,classes:x,styles:S,textClasses:q,textStyles:P,arrowClasses:_,arrowStyles:O,overlayShow:I,overlayStyle:w,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),ji=["innerHTML"];function zi(e,n,r,t,o,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ji))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Vt=Ge(_i,[["render",zi]]);class Qr{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 fl={},Hi=new Qr,bt=new Map,mn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const r=document.getElementById(n);r&&r.parentNode?.removeChild(r)}bt.clear()}},Ki=e=>{e.unmount=mn;const n=document.getElementById(e.id);if(n){const r=bt.get(e.id);r?e={...fl,...r,...e}:e={...fl,...e},e.transition=!1;const t=l.createVNode(Vt,e);l.render(t,n)}return e.id},Wi=e=>{e.unmount=mn;let n=e.id??`hinttext_${Hi.get()}`;e={...fl,...e},e.id=n,bt.set(n,e);const r=document.createElement("div");r.id=e.id;const t=l.createVNode(Vt,e);return l.render(t,r),document.body.appendChild(r),n},Yi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Le={show(e,n,r={},t=!0){Yi(n);const o=r.id;return o&&bt.has(o)?Ki({...r,message:n,reference:e}):(t&&mn(),Wi({...r,message:n,reference:e}))},hide(e){mn(e)},install(e){e.config.globalProperties.$hintText=Le}};function Ui(e,n,r,t=!1){return{inheritAttrs:!0,props:{...$e,...Ve},emits:["appear","disappear"],setup(o,a){const i=o.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=ot(),s=sn();un(!1);const c=l.computed(()=>s&&u?cn(u,!1).value:null),d=e,g=l.ref(null),p=l.computed(()=>{const D={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:o.span==="stretch",[`${d}__input--border`]:ce(o.hasBorder)};if(D[o.errorMarkClass]=!!L.value,D[o.warnMarkClass]=!!V.value,D[o.infoMarkClass]=!!A.value,typeof g.value=="function"){const H=g.value(i);D[H]=!0}else if(typeof g.value=="string"){const H=g.value;D[H]=!0}return D}),b=l.ref(null),v=l.computed(()=>{const D={};if(o.width)o.width!=="auto"&&(D.width=Se(o.width));else{const H=s&&u?fn(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const Q=hn(H,c.value,o.span,o.offset);Object.assign(D,Q)}else if(c.value.type==="flow"){const Q=dn(H,c.value,o.span,o.offset,o.width);Object.assign(D,Q)}}}if(typeof b.value=="function"){const H=b.value(i);H&&Object.assign(D,H)}else if(b.value&&typeof b.value=="object"){const H=b.value;Object.assign(D,H)}return D}),f=l.ref(null),h=l.computed({get:()=>f.value??ce(o.isRequired),set:D=>{f.value=D}}),F=()=>typeof o.label=="string"&&o.label.length>0||typeof a.slots.label=="function",x=Fe(l.toRef(o,"labelPosition"),"labelPosition",_e.Near),S=l.computed(()=>x&&x.value==="top"?"top":x&&x.value==="right"?"right":"left"),q=l.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${S.value}`]:!0})),P=l.computed(()=>({label:!0,[`label--${S.value}`]:!0})),_=Fe(l.toRef(o,"labelWidth"),"labelWidth",_e.Near),O=l.computed(()=>_&&_.value?{width:Se(_.value)}:{}),I=l.computed(()=>({"label--string":!0,"label--required":h.value})),w=l.computed(()=>({content:!0,[o.contentClass]:!0})),z=l.computed(()=>({...o.contentStyle})),y=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(D){h.value=D},setErrorTip(D){y.errorTip=D},setErrorIcon(D){y.errorIcon=D},setWarnTip(D){y.warnTip=D},setWarnIcon(D){y.warnIcon=D},setInfoTip(D){y.infoTip=D},setInfoIcon(D){y.infoIcon=D},setCustomClassName(D){g.value=D},setCustomStyle(D){b.value=D}});const A=l.computed(()=>o.infoTip||y.infoTip),X=l.computed(()=>o.infoIcon||y.infoIcon),V=l.computed(()=>o.warnTip||y.warnTip),E=l.computed(()=>o.warnIcon||y.warnIcon),L=l.computed(()=>o.errorTip||y.errorTip),j=l.computed(()=>o.errorIcon||y.errorIcon),U=l.computed(()=>L.value?"error":V.value?"warn":A.value?"info":""),ee=()=>U.value.length>0,B=l.computed(()=>U.value==="error"?L.value:U.value==="warn"?V.value:U.value==="info"?A.value:""),ne=l.computed(()=>U.value==="error"?j.value:U.value==="warn"?E.value:U.value==="info"?X.value:null),N=l.computed(()=>{const D={[`${d}__tip`]:!0,[`${d}__tip--${U.value}`]:!0,[`${d}--animate`]:!0};return U.value==="error"&&o.errorClass?D[`${o.errorClass}`]=!0:U.value==="warn"&&o.warnClass?D[`${o.warnClass}`]=!0:U.value==="info"&&o.infoClass&&(D[`${o.infoClass}`]=!0),D}),$=l.computed(()=>{const D={};return x&&x.value==="top"||!F()?D["padding-left"]="0px":_&&_.value&&(D["padding-left"]=Se(_.value)),D}),M=l.ref();let R="";l.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([D,H,Q,re])=>{M.value&&(D&&!he(H)?R?r.show(M.value,H,{...re,id:R,type:Q},!0):R=r.show(M.value,H,{...re,type:Q},!0):r.hide(R))});let C=null;const K=()=>{C||!M.value||(C=new IntersectionObserver(D=>{let H=!1;for(let Q of D)if(Q.intersectionRatio>0){H=!0,H&&a.emit("appear",Q);break}H||a.emit("disappear")}),C.observe(M.value))},J=()=>{!C||!M.value||(C.unobserve(M.value),C=null)};l.watch(()=>ce(o.appearListen),D=>{D?K():J()}),l.onMounted(()=>{ce(o.appearListen)&&K()}),l.onUnmounted(J);const le=()=>{if(!F())return null;const D=[],H=a.slots?.label?.()??o.label,Q={class:I.value},re=l.h("div",Q,[H]);if(D.push(re),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();D.push(fe)}const ue={class:P.value,style:O.value};return l.h("div",ue,D)},G=()=>{const D=[];if(a.slots.prepend){const Q=a.slots.prepend();D.push(Q)}if(a.slots.default){const Q=a.slots.default();D.push(Q)}if(a.slots.append){const Q=a.slots.append();D.push(Q)}if(a.slots.fixedTip){const Q={class:[`${d}__fixed-tip`]},re=l.h("div",Q,[a.slots.fixedTip()]);D.push(re)}const H={ref:M,class:w.value,style:z.value};return l.h("div",H,D)},Y=()=>{const D=ne.value;return D?typeof D=="function"?l.h("div",{class:"fox-item__tip--icon"},[D()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(D)]):null},k=()=>{const D=B.value;return D?typeof D=="function"?l.h("div",{class:"fox-item__tip--text"},[D()]):l.h("div",{class:"fox-item__tip--text"},[D]):null},W=()=>{if(!ee())return null;const D=[],H=Y();H&&D.push(H);const Q=k();Q&&D.push(Q);const re={class:N.value,style:$.value};return l.h("div",re,D)},Z=()=>a.slots?.hide?.()??null;return()=>{const D=[],H=[],Q=le();Q&&H.push(Q);const re=G();re&&H.push(re);const ue={class:q.value},fe=l.h("div",ue,H);D.push(fe);const be=W();be&&D.push(be);const ye=Z();ye&&D.push(ye);const Ee={class:p.value,style:v.value,prop:o.prop};return l.h("div",Ee,D)}}}}const{componentName:Gi,create:Xi,scope:Zi}=ie("item"),Ne=Xi(Ui(Gi,Zi,Le,!1)),dl={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Qi(e,n){return{props:{...dl},setup(r,t){const o=ot(),a=sn();un(!1);const i=l.computed(()=>a&&o?cn(o,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),c=l.computed(()=>{const d={};if(r.width)r.width!=="auto"&&(d.width=Se(r.width));else{const g=a&&o?fn(o,!1):null;if(i.value&&g)if(i.value.type==="grid"){const p=hn(g,i.value,r.span,r.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=dn(g,i.value,r.span,r.offset,r.width);Object.assign(d,p)}else return r.width&&(d.width=Se(r.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",d,t.slots.default()):l.h("div",d)}}}}const{componentName:Ji,create:es}=ie("slot-item"),yn=es(Qi(Ji));function ts(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(r,t){const o=e,a=l.computed(()=>({[o]:!0,[`${o}__stretch`]:r.span==="stretch",[`${o}__${r.align}`]:!0})),i=ot(),u=sn();un(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=cn(i,!1),g=fn(i,!1);if(d.value&&g)if(d.value.type==="grid"){const p=hn(g,d.value,r.span,r.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=dn(g,d.value,r.span,r.offset,r.width);Object.assign(c,p)}else r.width&&(c.width=Se(r.width))}else r.width&&(c.width=Se(r.width));return c});return()=>{const c=[];if(t.slots.default){const g=t.slots.default();if(r.divide)for(let p=0;p<g.length;p++){if(p>0){const b=l.h("div",{class:{[`${o}__divide`]:!0}});c.push(b)}c.push(g[p])}else Reflect.apply([].push,c,g)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:ns,create:ls}=ie("row-item"),hl=ls(ts(ns)),Xe=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},Jr={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 rs(e,n,r){return{props:{...$e,...Ve,...Jr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(!1),b=ge(t,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0,[`${v}__disabled`]:i.value,[`${v}__readonly`]:s.value})),h=E=>{b.value=E,c("update:modelValue",E),c("input",E)},F=E=>{c("change",E)};let x=ge(t,"hintText"),S=l.ref(!1);const q=E=>{let j=E.target.value;p.value=!0,he(x.value)||(S.value=!0),c("focus",j,E)},P=E=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let j=E.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,E)},_=()=>{c("clear","")},O=l.ref(!1);let I=null;const w=()=>{t.showTooltip&&O.value===!1&&(I&&clearTimeout(I),I=setTimeout(()=>{O.value=!0},150))},z=()=>{I&&(clearTimeout(I),O.value=!1,I=null)},y=l.computed(()=>O.value||S.value),A=l.computed(()=>O.value?b.value:x.value),X=l.computed(()=>Nt(t.unit)>0),V=l.ref();return xe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const L={...Xe(o.attrs),ref:V,class:f.value,placeholder:g.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:_,onChange:F,onInput:h,onFocus:q,onBlur:P,onMouseover:w,onMouseleave:z},j={};o.slots.prepend&&(j.prepend=o.slots.prepend),o.slots.append&&(j.append=o.slots.append),o.slots.prefix&&(j.prefix=o.slots.prefix),o.slots.suffix?j.suffix=o.slots.suffix:X.value&&(j.suffix=()=>[t.unit]);const U=[],ee=l.h(T.ElInput,L,j);U.push(ee);const B={default:()=>U};B.label=o.slots.default,B.fixedPreTip=o.slots.fixedPreTip,B.fixedTip=o.slots.fixedTip;const N={...De(t,Jr),hintText:A.value,hintVisible:y.value};return t.prop&&(N.prop=`${t.prop}_item`),l.h(r,N,B)}}}}const{componentName:os,create:as,scope:is}=ie("input-item"),gl=as(rs(os,is,Ne));function it(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function eo(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 us=class{proxy;constructor(n){this.proxy=n}async load(n,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=je(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await o(r,t))}};function cs(){const e=l.getCurrentInstance();return new us(e.proxy)}function to(e,n,r){const t=it(e,n),o=it(e,r);if(t!==o)return!1;const a=Rt(e,n),i=Rt(e,r);return a===i}function no(e,n,r,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(a=>{for(let i of t){const u=eo(e,i);if(Array.isArray(u)&&u.length>0){const s=no(e,a,r,u)??[];Reflect.apply([].push,o,s)}else{let s=!1;if(r==="text")s=it(e,i)===a;else if(r==="item")s=to(e,i,a);else{let c=Rt(e,i);c==null&&(c=it(e,i)),s=c===a}if(s){o.push(i);break}}}}),o}function fs(e){return{text:e,value:e}}const lo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ds(e,n,r){return{props:{...$e,...Ve,...lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(null),b=l.ref([]),v=l.computed(()=>b.value?b.value.map(W=>it(t,W)).join(" "):""),f=(k,W,Z,D=!0)=>{if(!Z||Z.length==0){p.value=k,D&&(c("update:modelValue",k),c("change",k));return}const H=no(t,k,W,Z);if(H===null){if(b.value===null||b.value.length===0)return;p.value=null,b.value=[],D&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let Q=!0;if(H.length!==b.value.length)Q=!1;else for(let re=0;re<H.length;re++){const ue=H[re],fe=b.value[re];if(!to(t,ue,fe)){Q=!1;break}}if(!Q){b.value=H;let re=[],ue=[],fe=[];H.forEach(Ke=>{const ht=Rt(t,Ke),Tt=it(t,Ke);re.push(ht),fe.push(Tt),t.valueType==="text"?ue.push(Tt):t.valueType==="item"?ue.push(Ke):ue.push(ht)});let be,ye,Ee;ce(t.multiple)?(p.value=re,be=l.toRaw(ue),ye=fe,Ee=l.toRaw(H)):(p.value=re[0]??"",be=l.toRaw(ue[0]??""),ye=fe[0]??"",Ee=l.toRaw(H[0])),D&&(c("update:modelValue",be),c("change",be,Ee)),c("update:text",ye)}},h=l.ref(null),F=l.ref(null),x=l.computed(()=>F.value??h.value??[]),S=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,k=>ce(k)),q=cs(),P=async(k,W)=>{if(k){const Z=await q.load("select",k,W);if(Z.length>0)if(typeof Z[0]=="string"){let Q=Z.map(re=>fs(re));h.value=Q}else h.value=Z;else h.value=null}};l.watch([()=>t.source,()=>t.params],([k,W])=>{F.value=null,P(k,W)},{immediate:!S.value});let _=!1;const O=()=>{_||(_=!0,P(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([k,W])=>{if(y()&&ce(t.multiple)){tt(W,p.value)||(p.value=W);return}f(W,t.valueType,x.value,!1),c("setValue",W)}),t.source||(p.value=t.modelValue);let I=null,w=l.ref(!1);typeof t.remoteMethod=="function"&&(I=async k=>{if(k==null){F.value=null;return}w.value=!0;try{const W=await t.remoteMethod(k);W&&(F.value=W)}catch(W){F.value=null,console.error(W)}w.value=!1});let z=null;typeof t.filterMethod=="function"&&(z=async k=>{if(k==null){F.value=null;return}w.value=!0;try{const W=await t.filterMethod(k,h.value);W&&(F.value=W)}catch(W){F.value=null,console.error(W)}w.value=!1});const y=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",A=l.ref(!1),X=e,V=l.computed(()=>({[X]:!0})),E=k=>{t.allowCreate||y()&&ce(t.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),p.value=k):f(k,"value",x.value,!0)};let L=ge(t,"hintText"),j=l.ref(!1);const U=k=>{let Z=k.target.value;A.value=!0,he(L.value)||(j.value=!0),c("focus",Z,k)},ee=k=>{setTimeout(()=>{j.value&&(j.value=!1),A.value=!1},0);let Z=k.target.value;t.maxLength&&Z.length>Number(t.maxLength)&&(Z=Z.slice(0,Number(t.maxLength))),K.value||c("blur",Z,k)},B=()=>{c("clear","")},ne=l.ref(!1);let N=null;const $=()=>{t.showTooltip&&ne.value===!1&&(N&&clearTimeout(N),N=setTimeout(()=>{ne.value=!0},150))},M=()=>{N&&(clearTimeout(N),ne.value=!1,N=null)},R=l.computed(()=>ne.value||j.value),C=l.computed(()=>ne.value?v.value:L.value),K=l.ref(!1),J=k=>{K.value=k,c("visible-change",k),k||c("selected")},le=k=>{c("remove-tag",k)},G=(k,W)=>{const Z=[];return k.forEach((D,H)=>{const Q=eo(t,D);if(Array.isArray(Q)&&Q.length>0){const re=G(Q,W),ue=it(t,D),be={key:`${ue}_${H}`,label:ue};Z.push(l.h(T.ElOptionGroup,be,{default:()=>re}))}else{const re=Rt(t,D),ue=it(t,D),fe=ss(t,D),ye={key:`${re}_${H}`,label:ue,disabled:fe,value:re};if(typeof W=="function")Z.push(l.h(T.ElOption,ye,{default:()=>W(D)}));else if(t.optionType==="item"){const Ee={class:{"fox-select-item__option-left":!0}},Ke=l.h("span",Ee,[re]),ht={class:{"fox-select-item__option-right":!0}},Tt=l.h("span",ht,[ue]),ur=l.h("div",{class:{"fox-select-item__option":!0}},[Ke,Tt]);Z.push(l.h(T.ElOption,ye,{default:()=>ur}))}else t.optionType==="value"?Z.push(l.h(T.ElOption,ye,{default:()=>[re]})):Z.push(l.h(T.ElOption,ye))}}),Z},Y=l.ref();return xe({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const W={...Xe(o.attrs),ref:Y,class:V.value,clearable:t.clearable,multiple:t.multiple,placeholder:g.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:B,onChange:E,onFocus:U,onBlur:ee,onVisibleChange:J,onRemoveTag:le};typeof I=="function"&&(W["remote-method"]=I,W.loading=w.value),typeof z=="function"&&(W["filter-method"]=z,W.loading=w.value);const Z={};o.slots.prefix&&(Z.prefix=o.slots.prefix),o.slots.empty&&(Z.empty=o.slots.empty),o.slots.options?Z.default=o.slots.options:Z.default=()=>G(x.value,o.slots.option);const D=[],H=l.h(T.ElSelect,W,Z);D.push(H);const Q={default:()=>D};Q.label=o.slots.default,Q.fixedPreTip=o.slots.fixedPreTip,Q.fixedTip=o.slots.fixedTip;const ue={...De(t,lo),hintText:C.value,hintVisible:R.value,onMouseover:$,onMouseleave:M};return t.prop&&(ue.prop=`${t.prop}_item`),S.value&&(ue["appear-listen"]=!0,ue.onAppear=O),l.h(r,ue,Q)}}}}const{componentName:hs,create:gs,scope:ms}=ie("select-item"),ml=gs(ds(hs,ms,Ne));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pn={exports:{}},ys=pn.exports,ro;function ps(){return ro||(ro=1,function(e,n){(function(r,t){e.exports=t()})(ys,function(){var r=1e3,t=6e4,o=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",g="month",p="quarter",b="year",v="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var E=["th","st","nd","rd"],L=V%100;return"["+V+(E[(L-20)%10]||E[L]||E[0])+"]"}},S=function(V,E,L){var j=String(V);return!j||j.length>=E?V:""+Array(E+1-j.length).join(L)+V},q={s:S,z:function(V){var E=-V.utcOffset(),L=Math.abs(E),j=Math.floor(L/60),U=L%60;return(E<=0?"+":"-")+S(j,2,"0")+":"+S(U,2,"0")},m:function V(E,L){if(E.date()<L.date())return-V(L,E);var j=12*(L.year()-E.year())+(L.month()-E.month()),U=E.clone().add(j,g),ee=L-U<0,B=E.clone().add(j+(ee?-1:1),g);return+(-(j+(L-U)/(ee?U-B:B-U))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:g,y:b,w:d,d:c,D:v,h:s,m:u,s:i,ms:a,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},P="en",_={};_[P]=x;var O="$isDayjsObject",I=function(V){return V instanceof A||!(!V||!V[O])},w=function V(E,L,j){var U;if(!E)return P;if(typeof E=="string"){var ee=E.toLowerCase();_[ee]&&(U=ee),L&&(_[ee]=L,U=ee);var B=E.split("-");if(!U&&B.length>1)return V(B[0])}else{var ne=E.name;_[ne]=E,U=ne}return!j&&U&&(P=U),U||!j&&P},z=function(V,E){if(I(V))return V.clone();var L=typeof E=="object"?E:{};return L.date=V,L.args=arguments,new A(L)},y=q;y.l=w,y.i=I,y.w=function(V,E){return z(V,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var A=function(){function V(L){this.$L=w(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[O]=!0}var E=V.prototype;return E.parse=function(L){this.$d=function(j){var U=j.date,ee=j.utc;if(U===null)return new Date(NaN);if(y.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var B=U.match(h);if(B){var ne=B[2]-1||0,N=(B[7]||"0").substring(0,3);return ee?new Date(Date.UTC(B[1],ne,B[3]||1,B[4]||0,B[5]||0,B[6]||0,N)):new Date(B[1],ne,B[3]||1,B[4]||0,B[5]||0,B[6]||0,N)}}return new Date(U)}(L),this.init()},E.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},E.$utils=function(){return y},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(L,j){var U=z(L);return this.startOf(j)<=U&&U<=this.endOf(j)},E.isAfter=function(L,j){return z(L)<this.startOf(j)},E.isBefore=function(L,j){return this.endOf(j)<z(L)},E.$g=function(L,j,U){return y.u(L)?this[j]:this.set(U,L)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(L,j){var U=this,ee=!!y.u(j)||j,B=y.p(L),ne=function(le,G){var Y=y.w(U.$u?Date.UTC(U.$y,G,le):new Date(U.$y,G,le),U);return ee?Y:Y.endOf(c)},N=function(le,G){return y.w(U.toDate()[le].apply(U.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(G)),U)},$=this.$W,M=this.$M,R=this.$D,C="set"+(this.$u?"UTC":"");switch(B){case b:return ee?ne(1,0):ne(31,11);case g:return ee?ne(1,M):ne(0,M+1);case d:var K=this.$locale().weekStart||0,J=($<K?$+7:$)-K;return ne(ee?R-J:R+(6-J),M);case c:case v:return N(C+"Hours",0);case s:return N(C+"Minutes",1);case u:return N(C+"Seconds",2);case i:return N(C+"Milliseconds",3);default:return this.clone()}},E.endOf=function(L){return this.startOf(L,!1)},E.$set=function(L,j){var U,ee=y.p(L),B="set"+(this.$u?"UTC":""),ne=(U={},U[c]=B+"Date",U[v]=B+"Date",U[g]=B+"Month",U[b]=B+"FullYear",U[s]=B+"Hours",U[u]=B+"Minutes",U[i]=B+"Seconds",U[a]=B+"Milliseconds",U)[ee],N=ee===c?this.$D+(j-this.$W):j;if(ee===g||ee===b){var $=this.clone().set(v,1);$.$d[ne](N),$.init(),this.$d=$.set(v,Math.min(this.$D,$.daysInMonth())).$d}else ne&&this.$d[ne](N);return this.init(),this},E.set=function(L,j){return this.clone().$set(L,j)},E.get=function(L){return this[y.p(L)]()},E.add=function(L,j){var U,ee=this;L=Number(L);var B=y.p(j),ne=function(M){var R=z(ee);return y.w(R.date(R.date()+Math.round(M*L)),ee)};if(B===g)return this.set(g,this.$M+L);if(B===b)return this.set(b,this.$y+L);if(B===c)return ne(1);if(B===d)return ne(7);var N=(U={},U[u]=t,U[s]=o,U[i]=r,U)[B]||1,$=this.$d.getTime()+L*N;return y.w($,this)},E.subtract=function(L,j){return this.add(-1*L,j)},E.format=function(L){var j=this,U=this.$locale();if(!this.isValid())return U.invalidDate||f;var ee=L||"YYYY-MM-DDTHH:mm:ssZ",B=y.z(this),ne=this.$H,N=this.$m,$=this.$M,M=U.weekdays,R=U.months,C=U.meridiem,K=function(G,Y,k,W){return G&&(G[Y]||G(j,ee))||k[Y].slice(0,W)},J=function(G){return y.s(ne%12||12,G,"0")},le=C||function(G,Y,k){var W=G<12?"AM":"PM";return k?W.toLowerCase():W};return ee.replace(F,function(G,Y){return Y||function(k){switch(k){case"YY":return String(j.$y).slice(-2);case"YYYY":return y.s(j.$y,4,"0");case"M":return $+1;case"MM":return y.s($+1,2,"0");case"MMM":return K(U.monthsShort,$,R,3);case"MMMM":return K(R,$);case"D":return j.$D;case"DD":return y.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return K(U.weekdaysMin,j.$W,M,2);case"ddd":return K(U.weekdaysShort,j.$W,M,3);case"dddd":return M[j.$W];case"H":return String(ne);case"HH":return y.s(ne,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return le(ne,N,!0);case"A":return le(ne,N,!1);case"m":return String(N);case"mm":return y.s(N,2,"0");case"s":return String(j.$s);case"ss":return y.s(j.$s,2,"0");case"SSS":return y.s(j.$ms,3,"0");case"Z":return B}return null}(G)||B.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(L,j,U){var ee,B=this,ne=y.p(j),N=z(L),$=(N.utcOffset()-this.utcOffset())*t,M=this-N,R=function(){return y.m(B,N)};switch(ne){case b:ee=R()/12;break;case g:ee=R();break;case p:ee=R()/3;break;case d:ee=(M-$)/6048e5;break;case c:ee=(M-$)/864e5;break;case s:ee=M/o;break;case u:ee=M/t;break;case i:ee=M/r;break;default:ee=M}return U?ee:y.a(ee)},E.daysInMonth=function(){return this.endOf(g).$D},E.$locale=function(){return _[this.$L]},E.locale=function(L,j){if(!L)return this.$L;var U=this.clone(),ee=w(L,j,!0);return ee&&(U.$L=ee),U},E.clone=function(){return y.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},V}(),X=A.prototype;return z.prototype=X,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",g],["$y",b],["$D",v]].forEach(function(V){X[V[1]]=function(E){return this.$g(E,V[0],V[1])}}),z.extend=function(V,E){return V.$i||(V(E,A,z),V.$i=!0),z},z.locale=w,z.isDayjs=I,z.unix=function(V){return z(1e3*V)},z.en=_[P],z.Ls=_,z.p={},z})}(pn)),pn.exports}var bs=ps();const et=nt(bs);var bn={exports:{}},vs=bn.exports,oo;function ws(){return oo||(oo=1,function(e,n){(function(r,t){e.exports=t()})(vs,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var F=h.match(/([+-]|\d\d)/g),x=60*F[1]+(+F[2]||0);return x===0?0:F[0]==="+"?-x:x}(f)}],g=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},p=function(f,h){var F,x=u.meridiem;if(x){for(var S=1;S<=24;S+=1)if(f.indexOf(x(S,0,h))>-1){F=S>12;break}}else F=f===(h?"pm":"PM");return F},b={A:[i,function(f){this.afternoon=p(f,!1)}],a:[i,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[o,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(f){var h=u.ordinal,F=f.match(/\d+/);if(this.day=F[0],h)for(var x=1;x<=31;x+=1)h(x).replace(/\[|\]/g,"")===f&&(this.day=x)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(f){var h=g("months"),F=(g("monthsShort")||h.map(function(x){return x.slice(0,3)})).indexOf(f)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[i,function(f){var h=g("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function v(f){var h,F;h=f,F=u&&u.formats;for(var x=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,z,y){var A=y&&y.toUpperCase();return z||F[y]||r[y]||F[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(X,V,E){return V||E.slice(1)})})).match(t),S=x.length,q=0;q<S;q+=1){var P=x[q],_=b[P],O=_&&_[0],I=_&&_[1];x[q]=I?{regex:O,parser:I}:P.replace(/^\[|\]$/g,"")}return function(w){for(var z={},y=0,A=0;y<S;y+=1){var X=x[y];if(typeof X=="string")A+=X.length;else{var V=X.regex,E=X.parser,L=w.slice(A),j=V.exec(L)[0];E.call(z,j),w=w.replace(j,"")}}return function(U){var ee=U.afternoon;if(ee!==void 0){var B=U.hours;ee?B<12&&(U.hours+=12):B===12&&(U.hours=0),delete U.afternoon}}(z),z}}return function(f,h,F){F.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var x=h.prototype,S=x.parse;x.parse=function(q){var P=q.date,_=q.utc,O=q.args;this.$u=_;var I=O[1];if(typeof I=="string"){var w=O[2]===!0,z=O[3]===!0,y=w||z,A=O[2];z&&(A=O[2]),u=this.$locale(),!w&&A&&(u=F.Ls[A]),this.$d=function(L,j,U){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*L);var ee=v(j)(L),B=ee.year,ne=ee.month,N=ee.day,$=ee.hours,M=ee.minutes,R=ee.seconds,C=ee.milliseconds,K=ee.zone,J=new Date,le=N||(B||ne?1:J.getDate()),G=B||J.getFullYear(),Y=0;B&&!ne||(Y=ne>0?ne-1:J.getMonth());var k=$||0,W=M||0,Z=R||0,D=C||0;return K?new Date(Date.UTC(G,Y,le,k,W,Z,D+60*K.offset*1e3)):U?new Date(Date.UTC(G,Y,le,k,W,Z,D)):new Date(G,Y,le,k,W,Z,D)}catch{return new Date("")}}(P,I,_),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),y&&P!=this.format(I)&&(this.$d=new Date("")),u={}}else if(I instanceof Array)for(var X=I.length,V=1;V<=X;V+=1){O[1]=I[V-1];var E=F.apply(this,O);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}V===X&&(this.$d=new Date(""))}else S.call(this,q)}}})}(bn)),bn.exports}var Ss=ws();const xs=nt(Ss);var vn={exports:{}},Ts=vn.exports,ao;function Cs(){return ao||(ao=1,function(e,n){(function(r,t){e.exports=t()})(Ts,function(){return function(r,t){var o=t.prototype,a=o.format;o.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}});return a.bind(this)(d)}}})}(vn)),vn.exports}var $s=Cs();const Ns=nt($s);var wn={exports:{}},Es=wn.exports,io;function ks(){return io||(io=1,function(e,n){(function(r,t){e.exports=t()})(Es,function(){return function(r,t,o){var a=t.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,b,v,f){var h=g.name?g:g.$locale(),F=i(h[p]),x=i(h[b]),S=F||x.map(function(P){return P.slice(0,v)});if(!f)return S;var q=h.weekStart;return S.map(function(P,_){return S[(_+(q||0))%7]})},s=function(){return o.Ls[o.locale()]},c=function(g,p){return g.formats[p]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,f,h){return f||h.slice(1)})}(g.formats[p.toUpperCase()])},d=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},o.months=function(){return u(s(),"months")},o.monthsShort=function(){return u(s(),"monthsShort","months",3)},o.weekdays=function(g){return u(s(),"weekdays",null,null,g)},o.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},o.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})}(wn)),wn.exports}var Is=ks();const Os=nt(Is);var Sn={exports:{}},Ds=Sn.exports,so;function Vs(){return so||(so=1,function(e,n){(function(r,t){e.exports=t()})(Ds,function(){var r="week",t="year";return function(o,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(t).add(1,t).date(c),g=i(this).endOf(r);if(d.isBefore(g))return 1}var p=i(this).startOf(t).date(c).startOf(r).subtract(1,"millisecond"),b=this.diff(p,r,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(Sn)),Sn.exports}var Rs=Vs();const Fs=nt(Rs);var xn={exports:{}},As=xn.exports,uo;function Ms(){return uo||(uo=1,function(e,n){(function(r,t){e.exports=t()})(As,function(){return function(r,t){t.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})}(xn)),xn.exports}var Ls=Ms();const Bs=nt(Ls);var Tn={exports:{}},qs=Tn.exports,co;function Ps(){return co||(co=1,function(e,n){(function(r,t){e.exports=t()})(qs,function(){return function(r,t,o){t.prototype.dayOfYear=function(a){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})}(Tn)),Tn.exports}var _s=Ps();const js=nt(_s);var Cn={exports:{}},zs=Cn.exports,fo;function Hs(){return fo||(fo=1,function(e,n){(function(r,t){e.exports=t()})(zs,function(){return function(r,t){t.prototype.isSameOrAfter=function(o,a){return this.isSame(o,a)||this.isAfter(o,a)}}})}(Cn)),Cn.exports}var Ks=Hs();const Ws=nt(Ks);var $n={exports:{}},Ys=$n.exports,ho;function Us(){return ho||(ho=1,function(e,n){(function(r,t){e.exports=t()})(Ys,function(){return function(r,t){t.prototype.isSameOrBefore=function(o,a){return this.isSame(o,a)||this.isBefore(o,a)}}})}($n)),$n.exports}var Gs=Us();const Xs=nt(Gs);et.extend(Os),et.extend(Ns),et.extend(xs),et.extend(Fs),et.extend(Bs),et.extend(js),et.extend(Ws),et.extend(Xs);const ze={format(e,n){return et(e).format(n)},parser(e,n){return et(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,r){const o=new Date(e+"/"+n+"/"+r).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const r=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[r,t,o].join(n)},getDay(e,n,r){e=e||0;let t=n??new Date;const o=e*(1e3*60*60*24);return t=new Date(t.getTime()+o),r=r??"YYYY-MM-DD",this.format(t,r)},compareDate(e,n){let r;typeof e=="string"?r=new Date(e.replace("-","/").replace("-","/")):r=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(r>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let r;typeof e=="string"?r=new Date(e).getTime():r=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,r==t},getMonthWeek:function(e,n,r,t=0){const o=new Date(Number(e),parseInt(n)-1,Number(r));let a=o.getDay(),i=o.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,r,t=0){const o=new Date(Number(e),parseInt(n)-1,Number(r)),a=new Date(Number(e),0,1),i=Math.round((o.valueOf()-a.valueOf())/864e5);let u=o.getDay(),s=6-u;return t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,r,t=0){const o=new Date(Number(e),parseInt(n)-1,Number(r)),a=o.getTime();let i=o.getDay();if(t===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ze.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ze.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,r){const t=new Date(new Date(n).setDate(n.getDate()+r)),o=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?o>=i&&o<=a:o>=a&&o<=i},inScope4Month(e,n,r){const t=new Date(new Date(n).setMonth(n.getMonth()+r)),o=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?o>=i&&o<=a:o>=a&&o<=i}},go={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},mo={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 Zs(e,n,r){return{props:{...$e,...Ve,...go,...mo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(!1),b=ge(t,"modelValue",null,c),v=l.computed(()=>j.value&&Array.isArray(b.value)&&b.value.length==2?b.value[0]:b.value),f=l.computed(()=>j.value?"longTermKey":"normalKey"),h=Y=>{if(j.value&&t.type==="daterange"){const k=[...b.value];k[0]=Y,b.value=k}else b.value=Y;c("update:modelValue",b.value),c("change",b.value)},F=l.computed(()=>j.value&&t.type==="daterange"?"date":t.type),x=e,S=l.computed(()=>({[`${x}`]:!0,"is-long":j.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(t,"hintText"),P=l.ref(!1);const _=Y=>{let W=Y.target.value;p.value=!0,he(q.value)||(P.value=!0),c("focus",W,Y)},O=Y=>{setTimeout(()=>{P.value&&(P.value=!1),p.value=!1},0);let W=Y.target.value;t.maxLength&&W.length>Number(t.maxLength)&&(W=W.slice(0,Number(t.maxLength))),c("blur",W,Y)},I=()=>{c("clear","")},w=Y=>{c("calendar-change",Y)},z=(Y,k,W)=>{c("panel-change",Y,k,W)},y=Y=>{c("visible-change",Y)},A=Fe(l.computed(()=>t.longTermText),"longTermText",_e.Near),X=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",_e.Near),V=Fe(l.computed(()=>t.longTermValue),"longTermValue",_e.Near),E=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let L=null;const j=l.ref(ce(t.longTerm)),U=Y=>{if(j.value=Y,c("update:longTerm",Y),Y){if(L=b.value,t.type==="daterange"){const k=[];Array.isArray(V.value)?(k[0]=b.value?b.value[0]??V.value[0]:null,k[1]=V.value[1]??V.value[0]):(k[0]=b.value?b.value[0]??V.value:null,k[1]=j.value),k[0]||(k[0]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),k[1]||(k[1]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),b.value=k}else Array.isArray(V.value)?b.value=V.value[1]??V.value[0]:b.value=V.value,b.value||(b.value=t.valueFormat?ze.format(new Date,t.valueFormat):new Date);c("update:modelValue",b.value)}else{if(t.type==="daterange"){const k=[];k[0]=Array.isArray(b.value)?b.value[0]:b.value,Array.isArray(L)?k[1]=L[1]:k[1]=L,k[0]||(k[0]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),k[1]||(k[1]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),b.value=k}else b.value=L;c("update:modelValue",b.value),setTimeout(()=>{le()},100)}},ee=ce(t.isLongTerm);if(ee){const Y=()=>{if(j.value===!0){if(L=b.value,t.type==="daterange"){const k=[b.value[0]];Array.isArray(V.value)?k[1]=V.value[1]??V.value[0]:k[1]=j.value,k[0]||(k[0]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),k[1]||(k[1]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),b.value=k}else b.value=V.value;c("update:modelValue",b.value)}else tt(V.value,b.value)&&(j.value=!0)};Y(),l.watch([()=>t.longTerm],([k])=>{j.value!==k&&Y()}),l.watch([()=>b.value],([k])=>{let W=!1;if(t.type==="daterange"&&Array.isArray(k))try{let Z=k[1];if(!Z)return;if(k[0]==null){c("update:modelValue",[]);return}typeof Z!="string"&&t.valueFormat&&(Z=ze.format(Z,t.valueFormat));let D=Array.isArray(V.value)?V.value[1]:V.value;(Z===D||Array.isArray(E.value)&&E.value.findIndex(Q=>Z==Q)!==-1)&&(W=!0)}catch(Z){console.error(Z)}j.value!==W&&(j.value=W)},{immediate:!0})}const B=l.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),ne=l.ref(),N=l.ref(),$=/^\d+$/,M=(Y,k)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(Y,k):$.test(Y)&&Y.length===t.flashFillThreshold,R=(Y,k)=>{let W;if(typeof t.flashFillFormat=="function")W=t.flashFillFormat(Y,k);else{const D=t.flashFillFormat??"YYYYMMDD";W=ze.parser(Y,D)}const Z=t.valueFormat??"YYYY-MM-DD";return ze.format(W,Z)},C=Y=>Y?Y.endsWith("range"):!1,K=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(M(k,t.type)){const W=R(k,t.type);if(C(t.type)){const Z=Array.isArray(b.value)?[...b.value]:[];Z[0]=W,h(Z)}else h(W)}},J=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(M(k,t.type)){const W=R(k,t.type);if(C(t.type)){const Z=Array.isArray(b.value)?[...b.value]:[];Z[1]=W,h(Z)}else h(W)}},le=()=>{if(t.flashFill&&ne.value&&ne.value.$el)if(C(t.type)){const Y=ne.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",K),Y[1]&&Y[1].addEventListener("input",J)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",K)}},G=()=>{if(t.flashFill&&ne.value&&ne.value.$el)if(C(t.type)){const Y=ne.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",K),Y[1]&&Y[1].removeEventListener("input",J)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",K)}};return l.onMounted(le),l.onBeforeUnmount(G),xe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()},setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const k={...o.attrs,key:f.value,type:F.value,ref:N,class:S.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":h,onClear:I,onFocus:_,onBlur:O,onCalendarChange:w,onPanelChange:z,onVisibleChange:y},W={};o.slots["range-separator"]&&(W["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(W.default=o.slots.cell);const Z=[],D=l.h(T.ElDatePicker,k,W);Z.push(D);const H={default:()=>Z};if(H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip,ee){if(j.value){const fe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),be=l.h("input",{class:["fox-date-item__long-text"],value:A.value,readonly:!0}),ye={class:B.value},Ee=l.h("div",ye,{default:()=>[fe,be]});Z.push(Ee)}if(!s.value&&!i.value){const fe={label:X.value||A.value,disabled:s.value||i.value,modelValue:j.value,"onUpdate:modelValue":U},be=l.h(T.ElCheckbox,fe),ye=l.h("div",{class:{[`${x}__append`]:!0}},[be]);H.append=()=>ye}}const re={...De(t,go,mo),ref:ne,class:{[`${x}__wrapper`]:!0,"has-append":ee},hintText:q.value,hintVisible:P.value};return t.prop&&(re.prop=`${t.prop}_item`),l.h(r,re,H)}}}}const{componentName:Qs,create:Js,scope:eu}=ie("date-item"),yl=Js(Zs(Qs,eu,Ne)),yo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function tu(e,n,r){return{props:{...$e,...Ve,...yo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(!1),b=ge(t,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0})),h=I=>{b.value=I,c("update:modelValue",I),c("change",I)};let F=ge(t,"hintText"),x=l.ref(!1);const S=I=>{let z=I.target.value;p.value=!0,he(F.value)||(x.value=!0),c("focus",z,I)},q=I=>{setTimeout(()=>{x.value&&(x.value=!1),p.value=!1},0);let z=I.target.value;t.maxLength&&z.length>Number(t.maxLength)&&(z=z.slice(0,Number(t.maxLength))),c("blur",z,I)},P=()=>{c("clear","")},_=I=>{c("visible-change",I)},O=l.ref();return xe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const w={...o.attrs,ref:O,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:P,onFocus:S,onBlur:q,onVisibleChange:_},z={},y=[],A=l.h(T.ElTimePicker,w,z);y.push(A);const X={default:()=>y};X.label=o.slots.default,X.fixedPreTip=o.slots.fixedPreTip,X.fixedTip=o.slots.fixedTip;const E={...De(t,yo),hintText:F.value,hintVisible:x.value};return t.prop&&(E.prop=`${t.prop}_item`),l.h(r,E,X)}}}}const{componentName:nu,create:lu,scope:ru}=ie("time-item"),pl=lu(tu(nu,ru,Ne)),po={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ou(e,n,r){return{props:{...$e,...Ve,...po},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(!1),b=ge(t,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0})),h=O=>{b.value=O,c("update:modelValue",O),c("change",O)};let F=ge(t,"hintText"),x=l.ref(!1);const S=O=>{let w=O.target.value;p.value=!0,he(F.value)||(x.value=!0),c("focus",w,O)},q=O=>{setTimeout(()=>{x.value&&(x.value=!1),p.value=!1},0);let w=O.target.value;t.maxLength&&w.length>Number(t.maxLength)&&(w=w.slice(0,Number(t.maxLength))),c("blur",w,O)},P=()=>{c("clear","")},_=l.ref();return xe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()},setDisabled:O=>{a.value=O},setReadonly:O=>{u.value=O}}),()=>{const I={...o.attrs,ref:_,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:P,onFocus:S,onBlur:q},w={},z=[],y=l.h(T.ElTimeSelect,I,w);z.push(y);const A={default:()=>z};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const V={...De(t,po),hintText:F.value,hintVisible:x.value};return t.prop&&(V.prop=`${t.prop}_item`),l.h(r,V,A)}}}}const{componentName:au,create:iu,scope:su}=ie("time-select-item"),bl=iu(ou(au,su,Ne));function bo(e,n=0){let r=`${e}`,t=r.indexOf(".");if(t==-1)return r;let o=t;for(let a=r.length-1;a>=t;a--)if(r.charAt(a)!="0"){o=a;break}return o-t<n?o=t+n+1:o!=t&&(o+=1),o>r.length?r=r.padEnd(o,"0"):r=r.substring(0,o),r}function vo(e,n,r=20){if(typeof n=="string"&&(n=Ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=br(`${e}`,`${n}`);return bo(t)}else{let t=_n(`${e}`,vr(`${n}`),20);return bo(t)}}function uu(e,n=-1,r=!1,t=3,o=","){return zt(e,n,r,t,o)}function wo(e,n,r,t,o=!0){if(e==="")return"";if(e=wr(e),n=Ce(n),n==1)return e;if(t)e=vo(e,n),r&&(e=="0"&&o?e=`${e}.`.padEnd(Ce(r)+2,"0"):e=_n(e,1,Ce(r)));else{let a=-1*n;e=vo(e,a)}return e}function So(e,n){let r={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ce(n.minInclude),o=jn(e,n.min);if(t&&o==-1||!t&&(o==0||o==-1)){let a="请输入不小于 {0} 的数值";r.message=a.replace("{0}",n.min),r.minValid=!1}}if(n.max!=null){let t=ce(n.maxInclude),o=jn(e,n.max);(t&&o==1||!t&&(o==0||o==1))&&(r.maxValid=!1)}return r}const xo={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 cu(e,n,r){return{props:{...$e,...Ve,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),d=l.ref(!1),g=ge(t,"modelValue",null,c),p=l.ref("");l.watch([()=>g.value,()=>t.rates,()=>t.precision],([E,L,j])=>{if(he(E)){p.value="";return}const U=wo(E,L,j,!1);p.value!==U&&(p.value=U)},{immediate:!0});const b=l.computed(()=>{let E="";return d.value&&(E=p.value),E}),{t:v}=Pe.useFoxI18n(n),f=l.computed(()=>{let E=t.placeholder??"";return!d.value&&!he(p.value)?E=uu(p.value,t.decimalLength,t.autoPadding,t.digits,t.separator):E=v(["placeholder",E]),E}),h=e,F=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.value.length>0})),x=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>d.value?{textAlign:"left"}:{textAlign:x.value??"right"});const S=l.ref(""),q=l.computed(()=>{let E=S.value;return he(E)&&(E=t.errorTip??""),E}),P=l.ref(""),_=l.ref(!1),O=(E,L)=>{if(E=`${E}`,he(E)){p.value="",g.value="",L.forEach(j=>{c(j,"")}),ce(t.showTip)&&_.value&&(_.value=!1);return}if(E.length>=2){let j=E;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){l.triggerRef(p);return}}if(E!="-"){if(!kr(E)){l.triggerRef(p);return}if(t.integerLength!=-1&&Ir(E)>Number(t.integerLength)){l.triggerRef(p);return}if(t.decimalLength&&t.decimalLength!=-1&&Or(E)>Number(t.decimalLength)){l.triggerRef(p);return}let j=So(E,t);if(j.maxValid===!1){S.value=j.message,l.triggerRef(p);return}}else if(t.min!=null&&Ce(t.min)>=0){l.triggerRef(p);return}P.value=E,ce(t.showTip)&&(_.value=E.length>0),p.value=E,g.value=wo(E,t.rates,t.precision,!0),L.forEach(j=>{c(j,g.value)})},I=E=>{O(E,["update:modelValue","input"])},w=E=>{O(E,["update:modelValue","change"])},z=E=>{if(d.value=!0,ce(t.showTip)){let L=p.value;he(L)&&(L=t.hintText),he(L)||(P.value=L,_.value=!0)}S.value="",c("focus",g.value,E)},y=E=>{if(setTimeout(()=>{d.value=!1,ce(t.showTip)&&_.value===!0&&(_.value=!1)},0),!he(p.value)){let L=So(p.value,t);if(L.minValid===!1||L.maxValid===!1){S.value=L.message;return}}c("update:modelValue",g.value,E),c("blur",g.value,E)},A=()=>{c("clear","")},X=l.computed(()=>Nt(t.unit)>0),V=l.ref();return xe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const L={...Xe(o.attrs),ref:V,class:F.value,type:"digit",maxlength:t.maxLength,placeholder:f.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:A,onInput:I,onChange:w,onFocus:z,onBlur:y},j={};o.slots.prepend&&(j.prepend=o.slots.prepend),o.slots.append&&(j.append=o.slots.append),o.slots.prefix&&(j.prefix=o.slots.prefix),o.slots.suffix?j.suffix=o.slots.suffix:X.value&&(j.suffix=()=>[t.unit]);const U=[],ee=l.h(T.ElInput,L,j);U.push(ee);const B={default:()=>U};B.label=o.slots.default,B.fixedPreTip=o.slots.fixedPreTip,B.fixedTip=o.slots.fixedTip;const N={...De(t,xo),errorTip:q.value,hintText:P.value,hintVisible:_.value,hintType:"number"};return t.prop&&(N.prop=`${t.prop}_item`),l.h(r,N,B)}}}}const{componentName:fu,create:du,scope:hu}=ie("money-item"),vl=du(cu(fu,hu,Ne)),To={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 gu(e,n,r){return{props:{...$e,...Ve,...To},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(!1),b=ge(t,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0,[`${v}__append`]:I.value})),h=l.computed(()=>({[`${v}__unit`]:!0})),F=z=>{b.value=z,c("update:modelValue",z),c("input",z)},x=z=>{c("change",z)};let S=ge(t,"hintText"),q=l.ref(!1);const P=z=>{let A=z.target.value;p.value=!0,he(S.value)||(q.value=!0),c("focus",A,z)},_=z=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let A=z.target.value;t.maxLength&&A.length>Number(t.maxLength)&&(A=A.slice(0,Number(t.maxLength))),c("blur",A,z)},O=()=>{c("clear","")},I=l.computed(()=>Nt(t.unit)>0),w=l.ref();return xe({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},setDisabled:z=>{a.value=z},setReadonly:z=>{u.value=z}}),()=>{const y={...Xe(o.attrs),ref:w,class:f.value,placeholder:g.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:O,onChange:x,onInput:F,onFocus:P,onBlur:_},A={},X=[],V=l.h(T.ElInputNumber,y,A);X.push(V);const E={default:()=>X};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const j={...De(t,To),hintText:S.value,hintVisible:q.value};if(t.prop&&(j.prop=`${t.prop}_item`),o.slots.append)E.append=o.slots.append;else if(I.value){const ee={class:h.value},B=l.h("div",ee,[t.unit]);E.append=()=>B}return l.h(r,j,E)}}}}const{componentName:mu,create:yu,scope:pu}=ie("input-number-item"),wl=yu(gu(mu,pu,Ne));function lt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function bu(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let vu=class{proxy;constructor(n){this.proxy=n}async load(n,r,t,o){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t,o);const a=je(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(r,t,o))}};function wu(){const e=l.getCurrentInstance();return new vu(e.proxy)}function Sl(e,n,r){const t=lt(e,n),o=lt(e,r);if(t!==o)return!1;const a=ft(e,n),i=ft(e,r);return a===i}function Co(e,n,r,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];let a=t;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=Co(e,u,r,t);o.push(s)}else{let s=!1;for(let c of a){if(r==="text")s=lt(e,c)===u;else if(r==="item")s=Sl(e,c,u);else{let d=ft(e,c);d==null&&(d=lt(e,c)),s=d===u}if(s){o.push(c),a=bu(e,c);break}}if(!s)break}}return o}function Su(e){return{text:e,value:e}}const $o={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function xu(e,n,r){return{props:{...$e,...Ve,...$o},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(null),b=l.ref([]),v=l.computed(()=>b.value?b.value.map(Y=>Array.isArray(Y)?Y.map(W=>lt(t,W)).join(" "):lt(t,Y)).join(" "):""),f=(G,Y,k,W=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(p.value===G)return;p.value=G;const Q=l.toRaw(G);if(W){const re=le?.value.getCheckedNodes();if(re)if(t.multiple){const ue=[];re.forEach(fe=>{const ye=(fe.pathNodes??[]).map(Ee=>Ee.data);ue.push(ye)}),c("update:pathNodes",ue)}else{const fe=(re[0]?.pathNodes??[]).map(be=>be.data);c("update:pathNodes",fe)}c("update:modelValue",Q),c("change",Q)}return}const Z=Co(t,G,Y,k);if(Z===null){if(b.value.length===0||b.value===null)return;b.value=[],p.value=null,W&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const D=Z[Z.length-1];if(A.value.checkStrictly!==!0&&D&&!Array.isArray(D)&&Array.isArray(D.children)&&D.children.length>0){const Q=[];Z.forEach(re=>{const ue=`${lt(t,re)}`;Q.push(ue)}),Q.length>0&&(z.value=Q.join(t.separator))}else z.value=null;let H=!0;if(Z.length!==b.value.length)H=!1;else for(let Q=0;Q<Z.length;Q++){const re=Z[Q],ue=b.value[Q];if(Array.isArray(re)){if(!Array.isArray(ue)||re.length!==ue.length)H=!1;else for(let fe=0;fe<re.length;fe++)if(!Sl(t,re[fe],ue[fe])){H=!1;break}}else Sl(t,re,ue)||(H=!1);if(!H)break}if(!H){b.value=Z;let Q=[],re=[];Z.forEach(fe=>{if(Array.isArray(fe)){let be=[],ye=[];for(let Ee of fe)be.push(ft(t,Ee)),t.valueType==="text"?ye.push(lt(t,Ee)):t.valueType==="item"?ye.push(Ee):ye.push(ft(t,Ee));Q.push(be),re.push(ye)}else Q.push(ft(t,fe)),t.valueType==="text"?re.push(lt(t,fe)):t.valueType==="item"?re.push(fe):re.push(ft(t,fe))}),p.value=Q;const ue=l.toRaw(re);W&&(c("update:pathNodes",Z),c("update:modelValue",ue),c("change",ue))}},h=l.ref([]),F=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,G=>ce(G)),x=wu(),S=async(G,Y)=>{if(G){const k=await x.load("cascader",G,Y);if(k.length>0)if(typeof k[0]=="string"){let D=k.map(H=>Su(H));h.value=D}else h.value=k}};l.watch([()=>t.source,()=>t.params],async([G,Y])=>{S(G,Y)},{immediate:!(F.value||t.lazy)});let q=!1;const P=()=>{q||(q=!0,S(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([G,Y])=>{f(Y,t.valueType,G,!1),c("setValue",Y)}),t.lazy&&f(t.modelValue,"value",[],!1);let _=null,O=l.ref(!1);typeof t.remoteMethod=="function"&&(_=async G=>{if(G!=null){O.value=!0;try{const Y=await t.remoteMethod(G);h.value=Y}catch(Y){console.error(Y)}O.value=!1}});const I=l.ref(!1),w=e,z=l.ref(null),y=l.computed(()=>({[w]:!0,"is-incomplete":z.value&&z.value.length>0})),A=l.computed(()=>{let G={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(G.multiple=!0),t.props&&Object.assign(G,t.props),t.lazy&&(G.lazy=!0,typeof t.lazyLoad=="function"?G.lazyLoad=t.lazyLoad:G.lazyLoad=async(Y,k)=>{let W={};t.params&&Object.assign(W,t.params),Y&&Object.assign(W,Y);const Z=await x.load("cascader",t.source,W,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===Y.level){const D=Y.pathLabels??[];let H=[];D.forEach(Q=>{Q&&H.push(Q)}),H.length>0&&(z.value=H.join(t.separator))}else z.value=null;k(Z)}),G}),X=G=>{t.allowCreate?(c("update:modelValue",G),c("change",G),p.value=G):f(G,"value",h.value,!0)};let V=ge(t,"hintText"),E=l.ref(!1);const L=G=>{let k=G.target.value;I.value=!0,he(V.value)||(E.value=!0),c("focus",k,G)},j=G=>{setTimeout(()=>{E.value&&(E.value=!1),I.value=!1},0);let k=G.target.value;t.maxLength&&k.length>Number(t.maxLength)&&(k=k.slice(0,Number(t.maxLength))),R.value||c("blur",k,G)},U=()=>{c("clear","")},ee=l.ref(!1);let B=null;const ne=()=>{t.showTooltip&&ee.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{ee.value=!0},150))},N=()=>{B&&(clearTimeout(B),ee.value=!1,B=null)},$=l.computed(()=>ee.value||E.value),M=l.computed(()=>ee.value?v.value:V.value),R=l.ref(!1),C=G=>{R.value=G,c("visible-change",G),G||c("selected")},K=G=>{c("remove-tag",G)},J=G=>{c("expand-change",G)},le=l.ref();return xe({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes(),setDisabled:G=>{a.value=G},setReadonly:G=>{u.value=G}}),()=>{const Y={...o.attrs,ref:le,class:y.value,props:A.value,clearable:t.clearable,placeholder:z.value||g.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:p.value,separator:t.separator,onClear:U,onChange:X,onFocus:L,onBlur:j,onVisibleChange:C,onRemoveTag:K,expandChange:J};typeof _=="function"&&(Y["remote-method"]=_,Y.loading=O.value);const k={};o.slots.option&&(k.default=o.slots.option),o.slots.empty&&(k.empty=o.slots.empty);const W=[],Z=l.h(T.ElCascader,Y,k);W.push(Z);const D={default:()=>W};D.label=o.slots.default,D.fixedPreTip=o.slots.fixedPreTip,D.fixedTip=o.slots.fixedTip;const Q={...De(t,$o),hintText:M.value,hintVisible:$.value,onMouseover:ne,onMouseleave:N};return t.prop&&(Q.prop=`${t.prop}_item`),F.value&&!t.lazy&&(Q["appear-listen"]=!0,Q.onAppear=P),l.h(r,Q,D)}}}}const{componentName:Tu,create:Cu,scope:$u}=ie("cascader-item"),xl=Cu(xu(Tu,$u,Ne)),No={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Nu(e,n,r){return{props:{...$e,...Ve,...No},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:d}=Pe.useFoxI18n(n),g=d(t,["placeholder"]),p=l.ref(!1),b=ge(t,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0})),h=w=>{b.value=w,c("update:modelValue",w),c("input",w)},F=w=>{c("change",w)},x=w=>{c("select",w)};let S=ge(t,"hintText"),q=l.ref(!1);const P=w=>{let y=w.target.value;p.value=!0,he(S.value)||(q.value=!0),c("focus",y,w)},_=w=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let y=w.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),c("blur",y,w)},O=()=>{c("clear","")},I=l.ref();return xe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},select:()=>{I?.value.select()},setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const z={...o.attrs,ref:I,class:f.value,placeholder:g.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,onClear:O,onChange:F,onInput:h,onFocus:P,onBlur:_,onSelect:x},y={};o.slots.prepend&&(y.prepend=o.slots.prepend),o.slots.append&&(y.append=o.slots.append),o.slots.prefix&&(y.prefix=o.slots.prefix),o.slots.suffix&&(y.suffix=o.slots.suffix),o.slots.option&&(y.default=o.slots.option);const A=[],X=l.h(T.ElAutocomplete,z,y);A.push(X);const V={default:()=>A};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const L={...De(t,No),hintText:S.value,hintVisible:q.value};return t.prop&&(L.prop=`${t.prop}_item`),l.h(r,L,V)}}}}const{componentName:Eu,create:ku,scope:Iu}=ie("autocomplete-item"),Tl=ku(Nu(Eu,Iu,Ne));function Ou(e,n,r,t,o){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[o]){let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(p=>p[t]===d);if(!g)break;i.push(g[r])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],d=a[s];const g=c.find(p=>p[t]===d);if(!g)break;i.push(g[r])}else{let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(p=>p[t]===d);if(!g)break;i.push(g[r]),s=g[o]}}return i}let Du=class{proxy;constructor(n){this.proxy=n}async load(n,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=je(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await o(r,t))}};function Vu(){const e=l.getCurrentInstance();return new Du(e.proxy)}const Eo={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ru(e,n){return{props:{...Eo},setup(r,{attrs:t,slots:o}){const a=Vu(),i=l.ref([]);l.watch([()=>r.source,()=>r.params],async([c,d])=>{i.value=await a.load(r.sourceType,c,d)},{immediate:!0});const u=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Ou(r.modelValue,i.value,r.textKey,r.valueKey,r.childrenKey);return c.length==0?r.emptyText??"":c.length===1?r.optionType=="item"?`${r.modelValue}${r.separator}${c[0]}`:c[0]:c.join(r.separator)}),s=r.resolveTag?l.resolveComponent(r.tag):r.tag;return()=>{const c={...t};return o.default?o.default({text:u.value,value:r.modelValue}):r.resolveTag?r.emptyText!==void 0&&r.emptyText===u.value?l.h(r.emptyTag??"span",{...t,class:r.emptyClass},u.value):l.h(s,c,{default:()=>u.value}):l.h(s,c,u.value)}}}}const{create:Fu}=ie("mapping"),Ft=Fu(Ru());function Au(e,n){let r=n.split("."),t=e;for(let o=0;o<r.length;o++){let a=r[o],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);t=t[g][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function Mu(e,n){return{props:{...Eo},setup(r,{attrs:t,slots:o}){return()=>{const a={default:i=>{const u=Au(i.row,i.column.property);return o.default?l.h(Ft,{...r,modelValue:u},{default:o.default}):l.h(Ft,{...r,modelValue:u})}};for(let i in o)i!=="default"&&(a[i]=o[i]);return l.h(T.ElTableColumn,{...t},a)}}}}const{create:Lu}=ie("table-mapping-column"),Cl=Lu(Mu()),Bu=Symbol.for("TableStateKey");function ko(e,n){let r=n.split("."),t=e;for(let o=0;o<r.length;o++){let a=r[o],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);t=t[g][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function qu(e,n){return{props:{},setup(r,{attrs:t}){const o=l.inject(Bu,{});return()=>{const a=o.currentRow?o.currentRow.value:null,i={default:u=>{const s=ko(u.row,u.column.property),c=a?ko(a,u.column.property):null,d=s===c,g={class:{"el-radio__input":!0,"is-checked":d}},p=l.h("span",g,[l.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":d}};return l.h("label",b,[p])}};return l.h(T.ElTableColumn,{...t},i)}}}}const{create:Pu}=ie("table-radio-column"),$l=Pu(qu()),_u={},ju={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function zu(e,n){return l.openBlock(),l.createElementBlock("svg",ju,n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const Hu=Ge(_u,[["render",zu]]),{create:Ku}=ie("table-setting"),Wu={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Yu=Ku({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:Hu,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Wu},setup(e,{emit:n,attrs:r}){let t=[];const o=l.ref([]),a=l.computed(()=>o.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=l.computed(()=>o.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),u=l.computed(()=>o.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),s=l.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=l.computed(()=>a.value.length>0),d=l.computed(()=>i.value.length>0),g=C=>C.length>1,p=(C,K)=>{Array.isArray(C)&&Array.isArray(K)&&C.forEach(G=>{K.some(Y=>Y.prop===G.prop?(G.label=Y.label,!0):!1)});const J=[];o.value=C.map((G,Y)=>(!(G.label===""||G.type)&&G.visible!==!1&&J.push(G.prop),{...G,sortIndex:Y})),u.value.length+a.value.length+i.value.length===J.length?x.value=!0:J.length>0&&(S.value=!0),_.value=J},b=C=>C?C.type?C.type:C.label?C.prop:"":"",v=(C,K)=>{if(C.length!==K.length)return!1;const J=C.map(le=>b(le));for(let le of K){const G=b(le);if(J.indexOf(G)===-1)return!1}return!0},f=C=>{if(!C){const K=e.tableRef.getColumnSetting(),J=K.srcColumnPropertyList;t=J.map((le,G)=>({...le,sortIndex:G})),C=K.columnPropertyList,C&&C.length>0&&v(J,C)||(C=J)}p(C,t)},h=()=>{e.tableRef.setColumnSetting(o.value)},F=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=l.ref(!1),S=l.ref(!1),q=C=>{const K=[];o.value.forEach(le=>{C&&!(le.label===""||le.type)&&K.push(le.prop),le.visible=C}),x.value=!1,S.value=!1,u.value.length+a.value.length+i.value.length===K.length?x.value=!0:K.length>0&&(S.value=!0),_.value=K,h()},P=()=>{f(t),h()},_=l.ref([]),O=C=>{o.value.forEach(J=>{if(J.label===""||J.type)return;const le=C.indexOf(J.prop)!==-1;J.visible=le}),x.value=!1,S.value=!1;const K=u.value.length+a.value.length+i.value.length;C.length===K?x.value=!0:C.length>0&&(S.value=!0),h()},I=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const w={currentRow:null,index:null,roleType:null},z=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,z(C)):null:null,y=C=>{const K=C.currentTarget;K&&K.dataset&&(w.roleType=K.dataset.roleType,w.index=K.dataset.index)},A=C=>{w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null),w.index=null,w.roleType=null},X=C=>{const K=C.currentTarget;C.relatedTarget;const J=z(K);if(!J)return;const le=J.dataset&&J.dataset.roleType;w.roleType===le&&(C.preventDefault(),w.currentRow&&w.currentRow!==J&&w.currentRow.classList.remove("is-dragover"),J.classList.add("is-dragover"),w.currentRow=J)},V=C=>{C.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},E=C=>{const K=C.currentTarget,J=z(K);if(!J)return;const le=J.dataset&&J.dataset.roleType;if(w.roleType!==le)return;C.preventDefault();const G=Number(w.index),Y=Number(J.dataset.index);if(G!==Y){if(G<Y){const k=o.value[G];o.value.splice(G,1),o.value.splice(Y,0,k)}else{const k=o.value[G];o.value.splice(G,1),o.value.splice(Y+1,0,k)}p(o.value,t),h()}},L=C=>{const K=o.value[C];K.fixed="left",h()},j=C=>{const K=o.value[C];K.fixed="right",h()},U=C=>{const K=o.value[C];K.fixed=void 0,h()},ee=new Map;let B=null;function ne(C){const K=document.createRange();return K.setStart(C,0),K.setEnd(C,C.childNodes.length),K.getBoundingClientRect().width}return{attrs:r,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:g,isCheckAll:x,isIndeterminate:S,handleCheckAllChange:q,handleReset:P,checkedValue:_,handleCheckChange:O,onShow:I,onDragStart:y,onDragEnd:A,onDragOver:X,onDragLeave:V,onDrop:E,toLeftFixed:L,toRightFixed:j,toUnFixed:U,checkboxLabelStyle:F,onMouseOverForOverflowText:(C,K,J)=>{const le=C.currentTarget;if(le){const G=Math.floor(le.offsetWidth);if(Math.floor(ne(le))>G){let k=ee.get(K);if(k){if(k===B)return;Le.hide(k)}k=Le.show(le,J,{type:"text",placement:"top",closeOnClick:!1}),k&&(ee.set(K,k),B=k)}}},onMouseLeaveForOverflowText:(C,K)=>{const J=ee.get(K);J&&(Le.hide(J),J===B&&(B=null))},onMouseOverForTip:(C,K)=>{const J=C.currentTarget;J&&(B&&Le.hide(B),B=Le.show(J,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:C=>{B&&(Le.hide(B),B=null)}}}}),Uu={class:"fox-table-setting"},Gu={class:"fox-table-setting__header"},Xu={class:"fox-table-setting__body"},Zu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Qu={key:0,class:"fox-table-setting__body-title"},Ju=["data-index","draggable"],ec=["onMouseover","onMouseleave"],tc={class:"tools-item"},nc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},lc={key:0,class:"fox-table-setting__body-title"},rc=["data-index","draggable"],oc=["onMouseover","onMouseleave"],ac={class:"tools-item"},ic={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},sc={key:0,class:"fox-table-setting__body-title"},uc=["data-index","draggable"],cc=["onMouseover","onMouseleave"],fc={class:"tools-item"};function dc(e,n,r,t,o,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),d=l.resolveComponent("FoxIcon"),g=l.resolveComponent("Download"),p=l.resolveComponent("fox-checkbox"),b=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Uu,[l.createElementVNode("div",Gu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Xu,[l.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Zu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Qu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,ec)]),_:2},1032,["value"]),l.createElementVNode("div",tc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(g)]),_:2},1032,["onClick"])])],40,Ju))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",nc,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",lc,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,oc)]),_:2},1032,["value"]),l.createElementVNode("div",ac,[l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(g)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(g)]),_:2},1032,["onClick"])])],40,rc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",ic,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",sc,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(p,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,cc)]),_:2},1032,["label"]),l.createElementVNode("div",fc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(g)]),_:2},1032,["onClick"])])],40,uc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Nn=Ge(Yu,[["render",dc]]);let hc=class{proxy;constructor(n){this.proxy=n}async load(n,r,t,o,a,i,u){if(Array.isArray(r)){let c=(t-1)*o,d=c+o;d>r.length&&(d=r.length);const g=r.slice(c,d);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[t,o,a,i,u]);const s=je(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ye(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[r,t,o,a,i,u]))}};function gc(){const e=l.getCurrentInstance();return new hc(e.proxy)}class mc{proxy;constructor(n){this.proxy=n}async load(n){let r=null;const t=je(this.proxy,"tableSetting");return typeof t=="function"&&(r=await Reflect.apply(t,null,["load",n])),r}save(n,r){const t=je(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,r])}remove(n){const r=je(this.proxy,"tableSetting");typeof r=="function"&&Reflect.apply(r,null,["remove",n])}}function Io(){const e=l.getCurrentInstance();return new mc(e.proxy)}const yc=Symbol.for("TableStateKey"),Oo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Do={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[Boolean],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},Nl={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:()=>"不固定"}},pc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function bc(e,n){let r=n.split("."),t=e;for(let o=0;o<r.length;o++){let a=r[o],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);t=t[g][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function El(e,n){return e.filter(t=>{for(let o in n){const a=n[o],i=bc(t,o);if(a!==i)return!1}return!0})}function vc(e,n,r){return{props:{...$e,...Ve,...Oo,...Do,...Nl,...pc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,o){const{locale:a}=Pe.useFoxI18n(n),{emitEvent:i,broadcast:u}=ke({componentName:e,validateHandler:{getValue(...te){return O.value}}},t.prop??o.attrs.name),s=e,c=l.computed(()=>({[s]:!0})),d=l.computed(()=>({[`${s}__setting`]:!0})),g=l.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${t.footerAlign}`]:!0})),p=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${t.paginationAlign}`]:!0})),b=l.shallowRef({}),v=l.computed(()=>({...b.value,...t.params??{},...t.baseParams??{}})),f=l.ref(t.infiniteLoad===!0?0:t.pageIndex),h=l.ref(t.pageSize),F=ce(t.infiniteLoad);F||(l.watch(()=>t.pageIndex,te=>{f.value=te}),l.watch(()=>t.pageSize,te=>{h.value=te}),l.watch([f,h],([te,oe],[ae,se])=>{oe!==se&&(f.value=1,te=1),y(t.data,te,oe,v.value)}));const x=()=>Array.isArray(t.data)?!0:ce(t.autoLoad);x()&&l.watch([()=>t.data,v],async([te,oe],[ae,se])=>{x()&&(te!==ae&&(w=!0),!(!Array.isArray(te)&&tt(te,ae)&&tt(oe,se))&&(F?(f.value=0,P.value=!0,O.value=[],X()):f.value===1?y(te,f.value,h.value,oe):f.value=1))},{deep:!0});const S=te=>{f.value=te,i("page-index-change",te)},q=te=>{h.value=te,i("page-size-change",te)},P=l.ref(!0),_=l.ref(0),O=l.ref(),I=gc();let w=!0;const z=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,te=>ce(te)),y=async(te,oe,ae,se,Re)=>{w=!1;try{if(Re===!0){if(!P.value)return!1;const pe=await I.load("table",te,oe,ae,se,w,a.value);return _.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,O.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=_.value)||pe.page.length<ae?(P.value=!1,!1):!0}else{const pe=await I.load("table",te,oe,ae,se,w,a.value);return _.value=pe.totalSize,O.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),_.value=0,O.value=[]}return!1};let A=!1;const X=async()=>{if(!A){if(A=!0,!P.value){A=!1;return}f.value+=1,await y(t.data,f.value,h.value,v.value,!0),A=!1}},V=(te={},oe=!1)=>new Promise(async ae=>{b.value={...l.toRaw(te??{})},oe||(f.value=t.pageIndex??1),F===!0?(f.value=0,O.value=[],P.value=!0,await X()):await y(t.data,f.value,h.value,v.value),ae()}),E=()=>{_.value=0,O.value=[],F===!0&&(f.value=0,P.value=!0)};let L=!1;const j=()=>{L||(L=!0,V())},U=l.ref(null);if(F===!0){let te=null;const oe=()=>{U.value&&(te=new IntersectionObserver(se=>{let Re=!1;for(let pe of se)if(pe.intersectionRatio>0){Re=!0;break}Re&&X()}),te.observe(U.value))},ae=()=>{!te||!U.value||(te.unobserve(U.value),te=null)};l.onMounted(oe),l.onBeforeUnmount(ae)}x()&&!z.value&&V();const ee=l.ref(null);l.provide(yc,{currentRow:ee});const B=(te,oe)=>{ee.value=te,i("current-change",te,oe)},ne=(te,oe,ae)=>{i("row-click",te,oe,ae),ce(t.rowClickSelectable)===!0&&Te?.value.toggleRowSelection(te)},N=[],$=(te,oe)=>{if(i("expand-change",te,oe),ce(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=N.length;N.splice(0,ae)}else{N.forEach(se=>{se!==te&&Te?.value.toggleRowExpansion(se,!1)});const ae=N.length;N.splice(0,ae,te)}},M=o.attrs.id??t.prop??o.attrs.name,R=Io(),C=l.ref([]);let K=[];const J=()=>({srcColumnPropertyList:K.map(oe=>({...oe})),columnPropertyList:C.value}),le=te=>{C.value=[...te],Y()},G=async()=>{const te=await R.load(M);te&&(C.value=te)},Y=()=>{R.save(M,C.value)},k=()=>{R.remove(M)};G();const W=te=>te?te.type?te.type:te.label?te.prop:"":"",Z=(te,oe={})=>{for(let ae in oe){const se=oe[ae];typeof se!="function"&&(te[ae]=se)}},D=te=>{const oe=te?te():[],ae=new Map;if(K=[],oe.forEach(se=>{const pe=se;if(!pe.props)return;const Ze=W(pe.props);ae.set(Ze,pe);const We={label:"",prop:""};Z(We,pe.props),K.push(We)}),C.value.length===K.length){const se=[];for(let Re of C.value){const pe=W(Re),Ze=ae.get(pe);if(!Ze)return oe;if(Re.visible===!1)continue;const We=Ze;We.props.fixed=Re.fixed,se.push(We)}return se}return oe},H=l.shallowRef(new Map),Q=({row:te,column:oe,rowIndex:ae,columnIndex:se})=>{const Re=`${ae}_${oe.property}`,pe=`${ae}_${se}`;let Ze=H.value.get(Re);return Ze||(Ze=H.value.get(pe)),typeof Ze=="string"?Ze:""},re=te=>te?oe=>{const ae=[];let se=Q(oe);return se&&ae.push(se),se=se=typeof te=="function"?te(oe):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:Q,ue=(te=!1)=>{H.value.forEach((oe,ae)=>{fe(ae,oe,te)})},fe=(te,oe,ae=!1)=>{const se=`${te}_item`;ae?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:te},"setCellClassNames",[]):u.emitToChildren({name:se},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:te,cachePolicy:"Persistant",uniqueId:se},"setCellClassNames",oe):u.emitToChildren({name:se,cachePolicy:"Persistant",uniqueId:se},"setCustomClassName",oe)},be=(te,oe,ae)=>{const se=`${te}_${oe}`;ae?(H.value.set(se,ae),fe(se,ae)):(H.value.delete(se),fe(se,"",!0)),l.triggerRef(H)},ye=te=>{ue(!0),H.value.clear(),te.forEach(oe=>{const ae=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?H.value.set(ae,oe.children):typeof oe.cellClassName=="string"&&H.value.set(ae,oe.cellClassName)}),ue(),l.triggerRef(H)},Ee=()=>{ue(),H.value.clear(),l.triggerRef(H)},Ke=l.shallowRef(new Map),ht=({rowIndex:te})=>{const oe=`${te}`;return Ke.value.get(oe)??""},Tt=te=>te?oe=>{const ae=[];let se=ht(oe);return se&&ae.push(se),se=typeof te=="function"?te(oe):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:ht,ur=(te,oe)=>{const ae=`${te}`;oe?Ke.value.set(ae,oe):Ke.value.delete(ae),l.triggerRef(Ke)},Ag=()=>{Ke.value.clear(),l.triggerRef(Ke)},Te=l.ref();return xe({clearSelection:()=>Te?.value.clearSelection(),getSelectionRows:()=>Te?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{Te?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!O.value)return;const ae=El(O.value,te);ae.length!==0&&ae.forEach(se=>{Te?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{Te?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{Te?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!O.value)return;const ae=El(O.value,te);ae.length!==0&&ae.forEach(se=>{Te?.value.toggleRowExpansion(se,oe)})},setCurrentRow:te=>{Te?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!O.value)return;const oe=El(O.value,te);oe.length!==0&&Te?.value.setCurrentRow(oe[0])},getCurrentRow:()=>ee.value,clearSort:()=>{Te?.value.clearSort()},clearFilter:te=>{Te?.value.clearFilter(te)},doLayout:()=>{Te?.value.doLayout()},sort:(te,oe)=>{Te?.value.sort(te,oe)},scrollTo:(te,oe)=>{Te?.value.scrollTo(te,oe)},setScrollTop:te=>{Te?.value.setScrollTop(te)},setScrollLeft:te=>{Te?.value.setScrollLeft(te)},loadData:V,clearData:E,getData(){return O.value},getTotalSize(){return _.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:J,setColumnSetting:le,removeColumnSetting:k,setCellClassName:be,setCellClassNames:ye,clearCellClassName:Ee,setRowClassName:ur,clearRowClassName:Ag}),()=>{const oe={...Xe(o.attrs),onCurrentChange:B,onRowClick:ne,onExpandChange:$,data:O.value,ref:Te,class:c.value,"cell-class-name":re(t.cellClassName),"row-class-name":Tt(t.rowClassName)},ae={};if(o.slots.default&&(ae.default=()=>D(o.slots.default)),o.slots.append&&(ae.append=o.slots.append),o.slots.empty&&(ae.empty=o.slots.empty),F===!0){const Qe=[];if(P.value){const Pt=l.h(Ie.Loading,{class:`${s}__infinite-icon`});Qe.push(Pt);const fr=l.h("span",{class:`${s}__infinite-text`},[t.loadText]);Qe.push(fr)}else{const Pt=l.h("span",{class:`${s}__infinite-text`},[t.loadMoreText]);Qe.push(Pt)}const gt={ref:U,class:`${s}__infinite`},cr=l.h("div",gt,Qe);ae.append=()=>cr}const se=l.h(T.ElTable,oe,ae),Re=[];if(Re.push(se),!F){let Qe=null;if(typeof o.slots.pagination=="function")Qe=o.slots.pagination();else if(t.showPagination){const gt={class:p.value,total:_.value,pageSize:h.value,"onUpdate:pageSize":q,pageSizes:t.pageSizes,currentPage:f.value,"onUpdate:currentPage":S,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,size:t.paginationSize,background:t.paginationBackground,appendSizeTo:t.paginationAppendSizeTo,teleported:t.paginationTeleported,popperClass:t.paginationPopperClass,prevText:t.paginationpPrevText,prevIcos:t.paginationPrevIcon,nextText:t.paginationNextText,pnextIcon:t.paginationNextIcon,disabled:t.paginationDisabled};Qe=l.h(T.ElPagination,gt)}if(t.showSetting){const gt=[];Qe&&gt.push(Qe);const cr=l.h(T.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),Pt=Et(t,Nl),fr=l.h(Nn,{...Pt,tableRef:{getColumnSetting:J,setColumnSetting:le,removeColumnSetting:k}},{default:()=>cr});gt.push(fr);const Mg=l.h("div",{class:g.value},gt);Re.push(Mg)}else Qe&&Re.push(Qe)}const pe={default:()=>Re},We={...De(t,Oo,Do,Nl)};return t.prop&&(We.prop=`${t.prop}_item`),We.contentClass=`${s}__wrap`,We.errorMarkClass="is-table-error",z.value&&x()&&(We["appear-listen"]=!0,We.onAppear=j),l.h(r,We,pe)}}}}const{componentName:wc,create:Sc,scope:xc}=ie("table-item"),kl=Sc(vc(wc,xc,Ne));function vt(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 Tc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Cc=class{proxy;constructor(n){this.proxy=n}async load(n,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=je(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await o(r,t))}};function $c(){const e=l.getCurrentInstance();return new Cc(e.proxy)}function Vo(e,n,r){if(n===r)return!0;if(n===null||r===null)return!1;const t=vt(e,n),o=vt(e,r);if(t!==o)return!1;const a=At(e,n),i=At(e,r);return a===i}function Nc(e,n,r,t){if(t.length==0||n===""||n===null||n===void 0)return null;let o=null;for(let a of t){let i=!1;if(r==="text")i=vt(e,a)===n;else if(r==="item")i=Vo(e,a,n);else{let u=At(e,a);u==null&&(u=vt(e,a)),i=u===n}if(i){o=a;break}}return o}function Ec(e){return{text:e,value:e}}function kc(e,n,r){return typeof e.itemOptions=="function"?e.itemOptions(n,r):e.itemOptions}const Ro={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Ic(e,n,r){return{inheritAttrs:!0,props:{...$e,...Ve,...Ro},emits:["change","update:modelValue","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),d=l.ref(null),g=l.ref(null),p=(w,z,y,A=!0)=>{const X=Nc(t,w,z,y);if(X===null){if(g.value===null)return;g.value=null,d.value=null,A&&(c("update:modelValue",null),c("change",null));return}if(!Vo(t,X,g.value)){d.value=w;const E=l.toRaw(X);g.value=E;let L=null;t.valueType==="text"?L=vt(t,E):t.valueType==="item"?L=E:L=At(t,E),A&&(c("update:modelValue",L),c("change",L))}},b=l.ref([]),v=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,w=>ce(w)),f=$c(),h=async(w,z)=>{if(w){const y=await f.load("radio",w,z);if(y.length>0)if(typeof y[0]=="string"){let V=y.map(E=>Ec(E));b.value=V}else b.value=y}};l.watch([()=>t.source,()=>t.params],async([w,z])=>{h(w,z)},{immediate:!v.value});let F=!1;const x=()=>{F||(F=!0,h(t.source,t.params))};l.watch([()=>b.value,()=>t.modelValue],([w,z])=>{p(z,t.valueType,w,!1),c("setValue",z)});const S=e,q=l.computed(()=>({[S]:!0,[`is-${t.direction}`]:!0})),P=w=>{p(w,"value",b.value,!0)};let _=ge(t,"hintText"),O=ge(t,"hintVisible");const I=(w,z)=>{const y=[];return w.forEach((A,X)=>{const V=At(t,A),E=vt(t,A);let L=Tc(t,A);i.value===!0&&(L=i.value),s.value===!0&&(L=s.value);const j=kc(t,A,X)??{},U=`${V}_${X}`,ee={...j,key:U,value:V,size:t.size,border:ce(t.border)};L&&(ee.disabled=L),t.itemType==="button"?y.push(l.h(T.ElRadioButton,ee,{default:()=>[E]})):typeof z=="function"?y.push(l.h(T.ElRadio,ee,{default:()=>z(A)})):y.push(l.h(T.ElRadio,ee,{default:()=>[E]}))}),y};return xe({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const z={...Xe(o.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":t.textColor,fill:t.fill,onChange:P},y=[],A={};o.slots.options?A.default=o.slots.options:A.default=()=>I(b.value,o.slots.text);const X=l.h(T.ElRadioGroup,z,A);y.push(X);const V={default:()=>y};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const L={...De(t,Ro),hintText:_.value,hintVisible:O.value};return t.prop&&(L.prop=`${t.prop}_item`),v.value&&(L["appear-listen"]=!0,L.onAppear=x),l.h(r,L,V)}}}}const{componentName:Oc,create:Dc,scope:Vc}=ie("radio-item"),Il=Dc(Ic(Oc,Vc,Ne));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function St(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Fc=class{proxy;constructor(n){this.proxy=n}async load(n,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=je(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await o(r,t))}};function Ac(){const e=l.getCurrentInstance();return new Fc(e.proxy)}function Fo(e,n,r){if(n===r)return!0;if(n===null||r===null)return!1;const t=wt(e,n),o=wt(e,r);if(t!==o)return!1;const a=St(e,n),i=St(e,r);return a===i}function Mc(e,n,r,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(a=>{for(let i of t){let u=!1;if(r==="text")u=wt(e,i)===a;else if(r==="item")u=Fo(e,i,a);else{let s=St(e,i);s==null&&(s=wt(e,i)),u=s===a}if(u){o.push(i);break}}}),o}function Lc(e){return{text:e,value:e}}function Bc(e,n,r){return typeof e.itemOptions=="function"?e.itemOptions(n,r):e.itemOptions}const Ao={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function qc(e,n,r){return{inheritAttrs:!0,props:{...$e,...Ve,...Ao},emits:["change","update:modelValue","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),d=l.ref([]),g=l.ref([]),p=(w,z,y,A=!0)=>{const X=Mc(t,w,z,y);if(X===null){if(g.value===null||g.value.length===0)return;d.value=[],g.value=[],A&&(c("update:modelValue",[]),c("change",[]));return}let V=!0;if(X.length!==g.value.length)V=!1;else for(let E=0;E<X.length;E++){const L=X[E],j=g.value[E];if(!Fo(t,L,j)){V=!1;break}}if(!V){g.value=X;let E=[],L=[];X.forEach(U=>{E.push(St(t,U)),t.valueType==="text"?L.push(wt(t,U)):t.valueType==="item"?L.push(U):L.push(St(t,U))}),d.value=E;const j=l.toRaw(L);A&&(c("update:modelValue",j),c("change",j))}},b=l.ref([]),v=Fe(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,w=>ce(w)),f=Ac(),h=async(w,z)=>{if(w){const y=await f.load("checkbox",w,z);if(y.length>0)if(typeof y[0]=="string"){let V=y.map(E=>Lc(E));b.value=V}else b.value=y}};l.watch([()=>t.source,()=>t.params],async([w,z])=>{h(w,z)},{immediate:!v.value});let F=!1;const x=()=>{F||(F=!0,h(t.source,t.params))};l.watch([()=>b.value,()=>t.modelValue],([w,z])=>{p(z,t.valueType,w,!1),c("setValue",z)});const S=e,q=l.computed(()=>({[S]:!0,[`is-${t.direction}`]:!0})),P=w=>{p(w,"value",b.value,!0)};let _=ge(t,"hintText"),O=ge(t,"hintVisible");const I=(w,z)=>{const y=[];return w.forEach((A,X)=>{const V=St(t,A),E=wt(t,A);let L=Rc(t,A);i.value===!0&&(L=i.value),s.value===!0&&(L=s.value);const j=Bc(t,A,X)??{},U=`${V}_${X}`,ee={...j,key:U,class:t.itemClass,value:V,size:t.size,border:ce(t.border)};L&&(ee.disabled=L),t.itemType==="button"?y.push(l.h(T.ElCheckboxButton,ee,{default:()=>[E]})):typeof z=="function"?y.push(l.h(T.ElCheckbox,ee,{default:()=>z(A)})):y.push(l.h(T.ElCheckbox,ee,{default:()=>[E]}))}),y};return xe({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const z={...Xe(o.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":t.textColor,fill:t.fill,max:Ce(t.max),min:Ce(t.min),onChange:P},y=[],A={};o.slots.options?A.default=o.slots.options:A.default=()=>I(b.value,o.slots.text);const X=l.h(T.ElCheckboxGroup,z,A);y.push(X);const V={default:()=>y};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const L={...De(t,Ao),hintText:_.value,hintVisible:O.value};return t.prop&&(L.prop=`${t.prop}_item`),v.value&&(L["appear-listen"]=!0,L.onAppear=x),l.h(r,L,V)}}}}const{componentName:Pc,create:_c,scope:jc}=ie("checkbox-item"),Ol=_c(qc(Pc,jc,Ne)),Mo={modelValue:{type:[Number,String],required:!1}};function zc(e,n,r){return{props:{...$e,...Ve,...Mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),d=ge(t,"modelValue",F=>Ce(F),c),g=e,p=l.computed(()=>({[g]:!0})),b=F=>{c("update:modelValue",F),c("change",F)};let v=ge(t,"hintText"),f=l.ref(!1);const h=l.ref();return xe({setDisabled:F=>{a.value=F},setReadonly:F=>{u.value=F}}),()=>{const x={...Xe(o.attrs),ref:h,class:p.value,readonly:s.value||i.value,modelValue:d.value,onChange:b},S={},q=[],P=l.h(T.ElRate,x,S);q.push(P);const _={default:()=>q};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const I={...De(t,Mo),hintText:v.value,hintVisible:f.value};return t.prop&&(I.prop=`${t.prop}_item`),l.h(r,I,_)}}}}const{componentName:Hc,create:Kc,scope:Wc}=ie("rate-item"),Dl=Kc(zc(Hc,Wc,Ne)),Lo={modelValue:{type:[Boolean,String,Number],required:!1}};function Yc(e,n,r){return{props:{...$e,...Ve,...Lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),d=ge(t,"modelValue",null,c),g=e,p=l.computed(()=>({[g]:!0})),b=F=>{c("update:modelValue",F),c("change",F)};let v=ge(t,"hintText"),f=ge(t,"hintVisible");const h=l.ref();return xe({setDisabled:F=>{a.value=F},setReadonly:F=>{u.value=F}}),()=>{const x={...Xe(o.attrs),ref:h,class:p.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:b},S={},q=[],P=l.h(T.ElSwitch,x,S);q.push(P);const _={default:()=>q};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const I={...De(t,Lo),hintText:v.value,hintVisible:f.value};return t.prop&&(I.prop=`${t.prop}_item`),l.h(r,I,_)}}}}const{componentName:Uc,create:Gc,scope:Xc}=ie("switch-item"),Vl=Gc(Yc(Uc,Xc,Ne)),Bo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Zc=class{proxy;constructor(n){this.proxy=n}async load(n,r,t,o,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t,o);const i=je(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(r,t,o))}};function Qc(){const e=l.getCurrentInstance();return new Zc(e.proxy)}const qo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Jc(e,n,r){return{props:{...$e,...Ve,...qo,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),c=l.ref(!1),{emitEvent:d}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),g=ge(t,"modelValue",null,d),p=e,b=l.computed(()=>({[p]:!0})),v=A=>{g.value=A,d("update:modelValue",A),d("change",A)};let f=ge(t,"hintText"),h=l.ref(!1);const F=A=>{let V=A.target.value;c.value=!0,he(f.value)||(h.value=!0),d("focus",V,A)},x=A=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let V=A.target.value;t.maxLength&&V.length>Number(t.maxLength)&&(V=V.slice(0,Number(t.maxLength))),q.value||d("blur",V,A)},S=()=>{d("clear","")},q=l.ref(!1),P=A=>{q.value=A,d("visible-change",A),A||d("selected")},_=l.ref([]),O=Qc(),I=async(A,X)=>{try{const V=await O.load("treeselect",A,X);_.value=V}catch(V){console.error(V)}};l.watch([()=>t.data,()=>t.params,()=>t.lazy],([A,X,V])=>{!A||V||I(A,X)},{immediate:!0});let w=null;t.lazy&&(typeof t.load=="function"?w=t.load:w=async(A,X)=>{debugger;let V={};t.params&&Object.assign(V,t.params),A&&Object.assign(V,A);const E=await O.load("treeselect",t.data,V,!0);X(E)});let z={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const y=l.ref();return xe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const X={...Xe(o.attrs),ref:y,class:b.value,disabled:i.value||s.value,modelValue:g.value,"onUpdate:modelValue":v,lazy:t.lazy,props:z,onClear:S,onFocus:F,onBlur:x,onVisibleChange:P};w?X.load=w:X.data=_.value;const V={};o.slots.option&&(V.default=o.slots.option);const E=[],L=l.h(T.ElTreeSelect,X,V);E.push(L);const j={default:()=>E};j.label=o.slots.default,j.fixedPreTip=o.slots.fixedPreTip,j.fixedTip=o.slots.fixedTip;const ee={...De(t,qo,Bo),hintText:f.value,hintVisible:h.value};return t.prop&&(ee.prop=`${t.prop}_item`),l.h(r,ee,j)}}}}const{componentName:ef,create:tf,scope:nf}=ie("tree-select-item"),Rl=tf(Jc(ef,nf,Ne)),lf={},rf={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function of(e,n){return l.openBlock(),l.createElementBlock("svg",rf,n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const af=Ge(lf,[["render",of]]),{create:sf}=ie("group-setting"),uf={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:"到底部"}},cf=sf({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:af,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...uf},emits:["change"],setup(e,{emit:n,attrs:r,expose:t}){let o=null;const a=l.ref([]),i=Io(),u=N=>N.length>1,s=()=>{const N=[],$=[...a.value];a.value=$.map((R,C)=>(R.visible!==!1&&N.push(R.prop),{...R,sortIndex:C})),a.value.length===N.length?f.value=!0:N.length>0&&(h.value=!0),S.value=N},c=N=>{let $=null;if(typeof N=="string")$=document.querySelectorAll(`.fox-group[prop="${N}"] > div > .fox-item[prop]`);else if(N&&typeof N=="object"){const R=N.$el??N;typeof R.querySelectorAll=="function"&&($=R.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const M=[];return $.forEach(R=>{const C=R.querySelector(".label--string");let K="";C&&(K=C.textContent??"");const J=R.getAttribute("prop")??"",G=window.getComputedStyle(R,null).getPropertyValue("display");M.push({label:K,prop:J,sortIndex:0,visible:G!=="none"})}),M},d=()=>{if(!o){const N=c(e.groupRef??e.groupProp);if(N.length===0)return!1;o=N}return!0},g=async(N=!1)=>{const $=await i.load(e.groupProp),M=R=>{if(!R||!o)return;const C=o.map(K=>({...K}));Array.isArray($)&&$.forEach(K=>{C.some(J=>{if(J.prop===K.prop){const le=J.label;return Object.assign(J,K),J.label=le,!0}return!1})}),a.value=C.sort((K,J)=>K.sortIndex-J.sortIndex),s(),N&&b(!1)};o?M(!0):Zt(d,e.initDelay,5,50,!1,M)},p=()=>{const N=o??[];a.value=N.map($=>({...$})),s(),b()},b=(N=!0)=>{N&&i.save(e.groupProp,a.value);const $=a.value.map(M=>({...M}));n("change",$)},v=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),F=N=>{const $=[];a.value.forEach(R=>{N&&$.push(R.prop),R.visible=N}),f.value=!1,h.value=!1,a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),S.value=$,b()},x=()=>{p()},S=l.ref([]),q=N=>{a.value.forEach(M=>{const R=N.indexOf(M.prop)!==-1;M.visible=R}),f.value=!1,h.value=!1;const $=a.value.length;N.length===$?f.value=!0:N.length>0&&(h.value=!0),b()},P=()=>{g()};l.onMounted(()=>{g(!0)});const _={currentRow:null,index:null},O=N=>N?N.dataset&&N.dataset.role==="row"?N:N.tagName.toLowerCase()!=="body"?(N=N.parentElement,O(N)):null:null,I=N=>{const $=N.currentTarget;$&&$.dataset&&(_.index=$.dataset.index)},w=N=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},z=N=>{const $=N.currentTarget;N.relatedTarget;const M=O($);M&&(N.preventDefault(),_.currentRow&&_.currentRow!==M&&_.currentRow.classList.remove("is-dragover"),M.classList.add("is-dragover"),_.currentRow=M)},y=N=>{N.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},A=N=>{const $=N.currentTarget,M=O($);if(!M)return;N.preventDefault();const R=Number(_.index),C=Number(M.dataset.index);if(R!==C){if(R<C){const K=a.value[R];a.value.splice(R,1),a.value.splice(C,0,K)}else{const K=a.value[R];a.value.splice(R,1),a.value.splice(C+1,0,K)}s(),b()}},X=N=>{const $=a.value[N];a.value.splice(N,1),a.value.splice(0,0,$),s(),b()},V=N=>{const $=a.value[N];a.value.splice(N,1),a.value.push($),s(),b()};t({refresh:()=>{o=null,g(!1)}});const E=new Map;let L=null;function j(N){const $=document.createRange();return $.setStart(N,0),$.setEnd(N,N.childNodes.length),$.getBoundingClientRect().width}return{attrs:r,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:F,handleReset:x,checkedValue:S,handleCheckChange:q,onShow:P,onDragStart:I,onDragEnd:w,onDragOver:z,onDragLeave:y,onDrop:A,checkboxLabelStyle:v,toTop:X,toBottom:V,onMouseOverForOverflowText:(N,$,M)=>{const R=N.currentTarget;if(R){const C=Math.floor(R.offsetWidth);if(Math.floor(j(R))>C){let J=E.get($);if(J){if(J===L)return;Le.hide(J)}J=Le.show(R,M,{type:"text",placement:"top",closeOnClick:!1}),E.set($,J),L=J}}},onMouseLeaveForOverflowText:(N,$)=>{const M=E.get($);M&&(Le.hide(M),M===L&&(L=null))},onMouseOverForTip:(N,$)=>{const M=N.currentTarget;M&&(L&&Le.hide(L),L=Le.show(M,$,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:N=>{L&&(Le.hide(L),L=null)}}}}),ff={class:"fox-group-setting"},df={class:"fox-group-setting__header"},hf={class:"fox-group-setting__body"},gf={class:"fox-group-setting__body-list","data-role":"container"},mf=["data-index","draggable"],yf=["onMouseover","onMouseleave"],pf={class:"tools-item"};function bf(e,n,r,t,o,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),d=l.resolveComponent("FoxIcon"),g=l.resolveComponent("FoxCheckboxGroup"),p=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(p,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",ff,[l.createElementVNode("div",df,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",hf,[l.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",gf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,b=>(l.openBlock(),l.createElementBlock("div",{key:b.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":b.sortIndex,draggable:e.isDraggble(e.itemPropertyList),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.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:b.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,b.prop,b.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,b.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(b.label),45,yf)]),_:2},1032,["label"]),l.createElementVNode("div",pf,[l.createVNode(d,{onClick:v=>e.toTop(b.sortIndex),onMouseover:n[1]||(n[1]=v=>e.onMouseOverForTip(v,e.toTopText)),onMouseleave:n[2]||(n[2]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:v=>e.toBottom(b.sortIndex),onMouseover:n[3]||(n[3]=v=>e.onMouseOverForTip(v,e.toBottomText)),onMouseleave:n[4]||(n[4]=v=>e.onMouseLeaveForTip(v))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,mf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Fl=Ge(cf,[["render",bf]]),vf={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let wf=class{proxy;constructor(n){this.proxy=n}async load(n,r,t,o,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t,o);const i=je(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(r,t,o))}};function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function xf(e,n,r){return{props:{...dl,...vf},setup(t,o){const a=e,i=l.computed(()=>({[a]:!0})),u=l.ref([]),s=Sf(),c=async(S,q)=>{try{const P=await s.load("tree",S,q);u.value=P}catch(P){console.error(P)}},d=l.shallowRef({}),g=l.computed(()=>({...d.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ce(t.autoLoad))&&l.watch([()=>t.data,()=>g.value],([S,q])=>{S&&c(S,q)},{immediate:!0,deep:!0});let b=null;t.lazy&&(typeof t.load=="function"?b=t.load:b=async(S,q)=>{let P={};t.params&&Object.assign(P,t.params),S&&Object.assign(P,S);const _=await s.load("treeselect",t.data,P,!0);q(_)});const v={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},f=(S={})=>new Promise(async q=>{d.value={...l.toRaw(S??{})},await c(t.data,g.value),q()}),h=function(S,q){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(S,q);if(!t.filterKeyword)return!0;const P=`${q[v.label]}`,_=`${S}`;return P.includes(_)},F=l.ref();l.watch(()=>t.filterKeyword,S=>{F.value.filter(S)});const x=S=>(...q)=>{const P=F.value[S];return Reflect.apply(P,F.value,[...q])};return o.expose({loadData:f,filter:x("filter"),updateKeyChildren:x("updateKeyChildren"),getCheckedNodes:x("getCheckedNodes"),setCheckedNodes:x("setCheckedNodes"),getCheckedKeys:x("getCheckedKeys"),setCheckedKeys:x("setCheckedKeys"),setChecked:x("setChecked"),getHalfCheckedNodes:x("getHalfCheckedNodes"),getHalfCheckedKeys:x("getHalfCheckedKeys"),getCurrentKey:x("getCurrentKey"),getCurrentNode:x("getCurrentNode"),setCurrentKey:x("setCurrentKey"),setCurrentNode:x("setCurrentNode"),getNode:x("getNode"),remove:x("remove"),append:x("append"),insertBefore:x("insertBefore"),insertAfter:x("insertAfter")}),()=>{const q={...Xe(o.attrs),class:i.value,lazy:t.lazy,props:v,ref:y=>F.value=y};b?q.load=b:q.data=u.value,q["filter-node-method"]=h;const P=[],_=l.h(T.ElTree,q,o.slots);P.push(_);const O={default:()=>P},w={...Et(t,dl)};return l.h(r,w,O)}}}}const{componentName:Tf,create:Cf,scope:$f}=ie("tree-item"),Al=Cf(xf(Tf,$f,yn)),Nf=["aria-labelledby"],Ef=l.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),kf=[Ef],If=l.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,t=n,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=l.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},kf,14,Nf))}}),Of=["aria-labelledby"],Df=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vf=[Df],Rf=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,t=n,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=l.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vf,14,Of))}}),Ff=["aria-labelledby"],Af=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mf=[Af],Ml=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,t=n,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=l.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mf,14,Ff))}}),Lf=["aria-labelledby"],Bf=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),qf=[Bf],Pf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,t=n,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=l.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},qf,14,Lf))}}),_f=["aria-labelledby"],jf=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),zf=[jf],Hf=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,t=n,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=l.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},zf,14,_f))}}),Kf=["aria-labelledby"],Wf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Yf=[Wf],Uf=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,t=n,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=l.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yf,14,Kf))}}),Ll={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Po=(e,n)=>n[e.textKey],Mt=(e,n)=>n[e.valueKey],Gf=(e,n)=>n[e.visibleKey],_o=(e,n)=>n[e.disabledKey],Xf=(e,n)=>{const r=n[e.doitKey];return ce(r)},Zf=(e,n)=>{const r=n[e.numKey];return r==null?null:Ce(n[r])},jo=(e,n,r)=>{const t=e.itemOptions;return typeof t=="function"?t(n,r):t||null};function Qf(e,n,r,t=!1){return{props:{...Ll},emits:["update:modelValue","change"],setup(o,{slots:a,emit:i}){const u=l.computed(()=>{const N={};return N[`${e}`]=!0,N}),s=l.computed(()=>{const N={};return N[`${e}__titles`]=!0,N[`${o.direction}`]=!0,o.align==="left"&&(N.left=!0),o.scroll===!0&&(N.scrollable=!0),o.shape&&(N[`${o.shape}`]=!0),N}),c=l.computed(()=>({})),d=l.computed(()=>{if(!o.gutter)return 0;const N=me(o.gutter);return N<=0?0:N}),g=l.ref(o.modelValue);l.watch(()=>o.modelValue,N=>{g.value!==N&&(g.value=N,j(!1))});const p=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=l.computed(()=>{const N={};return f.value||(N.display="none"),N}),v=l.ref(),f=l.ref(!1),h=()=>{const N=!f.value;F(N)},F=N=>{const $=N;$?(f.value=$,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},x=l.ref(),S=l.ref([]),q=(N,$)=>{S.value[$]=N},P=N=>$=>{q($,N)},_=(N,$)=>{const M=x.value,R=S.value;if(!M||!R||!R[N])return;const C=R[N];let K=0;o.direction==="vertical"?K=C.offsetTop-(M.offsetHeight-C.offsetHeight)/2:K=C.offsetLeft-(M.offsetWidth-C.offsetWidth)/2,O(M,K,$?0:.3,o.direction)},O=(N,$,M,R)=>{let C=0;const K=R==="horizontal"?N.scrollLeft:N.scrollTop,J=M===0?1:Math.round(M*1e3/16);function le(){R==="horizontal"?N.scrollLeft+=($-K)/J:N.scrollTop+=($-K)/J,++C<J&&zn(le)}le()},I=(N,$)=>{const M=Mt(o,N),R={};return R[`${e}__titles-item`]=!0,R.disabled=_o(o,N),R.active=M===g.value,o.shape&&(R[`${o.shape}`]=!0),o.ellipsis&&(R.ellipsis=!0),$&&($.class&&(R[`${$.class}`]=!0),$.disabled===!0&&(R.disabled=$.disabled)),R},w=(N,$)=>{const M={};if(d.value>0){const R=Math.abs(d.value/2);o.direction==="vertical"?(M["margin-top"]=`${R}px`,M["margin-bottom"]=`${R}px`):(M["margin-left"]=`${R}px`,M["margin-right"]=`${R}px`)}return $&&$.style&&Object.assign(M,$.style),M},z=(N,$)=>`${Mt(o,N)??$}`,y=(N,$)=>{const M=Mt(o,N),R={};R[`${e}__popup-item`]=!0,R.disabled=_o(o,N),R.active=M===g.value,o.shape&&(R[`${o.shape}`]=!0);const C=jo(o,N,$);return C&&C.disabled===!0&&(R.disabled=C.disabled),R},A=l.computed(()=>(o.data??[]).filter($=>Gf(o,$)!==!1)),X=(N,$)=>{const M=Mt(o,N);if(g.value==M)return;const R=()=>{g.value=M,o.scroll&&_($,!1),i("update:modelValue",M),i("change",N,$)};if(typeof o.beforeChange=="function"){const C=o.beforeChange(N,$);xr(C)?C.then(K=>{K!==!1&&R()}).catch(()=>{R()}):C!==!1&&R()}else R()},V=(N,$)=>function(){X(N,$)},E=(N,$)=>{X(N,$),F(!1)},L=(N,$)=>function(){E(N,$)},j=N=>{if(!Array.isArray(o.data)||!o.scroll)return;const $=o.data.findIndex(M=>Mt(o,M)===g.value);$!==-1&&_($,N)};l.watch(()=>o.data,()=>{setTimeout(j,0)}),l.onMounted(()=>{j(!0)});const U=(N,$)=>{if(a.item)return a.item({item:N,index:$});const M=jo(o,N,$),R=[];if(a.text){const le=a.text({item:N,index:$});R.push(le)}else{const le=[];if(M?.doit===!0||Xf(o,N)){const W={class:[`${e}__titles-item-tip`,"doit"]},Z=l.h("view",W);le.push(Z)}const G=M?.num??Zf(o,N);if(G){let W="";const Z=Ce(G);Z>=100?W="99+":W=`${Z}`;const D={class:[`${e}__titles-item-tip`,"num"]},H=l.h("view",D,[W]);le.push(H)}const Y={class:`${e}__titles-item-text`};le.push(Po(o,N));const k=l.h("view",Y,le);R.push(k)}const C={class:`${e}__titles-item-line`},K=l.h("view",C);R.push(K);const J={ref:P($),class:I(N,M),style:w(N,M),key:z(N,$),onClick:V(N,$)};return l.h("view",J,R)},ee=()=>{const N=a.default?a.default():[];if(N.length===0)for(let M=0;M<A.value.length;M++){const R=A.value[M],C=U(R,M);N.push(C)}const $={ref:x,class:s.value,style:c.value};return l.h("view",$,N)},B=()=>{let N=null;a.navigation?N=a.navigation():N=l.h(r);const $={class:`${e}__navigation`,onClick:h};return l.h("view",$,[N])},ne=()=>{const N=[];for(let M=0;M<A.value.length;M++){const R=A.value[M];let C=null;a.popupItem?C=a.popupItem({item:R,index:M}):C=Po(o,R);const K={class:y(R,M),key:z(R,M),onClick:L(R,M)},J=l.h("view",K,[C]);N.push(J)}const $={class:p.value,style:b.value};return l.h("view",$,N)};return()=>{const N=[],$=ee();if(N.push($),o.showQuickNavigation){const R=B();N.push(R);const C=ne();N.push(C)}const M={class:u.value};return l.h("view",M,N)}}}}const{create:Jf,componentName:ed,scope:td}=ie("tabs-bar"),En=Jf(Qf(ed,td,Rf,!1)),zo=Symbol("TabsStatesKey"),Bl={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Ho=10;function Ko(e,n){return e>n&&e>Ho?"horizontal":n>e&&n>Ho?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",r=()=>e.direction==="horizontal",t=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ko(e.offsetX,e.offsetY))},start:i=>{if(t(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:t,isVertical:n,isHorizontal:r,state:e}}function nd(){const e=l.ref(0),n=l.ref(0),r=l.ref(0),t=l.ref(0),o=l.ref(0),a=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),c=l.ref(0),d=l.ref(""),g=()=>d.value==="vertical",p=()=>d.value==="horizontal",b=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",r.value=0};return{move:h=>{if(h.touches){const S=h.touches[0];i.value=S.clientX-e.value,u.value=S.clientY-n.value,o.value=S.clientX,a.value=S.clientY}else{const x=h;i.value=x.clientX-e.value,u.value=x.clientY-n.value,o.value=x.clientX,a.value=x.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-r.value,d.value||(d.value=Ko(s.value,c.value))},start:h=>{if(b(),h.touches){const S=h.touches[0];e.value=S.clientX,n.value=S.clientY}else{const x=h;e.value=x.clientX,n.value=x.clientY}r.value=Date.now()},reset:b,startX:e,startY:n,startTime:r,duration:t,moveX:o,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:g,isHorizontal:p}}const ld=15,rd=300,od=200;function ad(e,n,r=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*r}function Wo(e,n=0,r,t,o=od){r==="end"?e.style.transition=`transform ${o}ms linear`:e.style.transition="transform 0ms linear",t==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let id=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,r,t,o=1){this.onStart=n,this.onMove=r,this.onEnd=t,this.momentumReduceRatio=o,this.isTouch=Lt()}open(n){this.el=n;const r=Bt(),t=(o,a,i)=>{const u={delta:o,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=o=>{if(this.moving)return;r.start(o),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=o=>{if(!this.moving)return;r.move(o);let a=0;if(this.direction==="horizontal"){if(r.isVertical())return;a=r.state.deltaX}else{if(r.isHorizontal())return;a=r.state.deltaY}t(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let o=0;if(this.direction==="horizontal"){if(r.isVertical()){this.moving=!1;return}o=r.state.deltaX}else{if(r.isHorizontal()){this.moving=!1;return}o=r.state.deltaY}const a=r.state.duration;a<rd&&Math.abs(o)>ld?(o=ad(o,a,this.momentumReduceRatio),t(o,this.direction,"end")):t(o,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function sd(e,n,r,t=1){return new id(e,n,r,t)}function ud(e,n,r=!1){return{props:{...Bl},emits:["update:modelValue","change"],setup(t,{emit:o,slots:a}){const i=l.shallowRef([]),u={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:O=>{const I={name:O};u.current.value===O&&(I.loaded=!0),i.value.push(I),l.triggerRef(i)},remove:O=>{const I=i.value.findIndex(w=>w.name===O);I!==-1&&i.value.splice(I,1)},isLoaded:O=>{if(!t.lazy)return!0;const I=i.value.findIndex(w=>w.name===O);return I!==-1?u.current.value?i.value[I].loaded??!1:I===0:!1}};l.provide(zo,u);const s=O=>{const I=i.value.findIndex(w=>w.name===O);I!==-1&&(i.value[I].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([O,I])=>{u.current.value!==O&&(u.current.value=O??"",s(O??"")),u.direction.value!==I&&(u.direction.value=I)});const c=l.ref(null),d=l.ref(null),g=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),p=l.computed(()=>{const O={};if(t.width){const I=Se(t.width);I&&(O.width=I)}if(t.height){const I=Se(t.height);I&&(O.height=I)}return O});let b=!0;const v=l.computed(()=>{const O={},I=i.value.length;if(I<=0)return O;const w=i.value.findIndex(z=>z.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(O.height=`${I*u.tabHeight.value}px`,w!==-1&&(O.transform=`translate(0, -${w*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(O.width=`${I*u.tabWidth.value}px`,w!==-1&&(O.transform=`translate(-${w*u.tabWidth.value}px, 0)`)),b&&(b=!1,O.transition="transform 0s ease"),O}),f={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=O=>{const I=i.value.length,w=i.value.findIndex(z=>z.name===u.current.value);f.moved=0,O.direction==="vertical"?(f.min=-1*(u.tabHeight.value*(I-1)+u.tabHeight.value/4),f.max=u.tabHeight.value/4,f.start=-w*u.tabHeight.value,f.itemDistance=u.tabHeight.value):(f.min=-1*(u.tabWidth.value*(I-1)+u.tabWidth.value/4),f.max=u.tabWidth.value/4,f.start=-w*u.tabWidth.value,f.itemDistance=u.tabWidth.value)},F=O=>{const I=d.value;if(!I)return;let w=f.start+O.delta;if(w>f.max?w=f.max:w<f.min&&(w=f.min),O.type==="move")Wo(I,w,"move",O.direction,300);else if(O.type==="end"){let z=Math.floor(Math.abs(w)*1/f.itemDistance);const y=Math.abs(w)%f.itemDistance;f.start>w?y>=f.itemDistance*f.triggerAutoMoveRatio&&(z+=1):y>f.itemDistance-f.itemDistance*f.triggerAutoMoveRatio&&(z+=1),w=-1*z*f.itemDistance,Wo(I,w,"end",O.direction,300),f.moved=w;const A=i.value[z].name;u.current.value=A??"",s(A??""),o("update:modelValue",A)}},x=()=>{},S=()=>{if(!c.value)return;const O=an(c.value);u.tabWidth.value=O.width,u.tabHeight.value=O.height},q=Br(S,250);let P=null,_=null;return l.onMounted(()=>{c.value&&(S(),window.ResizeObserver&&(_=new window.ResizeObserver(q),_.observe(c.value)),t.draggle&&(P=sd(h,F,x),P.open(d.value)))}),l.onBeforeUnmount(()=>{_&&(_.disconnect(),_=null),P&&P.close()}),()=>{const O={class:`${e}__panes`,style:v.value,ref:d},I=l.h("view",O,[a?.default?.()]),w={class:g.value,style:p.value,ref:c};return l.h("view",w,[I])}}}}const{create:cd,componentName:fd,scope:dd}=ie("tabs-container"),kn=cd(ud(fd,dd,!1)),hd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function gd(e,n,r){return{props:{...hd},setup(t,{emit:o,slots:a}){const i=l.inject(zo);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=l.computed(()=>t.loaded!=null?ce(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const g={class:`${e}__empty-icon`},p=t.emptyIcon??r,b=l.h(p,g),v={class:`${e}__empty-text`},f=t.emptyText??"Loading",h=l.h("view",v,[f]),F={class:`${e}__empty`},x=l.h("view",F,[b,h]);c.push(x)}const d={class:`${e}`,style:u.value};return l.h("view",d,c)}}}}const{create:md,componentName:yd,scope:pd}=ie("tabs-pane"),ql=md(gd(yd,pd,Ml));function bd(e,n,r,t){return{props:{...Ll,...Bl,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(o,{emit:a,slots:i}){const u=e,s=l.computed(()=>{const f=[`${u}`];return o.direction==="vertical"?f.push("vertical-tabbar"):f.push("horizontal-tabbar"),f}),c=l.computed(()=>{const f={};if(o.width){const h=Se(o.width);h&&(f.width=h)}if(o.height){const h=Se(o.height);h&&(f.height=h)}return f}),d=l.computed(()=>[`${u}__bars`]),g=l.computed(()=>[`${u}__container`]),p=l.ref(o.modelValue);l.watch(()=>o.modelValue,f=>{p.value!==f&&(p.value=f)});const b=f=>{a("change",f)},v=f=>{p.value!==f&&(p.value=f,a("update:modelValue",f))};return()=>{const f=i.default?.()??[],h=[];if(Array.isArray(o.data))h.push(...o.data);else for(let I=0;I<f.length;I++){const w=f[I].props??{},z={text:w.label??"",value:w["pane-key"]??w.paneKey??""};h.push(z)}const F={};for(let I in i)I!=="default"&&(F[I]=i[I]);const x=Et(o,Ll);Object.assign(x,{data:h,class:d.value,modelValue:p.value,direction:o.direction,onChange:b,"onUpdate:modelValue":v});const S=l.h(r,x,F),q={default:i.default},P=Et(o,Bl);Object.assign(P,{class:g.value,modelValue:p.value,onChange:b,"onUpdate:modelValue":v});const _=l.h(t,P,q),O={class:s.value,style:c.value};return l.h("view",O,[S,_])}}}}const{create:vd,componentName:wd,scope:Sd}=ie("tabs-frame"),Pl=vd(bd(wd,Sd,En,kn)),xd={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Td(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yo(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uo(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Cd(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function _l(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Go(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Xo(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function jl(e,n,r){return typeof e.itemOptions=="function"?e.itemOptions(n,r):e.itemOptions}class $d{proxy;constructor(n){this.proxy=n}async load(n,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await Reflect.apply(r,null,[t]);const o=je(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Ye(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(o,null,[r,t]))}}function Nd(){const e=l.getCurrentInstance();return new $d(e.proxy)}function Ed(e,n,r,t){return{props:{...xd},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:a,emit:i}){const u=e,s=Nd(),c=l.ref([]),d=l.computed(()=>c.value.filter($=>Cd(o,$)!==!1)),g=l.ref(-1),p=()=>{const $=o.modelValue,M=d.value.findIndex(R=>Yo(o,R)===$);g.value!==M&&(g.value=M,o.scroll&&ne(M))};l.watch([()=>o.modelValue,d],()=>{p()});const b=$=>g.value===$,v=$=>{if($<0&&$>=d.value.length)return!1;const M=d.value[$],C=(jl(o,M,$)??{}).status??_l(o,M);return b($)||C},f=l.computed(()=>{const $={[u]:!0};return o.mode?$[`is-${o.mode}`]=!0:o.direction&&($[`is-${o.direction}`]=!0),o.scroll&&($["is-scroll"]=!0),$}),h=l.computed(()=>({})),F=($,M,R,C,K)=>{const J={[`${u}__step`]:!0};return K&&(J[`${K}`]=!0),J[`${x.value}`]=!0,C&&(J["is-doit"]=!0),$===g.value?J["is-active"]=!0:M==="done"?J["is-done"]=!0:M==="error"?J["is-error"]=!0:M==="half"?J["is-half"]=!0:R?J["is-disabled"]=!0:J["is-normal"]=!0,J},x=l.computed(()=>{if(o.mode==="simple")return"start";let $=o.align;return $||(o.direction==="vertical"?$="start":$="center"),$}),S=($,M={})=>{const R={...M};return x.value==="start"&&$===d.value.length-1?R.flex="0 0 auto":o.step?o.direction==="vertical"?R.height=o.step:R.width=o.step:R.flex="1 1 100%",R},q=($,M)=>{let R={};if(M<d.value.length-1){const C=M+1;v(M)&&v(C)?o.direction==="vertical"?R.height="100%":R.width="100%":R.opacity="0"}return R},P=$=>d.value.length-1===$,_=($,M)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&M>g.value||g.value===M)return;const R=g.value,C=M;g.value=M,o.scroll&&ne(M);const K=Yo(o,$);i("update:modelValue",K);const J={fromIndex:R,currentIndex:C,item:$,items:d.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",K,J)},O=l.ref(!0),I=async($,M)=>{try{const R=await s.load("stesbar",$,M);Array.isArray(R)&&(c.value=R),O.value=!1}catch(R){console.error("[FoxUI] Load StepsBar Data Fail",R),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>o.data,()=>o.params],async([$,M])=>{$&&I($,M)},{immediate:!0});const w=($,M,R,C,K)=>{let J=null;if(a.icon)J=a.icon({item:$,index:M,status:C});else if(C==="done"){const G={};o.iconSize&&(G.width=o.iconSize,G.height=o.iconSize);const Y=o.icon??r;J=l.h(Y,G)}else{const G=R??`${M+1}`;J=l.h("span",{},[G])}const le={class:"fox-steps-bar__icon",onClick:()=>{K||_($,M)}};return l.h("view",le,[J])},z=($,M,R)=>{const C=l.h("i",{class:"fox-steps-bar__line-inner",style:q($,M)});return l.h("view",{class:"fox-steps-bar__line"},[C])},y=()=>{let $=null;if(a.markIcon)$=a.markIcon();else{const R={};o.iconSize&&(R.width=o.markIconSize,R.height=o.markIconSize);const C=o.markIcon??t;$=l.h(C,R)}return l.h("view",{class:"fox-steps-bar__mark"},[$])},A=($,M,R,C,K)=>{const J=[];if(!P(M)){const Y=z($,M);J.push(Y)}const le=w($,M,R,C,K);J.push(le);const G={class:"fox-steps-bar__head"};return l.h("view",G,J)},X=($,M,R,C)=>{let K=null;a.main?K=a.main({item:$,index:M,status:R}):K=Td(o,$);const J={class:"fox-steps-bar__main",onClick:()=>{C||_($,M)}};return l.h("view",J,[K])},V=($,M,R)=>{let C=null;if(a.sub){C=a.sub({item:$,index:M,status:R});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[C])}return null},E=($,M)=>{const R=jl(o,$,M)??{},C=R.status??_l(o,$);let K=Uo(o,$);R.disabled===!0&&(K=!0),o.disabled===!0&&(K=!0);const J=R.label??Xo(o,$),le=[],G=w($,M,J,C,K);G&&le.push(G);const Y=X($,M,C,K);if(Y&&le.push(Y),!P(M)){const Q=z($,M);Q&&le.push(Q)}const k=l.h("view",{class:"fox-steps-bar__head"},le),W=R.class,Z=R.style??{};let D=Go(o,$);R.doit===!0&&(D=!0);const H={ref:B(M),class:F(M,C,K,D,W),style:S(M,Z)};return l.h("view",H,[k])},L=($,M)=>{const R=jl(o,$,M)??{},C=R.status??_l(o,$);let K=Uo(o,$);R.disabled===!0&&(K=!0),o.disabled===!0&&(K=!0);const J=R.label??Xo(o,$),le=[],G=o.layout;for(let D of G)if(D==="head"){const H=A($,M,J,C,K);le.push(H)}else if(D==="main"){const H=X($,M,C,K);le.push(H)}else if(D==="sub"){const H=V($,M,C);le.push(H)}else if(D==="mark"){const H=y();le.push(H)}const Y=R.class,k=R.style??{};let W=Go(o,$);R.doit===!0&&(W=!0);const Z={ref:B(M),class:F(M,C,K,W,Y),style:S(M,k)};return l.h("view",Z,le)},j=l.ref(),U=l.ref([]),ee=($,M)=>{U.value[M]=$},B=$=>M=>{ee(M,$)},ne=($,M)=>{const R=j.value,C=U.value;if(!R||!C||!C[$])return;const K=C[$];let J=0;o.direction==="vertical"?J=K.offsetTop-(R.offsetHeight-K.offsetHeight)/2:J=K.offsetLeft-(R.offsetWidth-K.offsetWidth)/2,N(R,J,.3,o.direction)},N=($,M,R,C)=>{let K=0;const J=C==="horizontal"?$.scrollLeft:$.scrollTop,le=Math.round(R*1e3/16);function G(){C==="horizontal"?$.scrollLeft+=(M-J)/le:$.scrollTop+=(M-J)/le,++K<le&&zn(G)}G()};return()=>{const $=[];if(o.mode==="simple")for(let R=0;R<d.value.length;R++){const C=d.value[R],K=E(C,R);$.push(K)}else for(let R=0;R<d.value.length;R++){const C=d.value[R],K=L(C,R);$.push(K)}const M={ref:j,class:f.value,style:h.value};return l.h("view",M,$)}}}}const{componentName:kd,create:Id,scope:Od}=ie("steps-bar"),zl=Id(Ed(kd,Od,Hf,Uf)),Dd=Symbol.for("InnerPageScopeKey"),Vd=Symbol.for("PageWrapperKey");function Rd(e,n){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(r,t){l.provide(Dd,!0);const o={};l.provide(Vd,o);const a=s=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=l.ref(!0),u=s=>{i.value=s};return()=>{const c={...t.attrs,title:r.title,draggable:r.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":a},d=["fox-dialog-item "];r.hideHeader&&d.push("hide-header"),r.class&&d.push(r.class),c.class=d.join(" ");const g={};return typeof t.slots.default=="function"&&(g.default=t.slots.default),l.h(T.ElDialog,c,g)}}}}const{create:Fd}=ie("dialog-item"),Hl=Fd(Rd());let qt=0;const Zo="fox-overflow-hidden",Qo=()=>rt?document.body:{classList:[]},Ad=e=>[()=>{if(e())try{!qt&&Qo().classList.add(Zo),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&Qo().classList.remove(Zo)}catch{}}],Md={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:Ld,create:Bd}=ie("overlay"),qd=Bd({props:{...Md},emits:["click","update:visible"],setup(e,{emit:n}){const[r,t]=Ad(()=>e.lockScroll),o=l.computed(()=>({[Ld]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,u=>{u?r():t()}),{classes:o,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Pd(e,n,r,t,o,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:n[0]||(n[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const In=Ge(qd,[["render",Pd]]),_d={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:{}}},Jo=2e3;let ea=Jo;const jd=(e,n)=>({components:n,props:{..._d},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(r,{emit:t}){const o=l.reactive({zIndex:r.zIndex,showSlot:!0,closed:r.closeable}),a=l.computed(()=>({[e]:!0,round:r.round,[`fox-popup--${r.position}`]:!0,[`fox-popup--${r.position}--safebottom`]:r.position==="bottom"&&r.safeAreaInsetBottom,[r.popClass]:!0})),i=l.computed(()=>({zIndex:o.zIndex,transitionDuration:`${r.duration}s`,...r.style})),u=l.computed(()=>r.transition?r.transition:`fox-popup-slide-${r.position}`),s=()=>{r.zIndex!==Jo&&(ea=Number(r.zIndex)),t("update:visible",!0),o.zIndex=++ea,r.destroyOnClose&&(o.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),r.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+r.duration*1e3)},d=f=>{t("click-pop",f)},g=f=>{f.stopPropagation(),t("click-close-icon",f),t("update:visible",!1)},p=f=>{t("click-overlay",f),r.closeOnClickOverlay&&t("update:visible",!1)},b=f=>{t("opend",f)},v=f=>{t("closed",f)};return l.watch(()=>r.visible,f=>{r.visible?s():c()}),l.watch(()=>r.closeable,f=>{o.closed=f}),{...l.toRefs(o),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:g,onClickOverlay:p,onOpened:b,onClosed:v}}}),{componentName:zd,create:Hd}=ie("popup"),Kd=Hd(jd(zd,{FoxOverLay:In,Close:Pf}));function Wd(e,n,r,t,o,a){const i=l.resolveComponent("FoxOverLay"),u=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(u)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Kl=Ge(Kd,[["render",Wd]]),{create:Yd}=ie("toast"),Ud=Yd({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 r=null;const t=l.reactive({mounted:!1});l.onMounted(()=>{t.mounted=!0});const o=()=>{r&&(clearTimeout(r),r=null)},a=()=>{t.mounted=!1},i=()=>{o(),e.duration&&(r=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,b=>{b&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const b=me(e.iconSize);return l.h(e.icon,{width:b,height:b,color:e.iconColor})},d=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),g=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:g,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Gd={key:1,class:"fox-toast-title"},Xd=["innerHTML"];function Zd(e,n,r,t,o,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Gd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Xd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=Ge(Ud,[["render",Zd]]),Qd={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"}},Jd=(e,n,r)=>({props:{...Qd},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:o}){const{emitEvent:a}=_r(),{toLocaleRefs:i}=Pe.useFoxI18n(n),u=i(t,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),d=l.computed(()=>({background:t.inputBackground})),g=w=>{let y=w.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),a("update:modelValue",y,w),a("change",y,w)},p=l.ref({}),b=w=>{let y=w.target.value;s.active=!0,p.value=t.focusStyle,a("focus",y,w)},v=w=>{setTimeout(()=>{s.active=!1},0);let y=w.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),p.value={},a("blur",y,w)},f=w=>{a("update:modelValue","",w),a("change","",w),a("clear","")},h=l.computed(()=>String(t.modelValue).length>0),F=l.computed(()=>{const w={};return h.value||(w.display="none"),w}),x=()=>{a("search",t.modelValue)},S=w=>{a("keyup-input",w),w.key.toLocaleUpperCase()==="ENTER"&&x()},q=w=>{a("click-input",w)},P=w=>{a("click-left-icon",t.modelValue,w)},_=l.computed(()=>({textAlign:t.inputAlign})),O=l.ref(null);l.onMounted(()=>{t.autofocus&&O.value.focus()});const I=()=>{const w=[];if(o.leftin){const V={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:P},E=l.h("view",V,[o.leftin()]);w.push(E)}const z={ref:O,class:[`${e}__input-inner`],style:_.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:q,onInput:g,onFocus:b,onBlur:v,onkeyup:S},y=l.h("input",z);w.push(y);const A=[];if(t.clearable){const V={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:F.value,onClick:f},E=o?.clear?.()??t.clearIcon??r,L=l.h("view",V,[l.h(E)]);A.push(L)}if(o.rightin){const V={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=l.h("view",V,[o.rightin()]);A.push(E)}if(A.length>0){const V={class:`${e}__input-inner-right`},E=l.h("view",V,A);w.push(E)}const X={class:[`${e}__search-input`,`${t.shape}`],style:{...d.value,...p.value}};return l.h("view",X,w)};return()=>{const w=[];if(t.label){const A={class:`${e}__search-label`},X=l.h("span",A,[t.label]);w.push(X)}if(o.leftout){const A={class:[`${e}__search-icon`,`${e}__left-search-icon`]},X=l.h("view",A,[o.leftout()]);w.push(X)}const z=I();if(w.push(z),o.rightout){const A={class:[`${e}__search-icon`,`${e}__right-search-icon`]},X=l.h("view",A,[o.rightout()]);w.push(X)}const y={class:`${e}`,style:c.value};return l.h("view",y,w)}}}),{componentName:eh,create:th,scope:nh}=ie("searchbar"),Yl=th(Jd(eh,nh,Ie.CircleClose)),lh=/scroll|auto|overlay/i,ta=window;function rh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function oh(e,n=ta){let r=e;for(;r&&r!==n&&rh(r);){const{overflowY:t}=window.getComputedStyle(r);if(lh.test(t))return r;r=r.parentNode}return n}function na(e,n=ta){const r=l.ref();return l.onMounted(()=>{e.value&&(r.value=oh(e.value,n))}),r}const la=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ah={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 ih(e,n,r){return{props:{...ah},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:o,slots:a}){const{toLocaleRefs:i}=Pe.useFoxI18n(n),u=i(t,["pullText","loadText","loadMoreText"]),s=l.ref(),c=na(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),g=l.computed(()=>({[e]:!0})),p=x=>x?x.offsetTop+p(x.offsetParent):0,b=()=>{let x=0,S=0,q="down";if(c.value==window){const P=la();s.value&&(x=p(s.value)+s.value.offsetHeight-P-window.innerHeight),S=P}else{const{scrollHeight:P,clientHeight:_,scrollTop:O}=c.value;x=P-_-O,S=O}return d.beforeScrollTop>S?q="up":q="down",d.beforeScrollTop=S,o("scroll-change",S),x<=t.threshold&&q=="down"},v=()=>{dr(()=>{if(!b()||!t.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,o("update:modelValue",!0),l.nextTick(()=>o("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",v,t.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",v,t.useCapture)};l.onMounted(()=>{f(),t.immediate&&v()}),l.onUnmounted(()=>{h()});const F=l.ref(!1);return l.onActivated(()=>{F.value&&(F.value=!1,f())}),l.onDeactivated(()=>{F.value=!0,h()}),l.watch(()=>t.modelValue,x=>{x||(d.isInfiniting=!1)}),()=>{const x={class:"fox-infinite__container"},S=l.h("view",x,[a?.default?.()]),q=[];if(d.isInfiniting){let I=a?.loading?.()??null;if(!I){let y=a?.loadingIcon?.()??null;if(!y){const V={class:["fox-infinite__bottom-box__img"]};y=l.h(r,V)}const A={class:"fox-infinite__bottom-box__text"},X=l.h("view",A,[u.loadText.value]);I=[y,X]}const w={class:"fox-infinite__bottom-box"},z=l.h("view",w,I);q.push(z)}else if(!t.hasMore){let I=a?.finished?.()??null;if(!I){const w={class:"fox-infinite__bottom-tips"};I=l.h("view",w,[u.loadMoreText.value]),q.push(I)}}const P={class:"fox-infinite__bottom"},_=l.h("view",P,q),O={class:g.value,ref:s};return l.h("view",O,[S,_])}}}}const{componentName:sh,create:uh,scope:ch}=ie("infinite-loading"),Ul=uh(ih(sh,ch,Ml)),fh={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},dh=(e,n,r)=>({props:{...fh},emits:["change","refresh","update:modelValue"],setup(t,{emit:o,slots:a}){const{toLocaleRefs:i}=Pe.useFoxI18n(n),u=i(t,["pullingText","loosingText","loadingText"]),s=Bt(),c=l.ref(),d=na(c),g=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=l.computed(()=>({[e]:!0})),b=l.computed(()=>{switch(g.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),v=l.computed(()=>({transitionDuration:`${t.duration}s`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""})),f=l.computed(()=>{const O={};return t.headHeight!=50&&(O.height=Se(t.headHeight)),O}),h=O=>{const I=+(t.pullDistance||t.headHeight);let w=O;return O>I&&(O<I*2?w=(O+I)/2:w=I+O/4),Math.round(w)},F=(O,I)=>{const w=+(t.pullDistance||t.headHeight);g.distance=O,I?g.status="loading":O===0?g.status="normal":O<w?g.status="pulling":g.status="loosing",o("change",{status:g.status,distance:O})},x=()=>g.status!=="loading"&&g.status!=="complete",S=()=>d.value==window?la()==0:d.value&&d.value.scrollTop==0,q=O=>{x()&&(S()?(s.start(O),g.isPullRefresh=!0,g.moving=!0):(g.distance=0,g.isPullRefresh=!1))},P=O=>{x()&&g.moving&&(s.move(O),s.isVertical()&&s.state.deltaY>0&&g.isPullRefresh&&(O.cancelable&&O.preventDefault(),F(h(s.state.deltaY))))},_=()=>{g.moving=!1,g.isPullRefresh&&x()&&s.state.deltaY&&(g.status==="loosing"?(F(+t.headHeight,!0),o("update:modelValue",!0),l.nextTick(()=>o("refresh"))):F(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>t.modelValue,O=>{O?F(+t.headHeight,!0):F(0)}),()=>{const O=[];let I=null;if(g.status==="loading"){if(I=a?.loading?.()??null,!I){const L={class:["fox-pull-refresh-container-topbox-icon"]};I=l.h(r,L)}}else g.status==="pulling"?I=a?.pulling?.()??null:g.status==="loosing"&&(I=a?.loosing?.()??null);I&&O.push(I);const w={class:["fox-pull-refresh-container-topbox-text"]},z=l.h("dive",w,[b.value]);O.push(z);const y={class:["fox-pull-refresh-container-topbox"],style:f.value},A=l.h("div",y,O),X={class:"fox-pull-refresh-container",style:v.value},V=l.h("div",X,[A,a?.default?.()]),E={ref:c,class:p.value};return Lt()?Object.assign(E,{onTouchstart:q,onTouchmove:P,onTouchend:_}):Object.assign(E,{onMousedown:q,onMousemove:P,onMouseup:_}),l.h("div",E,[V])}}}),{componentName:hh,create:gh,scope:mh}=ie("pull-refresh"),Gl=gh(dh(hh,mh,Ml));function yh(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(r,{slots:t}){const o=e,a=l.computed(()=>({[o]:!0})),i=l.computed(()=>r.icon?{[`${o}__icon`]:!0,[`${o}__icon-${r.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${r.type}`]:!0}),u=l.computed(()=>r.color?r.icon?{color:r.color}:{background:r.color}:null),s=l.computed(()=>{const d={[`${o}__text`]:!0,[`${o}__text-${r.type}`]:!0};return r.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=l.computed(()=>r.color?{color:r.color}:null);return()=>{let d=null;if(t.mark)d=t.mark()[0];else{const f={class:i.value,style:u.value};d=l.h(r.icon??"div",f)}const g={class:s.value,style:c.value},p=t.default?t.default():[],b=l.h("div",g,p),v={class:a.value};return r.textPosition==="right"?l.h("div",v,[d,b]):l.h("div",v,[b,d])}}}}const{componentName:ph,create:bh}=ie("indicator"),Xl=bh(yh(ph));function vh(e,n){const r=document.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);const t=r.getBoundingClientRect().width;if(t>0){n(t);return}e.classList.add("is-selectable"),setTimeout(()=>{r.setStart(e,0),r.setEnd(e,e.childNodes.length);const o=r.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}const wh={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 Sh(e,n,r,t=!1){return{props:{...wh},emits:["click"],setup(o,a){const i=l.ref(null),u=l.computed(()=>{const S={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(S[`${e}--${o.type??"default"}`]=!0),o.size&&(S[`${e}--${o.size}`]=!0),S}),s=l.computed(()=>{const S={},q=o.textColor??o.color;return q&&(S.color=q),S}),c=(S,q)=>{let P=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const _=o.highlightFilter;if(S.indexOf(_)!==-1){const I=S.replace(new RegExp(_,"g"),`<span>${_}</span>`);q.innerHTML=I,q.class["is-highlight"]=!0,P=l.h(o.tag,q)}}else if(typeof o.highlightFilter=="function"){const _=o.highlightFilter(S);_&&(q.innerHTML=_,q.class["is-highlight"]=!0,P=l.h(o.tag,q))}return P},d=S=>{a.emit("click",S)};let g="";const p=()=>{const S=i.value;if(!S)return;const q=S.clientWidth;vh(S,P=>{const _=S.innerHTML??"";he(_)||P<q||(g?r?.show(S,_,{type:"text",id:g,showArrow:o.showArrow},!0):g=r?.show(S,_,{type:"text",showArrow:o.showArrow},!0)??"")})},b=()=>{g&&r?.hide(g)};let v=null;const f=S=>{v||(v=setTimeout(()=>{p(),v=null},o.showAfter??0))},h=S=>{v&&(clearTimeout(v),v=null),setTimeout(()=>{b()},o.hideAfter??0)},F=()=>{const S=i.value;S&&(S.addEventListener("mouseover",f),S.addEventListener("mouseleave",h))},x=()=>{const S=i.value;S&&(S.removeEventListener("mouseover",f),S.removeEventListener("mouseleave",h))};return l.onMounted(()=>{!ce(o.showOverflowTooltip)||!r||F()}),l.onBeforeUnmount(()=>{!ce(o.showOverflowTooltip)||!r||x()}),()=>{const S={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ce(o.numberFormat)&&typeof a.slots.default=="function"){const I=a.slots.default();if(Array.isArray(I)&&I.length===1){const w=I[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const z=Ce(o.digits),y=Ce(o.decimalLength),A=ce(o.autoPadding);let X=`${I[0].children}`,V=X.split("").reverse().join("");V=zt(V,y,A,z,o.separator),X=V.split("").reverse().join(""),o.highlightFilter!==void 0&&(q=c(X,S)),q||(S.innerHTML=X,q=l.h(o.tag,S))}}}else{if(o.highlightFilter!==void 0&&typeof a.slots.default=="function"){const I=a.slots.default();if(Array.isArray(I)&&I.length===1){const w=I[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const z=`${I[0].children}`;q=c(z,S),q||(S.innerHTML=z,q=l.h(o.tag,S))}}}q||(q=l.h(o.tag,S,{default:a.slots.default}))}if(!o.mark&&!o.icon&&!a.slots.mark)return q;let _=null;if(o.icon){const I={[`${e}__mark-wrap`]:!0};o.type&&(I[`${e}__mark-wrap--${o.type}`]=!0);const w={},z=o.color;z&&(w.color=z);const y={class:I,style:w};_=l.h("view",y,l.h(o.icon))}else if(a.slots.mark){const I={[`${e}__mark-wrap`]:!0};o.type&&(I[`${e}__mark-wrap--${o.type}`]=!0);const w={},z=o.color;z&&(w.color=z);const y={class:I,style:w};_=l.h("view",y,{default:a.slots.mark})}else{const I={[`${e}__mark`]:!0};o.type&&(I[`${e}__mark--${o.type??"default"}`]=!0);const w={},z=o.color;z&&(w["background-color"]=z);const y={class:I,style:w};_=l.h("view",y)}const O={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return l.h("view",O,[_,q])}}}}const{componentName:xh,create:Th,scope:Ch}=ie("text"),Zl=Th(Sh(xh,Ch,Le,!1)),$h={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ie.ArrowUp}};function Nh(e,n,r){return{props:{...$h},emits:["click","update:modelValue"],setup(t,{emit:o}){const a=l.computed(()=>{const g={[`${e}`]:!0};return t.disabled?g[`${e}__disabled`]=!0:g[`${e}__${t.type}`]=!0,g}),i=ge(t,"modelValue"),u=l.computed(()=>i.value?t.expandText??"":t.collapseText??""),s=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{o("update:modelValue",!i.value)};return()=>{const g=[];if(u.value){const f={class:s.value},h=l.h("span",f,[u.value]);g.push(h)}const p={class:c.value},b=r(t.icon,p);return b&&g.push(b),l.h("div",{class:a.value,onClick:d},g)}}}}const{componentName:Eh,create:kh,scope:Ih}=ie("more-button"),Ql=kh(Nh(Eh,Ih,(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]}))));function Oh(e){e.stopPropagation()}let Dh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,r){this.startMove=n,this.updateMove=r,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const r=Bt(),t=(o,a,i,u)=>{this.updateMove({x:o,y:a})};this.touchstart=o=>{this.moving||(r.start(o),this.startMove({x:r.state.startX,y:r.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(r.move(o),Oh(o),t(r.state.deltaX,r.state.deltaY))},this.touchend=()=>{t(r.state.deltaX,r.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),r.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.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 Vh(e,n){return new Dh(e,n)}const Rh={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Fh=(e,n,r,t=!1)=>({props:{...Rh},emits:["click"],setup(o,{slots:a,emit:i}){const u=l.reactive({top:o.top,right:o.right,bottom:o.bottom,left:o.left}),s=l.computed(()=>{const x=[`${e}`];return o.customClass&&x.push(o.customClass),x}),c=l.computed(()=>{const x={};return he(u.top)||(x.top=u.top),he(u.right)||(x.right=u.right),he(u.bottom)||(x.bottom=u.bottom),he(u.left)||(x.left=u.left),he(o.width)||(x.width=o.width),he(o.height)||(x.height=o.height),he(o.color)||(x.color=o.color),he(o.background)||(x.background=o.background),he(o.borderRadius)||(x["border-radius"]=o.borderRadius),he(o.zIndex)||(x["z-index"]=o.zIndex),x}),d=l.computed(()=>({[`${e}__icon`]:!0})),g=()=>{i("click")},p=l.ref(null),b=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},v={x:0,y:0},F=Vh(x=>{if(!p.value)return;const S=p.value;b(),u.left=S.offsetLeft,u.top=S.offsetTop,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`,S.style.right=null,S.style.bottom=null,v.x=u.left,v.y=u.top},x=>{if(!p.value)return;const S=p.value;b(),u.left=v.x+x.x,u.top=v.y+x.y,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`});return l.onMounted(()=>{if(o.draggable&&p.value){const x=[p.value];F.open(x)}}),l.onBeforeUnmount(()=>{o.draggable&&p.value&&F.close()}),()=>{let x=[];const S=typeof a.default=="function"?a.default():[];if(S&&S.length>0)x=S;else{const P=l.h(r,{class:d.value});x.push(P)}const q={ref:P=>{p.value=P},class:s.value,style:c.value,onClick:g};return l.h("view",q,x)}}}),{componentName:Ah,create:Mh,scope:Lh}=ie("floating-button"),Jl=Mh(Fh(Ah,Lh,If,!1));function Bh(e){return e===window}const ra=e=>{const n=l.unref(e);if(Bh(n)){const r=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:r,bottom:t,width:r,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:qh,create:Ph}=ie("tour"),_h=Ph({components:{Close:Ie.Close,ElPopover:T.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const r=qh,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=l.ref({}),a=l.computed(()=>`${r}`),i=l.computed(()=>{const{offset:v,maskWidth:f,maskHeight:h}=e,{width:F,height:x,left:S,top:q}=o.value,P=e.steps[t.active].offset??v,_=[S+F/2,q+x/2],O=Number(f||F),I=Number(h||x);return{width:`${O+ +P.left+P.right}px`,height:`${I+P.top+P.bottom}px`,top:`${_[1]-I/2-+P.top}px`,left:`${_[0]-O/2-+P.left}px`}}),u=v=>{v=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,d()}),n("change",t.active)},s=v=>v.popoverWidth??e.width,c=v=>v.location??e.location,d=()=>{const v=document.querySelector(`${e.steps[t.active].target}`),f=ra(v);o.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},g=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&g()},b=(v,f=0)=>{v&&d(),e.steps,t.active=f,t.showTour=v,t.showPopup=v};return l.onMounted(()=>{b(e.modelValue,e.current)}),l.watch(()=>e.modelValue,v=>{b(v)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:g,handleClickMask:p}}}),jh={key:0,class:"fox-tour__content"},zh={key:0,class:"fox-tour__content-top"},Hh={class:"fox-tour__content-inner"},Kh={class:"fox-tour__content-bottom"},Wh={class:"fox-tour__content-bottom-init"},Yh={class:"fox-tour__content-bottom-operate"},Uh={key:1,class:"fox-tour__content fox-tour__content-tile"},Gh={class:"fox-tour__content-inner"};function Xh(e,n,r,t,o,a){const i=l.resolveComponent("Close"),u=l.resolveComponent("fox-button"),s=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,d)=>(l.openBlock(),l.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(l.openBlock(),l.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",jh,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",zh,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...g)=>e.close&&e.close(...g))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Hh,l.toDisplayString(c.content),1),l.createElementVNode("div",Kh,[l.createElementVNode("div",Wh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Yh,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=g=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=g=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Uh,[l.createElementVNode("div",Gh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const er=Ge(_h,[["render",Xh]]),Be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Zh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,r){this.startMove=n,this.updateMove=r,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const r=Bt(),t=(o,a,i,u)=>{this.updateMove({x:o,y:a})};this.touchstart=o=>{this.moving||(r.start(o),this.startMove({x:r.state.startX,y:r.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(r.move(o),t(r.state.deltaX,r.state.deltaY))},this.touchend=()=>{t(r.state.deltaX,r.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),r.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.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 oa(e,n){return new Zh(e,n)}const aa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let xt=[];const ia=e=>{const n=e;n.key==="Escape"&&xt.forEach(r=>r(n))},Qh=e=>{l.onMounted(()=>{xt.length===0&&document.addEventListener("keydown",ia),aa&&xt.push(e)}),l.onBeforeUnmount(()=>{xt=xt.filter(n=>n!==e),xt.length===0&&aa&&document.removeEventListener("keydown",ia)})},tr="fox-focus-trap.focus-after-trapped",nr="fox-focus-trap.focus-after-released",Jh="fox-focus-trap.focusout-prevented",sa={cancelable:!0,bubbles:!1},eg={cancelable:!0,bubbles:!1},ua="foxFocusAfterTrapped",ca="foxFocusAfterReleased",tg=Symbol("foxFocusTrap"),lr=l.ref(),On=l.ref(0),rr=l.ref(0);let Dn=0;const fa=e=>{const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const o=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||o?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n},ng=(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},da=(e,n)=>{for(const r of e)if(!ng(r,n))return r},lg=e=>{const n=fa(e),r=da(n,e),t=da(n.reverse(),e);return[r,t]},rg=e=>e instanceof HTMLInputElement&&"select"in e,st=(e,n)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),rr.value=window.performance.now(),e!==r&&rg(e)&&n&&e.select()}};function ha(e,n){const r=[...e],t=e.indexOf(n);return t!==-1&&r.splice(t,1),r}const og=()=>{let e=[];return{push:t=>{const o=e[0];o&&t!==o&&o.pause(),e=ha(e,t),e.unshift(t)},remove:t=>{e=ha(e,t),e[0]?.resume?.()}}},ag=(e,n=!1)=>{const r=document.activeElement;for(const t of e)if(st(t,n),document.activeElement!==r)return},ga=og(),ig=()=>On.value>rr.value,Vn=()=>{lr.value="pointer",On.value=window.performance.now()},ma=()=>{lr.value="keyboard",On.value=window.performance.now()},sg=()=>(l.onMounted(()=>{Dn===0&&(document.addEventListener("mousedown",Vn),document.addEventListener("touchstart",Vn),document.addEventListener("keydown",ma)),Dn++}),l.onBeforeUnmount(()=>{Dn--,Dn<=0&&(document.removeEventListener("mousedown",Vn),document.removeEventListener("touchstart",Vn),document.removeEventListener("keydown",ma))}),{focusReason:lr,lastUserFocusTimestamp:On,lastAutomatedFocusTimestamp:rr}),Rn=e=>new CustomEvent(Jh,{...eg,detail:e}),{create:ug}=ie("focus-trap"),cg=ug({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[ua,ca,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:r}){const t=l.ref();let o,a;const{focusReason:i}=sg();Qh(f=>{ce(e.trapped)&&!u.paused&&r("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:h,altKey:F,ctrlKey:x,metaKey:S,currentTarget:q,shiftKey:P}=f,{loop:_}=e,O=h==="Tab"&&!F&&!x&&!S,I=document.activeElement;if(O&&I){const w=q,[z,y]=lg(w);if(z&&y){if(!P&&I===y){const X=Rn({focusReason:i.value});r("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),_&&st(z,!0))}else if(P&&[z,w].includes(I)){const X=Rn({focusReason:i.value});r("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),_&&st(y,!0))}}else if(I===w){const X=Rn({focusReason:i.value});r("focusout-prevented",X),X.defaultPrevented||f.preventDefault()}}};l.provide(tg,{focusTrapRef:t,onKeydown:s}),l.watch(()=>e.focusTrapEl,f=>{f&&(t.value=f)},{immediate:!0}),l.watch([t],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",g),f.addEventListener("focusout",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",g),h.removeEventListener("focusout",p))});const c=f=>{r(ua,f)},d=f=>r(ca,f),g=f=>{const h=l.unref(t);if(!h)return;const F=f.target,x=f.relatedTarget,S=F&&h.contains(F);ce(e.trapped)||x&&h.contains(x)||(o=x),S&&r("focusin",f),!u.paused&&ce(e.trapped)&&(S?a=F:st(a,!0))},p=f=>{const h=l.unref(t);if(!(u.paused||!h))if(!e.escape&&ce(e.trapped)){const F=f.relatedTarget;!Un(F)&&!h.contains(F)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const x=Rn({focusReason:i.value});r("focusout-prevented",x),x.defaultPrevented||st(a,!0)}},0)}else{const F=f.target;F&&h.contains(F)||r("focusout",f)}};async function b(){await l.nextTick();const f=l.unref(t);if(f){ga.push(u);const h=f.contains(document.activeElement)?o:document.activeElement;if(o=h,!f.contains(h)){const x=new Event(tr,sa);f.addEventListener(tr,c),f.dispatchEvent(x),x.defaultPrevented||l.nextTick(()=>{let S=e.focusStartEl;Sr(S)||(st(S),document.activeElement!==S&&(S="first")),S==="first"&&ag(fa(f),!0),(document.activeElement===h||S==="container")&&st(f)})}}}function v(){const f=l.unref(t);if(f){f.removeEventListener(tr,c);const h=new CustomEvent(nr,{...sa,detail:{focusReason:i.value}});f.addEventListener(nr,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!ig())&&st(o??document.body,!0),f.removeEventListener(nr,c),ga.remove(u)}}return l.onMounted(()=>{ce(e.trapped)&&b(),l.watch(()=>e.trapped,f=>{ce(f)?b():v()})}),l.onBeforeUnmount(()=>{ce(e.trapped)&&v()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:fg,create:dg}=ie("floating-window"),hg=Symbol.for("InnerPageScopeKey"),gg=Symbol.for("PageWrapperKey"),mg={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},yg=dg({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:cg},props:{...mg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const r=fg,t=l.ref(e.modelValue),o=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,D=>{t.value=D});const a=l.computed(()=>t.value===!1?!1:!I.value),i=l.ref(e.left),u=l.ref(e.top),s=l.ref(e.right),c=l.ref(e.bottom),d=l.computed(()=>{const D=["fox-floating-window"];return e.customClass&&D.push(e.customClass),D}),g=l.computed(()=>{const D={};return dt(i.value)?D.left="auto":D.left=Be(i.value),dt(u.value)?D.top="auto":D.top=Be(u.value),dt(s.value)?D.right="auto":D.right=Be(s.value),dt(c.value)?D.bottom="auto":D.bottom=Be(c.value),dt(e.zIndex)||(D["z-index"]=Be(e.zIndex)),dt(_.value)||(D.height=_.value),dt(O.value)||(D.width=O.value),D}),p=l.computed(()=>e.closeIcon??Ie.Close),b=l.computed(()=>e.collapseIcon??Ie.ArrowUp),v=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=l.computed(()=>e.expandText??e.title??"展开"),F=l.computed(()=>({[`${r}__collapse-text`]:!0})),x=l.computed(()=>({[`${r}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),S=l.ref(),q=l.ref(null),P=l.ref(null),_=l.computed(()=>Be(e.height)||""),O=l.computed(()=>Be(e.width)||""),I=l.ref(ce(e.collapse)),w=(D,H=!0)=>{I.value!==D&&(I.value=D,D?$():M(),n("update:collapse",D),D&&typeof A.onHide=="function"?A.onHide():!D&&typeof A.onShow=="function"&&A.onShow())};l.watch(()=>e.collapse,D=>{w(D)});const z=()=>{y()},y=D=>{D=D??!I.value,w(D)};l.provide(hg,!0);const A={setCollapse:w,setFixedNavVisible:D=>{B.value=D}};l.provide(gg,A);const X=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{t.value=!1}):t.value=!1},V=l.ref(null),E=l.computed(()=>!e.fixedNavTeleport),L=l.computed(()=>{const D=["fox-floating-window__fixednav"];return e.expandClass&&D.push(e.expandClass),e.collapsePosition==="left"?D.push("is-left"):e.collapsePosition==="right"&&D.push("is-right"),D}),j=l.ref(""),U=l.computed(()=>{const D={};return j.value?D.top=j.value:e.collapseTop&&(D.top=e.collapseTop),D}),ee=l.ref(I.value),B=l.computed({set:D=>{ee.value=D},get:()=>t.value===!1?!1:ee.value});let ne=null;const N=()=>{typeof ne=="function"&&(ne(),ne=null)},$=()=>{V.value&&V.value.classList.add("slide-in"),B.value=!0,ne=()=>{V.value&&V.value.classList.remove("slide-in")}},M=()=>{V.value&&V.value.classList.add("slide-out"),ne=()=>{V.value&&V.value.classList.remove("slide-out"),B.value=!1}},R=()=>{i.value=null,u.value=null,s.value=null,c.value=null},C={x:0,y:0},le=oa(D=>{if(!S.value)return;const H=S.value;if(R(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,C.x=i.value,C.y=u.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=Q-(H.offsetTop+H.offsetHeight),C.x=i.value,C.y=c.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,re=document.documentElement.clientHeight||document.body.clientHeight;s.value=Q-(H.offsetLeft+H.offsetWidth),c.value=re-(H.offsetTop+H.offsetHeight),C.x=s.value,C.y=c.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;s.value=Q-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,C.x=s.value,C.y=u.value}},D=>{if(!S.value)return;const H=S.value;R(),e.origin==="left-top"?(i.value=C.x+D.x,u.value=C.y+D.y,H.style.left=Be(i.value),H.style.top=Be(u.value)):e.origin==="left-bottom"?(i.value=C.x+D.x,c.value=C.y-D.y,H.style.left=Be(i.value),H.style.bottom=Be(c.value)):e.origin==="right-bottom"?(s.value=C.x-D.x,c.value=C.y-D.y,H.style.right=Be(s.value),H.style.bottom=Be(c.value)):(s.value=C.x-D.x,u.value=C.y+D.y,H.style.right=Be(s.value),H.style.top=Be(u.value))}),G={x:0,y:0},W=oa(D=>{V.value&&(G.x=V.value.offsetLeft,G.y=V.value.offsetTop)},D=>{if(!V.value)return;const H=G.y+D.y;j.value=`${H}px`}),Z=()=>{if(S.value){const D=S.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");P.value=D}};return l.onMounted(()=>{if(e.draggable&&S.value){const D=[];q.value&&D.push(q.value),e.footerDraggable&&(Z(),P.value&&D.push(P.value)),le.open(D)}e.collapse===!0&&w(e.collapse,!1),V.value&&W.open(V.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&le.close(),V.value&&W.close()}),{classes:d,styles:g,isShow:a,closeIcon:p,onClose:X,dialogRef:S,headerRef:q,onClickToggle:z,collapseIcon:b,collapseText:v,collapseTextClasses:F,collapseIconClasses:x,expandIcon:f,expandText:h,isShowFixedNav:B,fixedNavRef:V,fixedNavClasses:L,fixedNavStyles:U,onAnimationEnd:N,teleportDisabled:o,fixedNavTeleportDisabled:E}}}),pg={ref:"headerRef",class:"fox-floating-window__header"},bg={class:"fox-floating-window__title"},vg={class:"fox-floating-window__tools"},wg={class:"fox-floating-window__body"},Sg={class:"fox-floating-window__fixednav__text"};function xg(e,n,r,t,o,a){const i=l.resolveComponent("FoxIcon"),u=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",pg,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",bg,l.toDisplayString(e.title),1),l.createElementVNode("div",vg,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",wg,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Sg,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const or=Ge(yg,[["render",xg]]),Tg={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function Cg(e,n,r=!1){return{props:{...Tg},emits:["update:visible"],setup(t,{emit:o,slots:a,expose:i}){const u=l.ref({top:null,right:null,bottom:null,left:null}),s=l.ref(0),c=l.ref(0),d=l.ref(0),g=l.ref(0),p=l.ref(t.placement),b=l.ref(!1),v=l.ref(!1),f=l.ref(null),h=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,F=(B,ne,N,$,M,R,C,K=!0)=>{const J=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,G=B.split("-");let Y=[];K?G[0]==="top"?Y=["top","bottom","right","left"]:G[0]==="bottom"?Y=["bottom","top","right","left"]:G[0]==="left"?Y=["left","top","bottom","right"]:G[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[B[0]];const k={top:null,right:null,bottom:null,left:null},W=[];for(let Z=0;Z<Y.length;Z++){const D=Y[Z];if(W[0]=D,G[1]&&(W[1]=G[1]),D==="top"){const H=N-C-t.arrowSize/2-t.offset;if(H>=0){k.top=H;let Q=0;G[1]==="start"?Q=ne:G[1]==="end"?Q=ne+$-R:Q=ne+$/2-R/2;const re=J-Q-R;re<0?(Q+=re,S.value=-re):S.value=0,k.left=Q<0?0:Q;break}}else if(D==="bottom"){const H=N+M+t.arrowSize/2+t.offset;if(H+C<=le){k.top=H;let Q=0;G[1]==="start"?Q=ne:G[1]==="end"?Q=ne+$-R:Q=ne+$/2-R/2;const re=J-Q-R;re<0?(Q+=re,S.value=-re):S.value=0,k.left=Q<0?0:Q;break}}else if(D==="left"){const H=ne-R-t.arrowSize/2-t.offset;if(H>=0){k.left=H;let Q=0;G[1]==="start"?Q=N:G[1]==="end"?Q=N+M-C:Q=N+M/2-C/2,k.top=Q<0?0:Q;break}}else if(D==="right"){const H=ne+$+t.arrowSize/2+t.offset;if(H+R<=J){k.left=H;let Q=0;G[1]==="start"?Q=N:G[1]==="end"?Q=N+M-C:Q=N+M/2-C/2,k.top=Q<0?0:Q;break}}}return{bestPlacement:W.join("-"),bestInsetRect:k}},x=()=>{const B=t.visible,ne=t.autoFit;if(!rt||B===!1)return;if(t.reference){const C=h(),K=ul(C);s.value=K.x,c.value=K.y,d.value=C.offsetWidth,g.value=C.offsetHeight}else t.referenceInset&&(s.value=t.referenceInset.left,c.value=t.referenceInset.top,d.value=t.referenceInset.right-t.referenceInset.left,g.value=t.referenceInset.bottom-t.referenceInset.top);const N=f.value.offsetWidth,$=f.value.offsetHeight,{bestPlacement:M,bestInsetRect:R}=F(t.placement,s.value,c.value,d.value,g.value,N,$,ne);p.value=M,u.value=R},S=l.ref(0),q=He(()=>{x()},10),P=l.ref(t.visible);l.watch([()=>t.visible],([B])=>{P.value=B,B?(b.value=B,setTimeout(()=>{x(),v.value=!0},0)):v.value=!1});const _=l.computed(()=>P.value&&O.value),O=l.ref(!0),I=He(B=>{const ne=B[0];ne&&(O.value=ne.isIntersecting)},10),w=new IntersectionObserver(I);l.watch([()=>t.reference,()=>t.referenceInset],([B,ne],[N,$])=>{!B&&!ne||(setTimeout(()=>{x()},0),t.autoFit&&(N&&(Dt.unwatch(N,q),w.unobserve(N)),B&&(Dt.watch(B,q),w.observe(B))))},{immediate:!0}),l.onBeforeUnmount(()=>{t.reference&&(Dt.unwatch(t.reference,q),w.unobserve(t.reference),w.disconnect())});const z=l.computed(()=>{const B={[e]:!0};return p.value.startsWith("top")?B["is-top"]=!0:p.value.startsWith("right")?B["is-right"]=!0:p.value.startsWith("bottom")?B["is-bottom"]=!0:p.value.startsWith("left")&&(B["is-left"]=!0),B[`is-${t.effect}`]=!0,!v.value&&_.value&&(B["is-opacity"]=!0),v.value&&_.value&&(B["is-show"]=!0),_.value||(B["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(B[`${t.customClass}`]=!0),B}),y=l.computed(()=>{const B={};return u.value.top!==null&&(B.top=`${u.value.top}px`),u.value.right!==null&&(B.right=`${u.value.right}px`),u.value.bottom!==null&&(B.bottom=`${u.value.bottom}px`),u.value.left!==null&&(B.left=`${u.value.left}px`),t.width&&(B.width=t.width),t.zIndex&&(B["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(B,t.customStyle),B}),A=()=>{P.value=!1,o("update:visible",!1)},X=()=>{if(!t.showOverlay)return null;const B={class:`${e}__overlay`,onClick:A};return l.h("div",B)},V=()=>{let B=null;return a.title?B=l.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(B=l.h("div",{class:`${e}__title`},[t.title])),B},E=l.computed(()=>({[`${e}__arrow`]:!0})),L=l.computed(()=>{const B={};return t.showArrow?(B.width=`${t.arrowSize}px`,B.height=`${t.arrowSize}px`,p.value==="top"?(B.left="50%",B.bottom="0",B.transform="translate(-50%, 50%)"):p.value==="top-start"?(B.left=`${t.arrowOffset+S.value}px`,B.bottom="0",B.transform="translate(-50%, 50%)"):p.value==="top-end"?(B.right=`${t.arrowOffset-S.value}px`,B.bottom="0",B.transform="translate(-50%, 50%)"):p.value==="right"?(B.left="0",B.top="50%",B.transform="translate(-50%, -50%)"):p.value==="right-start"?(B.left="0",B.top=`${t.arrowOffset}px`,B.transform="translate(-50%, 50%)"):p.value==="right-end"?(B.left="0",B.bottom=`-${t.arrowOffset}px`,B.transform="translate(-50%, 50%)"):p.value==="bottom"?(B.left="50%",B.top="0",B.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(B.left=`${t.arrowOffset+S.value}px`,B.top="0",B.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(B.right=`${t.arrowOffset-S.value}px`,B.top="0",B.transform="translate(-50%, -50%)"):p.value==="left"?(B.right="0",B.top="50%",B.transform="translate(50%, -50%)"):p.value==="left-start"?(B.right="0",B.top=`${t.arrowOffset}px`,B.transform="translate(50%, -50%)"):p.value==="left-end"&&(B.right="0",B.bottom=`-${t.arrowOffset}px`,B.transform="translate(50%, -50%)"),B):{display:"none"}}),j=()=>{const B={class:E.value,style:L.value};return l.h("div",B)},U=()=>{P.value===!1&&(b.value=!1)},ee=B=>{if(!f.value||P.value===!1)return;const{relatedTarget:ne}=B;f.value.contains(ne)||(P.value=!1,o("update:visible",!1))};return i({doLayout:x}),()=>{if(!b.value)return null;const B=[],ne=X();ne&&B.push(ne);const N=[],$=V();if($&&N.push($),a.default){const K=a.default();N.push(K)}const M=j();M&&N.push(M);const R={ref:f,class:z.value,style:y.value,onAnimationend:U};t.leaveHide&&(R.onMouseleave=ee);const C=l.h("div",R,{default:()=>N});return B.push(C),B}}}}const{componentName:$g,create:Ng,scope:Eg}=ie("popover-dialog"),ar=Ng(Cg($g,Eg,!1));function kg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:t}){return qr(r.name,()=>r.config),()=>typeof t.default=="function"?t.default():null}}}const{create:Ig}=ie("domain-provider"),ir=Ig(kg()),Og={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 Dg(e,n){return{inheritAttrs:!1,props:Og,setup(r,{slots:t}){if(rt&&window.IntersectionObserver){const o=new WeakMap;let a=new Map;const i=(p,b)=>{if(d===null){a.set(p,{visible:null,callback:b});return}o.has(p)&&d.unobserve(p),o.set(p,{visible:null,callback:b}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}o.has(p)&&(o.delete(p),d.unobserve(p))};let s=r.initialVisibleObserverSize;Si({acquire:()=>{const p=s>0;return s--,p},get disabled(){return r.disabled},get initialHeight(){return r.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const g=(p,b,v)=>{d=new IntersectionObserver(f=>{for(let h of f){let F=!1;h.intersectionRatio>0&&(F=!0);const x=o.get(h.target);if(x)try{if(r.loadPolicy==="lazy"&&!F&&x.visible!==null)return;x.visible=F,x.callback(F)}catch(S){console.error(S)}}},{root:p,rootMargin:b,threshold:v}),a.forEach((f,h)=>{o.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>r.root,()=>r.disabled],([p,b])=>{if(b||!p||d)return;let v=null;typeof p=="string"?v=document.querySelector(p):v=p,v&&g(v,r.rootMargin,r.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:Vg}=ie("rolling-provider"),sr=Vg(Dg()),Rg=[tl,ll,rl,ol,sl,Ne,yn,hl,Vt,gl,ml,yl,pl,bl,vl,wl,xl,Tl,Cl,$l,Nn,kl,Il,Ol,Dl,Vl,Rl,Fl,Al,En,kn,ql,Pl,zl,Hl,In,Kl,Wl,Yl,Ul,Gl,Ft,gn,Xl,Zl,Ql,Jl,er,or,ar,ir,sr],Fg=new ei(Rg,[li],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>T.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>T.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>T.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>T.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>T.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>T.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>T.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>T.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>T.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>T.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>T.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>T.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>T.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>T.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>T.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>T.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>T.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>T.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>T.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>T.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>T.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>T.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>T.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>T.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>T.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>T.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>T.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>T.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>T.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>T.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>T.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>T.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>T.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>T.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>T.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>T.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>T.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>T.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>T.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>T.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>T.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>T.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>T.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>T.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>T.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>T.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>T.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>T.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>T.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>T.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>T.ElInputNumber}),Object.defineProperty(m,"FoxInputTag",{enumerable:!0,get:()=>T.ElInputTag}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>T.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>T.ElMain}),Object.defineProperty(m,"FoxMention",{enumerable:!0,get:()=>T.ElMention}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>T.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>T.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>T.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>T.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>T.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>T.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>T.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>T.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>T.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>T.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>T.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>T.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>T.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>T.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>T.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>T.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>T.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>T.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>T.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>T.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>T.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>T.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>T.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>T.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>T.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>T.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>T.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>T.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>T.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>T.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>T.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>T.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>T.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>T.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>T.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>T.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>T.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>T.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>T.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>T.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>T.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>T.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>T.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>T.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>T.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>T.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>T.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>T.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>T.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>T.ElWatermark}),m.AutocompleteItem=Tl,m.Broadcast=Xn,m.BroadcastKey=we,m.CascaderItem=xl,m.CheckboxItem=Ol,m.Content=ol,m.DataItemsKey=mt,m.DateItem=yl,m.DateUtils=ze,m.DialogItem=Hl,m.Domain=Qt,m.DomainKey=qe,m.DomainProvider=ir,m.FloatingButton=Jl,m.FloatingWindow=or,m.FooterBar=rl,m.FoxAutocompleteItem=Tl,m.FoxCascaderItem=xl,m.FoxCheckboxItem=Ol,m.FoxContent=ol,m.FoxDateItem=yl,m.FoxDialogItem=Hl,m.FoxDomainProvider=ir,m.FoxFloatingButton=Jl,m.FoxFloatingWindow=or,m.FoxFooterBar=rl,m.FoxGroup=sl,m.FoxGroupSetting=Fl,m.FoxHeaderBar=ll,m.FoxHintText=Vt,m.FoxIndicator=Xl,m.FoxInfiniteLoading=Ul,m.FoxInputItem=gl,m.FoxInputNumberItem=wl,m.FoxItem=Ne,m.FoxMapping=Ft,m.FoxMoneyItem=vl,m.FoxMoreButton=Ql,m.FoxOverLay=In,m.FoxPage=tl,m.FoxPopoverDialog=ar,m.FoxPopup=Kl,m.FoxPrice=gn,m.FoxPullRefresh=Gl,m.FoxRadioItem=Il,m.FoxRateItem=Dl,m.FoxRollingProvider=sr,m.FoxRowItem=hl,m.FoxSearchBar=Yl,m.FoxSelectItem=ml,m.FoxSlotItem=yn,m.FoxStepsBar=zl,m.FoxSwitchItem=Vl,m.FoxTableItem=kl,m.FoxTableMappingColumn=Cl,m.FoxTableRadioColumn=$l,m.FoxTableSetting=Nn,m.FoxTabsBar=En,m.FoxTabsContainer=kn,m.FoxTabsFrame=Pl,m.FoxTabsPane=ql,m.FoxText=Zl,m.FoxTimeItem=pl,m.FoxTimeSelectItem=bl,m.FoxToast=Wl,m.FoxTour=er,m.FoxTreeItem=Al,m.FoxTreeSelectItem=Rl,m.Group=sl,m.GroupSetting=Fl,m.HeaderBar=ll,m.HintText=Vt,m.Indicator=Xl,m.InfiniteLoading=Ul,m.InputItem=gl,m.InputNumberItem=wl,m.Item=Ne,m.Mapping=Ft,m.MoneyItem=vl,m.MoreButton=Ql,m.OverLay=In,m.Page=tl,m.PopoverDialog=ar,m.Popup=Kl,m.Price=gn,m.PriorityPolicy=_e,m.PullRefresh=Gl,m.RadioItem=Il,m.RateItem=Dl,m.RollingProvider=sr,m.RowItem=hl,m.SearchBar=Yl,m.SelectItem=ml,m.SlotItem=yn,m.StepsBar=zl,m.SwitchItem=Vl,m.TableItem=kl,m.TableMappingColumn=Cl,m.TableRadioColumn=$l,m.TableSetting=Nn,m.TabsBar=En,m.TabsContainer=kn,m.TabsFrame=Pl,m.TabsPane=ql,m.Text=Zl,m.TimeItem=pl,m.TimeSelectItem=bl,m.Toast=Wl,m.Tour=er,m.TreeItem=Al,m.TreeSelectItem=Rl,m.UniqueID=Qr,m.ValidateSchema=Mr,m.ValidateSchemaKey=Ue,m.cancelRaf=ba,m.clearNonNumber=Oa,m.clone=Wn,m.compareTo=jn,m.createBroadcast=Yt,m.createValidateSchema=Gt,m.debounce=He,m.debounceRef=za,m.decimalLength=Or,m.default=Fg,m.defineBroadcast=Fa,m.defineConfigDomain=qr,m.defineDataItem=Pr,m.defineDomain=Qn,m.defineItem=ke,m.definePageState=jr,m.defineSimpleItem=_r,m.deleteGlobalValidator=qa,m.disabledProperty=Me,m.divide=_n,m.excludeProps=De,m.extend=ct,m.floatData=Ra,m.getGlobalValidateCheckEvents=Rr,m.getGlobalValidateResetEvents=Ar,m.getPageContentAreaHeight=nn,m.getPageContentAreaWidth=ln,m.getPageFooterAreaHeight=tn,m.getPageHeaderAreaHeight=en,m.getRootDomain=yt,m.hasSymbol=Cr,m.includeProps=Et,m.indexOf=Da,m.integerLength=Ir,m.isArray=wa,m.isArrayLike=Nr,m.isBrowser=rt,m.isDate=Ta,m.isESModule=$a,m.isEmptyString=he,m.isEqual=tt,m.isFunction=Hn,m.isHidden=Wt,m.isInnerPage=Wa,m.isMap=Sa,m.isNil=Un,m.isNumberString=kr,m.isObject=Ye,m.isPlainObject=Kn,m.isPromise=xr,m.isRegExp=Gn,m.isSet=xa,m.isString=Sr,m.isSubPage=Ya,m.isSymbol=Ca,m.isTouch=Lt,m.isWindow=$r,m.lastIndexOf=Va,m.makeArray=Ia,m.merge=Er,m.multiply=br,m.negate=vr,m.nextTick=Ea,m.numberFormat=zt,m.objectToString=Tr,m.once=Ha,m.overrideGlobalValidateHandler=La,m.property=Fe,m.raf=zn,m.readonlyProperty=Ae,m.setGlobalValidateCheckEvents=Pa,m.setGlobalValidateHandler=Ma,m.setGlobalValidateMessages=ja,m.setGlobalValidateResetEvents=_a,m.setGlobalValidator=Ba,m.throttle=Br,m.toBoolean=ce,m.toNumber=Ce,m.toPadding=Je,m.toPx=me,m.toPxDesc=Se,m.toTypeString=Ht,m.toValue=ge,m.tryTimes=Zt,m.typeOf=Kt,m.unNumberFormat=wr,m.updatePageState=Jn,m.useBroadcast=kt,m.useDomain=ot,m.useExpose=xe,m.useInnerSize=an,m.usePageState=Jt,m.usePosition=ul,m.useRawTouch=Bt,m.useRect=ra,m.useSize=nl,m.useTouch=nd,m.valueLength=Nt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});