@fox-js/foxui-pc 4.1.1-15 → 4.1.1-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +1878 -1876
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
- package/dist/style.esm.js +0 -3
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,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0 Sat
|
|
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
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();/*!
|
|
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=Oe(e),t=Oe(t),[e,t]=Dn(Oe(e),Oe(t)),o==1&&(n==1?e=On(e):t=On(t));let r=io(e,t);return o?o==2?"-"+Oe(r):e.length<r.length?Oe(r.substring(1)):"-"+Oe(On(r)):Oe(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 Oe(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function 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=Oe(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Oe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Oe(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Oe(e.replace(".","")))}let a=0,i=t.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(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?"-":"")+Oe(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=Oe(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+Oe(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",Je=e=>e!==null&&typeof e=="object",po=e=>Je(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 ut(...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]=ut(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function jn(e,t,o=!1){if(!o)ut(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!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 ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Te(e){return typeof e=="number"?e:Number(e)}const 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 et(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(!et(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(!et(a,i))return!1}return!0}return!1}const lt=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(et(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(et(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 De(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){st.Schema.setValidator(e,t)}function Va(e){st.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){st.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 Ke=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?st.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?st.Schema.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return st.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 st.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 ot(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={};ut(!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(Ke,null),C=Ut(a,A,{componentName:""});s.validateSchema=C,a[Ke]=C,l.provide(Ke,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(ut(!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[Ke]=void 0,l.provide(Ke,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 Ne(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(Ke,null);e.fieldName=e.fieldName??a;let c=Ut(r,s,e);r[Ke]=c,l.provide(Ke,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[Ke]=void 0,l.provide(Ke,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 Ve=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,t)}px`:"";function me(e,t=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(lt){const{fontSize: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 rt="PageStateKey";function Xe(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=Xe(o.headerPadding??t.headerPadding),e.footerHeight=me(o.footerHeight??t.footerHeight??-1),e.footerPadding=Xe(o.footerPadding??t.footerPadding),e.contentPadding=Xe(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(rt);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(rt,d),d}function Qt(e){return e.get(rt)}function Jt(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function en(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function tn(e,t){if(t=t??e.get(rt),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(rt),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(rt)}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=ot();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 We(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(lt){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=ut({},Ka(),t.safeAreaInset),i=Wa(),u=ut({},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 We(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}},Re={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},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=ot(),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 _=Xe(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 _=Xe(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 Q=l.h("view",{class:"title-text"},[r.title]);y.push(Q)}if(a.slots.titleIcon){const Q=l.h("view",{class:"title-icon",onClick:q},[a.slots.titleIcon()]);y.push(Q)}else if(r.titleIcon){const Q=l.h("view",{class:"title-icon",onClick:q},[l.h(r.titleIcon)]);y.push(Q)}}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 Q=[],B=I();B&&Q.push(B);const k=x();k&&Q.push(k);const M=R();if(M&&Q.push(M),Q.length>0){const G=l.h("view",{class:d.value},Q);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,Ie.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=ot(),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=Xe(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=Xe(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=Ve(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=Ve(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=Ve(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=Ve(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=Ve(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=ot(),i=l.computed(()=>({[e]:!0})),u=a?Qt(a):null,s=l.computed(()=>{const v={};if(a&&u){if(o.padding){const j=Xe(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=Xe(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 Z=b?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(N,!0,W)};l.watch([()=>n.rules,()=>n.pureDataRules],([N,W],[Z,O])=>{if(N&&Z){const K=l.toRaw(Z),X=l.toRaw(N),oe=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{oe.includes(fe)||(X[fe]=[])}),v(X)}if(W&&O){const K=l.toRaw(O),X=l.toRaw(W),oe=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{oe.includes(fe)||(X[fe]=[])}),v(X,!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 Z=dn(W,m.value,n.span,n.offset);Object.assign(N,Z)}else if(m.value.type==="flow"){const Z=fn(W,m.value,n.span,n.offset,n.width);Object.assign(N,Z)}}else if(n.width){const Z=Ve(n.width);N.width=Z}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 Z=bi(R.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}}}),C=l.toRef(n,"gutter"),T=l.toRef(n,"column"),q=l.computed(()=>u||d.value?!0:ue(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,Z])=>{i.order.index=0,nl(a,N,W,Z,!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})),Q=l.ref(),B=l.ref(),k=l.computed(()=>P.value||Ve(n.height)||""),M=l.ref(!1),P=l.ref(""),G=l.ref(!1);let ee=-1;const L=(N,W=!0)=>{const Z=Q.value;if(Z&&M.value!==N){if(ee=ee===-1?pi(Z):ee,G.value=!0,W)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.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=`${ee}px`,l.nextTick(()=>{P.value=`${O}px`})}else P.value=`${ee}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=`${ee}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 H=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(lt&&(N&&L(ue(n.collapse),!1),n.autoLayout&&Array.isArray(j)&&j.length>0)){const W=j[0];if(x(W),window.ResizeObserver){const Z=Pe(()=>x(W),120);D=new window.ResizeObserver(Z),D.observe(W)}}},J=()=>{D?.disconnect(),D=null},le=!d.value||s?.acquire();le&&(c.value=d.value?!0:null),l.onMounted(()=>{if(le&&(H(w),w=!1),d.value&&s){let N=null,W=s.initialHeight;s.observe(Q.value,Z=>{if(Z!==c.value)if(Z)c.value=!0,M.value||(P.value=""),N=setTimeout(()=>{N=null,c.value!==!1&&(H(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(Q.value);O<=0?P.value=W:(P.value=`${O}px`,W=P.value)}w||J()}})}}),l.onUnmounted(()=>{D?.disconnect(),s&&s.unobserve(Q.value)});const U=(N="right")=>{const W=[];if(z.value){const K={class:y.value},X=l.h("span",K,[z.value]);W.push(X)}const Z={class:_.value},O=o(n.collapseIcon,Z);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,Z,O)=>{const K={...h.value};return W===0&&(K[`${p}__first`]=!0),Z>=O-1&&(K[`${p}__last`]=!0),l.h("div",{ref:V,key:`${W}`,class:K,style:A.value},N)};return()=>{if(d.value&&c.value!==!0){const K=n.tag||"div";return l.h(K,{ref:Q,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 K={key:`${W++}`,ref:B,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:ne},X=l.h("div",K,[r.slots.header()]);N.push(X)}else{const K=[],X=n.collapsePosition==="left";if(X&&n.showCollapse){const oe=U("left");oe&&K.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 ce=l.h("div",oe);K.push(ce)}if(r.slots.title){const oe=l.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);K.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${p}__header-title`]:!0}},[n.title]);K.push(oe)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!X&&n.showCollapse){const oe=U("right");oe&&K.push(oe)}if(K.length>0){const oe={key:`${W++}`,ref:B,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:ne},ce=l.h("div",oe,K);N.push(ce)}}I();const Z=r.slots.default?r.slots.default():[],O=i.layout.value.type;if(O==="grid"){const K=Y(Z,W++,0,Z.length);N.push(K)}else if(O==="flow"){const K=Y(Z,W++,0,Z.length);N.push(K)}else for(let K=0;K<Z.length;K++){const X=Z[K],oe=Y([X],W++,K,Z.length);N.push(oe)}if(q.value){const K=n.tag||"div";return l.h(K,{ref:Q,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??Ie.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:"¥"},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}}}),Ye=(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=Ye(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,_,Q,B,k,M)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,ee=y.split("-");let L=[];ee[0]==="top"?L=["top","bottom","right","left"]:ee[0]==="bottom"?L=["bottom","top","right","left"]:ee[0]==="left"?L=["left","top","bottom","right"]:ee[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,ee[1]&&(E[1]=ee[1]),F==="top"){const D=_.y-M-e.arrowSize-e.offset;if(D>=0){ne.top=D;let w=0;ee[1]==="start"?w=_.x:ee[1]==="end"?w=_.x+Q-k:w=_.x+Q/2-k/2;const H=P-w-k;H<0?(w+=H,m.value=-H):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;ee[1]==="start"?w=_.x:ee[1]==="end"?w=_.x+Q-k:w=_.x+Q/2-k/2;const H=P-w-k;H<0?(w+=H,m.value=-H):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;ee[1]==="start"?w=_.y:ee[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+Q+e.arrowSize+e.offset;if(D+k<=P){ne.left=D;let w=0;ee[1]==="start"?w=_.y:ee[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,_,Q=10)=>{if(!lt||_===!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=Ye(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,...Re},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ne({componentName:e,validate:!1},i);const u=ot(),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`]:ue(r.hasBorder)};if(O[r.errorMarkClass]=!!M.value,O[r.warnMarkClass]=!!B.value,O[r.infoMarkClass]=!!_.value,typeof m.value=="function"){const K=m.value(i);O[K]=!0}else if(typeof m.value=="string"){const K=m.value;O[K]=!0}return O}),v=l.ref(null),p=l.computed(()=>{const O={};if(r.width)r.width!=="auto"&&(O.width=Ve(r.width));else{const K=s&&u?cn(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const X=dn(K,c.value,r.span,r.offset);Object.assign(O,X)}else if(c.value.type==="flow"){const X=fn(K,c.value,r.span,r.offset,r.width);Object.assign(O,X)}}}if(typeof v.value=="function"){const K=v.value(i);K&&Object.assign(O,K)}else if(v.value&&typeof v.value=="object"){const K=v.value;Object.assign(O,K)}return O}),f=l.ref(null),h=l.computed({get:()=>f.value??ue(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:Ve(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),Q=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":""),ee=()=>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"?Q.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"]=Ve(V.value)),O}),F=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([O,K,X,oe])=>{F.value&&(O&&!he(K)?D?o.show(F.value,K,{...oe,id:D,type:X},!0):D=o.show(F.value,K,{...oe,type:X},!0):o.hide(D))});let w=null;const H=()=>{w||!F.value||(w=new IntersectionObserver(O=>{let K=!1;for(let X of O)if(X.intersectionRatio>0){K=!0,K&&a.emit("appear",X);break}K||a.emit("disappear")}),w.observe(F.value))},J=()=>{!w||!F.value||(w.unobserve(F.value),w=null)};l.watch(()=>ue(r.appearListen),O=>{O?H():J()}),l.onMounted(()=>{ue(r.appearListen)&&H()}),l.onUnmounted(J);const le=()=>{if(!A())return null;const O=[],K=a.slots?.label?.()??r.label,X={class:R.value},oe=l.h("div",X,[K]);if(O.push(oe),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();O.push(fe)}const ce={class:j.value,style:I.value};return l.h("div",ce,O)},U=()=>{const O=[];if(a.slots.prepend){const X=a.slots.prepend();O.push(X)}if(a.slots.default){const X=a.slots.default();O.push(X)}if(a.slots.append){const X=a.slots.append();O.push(X)}if(a.slots.fixedTip){const X={class:[`${d}__fixed-tip`]},oe=l.h("div",X,[a.slots.fixedTip()]);O.push(oe)}const K={ref:F,class:x.value,style:z.value};return l.h("div",K,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(!ee())return null;const O=[],K=Y();K&&O.push(K);const X=N();X&&O.push(X);const oe={class:E.value,style:$.value};return l.h("div",oe,O)},Z=()=>a.slots?.hide?.()??null;return()=>{const O=[],K=[],X=le();X&&K.push(X);const oe=U();oe&&K.push(oe);const ce={class:q.value},fe=l.h("div",ce,K);O.push(fe);const ye=W();ye&&O.push(ye);const pe=Z();pe&&O.push(pe);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=ot(),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=Ve(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=Ve(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=ot(),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=Ve(o.width))}else o.width&&(c.width=Ve(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)),Ze=(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,...Re,...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}=Ne({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),Q=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={...Ze(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:Q.value&&(P.suffix=()=>[n.unit]);const G=[],ee=l.h(S.ElInput,M,P);G.push(ee);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(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 at(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=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(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=at(e,t),r=at(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=at(e,i)===a;else if(o==="item")s=Xo(e,i,a);else{let c=Vt(e,i);c==null&&(c=at(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,...Re,...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}=Ne({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=>at(n,W)).join(" "):""),f=(N,W,Z,O=!0)=>{if(!Z||Z.length==0){b.value=N,O&&(c("update:modelValue",N),c("change",N));return}const K=Zo(n,N,W,Z);if(K===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 X=!0;if(K.length!==v.value.length)X=!1;else for(let oe=0;oe<K.length;oe++){const ce=K[oe],fe=v.value[oe];if(!Xo(n,ce,fe)){X=!1;break}}if(!X){v.value=K;let oe=[],ce=[],fe=[];K.forEach(dt=>{const Ue=Vt(n,dt),ht=at(n,dt);oe.push(Ue),fe.push(ht),n.valueType==="text"?ce.push(ht):n.valueType==="item"?ce.push(dt):ce.push(Ue)});let ye,pe,Ee;ue(n.multiple)?(b.value=oe,ye=l.toRaw(ce),pe=fe,Ee=l.toRaw(K)):(b.value=oe[0]??"",ye=l.toRaw(ce[0]??""),pe=fe[0]??"",Ee=l.toRaw(K[0])),O&&(c("update:modelValue",ye),c("change",ye,Ee)),c("update:text",pe)}},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=>ue(N)),q=os(),j=async(N,W)=>{if(N){const Z=await q.load("select",N,W);if(Z.length>0)if(typeof Z[0]=="string"){let X=Z.map(oe=>rs(oe));h.value=X}else h.value=Z;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()&&ue(n.multiple)){et(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),Q=e,B=l.computed(()=>({[Q]:!0})),k=N=>{n.allowCreate||y()&&ue(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 Z=N.target.value;_.value=!0,he(M.value)||(P.value=!0),c("focus",Z,N)},ee=N=>{setTimeout(()=>{P.value&&(P.value=!1),_.value=!1},0);let Z=N.target.value;n.maxLength&&Z.length>Number(n.maxLength)&&(Z=Z.slice(0,Number(n.maxLength))),H.value||c("blur",Z,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),H=l.ref(!1),J=N=>{H.value=N,c("visible-change",N),N||c("selected")},le=N=>{c("remove-tag",N)},U=(N,W)=>{const Z=[];return N.forEach((O,K)=>{const X=Go(n,O);if(Array.isArray(X)&&X.length>0){const oe=U(X,W),ce=at(n,O),ye={key:`${ce}_${K}`,label:ce};Z.push(l.h(S.ElOptionGroup,ye,{default:()=>oe}))}else{const oe=Vt(n,O),ce=at(n,O),fe=ns(n,O),pe={key:`${oe}_${K}`,label:ce,disabled:fe,value:oe};if(typeof W=="function")Z.push(l.h(S.ElOption,pe,{default:()=>W(O)}));else if(n.optionType==="item"){const Ee={class:{"fox-select-item__option-left":!0}},dt=l.h("span",Ee,[oe]),Ue={class:{"fox-select-item__option-right":!0}},ht=l.h("span",Ue,[ce]),lo=l.h("div",{class:{"fox-select-item__option":!0}},[dt,ht]);Z.push(l.h(S.ElOption,pe,{default:()=>lo}))}else n.optionType==="value"?Z.push(l.h(S.ElOption,pe,{default:()=>[oe]})):Z.push(l.h(S.ElOption,pe))}}),Z},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={...Ze(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:ee,onVisibleChange:J,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 Z={};r.slots.prefix&&(Z.prefix=r.slots.prefix),r.slots.empty&&(Z.empty=r.slots.empty),r.slots.options?Z.default=r.slots.options:Z.default=()=>U(C.value,r.slots.option);const O=[],K=l.h(S.ElSelect,W,Z);O.push(K);const X={default:()=>O};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const ce={...De(n,Qo),hintText:w.value,hintVisible:D.value,onMouseover:$,onMouseleave:F};return n.prop&&(ce.prop=`${n.prop}_item`),T.value&&(ce["appear-listen"]=!0,ce.onAppear=I),l.h(o,ce,X)}}}}const{componentName:is,create:ss,scope:us}=ie("select-item"),fl=ss(as(is,us,$e));function tt(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),ee=M-G<0,L=k.clone().add(P+(ee?-1:1),m);return+(-(P+(M-G)/(ee?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 ee=k.toLowerCase();V[ee]&&(G=ee),M&&(V[ee]=M,G=ee);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,ee=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 ee?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,ee=!!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 ee?Y:Y.endOf(c)},E=function(le,U){return y.w(G.toDate()[le].apply(G.toDate("s"),(ee?[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 ee?ne(1,0):ne(31,11);case m:return ee?ne(1,F):ne(0,F+1);case d:var H=this.$locale().weekStart||0,J=($<H?$+7:$)-H;return ne(ee?D-J:D+(6-J),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,ee=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)[ee],E=ee===c?this.$D+(P-this.$W):P;if(ee===m||ee===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,ee=this;M=Number(M);var L=y.p(P),ne=function(F){var D=z(ee);return y.w(D.date(D.date()+Math.round(F*M)),ee)};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 ee=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,H=function(U,Y,N,W){return U&&(U[Y]||U(P,ee))||N[Y].slice(0,W)},J=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 ee.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 H(G.monthsShort,$,D,3);case"MMMM":return H(D,$);case"D":return P.$D;case"DD":return y.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return H(G.weekdaysMin,P.$W,F,2);case"ddd":return H(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 J(1);case"hh":return J(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 ee,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:ee=D()/12;break;case m:ee=D();break;case b:ee=D()/3;break;case d:ee=(F-$)/6048e5;break;case c:ee=(F-$)/864e5;break;case s:ee=F/r;break;case u:ee=F/n;break;case i:ee=F/o;break;default:ee=F}return G?ee:y.a(ee)},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(),ee=x(M,P,!0);return ee&&(G.$L=ee),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}(),Q=_.prototype;return z.prototype=Q,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",v],["$D",p]].forEach(function(B){Q[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 Qe=tt(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(Q,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 Q=C[y];if(typeof Q=="string")_+=Q.length;else{var B=Q.regex,k=Q.parser,M=x.slice(_),P=B.exec(M)[0];k.call(z,P),x=x.replace(P,"")}}return function(G){var ee=G.afternoon;if(ee!==void 0){var L=G.hours;ee?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 ee=p(P)(M),L=ee.year,ne=ee.month,E=ee.day,$=ee.hours,F=ee.minutes,D=ee.seconds,w=ee.milliseconds,H=ee.zone,J=new Date,le=E||(L||ne?1:J.getDate()),U=L||J.getFullYear(),Y=0;L&&!ne||(Y=ne>0?ne-1:J.getMonth());var N=$||0,W=F||0,Z=D||0,O=w||0;return H?new Date(Date.UTC(U,Y,le,N,W,Z,O+60*H.offset*1e3)):G?new Date(Date.UTC(U,Y,le,N,W,Z,O)):new Date(U,Y,le,N,W,Z,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 Q=R.length,B=1;B<=Q;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===Q&&(this.$d=new Date(""))}else T.call(this,q)}}})}(yn)),yn.exports}var ms=gs();const ys=tt(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=tt(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=tt(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=tt(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=tt(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=tt(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=tt(_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=tt(zs);Qe.extend(Cs),Qe.extend(ws),Qe.extend(ys),Qe.extend(Ns),Qe.extend(Vs),Qe.extend(Ms),Qe.extend(qs),Qe.extend(Hs);const ze={format(e,t){return Qe(e).format(t)},parser(e,t){return Qe(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,...Re,...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}=Ne({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),Q=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(ue(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)}},ee=ue(n.isLongTerm);if(ee){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 et(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 Z=N[1];if(!Z)return;if(N[0]==null){c("update:modelValue",[]);return}typeof Z!="string"&&n.valueFormat&&(Z=ze.format(Z,n.valueFormat));let O=Array.isArray(B.value)?B.value[1]:B.value;(Z===O||Array.isArray(k.value)&&k.value.findIndex(X=>Z==X)!==-1)&&(W=!0)}catch(Z){console.error(Z)}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 Z=n.valueFormat??"YYYY-MM-DD";return ze.format(W,Z)},w=Y=>Y?Y.endsWith("range"):!1,H=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 Z=Array.isArray(v.value)?[...v.value]:[];Z[0]=W,h(Z)}else h(W)}},J=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 Z=Array.isArray(v.value)?[...v.value]:[];Z[1]=W,h(Z)}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",H),Y[1]&&Y[1].addEventListener("input",J)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",H)}},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",H),Y[1]&&Y[1].removeEventListener("input",J)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",H)}};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 Z=[],O=l.h(S.ElDatePicker,N,W);Z.push(O);const K={default:()=>Z};if(K.label=r.slots.default,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip,ee){if(P.value){const fe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ye=l.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),pe={class:L.value},Ee=l.h("div",pe,{default:()=>[fe,ye]});Z.push(Ee)}if(!s.value&&!i.value){const fe={label:Q.value||_.value,disabled:s.value||i.value,modelValue:P.value,"onUpdate:modelValue":G},ye=l.h(S.ElCheckbox,fe),pe=l.h("div",{class:{[`${C}__append`]:!0}},[ye]);K.append=()=>pe}}const oe={...De(n,sr,ur),ref:ne,class:{[`${C}__wrapper`]:!0,"has-append":ee},hintText:q.value,hintVisible:j.value};return n.prop&&(oe.prop=`${n.prop}_item`),l.h(o,oe,K)}}}}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,...Re,...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}=Ne({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 Q={default:()=>y};Q.label=r.slots.default,Q.fixedPreTip=r.slots.fixedPreTip,Q.fixedTip=r.slots.fixedTip;const k={...De(n,cr),hintText:A.value,hintVisible:C.value};return n.prop&&(k.prop=`${n.prop}_item`),l.h(o,k,Q)}}}}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,...Re,...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}=Ne({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={...De(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=ue(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=ue(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,...Re,...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}=Ne({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,"")}),ue(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,ue(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,ue(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,ue(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","")},Q=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={...Ze(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:Q.value&&(P.suffix=()=>[n.unit]);const G=[],ee=l.h(S.ElInput,M,P);G.push(ee);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(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,...Re,...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}=Ne({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}__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={...Ze(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},_={},Q=[],B=l.h(S.ElInputNumber,y,_);Q.push(B);const k={default:()=>Q};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const P={...De(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 ee={class:h.value},L=l.h("div",ee,[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 nt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function 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=We(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Je(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=nt(e,t),r=nt(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(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=nt(e,c)===u;else if(o==="item")s=pl(e,c,u);else{let d=ct(e,c);d==null&&(d=nt(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,...Re,...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}=Ne({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=>nt(n,W)).join(" "):nt(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 X=l.toRaw(U);if(W){const oe=le?.value.getCheckedNodes();if(oe)if(n.multiple){const ce=[];oe.forEach(fe=>{const pe=(fe.pathNodes??[]).map(Ee=>Ee.data);ce.push(pe)}),c("update:pathNodes",ce)}else{const fe=(oe[0]?.pathNodes??[]).map(ye=>ye.data);c("update:pathNodes",fe)}c("update:modelValue",X),c("change",X)}return}const Z=br(n,U,Y,N);if(Z===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=Z[Z.length-1];if(_.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const X=[];Z.forEach(oe=>{const ce=`${nt(n,oe)}`;X.push(ce)}),X.length>0&&(z.value=X.join(n.separator))}else z.value=null;let K=!0;if(Z.length!==v.value.length)K=!1;else for(let X=0;X<Z.length;X++){const oe=Z[X],ce=v.value[X];if(Array.isArray(oe)){if(!Array.isArray(ce)||oe.length!==ce.length)K=!1;else for(let fe=0;fe<oe.length;fe++)if(!pl(n,oe[fe],ce[fe])){K=!1;break}}else pl(n,oe,ce)||(K=!1);if(!K)break}if(!K){v.value=Z;let X=[],oe=[];Z.forEach(fe=>{if(Array.isArray(fe)){let ye=[],pe=[];for(let Ee of fe)ye.push(ct(n,Ee)),n.valueType==="text"?pe.push(nt(n,Ee)):n.valueType==="item"?pe.push(Ee):pe.push(ct(n,Ee));X.push(ye),oe.push(pe)}else X.push(ct(n,fe)),n.valueType==="text"?oe.push(nt(n,fe)):n.valueType==="item"?oe.push(fe):oe.push(ct(n,fe))}),b.value=X;const ce=l.toRaw(oe);W&&(c("update:pathNodes",Z),c("update:modelValue",ce),c("change",ce))}},h=l.ref([]),A=Fe(l.computed(()=>n.appearLoad),"appearLoad",je.Near,U=>ue(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(K=>mu(K));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 Z=Y.pathLabels??[];let O=[];Z.forEach(K=>{K&&O.push(K)}),O.length>0&&(z.value=O.join(n.separator))}else z.value=null;N(W)}),U}),Q=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","")},ee=l.ref(!1);let L=null;const ne=()=>{n.showTooltip&&ee.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{ee.value=!0},150))},E=()=>{L&&(clearTimeout(L),ee.value=!1,L=null)},$=l.computed(()=>ee.value||k.value),F=l.computed(()=>ee.value?p.value:B.value),D=l.ref(!1),w=U=>{D.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},J=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:Q,onFocus:M,onBlur:P,onVisibleChange:w,onRemoveTag:H,expandChange:J};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=[],Z=l.h(S.ElCascader,Y,N);W.push(Z);const O={default:()=>W};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const X={...De(n,vr),hintText:F.value,hintVisible:$.value,onMouseover:ne,onMouseleave:E};return n.prop&&(X.prop=`${n.prop}_item`),A.value&&!n.lazy&&(X["appear-listen"]=!0,X.onAppear=j),l.h(o,X,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,...Re,...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}=Ne({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 _=[],Q=l.h(S.ElAutocomplete,z,y);_.push(Q);const B={default:()=>_};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(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=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(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=Ye(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:Ie.Download,RefreshLeft:Ie.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,H)=>{Array.isArray(w)&&Array.isArray(H)&&w.forEach(U=>{H.some(Y=>Y.prop===U.prop?(U.label=Y.label,!0):!1)});const J=[];r.value=w.map((U,Y)=>(!(U.label===""||U.type)&&U.visible!==!1&&J.push(U.prop),{...U,sortIndex:Y})),u.value.length+a.value.length+i.value.length===J.length?C.value=!0:J.length>0&&(T.value=!0),V.value=J},v=w=>w?w.type?w.type:w.label?w.prop:"":"",p=(w,H)=>{if(w.length!==H.length)return!1;const J=w.map(le=>v(le));for(let le of H){const U=v(le);if(J.indexOf(U)===-1)return!1}return!0},f=w=>{if(!w){const H=e.tableRef.getColumnSetting(),J=H.srcColumnPropertyList;n=J.map((le,U)=>({...le,sortIndex:U})),w=H.columnPropertyList,w&&w.length>0&&p(J,w)||(w=J)}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 H=[];r.value.forEach(le=>{w&&!(le.label===""||le.type)&&H.push(le.prop),le.visible=w}),C.value=!1,T.value=!1,u.value.length+a.value.length+i.value.length===H.length?C.value=!0:H.length>0&&(T.value=!0),V.value=H,h()},j=()=>{f(n),h()},V=l.ref([]),I=w=>{r.value.forEach(J=>{if(J.label===""||J.type)return;const le=w.indexOf(J.prop)!==-1;J.visible=le}),C.value=!1,T.value=!1;const H=u.value.length+a.value.length+i.value.length;w.length===H?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 H=w.currentTarget;H&&H.dataset&&(x.roleType=H.dataset.roleType,x.index=H.dataset.index)},_=w=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},Q=w=>{const H=w.currentTarget;w.relatedTarget;const J=z(H);if(!J)return;const le=J.dataset&&J.dataset.roleType;x.roleType===le&&(w.preventDefault(),x.currentRow&&x.currentRow!==J&&x.currentRow.classList.remove("is-dragover"),J.classList.add("is-dragover"),x.currentRow=J)},B=w=>{w.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},k=w=>{const H=w.currentTarget,J=z(H);if(!J)return;const le=J.dataset&&J.dataset.roleType;if(x.roleType!==le)return;w.preventDefault();const U=Number(x.index),Y=Number(J.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 H=r.value[w];H.fixed="left",h()},P=w=>{const H=r.value[w];H.fixed="right",h()},G=w=>{const H=r.value[w];H.fixed=void 0,h()},ee=new Map;let L=null;function ne(w){const H=document.createRange();return H.setStart(w,0),H.setEnd(w,w.childNodes.length),H.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:Q,onDragLeave:B,onDrop:k,toLeftFixed:M,toRightFixed:P,toUnFixed:G,checkboxLabelStyle:A,onMouseOverForOverflowText:(w,H,J)=>{const le=w.currentTarget;if(le){const U=Math.floor(le.offsetWidth);if(Math.floor(ne(le))>U){let N=ee.get(H);if(N){if(N===L)return;Le.hide(N)}N=Le.show(le,J,{type:"text",placement:"top",closeOnClick:!1}),N&&(ee.set(H,N),L=N)}}},onMouseLeaveForOverflowText:(w,H)=>{const J=ee.get(H);J&&(Le.hide(J),J===L&&(L=null))},onMouseOverForTip:(w,H)=>{const J=w.currentTarget;J&&(L&&Le.hide(L),L=Le.show(J,H,{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=Ye(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=We(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Je(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=We(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=We(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=We(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,...Re,...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}=Ne({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=ue(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:ue(n.autoLoad);C()&&l.watch([()=>n.data,p],async([te,re],[ae,se])=>{C()&&(te!==ae&&(x=!0),!(!Array.isArray(te)&&et(te,ae)&&et(re,se))&&(A?(f.value=0,j.value=!0,I.value=[],Q()):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=>ue(te)),y=async(te,re,ae,se,ke)=>{x=!1;try{if(ke===!0){if(!j.value)return!1;const be=await R.load("table",te,re,ae,se,x,a.value);return V.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,I.value,be.page),setTimeout(()=>{i("loaded-data")},250),(I.value?.length??0)>=V.value)||be.page.length<ae?(j.value=!1,!1):!0}else{const be=await R.load("table",te,re,ae,se,x,a.value);return V.value=be.totalSize,I.value=be.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),V.value=0,I.value=[]}return!1};let _=!1;const Q=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 Q()):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 ke=!1;for(let be of se)if(be.intersectionRatio>0){ke=!0;break}ke&&Q()}),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 ee=l.ref(null);l.provide(cc,{currentRow:ee});const L=(te,re)=>{ee.value=te,i("current-change",te,re)},ne=(te,re,ae)=>{i("row-click",te,re,ae),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(te)},E=[],$=(te,re)=>{if(i("expand-change",te,re),ue(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 H=[];const J=()=>({srcColumnPropertyList:H.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:"":"",Z=()=>typeof r.slots.default=="function"?r.slots.default():[],O=(te,re={})=>{for(let ae in re){const se=re[ae];typeof se!="function"&&(te[ae]=se)}},K=l.computed(()=>{const te=Z(),re=new Map;if(H=[],te.forEach(ae=>{const ke=ae;if(!ke.props)return;const be=W(ke.props);re.set(be,ke);const He={label:"",prop:""};O(He,ke.props),H.push(He)}),w.value.length===H.length){const ae=[];for(let se of w.value){const ke=W(se),be=re.get(ke);if(!be)return te;if(se.visible===!1)continue;const He=be;He.props.fixed=se.fixed,ae.push(He)}return ae}return te}),X=l.shallowRef(new Map),oe=({row:te,column:re,rowIndex:ae,columnIndex:se})=>{const ke=`${ae}_${re.property}`,be=`${ae}_${se}`;let He=X.value.get(ke);return He||(He=X.value.get(be)),typeof He=="string"?He:""},ce=te=>te?re=>{const ae=[];let se=oe(re);return se&&ae.push(se),se=se=typeof te=="function"?te(re):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:oe,fe=(te=!1)=>{X.value.forEach((re,ae)=>{ye(ae,re,te)})},ye=(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)},pe=(te,re,ae)=>{const se=`${te}_${re}`;ae?(X.value.set(se,ae),ye(se,ae)):(X.value.delete(se),ye(se,"",!0)),l.triggerRef(X)},Ee=te=>{fe(!0),X.value.clear(),te.forEach(re=>{const ae=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?X.value.set(ae,re.children):typeof re.cellClassName=="string"&&X.value.set(ae,re.cellClassName)}),fe(),l.triggerRef(X)},dt=()=>{fe(),X.value.clear(),l.triggerRef(X)},Ue=l.shallowRef(new Map),ht=({rowIndex:te})=>{const re=`${te}`;return Ue.value.get(re)??""},lo=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,bg=(te,re)=>{const ae=`${te}`;re?Ue.value.set(ae,re):Ue.value.delete(ae),l.triggerRef(Ue)},vg=()=>{Ue.value.clear(),l.triggerRef(Ue)},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:()=>ee.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:J,setColumnSetting:le,removeColumnSetting:N,setCellClassName:pe,setCellClassNames:Ee,clearCellClassName:dt,setRowClassName:bg,clearRowClassName:vg}),()=>{const re={...Ze(r.attrs),onCurrentChange:L,onRowClick:ne,onExpandChange:$,data:I.value,ref:xe,class:c.value,"cell-class-name":ce(n.cellClassName),"row-class-name":lo(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>K.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),A===!0){const Ge=[];if(j.value){const _t=l.h(Ie.Loading,{class:`${s}__infinite-icon`});Ge.push(_t);const ro=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);Ge.push(ro)}else{const _t=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Ge.push(_t)}const gt={ref:G,class:`${s}__infinite`},oo=l.h("div",gt,Ge);ae.append=()=>oo}const se=l.h(S.ElTable,re,ae),ke=[];if(ke.push(se),!A){let Ge=null;if(typeof r.slots.pagination=="function")Ge=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};Ge=l.h(S.ElPagination,gt)}if(n.showSetting){const gt=[];Ge&>.push(Ge);const oo=l.h(S.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),_t=ko(n,xl),ro=l.h(Cn,{..._t,tableRef:{getColumnSetting:J,setColumnSetting:le,removeColumnSetting:N}},{default:()=>oo});gt.push(ro);const wg=l.h("div",{class:m.value},gt);ke.push(wg)}else Ge&&ke.push(Ge)}const be={default:()=>ke},Tt={...De(n,Cr,$r,xl)};return n.prop&&(Tt.prop=`${n.prop}_item`),Tt.contentClass=`${s}__wrap`,Tt.errorMarkClass="is-table-error",z.value&&C()&&(Tt["appear-listen"]=!0,Tt.onAppear=P),l.h(o,Tt,be)}}}}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=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(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,...Re,...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}=Ne({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 Q=wc(n,x,z,y);if(Q===null){if(m.value===null)return;m.value=null,d.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!Er(n,Q,m.value)){d.value=x;const k=l.toRaw(Q);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=>ue(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((_,Q)=>{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,_,Q)??{},G=`${B}_${Q}`,ee={...P,key:G,value:B,size:n.size,border:ue(n.border)};M&&(ee.disabled=M),n.itemType==="button"?y.push(l.h(S.ElRadioButton,ee,{default:()=>[k]})):typeof z=="function"?y.push(l.h(S.ElRadio,ee,{default:()=>z(_)})):y.push(l.h(S.ElRadio,ee,{default:()=>[k]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Ze(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 Q=l.h(S.ElRadioGroup,z,_);y.push(Q);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(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=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(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,...Re,...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}=Ne({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 Q=Oc(n,x,z,y);if(Q===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let B=!0;if(Q.length!==m.value.length)B=!1;else for(let k=0;k<Q.length;k++){const M=Q[k],P=m.value[k];if(!Nr(n,M,P)){B=!1;break}}if(!B){m.value=Q;let k=[],M=[];Q.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=>ue(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((_,Q)=>{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,_,Q)??{},G=`${B}_${Q}`,ee={...P,key:G,class:n.itemClass,value:B,size:n.size,border:ue(n.border)};M&&(ee.disabled=M),n.itemType==="button"?y.push(l.h(S.ElCheckboxButton,ee,{default:()=>[k]})):typeof z=="function"?y.push(l.h(S.ElCheckbox,ee,{default:()=>z(_)})):y.push(l.h(S.ElCheckbox,ee,{default:()=>[k]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Ze(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 Q=l.h(S.ElCheckboxGroup,z,_);y.push(Q);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(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,...Re,...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}=Ne({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={...Ze(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={...De(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,...Re,...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}=Ne({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={...Ze(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={...De(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,...Re,...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}=Ne({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={...Ze(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={...De(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=Ye(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:Ie.Download,RefreshLeft:Ie.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 H="";w&&(H=w.textContent??"");const J=D.getAttribute("prop")??"",U=window.getComputedStyle(D,null).getPropertyValue("display");F.push({label:H,prop:J,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(H=>({...H}));Array.isArray($)&&$.forEach(H=>{w.some(J=>{if(J.prop===H.prop){const le=J.label;return Object.assign(J,H),J.label=le,!0}return!1})}),a.value=w.sort((H,J)=>H.sortIndex-J.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 H=a.value[D];a.value.splice(D,1),a.value.splice(w,0,H)}else{const H=a.value[D];a.value.splice(D,1),a.value.splice(w+1,0,H)}s(),v()}},Q=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:Q,toBottom:B,onMouseOverForOverflowText:(E,$,F)=>{const D=E.currentTarget;if(D){const w=Math.floor(D.offsetWidth);if(Math.floor(P(D))>w){let J=k.get($);if(J){if(J===M)return;Le.hide(J)}J=Le.show(D,F,{type:"text",placement:"top",closeOnClick:!1}),k.set($,J),M=J}}},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=Ye(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 ue(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 H=0;r.direction==="vertical"?H=w.offsetTop-(F.offsetHeight-w.offsetHeight)/2:H=w.offsetLeft-(F.offsetWidth-w.offsetWidth)/2,I(F,H,$?0:.3,r.direction)},I=(E,$,F,D)=>{let w=0;const H=D==="horizontal"?E.scrollLeft:E.scrollTop,J=F===0?1:Math.round(F*1e3/16);function le(){D==="horizontal"?E.scrollLeft+=($-H)/J:E.scrollTop+=($-H)/J,++w<J&&_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)),Q=(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(H=>{H!==!1&&D()}).catch(()=>{D()}):w!==!1&&D()}else D()},B=(E,$)=>function(){Q(E,$)},k=(E,$)=>{Q(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"]},Z=l.h("view",W);le.push(Z)}const U=F?.num??Lf(r,E);if(U){let W="";const Z=Te(U);Z>=100?W="99+":W=`${Z}`;const O={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",O,[W]);le.push(K)}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`},H=l.h("view",w);D.push(H);const J={ref:j($),class:R(E,F),style:x(E,F),key:z(E,$),onClick:B(E,$)};return l.h("view",J,D)},ee=()=>{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 H={class:y(D,F),key:z(D,F),onClick:M(D,F)},J=l.h("view",H,[w]);E.push(J)}const $={class:b.value,style:v.value};return l.h("view",$,E)};return()=>{const E=[],$=ee();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?ue(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const 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=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(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,H)=>{const J={[`${u}__step`]:!0};return H&&(J[`${H}`]=!0),J[`${C.value}`]=!0,w&&(J["is-doit"]=!0),$===m.value?J["is-active"]=!0:F==="done"?J["is-done"]=!0:F==="error"?J["is-error"]=!0:F==="half"?J["is-half"]=!0:D?J["is-disabled"]=!0:J["is-normal"]=!0,J},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 H=qr(r,$);i("update:modelValue",H);const J={fromIndex:D,currentIndex:w,item:$,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,J)},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,H)=>{let J=null;if(a.icon)J=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;J=l.h(Y,U)}else{const U=D??`${F+1}`;J=l.h("span",{},[U])}const le={class:"fox-steps-bar__icon",onClick:()=>{H||V($,F)}};return l.h("view",le,[J])},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,H)=>{const J=[];if(!j(F)){const Y=z($,F);J.push(Y)}const le=x($,F,D,w,H);J.push(le);const U={class:"fox-steps-bar__head"};return l.h("view",U,J)},Q=($,F,D,w)=>{let H=null;a.main?H=a.main({item:$,index:F,status:D}):H=ad(r,$);const J={class:"fox-steps-bar__main",onClick:()=>{w||V($,F)}};return l.h("view",J,[H])},B=($,F,D)=>{let w=null;if(a.sub){w=a.sub({item:$,index:F,status:D});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[w])}return null},k=($,F)=>{const D=Ml(r,$,F)??{},w=D.status??Al(r,$);let H=Pr(r,$);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const J=D.label??zr(r,$),le=[],U=x($,F,J,w,H);U&&le.push(U);const Y=Q($,F,w,H);if(Y&&le.push(Y),!j(F)){const X=z($,F);X&&le.push(X)}const N=l.h("view",{class:"fox-steps-bar__head"},le),W=D.class,Z=D.style??{};let O=jr(r,$);D.doit===!0&&(O=!0);const K={ref:L(F),class:A(F,w,H,O,W),style:T(F,Z)};return l.h("view",K,[N])},M=($,F)=>{const D=Ml(r,$,F)??{},w=D.status??Al(r,$);let H=Pr(r,$);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const J=D.label??zr(r,$),le=[],U=r.layout;for(let O of U)if(O==="head"){const K=_($,F,J,w,H);le.push(K)}else if(O==="main"){const K=Q($,F,w,H);le.push(K)}else if(O==="sub"){const K=B($,F,w);le.push(K)}else if(O==="mark"){const K=y();le.push(K)}const Y=D.class,N=D.style??{};let W=jr(r,$);D.doit===!0&&(W=!0);const Z={ref:L(F),class:A(F,w,H,W,Y),style:T(F,N)};return l.h("view",Z,le)},P=l.ref(),G=l.ref([]),ee=($,F)=>{G.value[F]=$},L=$=>F=>{ee(F,$)},ne=($,F)=>{const D=P.value,w=G.value;if(!D||!w||!w[$])return;const H=w[$];let J=0;r.direction==="vertical"?J=H.offsetTop-(D.offsetHeight-H.offsetHeight)/2:J=H.offsetLeft-(D.offsetWidth-H.offsetWidth)/2,E(D,J,.3,r.direction)},E=($,F,D,w)=>{let H=0;const J=w==="horizontal"?$.scrollLeft:$.scrollTop,le=Math.round(D*1e3/16);function U(){w==="horizontal"?$.scrollLeft+=(F-J)/le:$.scrollTop+=(F-J)/le,++H<le&&_n(U)}U()};return()=>{const $=[];if(r.mode==="simple")for(let D=0;D<d.value.length;D++){const w=d.value[D],H=k(w,D);$.push(H)}else for(let D=0;D<d.value.length;D++){const w=d.value[D],H=M(w,D);$.push(H)}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=()=>lt?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=Ye(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=Ye(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=Ye(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 Q={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...b.value}};return l.h("view",Q,x)};return()=>{const x=[];if(n.label){const _={class:`${e}__search-label`},Q=l.h("span",_,[n.label]);x.push(Q)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Q=l.h("view",_,[r.leftout()]);x.push(Q)}const z=R();if(x.push(z),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Q=l.h("view",_,[r.rightout()]);x.push(Q)}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,Ie.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"},Q=l.h("view",_,[u.loadText.value]);R=[y,Q]}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=Ve(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),Q={class:"fox-pull-refresh-container",style:p.value},B=l.h("div",Q,[_,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(()=>{!ue(r.showOverflowTooltip)||!o||A()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||C()}),()=>{const T={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ue(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),_=ue(r.autoPadding);let Q=`${R[0].children}`,B=Q.split("").reverse().join("");B=jt(B,y,_,z,r.separator),Q=B.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(Q,T)),q||(T.innerHTML=Q,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:Ie.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??Ie.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:Ie.Close,ElPopover:S.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const 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=Ye(Ch,[["render",Rh]]),Be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ft=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,it=(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(it(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=>{ue(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey: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 Q=In({focusReason:i.value});o("focusout-prevented",Q),Q.defaultPrevented||(f.preventDefault(),V&&it(z,!0))}else if(j&&[z,x].includes(R)){const Q=In({focusReason:i.value});o("focusout-prevented",Q),Q.defaultPrevented||(f.preventDefault(),V&&it(y,!0))}}else if(R===x){const Q=In({focusReason:i.value});o("focusout-prevented",Q),Q.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);ue(e.trapped)||C&&h.contains(C)||(r=C),T&&o("focusin",f),!u.paused&&ue(e.trapped)&&(T?a=A:it(a,!0))},b=f=>{const h=l.unref(n);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const A=f.relatedTarget;!Hn(A)&&!h.contains(A)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const C=In({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||it(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)||(it(T),document.activeElement!==T&&(T="first")),T==="first"&&zh(oa(f),!0),(document.activeElement===h||T==="container")&&it(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())&&it(r??document.body,!0),f.removeEventListener(Xl,c),ia.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&v(),l.watch(()=>e.trapped,f=>{ue(f)?v():p()})}),l.onBeforeUnmount(()=>{ue(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 ft(i.value)?O.left="auto":O.left=Be(i.value),ft(u.value)?O.top="auto":O.top=Be(u.value),ft(s.value)?O.right="auto":O.right=Be(s.value),ft(c.value)?O.bottom="auto":O.bottom=Be(c.value),ft(e.zIndex)||(O["z-index"]=Be(e.zIndex)),ft(V.value)||(O.height=V.value),ft(I.value)||(O.width=I.value),O}),b=l.computed(()=>e.closeIcon??Ie.Close),v=l.computed(()=>e.collapseIcon??Ie.ArrowUp),p=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??"展开"),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(ue(e.collapse)),x=(O,K=!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 Q=()=>{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}),ee=l.ref(R.value),L=l.computed({set:O=>{ee.value=O},get:()=>n.value===!1?!1:ee.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 K=T.value;if(D(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,w.x=i.value,w.y=u.value;else if(e.origin==="left-bottom"){const X=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=X-(K.offsetTop+K.offsetHeight),w.x=i.value,w.y=c.value}else if(e.origin==="right-bottom"){const X=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;s.value=X-(K.offsetLeft+K.offsetWidth),c.value=oe-(K.offsetTop+K.offsetHeight),w.x=s.value,w.y=c.value}else{const X=document.documentElement.clientWidth||document.body.clientWidth;s.value=X-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,w.x=s.value,w.y=u.value}},O=>{if(!T.value)return;const K=T.value;D(),e.origin==="left-top"?(i.value=w.x+O.x,u.value=w.y+O.y,K.style.left=Be(i.value),K.style.top=Be(u.value)):e.origin==="left-bottom"?(i.value=w.x+O.x,c.value=w.y-O.y,K.style.left=Be(i.value),K.style.bottom=Be(c.value)):e.origin==="right-bottom"?(s.value=w.x-O.x,c.value=w.y-O.y,K.style.right=Be(s.value),K.style.bottom=Be(c.value)):(s.value=w.x-O.x,u.value=w.y+O.y,K.style.right=Be(s.value),K.style.top=Be(u.value))}),U={x:0,y:0},W=Qr(O=>{B.value&&(U.x=B.value.offsetLeft,U.y=B.value.offsetTop)},O=>{if(!B.value)return;const K=U.y+O.y;P.value=`${K}px`}),Z=()=>{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&&(Z(),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:Q,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=Ye(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,H=!0)=>{const J=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,U=L.split("-");let Y=[];H?U[0]==="top"?Y=["top","bottom","right","left"]:U[0]==="bottom"?Y=["bottom","top","right","left"]:U[0]==="left"?Y=["left","top","bottom","right"]:U[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[L[0]];const N={top:null,right:null,bottom:null,left:null},W=[];for(let Z=0;Z<Y.length;Z++){const O=Y[Z];if(W[0]=O,U[1]&&(W[1]=U[1]),O==="top"){const K=E-w-n.arrowSize/2-n.offset;if(K>=0){N.top=K;let X=0;U[1]==="start"?X=ne:U[1]==="end"?X=ne+$-D:X=ne+$/2-D/2;const oe=J-X-D;oe<0?(X+=oe,T.value=-oe):T.value=0,N.left=X<0?0:X;break}}else if(O==="bottom"){const K=E+F+n.arrowSize/2+n.offset;if(K+w<=le){N.top=K;let X=0;U[1]==="start"?X=ne:U[1]==="end"?X=ne+$-D:X=ne+$/2-D/2;const oe=J-X-D;oe<0?(X+=oe,T.value=-oe):T.value=0,N.left=X<0?0:X;break}}else if(O==="left"){const K=ne-D-n.arrowSize/2-n.offset;if(K>=0){N.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+F-w:X=E+F/2-w/2,N.top=X<0?0:X;break}}else if(O==="right"){const K=ne+$+n.arrowSize/2+n.offset;if(K+D<=J){N.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+F-w:X=E+F/2-w/2,N.top=X<0?0:X;break}}}return{bestPlacement:W.join("-"),bestInsetRect:N}},C=()=>{const L=n.visible,ne=n.autoFit;if(!lt||L===!1)return;if(n.reference){const w=h(),H=rl(w);s.value=H.x,c.value=H.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)},Q=()=>{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)},ee=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=Q();ne&&L.push(ne);const E=[],$=B();if($&&E.push($),a.default){const H=a.default();E.push(H)}const F=P();F&&E.push(F);const D={ref:f,class:z.value,style:y.value,onAnimationend:G};n.leaveHide&&(D.onMouseleave=ee);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(lt&&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=Ke,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=Ne,g.definePageState=Lo,g.defineSimpleItem=Mo,g.deleteGlobalValidator=Va,g.disabledProperty=Me,g.divide=Ln,g.excludeProps=De,g.extend=ut,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=lt,g.isDate=ya,g.isESModule=ba,g.isEmptyString=he,g.isEqual=et,g.isFunction=qn,g.isHidden=Kt,g.isInnerPage=qa,g.isMap=ga,g.isNil=Hn,g.isNumberString=To,g.isObject=Je,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=ue,g.toNumber=Te,g.toPadding=Xe,g.toPx=me,g.toPxDesc=Ve,g.toTypeString=zt,g.toValue=ge,g.tryTimes=Xt,g.typeOf=Ht,g.unNumberFormat=mo,g.updatePageState=Gn,g.useBroadcast=kt,g.useDomain=ot,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 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:"¥"},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&>.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"}})});
|