@fox-js/foxui-pc 4.1.1-11 → 4.1.1-12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Sat Dec 28 2024 15:33:16 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ft=require("@fox-js/validator"),x=require("element-plus"),Ie=require("@element-plus/icons-vue"),qe=require("@fox-js/i18n"),_t=window,ha=typeof window<"u";function ma(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ga(e){ha?cancelAnimationFrame(e):clearTimeout(e)}const dr=ma();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Fri Jan 24 2025 22:48:45 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ft=require("@fox-js/validator"),x=require("element-plus"),Ie=require("@element-plus/icons-vue"),je=require("@fox-js/i18n"),_t=window,da=typeof window<"u";function ha(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ma(e){da?cancelAnimationFrame(e):clearTimeout(e)}const dr=ha();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function tn(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=ke(e),t=ke(t),[e,t]=rl(ke(e),ke(t)),o==1&&(n==1?e=Dn(e):t=Dn(t));let r=hr(e,t);return o?o==2?"-"+ke(r):e.length<r.length?ke(r.substring(1)):"-"+ke(Dn(r)):ke(r)}function Dn(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 hr(t,a)}function ke(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 rl(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 hr(e,t){[e,t]=rl(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 ye=(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))(ye||{});function Vt(e,t=0,o=ye.HALF_EVEN){if(o===ye.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=Vt(e,0,o),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,ao(r[1],a,n,o)?(n?"-":"")+Rn(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&&ao(u,i,n,o)&&(i=Rn(i),i.length>t)?(n?"-":"")+Rn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function ao(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!o&&n===ye.FLOOR||o&&n===ye.CEILING)return!1;if(n===ye.UP||o&&n===ye.FLOOR||!o&&n===ye.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 ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rn(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 Kn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let h=e;e=t,t=h}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let h=0;h<i;h++)s[h]=e.length-1;for(let h=0;h<2*e.length;h++){let v=0;for(let y=t.length-1;y>=c&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(v+=parseInt(e[s[y]--])*parseInt(t[y]));v+=u,u=Math.floor(v/10),d=v%10+d,c--}return d=Ct(va(d,a)),o==1&&(d="-"+d),d}function va(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Wn(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=ke(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=ke(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=ke(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=ke(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=ke(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=tn(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?"-":"")+ke(Vt(u,o-2))}function Yn(e,t){return e=e.toString(),t=t.toString(),t=Un(t),tn(e,t)}function Un(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function io(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),so(e),so(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Yn(e,Kn(t,Vt(Wn(e,t),0,ye.FLOOR)));return o+n}function so(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function uo(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]=rl(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 fe{value;static RoundingModes=ye;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=ke(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+ke(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=fe.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=fe.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 fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ye.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Vt(t,o,n)}round(t=0,o=ye.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(Vt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),tn(t,o)}add(t){return new fe(tn(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),Yn(t,o)}subtract(t){return new fe(Yn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),Kn(t,o)}multiply(t){return new fe(Kn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),Wn(t,o,n)}divide(t,o){return new fe(Wn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),io(t,o)}modulus(t){return new fe(io(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),uo(t,o)}compareTo(t){return uo(this.value,t.getValue())}static negate(t){return t=fe.validate(t),Un(t)}negate(){return new fe(Un(this.value))}}function mr(e,t){return fe.multiply(`${e}`,`${t}`)}function al(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function Gn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function gr(e){return fe.negate(e)}function un(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 h="",v=u.split("").reverse();for(let y=0;y<v.length;y++)h+=v[y]+((y+1)%n==0&&y+1!=v.length?r:"");s.length==0?d=`${i}${h.split("").reverse().join("")}`:d=`${i}${h.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function vr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const il=dr,pa=Array.isArray,ya=e=>cn(e)==="[object Map]",ba=e=>cn(e)==="[object Set]",xa=e=>e instanceof Date,Xn=e=>typeof e=="function",pr=e=>typeof e=="string",wa=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",yr=e=>Qe(e)&&Xn(e.then)&&Xn(e.catch),br=Object.prototype.toString,cn=e=>br.call(e),Zn=e=>cn(e)==="[object Object]",xr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Sa(e){return e.__esModule||xr&&e[Symbol.toStringTag]==="Module"}const Ta=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function mt(...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]=mt(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function Jn(e,t,o=!1){if(!o)mt(!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)&&!Zn(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)&&!Zn(i))continue;a=Jn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Fn=Ta?Promise.resolve():null;function $a(e,...t){Fn!==null?t&&t.length>0?Fn.then(()=>{e(t)}):Fn.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 $e(e){return typeof e=="number"?e:Number(e)}const Ca={"[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 nn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Ca[o]||"object"}function wr(e){return e&&typeof e=="object"&&"setInterval"in e}function fn(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Sr(e){let t=!!e&&"length"in e&&e.length,o=nn(e);return o==="function"||wr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Tr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function Ea(e,t=[]){let o=t;return e!=null&&(Sr(Object(e))?Tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Je(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=nn(e),n=nn(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(!Je(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(!Je(a,i))return!1}return!0}return!1}const rt=typeof window<"u";function sl(e){return e==null}function Qn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function $r(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Cr(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 Er(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 co(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 Na(e,t=!0,o=!0){t?e=co(e,".",/\./g):e=e.replace(/\./g,""),o?e=co(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ka(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Je(e,o))return!0}):t.indexOf(e)}function Pa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Je(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Nr(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 Ia=(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},be=Symbol.for("BroadcastKey");class ul{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==="+"||Qn(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="*"):Qn(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 dn(e,t,o,n){const r=new ul(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Oa(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new ul(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function Pt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}const dt=e=>e.default??e;class Va{error(t,o){const n=o,r=o||l.hasInjectionContext()?Pt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Pt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Pt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Pt(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 It=new Va;function Da(e){It=e}function Ra(e){It?Object.assign(It,e):It=e}function Fa(e,t){dt(ft).setValidator(e,t)}function Aa(e){dt(ft).deleteValidator(e)}let kr=["blur","clear"];function Ma(e){kr=e}function Pr(){return kr}let Ir=["focus","change","setValue"];function La(e){Ir=e}function Or(){return Ir}function Ba(e){dt(ft).messages(e)}function Et(...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 qt(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 Vr{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=qt(Et(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=qt(n);const r=Et(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?dt(ft).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?dt(ft).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return dt(ft).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=Et(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=qt(t):this.rules=qt([t]);const n=Et(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=Et(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=dt(ft),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(h=>{if(h.pass)this.success();else{let v="error";Array.isArray(h.errors)&&h.errors.length>0&&(v=h.errors[0].message??v,h.errors=[h.errors[0]],h.errors[0].ref=c),this.error(v)}return h}).catch(h=>{const v=h.message??`${h}`;return this.error(v),h})}}return Promise.resolve({pass:!0})}}function hn(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 Vr(t,o,e)}const ln=Symbol.for("EventEmitterKey");class Dr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function lt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Rr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function _a(e,t){const o=lt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function qa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function mn(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 Le=Symbol("DomainKey"),vt=Symbol("DataItemsKey");class gn{_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 ja=new gn;function yt(){return ja}function at(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const An=Symbol("OriginalDateKey");function cl(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=yt());const u=e||t.prop||t.name;let s=new gn(u);s.parent=i;const c=f=>{a[An]||v(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,h=()=>a[An]??null,v=f=>{const m={};mt(!0,m,l.toRaw(f)),a[An]=m};l.isReactive(t)||typeof t=="function"?l.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&v(t.modelValue);const y=(f,m)=>{s?.set(f,m)},g=f=>s?.getForSelf(f)??null;if(a[Le]=s,l.provide(Le,s),r!==null){const f=l.inject(be,null),m=dn(a,f,u,n);s.broadcast=m,a[be]=m,l.provide(be,m),a.broadcast=(w,O,...L)=>Reflect.apply(m.emit,m,[w,O,...L]);const F=l.inject(Ke,null),S=hn(a,F,{componentName:""});s.validateSchema=S,a[Ke]=S,l.provide(Ke,S),a[vt]=new Map,a.validate=(w=!0)=>{const O=[];let L=null;const R={deep:!1};if(w===!0)L={name:"*"};else if(Array.isArray(w)&&w.length>0){const D=w;L={name:_=>_?D.indexOf(_)!==-1:!1}}else if(w!=null&&typeof w=="object"){const D=w;if(Object.assign(R,D),Array.isArray(D.include)&&D.include.length>0){const _=D.include;L={name:T=>T?_.indexOf(T)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const _=D.exclude;L={name:T=>T?_.indexOf(T)===-1:!1}}else L={name:"*"}}if(L){const D=m?.emitToChildren(L,"validate",R);D&&Reflect.apply([].push,O,D)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(D=>{let _=[];return D.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(_=[..._,...T.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(w,O=!0,L=!1)=>{if(L===!0){Reflect.ownKeys(w).forEach(D=>{let _=String(D);const T={componentName:"",fieldName:_,pureDataValidate:!0};if(s){const k=Ar(s,_,T,m,S);a[vt].set(_,k);const p=w[_];p&&k.validateSchema.setRule(p)}});return}if(O){const R=Reflect.ownKeys(w),D={name:_=>R.includes(_),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(D,"setNameValidateRules",w,!1)}},a.clearValidate=(w=!0)=>{let O=null;if(w===!0)O={name:"*"};else if(Array.isArray(w)&&w.length>0){const L=w;O={name:R=>R?L.indexOf(R)!==-1:!1}}else if(w!=null&&typeof w=="object"){const L=w;if(Array.isArray(L.include)&&L.include.length>0){const R=L.include;O={name:D=>D?R.indexOf(D)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const R=L.exclude;O={name:D=>D?R.indexOf(D)===-1:!1}}else O={name:"*"}}O&&m?.emitToChildren(O,"clearValidate",!1)},a.resetFields=w=>{const O=d();if(!O)return;const L={};if(mt(!0,L,h()??{}),Array.isArray(w))w.forEach(R=>{O[R]=L[R]});else if(w&&Array.isArray(w.include))(w.include??[]).forEach(D=>{O[D]=L[D]});else if(w&&Array.isArray(w.exclude)){let R=w.exclude??[];Reflect.ownKeys(L).forEach(D=>{R.includes(D)||(O[D]=L[D])})}else Object.assign(O,L);a.clearValidate(w)},a.setModelValue=(w,O)=>{if(!O||O===u)c(w);else{const L={name:O,messagingPolicy:"Once"};m?.emitToChildren(L,"setModelValue",w)}},a.getModelValue=()=>d(),a.setDomainProperty=(w,O)=>{y(w,O)},a.getDomainProperty=w=>g(w),setTimeout(function(){m?.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[be]=void 0,l.provide(be,null)),s?.destroy(),a[Le]=void 0,l.provide(Le,null),a[vt]&&(a[vt].clear(),a[vt]=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 Fr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=yt());const i=e||t.prop||t.name;let u=new gn(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[Le]=u,l.provide(Le,u),l.onUnmounted(()=>{u?.destroy(),r[Le]=void 0,l.provide(Le,null),u=null,r=null}),u}function Ne(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let u=dn(r,i,a,o);r[be]=u,l.provide(be,u),r.broadcast=(g,f,...m)=>u?Reflect.apply(u.emit,u,[g,f,...m]):null;const s=l.inject(Ke,null);e.fieldName=e.fieldName??a;let c=hn(r,s,e);r[Ke]=c,l.provide(Ke,c),r.validate=(g=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let m=!1,F=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)F=!0,m=!0;else if(g&&typeof g=="object"){const S=g,w=S.ignoreDisabled??!0,O=S.ignoreReadonly??!0,L=S.ignoreHidden??!0;w===!0&&e.disabled===!0||O===!0&&e.readonly===!0||L===!0&&fn(r.$el)?F=!1:(Array.isArray(S.include)&&S.include.indexOf(a)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(a),F=!0),m=S.deep??!1}else typeof g=="boolean"&&(m=g),F=!0;if(F){const S=c?.validate();f.push(S)}if(m){let S=null;const w={deep:!1};if(g===!0)S={name:"*"};else if(Array.isArray(g)&&g.length>0){const O=g;S={name:L=>L?O.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const O=g;if(Object.assign(w,O),Array.isArray(O.include)&&O.include.length>0){const L=O.include;S={name:R=>R?L.indexOf(R)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const L=O.exclude;S={name:R=>R?L.indexOf(R)===-1:!1}}else S={name:"*"}}if(S&&u){const O=u.emitToChildren(S,"validate",w);Reflect.apply([].push,f,O)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(S=>{let w=[];return S.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(w=[...w,...O.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>c?.setRule(g),r.setNameValidateRules=(g,f=!1)=>{const m=g[a];if(m&&c?.setRule(m),f&&u){const F={name:S=>Reflect.ownKeys(g).includes(S)};u.emitToChildren(F,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(g===!0)f={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;f={name:F=>F?m.indexOf(F)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const F=m.include;f={name:S=>S?F.indexOf(S)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const F=m.exclude;f={name:S=>S?F.indexOf(S)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Dr(r);r[ln]=d;const h=lt((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Pr()).forEach(g=>{d&&d.on(g,f=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Or()).forEach(g=>{d&&d.on(g,f=>{h("reset")})}),setTimeout(function(){u?.pull()},0),l.onUnmounted(()=>{u?.destroy(),r[be]=void 0,l.provide(be,null),u=null,c?.destroy(),r[Ke]=void 0,l.provide(Ke,null),c=null,d?.destroy(),r[ln]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(g,...f)=>{d&&Reflect.apply(d.emit,d,[g,...f])},onEvent:(g,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(g,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Ar(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=hn({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const h=[];let v=!1,y=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)y=!0,v=!0;else if(d&&typeof d=="object"){const g=d;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),y=!0,v=g.deep??!1}else typeof d=="boolean"&&(v=d),y=!0;if(y&&s){const g=s.validate();h.push(g)}if(v){let g=null;const f={deep:!1};if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const m=d;g={name:F=>F?m.indexOf(F)!==-1:!1}}else if(d!=null&&typeof d=="object"){const m=d;if(Object.assign(f,m),Array.isArray(m.include)&&m.include.length>0){const F=m.include;g={name:S=>S?F.indexOf(S)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const F=m.exclude;g={name:S=>S?F.indexOf(S)===-1:!1}}else g={name:"*"}}if(g&&c){const m=c.emitToChildren(g,"validate",f);Reflect.apply([].push,h,m)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(g=>{let f=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(f=[...f,...m.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const h=d[i];h&&s?.setRule(h)};let c=dn(null,n,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Mr(){let t=l.getCurrentInstance()?.proxy,o=new Dr(t);return t[ln]=o,l.onUnmounted(()=>{o?.destroy(),t[ln]=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 Pe=(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(rt){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 ot="PageStateKey";function Ue(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 el(e,t,o={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ue(o.headerPadding??t.headerPadding),e.footerHeight=me(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ue(o.footerPadding??t.footerPadding),e.contentPadding=Ue(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 Lr(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;el(n,a,t,!0,i,u,s,c);const d=l.reactive(n),h=e.getForParent(ot);h&&(n.height=on(e,h),n.width=rn(e,h),l.watch([()=>on(e,h),()=>rn(e,h)],([y,g])=>{d.height=y,d.width=g}));const v=!h;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,f=-1,m=-1,F=0,S=0])=>{el(d,g,t,v,f,m,F,S)}),e.set(ot,d),d}function vn(e){return e.get(ot)}function pn(e,t){if(t=t??e.get(ot),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yn(e,t){if(t=t??e.get(ot),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function on(e,t){if(t=t??e.get(ot),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pn(e,t),n=yn(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function rn(e,t){return t=t??e.get(ot),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function za(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ha(e){return!!e.getForParent(ot)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function jt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,o=1,n){const r=at();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(jt(s,n))return s}const i=e.value;return jt(i,n)?i:null}):l.computed(()=>{const a=e.value;if(jt(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(jt(s,n))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,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 Br=new Map,an=new Map;let tl=null;function Ka(e){tl=e}function _r(e,t,o){if(o){let n=an.get(o);n||(n=new Map,an.set(o,n)),n.set(e,t)}else Br.set(e,t)}function We(e,t,o){!o&&tl&&(o=tl(e)??void 0);let n=null;if(o){let r=an.get(o);r&&(n=r.get(t))}return n||(n=Br.get(t)),n}function Wa(e,t){for(let o in e){const n=e[o];_r(o,n,t)}}function Ya(e){an.delete(e)}function Ua(){return{top:0,left:0,bottom:0,right:0}}function Ga(){if(rt){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 Xa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Za{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=Xa(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=Rr(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=mt({},Ua(),t.safeAreaInset),i=Ga(),u=mt({},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){Ka(t)}setAPI(t,o,n){_r(t,o,n)}getAPI(t,o,n){return We(t,o,n)}batchSetAPI(t,o){Wa(t,o)}clearScopeAPI(t){Ya(t)}getRootDomain(){return yt()}}const Ja=[x.ElAffix,x.ElAlert,x.ElAutocomplete,x.ElAutoResizer,x.ElAvatar,x.ElBacktop,x.ElBadge,x.ElBreadcrumb,x.ElBreadcrumbItem,x.ElButton,x.ElButtonGroup,x.ElCalendar,x.ElCard,x.ElCarousel,x.ElCarouselItem,x.ElCascader,x.ElCascaderPanel,x.ElCheckTag,x.ElCheckbox,x.ElCheckboxButton,x.ElCheckboxGroup,x.ElCol,x.ElCollapse,x.ElCollapseItem,x.ElCollapseTransition,x.ElColorPicker,x.ElConfigProvider,x.ElContainer,x.ElAside,x.ElFooter,x.ElHeader,x.ElMain,x.ElDatePicker,x.ElDescriptions,x.ElDescriptionsItem,x.ElDialog,x.ElDivider,x.ElDrawer,x.ElDropdown,x.ElDropdownItem,x.ElDropdownMenu,x.ElEmpty,x.ElForm,x.ElFormItem,x.ElIcon,x.ElImage,x.ElImageViewer,x.ElInput,x.ElInputNumber,x.ElLink,x.ElMenu,x.ElSubMenu,x.ElMenuItem,x.ElMenuItemGroup,x.ElPageHeader,x.ElPagination,x.ElPopconfirm,x.ElPopover,x.ElPopper,x.ElProgress,x.ElRadio,x.ElRadioButton,x.ElRadioGroup,x.ElRate,x.ElResult,x.ElRow,x.ElScrollbar,x.ElSelect,x.ElOption,x.ElOptionGroup,x.ElSelectV2,x.ElSkeleton,x.ElSkeletonItem,x.ElSlider,x.ElSpace,x.ElSteps,x.ElStep,x.ElSwitch,x.ElTable,x.ElTableColumn,x.ElTableV2,x.ElTabs,x.ElTabPane,x.ElTag,x.ElTimePicker,x.ElTimeSelect,x.ElTimeline,x.ElTimelineItem,x.ElTooltip,x.ElTransfer,x.ElTree,x.ElTreeSelect,x.ElTreeV2,x.ElUpload,x.ElStatistic,x.ElCountdown,x.ElSegmented,x.ElAnchor,x.ElAnchorLink,x.ElWatermark,x.ElMessageBox,x.ElMessage,x.ElNotification],Qa=[x.ElInfiniteScroll,x.ElLoading,x.ElMessage,x.ElMessageBox,x.ElNotification,x.ElPopoverDirective],ei=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Qa.forEach(r=>{e.use(r)})};function ae(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 we(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}},qr={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}},jr={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}},zr=[];for(const e in jr)zr.push(e);const ti=Symbol.for("InnerPageScopeKey"),ni={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}},li=(e,t)=>({inheritAttrs:!0,props:{...Ce,...qr,...ni},setup(o,{slots:n}){const r=cl(o.name,o),a=l.inject(ti,!1);if(r){const d=Lr(r,o);we({getPageContentHeight:()=>on(r,d),getPageContentWidth:()=>rn(r,d),getPageHeaderHeight:()=>pn(r,d),getPageFooterHeight:()=>yn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,h=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(d,!0,h)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,h],[v,y])=>{if(d&&v){const g=l.toRaw(v),f=l.toRaw(d),m=f?Reflect.ownKeys(f):[];(g?Reflect.ownKeys(g):[]).forEach(S=>{m.includes(S)||(f[S]=[])}),c(f)}if(h&&y){const g=l.toRaw(y),f=l.toRaw(h),m=f?Reflect.ownKeys(f):[];(g?Reflect.ownKeys(g):[]).forEach(S=>{m.includes(S)||(f[S]=[])}),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:oi,create:ri,scope:Cm}=ae("page"),fl=ri(li(oi));function dl(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function bn(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 ai=(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=at(),u=i?vn(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})),h=r.height!==null&&r.height!==void 0?me(r.height):null,v=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const p=Ue(r.padding??u.headerPadding);return Object.assign(k,p),h&&(u.headerHeight=h),u.headerHeight>0&&(k.height=u.headerHeight),k.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(p.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(h&&(k.height=h),r.padding){const p=Ue(r.padding);Object.assign(k,p)}return k}),y=l.ref(null),g=()=>{if(u&&y.value&&!fn(y.value)){if(!n){const k=dl(y.value);u.headerAllHeight=k.height}return u.headerMounted=!0,!0}return!1};let f=null;l.onMounted(()=>{u&&(mn(g,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(()=>{g()}),f.observe(y.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const m=l.computed(()=>{const k={};return v.value.height!==null&&v.value.height!==void 0&&(k.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(k.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(k.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(k.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(k.paddingBottom=`${v.value.bottom}px`),k}),F=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function S(){a.emit("back")}function w(){a.emit("click-title")}function O(){a.emit("click-right")}function L(){a.emit("click-right-text")}const R=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const p=l.h("view",{class:"left-icon",onClick:S},[a.slots.leftIcon()]);k.push(p)}else if(r.leftIcon){const p=l.h("view",{class:"left-icon",onClick:S},[l.h(r.leftIcon)]);k.push(p)}if(r.leftText){const p=l.h("view",{class:"left-text",onClick:S},[r.leftText]);k.push(p)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},D=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const p=l.h("view",{class:"right-text",onClick:L},[r.rightText]);k.push(p)}if(a.slots.rightIcon){const p=l.h("view",{class:"right-icon",onClick:O},[a.slots.rightIcon()]);k.push(p)}else if(r.rightIcon){const p=l.h("view",{class:"right-icon",onClick:O},[l.h(r.rightIcon)]);k.push(p)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},_=()=>{if(!r.titleShow)return null;const k=[],p=a.slots.default?a.slots.default():null;if(p)k.push(p);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:w},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:w},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},T=()=>{const k=[],p=a.slots.bottom?a.slots.bottom():null;return p&&k.push(p),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!F.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],Q=R();Q&&j.push(Q);const B=_();B&&j.push(B);const E=D();if(E&&j.push(E),j.length>0){const q=l.h("view",{class:d.value},j);k.push(q)}const A=T();A&&k.push(A)}if(k.length===0)return null;const p={class:c.value,style:m.value,ref:y};return l.h("view",p,k)}}}),{componentName:ii,create:si,scope:ui}=ae("header-bar"),hl=si(ai(ii,ui,Ie.ArrowLeft));function ci(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=at(),i=a?vn(a):null,u=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),s=n.height!==null&&n.height!==void 0?me(n.height):null,c=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=Ue(n.padding??i.footerPadding);return Object.assign(g,f),s&&(i.footerHeight=s),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(f.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(s&&(g.height=s),n.padding){const f=Ue(n.padding);Object.assign(g,f)}return g}),d=l.ref(null),h=()=>{if(i&&d.value&&!fn(d.value)){if(!o){const g=dl(d.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(mn(h,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{h()}),v.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const y=l.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Pe(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Pe(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Pe(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Pe(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Pe(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:y.value};return l.h("view",f,g)}}}}const{componentName:fi,create:di,scope:Em}=ae("footer-bar"),ml=di(ci(fi));function hi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:n,attrs:r}){const a=at(),i=l.computed(()=>({[e]:!0})),u=a?vn(a):null,s=l.computed(()=>{const v={};if(a&&u){if(o.padding){const O=Ue(o.padding);Object.assign(u.contentPadding,O)}const y=pn(a,u),g=yn(a,u);let f="";u.contentHeight?f=`${u.contentHeight}`:f=`${u.height}px`,v.height=f;let m=(u&&u.contentPadding&&u.contentPadding.top)??-1;(m>=0||y>0)&&(m=m<0?0:m,v.paddingTop=`${y+m}px`);let F=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(F>=0||g>0)&&(F=F<0?0:F,v.paddingBottom=`${g+F}px`);const S=(u&&u.contentPadding&&u.contentPadding.left)??-1;S>=0&&(v.paddingLeft=`${S}px`);const w=(u&&u.contentPadding&&u.contentPadding.right)??-1;return w>=0&&(v.paddingRight=`${w}px`),v}if(o.padding){const y=Ue(o.padding);y.left&&(v.paddingLeft=`${y.left}px`),y.top&&(v.paddingTop=`${y.top}px`),y.right&&(v.paddingRight=`${y.right}px`),y.bottom&&(v.paddingBottom=`${y.bottom}px`)}return v}),c=l.ref(null),d=lt(()=>{if(u&&c.value){const v=bn(c.value);u.contentInnerHeight=v.height,u.contentInnerWidth=v.width}},0);let h=null;return l.onMounted(()=>{d(),window.ResizeObserver&&c.value&&(h=new window.ResizeObserver(()=>{d()}),h.observe(c.value))}),l.onUnmounted(()=>{h&&(h.disconnect(),h=null)}),()=>{const v=o.tag??"view",y={...r,ref:c,class:i.value,style:s.value};return l.h(v,y,n)}}}}const{componentName:mi,create:gi,scope:Nm}=ae("content"),gl=gi(hi(mi)),wt="GroupStateKey",Hr=Symbol.for("GroupScopeKey");function xn(){return l.inject(Hr,!1)}function wn(e=!0){l.provide(Hr,e)}function vi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];sl(r)||(e[n]=r)})}function pi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};vi(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(wt,a),a}function Mn(e,t,o=-1,n=-1,r=!1,a,i,u){const s=e.get(wt);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),h=me(i);u||(u=c.type??"grid");const v=()=>{const y=t===""||t===-1,g=me(t);let f=$e(o);const m=me(n);if(!y){let w=(g-(f-1)*m)/f;for(;h!==-1&&w>h;)f++,w=(g-(f-1)*m)/f;for(;d!==-1&&f>1&&w<d;)f--,w=(g-(f-1)*m)/f}let F=!1;const S=s.layout;S.value.width=t,S.value.column!==f&&(S.value.column=f,F=!0),S.value.gutter!==m&&(S.value.gutter=m,F=!0),S.value.type!==u&&(S.value.type=u,F=!0),F&&l.triggerRef(S)};if(r)v();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&v()},50)}}function Sn(e,t=!1){let o;return t?o=e.getForParent(wt):o=e.get(wt),o.layout}function Tn(e,t=!1){let o;return t?o=e.getForParent(wt):o=e.get(wt),o.order}function fo(e,t=1){if(t==="stretch")return-1;const o=$e(t);return o===-1?100:100*o/e}function $n(e,t,o=1,n=0,r){const a={};let i=0;r?i=me(r):i=fo(t.column,o),i>0&&(a.width=`${i}%`);const u=fo(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 Cn(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=$e(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=$e(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 Kr=Symbol("RollingStateKey");function yi(e){l.provide(Kr,e)}function bi(){return l.inject(Kr,null)}function nl(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 xi(e){let t=nl(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=nl(o),document.body.removeChild(o)}return t}function wi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const Si={...Ce,...qr,...jr};function Ti(e,t,o){return{props:Si,emits:["update:collapse","header-click"],setup(n,r){const a=cl(n.prop??n.name,n,zr),i=pi(a,{type:n.type}),u=xn();wn(!0);const s=n.rollingDisplay?bi():null,c=l.ref(null),d=l.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),h=l.computed(()=>u&&a?Sn(a,!0).value:null),v=l.getCurrentInstance(),y=(N,K=!1)=>{const Z=v?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(N,!0,K)};l.watch([()=>n.rules,()=>n.pureDataRules],([N,K],[Z,P])=>{if(N&&Z){const H=l.toRaw(Z),G=l.toRaw(N),le=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ce=>{le.includes(ce)||(G[ce]=[])}),y(G)}if(K&&P){const H=l.toRaw(P),G=l.toRaw(K),le=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ce=>{le.includes(ce)||(G[ce]=[])}),y(G,!0)}},{deep:!0});const g=e,f=l.computed(()=>{const N={};N.height=E.value;const K=u?Tn(a,!0):null;if(h.value&&K){if(h.value.type==="grid"){const Z=Cn(K,h.value,n.span,n.offset);Object.assign(N,Z)}else if(h.value.type==="flow"){const Z=$n(K,h.value,n.span,n.offset,n.width);Object.assign(N,Z)}}else if(n.width){const Z=Pe(n.width);N.width=Z}return N}),m=l.computed(()=>{const N=i.layout.value.type;return N==="grid"||N==="flow"?{[`${g}--${N}`]:!0,[`${g}--${N}-justify-${n.justify}`]:!0,[`${g}--${N}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${N}`]:!0,[`${g}--gutter`]:!0}}),F=l.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(n.columnWidth)K=`repeat(auto-fill, ${n.columnWidth})`;else{const Z=wi(_.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),S=l.toRef(n,"gutter"),w=l.toRef(n,"column"),O=l.computed(()=>u||d.value?!0:ue(n.isWrap)),L=[],R=N=>{L.push(N)},D=()=>{let N=L.length;L.splice(0,N)},_=l.ref(-1),T=N=>{const K=bn(N).width;K>0&&K!==_.value&&(_.value=K)};Mn(a,_.value,w.value,S.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([_,w,S],([N,K,Z])=>{i.order.index=0,Mn(a,N,K,Z,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>A.value?n.expandText??"":n.collapseText??""),p=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),Q=l.ref(),B=l.ref(),E=l.computed(()=>q.value||Pe(n.height)||""),A=l.ref(!1),q=l.ref(""),U=l.ref(!1);let J=-1;const M=(N,K=!0)=>{const Z=Q.value;if(Z&&A.value!==N){if(J=J===-1?xi(Z):J,U.value=!0,K)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",N||(q.value="",U.value=!1)},N){let P=0;n.collapseHeight?P=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(P=B.value.offsetHeight),q.value=`${J}px`,l.nextTick(()=>{q.value=`${P}px`})}else q.value=`${J}px`;else if(N){let P=0;n.collapseHeight?P=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(P=B.value.offsetHeight),q.value=`${P}px`}else U.value=!1,q.value=`${J}px`;A.value=N,r.emit("update:collapse",N)}};l.watch(()=>n.collapse,N=>{M(N)});const ee=N=>{r.emit("header-click",N)},C=()=>{$()},$=N=>{N=N??!A.value,M(N)};we({toggleCollapse:$,doLayout:()=>{L[0]&&(T(L[0]),Mn(a,_.value,w.value,S.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let I=null,b=!0;const z=N=>{if(n.rules){const K=l.toRaw(n.rules);y(K)}if(n.pureDataRules){const K=l.toRaw(n.pureDataRules);y(K,!0)}if(rt&&(N&&M(ue(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const K=L[0];T(K),window.ResizeObserver&&(I=new window.ResizeObserver(()=>{T(K)}),I.observe(K))}},X=()=>{I?.disconnect(),I=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),l.onMounted(()=>{if(ne&&(z(b),b=!1),d.value&&s){let N=null,K=s.initialHeight;s.observe(Q.value,Z=>{if(Z!==c.value)if(Z)c.value=!0,A.value||(q.value=""),N=setTimeout(()=>{N=null,c.value!==!1&&(z(b),b=!1)},100);else{if(N!==null&&clearTimeout(N),c.value=!1,!A.value)if(b)q.value=s.initialHeight;else{let P=nl(Q.value);P<=0?q.value=K:(q.value=`${P}px`,K=q.value)}b||X()}})}}),l.onUnmounted(()=>{I?.disconnect(),s&&s.unobserve(Q.value)});const Y=(N="right")=>{const K=[];if(k.value){const H={class:p.value},G=l.h("span",H,[k.value]);K.push(G)}const Z={class:j.value},P=o(n.collapseIcon,Z);return P&&K.push(P),K.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${N}`]:!0},onClick:C},K):null},W=(N,K,Z,P)=>{const H={...m.value};return K===0&&(H[`${g}__first`]=!0),Z>=P-1&&(H[`${g}__last`]=!0),l.h("div",{ref:R,key:`${K}`,class:H,style:F.value},N)};return()=>{if(d.value&&c.value!==!0){const H=n.tag||"div";return l.h(H,{ref:Q,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:f.value},[])}i.order.index=0;const N=[];let K=0;if(r.slots.header){const H={key:`${K++}`,ref:B,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ee},G=l.h("div",H,[r.slots.header()]);N.push(G)}else{const H=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const le=Y("left");le&&H.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=l.h("div",le);H.push(se)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);H.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);H.push(le)}}if(r.slots.toolbar&&H.push(r.slots.toolbar()),!G&&n.showCollapse){const le=Y("right");le&&H.push(le)}if(H.length>0){const le={key:`${K++}`,ref:B,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ee},se=l.h("div",le,H);N.push(se)}}D();const Z=r.slots.default?r.slots.default():[],P=i.layout.value.type;if(P==="grid"){const H=W(Z,K++,0,Z.length);N.push(H)}else if(P==="flow"){const H=W(Z,K++,0,Z.length);N.push(H)}else for(let H=0;H<Z.length;H++){const G=Z[H],le=W([G],K++,H,Z.length);N.push(le)}if(O.value){const H=n.tag||"div";return l.h(H,{ref:Q,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:f.value},[N])}else return N}}}}const{componentName:$i,create:Ci,scope:Ei}=ae("group"),Ni=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),vl=Ci(Ti($i,Ei,Ni));function ki(e){return e===window}const Pi=/matrix\((.+)\)/,pl=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ki(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=Pi.exec(c);if(d){let v=d[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=u,n+=s,{x:o,y:n}};class Ii{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 Oi{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 Ii,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 Oi,Wr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Vi,create:Di}=ae("price"),Ri=Di({props:{...Wr},setup(e){const t=l.computed(()=>({[Vi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>At(e.price)==0?"":un(e.price,e.decimalLength,!0,$e(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},Fi=["innerHTML"],Ai=["innerHTML"];function Mi(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,Fi)):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,Ai)):l.createCommentVNode("",!0)],2)}const En=Ye(Ri,[["render",Mi]]),{componentName:Ln,create:Li}=ae("hint-text"),Bi=Li({components:{Price:En},props:{...Wr,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=(p,j,Q,B,E,A)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,J=p.split("-");let M=[];J[0]==="top"?M=["top","bottom","right","left"]:J[0]==="bottom"?M=["bottom","top","right","left"]:J[0]==="left"?M=["left","top","bottom","right"]:J[0]==="right"&&(M=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},C=[];for(let $=0;$<M.length;$++){const V=M[$];if(C[0]=V,J[1]&&(C[1]=J[1]),V==="top"){const I=j.y-A-e.arrowSize-e.offset;if(I>=0){ee.top=I;let b=0;J[1]==="start"?b=j.x:J[1]==="end"?b=j.x+Q-E:b=j.x+Q/2-E/2;const z=q-b-E;z<0?(b+=z,h.value=-z):h.value=0,ee.left=b<0?0:b;break}}else if(V==="bottom"){const I=j.y+B+e.arrowSize+e.offset;if(I+A<=U){ee.top=I;let b=0;J[1]==="start"?b=j.x:J[1]==="end"?b=j.x+Q-E:b=j.x+Q/2-E/2;const z=q-b-E;z<0?(b+=z,h.value=-z):h.value=0,ee.left=b<0?0:b;break}}else if(V==="left"){const I=j.x-E-e.arrowSize-e.offset;if(I>=0){ee.left=I;let b=0;J[1]==="start"?b=j.y:J[1]==="end"?b=j.y+B-A:b=j.y+B/2-A/2,ee.top=b<0?0:b;break}}else if(V==="right"){const I=j.x+Q+e.arrowSize+e.offset;if(I+E<=q){ee.left=I;let b=0;J[1]==="start"?b=j.y:J[1]==="end"?b=j.y+B-A:b=j.y+B/2-A/2,ee.top=b<0?0:b;break}}}return{bestPlacement:C.join("-"),bestInsetRect:ee}},d=(p,j,Q=10)=>{if(!rt||j===!1||!p)return;n.value=pl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const B=s.value.offsetHeight,E=s.value.offsetWidth,{bestPlacement:A,bestInsetRect:q}=c(e.placement,n.value,r.value,a.value,E,B);i.value=A,o.value=q,u.value=!0},h=l.ref(0),v=lt(()=>{d(e.message,e.visible)},10),y=l.ref(e.visible);l.watch(()=>e.visible,p=>{y.value=p});const g=l.computed(()=>y.value&&f.value),f=l.ref(!0),m=lt(p=>{const j=p[0];j&&(f.value=j.isIntersecting)},10),F=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([p,j])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Ot.watch(e.reference,v),F.observe(e.reference)}),l.onBeforeUnmount(()=>{Ot.unwatch(e.reference,v),F.unobserve(e.reference),F.disconnect()});const S=l.computed(()=>{const p={[Ln]:!0};return i.value.startsWith("top")?p["is-top"]=!0:i.value.startsWith("right")?p["is-right"]=!0:i.value.startsWith("bottom")?p["is-bottom"]=!0:i.value.startsWith("right")&&(p["is-right"]=!0),e.size==="small"?p["is-small"]=!0:e.size==="large"&&(p["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(p[`${e.customClass}`]=!0),p}),w=l.computed(()=>{const p={};o.value.top!==null&&(p.top=`${o.value.top}px`),o.value.right!==null&&(p.right=`${o.value.right}px`),o.value.bottom!==null&&(p.bottom=`${o.value.bottom}px`),o.value.left!==null&&(p.left=`${o.value.left}px`),e.autoFit&&(p["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return p["max-width"]=`${j}px`,u.value&&(p.opacity="1"),e.transition||(p.transition="none"),e.zIndex&&(p["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(p,e.customStyle),p}),O=l.computed(()=>{const p=[`${Ln}__content`];return e.customTextClass&&p.push(e.customTextClass),p}),L=l.computed(()=>{const p={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(p,e.customTextStyle),p}),R=l.computed(()=>({[`${Ln}__arrow`]:!0})),D=l.computed(()=>{const p={};return e.showArrow?(p.width=`${e.arrowSize}px`,p.height=`${e.arrowSize}px`,i.value==="top"?(p.left="50%",p.bottom=`-${e.arrowSize}px`,p.transform=" translate(-50%, 0%)"):i.value==="top-start"?(p.left=`${e.arrowOffset+h.value}px`,p.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(p.right=`${e.arrowOffset-h.value}px`,p.bottom=`-${e.arrowSize}px`):i.value==="right"?(p.left=`-${e.arrowSize}px`,p.top="50%",p.transform=" translate(0%, -50%)"):i.value==="right-start"?(p.left=`-${e.arrowSize}px`,p.top=`${e.arrowOffset}px`):i.value==="right-end"?(p.left=`-${e.arrowSize}px`,p.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(p.left="50%",p.top=`-${e.arrowSize}px`,p.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(p.left=`${e.arrowOffset+h.value}px`,p.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(p.right=`${e.arrowOffset-h.value}px`,p.top=`-${e.arrowSize}px`):i.value==="left"?(p.right=`-${e.arrowSize}px`,p.top="50%",p.transform=" translate(0%, -50%)"):i.value==="left-start"?(p.right=`-${e.arrowSize}px`,p.top=`${e.arrowOffset}px`):i.value==="left-end"&&(p.right=`-${e.arrowSize}px`,p.bottom=`-${e.arrowOffset}px`),p):{display:"none"}}),_=l.computed(()=>g.value&&e.closeOnClick),T=l.computed(()=>{const p={};return e.zIndex&&(p["z-index"]=`${e.zIndex}`),p});return{show:g,tipRef:s,classes:S,styles:w,textClasses:O,textStyles:L,arrowClasses:R,arrowStyles:D,overlayShow:_,overlayStyle:T,onClickOverlay:()=>{y.value=!1,t.emit("update:visible",!1)}}}}),_i=["innerHTML"];function qi(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,_i))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=Ye(Bi,[["render",qi]]);class Yr{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 ll={},ji=new Yr,bt=new Map,sn=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()}},zi=e=>{e.unmount=sn;const t=document.getElementById(e.id);if(t){const o=bt.get(e.id);o?e={...ll,...o,...e}:e={...ll,...e},e.transition=!1;const n=l.createVNode(Mt,e);l.render(n,t)}return e.id},Hi=e=>{e.unmount=sn;let t=e.id??`hinttext_${ji.get()}`;e={...ll,...e},e.id=t,bt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Mt,e);return l.render(n,o),document.body.appendChild(o),t},Ki=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Ki(t);const r=o.id;return r&&bt.has(r)?zi({...o,message:t,reference:e}):(n&&sn(),Hi({...o,message:t,reference:e}))},hide(e){sn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Wi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Ce,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ne({componentName:e,validate:!1},i);const u=at(),s=xn();wn(!1);const c=l.computed(()=>s&&u?Sn(u,!1).value:null),d=e,h=l.ref(null),v=l.computed(()=>{const P={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(P[r.errorMarkClass]=!!A.value,P[r.warnMarkClass]=!!B.value,P[r.infoMarkClass]=!!j.value,typeof h.value=="function"){const H=h.value(i);P[H]=!0}else if(typeof h.value=="string"){const H=h.value;P[H]=!0}return P}),y=l.ref(null),g=l.computed(()=>{const P={};if(r.width)r.width!=="auto"&&(P.width=Pe(r.width));else{const H=s&&u?Tn(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const G=Cn(H,c.value,r.span,r.offset);Object.assign(P,G)}else if(c.value.type==="flow"){const G=$n(H,c.value,r.span,r.offset,r.width);Object.assign(P,G)}}}if(typeof y.value=="function"){const H=y.value(i);H&&Object.assign(P,H)}else if(y.value&&typeof y.value=="object"){const H=y.value;Object.assign(P,H)}return P}),f=l.ref(null),m=l.computed({get:()=>f.value??ue(r.isRequired),set:P=>{f.value=P}}),F=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",S=Fe(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),w=l.computed(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),O=l.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${w.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${w.value}`]:!0})),R=Fe(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),D=l.computed(()=>R&&R.value?{width:Pe(R.value)}:{}),_=l.computed(()=>({"label--string":!0,"label--required":m.value})),T=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),p=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(P){m.value=P},setErrorTip(P){p.errorTip=P},setErrorIcon(P){p.errorIcon=P},setWarnTip(P){p.warnTip=P},setWarnIcon(P){p.warnIcon=P},setInfoTip(P){p.infoTip=P},setInfoIcon(P){p.infoIcon=P},setCustomClassName(P){h.value=P},setCustomStyle(P){y.value=P}});const j=l.computed(()=>r.infoTip||p.infoTip),Q=l.computed(()=>r.infoIcon||p.infoIcon),B=l.computed(()=>r.warnTip||p.warnTip),E=l.computed(()=>r.warnIcon||p.warnIcon),A=l.computed(()=>r.errorTip||p.errorTip),q=l.computed(()=>r.errorIcon||p.errorIcon),U=l.computed(()=>A.value?"error":B.value?"warn":j.value?"info":""),J=()=>U.value.length>0,M=l.computed(()=>U.value==="error"?A.value:U.value==="warn"?B.value:U.value==="info"?j.value:""),ee=l.computed(()=>U.value==="error"?q.value:U.value==="warn"?E.value:U.value==="info"?Q.value:null),C=l.computed(()=>{const P={[`${d}__tip`]:!0,[`${d}__tip--${U.value}`]:!0,[`${d}--animate`]:!0};return U.value==="error"&&r.errorClass?P[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?P[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(P[`${r.infoClass}`]=!0),P}),$=l.computed(()=>{const P={};return S&&S.value==="top"||!F()?P["padding-left"]="0px":R&&R.value&&(P["padding-left"]=Pe(R.value)),P}),V=l.ref();let I="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([P,H,G,le])=>{V.value&&(P&&!de(H)?I?o.show(V.value,H,{...le,id:I,type:G},!0):I=o.show(V.value,H,{...le,type:G},!0):o.hide(I))});let b=null;const z=()=>{b||!V.value||(b=new IntersectionObserver(P=>{let H=!1;for(let G of P)if(G.intersectionRatio>0){H=!0,H&&a.emit("appear",G);break}H||a.emit("disappear")}),b.observe(V.value))},X=()=>{!b||!V.value||(b.unobserve(V.value),b=null)};l.watch(()=>ue(r.appearListen),P=>{P?z():X()}),l.onMounted(()=>{ue(r.appearListen)&&z()}),l.onUnmounted(X);const ne=()=>{if(!F())return null;const P=[],H=a.slots?.label?.()??r.label,G={class:_.value},le=l.h("div",G,[H]);if(P.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();P.push(ce)}const se={class:L.value,style:D.value};return l.h("div",se,P)},Y=()=>{const P=[];if(a.slots.prepend){const G=a.slots.prepend();P.push(G)}if(a.slots.default){const G=a.slots.default();P.push(G)}if(a.slots.append){const G=a.slots.append();P.push(G)}if(a.slots.fixedTip){const G={class:[`${d}__fixed-tip`]},le=l.h("div",G,[a.slots.fixedTip()]);P.push(le)}const H={ref:V,class:T.value,style:k.value};return l.h("div",H,P)},W=()=>{const P=ee.value;return P?typeof P=="function"?l.h("div",{class:"fox-item__tip--icon"},[P()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(P)]):null},N=()=>{const P=M.value;return P?typeof P=="function"?l.h("div",{class:"fox-item__tip--text"},[P()]):l.h("div",{class:"fox-item__tip--text"},[P]):null},K=()=>{if(!J())return null;const P=[],H=W();H&&P.push(H);const G=N();G&&P.push(G);const le={class:C.value,style:$.value};return l.h("div",le,P)},Z=()=>a.slots?.hide?.()??null;return()=>{const P=[],H=[],G=ne();G&&H.push(G);const le=Y();le&&H.push(le);const se={class:O.value},ce=l.h("div",se,H);P.push(ce);const ge=K();ge&&P.push(ge);const ve=Z();ve&&P.push(ve);const Se={class:v.value,style:g.value,prop:r.prop};return l.h("div",Se,P)}}}}const{componentName:Yi,create:Ui,scope:Gi}=ae("item"),Ee=Ui(Wi(Yi,Gi,Re,!1));function Xi(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=at(),a=xn();wn(!1);const i=l.computed(()=>a&&r?Sn(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=Pe(o.width));else{const h=a&&r?Tn(r,!1):null;if(i.value&&h)if(i.value.type==="grid"){const v=Cn(h,i.value,o.span,o.offset);Object.assign(d,v)}else if(i.value.type==="flow"){const v=$n(h,i.value,o.span,o.offset,o.width);Object.assign(d,v)}else return o.width&&(d.width=Pe(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:Zi,create:Ji,scope:km}=ae("slot-item"),yl=Ji(Xi(Zi));function Qi(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=at(),u=xn();wn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=Sn(i,!1),h=Tn(i,!1);if(d.value&&h)if(d.value.type==="grid"){const v=Cn(h,d.value,o.span,o.offset);Object.assign(c,v)}else if(d.value.type==="flow"){const v=$n(h,d.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Pe(o.width))}else o.width&&(c.width=Pe(o.width));return c});return()=>{const c=[];if(n.slots.default){const h=n.slots.default();if(o.divide)for(let v=0;v<h.length;v++){if(v>0){const y=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(y)}c.push(h[v])}else Reflect.apply([].push,c,h)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:es,create:ts,scope:Pm}=ae("row-item"),bl=ts(Qi(es)),Xe=(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},ho={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 ns(e,t,o){return{props:{...Ce,...Ve,...ho},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),h=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),g=e,f=l.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value,[`${g}__readonly`]:s.value})),m=E=>{y.value=E,c("update:modelValue",E),c("input",E)},F=E=>{c("change",E)};let S=he(n,"hintText"),w=l.ref(!1);const O=E=>{let q=E.target.value;v.value=!0,de(S.value)||(w.value=!0),c("focus",q,E)},L=E=>{setTimeout(()=>{w.value&&(w.value=!1),v.value=!1},0);let q=E.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),c("blur",q,E)},R=()=>{c("clear","")},D=l.ref(!1);let _=null;const T=()=>{n.showTooltip&&D.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{D.value=!0},150))},k=()=>{_&&(clearTimeout(_),D.value=!1,_=null)},p=l.computed(()=>D.value||w.value),j=l.computed(()=>D.value?y.value:S.value),Q=l.computed(()=>At(n.unit)>0),B=l.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const A={...Xe(r.attrs),ref:B,class:f.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onChange:F,onInput:m,onFocus:O,onBlur:L,onMouseover:T,onMouseleave:k},q={};r.slots.prepend&&(q.prepend=r.slots.prepend),r.slots.append&&(q.append=r.slots.append),r.slots.prefix&&(q.prefix=r.slots.prefix),r.slots.suffix?q.suffix=r.slots.suffix:Q.value&&(q.suffix=()=>[n.unit]);const U=[],J=l.h(x.ElInput,A,q);U.push(J);const M={default:()=>U};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const C={...Oe(n,ho),hintText:j.value,hintVisible:p.value};return n.prop&&(C.prop=`${n.prop}_item`),l.h(o,C,M)}}}}const{componentName:ls,create:os,scope:rs}=ae("input-item"),xl=os(ns(ls,rs,Ee));function nt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ur(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function as(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let is=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`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ss(){const e=l.getCurrentInstance();return new is(e.proxy)}function Gr(e,t,o){const n=nt(e,t),r=nt(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function Xr(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=Ur(e,i);if(Array.isArray(u)&&u.length>0){const s=Xr(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=nt(e,i)===a;else if(o==="item")s=Gr(e,i,a);else{let c=Dt(e,i);c==null&&(c=nt(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function us(e){return{text:e,value:e}}const mo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function cs(e,t,o){return{props:{...Ce,...Ve,...mo},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),h=d(n,["placeholder"]),v=l.ref(null),y=l.ref([]),g=l.computed(()=>y.value?y.value.map(K=>nt(n,K)).join(" "):""),f=(N,K,Z,P=!0)=>{const H=Xr(n,N,K,Z);if(H===null){if(y.value===null||y.value.length===0)return;v.value=null,y.value=[],P&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let G=!0;if(H.length!==y.value.length)G=!1;else for(let le=0;le<H.length;le++){const se=H[le],ce=y.value[le];if(!Gr(n,se,ce)){G=!1;break}}if(!G){y.value=H;let le=[],se=[],ce=[];H.forEach(it=>{const ze=Dt(n,it),st=nt(n,it);le.push(ze),ce.push(st),n.valueType==="text"?se.push(st):n.valueType==="item"?se.push(it):se.push(ze)});let ge,ve,Se;ue(n.multiple)?(v.value=le,ge=l.toRaw(se),ve=ce,Se=l.toRaw(H)):(v.value=le[0]??"",ge=l.toRaw(se[0]??""),ve=ce[0]??"",Se=l.toRaw(H[0])),P&&(c("update:modelValue",ge),c("change",ge,Se)),c("update:text",ve)}},m=l.ref(null),F=l.ref(null),S=l.computed(()=>F.value??m.value??[]),w=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,N=>ue(N)),O=ss(),L=async(N,K)=>{if(N){const Z=await O.load("select",N,K);if(Z.length>0)if(typeof Z[0]=="string"){let G=Z.map(le=>us(le));m.value=G}else m.value=Z;else m.value=null}};l.watch([()=>n.source,()=>n.params],([N,K])=>{F.value=null,L(N,K)},{immediate:!w.value});let R=!1;const D=()=>{R||(R=!0,L(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([N,K])=>{if(p()&&ue(n.multiple)){Je(K,v.value)||(v.value=K);return}f(K,n.valueType,S.value,!1),c("setValue",K)});let _=null,T=l.ref(!1);typeof n.remoteMethod=="function"&&(_=async N=>{if(N==null){F.value=null;return}T.value=!0;try{const K=await n.remoteMethod(N);K&&(F.value=K)}catch(K){F.value=null,console.error(K)}T.value=!1});let k=null;typeof n.filterMethod=="function"&&(k=async N=>{if(N==null){F.value=null;return}T.value=!0;try{const K=await n.filterMethod(N,m.value);K&&(F.value=K)}catch(K){F.value=null,console.error(K)}T.value=!1});const p=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",j=l.ref(!1),Q=e,B=l.computed(()=>({[Q]:!0})),E=N=>{n.allowCreate||p()&&ue(n.multiple)?(c("update:modelValue",N),c("change",N),c("update:text",N),v.value=N):f(N,"value",S.value,!0)};let A=he(n,"hintText"),q=l.ref(!1);const U=N=>{let Z=N.target.value;j.value=!0,de(A.value)||(q.value=!0),c("focus",Z,N)},J=N=>{setTimeout(()=>{q.value&&(q.value=!1),j.value=!1},0);let Z=N.target.value;n.maxLength&&Z.length>Number(n.maxLength)&&(Z=Z.slice(0,Number(n.maxLength))),z.value||c("blur",Z,N)},M=()=>{c("clear","")},ee=l.ref(!1);let C=null;const $=()=>{n.showTooltip&&ee.value===!1&&(C&&clearTimeout(C),C=setTimeout(()=>{ee.value=!0},150))},V=()=>{C&&(clearTimeout(C),ee.value=!1,C=null)},I=l.computed(()=>ee.value||q.value),b=l.computed(()=>ee.value?g.value:A.value),z=l.ref(!1),X=N=>{z.value=N,c("visible-change",N),N||c("selected")},ne=N=>{c("remove-tag",N)},Y=(N,K)=>{const Z=[];return N.forEach((P,H)=>{const G=Ur(n,P);if(Array.isArray(G)&&G.length>0){const le=Y(G,K),se=nt(n,P),ge={key:`${se}_${H}`,label:se};Z.push(l.h(x.ElOptionGroup,ge,{default:()=>le}))}else{const le=Dt(n,P),se=nt(n,P),ce=as(n,P),ve={key:`${le}_${H}`,label:se,disabled:ce,value:le};if(typeof K=="function")Z.push(l.h(x.ElOption,ve,{default:()=>K(P)}));else if(n.optionType==="item"){const Se={class:{"fox-select-item__option-left":!0}},it=l.h("span",Se,[le]),ze={class:{"fox-select-item__option-right":!0}},st=l.h("span",ze,[se]),In=l.h("div",{class:{"fox-select-item__option":!0}},[it,st]);Z.push(l.h(x.ElOption,ve,{default:()=>In}))}else n.optionType==="value"?Z.push(l.h(x.ElOption,ve,{default:()=>[le]})):Z.push(l.h(x.ElOption,ve))}}),Z},W=l.ref();return we({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const K={...Xe(r.attrs),ref:W,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:h.placeholder.value,disabled:i.value||s.value,modelValue:v.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:M,onChange:E,onFocus:U,onBlur:J,onVisibleChange:X,onRemoveTag:ne};typeof _=="function"&&(K["remote-method"]=_,K.loading=T.value),typeof k=="function"&&(K["filter-method"]=k,K.loading=T.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=()=>Y(S.value,r.slots.option);const P=[],H=l.h(x.ElSelect,K,Z);P.push(H);const G={default:()=>P};G.label=r.slots.default,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const se={...Oe(n,mo),hintText:b.value,hintVisible:I.value,onMouseover:$,onMouseleave:V};return n.prop&&(se.prop=`${n.prop}_item`),w.value&&(se["appear-listen"]=!0,se.onAppear=D),l.h(o,se,G)}}}}const{componentName:fs,create:ds,scope:hs}=ae("select-item"),wl=ds(cs(fs,hs,Ee));function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt={exports:{}},ms=Wt.exports,go;function gs(){return go||(go=1,function(e,t){(function(o,n){e.exports=n()})(ms,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",h="month",v="quarter",y="year",g="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={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 E=["th","st","nd","rd"],A=B%100;return"["+B+(E[(A-20)%10]||E[A]||E[0])+"]"}},w=function(B,E,A){var q=String(B);return!q||q.length>=E?B:""+Array(E+1-q.length).join(A)+B},O={s:w,z:function(B){var E=-B.utcOffset(),A=Math.abs(E),q=Math.floor(A/60),U=A%60;return(E<=0?"+":"-")+w(q,2,"0")+":"+w(U,2,"0")},m:function B(E,A){if(E.date()<A.date())return-B(A,E);var q=12*(A.year()-E.year())+(A.month()-E.month()),U=E.clone().add(q,h),J=A-U<0,M=E.clone().add(q+(J?-1:1),h);return+(-(q+(A-U)/(J?U-M:M-U))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:h,y,w:d,d:c,D:g,h:s,m:u,s:i,ms:a,Q:v}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},L="en",R={};R[L]=S;var D="$isDayjsObject",_=function(B){return B instanceof j||!(!B||!B[D])},T=function B(E,A,q){var U;if(!E)return L;if(typeof E=="string"){var J=E.toLowerCase();R[J]&&(U=J),A&&(R[J]=A,U=J);var M=E.split("-");if(!U&&M.length>1)return B(M[0])}else{var ee=E.name;R[ee]=E,U=ee}return!q&&U&&(L=U),U||!q&&L},k=function(B,E){if(_(B))return B.clone();var A=typeof E=="object"?E:{};return A.date=B,A.args=arguments,new j(A)},p=O;p.l=T,p.i=_,p.w=function(B,E){return k(B,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var j=function(){function B(A){this.$L=T(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[D]=!0}var E=B.prototype;return E.parse=function(A){this.$d=function(q){var U=q.date,J=q.utc;if(U===null)return new Date(NaN);if(p.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var M=U.match(m);if(M){var ee=M[2]-1||0,C=(M[7]||"0").substring(0,3);return J?new Date(Date.UTC(M[1],ee,M[3]||1,M[4]||0,M[5]||0,M[6]||0,C)):new Date(M[1],ee,M[3]||1,M[4]||0,M[5]||0,M[6]||0,C)}}return new Date(U)}(A),this.init()},E.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},E.$utils=function(){return p},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(A,q){var U=k(A);return this.startOf(q)<=U&&U<=this.endOf(q)},E.isAfter=function(A,q){return k(A)<this.startOf(q)},E.isBefore=function(A,q){return this.endOf(q)<k(A)},E.$g=function(A,q,U){return p.u(A)?this[q]:this.set(U,A)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(A,q){var U=this,J=!!p.u(q)||q,M=p.p(A),ee=function(ne,Y){var W=p.w(U.$u?Date.UTC(U.$y,Y,ne):new Date(U.$y,Y,ne),U);return J?W:W.endOf(c)},C=function(ne,Y){return p.w(U.toDate()[ne].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Y)),U)},$=this.$W,V=this.$M,I=this.$D,b="set"+(this.$u?"UTC":"");switch(M){case y:return J?ee(1,0):ee(31,11);case h:return J?ee(1,V):ee(0,V+1);case d:var z=this.$locale().weekStart||0,X=($<z?$+7:$)-z;return ee(J?I-X:I+(6-X),V);case c:case g:return C(b+"Hours",0);case s:return C(b+"Minutes",1);case u:return C(b+"Seconds",2);case i:return C(b+"Milliseconds",3);default:return this.clone()}},E.endOf=function(A){return this.startOf(A,!1)},E.$set=function(A,q){var U,J=p.p(A),M="set"+(this.$u?"UTC":""),ee=(U={},U[c]=M+"Date",U[g]=M+"Date",U[h]=M+"Month",U[y]=M+"FullYear",U[s]=M+"Hours",U[u]=M+"Minutes",U[i]=M+"Seconds",U[a]=M+"Milliseconds",U)[J],C=J===c?this.$D+(q-this.$W):q;if(J===h||J===y){var $=this.clone().set(g,1);$.$d[ee](C),$.init(),this.$d=$.set(g,Math.min(this.$D,$.daysInMonth())).$d}else ee&&this.$d[ee](C);return this.init(),this},E.set=function(A,q){return this.clone().$set(A,q)},E.get=function(A){return this[p.p(A)]()},E.add=function(A,q){var U,J=this;A=Number(A);var M=p.p(q),ee=function(V){var I=k(J);return p.w(I.date(I.date()+Math.round(V*A)),J)};if(M===h)return this.set(h,this.$M+A);if(M===y)return this.set(y,this.$y+A);if(M===c)return ee(1);if(M===d)return ee(7);var C=(U={},U[u]=n,U[s]=r,U[i]=o,U)[M]||1,$=this.$d.getTime()+A*C;return p.w($,this)},E.subtract=function(A,q){return this.add(-1*A,q)},E.format=function(A){var q=this,U=this.$locale();if(!this.isValid())return U.invalidDate||f;var J=A||"YYYY-MM-DDTHH:mm:ssZ",M=p.z(this),ee=this.$H,C=this.$m,$=this.$M,V=U.weekdays,I=U.months,b=U.meridiem,z=function(Y,W,N,K){return Y&&(Y[W]||Y(q,J))||N[W].slice(0,K)},X=function(Y){return p.s(ee%12||12,Y,"0")},ne=b||function(Y,W,N){var K=Y<12?"AM":"PM";return N?K.toLowerCase():K};return J.replace(F,function(Y,W){return W||function(N){switch(N){case"YY":return String(q.$y).slice(-2);case"YYYY":return p.s(q.$y,4,"0");case"M":return $+1;case"MM":return p.s($+1,2,"0");case"MMM":return z(U.monthsShort,$,I,3);case"MMMM":return z(I,$);case"D":return q.$D;case"DD":return p.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return z(U.weekdaysMin,q.$W,V,2);case"ddd":return z(U.weekdaysShort,q.$W,V,3);case"dddd":return V[q.$W];case"H":return String(ee);case"HH":return p.s(ee,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return ne(ee,C,!0);case"A":return ne(ee,C,!1);case"m":return String(C);case"mm":return p.s(C,2,"0");case"s":return String(q.$s);case"ss":return p.s(q.$s,2,"0");case"SSS":return p.s(q.$ms,3,"0");case"Z":return M}return null}(Y)||M.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(A,q,U){var J,M=this,ee=p.p(q),C=k(A),$=(C.utcOffset()-this.utcOffset())*n,V=this-C,I=function(){return p.m(M,C)};switch(ee){case y:J=I()/12;break;case h:J=I();break;case v:J=I()/3;break;case d:J=(V-$)/6048e5;break;case c:J=(V-$)/864e5;break;case s:J=V/r;break;case u:J=V/n;break;case i:J=V/o;break;default:J=V}return U?J:p.a(J)},E.daysInMonth=function(){return this.endOf(h).$D},E.$locale=function(){return R[this.$L]},E.locale=function(A,q){if(!A)return this.$L;var U=this.clone(),J=T(A,q,!0);return J&&(U.$L=J),U},E.clone=function(){return p.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},B}(),Q=j.prototype;return k.prototype=Q,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",h],["$y",y],["$D",g]].forEach(function(B){Q[B[1]]=function(E){return this.$g(E,B[0],B[1])}}),k.extend=function(B,E){return B.$i||(B(E,j,k),B.$i=!0),k},k.locale=T,k.isDayjs=_,k.unix=function(B){return k(1e3*B)},k.en=R[L],k.Ls=R,k.p={},k})}(Wt)),Wt.exports}var vs=gs();const Ge=et(vs);var Yt={exports:{}},ps=Yt.exports,vo;function ys(){return vo||(vo=1,function(e,t){(function(o,n){e.exports=n()})(ps,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(m){this[f]=+m}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var F=m.match(/([+-]|\d\d)/g),S=60*F[1]+(+F[2]||0);return S===0?0:F[0]==="+"?-S:S}(f)}],h=function(f){var m=u[f];return m&&(m.indexOf?m:m.s.concat(m.f))},v=function(f,m){var F,S=u.meridiem;if(S){for(var w=1;w<=24;w+=1)if(f.indexOf(S(w,0,m))>-1){F=w>12;break}}else F=f===(m?"pm":"PM");return F},y={A:[i,function(f){this.afternoon=v(f,!1)}],a:[i,function(f){this.afternoon=v(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 m=u.ordinal,F=f.match(/\d+/);if(this.day=F[0],m)for(var S=1;S<=31;S+=1)m(S).replace(/\[|\]/g,"")===f&&(this.day=S)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var m=h("months"),F=(h("monthsShort")||m.map(function(S){return S.slice(0,3)})).indexOf(f)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[i,function(f){var m=h("months").indexOf(f)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(f){var m,F;m=f,F=u&&u.formats;for(var S=(f=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,k,p){var j=p&&p.toUpperCase();return k||F[p]||o[p]||F[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Q,B,E){return B||E.slice(1)})})).match(n),w=S.length,O=0;O<w;O+=1){var L=S[O],R=y[L],D=R&&R[0],_=R&&R[1];S[O]=_?{regex:D,parser:_}:L.replace(/^\[|\]$/g,"")}return function(T){for(var k={},p=0,j=0;p<w;p+=1){var Q=S[p];if(typeof Q=="string")j+=Q.length;else{var B=Q.regex,E=Q.parser,A=T.slice(j),q=B.exec(A)[0];E.call(k,q),T=T.replace(q,"")}}return function(U){var J=U.afternoon;if(J!==void 0){var M=U.hours;J?M<12&&(U.hours+=12):M===12&&(U.hours=0),delete U.afternoon}}(k),k}}return function(f,m,F){F.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var S=m.prototype,w=S.parse;S.parse=function(O){var L=O.date,R=O.utc,D=O.args;this.$u=R;var _=D[1];if(typeof _=="string"){var T=D[2]===!0,k=D[3]===!0,p=T||k,j=D[2];k&&(j=D[2]),u=this.$locale(),!T&&j&&(u=F.Ls[j]),this.$d=function(A,q,U){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*A);var J=g(q)(A),M=J.year,ee=J.month,C=J.day,$=J.hours,V=J.minutes,I=J.seconds,b=J.milliseconds,z=J.zone,X=new Date,ne=C||(M||ee?1:X.getDate()),Y=M||X.getFullYear(),W=0;M&&!ee||(W=ee>0?ee-1:X.getMonth());var N=$||0,K=V||0,Z=I||0,P=b||0;return z?new Date(Date.UTC(Y,W,ne,N,K,Z,P+60*z.offset*1e3)):U?new Date(Date.UTC(Y,W,ne,N,K,Z,P)):new Date(Y,W,ne,N,K,Z,P)}catch{return new Date("")}}(L,_,R),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),p&&L!=this.format(_)&&(this.$d=new Date("")),u={}}else if(_ instanceof Array)for(var Q=_.length,B=1;B<=Q;B+=1){D[1]=_[B-1];var E=F.apply(this,D);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}B===Q&&(this.$d=new Date(""))}else w.call(this,O)}}})}(Yt)),Yt.exports}var bs=ys();const xs=et(bs);var Ut={exports:{}},ws=Ut.exports,po;function Ss(){return po||(po=1,function(e,t){(function(o,n){e.exports=n()})(ws,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(h){switch(h){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(),h==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),h==="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 h}});return a.bind(this)(d)}}})}(Ut)),Ut.exports}var Ts=Ss();const $s=et(Ts);var Gt={exports:{}},Cs=Gt.exports,yo;function Es(){return yo||(yo=1,function(e,t){(function(o,n){e.exports=n()})(Cs,function(){return function(o,n,r){var a=n.prototype,i=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,v,y,g,f){var m=h.name?h:h.$locale(),F=i(m[v]),S=i(m[y]),w=F||S.map(function(L){return L.slice(0,g)});if(!f)return w;var O=m.weekStart;return w.map(function(L,R){return w[(R+(O||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(h,v){return h.formats[v]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,f,m){return f||m.slice(1)})}(h.formats[v.toUpperCase()])},d=function(){var h=this;return{months:function(v){return v?v.format("MMMM"):u(h,"months")},monthsShort:function(v){return v?v.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(h,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(h.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var h=s();return{firstDayOfWeek:function(){return h.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(v){return c(h,v)},meridiem:h.meridiem,ordinal:h.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(h){return u(s(),"weekdays",null,null,h)},r.weekdaysShort=function(h){return u(s(),"weekdaysShort","weekdays",3,h)},r.weekdaysMin=function(h){return u(s(),"weekdaysMin","weekdays",2,h)}}})}(Gt)),Gt.exports}var Ns=Es();const ks=et(Ns);var Xt={exports:{}},Ps=Xt.exports,bo;function Is(){return bo||(bo=1,function(e,t){(function(o,n){e.exports=n()})(Ps,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),h=i(this).endOf(o);if(d.isBefore(h))return 1}var v=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(v,o,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(Xt)),Xt.exports}var Os=Is();const Vs=et(Os);var Zt={exports:{}},Ds=Zt.exports,xo;function Rs(){return xo||(xo=1,function(e,t){(function(o,n){e.exports=n()})(Ds,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}}})}(Zt)),Zt.exports}var Fs=Rs();const As=et(Fs);var Jt={exports:{}},Ms=Jt.exports,wo;function Ls(){return wo||(wo=1,function(e,t){(function(o,n){e.exports=n()})(Ms,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")}}})}(Jt)),Jt.exports}var Bs=Ls();const _s=et(Bs);var Qt={exports:{}},qs=Qt.exports,So;function js(){return So||(So=1,function(e,t){(function(o,n){e.exports=n()})(qs,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Qt)),Qt.exports}var zs=js();const Hs=et(zs);var en={exports:{}},Ks=en.exports,To;function Ws(){return To||(To=1,function(e,t){(function(o,n){e.exports=n()})(Ks,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(en)),en.exports}var Ys=Ws();const Us=et(Ys);Ge.extend(ks);Ge.extend($s);Ge.extend(xs);Ge.extend(Vs);Ge.extend(As);Ge.extend(_s);Ge.extend(Hs);Ge.extend(Us);const Be={format(e,t){return Ge(e).format(t)},parser(e,t){return Ge(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)),h=this.date2Str(new Date(c));return[d,h]}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)),h=this.date2Str(new Date(c));return[d,h]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.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}},$o={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"}},Co={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 Gs(e,t,o){return{props:{...Ce,...Ve,...$o,...Co},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),h=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),g=l.computed(()=>q.value&&Array.isArray(y.value)&&y.value.length==2?y.value[0]:y.value),f=l.computed(()=>q.value?"longTermKey":"normalKey"),m=W=>{if(q.value&&n.type==="daterange"){const N=[...y.value];N[0]=W,y.value=N}else y.value=W;c("update:modelValue",y.value),c("change",y.value)},F=l.computed(()=>q.value&&n.type==="daterange"?"date":n.type),S=e,w=l.computed(()=>({[`${S}`]:!0,"is-long":q.value,"is-readonly":s.value,"is-disabled":i.value}));let O=he(n,"hintText"),L=l.ref(!1);const R=W=>{let K=W.target.value;v.value=!0,de(O.value)||(L.value=!0),c("focus",K,W)},D=W=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let K=W.target.value;n.maxLength&&K.length>Number(n.maxLength)&&(K=K.slice(0,Number(n.maxLength))),c("blur",K,W)},_=()=>{c("clear","")},T=W=>{c("calendar-change",W)},k=(W,N,K)=>{c("panel-change",W,N,K)},p=W=>{c("visible-change",W)},j=Fe(l.computed(()=>n.longTermText),"longTermText",_e.Near),Q=Fe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),B=Fe(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),E=Fe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let A=null;const q=l.ref(ue(n.longTerm)),U=W=>{if(q.value=W,c("update:longTerm",W),W){if(A=y.value,n.type==="daterange"){const N=[];Array.isArray(B.value)?(N[0]=y.value?y.value[0]??B.value[0]:null,N[1]=B.value[1]??B.value[0]):(N[0]=y.value?y.value[0]??B.value:null,N[1]=q.value),N[0]||(N[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=N}else Array.isArray(B.value)?y.value=B.value[1]??B.value[0]:y.value=B.value,y.value||(y.value=n.valueFormat?Be.format(new Date,n.valueFormat):new Date);c("update:modelValue",y.value)}else{if(n.type==="daterange"){const N=[];N[0]=Array.isArray(y.value)?y.value[0]:y.value,Array.isArray(A)?N[1]=A[1]:N[1]=A,N[0]||(N[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=N}else y.value=A;c("update:modelValue",y.value),setTimeout(()=>{ne()},100)}},J=ue(n.isLongTerm);if(J){const W=()=>{if(q.value===!0){if(A=y.value,n.type==="daterange"){const N=[y.value[0]];Array.isArray(B.value)?N[1]=B.value[1]??B.value[0]:N[1]=q.value,N[0]||(N[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=N}else y.value=B.value;c("update:modelValue",y.value)}else Je(B.value,y.value)&&(q.value=!0)};W(),l.watch([()=>n.longTerm],([N])=>{q.value!==N&&W()}),l.watch([()=>y.value],([N])=>{let K=!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=Be.format(Z,n.valueFormat));let P=Array.isArray(B.value)?B.value[1]:B.value;(Z===P||Array.isArray(E.value)&&E.value.findIndex(G=>Z==G)!==-1)&&(K=!0)}catch(Z){console.error(Z)}q.value!==K&&(q.value=K)},{immediate:!0})}const M=l.computed(()=>({"fox-date-item__long":!0,"is-active":v.value})),ee=l.ref(),C=l.ref(),$=/^\d+$/,V=(W,N)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(W,N):$.test(W)&&W.length===n.flashFillThreshold,I=(W,N)=>{let K;if(typeof n.flashFillFormat=="function")K=n.flashFillFormat(W,N);else{const P=n.flashFillFormat??"YYYYMMDD";K=Be.parser(W,P)}const Z=n.valueFormat??"YYYY-MM-DD";return Be.format(K,Z)},b=W=>W?W.endsWith("range"):!1,z=W=>{if(!W.target)return;const N=W.target.value??"";if(V(N,n.type)){const K=I(N,n.type);if(b(n.type)){const Z=Array.isArray(y.value)?[...y.value]:[];Z[0]=K,m(Z)}else m(K)}},X=W=>{if(!W.target)return;const N=W.target.value??"";if(V(N,n.type)){const K=I(N,n.type);if(b(n.type)){const Z=Array.isArray(y.value)?[...y.value]:[];Z[1]=K,m(Z)}else m(K)}},ne=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(b(n.type)){const W=ee.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",z),W[1]&&W[1].addEventListener("input",X)}else{const W=ee.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",z)}},Y=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(b(n.type)){const W=ee.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",z),W[1]&&W[1].removeEventListener("input",X)}else{const W=ee.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",z)}};return l.onMounted(ne),l.onBeforeUnmount(Y),we({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const N={...r.attrs,key:f.value,type:F.value,ref:C,class:w.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:g.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:_,onFocus:R,onBlur:D,onCalendarChange:T,onPanelChange:k,onVisibleChange:p},K={};r.slots["range-separator"]&&(K["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(K.default=r.slots.cell);const Z=[],P=l.h(x.ElDatePicker,N,K);Z.push(P);const H={default:()=>Z};if(H.label=r.slots.default,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip,J){if(q.value){const ce=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ge=l.h("input",{class:["fox-date-item__long-text"],value:j.value,readonly:!0}),ve={class:M.value},Se=l.h("div",ve,{default:()=>[ce,ge]});Z.push(Se)}if(!s.value&&!i.value){const ce={label:Q.value||j.value,disabled:s.value||i.value,modelValue:q.value,"onUpdate:modelValue":U},ge=l.h(x.ElCheckbox,ce),ve=l.h("div",{class:{[`${S}__append`]:!0}},[ge]);H.append=()=>ve}}const le={...Oe(n,$o,Co),ref:ee,class:{[`${S}__wrapper`]:!0,"has-append":J},hintText:O.value,hintVisible:L.value};return n.prop&&(le.prop=`${n.prop}_item`),l.h(o,le,H)}}}}const{componentName:Xs,create:Zs,scope:Js}=ae("date-item"),Sl=Zs(Gs(Xs,Js,Ee)),Eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,t,o){return{props:{...Ce,...Ve,...Eo},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),h=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),g=e,f=l.computed(()=>({[g]:!0})),m=_=>{y.value=_,c("update:modelValue",_),c("change",_)};let F=he(n,"hintText"),S=l.ref(!1);const w=_=>{let k=_.target.value;v.value=!0,de(F.value)||(S.value=!0),c("focus",k,_)},O=_=>{setTimeout(()=>{S.value&&(S.value=!1),v.value=!1},0);let k=_.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),c("blur",k,_)},L=()=>{c("clear","")},R=_=>{c("visible-change",_)},D=l.ref();return we({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const T={...r.attrs,ref:D,class:f.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":m,onClear:L,onFocus:w,onBlur:O,onVisibleChange:R},k={},p=[],j=l.h(x.ElTimePicker,T,k);p.push(j);const Q={default:()=>p};Q.label=r.slots.default,Q.fixedPreTip=r.slots.fixedPreTip,Q.fixedTip=r.slots.fixedTip;const E={...Oe(n,Eo),hintText:F.value,hintVisible:S.value};return n.prop&&(E.prop=`${n.prop}_item`),l.h(o,E,Q)}}}}const{componentName:eu,create:tu,scope:nu}=ae("time-item"),Tl=tu(Qs(eu,nu,Ee)),No={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function lu(e,t,o){return{props:{...Ce,...Ve,...No},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),h=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),g=e,f=l.computed(()=>({[g]:!0})),m=D=>{y.value=D,c("update:modelValue",D),c("change",D)};let F=he(n,"hintText"),S=l.ref(!1);const w=D=>{let T=D.target.value;v.value=!0,de(F.value)||(S.value=!0),c("focus",T,D)},O=D=>{setTimeout(()=>{S.value&&(S.value=!1),v.value=!1},0);let T=D.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),c("blur",T,D)},L=()=>{c("clear","")},R=l.ref();return we({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()},setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const _={...r.attrs,ref:R,class:f.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":m,onClear:L,onFocus:w,onBlur:O},T={},k=[],p=l.h(x.ElTimeSelect,_,T);k.push(p);const j={default:()=>k};j.label=r.slots.default,j.fixedPreTip=r.slots.fixedPreTip,j.fixedTip=r.slots.fixedTip;const B={...Oe(n,No),hintText:F.value,hintVisible:S.value};return n.prop&&(B.prop=`${n.prop}_item`),l.h(o,B,j)}}}}const{componentName:ou,create:ru,scope:au}=ae("time-select-item"),$l=ru(lu(ou,au,Ee));function ko(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 Po(e,t,o=20){if(typeof t=="string"&&(t=$e(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=mr(`${e}`,`${t}`);return ko(n)}else{let n=al(`${e}`,gr(`${t}`),20);return ko(n)}}function iu(e,t=-1,o=!1,n=3,r=","){return un(e,t,o,n,r)}function Io(e,t,o,n,r=!0){if(e==="")return"";if(e=vr(e),t=$e(t),t==1)return e;if(n)e=Po(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd($e(o)+2,"0"):e=al(e,1,$e(o)));else{let a=-1*t;e=Po(e,a)}return e}function Oo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=Gn(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=Gn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Vo={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 su(e,t,o){return{props:{...Ce,...Ve,...Vo},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),h=he(n,"modelValue",null,c),v=l.ref("");l.watch([()=>h.value,()=>n.rates,()=>n.precision],([E,A,q])=>{if(de(E)){v.value="";return}const U=Io(E,A,q,!1);v.value!==U&&(v.value=U)},{immediate:!0});const y=l.computed(()=>{let E="";return d.value&&(E=v.value),E}),{t:g}=qe.useFoxI18n(t),f=l.computed(()=>{let E=n.placeholder??"";return!d.value&&!de(v.value)?E=iu(v.value,n.decimalLength,n.autoPadding,n.digits,n.separator):E=g(["placeholder",E]),E}),m=e,F=l.computed(()=>({[m]:!0,[`${m}__disabled`]:i.value,[`${m}__placeholder`]:v.value.length>0})),S=Fe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>d.value?{textAlign:"left"}:{textAlign:S.value??"right"});const w=l.ref(""),O=l.computed(()=>{let E=w.value;return de(E)&&(E=n.errorTip??""),E}),L=l.ref(""),R=l.ref(!1),D=(E,A)=>{if(E=`${E}`,de(E)){v.value="",h.value="",A.forEach(q=>{c(q,"")}),ue(n.showTip)&&R.value&&(R.value=!1);return}if(E.length>=2){let q=E;if(q.charAt(0)=="-"&&(q=q.substring(1)),q.length>=2&&q.charAt(0)=="0"&&q.charAt(1)!="."){l.triggerRef(v);return}}if(E!="-"){if(!$r(E)){l.triggerRef(v);return}if(n.integerLength!=-1&&Cr(E)>Number(n.integerLength)){l.triggerRef(v);return}if(n.decimalLength&&n.decimalLength!=-1&&Er(E)>Number(n.decimalLength)){l.triggerRef(v);return}let q=Oo(E,n);if(q.maxValid===!1){w.value=q.message,l.triggerRef(v);return}}else if(n.min!=null&&$e(n.min)>=0){l.triggerRef(v);return}L.value=E,ue(n.showTip)&&(R.value=E.length>0),v.value=E,h.value=Io(E,n.rates,n.precision,!0),A.forEach(q=>{c(q,h.value)})},_=E=>{D(E,["update:modelValue","input"])},T=E=>{D(E,["update:modelValue","change"])},k=E=>{if(d.value=!0,ue(n.showTip)){let A=v.value;de(A)&&(A=n.hintText),de(A)||(L.value=A,R.value=!0)}w.value="",c("focus",h.value,E)},p=E=>{if(setTimeout(()=>{d.value=!1,ue(n.showTip)&&R.value===!0&&(R.value=!1)},0),!de(v.value)){let A=Oo(v.value,n);if(A.minValid===!1||A.maxValid===!1){w.value=A.message;return}}c("update:modelValue",h.value,E),c("blur",h.value,E)},j=()=>{c("clear","")},Q=l.computed(()=>At(n.unit)>0),B=l.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const A={...Xe(r.attrs),ref:B,class:F.value,type:"digit",maxlength:n.maxLength,placeholder:f.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onInput:_,onChange:T,onFocus:k,onBlur:p},q={};r.slots.prepend&&(q.prepend=r.slots.prepend),r.slots.append&&(q.append=r.slots.append),r.slots.prefix&&(q.prefix=r.slots.prefix),r.slots.suffix?q.suffix=r.slots.suffix:Q.value&&(q.suffix=()=>[n.unit]);const U=[],J=l.h(x.ElInput,A,q);U.push(J);const M={default:()=>U};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const C={...Oe(n,Vo),errorTip:O.value,hintText:L.value,hintVisible:R.value,hintType:"number"};return n.prop&&(C.prop=`${n.prop}_item`),l.h(o,C,M)}}}}const{componentName:uu,create:cu,scope:fu}=ae("money-item"),Cl=cu(su(uu,fu,Ee)),Do={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 du(e,t,o){return{props:{...Ce,...Ve,...Do},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),h=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),g=e,f=l.computed(()=>({[g]:!0,[`${g}__append`]:_.value})),m=l.computed(()=>({[`${g}__unit`]:!0})),F=k=>{y.value=k,c("update:modelValue",k),c("input",k)},S=k=>{c("change",k)};let w=he(n,"hintText"),O=l.ref(!1);const L=k=>{let j=k.target.value;v.value=!0,de(w.value)||(O.value=!0),c("focus",j,k)},R=k=>{setTimeout(()=>{O.value&&(O.value=!1),v.value=!1},0);let j=k.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),c("blur",j,k)},D=()=>{c("clear","")},_=l.computed(()=>At(n.unit)>0),T=l.ref();return we({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const p={...Xe(r.attrs),ref:T,class:f.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onChange:S,onInput:F,onFocus:L,onBlur:R},j={},Q=[],B=l.h(x.ElInputNumber,p,j);Q.push(B);const E={default:()=>Q};E.label=r.slots.default,E.fixedPreTip=r.slots.fixedPreTip,E.fixedTip=r.slots.fixedTip;const q={...Oe(n,Do),hintText:w.value,hintVisible:O.value};if(n.prop&&(q.prop=`${n.prop}_item`),r.slots.append)E.append=r.slots.append;else if(_.value){const J={class:m.value},M=l.h("div",J,[n.unit]);E.append=()=>M}return l.h(o,q,E)}}}}const{componentName:hu,create:mu,scope:gu}=ae("input-number-item"),El=mu(du(hu,gu,Ee));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ht(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function vu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let pu=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`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function yu(){const e=l.getCurrentInstance();return new pu(e.proxy)}function ol(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=ht(e,t),i=ht(e,o);return a===i}function Zr(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=Zr(e,u,o,n);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=Ze(e,c)===u;else if(o==="item")s=ol(e,c,u);else{let d=ht(e,c);d==null&&(d=Ze(e,c)),s=d===u}if(s){r.push(c),a=vu(e,c);break}}if(!s)break}}return r}function bu(e){return{text:e,value:e}}const Ro={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function xu(e,t,o){return{props:{...Ce,...Ve,...Ro},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),h=d(n,["placeholder"]),v=l.ref(null),y=l.ref([]),g=l.computed(()=>y.value?y.value.map(W=>Array.isArray(W)?W.map(K=>Ze(n,K)).join(" "):Ze(n,W)).join(" "):""),f=(Y,W,N,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(v.value===Y)return;v.value=Y;const G=l.toRaw(Y);if(K){const le=ne?.value.getCheckedNodes();if(le)if(n.multiple){const se=[];le.forEach(ce=>{const ve=(ce.pathNodes??[]).map(Se=>Se.data);se.push(ve)}),c("update:pathNodes",se)}else{const ce=(le[0]?.pathNodes??[]).map(ge=>ge.data);c("update:pathNodes",ce)}c("update:modelValue",G),c("change",G)}return}const Z=Zr(n,Y,W,N);if(Z===null){if(y.value.length===0||y.value===null)return;y.value=[],v.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const P=Z[Z.length-1];if(j.value.checkStrictly!==!0&&P&&!Array.isArray(P)&&Array.isArray(P.children)&&P.children.length>0){const G=[];Z.forEach(le=>{const se=`${Ze(n,le)}`;G.push(se)}),G.length>0&&(k.value=G.join(n.separator))}else k.value=null;let H=!0;if(Z.length!==y.value.length)H=!1;else for(let G=0;G<Z.length;G++){const le=Z[G],se=y.value[G];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)H=!1;else for(let ce=0;ce<le.length;ce++)if(!ol(n,le[ce],se[ce])){H=!1;break}}else ol(n,le,se)||(H=!1);if(!H)break}if(!H){y.value=Z;let G=[],le=[];Z.forEach(ce=>{if(Array.isArray(ce)){let ge=[],ve=[];for(let Se of ce)ge.push(ht(n,Se)),n.valueType==="text"?ve.push(Ze(n,Se)):n.valueType==="item"?ve.push(Se):ve.push(ht(n,Se));G.push(ge),le.push(ve)}else G.push(ht(n,ce)),n.valueType==="text"?le.push(Ze(n,ce)):n.valueType==="item"?le.push(ce):le.push(ht(n,ce))}),v.value=G;const se=l.toRaw(le);K&&(c("update:pathNodes",Z),c("update:modelValue",se),c("change",se))}},m=l.ref([]),F=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Y=>ue(Y)),S=yu(),w=async(Y,W)=>{if(Y){const N=await S.load("cascader",Y,W);if(N.length>0)if(typeof N[0]=="string"){let P=N.map(H=>bu(H));m.value=P}else m.value=N}};l.watch([()=>n.source,()=>n.params],async([Y,W])=>{w(Y,W)},{immediate:!(F.value||n.lazy)});let O=!1;const L=()=>{O||(O=!0,w(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([Y,W])=>{f(W,n.valueType,Y,!1),c("setValue",W)}),n.lazy&&f(n.modelValue,"value",[],!1);let R=null,D=l.ref(!1);typeof n.remoteMethod=="function"&&(R=async Y=>{if(Y!=null){D.value=!0;try{const W=await n.remoteMethod(Y);m.value=W}catch(W){console.error(W)}D.value=!1}});const _=l.ref(!1),T=e,k=l.ref(null),p=l.computed(()=>({[T]:!0,"is-incomplete":k.value&&k.value.length>0})),j=l.computed(()=>{let Y={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(Y.multiple=!0),n.props&&Object.assign(Y,n.props),n.lazy&&(Y.lazy=!0,typeof n.lazyLoad=="function"?Y.lazyLoad=n.lazyLoad:Y.lazyLoad=async(W,N)=>{const K=await S.load("cascader",n.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===W.level){const Z=W.pathLabels??[];let P=[];Z.forEach(H=>{H&&P.push(H)}),P.length>0&&(k.value=P.join(n.separator))}else k.value=null;N(K)}),Y}),Q=Y=>{n.allowCreate?(c("update:modelValue",Y),c("change",Y),v.value=Y):f(Y,"value",m.value,!0)};let B=he(n,"hintText"),E=l.ref(!1);const A=Y=>{let N=Y.target.value;_.value=!0,de(B.value)||(E.value=!0),c("focus",N,Y)},q=Y=>{setTimeout(()=>{E.value&&(E.value=!1),_.value=!1},0);let N=Y.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),I.value||c("blur",N,Y)},U=()=>{c("clear","")},J=l.ref(!1);let M=null;const ee=()=>{n.showTooltip&&J.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{J.value=!0},150))},C=()=>{M&&(clearTimeout(M),J.value=!1,M=null)},$=l.computed(()=>J.value||E.value),V=l.computed(()=>J.value?g.value:B.value),I=l.ref(!1),b=Y=>{I.value=Y,c("visible-change",Y),Y||c("selected")},z=Y=>{c("remove-tag",Y)},X=Y=>{c("expand-change",Y)},ne=l.ref();return we({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const W={...r.attrs,ref:ne,class:p.value,props:j.value,clearable:n.clearable,placeholder:k.value||h.placeholder.value,disabled:i.value||s.value,options:m.value,modelValue:v.value,separator:n.separator,onClear:U,onChange:Q,onFocus:A,onBlur:q,onVisibleChange:b,onRemoveTag:z,expandChange:X};typeof R=="function"&&(W["remote-method"]=R,W.loading=D.value);const N={};r.slots.option&&(N.default=r.slots.option),r.slots.empty&&(N.empty=r.slots.empty);const K=[],Z=l.h(x.ElCascader,W,N);K.push(Z);const P={default:()=>K};P.label=r.slots.default,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const G={...Oe(n,Ro),hintText:V.value,hintVisible:$.value,onMouseover:ee,onMouseleave:C};return n.prop&&(G.prop=`${n.prop}_item`),F.value&&!n.lazy&&(G["appear-listen"]=!0,G.onAppear=L),l.h(o,G,P)}}}}const{componentName:wu,create:Su,scope:Tu}=ae("cascader-item"),Nl=Su(xu(wu,Tu,Ee)),Fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $u(e,t,o){return{props:{...Ce,...Ve,...Fo},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),h=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),g=e,f=l.computed(()=>({[g]:!0})),m=T=>{y.value=T,c("update:modelValue",T),c("input",T)},F=T=>{c("change",T)},S=T=>{c("select",T)};let w=he(n,"hintText"),O=l.ref(!1);const L=T=>{let p=T.target.value;v.value=!0,de(w.value)||(O.value=!0),c("focus",p,T)},R=T=>{setTimeout(()=>{O.value&&(O.value=!1),v.value=!1},0);let p=T.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),c("blur",p,T)},D=()=>{c("clear","")},_=l.ref();return we({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()},setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const k={...r.attrs,ref:_,class:f.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,onClear:D,onChange:F,onInput:m,onFocus:L,onBlur:R,onSelect:S},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),r.slots.option&&(p.default=r.slots.option);const j=[],Q=l.h(x.ElAutocomplete,k,p);j.push(Q);const B={default:()=>j};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const A={...Oe(n,Fo),hintText:w.value,hintVisible:O.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,B)}}}}const{componentName:Cu,create:Eu,scope:Nu}=ae("autocomplete-item"),kl=Eu($u(Cu,Nu,Ee));function ku(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],h=s.find(v=>v[n]===d);if(!h)break;i.push(h[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 h=c.find(v=>v[n]===d);if(!h)break;i.push(h[o])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],h=s.find(v=>v[n]===d);if(!h)break;i.push(h[o]),s=h[r]}}return i}let Pu=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`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Iu(){const e=l.getCurrentInstance();return new Pu(e.proxy)}const Jr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ou(e,t){return{props:{...Jr},setup(o,{attrs:n,slots:r}){const a=Iu(),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=ku(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{componentName:Dm,create:Vu,scope:Rm}=ae("mapping"),Rt=Vu(Ou());function Du(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 h=a.substring(0,u);n=n[h][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:{...Jr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Du(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(x.ElTableColumn,{...n},a)}}}}const{componentName:Fm,create:Fu,scope:Am}=ae("table-mapping-column"),Pl=Fu(Ru()),Au=Symbol.for("TableStateKey");function Ao(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 h=a.substring(0,u);n=n[h][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 Mu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Au,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Ao(u.row,u.column.property),c=a?Ao(a,u.column.property):null,d=s===c,h={class:{"el-radio__input":!0,"is-checked":d}},v=l.h("span",h,[l.h("span",{class:{"el-radio__inner":!0}})]),y={class:{"el-radio":!0,"is-checked":d}};return l.h("label",y,[v])}};return l.h(x.ElTableColumn,{...n},i)}}}}const{componentName:Mm,create:Lu,scope:Lm}=ae("table-radio-column"),Il=Lu(Mu()),Bu={},_u={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 qu(e,t){return l.openBlock(),l.createElementBlock("svg",_u,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 ju=Ye(Bu,[["render",qu]]),{componentName:Bm,create:zu,scope:_m}=ae("table-setting"),Hu={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:"不固定"}},Ku=zu({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:ju,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Hu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed===""||b.fixed===!0||b.fixed==="left")),i=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed==="right")),u=l.computed(()=>r.value.filter(b=>!(b.label===""||b.type||b.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),h=b=>b.length>1,v=(b,z)=>{Array.isArray(b)&&Array.isArray(z)&&b.forEach(Y=>{z.some(W=>W.prop===Y.prop?(Y.label=W.label,!0):!1)});const X=[];r.value=b.map((Y,W)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&X.push(Y.prop),{...Y,sortIndex:W})),u.value.length+a.value.length+i.value.length===X.length?S.value=!0:X.length>0&&(w.value=!0),R.value=X},y=b=>b?b.type?b.type:b.label?b.prop:"":"",g=(b,z)=>{if(b.length!==z.length)return!1;const X=b.map(ne=>y(ne));for(let ne of z){const Y=y(ne);if(X.indexOf(Y)===-1)return!1}return!0},f=b=>{if(!b){const z=e.tableRef.getColumnSetting(),X=z.srcColumnPropertyList;n=X.map((ne,Y)=>({...ne,sortIndex:Y})),b=z.columnPropertyList,b&&b.length>0&&g(X,b)||(b=X)}v(b,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},F=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),S=l.ref(!1),w=l.ref(!1),O=b=>{const z=[];r.value.forEach(ne=>{b&&!(ne.label===""||ne.type)&&z.push(ne.prop),ne.visible=b}),S.value=!1,w.value=!1,u.value.length+a.value.length+i.value.length===z.length?S.value=!0:z.length>0&&(w.value=!0),R.value=z,m()},L=()=>{f(n),m()},R=l.ref([]),D=b=>{r.value.forEach(X=>{if(X.label===""||X.type)return;const ne=b.indexOf(X.prop)!==-1;X.visible=ne}),S.value=!1,w.value=!1;const z=u.value.length+a.value.length+i.value.length;b.length===z?S.value=!0:b.length>0&&(w.value=!0),m()},_=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const T={currentRow:null,index:null,roleType:null},k=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,k(b)):null:null,p=b=>{const z=b.currentTarget;z&&z.dataset&&(T.roleType=z.dataset.roleType,T.index=z.dataset.index)},j=b=>{T.currentRow&&(T.currentRow.classList.remove("is-dragover"),T.currentRow=null),T.index=null,T.roleType=null},Q=b=>{const z=b.currentTarget;b.relatedTarget;const X=k(z);if(!X)return;const ne=X.dataset&&X.dataset.roleType;T.roleType===ne&&(b.preventDefault(),T.currentRow&&T.currentRow!==X&&T.currentRow.classList.remove("is-dragover"),X.classList.add("is-dragover"),T.currentRow=X)},B=b=>{b.preventDefault(),T.currentRow&&(T.currentRow.classList.remove("is-dragover"),T.currentRow=null)},E=b=>{const z=b.currentTarget,X=k(z);if(!X)return;const ne=X.dataset&&X.dataset.roleType;if(T.roleType!==ne)return;b.preventDefault();const Y=Number(T.index),W=Number(X.dataset.index);if(Y!==W){if(Y<W){const N=r.value[Y];r.value.splice(Y,1),r.value.splice(W,0,N)}else{const N=r.value[Y];r.value.splice(Y,1),r.value.splice(W+1,0,N)}v(r.value,n),m()}},A=b=>{const z=r.value[b];z.fixed="left",m()},q=b=>{const z=r.value[b];z.fixed="right",m()},U=b=>{const z=r.value[b];z.fixed=void 0,m()},J=new Map;let M=null;function ee(b){const z=document.createRange();return z.setStart(b,0),z.setEnd(b,b.childNodes.length),z.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:h,isCheckAll:S,isIndeterminate:w,handleCheckAllChange:O,handleReset:L,checkedValue:R,handleCheckChange:D,onShow:_,onDragStart:p,onDragEnd:j,onDragOver:Q,onDragLeave:B,onDrop:E,toLeftFixed:A,toRightFixed:q,toUnFixed:U,checkboxLabelStyle:F,onMouseOverForOverflowText:(b,z,X)=>{const ne=b.currentTarget;if(ne){const Y=Math.floor(ne.offsetWidth);if(Math.floor(ee(ne))>Y){let N=J.get(z);if(N){if(N===M)return;Re.hide(N)}N=Re.show(ne,X,{type:"text",placement:"top",closeOnClick:!1}),N&&(J.set(z,N),M=N)}}},onMouseLeaveForOverflowText:(b,z)=>{const X=J.get(z);X&&(Re.hide(X),X===M&&(M=null))},onMouseOverForTip:(b,z)=>{const X=b.currentTarget;X&&(M&&Re.hide(M),M=Re.show(X,z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{M&&(Re.hide(M),M=null)}}}}),Wu={class:"fox-table-setting"},Yu={class:"fox-table-setting__header"},Uu={class:"fox-table-setting__body"},Gu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Xu={key:0,class:"fox-table-setting__body-title"},Zu=["data-index","draggable"],Ju=["onMouseover","onMouseleave"],Qu={class:"tools-item"},ec={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},tc={key:0,class:"fox-table-setting__body-title"},nc=["data-index","draggable"],lc=["onMouseover","onMouseleave"],oc={class:"tools-item"},rc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},ac={key:0,class:"fox-table-setting__body-title"},ic=["data-index","draggable"],sc=["onMouseover","onMouseleave"],uc={class:"tools-item"};function cc(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"),h=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),y=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Wu,[l.createElementVNode("div",Yu,[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",Uu,[l.createVNode(y,{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",Gu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Xu,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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(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:m=>e.onMouseOverForOverflowText(m,f.prop,f.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,Ju)]),_:2},1032,["value"]),l.createElementVNode("div",Qu,[l.createVNode(d,{onClick:m=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:m=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(h)]),_:2},1032,["onClick"])])],40,Zu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",ec,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",tc,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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(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:m=>e.onMouseOverForOverflowText(m,f.prop,f.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,lc)]),_:2},1032,["value"]),l.createElementVNode("div",oc,[l.createVNode(d,{onClick:m=>e.toLeftFixed(f.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(h)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:m=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(h)]),_:2},1032,["onClick"])])],40,nc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",rc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",ac,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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,f.prop,f.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,sc)]),_:2},1032,["label"]),l.createElementVNode("div",uc,[l.createVNode(d,{onClick:m=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:m=>e.toLeftFixed(f.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(h)]),_:2},1032,["onClick"])])],40,ic))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Nn=Ye(Ku,[["render",cc]]);let fc=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 h=o.slice(c,d);return{totalSize:o.length,page:h}}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:[]}):(Qe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,n,r,a,i,u]))}};function dc(){const e=l.getCurrentInstance();return new fc(e.proxy)}class hc{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 Qr(){const e=l.getCurrentInstance();return new hc(e.proxy)}const mc=Symbol.for("TableStateKey"),Mo={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},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Lo={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}},Bn={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:()=>"不固定"}},gc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function vc(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 h=a.substring(0,u);n=n[h][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 _n(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=vc(n,r);if(a!==i)return!1}return!0})}function pc(e,t,o){return{inheritAttrs:!1,props:{...Ce,...Ve,...Mo,...Lo,...Bn,...gc},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 D.value}}},n.prop??r.attrs.name),s=e,c=l.computed(()=>({[s]:!0})),d=l.computed(()=>({[`${s}__setting`]:!0})),h=l.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),y=l.shallowRef({}),g=l.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),f=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),F=ue(n.infiniteLoad);F||(l.watch(()=>n.pageIndex,te=>{f.value=te}),l.watch(()=>n.pageSize,te=>{m.value=te}),l.watch([f,m],([te,oe],[re,ie])=>{oe!==ie&&(f.value=1,te=1),p(n.data,te,oe,g.value)}));const S=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);S()&&l.watch([()=>n.data,g],async([te,oe],[re,ie])=>{S()&&(te!==re&&(T=!0),!(!Array.isArray(te)&&Je(te,re)&&Je(oe,ie))&&(F?(f.value=0,L.value=!0,D.value=[],Q()):f.value===1?p(te,f.value,m.value,oe):f.value=1))},{deep:!0});const w=te=>{f.value=te,i("page-index-change",te)},O=te=>{m.value=te,i("page-size-change",te)},L=l.ref(!0),R=l.ref(0),D=l.ref(),_=dc();let T=!0;const k=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,te=>ue(te)),p=async(te,oe,re,ie,Te)=>{T=!1;try{if(Te===!0){if(!L.value)return!1;const pe=await _.load("table",te,oe,re,ie,T,a.value);return R.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,D.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(D.value?.length??0)>=R.value)||pe.page.length<re?(L.value=!1,!1):!0}else{const pe=await _.load("table",te,oe,re,ie,T,a.value);return R.value=pe.totalSize,D.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),R.value=0,D.value=[]}return!1};let j=!1;const Q=async()=>{if(!j){if(j=!0,!L.value){j=!1;return}f.value+=1,await p(n.data,f.value,m.value,g.value,!0),j=!1}},B=(te={},oe=!1)=>new Promise(async re=>{y.value={...l.toRaw(te??{})},oe||(f.value=n.pageIndex??1),F===!0?(f.value=0,D.value=[],L.value=!0,await Q()):await p(n.data,f.value,m.value,g.value),re()}),E=()=>{R.value=0,D.value=[],F===!0&&(f.value=0,L.value=!0)};let A=!1;const q=()=>{A||(A=!0,B())},U=l.ref(null);if(F===!0){let te=null;const oe=()=>{U.value&&(te=new IntersectionObserver(ie=>{let Te=!1;for(let pe of ie)if(pe.intersectionRatio>0){Te=!0;break}Te&&Q()}),te.observe(U.value))},re=()=>{!te||!U.value||(te.unobserve(U.value),te=null)};l.onMounted(oe),l.onBeforeUnmount(re)}S()&&!k.value&&B();const J=l.ref(null);l.provide(mc,{currentRow:J});const M=(te,oe)=>{J.value=te,i("current-change",te,oe)},ee=(te,oe,re)=>{i("row-click",te,oe,re),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(te)},C=[],$=(te,oe)=>{if(i("expand-change",te,oe),ue(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=C.length;C.splice(0,re)}else{C.forEach(ie=>{ie!==te&&xe?.value.toggleRowExpansion(ie,!1)});const re=C.length;C.splice(0,re,te)}},V=r.attrs.id??n.prop??r.attrs.name,I=Qr(),b=l.ref([]);let z=[];const X=()=>({srcColumnPropertyList:z.map(oe=>({...oe})),columnPropertyList:b.value}),ne=te=>{b.value=[...te],W()},Y=async()=>{const te=await I.load(V);te&&(b.value=te)},W=()=>{I.save(V,b.value)},N=()=>{I.remove(V)};Y();const K=te=>te?te.type?te.type:te.label?te.prop:"":"",Z=()=>typeof r.slots.default=="function"?r.slots.default():[],P=(te,oe={})=>{for(let re in oe){const ie=oe[re];typeof ie!="function"&&(te[re]=ie)}},H=l.computed(()=>{const te=Z(),oe=new Map;if(z=[],te.forEach(re=>{const Te=re;if(!Te.props)return;const pe=K(Te.props);oe.set(pe,Te);const je={label:"",prop:""};P(je,Te.props),z.push(je)}),b.value.length===z.length){const re=[];for(let ie of b.value){const Te=K(ie),pe=oe.get(Te);if(!pe)return te;if(ie.visible===!1)continue;const je=pe;je.props.fixed=ie.fixed,re.push(je)}return re}return te}),G=l.shallowRef(new Map),le=({row:te,column:oe,rowIndex:re,columnIndex:ie})=>{const Te=`${re}_${oe.property}`,pe=`${re}_${ie}`;let je=G.value.get(Te);return je||(je=G.value.get(pe)),typeof je=="string"?je:""},se=te=>typeof te=="function"?oe=>{const re=[];let ie=le(oe);return ie&&re.push(ie),ie=te(oe),ie&&re.push(ie),re.length===0?"":re.join(" ")}:le,ce=(te=!1)=>{G.value.forEach((oe,re)=>{ge(re,oe,te)})},ge=(te,oe,re=!1)=>{const ie=`${te}_item`;re?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:te},"setCellClassNames",[]):u.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:te,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",oe):u.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",oe)},ve=(te,oe,re)=>{const ie=`${te}_${oe}`;re?(G.value.set(ie,re),ge(ie,re)):(G.value.delete(ie),ge(ie,"",!0)),l.triggerRef(G)},Se=te=>{ce(!0),G.value.clear(),te.forEach(oe=>{const re=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?G.value.set(re,oe.children):typeof oe.cellClassName=="string"&&G.value.set(re,oe.cellClassName)}),ce(),l.triggerRef(G)},it=()=>{ce(),G.value.clear(),l.triggerRef(G)},ze=l.shallowRef(new Map),st=({rowIndex:te})=>{const oe=`${te}`;return ze.value.get(oe)??""},In=te=>typeof te=="function"?oe=>{const re=[];let ie=st(oe);return ie&&re.push(ie),ie=te(oe),ie&&re.push(ie),re.length===0?"":re.join(" ")}:st,ca=(te,oe)=>{const re=`${te}`;oe?ze.value.set(re,oe):ze.value.delete(re),l.triggerRef(ze)},fa=()=>{ze.value.clear(),l.triggerRef(ze)},xe=l.ref();return we({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{xe?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!D.value)return;const re=_n(D.value,te);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowSelection(ie,oe)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{xe?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!D.value)return;const re=_n(D.value,te);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowExpansion(ie,oe)})},setCurrentRow:te=>{xe?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!D.value)return;const oe=_n(D.value,te);oe.length!==0&&xe?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:te=>{xe?.value.clearFilter(te)},doLayout:()=>{xe?.value.doLayout()},sort:(te,oe)=>{xe?.value.sort(te,oe)},scrollTo:(te,oe)=>{xe?.value.scrollTo(te,oe)},setScrollTop:te=>{xe?.value.setScrollTop(te)},setScrollLeft:te=>{xe?.value.setScrollLeft(te)},loadData:B,clearData:E,getData(){return D.value},getTotalSize(){return R.value},getPageIndex(){return f.value},getPageSize(){return m.value},getColumnSetting:X,setColumnSetting:ne,removeColumnSetting:N,setCellClassName:ve,setCellClassNames:Se,clearCellClassName:it,setRowClassName:ca,clearRowClassName:fa}),()=>{const oe={...Xe(r.attrs),onCurrentChange:M,onRowClick:ee,onExpandChange:$,data:D.value,ref:xe,class:c.value,"cell-class-name":se(n.cellClassName),"row-class-name":In(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>H.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),F===!0){const He=[];if(L.value){const $t=l.h(Ie.Loading,{class:`${s}__infinite-icon`});He.push($t);const Vn=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);He.push(Vn)}else{const $t=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);He.push($t)}const ut={ref:U,class:`${s}__infinite`},On=l.h("div",ut,He);re.append=()=>On}const ie=l.h(x.ElTable,oe,re),Te=[];if(Te.push(ie),!F){let He=null;if(typeof r.slots.pagination=="function")He=r.slots.pagination();else if(n.showPagination){const ut={class:v.value,total:R.value,pageSize:m.value,"onUpdate:pageSize":O,pageSizes:n.pageSizes,currentPage:f.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};He=l.h(x.ElPagination,ut)}if(n.showSetting){const ut=[];He&&ut.push(He);const On=l.h(x.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),$t=Nr(n,Bn),Vn=l.h(Nn,{...$t,tableRef:{getColumnSetting:X,setColumnSetting:ne,removeColumnSetting:N}},{default:()=>On});ut.push(Vn);const da=l.h("div",{class:h.value},ut);Te.push(da)}else He&&Te.push(He)}const pe={default:()=>Te},gt={...Oe(n,Mo,Lo,Bn)};return n.prop&&(gt.prop=`${n.prop}_item`),gt.contentClass=`${s}__wrap`,gt.errorMarkClass="is-table-error",k.value&&S()&&(gt["appear-listen"]=!0,gt.onAppear=q),l.h(o,gt,pe)}}}}const{componentName:yc,create:bc,scope:xc}=ae("table-item"),Ol=bc(pc(yc,xc,Ee));function St(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 wc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Sc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Tc(){const e=l.getCurrentInstance();return new Sc(e.proxy)}function ea(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=St(e,t),r=St(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function $c(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=St(e,a)===t;else if(o==="item")i=ea(e,a,t);else{let u=Ft(e,a);u==null&&(u=St(e,a)),i=u===t}if(i){r=a;break}}return r}function Cc(e){return{text:e,value:e}}function Ec(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Bo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Nc(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,...Bo},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),h=l.ref(null),v=(T,k,p,j=!0)=>{const Q=$c(n,T,k,p);if(Q===null){if(h.value===null)return;h.value=null,d.value=null,j&&(c("update:modelValue",null),c("change",null));return}if(!ea(n,Q,h.value)){d.value=T;const E=l.toRaw(Q);h.value=E;let A=null;n.valueType==="text"?A=St(n,E):n.valueType==="item"?A=E:A=Ft(n,E),j&&(c("update:modelValue",A),c("change",A))}},y=l.ref([]),g=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,T=>ue(T)),f=Tc(),m=async(T,k)=>{if(T){const p=await f.load("radio",T,k);if(p.length>0)if(typeof p[0]=="string"){let B=p.map(E=>Cc(E));y.value=B}else y.value=p}};l.watch([()=>n.source,()=>n.params],async([T,k])=>{m(T,k)},{immediate:!g.value});let F=!1;const S=()=>{F||(F=!0,m(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([T,k])=>{v(k,n.valueType,T,!1),c("setValue",k)});const w=e,O=l.computed(()=>({[w]:!0,[`is-${n.direction}`]:!0})),L=T=>{v(T,"value",y.value,!0)};let R=he(n,"hintText"),D=he(n,"hintVisible");const _=(T,k)=>{const p=[];return T.forEach((j,Q)=>{const B=Ft(n,j),E=St(n,j);let A=wc(n,j);i.value===!0&&(A=i.value),s.value===!0&&(A=s.value);const q=Ec(n,j,Q)??{},U=`${B}_${Q}`,J={...q,key:U,value:B,size:n.size,border:ue(n.border)};A&&(J.disabled=A),n.itemType==="button"?p.push(l.h(x.ElRadioButton,J,{default:()=>[E]})):typeof k=="function"?p.push(l.h(x.ElRadio,J,{default:()=>k(j)})):p.push(l.h(x.ElRadio,J,{default:()=>[E]}))}),p};return we({setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const k={...Xe(r.attrs),class:O.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,onChange:L},p=[],j={};r.slots.options?j.default=r.slots.options:j.default=()=>_(y.value,r.slots.text);const Q=l.h(x.ElRadioGroup,k,j);p.push(Q);const B={default:()=>p};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const A={...Oe(n,Bo),hintText:R.value,hintVisible:D.value};return n.prop&&(A.prop=`${n.prop}_item`),g.value&&(A["appear-listen"]=!0,A.onAppear=S),l.h(o,A,B)}}}}const{componentName:kc,create:Pc,scope:Ic}=ae("radio-item"),Vl=Pc(Nc(kc,Ic,Ee));function Tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Oc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Vc=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`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Dc(){const e=l.getCurrentInstance();return new Vc(e.proxy)}function ta(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=Tt(e,t),r=Tt(e,o);if(n!==r)return!1;const a=xt(e,t),i=xt(e,o);return a===i}function Rc(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=Tt(e,i)===a;else if(o==="item")u=ta(e,i,a);else{let s=xt(e,i);s==null&&(s=Tt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Fc(e){return{text:e,value:e}}function Ac(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const _o={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Mc(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,..._o},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([]),h=l.ref([]),v=(T,k,p,j=!0)=>{const Q=Rc(n,T,k,p);if(Q===null){if(h.value===null||h.value.length===0)return;d.value=[],h.value=[],j&&(c("update:modelValue",[]),c("change",[]));return}let B=!0;if(Q.length!==h.value.length)B=!1;else for(let E=0;E<Q.length;E++){const A=Q[E],q=h.value[E];if(!ta(n,A,q)){B=!1;break}}if(!B){h.value=Q;let E=[],A=[];Q.forEach(U=>{E.push(xt(n,U)),n.valueType==="text"?A.push(Tt(n,U)):n.valueType==="item"?A.push(U):A.push(xt(n,U))}),d.value=E;const q=l.toRaw(A);j&&(c("update:modelValue",q),c("change",q))}},y=l.ref([]),g=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,T=>ue(T)),f=Dc(),m=async(T,k)=>{if(T){const p=await f.load("checkbox",T,k);if(p.length>0)if(typeof p[0]=="string"){let B=p.map(E=>Fc(E));y.value=B}else y.value=p}};l.watch([()=>n.source,()=>n.params],async([T,k])=>{m(T,k)},{immediate:!g.value});let F=!1;const S=()=>{F||(F=!0,m(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([T,k])=>{v(k,n.valueType,T,!1),c("setValue",k)});const w=e,O=l.computed(()=>({[w]:!0,[`is-${n.direction}`]:!0})),L=T=>{v(T,"value",y.value,!0)};let R=he(n,"hintText"),D=he(n,"hintVisible");const _=(T,k)=>{const p=[];return T.forEach((j,Q)=>{const B=xt(n,j),E=Tt(n,j);let A=Oc(n,j);i.value===!0&&(A=i.value),s.value===!0&&(A=s.value);const q=Ac(n,j,Q)??{},U=`${B}_${Q}`,J={...q,key:U,class:n.itemClass,value:B,size:n.size,border:ue(n.border)};A&&(J.disabled=A),n.itemType==="button"?p.push(l.h(x.ElCheckboxButton,J,{default:()=>[E]})):typeof k=="function"?p.push(l.h(x.ElCheckbox,J,{default:()=>k(j)})):p.push(l.h(x.ElCheckbox,J,{default:()=>[E]}))}),p};return we({setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const k={...Xe(r.attrs),class:O.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:$e(n.max),min:$e(n.min),onChange:L},p=[],j={};r.slots.options?j.default=r.slots.options:j.default=()=>_(y.value,r.slots.text);const Q=l.h(x.ElCheckboxGroup,k,j);p.push(Q);const B={default:()=>p};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const A={...Oe(n,_o),hintText:R.value,hintVisible:D.value};return n.prop&&(A.prop=`${n.prop}_item`),g.value&&(A["appear-listen"]=!0,A.onAppear=S),l.h(o,A,B)}}}}const{componentName:Lc,create:Bc,scope:_c}=ae("checkbox-item"),Dl=Bc(Mc(Lc,_c,Ee)),qo={modelValue:{type:[Number,String],required:!1}};function qc(e,t,o){return{props:{...Ce,...Ve,...qo},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=he(n,"modelValue",F=>$e(F),c),h=e,v=l.computed(()=>({[h]:!0})),y=F=>{c("update:modelValue",F),c("change",F)};let g=he(n,"hintText"),f=l.ref(!1);const m=l.ref();return we({setDisabled:F=>{a.value=F},setReadonly:F=>{u.value=F}}),()=>{const S={...Xe(r.attrs),ref:m,class:v.value,readonly:s.value||i.value,modelValue:d.value,onChange:y},w={},O=[],L=l.h(x.ElRate,S,w);O.push(L);const R={default:()=>O};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const _={...Oe(n,qo),hintText:g.value,hintVisible:f.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,R)}}}}const{componentName:jc,create:zc,scope:Hc}=ae("rate-item"),Rl=zc(qc(jc,Hc,Ee)),jo={modelValue:{type:[Boolean,String,Number],required:!1}};function Kc(e,t,o){return{props:{...Ce,...Ve,...jo},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=he(n,"modelValue",null,c),h=e,v=l.computed(()=>({[h]:!0})),y=F=>{c("update:modelValue",F),c("change",F)};let g=he(n,"hintText"),f=he(n,"hintVisible");const m=l.ref();return we({setDisabled:F=>{a.value=F},setReadonly:F=>{u.value=F}}),()=>{const S={...Xe(r.attrs),ref:m,class:v.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:y},w={},O=[],L=l.h(x.ElSwitch,S,w);O.push(L);const R={default:()=>O};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const _={...Oe(n,jo),hintText:g.value,hintVisible:f.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,R)}}}}const{componentName:Wc,create:Yc,scope:Uc}=ae("switch-item"),Fl=Yc(Kc(Wc,Uc,Ee)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Gc(e,t,o){return{props:{...Ce,...Ve,...zo},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),h=he(n,"modelValue",null,d),v=e,y=l.computed(()=>({[v]:!0})),g=D=>{d("update:modelValue",D),d("change",D)};let f=he(n,"hintText"),m=l.ref(!1);const F=D=>{let T=D.target.value;c.value=!0,de(f.value)||(m.value=!0),d("focus",T,D)},S=D=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let T=D.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),O.value||d("blur",T,D)},w=()=>{d("clear","")},O=l.ref(!1),L=D=>{O.value=D,d("visible-change",D),D||d("selected")},R=l.ref();return we({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const _={...Xe(r.attrs),ref:R,class:y.value,disabled:i.value||s.value,modelValue:h.value,"onUpdate:modelValue":g,onClear:w,onFocus:F,onBlur:S,onVisibleChange:L},T={};r.slots.option&&(T.default=r.slots.option);const k=[],p=l.h(x.ElTreeSelect,_,T);k.push(p);const j={default:()=>k};j.label=r.slots.default,j.fixedPreTip=r.slots.fixedPreTip,j.fixedTip=r.slots.fixedTip;const B={...Oe(n,zo),hintText:f.value,hintVisible:m.value};return n.prop&&(B.prop=`${n.prop}_item`),l.h(o,B,j)}}}}const{componentName:Xc,create:Zc,scope:Jc}=ae("tree-select-item"),Al=Zc(Gc(Xc,Jc,Ee)),Qc={},ef={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 tf(e,t){return l.openBlock(),l.createElementBlock("svg",ef,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 nf=Ye(Qc,[["render",tf]]),{componentName:Hm,create:lf,scope:Km}=ae("group-setting"),of={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:"到底部"}},rf=lf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:nf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...of},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=Qr(),u=C=>C.length>1,s=()=>{const C=[],$=[...a.value];a.value=$.map((I,b)=>(I.visible!==!1&&C.push(I.prop),{...I,sortIndex:b})),a.value.length===C.length?f.value=!0:C.length>0&&(m.value=!0),w.value=C},c=C=>{let $=null;if(typeof C=="string")$=document.querySelectorAll(`.fox-group[prop="${C}"] > div > .fox-item[prop]`);else if(C&&typeof C=="object"){const I=C.$el??C;typeof I.querySelectorAll=="function"&&($=I.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const V=[];return $.forEach(I=>{const b=I.querySelector(".label--string");let z="";b&&(z=b.textContent??"");const X=I.getAttribute("prop")??"",Y=window.getComputedStyle(I,null).getPropertyValue("display");V.push({label:z,prop:X,sortIndex:0,visible:Y!=="none"})}),V},d=()=>{if(!r){const C=c(e.groupRef??e.groupProp);if(C.length===0)return!1;r=C}return!0},h=async(C=!1)=>{const $=await i.load(e.groupProp),V=I=>{if(!I||!r)return;const b=r.map(z=>({...z}));Array.isArray($)&&$.forEach(z=>{b.some(X=>{if(X.prop===z.prop){const ne=X.label;return Object.assign(X,z),X.label=ne,!0}return!1})}),a.value=b.sort((z,X)=>z.sortIndex-X.sortIndex),s(),C&&y(!1)};r?V(!0):mn(d,e.initDelay,5,50,!1,V)},v=()=>{const C=r??[];a.value=C.map($=>({...$})),s(),y()},y=(C=!0)=>{C&&i.save(e.groupProp,a.value);const $=a.value.map(V=>({...V}));t("change",$)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),m=l.ref(!1),F=C=>{const $=[];a.value.forEach(I=>{C&&$.push(I.prop),I.visible=C}),f.value=!1,m.value=!1,a.value.length===$.length?f.value=!0:$.length>0&&(m.value=!0),w.value=$,y()},S=()=>{v()},w=l.ref([]),O=C=>{a.value.forEach(V=>{const I=C.indexOf(V.prop)!==-1;V.visible=I}),f.value=!1,m.value=!1;const $=a.value.length;C.length===$?f.value=!0:C.length>0&&(m.value=!0),y()},L=()=>{h()};l.onMounted(()=>{h(!0)});const R={currentRow:null,index:null},D=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,D(C)):null:null,_=C=>{const $=C.currentTarget;$&&$.dataset&&(R.index=$.dataset.index)},T=C=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null},k=C=>{const $=C.currentTarget;C.relatedTarget;const V=D($);V&&(C.preventDefault(),R.currentRow&&R.currentRow!==V&&R.currentRow.classList.remove("is-dragover"),V.classList.add("is-dragover"),R.currentRow=V)},p=C=>{C.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},j=C=>{const $=C.currentTarget,V=D($);if(!V)return;C.preventDefault();const I=Number(R.index),b=Number(V.dataset.index);if(I!==b){if(I<b){const z=a.value[I];a.value.splice(I,1),a.value.splice(b,0,z)}else{const z=a.value[I];a.value.splice(I,1),a.value.splice(b+1,0,z)}s(),y()}},Q=C=>{const $=a.value[C];a.value.splice(C,1),a.value.splice(0,0,$),s(),y()},B=C=>{const $=a.value[C];a.value.splice(C,1),a.value.push($),s(),y()};n({refresh:()=>{r=null,h(!1)}});const E=new Map;let A=null;function q(C){const $=document.createRange();return $.setStart(C,0),$.setEnd(C,C.childNodes.length),$.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:m,handleCheckAllChange:F,handleReset:S,checkedValue:w,handleCheckChange:O,onShow:L,onDragStart:_,onDragEnd:T,onDragOver:k,onDragLeave:p,onDrop:j,checkboxLabelStyle:g,toTop:Q,toBottom:B,onMouseOverForOverflowText:(C,$,V)=>{const I=C.currentTarget;if(I){const b=Math.floor(I.offsetWidth);if(Math.floor(q(I))>b){let X=E.get($);if(X){if(X===A)return;Re.hide(X)}X=Re.show(I,V,{type:"text",placement:"top",closeOnClick:!1}),E.set($,X),A=X}}},onMouseLeaveForOverflowText:(C,$)=>{const V=E.get($);V&&(Re.hide(V),V===A&&(A=null))},onMouseOverForTip:(C,$)=>{const V=C.currentTarget;V&&(A&&Re.hide(A),A=Re.show(V,$,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:C=>{A&&(Re.hide(A),A=null)}}}}),af={class:"fox-group-setting"},sf={class:"fox-group-setting__header"},uf={class:"fox-group-setting__body"},cf={class:"fox-group-setting__body-list","data-role":"container"},ff=["data-index","draggable"],df=["onMouseover","onMouseleave"],hf={class:"tools-item"};function mf(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"),h=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",af,[l.createElementVNode("div",sf,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=y=>e.isCheckAll=y),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",uf,[l.createVNode(h,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",cf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,y=>(l.openBlock(),l.createElementBlock("div",{key:y.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":y.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:y.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,y.prop,y.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,y.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(y.label),45,df)]),_:2},1032,["label"]),l.createElementVNode("div",hf,[l.createVNode(d,{onClick:g=>e.toTop(y.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:g=>e.toBottom(y.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,ff))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Ml=Ye(rf,[["render",mf]]),gf=["aria-labelledby"],vf=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),pf=[vf],yf=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"},pf,14,gf))}}),bf=["aria-labelledby"],xf=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),wf=[xf],Sf=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"},wf,14,bf))}}),Tf=["aria-labelledby"],$f=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),Cf=[$f],Ll=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"},Cf,14,Tf))}}),Ef=["aria-labelledby"],Nf=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),kf=[Nf],Pf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit: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"},kf,14,Ef))}}),If=["aria-labelledby"],Of=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vf=[Of],Df=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"},Vf,14,If))}}),Rf=["aria-labelledby"],Ff=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),Af=[Ff],Mf=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"},Af,14,Rf))}}),Lf={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}},Ho=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],Bf=(e,t)=>t[e.visibleKey],Ko=(e,t)=>t[e.disabledKey],_f=(e,t)=>{const o=t[e.doitKey];return ue(o)},qf=(e,t)=>{const o=t[e.numKey];return o==null?null:$e(t[o])},Wo=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function jf(e,t,o,n=!1){return{props:{...Lf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const C={};return C[`${e}`]=!0,C}),s=l.computed(()=>{const C={};return C[`${e}__titles`]=!0,C[`${r.direction}`]=!0,r.align==="left"&&(C.left=!0),r.scroll===!0&&(C.scrollable=!0),r.shape&&(C[`${r.shape}`]=!0),C}),c=l.computed(()=>({})),d=l.computed(()=>{if(!r.gutter)return 0;const C=me(r.gutter);return C<=0?0:C}),h=l.ref(r.modelValue);l.watch(()=>r.modelValue,C=>{h.value!==C&&(h.value=C,q(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=l.computed(()=>{const C={};return f.value||(C.display="none"),C}),g=l.ref(),f=l.ref(!1),m=()=>{const C=!f.value;F(C)},F=C=>{const $=C;$?(f.value=$,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},S=l.ref(),w=l.ref([]),O=(C,$)=>{w.value[$]=C},L=C=>$=>{O($,C)},R=(C,$)=>{const V=S.value,I=w.value;if(!V||!I||!I[C])return;const b=I[C];let z=0;r.direction==="vertical"?z=b.offsetTop-(V.offsetHeight-b.offsetHeight)/2:z=b.offsetLeft-(V.offsetWidth-b.offsetWidth)/2,D(V,z,$?0:.3,r.direction)},D=(C,$,V,I)=>{let b=0;const z=I==="horizontal"?C.scrollLeft:C.scrollTop,X=V===0?1:Math.round(V*1e3/16);function ne(){I==="horizontal"?C.scrollLeft+=($-z)/X:C.scrollTop+=($-z)/X,++b<X&&il(ne)}ne()},_=(C,$)=>{const V=Nt(r,C),I={};return I[`${e}__titles-item`]=!0,I.disabled=Ko(r,C),I.active=V===h.value,r.shape&&(I[`${r.shape}`]=!0),r.ellipsis&&(I.ellipsis=!0),$&&($.class&&(I[`${$.class}`]=!0),$.disabled===!0&&(I.disabled=$.disabled)),I},T=(C,$)=>{const V={};if(d.value>0){const I=Math.abs(d.value/2);r.direction==="vertical"?(V["margin-top"]=`${I}px`,V["margin-bottom"]=`${I}px`):(V["margin-left"]=`${I}px`,V["margin-right"]=`${I}px`)}return $&&$.style&&Object.assign(V,$.style),V},k=(C,$)=>`${Nt(r,C)??$}`,p=(C,$)=>{const V=Nt(r,C),I={};I[`${e}__popup-item`]=!0,I.disabled=Ko(r,C),I.active=V===h.value,r.shape&&(I[`${r.shape}`]=!0);const b=Wo(r,C,$);return b&&b.disabled===!0&&(I.disabled=b.disabled),I},j=l.computed(()=>(r.data??[]).filter($=>Bf(r,$)!==!1)),Q=(C,$)=>{const V=Nt(r,C);if(h.value==V)return;const I=()=>{h.value=V,r.scroll&&R($,!1),i("update:modelValue",V),i("change",C,$)};if(typeof r.beforeChange=="function"){const b=r.beforeChange(C,$);yr(b)?b.then(z=>{z!==!1&&I()}).catch(()=>{I()}):b!==!1&&I()}else I()},B=(C,$)=>function(){Q(C,$)},E=(C,$)=>{Q(C,$),F(!1)},A=(C,$)=>function(){E(C,$)},q=C=>{if(!Array.isArray(r.data)||!r.scroll)return;const $=r.data.findIndex(V=>Nt(r,V)===h.value);$!==-1&&R($,C)};l.watch(()=>r.data,()=>{setTimeout(q,0)}),l.onMounted(()=>{q(!0)});const U=(C,$)=>{if(a.item)return a.item({item:C,index:$});const V=Wo(r,C,$),I=[];if(a.text){const ne=a.text({item:C,index:$});I.push(ne)}else{const ne=[];if(V?.doit===!0||_f(r,C)){const K={class:[`${e}__titles-item-tip`,"doit"]},Z=l.h("view",K);ne.push(Z)}const Y=V?.num??qf(r,C);if(Y){let K="";const Z=$e(Y);Z>=100?K="99+":K=`${Z}`;const P={class:[`${e}__titles-item-tip`,"num"]},H=l.h("view",P,[K]);ne.push(H)}const W={class:`${e}__titles-item-text`};ne.push(Ho(r,C));const N=l.h("view",W,ne);I.push(N)}const b={class:`${e}__titles-item-line`},z=l.h("view",b);I.push(z);const X={ref:L($),class:_(C,V),style:T(C,V),key:k(C,$),onClick:B(C,$)};return l.h("view",X,I)},J=()=>{const C=a.default?a.default():[];if(C.length===0)for(let V=0;V<j.value.length;V++){const I=j.value[V],b=U(I,V);C.push(b)}const $={ref:S,class:s.value,style:c.value};return l.h("view",$,C)},M=()=>{let C=null;a.navigation?C=a.navigation():C=l.h(o);const $={class:`${e}__navigation`,onClick:m};return l.h("view",$,[C])},ee=()=>{const C=[];for(let V=0;V<j.value.length;V++){const I=j.value[V];let b=null;a.popupItem?b=a.popupItem({item:I,index:V}):b=Ho(r,I);const z={class:p(I,V),key:k(I,V),onClick:A(I,V)},X=l.h("view",z,[b]);C.push(X)}const $={class:v.value,style:y.value};return l.h("view",$,C)};return()=>{const C=[],$=J();if(C.push($),r.showQuickNavigation){const I=M();C.push(I);const b=ee();C.push(b)}const V={class:u.value};return l.h("view",V,C)}}}}const{create:zf,componentName:Hf,scope:Kf}=ae("tabs-bar"),Bl=zf(jf(Hf,Kf,Sf,!1)),na=Symbol("TabsStatesKey"),Wf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Yo=10;function la(e,t){return e>t&&e>Yo?"horizontal":t>e&&t>Yo?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},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=la(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 Yf(){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(""),h=()=>d.value==="vertical",v=()=>d.value==="horizontal",y=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:m=>{if(m.touches){const w=m.touches[0];i.value=w.clientX-e.value,u.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}else{const S=m;i.value=S.clientX-e.value,u.value=S.clientY-t.value,r.value=S.clientX,a.value=S.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),n.value=Date.now()-o.value,d.value||(d.value=la(s.value,c.value))},start:m=>{if(y(),m.touches){const w=m.touches[0];e.value=w.clientX,t.value=w.clientY}else{const S=m;e.value=S.clientX,t.value=S.clientY}o.value=Date.now()},reset:y,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:h,isHorizontal:v}}const Uf=15,Gf=300,Xf=200;function Zf(e,t,o=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*o}function Uo(e,t=0,o,n,r=Xf){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 Jf=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=Lt()}open(t){this.el=t;const o=Bt(),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<Gf&&Math.abs(r)>Uf?(r=Zf(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 Qf(e,t,o,n=1){return new Jf(e,t,o,n)}function ed(e,t,o=!1){return{props:{...Wf},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:O=>{const L={name:O};u.current.value===O&&(L.loaded=!0),i.value.push(L),l.triggerRef(i)},remove:O=>{const L=i.value.findIndex(R=>R.name===O);L!==-1&&i.value.splice(L,1)},isLoaded:O=>{if(!n.lazy)return!0;const L=i.value.findIndex(R=>R.name===O);return L!==-1?u.current.value?i.value[L].loaded??!1:L===0:!1}};l.provide(na,u);const s=O=>{const L=i.value.findIndex(R=>R.name===O);L!==-1&&(i.value[L].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([O,L])=>{u.current.value!==O&&(u.current.value=O??"",s(O??"")),u.direction.value!==L&&(u.direction.value=L)});const c=l.ref(null),d=l.ref(null),h=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const y=l.computed(()=>{const O={},L=i.value.length;if(L<=0)return O;const R=i.value.findIndex(D=>D.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(O.height=`${L*u.tabHeight.value}px`,R!==-1&&(O.transform=`translate(0, -${R*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(O.width=`${L*u.tabWidth.value}px`,R!==-1&&(O.transform=`translate(-${R*u.tabWidth.value}px, 0)`)),v&&(v=!1,O.transition="transform 0s ease"),O}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=O=>{const L=i.value.length,R=i.value.findIndex(D=>D.name===u.current.value);g.moved=0,O.direction==="vertical"?(g.min=-1*(u.tabHeight.value*(L-1)+u.tabHeight.value/4),g.max=u.tabHeight.value/4,g.start=-R*u.tabHeight.value,g.itemDistance=u.tabHeight.value):(g.min=-1*(u.tabWidth.value*(L-1)+u.tabWidth.value/4),g.max=u.tabWidth.value/4,g.start=-R*u.tabWidth.value,g.itemDistance=u.tabWidth.value)},m=O=>{const L=d.value;if(!L)return;let R=g.start+O.delta;if(R>g.max?R=g.max:R<g.min&&(R=g.min),O.type==="move")Uo(L,R,"move",O.direction,300);else if(O.type==="end"){let D=Math.floor(Math.abs(R)*1/g.itemDistance);const _=Math.abs(R)%g.itemDistance;g.start>R?_>=g.itemDistance*g.triggerAutoMoveRatio&&(D+=1):_>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(D+=1),R=-1*D*g.itemDistance,Uo(L,R,"end",O.direction,300),g.moved=R;const T=i.value[D].name;u.current.value=T??"",s(T??""),r("update:modelValue",T)}},F=()=>{};let S=null,w=null;return l.onMounted(()=>{if(!c.value)return;const O=()=>{const L=bn(c.value);u.tabWidth.value=L.width,u.tabHeight.value=L.height};window.ResizeObserver&&(w=new window.ResizeObserver(O),w.observe(c.value)),O(),n.draggle&&(S=Qf(f,m,F),S.open(d.value))}),l.onBeforeUnmount(()=>{w&&(w.disconnect(),w=null),S&&S.close()}),()=>{const O={class:`${e}__panes`,style:y.value,ref:d},L=l.h("view",O,[a?.default?.()]),R={class:h.value,ref:c};return l.h("view",R,[L])}}}}const{create:td,componentName:nd,scope:ld}=ae("tabs-container"),_l=td(ed(nd,ld,!1)),od={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function rd(e,t,o){return{props:{...od},setup(n,{emit:r,slots:a}){const i=l.inject(na);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 h={class:`${e}__empty-icon`},v=n.emptyIcon??o,y=l.h(v,h),g={class:`${e}__empty-text`},f=n.emptyText??"Loading",m=l.h("view",g,[f]),F={class:`${e}__empty`},S=l.h("view",F,[y,m]);c.push(S)}const d={class:`${e}`,style:u.value};return l.h("view",d,c)}}}}const{create:ad,componentName:id,scope:sd}=ae("tabs-pane"),ql=ad(rd(id,sd,Ll)),ud={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 cd(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Go(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Xo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function fd(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function qn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Zo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Jo(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function jn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class dd{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`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function hd(){const e=l.getCurrentInstance();return new dd(e.proxy)}function md(e,t,o,n){return{props:{...ud},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=hd(),c=l.ref([]),d=l.computed(()=>c.value.filter($=>fd(r,$)!==!1)),h=l.ref(-1),v=()=>{const $=r.modelValue,V=d.value.findIndex(I=>Go(r,I)===$);h.value!==V&&(h.value=V,r.scroll&&ee(V))};l.watch([()=>r.modelValue,d],()=>{v()});const y=$=>h.value===$,g=$=>{if($<0&&$>=d.value.length)return!1;const V=d.value[$],b=(jn(r,V,$)??{}).status??qn(r,V);return y($)||b},f=l.computed(()=>{const $={[u]:!0};return r.mode?$[`is-${r.mode}`]=!0:r.direction&&($[`is-${r.direction}`]=!0),r.scroll&&($["is-scroll"]=!0),$}),m=l.computed(()=>({})),F=($,V,I,b,z)=>{const X={[`${u}__step`]:!0};return z&&(X[`${z}`]=!0),X[`${S.value}`]=!0,b&&(X["is-doit"]=!0),$===h.value?X["is-active"]=!0:V==="done"?X["is-done"]=!0:V==="error"?X["is-error"]=!0:V==="half"?X["is-half"]=!0:I?X["is-disabled"]=!0:X["is-normal"]=!0,X},S=l.computed(()=>{if(r.mode==="simple")return"start";let $=r.align;return $||(r.direction==="vertical"?$="start":$="center"),$}),w=($,V={})=>{const I={...V};return S.value==="start"&&$===d.value.length-1?I.flex="0 0 auto":r.step?r.direction==="vertical"?I.height=r.step:I.width=r.step:I.flex="1 1 100%",I},O=($,V)=>{let I={};if(V<d.value.length-1){const b=V+1;g(V)&&g(b)?r.direction==="vertical"?I.height="100%":I.width="100%":I.opacity="0"}return I},L=$=>d.value.length-1===$,R=($,V)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&V>h.value||h.value===V)return;const I=h.value,b=V;h.value=V,r.scroll&&ee(V);const z=Go(r,$);i("update:modelValue",z);const X={fromIndex:I,currentIndex:b,item:$,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",z,X)},D=l.ref(!0),_=async($,V)=>{try{const I=await s.load("stesbar",$,V);Array.isArray(I)&&(c.value=I),D.value=!1}catch(I){console.error("[FoxUI] Load StepsBar Data Fail",I),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([$,V])=>{$&&_($,V)},{immediate:!0});const T=($,V,I,b,z)=>{let X=null;if(a.icon)X=a.icon({item:$,index:V,status:b});else if(b==="done"){const Y={};r.iconSize&&(Y.width=r.iconSize,Y.height=r.iconSize);const W=r.icon??o;X=l.h(W,Y)}else{const Y=I??`${V+1}`;X=l.h("span",{},[Y])}const ne={class:"fox-steps-bar__icon",onClick:()=>{z||R($,V)}};return l.h("view",ne,[X])},k=($,V,I)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:O($,V)});return l.h("view",{class:"fox-steps-bar__line"},[b])},p=()=>{let $=null;if(a.markIcon)$=a.markIcon();else{const I={};r.iconSize&&(I.width=r.markIconSize,I.height=r.markIconSize);const b=r.markIcon??n;$=l.h(b,I)}return l.h("view",{class:"fox-steps-bar__mark"},[$])},j=($,V,I,b,z)=>{const X=[];if(!L(V)){const W=k($,V);X.push(W)}const ne=T($,V,I,b,z);X.push(ne);const Y={class:"fox-steps-bar__head"};return l.h("view",Y,X)},Q=($,V,I,b)=>{let z=null;a.main?z=a.main({item:$,index:V,status:I}):z=cd(r,$);const X={class:"fox-steps-bar__main",onClick:()=>{b||R($,V)}};return l.h("view",X,[z])},B=($,V,I)=>{let b=null;if(a.sub){b=a.sub({item:$,index:V,status:I});const z={class:"fox-steps-bar__sub"};return l.h("view",z,[b])}return null},E=($,V)=>{const I=jn(r,$,V)??{},b=I.status??qn(r,$);let z=Xo(r,$);I.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const X=I.label??Jo(r,$),ne=[],Y=T($,V,X,b,z);Y&&ne.push(Y);const W=Q($,V,b,z);if(W&&ne.push(W),!L(V)){const G=k($,V);G&&ne.push(G)}const N=l.h("view",{class:"fox-steps-bar__head"},ne),K=I.class,Z=I.style??{};let P=Zo(r,$);I.doit===!0&&(P=!0);const H={ref:M(V),class:F(V,b,z,P,K),style:w(V,Z)};return l.h("view",H,[N])},A=($,V)=>{const I=jn(r,$,V)??{},b=I.status??qn(r,$);let z=Xo(r,$);I.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const X=I.label??Jo(r,$),ne=[],Y=r.layout;for(let P of Y)if(P==="head"){const H=j($,V,X,b,z);ne.push(H)}else if(P==="main"){const H=Q($,V,b,z);ne.push(H)}else if(P==="sub"){const H=B($,V,b);ne.push(H)}else if(P==="mark"){const H=p();ne.push(H)}const W=I.class,N=I.style??{};let K=Zo(r,$);I.doit===!0&&(K=!0);const Z={ref:M(V),class:F(V,b,z,K,W),style:w(V,N)};return l.h("view",Z,ne)},q=l.ref(),U=l.ref([]),J=($,V)=>{U.value[V]=$},M=$=>V=>{J(V,$)},ee=($,V)=>{const I=q.value,b=U.value;if(!I||!b||!b[$])return;const z=b[$];let X=0;r.direction==="vertical"?X=z.offsetTop-(I.offsetHeight-z.offsetHeight)/2:X=z.offsetLeft-(I.offsetWidth-z.offsetWidth)/2,C(I,X,.3,r.direction)},C=($,V,I,b)=>{let z=0;const X=b==="horizontal"?$.scrollLeft:$.scrollTop,ne=Math.round(I*1e3/16);function Y(){b==="horizontal"?$.scrollLeft+=(V-X)/ne:$.scrollTop+=(V-X)/ne,++z<ne&&il(Y)}Y()};return()=>{const $=[];if(r.mode==="simple")for(let I=0;I<d.value.length;I++){const b=d.value[I],z=E(b,I);$.push(z)}else for(let I=0;I<d.value.length;I++){const b=d.value[I],z=A(b,I);$.push(z)}const V={ref:q,class:f.value,style:m.value};return l.h("view",V,$)}}}}const{componentName:gd,create:vd,scope:pd}=ae("steps-bar"),jl=vd(md(gd,pd,Df,Mf)),yd=Symbol.for("InnerPageScopeKey"),bd=Symbol.for("PageWrapperKey");function xd(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(yd,!0);const r={};l.provide(bd,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 h={};return typeof n.slots.default=="function"&&(h.default=n.slots.default),l.h(x.ElDialog,c,h)}}}}const{componentName:Ym,create:wd,scope:Um}=ae("dialog-item"),zl=wd(xd());let kt=0;const Qo="fox-overflow-hidden",er=()=>rt?document.body:{classList:[]},Sd=e=>[()=>{if(e())try{!kt&&er().classList.add(Qo),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&er().classList.remove(Qo)}catch{}}],Td={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:$d,create:Cd}=ae("overlay"),Ed=Cd({props:{...Td},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Sd(()=>e.lockScroll),r=l.computed(()=>({[$d]:!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 Nd(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 kn=Ye(Ed,[["render",Nd]]),kd={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:{}}},oa=2e3;let tr=oa;const Pd=(e,t)=>({components:t,props:{...kd},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!==oa&&(tr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++tr,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)},h=f=>{f.stopPropagation(),n("click-close-icon",f),n("update:visible",!1)},v=f=>{n("click-overlay",f),o.closeOnClickOverlay&&n("update:visible",!1)},y=f=>{n("opend",f)},g=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:h,onClickOverlay:v,onOpened:y,onClosed:g}}}),{componentName:Id,create:Od}=ae("popup"),Vd=Od(Pd(Id,{FoxOverLay:kn,Close:Pf}));function Dd(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 Hl=Ye(Vd,[["render",Dd]]),{create:Rd}=ae("toast"),Fd=Rd({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,y=>{y&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const y=me(e.iconSize);return l.h(e.icon,{width:y,height:y,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]),h=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:h,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ad={key:1,class:"fox-toast-title"},Md=["innerHTML"];function Ld(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",Ad,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Md)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Kl=Ye(Fd,[["render",Ld]]),Bd={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"}},_d=(e,t,o)=>({props:{...Bd},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}=Mr(),{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})),h=T=>{let p=T.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),a("update:modelValue",p,T),a("change",p,T)},v=l.ref({}),y=T=>{let p=T.target.value;s.active=!0,v.value=n.focusStyle,a("focus",p,T)},g=T=>{setTimeout(()=>{s.active=!1},0);let p=T.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),v.value={},a("blur",p,T)},f=T=>{a("update:modelValue","",T),a("change","",T),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),F=l.computed(()=>{const T={};return m.value||(T.display="none"),T}),S=()=>{a("search",n.modelValue)},w=T=>{a("keyup-input",T),T.key.toLocaleUpperCase()==="ENTER"&&S()},O=T=>{a("click-input",T)},L=T=>{a("click-left-icon",n.modelValue,T)},R=l.computed(()=>({textAlign:n.inputAlign})),D=l.ref(null);l.onMounted(()=>{n.autofocus&&D.value.focus()});const _=()=>{const T=[];if(r.leftin){const B={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},E=l.h("view",B,[r.leftin()]);T.push(E)}const k={ref:D,class:[`${e}__input-inner`],style:R.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:O,onInput:h,onFocus:y,onBlur:g,onkeyup:w},p=l.h("input",k);T.push(p);const j=[];if(n.clearable){const B={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:F.value,onClick:f},E=r?.clear?.()??n.clearIcon??o,A=l.h("view",B,[l.h(E)]);j.push(A)}if(r.rightin){const B={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=l.h("view",B,[r.rightin()]);j.push(E)}if(j.length>0){const B={class:`${e}__input-inner-right`},E=l.h("view",B,j);T.push(E)}const Q={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...v.value}};return l.h("view",Q,T)};return()=>{const T=[];if(n.label){const j={class:`${e}__search-label`},Q=l.h("span",j,[n.label]);T.push(Q)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Q=l.h("view",j,[r.leftout()]);T.push(Q)}const k=_();if(T.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Q=l.h("view",j,[r.rightout()]);T.push(Q)}const p={class:`${e}`,style:c.value};return l.h("view",p,T)}}}),{componentName:qd,create:jd,scope:zd}=ae("searchbar"),Wl=jd(_d(qd,zd,Ie.CircleClose)),Hd=/scroll|auto|overlay/i,ra=window;function Kd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Wd(e,t=ra){let o=e;for(;o&&o!==t&&Kd(o);){const{overflowY:n}=window.getComputedStyle(o);if(Hd.test(n))return o;o=o.parentNode}return t}function aa(e,t=ra){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Wd(e.value,t))}),o}const ia=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Yd={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 Ud(e,t,o){return{props:{...Yd},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=aa(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),h=l.computed(()=>({[e]:!0})),v=S=>S?S.offsetTop+v(S.offsetParent):0,y=()=>{let S=0,w=0,O="down";if(c.value==window){const L=ia();s.value&&(S=v(s.value)+s.value.offsetHeight-L-window.innerHeight),w=L}else{const{scrollHeight:L,clientHeight:R,scrollTop:D}=c.value;S=L-R-D,w=D}return d.beforeScrollTop>w?O="up":O="down",d.beforeScrollTop=w,r("scroll-change",w),S<=n.threshold&&O=="down"},g=()=>{dr(()=>{if(!y()||!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",g,n.useCapture)},m=()=>{c.value&&c.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{f(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const F=l.ref(!1);return l.onActivated(()=>{F.value&&(F.value=!1,f())}),l.onDeactivated(()=>{F.value=!0,m()}),l.watch(()=>n.modelValue,S=>{S||(d.isInfiniting=!1)}),()=>{const S={class:"fox-infinite__container"},w=l.h("view",S,[a?.default?.()]),O=[];if(d.isInfiniting){let _=a?.loading?.()??null;if(!_){let p=a?.loadingIcon?.()??null;if(!p){const B={class:["fox-infinite__bottom-box__img"]};p=l.h(o,B)}const j={class:"fox-infinite__bottom-box__text"},Q=l.h("view",j,[u.loadText.value]);_=[p,Q]}const T={class:"fox-infinite__bottom-box"},k=l.h("view",T,_);O.push(k)}else if(!n.hasMore){let _=a?.finished?.()??null;if(!_){const T={class:"fox-infinite__bottom-tips"};_=l.h("view",T,[u.loadMoreText.value]),O.push(_)}}const L={class:"fox-infinite__bottom"},R=l.h("view",L,O),D={class:h.value,ref:s};return l.h("view",D,[w,R])}}}}const{componentName:Gd,create:Xd,scope:Zd}=ae("infinite-loading"),Yl=Xd(Ud(Gd,Zd,Ll)),Jd={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}},Qd=(e,t,o)=>({props:{...Jd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Bt(),c=l.ref(),d=aa(c),h=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),y=l.computed(()=>{switch(h.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""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:h.distance?`translate3d(0,${h.distance}px, 0)`:""})),f=l.computed(()=>{const D={};return n.headHeight!=50&&(D.height=Pe(n.headHeight)),D}),m=D=>{const _=+(n.pullDistance||n.headHeight);let T=D;return D>_&&(D<_*2?T=(D+_)/2:T=_+D/4),Math.round(T)},F=(D,_)=>{const T=+(n.pullDistance||n.headHeight);h.distance=D,_?h.status="loading":D===0?h.status="normal":D<T?h.status="pulling":h.status="loosing",r("change",{status:h.status,distance:D})},S=()=>h.status!=="loading"&&h.status!=="complete",w=()=>d.value==window?ia()==0:d.value&&d.value.scrollTop==0,O=D=>{S()&&(w()?(s.start(D),h.isPullRefresh=!0,h.moving=!0):(h.distance=0,h.isPullRefresh=!1))},L=D=>{S()&&h.moving&&(s.move(D),s.isVertical()&&s.state.deltaY>0&&h.isPullRefresh&&(D.cancelable&&D.preventDefault(),F(m(s.state.deltaY))))},R=()=>{h.moving=!1,h.isPullRefresh&&S()&&s.state.deltaY&&(h.status==="loosing"?(F(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):F(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>n.modelValue,D=>{D?F(+n.headHeight,!0):F(0)}),()=>{const D=[];let _=null;if(h.status==="loading"){if(_=a?.loading?.()??null,!_){const A={class:["fox-pull-refresh-container-topbox-icon"]};_=l.h(o,A)}}else h.status==="pulling"?_=a?.pulling?.()??null:h.status==="loosing"&&(_=a?.loosing?.()??null);_&&D.push(_);const T={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",T,[y.value]);D.push(k);const p={class:["fox-pull-refresh-container-topbox"],style:f.value},j=l.h("div",p,D),Q={class:"fox-pull-refresh-container",style:g.value},B=l.h("div",Q,[j,a?.default?.()]),E={ref:c,class:v.value};return Lt()?Object.assign(E,{onTouchstart:O,onTouchmove:L,onTouchend:R}):Object.assign(E,{onMousedown:O,onMousemove:L,onMouseup:R}),l.h("div",E,[B])}}}),{componentName:eh,create:th,scope:nh}=ae("pull-refresh"),Ul=th(Qd(eh,nh,Ll));function lh(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 h={class:s.value,style:c.value},v=n.default?n.default():[],y=l.h("div",h,v),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[d,y]):l.h("div",g,[y,d])}}}}const{componentName:oh,create:rh,scope:Gm}=ae("indicator"),Gl=rh(lh(oh));function ah(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 ih={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function sh(e,t,o,n=!1){return{props:{...ih},emits:["click"],setup(r,a){const i=l.ref(null),u=l.computed(()=>{const w={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(w[`${e}--${r.type??"default"}`]=!0),r.size&&(w[`${e}--${r.size}`]=!0),w}),s=l.computed(()=>{const w={},O=r.textColor??r.color;return O&&(w.color=O),w}),c=(w,O)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const R=r.highlightFilter;if(w.indexOf(R)!==-1){const _=w.replace(new RegExp(R,"g"),`<span>${R}</span>`);O.innerHTML=_,O.class["is-highlight"]=!0,L=l.h(r.tag,O)}}else if(typeof r.highlightFilter=="function"){const R=r.highlightFilter(w);R&&(O.innerHTML=R,O.class["is-highlight"]=!0,L=l.h(r.tag,O))}return L},d=w=>{a.emit("click",w)};let h="";const v=()=>{const w=i.value;if(!w)return;const O=w.clientWidth;ah(w,L=>{const R=w.innerHTML??"";de(R)||L<O||(h?o?.show(w,R,{type:"text",id:h,showArrow:r.showArrow},!0):h=o?.show(w,R,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{h&&o?.hide(h)};let g=null;const f=w=>{g||(g=setTimeout(()=>{v(),g=null},r.showAfter??0))},m=w=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{y()},r.hideAfter??0)},F=()=>{const w=i.value;w&&(w.addEventListener("mouseover",f),w.addEventListener("mouseleave",m))},S=()=>{const w=i.value;w&&(w.removeEventListener("mouseover",f),w.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||F()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||S()}),()=>{const w={onClick:d,class:u.value,style:s.value,ref:i};let O=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const T=_[0].type.toString();if(T==="Symbol(Text)"||T==="Symbol(v-txt)"){const k=$e(r.digits),p=$e(r.decimalLength),j=ue(r.autoPadding);let Q=`${_[0].children}`,B=Q.split("").reverse().join("");B=un(B,p,j,k,r.separator),Q=B.split("").reverse().join(""),r.highlightFilter!==void 0&&(O=c(Q,w)),O||(w.innerHTML=Q,O=l.h(r.tag,w))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const T=_[0].type.toString();if(T==="Symbol(Text)"||T==="Symbol(v-txt)"){const k=`${_[0].children}`;O=c(k,w),O||(w.innerHTML=k,O=l.h(r.tag,w))}}}O||(O=l.h(r.tag,w,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return O;let R=null;if(r.icon){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const T={},k=r.color;k&&(T.color=k);const p={class:_,style:T};R=l.h("view",p,l.h(r.icon))}else if(a.slots.mark){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const T={},k=r.color;k&&(T.color=k);const p={class:_,style:T};R=l.h("view",p,{default:a.slots.mark})}else{const _={[`${e}__mark`]:!0};r.type&&(_[`${e}__mark--${r.type??"default"}`]=!0);const T={},k=r.color;k&&(T["background-color"]=k);const p={class:_,style:T};R=l.h("view",p)}const D={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",D,[R,O])}}}}const{componentName:uh,create:ch,scope:fh}=ae("text"),Xl=ch(sh(uh,fh,Re,!1)),dh={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 hh(e,t,o){return{props:{...dh},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const h={[`${e}`]:!0};return n.disabled?h[`${e}__disabled`]=!0:h[`${e}__${n.type}`]=!0,h}),i=he(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 h=[];if(u.value){const f={class:s.value},m=l.h("span",f,[u.value]);h.push(m)}const v={class:c.value},y=o(n.icon,v);return y&&h.push(y),l.h("div",{class:a.value,onClick:d},h)}}}}const{componentName:mh,create:gh,scope:vh}=ae("more-button"),ph=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),Zl=gh(hh(mh,vh,ph));function yh(e){e.stopPropagation()}let bh=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=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Bt(),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),yh(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 xh(e,t){return new bh(e,t)}const wh={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]}},Sh=(e,t,o,n=!1)=>({props:{...wh},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 S=[`${e}`];return r.customClass&&S.push(r.customClass),S}),c=l.computed(()=>{const S={};return de(u.top)||(S.top=u.top),de(u.right)||(S.right=u.right),de(u.bottom)||(S.bottom=u.bottom),de(u.left)||(S.left=u.left),de(r.width)||(S.width=r.width),de(r.height)||(S.height=r.height),de(r.color)||(S.color=r.color),de(r.background)||(S.background=r.background),de(r.borderRadius)||(S["border-radius"]=r.borderRadius),de(r.zIndex)||(S["z-index"]=r.zIndex),S}),d=l.computed(()=>({[`${e}__icon`]:!0})),h=()=>{i("click")},v=l.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},g={x:0,y:0},F=xh(S=>{if(!v.value)return;const w=v.value;y(),u.left=w.offsetLeft,u.top=w.offsetTop,w.style.left=`${u.left}px`,w.style.top=`${u.top}px`,w.style.right=null,w.style.bottom=null,g.x=u.left,g.y=u.top},S=>{if(!v.value)return;const w=v.value;y(),u.left=g.x+S.x,u.top=g.y+S.y,w.style.left=`${u.left}px`,w.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&v.value){const S=[v.value];F.open(S)}}),l.onBeforeUnmount(()=>{r.draggable&&v.value&&F.close()}),()=>{let S=[];const w=typeof a.default=="function"?a.default():[];if(w&&w.length>0)S=w;else{const L=l.h(o,{class:d.value});S.push(L)}const O={ref:L=>{v.value=L},class:s.value,style:c.value,onClick:h};return l.h("view",O,S)}}}),{componentName:Th,create:$h,scope:Ch}=ae("floating-button"),Jl=$h(Sh(Th,Ch,yf,!1));function Eh(e){return e===window}const sa=e=>{const t=l.unref(e);if(Eh(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:Nh,create:kh,scope:Zm}=ae("tour"),Ph=kh({components:{Close:Ie.Close,ElPopover:x.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Nh,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:f,maskHeight:m}=e,{width:F,height:S,left:w,top:O}=r.value,L=e.steps[n.active].offset??g,R=[w+F/2,O+S/2],D=Number(f||F),_=Number(m||S);return{width:`${D+ +L.left+L.right}px`,height:`${_+L.top+L.bottom}px`,top:`${R[1]-_/2-+L.top}px`,left:`${R[0]-D/2-+L.left}px`}}),u=g=>{g=="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=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,d=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),f=sa(g);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},h=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&h()},y=(g,f=0)=>{g&&d(),e.steps,n.active=f,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{y(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{y(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:h,handleClickMask:v}}}),Ih={key:0,class:"fox-tour__content"},Oh={key:0,class:"fox-tour__content-top"},Vh={class:"fox-tour__content-inner"},Dh={class:"fox-tour__content-bottom"},Rh={class:"fox-tour__content-bottom-init"},Fh={class:"fox-tour__content-bottom-operate"},Ah={key:1,class:"fox-tour__content fox-tour__content-tile"},Mh={class:"fox-tour__content-inner"};function Lh(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",Ih,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Oh,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...h)=>e.close&&e.close(...h))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Vh,l.toDisplayString(c.content),1),l.createElementVNode("div",Dh,[l.createElementVNode("div",Rh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Fh,[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]=h=>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]=h=>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",Ah,[l.createElementVNode("div",Mh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ql=Ye(Ph,[["render",Lh]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class Bh{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=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Bt(),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 nr(e,t){return new Bh(e,t)}const lr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const or=e=>{const t=e;t.key==="Escape"&&pt.forEach(o=>o(t))},_h=e=>{l.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",or),lr&&pt.push(e)}),l.onBeforeUnmount(()=>{pt=pt.filter(t=>t!==e),pt.length===0&&lr&&document.removeEventListener("keydown",or)})},zn="fox-focus-trap.focus-after-trapped",Hn="fox-focus-trap.focus-after-released",qh="fox-focus-trap.focusout-prevented",rr={cancelable:!0,bubbles:!1},jh={cancelable:!0,bubbles:!1},ar="foxFocusAfterTrapped",ir="foxFocusAfterReleased",zh=Symbol("foxFocusTrap"),eo=l.ref(),Pn=l.ref(0),to=l.ref(0);let zt=0;const ua=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},Hh=(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},sr=(e,t)=>{for(const o of e)if(!Hh(o,t))return o},Kh=e=>{const t=ua(e),o=sr(t,e),n=sr(t.reverse(),e);return[o,n]},Wh=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),to.value=window.performance.now(),e!==o&&Wh(e)&&t&&e.select()}};function ur(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Yh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=ur(e,n),e.unshift(n)},remove:n=>{e=ur(e,n),e[0]?.resume?.()}}},Uh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(tt(n,t),document.activeElement!==o)return},cr=Yh(),Gh=()=>Pn.value>to.value,Ht=()=>{eo.value="pointer",Pn.value=window.performance.now()},fr=()=>{eo.value="keyboard",Pn.value=window.performance.now()},Xh=()=>(l.onMounted(()=>{zt===0&&(document.addEventListener("mousedown",Ht),document.addEventListener("touchstart",Ht),document.addEventListener("keydown",fr)),zt++}),l.onBeforeUnmount(()=>{zt--,zt<=0&&(document.removeEventListener("mousedown",Ht),document.removeEventListener("touchstart",Ht),document.removeEventListener("keydown",fr))}),{focusReason:eo,lastUserFocusTimestamp:Pn,lastAutomatedFocusTimestamp:to}),Kt=e=>new CustomEvent(qh,{...jh,detail:e}),{componentName:Jm,create:Zh,scope:Qm}=ae("focus-trap"),Jh={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"}},Qh=Zh({props:Jh,emits:[ar,ir,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Xh();_h(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:m,altKey:F,ctrlKey:S,metaKey:w,currentTarget:O,shiftKey:L}=f,{loop:R}=e,D=m==="Tab"&&!F&&!S&&!w,_=document.activeElement;if(D&&_){const T=O,[k,p]=Kh(T);if(k&&p){if(!L&&_===p){const Q=Kt({focusReason:i.value});o("focusout-prevented",Q),Q.defaultPrevented||(f.preventDefault(),R&&tt(k,!0))}else if(L&&[k,T].includes(_)){const Q=Kt({focusReason:i.value});o("focusout-prevented",Q),Q.defaultPrevented||(f.preventDefault(),R&&tt(p,!0))}}else if(_===T){const Q=Kt({focusReason:i.value});o("focusout-prevented",Q),Q.defaultPrevented||f.preventDefault()}}};l.provide(zh,{focusTrapRef:n,onKeydown:s}),l.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),l.watch([n],([f],[m])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",h),f.addEventListener("focusout",v)),m&&(m.removeEventListener("keydown",s),m.removeEventListener("focusin",h),m.removeEventListener("focusout",v))});const c=f=>{o(ar,f)},d=f=>o(ir,f),h=f=>{const m=l.unref(n);if(!m)return;const F=f.target,S=f.relatedTarget,w=F&&m.contains(F);ue(e.trapped)||S&&m.contains(S)||(r=S),w&&o("focusin",f),!u.paused&&ue(e.trapped)&&(w?a=F:tt(a,!0))},v=f=>{const m=l.unref(n);if(!(u.paused||!m))if(!e.escape&&ue(e.trapped)){const F=f.relatedTarget;!sl(F)&&!m.contains(F)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const S=Kt({focusReason:i.value});o("focusout-prevented",S),S.defaultPrevented||tt(a,!0)}},0)}else{const F=f.target;F&&m.contains(F)||o("focusout",f)}};async function y(){await l.nextTick();const f=l.unref(n);if(f){cr.push(u);const m=f.contains(document.activeElement)?r:document.activeElement;if(r=m,!f.contains(m)){const S=new Event(zn,rr);f.addEventListener(zn,c),f.dispatchEvent(S),S.defaultPrevented||l.nextTick(()=>{let w=e.focusStartEl;pr(w)||(tt(w),document.activeElement!==w&&(w="first")),w==="first"&&Uh(ua(f),!0),(document.activeElement===m||w==="container")&&tt(f)})}}}function g(){const f=l.unref(n);if(f){f.removeEventListener(zn,c);const m=new CustomEvent(Hn,{...rr,detail:{focusReason:i.value}});f.addEventListener(Hn,d),f.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Gh())&&tt(r??document.body,!0),f.removeEventListener(Hn,c),cr.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&y(),l.watch(()=>e.trapped,f=>{ue(f)?y():g()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:em,create:tm,scope:eg}=ae("floating-window"),nm=Symbol.for("InnerPageScopeKey"),lm=Symbol.for("PageWrapperKey"),om={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}},rm=tm({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Qh},props:{...om},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=em,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,P=>{n.value=P});const a=l.computed(()=>n.value===!1?!1:!_.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 P=["fox-floating-window"];return e.customClass&&P.push(e.customClass),P}),h=l.computed(()=>{const P={};return ct(i.value)?P.left="auto":P.left=De(i.value),ct(u.value)?P.top="auto":P.top=De(u.value),ct(s.value)?P.right="auto":P.right=De(s.value),ct(c.value)?P.bottom="auto":P.bottom=De(c.value),ct(e.zIndex)||(P["z-index"]=De(e.zIndex)),ct(R.value)||(P.height=R.value),ct(D.value)||(P.width=D.value),P}),v=l.computed(()=>e.closeIcon??Ie.Close),y=l.computed(()=>e.collapseIcon??Ie.ArrowUp),g=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),F=l.computed(()=>({[`${o}__collapse-text`]:!0})),S=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),w=l.ref(),O=l.ref(null),L=l.ref(null),R=l.computed(()=>De(e.height)||""),D=l.computed(()=>De(e.width)||""),_=l.ref(ue(e.collapse)),T=(P,H=!0)=>{_.value!==P&&(_.value=P,P?$():V(),t("update:collapse",P),P&&typeof j.onHide=="function"?j.onHide():!P&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,P=>{T(P)});const k=()=>{p()},p=P=>{P=P??!_.value,T(P)};l.provide(nm,!0);const j={setCollapse:T,setFixedNavVisible:P=>{M.value=P}};l.provide(lm,j);const Q=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},B=l.ref(null),E=l.computed(()=>!e.fixedNavTeleport),A=l.computed(()=>{const P=["fox-floating-window__fixednav"];return e.expandClass&&P.push(e.expandClass),e.collapsePosition==="left"?P.push("is-left"):e.collapsePosition==="right"&&P.push("is-right"),P}),q=l.ref(""),U=l.computed(()=>{const P={};return q.value?P.top=q.value:e.collapseTop&&(P.top=e.collapseTop),P}),J=l.ref(_.value),M=l.computed({set:P=>{J.value=P},get:()=>n.value===!1?!1:J.value});let ee=null;const C=()=>{typeof ee=="function"&&(ee(),ee=null)},$=()=>{B.value&&B.value.classList.add("slide-in"),M.value=!0,ee=()=>{B.value&&B.value.classList.remove("slide-in")}},V=()=>{B.value&&B.value.classList.add("slide-out"),ee=()=>{B.value&&B.value.classList.remove("slide-out"),M.value=!1}},I=()=>{i.value=null,u.value=null,s.value=null,c.value=null},b={x:0,y:0},ne=nr(P=>{if(!w.value)return;const H=w.value;if(I(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,b.x=i.value,b.y=u.value;else if(e.origin==="left-bottom"){const G=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=G-(H.offsetTop+H.offsetHeight),b.x=i.value,b.y=c.value}else if(e.origin==="right-bottom"){const G=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=G-(H.offsetLeft+H.offsetWidth),c.value=le-(H.offsetTop+H.offsetHeight),b.x=s.value,b.y=c.value}else{const G=document.documentElement.clientWidth||document.body.clientWidth;s.value=G-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,b.x=s.value,b.y=u.value}},P=>{if(!w.value)return;const H=w.value;I(),e.origin==="left-top"?(i.value=b.x+P.x,u.value=b.y+P.y,H.style.left=De(i.value),H.style.top=De(u.value)):e.origin==="left-bottom"?(i.value=b.x+P.x,c.value=b.y-P.y,H.style.left=De(i.value),H.style.bottom=De(c.value)):e.origin==="right-bottom"?(s.value=b.x-P.x,c.value=b.y-P.y,H.style.right=De(s.value),H.style.bottom=De(c.value)):(s.value=b.x-P.x,u.value=b.y+P.y,H.style.right=De(s.value),H.style.top=De(u.value))}),Y={x:0,y:0},K=nr(P=>{B.value&&(Y.x=B.value.offsetLeft,Y.y=B.value.offsetTop)},P=>{if(!B.value)return;const H=Y.y+P.y;q.value=`${H}px`}),Z=()=>{if(w.value){const P=w.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=P}};return l.onMounted(()=>{if(e.draggable&&w.value){const P=[];O.value&&P.push(O.value),e.footerDraggable&&(Z(),L.value&&P.push(L.value)),ne.open(P)}e.collapse===!0&&T(e.collapse,!1),B.value&&K.open(B.value)}),l.onBeforeUnmount(()=>{e.draggable&&O.value&&ne.close(),B.value&&K.close()}),{classes:d,styles:h,isShow:a,closeIcon:v,onClose:Q,dialogRef:w,headerRef:O,onClickToggle:k,collapseIcon:y,collapseText:g,collapseTextClasses:F,collapseIconClasses:S,expandIcon:f,expandText:m,isShowFixedNav:M,fixedNavRef:B,fixedNavClasses:A,fixedNavStyles:U,onAnimationEnd:C,teleportDisabled:r,fixedNavTeleportDisabled:E}}}),am={ref:"headerRef",class:"fox-floating-window__header"},im={class:"fox-floating-window__title"},sm={class:"fox-floating-window__tools"},um={class:"fox-floating-window__body"},cm={class:"fox-floating-window__fixednav__text"};function fm(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",am,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",im,l.toDisplayString(e.title),1),l.createElementVNode("div",sm,[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",um,[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",cm,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const no=Ye(rm,[["render",fm]]),dm={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 hm(e,t,o=!1){return{props:{...dm},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),h=l.ref(0),v=l.ref(n.placement),y=l.ref(!1),g=l.ref(!1),f=l.ref(null),m=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,F=(M,ee,C,$,V,I,b,z=!0)=>{const X=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,Y=M.split("-");let W=[];z?Y[0]==="top"?W=["top","bottom","right","left"]:Y[0]==="bottom"?W=["bottom","top","right","left"]:Y[0]==="left"?W=["left","top","bottom","right"]:Y[0]==="right"&&(W=["right","top","bottom","left"]):W=[M[0]];const N={top:null,right:null,bottom:null,left:null},K=[];for(let Z=0;Z<W.length;Z++){const P=W[Z];if(K[0]=P,Y[1]&&(K[1]=Y[1]),P==="top"){const H=C-b-n.arrowSize/2-n.offset;if(H>=0){N.top=H;let G=0;Y[1]==="start"?G=ee:Y[1]==="end"?G=ee+$-I:G=ee+$/2-I/2;const le=X-G-I;le<0?(G+=le,w.value=-le):w.value=0,N.left=G<0?0:G;break}}else if(P==="bottom"){const H=C+V+n.arrowSize/2+n.offset;if(H+b<=ne){N.top=H;let G=0;Y[1]==="start"?G=ee:Y[1]==="end"?G=ee+$-I:G=ee+$/2-I/2;const le=X-G-I;le<0?(G+=le,w.value=-le):w.value=0,N.left=G<0?0:G;break}}else if(P==="left"){const H=ee-I-n.arrowSize/2-n.offset;if(H>=0){N.left=H;let G=0;Y[1]==="start"?G=C:Y[1]==="end"?G=C+V-b:G=C+V/2-b/2,N.top=G<0?0:G;break}}else if(P==="right"){const H=ee+$+n.arrowSize/2+n.offset;if(H+I<=X){N.left=H;let G=0;Y[1]==="start"?G=C:Y[1]==="end"?G=C+V-b:G=C+V/2-b/2,N.top=G<0?0:G;break}}}return{bestPlacement:K.join("-"),bestInsetRect:N}},S=()=>{const M=n.visible,ee=n.autoFit;if(!rt||M===!1)return;if(n.reference){const b=m(),z=pl(b);s.value=z.x,c.value=z.y,d.value=b.offsetWidth,h.value=b.offsetHeight}else n.referenceInset&&(s.value=n.referenceInset.left,c.value=n.referenceInset.top,d.value=n.referenceInset.right-n.referenceInset.left,h.value=n.referenceInset.bottom-n.referenceInset.top);const C=f.value.offsetWidth,$=f.value.offsetHeight,{bestPlacement:V,bestInsetRect:I}=F(n.placement,s.value,c.value,d.value,h.value,C,$,ee);v.value=V,u.value=I},w=l.ref(0),O=lt(()=>{S()},10),L=l.ref(n.visible);l.watch([()=>n.visible],([M])=>{L.value=M,M?(y.value=M,setTimeout(()=>{S(),g.value=!0},0)):g.value=!1});const R=l.computed(()=>L.value&&D.value),D=l.ref(!0),_=lt(M=>{const ee=M[0];ee&&(D.value=ee.isIntersecting)},10),T=new IntersectionObserver(_);l.watch([()=>n.reference,()=>n.referenceInset],([M,ee],[C,$])=>{!M&&!ee||(setTimeout(()=>{S()},0),n.autoFit&&(C&&(Ot.unwatch(C,O),T.unobserve(C)),M&&(Ot.watch(M,O),T.observe(M))))},{immediate:!0}),l.onBeforeUnmount(()=>{n.reference&&(Ot.unwatch(n.reference,O),T.unobserve(n.reference),T.disconnect())});const k=l.computed(()=>{const M={[e]:!0};return v.value.startsWith("top")?M["is-top"]=!0:v.value.startsWith("right")?M["is-right"]=!0:v.value.startsWith("bottom")?M["is-bottom"]=!0:v.value.startsWith("left")&&(M["is-left"]=!0),M[`is-${n.effect}`]=!0,!g.value&&R.value&&(M["is-opacity"]=!0),g.value&&R.value&&(M["is-show"]=!0),R.value||(M["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(M[`${n.customClass}`]=!0),M}),p=l.computed(()=>{const M={};return u.value.top!==null&&(M.top=`${u.value.top}px`),u.value.right!==null&&(M.right=`${u.value.right}px`),u.value.bottom!==null&&(M.bottom=`${u.value.bottom}px`),u.value.left!==null&&(M.left=`${u.value.left}px`),n.width&&(M.width=n.width),n.zIndex&&(M["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(M,n.customStyle),M}),j=()=>{L.value=!1,r("update:visible",!1)},Q=()=>{if(!n.showOverlay)return null;const M={class:`${e}__overlay`,onClick:j};return l.h("div",M)},B=()=>{let M=null;return a.title?M=l.h("div",{class:`${e}__title`},{default:a.title}):n.title&&(M=l.h("div",{class:`${e}__title`},[n.title])),M},E=l.computed(()=>({[`${e}__arrow`]:!0})),A=l.computed(()=>{const M={};return n.showArrow?(M.width=`${n.arrowSize}px`,M.height=`${n.arrowSize}px`,v.value==="top"?(M.left="50%",M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="top-start"?(M.left=`${n.arrowOffset+w.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="top-end"?(M.right=`${n.arrowOffset-w.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="right"?(M.left="0",M.top="50%",M.transform="translate(-50%, -50%)"):v.value==="right-start"?(M.left="0",M.top=`${n.arrowOffset}px`,M.transform="translate(-50%, 50%)"):v.value==="right-end"?(M.left="0",M.bottom=`-${n.arrowOffset}px`,M.transform="translate(-50%, 50%)"):v.value==="bottom"?(M.left="50%",M.top="0",M.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(M.left=`${n.arrowOffset+w.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(M.right=`${n.arrowOffset-w.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):v.value==="left"?(M.right="0",M.top="50%",M.transform="translate(50%, -50%)"):v.value==="left-start"?(M.right="0",M.top=`${n.arrowOffset}px`,M.transform="translate(50%, -50%)"):v.value==="left-end"&&(M.right="0",M.bottom=`-${n.arrowOffset}px`,M.transform="translate(50%, -50%)"),M):{display:"none"}}),q=()=>{const M={class:E.value,style:A.value};return l.h("div",M)},U=()=>{L.value===!1&&(y.value=!1)},J=M=>{if(!f.value||L.value===!1)return;const{relatedTarget:ee}=M;f.value.contains(ee)||(L.value=!1,r("update:visible",!1))};return i({doLayout:S}),()=>{if(!y.value)return null;const M=[],ee=Q();ee&&M.push(ee);const C=[],$=B();if($&&C.push($),a.default){const z=a.default();C.push(z)}const V=q();V&&C.push(V);const I={ref:f,class:k.value,style:p.value,onAnimationend:U};n.leaveHide&&(I.onMouseleave=J);const b=l.h("div",I,{default:()=>C});return M.push(b),M}}}}const{componentName:mm,create:gm,scope:vm}=ae("popover-dialog"),lo=gm(hm(mm,vm,!1));function pm(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Fr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:tg,create:ym,scope:ng}=ae("domain-provider"),oo=ym(pm()),bm={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 xm(e,t){return{inheritAttrs:!1,props:bm,setup(o,{slots:n}){if(rt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,y)=>{if(d===null){a.set(v,{visible:null,callback:y});return}r.has(v)&&d.unobserve(v),r.set(v,{visible:null,callback:y}),d.observe(v)},u=v=>{if(d===null){a.delete(v);return}r.has(v)&&(r.delete(v),d.unobserve(v))};let s=o.initialVisibleObserverSize;yi({acquire:()=>{const v=s>0;return s--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const h=(v,y,g)=>{d=new IntersectionObserver(f=>{for(let m of f){let F=!1;m.intersectionRatio>0&&(F=!0);const S=r.get(m.target);if(S)try{if(o.loadPolicy==="lazy"&&!F&&S.visible!==null)return;S.visible=F,S.callback(F)}catch(w){console.error(w)}}},{root:v,rootMargin:y,threshold:g}),a.forEach((f,m)=>{r.set(m,f),d?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,y])=>{if(y||!v||d)return;let g=null;typeof v=="string"?g=document.querySelector(v):g=v,g&&h(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:lg,create:wm,scope:og}=ae("rolling-provider"),ro=wm(xm()),Sm=[fl,hl,ml,gl,vl,Ee,yl,bl,Mt,xl,wl,Sl,Tl,$l,Cl,El,Nl,kl,Pl,Il,Nn,Ol,Vl,Dl,Rl,Fl,Al,Ml,Bl,_l,ql,jl,zl,kn,Hl,Kl,Wl,Yl,Ul,Rt,En,Gl,Xl,Zl,Jl,Ql,no,lo,oo,ro],Tm=new Za(Sm,[ei],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>x.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>x.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>x.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>x.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>x.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>x.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>x.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>x.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>x.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>x.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>x.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>x.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>x.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>x.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>x.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>x.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>x.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>x.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>x.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>x.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>x.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>x.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>x.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>x.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>x.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>x.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>x.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>x.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>x.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>x.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>x.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>x.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>x.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>x.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>x.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>x.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>x.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>x.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>x.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>x.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>x.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>x.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>x.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>x.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>x.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>x.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>x.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>x.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>x.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>x.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>x.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>x.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>x.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>x.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>x.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>x.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>x.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>x.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>x.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>x.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>x.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>x.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>x.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>x.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>x.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>x.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>x.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>x.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>x.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>x.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>x.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>x.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>x.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>x.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>x.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>x.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>x.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>x.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>x.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>x.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>x.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>x.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>x.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>x.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>x.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>x.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>x.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>x.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>x.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>x.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>x.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>x.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>x.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>x.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>x.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>x.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>x.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>x.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>x.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>x.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>x.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>x.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>x.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>x.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>x.ElWatermark});exports.AutocompleteItem=kl;exports.Broadcast=ul;exports.BroadcastKey=be;exports.CascaderItem=Nl;exports.CheckboxItem=Dl;exports.Content=gl;exports.DataItemsKey=vt;exports.DateItem=Sl;exports.DateUtils=Be;exports.DialogItem=zl;exports.Domain=gn;exports.DomainKey=Le;exports.DomainProvider=oo;exports.FloatingButton=Jl;exports.FloatingWindow=no;exports.FooterBar=ml;exports.FoxAutocompleteItem=kl;exports.FoxCascaderItem=Nl;exports.FoxCheckboxItem=Dl;exports.FoxContent=gl;exports.FoxDateItem=Sl;exports.FoxDialogItem=zl;exports.FoxDomainProvider=oo;exports.FoxFloatingButton=Jl;exports.FoxFloatingWindow=no;exports.FoxFooterBar=ml;exports.FoxGroup=vl;exports.FoxGroupSetting=Ml;exports.FoxHeaderBar=hl;exports.FoxHintText=Mt;exports.FoxIndicator=Gl;exports.FoxInfiniteLoading=Yl;exports.FoxInputItem=xl;exports.FoxInputNumberItem=El;exports.FoxItem=Ee;exports.FoxMapping=Rt;exports.FoxMoneyItem=Cl;exports.FoxMoreButton=Zl;exports.FoxOverLay=kn;exports.FoxPage=fl;exports.FoxPopoverDialog=lo;exports.FoxPopup=Hl;exports.FoxPrice=En;exports.FoxPullRefresh=Ul;exports.FoxRadioItem=Vl;exports.FoxRateItem=Rl;exports.FoxRollingProvider=ro;exports.FoxRowItem=bl;exports.FoxSearchBar=Wl;exports.FoxSelectItem=wl;exports.FoxSlotItem=yl;exports.FoxStepsBar=jl;exports.FoxSwitchItem=Fl;exports.FoxTableItem=Ol;exports.FoxTableMappingColumn=Pl;exports.FoxTableRadioColumn=Il;exports.FoxTableSetting=Nn;exports.FoxTabsBar=Bl;exports.FoxTabsContainer=_l;exports.FoxTabsPane=ql;exports.FoxText=Xl;exports.FoxTimeItem=Tl;exports.FoxTimeSelectItem=$l;exports.FoxToast=Kl;exports.FoxTour=Ql;exports.FoxTreeSelectItem=Al;exports.Group=vl;exports.GroupSetting=Ml;exports.HeaderBar=hl;exports.HintText=Mt;exports.Indicator=Gl;exports.InfiniteLoading=Yl;exports.InputItem=xl;exports.InputNumberItem=El;exports.Item=Ee;exports.Mapping=Rt;exports.MoneyItem=Cl;exports.MoreButton=Zl;exports.OverLay=kn;exports.Page=fl;exports.PopoverDialog=lo;exports.Popup=Hl;exports.Price=En;exports.PriorityPolicy=_e;exports.PullRefresh=Ul;exports.RadioItem=Vl;exports.RateItem=Rl;exports.RollingProvider=ro;exports.RowItem=bl;exports.SearchBar=Wl;exports.SelectItem=wl;exports.SlotItem=yl;exports.StepsBar=jl;exports.SwitchItem=Fl;exports.TableItem=Ol;exports.TableMappingColumn=Pl;exports.TableRadioColumn=Il;exports.TableSetting=Nn;exports.TabsBar=Bl;exports.TabsContainer=_l;exports.TabsPane=ql;exports.Text=Xl;exports.TimeItem=Tl;exports.TimeSelectItem=$l;exports.Toast=Kl;exports.Tour=Ql;exports.TreeSelectItem=Al;exports.UniqueID=Yr;exports.ValidateSchema=Vr;exports.ValidateSchemaKey=Ke;exports.cancelRaf=ga;exports.clearNonNumber=Na;exports.clone=Jn;exports.compareTo=Gn;exports.createBroadcast=dn;exports.createValidateSchema=hn;exports.debounce=lt;exports.debounceRef=_a;exports.decimalLength=Er;exports.default=Tm;exports.defineBroadcast=Oa;exports.defineConfigDomain=Fr;exports.defineDataItem=Ar;exports.defineDomain=cl;exports.defineItem=Ne;exports.definePageState=Lr;exports.defineSimpleItem=Mr;exports.deleteGlobalValidator=Aa;exports.disabledProperty=Me;exports.divide=al;exports.excludeProps=Oe;exports.extend=mt;exports.floatData=Ia;exports.getGlobalValidateCheckEvents=Pr;exports.getGlobalValidateResetEvents=Or;exports.getPageContentAreaHeight=on;exports.getPageContentAreaWidth=rn;exports.getPageFooterAreaHeight=yn;exports.getPageHeaderAreaHeight=pn;exports.getRootDomain=yt;exports.hasSymbol=xr;exports.includeProps=Nr;exports.indexOf=ka;exports.integerLength=Cr;exports.isArray=pa;exports.isArrayLike=Sr;exports.isBrowser=rt;exports.isDate=xa;exports.isESModule=Sa;exports.isEmptyString=de;exports.isEqual=Je;exports.isFunction=Xn;exports.isHidden=fn;exports.isInnerPage=za;exports.isMap=ya;exports.isNil=sl;exports.isNumberString=$r;exports.isObject=Qe;exports.isPlainObject=Zn;exports.isPromise=yr;exports.isRegExp=Qn;exports.isSet=ba;exports.isString=pr;exports.isSubPage=Ha;exports.isSymbol=wa;exports.isTouch=Lt;exports.isWindow=wr;exports.lastIndexOf=Pa;exports.makeArray=Ea;exports.merge=Tr;exports.multiply=mr;exports.negate=gr;exports.nextTick=$a;exports.numberFormat=un;exports.objectToString=br;exports.once=qa;exports.overrideGlobalValidateHandler=Ra;exports.property=Fe;exports.raf=il;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Ma;exports.setGlobalValidateHandler=Da;exports.setGlobalValidateMessages=Ba;exports.setGlobalValidateResetEvents=La;exports.setGlobalValidator=Fa;exports.throttle=Rr;exports.toBoolean=ue;exports.toNumber=$e;exports.toPadding=Ue;exports.toPx=me;exports.toPxDesc=Pe;exports.toTypeString=cn;exports.toValue=he;exports.tryTimes=mn;exports.typeOf=nn;exports.unNumberFormat=vr;exports.updatePageState=el;exports.useBroadcast=Pt;exports.useDomain=at;exports.useExpose=we;exports.useInnerSize=bn;exports.usePageState=vn;exports.usePosition=pl;exports.useRawTouch=Bt;exports.useRect=sa;exports.useSize=dl;exports.useTouch=Yf;exports.valueLength=At;
5
+ */function tn(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=ke(e),t=ke(t),[e,t]=rl(ke(e),ke(t)),o==1&&(n==1?e=Dn(e):t=Dn(t));let r=hr(e,t);return o?o==2?"-"+ke(r):e.length<r.length?ke(r.substring(1)):"-"+ke(Dn(r)):ke(r)}function Dn(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 hr(t,a)}function ke(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 rl(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 hr(e,t){[e,t]=rl(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 ye=(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))(ye||{});function Vt(e,t=0,o=ye.HALF_EVEN){if(o===ye.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=Vt(e,0,o),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,ao(r[1],a,n,o)?(n?"-":"")+Rn(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&&ao(u,i,n,o)&&(i=Rn(i),i.length>t)?(n?"-":"")+Rn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function ao(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!o&&n===ye.FLOOR||o&&n===ye.CEILING)return!1;if(n===ye.UP||o&&n===ye.FLOOR||!o&&n===ye.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 ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rn(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 Kn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let 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 v=0;for(let y=t.length-1;y>=c&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(v+=parseInt(e[s[y]--])*parseInt(t[y]));v+=u,u=Math.floor(v/10),d=v%10+d,c--}return d=Ct(ga(d,a)),o==1&&(d="-"+d),d}function ga(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Wn(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=ke(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=ke(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=ke(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=ke(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=ke(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=tn(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?"-":"")+ke(Vt(u,o-2))}function Yn(e,t){return e=e.toString(),t=t.toString(),t=Un(t),tn(e,t)}function Un(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function io(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),so(e),so(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Yn(e,Kn(t,Vt(Wn(e,t),0,ye.FLOOR)));return o+n}function so(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function uo(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]=rl(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 fe{value;static RoundingModes=ye;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=ke(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+ke(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=fe.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=fe.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 fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ye.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Vt(t,o,n)}round(t=0,o=ye.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(Vt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),tn(t,o)}add(t){return new fe(tn(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),Yn(t,o)}subtract(t){return new fe(Yn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),Kn(t,o)}multiply(t){return new fe(Kn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),Wn(t,o,n)}divide(t,o){return new fe(Wn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),io(t,o)}modulus(t){return new fe(io(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),uo(t,o)}compareTo(t){return uo(this.value,t.getValue())}static negate(t){return t=fe.validate(t),Un(t)}negate(){return new fe(Un(this.value))}}function mr(e,t){return fe.multiply(`${e}`,`${t}`)}function al(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function Gn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function gr(e){return fe.negate(e)}function un(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="",v=u.split("").reverse();for(let y=0;y<v.length;y++)m+=v[y]+((y+1)%n==0&&y+1!=v.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 vr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const il=dr,va=Array.isArray,pa=e=>cn(e)==="[object Map]",ya=e=>cn(e)==="[object Set]",ba=e=>e instanceof Date,Xn=e=>typeof e=="function",pr=e=>typeof e=="string",xa=e=>typeof e=="symbol",et=e=>e!==null&&typeof e=="object",yr=e=>et(e)&&Xn(e.then)&&Xn(e.catch),br=Object.prototype.toString,cn=e=>br.call(e),Zn=e=>cn(e)==="[object Object]",xr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function wa(e){return e.__esModule||xr&&e[Symbol.toStringTag]==="Module"}const Sa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function mt(...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]=mt(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function Jn(e,t,o=!1){if(!o)mt(!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)&&!Zn(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)&&!Zn(i))continue;a=Jn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Fn=Sa?Promise.resolve():null;function Ta(e,...t){Fn!==null?t&&t.length>0?Fn.then(()=>{e(t)}):Fn.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 $e(e){return typeof e=="number"?e:Number(e)}const $a={"[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 nn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):$a[o]||"object"}function wr(e){return e&&typeof e=="object"&&"setInterval"in e}function fn(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Sr(e){let t=!!e&&"length"in e&&e.length,o=nn(e);return o==="function"||wr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Tr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function Ca(e,t=[]){let o=t;return e!=null&&(Sr(Object(e))?Tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Qe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=nn(e),n=nn(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(!Qe(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(!Qe(a,i))return!1}return!0}return!1}const rt=typeof window<"u";function sl(e){return e==null}function Qn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function $r(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Cr(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 Er(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 co(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 Ea(e,t=!0,o=!0){t?e=co(e,".",/\./g):e=e.replace(/\./g,""),o?e=co(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Na(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Qe(e,o))return!0}):t.indexOf(e)}function ka(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Qe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Nr(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 Pa=(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},be=Symbol.for("BroadcastKey");class ul{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==="+"||Qn(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="*"):Qn(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 dn(e,t,o,n){const r=new ul(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Ia(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new ul(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function Pt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}const dt=e=>e.default??e;class Oa{error(t,o){const n=o,r=o||l.hasInjectionContext()?Pt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Pt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Pt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Pt(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 It=new Oa;function Va(e){It=e}function Da(e){It?Object.assign(It,e):It=e}function Ra(e,t){dt(ft).setValidator(e,t)}function Fa(e){dt(ft).deleteValidator(e)}let kr=["blur","clear"];function Aa(e){kr=e}function Pr(){return kr}let Ir=["focus","change","setValue"];function Ma(e){Ir=e}function Or(){return Ir}function La(e){dt(ft).messages(e)}function Et(...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 qt(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 Vr{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=qt(Et(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=qt(n);const r=Et(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?dt(ft).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?dt(ft).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return dt(ft).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=Et(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=qt(t):this.rules=qt([t]);const n=Et(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=Et(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=dt(ft),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(m=>{if(m.pass)this.success();else{let v="error";Array.isArray(m.errors)&&m.errors.length>0&&(v=m.errors[0].message??v,m.errors=[m.errors[0]],m.errors[0].ref=c),this.error(v)}return m}).catch(m=>{const v=m.message??`${m}`;return this.error(v),m})}}return Promise.resolve({pass:!0})}}function hn(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 Vr(t,o,e)}const ln=Symbol.for("EventEmitterKey");class Dr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function qe(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Ba(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function _a(e,t){const o=qe((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function qa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function mn(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 Le=Symbol("DomainKey"),vt=Symbol("DataItemsKey");class gn{_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 ja=new gn;function yt(){return ja}function at(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const An=Symbol("OriginalDateKey");function cl(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=yt());const u=e||t.prop||t.name;let s=new gn(u);s.parent=i;const c=f=>{a[An]||v(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[An]??null,v=f=>{const h={};mt(!0,h,l.toRaw(f)),a[An]=h};l.isReactive(t)||typeof t=="function"?l.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&v(t.modelValue);const y=(f,h)=>{s?.set(f,h)},p=f=>s?.getForSelf(f)??null;if(a[Le]=s,l.provide(Le,s),r!==null){const f=l.inject(be,null),h=dn(a,f,u,n);s.broadcast=h,a[be]=h,l.provide(be,h),a.broadcast=(S,B,...q)=>Reflect.apply(h.emit,h,[S,B,...q]);const R=l.inject(We,null),T=hn(a,R,{componentName:""});s.validateSchema=T,a[We]=T,l.provide(We,T),a[vt]=new Map,a.validate=(S=!0)=>{const B=[];let q=null;const O={deep:!1};if(S===!0)q={name:"*"};else if(Array.isArray(S)&&S.length>0){const k=S;q={name:V=>V?k.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const k=S;if(Object.assign(O,k),Array.isArray(k.include)&&k.include.length>0){const V=k.include;q={name:w=>w?V.indexOf(w)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const V=k.exclude;q={name:w=>w?V.indexOf(w)===-1:!1}}else q={name:"*"}}if(q){const k=h?.emitToChildren(q,"validate",O);k&&Reflect.apply([].push,B,k)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(k=>{let V=[];return k.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(V=[...V,...w.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,B=!0,q=!1)=>{if(q===!0){Reflect.ownKeys(S).forEach(k=>{let V=String(k);const w={componentName:"",fieldName:V,pureDataValidate:!0};if(s){const j=Fr(s,V,w,h,T);a[vt].set(V,j);const g=S[V];g&&j.validateSchema.setRule(g)}});return}if(B){const O=Reflect.ownKeys(S),k={name:V=>O.includes(V),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(k,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let B=null;if(S===!0)B={name:"*"};else if(Array.isArray(S)&&S.length>0){const q=S;B={name:O=>O?q.indexOf(O)!==-1:!1}}else if(S!=null&&typeof S=="object"){const q=S;if(Array.isArray(q.include)&&q.include.length>0){const O=q.include;B={name:k=>k?O.indexOf(k)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const O=q.exclude;B={name:k=>k?O.indexOf(k)===-1:!1}}else B={name:"*"}}B&&h?.emitToChildren(B,"clearValidate",!1)},a.resetFields=S=>{const B=d();if(!B)return;const q={};if(mt(!0,q,m()??{}),Array.isArray(S))S.forEach(O=>{B[O]=q[O]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(k=>{B[k]=q[k]});else if(S&&Array.isArray(S.exclude)){let O=S.exclude??[];Reflect.ownKeys(q).forEach(k=>{O.includes(k)||(B[k]=q[k])})}else Object.assign(B,q);a.clearValidate(S)},a.setModelValue=(S,B)=>{if(!B||B===u)c(S);else{const q={name:B,messagingPolicy:"Once"};h?.emitToChildren(q,"setModelValue",S)}},a.getModelValue=()=>d(),a.setDomainProperty=(S,B)=>{y(S,B)},a.getDomainProperty=S=>p(S),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[be]=void 0,l.provide(be,null)),s?.destroy(),a[Le]=void 0,l.provide(Le,null),a[vt]&&(a[vt].clear(),a[vt]=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 Rr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=yt());const i=e||t.prop||t.name;let u=new gn(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[Le]=u,l.provide(Le,u),l.onUnmounted(()=>{u?.destroy(),r[Le]=void 0,l.provide(Le,null),u=null,r=null}),u}function Ne(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let u=dn(r,i,a,o);r[be]=u,l.provide(be,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=hn(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,R=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)R=!0,h=!0;else if(p&&typeof p=="object"){const T=p,S=T.ignoreDisabled??!0,B=T.ignoreReadonly??!0,q=T.ignoreHidden??!0;S===!0&&e.disabled===!0||B===!0&&e.readonly===!0||q===!0&&fn(r.$el)?R=!1:(Array.isArray(T.include)&&T.include.indexOf(a)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(a),R=!0),h=T.deep??!1}else typeof p=="boolean"&&(h=p),R=!0;if(R){const T=c?.validate();f.push(T)}if(h){let T=null;const S={deep:!1};if(p===!0)T={name:"*"};else if(Array.isArray(p)&&p.length>0){const B=p;T={name:q=>q?B.indexOf(q)!==-1:!1}}else if(p!=null&&typeof p=="object"){const B=p;if(Object.assign(S,B),Array.isArray(B.include)&&B.include.length>0){const q=B.include;T={name:O=>O?q.indexOf(O)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;T={name:O=>O?q.indexOf(O)===-1:!1}}else T={name:"*"}}if(T&&u){const B=u.emitToChildren(T,"validate",S);Reflect.apply([].push,f,B)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(T=>{let S=[];return T.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(S=[...S,...B.errors])}),S.length>0?{pass:!1,errors:S}:{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 R={name:T=>Reflect.ownKeys(p).includes(T)};u.emitToChildren(R,"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:R=>R?h.indexOf(R)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const R=h.include;f={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const R=h.exclude;f={name:T=>T?R.indexOf(T)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Dr(r);r[ln]=d;const m=qe((p="validate")=>{c&&(p==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Pr()).forEach(p=>{d&&d.on(p,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Or()).forEach(p=>{d&&d.on(p,f=>{m("reset")})}),setTimeout(function(){u?.pull()},0),l.onUnmounted(()=>{u?.destroy(),r[be]=void 0,l.provide(be,null),u=null,c?.destroy(),r[We]=void 0,l.provide(We,null),c=null,d?.destroy(),r[ln]=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 Fr(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=hn({},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 v=!1,y=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)y=!0,v=!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),y=!0,v=p.deep??!1}else typeof d=="boolean"&&(v=d),y=!0;if(y&&s){const p=s.validate();m.push(p)}if(v){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:R=>R?h.indexOf(R)!==-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 R=h.include;p={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const R=h.exclude;p={name:T=>T?R.indexOf(T)===-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=dn(null,n,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Ar(){let t=l.getCurrentInstance()?.proxy,o=new Dr(t);return t[ln]=o,l.onUnmounted(()=>{o?.destroy(),t[ln]=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 Pe=(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(rt){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 ot="PageStateKey";function Ge(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 el(e,t,o={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ge(o.headerPadding??t.headerPadding),e.footerHeight=me(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ge(o.footerPadding??t.footerPadding),e.contentPadding=Ge(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 Mr(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;el(n,a,t,!0,i,u,s,c);const d=l.reactive(n),m=e.getForParent(ot);m&&(n.height=on(e,m),n.width=rn(e,m),l.watch([()=>on(e,m),()=>rn(e,m)],([y,p])=>{d.height=y,d.width=p}));const v=!m;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,p,f=-1,h=-1,R=0,T=0])=>{el(d,p,t,v,f,h,R,T)}),e.set(ot,d),d}function vn(e){return e.get(ot)}function pn(e,t){if(t=t??e.get(ot),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yn(e,t){if(t=t??e.get(ot),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function on(e,t){if(t=t??e.get(ot),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pn(e,t),n=yn(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function rn(e,t){return t=t??e.get(ot),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function za(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ha(e){return!!e.getForParent(ot)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function jt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,o=1,n){const r=at();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(jt(s,n))return s}const i=e.value;return jt(i,n)?i:null}):l.computed(()=>{const a=e.value;if(jt(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(jt(s,n))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,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 Lr=new Map,an=new Map;let tl=null;function Ka(e){tl=e}function Br(e,t,o){if(o){let n=an.get(o);n||(n=new Map,an.set(o,n)),n.set(e,t)}else Lr.set(e,t)}function Ye(e,t,o){!o&&tl&&(o=tl(e)??void 0);let n=null;if(o){let r=an.get(o);r&&(n=r.get(t))}return n||(n=Lr.get(t)),n}function Wa(e,t){for(let o in e){const n=e[o];Br(o,n,t)}}function Ya(e){an.delete(e)}function Ua(){return{top:0,left:0,bottom:0,right:0}}function Ga(){if(rt){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 Xa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Za{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=Xa(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=qe(()=>{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=mt({},Ua(),t.safeAreaInset),i=Ga(),u=mt({},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){Ka(t)}setAPI(t,o,n){Br(t,o,n)}getAPI(t,o,n){return Ye(t,o,n)}batchSetAPI(t,o){Wa(t,o)}clearScopeAPI(t){Ya(t)}getRootDomain(){return yt()}}const Ja=[x.ElAffix,x.ElAlert,x.ElAutocomplete,x.ElAutoResizer,x.ElAvatar,x.ElBacktop,x.ElBadge,x.ElBreadcrumb,x.ElBreadcrumbItem,x.ElButton,x.ElButtonGroup,x.ElCalendar,x.ElCard,x.ElCarousel,x.ElCarouselItem,x.ElCascader,x.ElCascaderPanel,x.ElCheckTag,x.ElCheckbox,x.ElCheckboxButton,x.ElCheckboxGroup,x.ElCol,x.ElCollapse,x.ElCollapseItem,x.ElCollapseTransition,x.ElColorPicker,x.ElConfigProvider,x.ElContainer,x.ElAside,x.ElFooter,x.ElHeader,x.ElMain,x.ElDatePicker,x.ElDescriptions,x.ElDescriptionsItem,x.ElDialog,x.ElDivider,x.ElDrawer,x.ElDropdown,x.ElDropdownItem,x.ElDropdownMenu,x.ElEmpty,x.ElForm,x.ElFormItem,x.ElIcon,x.ElImage,x.ElImageViewer,x.ElInput,x.ElInputNumber,x.ElLink,x.ElMenu,x.ElSubMenu,x.ElMenuItem,x.ElMenuItemGroup,x.ElPageHeader,x.ElPagination,x.ElPopconfirm,x.ElPopover,x.ElPopper,x.ElProgress,x.ElRadio,x.ElRadioButton,x.ElRadioGroup,x.ElRate,x.ElResult,x.ElRow,x.ElScrollbar,x.ElSelect,x.ElOption,x.ElOptionGroup,x.ElSelectV2,x.ElSkeleton,x.ElSkeletonItem,x.ElSlider,x.ElSpace,x.ElSteps,x.ElStep,x.ElSwitch,x.ElTable,x.ElTableColumn,x.ElTableV2,x.ElTabs,x.ElTabPane,x.ElTag,x.ElTimePicker,x.ElTimeSelect,x.ElTimeline,x.ElTimelineItem,x.ElTooltip,x.ElTransfer,x.ElTree,x.ElTreeSelect,x.ElTreeV2,x.ElUpload,x.ElStatistic,x.ElCountdown,x.ElSegmented,x.ElAnchor,x.ElAnchorLink,x.ElWatermark,x.ElMessageBox,x.ElMessage,x.ElNotification],Qa=[x.ElInfiniteScroll,x.ElLoading,x.ElMessage,x.ElMessageBox,x.ElNotification,x.ElPopoverDirective],ei=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Qa.forEach(r=>{e.use(r)})};function ae(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 we(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}},_r={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}},qr={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}},jr=[];for(const e in qr)jr.push(e);const ti=Symbol.for("InnerPageScopeKey"),ni={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}},li=(e,t)=>({inheritAttrs:!0,props:{...Ce,..._r,...ni},setup(o,{slots:n}){const r=cl(o.name,o),a=l.inject(ti,!1);if(r){const d=Mr(r,o);we({getPageContentHeight:()=>on(r,d),getPageContentWidth:()=>rn(r,d),getPageHeaderHeight:()=>pn(r,d),getPageFooterHeight:()=>yn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,m=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(d,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[v,y])=>{if(d&&v){const p=l.toRaw(v),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(T=>{h.includes(T)||(f[T]=[])}),c(f)}if(m&&y){const p=l.toRaw(y),f=l.toRaw(m),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(T=>{h.includes(T)||(f[T]=[])}),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:oi,create:ri,scope:Cm}=ae("page"),fl=ri(li(oi));function dl(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function bn(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 ai=(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=at(),u=i?vn(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,v=l.computed(()=>{const g={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const L=Ge(r.padding??u.headerPadding);return Object.assign(g,L),m&&(u.headerHeight=m),u.headerHeight>0&&(g.height=u.headerHeight),g.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,g.safeAreaTop>0&&(g.top=g.safeAreaTop+(L.top??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaTop)),g}if(m&&(g.height=m),r.padding){const L=Ge(r.padding);Object.assign(g,L)}return g}),y=l.ref(null),p=()=>{if(u&&y.value&&!fn(y.value)){if(!n){const g=dl(y.value);u.headerAllHeight=g.height}return u.headerMounted=!0,!0}return!1},f=qe(p,120);let h=null;l.onMounted(()=>{u&&(mn(p,50,5,50,!0),window.ResizeObserver&&y.value&&(h=new window.ResizeObserver(f),h.observe(y.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const R=l.computed(()=>{const g={};return v.value.height!==null&&v.value.height!==void 0&&(g.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(g.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(g.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(g.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(g.paddingBottom=`${v.value.bottom}px`),g}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function S(){a.emit("back")}function B(){a.emit("click-title")}function q(){a.emit("click-right")}function O(){a.emit("click-right-text")}const k=()=>{if(!r.leftShow)return null;const g=[];if(a.slots.left)g.push(a.slots.left());else{if(a.slots.leftIcon){const L=l.h("view",{class:"left-icon",onClick:S},[a.slots.leftIcon()]);g.push(L)}else if(r.leftIcon){const L=l.h("view",{class:"left-icon",onClick:S},[l.h(r.leftIcon)]);g.push(L)}if(r.leftText){const L=l.h("view",{class:"left-text",onClick:S},[r.leftText]);g.push(L)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__left"},g)},V=()=>{if(!r.rightShow)return null;const g=[];if(a.slots.right)g.push(a.slots.right());else{if(r.rightText){const L=l.h("view",{class:"right-text",onClick:O},[r.rightText]);g.push(L)}if(a.slots.rightIcon){const L=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);g.push(L)}else if(r.rightIcon){const L=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);g.push(L)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__right"},g)},w=()=>{if(!r.titleShow)return null;const g=[],L=a.slots.default?a.slots.default():null;if(L)g.push(L);else{if(r.title){const Z=l.h("view",{class:"title-text"},[r.title]);g.push(Z)}if(a.slots.titleIcon){const Z=l.h("view",{class:"title-icon",onClick:B},[a.slots.titleIcon()]);g.push(Z)}else if(r.titleIcon){const Z=l.h("view",{class:"title-icon",onClick:B},[l.h(r.titleIcon)]);g.push(Z)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__title"},g)},j=()=>{const g=[],L=a.slots.bottom?a.slots.bottom():null;return L&&g.push(L),g.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},g)};return()=>{if(!T.value)return null;const g=[];if(a.slots.all)g.push(a.slots.all());else{const Z=[],M=k();M&&Z.push(M);const E=w();E&&Z.push(E);const F=V();if(F&&Z.push(F),Z.length>0){const U=l.h("view",{class:d.value},Z);g.push(U)}const _=j();_&&g.push(_)}if(g.length===0)return null;const L={class:c.value,style:R.value,ref:y};return l.h("view",L,g)}}}),{componentName:ii,create:si,scope:ui}=ae("header-bar"),hl=si(ai(ii,ui,Ie.ArrowLeft));function ci(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=at(),i=a?vn(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=Ge(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=Ge(n.padding);Object.assign(f,h)}return f}),d=l.ref(null),m=()=>{if(i&&d.value&&!fn(d.value)){if(!o){const f=dl(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},v=qe(m,120);let y=null;l.onMounted(()=>{i&&(mn(m,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(v),y.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const p=l.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=Pe(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=Pe(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=Pe(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=Pe(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=Pe(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:fi,create:di,scope:Em}=ae("footer-bar"),ml=di(ci(fi));function hi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:n,attrs:r}){const a=at(),i=l.computed(()=>({[e]:!0})),u=a?vn(a):null,s=l.computed(()=>{const y={};if(a&&u){if(o.padding){const q=Ge(o.padding);Object.assign(u.contentPadding,q)}const p=pn(a,u),f=yn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,y.height=h;let R=(u&&u.contentPadding&&u.contentPadding.top)??-1;(R>=0||p>0)&&(R=R<0?0:R,y.paddingTop=`${p+R}px`);let T=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(T>=0||f>0)&&(T=T<0?0:T,y.paddingBottom=`${f+T}px`);const S=(u&&u.contentPadding&&u.contentPadding.left)??-1;S>=0&&(y.paddingLeft=`${S}px`);const B=(u&&u.contentPadding&&u.contentPadding.right)??-1;return B>=0&&(y.paddingRight=`${B}px`),y}if(o.padding){const p=Ge(o.padding);p.left&&(y.paddingLeft=`${p.left}px`),p.top&&(y.paddingTop=`${p.top}px`),p.right&&(y.paddingRight=`${p.right}px`),p.bottom&&(y.paddingBottom=`${p.bottom}px`)}return y}),c=l.ref(null),d=()=>{if(u&&c.value){const y=bn(c.value);u.contentInnerHeight=y.height,u.contentInnerWidth=y.width}},m=qe(d,120);let v=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(v=new window.ResizeObserver(m),v.observe(c.value))}),l.onUnmounted(()=>{v&&(v.disconnect(),v=null)}),()=>{const y=o.tag??"view",p={...r,ref:c,class:i.value,style:s.value};return l.h(y,p,n)}}}}const{componentName:mi,create:gi,scope:Nm}=ae("content"),gl=gi(hi(mi)),wt="GroupStateKey",zr=Symbol.for("GroupScopeKey");function xn(){return l.inject(zr,!1)}function wn(e=!0){l.provide(zr,e)}function vi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];sl(r)||(e[n]=r)})}function pi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};vi(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(wt,a),a}function Mn(e,t,o=-1,n=-1,r=!1,a,i,u){const s=e.get(wt);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 v=()=>{const y=t===""||t===-1,p=me(t);let f=$e(o);const h=me(n);if(!y){let S=(p-(f-1)*h)/f;for(;m!==-1&&S>m;)f++,S=(p-(f-1)*h)/f;for(;d!==-1&&f>1&&S<d;)f--,S=(p-(f-1)*h)/f}let R=!1;const T=s.layout;T.value.width=t,T.value.column!==f&&(T.value.column=f,R=!0),T.value.gutter!==h&&(T.value.gutter=h,R=!0),T.value.type!==u&&(T.value.type=u,R=!0),R&&l.triggerRef(T)};if(r)v();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&v()},50)}}function Sn(e,t=!1){let o;return t?o=e.getForParent(wt):o=e.get(wt),o.layout}function Tn(e,t=!1){let o;return t?o=e.getForParent(wt):o=e.get(wt),o.order}function fo(e,t=1){if(t==="stretch")return-1;const o=$e(t);return o===-1?100:100*o/e}function $n(e,t,o=1,n=0,r){const a={};let i=0;r?i=me(r):i=fo(t.column,o),i>0&&(a.width=`${i}%`);const u=fo(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 Cn(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=$e(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=$e(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 Hr=Symbol("RollingStateKey");function yi(e){l.provide(Hr,e)}function bi(){return l.inject(Hr,null)}function nl(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 xi(e){let t=nl(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=nl(o),document.body.removeChild(o)}return t}function wi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const Si={...Ce,..._r,...qr};function Ti(e,t,o){return{props:Si,emits:["update:collapse","header-click"],setup(n,r){const a=cl(n.prop??n.name,n,jr),i=pi(a,{type:n.type}),u=xn();wn(!0);const s=n.rollingDisplay?bi():null,c=l.ref(null),d=l.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?Sn(a,!0).value:null),v=l.getCurrentInstance(),y=(N,K=!1)=>{const X=v?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(N,!0,K)};l.watch([()=>n.rules,()=>n.pureDataRules],([N,K],[X,P])=>{if(N&&X){const H=l.toRaw(X),G=l.toRaw(N),le=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ce=>{le.includes(ce)||(G[ce]=[])}),y(G)}if(K&&P){const H=l.toRaw(P),G=l.toRaw(K),le=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ce=>{le.includes(ce)||(G[ce]=[])}),y(G,!0)}},{deep:!0});const p=e,f=l.computed(()=>{const N={};N.height=E.value;const K=u?Tn(a,!0):null;if(m.value&&K){if(m.value.type==="grid"){const X=Cn(K,m.value,n.span,n.offset);Object.assign(N,X)}else if(m.value.type==="flow"){const X=$n(K,m.value,n.span,n.offset,n.width);Object.assign(N,X)}}else if(n.width){const X=Pe(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}}),R=l.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(n.columnWidth)K=`repeat(auto-fill, ${n.columnWidth})`;else{const X=wi(V.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),T=l.toRef(n,"gutter"),S=l.toRef(n,"column"),B=l.computed(()=>u||d.value?!0:ue(n.isWrap)),q=[],O=N=>{q.push(N)},k=()=>{let N=q.length;q.splice(0,N)},V=l.ref(-1),w=N=>{const K=bn(N).width;K>0&&K!==V.value&&(V.value=K)};Mn(a,V.value,S.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([V,S,T],([N,K,X])=>{i.order.index=0,Mn(a,N,K,X,!1,n.minItemWidth,n.maxItemWidth,n.type)});const j=l.computed(()=>F.value?n.expandText??"":n.collapseText??""),g=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),Z=l.ref(),M=l.ref(),E=l.computed(()=>_.value||Pe(n.height)||""),F=l.ref(!1),_=l.ref(""),U=l.ref(!1);let Q=-1;const A=(N,K=!0)=>{const X=Z.value;if(X&&F.value!==N){if(Q=Q===-1?xi(X):Q,U.value=!0,K)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",N||(_.value="",U.value=!1)},N){let P=0;n.collapseHeight?P=n.collapseHeight:M.value&&M.value.classList.contains(`${e}__header`)&&(P=M.value.offsetHeight),_.value=`${Q}px`,l.nextTick(()=>{_.value=`${P}px`})}else _.value=`${Q}px`;else if(N){let P=0;n.collapseHeight?P=n.collapseHeight:M.value&&M.value.classList.contains(`${e}__header`)&&(P=M.value.offsetHeight),_.value=`${P}px`}else U.value=!1,_.value=`${Q}px`;F.value=N,r.emit("update:collapse",N)}};l.watch(()=>n.collapse,N=>{A(N)});const ee=N=>{r.emit("header-click",N)},C=()=>{$()},$=N=>{N=N??!F.value,A(N)};we({toggleCollapse:$,doLayout:()=>{q[0]&&(w(q[0]),Mn(a,V.value,S.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let I=null,b=!0;const z=N=>{if(n.rules){const K=l.toRaw(n.rules);y(K)}if(n.pureDataRules){const K=l.toRaw(n.pureDataRules);y(K,!0)}if(rt&&(N&&A(ue(n.collapse),!1),n.autoLayout&&Array.isArray(q)&&q.length>0)){const K=q[0];if(w(K),window.ResizeObserver){const X=qe(()=>w(K),120);I=new window.ResizeObserver(X),I.observe(K)}}},J=()=>{I?.disconnect(),I=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),l.onMounted(()=>{if(ne&&(z(b),b=!1),d.value&&s){let N=null,K=s.initialHeight;s.observe(Z.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(_.value=""),N=setTimeout(()=>{N=null,c.value!==!1&&(z(b),b=!1)},100);else{if(N!==null&&clearTimeout(N),c.value=!1,!F.value)if(b)_.value=s.initialHeight;else{let P=nl(Z.value);P<=0?_.value=K:(_.value=`${P}px`,K=_.value)}b||J()}})}}),l.onUnmounted(()=>{I?.disconnect(),s&&s.unobserve(Z.value)});const Y=(N="right")=>{const K=[];if(j.value){const H={class:g.value},G=l.h("span",H,[j.value]);K.push(G)}const X={class:L.value},P=o(n.collapseIcon,X);return P&&K.push(P),K.length>0?l.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${N}`]:!0},onClick:C},K):null},W=(N,K,X,P)=>{const H={...h.value};return K===0&&(H[`${p}__first`]=!0),X>=P-1&&(H[`${p}__last`]=!0),l.h("div",{ref:O,key:`${K}`,class:H,style:R.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":U.value},style:f.value},[])}i.order.index=0;const N=[];let K=0;if(r.slots.header){const H={key:`${K++}`,ref:M,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:ee},G=l.h("div",H,[r.slots.header()]);N.push(G)}else{const H=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const le=Y("left");le&&H.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${p}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=l.h("div",le);H.push(se)}if(r.slots.title){const le=l.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);H.push(le)}else if(n.title){const le=l.h("div",{class:{[`${p}__header-title`]:!0}},[n.title]);H.push(le)}}if(r.slots.toolbar&&H.push(r.slots.toolbar()),!G&&n.showCollapse){const le=Y("right");le&&H.push(le)}if(H.length>0){const le={key:`${K++}`,ref:M,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:ee},se=l.h("div",le,H);N.push(se)}}k();const X=r.slots.default?r.slots.default():[],P=i.layout.value.type;if(P==="grid"){const H=W(X,K++,0,X.length);N.push(H)}else if(P==="flow"){const H=W(X,K++,0,X.length);N.push(H)}else for(let H=0;H<X.length;H++){const G=X[H],le=W([G],K++,H,X.length);N.push(le)}if(B.value){const H=n.tag||"div";return l.h(H,{ref:Z,prop:n.name,class:{[`${p}`]:!0,"is-collapse":U.value},style:f.value},[N])}else return N}}}}const{componentName:$i,create:Ci,scope:Ei}=ae("group"),Ni=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),vl=Ci(Ti($i,Ei,Ni));function ki(e){return e===window}const Pi=/matrix\((.+)\)/,pl=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ki(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=Pi.exec(c);if(d){let v=d[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=u,n+=s,{x:o,y:n}};class Ii{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 Oi{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 Ii,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 Oi,Kr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Vi,create:Di}=ae("price"),Ri=Di({props:{...Kr},setup(e){const t=l.computed(()=>({[Vi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>At(e.price)==0?"":un(e.price,e.decimalLength,!0,$e(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},Fi=["innerHTML"],Ai=["innerHTML"];function Mi(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,Fi)):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,Ai)):l.createCommentVNode("",!0)],2)}const En=Ue(Ri,[["render",Mi]]),{componentName:Ln,create:Li}=ae("hint-text"),Bi=Li({components:{Price:En},props:{...Kr,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=(g,L,Z,M,E,F)=>{const _=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Q=g.split("-");let A=[];Q[0]==="top"?A=["top","bottom","right","left"]:Q[0]==="bottom"?A=["bottom","top","right","left"]:Q[0]==="left"?A=["left","top","bottom","right"]:Q[0]==="right"&&(A=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},C=[];for(let $=0;$<A.length;$++){const D=A[$];if(C[0]=D,Q[1]&&(C[1]=Q[1]),D==="top"){const I=L.y-F-e.arrowSize-e.offset;if(I>=0){ee.top=I;let b=0;Q[1]==="start"?b=L.x:Q[1]==="end"?b=L.x+Z-E:b=L.x+Z/2-E/2;const z=_-b-E;z<0?(b+=z,m.value=-z):m.value=0,ee.left=b<0?0:b;break}}else if(D==="bottom"){const I=L.y+M+e.arrowSize+e.offset;if(I+F<=U){ee.top=I;let b=0;Q[1]==="start"?b=L.x:Q[1]==="end"?b=L.x+Z-E:b=L.x+Z/2-E/2;const z=_-b-E;z<0?(b+=z,m.value=-z):m.value=0,ee.left=b<0?0:b;break}}else if(D==="left"){const I=L.x-E-e.arrowSize-e.offset;if(I>=0){ee.left=I;let b=0;Q[1]==="start"?b=L.y:Q[1]==="end"?b=L.y+M-F:b=L.y+M/2-F/2,ee.top=b<0?0:b;break}}else if(D==="right"){const I=L.x+Z+e.arrowSize+e.offset;if(I+E<=_){ee.left=I;let b=0;Q[1]==="start"?b=L.y:Q[1]==="end"?b=L.y+M-F:b=L.y+M/2-F/2,ee.top=b<0?0:b;break}}}return{bestPlacement:C.join("-"),bestInsetRect:ee}},d=(g,L,Z=10)=>{if(!rt||L===!1||!g)return;n.value=pl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const M=s.value.offsetHeight,E=s.value.offsetWidth,{bestPlacement:F,bestInsetRect:_}=c(e.placement,n.value,r.value,a.value,E,M);i.value=F,o.value=_,u.value=!0},m=l.ref(0),v=qe(()=>{d(e.message,e.visible)},10),y=l.ref(e.visible);l.watch(()=>e.visible,g=>{y.value=g});const p=l.computed(()=>y.value&&f.value),f=l.ref(!0),h=qe(g=>{const L=g[0];L&&(f.value=L.isIntersecting)},10),R=new IntersectionObserver(h);l.watch([()=>e.message,()=>e.visible],([g,L])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Ot.watch(e.reference,v),R.observe(e.reference)}),l.onBeforeUnmount(()=>{Ot.unwatch(e.reference,v),R.unobserve(e.reference),R.disconnect()});const T=l.computed(()=>{const g={[Ln]:!0};return i.value.startsWith("top")?g["is-top"]=!0:i.value.startsWith("right")?g["is-right"]=!0:i.value.startsWith("bottom")?g["is-bottom"]=!0:i.value.startsWith("right")&&(g["is-right"]=!0),e.size==="small"?g["is-small"]=!0:e.size==="large"&&(g["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(g[`${e.customClass}`]=!0),g}),S=l.computed(()=>{const g={};o.value.top!==null&&(g.top=`${o.value.top}px`),o.value.right!==null&&(g.right=`${o.value.right}px`),o.value.bottom!==null&&(g.bottom=`${o.value.bottom}px`),o.value.left!==null&&(g.left=`${o.value.left}px`),e.autoFit&&(g["min-width"]=`${r.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return g["max-width"]=`${L}px`,u.value&&(g.opacity="1"),e.transition||(g.transition="none"),e.zIndex&&(g["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(g,e.customStyle),g}),B=l.computed(()=>{const g=[`${Ln}__content`];return e.customTextClass&&g.push(e.customTextClass),g}),q=l.computed(()=>{const g={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(g,e.customTextStyle),g}),O=l.computed(()=>({[`${Ln}__arrow`]:!0})),k=l.computed(()=>{const g={};return e.showArrow?(g.width=`${e.arrowSize}px`,g.height=`${e.arrowSize}px`,i.value==="top"?(g.left="50%",g.bottom=`-${e.arrowSize}px`,g.transform=" translate(-50%, 0%)"):i.value==="top-start"?(g.left=`${e.arrowOffset+m.value}px`,g.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(g.right=`${e.arrowOffset-m.value}px`,g.bottom=`-${e.arrowSize}px`):i.value==="right"?(g.left=`-${e.arrowSize}px`,g.top="50%",g.transform=" translate(0%, -50%)"):i.value==="right-start"?(g.left=`-${e.arrowSize}px`,g.top=`${e.arrowOffset}px`):i.value==="right-end"?(g.left=`-${e.arrowSize}px`,g.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(g.left="50%",g.top=`-${e.arrowSize}px`,g.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(g.left=`${e.arrowOffset+m.value}px`,g.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(g.right=`${e.arrowOffset-m.value}px`,g.top=`-${e.arrowSize}px`):i.value==="left"?(g.right=`-${e.arrowSize}px`,g.top="50%",g.transform=" translate(0%, -50%)"):i.value==="left-start"?(g.right=`-${e.arrowSize}px`,g.top=`${e.arrowOffset}px`):i.value==="left-end"&&(g.right=`-${e.arrowSize}px`,g.bottom=`-${e.arrowOffset}px`),g):{display:"none"}}),V=l.computed(()=>p.value&&e.closeOnClick),w=l.computed(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:p,tipRef:s,classes:T,styles:S,textClasses:B,textStyles:q,arrowClasses:O,arrowStyles:k,overlayShow:V,overlayStyle:w,onClickOverlay:()=>{y.value=!1,t.emit("update:visible",!1)}}}}),_i=["innerHTML"];function qi(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,_i))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=Ue(Bi,[["render",qi]]);class Wr{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 ll={},ji=new Wr,bt=new Map,sn=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()}},zi=e=>{e.unmount=sn;const t=document.getElementById(e.id);if(t){const o=bt.get(e.id);o?e={...ll,...o,...e}:e={...ll,...e},e.transition=!1;const n=l.createVNode(Mt,e);l.render(n,t)}return e.id},Hi=e=>{e.unmount=sn;let t=e.id??`hinttext_${ji.get()}`;e={...ll,...e},e.id=t,bt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Mt,e);return l.render(n,o),document.body.appendChild(o),t},Ki=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Ki(t);const r=o.id;return r&&bt.has(r)?zi({...o,message:t,reference:e}):(n&&sn(),Hi({...o,message:t,reference:e}))},hide(e){sn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Wi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Ce,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ne({componentName:e,validate:!1},i);const u=at(),s=xn();wn(!1);const c=l.computed(()=>s&&u?Sn(u,!1).value:null),d=e,m=l.ref(null),v=l.computed(()=>{const P={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(P[r.errorMarkClass]=!!F.value,P[r.warnMarkClass]=!!M.value,P[r.infoMarkClass]=!!L.value,typeof m.value=="function"){const H=m.value(i);P[H]=!0}else if(typeof m.value=="string"){const H=m.value;P[H]=!0}return P}),y=l.ref(null),p=l.computed(()=>{const P={};if(r.width)r.width!=="auto"&&(P.width=Pe(r.width));else{const H=s&&u?Tn(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const G=Cn(H,c.value,r.span,r.offset);Object.assign(P,G)}else if(c.value.type==="flow"){const G=$n(H,c.value,r.span,r.offset,r.width);Object.assign(P,G)}}}if(typeof y.value=="function"){const H=y.value(i);H&&Object.assign(P,H)}else if(y.value&&typeof y.value=="object"){const H=y.value;Object.assign(P,H)}return P}),f=l.ref(null),h=l.computed({get:()=>f.value??ue(r.isRequired),set:P=>{f.value=P}}),R=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",T=Fe(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),S=l.computed(()=>T&&T.value==="top"?"top":T&&T.value==="right"?"right":"left"),B=l.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${S.value}`]:!0})),q=l.computed(()=>({label:!0,[`label--${S.value}`]:!0})),O=Fe(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),k=l.computed(()=>O&&O.value?{width:Pe(O.value)}:{}),V=l.computed(()=>({"label--string":!0,"label--required":h.value})),w=l.computed(()=>({content:!0,[r.contentClass]:!0})),j=l.computed(()=>({...r.contentStyle})),g=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(P){h.value=P},setErrorTip(P){g.errorTip=P},setErrorIcon(P){g.errorIcon=P},setWarnTip(P){g.warnTip=P},setWarnIcon(P){g.warnIcon=P},setInfoTip(P){g.infoTip=P},setInfoIcon(P){g.infoIcon=P},setCustomClassName(P){m.value=P},setCustomStyle(P){y.value=P}});const L=l.computed(()=>r.infoTip||g.infoTip),Z=l.computed(()=>r.infoIcon||g.infoIcon),M=l.computed(()=>r.warnTip||g.warnTip),E=l.computed(()=>r.warnIcon||g.warnIcon),F=l.computed(()=>r.errorTip||g.errorTip),_=l.computed(()=>r.errorIcon||g.errorIcon),U=l.computed(()=>F.value?"error":M.value?"warn":L.value?"info":""),Q=()=>U.value.length>0,A=l.computed(()=>U.value==="error"?F.value:U.value==="warn"?M.value:U.value==="info"?L.value:""),ee=l.computed(()=>U.value==="error"?_.value:U.value==="warn"?E.value:U.value==="info"?Z.value:null),C=l.computed(()=>{const P={[`${d}__tip`]:!0,[`${d}__tip--${U.value}`]:!0,[`${d}--animate`]:!0};return U.value==="error"&&r.errorClass?P[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?P[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(P[`${r.infoClass}`]=!0),P}),$=l.computed(()=>{const P={};return T&&T.value==="top"||!R()?P["padding-left"]="0px":O&&O.value&&(P["padding-left"]=Pe(O.value)),P}),D=l.ref();let I="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([P,H,G,le])=>{D.value&&(P&&!de(H)?I?o.show(D.value,H,{...le,id:I,type:G},!0):I=o.show(D.value,H,{...le,type:G},!0):o.hide(I))});let b=null;const z=()=>{b||!D.value||(b=new IntersectionObserver(P=>{let H=!1;for(let G of P)if(G.intersectionRatio>0){H=!0,H&&a.emit("appear",G);break}H||a.emit("disappear")}),b.observe(D.value))},J=()=>{!b||!D.value||(b.unobserve(D.value),b=null)};l.watch(()=>ue(r.appearListen),P=>{P?z():J()}),l.onMounted(()=>{ue(r.appearListen)&&z()}),l.onUnmounted(J);const ne=()=>{if(!R())return null;const P=[],H=a.slots?.label?.()??r.label,G={class:V.value},le=l.h("div",G,[H]);if(P.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();P.push(ce)}const se={class:q.value,style:k.value};return l.h("div",se,P)},Y=()=>{const P=[];if(a.slots.prepend){const G=a.slots.prepend();P.push(G)}if(a.slots.default){const G=a.slots.default();P.push(G)}if(a.slots.append){const G=a.slots.append();P.push(G)}if(a.slots.fixedTip){const G={class:[`${d}__fixed-tip`]},le=l.h("div",G,[a.slots.fixedTip()]);P.push(le)}const H={ref:D,class:w.value,style:j.value};return l.h("div",H,P)},W=()=>{const P=ee.value;return P?typeof P=="function"?l.h("div",{class:"fox-item__tip--icon"},[P()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(P)]):null},N=()=>{const P=A.value;return P?typeof P=="function"?l.h("div",{class:"fox-item__tip--text"},[P()]):l.h("div",{class:"fox-item__tip--text"},[P]):null},K=()=>{if(!Q())return null;const P=[],H=W();H&&P.push(H);const G=N();G&&P.push(G);const le={class:C.value,style:$.value};return l.h("div",le,P)},X=()=>a.slots?.hide?.()??null;return()=>{const P=[],H=[],G=ne();G&&H.push(G);const le=Y();le&&H.push(le);const se={class:B.value},ce=l.h("div",se,H);P.push(ce);const ge=K();ge&&P.push(ge);const ve=X();ve&&P.push(ve);const Se={class:v.value,style:p.value,prop:r.prop};return l.h("div",Se,P)}}}}const{componentName:Yi,create:Ui,scope:Gi}=ae("item"),Ee=Ui(Wi(Yi,Gi,Re,!1));function Xi(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=at(),a=xn();wn(!1);const i=l.computed(()=>a&&r?Sn(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=Pe(o.width));else{const m=a&&r?Tn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const v=Cn(m,i.value,o.span,o.offset);Object.assign(d,v)}else if(i.value.type==="flow"){const v=$n(m,i.value,o.span,o.offset,o.width);Object.assign(d,v)}else return o.width&&(d.width=Pe(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:Zi,create:Ji,scope:km}=ae("slot-item"),yl=Ji(Xi(Zi));function Qi(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=at(),u=xn();wn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=Sn(i,!1),m=Tn(i,!1);if(d.value&&m)if(d.value.type==="grid"){const v=Cn(m,d.value,o.span,o.offset);Object.assign(c,v)}else if(d.value.type==="flow"){const v=$n(m,d.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Pe(o.width))}else o.width&&(c.width=Pe(o.width));return c});return()=>{const c=[];if(n.slots.default){const m=n.slots.default();if(o.divide)for(let v=0;v<m.length;v++){if(v>0){const y=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(y)}c.push(m[v])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:es,create:ts,scope:Pm}=ae("row-item"),bl=ts(Qi(es)),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},ho={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 ns(e,t,o){return{props:{...Ce,...Ve,...ho},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0,[`${p}__disabled`]:i.value,[`${p}__readonly`]:s.value})),h=E=>{y.value=E,c("update:modelValue",E),c("input",E)},R=E=>{c("change",E)};let T=he(n,"hintText"),S=l.ref(!1);const B=E=>{let _=E.target.value;v.value=!0,de(T.value)||(S.value=!0),c("focus",_,E)},q=E=>{setTimeout(()=>{S.value&&(S.value=!1),v.value=!1},0);let _=E.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),c("blur",_,E)},O=()=>{c("clear","")},k=l.ref(!1);let V=null;const w=()=>{n.showTooltip&&k.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{k.value=!0},150))},j=()=>{V&&(clearTimeout(V),k.value=!1,V=null)},g=l.computed(()=>k.value||S.value),L=l.computed(()=>k.value?y.value:T.value),Z=l.computed(()=>At(n.unit)>0),M=l.ref();return we({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const F={...Ze(r.attrs),ref:M,class:f.value,placeholder:m.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:O,onChange:R,onInput:h,onFocus:B,onBlur:q,onMouseover:w,onMouseleave:j},_={};r.slots.prepend&&(_.prepend=r.slots.prepend),r.slots.append&&(_.append=r.slots.append),r.slots.prefix&&(_.prefix=r.slots.prefix),r.slots.suffix?_.suffix=r.slots.suffix:Z.value&&(_.suffix=()=>[n.unit]);const U=[],Q=l.h(x.ElInput,F,_);U.push(Q);const A={default:()=>U};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const C={...Oe(n,ho),hintText:L.value,hintVisible:g.value};return n.prop&&(C.prop=`${n.prop}_item`),l.h(o,C,A)}}}}const{componentName:ls,create:os,scope:rs}=ae("input-item"),xl=os(ns(ls,rs,Ee));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Yr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function as(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let is=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 ss(){const e=l.getCurrentInstance();return new is(e.proxy)}function Ur(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function Gr(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=Yr(e,i);if(Array.isArray(u)&&u.length>0){const s=Gr(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=lt(e,i)===a;else if(o==="item")s=Ur(e,i,a);else{let c=Dt(e,i);c==null&&(c=lt(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function us(e){return{text:e,value:e}}const mo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},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 cs(e,t,o){return{props:{...Ce,...Ve,...mo},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(null),y=l.ref([]),p=l.computed(()=>y.value?y.value.map(K=>lt(n,K)).join(" "):""),f=(N,K,X,P=!0)=>{if(!X||X.length==0){v.value=N,c("update:modelValue",N),c("change",N);return}const H=Gr(n,N,K,X);if(H===null){if(y.value===null||y.value.length===0)return;v.value=null,y.value=[],P&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let G=!0;if(H.length!==y.value.length)G=!1;else for(let le=0;le<H.length;le++){const se=H[le],ce=y.value[le];if(!Ur(n,se,ce)){G=!1;break}}if(!G){y.value=H;let le=[],se=[],ce=[];H.forEach(it=>{const He=Dt(n,it),st=lt(n,it);le.push(He),ce.push(st),n.valueType==="text"?se.push(st):n.valueType==="item"?se.push(it):se.push(He)});let ge,ve,Se;ue(n.multiple)?(v.value=le,ge=l.toRaw(se),ve=ce,Se=l.toRaw(H)):(v.value=le[0]??"",ge=l.toRaw(se[0]??""),ve=ce[0]??"",Se=l.toRaw(H[0])),P&&(c("update:modelValue",ge),c("change",ge,Se)),c("update:text",ve)}},h=l.ref(null),R=l.ref(null),T=l.computed(()=>R.value??h.value??[]),S=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,N=>ue(N)),B=ss(),q=async(N,K)=>{if(N){const X=await B.load("select",N,K);if(X.length>0)if(typeof X[0]=="string"){let G=X.map(le=>us(le));h.value=G}else h.value=X;else h.value=null}};l.watch([()=>n.source,()=>n.params],([N,K])=>{R.value=null,q(N,K)},{immediate:!S.value});let O=!1;const k=()=>{O||(O=!0,q(n.source,n.params))};l.watch([()=>h.value,()=>n.modelValue],([N,K])=>{if(g()&&ue(n.multiple)){Qe(K,v.value)||(v.value=K);return}f(K,n.valueType,T.value,!1),c("setValue",K)}),n.source||(v.value=n.modelValue);let V=null,w=l.ref(!1);typeof n.remoteMethod=="function"&&(V=async N=>{if(N==null){R.value=null;return}w.value=!0;try{const K=await n.remoteMethod(N);K&&(R.value=K)}catch(K){R.value=null,console.error(K)}w.value=!1});let j=null;typeof n.filterMethod=="function"&&(j=async N=>{if(N==null){R.value=null;return}w.value=!0;try{const K=await n.filterMethod(N,h.value);K&&(R.value=K)}catch(K){R.value=null,console.error(K)}w.value=!1});const g=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",L=l.ref(!1),Z=e,M=l.computed(()=>({[Z]:!0})),E=N=>{n.allowCreate||g()&&ue(n.multiple)?(c("update:modelValue",N),c("change",N),c("update:text",N),v.value=N):f(N,"value",T.value,!0)};let F=he(n,"hintText"),_=l.ref(!1);const U=N=>{let X=N.target.value;L.value=!0,de(F.value)||(_.value=!0),c("focus",X,N)},Q=N=>{setTimeout(()=>{_.value&&(_.value=!1),L.value=!1},0);let X=N.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),z.value||c("blur",X,N)},A=()=>{c("clear","")},ee=l.ref(!1);let C=null;const $=()=>{n.showTooltip&&ee.value===!1&&(C&&clearTimeout(C),C=setTimeout(()=>{ee.value=!0},150))},D=()=>{C&&(clearTimeout(C),ee.value=!1,C=null)},I=l.computed(()=>ee.value||_.value),b=l.computed(()=>ee.value?p.value:F.value),z=l.ref(!1),J=N=>{z.value=N,c("visible-change",N),N||c("selected")},ne=N=>{c("remove-tag",N)},Y=(N,K)=>{const X=[];return N.forEach((P,H)=>{const G=Yr(n,P);if(Array.isArray(G)&&G.length>0){const le=Y(G,K),se=lt(n,P),ge={key:`${se}_${H}`,label:se};X.push(l.h(x.ElOptionGroup,ge,{default:()=>le}))}else{const le=Dt(n,P),se=lt(n,P),ce=as(n,P),ve={key:`${le}_${H}`,label:se,disabled:ce,value:le};if(typeof K=="function")X.push(l.h(x.ElOption,ve,{default:()=>K(P)}));else if(n.optionType==="item"){const Se={class:{"fox-select-item__option-left":!0}},it=l.h("span",Se,[le]),He={class:{"fox-select-item__option-right":!0}},st=l.h("span",He,[se]),In=l.h("div",{class:{"fox-select-item__option":!0}},[it,st]);X.push(l.h(x.ElOption,ve,{default:()=>In}))}else n.optionType==="value"?X.push(l.h(x.ElOption,ve,{default:()=>[le]})):X.push(l.h(x.ElOption,ve))}}),X},W=l.ref();return we({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const K={...Ze(r.attrs),ref:W,class:M.value,clearable:n.clearable,multiple:n.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:v.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:A,onChange:E,onFocus:U,onBlur:Q,onVisibleChange:J,onRemoveTag:ne};typeof V=="function"&&(K["remote-method"]=V,K.loading=w.value),typeof j=="function"&&(K["filter-method"]=j,K.loading=w.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=()=>Y(T.value,r.slots.option);const P=[],H=l.h(x.ElSelect,K,X);P.push(H);const G={default:()=>P};G.label=r.slots.default,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const se={...Oe(n,mo),hintText:b.value,hintVisible:I.value,onMouseover:$,onMouseleave:D};return n.prop&&(se.prop=`${n.prop}_item`),S.value&&(se["appear-listen"]=!0,se.onAppear=k),l.h(o,se,G)}}}}const{componentName:fs,create:ds,scope:hs}=ae("select-item"),wl=ds(cs(fs,hs,Ee));function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt={exports:{}},ms=Wt.exports,go;function gs(){return go||(go=1,function(e,t){(function(o,n){e.exports=n()})(ms,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",v="quarter",y="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+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var E=["th","st","nd","rd"],F=M%100;return"["+M+(E[(F-20)%10]||E[F]||E[0])+"]"}},S=function(M,E,F){var _=String(M);return!_||_.length>=E?M:""+Array(E+1-_.length).join(F)+M},B={s:S,z:function(M){var E=-M.utcOffset(),F=Math.abs(E),_=Math.floor(F/60),U=F%60;return(E<=0?"+":"-")+S(_,2,"0")+":"+S(U,2,"0")},m:function M(E,F){if(E.date()<F.date())return-M(F,E);var _=12*(F.year()-E.year())+(F.month()-E.month()),U=E.clone().add(_,m),Q=F-U<0,A=E.clone().add(_+(Q?-1:1),m);return+(-(_+(F-U)/(Q?U-A:A-U))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:m,y,w:d,d:c,D:p,h:s,m:u,s:i,ms:a,Q:v}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},q="en",O={};O[q]=T;var k="$isDayjsObject",V=function(M){return M instanceof L||!(!M||!M[k])},w=function M(E,F,_){var U;if(!E)return q;if(typeof E=="string"){var Q=E.toLowerCase();O[Q]&&(U=Q),F&&(O[Q]=F,U=Q);var A=E.split("-");if(!U&&A.length>1)return M(A[0])}else{var ee=E.name;O[ee]=E,U=ee}return!_&&U&&(q=U),U||!_&&q},j=function(M,E){if(V(M))return M.clone();var F=typeof E=="object"?E:{};return F.date=M,F.args=arguments,new L(F)},g=B;g.l=w,g.i=V,g.w=function(M,E){return j(M,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var L=function(){function M(F){this.$L=w(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[k]=!0}var E=M.prototype;return E.parse=function(F){this.$d=function(_){var U=_.date,Q=_.utc;if(U===null)return new Date(NaN);if(g.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var A=U.match(h);if(A){var ee=A[2]-1||0,C=(A[7]||"0").substring(0,3);return Q?new Date(Date.UTC(A[1],ee,A[3]||1,A[4]||0,A[5]||0,A[6]||0,C)):new Date(A[1],ee,A[3]||1,A[4]||0,A[5]||0,A[6]||0,C)}}return new Date(U)}(F),this.init()},E.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},E.$utils=function(){return g},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(F,_){var U=j(F);return this.startOf(_)<=U&&U<=this.endOf(_)},E.isAfter=function(F,_){return j(F)<this.startOf(_)},E.isBefore=function(F,_){return this.endOf(_)<j(F)},E.$g=function(F,_,U){return g.u(F)?this[_]:this.set(U,F)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(F,_){var U=this,Q=!!g.u(_)||_,A=g.p(F),ee=function(ne,Y){var W=g.w(U.$u?Date.UTC(U.$y,Y,ne):new Date(U.$y,Y,ne),U);return Q?W:W.endOf(c)},C=function(ne,Y){return g.w(U.toDate()[ne].apply(U.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(Y)),U)},$=this.$W,D=this.$M,I=this.$D,b="set"+(this.$u?"UTC":"");switch(A){case y:return Q?ee(1,0):ee(31,11);case m:return Q?ee(1,D):ee(0,D+1);case d:var z=this.$locale().weekStart||0,J=($<z?$+7:$)-z;return ee(Q?I-J:I+(6-J),D);case c:case p:return C(b+"Hours",0);case s:return C(b+"Minutes",1);case u:return C(b+"Seconds",2);case i:return C(b+"Milliseconds",3);default:return this.clone()}},E.endOf=function(F){return this.startOf(F,!1)},E.$set=function(F,_){var U,Q=g.p(F),A="set"+(this.$u?"UTC":""),ee=(U={},U[c]=A+"Date",U[p]=A+"Date",U[m]=A+"Month",U[y]=A+"FullYear",U[s]=A+"Hours",U[u]=A+"Minutes",U[i]=A+"Seconds",U[a]=A+"Milliseconds",U)[Q],C=Q===c?this.$D+(_-this.$W):_;if(Q===m||Q===y){var $=this.clone().set(p,1);$.$d[ee](C),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else ee&&this.$d[ee](C);return this.init(),this},E.set=function(F,_){return this.clone().$set(F,_)},E.get=function(F){return this[g.p(F)]()},E.add=function(F,_){var U,Q=this;F=Number(F);var A=g.p(_),ee=function(D){var I=j(Q);return g.w(I.date(I.date()+Math.round(D*F)),Q)};if(A===m)return this.set(m,this.$M+F);if(A===y)return this.set(y,this.$y+F);if(A===c)return ee(1);if(A===d)return ee(7);var C=(U={},U[u]=n,U[s]=r,U[i]=o,U)[A]||1,$=this.$d.getTime()+F*C;return g.w($,this)},E.subtract=function(F,_){return this.add(-1*F,_)},E.format=function(F){var _=this,U=this.$locale();if(!this.isValid())return U.invalidDate||f;var Q=F||"YYYY-MM-DDTHH:mm:ssZ",A=g.z(this),ee=this.$H,C=this.$m,$=this.$M,D=U.weekdays,I=U.months,b=U.meridiem,z=function(Y,W,N,K){return Y&&(Y[W]||Y(_,Q))||N[W].slice(0,K)},J=function(Y){return g.s(ee%12||12,Y,"0")},ne=b||function(Y,W,N){var K=Y<12?"AM":"PM";return N?K.toLowerCase():K};return Q.replace(R,function(Y,W){return W||function(N){switch(N){case"YY":return String(_.$y).slice(-2);case"YYYY":return g.s(_.$y,4,"0");case"M":return $+1;case"MM":return g.s($+1,2,"0");case"MMM":return z(U.monthsShort,$,I,3);case"MMMM":return z(I,$);case"D":return _.$D;case"DD":return g.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return z(U.weekdaysMin,_.$W,D,2);case"ddd":return z(U.weekdaysShort,_.$W,D,3);case"dddd":return D[_.$W];case"H":return String(ee);case"HH":return g.s(ee,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ne(ee,C,!0);case"A":return ne(ee,C,!1);case"m":return String(C);case"mm":return g.s(C,2,"0");case"s":return String(_.$s);case"ss":return g.s(_.$s,2,"0");case"SSS":return g.s(_.$ms,3,"0");case"Z":return A}return null}(Y)||A.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(F,_,U){var Q,A=this,ee=g.p(_),C=j(F),$=(C.utcOffset()-this.utcOffset())*n,D=this-C,I=function(){return g.m(A,C)};switch(ee){case y:Q=I()/12;break;case m:Q=I();break;case v:Q=I()/3;break;case d:Q=(D-$)/6048e5;break;case c:Q=(D-$)/864e5;break;case s:Q=D/r;break;case u:Q=D/n;break;case i:Q=D/o;break;default:Q=D}return U?Q:g.a(Q)},E.daysInMonth=function(){return this.endOf(m).$D},E.$locale=function(){return O[this.$L]},E.locale=function(F,_){if(!F)return this.$L;var U=this.clone(),Q=w(F,_,!0);return Q&&(U.$L=Q),U},E.clone=function(){return g.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},M}(),Z=L.prototype;return j.prototype=Z,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",y],["$D",p]].forEach(function(M){Z[M[1]]=function(E){return this.$g(E,M[0],M[1])}}),j.extend=function(M,E){return M.$i||(M(E,L,j),M.$i=!0),j},j.locale=w,j.isDayjs=V,j.unix=function(M){return j(1e3*M)},j.en=O[q],j.Ls=O,j.p={},j})}(Wt)),Wt.exports}var vs=gs();const Xe=tt(vs);var Yt={exports:{}},ps=Yt.exports,vo;function ys(){return vo||(vo=1,function(e,t){(function(o,n){e.exports=n()})(ps,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 R=h.match(/([+-]|\d\d)/g),T=60*R[1]+(+R[2]||0);return T===0?0:R[0]==="+"?-T:T}(f)}],m=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},v=function(f,h){var R,T=u.meridiem;if(T){for(var S=1;S<=24;S+=1)if(f.indexOf(T(S,0,h))>-1){R=S>12;break}}else R=f===(h?"pm":"PM");return R},y={A:[i,function(f){this.afternoon=v(f,!1)}],a:[i,function(f){this.afternoon=v(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,R=f.match(/\d+/);if(this.day=R[0],h)for(var T=1;T<=31;T+=1)h(T).replace(/\[|\]/g,"")===f&&(this.day=T)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=m("months"),R=(m("monthsShort")||h.map(function(T){return T.slice(0,3)})).indexOf(f)+1;if(R<1)throw new Error;this.month=R%12||R}],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,R;h=f,R=u&&u.formats;for(var T=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,j,g){var L=g&&g.toUpperCase();return j||R[g]||o[g]||R[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,M,E){return M||E.slice(1)})})).match(n),S=T.length,B=0;B<S;B+=1){var q=T[B],O=y[q],k=O&&O[0],V=O&&O[1];T[B]=V?{regex:k,parser:V}:q.replace(/^\[|\]$/g,"")}return function(w){for(var j={},g=0,L=0;g<S;g+=1){var Z=T[g];if(typeof Z=="string")L+=Z.length;else{var M=Z.regex,E=Z.parser,F=w.slice(L),_=M.exec(F)[0];E.call(j,_),w=w.replace(_,"")}}return function(U){var Q=U.afternoon;if(Q!==void 0){var A=U.hours;Q?A<12&&(U.hours+=12):A===12&&(U.hours=0),delete U.afternoon}}(j),j}}return function(f,h,R){R.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var T=h.prototype,S=T.parse;T.parse=function(B){var q=B.date,O=B.utc,k=B.args;this.$u=O;var V=k[1];if(typeof V=="string"){var w=k[2]===!0,j=k[3]===!0,g=w||j,L=k[2];j&&(L=k[2]),u=this.$locale(),!w&&L&&(u=R.Ls[L]),this.$d=function(F,_,U){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*F);var Q=p(_)(F),A=Q.year,ee=Q.month,C=Q.day,$=Q.hours,D=Q.minutes,I=Q.seconds,b=Q.milliseconds,z=Q.zone,J=new Date,ne=C||(A||ee?1:J.getDate()),Y=A||J.getFullYear(),W=0;A&&!ee||(W=ee>0?ee-1:J.getMonth());var N=$||0,K=D||0,X=I||0,P=b||0;return z?new Date(Date.UTC(Y,W,ne,N,K,X,P+60*z.offset*1e3)):U?new Date(Date.UTC(Y,W,ne,N,K,X,P)):new Date(Y,W,ne,N,K,X,P)}catch{return new Date("")}}(q,V,O),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),g&&q!=this.format(V)&&(this.$d=new Date("")),u={}}else if(V instanceof Array)for(var Z=V.length,M=1;M<=Z;M+=1){k[1]=V[M-1];var E=R.apply(this,k);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}M===Z&&(this.$d=new Date(""))}else S.call(this,B)}}})}(Yt)),Yt.exports}var bs=ys();const xs=tt(bs);var Ut={exports:{}},ws=Ut.exports,po;function Ss(){return po||(po=1,function(e,t){(function(o,n){e.exports=n()})(ws,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)}}})}(Ut)),Ut.exports}var Ts=Ss();const $s=tt(Ts);var Gt={exports:{}},Cs=Gt.exports,yo;function Es(){return yo||(yo=1,function(e,t){(function(o,n){e.exports=n()})(Cs,function(){return function(o,n,r){var a=n.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,v,y,p,f){var h=m.name?m:m.$locale(),R=i(h[v]),T=i(h[y]),S=R||T.map(function(q){return q.slice(0,p)});if(!f)return S;var B=h.weekStart;return S.map(function(q,O){return S[(O+(B||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(m,v){return m.formats[v]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,f,h){return f||h.slice(1)})}(m.formats[v.toUpperCase()])},d=function(){var m=this;return{months:function(v){return v?v.format("MMMM"):u(m,"months")},monthsShort:function(v){return v?v.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(m,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(m.$locale(),v)},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(v){return c(m,v)},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)}}})}(Gt)),Gt.exports}var Ns=Es();const ks=tt(Ns);var Xt={exports:{}},Ps=Xt.exports,bo;function Is(){return bo||(bo=1,function(e,t){(function(o,n){e.exports=n()})(Ps,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 v=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(v,o,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(Xt)),Xt.exports}var Os=Is();const Vs=tt(Os);var Zt={exports:{}},Ds=Zt.exports,xo;function Rs(){return xo||(xo=1,function(e,t){(function(o,n){e.exports=n()})(Ds,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}}})}(Zt)),Zt.exports}var Fs=Rs();const As=tt(Fs);var Jt={exports:{}},Ms=Jt.exports,wo;function Ls(){return wo||(wo=1,function(e,t){(function(o,n){e.exports=n()})(Ms,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")}}})}(Jt)),Jt.exports}var Bs=Ls();const _s=tt(Bs);var Qt={exports:{}},qs=Qt.exports,So;function js(){return So||(So=1,function(e,t){(function(o,n){e.exports=n()})(qs,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Qt)),Qt.exports}var zs=js();const Hs=tt(zs);var en={exports:{}},Ks=en.exports,To;function Ws(){return To||(To=1,function(e,t){(function(o,n){e.exports=n()})(Ks,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(en)),en.exports}var Ys=Ws();const Us=tt(Ys);Xe.extend(ks);Xe.extend($s);Xe.extend(xs);Xe.extend(Vs);Xe.extend(As);Xe.extend(_s);Xe.extend(Hs);Xe.extend(Us);const Be={format(e,t){return Xe(e).format(t)},parser(e,t){return Xe(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]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.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}},$o={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"}},Co={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 Gs(e,t,o){return{props:{...Ce,...Ve,...$o,...Co},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),p=l.computed(()=>_.value&&Array.isArray(y.value)&&y.value.length==2?y.value[0]:y.value),f=l.computed(()=>_.value?"longTermKey":"normalKey"),h=W=>{if(_.value&&n.type==="daterange"){const N=[...y.value];N[0]=W,y.value=N}else y.value=W;c("update:modelValue",y.value),c("change",y.value)},R=l.computed(()=>_.value&&n.type==="daterange"?"date":n.type),T=e,S=l.computed(()=>({[`${T}`]:!0,"is-long":_.value,"is-readonly":s.value,"is-disabled":i.value}));let B=he(n,"hintText"),q=l.ref(!1);const O=W=>{let K=W.target.value;v.value=!0,de(B.value)||(q.value=!0),c("focus",K,W)},k=W=>{setTimeout(()=>{q.value&&(q.value=!1),v.value=!1},0);let K=W.target.value;n.maxLength&&K.length>Number(n.maxLength)&&(K=K.slice(0,Number(n.maxLength))),c("blur",K,W)},V=()=>{c("clear","")},w=W=>{c("calendar-change",W)},j=(W,N,K)=>{c("panel-change",W,N,K)},g=W=>{c("visible-change",W)},L=Fe(l.computed(()=>n.longTermText),"longTermText",_e.Near),Z=Fe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),M=Fe(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),E=Fe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let F=null;const _=l.ref(ue(n.longTerm)),U=W=>{if(_.value=W,c("update:longTerm",W),W){if(F=y.value,n.type==="daterange"){const N=[];Array.isArray(M.value)?(N[0]=y.value?y.value[0]??M.value[0]:null,N[1]=M.value[1]??M.value[0]):(N[0]=y.value?y.value[0]??M.value:null,N[1]=_.value),N[0]||(N[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=N}else Array.isArray(M.value)?y.value=M.value[1]??M.value[0]:y.value=M.value,y.value||(y.value=n.valueFormat?Be.format(new Date,n.valueFormat):new Date);c("update:modelValue",y.value)}else{if(n.type==="daterange"){const N=[];N[0]=Array.isArray(y.value)?y.value[0]:y.value,Array.isArray(F)?N[1]=F[1]:N[1]=F,N[0]||(N[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=N}else y.value=F;c("update:modelValue",y.value),setTimeout(()=>{ne()},100)}},Q=ue(n.isLongTerm);if(Q){const W=()=>{if(_.value===!0){if(F=y.value,n.type==="daterange"){const N=[y.value[0]];Array.isArray(M.value)?N[1]=M.value[1]??M.value[0]:N[1]=_.value,N[0]||(N[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=N}else y.value=M.value;c("update:modelValue",y.value)}else Qe(M.value,y.value)&&(_.value=!0)};W(),l.watch([()=>n.longTerm],([N])=>{_.value!==N&&W()}),l.watch([()=>y.value],([N])=>{let K=!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=Be.format(X,n.valueFormat));let P=Array.isArray(M.value)?M.value[1]:M.value;(X===P||Array.isArray(E.value)&&E.value.findIndex(G=>X==G)!==-1)&&(K=!0)}catch(X){console.error(X)}_.value!==K&&(_.value=K)},{immediate:!0})}const A=l.computed(()=>({"fox-date-item__long":!0,"is-active":v.value})),ee=l.ref(),C=l.ref(),$=/^\d+$/,D=(W,N)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(W,N):$.test(W)&&W.length===n.flashFillThreshold,I=(W,N)=>{let K;if(typeof n.flashFillFormat=="function")K=n.flashFillFormat(W,N);else{const P=n.flashFillFormat??"YYYYMMDD";K=Be.parser(W,P)}const X=n.valueFormat??"YYYY-MM-DD";return Be.format(K,X)},b=W=>W?W.endsWith("range"):!1,z=W=>{if(!W.target)return;const N=W.target.value??"";if(D(N,n.type)){const K=I(N,n.type);if(b(n.type)){const X=Array.isArray(y.value)?[...y.value]:[];X[0]=K,h(X)}else h(K)}},J=W=>{if(!W.target)return;const N=W.target.value??"";if(D(N,n.type)){const K=I(N,n.type);if(b(n.type)){const X=Array.isArray(y.value)?[...y.value]:[];X[1]=K,h(X)}else h(K)}},ne=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(b(n.type)){const W=ee.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",z),W[1]&&W[1].addEventListener("input",J)}else{const W=ee.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",z)}},Y=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(b(n.type)){const W=ee.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",z),W[1]&&W[1].removeEventListener("input",J)}else{const W=ee.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",z)}};return l.onMounted(ne),l.onBeforeUnmount(Y),we({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const N={...r.attrs,key:f.value,type:R.value,ref:C,class:S.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:V,onFocus:O,onBlur:k,onCalendarChange:w,onPanelChange:j,onVisibleChange:g},K={};r.slots["range-separator"]&&(K["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(K.default=r.slots.cell);const X=[],P=l.h(x.ElDatePicker,N,K);X.push(P);const H={default:()=>X};if(H.label=r.slots.default,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip,Q){if(_.value){const ce=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ge=l.h("input",{class:["fox-date-item__long-text"],value:L.value,readonly:!0}),ve={class:A.value},Se=l.h("div",ve,{default:()=>[ce,ge]});X.push(Se)}if(!s.value&&!i.value){const ce={label:Z.value||L.value,disabled:s.value||i.value,modelValue:_.value,"onUpdate:modelValue":U},ge=l.h(x.ElCheckbox,ce),ve=l.h("div",{class:{[`${T}__append`]:!0}},[ge]);H.append=()=>ve}}const le={...Oe(n,$o,Co),ref:ee,class:{[`${T}__wrapper`]:!0,"has-append":Q},hintText:B.value,hintVisible:q.value};return n.prop&&(le.prop=`${n.prop}_item`),l.h(o,le,H)}}}}const{componentName:Xs,create:Zs,scope:Js}=ae("date-item"),Sl=Zs(Gs(Xs,Js,Ee)),Eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,t,o){return{props:{...Ce,...Ve,...Eo},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0})),h=V=>{y.value=V,c("update:modelValue",V),c("change",V)};let R=he(n,"hintText"),T=l.ref(!1);const S=V=>{let j=V.target.value;v.value=!0,de(R.value)||(T.value=!0),c("focus",j,V)},B=V=>{setTimeout(()=>{T.value&&(T.value=!1),v.value=!1},0);let j=V.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),c("blur",j,V)},q=()=>{c("clear","")},O=V=>{c("visible-change",V)},k=l.ref();return we({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()},setDisabled:V=>{a.value=V},setReadonly:V=>{u.value=V}}),()=>{const w={...r.attrs,ref:k,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":h,onClear:q,onFocus:S,onBlur:B,onVisibleChange:O},j={},g=[],L=l.h(x.ElTimePicker,w,j);g.push(L);const Z={default:()=>g};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const E={...Oe(n,Eo),hintText:R.value,hintVisible:T.value};return n.prop&&(E.prop=`${n.prop}_item`),l.h(o,E,Z)}}}}const{componentName:eu,create:tu,scope:nu}=ae("time-item"),Tl=tu(Qs(eu,nu,Ee)),No={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function lu(e,t,o){return{props:{...Ce,...Ve,...No},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0})),h=k=>{y.value=k,c("update:modelValue",k),c("change",k)};let R=he(n,"hintText"),T=l.ref(!1);const S=k=>{let w=k.target.value;v.value=!0,de(R.value)||(T.value=!0),c("focus",w,k)},B=k=>{setTimeout(()=>{T.value&&(T.value=!1),v.value=!1},0);let w=k.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),c("blur",w,k)},q=()=>{c("clear","")},O=l.ref();return we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const V={...r.attrs,ref:O,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":h,onClear:q,onFocus:S,onBlur:B},w={},j=[],g=l.h(x.ElTimeSelect,V,w);j.push(g);const L={default:()=>j};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const M={...Oe(n,No),hintText:R.value,hintVisible:T.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,L)}}}}const{componentName:ou,create:ru,scope:au}=ae("time-select-item"),$l=ru(lu(ou,au,Ee));function ko(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 Po(e,t,o=20){if(typeof t=="string"&&(t=$e(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=mr(`${e}`,`${t}`);return ko(n)}else{let n=al(`${e}`,gr(`${t}`),20);return ko(n)}}function iu(e,t=-1,o=!1,n=3,r=","){return un(e,t,o,n,r)}function Io(e,t,o,n,r=!0){if(e==="")return"";if(e=vr(e),t=$e(t),t==1)return e;if(n)e=Po(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd($e(o)+2,"0"):e=al(e,1,$e(o)));else{let a=-1*t;e=Po(e,a)}return e}function Oo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=Gn(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=Gn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Vo={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 su(e,t,o){return{props:{...Ce,...Ve,...Vo},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=he(n,"modelValue",null,c),v=l.ref("");l.watch([()=>m.value,()=>n.rates,()=>n.precision],([E,F,_])=>{if(de(E)){v.value="";return}const U=Io(E,F,_,!1);v.value!==U&&(v.value=U)},{immediate:!0});const y=l.computed(()=>{let E="";return d.value&&(E=v.value),E}),{t:p}=je.useFoxI18n(t),f=l.computed(()=>{let E=n.placeholder??"";return!d.value&&!de(v.value)?E=iu(v.value,n.decimalLength,n.autoPadding,n.digits,n.separator):E=p(["placeholder",E]),E}),h=e,R=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:v.value.length>0})),T=Fe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>d.value?{textAlign:"left"}:{textAlign:T.value??"right"});const S=l.ref(""),B=l.computed(()=>{let E=S.value;return de(E)&&(E=n.errorTip??""),E}),q=l.ref(""),O=l.ref(!1),k=(E,F)=>{if(E=`${E}`,de(E)){v.value="",m.value="",F.forEach(_=>{c(_,"")}),ue(n.showTip)&&O.value&&(O.value=!1);return}if(E.length>=2){let _=E;if(_.charAt(0)=="-"&&(_=_.substring(1)),_.length>=2&&_.charAt(0)=="0"&&_.charAt(1)!="."){l.triggerRef(v);return}}if(E!="-"){if(!$r(E)){l.triggerRef(v);return}if(n.integerLength!=-1&&Cr(E)>Number(n.integerLength)){l.triggerRef(v);return}if(n.decimalLength&&n.decimalLength!=-1&&Er(E)>Number(n.decimalLength)){l.triggerRef(v);return}let _=Oo(E,n);if(_.maxValid===!1){S.value=_.message,l.triggerRef(v);return}}else if(n.min!=null&&$e(n.min)>=0){l.triggerRef(v);return}q.value=E,ue(n.showTip)&&(O.value=E.length>0),v.value=E,m.value=Io(E,n.rates,n.precision,!0),F.forEach(_=>{c(_,m.value)})},V=E=>{k(E,["update:modelValue","input"])},w=E=>{k(E,["update:modelValue","change"])},j=E=>{if(d.value=!0,ue(n.showTip)){let F=v.value;de(F)&&(F=n.hintText),de(F)||(q.value=F,O.value=!0)}S.value="",c("focus",m.value,E)},g=E=>{if(setTimeout(()=>{d.value=!1,ue(n.showTip)&&O.value===!0&&(O.value=!1)},0),!de(v.value)){let F=Oo(v.value,n);if(F.minValid===!1||F.maxValid===!1){S.value=F.message;return}}c("update:modelValue",m.value,E),c("blur",m.value,E)},L=()=>{c("clear","")},Z=l.computed(()=>At(n.unit)>0),M=l.ref();return we({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const F={...Ze(r.attrs),ref:M,class:R.value,type:"digit",maxlength:n.maxLength,placeholder:f.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onInput:V,onChange:w,onFocus:j,onBlur:g},_={};r.slots.prepend&&(_.prepend=r.slots.prepend),r.slots.append&&(_.append=r.slots.append),r.slots.prefix&&(_.prefix=r.slots.prefix),r.slots.suffix?_.suffix=r.slots.suffix:Z.value&&(_.suffix=()=>[n.unit]);const U=[],Q=l.h(x.ElInput,F,_);U.push(Q);const A={default:()=>U};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const C={...Oe(n,Vo),errorTip:B.value,hintText:q.value,hintVisible:O.value,hintType:"number"};return n.prop&&(C.prop=`${n.prop}_item`),l.h(o,C,A)}}}}const{componentName:uu,create:cu,scope:fu}=ae("money-item"),Cl=cu(su(uu,fu,Ee)),Do={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 du(e,t,o){return{props:{...Ce,...Ve,...Do},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0,[`${p}__append`]:V.value})),h=l.computed(()=>({[`${p}__unit`]:!0})),R=j=>{y.value=j,c("update:modelValue",j),c("input",j)},T=j=>{c("change",j)};let S=he(n,"hintText"),B=l.ref(!1);const q=j=>{let L=j.target.value;v.value=!0,de(S.value)||(B.value=!0),c("focus",L,j)},O=j=>{setTimeout(()=>{B.value&&(B.value=!1),v.value=!1},0);let L=j.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),c("blur",L,j)},k=()=>{c("clear","")},V=l.computed(()=>At(n.unit)>0),w=l.ref();return we({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},setDisabled:j=>{a.value=j},setReadonly:j=>{u.value=j}}),()=>{const g={...Ze(r.attrs),ref:w,class:f.value,placeholder:m.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onChange:T,onInput:R,onFocus:q,onBlur:O},L={},Z=[],M=l.h(x.ElInputNumber,g,L);Z.push(M);const E={default:()=>Z};E.label=r.slots.default,E.fixedPreTip=r.slots.fixedPreTip,E.fixedTip=r.slots.fixedTip;const _={...Oe(n,Do),hintText:S.value,hintVisible:B.value};if(n.prop&&(_.prop=`${n.prop}_item`),r.slots.append)E.append=r.slots.append;else if(V.value){const Q={class:h.value},A=l.h("div",Q,[n.unit]);E.append=()=>A}return l.h(o,_,E)}}}}const{componentName:hu,create:mu,scope:gu}=ae("input-number-item"),El=mu(du(hu,gu,Ee));function Je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ht(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function vu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let pu=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 yu(){const e=l.getCurrentInstance();return new pu(e.proxy)}function ol(e,t,o){const n=Je(e,t),r=Je(e,o);if(n!==r)return!1;const a=ht(e,t),i=ht(e,o);return a===i}function Xr(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=Xr(e,u,o,n);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=Je(e,c)===u;else if(o==="item")s=ol(e,c,u);else{let d=ht(e,c);d==null&&(d=Je(e,c)),s=d===u}if(s){r.push(c),a=vu(e,c);break}}if(!s)break}}return r}function bu(e){return{text:e,value:e}}const Ro={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function xu(e,t,o){return{props:{...Ce,...Ve,...Ro},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(null),y=l.ref([]),p=l.computed(()=>y.value?y.value.map(W=>Array.isArray(W)?W.map(K=>Je(n,K)).join(" "):Je(n,W)).join(" "):""),f=(Y,W,N,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(v.value===Y)return;v.value=Y;const G=l.toRaw(Y);if(K){const le=ne?.value.getCheckedNodes();if(le)if(n.multiple){const se=[];le.forEach(ce=>{const ve=(ce.pathNodes??[]).map(Se=>Se.data);se.push(ve)}),c("update:pathNodes",se)}else{const ce=(le[0]?.pathNodes??[]).map(ge=>ge.data);c("update:pathNodes",ce)}c("update:modelValue",G),c("change",G)}return}const X=Xr(n,Y,W,N);if(X===null){if(y.value.length===0||y.value===null)return;y.value=[],v.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const P=X[X.length-1];if(L.value.checkStrictly!==!0&&P&&!Array.isArray(P)&&Array.isArray(P.children)&&P.children.length>0){const G=[];X.forEach(le=>{const se=`${Je(n,le)}`;G.push(se)}),G.length>0&&(j.value=G.join(n.separator))}else j.value=null;let H=!0;if(X.length!==y.value.length)H=!1;else for(let G=0;G<X.length;G++){const le=X[G],se=y.value[G];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)H=!1;else for(let ce=0;ce<le.length;ce++)if(!ol(n,le[ce],se[ce])){H=!1;break}}else ol(n,le,se)||(H=!1);if(!H)break}if(!H){y.value=X;let G=[],le=[];X.forEach(ce=>{if(Array.isArray(ce)){let ge=[],ve=[];for(let Se of ce)ge.push(ht(n,Se)),n.valueType==="text"?ve.push(Je(n,Se)):n.valueType==="item"?ve.push(Se):ve.push(ht(n,Se));G.push(ge),le.push(ve)}else G.push(ht(n,ce)),n.valueType==="text"?le.push(Je(n,ce)):n.valueType==="item"?le.push(ce):le.push(ht(n,ce))}),v.value=G;const se=l.toRaw(le);K&&(c("update:pathNodes",X),c("update:modelValue",se),c("change",se))}},h=l.ref([]),R=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Y=>ue(Y)),T=yu(),S=async(Y,W)=>{if(Y){const N=await T.load("cascader",Y,W);if(N.length>0)if(typeof N[0]=="string"){let P=N.map(H=>bu(H));h.value=P}else h.value=N}};l.watch([()=>n.source,()=>n.params],async([Y,W])=>{S(Y,W)},{immediate:!(R.value||n.lazy)});let B=!1;const q=()=>{B||(B=!0,S(n.source,n.params))};l.watch([()=>h.value,()=>n.modelValue],([Y,W])=>{f(W,n.valueType,Y,!1),c("setValue",W)}),n.lazy&&f(n.modelValue,"value",[],!1);let O=null,k=l.ref(!1);typeof n.remoteMethod=="function"&&(O=async Y=>{if(Y!=null){k.value=!0;try{const W=await n.remoteMethod(Y);h.value=W}catch(W){console.error(W)}k.value=!1}});const V=l.ref(!1),w=e,j=l.ref(null),g=l.computed(()=>({[w]:!0,"is-incomplete":j.value&&j.value.length>0})),L=l.computed(()=>{let Y={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(Y.multiple=!0),n.props&&Object.assign(Y,n.props),n.lazy&&(Y.lazy=!0,typeof n.lazyLoad=="function"?Y.lazyLoad=n.lazyLoad:Y.lazyLoad=async(W,N)=>{const K=await T.load("cascader",n.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===W.level){const X=W.pathLabels??[];let P=[];X.forEach(H=>{H&&P.push(H)}),P.length>0&&(j.value=P.join(n.separator))}else j.value=null;N(K)}),Y}),Z=Y=>{n.allowCreate?(c("update:modelValue",Y),c("change",Y),v.value=Y):f(Y,"value",h.value,!0)};let M=he(n,"hintText"),E=l.ref(!1);const F=Y=>{let N=Y.target.value;V.value=!0,de(M.value)||(E.value=!0),c("focus",N,Y)},_=Y=>{setTimeout(()=>{E.value&&(E.value=!1),V.value=!1},0);let N=Y.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),I.value||c("blur",N,Y)},U=()=>{c("clear","")},Q=l.ref(!1);let A=null;const ee=()=>{n.showTooltip&&Q.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{Q.value=!0},150))},C=()=>{A&&(clearTimeout(A),Q.value=!1,A=null)},$=l.computed(()=>Q.value||E.value),D=l.computed(()=>Q.value?p.value:M.value),I=l.ref(!1),b=Y=>{I.value=Y,c("visible-change",Y),Y||c("selected")},z=Y=>{c("remove-tag",Y)},J=Y=>{c("expand-change",Y)},ne=l.ref();return we({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const W={...r.attrs,ref:ne,class:g.value,props:L.value,clearable:n.clearable,placeholder:j.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:v.value,separator:n.separator,onClear:U,onChange:Z,onFocus:F,onBlur:_,onVisibleChange:b,onRemoveTag:z,expandChange:J};typeof O=="function"&&(W["remote-method"]=O,W.loading=k.value);const N={};r.slots.option&&(N.default=r.slots.option),r.slots.empty&&(N.empty=r.slots.empty);const K=[],X=l.h(x.ElCascader,W,N);K.push(X);const P={default:()=>K};P.label=r.slots.default,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const G={...Oe(n,Ro),hintText:D.value,hintVisible:$.value,onMouseover:ee,onMouseleave:C};return n.prop&&(G.prop=`${n.prop}_item`),R.value&&!n.lazy&&(G["appear-listen"]=!0,G.onAppear=q),l.h(o,G,P)}}}}const{componentName:wu,create:Su,scope:Tu}=ae("cascader-item"),Nl=Su(xu(wu,Tu,Ee)),Fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $u(e,t,o){return{props:{...Ce,...Ve,...Fo},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}=je.useFoxI18n(t),m=d(n,["placeholder"]),v=l.ref(!1),y=he(n,"modelValue",null,c),p=e,f=l.computed(()=>({[p]:!0})),h=w=>{y.value=w,c("update:modelValue",w),c("input",w)},R=w=>{c("change",w)},T=w=>{c("select",w)};let S=he(n,"hintText"),B=l.ref(!1);const q=w=>{let g=w.target.value;v.value=!0,de(S.value)||(B.value=!0),c("focus",g,w)},O=w=>{setTimeout(()=>{B.value&&(B.value=!1),v.value=!1},0);let g=w.target.value;n.maxLength&&g.length>Number(n.maxLength)&&(g=g.slice(0,Number(n.maxLength))),c("blur",g,w)},k=()=>{c("clear","")},V=l.ref();return we({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()},setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const j={...r.attrs,ref:V,class:f.value,placeholder:m.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,onClear:k,onChange:R,onInput:h,onFocus:q,onBlur:O,onSelect:T},g={};r.slots.prepend&&(g.prepend=r.slots.prepend),r.slots.append&&(g.append=r.slots.append),r.slots.prefix&&(g.prefix=r.slots.prefix),r.slots.suffix&&(g.suffix=r.slots.suffix),r.slots.option&&(g.default=r.slots.option);const L=[],Z=l.h(x.ElAutocomplete,j,g);L.push(Z);const M={default:()=>L};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const F={...Oe(n,Fo),hintText:S.value,hintVisible:B.value};return n.prop&&(F.prop=`${n.prop}_item`),l.h(o,F,M)}}}}const{componentName:Cu,create:Eu,scope:Nu}=ae("autocomplete-item"),kl=Eu($u(Cu,Nu,Ee));function ku(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(v=>v[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(v=>v[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(v=>v[n]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let Pu=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 Iu(){const e=l.getCurrentInstance();return new Pu(e.proxy)}const Zr={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 Ou(e,t){return{props:{...Zr},setup(o,{attrs:n,slots:r}){const a=Iu(),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=ku(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{componentName:Dm,create:Vu,scope:Rm}=ae("mapping"),Rt=Vu(Ou());function Du(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:{...Zr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Du(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(x.ElTableColumn,{...n},a)}}}}const{componentName:Fm,create:Fu,scope:Am}=ae("table-mapping-column"),Pl=Fu(Ru()),Au=Symbol.for("TableStateKey");function Ao(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 Mu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Au,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Ao(u.row,u.column.property),c=a?Ao(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},v=l.h("span",m,[l.h("span",{class:{"el-radio__inner":!0}})]),y={class:{"el-radio":!0,"is-checked":d}};return l.h("label",y,[v])}};return l.h(x.ElTableColumn,{...n},i)}}}}const{componentName:Mm,create:Lu,scope:Lm}=ae("table-radio-column"),Il=Lu(Mu()),Bu={},_u={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 qu(e,t){return l.openBlock(),l.createElementBlock("svg",_u,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 ju=Ue(Bu,[["render",qu]]),{componentName:Bm,create:zu,scope:_m}=ae("table-setting"),Hu={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:"不固定"}},Ku=zu({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:ju,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Hu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed===""||b.fixed===!0||b.fixed==="left")),i=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed==="right")),u=l.computed(()=>r.value.filter(b=>!(b.label===""||b.type||b.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=b=>b.length>1,v=(b,z)=>{Array.isArray(b)&&Array.isArray(z)&&b.forEach(Y=>{z.some(W=>W.prop===Y.prop?(Y.label=W.label,!0):!1)});const J=[];r.value=b.map((Y,W)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&J.push(Y.prop),{...Y,sortIndex:W})),u.value.length+a.value.length+i.value.length===J.length?T.value=!0:J.length>0&&(S.value=!0),O.value=J},y=b=>b?b.type?b.type:b.label?b.prop:"":"",p=(b,z)=>{if(b.length!==z.length)return!1;const J=b.map(ne=>y(ne));for(let ne of z){const Y=y(ne);if(J.indexOf(Y)===-1)return!1}return!0},f=b=>{if(!b){const z=e.tableRef.getColumnSetting(),J=z.srcColumnPropertyList;n=J.map((ne,Y)=>({...ne,sortIndex:Y})),b=z.columnPropertyList,b&&b.length>0&&p(J,b)||(b=J)}v(b,n)},h=()=>{e.tableRef.setColumnSetting(r.value)},R=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=l.ref(!1),S=l.ref(!1),B=b=>{const z=[];r.value.forEach(ne=>{b&&!(ne.label===""||ne.type)&&z.push(ne.prop),ne.visible=b}),T.value=!1,S.value=!1,u.value.length+a.value.length+i.value.length===z.length?T.value=!0:z.length>0&&(S.value=!0),O.value=z,h()},q=()=>{f(n),h()},O=l.ref([]),k=b=>{r.value.forEach(J=>{if(J.label===""||J.type)return;const ne=b.indexOf(J.prop)!==-1;J.visible=ne}),T.value=!1,S.value=!1;const z=u.value.length+a.value.length+i.value.length;b.length===z?T.value=!0:b.length>0&&(S.value=!0),h()},V=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const w={currentRow:null,index:null,roleType:null},j=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,j(b)):null:null,g=b=>{const z=b.currentTarget;z&&z.dataset&&(w.roleType=z.dataset.roleType,w.index=z.dataset.index)},L=b=>{w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null),w.index=null,w.roleType=null},Z=b=>{const z=b.currentTarget;b.relatedTarget;const J=j(z);if(!J)return;const ne=J.dataset&&J.dataset.roleType;w.roleType===ne&&(b.preventDefault(),w.currentRow&&w.currentRow!==J&&w.currentRow.classList.remove("is-dragover"),J.classList.add("is-dragover"),w.currentRow=J)},M=b=>{b.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},E=b=>{const z=b.currentTarget,J=j(z);if(!J)return;const ne=J.dataset&&J.dataset.roleType;if(w.roleType!==ne)return;b.preventDefault();const Y=Number(w.index),W=Number(J.dataset.index);if(Y!==W){if(Y<W){const N=r.value[Y];r.value.splice(Y,1),r.value.splice(W,0,N)}else{const N=r.value[Y];r.value.splice(Y,1),r.value.splice(W+1,0,N)}v(r.value,n),h()}},F=b=>{const z=r.value[b];z.fixed="left",h()},_=b=>{const z=r.value[b];z.fixed="right",h()},U=b=>{const z=r.value[b];z.fixed=void 0,h()},Q=new Map;let A=null;function ee(b){const z=document.createRange();return z.setStart(b,0),z.setEnd(b,b.childNodes.length),z.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:T,isIndeterminate:S,handleCheckAllChange:B,handleReset:q,checkedValue:O,handleCheckChange:k,onShow:V,onDragStart:g,onDragEnd:L,onDragOver:Z,onDragLeave:M,onDrop:E,toLeftFixed:F,toRightFixed:_,toUnFixed:U,checkboxLabelStyle:R,onMouseOverForOverflowText:(b,z,J)=>{const ne=b.currentTarget;if(ne){const Y=Math.floor(ne.offsetWidth);if(Math.floor(ee(ne))>Y){let N=Q.get(z);if(N){if(N===A)return;Re.hide(N)}N=Re.show(ne,J,{type:"text",placement:"top",closeOnClick:!1}),N&&(Q.set(z,N),A=N)}}},onMouseLeaveForOverflowText:(b,z)=>{const J=Q.get(z);J&&(Re.hide(J),J===A&&(A=null))},onMouseOverForTip:(b,z)=>{const J=b.currentTarget;J&&(A&&Re.hide(A),A=Re.show(J,z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{A&&(Re.hide(A),A=null)}}}}),Wu={class:"fox-table-setting"},Yu={class:"fox-table-setting__header"},Uu={class:"fox-table-setting__body"},Gu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Xu={key:0,class:"fox-table-setting__body-title"},Zu=["data-index","draggable"],Ju=["onMouseover","onMouseleave"],Qu={class:"tools-item"},ec={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},tc={key:0,class:"fox-table-setting__body-title"},nc=["data-index","draggable"],lc=["onMouseover","onMouseleave"],oc={class:"tools-item"},rc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},ac={key:0,class:"fox-table-setting__body-title"},ic=["data-index","draggable"],sc=["onMouseover","onMouseleave"],uc={class:"tools-item"};function cc(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"),v=l.resolveComponent("fox-checkbox"),y=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",Wu,[l.createElementVNode("div",Yu,[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",Uu,[l.createVNode(y,{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",Gu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Xu,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,Ju)]),_:2},1032,["value"]),l.createElementVNode("div",Qu,[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,Zu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",ec,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",tc,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,lc)]),_:2},1032,["value"]),l.createElementVNode("div",oc,[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,nc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",rc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",ac,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(v,{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,sc)]),_:2},1032,["label"]),l.createElementVNode("div",uc,[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,ic))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Nn=Ue(Ku,[["render",cc]]);let fc=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 dc(){const e=l.getCurrentInstance();return new fc(e.proxy)}class hc{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 Jr(){const e=l.getCurrentInstance();return new hc(e.proxy)}const mc=Symbol.for("TableStateKey"),Mo={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},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Lo={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}},Bn={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:()=>"不固定"}},gc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function vc(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 _n(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=vc(n,r);if(a!==i)return!1}return!0})}function pc(e,t,o){return{inheritAttrs:!1,props:{...Ce,...Ve,...Mo,...Lo,...Bn,...gc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=je.useFoxI18n(t),{emitEvent:i,broadcast:u}=Ne({componentName:e,validateHandler:{getValue(...te){return k.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})),v=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),y=l.shallowRef({}),p=l.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),f=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),R=ue(n.infiniteLoad);R||(l.watch(()=>n.pageIndex,te=>{f.value=te}),l.watch(()=>n.pageSize,te=>{h.value=te}),l.watch([f,h],([te,oe],[re,ie])=>{oe!==ie&&(f.value=1,te=1),g(n.data,te,oe,p.value)}));const T=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);T()&&l.watch([()=>n.data,p],async([te,oe],[re,ie])=>{T()&&(te!==re&&(w=!0),!(!Array.isArray(te)&&Qe(te,re)&&Qe(oe,ie))&&(R?(f.value=0,q.value=!0,k.value=[],Z()):f.value===1?g(te,f.value,h.value,oe):f.value=1))},{deep:!0});const S=te=>{f.value=te,i("page-index-change",te)},B=te=>{h.value=te,i("page-size-change",te)},q=l.ref(!0),O=l.ref(0),k=l.ref(),V=dc();let w=!0;const j=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,te=>ue(te)),g=async(te,oe,re,ie,Te)=>{w=!1;try{if(Te===!0){if(!q.value)return!1;const pe=await V.load("table",te,oe,re,ie,w,a.value);return O.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,k.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(k.value?.length??0)>=O.value)||pe.page.length<re?(q.value=!1,!1):!0}else{const pe=await V.load("table",te,oe,re,ie,w,a.value);return O.value=pe.totalSize,k.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),O.value=0,k.value=[]}return!1};let L=!1;const Z=async()=>{if(!L){if(L=!0,!q.value){L=!1;return}f.value+=1,await g(n.data,f.value,h.value,p.value,!0),L=!1}},M=(te={},oe=!1)=>new Promise(async re=>{y.value={...l.toRaw(te??{})},oe||(f.value=n.pageIndex??1),R===!0?(f.value=0,k.value=[],q.value=!0,await Z()):await g(n.data,f.value,h.value,p.value),re()}),E=()=>{O.value=0,k.value=[],R===!0&&(f.value=0,q.value=!0)};let F=!1;const _=()=>{F||(F=!0,M())},U=l.ref(null);if(R===!0){let te=null;const oe=()=>{U.value&&(te=new IntersectionObserver(ie=>{let Te=!1;for(let pe of ie)if(pe.intersectionRatio>0){Te=!0;break}Te&&Z()}),te.observe(U.value))},re=()=>{!te||!U.value||(te.unobserve(U.value),te=null)};l.onMounted(oe),l.onBeforeUnmount(re)}T()&&!j.value&&M();const Q=l.ref(null);l.provide(mc,{currentRow:Q});const A=(te,oe)=>{Q.value=te,i("current-change",te,oe)},ee=(te,oe,re)=>{i("row-click",te,oe,re),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(te)},C=[],$=(te,oe)=>{if(i("expand-change",te,oe),ue(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=C.length;C.splice(0,re)}else{C.forEach(ie=>{ie!==te&&xe?.value.toggleRowExpansion(ie,!1)});const re=C.length;C.splice(0,re,te)}},D=r.attrs.id??n.prop??r.attrs.name,I=Jr(),b=l.ref([]);let z=[];const J=()=>({srcColumnPropertyList:z.map(oe=>({...oe})),columnPropertyList:b.value}),ne=te=>{b.value=[...te],W()},Y=async()=>{const te=await I.load(D);te&&(b.value=te)},W=()=>{I.save(D,b.value)},N=()=>{I.remove(D)};Y();const K=te=>te?te.type?te.type:te.label?te.prop:"":"",X=()=>typeof r.slots.default=="function"?r.slots.default():[],P=(te,oe={})=>{for(let re in oe){const ie=oe[re];typeof ie!="function"&&(te[re]=ie)}},H=l.computed(()=>{const te=X(),oe=new Map;if(z=[],te.forEach(re=>{const Te=re;if(!Te.props)return;const pe=K(Te.props);oe.set(pe,Te);const ze={label:"",prop:""};P(ze,Te.props),z.push(ze)}),b.value.length===z.length){const re=[];for(let ie of b.value){const Te=K(ie),pe=oe.get(Te);if(!pe)return te;if(ie.visible===!1)continue;const ze=pe;ze.props.fixed=ie.fixed,re.push(ze)}return re}return te}),G=l.shallowRef(new Map),le=({row:te,column:oe,rowIndex:re,columnIndex:ie})=>{const Te=`${re}_${oe.property}`,pe=`${re}_${ie}`;let ze=G.value.get(Te);return ze||(ze=G.value.get(pe)),typeof ze=="string"?ze:""},se=te=>typeof te=="function"?oe=>{const re=[];let ie=le(oe);return ie&&re.push(ie),ie=te(oe),ie&&re.push(ie),re.length===0?"":re.join(" ")}:le,ce=(te=!1)=>{G.value.forEach((oe,re)=>{ge(re,oe,te)})},ge=(te,oe,re=!1)=>{const ie=`${te}_item`;re?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:te},"setCellClassNames",[]):u.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:te,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",oe):u.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",oe)},ve=(te,oe,re)=>{const ie=`${te}_${oe}`;re?(G.value.set(ie,re),ge(ie,re)):(G.value.delete(ie),ge(ie,"",!0)),l.triggerRef(G)},Se=te=>{ce(!0),G.value.clear(),te.forEach(oe=>{const re=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?G.value.set(re,oe.children):typeof oe.cellClassName=="string"&&G.value.set(re,oe.cellClassName)}),ce(),l.triggerRef(G)},it=()=>{ce(),G.value.clear(),l.triggerRef(G)},He=l.shallowRef(new Map),st=({rowIndex:te})=>{const oe=`${te}`;return He.value.get(oe)??""},In=te=>typeof te=="function"?oe=>{const re=[];let ie=st(oe);return ie&&re.push(ie),ie=te(oe),ie&&re.push(ie),re.length===0?"":re.join(" ")}:st,ua=(te,oe)=>{const re=`${te}`;oe?He.value.set(re,oe):He.value.delete(re),l.triggerRef(He)},ca=()=>{He.value.clear(),l.triggerRef(He)},xe=l.ref();return we({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{xe?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!k.value)return;const re=_n(k.value,te);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowSelection(ie,oe)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{xe?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!k.value)return;const re=_n(k.value,te);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowExpansion(ie,oe)})},setCurrentRow:te=>{xe?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!k.value)return;const oe=_n(k.value,te);oe.length!==0&&xe?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Q.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:te=>{xe?.value.clearFilter(te)},doLayout:()=>{xe?.value.doLayout()},sort:(te,oe)=>{xe?.value.sort(te,oe)},scrollTo:(te,oe)=>{xe?.value.scrollTo(te,oe)},setScrollTop:te=>{xe?.value.setScrollTop(te)},setScrollLeft:te=>{xe?.value.setScrollLeft(te)},loadData:M,clearData:E,getData(){return k.value},getTotalSize(){return O.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:J,setColumnSetting:ne,removeColumnSetting:N,setCellClassName:ve,setCellClassNames:Se,clearCellClassName:it,setRowClassName:ua,clearRowClassName:ca}),()=>{const oe={...Ze(r.attrs),onCurrentChange:A,onRowClick:ee,onExpandChange:$,data:k.value,ref:xe,class:c.value,"cell-class-name":se(n.cellClassName),"row-class-name":In(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>H.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),R===!0){const Ke=[];if(q.value){const $t=l.h(Ie.Loading,{class:`${s}__infinite-icon`});Ke.push($t);const Vn=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);Ke.push(Vn)}else{const $t=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Ke.push($t)}const ut={ref:U,class:`${s}__infinite`},On=l.h("div",ut,Ke);re.append=()=>On}const ie=l.h(x.ElTable,oe,re),Te=[];if(Te.push(ie),!R){let Ke=null;if(typeof r.slots.pagination=="function")Ke=r.slots.pagination();else if(n.showPagination){const ut={class:v.value,total:O.value,pageSize:h.value,"onUpdate:pageSize":B,pageSizes:n.pageSizes,currentPage:f.value,"onUpdate:currentPage":S,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Ke=l.h(x.ElPagination,ut)}if(n.showSetting){const ut=[];Ke&&ut.push(Ke);const On=l.h(x.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),$t=Nr(n,Bn),Vn=l.h(Nn,{...$t,tableRef:{getColumnSetting:J,setColumnSetting:ne,removeColumnSetting:N}},{default:()=>On});ut.push(Vn);const fa=l.h("div",{class:m.value},ut);Te.push(fa)}else Ke&&Te.push(Ke)}const pe={default:()=>Te},gt={...Oe(n,Mo,Lo,Bn)};return n.prop&&(gt.prop=`${n.prop}_item`),gt.contentClass=`${s}__wrap`,gt.errorMarkClass="is-table-error",j.value&&T()&&(gt["appear-listen"]=!0,gt.onAppear=_),l.h(o,gt,pe)}}}}const{componentName:yc,create:bc,scope:xc}=ae("table-item"),Ol=bc(pc(yc,xc,Ee));function St(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 wc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Sc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=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 Tc(){const e=l.getCurrentInstance();return new Sc(e.proxy)}function Qr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=St(e,t),r=St(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function $c(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=St(e,a)===t;else if(o==="item")i=Qr(e,a,t);else{let u=Ft(e,a);u==null&&(u=St(e,a)),i=u===t}if(i){r=a;break}}return r}function Cc(e){return{text:e,value:e}}function Ec(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Bo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Nc(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,...Bo},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),v=(w,j,g,L=!0)=>{const Z=$c(n,w,j,g);if(Z===null){if(m.value===null)return;m.value=null,d.value=null,L&&(c("update:modelValue",null),c("change",null));return}if(!Qr(n,Z,m.value)){d.value=w;const E=l.toRaw(Z);m.value=E;let F=null;n.valueType==="text"?F=St(n,E):n.valueType==="item"?F=E:F=Ft(n,E),L&&(c("update:modelValue",F),c("change",F))}},y=l.ref([]),p=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,w=>ue(w)),f=Tc(),h=async(w,j)=>{if(w){const g=await f.load("radio",w,j);if(g.length>0)if(typeof g[0]=="string"){let M=g.map(E=>Cc(E));y.value=M}else y.value=g}};l.watch([()=>n.source,()=>n.params],async([w,j])=>{h(w,j)},{immediate:!p.value});let R=!1;const T=()=>{R||(R=!0,h(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([w,j])=>{v(j,n.valueType,w,!1),c("setValue",j)});const S=e,B=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{v(w,"value",y.value,!0)};let O=he(n,"hintText"),k=he(n,"hintVisible");const V=(w,j)=>{const g=[];return w.forEach((L,Z)=>{const M=Ft(n,L),E=St(n,L);let F=wc(n,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const _=Ec(n,L,Z)??{},U=`${M}_${Z}`,Q={..._,key:U,value:M,size:n.size,border:ue(n.border)};F&&(Q.disabled=F),n.itemType==="button"?g.push(l.h(x.ElRadioButton,Q,{default:()=>[E]})):typeof j=="function"?g.push(l.h(x.ElRadio,Q,{default:()=>j(L)})):g.push(l.h(x.ElRadio,Q,{default:()=>[E]}))}),g};return we({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const j={...Ze(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,onChange:q},g=[],L={};r.slots.options?L.default=r.slots.options:L.default=()=>V(y.value,r.slots.text);const Z=l.h(x.ElRadioGroup,j,L);g.push(Z);const M={default:()=>g};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const F={...Oe(n,Bo),hintText:O.value,hintVisible:k.value};return n.prop&&(F.prop=`${n.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=T),l.h(o,F,M)}}}}const{componentName:kc,create:Pc,scope:Ic}=ae("radio-item"),Vl=Pc(Nc(kc,Ic,Ee));function Tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Oc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Vc=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 Dc(){const e=l.getCurrentInstance();return new Vc(e.proxy)}function ea(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=Tt(e,t),r=Tt(e,o);if(n!==r)return!1;const a=xt(e,t),i=xt(e,o);return a===i}function Rc(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=Tt(e,i)===a;else if(o==="item")u=ea(e,i,a);else{let s=xt(e,i);s==null&&(s=Tt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Fc(e){return{text:e,value:e}}function Ac(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const _o={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Mc(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,..._o},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([]),v=(w,j,g,L=!0)=>{const Z=Rc(n,w,j,g);if(Z===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],L&&(c("update:modelValue",[]),c("change",[]));return}let M=!0;if(Z.length!==m.value.length)M=!1;else for(let E=0;E<Z.length;E++){const F=Z[E],_=m.value[E];if(!ea(n,F,_)){M=!1;break}}if(!M){m.value=Z;let E=[],F=[];Z.forEach(U=>{E.push(xt(n,U)),n.valueType==="text"?F.push(Tt(n,U)):n.valueType==="item"?F.push(U):F.push(xt(n,U))}),d.value=E;const _=l.toRaw(F);L&&(c("update:modelValue",_),c("change",_))}},y=l.ref([]),p=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,w=>ue(w)),f=Dc(),h=async(w,j)=>{if(w){const g=await f.load("checkbox",w,j);if(g.length>0)if(typeof g[0]=="string"){let M=g.map(E=>Fc(E));y.value=M}else y.value=g}};l.watch([()=>n.source,()=>n.params],async([w,j])=>{h(w,j)},{immediate:!p.value});let R=!1;const T=()=>{R||(R=!0,h(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([w,j])=>{v(j,n.valueType,w,!1),c("setValue",j)});const S=e,B=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{v(w,"value",y.value,!0)};let O=he(n,"hintText"),k=he(n,"hintVisible");const V=(w,j)=>{const g=[];return w.forEach((L,Z)=>{const M=xt(n,L),E=Tt(n,L);let F=Oc(n,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const _=Ac(n,L,Z)??{},U=`${M}_${Z}`,Q={..._,key:U,class:n.itemClass,value:M,size:n.size,border:ue(n.border)};F&&(Q.disabled=F),n.itemType==="button"?g.push(l.h(x.ElCheckboxButton,Q,{default:()=>[E]})):typeof j=="function"?g.push(l.h(x.ElCheckbox,Q,{default:()=>j(L)})):g.push(l.h(x.ElCheckbox,Q,{default:()=>[E]}))}),g};return we({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const j={...Ze(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:$e(n.max),min:$e(n.min),onChange:q},g=[],L={};r.slots.options?L.default=r.slots.options:L.default=()=>V(y.value,r.slots.text);const Z=l.h(x.ElCheckboxGroup,j,L);g.push(Z);const M={default:()=>g};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const F={...Oe(n,_o),hintText:O.value,hintVisible:k.value};return n.prop&&(F.prop=`${n.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=T),l.h(o,F,M)}}}}const{componentName:Lc,create:Bc,scope:_c}=ae("checkbox-item"),Dl=Bc(Mc(Lc,_c,Ee)),qo={modelValue:{type:[Number,String],required:!1}};function qc(e,t,o){return{props:{...Ce,...Ve,...qo},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=he(n,"modelValue",R=>$e(R),c),m=e,v=l.computed(()=>({[m]:!0})),y=R=>{c("update:modelValue",R),c("change",R)};let p=he(n,"hintText"),f=l.ref(!1);const h=l.ref();return we({setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const T={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value||i.value,modelValue:d.value,onChange:y},S={},B=[],q=l.h(x.ElRate,T,S);B.push(q);const O={default:()=>B};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const V={...Oe(n,qo),hintText:p.value,hintVisible:f.value};return n.prop&&(V.prop=`${n.prop}_item`),l.h(o,V,O)}}}}const{componentName:jc,create:zc,scope:Hc}=ae("rate-item"),Rl=zc(qc(jc,Hc,Ee)),jo={modelValue:{type:[Boolean,String,Number],required:!1}};function Kc(e,t,o){return{props:{...Ce,...Ve,...jo},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=he(n,"modelValue",null,c),m=e,v=l.computed(()=>({[m]:!0})),y=R=>{c("update:modelValue",R),c("change",R)};let p=he(n,"hintText"),f=he(n,"hintVisible");const h=l.ref();return we({setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const T={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:y},S={},B=[],q=l.h(x.ElSwitch,T,S);B.push(q);const O={default:()=>B};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const V={...Oe(n,jo),hintText:p.value,hintVisible:f.value};return n.prop&&(V.prop=`${n.prop}_item`),l.h(o,V,O)}}}}const{componentName:Wc,create:Yc,scope:Uc}=ae("switch-item"),Fl=Yc(Kc(Wc,Uc,Ee)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Gc(e,t,o){return{props:{...Ce,...Ve,...zo},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=he(n,"modelValue",null,d),v=e,y=l.computed(()=>({[v]:!0})),p=k=>{d("update:modelValue",k),d("change",k)};let f=he(n,"hintText"),h=l.ref(!1);const R=k=>{let w=k.target.value;c.value=!0,de(f.value)||(h.value=!0),d("focus",w,k)},T=k=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let w=k.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),B.value||d("blur",w,k)},S=()=>{d("clear","")},B=l.ref(!1),q=k=>{B.value=k,d("visible-change",k),k||d("selected")},O=l.ref();return we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const V={...Ze(r.attrs),ref:O,class:y.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":p,onClear:S,onFocus:R,onBlur:T,onVisibleChange:q},w={};r.slots.option&&(w.default=r.slots.option);const j=[],g=l.h(x.ElTreeSelect,V,w);j.push(g);const L={default:()=>j};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const M={...Oe(n,zo),hintText:f.value,hintVisible:h.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,L)}}}}const{componentName:Xc,create:Zc,scope:Jc}=ae("tree-select-item"),Al=Zc(Gc(Xc,Jc,Ee)),Qc={},ef={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 tf(e,t){return l.openBlock(),l.createElementBlock("svg",ef,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 nf=Ue(Qc,[["render",tf]]),{componentName:Hm,create:lf,scope:Km}=ae("group-setting"),of={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:"到底部"}},rf=lf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:nf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...of},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=Jr(),u=C=>C.length>1,s=()=>{const C=[],$=[...a.value];a.value=$.map((I,b)=>(I.visible!==!1&&C.push(I.prop),{...I,sortIndex:b})),a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),S.value=C},c=C=>{let $=null;if(typeof C=="string")$=document.querySelectorAll(`.fox-group[prop="${C}"] > div > .fox-item[prop]`);else if(C&&typeof C=="object"){const I=C.$el??C;typeof I.querySelectorAll=="function"&&($=I.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const D=[];return $.forEach(I=>{const b=I.querySelector(".label--string");let z="";b&&(z=b.textContent??"");const J=I.getAttribute("prop")??"",Y=window.getComputedStyle(I,null).getPropertyValue("display");D.push({label:z,prop:J,sortIndex:0,visible:Y!=="none"})}),D},d=()=>{if(!r){const C=c(e.groupRef??e.groupProp);if(C.length===0)return!1;r=C}return!0},m=async(C=!1)=>{const $=await i.load(e.groupProp),D=I=>{if(!I||!r)return;const b=r.map(z=>({...z}));Array.isArray($)&&$.forEach(z=>{b.some(J=>{if(J.prop===z.prop){const ne=J.label;return Object.assign(J,z),J.label=ne,!0}return!1})}),a.value=b.sort((z,J)=>z.sortIndex-J.sortIndex),s(),C&&y(!1)};r?D(!0):mn(d,e.initDelay,5,50,!1,D)},v=()=>{const C=r??[];a.value=C.map($=>({...$})),s(),y()},y=(C=!0)=>{C&&i.save(e.groupProp,a.value);const $=a.value.map(D=>({...D}));t("change",$)},p=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),R=C=>{const $=[];a.value.forEach(I=>{C&&$.push(I.prop),I.visible=C}),f.value=!1,h.value=!1,a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),S.value=$,y()},T=()=>{v()},S=l.ref([]),B=C=>{a.value.forEach(D=>{const I=C.indexOf(D.prop)!==-1;D.visible=I}),f.value=!1,h.value=!1;const $=a.value.length;C.length===$?f.value=!0:C.length>0&&(h.value=!0),y()},q=()=>{m()};l.onMounted(()=>{m(!0)});const O={currentRow:null,index:null},k=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,k(C)):null:null,V=C=>{const $=C.currentTarget;$&&$.dataset&&(O.index=$.dataset.index)},w=C=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null},j=C=>{const $=C.currentTarget;C.relatedTarget;const D=k($);D&&(C.preventDefault(),O.currentRow&&O.currentRow!==D&&O.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),O.currentRow=D)},g=C=>{C.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},L=C=>{const $=C.currentTarget,D=k($);if(!D)return;C.preventDefault();const I=Number(O.index),b=Number(D.dataset.index);if(I!==b){if(I<b){const z=a.value[I];a.value.splice(I,1),a.value.splice(b,0,z)}else{const z=a.value[I];a.value.splice(I,1),a.value.splice(b+1,0,z)}s(),y()}},Z=C=>{const $=a.value[C];a.value.splice(C,1),a.value.splice(0,0,$),s(),y()},M=C=>{const $=a.value[C];a.value.splice(C,1),a.value.push($),s(),y()};n({refresh:()=>{r=null,m(!1)}});const E=new Map;let F=null;function _(C){const $=document.createRange();return $.setStart(C,0),$.setEnd(C,C.childNodes.length),$.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:R,handleReset:T,checkedValue:S,handleCheckChange:B,onShow:q,onDragStart:V,onDragEnd:w,onDragOver:j,onDragLeave:g,onDrop:L,checkboxLabelStyle:p,toTop:Z,toBottom:M,onMouseOverForOverflowText:(C,$,D)=>{const I=C.currentTarget;if(I){const b=Math.floor(I.offsetWidth);if(Math.floor(_(I))>b){let J=E.get($);if(J){if(J===F)return;Re.hide(J)}J=Re.show(I,D,{type:"text",placement:"top",closeOnClick:!1}),E.set($,J),F=J}}},onMouseLeaveForOverflowText:(C,$)=>{const D=E.get($);D&&(Re.hide(D),D===F&&(F=null))},onMouseOverForTip:(C,$)=>{const D=C.currentTarget;D&&(F&&Re.hide(F),F=Re.show(D,$,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:C=>{F&&(Re.hide(F),F=null)}}}}),af={class:"fox-group-setting"},sf={class:"fox-group-setting__header"},uf={class:"fox-group-setting__body"},cf={class:"fox-group-setting__body-list","data-role":"container"},ff=["data-index","draggable"],df=["onMouseover","onMouseleave"],hf={class:"tools-item"};function mf(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"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",af,[l.createElementVNode("div",sf,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=y=>e.isCheckAll=y),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",uf,[l.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",cf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,y=>(l.openBlock(),l.createElementBlock("div",{key:y.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":y.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:y.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,y.prop,y.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,y.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(y.label),45,df)]),_:2},1032,["label"]),l.createElementVNode("div",hf,[l.createVNode(d,{onClick:p=>e.toTop(y.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(y.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,ff))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Ml=Ue(rf,[["render",mf]]),gf=["aria-labelledby"],vf=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),pf=[vf],yf=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"},pf,14,gf))}}),bf=["aria-labelledby"],xf=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),wf=[xf],Sf=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"},wf,14,bf))}}),Tf=["aria-labelledby"],$f=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),Cf=[$f],Ll=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"},Cf,14,Tf))}}),Ef=["aria-labelledby"],Nf=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),kf=[Nf],Pf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit: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"},kf,14,Ef))}}),If=["aria-labelledby"],Of=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vf=[Of],Df=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"},Vf,14,If))}}),Rf=["aria-labelledby"],Ff=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),Af=[Ff],Mf=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"},Af,14,Rf))}}),Lf={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}},Ho=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],Bf=(e,t)=>t[e.visibleKey],Ko=(e,t)=>t[e.disabledKey],_f=(e,t)=>{const o=t[e.doitKey];return ue(o)},qf=(e,t)=>{const o=t[e.numKey];return o==null?null:$e(t[o])},Wo=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function jf(e,t,o,n=!1){return{props:{...Lf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const C={};return C[`${e}`]=!0,C}),s=l.computed(()=>{const C={};return C[`${e}__titles`]=!0,C[`${r.direction}`]=!0,r.align==="left"&&(C.left=!0),r.scroll===!0&&(C.scrollable=!0),r.shape&&(C[`${r.shape}`]=!0),C}),c=l.computed(()=>({})),d=l.computed(()=>{if(!r.gutter)return 0;const C=me(r.gutter);return C<=0?0:C}),m=l.ref(r.modelValue);l.watch(()=>r.modelValue,C=>{m.value!==C&&(m.value=C,_(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=l.computed(()=>{const C={};return f.value||(C.display="none"),C}),p=l.ref(),f=l.ref(!1),h=()=>{const C=!f.value;R(C)},R=C=>{const $=C;$?(f.value=$,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},T=l.ref(),S=l.ref([]),B=(C,$)=>{S.value[$]=C},q=C=>$=>{B($,C)},O=(C,$)=>{const D=T.value,I=S.value;if(!D||!I||!I[C])return;const b=I[C];let z=0;r.direction==="vertical"?z=b.offsetTop-(D.offsetHeight-b.offsetHeight)/2:z=b.offsetLeft-(D.offsetWidth-b.offsetWidth)/2,k(D,z,$?0:.3,r.direction)},k=(C,$,D,I)=>{let b=0;const z=I==="horizontal"?C.scrollLeft:C.scrollTop,J=D===0?1:Math.round(D*1e3/16);function ne(){I==="horizontal"?C.scrollLeft+=($-z)/J:C.scrollTop+=($-z)/J,++b<J&&il(ne)}ne()},V=(C,$)=>{const D=Nt(r,C),I={};return I[`${e}__titles-item`]=!0,I.disabled=Ko(r,C),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0),r.ellipsis&&(I.ellipsis=!0),$&&($.class&&(I[`${$.class}`]=!0),$.disabled===!0&&(I.disabled=$.disabled)),I},w=(C,$)=>{const D={};if(d.value>0){const I=Math.abs(d.value/2);r.direction==="vertical"?(D["margin-top"]=`${I}px`,D["margin-bottom"]=`${I}px`):(D["margin-left"]=`${I}px`,D["margin-right"]=`${I}px`)}return $&&$.style&&Object.assign(D,$.style),D},j=(C,$)=>`${Nt(r,C)??$}`,g=(C,$)=>{const D=Nt(r,C),I={};I[`${e}__popup-item`]=!0,I.disabled=Ko(r,C),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0);const b=Wo(r,C,$);return b&&b.disabled===!0&&(I.disabled=b.disabled),I},L=l.computed(()=>(r.data??[]).filter($=>Bf(r,$)!==!1)),Z=(C,$)=>{const D=Nt(r,C);if(m.value==D)return;const I=()=>{m.value=D,r.scroll&&O($,!1),i("update:modelValue",D),i("change",C,$)};if(typeof r.beforeChange=="function"){const b=r.beforeChange(C,$);yr(b)?b.then(z=>{z!==!1&&I()}).catch(()=>{I()}):b!==!1&&I()}else I()},M=(C,$)=>function(){Z(C,$)},E=(C,$)=>{Z(C,$),R(!1)},F=(C,$)=>function(){E(C,$)},_=C=>{if(!Array.isArray(r.data)||!r.scroll)return;const $=r.data.findIndex(D=>Nt(r,D)===m.value);$!==-1&&O($,C)};l.watch(()=>r.data,()=>{setTimeout(_,0)}),l.onMounted(()=>{_(!0)});const U=(C,$)=>{if(a.item)return a.item({item:C,index:$});const D=Wo(r,C,$),I=[];if(a.text){const ne=a.text({item:C,index:$});I.push(ne)}else{const ne=[];if(D?.doit===!0||_f(r,C)){const K={class:[`${e}__titles-item-tip`,"doit"]},X=l.h("view",K);ne.push(X)}const Y=D?.num??qf(r,C);if(Y){let K="";const X=$e(Y);X>=100?K="99+":K=`${X}`;const P={class:[`${e}__titles-item-tip`,"num"]},H=l.h("view",P,[K]);ne.push(H)}const W={class:`${e}__titles-item-text`};ne.push(Ho(r,C));const N=l.h("view",W,ne);I.push(N)}const b={class:`${e}__titles-item-line`},z=l.h("view",b);I.push(z);const J={ref:q($),class:V(C,D),style:w(C,D),key:j(C,$),onClick:M(C,$)};return l.h("view",J,I)},Q=()=>{const C=a.default?a.default():[];if(C.length===0)for(let D=0;D<L.value.length;D++){const I=L.value[D],b=U(I,D);C.push(b)}const $={ref:T,class:s.value,style:c.value};return l.h("view",$,C)},A=()=>{let C=null;a.navigation?C=a.navigation():C=l.h(o);const $={class:`${e}__navigation`,onClick:h};return l.h("view",$,[C])},ee=()=>{const C=[];for(let D=0;D<L.value.length;D++){const I=L.value[D];let b=null;a.popupItem?b=a.popupItem({item:I,index:D}):b=Ho(r,I);const z={class:g(I,D),key:j(I,D),onClick:F(I,D)},J=l.h("view",z,[b]);C.push(J)}const $={class:v.value,style:y.value};return l.h("view",$,C)};return()=>{const C=[],$=Q();if(C.push($),r.showQuickNavigation){const I=A();C.push(I);const b=ee();C.push(b)}const D={class:u.value};return l.h("view",D,C)}}}}const{create:zf,componentName:Hf,scope:Kf}=ae("tabs-bar"),Bl=zf(jf(Hf,Kf,Sf,!1)),ta=Symbol("TabsStatesKey"),Wf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Yo=10;function na(e,t){return e>t&&e>Yo?"horizontal":t>e&&t>Yo?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},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=na(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 Yf(){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",v=()=>d.value==="horizontal",y=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const S=h.touches[0];i.value=S.clientX-e.value,u.value=S.clientY-t.value,r.value=S.clientX,a.value=S.clientY}else{const T=h;i.value=T.clientX-e.value,u.value=T.clientY-t.value,r.value=T.clientX,a.value=T.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),n.value=Date.now()-o.value,d.value||(d.value=na(s.value,c.value))},start:h=>{if(y(),h.touches){const S=h.touches[0];e.value=S.clientX,t.value=S.clientY}else{const T=h;e.value=T.clientX,t.value=T.clientY}o.value=Date.now()},reset:y,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:v}}const Uf=15,Gf=300,Xf=200;function Zf(e,t,o=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*o}function Uo(e,t=0,o,n,r=Xf){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 Jf=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=Lt()}open(t){this.el=t;const o=Bt(),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<Gf&&Math.abs(r)>Uf?(r=Zf(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 Qf(e,t,o,n=1){return new Jf(e,t,o,n)}function ed(e,t,o=!1){return{props:{...Wf},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:O=>{const k={name:O};u.current.value===O&&(k.loaded=!0),i.value.push(k),l.triggerRef(i)},remove:O=>{const k=i.value.findIndex(V=>V.name===O);k!==-1&&i.value.splice(k,1)},isLoaded:O=>{if(!n.lazy)return!0;const k=i.value.findIndex(V=>V.name===O);return k!==-1?u.current.value?i.value[k].loaded??!1:k===0:!1}};l.provide(ta,u);const s=O=>{const k=i.value.findIndex(V=>V.name===O);k!==-1&&(i.value[k].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([O,k])=>{u.current.value!==O&&(u.current.value=O??"",s(O??"")),u.direction.value!==k&&(u.direction.value=k)});const c=l.ref(null),d=l.ref(null),m=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const y=l.computed(()=>{const O={},k=i.value.length;if(k<=0)return O;const V=i.value.findIndex(w=>w.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(O.height=`${k*u.tabHeight.value}px`,V!==-1&&(O.transform=`translate(0, -${V*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(O.width=`${k*u.tabWidth.value}px`,V!==-1&&(O.transform=`translate(-${V*u.tabWidth.value}px, 0)`)),v&&(v=!1,O.transition="transform 0s ease"),O}),p={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=O=>{const k=i.value.length,V=i.value.findIndex(w=>w.name===u.current.value);p.moved=0,O.direction==="vertical"?(p.min=-1*(u.tabHeight.value*(k-1)+u.tabHeight.value/4),p.max=u.tabHeight.value/4,p.start=-V*u.tabHeight.value,p.itemDistance=u.tabHeight.value):(p.min=-1*(u.tabWidth.value*(k-1)+u.tabWidth.value/4),p.max=u.tabWidth.value/4,p.start=-V*u.tabWidth.value,p.itemDistance=u.tabWidth.value)},h=O=>{const k=d.value;if(!k)return;let V=p.start+O.delta;if(V>p.max?V=p.max:V<p.min&&(V=p.min),O.type==="move")Uo(k,V,"move",O.direction,300);else if(O.type==="end"){let w=Math.floor(Math.abs(V)*1/p.itemDistance);const j=Math.abs(V)%p.itemDistance;p.start>V?j>=p.itemDistance*p.triggerAutoMoveRatio&&(w+=1):j>p.itemDistance-p.itemDistance*p.triggerAutoMoveRatio&&(w+=1),V=-1*w*p.itemDistance,Uo(k,V,"end",O.direction,300),p.moved=V;const g=i.value[w].name;u.current.value=g??"",s(g??""),r("update:modelValue",g)}},R=()=>{},T=()=>{if(!c.value)return;const O=bn(c.value);u.tabWidth.value=O.width,u.tabHeight.value=O.height},S=qe(T,120);let B=null,q=null;return l.onMounted(()=>{c.value&&(window.ResizeObserver&&(q=new window.ResizeObserver(S),q.observe(c.value)),T(),n.draggle&&(B=Qf(f,h,R),B.open(d.value)))}),l.onBeforeUnmount(()=>{q&&(q.disconnect(),q=null),B&&B.close()}),()=>{const O={class:`${e}__panes`,style:y.value,ref:d},k=l.h("view",O,[a?.default?.()]),V={class:m.value,ref:c};return l.h("view",V,[k])}}}}const{create:td,componentName:nd,scope:ld}=ae("tabs-container"),_l=td(ed(nd,ld,!1)),od={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function rd(e,t,o){return{props:{...od},setup(n,{emit:r,slots:a}){const i=l.inject(ta);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`},v=n.emptyIcon??o,y=l.h(v,m),p={class:`${e}__empty-text`},f=n.emptyText??"Loading",h=l.h("view",p,[f]),R={class:`${e}__empty`},T=l.h("view",R,[y,h]);c.push(T)}const d={class:`${e}`,style:u.value};return l.h("view",d,c)}}}}const{create:ad,componentName:id,scope:sd}=ae("tabs-pane"),ql=ad(rd(id,sd,Ll)),ud={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 cd(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Go(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Xo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function fd(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function qn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Zo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Jo(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function jn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class dd{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 hd(){const e=l.getCurrentInstance();return new dd(e.proxy)}function md(e,t,o,n){return{props:{...ud},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=hd(),c=l.ref([]),d=l.computed(()=>c.value.filter($=>fd(r,$)!==!1)),m=l.ref(-1),v=()=>{const $=r.modelValue,D=d.value.findIndex(I=>Go(r,I)===$);m.value!==D&&(m.value=D,r.scroll&&ee(D))};l.watch([()=>r.modelValue,d],()=>{v()});const y=$=>m.value===$,p=$=>{if($<0&&$>=d.value.length)return!1;const D=d.value[$],b=(jn(r,D,$)??{}).status??qn(r,D);return y($)||b},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(()=>({})),R=($,D,I,b,z)=>{const J={[`${u}__step`]:!0};return z&&(J[`${z}`]=!0),J[`${T.value}`]=!0,b&&(J["is-doit"]=!0),$===m.value?J["is-active"]=!0:D==="done"?J["is-done"]=!0:D==="error"?J["is-error"]=!0:D==="half"?J["is-half"]=!0:I?J["is-disabled"]=!0:J["is-normal"]=!0,J},T=l.computed(()=>{if(r.mode==="simple")return"start";let $=r.align;return $||(r.direction==="vertical"?$="start":$="center"),$}),S=($,D={})=>{const I={...D};return T.value==="start"&&$===d.value.length-1?I.flex="0 0 auto":r.step?r.direction==="vertical"?I.height=r.step:I.width=r.step:I.flex="1 1 100%",I},B=($,D)=>{let I={};if(D<d.value.length-1){const b=D+1;p(D)&&p(b)?r.direction==="vertical"?I.height="100%":I.width="100%":I.opacity="0"}return I},q=$=>d.value.length-1===$,O=($,D)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&D>m.value||m.value===D)return;const I=m.value,b=D;m.value=D,r.scroll&&ee(D);const z=Go(r,$);i("update:modelValue",z);const J={fromIndex:I,currentIndex:b,item:$,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",z,J)},k=l.ref(!0),V=async($,D)=>{try{const I=await s.load("stesbar",$,D);Array.isArray(I)&&(c.value=I),k.value=!1}catch(I){console.error("[FoxUI] Load StepsBar Data Fail",I),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([$,D])=>{$&&V($,D)},{immediate:!0});const w=($,D,I,b,z)=>{let J=null;if(a.icon)J=a.icon({item:$,index:D,status:b});else if(b==="done"){const Y={};r.iconSize&&(Y.width=r.iconSize,Y.height=r.iconSize);const W=r.icon??o;J=l.h(W,Y)}else{const Y=I??`${D+1}`;J=l.h("span",{},[Y])}const ne={class:"fox-steps-bar__icon",onClick:()=>{z||O($,D)}};return l.h("view",ne,[J])},j=($,D,I)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:B($,D)});return l.h("view",{class:"fox-steps-bar__line"},[b])},g=()=>{let $=null;if(a.markIcon)$=a.markIcon();else{const I={};r.iconSize&&(I.width=r.markIconSize,I.height=r.markIconSize);const b=r.markIcon??n;$=l.h(b,I)}return l.h("view",{class:"fox-steps-bar__mark"},[$])},L=($,D,I,b,z)=>{const J=[];if(!q(D)){const W=j($,D);J.push(W)}const ne=w($,D,I,b,z);J.push(ne);const Y={class:"fox-steps-bar__head"};return l.h("view",Y,J)},Z=($,D,I,b)=>{let z=null;a.main?z=a.main({item:$,index:D,status:I}):z=cd(r,$);const J={class:"fox-steps-bar__main",onClick:()=>{b||O($,D)}};return l.h("view",J,[z])},M=($,D,I)=>{let b=null;if(a.sub){b=a.sub({item:$,index:D,status:I});const z={class:"fox-steps-bar__sub"};return l.h("view",z,[b])}return null},E=($,D)=>{const I=jn(r,$,D)??{},b=I.status??qn(r,$);let z=Xo(r,$);I.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const J=I.label??Jo(r,$),ne=[],Y=w($,D,J,b,z);Y&&ne.push(Y);const W=Z($,D,b,z);if(W&&ne.push(W),!q(D)){const G=j($,D);G&&ne.push(G)}const N=l.h("view",{class:"fox-steps-bar__head"},ne),K=I.class,X=I.style??{};let P=Zo(r,$);I.doit===!0&&(P=!0);const H={ref:A(D),class:R(D,b,z,P,K),style:S(D,X)};return l.h("view",H,[N])},F=($,D)=>{const I=jn(r,$,D)??{},b=I.status??qn(r,$);let z=Xo(r,$);I.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const J=I.label??Jo(r,$),ne=[],Y=r.layout;for(let P of Y)if(P==="head"){const H=L($,D,J,b,z);ne.push(H)}else if(P==="main"){const H=Z($,D,b,z);ne.push(H)}else if(P==="sub"){const H=M($,D,b);ne.push(H)}else if(P==="mark"){const H=g();ne.push(H)}const W=I.class,N=I.style??{};let K=Zo(r,$);I.doit===!0&&(K=!0);const X={ref:A(D),class:R(D,b,z,K,W),style:S(D,N)};return l.h("view",X,ne)},_=l.ref(),U=l.ref([]),Q=($,D)=>{U.value[D]=$},A=$=>D=>{Q(D,$)},ee=($,D)=>{const I=_.value,b=U.value;if(!I||!b||!b[$])return;const z=b[$];let J=0;r.direction==="vertical"?J=z.offsetTop-(I.offsetHeight-z.offsetHeight)/2:J=z.offsetLeft-(I.offsetWidth-z.offsetWidth)/2,C(I,J,.3,r.direction)},C=($,D,I,b)=>{let z=0;const J=b==="horizontal"?$.scrollLeft:$.scrollTop,ne=Math.round(I*1e3/16);function Y(){b==="horizontal"?$.scrollLeft+=(D-J)/ne:$.scrollTop+=(D-J)/ne,++z<ne&&il(Y)}Y()};return()=>{const $=[];if(r.mode==="simple")for(let I=0;I<d.value.length;I++){const b=d.value[I],z=E(b,I);$.push(z)}else for(let I=0;I<d.value.length;I++){const b=d.value[I],z=F(b,I);$.push(z)}const D={ref:_,class:f.value,style:h.value};return l.h("view",D,$)}}}}const{componentName:gd,create:vd,scope:pd}=ae("steps-bar"),jl=vd(md(gd,pd,Df,Mf)),yd=Symbol.for("InnerPageScopeKey"),bd=Symbol.for("PageWrapperKey");function xd(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(yd,!0);const r={};l.provide(bd,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(x.ElDialog,c,m)}}}}const{componentName:Ym,create:wd,scope:Um}=ae("dialog-item"),zl=wd(xd());let kt=0;const Qo="fox-overflow-hidden",er=()=>rt?document.body:{classList:[]},Sd=e=>[()=>{if(e())try{!kt&&er().classList.add(Qo),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&er().classList.remove(Qo)}catch{}}],Td={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:$d,create:Cd}=ae("overlay"),Ed=Cd({props:{...Td},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Sd(()=>e.lockScroll),r=l.computed(()=>({[$d]:!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 Nd(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 kn=Ue(Ed,[["render",Nd]]),kd={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:{}}},la=2e3;let tr=la;const Pd=(e,t)=>({components:t,props:{...kd},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!==la&&(tr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++tr,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)},v=f=>{n("click-overlay",f),o.closeOnClickOverlay&&n("update:visible",!1)},y=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:v,onOpened:y,onClosed:p}}}),{componentName:Id,create:Od}=ae("popup"),Vd=Od(Pd(Id,{FoxOverLay:kn,Close:Pf}));function Dd(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 Hl=Ue(Vd,[["render",Dd]]),{create:Rd}=ae("toast"),Fd=Rd({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,y=>{y&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const y=me(e.iconSize);return l.h(e.icon,{width:y,height:y,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()}}}}),Ad={key:1,class:"fox-toast-title"},Md=["innerHTML"];function Ld(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",Ad,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Md)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Kl=Ue(Fd,[["render",Ld]]),Bd={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"}},_d=(e,t,o)=>({props:{...Bd},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}=Ar(),{toLocaleRefs:i}=je.useFoxI18n(t),u=i(n,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:n.background})),d=l.computed(()=>({background:n.inputBackground})),m=w=>{let g=w.target.value;n.maxLength&&g.length>Number(n.maxLength)&&(g=g.slice(0,Number(n.maxLength))),a("update:modelValue",g,w),a("change",g,w)},v=l.ref({}),y=w=>{let g=w.target.value;s.active=!0,v.value=n.focusStyle,a("focus",g,w)},p=w=>{setTimeout(()=>{s.active=!1},0);let g=w.target.value;n.maxLength&&g.length>Number(n.maxLength)&&(g=g.slice(0,Number(n.maxLength))),v.value={},a("blur",g,w)},f=w=>{a("update:modelValue","",w),a("change","",w),a("clear","")},h=l.computed(()=>String(n.modelValue).length>0),R=l.computed(()=>{const w={};return h.value||(w.display="none"),w}),T=()=>{a("search",n.modelValue)},S=w=>{a("keyup-input",w),w.key.toLocaleUpperCase()==="ENTER"&&T()},B=w=>{a("click-input",w)},q=w=>{a("click-left-icon",n.modelValue,w)},O=l.computed(()=>({textAlign:n.inputAlign})),k=l.ref(null);l.onMounted(()=>{n.autofocus&&k.value.focus()});const V=()=>{const w=[];if(r.leftin){const M={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:q},E=l.h("view",M,[r.leftin()]);w.push(E)}const j={ref:k,class:[`${e}__input-inner`],style:O.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:B,onInput:m,onFocus:y,onBlur:p,onkeyup:S},g=l.h("input",j);w.push(g);const L=[];if(n.clearable){const M={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:R.value,onClick:f},E=r?.clear?.()??n.clearIcon??o,F=l.h("view",M,[l.h(E)]);L.push(F)}if(r.rightin){const M={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=l.h("view",M,[r.rightin()]);L.push(E)}if(L.length>0){const M={class:`${e}__input-inner-right`},E=l.h("view",M,L);w.push(E)}const Z={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...v.value}};return l.h("view",Z,w)};return()=>{const w=[];if(n.label){const L={class:`${e}__search-label`},Z=l.h("span",L,[n.label]);w.push(Z)}if(r.leftout){const L={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Z=l.h("view",L,[r.leftout()]);w.push(Z)}const j=V();if(w.push(j),r.rightout){const L={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Z=l.h("view",L,[r.rightout()]);w.push(Z)}const g={class:`${e}`,style:c.value};return l.h("view",g,w)}}}),{componentName:qd,create:jd,scope:zd}=ae("searchbar"),Wl=jd(_d(qd,zd,Ie.CircleClose)),Hd=/scroll|auto|overlay/i,oa=window;function Kd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Wd(e,t=oa){let o=e;for(;o&&o!==t&&Kd(o);){const{overflowY:n}=window.getComputedStyle(o);if(Hd.test(n))return o;o=o.parentNode}return t}function ra(e,t=oa){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Wd(e.value,t))}),o}const aa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Yd={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 Ud(e,t,o){return{props:{...Yd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(t),u=i(n,["pullText","loadText","loadMoreText"]),s=l.ref(),c=ra(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),v=T=>T?T.offsetTop+v(T.offsetParent):0,y=()=>{let T=0,S=0,B="down";if(c.value==window){const q=aa();s.value&&(T=v(s.value)+s.value.offsetHeight-q-window.innerHeight),S=q}else{const{scrollHeight:q,clientHeight:O,scrollTop:k}=c.value;T=q-O-k,S=k}return d.beforeScrollTop>S?B="up":B="down",d.beforeScrollTop=S,r("scroll-change",S),T<=n.threshold&&B=="down"},p=()=>{dr(()=>{if(!y()||!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 R=l.ref(!1);return l.onActivated(()=>{R.value&&(R.value=!1,f())}),l.onDeactivated(()=>{R.value=!0,h()}),l.watch(()=>n.modelValue,T=>{T||(d.isInfiniting=!1)}),()=>{const T={class:"fox-infinite__container"},S=l.h("view",T,[a?.default?.()]),B=[];if(d.isInfiniting){let V=a?.loading?.()??null;if(!V){let g=a?.loadingIcon?.()??null;if(!g){const M={class:["fox-infinite__bottom-box__img"]};g=l.h(o,M)}const L={class:"fox-infinite__bottom-box__text"},Z=l.h("view",L,[u.loadText.value]);V=[g,Z]}const w={class:"fox-infinite__bottom-box"},j=l.h("view",w,V);B.push(j)}else if(!n.hasMore){let V=a?.finished?.()??null;if(!V){const w={class:"fox-infinite__bottom-tips"};V=l.h("view",w,[u.loadMoreText.value]),B.push(V)}}const q={class:"fox-infinite__bottom"},O=l.h("view",q,B),k={class:m.value,ref:s};return l.h("view",k,[S,O])}}}}const{componentName:Gd,create:Xd,scope:Zd}=ae("infinite-loading"),Yl=Xd(Ud(Gd,Zd,Ll)),Jd={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}},Qd=(e,t,o)=>({props:{...Jd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Bt(),c=l.ref(),d=ra(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),y=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 k={};return n.headHeight!=50&&(k.height=Pe(n.headHeight)),k}),h=k=>{const V=+(n.pullDistance||n.headHeight);let w=k;return k>V&&(k<V*2?w=(k+V)/2:w=V+k/4),Math.round(w)},R=(k,V)=>{const w=+(n.pullDistance||n.headHeight);m.distance=k,V?m.status="loading":k===0?m.status="normal":k<w?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:k})},T=()=>m.status!=="loading"&&m.status!=="complete",S=()=>d.value==window?aa()==0:d.value&&d.value.scrollTop==0,B=k=>{T()&&(S()?(s.start(k),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},q=k=>{T()&&m.moving&&(s.move(k),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(k.cancelable&&k.preventDefault(),R(h(s.state.deltaY))))},O=()=>{m.moving=!1,m.isPullRefresh&&T()&&s.state.deltaY&&(m.status==="loosing"?(R(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):R(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>n.modelValue,k=>{k?R(+n.headHeight,!0):R(0)}),()=>{const k=[];let V=null;if(m.status==="loading"){if(V=a?.loading?.()??null,!V){const F={class:["fox-pull-refresh-container-topbox-icon"]};V=l.h(o,F)}}else m.status==="pulling"?V=a?.pulling?.()??null:m.status==="loosing"&&(V=a?.loosing?.()??null);V&&k.push(V);const w={class:["fox-pull-refresh-container-topbox-text"]},j=l.h("dive",w,[y.value]);k.push(j);const g={class:["fox-pull-refresh-container-topbox"],style:f.value},L=l.h("div",g,k),Z={class:"fox-pull-refresh-container",style:p.value},M=l.h("div",Z,[L,a?.default?.()]),E={ref:c,class:v.value};return Lt()?Object.assign(E,{onTouchstart:B,onTouchmove:q,onTouchend:O}):Object.assign(E,{onMousedown:B,onMousemove:q,onMouseup:O}),l.h("div",E,[M])}}}),{componentName:eh,create:th,scope:nh}=ae("pull-refresh"),Ul=th(Qd(eh,nh,Ll));function lh(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},v=n.default?n.default():[],y=l.h("div",m,v),p={class:a.value};return o.textPosition==="right"?l.h("div",p,[d,y]):l.h("div",p,[y,d])}}}}const{componentName:oh,create:rh,scope:Gm}=ae("indicator"),Gl=rh(lh(oh));function ah(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 ih={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function sh(e,t,o,n=!1){return{props:{...ih},emits:["click"],setup(r,a){const i=l.ref(null),u=l.computed(()=>{const S={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(S[`${e}--${r.type??"default"}`]=!0),r.size&&(S[`${e}--${r.size}`]=!0),S}),s=l.computed(()=>{const S={},B=r.textColor??r.color;return B&&(S.color=B),S}),c=(S,B)=>{let q=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const O=r.highlightFilter;if(S.indexOf(O)!==-1){const V=S.replace(new RegExp(O,"g"),`<span>${O}</span>`);B.innerHTML=V,B.class["is-highlight"]=!0,q=l.h(r.tag,B)}}else if(typeof r.highlightFilter=="function"){const O=r.highlightFilter(S);O&&(B.innerHTML=O,B.class["is-highlight"]=!0,q=l.h(r.tag,B))}return q},d=S=>{a.emit("click",S)};let m="";const v=()=>{const S=i.value;if(!S)return;const B=S.clientWidth;ah(S,q=>{const O=S.innerHTML??"";de(O)||q<B||(m?o?.show(S,O,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show(S,O,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{m&&o?.hide(m)};let p=null;const f=S=>{p||(p=setTimeout(()=>{v(),p=null},r.showAfter??0))},h=S=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{y()},r.hideAfter??0)},R=()=>{const S=i.value;S&&(S.addEventListener("mouseover",f),S.addEventListener("mouseleave",h))},T=()=>{const S=i.value;S&&(S.removeEventListener("mouseover",f),S.removeEventListener("mouseleave",h))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||R()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||T()}),()=>{const S={onClick:d,class:u.value,style:s.value,ref:i};let B=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const V=a.slots.default();if(Array.isArray(V)&&V.length===1){const w=V[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const j=$e(r.digits),g=$e(r.decimalLength),L=ue(r.autoPadding);let Z=`${V[0].children}`,M=Z.split("").reverse().join("");M=un(M,g,L,j,r.separator),Z=M.split("").reverse().join(""),r.highlightFilter!==void 0&&(B=c(Z,S)),B||(S.innerHTML=Z,B=l.h(r.tag,S))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const V=a.slots.default();if(Array.isArray(V)&&V.length===1){const w=V[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const j=`${V[0].children}`;B=c(j,S),B||(S.innerHTML=j,B=l.h(r.tag,S))}}}B||(B=l.h(r.tag,S,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return B;let O=null;if(r.icon){const V={[`${e}__mark-wrap`]:!0};r.type&&(V[`${e}__mark-wrap--${r.type}`]=!0);const w={},j=r.color;j&&(w.color=j);const g={class:V,style:w};O=l.h("view",g,l.h(r.icon))}else if(a.slots.mark){const V={[`${e}__mark-wrap`]:!0};r.type&&(V[`${e}__mark-wrap--${r.type}`]=!0);const w={},j=r.color;j&&(w.color=j);const g={class:V,style:w};O=l.h("view",g,{default:a.slots.mark})}else{const V={[`${e}__mark`]:!0};r.type&&(V[`${e}__mark--${r.type??"default"}`]=!0);const w={},j=r.color;j&&(w["background-color"]=j);const g={class:V,style:w};O=l.h("view",g)}const k={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",k,[O,B])}}}}const{componentName:uh,create:ch,scope:fh}=ae("text"),Xl=ch(sh(uh,fh,Re,!1)),dh={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 hh(e,t,o){return{props:{...dh},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=he(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 v={class:c.value},y=o(n.icon,v);return y&&m.push(y),l.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:mh,create:gh,scope:vh}=ae("more-button"),ph=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),Zl=gh(hh(mh,vh,ph));function yh(e){e.stopPropagation()}let bh=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=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Bt(),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),yh(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 xh(e,t){return new bh(e,t)}const wh={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]}},Sh=(e,t,o,n=!1)=>({props:{...wh},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 T=[`${e}`];return r.customClass&&T.push(r.customClass),T}),c=l.computed(()=>{const T={};return de(u.top)||(T.top=u.top),de(u.right)||(T.right=u.right),de(u.bottom)||(T.bottom=u.bottom),de(u.left)||(T.left=u.left),de(r.width)||(T.width=r.width),de(r.height)||(T.height=r.height),de(r.color)||(T.color=r.color),de(r.background)||(T.background=r.background),de(r.borderRadius)||(T["border-radius"]=r.borderRadius),de(r.zIndex)||(T["z-index"]=r.zIndex),T}),d=l.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},v=l.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},p={x:0,y:0},R=xh(T=>{if(!v.value)return;const S=v.value;y(),u.left=S.offsetLeft,u.top=S.offsetTop,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`,S.style.right=null,S.style.bottom=null,p.x=u.left,p.y=u.top},T=>{if(!v.value)return;const S=v.value;y(),u.left=p.x+T.x,u.top=p.y+T.y,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&v.value){const T=[v.value];R.open(T)}}),l.onBeforeUnmount(()=>{r.draggable&&v.value&&R.close()}),()=>{let T=[];const S=typeof a.default=="function"?a.default():[];if(S&&S.length>0)T=S;else{const q=l.h(o,{class:d.value});T.push(q)}const B={ref:q=>{v.value=q},class:s.value,style:c.value,onClick:m};return l.h("view",B,T)}}}),{componentName:Th,create:$h,scope:Ch}=ae("floating-button"),Jl=$h(Sh(Th,Ch,yf,!1));function Eh(e){return e===window}const ia=e=>{const t=l.unref(e);if(Eh(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:Nh,create:kh,scope:Zm}=ae("tour"),Ph=kh({components:{Close:Ie.Close,ElPopover:x.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Nh,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:R,height:T,left:S,top:B}=r.value,q=e.steps[n.active].offset??p,O=[S+R/2,B+T/2],k=Number(f||R),V=Number(h||T);return{width:`${k+ +q.left+q.right}px`,height:`${V+q.top+q.bottom}px`,top:`${O[1]-V/2-+q.top}px`,left:`${O[0]-k/2-+q.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=ia(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)},v=()=>{e.closeOnClickOverlay&&m()},y=(p,f=0)=>{p&&d(),e.steps,n.active=f,n.showTour=p,n.showPopup=p};return l.onMounted(()=>{y(e.modelValue,e.current)}),l.watch(()=>e.modelValue,p=>{y(p)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:v}}}),Ih={key:0,class:"fox-tour__content"},Oh={key:0,class:"fox-tour__content-top"},Vh={class:"fox-tour__content-inner"},Dh={class:"fox-tour__content-bottom"},Rh={class:"fox-tour__content-bottom-init"},Fh={class:"fox-tour__content-bottom-operate"},Ah={key:1,class:"fox-tour__content fox-tour__content-tile"},Mh={class:"fox-tour__content-inner"};function Lh(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",Ih,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Oh,[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",Vh,l.toDisplayString(c.content),1),l.createElementVNode("div",Dh,[l.createElementVNode("div",Rh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Fh,[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",Ah,[l.createElementVNode("div",Mh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ql=Ue(Ph,[["render",Lh]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class Bh{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=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Bt(),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 nr(e,t){return new Bh(e,t)}const lr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const or=e=>{const t=e;t.key==="Escape"&&pt.forEach(o=>o(t))},_h=e=>{l.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",or),lr&&pt.push(e)}),l.onBeforeUnmount(()=>{pt=pt.filter(t=>t!==e),pt.length===0&&lr&&document.removeEventListener("keydown",or)})},zn="fox-focus-trap.focus-after-trapped",Hn="fox-focus-trap.focus-after-released",qh="fox-focus-trap.focusout-prevented",rr={cancelable:!0,bubbles:!1},jh={cancelable:!0,bubbles:!1},ar="foxFocusAfterTrapped",ir="foxFocusAfterReleased",zh=Symbol("foxFocusTrap"),eo=l.ref(),Pn=l.ref(0),to=l.ref(0);let zt=0;const sa=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},Hh=(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},sr=(e,t)=>{for(const o of e)if(!Hh(o,t))return o},Kh=e=>{const t=sa(e),o=sr(t,e),n=sr(t.reverse(),e);return[o,n]},Wh=e=>e instanceof HTMLInputElement&&"select"in e,nt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),to.value=window.performance.now(),e!==o&&Wh(e)&&t&&e.select()}};function ur(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Yh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=ur(e,n),e.unshift(n)},remove:n=>{e=ur(e,n),e[0]?.resume?.()}}},Uh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(nt(n,t),document.activeElement!==o)return},cr=Yh(),Gh=()=>Pn.value>to.value,Ht=()=>{eo.value="pointer",Pn.value=window.performance.now()},fr=()=>{eo.value="keyboard",Pn.value=window.performance.now()},Xh=()=>(l.onMounted(()=>{zt===0&&(document.addEventListener("mousedown",Ht),document.addEventListener("touchstart",Ht),document.addEventListener("keydown",fr)),zt++}),l.onBeforeUnmount(()=>{zt--,zt<=0&&(document.removeEventListener("mousedown",Ht),document.removeEventListener("touchstart",Ht),document.removeEventListener("keydown",fr))}),{focusReason:eo,lastUserFocusTimestamp:Pn,lastAutomatedFocusTimestamp:to}),Kt=e=>new CustomEvent(qh,{...jh,detail:e}),{componentName:Jm,create:Zh,scope:Qm}=ae("focus-trap"),Jh={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"}},Qh=Zh({props:Jh,emits:[ar,ir,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Xh();_h(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:R,ctrlKey:T,metaKey:S,currentTarget:B,shiftKey:q}=f,{loop:O}=e,k=h==="Tab"&&!R&&!T&&!S,V=document.activeElement;if(k&&V){const w=B,[j,g]=Kh(w);if(j&&g){if(!q&&V===g){const Z=Kt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),O&&nt(j,!0))}else if(q&&[j,w].includes(V)){const Z=Kt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),O&&nt(g,!0))}}else if(V===w){const Z=Kt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||f.preventDefault()}}};l.provide(zh,{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",v)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",v))});const c=f=>{o(ar,f)},d=f=>o(ir,f),m=f=>{const h=l.unref(n);if(!h)return;const R=f.target,T=f.relatedTarget,S=R&&h.contains(R);ue(e.trapped)||T&&h.contains(T)||(r=T),S&&o("focusin",f),!u.paused&&ue(e.trapped)&&(S?a=R:nt(a,!0))},v=f=>{const h=l.unref(n);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const R=f.relatedTarget;!sl(R)&&!h.contains(R)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const T=Kt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||nt(a,!0)}},0)}else{const R=f.target;R&&h.contains(R)||o("focusout",f)}};async function y(){await l.nextTick();const f=l.unref(n);if(f){cr.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const T=new Event(zn,rr);f.addEventListener(zn,c),f.dispatchEvent(T),T.defaultPrevented||l.nextTick(()=>{let S=e.focusStartEl;pr(S)||(nt(S),document.activeElement!==S&&(S="first")),S==="first"&&Uh(sa(f),!0),(document.activeElement===h||S==="container")&&nt(f)})}}}function p(){const f=l.unref(n);if(f){f.removeEventListener(zn,c);const h=new CustomEvent(Hn,{...rr,detail:{focusReason:i.value}});f.addEventListener(Hn,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Gh())&&nt(r??document.body,!0),f.removeEventListener(Hn,c),cr.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&y(),l.watch(()=>e.trapped,f=>{ue(f)?y():p()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:em,create:tm,scope:eg}=ae("floating-window"),nm=Symbol.for("InnerPageScopeKey"),lm=Symbol.for("PageWrapperKey"),om={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}},rm=tm({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Qh},props:{...om},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=em,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,P=>{n.value=P});const a=l.computed(()=>n.value===!1?!1:!V.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 P=["fox-floating-window"];return e.customClass&&P.push(e.customClass),P}),m=l.computed(()=>{const P={};return ct(i.value)?P.left="auto":P.left=De(i.value),ct(u.value)?P.top="auto":P.top=De(u.value),ct(s.value)?P.right="auto":P.right=De(s.value),ct(c.value)?P.bottom="auto":P.bottom=De(c.value),ct(e.zIndex)||(P["z-index"]=De(e.zIndex)),ct(O.value)||(P.height=O.value),ct(k.value)||(P.width=k.value),P}),v=l.computed(()=>e.closeIcon??Ie.Close),y=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??"展开"),R=l.computed(()=>({[`${o}__collapse-text`]:!0})),T=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),S=l.ref(),B=l.ref(null),q=l.ref(null),O=l.computed(()=>De(e.height)||""),k=l.computed(()=>De(e.width)||""),V=l.ref(ue(e.collapse)),w=(P,H=!0)=>{V.value!==P&&(V.value=P,P?$():D(),t("update:collapse",P),P&&typeof L.onHide=="function"?L.onHide():!P&&typeof L.onShow=="function"&&L.onShow())};l.watch(()=>e.collapse,P=>{w(P)});const j=()=>{g()},g=P=>{P=P??!V.value,w(P)};l.provide(nm,!0);const L={setCollapse:w,setFixedNavVisible:P=>{A.value=P}};l.provide(lm,L);const Z=()=>{typeof L.beforeClose=="function"?L.beforeClose(()=>{n.value=!1}):n.value=!1},M=l.ref(null),E=l.computed(()=>!e.fixedNavTeleport),F=l.computed(()=>{const P=["fox-floating-window__fixednav"];return e.expandClass&&P.push(e.expandClass),e.collapsePosition==="left"?P.push("is-left"):e.collapsePosition==="right"&&P.push("is-right"),P}),_=l.ref(""),U=l.computed(()=>{const P={};return _.value?P.top=_.value:e.collapseTop&&(P.top=e.collapseTop),P}),Q=l.ref(V.value),A=l.computed({set:P=>{Q.value=P},get:()=>n.value===!1?!1:Q.value});let ee=null;const C=()=>{typeof ee=="function"&&(ee(),ee=null)},$=()=>{M.value&&M.value.classList.add("slide-in"),A.value=!0,ee=()=>{M.value&&M.value.classList.remove("slide-in")}},D=()=>{M.value&&M.value.classList.add("slide-out"),ee=()=>{M.value&&M.value.classList.remove("slide-out"),A.value=!1}},I=()=>{i.value=null,u.value=null,s.value=null,c.value=null},b={x:0,y:0},ne=nr(P=>{if(!S.value)return;const H=S.value;if(I(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,b.x=i.value,b.y=u.value;else if(e.origin==="left-bottom"){const G=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=G-(H.offsetTop+H.offsetHeight),b.x=i.value,b.y=c.value}else if(e.origin==="right-bottom"){const G=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=G-(H.offsetLeft+H.offsetWidth),c.value=le-(H.offsetTop+H.offsetHeight),b.x=s.value,b.y=c.value}else{const G=document.documentElement.clientWidth||document.body.clientWidth;s.value=G-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,b.x=s.value,b.y=u.value}},P=>{if(!S.value)return;const H=S.value;I(),e.origin==="left-top"?(i.value=b.x+P.x,u.value=b.y+P.y,H.style.left=De(i.value),H.style.top=De(u.value)):e.origin==="left-bottom"?(i.value=b.x+P.x,c.value=b.y-P.y,H.style.left=De(i.value),H.style.bottom=De(c.value)):e.origin==="right-bottom"?(s.value=b.x-P.x,c.value=b.y-P.y,H.style.right=De(s.value),H.style.bottom=De(c.value)):(s.value=b.x-P.x,u.value=b.y+P.y,H.style.right=De(s.value),H.style.top=De(u.value))}),Y={x:0,y:0},K=nr(P=>{M.value&&(Y.x=M.value.offsetLeft,Y.y=M.value.offsetTop)},P=>{if(!M.value)return;const H=Y.y+P.y;_.value=`${H}px`}),X=()=>{if(S.value){const P=S.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");q.value=P}};return l.onMounted(()=>{if(e.draggable&&S.value){const P=[];B.value&&P.push(B.value),e.footerDraggable&&(X(),q.value&&P.push(q.value)),ne.open(P)}e.collapse===!0&&w(e.collapse,!1),M.value&&K.open(M.value)}),l.onBeforeUnmount(()=>{e.draggable&&B.value&&ne.close(),M.value&&K.close()}),{classes:d,styles:m,isShow:a,closeIcon:v,onClose:Z,dialogRef:S,headerRef:B,onClickToggle:j,collapseIcon:y,collapseText:p,collapseTextClasses:R,collapseIconClasses:T,expandIcon:f,expandText:h,isShowFixedNav:A,fixedNavRef:M,fixedNavClasses:F,fixedNavStyles:U,onAnimationEnd:C,teleportDisabled:r,fixedNavTeleportDisabled:E}}}),am={ref:"headerRef",class:"fox-floating-window__header"},im={class:"fox-floating-window__title"},sm={class:"fox-floating-window__tools"},um={class:"fox-floating-window__body"},cm={class:"fox-floating-window__fixednav__text"};function fm(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",am,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",im,l.toDisplayString(e.title),1),l.createElementVNode("div",sm,[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",um,[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",cm,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const no=Ue(rm,[["render",fm]]),dm={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 hm(e,t,o=!1){return{props:{...dm},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),v=l.ref(n.placement),y=l.ref(!1),p=l.ref(!1),f=l.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,R=(A,ee,C,$,D,I,b,z=!0)=>{const J=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,Y=A.split("-");let W=[];z?Y[0]==="top"?W=["top","bottom","right","left"]:Y[0]==="bottom"?W=["bottom","top","right","left"]:Y[0]==="left"?W=["left","top","bottom","right"]:Y[0]==="right"&&(W=["right","top","bottom","left"]):W=[A[0]];const N={top:null,right:null,bottom:null,left:null},K=[];for(let X=0;X<W.length;X++){const P=W[X];if(K[0]=P,Y[1]&&(K[1]=Y[1]),P==="top"){const H=C-b-n.arrowSize/2-n.offset;if(H>=0){N.top=H;let G=0;Y[1]==="start"?G=ee:Y[1]==="end"?G=ee+$-I:G=ee+$/2-I/2;const le=J-G-I;le<0?(G+=le,S.value=-le):S.value=0,N.left=G<0?0:G;break}}else if(P==="bottom"){const H=C+D+n.arrowSize/2+n.offset;if(H+b<=ne){N.top=H;let G=0;Y[1]==="start"?G=ee:Y[1]==="end"?G=ee+$-I:G=ee+$/2-I/2;const le=J-G-I;le<0?(G+=le,S.value=-le):S.value=0,N.left=G<0?0:G;break}}else if(P==="left"){const H=ee-I-n.arrowSize/2-n.offset;if(H>=0){N.left=H;let G=0;Y[1]==="start"?G=C:Y[1]==="end"?G=C+D-b:G=C+D/2-b/2,N.top=G<0?0:G;break}}else if(P==="right"){const H=ee+$+n.arrowSize/2+n.offset;if(H+I<=J){N.left=H;let G=0;Y[1]==="start"?G=C:Y[1]==="end"?G=C+D-b:G=C+D/2-b/2,N.top=G<0?0:G;break}}}return{bestPlacement:K.join("-"),bestInsetRect:N}},T=()=>{const A=n.visible,ee=n.autoFit;if(!rt||A===!1)return;if(n.reference){const b=h(),z=pl(b);s.value=z.x,c.value=z.y,d.value=b.offsetWidth,m.value=b.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 C=f.value.offsetWidth,$=f.value.offsetHeight,{bestPlacement:D,bestInsetRect:I}=R(n.placement,s.value,c.value,d.value,m.value,C,$,ee);v.value=D,u.value=I},S=l.ref(0),B=qe(()=>{T()},10),q=l.ref(n.visible);l.watch([()=>n.visible],([A])=>{q.value=A,A?(y.value=A,setTimeout(()=>{T(),p.value=!0},0)):p.value=!1});const O=l.computed(()=>q.value&&k.value),k=l.ref(!0),V=qe(A=>{const ee=A[0];ee&&(k.value=ee.isIntersecting)},10),w=new IntersectionObserver(V);l.watch([()=>n.reference,()=>n.referenceInset],([A,ee],[C,$])=>{!A&&!ee||(setTimeout(()=>{T()},0),n.autoFit&&(C&&(Ot.unwatch(C,B),w.unobserve(C)),A&&(Ot.watch(A,B),w.observe(A))))},{immediate:!0}),l.onBeforeUnmount(()=>{n.reference&&(Ot.unwatch(n.reference,B),w.unobserve(n.reference),w.disconnect())});const j=l.computed(()=>{const A={[e]:!0};return v.value.startsWith("top")?A["is-top"]=!0:v.value.startsWith("right")?A["is-right"]=!0:v.value.startsWith("bottom")?A["is-bottom"]=!0:v.value.startsWith("left")&&(A["is-left"]=!0),A[`is-${n.effect}`]=!0,!p.value&&O.value&&(A["is-opacity"]=!0),p.value&&O.value&&(A["is-show"]=!0),O.value||(A["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(A[`${n.customClass}`]=!0),A}),g=l.computed(()=>{const A={};return u.value.top!==null&&(A.top=`${u.value.top}px`),u.value.right!==null&&(A.right=`${u.value.right}px`),u.value.bottom!==null&&(A.bottom=`${u.value.bottom}px`),u.value.left!==null&&(A.left=`${u.value.left}px`),n.width&&(A.width=n.width),n.zIndex&&(A["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(A,n.customStyle),A}),L=()=>{q.value=!1,r("update:visible",!1)},Z=()=>{if(!n.showOverlay)return null;const A={class:`${e}__overlay`,onClick:L};return l.h("div",A)},M=()=>{let A=null;return a.title?A=l.h("div",{class:`${e}__title`},{default:a.title}):n.title&&(A=l.h("div",{class:`${e}__title`},[n.title])),A},E=l.computed(()=>({[`${e}__arrow`]:!0})),F=l.computed(()=>{const A={};return n.showArrow?(A.width=`${n.arrowSize}px`,A.height=`${n.arrowSize}px`,v.value==="top"?(A.left="50%",A.bottom="0",A.transform="translate(-50%, 50%)"):v.value==="top-start"?(A.left=`${n.arrowOffset+S.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):v.value==="top-end"?(A.right=`${n.arrowOffset-S.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):v.value==="right"?(A.left="0",A.top="50%",A.transform="translate(-50%, -50%)"):v.value==="right-start"?(A.left="0",A.top=`${n.arrowOffset}px`,A.transform="translate(-50%, 50%)"):v.value==="right-end"?(A.left="0",A.bottom=`-${n.arrowOffset}px`,A.transform="translate(-50%, 50%)"):v.value==="bottom"?(A.left="50%",A.top="0",A.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(A.left=`${n.arrowOffset+S.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(A.right=`${n.arrowOffset-S.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):v.value==="left"?(A.right="0",A.top="50%",A.transform="translate(50%, -50%)"):v.value==="left-start"?(A.right="0",A.top=`${n.arrowOffset}px`,A.transform="translate(50%, -50%)"):v.value==="left-end"&&(A.right="0",A.bottom=`-${n.arrowOffset}px`,A.transform="translate(50%, -50%)"),A):{display:"none"}}),_=()=>{const A={class:E.value,style:F.value};return l.h("div",A)},U=()=>{q.value===!1&&(y.value=!1)},Q=A=>{if(!f.value||q.value===!1)return;const{relatedTarget:ee}=A;f.value.contains(ee)||(q.value=!1,r("update:visible",!1))};return i({doLayout:T}),()=>{if(!y.value)return null;const A=[],ee=Z();ee&&A.push(ee);const C=[],$=M();if($&&C.push($),a.default){const z=a.default();C.push(z)}const D=_();D&&C.push(D);const I={ref:f,class:j.value,style:g.value,onAnimationend:U};n.leaveHide&&(I.onMouseleave=Q);const b=l.h("div",I,{default:()=>C});return A.push(b),A}}}}const{componentName:mm,create:gm,scope:vm}=ae("popover-dialog"),lo=gm(hm(mm,vm,!1));function pm(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Rr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:tg,create:ym,scope:ng}=ae("domain-provider"),oo=ym(pm()),bm={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 xm(e,t){return{inheritAttrs:!1,props:bm,setup(o,{slots:n}){if(rt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,y)=>{if(d===null){a.set(v,{visible:null,callback:y});return}r.has(v)&&d.unobserve(v),r.set(v,{visible:null,callback:y}),d.observe(v)},u=v=>{if(d===null){a.delete(v);return}r.has(v)&&(r.delete(v),d.unobserve(v))};let s=o.initialVisibleObserverSize;yi({acquire:()=>{const v=s>0;return s--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(v,y,p)=>{d=new IntersectionObserver(f=>{for(let h of f){let R=!1;h.intersectionRatio>0&&(R=!0);const T=r.get(h.target);if(T)try{if(o.loadPolicy==="lazy"&&!R&&T.visible!==null)return;T.visible=R,T.callback(R)}catch(S){console.error(S)}}},{root:v,rootMargin:y,threshold:p}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,y])=>{if(y||!v||d)return;let p=null;typeof v=="string"?p=document.querySelector(v):p=v,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{componentName:lg,create:wm,scope:og}=ae("rolling-provider"),ro=wm(xm()),Sm=[fl,hl,ml,gl,vl,Ee,yl,bl,Mt,xl,wl,Sl,Tl,$l,Cl,El,Nl,kl,Pl,Il,Nn,Ol,Vl,Dl,Rl,Fl,Al,Ml,Bl,_l,ql,jl,zl,kn,Hl,Kl,Wl,Yl,Ul,Rt,En,Gl,Xl,Zl,Jl,Ql,no,lo,oo,ro],Tm=new Za(Sm,[ei],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>x.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>x.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>x.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>x.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>x.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>x.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>x.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>x.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>x.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>x.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>x.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>x.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>x.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>x.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>x.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>x.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>x.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>x.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>x.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>x.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>x.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>x.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>x.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>x.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>x.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>x.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>x.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>x.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>x.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>x.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>x.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>x.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>x.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>x.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>x.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>x.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>x.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>x.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>x.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>x.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>x.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>x.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>x.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>x.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>x.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>x.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>x.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>x.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>x.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>x.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>x.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>x.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>x.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>x.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>x.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>x.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>x.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>x.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>x.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>x.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>x.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>x.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>x.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>x.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>x.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>x.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>x.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>x.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>x.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>x.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>x.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>x.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>x.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>x.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>x.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>x.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>x.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>x.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>x.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>x.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>x.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>x.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>x.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>x.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>x.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>x.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>x.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>x.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>x.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>x.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>x.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>x.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>x.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>x.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>x.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>x.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>x.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>x.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>x.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>x.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>x.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>x.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>x.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>x.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>x.ElWatermark});exports.AutocompleteItem=kl;exports.Broadcast=ul;exports.BroadcastKey=be;exports.CascaderItem=Nl;exports.CheckboxItem=Dl;exports.Content=gl;exports.DataItemsKey=vt;exports.DateItem=Sl;exports.DateUtils=Be;exports.DialogItem=zl;exports.Domain=gn;exports.DomainKey=Le;exports.DomainProvider=oo;exports.FloatingButton=Jl;exports.FloatingWindow=no;exports.FooterBar=ml;exports.FoxAutocompleteItem=kl;exports.FoxCascaderItem=Nl;exports.FoxCheckboxItem=Dl;exports.FoxContent=gl;exports.FoxDateItem=Sl;exports.FoxDialogItem=zl;exports.FoxDomainProvider=oo;exports.FoxFloatingButton=Jl;exports.FoxFloatingWindow=no;exports.FoxFooterBar=ml;exports.FoxGroup=vl;exports.FoxGroupSetting=Ml;exports.FoxHeaderBar=hl;exports.FoxHintText=Mt;exports.FoxIndicator=Gl;exports.FoxInfiniteLoading=Yl;exports.FoxInputItem=xl;exports.FoxInputNumberItem=El;exports.FoxItem=Ee;exports.FoxMapping=Rt;exports.FoxMoneyItem=Cl;exports.FoxMoreButton=Zl;exports.FoxOverLay=kn;exports.FoxPage=fl;exports.FoxPopoverDialog=lo;exports.FoxPopup=Hl;exports.FoxPrice=En;exports.FoxPullRefresh=Ul;exports.FoxRadioItem=Vl;exports.FoxRateItem=Rl;exports.FoxRollingProvider=ro;exports.FoxRowItem=bl;exports.FoxSearchBar=Wl;exports.FoxSelectItem=wl;exports.FoxSlotItem=yl;exports.FoxStepsBar=jl;exports.FoxSwitchItem=Fl;exports.FoxTableItem=Ol;exports.FoxTableMappingColumn=Pl;exports.FoxTableRadioColumn=Il;exports.FoxTableSetting=Nn;exports.FoxTabsBar=Bl;exports.FoxTabsContainer=_l;exports.FoxTabsPane=ql;exports.FoxText=Xl;exports.FoxTimeItem=Tl;exports.FoxTimeSelectItem=$l;exports.FoxToast=Kl;exports.FoxTour=Ql;exports.FoxTreeSelectItem=Al;exports.Group=vl;exports.GroupSetting=Ml;exports.HeaderBar=hl;exports.HintText=Mt;exports.Indicator=Gl;exports.InfiniteLoading=Yl;exports.InputItem=xl;exports.InputNumberItem=El;exports.Item=Ee;exports.Mapping=Rt;exports.MoneyItem=Cl;exports.MoreButton=Zl;exports.OverLay=kn;exports.Page=fl;exports.PopoverDialog=lo;exports.Popup=Hl;exports.Price=En;exports.PriorityPolicy=_e;exports.PullRefresh=Ul;exports.RadioItem=Vl;exports.RateItem=Rl;exports.RollingProvider=ro;exports.RowItem=bl;exports.SearchBar=Wl;exports.SelectItem=wl;exports.SlotItem=yl;exports.StepsBar=jl;exports.SwitchItem=Fl;exports.TableItem=Ol;exports.TableMappingColumn=Pl;exports.TableRadioColumn=Il;exports.TableSetting=Nn;exports.TabsBar=Bl;exports.TabsContainer=_l;exports.TabsPane=ql;exports.Text=Xl;exports.TimeItem=Tl;exports.TimeSelectItem=$l;exports.Toast=Kl;exports.Tour=Ql;exports.TreeSelectItem=Al;exports.UniqueID=Wr;exports.ValidateSchema=Vr;exports.ValidateSchemaKey=We;exports.cancelRaf=ma;exports.clearNonNumber=Ea;exports.clone=Jn;exports.compareTo=Gn;exports.createBroadcast=dn;exports.createValidateSchema=hn;exports.debounce=qe;exports.debounceRef=_a;exports.decimalLength=Er;exports.default=Tm;exports.defineBroadcast=Ia;exports.defineConfigDomain=Rr;exports.defineDataItem=Fr;exports.defineDomain=cl;exports.defineItem=Ne;exports.definePageState=Mr;exports.defineSimpleItem=Ar;exports.deleteGlobalValidator=Fa;exports.disabledProperty=Me;exports.divide=al;exports.excludeProps=Oe;exports.extend=mt;exports.floatData=Pa;exports.getGlobalValidateCheckEvents=Pr;exports.getGlobalValidateResetEvents=Or;exports.getPageContentAreaHeight=on;exports.getPageContentAreaWidth=rn;exports.getPageFooterAreaHeight=yn;exports.getPageHeaderAreaHeight=pn;exports.getRootDomain=yt;exports.hasSymbol=xr;exports.includeProps=Nr;exports.indexOf=Na;exports.integerLength=Cr;exports.isArray=va;exports.isArrayLike=Sr;exports.isBrowser=rt;exports.isDate=ba;exports.isESModule=wa;exports.isEmptyString=de;exports.isEqual=Qe;exports.isFunction=Xn;exports.isHidden=fn;exports.isInnerPage=za;exports.isMap=pa;exports.isNil=sl;exports.isNumberString=$r;exports.isObject=et;exports.isPlainObject=Zn;exports.isPromise=yr;exports.isRegExp=Qn;exports.isSet=ya;exports.isString=pr;exports.isSubPage=Ha;exports.isSymbol=xa;exports.isTouch=Lt;exports.isWindow=wr;exports.lastIndexOf=ka;exports.makeArray=Ca;exports.merge=Tr;exports.multiply=mr;exports.negate=gr;exports.nextTick=Ta;exports.numberFormat=un;exports.objectToString=br;exports.once=qa;exports.overrideGlobalValidateHandler=Da;exports.property=Fe;exports.raf=il;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Aa;exports.setGlobalValidateHandler=Va;exports.setGlobalValidateMessages=La;exports.setGlobalValidateResetEvents=Ma;exports.setGlobalValidator=Ra;exports.throttle=Ba;exports.toBoolean=ue;exports.toNumber=$e;exports.toPadding=Ge;exports.toPx=me;exports.toPxDesc=Pe;exports.toTypeString=cn;exports.toValue=he;exports.tryTimes=mn;exports.typeOf=nn;exports.unNumberFormat=vr;exports.updatePageState=el;exports.useBroadcast=Pt;exports.useDomain=at;exports.useExpose=we;exports.useInnerSize=bn;exports.usePageState=vn;exports.usePosition=pl;exports.useRawTouch=Bt;exports.useRect=ia;exports.useSize=dl;exports.useTouch=Yf;exports.valueLength=At;