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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Fri Apr 18 2025 09:00:51 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"),Bt=window,fa=typeof window<"u";function da(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ha(e){fa?cancelAnimationFrame(e):clearTimeout(e)}const fr=da();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Sat Aug 02 2025 21:48:44 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"),Bt=window,ca=typeof window<"u";function fa(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function da(e){ca?cancelAnimationFrame(e):clearTimeout(e)}const fr=fa();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function en(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ne(e),t=Ne(t),[e,t]=ol(Ne(e),Ne(t)),o==1&&(n==1?e=Vn(e):t=Vn(t));let r=dr(e,t);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(Vn(r)):Ne(r)}function Vn(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 dr(t,a)}function Ne(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function ol(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 dr(e,t){[e,t]=ol(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 Ot(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=Ot(e,0,o),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,ro(r[1],a,n,o)?(n?"-":"")+Dn(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&&ro(u,i,n,o)&&(i=Dn(i),i.length>t)?(n?"-":"")+Dn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function ro(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 Dn(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 Hn(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 p=0;for(let y=t.length-1;y>=c&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(p+=parseInt(e[s[y]--])*parseInt(t[y]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=Ct(ma(d,a)),o==1&&(d="-"+d),d}function ma(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 Kn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ne(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ne(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ne(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ne(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=en(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?"-":"")+Ne(Ot(u,o-2))}function Wn(e,t){return e=e.toString(),t=t.toString(),t=Yn(t),en(e,t)}function Yn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ao(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),io(e),io(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Wn(e,Hn(t,Ot(Kn(e,t),0,ye.FLOOR)));return o+n}function io(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function so(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]=ol(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=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ne(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=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 Ot(t,o,n)}round(t=0,o=ye.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(Ot(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),en(t,o)}add(t){return new fe(en(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),Wn(t,o)}subtract(t){return new fe(Wn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),Hn(t,o)}multiply(t){return new fe(Hn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),Kn(t,o,n)}divide(t,o){return new fe(Kn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),ao(t,o)}modulus(t){return new fe(ao(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),so(t,o)}compareTo(t){return so(this.value,t.getValue())}static negate(t){return t=fe.validate(t),Yn(t)}negate(){return new fe(Yn(this.value))}}function hr(e,t){return fe.multiply(`${e}`,`${t}`)}function rl(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function Un(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function mr(e){return fe.negate(e)}function sn(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="",p=u.split("").reverse();for(let y=0;y<p.length;y++)m+=p[y]+((y+1)%n==0&&y+1!=p.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 gr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const al=fr,ga=Array.isArray,va=e=>un(e)==="[object Map]",pa=e=>un(e)==="[object Set]",ya=e=>e instanceof Date,Gn=e=>typeof e=="function",vr=e=>typeof e=="string",ba=e=>typeof e=="symbol",et=e=>e!==null&&typeof e=="object",pr=e=>et(e)&&Gn(e.then)&&Gn(e.catch),yr=Object.prototype.toString,un=e=>yr.call(e),Xn=e=>un(e)==="[object Object]",br=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function xa(e){return e.__esModule||br&&e[Symbol.toStringTag]==="Module"}const wa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ht(...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]=ht(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function Zn(e,t,o=!1){if(!o)ht(!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)&&!Xn(i))continue;a=Zn(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)&&!Xn(i))continue;a=Zn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Rn=wa?Promise.resolve():null;function Sa(e,...t){Rn!==null?t&&t.length>0?Rn.then(()=>{e(t)}):Rn.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 Ce(e){return typeof e=="number"?e:Number(e)}const Ta={"[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 tn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Ta[o]||"object"}function xr(e){return e&&typeof e=="object"&&"setInterval"in e}function cn(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function wr(e){let t=!!e&&"length"in e&&e.length,o=tn(e);return o==="function"||xr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Sr(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&&(wr(Object(e))?Sr(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=tn(e),n=tn(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 il(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 Tr(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 $r(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 uo(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 $a(e,t=!0,o=!0){t?e=uo(e,".",/\./g):e=e.replace(/\./g,""),o?e=uo(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ea(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Je(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(Je(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Ft(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Er(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 Na=(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 sl{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 fn(e,t,o,n){const r=new sl(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Pa(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new sl(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 Nt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}class Ia{error(t,o){const n=o,r=o||l.hasInjectionContext()?Nt(o):null;r?r.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Nt(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 Pt=new Ia;function Oa(e){Pt=e}function Va(e){Pt?Object.assign(Pt,e):Pt=e}function Da(e,t){ft.Schema.setValidator(e,t)}function Ra(e){ft.Schema.deleteValidator(e)}let kr=["blur","clear"];function Fa(e){kr=e}function Nr(){return kr}let Pr=["focus","change","setValue"];function Aa(e){Pr=e}function Ir(){return Pr}function Ma(e){ft.Schema.messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const We=Symbol("ValidateSchemaKey");class Or{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let 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=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Pt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ft.Schema.setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ft.Schema.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ft.Schema.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},u=new ft.Schema(r),s=this.proxy??i;return u.validate(i,{context:s}).then(d=>{if(d.pass)this.success();else{let m="error";Array.isArray(d.errors)&&d.errors.length>0&&(m=d.errors[0].message??m,d.errors=[d.errors[0]],d.errors[0].ref=s),this.error(m)}return d}).catch(d=>{const m=d.message??`${d}`;return this.error(m),d})}}return Promise.resolve({pass:!0})}}function dn(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 Or(t,o,e)}const nn=Symbol.for("EventEmitterKey");class Vr{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 La(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ba(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 _a(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function hn(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"),gt=Symbol("DataItemsKey");class mn{_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 qa=new mn;function pt(){return qa}function at(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Fn=Symbol("OriginalDateKey");function ul(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=pt());const u=e||t.prop||t.name;let s=new mn(u);s.parent=i;const c=f=>{a[Fn]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[Fn]??null,p=f=>{const h={};ht(!0,h,l.toRaw(f)),a[Fn]=h};l.isReactive(t)||typeof t=="function"?l.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&p(t.modelValue);const y=(f,h)=>{s?.set(f,h)},v=f=>s?.getForSelf(f)??null;if(a[Le]=s,l.provide(Le,s),r!==null){const f=l.inject(be,null),h=fn(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=dn(a,R,{componentName:""});s.validateSchema=T,a[We]=T,l.provide(We,T),a[gt]=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 N=S;q={name:V=>V?N.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const N=S;if(Object.assign(O,N),Array.isArray(N.include)&&N.include.length>0){const V=N.include;q={name:w=>w?V.indexOf(w)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const V=N.exclude;q={name:w=>w?V.indexOf(w)===-1:!1}}else q={name:"*"}}if(q){const N=h?.emitToChildren(q,"validate",O);N&&Reflect.apply([].push,B,N)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(N=>{let V=[];return N.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(N=>{let V=String(N);const w={componentName:"",fieldName:V,pureDataValidate:!0};if(s){const j=Rr(s,V,w,h,T);a[gt].set(V,j);const g=S[V];g&&j.validateSchema.setRule(g)}});return}if(B){const O=Reflect.ownKeys(S),N={name:V=>O.includes(V),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(N,"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:N=>N?O.indexOf(N)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const O=q.exclude;B={name:N=>N?O.indexOf(N)===-1:!1}}else B={name:"*"}}B&&h?.emitToChildren(B,"clearValidate",!1)},a.resetFields=S=>{const B=d();if(!B)return;const q={};if(ht(!0,q,m()??{}),Array.isArray(S))S.forEach(O=>{B[O]=q[O]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(N=>{B[N]=q[N]});else if(S&&Array.isArray(S.exclude)){let O=S.exclude??[];Reflect.ownKeys(q).forEach(N=>{O.includes(N)||(B[N]=q[N])})}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=>v(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[gt]&&(a[gt].clear(),a[gt]=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 Dr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=pt());const i=e||t.prop||t.name;let u=new mn(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 ke(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let u=fn(r,i,a,o);r[be]=u,l.provide(be,u),r.broadcast=(v,f,...h)=>u?Reflect.apply(u.emit,u,[v,f,...h]):null;const s=l.inject(We,null);e.fieldName=e.fieldName??a;let c=dn(r,s,e);r[We]=c,l.provide(We,c),r.validate=(v=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,R=!1;if(Array.isArray(v)&&v.indexOf(a)!==-1)R=!0,h=!0;else if(v&&typeof v=="object"){const T=v,S=T.ignoreDisabled??!0,B=T.ignoreReadonly??!0,q=T.ignoreHidden??!0;S===!0&&e.disabled===!0||B===!0&&e.readonly===!0||q===!0&&cn(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 v=="boolean"&&(h=v),R=!0;if(R){const T=c?.validate();f.push(T)}if(h){let T=null;const S={deep:!1};if(v===!0)T={name:"*"};else if(Array.isArray(v)&&v.length>0){const B=v;T={name:q=>q?B.indexOf(q)!==-1:!1}}else if(v!=null&&typeof v=="object"){const B=v;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=v=>c?.setRule(v),r.setNameValidateRules=(v,f=!1)=>{const h=v[a];if(h&&c?.setRule(h),f&&u){const R={name:T=>Reflect.ownKeys(v).includes(T)};u.emitToChildren(R,"setNameValidateRules",v,!1)}},r.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(v===!0)f={name:"*"};else if(Array.isArray(v)&&v.length>0){const h=v;f={name:R=>R?h.indexOf(R)!==-1:!1}}else if(v!=null&&typeof v=="object"){const h=v;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 Vr(r);r[nn]=d;const m=qe((v="validate")=>{c&&(v==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Nr()).forEach(v=>{d&&d.on(v,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ir()).forEach(v=>{d&&d.on(v,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[nn]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(v,...f)=>{d&&Reflect.apply(d.emit,d,[v,...f])},onEvent:(v,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(v,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Rr(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=dn({},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 p=!1,y=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)y=!0,p=!0;else if(d&&typeof d=="object"){const v=d;Array.isArray(v.include)&&v.include.indexOf(i)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(i),y=!0,p=v.deep??!1}else typeof d=="boolean"&&(p=d),y=!0;if(y&&s){const v=s.validate();m.push(v)}if(p){let v=null;const f={deep:!1};if(d===!0)v={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;v={name: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;v={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const R=h.exclude;v={name:T=>T?R.indexOf(T)===-1:!1}}else v={name:"*"}}if(v&&c){const h=c.emitToChildren(v,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(v=>{let f=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=fn(null,n,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Fr(){let t=l.getCurrentInstance()?.proxy,o=new Vr(t);return t[nn]=o,l.onUnmounted(()=>{o?.destroy(),t[nn]=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 Jn(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 Ar(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;Jn(n,a,t,!0,i,u,s,c);const d=l.reactive(n),m=e.getForParent(ot);m&&(n.height=ln(e,m),n.width=on(e,m),l.watch([()=>ln(e,m),()=>on(e,m)],([y,v])=>{d.height=y,d.width=v}));const p=!m;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,v,f=-1,h=-1,R=0,T=0])=>{Jn(d,v,t,p,f,h,R,T)}),e.set(ot,d),d}function gn(e){return e.get(ot)}function vn(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 pn(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 ln(e,t){if(t=t??e.get(ot),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=vn(e,t),n=pn(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function on(e,t){return t=t??e.get(ot),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ja(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function za(e){return!!e.getForParent(ot)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function qt(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(qt(s,n))return s}const i=e.value;return qt(i,n)?i:null}):l.computed(()=>{const a=e.value;if(qt(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(qt(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 Mr=new Map,rn=new Map;let el=null;function Ha(e){el=e}function Lr(e,t,o){if(o){let n=rn.get(o);n||(n=new Map,rn.set(o,n)),n.set(e,t)}else Mr.set(e,t)}function Ye(e,t,o){!o&&el&&(o=el(e)??void 0);let n=null;if(o){let r=rn.get(o);r&&(n=r.get(t))}return n||(n=Mr.get(t)),n}function Ka(e,t){for(let o in e){const n=e[o];Lr(o,n,t)}}function Wa(e){rn.delete(e)}function Ya(){return{top:0,left:0,bottom:0,right:0}}function Ua(){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 Ga(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Xa{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=Ga(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=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=ht({},Ya(),t.safeAreaInset),i=Ua(),u=ht({},i.pageLayout,t.pageLayout);o=o??pt(),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){Ha(t)}setAPI(t,o,n){Lr(t,o,n)}getAPI(t,o,n){return Ye(t,o,n)}batchSetAPI(t,o){Ka(t,o)}clearScopeAPI(t){Wa(t)}getRootDomain(){return pt()}}const Za=[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],Ja=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Za.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),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 $e={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Br={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}},_r={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}},qr=[];for(const e in _r)qr.push(e);const ei=Symbol.for("InnerPageScopeKey"),ti={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}},ni=(e,t)=>({inheritAttrs:!0,props:{...$e,...Br,...ti},setup(o,{slots:n}){const r=ul(o.name,o),a=l.inject(ei,!1);if(r){const d=Ar(r,o);we({getPageContentHeight:()=>ln(r,d),getPageContentWidth:()=>on(r,d),getPageHeaderHeight:()=>vn(r,d),getPageFooterHeight:()=>pn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,m=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[p,y])=>{if(d&&p){const v=l.toRaw(p),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(v?Reflect.ownKeys(v):[]).forEach(T=>{h.includes(T)||(f[T]=[])}),c(f)}if(m&&y){const v=l.toRaw(y),f=l.toRaw(m),h=f?Reflect.ownKeys(f):[];(v?Reflect.ownKeys(v):[]).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:li,create:oi}=ae("page"),cl=oi(ni(li));function fl(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function yn(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 ri=(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?gn(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,p=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),v=()=>{if(u&&y.value&&!cn(y.value)){if(!n){const g=fl(y.value);u.headerAllHeight=g.height}return u.headerMounted=!0,!0}return!1},f=qe(v,120);let h=null;l.onMounted(()=>{u&&(hn(v,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 p.value.height!==null&&p.value.height!==void 0&&(g.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(g.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(g.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(g.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(g.paddingBottom=`${p.value.bottom}px`),g}),T=l.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.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 N=()=>{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=N();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:ai,create:ii,scope:si}=ae("header-bar"),dl=ii(ri(ai,si,Ie.ArrowLeft));function ui(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?gn(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&&!cn(d.value)){if(!o){const f=fl(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},p=qe(m,120);let y=null;l.onMounted(()=>{i&&(hn(m,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(p),y.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const v=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:v.value};return l.h("view",h,f)}}}}const{componentName:ci,create:fi}=ae("footer-bar"),hl=fi(ui(ci));function di(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?gn(a):null,s=l.computed(()=>{const y={};if(a&&u){if(o.padding){const q=Ge(o.padding);Object.assign(u.contentPadding,q)}const v=vn(a,u),f=pn(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||v>0)&&(R=R<0?0:R,y.paddingTop=`${v+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 v=Ge(o.padding);v.left&&(y.paddingLeft=`${v.left}px`),v.top&&(y.paddingTop=`${v.top}px`),v.right&&(y.paddingRight=`${v.right}px`),v.bottom&&(y.paddingBottom=`${v.bottom}px`)}return y}),c=l.ref(null),d=()=>{if(u&&c.value){const y=yn(c.value);u.contentInnerHeight=y.height,u.contentInnerWidth=y.width}},m=qe(d,120);let p=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(p=new window.ResizeObserver(m),p.observe(c.value))}),l.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const y=o.tag??"view",v={...r,ref:c,class:i.value,style:s.value};return l.h(y,v,n)}}}}const{componentName:hi,create:mi}=ae("content"),ml=mi(di(hi)),xt="GroupStateKey",jr=Symbol.for("GroupScopeKey");function bn(){return l.inject(jr,!1)}function xn(e=!0){l.provide(jr,e)}function gi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];il(r)||(e[n]=r)})}function vi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gi(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(xt,a),a}function An(e,t,o=-1,n=-1,r=!1,a,i,u){const s=e.get(xt);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 p=()=>{const y=t===""||t===-1,v=me(t);let f=Ce(o);const h=me(n);if(!y){let S=(v-(f-1)*h)/f;for(;m!==-1&&S>m;)f++,S=(v-(f-1)*h)/f;for(;d!==-1&&f>1&&S<d;)f--,S=(v-(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)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function wn(e,t=!1){let o;return t?o=e.getForParent(xt):o=e.get(xt),o.layout}function Sn(e,t=!1){let o;return t?o=e.getForParent(xt):o=e.get(xt),o.order}function co(e,t=1){if(t==="stretch")return-1;const o=Ce(t);return o===-1?100:100*o/e}function Tn(e,t,o=1,n=0,r){const a={};let i=0;r?i=me(r):i=co(t.column,o),i>0&&(a.width=`${i}%`);const u=co(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=Ce(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=Ce(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 zr=Symbol("RollingStateKey");function pi(e){l.provide(zr,e)}function yi(){return l.inject(zr,null)}function tl(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 bi(e){let t=tl(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=tl(o),document.body.removeChild(o)}return t}function xi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const wi={...$e,...Br,..._r};function Si(e,t,o){return{props:wi,emits:["update:collapse","header-click"],setup(n,r){const a=ul(n.prop??n.name,n,qr),i=vi(a,{type:n.type}),u=bn();xn(!0);const s=n.rollingDisplay?yi():null,c=l.ref(null),d=l.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?wn(a,!0).value:null),p=l.getCurrentInstance(),y=(k,K=!1)=>{const X=p?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(k,!0,K)};l.watch([()=>n.rules,()=>n.pureDataRules],([k,K],[X,P])=>{if(k&&X){const H=l.toRaw(X),G=l.toRaw(k),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 v=e,f=l.computed(()=>{const k={};k.height=E.value;const K=u?Sn(a,!0):null;if(m.value&&K){if(m.value.type==="grid"){const X=Cn(K,m.value,n.span,n.offset);Object.assign(k,X)}else if(m.value.type==="flow"){const X=Tn(K,m.value,n.span,n.offset,n.width);Object.assign(k,X)}}else if(n.width){const X=Pe(n.width);k.width=X}return k}),h=l.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${v}--${k}`]:!0,[`${v}--${k}-justify-${n.justify}`]:!0,[`${v}--${k}-align-${n.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${k}`]:!0,[`${v}--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=xi(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=k=>{q.push(k)},N=()=>{let k=q.length;q.splice(0,k)},V=l.ref(-1),w=k=>{const K=yn(k).width;K>0&&K!==V.value&&(V.value=K)};An(a,V.value,S.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([V,S,T],([k,K,X])=>{i.order.index=0,An(a,k,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 J=-1;const A=(k,K=!0)=>{const X=Z.value;if(X&&F.value!==k){if(J=J===-1?bi(X):J,U.value=!0,K)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",k||(_.value="",U.value=!1)},k){let P=0;n.collapseHeight?P=n.collapseHeight:M.value&&M.value.classList.contains(`${e}__header`)&&(P=M.value.offsetHeight),_.value=`${J}px`,l.nextTick(()=>{_.value=`${P}px`})}else _.value=`${J}px`;else if(k){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=`${J}px`;F.value=k,r.emit("update:collapse",k)}};l.watch(()=>n.collapse,k=>{A(k)});const te=k=>{r.emit("header-click",k)},$=()=>{C()},C=k=>{k=k??!F.value,A(k)};we({toggleCollapse:C,doLayout:()=>{q[0]&&(w(q[0]),An(a,V.value,S.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let I=null,b=!0;const z=k=>{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&&(k&&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)}}},Q=()=>{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 k=null,K=s.initialHeight;s.observe(Z.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(_.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(z(b),b=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!F.value)if(b)_.value=s.initialHeight;else{let P=tl(Z.value);P<=0?_.value=K:(_.value=`${P}px`,K=_.value)}b||Q()}})}}),l.onUnmounted(()=>{I?.disconnect(),s&&s.unobserve(Z.value)});const Y=(k="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:{[`${v}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:$},K):null},W=(k,K,X,P)=>{const H={...h.value};return K===0&&(H[`${v}__first`]=!0),X>=P-1&&(H[`${v}__last`]=!0),l.h("div",{ref:O,key:`${K}`,class:H,style:R.value},k)};return()=>{if(d.value&&c.value!==!0){const H=n.tag||"div";return l.h(H,{ref:Z,prop:n.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:f.value},[])}i.order.index=0;const k=[];let K=0;if(r.slots.header){const H={key:`${K++}`,ref:M,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:te},G=l.h("div",H,[r.slots.header()]);k.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:{[`${v}__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:{[`${v}__header-title`]:!0}},[r.slots.title()]);H.push(le)}else if(n.title){const le=l.h("div",{class:{[`${v}__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:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:te},se=l.h("div",le,H);k.push(se)}}N();const X=r.slots.default?r.slots.default():[],P=i.layout.value.type;if(P==="grid"){const H=W(X,K++,0,X.length);k.push(H)}else if(P==="flow"){const H=W(X,K++,0,X.length);k.push(H)}else for(let H=0;H<X.length;H++){const G=X[H],le=W([G],K++,H,X.length);k.push(le)}if(B.value){const H=n.tag||"div";return l.h(H,{ref:Z,prop:n.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:f.value},[k])}else return k}}}}const{componentName:Ti,create:Ci,scope:$i}=ae("group"),Ei=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),gl=Ci(Si(Ti,$i,Ei));function ki(e){return e===window}const Ni=/matrix\((.+)\)/,vl=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=Ni.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return o-=a,n-=i,o+=u,n+=s,{x:o,y:n}};class Pi{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 Ii{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 Pi,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 It=new Ii,Hr={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:Oi,create:Vi}=ae("price"),Di=Vi({props:{...Hr},setup(e){const t=l.computed(()=>({[Oi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Ft(e.price)==0?"":sn(e.price,e.decimalLength,!0,Ce(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},Ri=["innerHTML"],Fi=["innerHTML"];function Ai(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,Ri)):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,Fi)):l.createCommentVNode("",!0)],2)}const $n=Ue(Di,[["render",Ai]]),{componentName:Mn,create:Mi}=ae("hint-text"),Li=Mi({components:{Price:$n},props:{...Hr,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,J=g.split("-");let A=[];J[0]==="top"?A=["top","bottom","right","left"]:J[0]==="bottom"?A=["bottom","top","right","left"]:J[0]==="left"?A=["left","top","bottom","right"]:J[0]==="right"&&(A=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},$=[];for(let C=0;C<A.length;C++){const D=A[C];if($[0]=D,J[1]&&($[1]=J[1]),D==="top"){const I=L.y-F-e.arrowSize-e.offset;if(I>=0){te.top=I;let b=0;J[1]==="start"?b=L.x:J[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,te.left=b<0?0:b;break}}else if(D==="bottom"){const I=L.y+M+e.arrowSize+e.offset;if(I+F<=U){te.top=I;let b=0;J[1]==="start"?b=L.x:J[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,te.left=b<0?0:b;break}}else if(D==="left"){const I=L.x-E-e.arrowSize-e.offset;if(I>=0){te.left=I;let b=0;J[1]==="start"?b=L.y:J[1]==="end"?b=L.y+M-F:b=L.y+M/2-F/2,te.top=b<0?0:b;break}}else if(D==="right"){const I=L.x+Z+e.arrowSize+e.offset;if(I+E<=_){te.left=I;let b=0;J[1]==="start"?b=L.y:J[1]==="end"?b=L.y+M-F:b=L.y+M/2-F/2,te.top=b<0?0:b;break}}}return{bestPlacement:$.join("-"),bestInsetRect:te}},d=(g,L,Z=10)=>{if(!rt||L===!1||!g)return;n.value=vl(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),p=qe(()=>{d(e.message,e.visible)},10),y=l.ref(e.visible);l.watch(()=>e.visible,g=>{y.value=g});const v=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),It.watch(e.reference,p),R.observe(e.reference)}),l.onBeforeUnmount(()=>{It.unwatch(e.reference,p),R.unobserve(e.reference),R.disconnect()});const T=l.computed(()=>{const g={[Mn]:!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=[`${Mn}__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(()=>({[`${Mn}__arrow`]:!0})),N=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(()=>v.value&&e.closeOnClick),w=l.computed(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:v,tipRef:s,classes:T,styles:S,textClasses:B,textStyles:q,arrowClasses:O,arrowStyles:N,overlayShow:V,overlayStyle:w,onClickOverlay:()=>{y.value=!1,t.emit("update:visible",!1)}}}}),Bi=["innerHTML"];function _i(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,Bi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const At=Ue(Li,[["render",_i]]);class Kr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const nl={},qi=new Kr,yt=new Map,an=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}yt.clear()}},ji=e=>{e.unmount=an;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...nl,...o,...e}:e={...nl,...e},e.transition=!1;const n=l.createVNode(At,e);l.render(n,t)}return e.id},zi=e=>{e.unmount=an;let t=e.id??`hinttext_${qi.get()}`;e={...nl,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(At,e);return l.render(n,o),document.body.appendChild(o),t},Hi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Hi(t);const r=o.id;return r&&yt.has(r)?ji({...o,message:t,reference:e}):(n&&an(),zi({...o,message:t,reference:e}))},hide(e){an(e)},install(e){e.config.globalProperties.$hintText=Re}};function Ki(e,t,o,n=!1){return{inheritAttrs:!0,props:{...$e,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=at(),s=bn();xn(!1);const c=l.computed(()=>s&&u?wn(u,!1).value:null),d=e,m=l.ref(null),p=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),v=l.computed(()=>{const P={};if(r.width)r.width!=="auto"&&(P.width=Pe(r.width));else{const H=s&&u?Sn(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=Tn(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),N=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":""),J=()=>U.value.length>0,A=l.computed(()=>U.value==="error"?F.value:U.value==="warn"?M.value:U.value==="info"?L.value:""),te=l.computed(()=>U.value==="error"?_.value:U.value==="warn"?E.value:U.value==="info"?Z.value:null),$=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}),C=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))},Q=()=>{!b||!D.value||(b.unobserve(D.value),b=null)};l.watch(()=>ue(r.appearListen),P=>{P?z():Q()}),l.onMounted(()=>{ue(r.appearListen)&&z()}),l.onUnmounted(Q);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:N.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=te.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},k=()=>{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(!J())return null;const P=[],H=W();H&&P.push(H);const G=k();G&&P.push(G);const le={class:$.value,style:C.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:p.value,style:v.value,prop:r.prop};return l.h("div",Se,P)}}}}const{componentName:Wi,create:Yi,scope:Ui}=ae("item"),Ee=Yi(Ki(Wi,Ui,Re,!1));function Gi(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=bn();xn(!1);const i=l.computed(()=>a&&r?wn(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?Sn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const p=Cn(m,i.value,o.span,o.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=Tn(m,i.value,o.span,o.offset,o.width);Object.assign(d,p)}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:Xi,create:Zi}=ae("slot-item"),pl=Zi(Gi(Xi));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=bn();xn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=wn(i,!1),m=Sn(i,!1);if(d.value&&m)if(d.value.type==="grid"){const p=Cn(m,d.value,o.span,o.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=Tn(m,d.value,o.span,o.offset,o.width);Object.assign(c,p)}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 p=0;p<m.length;p++){if(p>0){const y=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(y)}c.push(m[p])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:Ji,create:es}=ae("row-item"),yl=es(Qi(Ji)),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},fo={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 ts(e,t,o){return{props:{...$e,...Ve,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(t),m=d(n,["placeholder"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0,[`${v}__disabled`]:i.value,[`${v}__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;p.value=!0,de(T.value)||(S.value=!0),c("focus",_,E)},q=E=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let _=E.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),c("blur",_,E)},O=()=>{c("clear","")},N=l.ref(!1);let V=null;const w=()=>{n.showTooltip&&N.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{N.value=!0},150))},j=()=>{V&&(clearTimeout(V),N.value=!1,V=null)},g=l.computed(()=>N.value||S.value),L=l.computed(()=>N.value?y.value:T.value),Z=l.computed(()=>Ft(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=[],J=l.h(x.ElInput,F,_);U.push(J);const A={default:()=>U};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const $={...Oe(n,fo),hintText:L.value,hintVisible:g.value};return n.prop&&($.prop=`${n.prop}_item`),l.h(o,$,A)}}}}const{componentName:ns,create:ls,scope:os}=ae("input-item"),bl=ls(ts(ns,os,Ee));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function rs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let as=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 is(){const e=l.getCurrentInstance();return new as(e.proxy)}function Yr(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Vt(e,t),i=Vt(e,o);return a===i}function Ur(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=Wr(e,i);if(Array.isArray(u)&&u.length>0){const s=Ur(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=Yr(e,i,a);else{let c=Vt(e,i);c==null&&(c=lt(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function ss(e){return{text:e,value:e}}const ho={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 us(e,t,o){return{props:{...$e,...Ve,...ho},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(t),m=d(n,["placeholder"]),p=l.ref(null),y=l.ref([]),v=l.computed(()=>y.value?y.value.map(K=>lt(n,K)).join(" "):""),f=(k,K,X,P=!0)=>{if(!X||X.length==0){p.value=k,P&&(c("update:modelValue",k),c("change",k));return}const H=Ur(n,k,K,X);if(H===null){if(y.value===null||y.value.length===0)return;p.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(!Yr(n,se,ce)){G=!1;break}}if(!G){y.value=H;let le=[],se=[],ce=[];H.forEach(it=>{const He=Vt(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)?(p.value=le,ge=l.toRaw(se),ve=ce,Se=l.toRaw(H)):(p.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,k=>ue(k)),B=is(),q=async(k,K)=>{if(k){const X=await B.load("select",k,K);if(X.length>0)if(typeof X[0]=="string"){let G=X.map(le=>ss(le));h.value=G}else h.value=X;else h.value=null}};l.watch([()=>n.source,()=>n.params],([k,K])=>{R.value=null,q(k,K)},{immediate:!S.value});let O=!1;const N=()=>{O||(O=!0,q(n.source,n.params))};l.watch([()=>h.value,()=>n.modelValue],([k,K])=>{if(g()&&ue(n.multiple)){Je(K,p.value)||(p.value=K);return}f(K,n.valueType,T.value,!1),c("setValue",K)}),n.source||(p.value=n.modelValue);let V=null,w=l.ref(!1);typeof n.remoteMethod=="function"&&(V=async k=>{if(k==null){R.value=null;return}w.value=!0;try{const K=await n.remoteMethod(k);K&&(R.value=K)}catch(K){R.value=null,console.error(K)}w.value=!1});let j=null;typeof n.filterMethod=="function"&&(j=async k=>{if(k==null){R.value=null;return}w.value=!0;try{const K=await n.filterMethod(k,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=k=>{n.allowCreate||g()&&ue(n.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),p.value=k):f(k,"value",T.value,!0)};let F=he(n,"hintText"),_=l.ref(!1);const U=k=>{let X=k.target.value;L.value=!0,de(F.value)||(_.value=!0),c("focus",X,k)},J=k=>{setTimeout(()=>{_.value&&(_.value=!1),L.value=!1},0);let X=k.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),z.value||c("blur",X,k)},A=()=>{c("clear","")},te=l.ref(!1);let $=null;const C=()=>{n.showTooltip&&te.value===!1&&($&&clearTimeout($),$=setTimeout(()=>{te.value=!0},150))},D=()=>{$&&(clearTimeout($),te.value=!1,$=null)},I=l.computed(()=>te.value||_.value),b=l.computed(()=>te.value?v.value:F.value),z=l.ref(!1),Q=k=>{z.value=k,c("visible-change",k),k||c("selected")},ne=k=>{c("remove-tag",k)},Y=(k,K)=>{const X=[];return k.forEach((P,H)=>{const G=Wr(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=Vt(n,P),se=lt(n,P),ce=rs(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]),Pn=l.h("div",{class:{"fox-select-item__option":!0}},[it,st]);X.push(l.h(x.ElOption,ve,{default:()=>Pn}))}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:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{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:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:A,onChange:E,onFocus:U,onBlur:J,onVisibleChange:Q,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,ho),hintText:b.value,hintVisible:I.value,onMouseover:C,onMouseleave:D};return n.prop&&(se.prop=`${n.prop}_item`),S.value&&(se["appear-listen"]=!0,se.onAppear=N),l.h(o,se,G)}}}}const{componentName:cs,create:fs,scope:ds}=ae("select-item"),xl=fs(us(cs,ds,Ee));function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kt={exports:{}},hs=Kt.exports,mo;function ms(){return mo||(mo=1,function(e,t){(function(o,n){e.exports=n()})(hs,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",p="quarter",y="year",v="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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),J=F-U<0,A=E.clone().add(_+(J?-1:1),m);return+(-(_+(F-U)/(J?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:v,h:s,m:u,s:i,ms:a,Q:p}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},q="en",O={};O[q]=T;var N="$isDayjsObject",V=function(M){return M instanceof L||!(!M||!M[N])},w=function M(E,F,_){var U;if(!E)return q;if(typeof E=="string"){var J=E.toLowerCase();O[J]&&(U=J),F&&(O[J]=F,U=J);var A=E.split("-");if(!U&&A.length>1)return M(A[0])}else{var te=E.name;O[te]=E,U=te}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[N]=!0}var E=M.prototype;return E.parse=function(F){this.$d=function(_){var U=_.date,J=_.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 te=A[2]-1||0,$=(A[7]||"0").substring(0,3);return J?new Date(Date.UTC(A[1],te,A[3]||1,A[4]||0,A[5]||0,A[6]||0,$)):new Date(A[1],te,A[3]||1,A[4]||0,A[5]||0,A[6]||0,$)}}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,J=!!g.u(_)||_,A=g.p(F),te=function(ne,Y){var W=g.w(U.$u?Date.UTC(U.$y,Y,ne):new Date(U.$y,Y,ne),U);return J?W:W.endOf(c)},$=function(ne,Y){return g.w(U.toDate()[ne].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Y)),U)},C=this.$W,D=this.$M,I=this.$D,b="set"+(this.$u?"UTC":"");switch(A){case y:return J?te(1,0):te(31,11);case m:return J?te(1,D):te(0,D+1);case d:var z=this.$locale().weekStart||0,Q=(C<z?C+7:C)-z;return te(J?I-Q:I+(6-Q),D);case c:case v:return $(b+"Hours",0);case s:return $(b+"Minutes",1);case u:return $(b+"Seconds",2);case i:return $(b+"Milliseconds",3);default:return this.clone()}},E.endOf=function(F){return this.startOf(F,!1)},E.$set=function(F,_){var U,J=g.p(F),A="set"+(this.$u?"UTC":""),te=(U={},U[c]=A+"Date",U[v]=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)[J],$=J===c?this.$D+(_-this.$W):_;if(J===m||J===y){var C=this.clone().set(v,1);C.$d[te]($),C.init(),this.$d=C.set(v,Math.min(this.$D,C.daysInMonth())).$d}else te&&this.$d[te]($);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,J=this;F=Number(F);var A=g.p(_),te=function(D){var I=j(J);return g.w(I.date(I.date()+Math.round(D*F)),J)};if(A===m)return this.set(m,this.$M+F);if(A===y)return this.set(y,this.$y+F);if(A===c)return te(1);if(A===d)return te(7);var $=(U={},U[u]=n,U[s]=r,U[i]=o,U)[A]||1,C=this.$d.getTime()+F*$;return g.w(C,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 J=F||"YYYY-MM-DDTHH:mm:ssZ",A=g.z(this),te=this.$H,$=this.$m,C=this.$M,D=U.weekdays,I=U.months,b=U.meridiem,z=function(Y,W,k,K){return Y&&(Y[W]||Y(_,J))||k[W].slice(0,K)},Q=function(Y){return g.s(te%12||12,Y,"0")},ne=b||function(Y,W,k){var K=Y<12?"AM":"PM";return k?K.toLowerCase():K};return J.replace(R,function(Y,W){return W||function(k){switch(k){case"YY":return String(_.$y).slice(-2);case"YYYY":return g.s(_.$y,4,"0");case"M":return C+1;case"MM":return g.s(C+1,2,"0");case"MMM":return z(U.monthsShort,C,I,3);case"MMMM":return z(I,C);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(te);case"HH":return g.s(te,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return ne(te,$,!0);case"A":return ne(te,$,!1);case"m":return String($);case"mm":return g.s($,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 J,A=this,te=g.p(_),$=j(F),C=($.utcOffset()-this.utcOffset())*n,D=this-$,I=function(){return g.m(A,$)};switch(te){case y:J=I()/12;break;case m:J=I();break;case p:J=I()/3;break;case d:J=(D-C)/6048e5;break;case c:J=(D-C)/864e5;break;case s:J=D/r;break;case u:J=D/n;break;case i:J=D/o;break;default:J=D}return U?J:g.a(J)},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(),J=w(F,_,!0);return J&&(U.$L=J),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",v]].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})}(Kt)),Kt.exports}var gs=ms();const Xe=tt(gs);var Wt={exports:{}},vs=Wt.exports,go;function ps(){return go||(go=1,function(e,t){(function(o,n){e.exports=n()})(vs,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))},p=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=p(f,!1)}],a:[i,function(f){this.afternoon=p(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 v(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],N=O&&O[0],V=O&&O[1];T[B]=V?{regex:N,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 J=U.afternoon;if(J!==void 0){var A=U.hours;J?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,N=B.args;this.$u=O;var V=N[1];if(typeof V=="string"){var w=N[2]===!0,j=N[3]===!0,g=w||j,L=N[2];j&&(L=N[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 J=v(_)(F),A=J.year,te=J.month,$=J.day,C=J.hours,D=J.minutes,I=J.seconds,b=J.milliseconds,z=J.zone,Q=new Date,ne=$||(A||te?1:Q.getDate()),Y=A||Q.getFullYear(),W=0;A&&!te||(W=te>0?te-1:Q.getMonth());var k=C||0,K=D||0,X=I||0,P=b||0;return z?new Date(Date.UTC(Y,W,ne,k,K,X,P+60*z.offset*1e3)):U?new Date(Date.UTC(Y,W,ne,k,K,X,P)):new Date(Y,W,ne,k,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){N[1]=V[M-1];var E=R.apply(this,N);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)}}})}(Wt)),Wt.exports}var ys=ps();const bs=tt(ys);var Yt={exports:{}},xs=Yt.exports,vo;function ws(){return vo||(vo=1,function(e,t){(function(o,n){e.exports=n()})(xs,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)}}})}(Yt)),Yt.exports}var Ss=ws();const Ts=tt(Ss);var Ut={exports:{}},Cs=Ut.exports,po;function $s(){return po||(po=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,p,y,v,f){var h=m.name?m:m.$locale(),R=i(h[p]),T=i(h[y]),S=R||T.map(function(q){return q.slice(0,v)});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,p){return m.formats[p]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,f,h){return f||h.slice(1)})}(m.formats[p.toUpperCase()])},d=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):u(m,"months")},monthsShort:function(p){return p?p.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(m.$locale(),p)},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(p){return c(m,p)},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)}}})}(Ut)),Ut.exports}var Es=$s();const ks=tt(Es);var Gt={exports:{}},Ns=Gt.exports,yo;function Ps(){return yo||(yo=1,function(e,t){(function(o,n){e.exports=n()})(Ns,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 p=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(p,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)}}})}(Gt)),Gt.exports}var Is=Ps();const Os=tt(Is);var Xt={exports:{}},Vs=Xt.exports,bo;function Ds(){return bo||(bo=1,function(e,t){(function(o,n){e.exports=n()})(Vs,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}}})}(Xt)),Xt.exports}var Rs=Ds();const Fs=tt(Rs);var Zt={exports:{}},As=Zt.exports,xo;function Ms(){return xo||(xo=1,function(e,t){(function(o,n){e.exports=n()})(As,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")}}})}(Zt)),Zt.exports}var Ls=Ms();const Bs=tt(Ls);var Qt={exports:{}},_s=Qt.exports,wo;function qs(){return wo||(wo=1,function(e,t){(function(o,n){e.exports=n()})(_s,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Qt)),Qt.exports}var js=qs();const zs=tt(js);var Jt={exports:{}},Hs=Jt.exports,So;function Ks(){return So||(So=1,function(e,t){(function(o,n){e.exports=n()})(Hs,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(Jt)),Jt.exports}var Ws=Ks();const Ys=tt(Ws);Xe.extend(ks);Xe.extend(Ts);Xe.extend(bs);Xe.extend(Os);Xe.extend(Fs);Xe.extend(Bs);Xe.extend(zs);Xe.extend(Ys);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}},To={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 Us(e,t,o){return{props:{...$e,...Ve,...To,...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}=ke({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=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 k=[...y.value];k[0]=W,y.value=k}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;p.value=!0,de(B.value)||(q.value=!0),c("focus",K,W)},N=W=>{setTimeout(()=>{q.value&&(q.value=!1),p.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,k,K)=>{c("panel-change",W,k,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 k=[];Array.isArray(M.value)?(k[0]=y.value?y.value[0]??M.value[0]:null,k[1]=M.value[1]??M.value[0]):(k[0]=y.value?y.value[0]??M.value:null,k[1]=_.value),k[0]||(k[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=k}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 k=[];k[0]=Array.isArray(y.value)?y.value[0]:y.value,Array.isArray(F)?k[1]=F[1]:k[1]=F,k[0]||(k[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=k}else y.value=F;c("update:modelValue",y.value),setTimeout(()=>{ne()},100)}},J=ue(n.isLongTerm);if(J){const W=()=>{if(_.value===!0){if(F=y.value,n.type==="daterange"){const k=[y.value[0]];Array.isArray(M.value)?k[1]=M.value[1]??M.value[0]:k[1]=_.value,k[0]||(k[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=k}else y.value=M.value;c("update:modelValue",y.value)}else Je(M.value,y.value)&&(_.value=!0)};W(),l.watch([()=>n.longTerm],([k])=>{_.value!==k&&W()}),l.watch([()=>y.value],([k])=>{let K=!1;if(n.type==="daterange"&&Array.isArray(k))try{let X=k[1];if(!X)return;if(k[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":p.value})),te=l.ref(),$=l.ref(),C=/^\d+$/,D=(W,k)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(W,k):C.test(W)&&W.length===n.flashFillThreshold,I=(W,k)=>{let K;if(typeof n.flashFillFormat=="function")K=n.flashFillFormat(W,k);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 k=W.target.value??"";if(D(k,n.type)){const K=I(k,n.type);if(b(n.type)){const X=Array.isArray(y.value)?[...y.value]:[];X[0]=K,h(X)}else h(K)}},Q=W=>{if(!W.target)return;const k=W.target.value??"";if(D(k,n.type)){const K=I(k,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&&te.value&&te.value.$el)if(b(n.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",z),W[1]&&W[1].addEventListener("input",Q)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",z)}},Y=()=>{if(n.flashFill&&te.value&&te.value.$el)if(b(n.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",z),W[1]&&W[1].removeEventListener("input",Q)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",z)}};return l.onMounted(ne),l.onBeforeUnmount(Y),we({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const k={...r.attrs,key:f.value,type:R.value,ref:$,class:S.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:V,onFocus:O,onBlur:N,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,k,K);X.push(P);const H={default:()=>X};if(H.label=r.slots.default,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip,J){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,To,Co),ref:te,class:{[`${T}__wrapper`]:!0,"has-append":J},hintText:B.value,hintVisible:q.value};return n.prop&&(le.prop=`${n.prop}_item`),l.h(o,le,H)}}}}const{componentName:Gs,create:Xs,scope:Zs}=ae("date-item"),wl=Xs(Us(Gs,Zs,Ee)),$o={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:{...$e,...Ve,...$o},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(t),m=d(n,["placeholder"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!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;p.value=!0,de(R.value)||(T.value=!0),c("focus",j,V)},B=V=>{setTimeout(()=>{T.value&&(T.value=!1),p.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)},N=l.ref();return we({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()},setDisabled:V=>{a.value=V},setReadonly:V=>{u.value=V}}),()=>{const w={...r.attrs,ref:N,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,$o),hintText:R.value,hintVisible:T.value};return n.prop&&(E.prop=`${n.prop}_item`),l.h(o,E,Z)}}}}const{componentName:Js,create:eu,scope:tu}=ae("time-item"),Sl=eu(Qs(Js,tu,Ee)),Eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function nu(e,t,o){return{props:{...$e,...Ve,...Eo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(t),m=d(n,["placeholder"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0})),h=N=>{y.value=N,c("update:modelValue",N),c("change",N)};let R=he(n,"hintText"),T=l.ref(!1);const S=N=>{let w=N.target.value;p.value=!0,de(R.value)||(T.value=!0),c("focus",w,N)},B=N=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),c("blur",w,N)},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:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{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,Eo),hintText:R.value,hintVisible:T.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,L)}}}}const{componentName:lu,create:ou,scope:ru}=ae("time-select-item"),Tl=ou(nu(lu,ru,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 No(e,t,o=20){if(typeof t=="string"&&(t=Ce(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=hr(`${e}`,`${t}`);return ko(n)}else{let n=rl(`${e}`,mr(`${t}`),20);return ko(n)}}function au(e,t=-1,o=!1,n=3,r=","){return sn(e,t,o,n,r)}function Po(e,t,o,n,r=!0){if(e==="")return"";if(e=gr(e),t=Ce(t),t==1)return e;if(n)e=No(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Ce(o)+2,"0"):e=rl(e,1,Ce(o)));else{let a=-1*t;e=No(e,a)}return e}function Io(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=Un(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=Un(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Oo={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 iu(e,t,o){return{props:{...$e,...Ve,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=l.ref(!1),m=he(n,"modelValue",null,c),p=l.ref("");l.watch([()=>m.value,()=>n.rates,()=>n.precision],([E,F,_])=>{if(de(E)){p.value="";return}const U=Po(E,F,_,!1);p.value!==U&&(p.value=U)},{immediate:!0});const y=l.computed(()=>{let E="";return d.value&&(E=p.value),E}),{t:v}=je.useFoxI18n(t),f=l.computed(()=>{let E=n.placeholder??"";return!d.value&&!de(p.value)?E=au(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):E=v(["placeholder",E]),E}),h=e,R=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.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),N=(E,F)=>{if(E=`${E}`,de(E)){p.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(p);return}}if(E!="-"){if(!Tr(E)){l.triggerRef(p);return}if(n.integerLength!=-1&&Cr(E)>Number(n.integerLength)){l.triggerRef(p);return}if(n.decimalLength&&n.decimalLength!=-1&&$r(E)>Number(n.decimalLength)){l.triggerRef(p);return}let _=Io(E,n);if(_.maxValid===!1){S.value=_.message,l.triggerRef(p);return}}else if(n.min!=null&&Ce(n.min)>=0){l.triggerRef(p);return}q.value=E,ue(n.showTip)&&(O.value=E.length>0),p.value=E,m.value=Po(E,n.rates,n.precision,!0),F.forEach(_=>{c(_,m.value)})},V=E=>{N(E,["update:modelValue","input"])},w=E=>{N(E,["update:modelValue","change"])},j=E=>{if(d.value=!0,ue(n.showTip)){let F=p.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(p.value)){let F=Io(p.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(()=>Ft(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=[],J=l.h(x.ElInput,F,_);U.push(J);const A={default:()=>U};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const $={...Oe(n,Oo),errorTip:B.value,hintText:q.value,hintVisible:O.value,hintType:"number"};return n.prop&&($.prop=`${n.prop}_item`),l.h(o,$,A)}}}}const{componentName:su,create:uu,scope:cu}=ae("money-item"),Cl=uu(iu(su,cu,Ee)),Vo={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 fu(e,t,o){return{props:{...$e,...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}=ke({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0,[`${v}__append`]:V.value})),h=l.computed(()=>({[`${v}__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;p.value=!0,de(S.value)||(B.value=!0),c("focus",L,j)},O=j=>{setTimeout(()=>{B.value&&(B.value=!1),p.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)},N=()=>{c("clear","")},V=l.computed(()=>Ft(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:N,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,Vo),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 J={class:h.value},A=l.h("div",J,[n.unit]);E.append=()=>A}return l.h(o,_,E)}}}}const{componentName:du,create:hu,scope:mu}=ae("input-number-item"),$l=hu(fu(du,mu,Ee));function Qe(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 gu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let vu=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 pu(){const e=l.getCurrentInstance();return new vu(e.proxy)}function ll(e,t,o){const n=Qe(e,t),r=Qe(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=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=Gr(e,u,o,n);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=Qe(e,c)===u;else if(o==="item")s=ll(e,c,u);else{let d=dt(e,c);d==null&&(d=Qe(e,c)),s=d===u}if(s){r.push(c),a=gu(e,c);break}}if(!s)break}}return r}function yu(e){return{text:e,value:e}}const Do={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 bu(e,t,o){return{props:{...$e,...Ve,...Do},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(t),m=d(n,["placeholder"]),p=l.ref(null),y=l.ref([]),v=l.computed(()=>y.value?y.value.map(W=>Array.isArray(W)?W.map(K=>Qe(n,K)).join(" "):Qe(n,W)).join(" "):""),f=(Y,W,k,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===Y)return;p.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=Gr(n,Y,W,k);if(X===null){if(y.value.length===0||y.value===null)return;y.value=[],p.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=`${Qe(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(!ll(n,le[ce],se[ce])){H=!1;break}}else ll(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(dt(n,Se)),n.valueType==="text"?ve.push(Qe(n,Se)):n.valueType==="item"?ve.push(Se):ve.push(dt(n,Se));G.push(ge),le.push(ve)}else G.push(dt(n,ce)),n.valueType==="text"?le.push(Qe(n,ce)):n.valueType==="item"?le.push(ce):le.push(dt(n,ce))}),p.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=pu(),S=async(Y,W)=>{if(Y){const k=await T.load("cascader",Y,W);if(k.length>0)if(typeof k[0]=="string"){let P=k.map(H=>yu(H));h.value=P}else h.value=k}};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,N=l.ref(!1);typeof n.remoteMethod=="function"&&(O=async Y=>{if(Y!=null){N.value=!0;try{const W=await n.remoteMethod(Y);h.value=W}catch(W){console.error(W)}N.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,k)=>{const K=await T.load("cascader",n.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.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;k(K)}),Y}),Z=Y=>{n.allowCreate?(c("update:modelValue",Y),c("change",Y),p.value=Y):f(Y,"value",h.value,!0)};let M=he(n,"hintText"),E=l.ref(!1);const F=Y=>{let k=Y.target.value;V.value=!0,de(M.value)||(E.value=!0),c("focus",k,Y)},_=Y=>{setTimeout(()=>{E.value&&(E.value=!1),V.value=!1},0);let k=Y.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),I.value||c("blur",k,Y)},U=()=>{c("clear","")},J=l.ref(!1);let A=null;const te=()=>{n.showTooltip&&J.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{J.value=!0},150))},$=()=>{A&&(clearTimeout(A),J.value=!1,A=null)},C=l.computed(()=>J.value||E.value),D=l.computed(()=>J.value?v.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)},Q=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:p.value,separator:n.separator,onClear:U,onChange:Z,onFocus:F,onBlur:_,onVisibleChange:b,onRemoveTag:z,expandChange:Q};typeof O=="function"&&(W["remote-method"]=O,W.loading=N.value);const k={};r.slots.option&&(k.default=r.slots.option),r.slots.empty&&(k.empty=r.slots.empty);const K=[],X=l.h(x.ElCascader,W,k);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,Do),hintText:D.value,hintVisible:C.value,onMouseover:te,onMouseleave:$};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:xu,create:wu,scope:Su}=ae("cascader-item"),El=wu(bu(xu,Su,Ee)),Ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Tu(e,t,o){return{props:{...$e,...Ve,...Ro},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(t),m=d(n,["placeholder"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!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;p.value=!0,de(S.value)||(B.value=!0),c("focus",g,w)},O=w=>{setTimeout(()=>{B.value&&(B.value=!1),p.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)},N=()=>{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:N,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,Ro),hintText:S.value,hintVisible:B.value};return n.prop&&(F.prop=`${n.prop}_item`),l.h(o,F,M)}}}}const{componentName:Cu,create:$u,scope:Eu}=ae("autocomplete-item"),kl=$u(Tu(Cu,Eu,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(p=>p[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(p=>p[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(p=>p[n]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let Nu=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 Pu(){const e=l.getCurrentInstance();return new Nu(e.proxy)}const Xr={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 Iu(e,t){return{props:{...Xr},setup(o,{attrs:n,slots:r}){const a=Pu(),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{create:Ou}=ae("mapping"),Dt=Ou(Iu());function Vu(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 Du(e,t){return{props:{...Xr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Vu(i.row,i.column.property);return r.default?l.h(Dt,{...o,modelValue:u},{default:r.default}):l.h(Dt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(x.ElTableColumn,{...n},a)}}}}const{create:Ru}=ae("table-mapping-column"),Nl=Ru(Du()),Fu=Symbol.for("TableStateKey");function Fo(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 Au(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Fu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Fo(u.row,u.column.property),c=a?Fo(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},p=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,[p])}};return l.h(x.ElTableColumn,{...n},i)}}}}const{create:Mu}=ae("table-radio-column"),Pl=Mu(Au()),Lu={},Bu={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 _u(e,t){return l.openBlock(),l.createElementBlock("svg",Bu,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 qu=Ue(Lu,[["render",_u]]),{create:ju}=ae("table-setting"),zu={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:"不固定"}},Hu=ju({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:qu,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...zu},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,p=(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 Q=[];r.value=b.map((Y,W)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&Q.push(Y.prop),{...Y,sortIndex:W})),u.value.length+a.value.length+i.value.length===Q.length?T.value=!0:Q.length>0&&(S.value=!0),O.value=Q},y=b=>b?b.type?b.type:b.label?b.prop:"":"",v=(b,z)=>{if(b.length!==z.length)return!1;const Q=b.map(ne=>y(ne));for(let ne of z){const Y=y(ne);if(Q.indexOf(Y)===-1)return!1}return!0},f=b=>{if(!b){const z=e.tableRef.getColumnSetting(),Q=z.srcColumnPropertyList;n=Q.map((ne,Y)=>({...ne,sortIndex:Y})),b=z.columnPropertyList,b&&b.length>0&&v(Q,b)||(b=Q)}p(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([]),N=b=>{r.value.forEach(Q=>{if(Q.label===""||Q.type)return;const ne=b.indexOf(Q.prop)!==-1;Q.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 Q=j(z);if(!Q)return;const ne=Q.dataset&&Q.dataset.roleType;w.roleType===ne&&(b.preventDefault(),w.currentRow&&w.currentRow!==Q&&w.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),w.currentRow=Q)},M=b=>{b.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},E=b=>{const z=b.currentTarget,Q=j(z);if(!Q)return;const ne=Q.dataset&&Q.dataset.roleType;if(w.roleType!==ne)return;b.preventDefault();const Y=Number(w.index),W=Number(Q.dataset.index);if(Y!==W){if(Y<W){const k=r.value[Y];r.value.splice(Y,1),r.value.splice(W,0,k)}else{const k=r.value[Y];r.value.splice(Y,1),r.value.splice(W+1,0,k)}p(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()},J=new Map;let A=null;function te(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:N,onShow:V,onDragStart:g,onDragEnd:L,onDragOver:Z,onDragLeave:M,onDrop:E,toLeftFixed:F,toRightFixed:_,toUnFixed:U,checkboxLabelStyle:R,onMouseOverForOverflowText:(b,z,Q)=>{const ne=b.currentTarget;if(ne){const Y=Math.floor(ne.offsetWidth);if(Math.floor(te(ne))>Y){let k=J.get(z);if(k){if(k===A)return;Re.hide(k)}k=Re.show(ne,Q,{type:"text",placement:"top",closeOnClick:!1}),k&&(J.set(z,k),A=k)}}},onMouseLeaveForOverflowText:(b,z)=>{const Q=J.get(z);Q&&(Re.hide(Q),Q===A&&(A=null))},onMouseOverForTip:(b,z)=>{const Q=b.currentTarget;Q&&(A&&Re.hide(A),A=Re.show(Q,z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{A&&(Re.hide(A),A=null)}}}}),Ku={class:"fox-table-setting"},Wu={class:"fox-table-setting__header"},Yu={class:"fox-table-setting__body"},Uu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Gu={key:0,class:"fox-table-setting__body-title"},Xu=["data-index","draggable"],Zu=["onMouseover","onMouseleave"],Qu={class:"tools-item"},Ju={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ec={key:0,class:"fox-table-setting__body-title"},tc=["data-index","draggable"],nc=["onMouseover","onMouseleave"],lc={class:"tools-item"},oc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},rc={key:0,class:"fox-table-setting__body-title"},ac=["data-index","draggable"],ic=["onMouseover","onMouseleave"],sc={class:"tools-item"};function uc(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"),p=l.resolveComponent("fox-checkbox"),y=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Ku,[l.createElementVNode("div",Wu,[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",Yu,[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",Uu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Gu,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,Zu)]),_: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,Xu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ju,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",ec,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,nc)]),_:2},1032,["value"]),l.createElementVNode("div",lc,[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,tc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",oc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",rc,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(p,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,ic)]),_:2},1032,["label"]),l.createElementVNode("div",sc,[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,ac))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const En=Ue(Hu,[["render",uc]]);let cc=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 fc(){const e=l.getCurrentInstance();return new cc(e.proxy)}class dc{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 Zr(){const e=l.getCurrentInstance();return new dc(e.proxy)}const hc=Symbol.for("TableStateKey"),Ao={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Mo={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}},Ln={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:()=>"不固定"}},mc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function gc(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 Bn(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=gc(n,r);if(a!==i)return!1}return!0})}function vc(e,t,o){return{inheritAttrs:!1,props:{...$e,...Ve,...Ao,...Mo,...Ln,...mc},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}=ke({componentName:e,validateHandler:{getValue(...ee){return N.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})),p=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),y=l.shallowRef({}),v=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,ee=>{f.value=ee}),l.watch(()=>n.pageSize,ee=>{h.value=ee}),l.watch([f,h],([ee,oe],[re,ie])=>{oe!==ie&&(f.value=1,ee=1),g(n.data,ee,oe,v.value)}));const T=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);T()&&l.watch([()=>n.data,v],async([ee,oe],[re,ie])=>{T()&&(ee!==re&&(w=!0),!(!Array.isArray(ee)&&Je(ee,re)&&Je(oe,ie))&&(R?(f.value=0,q.value=!0,N.value=[],Z()):f.value===1?g(ee,f.value,h.value,oe):f.value=1))},{deep:!0});const S=ee=>{f.value=ee,i("page-index-change",ee)},B=ee=>{h.value=ee,i("page-size-change",ee)},q=l.ref(!0),O=l.ref(0),N=l.ref(),V=fc();let w=!0;const j=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,ee=>ue(ee)),g=async(ee,oe,re,ie,Te)=>{w=!1;try{if(Te===!0){if(!q.value)return!1;const pe=await V.load("table",ee,oe,re,ie,w,a.value);return O.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,N.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(N.value?.length??0)>=O.value)||pe.page.length<re?(q.value=!1,!1):!0}else{const pe=await V.load("table",ee,oe,re,ie,w,a.value);return O.value=pe.totalSize,N.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),O.value=0,N.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,v.value,!0),L=!1}},M=(ee={},oe=!1)=>new Promise(async re=>{y.value={...l.toRaw(ee??{})},oe||(f.value=n.pageIndex??1),R===!0?(f.value=0,N.value=[],q.value=!0,await Z()):await g(n.data,f.value,h.value,v.value),re()}),E=()=>{O.value=0,N.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 ee=null;const oe=()=>{U.value&&(ee=new IntersectionObserver(ie=>{let Te=!1;for(let pe of ie)if(pe.intersectionRatio>0){Te=!0;break}Te&&Z()}),ee.observe(U.value))},re=()=>{!ee||!U.value||(ee.unobserve(U.value),ee=null)};l.onMounted(oe),l.onBeforeUnmount(re)}T()&&!j.value&&M();const J=l.ref(null);l.provide(hc,{currentRow:J});const A=(ee,oe)=>{J.value=ee,i("current-change",ee,oe)},te=(ee,oe,re)=>{i("row-click",ee,oe,re),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(ee)},$=[],C=(ee,oe)=>{if(i("expand-change",ee,oe),ue(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=$.length;$.splice(0,re)}else{$.forEach(ie=>{ie!==ee&&xe?.value.toggleRowExpansion(ie,!1)});const re=$.length;$.splice(0,re,ee)}},D=r.attrs.id??n.prop??r.attrs.name,I=Zr(),b=l.ref([]);let z=[];const Q=()=>({srcColumnPropertyList:z.map(oe=>({...oe})),columnPropertyList:b.value}),ne=ee=>{b.value=[...ee],W()},Y=async()=>{const ee=await I.load(D);ee&&(b.value=ee)},W=()=>{I.save(D,b.value)},k=()=>{I.remove(D)};Y();const K=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",X=()=>typeof r.slots.default=="function"?r.slots.default():[],P=(ee,oe={})=>{for(let re in oe){const ie=oe[re];typeof ie!="function"&&(ee[re]=ie)}},H=l.computed(()=>{const ee=X(),oe=new Map;if(z=[],ee.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 ee;if(ie.visible===!1)continue;const ze=pe;ze.props.fixed=ie.fixed,re.push(ze)}return re}return ee}),G=l.shallowRef(new Map),le=({row:ee,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=ee=>ee?oe=>{const re=[];let ie=le(oe);return ie&&re.push(ie),ie=ie=typeof ee=="function"?ee(oe):ee,ie&&re.push(ie),re.length===0?"":re.join(" ")}:le,ce=(ee=!1)=>{G.value.forEach((oe,re)=>{ge(re,oe,ee)})},ge=(ee,oe,re=!1)=>{const ie=`${ee}_item`;re?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:ee},"setCellClassNames",[]):u.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:ee,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",oe):u.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",oe)},ve=(ee,oe,re)=>{const ie=`${ee}_${oe}`;re?(G.value.set(ie,re),ge(ie,re)):(G.value.delete(ie),ge(ie,"",!0)),l.triggerRef(G)},Se=ee=>{ce(!0),G.value.clear(),ee.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:ee})=>{const oe=`${ee}`;return He.value.get(oe)??""},Pn=ee=>{debugger;return ee?oe=>{const re=[];let ie=st(oe);return ie&&re.push(ie),ie=typeof ee=="function"?ee(oe):ee,ie&&re.push(ie),re.length===0?"":re.join(" ")}:st},sa=(ee,oe)=>{const re=`${ee}`;oe?He.value.set(re,oe):He.value.delete(re),l.triggerRef(He)},ua=()=>{He.value.clear(),l.triggerRef(He)},xe=l.ref();return we({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{xe?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!N.value)return;const re=Bn(N.value,ee);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowSelection(ie,oe)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{xe?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!N.value)return;const re=Bn(N.value,ee);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowExpansion(ie,oe)})},setCurrentRow:ee=>{xe?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!N.value)return;const oe=Bn(N.value,ee);oe.length!==0&&xe?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:ee=>{xe?.value.clearFilter(ee)},doLayout:()=>{xe?.value.doLayout()},sort:(ee,oe)=>{xe?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{xe?.value.scrollTo(ee,oe)},setScrollTop:ee=>{xe?.value.setScrollTop(ee)},setScrollLeft:ee=>{xe?.value.setScrollLeft(ee)},loadData:M,clearData:E,getData(){return N.value},getTotalSize(){return O.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Q,setColumnSetting:ne,removeColumnSetting:k,setCellClassName:ve,setCellClassNames:Se,clearCellClassName:it,setRowClassName:sa,clearRowClassName:ua}),()=>{const oe={...Ze(r.attrs),onCurrentChange:A,onRowClick:te,onExpandChange:C,data:N.value,ref:xe,class:c.value,"cell-class-name":se(n.cellClassName),"row-class-name":Pn(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 Tt=l.h(Ie.Loading,{class:`${s}__infinite-icon`});Ke.push(Tt);const On=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);Ke.push(On)}else{const Tt=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Ke.push(Tt)}const ut={ref:U,class:`${s}__infinite`},In=l.h("div",ut,Ke);re.append=()=>In}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:p.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 In=l.h(x.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),Tt=Er(n,Ln),On=l.h(En,{...Tt,tableRef:{getColumnSetting:Q,setColumnSetting:ne,removeColumnSetting:k}},{default:()=>In});ut.push(On);const ca=l.h("div",{class:m.value},ut);Te.push(ca)}else Ke&&Te.push(Ke)}const pe={default:()=>Te},mt={...Oe(n,Ao,Mo,Ln)};return n.prop&&(mt.prop=`${n.prop}_item`),mt.contentClass=`${s}__wrap`,mt.errorMarkClass="is-table-error",j.value&&T()&&(mt["appear-listen"]=!0,mt.onAppear=_),l.h(o,mt,pe)}}}}const{componentName:pc,create:yc,scope:bc}=ae("table-item"),Il=yc(vc(pc,bc,Ee));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function xc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let wc=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 Sc(){const e=l.getCurrentInstance();return new wc(e.proxy)}function Qr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,o);return a===i}function Tc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=wt(e,a)===t;else if(o==="item")i=Qr(e,a,t);else{let u=Rt(e,a);u==null&&(u=wt(e,a)),i=u===t}if(i){r=a;break}}return r}function Cc(e){return{text:e,value:e}}function $c(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Lo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Ec(e,t,o){return{inheritAttrs:!0,props:{...$e,...Ve,...Lo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=l.ref(null),m=l.ref(null),p=(w,j,g,L=!0)=>{const Z=Tc(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=wt(n,E):n.valueType==="item"?F=E:F=Rt(n,E),L&&(c("update:modelValue",F),c("change",F))}},y=l.ref([]),v=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,w=>ue(w)),f=Sc(),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:!v.value});let R=!1;const T=()=>{R||(R=!0,h(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([w,j])=>{p(j,n.valueType,w,!1),c("setValue",j)});const S=e,B=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{p(w,"value",y.value,!0)};let O=he(n,"hintText"),N=he(n,"hintVisible");const V=(w,j)=>{const g=[];return w.forEach((L,Z)=>{const M=Rt(n,L),E=wt(n,L);let F=xc(n,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const _=$c(n,L,Z)??{},U=`${M}_${Z}`,J={..._,key:U,value:M,size:n.size,border:ue(n.border)};F&&(J.disabled=F),n.itemType==="button"?g.push(l.h(x.ElRadioButton,J,{default:()=>[E]})):typeof j=="function"?g.push(l.h(x.ElRadio,J,{default:()=>j(L)})):g.push(l.h(x.ElRadio,J,{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,Lo),hintText:O.value,hintVisible:N.value};return n.prop&&(F.prop=`${n.prop}_item`),v.value&&(F["appear-listen"]=!0,F.onAppear=T),l.h(o,F,M)}}}}const{componentName:kc,create:Nc,scope:Pc}=ae("radio-item"),Ol=Nc(Ec(kc,Pc,Ee));function St(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ic(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Oc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Ye(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(et(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Vc(){const e=l.getCurrentInstance();return new Oc(e.proxy)}function Jr(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=bt(e,t),i=bt(e,o);return a===i}function Dc(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=St(e,i)===a;else if(o==="item")u=Jr(e,i,a);else{let s=bt(e,i);s==null&&(s=St(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Rc(e){return{text:e,value:e}}function Fc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Bo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Ac(e,t,o){return{inheritAttrs:!0,props:{...$e,...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}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=l.ref([]),m=l.ref([]),p=(w,j,g,L=!0)=>{const Z=Dc(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(!Jr(n,F,_)){M=!1;break}}if(!M){m.value=Z;let E=[],F=[];Z.forEach(U=>{E.push(bt(n,U)),n.valueType==="text"?F.push(St(n,U)):n.valueType==="item"?F.push(U):F.push(bt(n,U))}),d.value=E;const _=l.toRaw(F);L&&(c("update:modelValue",_),c("change",_))}},y=l.ref([]),v=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,w=>ue(w)),f=Vc(),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=>Rc(E));y.value=M}else y.value=g}};l.watch([()=>n.source,()=>n.params],async([w,j])=>{h(w,j)},{immediate:!v.value});let R=!1;const T=()=>{R||(R=!0,h(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([w,j])=>{p(j,n.valueType,w,!1),c("setValue",j)});const S=e,B=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{p(w,"value",y.value,!0)};let O=he(n,"hintText"),N=he(n,"hintVisible");const V=(w,j)=>{const g=[];return w.forEach((L,Z)=>{const M=bt(n,L),E=St(n,L);let F=Ic(n,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const _=Fc(n,L,Z)??{},U=`${M}_${Z}`,J={..._,key:U,class:n.itemClass,value:M,size:n.size,border:ue(n.border)};F&&(J.disabled=F),n.itemType==="button"?g.push(l.h(x.ElCheckboxButton,J,{default:()=>[E]})):typeof j=="function"?g.push(l.h(x.ElCheckbox,J,{default:()=>j(L)})):g.push(l.h(x.ElCheckbox,J,{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:Ce(n.max),min:Ce(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,Bo),hintText:O.value,hintVisible:N.value};return n.prop&&(F.prop=`${n.prop}_item`),v.value&&(F["appear-listen"]=!0,F.onAppear=T),l.h(o,F,M)}}}}const{componentName:Mc,create:Lc,scope:Bc}=ae("checkbox-item"),Vl=Lc(Ac(Mc,Bc,Ee)),_o={modelValue:{type:[Number,String],required:!1}};function _c(e,t,o){return{props:{...$e,...Ve,..._o},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??n.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=he(n,"modelValue",R=>Ce(R),c),m=e,p=l.computed(()=>({[m]:!0})),y=R=>{c("update:modelValue",R),c("change",R)};let v=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:p.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,_o),hintText:v.value,hintVisible:f.value};return n.prop&&(V.prop=`${n.prop}_item`),l.h(o,V,O)}}}}const{componentName:qc,create:jc,scope:zc}=ae("rate-item"),Dl=jc(_c(qc,zc,Ee)),qo={modelValue:{type:[Boolean,String,Number],required:!1}};function Hc(e,t,o){return{props:{...$e,...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}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=he(n,"modelValue",null,c),m=e,p=l.computed(()=>({[m]:!0})),y=R=>{c("update:modelValue",R),c("change",R)};let v=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:p.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,qo),hintText:v.value,hintVisible:f.value};return n.prop&&(V.prop=`${n.prop}_item`),l.h(o,V,O)}}}}const{componentName:Kc,create:Wc,scope:Yc}=ae("switch-item"),Rl=Wc(Hc(Kc,Yc,Ee)),jo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Uc(e,t,o){return{props:{...$e,...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)),c=l.ref(!1),{emitEvent:d}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),m=he(n,"modelValue",null,d),p=e,y=l.computed(()=>({[p]:!0})),v=N=>{d("update:modelValue",N),d("change",N)};let f=he(n,"hintText"),h=l.ref(!1);const R=N=>{let w=N.target.value;c.value=!0,de(f.value)||(h.value=!0),d("focus",w,N)},T=N=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),B.value||d("blur",w,N)},S=()=>{d("clear","")},B=l.ref(!1),q=N=>{B.value=N,d("visible-change",N),N||d("selected")},O=l.ref();return we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const V={...Ze(r.attrs),ref:O,class:y.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":v,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,jo),hintText:f.value,hintVisible:h.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,L)}}}}const{componentName:Gc,create:Xc,scope:Zc}=ae("tree-select-item"),Fl=Xc(Uc(Gc,Zc,Ee)),Qc={},Jc={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 ef(e,t){return l.openBlock(),l.createElementBlock("svg",Jc,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 tf=Ue(Qc,[["render",ef]]),{create:nf}=ae("group-setting"),lf={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:"到底部"}},of=nf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:tf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...lf},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=Zr(),u=$=>$.length>1,s=()=>{const $=[],C=[...a.value];a.value=C.map((I,b)=>(I.visible!==!1&&$.push(I.prop),{...I,sortIndex:b})),a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),S.value=$},c=$=>{let C=null;if(typeof $=="string")C=document.querySelectorAll(`.fox-group[prop="${$}"] > div > .fox-item[prop]`);else if($&&typeof $=="object"){const I=$.$el??$;typeof I.querySelectorAll=="function"&&(C=I.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const D=[];return C.forEach(I=>{const b=I.querySelector(".label--string");let z="";b&&(z=b.textContent??"");const Q=I.getAttribute("prop")??"",Y=window.getComputedStyle(I,null).getPropertyValue("display");D.push({label:z,prop:Q,sortIndex:0,visible:Y!=="none"})}),D},d=()=>{if(!r){const $=c(e.groupRef??e.groupProp);if($.length===0)return!1;r=$}return!0},m=async($=!1)=>{const C=await i.load(e.groupProp),D=I=>{if(!I||!r)return;const b=r.map(z=>({...z}));Array.isArray(C)&&C.forEach(z=>{b.some(Q=>{if(Q.prop===z.prop){const ne=Q.label;return Object.assign(Q,z),Q.label=ne,!0}return!1})}),a.value=b.sort((z,Q)=>z.sortIndex-Q.sortIndex),s(),$&&y(!1)};r?D(!0):hn(d,e.initDelay,5,50,!1,D)},p=()=>{const $=r??[];a.value=$.map(C=>({...C})),s(),y()},y=($=!0)=>{$&&i.save(e.groupProp,a.value);const C=a.value.map(D=>({...D}));t("change",C)},v=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),R=$=>{const C=[];a.value.forEach(I=>{$&&C.push(I.prop),I.visible=$}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),S.value=C,y()},T=()=>{p()},S=l.ref([]),B=$=>{a.value.forEach(D=>{const I=$.indexOf(D.prop)!==-1;D.visible=I}),f.value=!1,h.value=!1;const C=a.value.length;$.length===C?f.value=!0:$.length>0&&(h.value=!0),y()},q=()=>{m()};l.onMounted(()=>{m(!0)});const O={currentRow:null,index:null},N=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,N($)):null:null,V=$=>{const C=$.currentTarget;C&&C.dataset&&(O.index=C.dataset.index)},w=$=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null},j=$=>{const C=$.currentTarget;$.relatedTarget;const D=N(C);D&&($.preventDefault(),O.currentRow&&O.currentRow!==D&&O.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),O.currentRow=D)},g=$=>{$.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},L=$=>{const C=$.currentTarget,D=N(C);if(!D)return;$.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=$=>{const C=a.value[$];a.value.splice($,1),a.value.splice(0,0,C),s(),y()},M=$=>{const C=a.value[$];a.value.splice($,1),a.value.push(C),s(),y()};n({refresh:()=>{r=null,m(!1)}});const E=new Map;let F=null;function _($){const C=document.createRange();return C.setStart($,0),C.setEnd($,$.childNodes.length),C.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:v,toTop:Z,toBottom:M,onMouseOverForOverflowText:($,C,D)=>{const I=$.currentTarget;if(I){const b=Math.floor(I.offsetWidth);if(Math.floor(_(I))>b){let Q=E.get(C);if(Q){if(Q===F)return;Re.hide(Q)}Q=Re.show(I,D,{type:"text",placement:"top",closeOnClick:!1}),E.set(C,Q),F=Q}}},onMouseLeaveForOverflowText:($,C)=>{const D=E.get(C);D&&(Re.hide(D),D===F&&(F=null))},onMouseOverForTip:($,C)=>{const D=$.currentTarget;D&&(F&&Re.hide(F),F=Re.show(D,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:$=>{F&&(Re.hide(F),F=null)}}}}),rf={class:"fox-group-setting"},af={class:"fox-group-setting__header"},sf={class:"fox-group-setting__body"},uf={class:"fox-group-setting__body-list","data-role":"container"},cf=["data-index","draggable"],ff=["onMouseover","onMouseleave"],df={class:"tools-item"};function hf(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"),p=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(p,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",rf,[l.createElementVNode("div",af,[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",sf,[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",uf,[(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]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[6]||(t[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[7]||(t[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[8]||(t[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[9]||(t[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:y.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,y.prop,y.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,y.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(y.label),45,ff)]),_:2},1032,["label"]),l.createElementVNode("div",df,[l.createVNode(d,{onClick:v=>e.toTop(y.sortIndex),onMouseover:t[1]||(t[1]=v=>e.onMouseOverForTip(v,e.toTopText)),onMouseleave:t[2]||(t[2]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:v=>e.toBottom(y.sortIndex),onMouseover:t[3]||(t[3]=v=>e.onMouseOverForTip(v,e.toBottomText)),onMouseleave:t[4]||(t[4]=v=>e.onMouseLeaveForTip(v))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,cf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Al=Ue(of,[["render",hf]]),mf=["aria-labelledby"],gf=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),vf=[gf],pf=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"},vf,14,mf))}}),yf=["aria-labelledby"],bf=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),xf=[bf],wf=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"},xf,14,yf))}}),Sf=["aria-labelledby"],Tf=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=[Tf],Ml=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit: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,Sf))}}),$f=["aria-labelledby"],Ef=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),kf=[Ef],Nf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=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,$f))}}),Pf=["aria-labelledby"],If=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),Of=[If],Vf=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"},Of,14,Pf))}}),Df=["aria-labelledby"],Rf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ff=[Rf],Af=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"},Ff,14,Df))}}),Mf={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}},zo=(e,t)=>t[e.textKey],Et=(e,t)=>t[e.valueKey],Lf=(e,t)=>t[e.visibleKey],Ho=(e,t)=>t[e.disabledKey],Bf=(e,t)=>{const o=t[e.doitKey];return ue(o)},_f=(e,t)=>{const o=t[e.numKey];return o==null?null:Ce(t[o])},Ko=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function qf(e,t,o,n=!1){return{props:{...Mf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const $={};return $[`${e}`]=!0,$}),s=l.computed(()=>{const $={};return $[`${e}__titles`]=!0,$[`${r.direction}`]=!0,r.align==="left"&&($.left=!0),r.scroll===!0&&($.scrollable=!0),r.shape&&($[`${r.shape}`]=!0),$}),c=l.computed(()=>({})),d=l.computed(()=>{if(!r.gutter)return 0;const $=me(r.gutter);return $<=0?0:$}),m=l.ref(r.modelValue);l.watch(()=>r.modelValue,$=>{m.value!==$&&(m.value=$,_(!1))});const p=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=l.computed(()=>{const $={};return f.value||($.display="none"),$}),v=l.ref(),f=l.ref(!1),h=()=>{const $=!f.value;R($)},R=$=>{const C=$;C?(f.value=C,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},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[$])return;const b=I[$];let z=0;r.direction==="vertical"?z=b.offsetTop-(D.offsetHeight-b.offsetHeight)/2:z=b.offsetLeft-(D.offsetWidth-b.offsetWidth)/2,N(D,z,C?0:.3,r.direction)},N=($,C,D,I)=>{let b=0;const z=I==="horizontal"?$.scrollLeft:$.scrollTop,Q=D===0?1:Math.round(D*1e3/16);function ne(){I==="horizontal"?$.scrollLeft+=(C-z)/Q:$.scrollTop+=(C-z)/Q,++b<Q&&al(ne)}ne()},V=($,C)=>{const D=Et(r,$),I={};return I[`${e}__titles-item`]=!0,I.disabled=Ho(r,$),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0),r.ellipsis&&(I.ellipsis=!0),C&&(C.class&&(I[`${C.class}`]=!0),C.disabled===!0&&(I.disabled=C.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 C&&C.style&&Object.assign(D,C.style),D},j=($,C)=>`${Et(r,$)??C}`,g=($,C)=>{const D=Et(r,$),I={};I[`${e}__popup-item`]=!0,I.disabled=Ho(r,$),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0);const b=Ko(r,$,C);return b&&b.disabled===!0&&(I.disabled=b.disabled),I},L=l.computed(()=>(r.data??[]).filter(C=>Lf(r,C)!==!1)),Z=($,C)=>{const D=Et(r,$);if(m.value==D)return;const I=()=>{m.value=D,r.scroll&&O(C,!1),i("update:modelValue",D),i("change",$,C)};if(typeof r.beforeChange=="function"){const b=r.beforeChange($,C);pr(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)},_=$=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(D=>Et(r,D)===m.value);C!==-1&&O(C,$)};l.watch(()=>r.data,()=>{setTimeout(_,0)}),l.onMounted(()=>{_(!0)});const U=($,C)=>{if(a.item)return a.item({item:$,index:C});const D=Ko(r,$,C),I=[];if(a.text){const ne=a.text({item:$,index:C});I.push(ne)}else{const ne=[];if(D?.doit===!0||Bf(r,$)){const K={class:[`${e}__titles-item-tip`,"doit"]},X=l.h("view",K);ne.push(X)}const Y=D?.num??_f(r,$);if(Y){let K="";const X=Ce(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(zo(r,$));const k=l.h("view",W,ne);I.push(k)}const b={class:`${e}__titles-item-line`},z=l.h("view",b);I.push(z);const Q={ref:q(C),class:V($,D),style:w($,D),key:j($,C),onClick:M($,C)};return l.h("view",Q,I)},J=()=>{const $=a.default?a.default():[];if($.length===0)for(let D=0;D<L.value.length;D++){const I=L.value[D],b=U(I,D);$.push(b)}const C={ref:T,class:s.value,style:c.value};return l.h("view",C,$)},A=()=>{let $=null;a.navigation?$=a.navigation():$=l.h(o);const C={class:`${e}__navigation`,onClick:h};return l.h("view",C,[$])},te=()=>{const $=[];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=zo(r,I);const z={class:g(I,D),key:j(I,D),onClick:F(I,D)},Q=l.h("view",z,[b]);$.push(Q)}const C={class:p.value,style:y.value};return l.h("view",C,$)};return()=>{const $=[],C=J();if($.push(C),r.showQuickNavigation){const I=A();$.push(I);const b=te();$.push(b)}const D={class:u.value};return l.h("view",D,$)}}}}const{create:jf,componentName:zf,scope:Hf}=ae("tabs-bar"),Ll=jf(qf(zf,Hf,wf,!1)),ea=Symbol("TabsStatesKey"),Kf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Wo=10;function ta(e,t){return e>t&&e>Wo?"horizontal":t>e&&t>Wo?"vertical":""}function Mt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Lt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ta(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 Wf(){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",p=()=>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=ta(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:p}}const Yf=15,Uf=300,Gf=200;function Xf(e,t,o=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*o}function Yo(e,t=0,o,n,r=Gf){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 Zf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(t,o,n,r=1){this.onStart=t,this.onMove=o,this.onEnd=n,this.momentumReduceRatio=r,this.isTouch=Mt()}open(t){this.el=t;const o=Lt(),n=(r,a,i)=>{const u={delta:r,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;o.start(r),this.transitionEndTrigger=()=>{t.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,t.removeEventListener("transitionend",this.transitionend),t.addEventListener("transitionend",this.transitionend),t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;o.move(r);let a=0;if(this.direction==="horizontal"){if(o.isVertical())return;a=o.state.deltaX}else{if(o.isHorizontal())return;a=o.state.deltaY}n(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;t.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}r=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}r=o.state.deltaY}const a=o.state.duration;a<Uf&&Math.abs(r)>Yf?(r=Xf(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 Zf(e,t,o,n)}function Jf(e,t,o=!1){return{props:{...Kf},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 N={name:O};u.current.value===O&&(N.loaded=!0),i.value.push(N),l.triggerRef(i)},remove:O=>{const N=i.value.findIndex(V=>V.name===O);N!==-1&&i.value.splice(N,1)},isLoaded:O=>{if(!n.lazy)return!0;const N=i.value.findIndex(V=>V.name===O);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};l.provide(ea,u);const s=O=>{const N=i.value.findIndex(V=>V.name===O);N!==-1&&(i.value[N].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([O,N])=>{u.current.value!==O&&(u.current.value=O??"",s(O??"")),u.direction.value!==N&&(u.direction.value=N)});const c=l.ref(null),d=l.ref(null),m=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let p=!0;const y=l.computed(()=>{const O={},N=i.value.length;if(N<=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=`${N*u.tabHeight.value}px`,V!==-1&&(O.transform=`translate(0, -${V*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(O.width=`${N*u.tabWidth.value}px`,V!==-1&&(O.transform=`translate(-${V*u.tabWidth.value}px, 0)`)),p&&(p=!1,O.transition="transform 0s ease"),O}),v={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=O=>{const N=i.value.length,V=i.value.findIndex(w=>w.name===u.current.value);v.moved=0,O.direction==="vertical"?(v.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),v.max=u.tabHeight.value/4,v.start=-V*u.tabHeight.value,v.itemDistance=u.tabHeight.value):(v.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),v.max=u.tabWidth.value/4,v.start=-V*u.tabWidth.value,v.itemDistance=u.tabWidth.value)},h=O=>{const N=d.value;if(!N)return;let V=v.start+O.delta;if(V>v.max?V=v.max:V<v.min&&(V=v.min),O.type==="move")Yo(N,V,"move",O.direction,300);else if(O.type==="end"){let w=Math.floor(Math.abs(V)*1/v.itemDistance);const j=Math.abs(V)%v.itemDistance;v.start>V?j>=v.itemDistance*v.triggerAutoMoveRatio&&(w+=1):j>v.itemDistance-v.itemDistance*v.triggerAutoMoveRatio&&(w+=1),V=-1*w*v.itemDistance,Yo(N,V,"end",O.direction,300),v.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=yn(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},N=l.h("view",O,[a?.default?.()]),V={class:m.value,ref:c};return l.h("view",V,[N])}}}}const{create:ed,componentName:td,scope:nd}=ae("tabs-container"),Bl=ed(Jf(td,nd,!1)),ld={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function od(e,t,o){return{props:{...ld},setup(n,{emit:r,slots:a}){const i=l.inject(ea);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`},p=n.emptyIcon??o,y=l.h(p,m),v={class:`${e}__empty-text`},f=n.emptyText??"Loading",h=l.h("view",v,[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:rd,componentName:ad,scope:id}=ae("tabs-pane"),_l=rd(od(ad,id,Ml)),sd={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 ud(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Uo(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Go(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function cd(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function _n(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Xo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Zo(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function qn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class fd{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 dd(){const e=l.getCurrentInstance();return new fd(e.proxy)}function hd(e,t,o,n){return{props:{...sd},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=dd(),c=l.ref([]),d=l.computed(()=>c.value.filter(C=>cd(r,C)!==!1)),m=l.ref(-1),p=()=>{const C=r.modelValue,D=d.value.findIndex(I=>Uo(r,I)===C);m.value!==D&&(m.value=D,r.scroll&&te(D))};l.watch([()=>r.modelValue,d],()=>{p()});const y=C=>m.value===C,v=C=>{if(C<0&&C>=d.value.length)return!1;const D=d.value[C],b=(qn(r,D,C)??{}).status??_n(r,D);return y(C)||b},f=l.computed(()=>{const C={[u]:!0};return r.mode?C[`is-${r.mode}`]=!0:r.direction&&(C[`is-${r.direction}`]=!0),r.scroll&&(C["is-scroll"]=!0),C}),h=l.computed(()=>({})),R=(C,D,I,b,z)=>{const Q={[`${u}__step`]:!0};return z&&(Q[`${z}`]=!0),Q[`${T.value}`]=!0,b&&(Q["is-doit"]=!0),C===m.value?Q["is-active"]=!0:D==="done"?Q["is-done"]=!0:D==="error"?Q["is-error"]=!0:D==="half"?Q["is-half"]=!0:I?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},T=l.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),S=(C,D={})=>{const I={...D};return T.value==="start"&&C===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=(C,D)=>{let I={};if(D<d.value.length-1){const b=D+1;v(D)&&v(b)?r.direction==="vertical"?I.height="100%":I.width="100%":I.opacity="0"}return I},q=C=>d.value.length-1===C,O=(C,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&&te(D);const z=Uo(r,C);i("update:modelValue",z);const Q={fromIndex:I,currentIndex:b,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",z,Q)},N=l.ref(!0),V=async(C,D)=>{try{const I=await s.load("stesbar",C,D);Array.isArray(I)&&(c.value=I),N.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([C,D])=>{C&&V(C,D)},{immediate:!0});const w=(C,D,I,b,z)=>{let Q=null;if(a.icon)Q=a.icon({item:C,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;Q=l.h(W,Y)}else{const Y=I??`${D+1}`;Q=l.h("span",{},[Y])}const ne={class:"fox-steps-bar__icon",onClick:()=>{z||O(C,D)}};return l.h("view",ne,[Q])},j=(C,D,I)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:B(C,D)});return l.h("view",{class:"fox-steps-bar__line"},[b])},g=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const I={};r.iconSize&&(I.width=r.markIconSize,I.height=r.markIconSize);const b=r.markIcon??n;C=l.h(b,I)}return l.h("view",{class:"fox-steps-bar__mark"},[C])},L=(C,D,I,b,z)=>{const Q=[];if(!q(D)){const W=j(C,D);Q.push(W)}const ne=w(C,D,I,b,z);Q.push(ne);const Y={class:"fox-steps-bar__head"};return l.h("view",Y,Q)},Z=(C,D,I,b)=>{let z=null;a.main?z=a.main({item:C,index:D,status:I}):z=ud(r,C);const Q={class:"fox-steps-bar__main",onClick:()=>{b||O(C,D)}};return l.h("view",Q,[z])},M=(C,D,I)=>{let b=null;if(a.sub){b=a.sub({item:C,index:D,status:I});const z={class:"fox-steps-bar__sub"};return l.h("view",z,[b])}return null},E=(C,D)=>{const I=qn(r,C,D)??{},b=I.status??_n(r,C);let z=Go(r,C);I.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const Q=I.label??Zo(r,C),ne=[],Y=w(C,D,Q,b,z);Y&&ne.push(Y);const W=Z(C,D,b,z);if(W&&ne.push(W),!q(D)){const G=j(C,D);G&&ne.push(G)}const k=l.h("view",{class:"fox-steps-bar__head"},ne),K=I.class,X=I.style??{};let P=Xo(r,C);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,[k])},F=(C,D)=>{const I=qn(r,C,D)??{},b=I.status??_n(r,C);let z=Go(r,C);I.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const Q=I.label??Zo(r,C),ne=[],Y=r.layout;for(let P of Y)if(P==="head"){const H=L(C,D,Q,b,z);ne.push(H)}else if(P==="main"){const H=Z(C,D,b,z);ne.push(H)}else if(P==="sub"){const H=M(C,D,b);ne.push(H)}else if(P==="mark"){const H=g();ne.push(H)}const W=I.class,k=I.style??{};let K=Xo(r,C);I.doit===!0&&(K=!0);const X={ref:A(D),class:R(D,b,z,K,W),style:S(D,k)};return l.h("view",X,ne)},_=l.ref(),U=l.ref([]),J=(C,D)=>{U.value[D]=C},A=C=>D=>{J(D,C)},te=(C,D)=>{const I=_.value,b=U.value;if(!I||!b||!b[C])return;const z=b[C];let Q=0;r.direction==="vertical"?Q=z.offsetTop-(I.offsetHeight-z.offsetHeight)/2:Q=z.offsetLeft-(I.offsetWidth-z.offsetWidth)/2,$(I,Q,.3,r.direction)},$=(C,D,I,b)=>{let z=0;const Q=b==="horizontal"?C.scrollLeft:C.scrollTop,ne=Math.round(I*1e3/16);function Y(){b==="horizontal"?C.scrollLeft+=(D-Q)/ne:C.scrollTop+=(D-Q)/ne,++z<ne&&al(Y)}Y()};return()=>{const C=[];if(r.mode==="simple")for(let I=0;I<d.value.length;I++){const b=d.value[I],z=E(b,I);C.push(z)}else for(let I=0;I<d.value.length;I++){const b=d.value[I],z=F(b,I);C.push(z)}const D={ref:_,class:f.value,style:h.value};return l.h("view",D,C)}}}}const{componentName:md,create:gd,scope:vd}=ae("steps-bar"),ql=gd(hd(md,vd,Vf,Af)),pd=Symbol.for("InnerPageScopeKey"),yd=Symbol.for("PageWrapperKey");function bd(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(pd,!0);const r={};l.provide(yd,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{create:xd}=ae("dialog-item"),jl=xd(bd());let kt=0;const Qo="fox-overflow-hidden",Jo=()=>rt?document.body:{classList:[]},wd=e=>[()=>{if(e())try{!kt&&Jo().classList.add(Qo),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&Jo().classList.remove(Qo)}catch{}}],Sd={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:Td,create:Cd}=ae("overlay"),$d=Cd({props:{...Sd},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=wd(()=>e.lockScroll),r=l.computed(()=>({[Td]:!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 Ed(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($d,[["render",Ed]]),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:{}}},na=2e3;let er=na;const Nd=(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!==na&&(er=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++er,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)},p=f=>{n("click-overlay",f),o.closeOnClickOverlay&&n("update:visible",!1)},y=f=>{n("opend",f)},v=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:p,onOpened:y,onClosed:v}}}),{componentName:Pd,create:Id}=ae("popup"),Od=Id(Nd(Pd,{FoxOverLay:kn,Close:Nf}));function Vd(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 zl=Ue(Od,[["render",Vd]]),{create:Dd}=ae("toast"),Rd=Dd({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()}}}}),Fd={key:1,class:"fox-toast-title"},Ad=["innerHTML"];function Md(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",Fd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ad)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Hl=Ue(Rd,[["render",Md]]),Ld={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"}},Bd=(e,t,o)=>({props:{...Ld},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}=Fr(),{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)},p=l.ref({}),y=w=>{let g=w.target.value;s.active=!0,p.value=n.focusStyle,a("focus",g,w)},v=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))),p.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})),N=l.ref(null);l.onMounted(()=>{n.autofocus&&N.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:N,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:v,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,...p.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:_d,create:qd,scope:jd}=ae("searchbar"),Kl=qd(Bd(_d,jd,Ie.CircleClose)),zd=/scroll|auto|overlay/i,la=window;function Hd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Kd(e,t=la){let o=e;for(;o&&o!==t&&Hd(o);){const{overflowY:n}=window.getComputedStyle(o);if(zd.test(n))return o;o=o.parentNode}return t}function oa(e,t=la){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Kd(e.value,t))}),o}const ra=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Wd={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 Yd(e,t,o){return{props:{...Wd},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=oa(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),p=T=>T?T.offsetTop+p(T.offsetParent):0,y=()=>{let T=0,S=0,B="down";if(c.value==window){const q=ra();s.value&&(T=p(s.value)+s.value.offsetHeight-q-window.innerHeight),S=q}else{const{scrollHeight:q,clientHeight:O,scrollTop:N}=c.value;T=q-O-N,S=N}return d.beforeScrollTop>S?B="up":B="down",d.beforeScrollTop=S,r("scroll-change",S),T<=n.threshold&&B=="down"},v=()=>{fr(()=>{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",v,n.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",v,n.useCapture)};l.onMounted(()=>{f(),n.immediate&&v()}),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),N={class:m.value,ref:s};return l.h("view",N,[S,O])}}}}const{componentName:Ud,create:Gd,scope:Xd}=ae("infinite-loading"),Wl=Gd(Yd(Ud,Xd,Ml)),Zd={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:{...Zd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Lt(),c=l.ref(),d=oa(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=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""}}),v=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=l.computed(()=>{const N={};return n.headHeight!=50&&(N.height=Pe(n.headHeight)),N}),h=N=>{const V=+(n.pullDistance||n.headHeight);let w=N;return N>V&&(N<V*2?w=(N+V)/2:w=V+N/4),Math.round(w)},R=(N,V)=>{const w=+(n.pullDistance||n.headHeight);m.distance=N,V?m.status="loading":N===0?m.status="normal":N<w?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:N})},T=()=>m.status!=="loading"&&m.status!=="complete",S=()=>d.value==window?ra()==0:d.value&&d.value.scrollTop==0,B=N=>{T()&&(S()?(s.start(N),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},q=N=>{T()&&m.moving&&(s.move(N),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(N.cancelable&&N.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,N=>{N?R(+n.headHeight,!0):R(0)}),()=>{const N=[];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&&N.push(V);const w={class:["fox-pull-refresh-container-topbox-text"]},j=l.h("dive",w,[y.value]);N.push(j);const g={class:["fox-pull-refresh-container-topbox"],style:f.value},L=l.h("div",g,N),Z={class:"fox-pull-refresh-container",style:v.value},M=l.h("div",Z,[L,a?.default?.()]),E={ref:c,class:p.value};return Mt()?Object.assign(E,{onTouchstart:B,onTouchmove:q,onTouchend:O}):Object.assign(E,{onMousedown:B,onMousemove:q,onMouseup:O}),l.h("div",E,[M])}}}),{componentName:Jd,create:eh,scope:th}=ae("pull-refresh"),Yl=eh(Qd(Jd,th,Ml));function nh(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},p=n.default?n.default():[],y=l.h("div",m,p),v={class:a.value};return o.textPosition==="right"?l.h("div",v,[d,y]):l.h("div",v,[y,d])}}}}const{componentName:lh,create:oh}=ae("indicator"),Ul=oh(nh(lh));function rh(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 ah={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 ih(e,t,o,n=!1){return{props:{...ah},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 p=()=>{const S=i.value;if(!S)return;const B=S.clientWidth;rh(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 v=null;const f=S=>{v||(v=setTimeout(()=>{p(),v=null},r.showAfter??0))},h=S=>{v&&(clearTimeout(v),v=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=Ce(r.digits),g=Ce(r.decimalLength),L=ue(r.autoPadding);let Z=`${V[0].children}`,M=Z.split("").reverse().join("");M=sn(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 N={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",N,[O,B])}}}}const{componentName:sh,create:uh,scope:ch}=ae("text"),Gl=uh(ih(sh,ch,Re,!1)),fh={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 dh(e,t,o){return{props:{...fh},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 p={class:c.value},y=o(n.icon,p);return y&&m.push(y),l.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:hh,create:mh,scope:gh}=ae("more-button"),vh=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),Xl=mh(dh(hh,gh,vh));function ph(e){e.stopPropagation()}let yh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Mt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Lt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),ph(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 bh(e,t){return new yh(e,t)}const xh={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]}},wh=(e,t,o,n=!1)=>({props:{...xh},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")},p=l.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},v={x:0,y:0},R=bh(T=>{if(!p.value)return;const S=p.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,v.x=u.left,v.y=u.top},T=>{if(!p.value)return;const S=p.value;y(),u.left=v.x+T.x,u.top=v.y+T.y,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&p.value){const T=[p.value];R.open(T)}}),l.onBeforeUnmount(()=>{r.draggable&&p.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=>{p.value=q},class:s.value,style:c.value,onClick:m};return l.h("view",B,T)}}}),{componentName:Sh,create:Th,scope:Ch}=ae("floating-button"),Zl=Th(wh(Sh,Ch,pf,!1));function $h(e){return e===window}const aa=e=>{const t=l.unref(e);if($h(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:Eh,create:kh}=ae("tour"),Nh=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=Eh,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:v,maskWidth:f,maskHeight:h}=e,{width:R,height:T,left:S,top:B}=r.value,q=e.steps[n.active].offset??v,O=[S+R/2,B+T/2],N=Number(f||R),V=Number(h||T);return{width:`${N+ +q.left+q.right}px`,height:`${V+q.top+q.bottom}px`,top:`${O[1]-V/2-+q.top}px`,left:`${O[0]-N/2-+q.left}px`}}),u=v=>{v=="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=v=>v.popoverWidth??e.width,c=v=>v.location??e.location,d=()=>{const v=document.querySelector(`${e.steps[n.active].target}`),f=aa(v);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)},p=()=>{e.closeOnClickOverlay&&m()},y=(v,f=0)=>{v&&d(),e.steps,n.active=f,n.showTour=v,n.showPopup=v};return l.onMounted(()=>{y(e.modelValue,e.current)}),l.watch(()=>e.modelValue,v=>{y(v)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:p}}}),Ph={key:0,class:"fox-tour__content"},Ih={key:0,class:"fox-tour__content-top"},Oh={class:"fox-tour__content-inner"},Vh={class:"fox-tour__content-bottom"},Dh={class:"fox-tour__content-bottom-init"},Rh={class:"fox-tour__content-bottom-operate"},Fh={key:1,class:"fox-tour__content fox-tour__content-tile"},Ah={class:"fox-tour__content-inner"};function Mh(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",Ph,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Ih,[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",Oh,l.toDisplayString(c.content),1),l.createElementVNode("div",Vh,[l.createElementVNode("div",Dh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Rh,[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",Fh,[l.createElementVNode("div",Ah,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ql=Ue(Nh,[["render",Mh]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class Lh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Mt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Lt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function tr(e,t){return new Lh(e,t)}const nr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let vt=[];const lr=e=>{const t=e;t.key==="Escape"&&vt.forEach(o=>o(t))},Bh=e=>{l.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",lr),nr&&vt.push(e)}),l.onBeforeUnmount(()=>{vt=vt.filter(t=>t!==e),vt.length===0&&nr&&document.removeEventListener("keydown",lr)})},jn="fox-focus-trap.focus-after-trapped",zn="fox-focus-trap.focus-after-released",_h="fox-focus-trap.focusout-prevented",or={cancelable:!0,bubbles:!1},qh={cancelable:!0,bubbles:!1},rr="foxFocusAfterTrapped",ar="foxFocusAfterReleased",jh=Symbol("foxFocusTrap"),Jl=l.ref(),Nn=l.ref(0),eo=l.ref(0);let jt=0;const ia=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},zh=(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},ir=(e,t)=>{for(const o of e)if(!zh(o,t))return o},Hh=e=>{const t=ia(e),o=ir(t,e),n=ir(t.reverse(),e);return[o,n]},Kh=e=>e instanceof HTMLInputElement&&"select"in e,nt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),eo.value=window.performance.now(),e!==o&&Kh(e)&&t&&e.select()}};function sr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Wh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=sr(e,n),e.unshift(n)},remove:n=>{e=sr(e,n),e[0]?.resume?.()}}},Yh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(nt(n,t),document.activeElement!==o)return},ur=Wh(),Uh=()=>Nn.value>eo.value,zt=()=>{Jl.value="pointer",Nn.value=window.performance.now()},cr=()=>{Jl.value="keyboard",Nn.value=window.performance.now()},Gh=()=>(l.onMounted(()=>{jt===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",cr)),jt++}),l.onBeforeUnmount(()=>{jt--,jt<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",cr))}),{focusReason:Jl,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:eo}),Ht=e=>new CustomEvent(_h,{...qh,detail:e}),{create:Xh}=ae("focus-trap"),Zh={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=Xh({props:Zh,emits:[rr,ar,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Gh();Bh(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,N=h==="Tab"&&!R&&!T&&!S,V=document.activeElement;if(N&&V){const w=B,[j,g]=Hh(w);if(j&&g){if(!q&&V===g){const Z=Ht({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),O&&nt(j,!0))}else if(q&&[j,w].includes(V)){const Z=Ht({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),O&&nt(g,!0))}}else if(V===w){const Z=Ht({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||f.preventDefault()}}};l.provide(jh,{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",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",p))});const c=f=>{o(rr,f)},d=f=>o(ar,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))},p=f=>{const h=l.unref(n);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const R=f.relatedTarget;!il(R)&&!h.contains(R)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const T=Ht({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){ur.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const T=new Event(jn,or);f.addEventListener(jn,c),f.dispatchEvent(T),T.defaultPrevented||l.nextTick(()=>{let S=e.focusStartEl;vr(S)||(nt(S),document.activeElement!==S&&(S="first")),S==="first"&&Yh(ia(f),!0),(document.activeElement===h||S==="container")&&nt(f)})}}}function v(){const f=l.unref(n);if(f){f.removeEventListener(jn,c);const h=new CustomEvent(zn,{...or,detail:{focusReason:i.value}});f.addEventListener(zn,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Uh())&&nt(r??document.body,!0),f.removeEventListener(zn,c),ur.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&y(),l.watch(()=>e.trapped,f=>{ue(f)?y():v()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&v()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:Jh,create:em}=ae("floating-window"),tm=Symbol.for("InnerPageScopeKey"),nm=Symbol.for("PageWrapperKey"),lm={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}},om=em({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Qh},props:{...lm},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Jh,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(N.value)||(P.width=N.value),P}),p=l.computed(()=>e.closeIcon??Ie.Close),y=l.computed(()=>e.collapseIcon??Ie.ArrowUp),v=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=l.computed(()=>e.expandText??e.title??"展开"),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)||""),N=l.computed(()=>De(e.width)||""),V=l.ref(ue(e.collapse)),w=(P,H=!0)=>{V.value!==P&&(V.value=P,P?C():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(tm,!0);const L={setCollapse:w,setFixedNavVisible:P=>{A.value=P}};l.provide(nm,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}),J=l.ref(V.value),A=l.computed({set:P=>{J.value=P},get:()=>n.value===!1?!1:J.value});let te=null;const $=()=>{typeof te=="function"&&(te(),te=null)},C=()=>{M.value&&M.value.classList.add("slide-in"),A.value=!0,te=()=>{M.value&&M.value.classList.remove("slide-in")}},D=()=>{M.value&&M.value.classList.add("slide-out"),te=()=>{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=tr(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=tr(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:p,onClose:Z,dialogRef:S,headerRef:B,onClickToggle:j,collapseIcon:y,collapseText:v,collapseTextClasses:R,collapseIconClasses:T,expandIcon:f,expandText:h,isShowFixedNav:A,fixedNavRef:M,fixedNavClasses:F,fixedNavStyles:U,onAnimationEnd:$,teleportDisabled:r,fixedNavTeleportDisabled:E}}}),rm={ref:"headerRef",class:"fox-floating-window__header"},am={class:"fox-floating-window__title"},im={class:"fox-floating-window__tools"},sm={class:"fox-floating-window__body"},um={class:"fox-floating-window__fixednav__text"};function cm(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",rm,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",am,l.toDisplayString(e.title),1),l.createElementVNode("div",im,[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",sm,[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",um,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const to=Ue(om,[["render",cm]]),fm={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 dm(e,t,o=!1){return{props:{...fm},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),p=l.ref(n.placement),y=l.ref(!1),v=l.ref(!1),f=l.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,R=(A,te,$,C,D,I,b,z=!0)=>{const Q=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 k={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=$-b-n.arrowSize/2-n.offset;if(H>=0){k.top=H;let G=0;Y[1]==="start"?G=te:Y[1]==="end"?G=te+C-I:G=te+C/2-I/2;const le=Q-G-I;le<0?(G+=le,S.value=-le):S.value=0,k.left=G<0?0:G;break}}else if(P==="bottom"){const H=$+D+n.arrowSize/2+n.offset;if(H+b<=ne){k.top=H;let G=0;Y[1]==="start"?G=te:Y[1]==="end"?G=te+C-I:G=te+C/2-I/2;const le=Q-G-I;le<0?(G+=le,S.value=-le):S.value=0,k.left=G<0?0:G;break}}else if(P==="left"){const H=te-I-n.arrowSize/2-n.offset;if(H>=0){k.left=H;let G=0;Y[1]==="start"?G=$:Y[1]==="end"?G=$+D-b:G=$+D/2-b/2,k.top=G<0?0:G;break}}else if(P==="right"){const H=te+C+n.arrowSize/2+n.offset;if(H+I<=Q){k.left=H;let G=0;Y[1]==="start"?G=$:Y[1]==="end"?G=$+D-b:G=$+D/2-b/2,k.top=G<0?0:G;break}}}return{bestPlacement:K.join("-"),bestInsetRect:k}},T=()=>{const A=n.visible,te=n.autoFit;if(!rt||A===!1)return;if(n.reference){const b=h(),z=vl(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 $=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:D,bestInsetRect:I}=R(n.placement,s.value,c.value,d.value,m.value,$,C,te);p.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(),v.value=!0},0)):v.value=!1});const O=l.computed(()=>q.value&&N.value),N=l.ref(!0),V=qe(A=>{const te=A[0];te&&(N.value=te.isIntersecting)},10),w=new IntersectionObserver(V);l.watch([()=>n.reference,()=>n.referenceInset],([A,te],[$,C])=>{!A&&!te||(setTimeout(()=>{T()},0),n.autoFit&&($&&(It.unwatch($,B),w.unobserve($)),A&&(It.watch(A,B),w.observe(A))))},{immediate:!0}),l.onBeforeUnmount(()=>{n.reference&&(It.unwatch(n.reference,B),w.unobserve(n.reference),w.disconnect())});const j=l.computed(()=>{const A={[e]:!0};return p.value.startsWith("top")?A["is-top"]=!0:p.value.startsWith("right")?A["is-right"]=!0:p.value.startsWith("bottom")?A["is-bottom"]=!0:p.value.startsWith("left")&&(A["is-left"]=!0),A[`is-${n.effect}`]=!0,!v.value&&O.value&&(A["is-opacity"]=!0),v.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`,p.value==="top"?(A.left="50%",A.bottom="0",A.transform="translate(-50%, 50%)"):p.value==="top-start"?(A.left=`${n.arrowOffset+S.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):p.value==="top-end"?(A.right=`${n.arrowOffset-S.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):p.value==="right"?(A.left="0",A.top="50%",A.transform="translate(-50%, -50%)"):p.value==="right-start"?(A.left="0",A.top=`${n.arrowOffset}px`,A.transform="translate(-50%, 50%)"):p.value==="right-end"?(A.left="0",A.bottom=`-${n.arrowOffset}px`,A.transform="translate(-50%, 50%)"):p.value==="bottom"?(A.left="50%",A.top="0",A.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(A.left=`${n.arrowOffset+S.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(A.right=`${n.arrowOffset-S.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):p.value==="left"?(A.right="0",A.top="50%",A.transform="translate(50%, -50%)"):p.value==="left-start"?(A.right="0",A.top=`${n.arrowOffset}px`,A.transform="translate(50%, -50%)"):p.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)},J=A=>{if(!f.value||q.value===!1)return;const{relatedTarget:te}=A;f.value.contains(te)||(q.value=!1,r("update:visible",!1))};return i({doLayout:T}),()=>{if(!y.value)return null;const A=[],te=Z();te&&A.push(te);const $=[],C=M();if(C&&$.push(C),a.default){const z=a.default();$.push(z)}const D=_();D&&$.push(D);const I={ref:f,class:j.value,style:g.value,onAnimationend:U};n.leaveHide&&(I.onMouseleave=J);const b=l.h("div",I,{default:()=>$});return A.push(b),A}}}}const{componentName:hm,create:mm,scope:gm}=ae("popover-dialog"),no=mm(dm(hm,gm,!1));function vm(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Dr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{create:pm}=ae("domain-provider"),lo=pm(vm()),ym={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 bm(e,t){return{inheritAttrs:!1,props:ym,setup(o,{slots:n}){if(rt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,y)=>{if(d===null){a.set(p,{visible:null,callback:y});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:y}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let s=o.initialVisibleObserverSize;pi({acquire:()=>{const p=s>0;return s--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(p,y,v)=>{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:p,rootMargin:y,threshold:v}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([p,y])=>{if(y||!p||d)return;let v=null;typeof p=="string"?v=document.querySelector(p):v=p,v&&m(v,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:xm}=ae("rolling-provider"),oo=xm(bm()),wm=[cl,dl,hl,ml,gl,Ee,pl,yl,At,bl,xl,wl,Sl,Tl,Cl,$l,El,kl,Nl,Pl,En,Il,Ol,Vl,Dl,Rl,Fl,Al,Ll,Bl,_l,ql,jl,kn,zl,Hl,Kl,Wl,Yl,Dt,$n,Ul,Gl,Xl,Zl,Ql,to,no,lo,oo],Sm=new Xa(wm,[Ja],"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=sl;exports.BroadcastKey=be;exports.CascaderItem=El;exports.CheckboxItem=Vl;exports.Content=ml;exports.DataItemsKey=gt;exports.DateItem=wl;exports.DateUtils=Be;exports.DialogItem=jl;exports.Domain=mn;exports.DomainKey=Le;exports.DomainProvider=lo;exports.FloatingButton=Zl;exports.FloatingWindow=to;exports.FooterBar=hl;exports.FoxAutocompleteItem=kl;exports.FoxCascaderItem=El;exports.FoxCheckboxItem=Vl;exports.FoxContent=ml;exports.FoxDateItem=wl;exports.FoxDialogItem=jl;exports.FoxDomainProvider=lo;exports.FoxFloatingButton=Zl;exports.FoxFloatingWindow=to;exports.FoxFooterBar=hl;exports.FoxGroup=gl;exports.FoxGroupSetting=Al;exports.FoxHeaderBar=dl;exports.FoxHintText=At;exports.FoxIndicator=Ul;exports.FoxInfiniteLoading=Wl;exports.FoxInputItem=bl;exports.FoxInputNumberItem=$l;exports.FoxItem=Ee;exports.FoxMapping=Dt;exports.FoxMoneyItem=Cl;exports.FoxMoreButton=Xl;exports.FoxOverLay=kn;exports.FoxPage=cl;exports.FoxPopoverDialog=no;exports.FoxPopup=zl;exports.FoxPrice=$n;exports.FoxPullRefresh=Yl;exports.FoxRadioItem=Ol;exports.FoxRateItem=Dl;exports.FoxRollingProvider=oo;exports.FoxRowItem=yl;exports.FoxSearchBar=Kl;exports.FoxSelectItem=xl;exports.FoxSlotItem=pl;exports.FoxStepsBar=ql;exports.FoxSwitchItem=Rl;exports.FoxTableItem=Il;exports.FoxTableMappingColumn=Nl;exports.FoxTableRadioColumn=Pl;exports.FoxTableSetting=En;exports.FoxTabsBar=Ll;exports.FoxTabsContainer=Bl;exports.FoxTabsPane=_l;exports.FoxText=Gl;exports.FoxTimeItem=Sl;exports.FoxTimeSelectItem=Tl;exports.FoxToast=Hl;exports.FoxTour=Ql;exports.FoxTreeSelectItem=Fl;exports.Group=gl;exports.GroupSetting=Al;exports.HeaderBar=dl;exports.HintText=At;exports.Indicator=Ul;exports.InfiniteLoading=Wl;exports.InputItem=bl;exports.InputNumberItem=$l;exports.Item=Ee;exports.Mapping=Dt;exports.MoneyItem=Cl;exports.MoreButton=Xl;exports.OverLay=kn;exports.Page=cl;exports.PopoverDialog=no;exports.Popup=zl;exports.Price=$n;exports.PriorityPolicy=_e;exports.PullRefresh=Yl;exports.RadioItem=Ol;exports.RateItem=Dl;exports.RollingProvider=oo;exports.RowItem=yl;exports.SearchBar=Kl;exports.SelectItem=xl;exports.SlotItem=pl;exports.StepsBar=ql;exports.SwitchItem=Rl;exports.TableItem=Il;exports.TableMappingColumn=Nl;exports.TableRadioColumn=Pl;exports.TableSetting=En;exports.TabsBar=Ll;exports.TabsContainer=Bl;exports.TabsPane=_l;exports.Text=Gl;exports.TimeItem=Sl;exports.TimeSelectItem=Tl;exports.Toast=Hl;exports.Tour=Ql;exports.TreeSelectItem=Fl;exports.UniqueID=Kr;exports.ValidateSchema=Or;exports.ValidateSchemaKey=We;exports.cancelRaf=ha;exports.clearNonNumber=$a;exports.clone=Zn;exports.compareTo=Un;exports.createBroadcast=fn;exports.createValidateSchema=dn;exports.debounce=qe;exports.debounceRef=Ba;exports.decimalLength=$r;exports.default=Sm;exports.defineBroadcast=Pa;exports.defineConfigDomain=Dr;exports.defineDataItem=Rr;exports.defineDomain=ul;exports.defineItem=ke;exports.definePageState=Ar;exports.defineSimpleItem=Fr;exports.deleteGlobalValidator=Ra;exports.disabledProperty=Me;exports.divide=rl;exports.excludeProps=Oe;exports.extend=ht;exports.floatData=Na;exports.getGlobalValidateCheckEvents=Nr;exports.getGlobalValidateResetEvents=Ir;exports.getPageContentAreaHeight=ln;exports.getPageContentAreaWidth=on;exports.getPageFooterAreaHeight=pn;exports.getPageHeaderAreaHeight=vn;exports.getRootDomain=pt;exports.hasSymbol=br;exports.includeProps=Er;exports.indexOf=Ea;exports.integerLength=Cr;exports.isArray=ga;exports.isArrayLike=wr;exports.isBrowser=rt;exports.isDate=ya;exports.isESModule=xa;exports.isEmptyString=de;exports.isEqual=Je;exports.isFunction=Gn;exports.isHidden=cn;exports.isInnerPage=ja;exports.isMap=va;exports.isNil=il;exports.isNumberString=Tr;exports.isObject=et;exports.isPlainObject=Xn;exports.isPromise=pr;exports.isRegExp=Qn;exports.isSet=pa;exports.isString=vr;exports.isSubPage=za;exports.isSymbol=ba;exports.isTouch=Mt;exports.isWindow=xr;exports.lastIndexOf=ka;exports.makeArray=Ca;exports.merge=Sr;exports.multiply=hr;exports.negate=mr;exports.nextTick=Sa;exports.numberFormat=sn;exports.objectToString=yr;exports.once=_a;exports.overrideGlobalValidateHandler=Va;exports.property=Fe;exports.raf=al;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Fa;exports.setGlobalValidateHandler=Oa;exports.setGlobalValidateMessages=Ma;exports.setGlobalValidateResetEvents=Aa;exports.setGlobalValidator=Da;exports.throttle=La;exports.toBoolean=ue;exports.toNumber=Ce;exports.toPadding=Ge;exports.toPx=me;exports.toPxDesc=Pe;exports.toTypeString=un;exports.toValue=he;exports.tryTimes=hn;exports.typeOf=tn;exports.unNumberFormat=gr;exports.updatePageState=Jn;exports.useBroadcast=Nt;exports.useDomain=at;exports.useExpose=we;exports.useInnerSize=yn;exports.usePageState=gn;exports.usePosition=vl;exports.useRawTouch=Lt;exports.useRect=aa;exports.useSize=fl;exports.useTouch=Wf;exports.valueLength=Ft;
5
+ */function en(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ne(e),t=Ne(t),[e,t]=ol(Ne(e),Ne(t)),o==1&&(n==1?e=Vn(e):t=Vn(t));let r=dr(e,t);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(Vn(r)):Ne(r)}function Vn(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 dr(t,a)}function Ne(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function ol(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 dr(e,t){[e,t]=ol(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 Ot(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=Ot(e,0,o),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,ro(r[1],a,n,o)?(n?"-":"")+Dn(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&&ro(u,i,n,o)&&(i=Dn(i),i.length>t)?(n?"-":"")+Dn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function ro(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 Dn(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 Hn(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 p=0;for(let y=t.length-1;y>=c&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(p+=parseInt(e[s[y]--])*parseInt(t[y]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=Ct(ha(d,a)),o==1&&(d="-"+d),d}function ha(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 Kn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ne(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ne(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ne(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ne(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=en(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?"-":"")+Ne(Ot(u,o-2))}function Wn(e,t){return e=e.toString(),t=t.toString(),t=Yn(t),en(e,t)}function Yn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ao(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),io(e),io(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Wn(e,Hn(t,Ot(Kn(e,t),0,ye.FLOOR)));return o+n}function io(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function so(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]=ol(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=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ne(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=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 Ot(t,o,n)}round(t=0,o=ye.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(Ot(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),en(t,o)}add(t){return new fe(en(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),Wn(t,o)}subtract(t){return new fe(Wn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),Hn(t,o)}multiply(t){return new fe(Hn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),Kn(t,o,n)}divide(t,o){return new fe(Kn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),ao(t,o)}modulus(t){return new fe(ao(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),so(t,o)}compareTo(t){return so(this.value,t.getValue())}static negate(t){return t=fe.validate(t),Yn(t)}negate(){return new fe(Yn(this.value))}}function hr(e,t){return fe.multiply(`${e}`,`${t}`)}function rl(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function Un(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function mr(e){return fe.negate(e)}function sn(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="",p=u.split("").reverse();for(let y=0;y<p.length;y++)m+=p[y]+((y+1)%n==0&&y+1!=p.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 gr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const al=fr,ma=Array.isArray,ga=e=>un(e)==="[object Map]",va=e=>un(e)==="[object Set]",pa=e=>e instanceof Date,Gn=e=>typeof e=="function",vr=e=>typeof e=="string",ya=e=>typeof e=="symbol",tt=e=>e!==null&&typeof e=="object",pr=e=>tt(e)&&Gn(e.then)&&Gn(e.catch),yr=Object.prototype.toString,un=e=>yr.call(e),Xn=e=>un(e)==="[object Object]",br=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ba(e){return e.__esModule||br&&e[Symbol.toStringTag]==="Module"}const xa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ht(...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]=ht(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function Zn(e,t,o=!1){if(!o)ht(!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)&&!Xn(i))continue;a=Zn(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)&&!Xn(i))continue;a=Zn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Rn=xa?Promise.resolve():null;function wa(e,...t){Rn!==null?t&&t.length>0?Rn.then(()=>{e(t)}):Rn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Te(e){return typeof e=="number"?e:Number(e)}const Sa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function tn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Sa[o]||"object"}function xr(e){return e&&typeof e=="object"&&"setInterval"in e}function cn(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function wr(e){let t=!!e&&"length"in e&&e.length,o=tn(e);return o==="function"||xr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Sr(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 Ta(e,t=[]){let o=t;return e!=null&&(wr(Object(e))?Sr(o,typeof e=="string"?[e]:e):o.push(e)),o}function et(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=tn(e),n=tn(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=t[u];if(!et(s,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!et(a,i))return!1}return!0}return!1}const at=typeof window<"u";function il(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 Tr(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 $r(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 uo(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 Ca(e,t=!0,o=!0){t?e=uo(e,".",/\./g):e=e.replace(/\./g,""),o?e=uo(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function $a(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(et(e,o))return!0}):t.indexOf(e)}function Ea(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(et(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Ft(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Er(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 ka=(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 sl{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 fn(e,t,o,n){const r=new sl(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Na(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new sl(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 Nt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}class Pa{error(t,o){const n=o,r=o||l.hasInjectionContext()?Nt(o):null;r?r.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Nt(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 Pt=new Pa;function Ia(e){Pt=e}function Oa(e){Pt?Object.assign(Pt,e):Pt=e}function Va(e,t){ft.Schema.setValidator(e,t)}function Da(e){ft.Schema.deleteValidator(e)}let kr=["blur","clear"];function Ra(e){kr=e}function Nr(){return kr}let Pr=["focus","change","setValue"];function Fa(e){Pr=e}function Ir(){return Pr}function Aa(e){ft.Schema.messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ye=Symbol("ValidateSchemaKey");class Or{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let 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=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Pt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ft.Schema.setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ft.Schema.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ft.Schema.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},u=new ft.Schema(r),s=this.proxy??i;return u.validate(i,{context:s}).then(d=>{if(d.pass)this.success();else{let m="error";Array.isArray(d.errors)&&d.errors.length>0&&(m=d.errors[0].message??m,d.errors=[d.errors[0]],d.errors[0].ref=s),this.error(m)}return d}).catch(d=>{const m=d.message??`${d}`;return this.error(m),d})}}return Promise.resolve({pass:!0})}}function dn(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 Or(t,o,e)}const nn=Symbol.for("EventEmitterKey");class Vr{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 Ma(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function La(e,t){const o=qe((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Ba(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function hn(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"),gt=Symbol("DataItemsKey");class mn{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const _a=new mn;function pt(){return _a}function it(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Fn=Symbol("OriginalDateKey");function ul(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=pt());const u=e||t.prop||t.name;let s=new mn(u);s.parent=i;const c=f=>{a[Fn]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[Fn]??null,p=f=>{const h={};ht(!0,h,l.toRaw(f)),a[Fn]=h};l.isReactive(t)||typeof t=="function"?l.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&p(t.modelValue);const y=(f,h)=>{s?.set(f,h)},v=f=>s?.getForSelf(f)??null;if(a[Le]=s,l.provide(Le,s),r!==null){const f=l.inject(be,null),h=fn(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(Ye,null),T=dn(a,R,{componentName:""});s.validateSchema=T,a[Ye]=T,l.provide(Ye,T),a[gt]=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 N=S;q={name:V=>V?N.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const N=S;if(Object.assign(O,N),Array.isArray(N.include)&&N.include.length>0){const V=N.include;q={name:w=>w?V.indexOf(w)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const V=N.exclude;q={name:w=>w?V.indexOf(w)===-1:!1}}else q={name:"*"}}if(q){const N=h?.emitToChildren(q,"validate",O);N&&Reflect.apply([].push,B,N)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(N=>{let V=[];return N.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(N=>{let V=String(N);const w={componentName:"",fieldName:V,pureDataValidate:!0};if(s){const j=Rr(s,V,w,h,T);a[gt].set(V,j);const g=S[V];g&&j.validateSchema.setRule(g)}});return}if(B){const O=Reflect.ownKeys(S),N={name:V=>O.includes(V),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(N,"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:N=>N?O.indexOf(N)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const O=q.exclude;B={name:N=>N?O.indexOf(N)===-1:!1}}else B={name:"*"}}B&&h?.emitToChildren(B,"clearValidate",!1)},a.resetFields=S=>{const B=d();if(!B)return;const q={};if(ht(!0,q,m()??{}),Array.isArray(S))S.forEach(O=>{B[O]=q[O]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(N=>{B[N]=q[N]});else if(S&&Array.isArray(S.exclude)){let O=S.exclude??[];Reflect.ownKeys(q).forEach(N=>{O.includes(N)||(B[N]=q[N])})}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=>v(S),setTimeout(function(){h?.pull()},0)}return l.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ye]=void 0,l.provide(Ye,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[gt]&&(a[gt].clear(),a[gt]=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 Dr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=pt());const i=e||t.prop||t.name;let u=new mn(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 Ee(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let u=fn(r,i,a,o);r[be]=u,l.provide(be,u),r.broadcast=(v,f,...h)=>u?Reflect.apply(u.emit,u,[v,f,...h]):null;const s=l.inject(Ye,null);e.fieldName=e.fieldName??a;let c=dn(r,s,e);r[Ye]=c,l.provide(Ye,c),r.validate=(v=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,R=!1;if(Array.isArray(v)&&v.indexOf(a)!==-1)R=!0,h=!0;else if(v&&typeof v=="object"){const T=v,S=T.ignoreDisabled??!0,B=T.ignoreReadonly??!0,q=T.ignoreHidden??!0;S===!0&&e.disabled===!0||B===!0&&e.readonly===!0||q===!0&&cn(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 v=="boolean"&&(h=v),R=!0;if(R){const T=c?.validate();f.push(T)}if(h){let T=null;const S={deep:!1};if(v===!0)T={name:"*"};else if(Array.isArray(v)&&v.length>0){const B=v;T={name:q=>q?B.indexOf(q)!==-1:!1}}else if(v!=null&&typeof v=="object"){const B=v;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=v=>c?.setRule(v),r.setNameValidateRules=(v,f=!1)=>{const h=v[a];if(h&&c?.setRule(h),f&&u){const R={name:T=>Reflect.ownKeys(v).includes(T)};u.emitToChildren(R,"setNameValidateRules",v,!1)}},r.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(v===!0)f={name:"*"};else if(Array.isArray(v)&&v.length>0){const h=v;f={name:R=>R?h.indexOf(R)!==-1:!1}}else if(v!=null&&typeof v=="object"){const h=v;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 Vr(r);r[nn]=d;const m=qe((v="validate")=>{c&&(v==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Nr()).forEach(v=>{d&&d.on(v,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ir()).forEach(v=>{d&&d.on(v,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[Ye]=void 0,l.provide(Ye,null),c=null,d?.destroy(),r[nn]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(v,...f)=>{d&&Reflect.apply(d.emit,d,[v,...f])},onEvent:(v,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(v,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Rr(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=dn({},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 p=!1,y=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)y=!0,p=!0;else if(d&&typeof d=="object"){const v=d;Array.isArray(v.include)&&v.include.indexOf(i)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(i),y=!0,p=v.deep??!1}else typeof d=="boolean"&&(p=d),y=!0;if(y&&s){const v=s.validate();m.push(v)}if(p){let v=null;const f={deep:!1};if(d===!0)v={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;v={name: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;v={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const R=h.exclude;v={name:T=>T?R.indexOf(T)===-1:!1}}else v={name:"*"}}if(v&&c){const h=c.emitToChildren(v,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(v=>{let f=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=fn(null,n,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Fr(){let t=l.getCurrentInstance()?.proxy,o=new Vr(t);return t[nn]=o,l.onUnmounted(()=>{o?.destroy(),t[nn]=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(at){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=me(e.top)),e.left!==null&&e.left!==void 0&&(t.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=me(e.right))),t}function Jn(e,t,o={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??t.headerHeight??-1),e.headerPadding=Xe(o.headerPadding??t.headerPadding),e.footerHeight=me(o.footerHeight??t.footerHeight??-1),e.footerPadding=Xe(o.footerPadding??t.footerPadding),e.contentPadding=Xe(o.contentPadding??t.contentPadding),n){const s=o.height??t.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(o.width??t.width??0,r)}}function Ar(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;Jn(n,a,t,!0,i,u,s,c);const d=l.reactive(n),m=e.getForParent(rt);m&&(n.height=ln(e,m),n.width=on(e,m),l.watch([()=>ln(e,m),()=>on(e,m)],([y,v])=>{d.height=y,d.width=v}));const p=!m;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,v,f=-1,h=-1,R=0,T=0])=>{Jn(d,v,t,p,f,h,R,T)}),e.set(rt,d),d}function gn(e){return e.get(rt)}function vn(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function pn(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function ln(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=vn(e,t),n=pn(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function on(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function qa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function ja(e){return!!e.getForParent(rt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function qt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,o=1,n){const r=it();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(qt(s,n))return s}const i=e.value;return qt(i,n)?i:null}):l.computed(()=>{const a=e.value;if(qt(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(qt(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 Mr=new Map,rn=new Map;let el=null;function za(e){el=e}function Lr(e,t,o){if(o){let n=rn.get(o);n||(n=new Map,rn.set(o,n)),n.set(e,t)}else Mr.set(e,t)}function Ue(e,t,o){!o&&el&&(o=el(e)??void 0);let n=null;if(o){let r=rn.get(o);r&&(n=r.get(t))}return n||(n=Mr.get(t)),n}function Ha(e,t){for(let o in e){const n=e[o];Lr(o,n,t)}}function Ka(e){rn.delete(e)}function Wa(){return{top:0,left:0,bottom:0,right:0}}function Ya(){if(at){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 Ua(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ga{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=Ua(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=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=ht({},Wa(),t.safeAreaInset),i=Ya(),u=ht({},i.pageLayout,t.pageLayout);o=o??pt(),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){za(t)}setAPI(t,o,n){Lr(t,o,n)}getAPI(t,o,n){return Ue(t,o,n)}batchSetAPI(t,o){Ha(t,o)}clearScopeAPI(t){Ka(t)}getRootDomain(){return pt()}}const Xa=[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],Za=[x.ElInfiniteScroll,x.ElLoading,x.ElMessage,x.ElMessageBox,x.ElNotification,x.ElPopoverDirective],Qa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Xa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Za.forEach(r=>{e.use(r)})};function 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}},Br={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}},_r={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}},qr=[];for(const e in _r)qr.push(e);const Ja=Symbol.for("InnerPageScopeKey"),ei={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}},ti=(e,t)=>({inheritAttrs:!0,props:{...Ce,...Br,...ei},setup(o,{slots:n}){const r=ul(o.name,o),a=l.inject(Ja,!1);if(r){const d=Ar(r,o);we({getPageContentHeight:()=>ln(r,d),getPageContentWidth:()=>on(r,d),getPageHeaderHeight:()=>vn(r,d),getPageFooterHeight:()=>pn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,m=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[p,y])=>{if(d&&p){const v=l.toRaw(p),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(v?Reflect.ownKeys(v):[]).forEach(T=>{h.includes(T)||(f[T]=[])}),c(f)}if(m&&y){const v=l.toRaw(y),f=l.toRaw(m),h=f?Reflect.ownKeys(f):[];(v?Reflect.ownKeys(v):[]).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:ni,create:li}=ae("page"),cl=li(ti(ni));function fl(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function yn(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 oi=(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=it(),u=i?gn(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,p=l.computed(()=>{const g={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const L=Xe(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=Xe(r.padding);Object.assign(g,L)}return g}),y=l.ref(null),v=()=>{if(u&&y.value&&!cn(y.value)){if(!n){const g=fl(y.value);u.headerAllHeight=g.height}return u.headerMounted=!0,!0}return!1},f=qe(v,120);let h=null;l.onMounted(()=>{u&&(hn(v,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 p.value.height!==null&&p.value.height!==void 0&&(g.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(g.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(g.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(g.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(g.paddingBottom=`${p.value.bottom}px`),g}),T=l.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.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 N=()=>{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 X=l.h("view",{class:"title-text"},[r.title]);g.push(X)}if(a.slots.titleIcon){const X=l.h("view",{class:"title-icon",onClick:B},[a.slots.titleIcon()]);g.push(X)}else if(r.titleIcon){const X=l.h("view",{class:"title-icon",onClick:B},[l.h(r.titleIcon)]);g.push(X)}}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 X=[],M=N();M&&X.push(M);const E=w();E&&X.push(E);const F=V();if(F&&X.push(F),X.length>0){const U=l.h("view",{class:d.value},X);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:ri,create:ai,scope:ii}=ae("header-bar"),dl=ai(oi(ri,ii,Ie.ArrowLeft));function si(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=it(),i=a?gn(a):null,u=l.computed(()=>{const f=e;return{[f]:!0,[`${f}--${n.align}`]:!0,[`${f}--border`]:n.border,[`${f}--fixed`]:n.fixed,[`${f}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),s=n.height!==null&&n.height!==void 0?me(n.height):null,c=l.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Xe(n.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),n.padding){const h=Xe(n.padding);Object.assign(f,h)}return f}),d=l.ref(null),m=()=>{if(i&&d.value&&!cn(d.value)){if(!o){const f=fl(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},p=qe(m,120);let y=null;l.onMounted(()=>{i&&(hn(m,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(p),y.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const v=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:v.value};return l.h("view",h,f)}}}}const{componentName:ui,create:ci}=ae("footer-bar"),hl=ci(si(ui));function fi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:n,attrs:r}){const a=it(),i=l.computed(()=>({[e]:!0})),u=a?gn(a):null,s=l.computed(()=>{const y={};if(a&&u){if(o.padding){const q=Xe(o.padding);Object.assign(u.contentPadding,q)}const v=vn(a,u),f=pn(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||v>0)&&(R=R<0?0:R,y.paddingTop=`${v+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 v=Xe(o.padding);v.left&&(y.paddingLeft=`${v.left}px`),v.top&&(y.paddingTop=`${v.top}px`),v.right&&(y.paddingRight=`${v.right}px`),v.bottom&&(y.paddingBottom=`${v.bottom}px`)}return y}),c=l.ref(null),d=()=>{if(u&&c.value){const y=yn(c.value);u.contentInnerHeight=y.height,u.contentInnerWidth=y.width}},m=qe(d,120);let p=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(p=new window.ResizeObserver(m),p.observe(c.value))}),l.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const y=o.tag??"view",v={...r,ref:c,class:i.value,style:s.value};return l.h(y,v,n)}}}}const{componentName:di,create:hi}=ae("content"),ml=hi(fi(di)),xt="GroupStateKey",jr=Symbol.for("GroupScopeKey");function bn(){return l.inject(jr,!1)}function xn(e=!0){l.provide(jr,e)}function mi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];il(r)||(e[n]=r)})}function gi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};mi(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(xt,a),a}function An(e,t,o=-1,n=-1,r=!1,a,i,u){const s=e.get(xt);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 p=()=>{const y=t===""||t===-1,v=me(t);let f=Te(o);const h=me(n);if(!y){let S=(v-(f-1)*h)/f;for(;m!==-1&&S>m;)f++,S=(v-(f-1)*h)/f;for(;d!==-1&&f>1&&S<d;)f--,S=(v-(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)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function wn(e,t=!1){let o;return t?o=e.getForParent(xt):o=e.get(xt),o.layout}function Sn(e,t=!1){let o;return t?o=e.getForParent(xt):o=e.get(xt),o.order}function co(e,t=1){if(t==="stretch")return-1;const o=Te(t);return o===-1?100:100*o/e}function Tn(e,t,o=1,n=0,r){const a={};let i=0;r?i=me(r):i=co(t.column,o),i>0&&(a.width=`${i}%`);const u=co(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=Te(o);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=Te(n)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const zr=Symbol("RollingStateKey");function vi(e){l.provide(zr,e)}function pi(){return l.inject(zr,null)}function tl(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 yi(e){let t=tl(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=tl(o),document.body.removeChild(o)}return t}function bi(e,t,o){const n=typeof e=="number"?e:parseInt(e),r=typeof t=="number"?t:parseInt(t),a=typeof o=="number"?o:parseInt(o);if(n<=0)return"1fr";const i=(n-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const xi={...Ce,...Br,..._r};function wi(e,t,o){return{props:xi,emits:["update:collapse","header-click"],setup(n,r){const a=ul(n.prop??n.name,n,qr),i=gi(a,{type:n.type}),u=bn();xn(!0);const s=n.rollingDisplay?pi():null,c=l.ref(null),d=l.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?wn(a,!0).value:null),p=l.getCurrentInstance(),y=(k,K=!1)=>{const G=p?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(k,!0,K)};l.watch([()=>n.rules,()=>n.pureDataRules],([k,K],[G,P])=>{if(k&&G){const z=l.toRaw(G),J=l.toRaw(k),le=J?Reflect.ownKeys(J):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{le.includes(ce)||(J[ce]=[])}),y(J)}if(K&&P){const z=l.toRaw(P),J=l.toRaw(K),le=J?Reflect.ownKeys(J):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{le.includes(ce)||(J[ce]=[])}),y(J,!0)}},{deep:!0});const v=e,f=l.computed(()=>{const k={};k.height=E.value;const K=u?Sn(a,!0):null;if(m.value&&K){if(m.value.type==="grid"){const G=Cn(K,m.value,n.span,n.offset);Object.assign(k,G)}else if(m.value.type==="flow"){const G=Tn(K,m.value,n.span,n.offset,n.width);Object.assign(k,G)}}else if(n.width){const G=Pe(n.width);k.width=G}return k}),h=l.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${v}--${k}`]:!0,[`${v}--${k}-justify-${n.justify}`]:!0,[`${v}--${k}-align-${n.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${k}`]:!0,[`${v}--gutter`]:!0}}),R=l.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(n.columnWidth)K=`repeat(auto-fill, ${n.columnWidth})`;else{const G=bi(V.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${G})`}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=k=>{q.push(k)},N=()=>{let k=q.length;q.splice(0,k)},V=l.ref(-1),w=k=>{const K=yn(k).width;K>0&&K!==V.value&&(V.value=K)};An(a,V.value,S.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([V,S,T],([k,K,G])=>{i.order.index=0,An(a,k,K,G,!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})),X=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=(k,K=!0)=>{const G=X.value;if(G&&F.value!==k){if(Q=Q===-1?yi(G):Q,U.value=!0,K)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",k||(_.value="",U.value=!1)},k){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(k){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=k,r.emit("update:collapse",k)}};l.watch(()=>n.collapse,k=>{A(k)});const te=k=>{r.emit("header-click",k)},$=()=>{C()},C=k=>{k=k??!F.value,A(k)};we({toggleCollapse:C,doLayout:()=>{q[0]&&(w(q[0]),An(a,V.value,S.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let I=null,b=!0;const H=k=>{if(n.rules){const K=l.toRaw(n.rules);y(K)}if(n.pureDataRules){const K=l.toRaw(n.pureDataRules);y(K,!0)}if(at&&(k&&A(ue(n.collapse),!1),n.autoLayout&&Array.isArray(q)&&q.length>0)){const K=q[0];if(w(K),window.ResizeObserver){const G=qe(()=>w(K),120);I=new window.ResizeObserver(G),I.observe(K)}}},Z=()=>{I?.disconnect(),I=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),l.onMounted(()=>{if(ne&&(H(b),b=!1),d.value&&s){let k=null,K=s.initialHeight;s.observe(X.value,G=>{if(G!==c.value)if(G)c.value=!0,F.value||(_.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(H(b),b=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!F.value)if(b)_.value=s.initialHeight;else{let P=tl(X.value);P<=0?_.value=K:(_.value=`${P}px`,K=_.value)}b||Z()}})}}),l.onUnmounted(()=>{I?.disconnect(),s&&s.unobserve(X.value)});const Y=(k="right")=>{const K=[];if(j.value){const z={class:g.value},J=l.h("span",z,[j.value]);K.push(J)}const G={class:L.value},P=o(n.collapseIcon,G);return P&&K.push(P),K.length>0?l.h("div",{class:{[`${v}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:$},K):null},W=(k,K,G,P)=>{const z={...h.value};return K===0&&(z[`${v}__first`]=!0),G>=P-1&&(z[`${v}__last`]=!0),l.h("div",{ref:O,key:`${K}`,class:z,style:R.value},k)};return()=>{if(d.value&&c.value!==!0){const z=n.tag||"div";return l.h(z,{ref:X,prop:n.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:f.value},[])}i.order.index=0;const k=[];let K=0;if(r.slots.header){const z={key:`${K++}`,ref:M,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:te},J=l.h("div",z,[r.slots.header()]);k.push(J)}else{const z=[],J=n.collapsePosition==="left";if(J&&n.showCollapse){const le=Y("left");le&&z.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${v}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=l.h("div",le);z.push(se)}if(r.slots.title){const le=l.h("div",{class:{[`${v}__header-title`]:!0}},[r.slots.title()]);z.push(le)}else if(n.title){const le=l.h("div",{class:{[`${v}__header-title`]:!0}},[n.title]);z.push(le)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!J&&n.showCollapse){const le=Y("right");le&&z.push(le)}if(z.length>0){const le={key:`${K++}`,ref:M,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:te},se=l.h("div",le,z);k.push(se)}}N();const G=r.slots.default?r.slots.default():[],P=i.layout.value.type;if(P==="grid"){const z=W(G,K++,0,G.length);k.push(z)}else if(P==="flow"){const z=W(G,K++,0,G.length);k.push(z)}else for(let z=0;z<G.length;z++){const J=G[z],le=W([J],K++,z,G.length);k.push(le)}if(B.value){const z=n.tag||"div";return l.h(z,{ref:X,prop:n.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:f.value},[k])}else return k}}}}const{componentName:Si,create:Ti,scope:Ci}=ae("group"),$i=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),gl=Ti(wi(Si,Ci,$i));function Ei(e){return e===window}const ki=/matrix\((.+)\)/,vl=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(Ei(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=ki.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return o-=a,n-=i,o+=u,n+=s,{x:o,y:n}};class Ni{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 Pi{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 Ni,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 It=new Pi,Hr={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:Ii,create:Oi}=ae("price"),Vi=Oi({props:{...Hr},setup(e){const t=l.computed(()=>({[Ii]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Ft(e.price)==0?"":sn(e.price,e.decimalLength,!0,Te(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ge=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Di=["innerHTML"],Ri=["innerHTML"];function Fi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Di)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ri)):l.createCommentVNode("",!0)],2)}const $n=Ge(Vi,[["render",Fi]]),{componentName:Mn,create:Ai}=ae("hint-text"),Mi=Ai({components:{Price:$n},props:{...Hr,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,X,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 te={top:null,right:null,bottom:null,left:null},$=[];for(let C=0;C<A.length;C++){const D=A[C];if($[0]=D,Q[1]&&($[1]=Q[1]),D==="top"){const I=L.y-F-e.arrowSize-e.offset;if(I>=0){te.top=I;let b=0;Q[1]==="start"?b=L.x:Q[1]==="end"?b=L.x+X-E:b=L.x+X/2-E/2;const H=_-b-E;H<0?(b+=H,m.value=-H):m.value=0,te.left=b<0?0:b;break}}else if(D==="bottom"){const I=L.y+M+e.arrowSize+e.offset;if(I+F<=U){te.top=I;let b=0;Q[1]==="start"?b=L.x:Q[1]==="end"?b=L.x+X-E:b=L.x+X/2-E/2;const H=_-b-E;H<0?(b+=H,m.value=-H):m.value=0,te.left=b<0?0:b;break}}else if(D==="left"){const I=L.x-E-e.arrowSize-e.offset;if(I>=0){te.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,te.top=b<0?0:b;break}}else if(D==="right"){const I=L.x+X+e.arrowSize+e.offset;if(I+E<=_){te.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,te.top=b<0?0:b;break}}}return{bestPlacement:$.join("-"),bestInsetRect:te}},d=(g,L,X=10)=>{if(!at||L===!1||!g)return;n.value=vl(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),p=qe(()=>{d(e.message,e.visible)},10),y=l.ref(e.visible);l.watch(()=>e.visible,g=>{y.value=g});const v=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),It.watch(e.reference,p),R.observe(e.reference)}),l.onBeforeUnmount(()=>{It.unwatch(e.reference,p),R.unobserve(e.reference),R.disconnect()});const T=l.computed(()=>{const g={[Mn]:!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=[`${Mn}__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(()=>({[`${Mn}__arrow`]:!0})),N=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(()=>v.value&&e.closeOnClick),w=l.computed(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:v,tipRef:s,classes:T,styles:S,textClasses:B,textStyles:q,arrowClasses:O,arrowStyles:N,overlayShow:V,overlayStyle:w,onClickOverlay:()=>{y.value=!1,t.emit("update:visible",!1)}}}}),Li=["innerHTML"];function Bi(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,Li))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const At=Ge(Mi,[["render",Bi]]);class Kr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const nl={},_i=new Kr,yt=new Map,an=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}yt.clear()}},qi=e=>{e.unmount=an;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...nl,...o,...e}:e={...nl,...e},e.transition=!1;const n=l.createVNode(At,e);l.render(n,t)}return e.id},ji=e=>{e.unmount=an;let t=e.id??`hinttext_${_i.get()}`;e={...nl,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(At,e);return l.render(n,o),document.body.appendChild(o),t},zi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){zi(t);const r=o.id;return r&&yt.has(r)?qi({...o,message:t,reference:e}):(n&&an(),ji({...o,message:t,reference:e}))},hide(e){an(e)},install(e){e.config.globalProperties.$hintText=Re}};function Hi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Ce,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ee({componentName:e,validate:!1},i);const u=it(),s=bn();xn(!1);const c=l.computed(()=>s&&u?wn(u,!1).value:null),d=e,m=l.ref(null),p=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 z=m.value(i);P[z]=!0}else if(typeof m.value=="string"){const z=m.value;P[z]=!0}return P}),y=l.ref(null),v=l.computed(()=>{const P={};if(r.width)r.width!=="auto"&&(P.width=Pe(r.width));else{const z=s&&u?Sn(u,!1):null;if(c.value&&z){if(c.value.type==="grid"){const J=Cn(z,c.value,r.span,r.offset);Object.assign(P,J)}else if(c.value.type==="flow"){const J=Tn(z,c.value,r.span,r.offset,r.width);Object.assign(P,J)}}}if(typeof y.value=="function"){const z=y.value(i);z&&Object.assign(P,z)}else if(y.value&&typeof y.value=="object"){const z=y.value;Object.assign(P,z)}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),N=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),X=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:""),te=l.computed(()=>U.value==="error"?_.value:U.value==="warn"?E.value:U.value==="info"?X.value:null),$=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}),C=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,z,J,le])=>{D.value&&(P&&!de(z)?I?o.show(D.value,z,{...le,id:I,type:J},!0):I=o.show(D.value,z,{...le,type:J},!0):o.hide(I))});let b=null;const H=()=>{b||!D.value||(b=new IntersectionObserver(P=>{let z=!1;for(let J of P)if(J.intersectionRatio>0){z=!0,z&&a.emit("appear",J);break}z||a.emit("disappear")}),b.observe(D.value))},Z=()=>{!b||!D.value||(b.unobserve(D.value),b=null)};l.watch(()=>ue(r.appearListen),P=>{P?H():Z()}),l.onMounted(()=>{ue(r.appearListen)&&H()}),l.onUnmounted(Z);const ne=()=>{if(!R())return null;const P=[],z=a.slots?.label?.()??r.label,J={class:V.value},le=l.h("div",J,[z]);if(P.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();P.push(ce)}const se={class:q.value,style:N.value};return l.h("div",se,P)},Y=()=>{const P=[];if(a.slots.prepend){const J=a.slots.prepend();P.push(J)}if(a.slots.default){const J=a.slots.default();P.push(J)}if(a.slots.append){const J=a.slots.append();P.push(J)}if(a.slots.fixedTip){const J={class:[`${d}__fixed-tip`]},le=l.h("div",J,[a.slots.fixedTip()]);P.push(le)}const z={ref:D,class:w.value,style:j.value};return l.h("div",z,P)},W=()=>{const P=te.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},k=()=>{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=[],z=W();z&&P.push(z);const J=k();J&&P.push(J);const le={class:$.value,style:C.value};return l.h("div",le,P)},G=()=>a.slots?.hide?.()??null;return()=>{const P=[],z=[],J=ne();J&&z.push(J);const le=Y();le&&z.push(le);const se={class:B.value},ce=l.h("div",se,z);P.push(ce);const pe=K();pe&&P.push(pe);const ge=G();ge&&P.push(ge);const Se={class:p.value,style:v.value,prop:r.prop};return l.h("div",Se,P)}}}}const{componentName:Ki,create:Wi,scope:Yi}=ae("item"),$e=Wi(Hi(Ki,Yi,Re,!1));function Ui(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=it(),a=bn();xn(!1);const i=l.computed(()=>a&&r?wn(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?Sn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const p=Cn(m,i.value,o.span,o.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=Tn(m,i.value,o.span,o.offset,o.width);Object.assign(d,p)}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:Gi,create:Xi}=ae("slot-item"),pl=Xi(Ui(Gi));function Zi(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=it(),u=bn();xn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=wn(i,!1),m=Sn(i,!1);if(d.value&&m)if(d.value.type==="grid"){const p=Cn(m,d.value,o.span,o.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=Tn(m,d.value,o.span,o.offset,o.width);Object.assign(c,p)}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 p=0;p<m.length;p++){if(p>0){const y=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(y)}c.push(m[p])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:Qi,create:Ji}=ae("row-item"),yl=Ji(Zi(Qi)),Qe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},fo={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 es(e,t,o){return{props:{...Ce,...Ve,...fo},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}=Ee({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0,[`${v}__disabled`]:i.value,[`${v}__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;p.value=!0,de(T.value)||(S.value=!0),c("focus",_,E)},q=E=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let _=E.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),c("blur",_,E)},O=()=>{c("clear","")},N=l.ref(!1);let V=null;const w=()=>{n.showTooltip&&N.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{N.value=!0},150))},j=()=>{V&&(clearTimeout(V),N.value=!1,V=null)},g=l.computed(()=>N.value||S.value),L=l.computed(()=>N.value?y.value:T.value),X=l.computed(()=>Ft(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={...Qe(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:X.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 $={...Oe(n,fo),hintText:L.value,hintVisible:g.value};return n.prop&&($.prop=`${n.prop}_item`),l.h(o,$,A)}}}}const{componentName:ts,create:ns,scope:ls}=ae("input-item"),bl=ns(es(ts,ls,$e));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function os(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let rs=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=Ue(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(tt(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function as(){const e=l.getCurrentInstance();return new rs(e.proxy)}function Yr(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Vt(e,t),i=Vt(e,o);return a===i}function Ur(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=Wr(e,i);if(Array.isArray(u)&&u.length>0){const s=Ur(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=ot(e,i)===a;else if(o==="item")s=Yr(e,i,a);else{let c=Vt(e,i);c==null&&(c=ot(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function is(e){return{text:e,value:e}}const ho={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 ss(e,t,o){return{props:{...Ce,...Ve,...ho},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}=Ee({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"]),p=l.ref(null),y=l.ref([]),v=l.computed(()=>y.value?y.value.map(K=>ot(n,K)).join(" "):""),f=(k,K,G,P=!0)=>{if(!G||G.length==0){p.value=k,P&&(c("update:modelValue",k),c("change",k));return}const z=Ur(n,k,K,G);if(z===null){if(y.value===null||y.value.length===0)return;p.value=null,y.value=[],P&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let J=!0;if(z.length!==y.value.length)J=!1;else for(let le=0;le<z.length;le++){const se=z[le],ce=y.value[le];if(!Yr(n,se,ce)){J=!1;break}}if(!J){y.value=z;let le=[],se=[],ce=[];z.forEach(ze=>{const st=Vt(n,ze),mt=ot(n,ze);le.push(st),ce.push(mt),n.valueType==="text"?se.push(mt):n.valueType==="item"?se.push(ze):se.push(st)});let pe,ge,Se;ue(n.multiple)?(p.value=le,pe=l.toRaw(se),ge=ce,Se=l.toRaw(z)):(p.value=le[0]??"",pe=l.toRaw(se[0]??""),ge=ce[0]??"",Se=l.toRaw(z[0])),P&&(c("update:modelValue",pe),c("change",pe,Se)),c("update:text",ge)}},h=l.ref(null),R=l.ref(null),T=l.computed(()=>R.value??h.value??[]),S=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,k=>ue(k)),B=as(),q=async(k,K)=>{if(k){const G=await B.load("select",k,K);if(G.length>0)if(typeof G[0]=="string"){let J=G.map(le=>is(le));h.value=J}else h.value=G;else h.value=null}};l.watch([()=>n.source,()=>n.params],([k,K])=>{R.value=null,q(k,K)},{immediate:!S.value});let O=!1;const N=()=>{O||(O=!0,q(n.source,n.params))};l.watch([()=>h.value,()=>n.modelValue],([k,K])=>{if(g()&&ue(n.multiple)){et(K,p.value)||(p.value=K);return}f(K,n.valueType,T.value,!1),c("setValue",K)}),n.source||(p.value=n.modelValue);let V=null,w=l.ref(!1);typeof n.remoteMethod=="function"&&(V=async k=>{if(k==null){R.value=null;return}w.value=!0;try{const K=await n.remoteMethod(k);K&&(R.value=K)}catch(K){R.value=null,console.error(K)}w.value=!1});let j=null;typeof n.filterMethod=="function"&&(j=async k=>{if(k==null){R.value=null;return}w.value=!0;try{const K=await n.filterMethod(k,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),X=e,M=l.computed(()=>({[X]:!0})),E=k=>{n.allowCreate||g()&&ue(n.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),p.value=k):f(k,"value",T.value,!0)};let F=he(n,"hintText"),_=l.ref(!1);const U=k=>{let G=k.target.value;L.value=!0,de(F.value)||(_.value=!0),c("focus",G,k)},Q=k=>{setTimeout(()=>{_.value&&(_.value=!1),L.value=!1},0);let G=k.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),H.value||c("blur",G,k)},A=()=>{c("clear","")},te=l.ref(!1);let $=null;const C=()=>{n.showTooltip&&te.value===!1&&($&&clearTimeout($),$=setTimeout(()=>{te.value=!0},150))},D=()=>{$&&(clearTimeout($),te.value=!1,$=null)},I=l.computed(()=>te.value||_.value),b=l.computed(()=>te.value?v.value:F.value),H=l.ref(!1),Z=k=>{H.value=k,c("visible-change",k),k||c("selected")},ne=k=>{c("remove-tag",k)},Y=(k,K)=>{const G=[];return k.forEach((P,z)=>{const J=Wr(n,P);if(Array.isArray(J)&&J.length>0){const le=Y(J,K),se=ot(n,P),pe={key:`${se}_${z}`,label:se};G.push(l.h(x.ElOptionGroup,pe,{default:()=>le}))}else{const le=Vt(n,P),se=ot(n,P),ce=os(n,P),ge={key:`${le}_${z}`,label:se,disabled:ce,value:le};if(typeof K=="function")G.push(l.h(x.ElOption,ge,{default:()=>K(P)}));else if(n.optionType==="item"){const Se={class:{"fox-select-item__option-left":!0}},ze=l.h("span",Se,[le]),st={class:{"fox-select-item__option-right":!0}},mt=l.h("span",st,[se]),Pn=l.h("div",{class:{"fox-select-item__option":!0}},[ze,mt]);G.push(l.h(x.ElOption,ge,{default:()=>Pn}))}else n.optionType==="value"?G.push(l.h(x.ElOption,ge,{default:()=>[le]})):G.push(l.h(x.ElOption,ge))}}),G},W=l.ref();return we({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const K={...Qe(r.attrs),ref:W,class:M.value,clearable:n.clearable,multiple:n.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:A,onChange:E,onFocus:U,onBlur:Q,onVisibleChange:Z,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 G={};r.slots.prefix&&(G.prefix=r.slots.prefix),r.slots.empty&&(G.empty=r.slots.empty),r.slots.options?G.default=r.slots.options:G.default=()=>Y(T.value,r.slots.option);const P=[],z=l.h(x.ElSelect,K,G);P.push(z);const J={default:()=>P};J.label=r.slots.default,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const se={...Oe(n,ho),hintText:b.value,hintVisible:I.value,onMouseover:C,onMouseleave:D};return n.prop&&(se.prop=`${n.prop}_item`),S.value&&(se["appear-listen"]=!0,se.onAppear=N),l.h(o,se,J)}}}}const{componentName:us,create:cs,scope:fs}=ae("select-item"),xl=cs(ss(us,fs,$e));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kt={exports:{}},ds=Kt.exports,mo;function hs(){return mo||(mo=1,function(e,t){(function(o,n){e.exports=n()})(ds,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",p="quarter",y="year",v="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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:v,h:s,m:u,s:i,ms:a,Q:p}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},q="en",O={};O[q]=T;var N="$isDayjsObject",V=function(M){return M instanceof L||!(!M||!M[N])},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 te=E.name;O[te]=E,U=te}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[N]=!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 te=A[2]-1||0,$=(A[7]||"0").substring(0,3);return Q?new Date(Date.UTC(A[1],te,A[3]||1,A[4]||0,A[5]||0,A[6]||0,$)):new Date(A[1],te,A[3]||1,A[4]||0,A[5]||0,A[6]||0,$)}}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),te=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)},$=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)},C=this.$W,D=this.$M,I=this.$D,b="set"+(this.$u?"UTC":"");switch(A){case y:return Q?te(1,0):te(31,11);case m:return Q?te(1,D):te(0,D+1);case d:var H=this.$locale().weekStart||0,Z=(C<H?C+7:C)-H;return te(Q?I-Z:I+(6-Z),D);case c:case v:return $(b+"Hours",0);case s:return $(b+"Minutes",1);case u:return $(b+"Seconds",2);case i:return $(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":""),te=(U={},U[c]=A+"Date",U[v]=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],$=Q===c?this.$D+(_-this.$W):_;if(Q===m||Q===y){var C=this.clone().set(v,1);C.$d[te]($),C.init(),this.$d=C.set(v,Math.min(this.$D,C.daysInMonth())).$d}else te&&this.$d[te]($);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(_),te=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 te(1);if(A===d)return te(7);var $=(U={},U[u]=n,U[s]=r,U[i]=o,U)[A]||1,C=this.$d.getTime()+F*$;return g.w(C,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),te=this.$H,$=this.$m,C=this.$M,D=U.weekdays,I=U.months,b=U.meridiem,H=function(Y,W,k,K){return Y&&(Y[W]||Y(_,Q))||k[W].slice(0,K)},Z=function(Y){return g.s(te%12||12,Y,"0")},ne=b||function(Y,W,k){var K=Y<12?"AM":"PM";return k?K.toLowerCase():K};return Q.replace(R,function(Y,W){return W||function(k){switch(k){case"YY":return String(_.$y).slice(-2);case"YYYY":return g.s(_.$y,4,"0");case"M":return C+1;case"MM":return g.s(C+1,2,"0");case"MMM":return H(U.monthsShort,C,I,3);case"MMMM":return H(I,C);case"D":return _.$D;case"DD":return g.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return H(U.weekdaysMin,_.$W,D,2);case"ddd":return H(U.weekdaysShort,_.$W,D,3);case"dddd":return D[_.$W];case"H":return String(te);case"HH":return g.s(te,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return ne(te,$,!0);case"A":return ne(te,$,!1);case"m":return String($);case"mm":return g.s($,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,te=g.p(_),$=j(F),C=($.utcOffset()-this.utcOffset())*n,D=this-$,I=function(){return g.m(A,$)};switch(te){case y:Q=I()/12;break;case m:Q=I();break;case p:Q=I()/3;break;case d:Q=(D-C)/6048e5;break;case c:Q=(D-C)/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}(),X=L.prototype;return j.prototype=X,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",y],["$D",v]].forEach(function(M){X[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})}(Kt)),Kt.exports}var ms=hs();const Ze=nt(ms);var Wt={exports:{}},gs=Wt.exports,go;function vs(){return go||(go=1,function(e,t){(function(o,n){e.exports=n()})(gs,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))},p=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=p(f,!1)}],a:[i,function(f){this.afternoon=p(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 v(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(X,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],N=O&&O[0],V=O&&O[1];T[B]=V?{regex:N,parser:V}:q.replace(/^\[|\]$/g,"")}return function(w){for(var j={},g=0,L=0;g<S;g+=1){var X=T[g];if(typeof X=="string")L+=X.length;else{var M=X.regex,E=X.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,N=B.args;this.$u=O;var V=N[1];if(typeof V=="string"){var w=N[2]===!0,j=N[3]===!0,g=w||j,L=N[2];j&&(L=N[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=v(_)(F),A=Q.year,te=Q.month,$=Q.day,C=Q.hours,D=Q.minutes,I=Q.seconds,b=Q.milliseconds,H=Q.zone,Z=new Date,ne=$||(A||te?1:Z.getDate()),Y=A||Z.getFullYear(),W=0;A&&!te||(W=te>0?te-1:Z.getMonth());var k=C||0,K=D||0,G=I||0,P=b||0;return H?new Date(Date.UTC(Y,W,ne,k,K,G,P+60*H.offset*1e3)):U?new Date(Date.UTC(Y,W,ne,k,K,G,P)):new Date(Y,W,ne,k,K,G,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 X=V.length,M=1;M<=X;M+=1){N[1]=V[M-1];var E=R.apply(this,N);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}M===X&&(this.$d=new Date(""))}else S.call(this,B)}}})}(Wt)),Wt.exports}var ps=vs();const ys=nt(ps);var Yt={exports:{}},bs=Yt.exports,vo;function xs(){return vo||(vo=1,function(e,t){(function(o,n){e.exports=n()})(bs,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)}}})}(Yt)),Yt.exports}var ws=xs();const Ss=nt(ws);var Ut={exports:{}},Ts=Ut.exports,po;function Cs(){return po||(po=1,function(e,t){(function(o,n){e.exports=n()})(Ts,function(){return function(o,n,r){var a=n.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,p,y,v,f){var h=m.name?m:m.$locale(),R=i(h[p]),T=i(h[y]),S=R||T.map(function(q){return q.slice(0,v)});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,p){return m.formats[p]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,f,h){return f||h.slice(1)})}(m.formats[p.toUpperCase()])},d=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):u(m,"months")},monthsShort:function(p){return p?p.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(m.$locale(),p)},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(p){return c(m,p)},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)}}})}(Ut)),Ut.exports}var $s=Cs();const Es=nt($s);var Gt={exports:{}},ks=Gt.exports,yo;function Ns(){return yo||(yo=1,function(e,t){(function(o,n){e.exports=n()})(ks,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 p=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(p,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)}}})}(Gt)),Gt.exports}var Ps=Ns();const Is=nt(Ps);var Xt={exports:{}},Os=Xt.exports,bo;function Vs(){return bo||(bo=1,function(e,t){(function(o,n){e.exports=n()})(Os,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}}})}(Xt)),Xt.exports}var Ds=Vs();const Rs=nt(Ds);var Zt={exports:{}},Fs=Zt.exports,xo;function As(){return xo||(xo=1,function(e,t){(function(o,n){e.exports=n()})(Fs,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")}}})}(Zt)),Zt.exports}var Ms=As();const Ls=nt(Ms);var Qt={exports:{}},Bs=Qt.exports,wo;function _s(){return wo||(wo=1,function(e,t){(function(o,n){e.exports=n()})(Bs,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Qt)),Qt.exports}var qs=_s();const js=nt(qs);var Jt={exports:{}},zs=Jt.exports,So;function Hs(){return So||(So=1,function(e,t){(function(o,n){e.exports=n()})(zs,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(Jt)),Jt.exports}var Ks=Hs();const Ws=nt(Ks);Ze.extend(Es);Ze.extend(Ss);Ze.extend(ys);Ze.extend(Is);Ze.extend(Rs);Ze.extend(Ls);Ze.extend(js);Ze.extend(Ws);const Be={format(e,t){return Ze(e).format(t)},parser(e,t){return Ze(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}},To={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 Ys(e,t,o){return{props:{...Ce,...Ve,...To,...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}=Ee({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=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 k=[...y.value];k[0]=W,y.value=k}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;p.value=!0,de(B.value)||(q.value=!0),c("focus",K,W)},N=W=>{setTimeout(()=>{q.value&&(q.value=!1),p.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,k,K)=>{c("panel-change",W,k,K)},g=W=>{c("visible-change",W)},L=Fe(l.computed(()=>n.longTermText),"longTermText",_e.Near),X=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 k=[];Array.isArray(M.value)?(k[0]=y.value?y.value[0]??M.value[0]:null,k[1]=M.value[1]??M.value[0]):(k[0]=y.value?y.value[0]??M.value:null,k[1]=_.value),k[0]||(k[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=k}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 k=[];k[0]=Array.isArray(y.value)?y.value[0]:y.value,Array.isArray(F)?k[1]=F[1]:k[1]=F,k[0]||(k[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=k}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 k=[y.value[0]];Array.isArray(M.value)?k[1]=M.value[1]??M.value[0]:k[1]=_.value,k[0]||(k[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),y.value=k}else y.value=M.value;c("update:modelValue",y.value)}else et(M.value,y.value)&&(_.value=!0)};W(),l.watch([()=>n.longTerm],([k])=>{_.value!==k&&W()}),l.watch([()=>y.value],([k])=>{let K=!1;if(n.type==="daterange"&&Array.isArray(k))try{let G=k[1];if(!G)return;if(k[0]==null){c("update:modelValue",[]);return}typeof G!="string"&&n.valueFormat&&(G=Be.format(G,n.valueFormat));let P=Array.isArray(M.value)?M.value[1]:M.value;(G===P||Array.isArray(E.value)&&E.value.findIndex(J=>G==J)!==-1)&&(K=!0)}catch(G){console.error(G)}_.value!==K&&(_.value=K)},{immediate:!0})}const A=l.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),te=l.ref(),$=l.ref(),C=/^\d+$/,D=(W,k)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(W,k):C.test(W)&&W.length===n.flashFillThreshold,I=(W,k)=>{let K;if(typeof n.flashFillFormat=="function")K=n.flashFillFormat(W,k);else{const P=n.flashFillFormat??"YYYYMMDD";K=Be.parser(W,P)}const G=n.valueFormat??"YYYY-MM-DD";return Be.format(K,G)},b=W=>W?W.endsWith("range"):!1,H=W=>{if(!W.target)return;const k=W.target.value??"";if(D(k,n.type)){const K=I(k,n.type);if(b(n.type)){const G=Array.isArray(y.value)?[...y.value]:[];G[0]=K,h(G)}else h(K)}},Z=W=>{if(!W.target)return;const k=W.target.value??"";if(D(k,n.type)){const K=I(k,n.type);if(b(n.type)){const G=Array.isArray(y.value)?[...y.value]:[];G[1]=K,h(G)}else h(K)}},ne=()=>{if(n.flashFill&&te.value&&te.value.$el)if(b(n.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",H),W[1]&&W[1].addEventListener("input",Z)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",H)}},Y=()=>{if(n.flashFill&&te.value&&te.value.$el)if(b(n.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",H),W[1]&&W[1].removeEventListener("input",Z)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",H)}};return l.onMounted(ne),l.onBeforeUnmount(Y),we({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const k={...r.attrs,key:f.value,type:R.value,ref:$,class:S.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:V,onFocus:O,onBlur:N,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 G=[],P=l.h(x.ElDatePicker,k,K);G.push(P);const z={default:()=>G};if(z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip,Q){if(_.value){const ce=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),pe=l.h("input",{class:["fox-date-item__long-text"],value:L.value,readonly:!0}),ge={class:A.value},Se=l.h("div",ge,{default:()=>[ce,pe]});G.push(Se)}if(!s.value&&!i.value){const ce={label:X.value||L.value,disabled:s.value||i.value,modelValue:_.value,"onUpdate:modelValue":U},pe=l.h(x.ElCheckbox,ce),ge=l.h("div",{class:{[`${T}__append`]:!0}},[pe]);z.append=()=>ge}}const le={...Oe(n,To,Co),ref:te,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,z)}}}}const{componentName:Us,create:Gs,scope:Xs}=ae("date-item"),wl=Gs(Ys(Us,Xs,$e)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zs(e,t,o){return{props:{...Ce,...Ve,...$o},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}=Ee({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!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;p.value=!0,de(R.value)||(T.value=!0),c("focus",j,V)},B=V=>{setTimeout(()=>{T.value&&(T.value=!1),p.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)},N=l.ref();return we({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()},setDisabled:V=>{a.value=V},setReadonly:V=>{u.value=V}}),()=>{const w={...r.attrs,ref:N,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 X={default:()=>g};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const E={...Oe(n,$o),hintText:R.value,hintVisible:T.value};return n.prop&&(E.prop=`${n.prop}_item`),l.h(o,E,X)}}}}const{componentName:Qs,create:Js,scope:eu}=ae("time-item"),Sl=Js(Zs(Qs,eu,$e)),Eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function tu(e,t,o){return{props:{...Ce,...Ve,...Eo},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}=Ee({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0})),h=N=>{y.value=N,c("update:modelValue",N),c("change",N)};let R=he(n,"hintText"),T=l.ref(!1);const S=N=>{let w=N.target.value;p.value=!0,de(R.value)||(T.value=!0),c("focus",w,N)},B=N=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),c("blur",w,N)},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:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{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,Eo),hintText:R.value,hintVisible:T.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,L)}}}}const{componentName:nu,create:lu,scope:ou}=ae("time-select-item"),Tl=lu(tu(nu,ou,$e));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 No(e,t,o=20){if(typeof t=="string"&&(t=Te(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=hr(`${e}`,`${t}`);return ko(n)}else{let n=rl(`${e}`,mr(`${t}`),20);return ko(n)}}function ru(e,t=-1,o=!1,n=3,r=","){return sn(e,t,o,n,r)}function Po(e,t,o,n,r=!0){if(e==="")return"";if(e=gr(e),t=Te(t),t==1)return e;if(n)e=No(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Te(o)+2,"0"):e=rl(e,1,Te(o)));else{let a=-1*t;e=No(e,a)}return e}function Io(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=Un(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=Un(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Oo={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 au(e,t,o){return{props:{...Ce,...Ve,...Oo},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}=Ee({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),p=l.ref("");l.watch([()=>m.value,()=>n.rates,()=>n.precision],([E,F,_])=>{if(de(E)){p.value="";return}const U=Po(E,F,_,!1);p.value!==U&&(p.value=U)},{immediate:!0});const y=l.computed(()=>{let E="";return d.value&&(E=p.value),E}),{t:v}=je.useFoxI18n(t),f=l.computed(()=>{let E=n.placeholder??"";return!d.value&&!de(p.value)?E=ru(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):E=v(["placeholder",E]),E}),h=e,R=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.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),N=(E,F)=>{if(E=`${E}`,de(E)){p.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(p);return}}if(E!="-"){if(!Tr(E)){l.triggerRef(p);return}if(n.integerLength!=-1&&Cr(E)>Number(n.integerLength)){l.triggerRef(p);return}if(n.decimalLength&&n.decimalLength!=-1&&$r(E)>Number(n.decimalLength)){l.triggerRef(p);return}let _=Io(E,n);if(_.maxValid===!1){S.value=_.message,l.triggerRef(p);return}}else if(n.min!=null&&Te(n.min)>=0){l.triggerRef(p);return}q.value=E,ue(n.showTip)&&(O.value=E.length>0),p.value=E,m.value=Po(E,n.rates,n.precision,!0),F.forEach(_=>{c(_,m.value)})},V=E=>{N(E,["update:modelValue","input"])},w=E=>{N(E,["update:modelValue","change"])},j=E=>{if(d.value=!0,ue(n.showTip)){let F=p.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(p.value)){let F=Io(p.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","")},X=l.computed(()=>Ft(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={...Qe(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:X.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 $={...Oe(n,Oo),errorTip:B.value,hintText:q.value,hintVisible:O.value,hintType:"number"};return n.prop&&($.prop=`${n.prop}_item`),l.h(o,$,A)}}}}const{componentName:iu,create:su,scope:uu}=ae("money-item"),Cl=su(au(iu,uu,$e)),Vo={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 cu(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}=Ee({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!0,[`${v}__append`]:V.value})),h=l.computed(()=>({[`${v}__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;p.value=!0,de(S.value)||(B.value=!0),c("focus",L,j)},O=j=>{setTimeout(()=>{B.value&&(B.value=!1),p.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)},N=()=>{c("clear","")},V=l.computed(()=>Ft(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={...Qe(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:N,onChange:T,onInput:R,onFocus:q,onBlur:O},L={},X=[],M=l.h(x.ElInputNumber,g,L);X.push(M);const E={default:()=>X};E.label=r.slots.default,E.fixedPreTip=r.slots.fixedPreTip,E.fixedTip=r.slots.fixedTip;const _={...Oe(n,Vo),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:fu,create:du,scope:hu}=ae("input-number-item"),$l=du(cu(fu,hu,$e));function Je(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 mu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let gu=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=Ue(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(tt(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function vu(){const e=l.getCurrentInstance();return new gu(e.proxy)}function ll(e,t,o){const n=Je(e,t),r=Je(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=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=Gr(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=ll(e,c,u);else{let d=dt(e,c);d==null&&(d=Je(e,c)),s=d===u}if(s){r.push(c),a=mu(e,c);break}}if(!s)break}}return r}function pu(e){return{text:e,value:e}}const Do={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function yu(e,t,o){return{props:{...Ce,...Ve,...Do},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}=Ee({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"]),p=l.ref(null),y=l.ref([]),v=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,k,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===Y)return;p.value=Y;const J=l.toRaw(Y);if(K){const le=ne?.value.getCheckedNodes();if(le)if(n.multiple){const se=[];le.forEach(ce=>{const ge=(ce.pathNodes??[]).map(Se=>Se.data);se.push(ge)}),c("update:pathNodes",se)}else{const ce=(le[0]?.pathNodes??[]).map(pe=>pe.data);c("update:pathNodes",ce)}c("update:modelValue",J),c("change",J)}return}const G=Gr(n,Y,W,k);if(G===null){if(y.value.length===0||y.value===null)return;y.value=[],p.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const P=G[G.length-1];if(L.value.checkStrictly!==!0&&P&&!Array.isArray(P)&&Array.isArray(P.children)&&P.children.length>0){const J=[];G.forEach(le=>{const se=`${Je(n,le)}`;J.push(se)}),J.length>0&&(j.value=J.join(n.separator))}else j.value=null;let z=!0;if(G.length!==y.value.length)z=!1;else for(let J=0;J<G.length;J++){const le=G[J],se=y.value[J];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)z=!1;else for(let ce=0;ce<le.length;ce++)if(!ll(n,le[ce],se[ce])){z=!1;break}}else ll(n,le,se)||(z=!1);if(!z)break}if(!z){y.value=G;let J=[],le=[];G.forEach(ce=>{if(Array.isArray(ce)){let pe=[],ge=[];for(let Se of ce)pe.push(dt(n,Se)),n.valueType==="text"?ge.push(Je(n,Se)):n.valueType==="item"?ge.push(Se):ge.push(dt(n,Se));J.push(pe),le.push(ge)}else J.push(dt(n,ce)),n.valueType==="text"?le.push(Je(n,ce)):n.valueType==="item"?le.push(ce):le.push(dt(n,ce))}),p.value=J;const se=l.toRaw(le);K&&(c("update:pathNodes",G),c("update:modelValue",se),c("change",se))}},h=l.ref([]),R=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Y=>ue(Y)),T=vu(),S=async(Y,W)=>{if(Y){const k=await T.load("cascader",Y,W);if(k.length>0)if(typeof k[0]=="string"){let P=k.map(z=>pu(z));h.value=P}else h.value=k}};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,N=l.ref(!1);typeof n.remoteMethod=="function"&&(O=async Y=>{if(Y!=null){N.value=!0;try{const W=await n.remoteMethod(Y);h.value=W}catch(W){console.error(W)}N.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,k)=>{const K=await T.load("cascader",n.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===W.level){const G=W.pathLabels??[];let P=[];G.forEach(z=>{z&&P.push(z)}),P.length>0&&(j.value=P.join(n.separator))}else j.value=null;k(K)}),Y}),X=Y=>{n.allowCreate?(c("update:modelValue",Y),c("change",Y),p.value=Y):f(Y,"value",h.value,!0)};let M=he(n,"hintText"),E=l.ref(!1);const F=Y=>{let k=Y.target.value;V.value=!0,de(M.value)||(E.value=!0),c("focus",k,Y)},_=Y=>{setTimeout(()=>{E.value&&(E.value=!1),V.value=!1},0);let k=Y.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),I.value||c("blur",k,Y)},U=()=>{c("clear","")},Q=l.ref(!1);let A=null;const te=()=>{n.showTooltip&&Q.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{Q.value=!0},150))},$=()=>{A&&(clearTimeout(A),Q.value=!1,A=null)},C=l.computed(()=>Q.value||E.value),D=l.computed(()=>Q.value?v.value:M.value),I=l.ref(!1),b=Y=>{I.value=Y,c("visible-change",Y),Y||c("selected")},H=Y=>{c("remove-tag",Y)},Z=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:p.value,separator:n.separator,onClear:U,onChange:X,onFocus:F,onBlur:_,onVisibleChange:b,onRemoveTag:H,expandChange:Z};typeof O=="function"&&(W["remote-method"]=O,W.loading=N.value);const k={};r.slots.option&&(k.default=r.slots.option),r.slots.empty&&(k.empty=r.slots.empty);const K=[],G=l.h(x.ElCascader,W,k);K.push(G);const P={default:()=>K};P.label=r.slots.default,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const J={...Oe(n,Do),hintText:D.value,hintVisible:C.value,onMouseover:te,onMouseleave:$};return n.prop&&(J.prop=`${n.prop}_item`),R.value&&!n.lazy&&(J["appear-listen"]=!0,J.onAppear=q),l.h(o,J,P)}}}}const{componentName:bu,create:xu,scope:wu}=ae("cascader-item"),El=xu(yu(bu,wu,$e)),Ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Su(e,t,o){return{props:{...Ce,...Ve,...Ro},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}=Ee({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"]),p=l.ref(!1),y=he(n,"modelValue",null,c),v=e,f=l.computed(()=>({[v]:!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;p.value=!0,de(S.value)||(B.value=!0),c("focus",g,w)},O=w=>{setTimeout(()=>{B.value&&(B.value=!1),p.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)},N=()=>{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:N,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=[],X=l.h(x.ElAutocomplete,j,g);L.push(X);const M={default:()=>L};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const F={...Oe(n,Ro),hintText:S.value,hintVisible:B.value};return n.prop&&(F.prop=`${n.prop}_item`),l.h(o,F,M)}}}}const{componentName:Tu,create:Cu,scope:$u}=ae("autocomplete-item"),kl=Cu(Su(Tu,$u,$e));function Eu(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(p=>p[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(p=>p[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(p=>p[n]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let ku=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=Ue(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(tt(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Nu(){const e=l.getCurrentInstance();return new ku(e.proxy)}const Xr={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 Pu(e,t){return{props:{...Xr},setup(o,{attrs:n,slots:r}){const a=Nu(),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=Eu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},u.value):l.h(s,c,{default:()=>u.value}):l.h(s,c,u.value)}}}}const{create:Iu}=ae("mapping"),Dt=Iu(Pu());function Ou(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 Vu(e,t){return{props:{...Xr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Ou(i.row,i.column.property);return r.default?l.h(Dt,{...o,modelValue:u},{default:r.default}):l.h(Dt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(x.ElTableColumn,{...n},a)}}}}const{create:Du}=ae("table-mapping-column"),Nl=Du(Vu()),Ru=Symbol.for("TableStateKey");function Fo(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 Fu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Ru,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Fo(u.row,u.column.property),c=a?Fo(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},p=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,[p])}};return l.h(x.ElTableColumn,{...n},i)}}}}const{create:Au}=ae("table-radio-column"),Pl=Au(Fu()),Mu={},Lu={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 Bu(e,t){return l.openBlock(),l.createElementBlock("svg",Lu,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 _u=Ge(Mu,[["render",Bu]]),{create:qu}=ae("table-setting"),ju={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:"不固定"}},zu=qu({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:_u,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...ju},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,p=(b,H)=>{Array.isArray(b)&&Array.isArray(H)&&b.forEach(Y=>{H.some(W=>W.prop===Y.prop?(Y.label=W.label,!0):!1)});const Z=[];r.value=b.map((Y,W)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&Z.push(Y.prop),{...Y,sortIndex:W})),u.value.length+a.value.length+i.value.length===Z.length?T.value=!0:Z.length>0&&(S.value=!0),O.value=Z},y=b=>b?b.type?b.type:b.label?b.prop:"":"",v=(b,H)=>{if(b.length!==H.length)return!1;const Z=b.map(ne=>y(ne));for(let ne of H){const Y=y(ne);if(Z.indexOf(Y)===-1)return!1}return!0},f=b=>{if(!b){const H=e.tableRef.getColumnSetting(),Z=H.srcColumnPropertyList;n=Z.map((ne,Y)=>({...ne,sortIndex:Y})),b=H.columnPropertyList,b&&b.length>0&&v(Z,b)||(b=Z)}p(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 H=[];r.value.forEach(ne=>{b&&!(ne.label===""||ne.type)&&H.push(ne.prop),ne.visible=b}),T.value=!1,S.value=!1,u.value.length+a.value.length+i.value.length===H.length?T.value=!0:H.length>0&&(S.value=!0),O.value=H,h()},q=()=>{f(n),h()},O=l.ref([]),N=b=>{r.value.forEach(Z=>{if(Z.label===""||Z.type)return;const ne=b.indexOf(Z.prop)!==-1;Z.visible=ne}),T.value=!1,S.value=!1;const H=u.value.length+a.value.length+i.value.length;b.length===H?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 H=b.currentTarget;H&&H.dataset&&(w.roleType=H.dataset.roleType,w.index=H.dataset.index)},L=b=>{w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null),w.index=null,w.roleType=null},X=b=>{const H=b.currentTarget;b.relatedTarget;const Z=j(H);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;w.roleType===ne&&(b.preventDefault(),w.currentRow&&w.currentRow!==Z&&w.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),w.currentRow=Z)},M=b=>{b.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},E=b=>{const H=b.currentTarget,Z=j(H);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;if(w.roleType!==ne)return;b.preventDefault();const Y=Number(w.index),W=Number(Z.dataset.index);if(Y!==W){if(Y<W){const k=r.value[Y];r.value.splice(Y,1),r.value.splice(W,0,k)}else{const k=r.value[Y];r.value.splice(Y,1),r.value.splice(W+1,0,k)}p(r.value,n),h()}},F=b=>{const H=r.value[b];H.fixed="left",h()},_=b=>{const H=r.value[b];H.fixed="right",h()},U=b=>{const H=r.value[b];H.fixed=void 0,h()},Q=new Map;let A=null;function te(b){const H=document.createRange();return H.setStart(b,0),H.setEnd(b,b.childNodes.length),H.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:N,onShow:V,onDragStart:g,onDragEnd:L,onDragOver:X,onDragLeave:M,onDrop:E,toLeftFixed:F,toRightFixed:_,toUnFixed:U,checkboxLabelStyle:R,onMouseOverForOverflowText:(b,H,Z)=>{const ne=b.currentTarget;if(ne){const Y=Math.floor(ne.offsetWidth);if(Math.floor(te(ne))>Y){let k=Q.get(H);if(k){if(k===A)return;Re.hide(k)}k=Re.show(ne,Z,{type:"text",placement:"top",closeOnClick:!1}),k&&(Q.set(H,k),A=k)}}},onMouseLeaveForOverflowText:(b,H)=>{const Z=Q.get(H);Z&&(Re.hide(Z),Z===A&&(A=null))},onMouseOverForTip:(b,H)=>{const Z=b.currentTarget;Z&&(A&&Re.hide(A),A=Re.show(Z,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{A&&(Re.hide(A),A=null)}}}}),Hu={class:"fox-table-setting"},Ku={class:"fox-table-setting__header"},Wu={class:"fox-table-setting__body"},Yu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Uu={key:0,class:"fox-table-setting__body-title"},Gu=["data-index","draggable"],Xu=["onMouseover","onMouseleave"],Zu={class:"tools-item"},Qu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ju={key:0,class:"fox-table-setting__body-title"},ec=["data-index","draggable"],tc=["onMouseover","onMouseleave"],nc={class:"tools-item"},lc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},oc={key:0,class:"fox-table-setting__body-title"},rc=["data-index","draggable"],ac=["onMouseover","onMouseleave"],ic={class:"tools-item"};function sc(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"),p=l.resolveComponent("fox-checkbox"),y=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Hu,[l.createElementVNode("div",Ku,[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",Wu,[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",Yu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Uu,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,Xu)]),_:2},1032,["value"]),l.createElementVNode("div",Zu,[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,Gu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Qu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Ju,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,tc)]),_:2},1032,["value"]),l.createElementVNode("div",nc,[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,ec))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",lc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",oc,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(p,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,ac)]),_:2},1032,["label"]),l.createElementVNode("div",ic,[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,rc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const En=Ge(zu,[["render",sc]]);let uc=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=Ue(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(tt(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,n,r,a,i,u]))}};function cc(){const e=l.getCurrentInstance();return new uc(e.proxy)}class fc{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ue(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ue(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ue(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Zr(){const e=l.getCurrentInstance();return new fc(e.proxy)}const dc=Symbol.for("TableStateKey"),Ao={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Mo={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}},Ln={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:()=>"不固定"}},hc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function mc(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 Bn(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=mc(n,r);if(a!==i)return!1}return!0})}function gc(e,t,o){return{props:{...Ce,...Ve,...Ao,...Mo,...Ln,...hc},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}=Ee({componentName:e,validateHandler:{getValue(...ee){return N.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})),p=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),y=l.shallowRef({}),v=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,ee=>{f.value=ee}),l.watch(()=>n.pageSize,ee=>{h.value=ee}),l.watch([f,h],([ee,oe],[re,ie])=>{oe!==ie&&(f.value=1,ee=1),g(n.data,ee,oe,v.value)}));const T=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);T()&&l.watch([()=>n.data,v],async([ee,oe],[re,ie])=>{T()&&(ee!==re&&(w=!0),!(!Array.isArray(ee)&&et(ee,re)&&et(oe,ie))&&(R?(f.value=0,q.value=!0,N.value=[],X()):f.value===1?g(ee,f.value,h.value,oe):f.value=1))},{deep:!0});const S=ee=>{f.value=ee,i("page-index-change",ee)},B=ee=>{h.value=ee,i("page-size-change",ee)},q=l.ref(!0),O=l.ref(0),N=l.ref(),V=cc();let w=!0;const j=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,ee=>ue(ee)),g=async(ee,oe,re,ie,ke)=>{w=!1;try{if(ke===!0){if(!q.value)return!1;const ve=await V.load("table",ee,oe,re,ie,w,a.value);return O.value=ve.totalSize,!ve.page||!Array.isArray(ve.page)||(Reflect.apply([].push,N.value,ve.page),setTimeout(()=>{i("loaded-data")},250),(N.value?.length??0)>=O.value)||ve.page.length<re?(q.value=!1,!1):!0}else{const ve=await V.load("table",ee,oe,re,ie,w,a.value);return O.value=ve.totalSize,N.value=ve.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ve){console.error("[FoxUI] Load Table Data Fail",ve),O.value=0,N.value=[]}return!1};let L=!1;const X=async()=>{if(!L){if(L=!0,!q.value){L=!1;return}f.value+=1,await g(n.data,f.value,h.value,v.value,!0),L=!1}},M=(ee={},oe=!1)=>new Promise(async re=>{y.value={...l.toRaw(ee??{})},oe||(f.value=n.pageIndex??1),R===!0?(f.value=0,N.value=[],q.value=!0,await X()):await g(n.data,f.value,h.value,v.value),re()}),E=()=>{O.value=0,N.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 ee=null;const oe=()=>{U.value&&(ee=new IntersectionObserver(ie=>{let ke=!1;for(let ve of ie)if(ve.intersectionRatio>0){ke=!0;break}ke&&X()}),ee.observe(U.value))},re=()=>{!ee||!U.value||(ee.unobserve(U.value),ee=null)};l.onMounted(oe),l.onBeforeUnmount(re)}T()&&!j.value&&M();const Q=l.ref(null);l.provide(dc,{currentRow:Q});const A=(ee,oe)=>{Q.value=ee,i("current-change",ee,oe)},te=(ee,oe,re)=>{i("row-click",ee,oe,re),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(ee)},$=[],C=(ee,oe)=>{if(i("expand-change",ee,oe),ue(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=$.length;$.splice(0,re)}else{$.forEach(ie=>{ie!==ee&&xe?.value.toggleRowExpansion(ie,!1)});const re=$.length;$.splice(0,re,ee)}},D=r.attrs.id??n.prop??r.attrs.name,I=Zr(),b=l.ref([]);let H=[];const Z=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:b.value}),ne=ee=>{b.value=[...ee],W()},Y=async()=>{const ee=await I.load(D);ee&&(b.value=ee)},W=()=>{I.save(D,b.value)},k=()=>{I.remove(D)};Y();const K=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",G=(ee,oe={})=>{for(let re in oe){const ie=oe[re];typeof ie!="function"&&(ee[re]=ie)}},P=ee=>{const oe=ee?ee():[],re=new Map;if(H=[],oe.forEach(ie=>{const ve=ie;if(!ve.props)return;const Ke=K(ve.props);re.set(Ke,ve);const He={label:"",prop:""};G(He,ve.props),H.push(He)}),b.value.length===H.length){const ie=[];for(let ke of b.value){const ve=K(ke),Ke=re.get(ve);if(!Ke)return oe;if(ke.visible===!1)continue;const He=Ke;He.props.fixed=ke.fixed,ie.push(He)}return ie}return oe},z=l.shallowRef(new Map),J=({row:ee,column:oe,rowIndex:re,columnIndex:ie})=>{const ke=`${re}_${oe.property}`,ve=`${re}_${ie}`;let Ke=z.value.get(ke);return Ke||(Ke=z.value.get(ve)),typeof Ke=="string"?Ke:""},le=ee=>ee?oe=>{const re=[];let ie=J(oe);return ie&&re.push(ie),ie=ie=typeof ee=="function"?ee(oe):ee,ie&&re.push(ie),re.length===0?"":re.join(" ")}:J,se=(ee=!1)=>{z.value.forEach((oe,re)=>{ce(re,oe,ee)})},ce=(ee,oe,re=!1)=>{const ie=`${ee}_item`;re?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:ee},"setCellClassNames",[]):u.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:ee,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",oe):u.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",oe)},pe=(ee,oe,re)=>{const ie=`${ee}_${oe}`;re?(z.value.set(ie,re),ce(ie,re)):(z.value.delete(ie),ce(ie,"",!0)),l.triggerRef(z)},ge=ee=>{se(!0),z.value.clear(),ee.forEach(oe=>{const re=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?z.value.set(re,oe.children):typeof oe.cellClassName=="string"&&z.value.set(re,oe.cellClassName)}),se(),l.triggerRef(z)},Se=()=>{se(),z.value.clear(),l.triggerRef(z)},ze=l.shallowRef(new Map),st=({rowIndex:ee})=>{const oe=`${ee}`;return ze.value.get(oe)??""},mt=ee=>ee?oe=>{const re=[];let ie=st(oe);return ie&&re.push(ie),ie=typeof ee=="function"?ee(oe):ee,ie&&re.push(ie),re.length===0?"":re.join(" ")}:st,Pn=(ee,oe)=>{const re=`${ee}`;oe?ze.value.set(re,oe):ze.value.delete(re),l.triggerRef(ze)},sa=()=>{ze.value.clear(),l.triggerRef(ze)},xe=l.ref();return we({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{xe?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!N.value)return;const re=Bn(N.value,ee);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowSelection(ie,oe)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{xe?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!N.value)return;const re=Bn(N.value,ee);re.length!==0&&re.forEach(ie=>{xe?.value.toggleRowExpansion(ie,oe)})},setCurrentRow:ee=>{xe?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!N.value)return;const oe=Bn(N.value,ee);oe.length!==0&&xe?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Q.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:ee=>{xe?.value.clearFilter(ee)},doLayout:()=>{xe?.value.doLayout()},sort:(ee,oe)=>{xe?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{xe?.value.scrollTo(ee,oe)},setScrollTop:ee=>{xe?.value.setScrollTop(ee)},setScrollLeft:ee=>{xe?.value.setScrollLeft(ee)},loadData:M,clearData:E,getData(){return N.value},getTotalSize(){return O.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Z,setColumnSetting:ne,removeColumnSetting:k,setCellClassName:pe,setCellClassNames:ge,clearCellClassName:Se,setRowClassName:Pn,clearRowClassName:sa}),()=>{const oe={...Qe(r.attrs),onCurrentChange:A,onRowClick:te,onExpandChange:C,data:N.value,ref:xe,class:c.value,"cell-class-name":le(n.cellClassName),"row-class-name":mt(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>P(r.slots.default)),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),R===!0){const We=[];if(q.value){const Tt=l.h(Ie.Loading,{class:`${s}__infinite-icon`});We.push(Tt);const On=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);We.push(On)}else{const Tt=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);We.push(Tt)}const ut={ref:U,class:`${s}__infinite`},In=l.h("div",ut,We);re.append=()=>In}const ie=l.h(x.ElTable,oe,re),ke=[];if(ke.push(ie),!R){let We=null;if(typeof r.slots.pagination=="function")We=r.slots.pagination();else if(n.showPagination){const ut={class:p.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};We=l.h(x.ElPagination,ut)}if(n.showSetting){const ut=[];We&&ut.push(We);const In=l.h(x.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),Tt=Er(n,Ln),On=l.h(En,{...Tt,tableRef:{getColumnSetting:Z,setColumnSetting:ne,removeColumnSetting:k}},{default:()=>In});ut.push(On);const ua=l.h("div",{class:m.value},ut);ke.push(ua)}else We&&ke.push(We)}const ve={default:()=>ke},He={...Oe(n,Ao,Mo,Ln)};return n.prop&&(He.prop=`${n.prop}_item`),He.contentClass=`${s}__wrap`,He.errorMarkClass="is-table-error",j.value&&T()&&(He["appear-listen"]=!0,He.onAppear=_),l.h(o,He,ve)}}}}const{componentName:vc,create:pc,scope:yc}=ae("table-item"),Il=pc(gc(vc,yc,$e));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let xc=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=Ue(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(tt(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function wc(){const e=l.getCurrentInstance();return new xc(e.proxy)}function Qr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,o);return a===i}function Sc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=wt(e,a)===t;else if(o==="item")i=Qr(e,a,t);else{let u=Rt(e,a);u==null&&(u=wt(e,a)),i=u===t}if(i){r=a;break}}return r}function Tc(e){return{text:e,value:e}}function Cc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Lo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function $c(e,t,o){return{inheritAttrs:!0,props:{...Ce,...Ve,...Lo},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}=Ee({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),p=(w,j,g,L=!0)=>{const X=Sc(n,w,j,g);if(X===null){if(m.value===null)return;m.value=null,d.value=null,L&&(c("update:modelValue",null),c("change",null));return}if(!Qr(n,X,m.value)){d.value=w;const E=l.toRaw(X);m.value=E;let F=null;n.valueType==="text"?F=wt(n,E):n.valueType==="item"?F=E:F=Rt(n,E),L&&(c("update:modelValue",F),c("change",F))}},y=l.ref([]),v=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,w=>ue(w)),f=wc(),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=>Tc(E));y.value=M}else y.value=g}};l.watch([()=>n.source,()=>n.params],async([w,j])=>{h(w,j)},{immediate:!v.value});let R=!1;const T=()=>{R||(R=!0,h(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([w,j])=>{p(j,n.valueType,w,!1),c("setValue",j)});const S=e,B=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{p(w,"value",y.value,!0)};let O=he(n,"hintText"),N=he(n,"hintVisible");const V=(w,j)=>{const g=[];return w.forEach((L,X)=>{const M=Rt(n,L),E=wt(n,L);let F=bc(n,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const _=Cc(n,L,X)??{},U=`${M}_${X}`,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={...Qe(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 X=l.h(x.ElRadioGroup,j,L);g.push(X);const M={default:()=>g};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const F={...Oe(n,Lo),hintText:O.value,hintVisible:N.value};return n.prop&&(F.prop=`${n.prop}_item`),v.value&&(F["appear-listen"]=!0,F.onAppear=T),l.h(o,F,M)}}}}const{componentName:Ec,create:kc,scope:Nc}=ae("radio-item"),Ol=kc($c(Ec,Nc,$e));function St(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Pc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ic=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=Ue(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(tt(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Oc(){const e=l.getCurrentInstance();return new Ic(e.proxy)}function Jr(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=bt(e,t),i=bt(e,o);return a===i}function Vc(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=St(e,i)===a;else if(o==="item")u=Jr(e,i,a);else{let s=bt(e,i);s==null&&(s=St(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Dc(e){return{text:e,value:e}}function Rc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Bo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Fc(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}=Ee({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([]),p=(w,j,g,L=!0)=>{const X=Vc(n,w,j,g);if(X===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(X.length!==m.value.length)M=!1;else for(let E=0;E<X.length;E++){const F=X[E],_=m.value[E];if(!Jr(n,F,_)){M=!1;break}}if(!M){m.value=X;let E=[],F=[];X.forEach(U=>{E.push(bt(n,U)),n.valueType==="text"?F.push(St(n,U)):n.valueType==="item"?F.push(U):F.push(bt(n,U))}),d.value=E;const _=l.toRaw(F);L&&(c("update:modelValue",_),c("change",_))}},y=l.ref([]),v=Fe(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,w=>ue(w)),f=Oc(),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=>Dc(E));y.value=M}else y.value=g}};l.watch([()=>n.source,()=>n.params],async([w,j])=>{h(w,j)},{immediate:!v.value});let R=!1;const T=()=>{R||(R=!0,h(n.source,n.params))};l.watch([()=>y.value,()=>n.modelValue],([w,j])=>{p(j,n.valueType,w,!1),c("setValue",j)});const S=e,B=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{p(w,"value",y.value,!0)};let O=he(n,"hintText"),N=he(n,"hintVisible");const V=(w,j)=>{const g=[];return w.forEach((L,X)=>{const M=bt(n,L),E=St(n,L);let F=Pc(n,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const _=Rc(n,L,X)??{},U=`${M}_${X}`,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={...Qe(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:Te(n.max),min:Te(n.min),onChange:q},g=[],L={};r.slots.options?L.default=r.slots.options:L.default=()=>V(y.value,r.slots.text);const X=l.h(x.ElCheckboxGroup,j,L);g.push(X);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:N.value};return n.prop&&(F.prop=`${n.prop}_item`),v.value&&(F["appear-listen"]=!0,F.onAppear=T),l.h(o,F,M)}}}}const{componentName:Ac,create:Mc,scope:Lc}=ae("checkbox-item"),Vl=Mc(Fc(Ac,Lc,$e)),_o={modelValue:{type:[Number,String],required:!1}};function Bc(e,t,o){return{props:{...Ce,...Ve,..._o},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}=Ee({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=>Te(R),c),m=e,p=l.computed(()=>({[m]:!0})),y=R=>{c("update:modelValue",R),c("change",R)};let v=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={...Qe(r.attrs),ref:h,class:p.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,_o),hintText:v.value,hintVisible:f.value};return n.prop&&(V.prop=`${n.prop}_item`),l.h(o,V,O)}}}}const{componentName:_c,create:qc,scope:jc}=ae("rate-item"),Dl=qc(Bc(_c,jc,$e)),qo={modelValue:{type:[Boolean,String,Number],required:!1}};function zc(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}=Ee({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,p=l.computed(()=>({[m]:!0})),y=R=>{c("update:modelValue",R),c("change",R)};let v=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={...Qe(r.attrs),ref:h,class:p.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,qo),hintText:v.value,hintVisible:f.value};return n.prop&&(V.prop=`${n.prop}_item`),l.h(o,V,O)}}}}const{componentName:Hc,create:Kc,scope:Wc}=ae("switch-item"),Rl=Kc(zc(Hc,Wc,$e)),jo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Yc(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)),c=l.ref(!1),{emitEvent:d}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),m=he(n,"modelValue",null,d),p=e,y=l.computed(()=>({[p]:!0})),v=N=>{d("update:modelValue",N),d("change",N)};let f=he(n,"hintText"),h=l.ref(!1);const R=N=>{let w=N.target.value;c.value=!0,de(f.value)||(h.value=!0),d("focus",w,N)},T=N=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),B.value||d("blur",w,N)},S=()=>{d("clear","")},B=l.ref(!1),q=N=>{B.value=N,d("visible-change",N),N||d("selected")},O=l.ref();return we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const V={...Qe(r.attrs),ref:O,class:y.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":v,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,jo),hintText:f.value,hintVisible:h.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,L)}}}}const{componentName:Uc,create:Gc,scope:Xc}=ae("tree-select-item"),Fl=Gc(Yc(Uc,Xc,$e)),Zc={},Qc={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 Jc(e,t){return l.openBlock(),l.createElementBlock("svg",Qc,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 ef=Ge(Zc,[["render",Jc]]),{create:tf}=ae("group-setting"),nf={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:"到底部"}},lf=tf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:ef,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...nf},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=Zr(),u=$=>$.length>1,s=()=>{const $=[],C=[...a.value];a.value=C.map((I,b)=>(I.visible!==!1&&$.push(I.prop),{...I,sortIndex:b})),a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),S.value=$},c=$=>{let C=null;if(typeof $=="string")C=document.querySelectorAll(`.fox-group[prop="${$}"] > div > .fox-item[prop]`);else if($&&typeof $=="object"){const I=$.$el??$;typeof I.querySelectorAll=="function"&&(C=I.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const D=[];return C.forEach(I=>{const b=I.querySelector(".label--string");let H="";b&&(H=b.textContent??"");const Z=I.getAttribute("prop")??"",Y=window.getComputedStyle(I,null).getPropertyValue("display");D.push({label:H,prop:Z,sortIndex:0,visible:Y!=="none"})}),D},d=()=>{if(!r){const $=c(e.groupRef??e.groupProp);if($.length===0)return!1;r=$}return!0},m=async($=!1)=>{const C=await i.load(e.groupProp),D=I=>{if(!I||!r)return;const b=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{b.some(Z=>{if(Z.prop===H.prop){const ne=Z.label;return Object.assign(Z,H),Z.label=ne,!0}return!1})}),a.value=b.sort((H,Z)=>H.sortIndex-Z.sortIndex),s(),$&&y(!1)};r?D(!0):hn(d,e.initDelay,5,50,!1,D)},p=()=>{const $=r??[];a.value=$.map(C=>({...C})),s(),y()},y=($=!0)=>{$&&i.save(e.groupProp,a.value);const C=a.value.map(D=>({...D}));t("change",C)},v=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),R=$=>{const C=[];a.value.forEach(I=>{$&&C.push(I.prop),I.visible=$}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),S.value=C,y()},T=()=>{p()},S=l.ref([]),B=$=>{a.value.forEach(D=>{const I=$.indexOf(D.prop)!==-1;D.visible=I}),f.value=!1,h.value=!1;const C=a.value.length;$.length===C?f.value=!0:$.length>0&&(h.value=!0),y()},q=()=>{m()};l.onMounted(()=>{m(!0)});const O={currentRow:null,index:null},N=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,N($)):null:null,V=$=>{const C=$.currentTarget;C&&C.dataset&&(O.index=C.dataset.index)},w=$=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null},j=$=>{const C=$.currentTarget;$.relatedTarget;const D=N(C);D&&($.preventDefault(),O.currentRow&&O.currentRow!==D&&O.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),O.currentRow=D)},g=$=>{$.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},L=$=>{const C=$.currentTarget,D=N(C);if(!D)return;$.preventDefault();const I=Number(O.index),b=Number(D.dataset.index);if(I!==b){if(I<b){const H=a.value[I];a.value.splice(I,1),a.value.splice(b,0,H)}else{const H=a.value[I];a.value.splice(I,1),a.value.splice(b+1,0,H)}s(),y()}},X=$=>{const C=a.value[$];a.value.splice($,1),a.value.splice(0,0,C),s(),y()},M=$=>{const C=a.value[$];a.value.splice($,1),a.value.push(C),s(),y()};n({refresh:()=>{r=null,m(!1)}});const E=new Map;let F=null;function _($){const C=document.createRange();return C.setStart($,0),C.setEnd($,$.childNodes.length),C.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:v,toTop:X,toBottom:M,onMouseOverForOverflowText:($,C,D)=>{const I=$.currentTarget;if(I){const b=Math.floor(I.offsetWidth);if(Math.floor(_(I))>b){let Z=E.get(C);if(Z){if(Z===F)return;Re.hide(Z)}Z=Re.show(I,D,{type:"text",placement:"top",closeOnClick:!1}),E.set(C,Z),F=Z}}},onMouseLeaveForOverflowText:($,C)=>{const D=E.get(C);D&&(Re.hide(D),D===F&&(F=null))},onMouseOverForTip:($,C)=>{const D=$.currentTarget;D&&(F&&Re.hide(F),F=Re.show(D,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:$=>{F&&(Re.hide(F),F=null)}}}}),of={class:"fox-group-setting"},rf={class:"fox-group-setting__header"},af={class:"fox-group-setting__body"},sf={class:"fox-group-setting__body-list","data-role":"container"},uf=["data-index","draggable"],cf=["onMouseover","onMouseleave"],ff={class:"tools-item"};function df(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"),p=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(p,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",of,[l.createElementVNode("div",rf,[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",af,[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",sf,[(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]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[6]||(t[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[7]||(t[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[8]||(t[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[9]||(t[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:y.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,y.prop,y.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,y.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(y.label),45,cf)]),_:2},1032,["label"]),l.createElementVNode("div",ff,[l.createVNode(d,{onClick:v=>e.toTop(y.sortIndex),onMouseover:t[1]||(t[1]=v=>e.onMouseOverForTip(v,e.toTopText)),onMouseleave:t[2]||(t[2]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:v=>e.toBottom(y.sortIndex),onMouseover:t[3]||(t[3]=v=>e.onMouseOverForTip(v,e.toBottomText)),onMouseleave:t[4]||(t[4]=v=>e.onMouseLeaveForTip(v))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,uf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Al=Ge(lf,[["render",df]]),hf=["aria-labelledby"],mf=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),gf=[mf],vf=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"},gf,14,hf))}}),pf=["aria-labelledby"],yf=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),bf=[yf],xf=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"},bf,14,pf))}}),wf=["aria-labelledby"],Sf=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),Tf=[Sf],Ml=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit: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"},Tf,14,wf))}}),Cf=["aria-labelledby"],$f=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),Ef=[$f],kf=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"},Ef,14,Cf))}}),Nf=["aria-labelledby"],Pf=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),If=[Pf],Of=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"},If,14,Nf))}}),Vf=["aria-labelledby"],Df=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Rf=[Df],Ff=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=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"},Rf,14,Vf))}}),Af={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}},zo=(e,t)=>t[e.textKey],Et=(e,t)=>t[e.valueKey],Mf=(e,t)=>t[e.visibleKey],Ho=(e,t)=>t[e.disabledKey],Lf=(e,t)=>{const o=t[e.doitKey];return ue(o)},Bf=(e,t)=>{const o=t[e.numKey];return o==null?null:Te(t[o])},Ko=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function _f(e,t,o,n=!1){return{props:{...Af},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=l.computed(()=>{const $={};return $[`${e}`]=!0,$}),s=l.computed(()=>{const $={};return $[`${e}__titles`]=!0,$[`${r.direction}`]=!0,r.align==="left"&&($.left=!0),r.scroll===!0&&($.scrollable=!0),r.shape&&($[`${r.shape}`]=!0),$}),c=l.computed(()=>({})),d=l.computed(()=>{if(!r.gutter)return 0;const $=me(r.gutter);return $<=0?0:$}),m=l.ref(r.modelValue);l.watch(()=>r.modelValue,$=>{m.value!==$&&(m.value=$,_(!1))});const p=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=l.computed(()=>{const $={};return f.value||($.display="none"),$}),v=l.ref(),f=l.ref(!1),h=()=>{const $=!f.value;R($)},R=$=>{const C=$;C?(f.value=C,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},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[$])return;const b=I[$];let H=0;r.direction==="vertical"?H=b.offsetTop-(D.offsetHeight-b.offsetHeight)/2:H=b.offsetLeft-(D.offsetWidth-b.offsetWidth)/2,N(D,H,C?0:.3,r.direction)},N=($,C,D,I)=>{let b=0;const H=I==="horizontal"?$.scrollLeft:$.scrollTop,Z=D===0?1:Math.round(D*1e3/16);function ne(){I==="horizontal"?$.scrollLeft+=(C-H)/Z:$.scrollTop+=(C-H)/Z,++b<Z&&al(ne)}ne()},V=($,C)=>{const D=Et(r,$),I={};return I[`${e}__titles-item`]=!0,I.disabled=Ho(r,$),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0),r.ellipsis&&(I.ellipsis=!0),C&&(C.class&&(I[`${C.class}`]=!0),C.disabled===!0&&(I.disabled=C.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 C&&C.style&&Object.assign(D,C.style),D},j=($,C)=>`${Et(r,$)??C}`,g=($,C)=>{const D=Et(r,$),I={};I[`${e}__popup-item`]=!0,I.disabled=Ho(r,$),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0);const b=Ko(r,$,C);return b&&b.disabled===!0&&(I.disabled=b.disabled),I},L=l.computed(()=>(r.data??[]).filter(C=>Mf(r,C)!==!1)),X=($,C)=>{const D=Et(r,$);if(m.value==D)return;const I=()=>{m.value=D,r.scroll&&O(C,!1),i("update:modelValue",D),i("change",$,C)};if(typeof r.beforeChange=="function"){const b=r.beforeChange($,C);pr(b)?b.then(H=>{H!==!1&&I()}).catch(()=>{I()}):b!==!1&&I()}else I()},M=($,C)=>function(){X($,C)},E=($,C)=>{X($,C),R(!1)},F=($,C)=>function(){E($,C)},_=$=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(D=>Et(r,D)===m.value);C!==-1&&O(C,$)};l.watch(()=>r.data,()=>{setTimeout(_,0)}),l.onMounted(()=>{_(!0)});const U=($,C)=>{if(a.item)return a.item({item:$,index:C});const D=Ko(r,$,C),I=[];if(a.text){const ne=a.text({item:$,index:C});I.push(ne)}else{const ne=[];if(D?.doit===!0||Lf(r,$)){const K={class:[`${e}__titles-item-tip`,"doit"]},G=l.h("view",K);ne.push(G)}const Y=D?.num??Bf(r,$);if(Y){let K="";const G=Te(Y);G>=100?K="99+":K=`${G}`;const P={class:[`${e}__titles-item-tip`,"num"]},z=l.h("view",P,[K]);ne.push(z)}const W={class:`${e}__titles-item-text`};ne.push(zo(r,$));const k=l.h("view",W,ne);I.push(k)}const b={class:`${e}__titles-item-line`},H=l.h("view",b);I.push(H);const Z={ref:q(C),class:V($,D),style:w($,D),key:j($,C),onClick:M($,C)};return l.h("view",Z,I)},Q=()=>{const $=a.default?a.default():[];if($.length===0)for(let D=0;D<L.value.length;D++){const I=L.value[D],b=U(I,D);$.push(b)}const C={ref:T,class:s.value,style:c.value};return l.h("view",C,$)},A=()=>{let $=null;a.navigation?$=a.navigation():$=l.h(o);const C={class:`${e}__navigation`,onClick:h};return l.h("view",C,[$])},te=()=>{const $=[];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=zo(r,I);const H={class:g(I,D),key:j(I,D),onClick:F(I,D)},Z=l.h("view",H,[b]);$.push(Z)}const C={class:p.value,style:y.value};return l.h("view",C,$)};return()=>{const $=[],C=Q();if($.push(C),r.showQuickNavigation){const I=A();$.push(I);const b=te();$.push(b)}const D={class:u.value};return l.h("view",D,$)}}}}const{create:qf,componentName:jf,scope:zf}=ae("tabs-bar"),Ll=qf(_f(jf,zf,xf,!1)),ea=Symbol("TabsStatesKey"),Hf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Wo=10;function ta(e,t){return e>t&&e>Wo?"horizontal":t>e&&t>Wo?"vertical":""}function Mt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Lt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ta(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 Kf(){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",p=()=>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=ta(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:p}}const Wf=15,Yf=300,Uf=200;function Gf(e,t,o=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*o}function Yo(e,t=0,o,n,r=Uf){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 Xf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(t,o,n,r=1){this.onStart=t,this.onMove=o,this.onEnd=n,this.momentumReduceRatio=r,this.isTouch=Mt()}open(t){this.el=t;const o=Lt(),n=(r,a,i)=>{const u={delta:r,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;o.start(r),this.transitionEndTrigger=()=>{t.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,t.removeEventListener("transitionend",this.transitionend),t.addEventListener("transitionend",this.transitionend),t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;o.move(r);let a=0;if(this.direction==="horizontal"){if(o.isVertical())return;a=o.state.deltaX}else{if(o.isHorizontal())return;a=o.state.deltaY}n(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;t.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}r=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}r=o.state.deltaY}const a=o.state.duration;a<Yf&&Math.abs(r)>Wf?(r=Gf(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 Zf(e,t,o,n=1){return new Xf(e,t,o,n)}function Qf(e,t,o=!1){return{props:{...Hf},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 N={name:O};u.current.value===O&&(N.loaded=!0),i.value.push(N),l.triggerRef(i)},remove:O=>{const N=i.value.findIndex(V=>V.name===O);N!==-1&&i.value.splice(N,1)},isLoaded:O=>{if(!n.lazy)return!0;const N=i.value.findIndex(V=>V.name===O);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};l.provide(ea,u);const s=O=>{const N=i.value.findIndex(V=>V.name===O);N!==-1&&(i.value[N].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([O,N])=>{u.current.value!==O&&(u.current.value=O??"",s(O??"")),u.direction.value!==N&&(u.direction.value=N)});const c=l.ref(null),d=l.ref(null),m=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let p=!0;const y=l.computed(()=>{const O={},N=i.value.length;if(N<=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=`${N*u.tabHeight.value}px`,V!==-1&&(O.transform=`translate(0, -${V*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(O.width=`${N*u.tabWidth.value}px`,V!==-1&&(O.transform=`translate(-${V*u.tabWidth.value}px, 0)`)),p&&(p=!1,O.transition="transform 0s ease"),O}),v={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=O=>{const N=i.value.length,V=i.value.findIndex(w=>w.name===u.current.value);v.moved=0,O.direction==="vertical"?(v.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),v.max=u.tabHeight.value/4,v.start=-V*u.tabHeight.value,v.itemDistance=u.tabHeight.value):(v.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),v.max=u.tabWidth.value/4,v.start=-V*u.tabWidth.value,v.itemDistance=u.tabWidth.value)},h=O=>{const N=d.value;if(!N)return;let V=v.start+O.delta;if(V>v.max?V=v.max:V<v.min&&(V=v.min),O.type==="move")Yo(N,V,"move",O.direction,300);else if(O.type==="end"){let w=Math.floor(Math.abs(V)*1/v.itemDistance);const j=Math.abs(V)%v.itemDistance;v.start>V?j>=v.itemDistance*v.triggerAutoMoveRatio&&(w+=1):j>v.itemDistance-v.itemDistance*v.triggerAutoMoveRatio&&(w+=1),V=-1*w*v.itemDistance,Yo(N,V,"end",O.direction,300),v.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=yn(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=Zf(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},N=l.h("view",O,[a?.default?.()]),V={class:m.value,ref:c};return l.h("view",V,[N])}}}}const{create:Jf,componentName:ed,scope:td}=ae("tabs-container"),Bl=Jf(Qf(ed,td,!1)),nd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function ld(e,t,o){return{props:{...nd},setup(n,{emit:r,slots:a}){const i=l.inject(ea);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`},p=n.emptyIcon??o,y=l.h(p,m),v={class:`${e}__empty-text`},f=n.emptyText??"Loading",h=l.h("view",v,[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:od,componentName:rd,scope:ad}=ae("tabs-pane"),_l=od(ld(rd,ad,Ml)),id={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 sd(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Uo(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Go(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function ud(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function _n(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Xo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Zo(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function qn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class cd{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=Ue(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(tt(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function fd(){const e=l.getCurrentInstance();return new cd(e.proxy)}function dd(e,t,o,n){return{props:{...id},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=fd(),c=l.ref([]),d=l.computed(()=>c.value.filter(C=>ud(r,C)!==!1)),m=l.ref(-1),p=()=>{const C=r.modelValue,D=d.value.findIndex(I=>Uo(r,I)===C);m.value!==D&&(m.value=D,r.scroll&&te(D))};l.watch([()=>r.modelValue,d],()=>{p()});const y=C=>m.value===C,v=C=>{if(C<0&&C>=d.value.length)return!1;const D=d.value[C],b=(qn(r,D,C)??{}).status??_n(r,D);return y(C)||b},f=l.computed(()=>{const C={[u]:!0};return r.mode?C[`is-${r.mode}`]=!0:r.direction&&(C[`is-${r.direction}`]=!0),r.scroll&&(C["is-scroll"]=!0),C}),h=l.computed(()=>({})),R=(C,D,I,b,H)=>{const Z={[`${u}__step`]:!0};return H&&(Z[`${H}`]=!0),Z[`${T.value}`]=!0,b&&(Z["is-doit"]=!0),C===m.value?Z["is-active"]=!0:D==="done"?Z["is-done"]=!0:D==="error"?Z["is-error"]=!0:D==="half"?Z["is-half"]=!0:I?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},T=l.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),S=(C,D={})=>{const I={...D};return T.value==="start"&&C===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=(C,D)=>{let I={};if(D<d.value.length-1){const b=D+1;v(D)&&v(b)?r.direction==="vertical"?I.height="100%":I.width="100%":I.opacity="0"}return I},q=C=>d.value.length-1===C,O=(C,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&&te(D);const H=Uo(r,C);i("update:modelValue",H);const Z={fromIndex:I,currentIndex:b,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Z)},N=l.ref(!0),V=async(C,D)=>{try{const I=await s.load("stesbar",C,D);Array.isArray(I)&&(c.value=I),N.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([C,D])=>{C&&V(C,D)},{immediate:!0});const w=(C,D,I,b,H)=>{let Z=null;if(a.icon)Z=a.icon({item:C,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;Z=l.h(W,Y)}else{const Y=I??`${D+1}`;Z=l.h("span",{},[Y])}const ne={class:"fox-steps-bar__icon",onClick:()=>{H||O(C,D)}};return l.h("view",ne,[Z])},j=(C,D,I)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:B(C,D)});return l.h("view",{class:"fox-steps-bar__line"},[b])},g=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const I={};r.iconSize&&(I.width=r.markIconSize,I.height=r.markIconSize);const b=r.markIcon??n;C=l.h(b,I)}return l.h("view",{class:"fox-steps-bar__mark"},[C])},L=(C,D,I,b,H)=>{const Z=[];if(!q(D)){const W=j(C,D);Z.push(W)}const ne=w(C,D,I,b,H);Z.push(ne);const Y={class:"fox-steps-bar__head"};return l.h("view",Y,Z)},X=(C,D,I,b)=>{let H=null;a.main?H=a.main({item:C,index:D,status:I}):H=sd(r,C);const Z={class:"fox-steps-bar__main",onClick:()=>{b||O(C,D)}};return l.h("view",Z,[H])},M=(C,D,I)=>{let b=null;if(a.sub){b=a.sub({item:C,index:D,status:I});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[b])}return null},E=(C,D)=>{const I=qn(r,C,D)??{},b=I.status??_n(r,C);let H=Go(r,C);I.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=I.label??Zo(r,C),ne=[],Y=w(C,D,Z,b,H);Y&&ne.push(Y);const W=X(C,D,b,H);if(W&&ne.push(W),!q(D)){const J=j(C,D);J&&ne.push(J)}const k=l.h("view",{class:"fox-steps-bar__head"},ne),K=I.class,G=I.style??{};let P=Xo(r,C);I.doit===!0&&(P=!0);const z={ref:A(D),class:R(D,b,H,P,K),style:S(D,G)};return l.h("view",z,[k])},F=(C,D)=>{const I=qn(r,C,D)??{},b=I.status??_n(r,C);let H=Go(r,C);I.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=I.label??Zo(r,C),ne=[],Y=r.layout;for(let P of Y)if(P==="head"){const z=L(C,D,Z,b,H);ne.push(z)}else if(P==="main"){const z=X(C,D,b,H);ne.push(z)}else if(P==="sub"){const z=M(C,D,b);ne.push(z)}else if(P==="mark"){const z=g();ne.push(z)}const W=I.class,k=I.style??{};let K=Xo(r,C);I.doit===!0&&(K=!0);const G={ref:A(D),class:R(D,b,H,K,W),style:S(D,k)};return l.h("view",G,ne)},_=l.ref(),U=l.ref([]),Q=(C,D)=>{U.value[D]=C},A=C=>D=>{Q(D,C)},te=(C,D)=>{const I=_.value,b=U.value;if(!I||!b||!b[C])return;const H=b[C];let Z=0;r.direction==="vertical"?Z=H.offsetTop-(I.offsetHeight-H.offsetHeight)/2:Z=H.offsetLeft-(I.offsetWidth-H.offsetWidth)/2,$(I,Z,.3,r.direction)},$=(C,D,I,b)=>{let H=0;const Z=b==="horizontal"?C.scrollLeft:C.scrollTop,ne=Math.round(I*1e3/16);function Y(){b==="horizontal"?C.scrollLeft+=(D-Z)/ne:C.scrollTop+=(D-Z)/ne,++H<ne&&al(Y)}Y()};return()=>{const C=[];if(r.mode==="simple")for(let I=0;I<d.value.length;I++){const b=d.value[I],H=E(b,I);C.push(H)}else for(let I=0;I<d.value.length;I++){const b=d.value[I],H=F(b,I);C.push(H)}const D={ref:_,class:f.value,style:h.value};return l.h("view",D,C)}}}}const{componentName:hd,create:md,scope:gd}=ae("steps-bar"),ql=md(dd(hd,gd,Of,Ff)),vd=Symbol.for("InnerPageScopeKey"),pd=Symbol.for("PageWrapperKey");function yd(e,t){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,n){l.provide(vd,!0);const r={};l.provide(pd,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{create:bd}=ae("dialog-item"),jl=bd(yd());let kt=0;const Qo="fox-overflow-hidden",Jo=()=>at?document.body:{classList:[]},xd=e=>[()=>{if(e())try{!kt&&Jo().classList.add(Qo),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&Jo().classList.remove(Qo)}catch{}}],wd={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:Sd,create:Td}=ae("overlay"),Cd=Td({props:{...wd},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=xd(()=>e.lockScroll),r=l.computed(()=>({[Sd]:!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 $d(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=Ge(Cd,[["render",$d]]),Ed={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:{}}},na=2e3;let er=na;const kd=(e,t)=>({components:t,props:{...Ed},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!==na&&(er=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++er,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)},p=f=>{n("click-overlay",f),o.closeOnClickOverlay&&n("update:visible",!1)},y=f=>{n("opend",f)},v=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:p,onOpened:y,onClosed:v}}}),{componentName:Nd,create:Pd}=ae("popup"),Id=Pd(kd(Nd,{FoxOverLay:kn,Close:kf}));function Od(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 zl=Ge(Id,[["render",Od]]),{create:Vd}=ae("toast"),Dd=Vd({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()}}}}),Rd={key:1,class:"fox-toast-title"},Fd=["innerHTML"];function Ad(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Rd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Fd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Hl=Ge(Dd,[["render",Ad]]),Md={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"}},Ld=(e,t,o)=>({props:{...Md},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}=Fr(),{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)},p=l.ref({}),y=w=>{let g=w.target.value;s.active=!0,p.value=n.focusStyle,a("focus",g,w)},v=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))),p.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})),N=l.ref(null);l.onMounted(()=>{n.autofocus&&N.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:N,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:v,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 X={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...p.value}};return l.h("view",X,w)};return()=>{const w=[];if(n.label){const L={class:`${e}__search-label`},X=l.h("span",L,[n.label]);w.push(X)}if(r.leftout){const L={class:[`${e}__search-icon`,`${e}__left-search-icon`]},X=l.h("view",L,[r.leftout()]);w.push(X)}const j=V();if(w.push(j),r.rightout){const L={class:[`${e}__search-icon`,`${e}__right-search-icon`]},X=l.h("view",L,[r.rightout()]);w.push(X)}const g={class:`${e}`,style:c.value};return l.h("view",g,w)}}}),{componentName:Bd,create:_d,scope:qd}=ae("searchbar"),Kl=_d(Ld(Bd,qd,Ie.CircleClose)),jd=/scroll|auto|overlay/i,la=window;function zd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Hd(e,t=la){let o=e;for(;o&&o!==t&&zd(o);){const{overflowY:n}=window.getComputedStyle(o);if(jd.test(n))return o;o=o.parentNode}return t}function oa(e,t=la){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Hd(e.value,t))}),o}const ra=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Kd={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 Wd(e,t,o){return{props:{...Kd},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=oa(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),p=T=>T?T.offsetTop+p(T.offsetParent):0,y=()=>{let T=0,S=0,B="down";if(c.value==window){const q=ra();s.value&&(T=p(s.value)+s.value.offsetHeight-q-window.innerHeight),S=q}else{const{scrollHeight:q,clientHeight:O,scrollTop:N}=c.value;T=q-O-N,S=N}return d.beforeScrollTop>S?B="up":B="down",d.beforeScrollTop=S,r("scroll-change",S),T<=n.threshold&&B=="down"},v=()=>{fr(()=>{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",v,n.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",v,n.useCapture)};l.onMounted(()=>{f(),n.immediate&&v()}),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"},X=l.h("view",L,[u.loadText.value]);V=[g,X]}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),N={class:m.value,ref:s};return l.h("view",N,[S,O])}}}}const{componentName:Yd,create:Ud,scope:Gd}=ae("infinite-loading"),Wl=Ud(Wd(Yd,Gd,Ml)),Xd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Zd=(e,t,o)=>({props:{...Xd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Lt(),c=l.ref(),d=oa(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=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""}}),v=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=l.computed(()=>{const N={};return n.headHeight!=50&&(N.height=Pe(n.headHeight)),N}),h=N=>{const V=+(n.pullDistance||n.headHeight);let w=N;return N>V&&(N<V*2?w=(N+V)/2:w=V+N/4),Math.round(w)},R=(N,V)=>{const w=+(n.pullDistance||n.headHeight);m.distance=N,V?m.status="loading":N===0?m.status="normal":N<w?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:N})},T=()=>m.status!=="loading"&&m.status!=="complete",S=()=>d.value==window?ra()==0:d.value&&d.value.scrollTop==0,B=N=>{T()&&(S()?(s.start(N),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},q=N=>{T()&&m.moving&&(s.move(N),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(N.cancelable&&N.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,N=>{N?R(+n.headHeight,!0):R(0)}),()=>{const N=[];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&&N.push(V);const w={class:["fox-pull-refresh-container-topbox-text"]},j=l.h("dive",w,[y.value]);N.push(j);const g={class:["fox-pull-refresh-container-topbox"],style:f.value},L=l.h("div",g,N),X={class:"fox-pull-refresh-container",style:v.value},M=l.h("div",X,[L,a?.default?.()]),E={ref:c,class:p.value};return Mt()?Object.assign(E,{onTouchstart:B,onTouchmove:q,onTouchend:O}):Object.assign(E,{onMousedown:B,onMousemove:q,onMouseup:O}),l.h("div",E,[M])}}}),{componentName:Qd,create:Jd,scope:eh}=ae("pull-refresh"),Yl=Jd(Zd(Qd,eh,Ml));function th(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},p=n.default?n.default():[],y=l.h("div",m,p),v={class:a.value};return o.textPosition==="right"?l.h("div",v,[d,y]):l.h("div",v,[y,d])}}}}const{componentName:nh,create:lh}=ae("indicator"),Ul=lh(th(nh));function oh(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 rh={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 ah(e,t,o,n=!1){return{props:{...rh},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 p=()=>{const S=i.value;if(!S)return;const B=S.clientWidth;oh(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 v=null;const f=S=>{v||(v=setTimeout(()=>{p(),v=null},r.showAfter??0))},h=S=>{v&&(clearTimeout(v),v=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=Te(r.digits),g=Te(r.decimalLength),L=ue(r.autoPadding);let X=`${V[0].children}`,M=X.split("").reverse().join("");M=sn(M,g,L,j,r.separator),X=M.split("").reverse().join(""),r.highlightFilter!==void 0&&(B=c(X,S)),B||(S.innerHTML=X,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 N={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",N,[O,B])}}}}const{componentName:ih,create:sh,scope:uh}=ae("text"),Gl=sh(ah(ih,uh,Re,!1)),ch={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 fh(e,t,o){return{props:{...ch},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 p={class:c.value},y=o(n.icon,p);return y&&m.push(y),l.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:dh,create:hh,scope:mh}=ae("more-button"),gh=(e,t)=>(e=e??Ie.ArrowUp,l.h(x.ElIcon,t,{default:()=>[l.h(e)]})),Xl=hh(fh(dh,mh,gh));function vh(e){e.stopPropagation()}let ph=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Mt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Lt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),vh(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 yh(e,t){return new ph(e,t)}const bh={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]}},xh=(e,t,o,n=!1)=>({props:{...bh},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")},p=l.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},v={x:0,y:0},R=yh(T=>{if(!p.value)return;const S=p.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,v.x=u.left,v.y=u.top},T=>{if(!p.value)return;const S=p.value;y(),u.left=v.x+T.x,u.top=v.y+T.y,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&p.value){const T=[p.value];R.open(T)}}),l.onBeforeUnmount(()=>{r.draggable&&p.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=>{p.value=q},class:s.value,style:c.value,onClick:m};return l.h("view",B,T)}}}),{componentName:wh,create:Sh,scope:Th}=ae("floating-button"),Zl=Sh(xh(wh,Th,vf,!1));function Ch(e){return e===window}const aa=e=>{const t=l.unref(e);if(Ch(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:$h,create:Eh}=ae("tour"),kh=Eh({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=$h,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:v,maskWidth:f,maskHeight:h}=e,{width:R,height:T,left:S,top:B}=r.value,q=e.steps[n.active].offset??v,O=[S+R/2,B+T/2],N=Number(f||R),V=Number(h||T);return{width:`${N+ +q.left+q.right}px`,height:`${V+q.top+q.bottom}px`,top:`${O[1]-V/2-+q.top}px`,left:`${O[0]-N/2-+q.left}px`}}),u=v=>{v=="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=v=>v.popoverWidth??e.width,c=v=>v.location??e.location,d=()=>{const v=document.querySelector(`${e.steps[n.active].target}`),f=aa(v);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)},p=()=>{e.closeOnClickOverlay&&m()},y=(v,f=0)=>{v&&d(),e.steps,n.active=f,n.showTour=v,n.showPopup=v};return l.onMounted(()=>{y(e.modelValue,e.current)}),l.watch(()=>e.modelValue,v=>{y(v)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:p}}}),Nh={key:0,class:"fox-tour__content"},Ph={key:0,class:"fox-tour__content-top"},Ih={class:"fox-tour__content-inner"},Oh={class:"fox-tour__content-bottom"},Vh={class:"fox-tour__content-bottom-init"},Dh={class:"fox-tour__content-bottom-operate"},Rh={key:1,class:"fox-tour__content fox-tour__content-tile"},Fh={class:"fox-tour__content-inner"};function Ah(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",Nh,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Ph,[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",Ih,l.toDisplayString(c.content),1),l.createElementVNode("div",Oh,[l.createElementVNode("div",Vh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Dh,[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",Rh,[l.createElementVNode("div",Fh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ql=Ge(kh,[["render",Ah]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class Mh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Mt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Lt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function tr(e,t){return new Mh(e,t)}const nr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let vt=[];const lr=e=>{const t=e;t.key==="Escape"&&vt.forEach(o=>o(t))},Lh=e=>{l.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",lr),nr&&vt.push(e)}),l.onBeforeUnmount(()=>{vt=vt.filter(t=>t!==e),vt.length===0&&nr&&document.removeEventListener("keydown",lr)})},jn="fox-focus-trap.focus-after-trapped",zn="fox-focus-trap.focus-after-released",Bh="fox-focus-trap.focusout-prevented",or={cancelable:!0,bubbles:!1},_h={cancelable:!0,bubbles:!1},rr="foxFocusAfterTrapped",ar="foxFocusAfterReleased",qh=Symbol("foxFocusTrap"),Jl=l.ref(),Nn=l.ref(0),eo=l.ref(0);let jt=0;const ia=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},jh=(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},ir=(e,t)=>{for(const o of e)if(!jh(o,t))return o},zh=e=>{const t=ia(e),o=ir(t,e),n=ir(t.reverse(),e);return[o,n]},Hh=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),eo.value=window.performance.now(),e!==o&&Hh(e)&&t&&e.select()}};function sr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Kh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=sr(e,n),e.unshift(n)},remove:n=>{e=sr(e,n),e[0]?.resume?.()}}},Wh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(lt(n,t),document.activeElement!==o)return},ur=Kh(),Yh=()=>Nn.value>eo.value,zt=()=>{Jl.value="pointer",Nn.value=window.performance.now()},cr=()=>{Jl.value="keyboard",Nn.value=window.performance.now()},Uh=()=>(l.onMounted(()=>{jt===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",cr)),jt++}),l.onBeforeUnmount(()=>{jt--,jt<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",cr))}),{focusReason:Jl,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:eo}),Ht=e=>new CustomEvent(Bh,{..._h,detail:e}),{create:Gh}=ae("focus-trap"),Xh={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"}},Zh=Gh({props:Xh,emits:[rr,ar,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Uh();Lh(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,N=h==="Tab"&&!R&&!T&&!S,V=document.activeElement;if(N&&V){const w=B,[j,g]=zh(w);if(j&&g){if(!q&&V===g){const X=Ht({focusReason:i.value});o("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),O&&lt(j,!0))}else if(q&&[j,w].includes(V)){const X=Ht({focusReason:i.value});o("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),O&&lt(g,!0))}}else if(V===w){const X=Ht({focusReason:i.value});o("focusout-prevented",X),X.defaultPrevented||f.preventDefault()}}};l.provide(qh,{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",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",p))});const c=f=>{o(rr,f)},d=f=>o(ar,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:lt(a,!0))},p=f=>{const h=l.unref(n);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const R=f.relatedTarget;!il(R)&&!h.contains(R)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const T=Ht({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||lt(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){ur.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const T=new Event(jn,or);f.addEventListener(jn,c),f.dispatchEvent(T),T.defaultPrevented||l.nextTick(()=>{let S=e.focusStartEl;vr(S)||(lt(S),document.activeElement!==S&&(S="first")),S==="first"&&Wh(ia(f),!0),(document.activeElement===h||S==="container")&&lt(f)})}}}function v(){const f=l.unref(n);if(f){f.removeEventListener(jn,c);const h=new CustomEvent(zn,{...or,detail:{focusReason:i.value}});f.addEventListener(zn,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Yh())&&lt(r??document.body,!0),f.removeEventListener(zn,c),ur.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&y(),l.watch(()=>e.trapped,f=>{ue(f)?y():v()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&v()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:Qh,create:Jh}=ae("floating-window"),em=Symbol.for("InnerPageScopeKey"),tm=Symbol.for("PageWrapperKey"),nm={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}},lm=Jh({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Zh},props:{...nm},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Qh,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(N.value)||(P.width=N.value),P}),p=l.computed(()=>e.closeIcon??Ie.Close),y=l.computed(()=>e.collapseIcon??Ie.ArrowUp),v=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=l.computed(()=>e.expandText??e.title??"展开"),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)||""),N=l.computed(()=>De(e.width)||""),V=l.ref(ue(e.collapse)),w=(P,z=!0)=>{V.value!==P&&(V.value=P,P?C():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(em,!0);const L={setCollapse:w,setFixedNavVisible:P=>{A.value=P}};l.provide(tm,L);const X=()=>{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 te=null;const $=()=>{typeof te=="function"&&(te(),te=null)},C=()=>{M.value&&M.value.classList.add("slide-in"),A.value=!0,te=()=>{M.value&&M.value.classList.remove("slide-in")}},D=()=>{M.value&&M.value.classList.add("slide-out"),te=()=>{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=tr(P=>{if(!S.value)return;const z=S.value;if(I(),e.origin==="left-top")i.value=z.offsetLeft,u.value=z.offsetTop,b.x=i.value,b.y=u.value;else if(e.origin==="left-bottom"){const J=document.documentElement.clientHeight||document.body.clientHeight;i.value=z.offsetLeft,c.value=J-(z.offsetTop+z.offsetHeight),b.x=i.value,b.y=c.value}else if(e.origin==="right-bottom"){const J=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=J-(z.offsetLeft+z.offsetWidth),c.value=le-(z.offsetTop+z.offsetHeight),b.x=s.value,b.y=c.value}else{const J=document.documentElement.clientWidth||document.body.clientWidth;s.value=J-(z.offsetLeft+z.offsetWidth),u.value=z.offsetTop,b.x=s.value,b.y=u.value}},P=>{if(!S.value)return;const z=S.value;I(),e.origin==="left-top"?(i.value=b.x+P.x,u.value=b.y+P.y,z.style.left=De(i.value),z.style.top=De(u.value)):e.origin==="left-bottom"?(i.value=b.x+P.x,c.value=b.y-P.y,z.style.left=De(i.value),z.style.bottom=De(c.value)):e.origin==="right-bottom"?(s.value=b.x-P.x,c.value=b.y-P.y,z.style.right=De(s.value),z.style.bottom=De(c.value)):(s.value=b.x-P.x,u.value=b.y+P.y,z.style.right=De(s.value),z.style.top=De(u.value))}),Y={x:0,y:0},K=tr(P=>{M.value&&(Y.x=M.value.offsetLeft,Y.y=M.value.offsetTop)},P=>{if(!M.value)return;const z=Y.y+P.y;_.value=`${z}px`}),G=()=>{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&&(G(),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:p,onClose:X,dialogRef:S,headerRef:B,onClickToggle:j,collapseIcon:y,collapseText:v,collapseTextClasses:R,collapseIconClasses:T,expandIcon:f,expandText:h,isShowFixedNav:A,fixedNavRef:M,fixedNavClasses:F,fixedNavStyles:U,onAnimationEnd:$,teleportDisabled:r,fixedNavTeleportDisabled:E}}}),om={ref:"headerRef",class:"fox-floating-window__header"},rm={class:"fox-floating-window__title"},am={class:"fox-floating-window__tools"},im={class:"fox-floating-window__body"},sm={class:"fox-floating-window__fixednav__text"};function um(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",om,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",rm,l.toDisplayString(e.title),1),l.createElementVNode("div",am,[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",im,[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",sm,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const to=Ge(lm,[["render",um]]),cm={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 fm(e,t,o=!1){return{props:{...cm},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),p=l.ref(n.placement),y=l.ref(!1),v=l.ref(!1),f=l.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,R=(A,te,$,C,D,I,b,H=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,Y=A.split("-");let W=[];H?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 k={top:null,right:null,bottom:null,left:null},K=[];for(let G=0;G<W.length;G++){const P=W[G];if(K[0]=P,Y[1]&&(K[1]=Y[1]),P==="top"){const z=$-b-n.arrowSize/2-n.offset;if(z>=0){k.top=z;let J=0;Y[1]==="start"?J=te:Y[1]==="end"?J=te+C-I:J=te+C/2-I/2;const le=Z-J-I;le<0?(J+=le,S.value=-le):S.value=0,k.left=J<0?0:J;break}}else if(P==="bottom"){const z=$+D+n.arrowSize/2+n.offset;if(z+b<=ne){k.top=z;let J=0;Y[1]==="start"?J=te:Y[1]==="end"?J=te+C-I:J=te+C/2-I/2;const le=Z-J-I;le<0?(J+=le,S.value=-le):S.value=0,k.left=J<0?0:J;break}}else if(P==="left"){const z=te-I-n.arrowSize/2-n.offset;if(z>=0){k.left=z;let J=0;Y[1]==="start"?J=$:Y[1]==="end"?J=$+D-b:J=$+D/2-b/2,k.top=J<0?0:J;break}}else if(P==="right"){const z=te+C+n.arrowSize/2+n.offset;if(z+I<=Z){k.left=z;let J=0;Y[1]==="start"?J=$:Y[1]==="end"?J=$+D-b:J=$+D/2-b/2,k.top=J<0?0:J;break}}}return{bestPlacement:K.join("-"),bestInsetRect:k}},T=()=>{const A=n.visible,te=n.autoFit;if(!at||A===!1)return;if(n.reference){const b=h(),H=vl(b);s.value=H.x,c.value=H.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 $=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:D,bestInsetRect:I}=R(n.placement,s.value,c.value,d.value,m.value,$,C,te);p.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(),v.value=!0},0)):v.value=!1});const O=l.computed(()=>q.value&&N.value),N=l.ref(!0),V=qe(A=>{const te=A[0];te&&(N.value=te.isIntersecting)},10),w=new IntersectionObserver(V);l.watch([()=>n.reference,()=>n.referenceInset],([A,te],[$,C])=>{!A&&!te||(setTimeout(()=>{T()},0),n.autoFit&&($&&(It.unwatch($,B),w.unobserve($)),A&&(It.watch(A,B),w.observe(A))))},{immediate:!0}),l.onBeforeUnmount(()=>{n.reference&&(It.unwatch(n.reference,B),w.unobserve(n.reference),w.disconnect())});const j=l.computed(()=>{const A={[e]:!0};return p.value.startsWith("top")?A["is-top"]=!0:p.value.startsWith("right")?A["is-right"]=!0:p.value.startsWith("bottom")?A["is-bottom"]=!0:p.value.startsWith("left")&&(A["is-left"]=!0),A[`is-${n.effect}`]=!0,!v.value&&O.value&&(A["is-opacity"]=!0),v.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)},X=()=>{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`,p.value==="top"?(A.left="50%",A.bottom="0",A.transform="translate(-50%, 50%)"):p.value==="top-start"?(A.left=`${n.arrowOffset+S.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):p.value==="top-end"?(A.right=`${n.arrowOffset-S.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):p.value==="right"?(A.left="0",A.top="50%",A.transform="translate(-50%, -50%)"):p.value==="right-start"?(A.left="0",A.top=`${n.arrowOffset}px`,A.transform="translate(-50%, 50%)"):p.value==="right-end"?(A.left="0",A.bottom=`-${n.arrowOffset}px`,A.transform="translate(-50%, 50%)"):p.value==="bottom"?(A.left="50%",A.top="0",A.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(A.left=`${n.arrowOffset+S.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(A.right=`${n.arrowOffset-S.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):p.value==="left"?(A.right="0",A.top="50%",A.transform="translate(50%, -50%)"):p.value==="left-start"?(A.right="0",A.top=`${n.arrowOffset}px`,A.transform="translate(50%, -50%)"):p.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:te}=A;f.value.contains(te)||(q.value=!1,r("update:visible",!1))};return i({doLayout:T}),()=>{if(!y.value)return null;const A=[],te=X();te&&A.push(te);const $=[],C=M();if(C&&$.push(C),a.default){const H=a.default();$.push(H)}const D=_();D&&$.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:()=>$});return A.push(b),A}}}}const{componentName:dm,create:hm,scope:mm}=ae("popover-dialog"),no=hm(fm(dm,mm,!1));function gm(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Dr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{create:vm}=ae("domain-provider"),lo=vm(gm()),pm={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 ym(e,t){return{inheritAttrs:!1,props:pm,setup(o,{slots:n}){if(at&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,y)=>{if(d===null){a.set(p,{visible:null,callback:y});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:y}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let s=o.initialVisibleObserverSize;vi({acquire:()=>{const p=s>0;return s--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(p,y,v)=>{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:p,rootMargin:y,threshold:v}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([p,y])=>{if(y||!p||d)return;let v=null;typeof p=="string"?v=document.querySelector(p):v=p,v&&m(v,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:bm}=ae("rolling-provider"),oo=bm(ym()),xm=[cl,dl,hl,ml,gl,$e,pl,yl,At,bl,xl,wl,Sl,Tl,Cl,$l,El,kl,Nl,Pl,En,Il,Ol,Vl,Dl,Rl,Fl,Al,Ll,Bl,_l,ql,jl,kn,zl,Hl,Kl,Wl,Yl,Dt,$n,Ul,Gl,Xl,Zl,Ql,to,no,lo,oo],wm=new Ga(xm,[Qa],"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=sl;exports.BroadcastKey=be;exports.CascaderItem=El;exports.CheckboxItem=Vl;exports.Content=ml;exports.DataItemsKey=gt;exports.DateItem=wl;exports.DateUtils=Be;exports.DialogItem=jl;exports.Domain=mn;exports.DomainKey=Le;exports.DomainProvider=lo;exports.FloatingButton=Zl;exports.FloatingWindow=to;exports.FooterBar=hl;exports.FoxAutocompleteItem=kl;exports.FoxCascaderItem=El;exports.FoxCheckboxItem=Vl;exports.FoxContent=ml;exports.FoxDateItem=wl;exports.FoxDialogItem=jl;exports.FoxDomainProvider=lo;exports.FoxFloatingButton=Zl;exports.FoxFloatingWindow=to;exports.FoxFooterBar=hl;exports.FoxGroup=gl;exports.FoxGroupSetting=Al;exports.FoxHeaderBar=dl;exports.FoxHintText=At;exports.FoxIndicator=Ul;exports.FoxInfiniteLoading=Wl;exports.FoxInputItem=bl;exports.FoxInputNumberItem=$l;exports.FoxItem=$e;exports.FoxMapping=Dt;exports.FoxMoneyItem=Cl;exports.FoxMoreButton=Xl;exports.FoxOverLay=kn;exports.FoxPage=cl;exports.FoxPopoverDialog=no;exports.FoxPopup=zl;exports.FoxPrice=$n;exports.FoxPullRefresh=Yl;exports.FoxRadioItem=Ol;exports.FoxRateItem=Dl;exports.FoxRollingProvider=oo;exports.FoxRowItem=yl;exports.FoxSearchBar=Kl;exports.FoxSelectItem=xl;exports.FoxSlotItem=pl;exports.FoxStepsBar=ql;exports.FoxSwitchItem=Rl;exports.FoxTableItem=Il;exports.FoxTableMappingColumn=Nl;exports.FoxTableRadioColumn=Pl;exports.FoxTableSetting=En;exports.FoxTabsBar=Ll;exports.FoxTabsContainer=Bl;exports.FoxTabsPane=_l;exports.FoxText=Gl;exports.FoxTimeItem=Sl;exports.FoxTimeSelectItem=Tl;exports.FoxToast=Hl;exports.FoxTour=Ql;exports.FoxTreeSelectItem=Fl;exports.Group=gl;exports.GroupSetting=Al;exports.HeaderBar=dl;exports.HintText=At;exports.Indicator=Ul;exports.InfiniteLoading=Wl;exports.InputItem=bl;exports.InputNumberItem=$l;exports.Item=$e;exports.Mapping=Dt;exports.MoneyItem=Cl;exports.MoreButton=Xl;exports.OverLay=kn;exports.Page=cl;exports.PopoverDialog=no;exports.Popup=zl;exports.Price=$n;exports.PriorityPolicy=_e;exports.PullRefresh=Yl;exports.RadioItem=Ol;exports.RateItem=Dl;exports.RollingProvider=oo;exports.RowItem=yl;exports.SearchBar=Kl;exports.SelectItem=xl;exports.SlotItem=pl;exports.StepsBar=ql;exports.SwitchItem=Rl;exports.TableItem=Il;exports.TableMappingColumn=Nl;exports.TableRadioColumn=Pl;exports.TableSetting=En;exports.TabsBar=Ll;exports.TabsContainer=Bl;exports.TabsPane=_l;exports.Text=Gl;exports.TimeItem=Sl;exports.TimeSelectItem=Tl;exports.Toast=Hl;exports.Tour=Ql;exports.TreeSelectItem=Fl;exports.UniqueID=Kr;exports.ValidateSchema=Or;exports.ValidateSchemaKey=Ye;exports.cancelRaf=da;exports.clearNonNumber=Ca;exports.clone=Zn;exports.compareTo=Un;exports.createBroadcast=fn;exports.createValidateSchema=dn;exports.debounce=qe;exports.debounceRef=La;exports.decimalLength=$r;exports.default=wm;exports.defineBroadcast=Na;exports.defineConfigDomain=Dr;exports.defineDataItem=Rr;exports.defineDomain=ul;exports.defineItem=Ee;exports.definePageState=Ar;exports.defineSimpleItem=Fr;exports.deleteGlobalValidator=Da;exports.disabledProperty=Me;exports.divide=rl;exports.excludeProps=Oe;exports.extend=ht;exports.floatData=ka;exports.getGlobalValidateCheckEvents=Nr;exports.getGlobalValidateResetEvents=Ir;exports.getPageContentAreaHeight=ln;exports.getPageContentAreaWidth=on;exports.getPageFooterAreaHeight=pn;exports.getPageHeaderAreaHeight=vn;exports.getRootDomain=pt;exports.hasSymbol=br;exports.includeProps=Er;exports.indexOf=$a;exports.integerLength=Cr;exports.isArray=ma;exports.isArrayLike=wr;exports.isBrowser=at;exports.isDate=pa;exports.isESModule=ba;exports.isEmptyString=de;exports.isEqual=et;exports.isFunction=Gn;exports.isHidden=cn;exports.isInnerPage=qa;exports.isMap=ga;exports.isNil=il;exports.isNumberString=Tr;exports.isObject=tt;exports.isPlainObject=Xn;exports.isPromise=pr;exports.isRegExp=Qn;exports.isSet=va;exports.isString=vr;exports.isSubPage=ja;exports.isSymbol=ya;exports.isTouch=Mt;exports.isWindow=xr;exports.lastIndexOf=Ea;exports.makeArray=Ta;exports.merge=Sr;exports.multiply=hr;exports.negate=mr;exports.nextTick=wa;exports.numberFormat=sn;exports.objectToString=yr;exports.once=Ba;exports.overrideGlobalValidateHandler=Oa;exports.property=Fe;exports.raf=al;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Ra;exports.setGlobalValidateHandler=Ia;exports.setGlobalValidateMessages=Aa;exports.setGlobalValidateResetEvents=Fa;exports.setGlobalValidator=Va;exports.throttle=Ma;exports.toBoolean=ue;exports.toNumber=Te;exports.toPadding=Xe;exports.toPx=me;exports.toPxDesc=Pe;exports.toTypeString=un;exports.toValue=he;exports.tryTimes=hn;exports.typeOf=tn;exports.unNumberFormat=gr;exports.updatePageState=Jn;exports.useBroadcast=Nt;exports.useDomain=it;exports.useExpose=we;exports.useInnerSize=yn;exports.usePageState=gn;exports.usePosition=vl;exports.useRawTouch=Lt;exports.useRect=aa;exports.useSize=fl;exports.useTouch=Kf;exports.valueLength=Ft;