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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Sat Aug 30 2025 13:48:00 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ft=require("@fox-js/validator"),T=require("element-plus"),Ie=require("@element-plus/icons-vue"),je=require("@fox-js/i18n"),qt=window,pa=typeof window<"u";function ya(){return typeof qt<"u"?qt.requestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ba(e){pa?cancelAnimationFrame(e):clearTimeout(e)}const yr=ya();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Wed Oct 22 2025 10:57:02 GMT+0800 (China Standard Time)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ft=require("@fox-js/validator"),T=require("element-plus"),Ie=require("@element-plus/icons-vue"),je=require("@fox-js/i18n"),qt=window,ba=typeof window<"u";function xa(){return typeof qt<"u"?qt.requestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function wa(e){ba?cancelAnimationFrame(e):clearTimeout(e)}const yr=xa();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function tn(e,n="0"){let o=0,t=-1;e[0]=="-"&&(o++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,t=2,n=n.substring(1),n.length),e=Pe(e),n=Pe(n),[e,n]=fl(Pe(e),Pe(n)),o==1&&(t==1?e=An(e):n=An(n));let r=br(e,n);return o?o==2?"-"+Pe(r):e.length<r.length?Pe(r.substring(1)):"-"+Pe(An(r)):Pe(r)}function An(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return br(n,a)}function Pe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function fl(e,n){let o=e.split("."),t=n.split("."),r=o[0].length,a=t[0].length;return r>a?t[0]=new Array(Math.abs(r-a)+1).join("0")+(t[0]?t[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=t[1]?t[1].length:0,(r||a)&&(r>a?t[1]=(t[1]?t[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]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function br(e,n){[e,n]=fl(e,n);let o="",t=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+t;o=a%10+o,t=Math.floor(a/10)}return t?t.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,n=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 t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=Ot(e,0,o),(t?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,fo(r[1],a,t,o)?(t?"-":"")+Mn(a):(t?"-":"")+a;if(r[1]){if(r[1].length<n)return(t?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&fo(u,i,t,o)&&(i=Mn(i),i.length>n)?(t?"-":"")+Mn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function fo(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===ye.DOWN||!o&&t===ye.FLOOR||o&&t===ye.CEILING)return!1;if(t===ye.UP||o&&t===ye.FLOOR||!o&&t===ye.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(t){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Mn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,t="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function Un(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Ct(e),n=Ct(n);let t=0,r=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=t+r;if(e=Ct(e.replace(".","")),n=Ct(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,d="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let v=0;for(let p=n.length-1;p>=c&&p>=0;p--)s[p]>-1&&s[p]<e.length&&(v+=parseInt(e[s[p]--])*parseInt(n[p]));v+=u,u=Math.floor(v/10),d=v%10+d,c--}return d=Ct(xa(d,a)),o==1&&(d="-"+d),d}function xa(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function 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 Gn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Pe(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Pe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Pe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Pe(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Pe(e.replace(".","")))}let a=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=tn(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(t==1?"-":"")+Pe(Ot(u,o-2))}function Xn(e,n){return e=e.toString(),n=n.toString(),n=Zn(n),tn(e,n)}function Zn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ho(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),mo(e),mo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=Xn(e,Un(n,Ot(Gn(e,n),0,ye.FLOOR)));return o+t}function mo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function go(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=fl(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=ye;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,t]=n.split(/[eE]/);o=Pe(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(t=parseInt(t)+o.indexOf("."),o=o.replace(".","")):t=parseInt(t)+o.length,o.length<t?n=r+o+new Array(t-o.length+1).join("0"):o.length>=t&&t>0?n=r+Pe(o.substring(0,t))+(o.length>t?"."+o.substring(t):""):n=r+"0."+new Array(-t+1).join("0")+o}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,t){if(!(o||t))o=3,t=",";else if(!(o&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,t=ye.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Ot(n,o,t)}round(n=0,o=ye.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Ot(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),tn(n,o)}add(n){return new fe(tn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),Xn(n,o)}subtract(n){return new fe(Xn(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),Un(n,o)}multiply(n){return new fe(Un(this.value,n.getValue()))}static divide(n,o,t){return n=fe.validate(n),o=fe.validate(o),Gn(n,o,t)}divide(n,o){return new fe(Gn(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),ho(n,o)}modulus(n){return new fe(ho(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),go(n,o)}compareTo(n){return go(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Zn(n)}negate(){return new fe(Zn(this.value))}}function xr(e,n){return fe.multiply(`${e}`,`${n}`)}function dl(e,n,o=8){return fe.divide(`${e}`,`${n}`,o)}function Qn(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function wr(e){return fe.negate(e)}function un(e,n=-1,o=!1,t=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)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let d;if(t>0){let m="",v=u.split("").reverse();for(let p=0;p<v.length;p++)m+=v[p]+((p+1)%t==0&&p+1!=v.length?r:"");s.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function Sr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const hl=yr,wa=Array.isArray,Sa=e=>cn(e)==="[object Map]",Ta=e=>cn(e)==="[object Set]",Ca=e=>e instanceof Date,Jn=e=>typeof e=="function",Tr=e=>typeof e=="string",$a=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",Cr=e=>Ge(e)&&Jn(e.then)&&Jn(e.catch),$r=Object.prototype.toString,cn=e=>$r.call(e),el=e=>cn(e)==="[object Object]",Nr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Na(e){return e.__esModule||Nr&&e[Symbol.toStringTag]==="Module"}const Ea=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ht(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,t=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<t;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=n[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:{},n[i]=ht(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function tl(e,n,o=!1){if(!o)ht(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!el(i))continue;a=tl(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!el(i))continue;a=tl(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Ln=Ea?Promise.resolve():null;function ka(e,...n){Ln!==null?n&&n.length>0?Ln.then(()=>{e(n)}):Ln.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Ce(e){return typeof e=="number"?e:Number(e)}const Pa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function nn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Pa[o]||"object"}function Er(e){return e&&typeof e=="object"&&"setInterval"in e}function fn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function kr(e){let n=!!e&&"length"in e&&e.length,o=nn(e);return o==="function"||Er(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Pr(e,n){let o=+n.length,t=0,r=e.length;for(;t<o;t++)e[r++]=n[t];return e.length=r,e}function Ia(e,n=[]){let o=n;return e!=null&&(kr(Object(e))?Pr(o,typeof e=="string"?[e]:e):o.push(e)),o}function tt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=nn(e),t=nn(n);if(o!==t)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!tt(s,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!tt(a,i))return!1}return!0}return!1}const at=typeof window<"u";function ml(e){return e==null}function nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null||typeof e!="string"?!1:e.length===0;function Ir(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 Or(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Vr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function vo(e,n,o){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(o,"")}function Oa(e,n=!0,o=!0){n?e=vo(e,".",/\./g):e=e.replace(/\./g,""),o?e=vo(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function Va(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(tt(e,o))return!0}):n.indexOf(e)}function Da(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(tt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Vt(e,...n){const o={};return n.forEach(t=>{for(const r in t)o[r]=e[r]}),o}function Oe(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const t={};for(const r in e)o.includes(r)||(t[r]=e[r]);return t}const Ra=(e,n,o)=>{const t=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(t[a]=n[r[a]]):n[a]&&(t[a]=n[a])}),t):e},be=Symbol.for("BroadcastKey");class gl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,t){this.parent=n,this.proxy=o,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(t=>n===t);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(n,o,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=n.uniqueId,a={matched:n,action:o,args:t};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let t=!1;return!o.name||o.name==="*"||o.name==="+"||nl(o.name)&&n&&o.name.test(n)?t=!0:typeof o.name=="function"?t=Reflect.apply(o.name,null,[n]):o.name===n&&(t=!0),t}trigger(n,o,t){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(r)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(r){console.error(r)}}),n=n.parent}}emit(n,o,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const i=n.resolve,u=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};n.resolve=s}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):nl(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...t]);s!=null&&a.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...t]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,o,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const a=n.resolve,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};n.resolve=u}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function dn(e,n,o,t){const r=new gl(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function Fa(e,n,o){const t=o;if(t[be])return t[be];const r=l.inject(be,null),a=new gl(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),t[be]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}class Aa{error(n,o){const t=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*"},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?kt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?kt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?kt(t):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let Pt=new Aa;function Ma(e){Pt=e}function La(e){Pt?Object.assign(Pt,e):Pt=e}function Ba(e,n){ft.Schema.setValidator(e,n)}function qa(e){ft.Schema.deleteValidator(e)}let Dr=["blur","clear"];function _a(e){Dr=e}function Rr(){return Dr}let Fr=["focus","change","setValue"];function ja(e){Fr=e}function Ar(){return Fr}function za(e){ft.Schema.messages(e)}function $t(...e){const n=[];return e.forEach(o=>{o.forEach(t=>{const r=n.findIndex(a=>a.type===t.type);r!==-1&&n.splice(r,1),n.push(t)})}),n}function _t(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ue=Symbol("ValidateSchemaKey");class Mr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,t){this.parent=n,this.descriptor=o,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),t.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};t.push(s)}}this.attrRules=_t(t);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(n,...o){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...o]);const r=Pt;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,t=!1){t?ft.Schema.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?ft.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return ft.Schema.hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const o=$t(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=_t(n):this.rules=_t([n]);const t=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(t,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 t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]: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 hn(e,n,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 Mr(n,o,e)}const ln=Symbol.for("EventEmitterKey");class Lr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let t=this.register.get(n);if(t&&Array.isArray(t)){let r=t.findIndex(a=>a===o);r!==-1&&t.splice(r,1)}}on(n,o){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(o)}emit(n,...o){const t=this.register.get(n);t&&t.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ke(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function Br(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Ha(e,n){const o=Ke((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Ka(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function mn(e,n,o,t=0,r=!0,a){let i=n,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+=t,setTimeout(s,i)};setTimeout(s,i)}const Le=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class gn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=l.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const t in n){const r=n[t];o.length>0&&o.indexOf(r)!==-1||(this._props[t]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const r=t._props[n];o.push(r)}t=t._parent}return o}}const Wa=new gn;function pt(){return Wa}function it(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Bn=Symbol("OriginalDateKey");function vl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=pt());const u=e||n.prop||n.name;let s=new gn(u);s.parent=i;const c=f=>{a[Bn]||v(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[Bn]??null,v=f=>{const h={};ht(!0,h,l.toRaw(f)),a[Bn]=h};l.isReactive(n)||typeof n=="function"?l.watch(n,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&v(n.modelValue);const p=(f,h)=>{s?.set(f,h)},y=f=>s?.getForSelf(f)??null;if(a[Le]=s,l.provide(Le,s),r!==null){const f=l.inject(be,null),h=dn(a,f,u,t);s.broadcast=h,a[be]=h,l.provide(be,h),a.broadcast=(x,L,...B)=>Reflect.apply(h.emit,h,[x,L,...B]);const D=l.inject(Ue,null),w=hn(a,D,{componentName:""});s.validateSchema=w,a[Ue]=w,l.provide(Ue,w),a[gt]=new Map,a.validate=(x=!0)=>{const L=[];let B=null;const q={deep:!1};if(x===!0)B={name:"*"};else if(Array.isArray(x)&&x.length>0){const P=x;B={name:k=>k?P.indexOf(k)!==-1:!1}}else if(x!=null&&typeof x=="object"){const P=x;if(Object.assign(q,P),Array.isArray(P.include)&&P.include.length>0){const k=P.include;B={name:b=>b?k.indexOf(b)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const k=P.exclude;B={name:b=>b?k.indexOf(b)===-1:!1}}else B={name:"*"}}if(B){const P=h?.emitToChildren(B,"validate",q);P&&Reflect.apply([].push,L,P)}return L.length==1?L[0]:L.length>1?Promise.all(L).then(P=>{let k=[];return P.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(k=[...k,...b.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(x,L=!0,B=!1)=>{if(B===!0){Reflect.ownKeys(x).forEach(P=>{let k=String(P);const b={componentName:"",fieldName:k,pureDataValidate:!0};if(s){const j=_r(s,k,b,h,w);a[gt].set(k,j);const g=x[k];g&&j.validateSchema.setRule(g)}});return}if(L){const q=Reflect.ownKeys(x),P={name:k=>q.includes(k),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(P,"setNameValidateRules",x,!1)}},a.clearValidate=(x=!0)=>{let L=null;if(x===!0)L={name:"*"};else if(Array.isArray(x)&&x.length>0){const B=x;L={name:q=>q?B.indexOf(q)!==-1:!1}}else if(x!=null&&typeof x=="object"){const B=x;if(Array.isArray(B.include)&&B.include.length>0){const q=B.include;L={name:P=>P?q.indexOf(P)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;L={name:P=>P?q.indexOf(P)===-1:!1}}else L={name:"*"}}L&&h?.emitToChildren(L,"clearValidate",!1)},a.resetFields=x=>{const L=d();if(!L)return;const B={};if(ht(!0,B,m()??{}),Array.isArray(x))x.forEach(q=>{L[q]=B[q]});else if(x&&Array.isArray(x.include))(x.include??[]).forEach(P=>{L[P]=B[P]});else if(x&&Array.isArray(x.exclude)){let q=x.exclude??[];Reflect.ownKeys(B).forEach(P=>{q.includes(P)||(L[P]=B[P])})}else Object.assign(L,B);a.clearValidate(x)},a.setModelValue=(x,L)=>{if(!L||L===u)c(x);else{const B={name:L,messagingPolicy:"Once"};h?.emitToChildren(B,"setModelValue",x)}},a.getModelValue=()=>d(),a.setDomainProperty=(x,L)=>{p(x,L)},a.getDomainProperty=x=>y(x),setTimeout(function(){h?.pull()},0)}return l.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ue]=void 0,l.provide(Ue,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[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 qr(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=pt());const i=e||n.prop||n.name;let u=new gn(i);return u.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,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,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(be,null);let u=dn(r,i,a,o);r[be]=u,l.provide(be,u),r.broadcast=(y,f,...h)=>u?Reflect.apply(u.emit,u,[y,f,...h]):null;const s=l.inject(Ue,null);e.fieldName=e.fieldName??a;let c=hn(r,s,e);r[Ue]=c,l.provide(Ue,c),r.validate=(y=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,D=!1;if(Array.isArray(y)&&y.indexOf(a)!==-1)D=!0,h=!0;else if(y&&typeof y=="object"){const w=y,x=w.ignoreDisabled??!0,L=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;x===!0&&e.disabled===!0||L===!0&&e.readonly===!0||B===!0&&fn(r.$el)?D=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),D=!0),h=w.deep??!1}else typeof y=="boolean"&&(h=y),D=!0;if(D){const w=c?.validate();f.push(w)}if(h){let w=null;const x={deep:!1};if(y===!0)w={name:"*"};else if(Array.isArray(y)&&y.length>0){const L=y;w={name:B=>B?L.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const L=y;if(Object.assign(x,L),Array.isArray(L.include)&&L.include.length>0){const B=L.include;w={name:q=>q?B.indexOf(q)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const B=L.exclude;w={name:q=>q?B.indexOf(q)===-1:!1}}else w={name:"*"}}if(w&&u){const L=u.emitToChildren(w,"validate",x);Reflect.apply([].push,f,L)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(w=>{let x=[];return w.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(x=[...x,...L.errors])}),x.length>0?{pass:!1,errors:x}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=y=>c?.setRule(y),r.setNameValidateRules=(y,f=!1)=>{const h=y[a];if(h&&c?.setRule(h),f&&u){const D={name:w=>Reflect.ownKeys(y).includes(w)};u.emitToChildren(D,"setNameValidateRules",y,!1)}},r.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(y===!0)f={name:"*"};else if(Array.isArray(y)&&y.length>0){const h=y;f={name:D=>D?h.indexOf(D)!==-1:!1}}else if(y!=null&&typeof y=="object"){const h=y;if(Array.isArray(h.include)&&h.include.length>0){const D=h.include;f={name:w=>w?D.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;f={name:w=>w?D.indexOf(w)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Lr(r);r[ln]=d;const m=Ke((y="validate")=>{c&&(y==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Rr()).forEach(y=>{d&&d.on(y,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ar()).forEach(y=>{d&&d.on(y,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[Ue]=void 0,l.provide(Ue,null),c=null,d?.destroy(),r[ln]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(y,...f)=>{d&&Reflect.apply(d.emit,d,[y,...f])},onEvent:(y,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(y,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function _r(e,n,o,t,r){const a={},i=n??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=hn({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let v=!1,p=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)p=!0,v=!0;else if(d&&typeof d=="object"){const y=d;Array.isArray(y.include)&&y.include.indexOf(i)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(i),p=!0,v=y.deep??!1}else typeof d=="boolean"&&(v=d),p=!0;if(p&&s){const y=s.validate();m.push(y)}if(v){let y=null;const f={deep:!1};if(d===!0)y={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;y={name:D=>D?h.indexOf(D)!==-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 D=h.include;y={name:w=>w?D.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;y={name:w=>w?D.indexOf(w)===-1:!1}}else y={name:"*"}}if(y&&c){const h=c.emitToChildren(y,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(y=>{let f=[];return y.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=dn(null,t,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function jr(){let n=l.getCurrentInstance()?.proxy,o=new Lr(n);return n[ln]=o,l.onUnmounted(()=>{o?.destroy(),n[ln]=void 0,o=null,n=null}),{emitEvent:(t,...r)=>{o&&Reflect.apply(o.emit,o,[t,...r])},onEvent:(t,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(t,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const xe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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*n;const t=Number(e);return isNaN(t)?0:t}const rt="PageStateKey";function Qe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function ll(e,n,o={},t=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??n.headerHeight??-1),e.headerPadding=Qe(o.headerPadding??n.headerPadding),e.footerHeight=me(o.footerHeight??n.footerHeight??-1),e.footerPadding=Qe(o.footerPadding??n.footerPadding),e.contentPadding=Qe(o.contentPadding??n.contentPadding),t){const s=o.height??n.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(o.width??n.width??0,r)}}function zr(e,n={}){const o={top:null,bottom:null,right:null,left:null},t={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")??{},n.safeAreaInset??{});r&&(t.safeAreaTop=me(r.top),t.safeAreaBottom=me(r.bottom),t.safeAreaLeft=me(r.left),t.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;ll(t,a,n,!0,i,u,s,c);const d=l.reactive(t),m=e.getForParent(rt);m&&(t.height=on(e,m),t.width=rn(e,m),l.watch([()=>on(e,m),()=>rn(e,m)],([p,y])=>{d.height=p,d.width=y}));const v=!m;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([p,y,f=-1,h=-1,D=0,w=0])=>{ll(d,y,n,v,f,h,D,w)}),e.set(rt,d),d}function vn(e){return e.get(rt)}function pn(e,n){if(n=n??e.get(rt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function yn(e,n){if(n=n??e.get(rt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function on(e,n){if(n=n??e.get(rt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=pn(e,n),t=yn(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function rn(e,n){return n=n??e.get(rt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ya(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Ua(e){return!!e.getForParent(rt)}var qe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(qe||{});function jt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,o=1,t){const r=it();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(jt(s,t))return s}const i=e.value;return jt(i,t)?i:null}):l.computed(()=>{const a=e.value;if(jt(a,t))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(jt(s,t))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function he(e,n="modelValue",o=null,t){const r=l.toRef(e,n);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,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const Hr=new Map,an=new Map;let ol=null;function Ga(e){ol=e}function Kr(e,n,o){if(o){let t=an.get(o);t||(t=new Map,an.set(o,t)),t.set(e,n)}else Hr.set(e,n)}function _e(e,n,o){!o&&ol&&(o=ol(e)??void 0);let t=null;if(o){let r=an.get(o);r&&(t=r.get(n))}return t||(t=Hr.get(n)),t}function Xa(e,n){for(let o in e){const t=e[o];Kr(o,t,n)}}function Za(e){an.delete(e)}function Qa(){return{top:0,left:0,bottom:0,right:0}}function Ja(){if(at){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function ei(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class ti{packages;installers;_version;get version(){return this._version}constructor(n,o,t){this.packages=n,this.installers=o,this._version=t}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=ei(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...o},i=Ke(()=>{const s={...a};this.initPageLayout(s,r)},120);new window.ResizeObserver(i).observe(window.document.body)}this.initPageLayout(o,r);for(const a in o)t.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const t=n.headerBarHeight??0,r=n.footerBarHeight??0,a=ht({},Qa(),n.safeAreaInset),i=Ja(),u=ht({},i.pageLayout,n.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ga(n)}setAPI(n,o,t){Kr(n,o,t)}getAPI(n,o,t){return _e(n,o,t)}batchSetAPI(n,o){Xa(n,o)}clearScopeAPI(n){Za(n)}getRootDomain(){return pt()}}const ni=[T.ElAffix,T.ElAlert,T.ElAutocomplete,T.ElAutoResizer,T.ElAvatar,T.ElBacktop,T.ElBadge,T.ElBreadcrumb,T.ElBreadcrumbItem,T.ElButton,T.ElButtonGroup,T.ElCalendar,T.ElCard,T.ElCarousel,T.ElCarouselItem,T.ElCascader,T.ElCascaderPanel,T.ElCheckTag,T.ElCheckbox,T.ElCheckboxButton,T.ElCheckboxGroup,T.ElCol,T.ElCollapse,T.ElCollapseItem,T.ElCollapseTransition,T.ElColorPicker,T.ElConfigProvider,T.ElContainer,T.ElAside,T.ElFooter,T.ElHeader,T.ElMain,T.ElDatePicker,T.ElDescriptions,T.ElDescriptionsItem,T.ElDialog,T.ElDivider,T.ElDrawer,T.ElDropdown,T.ElDropdownItem,T.ElDropdownMenu,T.ElEmpty,T.ElForm,T.ElFormItem,T.ElIcon,T.ElImage,T.ElImageViewer,T.ElInput,T.ElInputNumber,T.ElLink,T.ElMenu,T.ElSubMenu,T.ElMenuItem,T.ElMenuItemGroup,T.ElPageHeader,T.ElPagination,T.ElPopconfirm,T.ElPopover,T.ElPopper,T.ElProgress,T.ElRadio,T.ElRadioButton,T.ElRadioGroup,T.ElRate,T.ElResult,T.ElRow,T.ElScrollbar,T.ElSelect,T.ElOption,T.ElOptionGroup,T.ElSelectV2,T.ElSkeleton,T.ElSkeletonItem,T.ElSlider,T.ElSpace,T.ElSteps,T.ElStep,T.ElSwitch,T.ElTable,T.ElTableColumn,T.ElTableV2,T.ElTabs,T.ElTabPane,T.ElTag,T.ElTimePicker,T.ElTimeSelect,T.ElTimeline,T.ElTimelineItem,T.ElTooltip,T.ElTransfer,T.ElTree,T.ElTreeSelect,T.ElTreeV2,T.ElUpload,T.ElStatistic,T.ElCountdown,T.ElSegmented,T.ElAnchor,T.ElAnchorLink,T.ElWatermark,T.ElMessageBox,T.ElMessage,T.ElNotification],li=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],oi=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);ni.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),li.forEach(r=>{e.use(r)})};function ae(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=t=>{t.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Se(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.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}},Wr={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}},Yr={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}},Ur=[];for(const e in Yr)Ur.push(e);const ri=Symbol.for("InnerPageScopeKey"),ai={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}},ii=(e,n)=>({inheritAttrs:!0,props:{...$e,...Wr,...ai},setup(o,{slots:t}){const r=vl(o.name,o),a=l.inject(ri,!1);if(r){const d=zr(r,o);Se({getPageContentHeight:()=>on(r,d),getPageContentWidth:()=>rn(r,d),getPageHeaderHeight:()=>pn(r,d),getPageFooterHeight:()=>yn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,m=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(d,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[v,p])=>{if(d&&v){const y=l.toRaw(v),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(y?Reflect.ownKeys(y):[]).forEach(w=>{h.includes(w)||(f[w]=[])}),c(f)}if(m&&p){const y=l.toRaw(p),f=l.toRaw(m),h=f?Reflect.ownKeys(f):[];(y?Reflect.ownKeys(y):[]).forEach(w=>{h.includes(w)||(f[w]=[])}),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,[t?.default?.()])}}}),{componentName:si,create:ui}=ae("page"),pl=ui(ii(si));function yl(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function bn(e){const n=l.unref(e),o=window.getComputedStyle(n,null),t=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:n.clientWidth-t-r,height:n.clientHeight-a-i}}const ci=(e,n,o,t=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default: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?vn(i):null;u&&(u.headerMounted=!0);const s=e,c=l.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=l.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?me(r.height):null,v=l.computed(()=>{const g={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const R=Qe(r.padding??u.headerPadding);return Object.assign(g,R),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+(R.top??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaTop)),g}if(m&&(g.height=m),r.padding){const R=Qe(r.padding);Object.assign(g,R)}return g}),p=l.ref(null),y=()=>{if(u&&p.value&&!fn(p.value)){if(!t){const g=yl(p.value);u.headerAllHeight=g.height}return u.headerMounted=!0,!0}return!1},f=Ke(y,120);let h=null;l.onMounted(()=>{u&&(mn(y,50,5,50,!0),window.ResizeObserver&&p.value&&(h=new window.ResizeObserver(f),h.observe(p.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const D=l.computed(()=>{const g={};return v.value.height!==null&&v.value.height!==void 0&&(g.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(g.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(g.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(g.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(g.paddingBottom=`${v.value.bottom}px`),g}),w=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function x(){a.emit("back")}function L(){a.emit("click-title")}function B(){a.emit("click-right")}function q(){a.emit("click-right-text")}const P=()=>{if(!r.leftShow)return null;const g=[];if(a.slots.left)g.push(a.slots.left());else{if(a.slots.leftIcon){const R=l.h("view",{class:"left-icon",onClick:x},[a.slots.leftIcon()]);g.push(R)}else if(r.leftIcon){const R=l.h("view",{class:"left-icon",onClick:x},[l.h(r.leftIcon)]);g.push(R)}if(r.leftText){const R=l.h("view",{class:"left-text",onClick:x},[r.leftText]);g.push(R)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__left"},g)},k=()=>{if(!r.rightShow)return null;const g=[];if(a.slots.right)g.push(a.slots.right());else{if(r.rightText){const R=l.h("view",{class:"right-text",onClick:q},[r.rightText]);g.push(R)}if(a.slots.rightIcon){const R=l.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);g.push(R)}else if(r.rightIcon){const R=l.h("view",{class:"right-icon",onClick:B},[l.h(r.rightIcon)]);g.push(R)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__right"},g)},b=()=>{if(!r.titleShow)return null;const g=[],R=a.slots.default?a.slots.default():null;if(R)g.push(R);else{if(r.title){const G=l.h("view",{class:"title-text"},[r.title]);g.push(G)}if(a.slots.titleIcon){const G=l.h("view",{class:"title-icon",onClick:L},[a.slots.titleIcon()]);g.push(G)}else if(r.titleIcon){const G=l.h("view",{class:"title-icon",onClick:L},[l.h(r.titleIcon)]);g.push(G)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__title"},g)},j=()=>{const g=[],R=a.slots.bottom?a.slots.bottom():null;return R&&g.push(R),g.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},g)};return()=>{if(!w.value)return null;const g=[];if(a.slots.all)g.push(a.slots.all());else{const G=[],O=P();O&&G.push(O);const N=b();N&&G.push(N);const A=k();if(A&&G.push(A),G.length>0){const Y=l.h("view",{class:d.value},G);g.push(Y)}const _=j();_&&g.push(_)}if(g.length===0)return null;const R={class:c.value,style:D.value,ref:p};return l.h("view",R,g)}}}),{componentName:fi,create:di,scope:hi}=ae("header-bar"),bl=di(ci(fi,hi,Ie.ArrowLeft));function mi(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(t,r){const a=it(),i=a?vn(a):null,u=l.computed(()=>{const f=e;return{[f]:!0,[`${f}--${t.align}`]:!0,[`${f}--border`]:t.border,[`${f}--fixed`]:t.fixed,[`${f}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),s=t.height!==null&&t.height!==void 0?me(t.height):null,c=l.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Qe(t.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),t.padding){const h=Qe(t.padding);Object.assign(f,h)}return f}),d=l.ref(null),m=()=>{if(i&&d.value&&!fn(d.value)){if(!o){const f=yl(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},v=Ke(m,120);let p=null;l.onMounted(()=>{i&&(mn(m,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(v),p.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const y=l.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=xe(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=xe(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=xe(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=xe(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=xe(c.value.bottom)),f});return()=>{const f=r.slots.default?r.slots.default():[],h={ref:d,class:u.value,style:y.value};return l.h("view",h,f)}}}}const{componentName:gi,create:vi}=ae("footer-bar"),xl=vi(mi(gi));function pi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:t,attrs:r}){const a=it(),i=l.computed(()=>({[e]:!0})),u=a?vn(a):null,s=l.computed(()=>{const p={};if(a&&u){if(o.padding){const B=Qe(o.padding);Object.assign(u.contentPadding,B)}const y=pn(a,u),f=yn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,p.height=h;let D=(u&&u.contentPadding&&u.contentPadding.top)??-1;(D>=0||y>0)&&(D=D<0?0:D,p.paddingTop=`${y+D}px`);let w=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(w>=0||f>0)&&(w=w<0?0:w,p.paddingBottom=`${f+w}px`);const x=(u&&u.contentPadding&&u.contentPadding.left)??-1;x>=0&&(p.paddingLeft=`${x}px`);const L=(u&&u.contentPadding&&u.contentPadding.right)??-1;return L>=0&&(p.paddingRight=`${L}px`),p}if(o.padding){const y=Qe(o.padding);y.left&&(p.paddingLeft=`${y.left}px`),y.top&&(p.paddingTop=`${y.top}px`),y.right&&(p.paddingRight=`${y.right}px`),y.bottom&&(p.paddingBottom=`${y.bottom}px`)}return p}),c=l.ref(null),d=()=>{if(u&&c.value){const p=bn(c.value);u.contentInnerHeight=p.height,u.contentInnerWidth=p.width}},m=Ke(d,120);let v=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(v=new window.ResizeObserver(m),v.observe(c.value))}),l.onUnmounted(()=>{v&&(v.disconnect(),v=null)}),()=>{const p=o.tag??"view",y={...r,ref:c,class:i.value,style:s.value};return l.h(p,y,t)}}}}const{componentName:yi,create:bi}=ae("content"),wl=bi(pi(yi)),xt="GroupStateKey",Gr=Symbol.for("GroupScopeKey");function xn(){return l.inject(Gr,!1)}function wn(e=!0){l.provide(Gr,e)}function xi(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];ml(r)||(e[t]=r)})}function wi(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};xi(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(xt,a),a}function qn(e,n,o=-1,t=-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),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),m=me(i);u||(u=c.type??"grid");const v=()=>{const p=n===""||n===-1,y=me(n);let f=Ce(o);const h=me(t);if(!p){let x=(y-(f-1)*h)/f;for(;m!==-1&&x>m;)f++,x=(y-(f-1)*h)/f;for(;d!==-1&&f>1&&x<d;)f--,x=(y-(f-1)*h)/f}let D=!1;const w=s.layout;w.value.width=n,w.value.column!==f&&(w.value.column=f,D=!0),w.value.gutter!==h&&(w.value.gutter=h,D=!0),w.value.type!==u&&(w.value.type=u,D=!0),D&&l.triggerRef(w)};if(r)v();else{const p=++s.passport;setTimeout(()=>{p===s.passport&&v()},50)}}function Sn(e,n=!1){let o;return n?o=e.getForParent(xt):o=e.get(xt),o.layout}function Tn(e,n=!1){let o;return n?o=e.getForParent(xt):o=e.get(xt),o.order}function po(e,n=1){if(n==="stretch")return-1;const o=Ce(n);return o===-1?100:100*o/e}function Cn(e,n,o=1,t=0,r){const a={};let i=0;r?i=me(r):i=po(n.column,o),i>0&&(a.width=`${i}%`);const u=po(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function $n(e,n,o=1,t=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Ce(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Ce(t)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Xr=Symbol("RollingStateKey");function Si(e){l.provide(Xr,e)}function Ti(){return l.inject(Xr,null)}function rl(e){let n=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"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function Ci(e){let n=rl(e);if(n<=0){const o=e.cloneNode(!0),t=e.offsetWidth;o.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=rl(o),document.body.removeChild(o)}return n}function $i(e,n,o){const t=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),a=typeof o=="number"?o:parseInt(o);if(t<=0)return"1fr";const i=(t-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const Ni={...$e,...Wr,...Yr};function Ei(e,n,o){return{props:Ni,emits:["update:collapse","header-click"],setup(t,r){const a=vl(t.prop??t.name,t,Ur),i=wi(a,{type:t.type}),u=xn();wn(!0);const s=t.rollingDisplay?Ti():null,c=l.ref(null),d=l.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?Sn(a,!0).value:null),v=l.getCurrentInstance(),p=(E,K=!1)=>{const X=v?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(E,!0,K)};l.watch([()=>t.rules,()=>t.pureDataRules],([E,K],[X,I])=>{if(E&&X){const z=l.toRaw(X),Z=l.toRaw(E),le=Z?Reflect.ownKeys(Z):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{le.includes(ce)||(Z[ce]=[])}),p(Z)}if(K&&I){const z=l.toRaw(I),Z=l.toRaw(K),le=Z?Reflect.ownKeys(Z):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{le.includes(ce)||(Z[ce]=[])}),p(Z,!0)}},{deep:!0});const y=e,f=l.computed(()=>{const E={};E.height=N.value;const K=u?Tn(a,!0):null;if(m.value&&K){if(m.value.type==="grid"){const X=$n(K,m.value,t.span,t.offset);Object.assign(E,X)}else if(m.value.type==="flow"){const X=Cn(K,m.value,t.span,t.offset,t.width);Object.assign(E,X)}}else if(t.width){const X=xe(t.width);E.width=X}return E}),h=l.computed(()=>{const E=i.layout.value.type;return E==="grid"||E==="flow"?{[`${y}--${E}`]:!0,[`${y}--${E}-justify-${t.justify}`]:!0,[`${y}--${E}-align-${t.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${E}`]:!0,[`${y}--gutter`]:!0}}),D=l.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(t.columnWidth)K=`repeat(auto-fill, ${t.columnWidth})`;else{const X=$i(k.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}}}),w=l.toRef(t,"gutter"),x=l.toRef(t,"column"),L=l.computed(()=>u||d.value?!0:ue(t.isWrap)),B=[],q=E=>{B.push(E)},P=()=>{let E=B.length;B.splice(0,E)},k=l.ref(-1),b=E=>{const K=bn(E).width;K>0&&K!==k.value&&(k.value=K)};qn(a,k.value,x.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([k,x,w],([E,K,X])=>{i.order.index=0,qn(a,E,K,X,!1,t.minItemWidth,t.maxItemWidth,t.type)});const j=l.computed(()=>A.value?t.expandText??"":t.collapseText??""),g=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),R=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),G=l.ref(),O=l.ref(),N=l.computed(()=>_.value||xe(t.height)||""),A=l.ref(!1),_=l.ref(""),Y=l.ref(!1);let J=-1;const M=(E,K=!0)=>{const X=G.value;if(X&&A.value!==E){if(J=J===-1?Ci(X):J,Y.value=!0,K)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",E||(_.value="",Y.value=!1)},E){let I=0;t.collapseHeight?I=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(I=O.value.offsetHeight),_.value=`${J}px`,l.nextTick(()=>{_.value=`${I}px`})}else _.value=`${J}px`;else if(E){let I=0;t.collapseHeight?I=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(I=O.value.offsetHeight),_.value=`${I}px`}else Y.value=!1,_.value=`${J}px`;A.value=E,r.emit("update:collapse",E)}};l.watch(()=>t.collapse,E=>{M(E)});const te=E=>{r.emit("header-click",E)},$=()=>{C()},C=E=>{E=E??!A.value,M(E)};Se({toggleCollapse:C,doLayout:()=>{B[0]&&(b(B[0]),qn(a,k.value,x.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let V=null,S=!0;const H=E=>{if(t.rules){const K=l.toRaw(t.rules);p(K)}if(t.pureDataRules){const K=l.toRaw(t.pureDataRules);p(K,!0)}if(at&&(E&&M(ue(t.collapse),!1),t.autoLayout&&Array.isArray(B)&&B.length>0)){const K=B[0];if(b(K),window.ResizeObserver){const X=Ke(()=>b(K),120);V=new window.ResizeObserver(X),V.observe(K)}}},Q=()=>{V?.disconnect(),V=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),l.onMounted(()=>{if(ne&&(H(S),S=!1),d.value&&s){let E=null,K=s.initialHeight;s.observe(G.value,X=>{if(X!==c.value)if(X)c.value=!0,A.value||(_.value=""),E=setTimeout(()=>{E=null,c.value!==!1&&(H(S),S=!1)},100);else{if(E!==null&&clearTimeout(E),c.value=!1,!A.value)if(S)_.value=s.initialHeight;else{let I=rl(G.value);I<=0?_.value=K:(_.value=`${I}px`,K=_.value)}S||Q()}})}}),l.onUnmounted(()=>{V?.disconnect(),s&&s.unobserve(G.value)});const U=(E="right")=>{const K=[];if(j.value){const z={class:g.value},Z=l.h("span",z,[j.value]);K.push(Z)}const X={class:R.value},I=o(t.collapseIcon,X);return I&&K.push(I),K.length>0?l.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${E}`]:!0},onClick:$},K):null},W=(E,K,X,I)=>{const z={...h.value};if(K===0&&(z[`${y}__first`]=!0),X>=I-1&&(z[`${y}__last`]=!0),L.value===!1){const Z=r.attrs.class;Z&&(z[`${Z}`]=!0)}return l.h("div",{ref:q,key:`${K}`,class:z,style:D.value},E)};return()=>{if(d.value&&c.value!==!0){const z=t.tag||"div";return l.h(z,{ref:G,prop:t.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:f.value},[])}i.order.index=0;const E=[];let K=0;if(r.slots.header){const z={key:`${K++}`,ref:O,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:te},Z=l.h("div",z,[r.slots.header()]);E.push(Z)}else{const z=[],Z=t.collapsePosition==="left";if(Z&&t.showCollapse){const le=U("left");le&&z.push(le)}if(t.title||r.slots.title){if(t.showMark){const le={class:{[`${y}__header-mark`]:!0}};t.markColor&&(le.style={background:t.markColor});const se=l.h("div",le);z.push(se)}if(r.slots.title){const le=l.h("div",{class:{[`${y}__header-title`]:!0}},[r.slots.title()]);z.push(le)}else if(t.title){const le=l.h("div",{class:{[`${y}__header-title`]:!0}},[t.title]);z.push(le)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!Z&&t.showCollapse){const le=U("right");le&&z.push(le)}if(z.length>0){const le={key:`${K++}`,ref:O,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:te},se=l.h("div",le,z);E.push(se)}}P();const X=r.slots.default?r.slots.default():[],I=i.layout.value.type;if(I==="grid"){const z=W(X,K++,0,X.length);E.push(z)}else if(I==="flow"){const z=W(X,K++,0,X.length);E.push(z)}else for(let z=0;z<X.length;z++){const Z=X[z],le=W([Z],K++,z,X.length);E.push(le)}if(L.value){const z=t.tag||"div";return l.h(z,{ref:G,prop:t.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:f.value},[E])}else return E}}}}const{componentName:ki,create:Pi,scope:Ii}=ae("group"),Oi=(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]})),Sl=Pi(Ei(ki,Ii,Oi));function Vi(e){return e===window}const Di=/matrix\((.+)\)/,Tl=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(Vi(n))return{x:0,y:0};let o=0,t=0,r=n;for(;r!==null;)o+=r.offsetLeft,t+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=Di.exec(c);if(d){let v=d[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}r=r.parentNode}return o-=a,t-=i,o+=u,t+=s,{x:o,y:t}};class Ri{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Fi{monitorRegister=new WeakMap;watch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a||(a=new Ri,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(o),t=t.parentNode}}unwatch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const It=new Fi,Zr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ai,create:Mi}=ae("price"),Li=Mi({props:{...Zr},setup(e){const n=l.computed(()=>({[Ai]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>At(e.price)==0?"":un(e.price,e.decimalLength,!0,Ce(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Xe=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},Bi=["innerHTML"],qi=["innerHTML"];function _i(e,n,o,t,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,Bi)):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,qi)):l.createCommentVNode("",!0)],2)}const Nn=Xe(Li,[["render",_i]]),{componentName:_n,create:ji}=ae("hint-text"),zi=ji({components:{Price:Nn},props:{...Zr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=l.ref({top:null,right:null,bottom:null,left:null}),t=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,R,G,O,N,A)=>{const _=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,J=g.split("-");let M=[];J[0]==="top"?M=["top","bottom","right","left"]:J[0]==="bottom"?M=["bottom","top","right","left"]:J[0]==="left"?M=["left","top","bottom","right"]:J[0]==="right"&&(M=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},$=[];for(let C=0;C<M.length;C++){const F=M[C];if($[0]=F,J[1]&&($[1]=J[1]),F==="top"){const V=R.y-A-e.arrowSize-e.offset;if(V>=0){te.top=V;let S=0;J[1]==="start"?S=R.x:J[1]==="end"?S=R.x+G-N:S=R.x+G/2-N/2;const H=_-S-N;H<0?(S+=H,m.value=-H):m.value=0,te.left=S<0?0:S;break}}else if(F==="bottom"){const V=R.y+O+e.arrowSize+e.offset;if(V+A<=Y){te.top=V;let S=0;J[1]==="start"?S=R.x:J[1]==="end"?S=R.x+G-N:S=R.x+G/2-N/2;const H=_-S-N;H<0?(S+=H,m.value=-H):m.value=0,te.left=S<0?0:S;break}}else if(F==="left"){const V=R.x-N-e.arrowSize-e.offset;if(V>=0){te.left=V;let S=0;J[1]==="start"?S=R.y:J[1]==="end"?S=R.y+O-A:S=R.y+O/2-A/2,te.top=S<0?0:S;break}}else if(F==="right"){const V=R.x+G+e.arrowSize+e.offset;if(V+N<=_){te.left=V;let S=0;J[1]==="start"?S=R.y:J[1]==="end"?S=R.y+O-A:S=R.y+O/2-A/2,te.top=S<0?0:S;break}}}return{bestPlacement:$.join("-"),bestInsetRect:te}},d=(g,R,G=10)=>{if(!at||R===!1||!g)return;t.value=Tl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=s.value.offsetHeight,N=s.value.offsetWidth,{bestPlacement:A,bestInsetRect:_}=c(e.placement,t.value,r.value,a.value,N,O);i.value=A,o.value=_,u.value=!0},m=l.ref(0),v=Ke(()=>{d(e.message,e.visible)},10),p=l.ref(e.visible);l.watch(()=>e.visible,g=>{p.value=g});const y=l.computed(()=>p.value&&f.value),f=l.ref(!0),h=Ke(g=>{const R=g[0];R&&(f.value=R.isIntersecting)},10),D=new IntersectionObserver(h);l.watch([()=>e.message,()=>e.visible],([g,R])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),It.watch(e.reference,v),D.observe(e.reference)}),l.onBeforeUnmount(()=>{It.unwatch(e.reference,v),D.unobserve(e.reference),D.disconnect()});const w=l.computed(()=>{const g={[_n]:!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}),x=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 R=document.documentElement.clientWidth||document.body.clientWidth;return g["max-width"]=`${R}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}),L=l.computed(()=>{const g=[`${_n}__content`];return e.customTextClass&&g.push(e.customTextClass),g}),B=l.computed(()=>{const g={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(g,e.customTextStyle),g}),q=l.computed(()=>({[`${_n}__arrow`]:!0})),P=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"}}),k=l.computed(()=>y.value&&e.closeOnClick),b=l.computed(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:y,tipRef:s,classes:w,styles:x,textClasses:L,textStyles:B,arrowClasses:q,arrowStyles:P,overlayShow:k,overlayStyle:b,onClickOverlay:()=>{p.value=!1,n.emit("update:visible",!1)}}}}),Hi=["innerHTML"];function Ki(e,n,o,t,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:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Hi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=Xe(zi,[["render",Ki]]);class Qr{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const al={},Wi=new Qr,yt=new Map,sn=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of yt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}yt.clear()}},Yi=e=>{e.unmount=sn;const n=document.getElementById(e.id);if(n){const o=yt.get(e.id);o?e={...al,...o,...e}:e={...al,...e},e.transition=!1;const t=l.createVNode(Mt,e);l.render(t,n)}return e.id},Ui=e=>{e.unmount=sn;let n=e.id??`hinttext_${Wi.get()}`;e={...al,...e},e.id=n,yt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(Mt,e);return l.render(t,o),document.body.appendChild(o),n},Gi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,n,o={},t=!0){Gi(n);const r=o.id;return r&&yt.has(r)?Yi({...o,message:n,reference:e}):(t&&sn(),Ui({...o,message:n,reference:e}))},hide(e){sn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Xi(e,n,o,t=!1){return{inheritAttrs:!0,props:{...$e,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ee({componentName:e,validate:!1},i);const u=it(),s=xn();wn(!1);const c=l.computed(()=>s&&u?Sn(u,!1).value:null),d=e,m=l.ref(null),v=l.computed(()=>{const I={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(I[r.errorMarkClass]=!!A.value,I[r.warnMarkClass]=!!O.value,I[r.infoMarkClass]=!!R.value,typeof m.value=="function"){const z=m.value(i);I[z]=!0}else if(typeof m.value=="string"){const z=m.value;I[z]=!0}return I}),p=l.ref(null),y=l.computed(()=>{const I={};if(r.width)r.width!=="auto"&&(I.width=xe(r.width));else{const z=s&&u?Tn(u,!1):null;if(c.value&&z){if(c.value.type==="grid"){const Z=$n(z,c.value,r.span,r.offset);Object.assign(I,Z)}else if(c.value.type==="flow"){const Z=Cn(z,c.value,r.span,r.offset,r.width);Object.assign(I,Z)}}}if(typeof p.value=="function"){const z=p.value(i);z&&Object.assign(I,z)}else if(p.value&&typeof p.value=="object"){const z=p.value;Object.assign(I,z)}return I}),f=l.ref(null),h=l.computed({get:()=>f.value??ue(r.isRequired),set:I=>{f.value=I}}),D=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Fe(l.toRef(r,"labelPosition"),"labelPosition",qe.Near),x=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),L=l.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${x.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${x.value}`]:!0})),q=Fe(l.toRef(r,"labelWidth"),"labelWidth",qe.Near),P=l.computed(()=>q&&q.value?{width:xe(q.value)}:{}),k=l.computed(()=>({"label--string":!0,"label--required":h.value})),b=l.computed(()=>({content:!0,[r.contentClass]:!0})),j=l.computed(()=>({...r.contentStyle})),g=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(I){h.value=I},setErrorTip(I){g.errorTip=I},setErrorIcon(I){g.errorIcon=I},setWarnTip(I){g.warnTip=I},setWarnIcon(I){g.warnIcon=I},setInfoTip(I){g.infoTip=I},setInfoIcon(I){g.infoIcon=I},setCustomClassName(I){m.value=I},setCustomStyle(I){p.value=I}});const R=l.computed(()=>r.infoTip||g.infoTip),G=l.computed(()=>r.infoIcon||g.infoIcon),O=l.computed(()=>r.warnTip||g.warnTip),N=l.computed(()=>r.warnIcon||g.warnIcon),A=l.computed(()=>r.errorTip||g.errorTip),_=l.computed(()=>r.errorIcon||g.errorIcon),Y=l.computed(()=>A.value?"error":O.value?"warn":R.value?"info":""),J=()=>Y.value.length>0,M=l.computed(()=>Y.value==="error"?A.value:Y.value==="warn"?O.value:Y.value==="info"?R.value:""),te=l.computed(()=>Y.value==="error"?_.value:Y.value==="warn"?N.value:Y.value==="info"?G.value:null),$=l.computed(()=>{const I={[`${d}__tip`]:!0,[`${d}__tip--${Y.value}`]:!0,[`${d}--animate`]:!0};return Y.value==="error"&&r.errorClass?I[`${r.errorClass}`]=!0:Y.value==="warn"&&r.warnClass?I[`${r.warnClass}`]=!0:Y.value==="info"&&r.infoClass&&(I[`${r.infoClass}`]=!0),I}),C=l.computed(()=>{const I={};return w&&w.value==="top"||!D()?I["padding-left"]="0px":q&&q.value&&(I["padding-left"]=xe(q.value)),I}),F=l.ref();let V="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([I,z,Z,le])=>{F.value&&(I&&!de(z)?V?o.show(F.value,z,{...le,id:V,type:Z},!0):V=o.show(F.value,z,{...le,type:Z},!0):o.hide(V))});let S=null;const H=()=>{S||!F.value||(S=new IntersectionObserver(I=>{let z=!1;for(let Z of I)if(Z.intersectionRatio>0){z=!0,z&&a.emit("appear",Z);break}z||a.emit("disappear")}),S.observe(F.value))},Q=()=>{!S||!F.value||(S.unobserve(F.value),S=null)};l.watch(()=>ue(r.appearListen),I=>{I?H():Q()}),l.onMounted(()=>{ue(r.appearListen)&&H()}),l.onUnmounted(Q);const ne=()=>{if(!D())return null;const I=[],z=a.slots?.label?.()??r.label,Z={class:k.value},le=l.h("div",Z,[z]);if(I.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();I.push(ce)}const se={class:B.value,style:P.value};return l.h("div",se,I)},U=()=>{const I=[];if(a.slots.prepend){const Z=a.slots.prepend();I.push(Z)}if(a.slots.default){const Z=a.slots.default();I.push(Z)}if(a.slots.append){const Z=a.slots.append();I.push(Z)}if(a.slots.fixedTip){const Z={class:[`${d}__fixed-tip`]},le=l.h("div",Z,[a.slots.fixedTip()]);I.push(le)}const z={ref:F,class:b.value,style:j.value};return l.h("div",z,I)},W=()=>{const I=te.value;return I?typeof I=="function"?l.h("div",{class:"fox-item__tip--icon"},[I()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(I)]):null},E=()=>{const I=M.value;return I?typeof I=="function"?l.h("div",{class:"fox-item__tip--text"},[I()]):l.h("div",{class:"fox-item__tip--text"},[I]):null},K=()=>{if(!J())return null;const I=[],z=W();z&&I.push(z);const Z=E();Z&&I.push(Z);const le={class:$.value,style:C.value};return l.h("div",le,I)},X=()=>a.slots?.hide?.()??null;return()=>{const I=[],z=[],Z=ne();Z&&z.push(Z);const le=U();le&&z.push(le);const se={class:L.value},ce=l.h("div",se,z);I.push(ce);const pe=K();pe&&I.push(pe);const ge=X();ge&&I.push(ge);const Te={class:v.value,style:y.value,prop:r.prop};return l.h("div",Te,I)}}}}const{componentName:Zi,create:Qi,scope:Ji}=ae("item"),Ne=Qi(Xi(Zi,Ji,Re,!1)),il={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function es(e,n){return{props:{...il},setup(o,t){const r=it(),a=xn();wn(!1);const i=l.computed(()=>a&&r?Sn(r,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=xe(o.width));else{const m=a&&r?Tn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const v=$n(m,i.value,o.span,o.offset);Object.assign(d,v)}else if(i.value.type==="flow"){const v=Cn(m,i.value,o.span,o.offset,o.width);Object.assign(d,v)}else return o.width&&(d.width=xe(o.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",d,t.slots.default()):l.h("div",d)}}}}const{componentName:ts,create:ns}=ae("slot-item"),En=ns(es(ts));function ls(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=it(),u=xn();wn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=Sn(i,!1),m=Tn(i,!1);if(d.value&&m)if(d.value.type==="grid"){const v=$n(m,d.value,o.span,o.offset);Object.assign(c,v)}else if(d.value.type==="flow"){const v=Cn(m,d.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=xe(o.width))}else o.width&&(c.width=xe(o.width));return c});return()=>{const c=[];if(t.slots.default){const m=t.slots.default();if(o.divide)for(let v=0;v<m.length;v++){if(v>0){const p=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(p)}c.push(m[v])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:os,create:rs}=ae("row-item"),Cl=rs(ls(os)),Ze=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},yo={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 as(e,n,o){return{props:{...$e,...Ve,...yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0,[`${y}__disabled`]:i.value,[`${y}__readonly`]:s.value})),h=N=>{p.value=N,c("update:modelValue",N),c("input",N)},D=N=>{c("change",N)};let w=he(t,"hintText"),x=l.ref(!1);const L=N=>{let _=N.target.value;v.value=!0,de(w.value)||(x.value=!0),c("focus",_,N)},B=N=>{setTimeout(()=>{x.value&&(x.value=!1),v.value=!1},0);let _=N.target.value;t.maxLength&&_.length>Number(t.maxLength)&&(_=_.slice(0,Number(t.maxLength))),c("blur",_,N)},q=()=>{c("clear","")},P=l.ref(!1);let k=null;const b=()=>{t.showTooltip&&P.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{P.value=!0},150))},j=()=>{k&&(clearTimeout(k),P.value=!1,k=null)},g=l.computed(()=>P.value||x.value),R=l.computed(()=>P.value?p.value:w.value),G=l.computed(()=>At(t.unit)>0),O=l.ref();return Se({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const A={...Ze(r.attrs),ref:O,class:f.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:q,onChange:D,onInput:h,onFocus:L,onBlur:B,onMouseover:b,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:G.value&&(_.suffix=()=>[t.unit]);const Y=[],J=l.h(T.ElInput,A,_);Y.push(J);const M={default:()=>Y};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const $={...Oe(t,yo),hintText:R.value,hintVisible:g.value};return t.prop&&($.prop=`${t.prop}_item`),l.h(o,$,M)}}}}const{componentName:is,create:ss,scope:us}=ae("input-item"),$l=ss(as(is,us,Ne));function ot(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Jr(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function cs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let fs=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ds(){const e=l.getCurrentInstance();return new fs(e.proxy)}function ea(e,n,o){const t=ot(e,n),r=ot(e,o);if(t!==r)return!1;const a=Dt(e,n),i=Dt(e,o);return a===i}function ta(e,n,o,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){const u=Jr(e,i);if(Array.isArray(u)&&u.length>0){const s=ta(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=ea(e,i,a);else{let c=Dt(e,i);c==null&&(c=ot(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function hs(e){return{text:e,value:e}}const bo={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 ms(e,n,o){return{props:{...$e,...Ve,...bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(null),p=l.ref([]),y=l.computed(()=>p.value?p.value.map(K=>ot(t,K)).join(" "):""),f=(E,K,X,I=!0)=>{if(!X||X.length==0){v.value=E,I&&(c("update:modelValue",E),c("change",E));return}const z=ta(t,E,K,X);if(z===null){if(p.value===null||p.value.length===0)return;v.value=null,p.value=[],I&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let Z=!0;if(z.length!==p.value.length)Z=!1;else for(let le=0;le<z.length;le++){const se=z[le],ce=p.value[le];if(!ea(t,se,ce)){Z=!1;break}}if(!Z){p.value=z;let le=[],se=[],ce=[];z.forEach(ze=>{const st=Dt(t,ze),mt=ot(t,ze);le.push(st),ce.push(mt),t.valueType==="text"?se.push(mt):t.valueType==="item"?se.push(ze):se.push(st)});let pe,ge,Te;ue(t.multiple)?(v.value=le,pe=l.toRaw(se),ge=ce,Te=l.toRaw(z)):(v.value=le[0]??"",pe=l.toRaw(se[0]??""),ge=ce[0]??"",Te=l.toRaw(z[0])),I&&(c("update:modelValue",pe),c("change",pe,Te)),c("update:text",ge)}},h=l.ref(null),D=l.ref(null),w=l.computed(()=>D.value??h.value??[]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,E=>ue(E)),L=ds(),B=async(E,K)=>{if(E){const X=await L.load("select",E,K);if(X.length>0)if(typeof X[0]=="string"){let Z=X.map(le=>hs(le));h.value=Z}else h.value=X;else h.value=null}};l.watch([()=>t.source,()=>t.params],([E,K])=>{D.value=null,B(E,K)},{immediate:!x.value});let q=!1;const P=()=>{q||(q=!0,B(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([E,K])=>{if(g()&&ue(t.multiple)){tt(K,v.value)||(v.value=K);return}f(K,t.valueType,w.value,!1),c("setValue",K)}),t.source||(v.value=t.modelValue);let k=null,b=l.ref(!1);typeof t.remoteMethod=="function"&&(k=async E=>{if(E==null){D.value=null;return}b.value=!0;try{const K=await t.remoteMethod(E);K&&(D.value=K)}catch(K){D.value=null,console.error(K)}b.value=!1});let j=null;typeof t.filterMethod=="function"&&(j=async E=>{if(E==null){D.value=null;return}b.value=!0;try{const K=await t.filterMethod(E,h.value);K&&(D.value=K)}catch(K){D.value=null,console.error(K)}b.value=!1});const g=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",R=l.ref(!1),G=e,O=l.computed(()=>({[G]:!0})),N=E=>{t.allowCreate||g()&&ue(t.multiple)?(c("update:modelValue",E),c("change",E),c("update:text",E),v.value=E):f(E,"value",w.value,!0)};let A=he(t,"hintText"),_=l.ref(!1);const Y=E=>{let X=E.target.value;R.value=!0,de(A.value)||(_.value=!0),c("focus",X,E)},J=E=>{setTimeout(()=>{_.value&&(_.value=!1),R.value=!1},0);let X=E.target.value;t.maxLength&&X.length>Number(t.maxLength)&&(X=X.slice(0,Number(t.maxLength))),H.value||c("blur",X,E)},M=()=>{c("clear","")},te=l.ref(!1);let $=null;const C=()=>{t.showTooltip&&te.value===!1&&($&&clearTimeout($),$=setTimeout(()=>{te.value=!0},150))},F=()=>{$&&(clearTimeout($),te.value=!1,$=null)},V=l.computed(()=>te.value||_.value),S=l.computed(()=>te.value?y.value:A.value),H=l.ref(!1),Q=E=>{H.value=E,c("visible-change",E),E||c("selected")},ne=E=>{c("remove-tag",E)},U=(E,K)=>{const X=[];return E.forEach((I,z)=>{const Z=Jr(t,I);if(Array.isArray(Z)&&Z.length>0){const le=U(Z,K),se=ot(t,I),pe={key:`${se}_${z}`,label:se};X.push(l.h(T.ElOptionGroup,pe,{default:()=>le}))}else{const le=Dt(t,I),se=ot(t,I),ce=cs(t,I),ge={key:`${le}_${z}`,label:se,disabled:ce,value:le};if(typeof K=="function")X.push(l.h(T.ElOption,ge,{default:()=>K(I)}));else if(t.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},ze=l.h("span",Te,[le]),st={class:{"fox-select-item__option-right":!0}},mt=l.h("span",st,[se]),Dn=l.h("div",{class:{"fox-select-item__option":!0}},[ze,mt]);X.push(l.h(T.ElOption,ge,{default:()=>Dn}))}else t.optionType==="value"?X.push(l.h(T.ElOption,ge,{default:()=>[le]})):X.push(l.h(T.ElOption,ge))}}),X},W=l.ref();return Se({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const K={...Ze(r.attrs),ref:W,class:O.value,clearable:t.clearable,multiple:t.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:v.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:M,onChange:N,onFocus:Y,onBlur:J,onVisibleChange:Q,onRemoveTag:ne};typeof k=="function"&&(K["remote-method"]=k,K.loading=b.value),typeof j=="function"&&(K["filter-method"]=j,K.loading=b.value);const X={};r.slots.prefix&&(X.prefix=r.slots.prefix),r.slots.empty&&(X.empty=r.slots.empty),r.slots.options?X.default=r.slots.options:X.default=()=>U(w.value,r.slots.option);const I=[],z=l.h(T.ElSelect,K,X);I.push(z);const Z={default:()=>I};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const se={...Oe(t,bo),hintText:S.value,hintVisible:V.value,onMouseover:C,onMouseleave:F};return t.prop&&(se.prop=`${t.prop}_item`),x.value&&(se["appear-listen"]=!0,se.onAppear=P),l.h(o,se,Z)}}}}const{componentName:gs,create:vs,scope:ps}=ae("select-item"),Nl=vs(ms(gs,ps,Ne));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt={exports:{}},ys=Wt.exports,xo;function bs(){return xo||(xo=1,function(e,n){(function(o,t){e.exports=t()})(ys,function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",v="quarter",p="year",y="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+)?$/,D=/\[([^\]]+)]|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,w={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(O){var N=["th","st","nd","rd"],A=O%100;return"["+O+(N[(A-20)%10]||N[A]||N[0])+"]"}},x=function(O,N,A){var _=String(O);return!_||_.length>=N?O:""+Array(N+1-_.length).join(A)+O},L={s:x,z:function(O){var N=-O.utcOffset(),A=Math.abs(N),_=Math.floor(A/60),Y=A%60;return(N<=0?"+":"-")+x(_,2,"0")+":"+x(Y,2,"0")},m:function O(N,A){if(N.date()<A.date())return-O(A,N);var _=12*(A.year()-N.year())+(A.month()-N.month()),Y=N.clone().add(_,m),J=A-Y<0,M=N.clone().add(_+(J?-1:1),m);return+(-(_+(A-Y)/(J?Y-M:M-Y))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:m,y:p,w:d,d:c,D:y,h:s,m:u,s:i,ms:a,Q:v}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},B="en",q={};q[B]=w;var P="$isDayjsObject",k=function(O){return O instanceof R||!(!O||!O[P])},b=function O(N,A,_){var Y;if(!N)return B;if(typeof N=="string"){var J=N.toLowerCase();q[J]&&(Y=J),A&&(q[J]=A,Y=J);var M=N.split("-");if(!Y&&M.length>1)return O(M[0])}else{var te=N.name;q[te]=N,Y=te}return!_&&Y&&(B=Y),Y||!_&&B},j=function(O,N){if(k(O))return O.clone();var A=typeof N=="object"?N:{};return A.date=O,A.args=arguments,new R(A)},g=L;g.l=b,g.i=k,g.w=function(O,N){return j(O,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var R=function(){function O(A){this.$L=b(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[P]=!0}var N=O.prototype;return N.parse=function(A){this.$d=function(_){var Y=_.date,J=_.utc;if(Y===null)return new Date(NaN);if(g.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var M=Y.match(h);if(M){var te=M[2]-1||0,$=(M[7]||"0").substring(0,3);return J?new Date(Date.UTC(M[1],te,M[3]||1,M[4]||0,M[5]||0,M[6]||0,$)):new Date(M[1],te,M[3]||1,M[4]||0,M[5]||0,M[6]||0,$)}}return new Date(Y)}(A),this.init()},N.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},N.$utils=function(){return g},N.isValid=function(){return this.$d.toString()!==f},N.isSame=function(A,_){var Y=j(A);return this.startOf(_)<=Y&&Y<=this.endOf(_)},N.isAfter=function(A,_){return j(A)<this.startOf(_)},N.isBefore=function(A,_){return this.endOf(_)<j(A)},N.$g=function(A,_,Y){return g.u(A)?this[_]:this.set(Y,A)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(A,_){var Y=this,J=!!g.u(_)||_,M=g.p(A),te=function(ne,U){var W=g.w(Y.$u?Date.UTC(Y.$y,U,ne):new Date(Y.$y,U,ne),Y);return J?W:W.endOf(c)},$=function(ne,U){return g.w(Y.toDate()[ne].apply(Y.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(U)),Y)},C=this.$W,F=this.$M,V=this.$D,S="set"+(this.$u?"UTC":"");switch(M){case p:return J?te(1,0):te(31,11);case m:return J?te(1,F):te(0,F+1);case d:var H=this.$locale().weekStart||0,Q=(C<H?C+7:C)-H;return te(J?V-Q:V+(6-Q),F);case c:case y:return $(S+"Hours",0);case s:return $(S+"Minutes",1);case u:return $(S+"Seconds",2);case i:return $(S+"Milliseconds",3);default:return this.clone()}},N.endOf=function(A){return this.startOf(A,!1)},N.$set=function(A,_){var Y,J=g.p(A),M="set"+(this.$u?"UTC":""),te=(Y={},Y[c]=M+"Date",Y[y]=M+"Date",Y[m]=M+"Month",Y[p]=M+"FullYear",Y[s]=M+"Hours",Y[u]=M+"Minutes",Y[i]=M+"Seconds",Y[a]=M+"Milliseconds",Y)[J],$=J===c?this.$D+(_-this.$W):_;if(J===m||J===p){var C=this.clone().set(y,1);C.$d[te]($),C.init(),this.$d=C.set(y,Math.min(this.$D,C.daysInMonth())).$d}else te&&this.$d[te]($);return this.init(),this},N.set=function(A,_){return this.clone().$set(A,_)},N.get=function(A){return this[g.p(A)]()},N.add=function(A,_){var Y,J=this;A=Number(A);var M=g.p(_),te=function(F){var V=j(J);return g.w(V.date(V.date()+Math.round(F*A)),J)};if(M===m)return this.set(m,this.$M+A);if(M===p)return this.set(p,this.$y+A);if(M===c)return te(1);if(M===d)return te(7);var $=(Y={},Y[u]=t,Y[s]=r,Y[i]=o,Y)[M]||1,C=this.$d.getTime()+A*$;return g.w(C,this)},N.subtract=function(A,_){return this.add(-1*A,_)},N.format=function(A){var _=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var J=A||"YYYY-MM-DDTHH:mm:ssZ",M=g.z(this),te=this.$H,$=this.$m,C=this.$M,F=Y.weekdays,V=Y.months,S=Y.meridiem,H=function(U,W,E,K){return U&&(U[W]||U(_,J))||E[W].slice(0,K)},Q=function(U){return g.s(te%12||12,U,"0")},ne=S||function(U,W,E){var K=U<12?"AM":"PM";return E?K.toLowerCase():K};return J.replace(D,function(U,W){return W||function(E){switch(E){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(Y.monthsShort,C,V,3);case"MMMM":return H(V,C);case"D":return _.$D;case"DD":return g.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return H(Y.weekdaysMin,_.$W,F,2);case"ddd":return H(Y.weekdaysShort,_.$W,F,3);case"dddd":return F[_.$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 M}return null}(U)||M.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(A,_,Y){var J,M=this,te=g.p(_),$=j(A),C=($.utcOffset()-this.utcOffset())*t,F=this-$,V=function(){return g.m(M,$)};switch(te){case p:J=V()/12;break;case m:J=V();break;case v:J=V()/3;break;case d:J=(F-C)/6048e5;break;case c:J=(F-C)/864e5;break;case s:J=F/r;break;case u:J=F/t;break;case i:J=F/o;break;default:J=F}return Y?J:g.a(J)},N.daysInMonth=function(){return this.endOf(m).$D},N.$locale=function(){return q[this.$L]},N.locale=function(A,_){if(!A)return this.$L;var Y=this.clone(),J=b(A,_,!0);return J&&(Y.$L=J),Y},N.clone=function(){return g.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},O}(),G=R.prototype;return j.prototype=G,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",p],["$D",y]].forEach(function(O){G[O[1]]=function(N){return this.$g(N,O[0],O[1])}}),j.extend=function(O,N){return O.$i||(O(N,R,j),O.$i=!0),j},j.locale=b,j.isDayjs=k,j.unix=function(O){return j(1e3*O)},j.en=q[B],j.Ls=q,j.p={},j})}(Wt)),Wt.exports}var xs=bs();const Je=nt(xs);var Yt={exports:{}},ws=Yt.exports,wo;function Ss(){return wo||(wo=1,function(e,n){(function(o,t){e.exports=t()})(ws,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"},t=/(\[[^[]*\])|([-_:/.,()\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 D=h.match(/([+-]|\d\d)/g),w=60*D[1]+(+D[2]||0);return w===0?0:D[0]==="+"?-w:w}(f)}],m=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},v=function(f,h){var D,w=u.meridiem;if(w){for(var x=1;x<=24;x+=1)if(f.indexOf(w(x,0,h))>-1){D=x>12;break}}else D=f===(h?"pm":"PM");return D},p={A:[i,function(f){this.afternoon=v(f,!1)}],a:[i,function(f){this.afternoon=v(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,D=f.match(/\d+/);if(this.day=D[0],h)for(var w=1;w<=31;w+=1)h(w).replace(/\[|\]/g,"")===f&&(this.day=w)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=m("months"),D=(m("monthsShort")||h.map(function(w){return w.slice(0,3)})).indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],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 y(f){var h,D;h=f,D=u&&u.formats;for(var w=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,j,g){var R=g&&g.toUpperCase();return j||D[g]||o[g]||D[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,O,N){return O||N.slice(1)})})).match(t),x=w.length,L=0;L<x;L+=1){var B=w[L],q=p[B],P=q&&q[0],k=q&&q[1];w[L]=k?{regex:P,parser:k}:B.replace(/^\[|\]$/g,"")}return function(b){for(var j={},g=0,R=0;g<x;g+=1){var G=w[g];if(typeof G=="string")R+=G.length;else{var O=G.regex,N=G.parser,A=b.slice(R),_=O.exec(A)[0];N.call(j,_),b=b.replace(_,"")}}return function(Y){var J=Y.afternoon;if(J!==void 0){var M=Y.hours;J?M<12&&(Y.hours+=12):M===12&&(Y.hours=0),delete Y.afternoon}}(j),j}}return function(f,h,D){D.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var w=h.prototype,x=w.parse;w.parse=function(L){var B=L.date,q=L.utc,P=L.args;this.$u=q;var k=P[1];if(typeof k=="string"){var b=P[2]===!0,j=P[3]===!0,g=b||j,R=P[2];j&&(R=P[2]),u=this.$locale(),!b&&R&&(u=D.Ls[R]),this.$d=function(A,_,Y){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*A);var J=y(_)(A),M=J.year,te=J.month,$=J.day,C=J.hours,F=J.minutes,V=J.seconds,S=J.milliseconds,H=J.zone,Q=new Date,ne=$||(M||te?1:Q.getDate()),U=M||Q.getFullYear(),W=0;M&&!te||(W=te>0?te-1:Q.getMonth());var E=C||0,K=F||0,X=V||0,I=S||0;return H?new Date(Date.UTC(U,W,ne,E,K,X,I+60*H.offset*1e3)):Y?new Date(Date.UTC(U,W,ne,E,K,X,I)):new Date(U,W,ne,E,K,X,I)}catch{return new Date("")}}(B,k,q),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),g&&B!=this.format(k)&&(this.$d=new Date("")),u={}}else if(k instanceof Array)for(var G=k.length,O=1;O<=G;O+=1){P[1]=k[O-1];var N=D.apply(this,P);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}O===G&&(this.$d=new Date(""))}else x.call(this,L)}}})}(Yt)),Yt.exports}var Ts=Ss();const Cs=nt(Ts);var Ut={exports:{}},$s=Ut.exports,So;function Ns(){return So||(So=1,function(e,n){(function(o,t){e.exports=t()})($s,function(){return function(o,t){var r=t.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}});return a.bind(this)(d)}}})}(Ut)),Ut.exports}var Es=Ns();const ks=nt(Es);var Gt={exports:{}},Ps=Gt.exports,To;function Is(){return To||(To=1,function(e,n){(function(o,t){e.exports=t()})(Ps,function(){return function(o,t,r){var a=t.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,v,p,y,f){var h=m.name?m:m.$locale(),D=i(h[v]),w=i(h[p]),x=D||w.map(function(B){return B.slice(0,y)});if(!f)return x;var L=h.weekStart;return x.map(function(B,q){return x[(q+(L||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(m,v){return m.formats[v]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,f,h){return f||h.slice(1)})}(m.formats[v.toUpperCase()])},d=function(){var m=this;return{months:function(v){return v?v.format("MMMM"):u(m,"months")},monthsShort:function(v){return v?v.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(m,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(m.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return c(m,v)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}})}(Gt)),Gt.exports}var Os=Is();const Vs=nt(Os);var Xt={exports:{}},Ds=Xt.exports,Co;function Rs(){return Co||(Co=1,function(e,n){(function(o,t){e.exports=t()})(Ds,function(){var o="week",t="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(t).add(1,t).date(c),m=i(this).endOf(o);if(d.isBefore(m))return 1}var v=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),p=this.diff(v,o,!0);return p<0?i(this).startOf("week").week():Math.ceil(p)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(Xt)),Xt.exports}var Fs=Rs();const As=nt(Fs);var Zt={exports:{}},Ms=Zt.exports,$o;function Ls(){return $o||($o=1,function(e,n){(function(o,t){e.exports=t()})(Ms,function(){return function(o,t){t.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})}(Zt)),Zt.exports}var Bs=Ls();const qs=nt(Bs);var Qt={exports:{}},_s=Qt.exports,No;function js(){return No||(No=1,function(e,n){(function(o,t){e.exports=t()})(_s,function(){return function(o,t,r){t.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")}}})}(Qt)),Qt.exports}var zs=js();const Hs=nt(zs);var Jt={exports:{}},Ks=Jt.exports,Eo;function Ws(){return Eo||(Eo=1,function(e,n){(function(o,t){e.exports=t()})(Ks,function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Jt)),Jt.exports}var Ys=Ws();const Us=nt(Ys);var en={exports:{}},Gs=en.exports,ko;function Xs(){return ko||(ko=1,function(e,n){(function(o,t){e.exports=t()})(Gs,function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(en)),en.exports}var Zs=Xs();const Qs=nt(Zs);Je.extend(Vs);Je.extend(ks);Je.extend(Cs);Je.extend(As);Je.extend(qs);Je.extend(Hs);Je.extend(Us);Je.extend(Qs);const Be={format(e,n){return Je(e).format(n)},parser(e,n){return Je(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,t,r].join(n)},getDay(e,n,o){e=e||0;let t=n??new Date;const r=e*(1e3*60*60*24);return t=new Date(t.getTime()+r),o=o??"YYYY-MM-DD",this.format(t,o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(o>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,o==t},getMonthWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-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 t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(t===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 n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const t=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Po={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"}},Io={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 Js(e,n,o){return{props:{...$e,...Ve,...Po,...Io},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=l.computed(()=>_.value&&Array.isArray(p.value)&&p.value.length==2?p.value[0]:p.value),f=l.computed(()=>_.value?"longTermKey":"normalKey"),h=W=>{if(_.value&&t.type==="daterange"){const E=[...p.value];E[0]=W,p.value=E}else p.value=W;c("update:modelValue",p.value),c("change",p.value)},D=l.computed(()=>_.value&&t.type==="daterange"?"date":t.type),w=e,x=l.computed(()=>({[`${w}`]:!0,"is-long":_.value,"is-readonly":s.value,"is-disabled":i.value}));let L=he(t,"hintText"),B=l.ref(!1);const q=W=>{let K=W.target.value;v.value=!0,de(L.value)||(B.value=!0),c("focus",K,W)},P=W=>{setTimeout(()=>{B.value&&(B.value=!1),v.value=!1},0);let K=W.target.value;t.maxLength&&K.length>Number(t.maxLength)&&(K=K.slice(0,Number(t.maxLength))),c("blur",K,W)},k=()=>{c("clear","")},b=W=>{c("calendar-change",W)},j=(W,E,K)=>{c("panel-change",W,E,K)},g=W=>{c("visible-change",W)},R=Fe(l.computed(()=>t.longTermText),"longTermText",qe.Near),G=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",qe.Near),O=Fe(l.computed(()=>t.longTermValue),"longTermValue",qe.Near),N=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",qe.Near);let A=null;const _=l.ref(ue(t.longTerm)),Y=W=>{if(_.value=W,c("update:longTerm",W),W){if(A=p.value,t.type==="daterange"){const E=[];Array.isArray(O.value)?(E[0]=p.value?p.value[0]??O.value[0]:null,E[1]=O.value[1]??O.value[0]):(E[0]=p.value?p.value[0]??O.value:null,E[1]=_.value),E[0]||(E[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),p.value=E}else Array.isArray(O.value)?p.value=O.value[1]??O.value[0]:p.value=O.value,p.value||(p.value=t.valueFormat?Be.format(new Date,t.valueFormat):new Date);c("update:modelValue",p.value)}else{if(t.type==="daterange"){const E=[];E[0]=Array.isArray(p.value)?p.value[0]:p.value,Array.isArray(A)?E[1]=A[1]:E[1]=A,E[0]||(E[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),p.value=E}else p.value=A;c("update:modelValue",p.value),setTimeout(()=>{ne()},100)}},J=ue(t.isLongTerm);if(J){const W=()=>{if(_.value===!0){if(A=p.value,t.type==="daterange"){const E=[p.value[0]];Array.isArray(O.value)?E[1]=O.value[1]??O.value[0]:E[1]=_.value,E[0]||(E[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),p.value=E}else p.value=O.value;c("update:modelValue",p.value)}else tt(O.value,p.value)&&(_.value=!0)};W(),l.watch([()=>t.longTerm],([E])=>{_.value!==E&&W()}),l.watch([()=>p.value],([E])=>{let K=!1;if(t.type==="daterange"&&Array.isArray(E))try{let X=E[1];if(!X)return;if(E[0]==null){c("update:modelValue",[]);return}typeof X!="string"&&t.valueFormat&&(X=Be.format(X,t.valueFormat));let I=Array.isArray(O.value)?O.value[1]:O.value;(X===I||Array.isArray(N.value)&&N.value.findIndex(Z=>X==Z)!==-1)&&(K=!0)}catch(X){console.error(X)}_.value!==K&&(_.value=K)},{immediate:!0})}const M=l.computed(()=>({"fox-date-item__long":!0,"is-active":v.value})),te=l.ref(),$=l.ref(),C=/^\d+$/,F=(W,E)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(W,E):C.test(W)&&W.length===t.flashFillThreshold,V=(W,E)=>{let K;if(typeof t.flashFillFormat=="function")K=t.flashFillFormat(W,E);else{const I=t.flashFillFormat??"YYYYMMDD";K=Be.parser(W,I)}const X=t.valueFormat??"YYYY-MM-DD";return Be.format(K,X)},S=W=>W?W.endsWith("range"):!1,H=W=>{if(!W.target)return;const E=W.target.value??"";if(F(E,t.type)){const K=V(E,t.type);if(S(t.type)){const X=Array.isArray(p.value)?[...p.value]:[];X[0]=K,h(X)}else h(K)}},Q=W=>{if(!W.target)return;const E=W.target.value??"";if(F(E,t.type)){const K=V(E,t.type);if(S(t.type)){const X=Array.isArray(p.value)?[...p.value]:[];X[1]=K,h(X)}else h(K)}},ne=()=>{if(t.flashFill&&te.value&&te.value.$el)if(S(t.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",H),W[1]&&W[1].addEventListener("input",Q)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",H)}},U=()=>{if(t.flashFill&&te.value&&te.value.$el)if(S(t.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",H),W[1]&&W[1].removeEventListener("input",Q)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",H)}};return l.onMounted(ne),l.onBeforeUnmount(U),Se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const E={...r.attrs,key:f.value,type:D.value,ref:$,class:x.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":h,onClear:k,onFocus:q,onBlur:P,onCalendarChange:b,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=[],I=l.h(T.ElDatePicker,E,K);X.push(I);const z={default:()=>X};if(z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip,J){if(_.value){const ce=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),pe=l.h("input",{class:["fox-date-item__long-text"],value:R.value,readonly:!0}),ge={class:M.value},Te=l.h("div",ge,{default:()=>[ce,pe]});X.push(Te)}if(!s.value&&!i.value){const ce={label:G.value||R.value,disabled:s.value||i.value,modelValue:_.value,"onUpdate:modelValue":Y},pe=l.h(T.ElCheckbox,ce),ge=l.h("div",{class:{[`${w}__append`]:!0}},[pe]);z.append=()=>ge}}const le={...Oe(t,Po,Io),ref:te,class:{[`${w}__wrapper`]:!0,"has-append":J},hintText:L.value,hintVisible:B.value};return t.prop&&(le.prop=`${t.prop}_item`),l.h(o,le,z)}}}}const{componentName:eu,create:tu,scope:nu}=ae("date-item"),El=tu(Js(eu,nu,Ne)),Oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function lu(e,n,o){return{props:{...$e,...Ve,...Oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0})),h=k=>{p.value=k,c("update:modelValue",k),c("change",k)};let D=he(t,"hintText"),w=l.ref(!1);const x=k=>{let j=k.target.value;v.value=!0,de(D.value)||(w.value=!0),c("focus",j,k)},L=k=>{setTimeout(()=>{w.value&&(w.value=!1),v.value=!1},0);let j=k.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,k)},B=()=>{c("clear","")},q=k=>{c("visible-change",k)},P=l.ref();return Se({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const b={...r.attrs,ref:P,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,"onUpdate:modelValue":h,onClear:B,onFocus:x,onBlur:L,onVisibleChange:q},j={},g=[],R=l.h(T.ElTimePicker,b,j);g.push(R);const G={default:()=>g};G.label=r.slots.default,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const N={...Oe(t,Oo),hintText:D.value,hintVisible:w.value};return t.prop&&(N.prop=`${t.prop}_item`),l.h(o,N,G)}}}}const{componentName:ou,create:ru,scope:au}=ae("time-item"),kl=ru(lu(ou,au,Ne)),Vo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function iu(e,n,o){return{props:{...$e,...Ve,...Vo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0})),h=P=>{p.value=P,c("update:modelValue",P),c("change",P)};let D=he(t,"hintText"),w=l.ref(!1);const x=P=>{let b=P.target.value;v.value=!0,de(D.value)||(w.value=!0),c("focus",b,P)},L=P=>{setTimeout(()=>{w.value&&(w.value=!1),v.value=!1},0);let b=P.target.value;t.maxLength&&b.length>Number(t.maxLength)&&(b=b.slice(0,Number(t.maxLength))),c("blur",b,P)},B=()=>{c("clear","")},q=l.ref();return Se({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()},setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const k={...r.attrs,ref:q,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,"onUpdate:modelValue":h,onClear:B,onFocus:x,onBlur:L},b={},j=[],g=l.h(T.ElTimeSelect,k,b);j.push(g);const R={default:()=>j};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const O={...Oe(t,Vo),hintText:D.value,hintVisible:w.value};return t.prop&&(O.prop=`${t.prop}_item`),l.h(o,O,R)}}}}const{componentName:su,create:uu,scope:cu}=ae("time-select-item"),Pl=uu(iu(su,cu,Ne));function Do(e,n=0){let o=`${e}`,t=o.indexOf(".");if(t==-1)return o;let r=t;for(let a=o.length-1;a>=t;a--)if(o.charAt(a)!="0"){r=a;break}return r-t<n?r=t+n+1:r!=t&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Ro(e,n,o=20){if(typeof n=="string"&&(n=Ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=xr(`${e}`,`${n}`);return Do(t)}else{let t=dl(`${e}`,wr(`${n}`),20);return Do(t)}}function fu(e,n=-1,o=!1,t=3,r=","){return un(e,n,o,t,r)}function Fo(e,n,o,t,r=!0){if(e==="")return"";if(e=Sr(e),n=Ce(n),n==1)return e;if(t)e=Ro(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Ce(o)+2,"0"):e=dl(e,1,Ce(o)));else{let a=-1*n;e=Ro(e,a)}return e}function Ao(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ue(n.minInclude),r=Qn(e,n.min);if(t&&r==-1||!t&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let t=ue(n.maxInclude),r=Qn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Mo={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 du(e,n,o){return{props:{...$e,...Ve,...Mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=l.ref(!1),m=he(t,"modelValue",null,c),v=l.ref("");l.watch([()=>m.value,()=>t.rates,()=>t.precision],([N,A,_])=>{if(de(N)){v.value="";return}const Y=Fo(N,A,_,!1);v.value!==Y&&(v.value=Y)},{immediate:!0});const p=l.computed(()=>{let N="";return d.value&&(N=v.value),N}),{t:y}=je.useFoxI18n(n),f=l.computed(()=>{let N=t.placeholder??"";return!d.value&&!de(v.value)?N=fu(v.value,t.decimalLength,t.autoPadding,t.digits,t.separator):N=y(["placeholder",N]),N}),h=e,D=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:v.value.length>0})),w=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>d.value?{textAlign:"left"}:{textAlign:w.value??"right"});const x=l.ref(""),L=l.computed(()=>{let N=x.value;return de(N)&&(N=t.errorTip??""),N}),B=l.ref(""),q=l.ref(!1),P=(N,A)=>{if(N=`${N}`,de(N)){v.value="",m.value="",A.forEach(_=>{c(_,"")}),ue(t.showTip)&&q.value&&(q.value=!1);return}if(N.length>=2){let _=N;if(_.charAt(0)=="-"&&(_=_.substring(1)),_.length>=2&&_.charAt(0)=="0"&&_.charAt(1)!="."){l.triggerRef(v);return}}if(N!="-"){if(!Ir(N)){l.triggerRef(v);return}if(t.integerLength!=-1&&Or(N)>Number(t.integerLength)){l.triggerRef(v);return}if(t.decimalLength&&t.decimalLength!=-1&&Vr(N)>Number(t.decimalLength)){l.triggerRef(v);return}let _=Ao(N,t);if(_.maxValid===!1){x.value=_.message,l.triggerRef(v);return}}else if(t.min!=null&&Ce(t.min)>=0){l.triggerRef(v);return}B.value=N,ue(t.showTip)&&(q.value=N.length>0),v.value=N,m.value=Fo(N,t.rates,t.precision,!0),A.forEach(_=>{c(_,m.value)})},k=N=>{P(N,["update:modelValue","input"])},b=N=>{P(N,["update:modelValue","change"])},j=N=>{if(d.value=!0,ue(t.showTip)){let A=v.value;de(A)&&(A=t.hintText),de(A)||(B.value=A,q.value=!0)}x.value="",c("focus",m.value,N)},g=N=>{if(setTimeout(()=>{d.value=!1,ue(t.showTip)&&q.value===!0&&(q.value=!1)},0),!de(v.value)){let A=Ao(v.value,t);if(A.minValid===!1||A.maxValid===!1){x.value=A.message;return}}c("update:modelValue",m.value,N),c("blur",m.value,N)},R=()=>{c("clear","")},G=l.computed(()=>At(t.unit)>0),O=l.ref();return Se({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const A={...Ze(r.attrs),ref:O,class:D.value,type:"digit",maxlength:t.maxLength,placeholder:f.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:R,onInput:k,onChange:b,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:G.value&&(_.suffix=()=>[t.unit]);const Y=[],J=l.h(T.ElInput,A,_);Y.push(J);const M={default:()=>Y};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const $={...Oe(t,Mo),errorTip:L.value,hintText:B.value,hintVisible:q.value,hintType:"number"};return t.prop&&($.prop=`${t.prop}_item`),l.h(o,$,M)}}}}const{componentName:hu,create:mu,scope:gu}=ae("money-item"),Il=mu(du(hu,gu,Ne)),Lo={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 vu(e,n,o){return{props:{...$e,...Ve,...Lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0,[`${y}__append`]:k.value})),h=l.computed(()=>({[`${y}__unit`]:!0})),D=j=>{p.value=j,c("update:modelValue",j),c("input",j)},w=j=>{c("change",j)};let x=he(t,"hintText"),L=l.ref(!1);const B=j=>{let R=j.target.value;v.value=!0,de(x.value)||(L.value=!0),c("focus",R,j)},q=j=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let R=j.target.value;t.maxLength&&R.length>Number(t.maxLength)&&(R=R.slice(0,Number(t.maxLength))),c("blur",R,j)},P=()=>{c("clear","")},k=l.computed(()=>At(t.unit)>0),b=l.ref();return Se({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},setDisabled:j=>{a.value=j},setReadonly:j=>{u.value=j}}),()=>{const g={...Ze(r.attrs),ref:b,class:f.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:P,onChange:w,onInput:D,onFocus:B,onBlur:q},R={},G=[],O=l.h(T.ElInputNumber,g,R);G.push(O);const N={default:()=>G};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const _={...Oe(t,Lo),hintText:x.value,hintVisible:L.value};if(t.prop&&(_.prop=`${t.prop}_item`),r.slots.append)N.append=r.slots.append;else if(k.value){const J={class:h.value},M=l.h("div",J,[t.unit]);N.append=()=>M}return l.h(o,_,N)}}}}const{componentName:pu,create:yu,scope:bu}=ae("input-number-item"),Ol=yu(vu(pu,bu,Ne));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function xu(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let wu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const a=_e(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Su(){const e=l.getCurrentInstance();return new wu(e.proxy)}function sl(e,n,o){const t=et(e,n),r=et(e,o);if(t!==r)return!1;const a=dt(e,n),i=dt(e,o);return a===i}function na(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=t;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=na(e,u,o,t);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=et(e,c)===u;else if(o==="item")s=sl(e,c,u);else{let d=dt(e,c);d==null&&(d=et(e,c)),s=d===u}if(s){r.push(c),a=xu(e,c);break}}if(!s)break}}return r}function Tu(e){return{text:e,value:e}}const Bo={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 Cu(e,n,o){return{props:{...$e,...Ve,...Bo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(null),p=l.ref([]),y=l.computed(()=>p.value?p.value.map(W=>Array.isArray(W)?W.map(K=>et(t,K)).join(" "):et(t,W)).join(" "):""),f=(U,W,E,K=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(v.value===U)return;v.value=U;const Z=l.toRaw(U);if(K){const le=ne?.value.getCheckedNodes();if(le)if(t.multiple){const se=[];le.forEach(ce=>{const ge=(ce.pathNodes??[]).map(Te=>Te.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",Z),c("change",Z)}return}const X=na(t,U,W,E);if(X===null){if(p.value.length===0||p.value===null)return;p.value=[],v.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const I=X[X.length-1];if(R.value.checkStrictly!==!0&&I&&!Array.isArray(I)&&Array.isArray(I.children)&&I.children.length>0){const Z=[];X.forEach(le=>{const se=`${et(t,le)}`;Z.push(se)}),Z.length>0&&(j.value=Z.join(t.separator))}else j.value=null;let z=!0;if(X.length!==p.value.length)z=!1;else for(let Z=0;Z<X.length;Z++){const le=X[Z],se=p.value[Z];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)z=!1;else for(let ce=0;ce<le.length;ce++)if(!sl(t,le[ce],se[ce])){z=!1;break}}else sl(t,le,se)||(z=!1);if(!z)break}if(!z){p.value=X;let Z=[],le=[];X.forEach(ce=>{if(Array.isArray(ce)){let pe=[],ge=[];for(let Te of ce)pe.push(dt(t,Te)),t.valueType==="text"?ge.push(et(t,Te)):t.valueType==="item"?ge.push(Te):ge.push(dt(t,Te));Z.push(pe),le.push(ge)}else Z.push(dt(t,ce)),t.valueType==="text"?le.push(et(t,ce)):t.valueType==="item"?le.push(ce):le.push(dt(t,ce))}),v.value=Z;const se=l.toRaw(le);K&&(c("update:pathNodes",X),c("update:modelValue",se),c("change",se))}},h=l.ref([]),D=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,U=>ue(U)),w=Su(),x=async(U,W)=>{if(U){const E=await w.load("cascader",U,W);if(E.length>0)if(typeof E[0]=="string"){let I=E.map(z=>Tu(z));h.value=I}else h.value=E}};l.watch([()=>t.source,()=>t.params],async([U,W])=>{x(U,W)},{immediate:!(D.value||t.lazy)});let L=!1;const B=()=>{L||(L=!0,x(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([U,W])=>{f(W,t.valueType,U,!1),c("setValue",W)}),t.lazy&&f(t.modelValue,"value",[],!1);let q=null,P=l.ref(!1);typeof t.remoteMethod=="function"&&(q=async U=>{if(U!=null){P.value=!0;try{const W=await t.remoteMethod(U);h.value=W}catch(W){console.error(W)}P.value=!1}});const k=l.ref(!1),b=e,j=l.ref(null),g=l.computed(()=>({[b]:!0,"is-incomplete":j.value&&j.value.length>0})),R=l.computed(()=>{let U={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(U.multiple=!0),t.props&&Object.assign(U,t.props),t.lazy&&(U.lazy=!0,typeof t.lazyLoad=="function"?U.lazyLoad=t.lazyLoad:U.lazyLoad=async(W,E)=>{let K={};t.params&&Object.assign(K,t.params),W&&Object.assign(K,W);const X=await w.load("cascader",t.source,K,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===W.level){const I=W.pathLabels??[];let z=[];I.forEach(Z=>{Z&&z.push(Z)}),z.length>0&&(j.value=z.join(t.separator))}else j.value=null;E(X)}),U}),G=U=>{t.allowCreate?(c("update:modelValue",U),c("change",U),v.value=U):f(U,"value",h.value,!0)};let O=he(t,"hintText"),N=l.ref(!1);const A=U=>{let E=U.target.value;k.value=!0,de(O.value)||(N.value=!0),c("focus",E,U)},_=U=>{setTimeout(()=>{N.value&&(N.value=!1),k.value=!1},0);let E=U.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),V.value||c("blur",E,U)},Y=()=>{c("clear","")},J=l.ref(!1);let M=null;const te=()=>{t.showTooltip&&J.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{J.value=!0},150))},$=()=>{M&&(clearTimeout(M),J.value=!1,M=null)},C=l.computed(()=>J.value||N.value),F=l.computed(()=>J.value?y.value:O.value),V=l.ref(!1),S=U=>{V.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},Q=U=>{c("expand-change",U)},ne=l.ref();return Se({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const W={...r.attrs,ref:ne,class:g.value,props:R.value,clearable:t.clearable,placeholder:j.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:v.value,separator:t.separator,onClear:Y,onChange:G,onFocus:A,onBlur:_,onVisibleChange:S,onRemoveTag:H,expandChange:Q};typeof q=="function"&&(W["remote-method"]=q,W.loading=P.value);const E={};r.slots.option&&(E.default=r.slots.option),r.slots.empty&&(E.empty=r.slots.empty);const K=[],X=l.h(T.ElCascader,W,E);K.push(X);const I={default:()=>K};I.label=r.slots.default,I.fixedPreTip=r.slots.fixedPreTip,I.fixedTip=r.slots.fixedTip;const Z={...Oe(t,Bo),hintText:F.value,hintVisible:C.value,onMouseover:te,onMouseleave:$};return t.prop&&(Z.prop=`${t.prop}_item`),D.value&&!t.lazy&&(Z["appear-listen"]=!0,Z.onAppear=B),l.h(o,Z,I)}}}}const{componentName:$u,create:Nu,scope:Eu}=ae("cascader-item"),Vl=Nu(Cu($u,Eu,Ne)),qo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ku(e,n,o){return{props:{...$e,...Ve,...qo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0})),h=b=>{p.value=b,c("update:modelValue",b),c("input",b)},D=b=>{c("change",b)},w=b=>{c("select",b)};let x=he(t,"hintText"),L=l.ref(!1);const B=b=>{let g=b.target.value;v.value=!0,de(x.value)||(L.value=!0),c("focus",g,b)},q=b=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let g=b.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),c("blur",g,b)},P=()=>{c("clear","")},k=l.ref();return Se({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},setDisabled:b=>{a.value=b},setReadonly:b=>{u.value=b}}),()=>{const j={...r.attrs,ref:k,class:f.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,onClear:P,onChange:D,onInput:h,onFocus:B,onBlur:q,onSelect:w},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 R=[],G=l.h(T.ElAutocomplete,j,g);R.push(G);const O={default:()=>R};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const A={...Oe(t,qo),hintText:x.value,hintVisible:L.value};return t.prop&&(A.prop=`${t.prop}_item`),l.h(o,A,O)}}}}const{componentName:Pu,create:Iu,scope:Ou}=ae("autocomplete-item"),Dl=Iu(ku(Pu,Ou,Ne));function Vu(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(v=>v[t]===d);if(!m)break;i.push(m[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],d=a[s];const m=c.find(v=>v[t]===d);if(!m)break;i.push(m[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(v=>v[t]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let Du=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Ru(){const e=l.getCurrentInstance();return new Du(e.proxy)}const la={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 Fu(e,n){return{props:{...la},setup(o,{attrs:t,slots:r}){const a=Ru(),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=Vu(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={...t};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",{...t,class:o.emptyClass},u.value):l.h(s,c,{default:()=>u.value}):l.h(s,c,u.value)}}}}const{create:Au}=ae("mapping"),Rt=Au(Fu());function Mu(e,n){let o=n.split("."),t=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);t=t[m][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function Lu(e,n){return{props:{...la},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const u=Mu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:u},{default:r.default}):l.h(Rt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(T.ElTableColumn,{...t},a)}}}}const{create:Bu}=ae("table-mapping-column"),Rl=Bu(Lu()),qu=Symbol.for("TableStateKey");function _o(e,n){let o=n.split("."),t=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);t=t[m][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function _u(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(qu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=_o(u.row,u.column.property),c=a?_o(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},v=l.h("span",m,[l.h("span",{class:{"el-radio__inner":!0}})]),p={class:{"el-radio":!0,"is-checked":d}};return l.h("label",p,[v])}};return l.h(T.ElTableColumn,{...t},i)}}}}const{create:ju}=ae("table-radio-column"),Fl=ju(_u()),zu={},Hu={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 Ku(e,n){return l.openBlock(),l.createElementBlock("svg",Hu,n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const Wu=Xe(zu,[["render",Ku]]),{create:Yu}=ae("table-setting"),Uu={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:"不固定"}},Gu=Yu({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:Wu,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Uu},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),i=l.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),u=l.computed(()=>r.value.filter(S=>!(S.label===""||S.type||S.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=S=>S.length>1,v=(S,H)=>{Array.isArray(S)&&Array.isArray(H)&&S.forEach(U=>{H.some(W=>W.prop===U.prop?(U.label=W.label,!0):!1)});const Q=[];r.value=S.map((U,W)=>(!(U.label===""||U.type)&&U.visible!==!1&&Q.push(U.prop),{...U,sortIndex:W})),u.value.length+a.value.length+i.value.length===Q.length?w.value=!0:Q.length>0&&(x.value=!0),q.value=Q},p=S=>S?S.type?S.type:S.label?S.prop:"":"",y=(S,H)=>{if(S.length!==H.length)return!1;const Q=S.map(ne=>p(ne));for(let ne of H){const U=p(ne);if(Q.indexOf(U)===-1)return!1}return!0},f=S=>{if(!S){const H=e.tableRef.getColumnSetting(),Q=H.srcColumnPropertyList;t=Q.map((ne,U)=>({...ne,sortIndex:U})),S=H.columnPropertyList,S&&S.length>0&&y(Q,S)||(S=Q)}v(S,t)},h=()=>{e.tableRef.setColumnSetting(r.value)},D=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),x=l.ref(!1),L=S=>{const H=[];r.value.forEach(ne=>{S&&!(ne.label===""||ne.type)&&H.push(ne.prop),ne.visible=S}),w.value=!1,x.value=!1,u.value.length+a.value.length+i.value.length===H.length?w.value=!0:H.length>0&&(x.value=!0),q.value=H,h()},B=()=>{f(t),h()},q=l.ref([]),P=S=>{r.value.forEach(Q=>{if(Q.label===""||Q.type)return;const ne=S.indexOf(Q.prop)!==-1;Q.visible=ne}),w.value=!1,x.value=!1;const H=u.value.length+a.value.length+i.value.length;S.length===H?w.value=!0:S.length>0&&(x.value=!0),h()},k=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const b={currentRow:null,index:null,roleType:null},j=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,j(S)):null:null,g=S=>{const H=S.currentTarget;H&&H.dataset&&(b.roleType=H.dataset.roleType,b.index=H.dataset.index)},R=S=>{b.currentRow&&(b.currentRow.classList.remove("is-dragover"),b.currentRow=null),b.index=null,b.roleType=null},G=S=>{const H=S.currentTarget;S.relatedTarget;const Q=j(H);if(!Q)return;const ne=Q.dataset&&Q.dataset.roleType;b.roleType===ne&&(S.preventDefault(),b.currentRow&&b.currentRow!==Q&&b.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),b.currentRow=Q)},O=S=>{S.preventDefault(),b.currentRow&&(b.currentRow.classList.remove("is-dragover"),b.currentRow=null)},N=S=>{const H=S.currentTarget,Q=j(H);if(!Q)return;const ne=Q.dataset&&Q.dataset.roleType;if(b.roleType!==ne)return;S.preventDefault();const U=Number(b.index),W=Number(Q.dataset.index);if(U!==W){if(U<W){const E=r.value[U];r.value.splice(U,1),r.value.splice(W,0,E)}else{const E=r.value[U];r.value.splice(U,1),r.value.splice(W+1,0,E)}v(r.value,t),h()}},A=S=>{const H=r.value[S];H.fixed="left",h()},_=S=>{const H=r.value[S];H.fixed="right",h()},Y=S=>{const H=r.value[S];H.fixed=void 0,h()},J=new Map;let M=null;function te(S){const H=document.createRange();return H.setStart(S,0),H.setEnd(S,S.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:w,isIndeterminate:x,handleCheckAllChange:L,handleReset:B,checkedValue:q,handleCheckChange:P,onShow:k,onDragStart:g,onDragEnd:R,onDragOver:G,onDragLeave:O,onDrop:N,toLeftFixed:A,toRightFixed:_,toUnFixed:Y,checkboxLabelStyle:D,onMouseOverForOverflowText:(S,H,Q)=>{const ne=S.currentTarget;if(ne){const U=Math.floor(ne.offsetWidth);if(Math.floor(te(ne))>U){let E=J.get(H);if(E){if(E===M)return;Re.hide(E)}E=Re.show(ne,Q,{type:"text",placement:"top",closeOnClick:!1}),E&&(J.set(H,E),M=E)}}},onMouseLeaveForOverflowText:(S,H)=>{const Q=J.get(H);Q&&(Re.hide(Q),Q===M&&(M=null))},onMouseOverForTip:(S,H)=>{const Q=S.currentTarget;Q&&(M&&Re.hide(M),M=Re.show(Q,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:S=>{M&&(Re.hide(M),M=null)}}}}),Xu={class:"fox-table-setting"},Zu={class:"fox-table-setting__header"},Qu={class:"fox-table-setting__body"},Ju={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},ec={key:0,class:"fox-table-setting__body-title"},tc=["data-index","draggable"],nc=["onMouseover","onMouseleave"],lc={class:"tools-item"},oc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},rc={key:0,class:"fox-table-setting__body-title"},ac=["data-index","draggable"],ic=["onMouseover","onMouseleave"],sc={class:"tools-item"},uc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},cc={key:0,class:"fox-table-setting__body-title"},fc=["data-index","draggable"],dc=["onMouseover","onMouseleave"],hc={class:"tools-item"};function mc(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),d=l.resolveComponent("FoxIcon"),m=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),p=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,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",Xu,[l.createElementVNode("div",Zu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Qu,[l.createVNode(p,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ju,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",ec,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,nc)]),_:2},1032,["value"]),l.createElementVNode("div",lc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,tc))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",oc,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",rc,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,ic)]),_:2},1032,["value"]),l.createElementVNode("div",sc,[l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,ac))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",uc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",cc,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,dc)]),_:2},1032,["label"]),l.createElementVNode("div",hc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,fc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const kn=Xe(Gu,[["render",mc]]);let gc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,u){if(Array.isArray(o)){let c=(t-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,[t,r,a,i,u]);const s=_e(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,t,r,a,i,u]))}};function vc(){const e=l.getCurrentInstance();return new gc(e.proxy)}class pc{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=_e(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=_e(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=_e(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function oa(){const e=l.getCurrentInstance();return new pc(e.proxy)}const yc=Symbol.for("TableStateKey"),jo={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"}},zo={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[Boolean],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},jn={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:()=>"不固定"}},bc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function xc(e,n){let o=n.split("."),t=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);t=t[m][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function zn(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=xc(t,r);if(a!==i)return!1}return!0})}function wc(e,n,o){return{props:{...$e,...Ve,...jo,...zo,...jn,...bc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a}=je.useFoxI18n(n),{emitEvent:i,broadcast:u}=Ee({componentName:e,validateHandler:{getValue(...ee){return P.value}}},t.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__${t.footerAlign}`]:!0})),v=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${t.paginationAlign}`]:!0})),p=l.shallowRef({}),y=l.computed(()=>({...p.value,...t.params??{},...t.baseParams??{}})),f=l.ref(t.infiniteLoad===!0?0:t.pageIndex),h=l.ref(t.pageSize),D=ue(t.infiniteLoad);D||(l.watch(()=>t.pageIndex,ee=>{f.value=ee}),l.watch(()=>t.pageSize,ee=>{h.value=ee}),l.watch([f,h],([ee,oe],[re,ie])=>{oe!==ie&&(f.value=1,ee=1),g(t.data,ee,oe,y.value)}));const w=()=>Array.isArray(t.data)?!0:ue(t.autoLoad);w()&&l.watch([()=>t.data,y],async([ee,oe],[re,ie])=>{w()&&(ee!==re&&(b=!0),!(!Array.isArray(ee)&&tt(ee,re)&&tt(oe,ie))&&(D?(f.value=0,B.value=!0,P.value=[],G()):f.value===1?g(ee,f.value,h.value,oe):f.value=1))},{deep:!0});const x=ee=>{f.value=ee,i("page-index-change",ee)},L=ee=>{h.value=ee,i("page-size-change",ee)},B=l.ref(!0),q=l.ref(0),P=l.ref(),k=vc();let b=!0;const j=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,ee=>ue(ee)),g=async(ee,oe,re,ie,ke)=>{b=!1;try{if(ke===!0){if(!B.value)return!1;const ve=await k.load("table",ee,oe,re,ie,b,a.value);return q.value=ve.totalSize,!ve.page||!Array.isArray(ve.page)||(Reflect.apply([].push,P.value,ve.page),setTimeout(()=>{i("loaded-data")},250),(P.value?.length??0)>=q.value)||ve.page.length<re?(B.value=!1,!1):!0}else{const ve=await k.load("table",ee,oe,re,ie,b,a.value);return q.value=ve.totalSize,P.value=ve.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ve){console.error("[FoxUI] Load Table Data Fail",ve),q.value=0,P.value=[]}return!1};let R=!1;const G=async()=>{if(!R){if(R=!0,!B.value){R=!1;return}f.value+=1,await g(t.data,f.value,h.value,y.value,!0),R=!1}},O=(ee={},oe=!1)=>new Promise(async re=>{p.value={...l.toRaw(ee??{})},oe||(f.value=t.pageIndex??1),D===!0?(f.value=0,P.value=[],B.value=!0,await G()):await g(t.data,f.value,h.value,y.value),re()}),N=()=>{q.value=0,P.value=[],D===!0&&(f.value=0,B.value=!0)};let A=!1;const _=()=>{A||(A=!0,O())},Y=l.ref(null);if(D===!0){let ee=null;const oe=()=>{Y.value&&(ee=new IntersectionObserver(ie=>{let ke=!1;for(let ve of ie)if(ve.intersectionRatio>0){ke=!0;break}ke&&G()}),ee.observe(Y.value))},re=()=>{!ee||!Y.value||(ee.unobserve(Y.value),ee=null)};l.onMounted(oe),l.onBeforeUnmount(re)}w()&&!j.value&&O();const J=l.ref(null);l.provide(yc,{currentRow:J});const M=(ee,oe)=>{J.value=ee,i("current-change",ee,oe)},te=(ee,oe,re)=>{i("row-click",ee,oe,re),ue(t.rowClickSelectable)===!0&&we?.value.toggleRowSelection(ee)},$=[],C=(ee,oe)=>{if(i("expand-change",ee,oe),ue(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=$.length;$.splice(0,re)}else{$.forEach(ie=>{ie!==ee&&we?.value.toggleRowExpansion(ie,!1)});const re=$.length;$.splice(0,re,ee)}},F=r.attrs.id??t.prop??r.attrs.name,V=oa(),S=l.ref([]);let H=[];const Q=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:S.value}),ne=ee=>{S.value=[...ee],W()},U=async()=>{const ee=await V.load(F);ee&&(S.value=ee)},W=()=>{V.save(F,S.value)},E=()=>{V.remove(F)};U();const K=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",X=(ee,oe={})=>{for(let re in oe){const ie=oe[re];typeof ie!="function"&&(ee[re]=ie)}},I=ee=>{const oe=ee?ee():[],re=new Map;if(H=[],oe.forEach(ie=>{const ve=ie;if(!ve.props)return;const We=K(ve.props);re.set(We,ve);const He={label:"",prop:""};X(He,ve.props),H.push(He)}),S.value.length===H.length){const ie=[];for(let ke of S.value){const ve=K(ke),We=re.get(ve);if(!We)return oe;if(ke.visible===!1)continue;const He=We;He.props.fixed=ke.fixed,ie.push(He)}return ie}return oe},z=l.shallowRef(new Map),Z=({row:ee,column:oe,rowIndex:re,columnIndex:ie})=>{const ke=`${re}_${oe.property}`,ve=`${re}_${ie}`;let We=z.value.get(ke);return We||(We=z.value.get(ve)),typeof We=="string"?We:""},le=ee=>ee?oe=>{const re=[];let ie=Z(oe);return ie&&re.push(ie),ie=ie=typeof ee=="function"?ee(oe):ee,ie&&re.push(ie),re.length===0?"":re.join(" ")}:Z,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)},Te=()=>{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,Dn=(ee,oe)=>{const re=`${ee}`;oe?ze.value.set(re,oe):ze.value.delete(re),l.triggerRef(ze)},ga=()=>{ze.value.clear(),l.triggerRef(ze)},we=l.ref();return Se({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{we?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!P.value)return;const re=zn(P.value,ee);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowSelection(ie,oe)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{we?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!P.value)return;const re=zn(P.value,ee);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowExpansion(ie,oe)})},setCurrentRow:ee=>{we?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!P.value)return;const oe=zn(P.value,ee);oe.length!==0&&we?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{we?.value.clearSort()},clearFilter:ee=>{we?.value.clearFilter(ee)},doLayout:()=>{we?.value.doLayout()},sort:(ee,oe)=>{we?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{we?.value.scrollTo(ee,oe)},setScrollTop:ee=>{we?.value.setScrollTop(ee)},setScrollLeft:ee=>{we?.value.setScrollLeft(ee)},loadData:O,clearData:N,getData(){return P.value},getTotalSize(){return q.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Q,setColumnSetting:ne,removeColumnSetting:E,setCellClassName:pe,setCellClassNames:ge,clearCellClassName:Te,setRowClassName:Dn,clearRowClassName:ga}),()=>{const oe={...Ze(r.attrs),onCurrentChange:M,onRowClick:te,onExpandChange:C,data:P.value,ref:we,class:c.value,"cell-class-name":le(t.cellClassName),"row-class-name":mt(t.rowClassName)},re={};if(r.slots.default&&(re.default=()=>I(r.slots.default)),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),D===!0){const Ye=[];if(B.value){const Tt=l.h(Ie.Loading,{class:`${s}__infinite-icon`});Ye.push(Tt);const Fn=l.h("span",{class:`${s}__infinite-text`},[t.loadText]);Ye.push(Fn)}else{const Tt=l.h("span",{class:`${s}__infinite-text`},[t.loadMoreText]);Ye.push(Tt)}const ut={ref:Y,class:`${s}__infinite`},Rn=l.h("div",ut,Ye);re.append=()=>Rn}const ie=l.h(T.ElTable,oe,re),ke=[];if(ke.push(ie),!D){let Ye=null;if(typeof r.slots.pagination=="function")Ye=r.slots.pagination();else if(t.showPagination){const ut={class:v.value,total:q.value,pageSize:h.value,"onUpdate:pageSize":L,pageSizes:t.pageSizes,currentPage:f.value,"onUpdate:currentPage":x,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,size:t.paginationSize,background:t.paginationBackground,appendSizeTo:t.paginationAppendSizeTo,teleported:t.paginationTeleported,popperClass:t.paginationPopperClass,prevText:t.paginationpPrevText,prevIcos:t.paginationPrevIcon,nextText:t.paginationNextText,pnextIcon:t.paginationNextIcon,disabled:t.paginationDisabled};Ye=l.h(T.ElPagination,ut)}if(t.showSetting){const ut=[];Ye&&ut.push(Ye);const Rn=l.h(T.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),Tt=Vt(t,jn),Fn=l.h(kn,{...Tt,tableRef:{getColumnSetting:Q,setColumnSetting:ne,removeColumnSetting:E}},{default:()=>Rn});ut.push(Fn);const va=l.h("div",{class:m.value},ut);ke.push(va)}else Ye&&ke.push(Ye)}const ve={default:()=>ke},He={...Oe(t,jo,zo,jn)};return t.prop&&(He.prop=`${t.prop}_item`),He.contentClass=`${s}__wrap`,He.errorMarkClass="is-table-error",j.value&&w()&&(He["appear-listen"]=!0,He.onAppear=_),l.h(o,He,ve)}}}}const{componentName:Sc,create:Tc,scope:Cc}=ae("table-item"),Al=Tc(wc(Sc,Cc,Ne));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $c(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Nc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Ec(){const e=l.getCurrentInstance();return new Nc(e.proxy)}function ra(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=wt(e,n),r=wt(e,o);if(t!==r)return!1;const a=Ft(e,n),i=Ft(e,o);return a===i}function kc(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of t){let i=!1;if(o==="text")i=wt(e,a)===n;else if(o==="item")i=ra(e,a,n);else{let u=Ft(e,a);u==null&&(u=wt(e,a)),i=u===n}if(i){r=a;break}}return r}function Pc(e){return{text:e,value:e}}function Ic(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ho={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 Oc(e,n,o){return{inheritAttrs:!0,props:{...$e,...Ve,...Ho},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=l.ref(null),m=l.ref(null),v=(b,j,g,R=!0)=>{const G=kc(t,b,j,g);if(G===null){if(m.value===null)return;m.value=null,d.value=null,R&&(c("update:modelValue",null),c("change",null));return}if(!ra(t,G,m.value)){d.value=b;const N=l.toRaw(G);m.value=N;let A=null;t.valueType==="text"?A=wt(t,N):t.valueType==="item"?A=N:A=Ft(t,N),R&&(c("update:modelValue",A),c("change",A))}},p=l.ref([]),y=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,b=>ue(b)),f=Ec(),h=async(b,j)=>{if(b){const g=await f.load("radio",b,j);if(g.length>0)if(typeof g[0]=="string"){let O=g.map(N=>Pc(N));p.value=O}else p.value=g}};l.watch([()=>t.source,()=>t.params],async([b,j])=>{h(b,j)},{immediate:!y.value});let D=!1;const w=()=>{D||(D=!0,h(t.source,t.params))};l.watch([()=>p.value,()=>t.modelValue],([b,j])=>{v(j,t.valueType,b,!1),c("setValue",j)});const x=e,L=l.computed(()=>({[x]:!0,[`is-${t.direction}`]:!0})),B=b=>{v(b,"value",p.value,!0)};let q=he(t,"hintText"),P=he(t,"hintVisible");const k=(b,j)=>{const g=[];return b.forEach((R,G)=>{const O=Ft(t,R),N=wt(t,R);let A=$c(t,R);i.value===!0&&(A=i.value),s.value===!0&&(A=s.value);const _=Ic(t,R,G)??{},Y=`${O}_${G}`,J={..._,key:Y,value:O,size:t.size,border:ue(t.border)};A&&(J.disabled=A),t.itemType==="button"?g.push(l.h(T.ElRadioButton,J,{default:()=>[N]})):typeof j=="function"?g.push(l.h(T.ElRadio,J,{default:()=>j(R)})):g.push(l.h(T.ElRadio,J,{default:()=>[N]}))}),g};return Se({setDisabled:b=>{a.value=b},setReadonly:b=>{u.value=b}}),()=>{const j={...Ze(r.attrs),class:L.value,disabled:i.value||s.value,modelValue:d.value,"text-color":t.textColor,fill:t.fill,onChange:B},g=[],R={};r.slots.options?R.default=r.slots.options:R.default=()=>k(p.value,r.slots.text);const G=l.h(T.ElRadioGroup,j,R);g.push(G);const O={default:()=>g};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const A={...Oe(t,Ho),hintText:q.value,hintVisible:P.value};return t.prop&&(A.prop=`${t.prop}_item`),y.value&&(A["appear-listen"]=!0,A.onAppear=w),l.h(o,A,O)}}}}const{componentName:Vc,create:Dc,scope:Rc}=ae("radio-item"),Ml=Dc(Oc(Vc,Rc,Ne));function St(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ac=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Mc(){const e=l.getCurrentInstance();return new Ac(e.proxy)}function aa(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=St(e,n),r=St(e,o);if(t!==r)return!1;const a=bt(e,n),i=bt(e,o);return a===i}function Lc(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){let u=!1;if(o==="text")u=St(e,i)===a;else if(o==="item")u=aa(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 Bc(e){return{text:e,value:e}}function qc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ko={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 _c(e,n,o){return{inheritAttrs:!0,props:{...$e,...Ve,...Ko},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=l.ref([]),m=l.ref([]),v=(b,j,g,R=!0)=>{const G=Lc(t,b,j,g);if(G===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],R&&(c("update:modelValue",[]),c("change",[]));return}let O=!0;if(G.length!==m.value.length)O=!1;else for(let N=0;N<G.length;N++){const A=G[N],_=m.value[N];if(!aa(t,A,_)){O=!1;break}}if(!O){m.value=G;let N=[],A=[];G.forEach(Y=>{N.push(bt(t,Y)),t.valueType==="text"?A.push(St(t,Y)):t.valueType==="item"?A.push(Y):A.push(bt(t,Y))}),d.value=N;const _=l.toRaw(A);R&&(c("update:modelValue",_),c("change",_))}},p=l.ref([]),y=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,b=>ue(b)),f=Mc(),h=async(b,j)=>{if(b){const g=await f.load("checkbox",b,j);if(g.length>0)if(typeof g[0]=="string"){let O=g.map(N=>Bc(N));p.value=O}else p.value=g}};l.watch([()=>t.source,()=>t.params],async([b,j])=>{h(b,j)},{immediate:!y.value});let D=!1;const w=()=>{D||(D=!0,h(t.source,t.params))};l.watch([()=>p.value,()=>t.modelValue],([b,j])=>{v(j,t.valueType,b,!1),c("setValue",j)});const x=e,L=l.computed(()=>({[x]:!0,[`is-${t.direction}`]:!0})),B=b=>{v(b,"value",p.value,!0)};let q=he(t,"hintText"),P=he(t,"hintVisible");const k=(b,j)=>{const g=[];return b.forEach((R,G)=>{const O=bt(t,R),N=St(t,R);let A=Fc(t,R);i.value===!0&&(A=i.value),s.value===!0&&(A=s.value);const _=qc(t,R,G)??{},Y=`${O}_${G}`,J={..._,key:Y,class:t.itemClass,value:O,size:t.size,border:ue(t.border)};A&&(J.disabled=A),t.itemType==="button"?g.push(l.h(T.ElCheckboxButton,J,{default:()=>[N]})):typeof j=="function"?g.push(l.h(T.ElCheckbox,J,{default:()=>j(R)})):g.push(l.h(T.ElCheckbox,J,{default:()=>[N]}))}),g};return Se({setDisabled:b=>{a.value=b},setReadonly:b=>{u.value=b}}),()=>{const j={...Ze(r.attrs),class:L.value,disabled:i.value||s.value,modelValue:d.value,"text-color":t.textColor,fill:t.fill,max:Ce(t.max),min:Ce(t.min),onChange:B},g=[],R={};r.slots.options?R.default=r.slots.options:R.default=()=>k(p.value,r.slots.text);const G=l.h(T.ElCheckboxGroup,j,R);g.push(G);const O={default:()=>g};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const A={...Oe(t,Ko),hintText:q.value,hintVisible:P.value};return t.prop&&(A.prop=`${t.prop}_item`),y.value&&(A["appear-listen"]=!0,A.onAppear=w),l.h(o,A,O)}}}}const{componentName:jc,create:zc,scope:Hc}=ae("checkbox-item"),Ll=zc(_c(jc,Hc,Ne)),Wo={modelValue:{type:[Number,String],required:!1}};function Kc(e,n,o){return{props:{...$e,...Ve,...Wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=he(t,"modelValue",D=>Ce(D),c),m=e,v=l.computed(()=>({[m]:!0})),p=D=>{c("update:modelValue",D),c("change",D)};let y=he(t,"hintText"),f=l.ref(!1);const h=l.ref();return Se({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const w={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value||i.value,modelValue:d.value,onChange:p},x={},L=[],B=l.h(T.ElRate,w,x);L.push(B);const q={default:()=>L};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const k={...Oe(t,Wo),hintText:y.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,q)}}}}const{componentName:Wc,create:Yc,scope:Uc}=ae("rate-item"),Bl=Yc(Kc(Wc,Uc,Ne)),Yo={modelValue:{type:[Boolean,String,Number],required:!1}};function Gc(e,n,o){return{props:{...$e,...Ve,...Yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=he(t,"modelValue",null,c),m=e,v=l.computed(()=>({[m]:!0})),p=D=>{c("update:modelValue",D),c("change",D)};let y=he(t,"hintText"),f=he(t,"hintVisible");const h=l.ref();return Se({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const w={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:p},x={},L=[],B=l.h(T.ElSwitch,w,x);L.push(B);const q={default:()=>L};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const k={...Oe(t,Yo),hintText:y.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,q)}}}}const{componentName:Xc,create:Zc,scope:Qc}=ae("switch-item"),ql=Zc(Gc(Xc,Qc,Ne)),Uo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Jc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const i=_e(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function ef(){const e=l.getCurrentInstance();return new Jc(e.proxy)}const Go={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function tf(e,n,o){return{props:{...$e,...Ve,...Go,...Uo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),c=l.ref(!1),{emitEvent:d}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=he(t,"modelValue",null,d),v=e,p=l.computed(()=>({[v]:!0})),y=R=>{m.value=R,d("update:modelValue",R),d("change",R)};let f=he(t,"hintText"),h=l.ref(!1);const D=R=>{let O=R.target.value;c.value=!0,de(f.value)||(h.value=!0),d("focus",O,R)},w=R=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let O=R.target.value;t.maxLength&&O.length>Number(t.maxLength)&&(O=O.slice(0,Number(t.maxLength))),L.value||d("blur",O,R)},x=()=>{d("clear","")},L=l.ref(!1),B=R=>{L.value=R,d("visible-change",R),R||d("selected")},q=l.ref([]),P=ef(),k=async(R,G)=>{try{const O=await P.load("treeselect",R,G);q.value=O}catch(O){console.error(O)}};l.watch([()=>t.data,()=>t.params,()=>t.lazy],([R,G,O])=>{!R||O||k(R,G)},{immediate:!0});let b=null;t.lazy&&(typeof t.load=="function"?b=t.load:b=async(R,G)=>{debugger;let O={};t.params&&Object.assign(O,t.params),R&&Object.assign(O,R);const N=await P.load("treeselect",t.data,O,!0);G(N)});let j={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const g=l.ref();return Se({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const G={...Ze(r.attrs),ref:g,class:p.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":y,lazy:t.lazy,props:j,onClear:x,onFocus:D,onBlur:w,onVisibleChange:B};b?G.load=b:G.data=q.value;const O={};r.slots.option&&(O.default=r.slots.option);const N=[],A=l.h(T.ElTreeSelect,G,O);N.push(A);const _={default:()=>N};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const J={...Oe(t,Go,Uo),hintText:f.value,hintVisible:h.value};return t.prop&&(J.prop=`${t.prop}_item`),l.h(o,J,_)}}}}const{componentName:nf,create:lf,scope:of}=ae("tree-select-item"),_l=lf(tf(nf,of,Ne)),rf={},af={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 sf(e,n){return l.openBlock(),l.createElementBlock("svg",af,n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const uf=Xe(rf,[["render",sf]]),{create:cf}=ae("group-setting"),ff={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:"到底部"}},df=cf({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:uf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...ff},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=oa(),u=$=>$.length>1,s=()=>{const $=[],C=[...a.value];a.value=C.map((V,S)=>(V.visible!==!1&&$.push(V.prop),{...V,sortIndex:S})),a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),x.value=$},c=$=>{let C=null;if(typeof $=="string")C=document.querySelectorAll(`.fox-group[prop="${$}"] > div > .fox-item[prop]`);else if($&&typeof $=="object"){const V=$.$el??$;typeof V.querySelectorAll=="function"&&(C=V.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const F=[];return C.forEach(V=>{const S=V.querySelector(".label--string");let H="";S&&(H=S.textContent??"");const Q=V.getAttribute("prop")??"",U=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:H,prop:Q,sortIndex:0,visible:U!=="none"})}),F},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),F=V=>{if(!V||!r)return;const S=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{S.some(Q=>{if(Q.prop===H.prop){const ne=Q.label;return Object.assign(Q,H),Q.label=ne,!0}return!1})}),a.value=S.sort((H,Q)=>H.sortIndex-Q.sortIndex),s(),$&&p(!1)};r?F(!0):mn(d,e.initDelay,5,50,!1,F)},v=()=>{const $=r??[];a.value=$.map(C=>({...C})),s(),p()},p=($=!0)=>{$&&i.save(e.groupProp,a.value);const C=a.value.map(F=>({...F}));n("change",C)},y=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),D=$=>{const C=[];a.value.forEach(V=>{$&&C.push(V.prop),V.visible=$}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),x.value=C,p()},w=()=>{v()},x=l.ref([]),L=$=>{a.value.forEach(F=>{const V=$.indexOf(F.prop)!==-1;F.visible=V}),f.value=!1,h.value=!1;const C=a.value.length;$.length===C?f.value=!0:$.length>0&&(h.value=!0),p()},B=()=>{m()};l.onMounted(()=>{m(!0)});const q={currentRow:null,index:null},P=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,P($)):null:null,k=$=>{const C=$.currentTarget;C&&C.dataset&&(q.index=C.dataset.index)},b=$=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},j=$=>{const C=$.currentTarget;$.relatedTarget;const F=P(C);F&&($.preventDefault(),q.currentRow&&q.currentRow!==F&&q.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),q.currentRow=F)},g=$=>{$.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},R=$=>{const C=$.currentTarget,F=P(C);if(!F)return;$.preventDefault();const V=Number(q.index),S=Number(F.dataset.index);if(V!==S){if(V<S){const H=a.value[V];a.value.splice(V,1),a.value.splice(S,0,H)}else{const H=a.value[V];a.value.splice(V,1),a.value.splice(S+1,0,H)}s(),p()}},G=$=>{const C=a.value[$];a.value.splice($,1),a.value.splice(0,0,C),s(),p()},O=$=>{const C=a.value[$];a.value.splice($,1),a.value.push(C),s(),p()};t({refresh:()=>{r=null,m(!1)}});const N=new Map;let A=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:D,handleReset:w,checkedValue:x,handleCheckChange:L,onShow:B,onDragStart:k,onDragEnd:b,onDragOver:j,onDragLeave:g,onDrop:R,checkboxLabelStyle:y,toTop:G,toBottom:O,onMouseOverForOverflowText:($,C,F)=>{const V=$.currentTarget;if(V){const S=Math.floor(V.offsetWidth);if(Math.floor(_(V))>S){let Q=N.get(C);if(Q){if(Q===A)return;Re.hide(Q)}Q=Re.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),N.set(C,Q),A=Q}}},onMouseLeaveForOverflowText:($,C)=>{const F=N.get(C);F&&(Re.hide(F),F===A&&(A=null))},onMouseOverForTip:($,C)=>{const F=$.currentTarget;F&&(A&&Re.hide(A),A=Re.show(F,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:$=>{A&&(Re.hide(A),A=null)}}}}),hf={class:"fox-group-setting"},mf={class:"fox-group-setting__header"},gf={class:"fox-group-setting__body"},vf={class:"fox-group-setting__body-list","data-role":"container"},pf=["data-index","draggable"],yf=["onMouseover","onMouseleave"],bf={class:"tools-item"};function xf(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),d=l.resolveComponent("FoxIcon"),m=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",hf,[l.createElementVNode("div",mf,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),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",gf,[l.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",vf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,p=>(l.openBlock(),l.createElementBlock("div",{key:p.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":p.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:p.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,p.prop,p.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,p.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(p.label),45,yf)]),_:2},1032,["label"]),l.createElementVNode("div",bf,[l.createVNode(d,{onClick:y=>e.toTop(p.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.toTopText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:y=>e.toBottom(p.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.toBottomText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,pf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const jl=Xe(df,[["render",xf]]),wf={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Sf=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const i=_e(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function Tf(){const e=l.getCurrentInstance();return new Sf(e.proxy)}function Cf(e,n,o){return{props:{...il,...wf},setup(t,r){const a=e,i=l.computed(()=>({[a]:!0})),u=l.ref([]),s=Tf(),c=async(x,L)=>{try{const B=await s.load("tree",x,L);u.value=B}catch(B){console.error(B)}},d=l.shallowRef({}),m=l.computed(()=>({...d.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ue(t.autoLoad))&&l.watch([()=>t.data,()=>m.value],([x,L])=>{x&&c(x,L)},{immediate:!0,deep:!0});let p=null;t.lazy&&(typeof t.load=="function"?p=t.load:p=async(x,L)=>{let B={};t.params&&Object.assign(B,t.params),x&&Object.assign(B,x);const q=await s.load("treeselect",t.data,B,!0);L(q)});const y={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},f=(x={})=>new Promise(async L=>{d.value={...l.toRaw(x??{})},await c(t.data,m.value),L()}),h=function(x,L){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(x,L);if(!t.filterKeyword)return!0;const B=`${L[y.label]}`,q=`${x}`;return B.includes(q)},D=l.ref();l.watch(()=>t.filterKeyword,x=>{D.value.filter(x)});const w=x=>(...L)=>{const B=D.value[x];return Reflect.apply(B,D.value,[...L])};return r.expose({loadData:f,filter:w("filter"),updateKeyChildren:w("updateKeyChildren"),getCheckedNodes:w("getCheckedNodes"),setCheckedNodes:w("setCheckedNodes"),getCheckedKeys:w("getCheckedKeys"),setCheckedKeys:w("setCheckedKeys"),setChecked:w("setChecked"),getHalfCheckedNodes:w("getHalfCheckedNodes"),getHalfCheckedKeys:w("getHalfCheckedKeys"),getCurrentKey:w("getCurrentKey"),getCurrentNode:w("getCurrentNode"),setCurrentKey:w("setCurrentKey"),setCurrentNode:w("setCurrentNode"),getNode:w("getNode"),remove:w("remove"),append:w("append"),insertBefore:w("insertBefore"),insertAfter:w("insertAfter")}),()=>{const L={...Ze(r.attrs),class:i.value,lazy:t.lazy,props:y,ref:g=>D.value=g};p?L.load=p:L.data=u.value,L["filter-node-method"]=h;const B=[],q=l.h(T.ElTree,L,r.slots);B.push(q);const P={default:()=>B},b={...Vt(t,il)};return l.h(o,b,P)}}}}const{componentName:$f,create:Nf,scope:Ef}=ae("tree-item"),zl=Nf(Cf($f,Ef,En)),kf=["aria-labelledby"],Pf=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),If=[Pf],Of=l.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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,kf))}}),Vf=["aria-labelledby"],Df=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Rf=[Df],Ff=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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=["aria-labelledby"],Mf=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),Lf=[Mf],Hl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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"},Lf,14,Af))}}),Bf=["aria-labelledby"],qf=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),_f=[qf],jf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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"},_f,14,Bf))}}),zf=["aria-labelledby"],Hf=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),Kf=[Hf],Wf=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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"},Kf,14,zf))}}),Yf=["aria-labelledby"],Uf=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),Gf=[Uf],Xf=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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,Yf))}}),ul={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}},Xo=(e,n)=>n[e.textKey],Nt=(e,n)=>n[e.valueKey],Zf=(e,n)=>n[e.visibleKey],Zo=(e,n)=>n[e.disabledKey],Qf=(e,n)=>{const o=n[e.doitKey];return ue(o)},Jf=(e,n)=>{const o=n[e.numKey];return o==null?null:Ce(n[o])},Qo=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function ed(e,n,o,t=!1){return{props:{...ul},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 v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),p=l.computed(()=>{const $={};return f.value||($.display="none"),$}),y=l.ref(),f=l.ref(!1),h=()=>{const $=!f.value;D($)},D=$=>{const C=$;C?(f.value=C,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},w=l.ref(),x=l.ref([]),L=($,C)=>{x.value[C]=$},B=$=>C=>{L(C,$)},q=($,C)=>{const F=w.value,V=x.value;if(!F||!V||!V[$])return;const S=V[$];let H=0;r.direction==="vertical"?H=S.offsetTop-(F.offsetHeight-S.offsetHeight)/2:H=S.offsetLeft-(F.offsetWidth-S.offsetWidth)/2,P(F,H,C?0:.3,r.direction)},P=($,C,F,V)=>{let S=0;const H=V==="horizontal"?$.scrollLeft:$.scrollTop,Q=F===0?1:Math.round(F*1e3/16);function ne(){V==="horizontal"?$.scrollLeft+=(C-H)/Q:$.scrollTop+=(C-H)/Q,++S<Q&&hl(ne)}ne()},k=($,C)=>{const F=Nt(r,$),V={};return V[`${e}__titles-item`]=!0,V.disabled=Zo(r,$),V.active=F===m.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),C&&(C.class&&(V[`${C.class}`]=!0),C.disabled===!0&&(V.disabled=C.disabled)),V},b=($,C)=>{const F={};if(d.value>0){const V=Math.abs(d.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return C&&C.style&&Object.assign(F,C.style),F},j=($,C)=>`${Nt(r,$)??C}`,g=($,C)=>{const F=Nt(r,$),V={};V[`${e}__popup-item`]=!0,V.disabled=Zo(r,$),V.active=F===m.value,r.shape&&(V[`${r.shape}`]=!0);const S=Qo(r,$,C);return S&&S.disabled===!0&&(V.disabled=S.disabled),V},R=l.computed(()=>(r.data??[]).filter(C=>Zf(r,C)!==!1)),G=($,C)=>{const F=Nt(r,$);if(m.value==F)return;const V=()=>{m.value=F,r.scroll&&q(C,!1),i("update:modelValue",F),i("change",$,C)};if(typeof r.beforeChange=="function"){const S=r.beforeChange($,C);Cr(S)?S.then(H=>{H!==!1&&V()}).catch(()=>{V()}):S!==!1&&V()}else V()},O=($,C)=>function(){G($,C)},N=($,C)=>{G($,C),D(!1)},A=($,C)=>function(){N($,C)},_=$=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(F=>Nt(r,F)===m.value);C!==-1&&q(C,$)};l.watch(()=>r.data,()=>{setTimeout(_,0)}),l.onMounted(()=>{_(!0)});const Y=($,C)=>{if(a.item)return a.item({item:$,index:C});const F=Qo(r,$,C),V=[];if(a.text){const ne=a.text({item:$,index:C});V.push(ne)}else{const ne=[];if(F?.doit===!0||Qf(r,$)){const K={class:[`${e}__titles-item-tip`,"doit"]},X=l.h("view",K);ne.push(X)}const U=F?.num??Jf(r,$);if(U){let K="";const X=Ce(U);X>=100?K="99+":K=`${X}`;const I={class:[`${e}__titles-item-tip`,"num"]},z=l.h("view",I,[K]);ne.push(z)}const W={class:`${e}__titles-item-text`};ne.push(Xo(r,$));const E=l.h("view",W,ne);V.push(E)}const S={class:`${e}__titles-item-line`},H=l.h("view",S);V.push(H);const Q={ref:B(C),class:k($,F),style:b($,F),key:j($,C),onClick:O($,C)};return l.h("view",Q,V)},J=()=>{const $=a.default?a.default():[];if($.length===0)for(let F=0;F<R.value.length;F++){const V=R.value[F],S=Y(V,F);$.push(S)}const C={ref:w,class:s.value,style:c.value};return l.h("view",C,$)},M=()=>{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 F=0;F<R.value.length;F++){const V=R.value[F];let S=null;a.popupItem?S=a.popupItem({item:V,index:F}):S=Xo(r,V);const H={class:g(V,F),key:j(V,F),onClick:A(V,F)},Q=l.h("view",H,[S]);$.push(Q)}const C={class:v.value,style:p.value};return l.h("view",C,$)};return()=>{const $=[],C=J();if($.push(C),r.showQuickNavigation){const V=M();$.push(V);const S=te();$.push(S)}const F={class:u.value};return l.h("view",F,$)}}}}const{create:td,componentName:nd,scope:ld}=ae("tabs-bar"),Pn=td(ed(nd,ld,Ff,!1)),ia=Symbol("TabsStatesKey"),cl={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Jo=10;function sa(e,n){return e>n&&e>Jo?"horizontal":n>e&&n>Jo?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",t=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=sa(e.offsetX,e.offsetY))},start:i=>{if(t(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:t,isVertical:n,isHorizontal:o,state:e}}function od(){const e=l.ref(0),n=l.ref(0),o=l.ref(0),t=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),c=l.ref(0),d=l.ref(""),m=()=>d.value==="vertical",v=()=>d.value==="horizontal",p=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const x=h.touches[0];i.value=x.clientX-e.value,u.value=x.clientY-n.value,r.value=x.clientX,a.value=x.clientY}else{const w=h;i.value=w.clientX-e.value,u.value=w.clientY-n.value,r.value=w.clientX,a.value=w.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-o.value,d.value||(d.value=sa(s.value,c.value))},start:h=>{if(p(),h.touches){const x=h.touches[0];e.value=x.clientX,n.value=x.clientY}else{const w=h;e.value=w.clientX,n.value=w.clientY}o.value=Date.now()},reset:p,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:m,isHorizontal:v}}const rd=15,ad=300,id=200;function sd(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function er(e,n=0,o,t,r=id){o==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",t==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let ud=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,o,t,r=1){this.onStart=n,this.onMove=o,this.onEnd=t,this.momentumReduceRatio=r,this.isTouch=Lt()}open(n){this.el=n;const o=Bt(),t=(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=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=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}t(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let 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<ad&&Math.abs(r)>rd?(r=sd(r,a,this.momentumReduceRatio),t(r,this.direction,"end")):t(r,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function cd(e,n,o,t=1){return new ud(e,n,o,t)}function fd(e,n,o=!1){return{props:{...cl},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),u={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:P=>{const k={name:P};u.current.value===P&&(k.loaded=!0),i.value.push(k),l.triggerRef(i)},remove:P=>{const k=i.value.findIndex(b=>b.name===P);k!==-1&&i.value.splice(k,1)},isLoaded:P=>{if(!t.lazy)return!0;const k=i.value.findIndex(b=>b.name===P);return k!==-1?u.current.value?i.value[k].loaded??!1:k===0:!1}};l.provide(ia,u);const s=P=>{const k=i.value.findIndex(b=>b.name===P);k!==-1&&(i.value[k].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([P,k])=>{u.current.value!==P&&(u.current.value=P??"",s(P??"")),u.direction.value!==k&&(u.direction.value=k)});const c=l.ref(null),d=l.ref(null),m=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),v=l.computed(()=>{const P={};if(t.width){const k=xe(t.width);k&&(P.width=k)}if(t.height){const k=xe(t.height);k&&(P.height=k)}return P});let p=!0;const y=l.computed(()=>{const P={},k=i.value.length;if(k<=0)return P;const b=i.value.findIndex(j=>j.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(P.height=`${k*u.tabHeight.value}px`,b!==-1&&(P.transform=`translate(0, -${b*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(P.width=`${k*u.tabWidth.value}px`,b!==-1&&(P.transform=`translate(-${b*u.tabWidth.value}px, 0)`)),p&&(p=!1,P.transition="transform 0s ease"),P}),f={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=P=>{const k=i.value.length,b=i.value.findIndex(j=>j.name===u.current.value);f.moved=0,P.direction==="vertical"?(f.min=-1*(u.tabHeight.value*(k-1)+u.tabHeight.value/4),f.max=u.tabHeight.value/4,f.start=-b*u.tabHeight.value,f.itemDistance=u.tabHeight.value):(f.min=-1*(u.tabWidth.value*(k-1)+u.tabWidth.value/4),f.max=u.tabWidth.value/4,f.start=-b*u.tabWidth.value,f.itemDistance=u.tabWidth.value)},D=P=>{const k=d.value;if(!k)return;let b=f.start+P.delta;if(b>f.max?b=f.max:b<f.min&&(b=f.min),P.type==="move")er(k,b,"move",P.direction,300);else if(P.type==="end"){let j=Math.floor(Math.abs(b)*1/f.itemDistance);const g=Math.abs(b)%f.itemDistance;f.start>b?g>=f.itemDistance*f.triggerAutoMoveRatio&&(j+=1):g>f.itemDistance-f.itemDistance*f.triggerAutoMoveRatio&&(j+=1),b=-1*j*f.itemDistance,er(k,b,"end",P.direction,300),f.moved=b;const R=i.value[j].name;u.current.value=R??"",s(R??""),r("update:modelValue",R)}},w=()=>{},x=()=>{if(!c.value)return;const P=bn(c.value);u.tabWidth.value=P.width,u.tabHeight.value=P.height},L=Br(x,250);let B=null,q=null;return l.onMounted(()=>{c.value&&(x(),window.ResizeObserver&&(q=new window.ResizeObserver(L),q.observe(c.value)),t.draggle&&(B=cd(h,D,w),B.open(d.value)))}),l.onBeforeUnmount(()=>{q&&(q.disconnect(),q=null),B&&B.close()}),()=>{const P={class:`${e}__panes`,style:y.value,ref:d},k=l.h("view",P,[a?.default?.()]),b={class:m.value,style:v.value,ref:c};return l.h("view",b,[k])}}}}const{create:dd,componentName:hd,scope:md}=ae("tabs-container"),In=dd(fd(hd,md,!1)),gd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function vd(e,n,o){return{props:{...gd},setup(t,{emit:r,slots:a}){const i=l.inject(ia);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=l.computed(()=>t.loaded!=null?ue(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},v=t.emptyIcon??o,p=l.h(v,m),y={class:`${e}__empty-text`},f=t.emptyText??"Loading",h=l.h("view",y,[f]),D={class:`${e}__empty`},w=l.h("view",D,[p,h]);c.push(w)}const d={class:`${e}`,style:u.value};return l.h("view",d,c)}}}}const{create:pd,componentName:yd,scope:bd}=ae("tabs-pane"),Kl=pd(vd(yd,bd,Hl));function xd(e,n,o,t){return{props:{...ul,...cl,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(r,{emit:a,slots:i}){const u=e,s=l.computed(()=>{const f=[`${u}`];return r.direction==="vertical"?f.push("vertical-tabbar"):f.push("horizontal-tabbar"),f}),c=l.computed(()=>{const f={};if(r.width){const h=xe(r.width);h&&(f.width=h)}if(r.height){const h=xe(r.height);h&&(f.height=h)}return f}),d=l.computed(()=>[`${u}__bars`]),m=l.computed(()=>[`${u}__container`]),v=l.ref(r.modelValue);l.watch(()=>r.modelValue,f=>{v.value!==f&&(v.value=f)});const p=f=>{a("change",f)},y=f=>{v.value!==f&&(v.value=f,a("update:modelValue",f))};return()=>{const f=i.default?.()??[],h=[];if(Array.isArray(r.data))h.push(...r.data);else for(let k=0;k<f.length;k++){const b=f[k].props??{},j={text:b.label??"",value:b["pane-key"]??b.paneKey??""};h.push(j)}const D={};for(let k in i)k!=="default"&&(D[k]=i[k]);const w=Vt(r,ul);Object.assign(w,{data:h,class:d.value,modelValue:v.value,direction:r.direction,onChange:p,"onUpdate:modelValue":y});const x=l.h(o,w,D),L={default:i.default},B=Vt(r,cl);Object.assign(B,{class:m.value,modelValue:v.value,onChange:p,"onUpdate:modelValue":y});const q=l.h(t,B,L),P={class:s.value,style:c.value};return l.h("view",P,[x,q])}}}}const{create:wd,componentName:Sd,scope:Td}=ae("tabs-frame"),Wl=wd(xd(Sd,Td,Pn,In)),Cd={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 $d(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function tr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function nr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Nd(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Hn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function lr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function or(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Kn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Ed{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[t]);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function kd(){const e=l.getCurrentInstance();return new Ed(e.proxy)}function Pd(e,n,o,t){return{props:{...Cd},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=kd(),c=l.ref([]),d=l.computed(()=>c.value.filter(C=>Nd(r,C)!==!1)),m=l.ref(-1),v=()=>{const C=r.modelValue,F=d.value.findIndex(V=>tr(r,V)===C);m.value!==F&&(m.value=F,r.scroll&&te(F))};l.watch([()=>r.modelValue,d],()=>{v()});const p=C=>m.value===C,y=C=>{if(C<0&&C>=d.value.length)return!1;const F=d.value[C],S=(Kn(r,F,C)??{}).status??Hn(r,F);return p(C)||S},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(()=>({})),D=(C,F,V,S,H)=>{const Q={[`${u}__step`]:!0};return H&&(Q[`${H}`]=!0),Q[`${w.value}`]=!0,S&&(Q["is-doit"]=!0),C===m.value?Q["is-active"]=!0:F==="done"?Q["is-done"]=!0:F==="error"?Q["is-error"]=!0:F==="half"?Q["is-half"]=!0:V?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},w=l.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),x=(C,F={})=>{const V={...F};return w.value==="start"&&C===d.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},L=(C,F)=>{let V={};if(F<d.value.length-1){const S=F+1;y(F)&&y(S)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},B=C=>d.value.length-1===C,q=(C,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>m.value||m.value===F)return;const V=m.value,S=F;m.value=F,r.scroll&&te(F);const H=tr(r,C);i("update:modelValue",H);const Q={fromIndex:V,currentIndex:S,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Q)},P=l.ref(!0),k=async(C,F)=>{try{const V=await s.load("stesbar",C,F);Array.isArray(V)&&(c.value=V),P.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([C,F])=>{C&&k(C,F)},{immediate:!0});const b=(C,F,V,S,H)=>{let Q=null;if(a.icon)Q=a.icon({item:C,index:F,status:S});else if(S==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const W=r.icon??o;Q=l.h(W,U)}else{const U=V??`${F+1}`;Q=l.h("span",{},[U])}const ne={class:"fox-steps-bar__icon",onClick:()=>{H||q(C,F)}};return l.h("view",ne,[Q])},j=(C,F,V)=>{const S=l.h("i",{class:"fox-steps-bar__line-inner",style:L(C,F)});return l.h("view",{class:"fox-steps-bar__line"},[S])},g=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const S=r.markIcon??t;C=l.h(S,V)}return l.h("view",{class:"fox-steps-bar__mark"},[C])},R=(C,F,V,S,H)=>{const Q=[];if(!B(F)){const W=j(C,F);Q.push(W)}const ne=b(C,F,V,S,H);Q.push(ne);const U={class:"fox-steps-bar__head"};return l.h("view",U,Q)},G=(C,F,V,S)=>{let H=null;a.main?H=a.main({item:C,index:F,status:V}):H=$d(r,C);const Q={class:"fox-steps-bar__main",onClick:()=>{S||q(C,F)}};return l.h("view",Q,[H])},O=(C,F,V)=>{let S=null;if(a.sub){S=a.sub({item:C,index:F,status:V});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[S])}return null},N=(C,F)=>{const V=Kn(r,C,F)??{},S=V.status??Hn(r,C);let H=nr(r,C);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=V.label??or(r,C),ne=[],U=b(C,F,Q,S,H);U&&ne.push(U);const W=G(C,F,S,H);if(W&&ne.push(W),!B(F)){const Z=j(C,F);Z&&ne.push(Z)}const E=l.h("view",{class:"fox-steps-bar__head"},ne),K=V.class,X=V.style??{};let I=lr(r,C);V.doit===!0&&(I=!0);const z={ref:M(F),class:D(F,S,H,I,K),style:x(F,X)};return l.h("view",z,[E])},A=(C,F)=>{const V=Kn(r,C,F)??{},S=V.status??Hn(r,C);let H=nr(r,C);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=V.label??or(r,C),ne=[],U=r.layout;for(let I of U)if(I==="head"){const z=R(C,F,Q,S,H);ne.push(z)}else if(I==="main"){const z=G(C,F,S,H);ne.push(z)}else if(I==="sub"){const z=O(C,F,S);ne.push(z)}else if(I==="mark"){const z=g();ne.push(z)}const W=V.class,E=V.style??{};let K=lr(r,C);V.doit===!0&&(K=!0);const X={ref:M(F),class:D(F,S,H,K,W),style:x(F,E)};return l.h("view",X,ne)},_=l.ref(),Y=l.ref([]),J=(C,F)=>{Y.value[F]=C},M=C=>F=>{J(F,C)},te=(C,F)=>{const V=_.value,S=Y.value;if(!V||!S||!S[C])return;const H=S[C];let Q=0;r.direction==="vertical"?Q=H.offsetTop-(V.offsetHeight-H.offsetHeight)/2:Q=H.offsetLeft-(V.offsetWidth-H.offsetWidth)/2,$(V,Q,.3,r.direction)},$=(C,F,V,S)=>{let H=0;const Q=S==="horizontal"?C.scrollLeft:C.scrollTop,ne=Math.round(V*1e3/16);function U(){S==="horizontal"?C.scrollLeft+=(F-Q)/ne:C.scrollTop+=(F-Q)/ne,++H<ne&&hl(U)}U()};return()=>{const C=[];if(r.mode==="simple")for(let V=0;V<d.value.length;V++){const S=d.value[V],H=N(S,V);C.push(H)}else for(let V=0;V<d.value.length;V++){const S=d.value[V],H=A(S,V);C.push(H)}const F={ref:_,class:f.value,style:h.value};return l.h("view",F,C)}}}}const{componentName:Id,create:Od,scope:Vd}=ae("steps-bar"),Yl=Od(Pd(Id,Vd,Wf,Xf)),Dd=Symbol.for("InnerPageScopeKey"),Rd=Symbol.for("PageWrapperKey");function Fd(e,n){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,t){l.provide(Dd,!0);const r={};l.provide(Rd,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),u=s=>{i.value=s};return()=>{const c={...t.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 t.slots.default=="function"&&(m.default=t.slots.default),l.h(T.ElDialog,c,m)}}}}const{create:Ad}=ae("dialog-item"),Ul=Ad(Fd());let Et=0;const rr="fox-overflow-hidden",ar=()=>at?document.body:{classList:[]},Md=e=>[()=>{if(e())try{!Et&&ar().classList.add(rr),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&ar().classList.remove(rr)}catch{}}],Ld={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:Bd,create:qd}=ae("overlay"),_d=qd({props:{...Ld},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=Md(()=>e.lockScroll),r=l.computed(()=>({[Bd]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,u=>{u?o():t()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function jd(e,n,o,t,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:n[0]||(n[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const On=Xe(_d,[["render",jd]]),zd={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:{}}},ua=2e3;let ir=ua;const Hd=(e,n)=>({components:n,props:{...zd},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:t}){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!==ua&&(ir=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++ir,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{t("click-pop",f)},m=f=>{f.stopPropagation(),t("click-close-icon",f),t("update:visible",!1)},v=f=>{t("click-overlay",f),o.closeOnClickOverlay&&t("update:visible",!1)},p=f=>{t("opend",f)},y=f=>{t("closed",f)};return l.watch(()=>o.visible,f=>{o.visible?s():c()}),l.watch(()=>o.closeable,f=>{r.closed=f}),{...l.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:v,onOpened:p,onClosed:y}}}),{componentName:Kd,create:Wd}=ae("popup"),Yd=Wd(Hd(Kd,{FoxOverLay:On,Close:jf}));function Ud(e,n,o,t,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:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(u)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Gl=Xe(Yd,[["render",Ud]]),{create:Gd}=ae("toast"),Xd=Gd({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const t=l.reactive({mounted:!1});l.onMounted(()=>{t.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{t.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,p=>{p&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const p=me(e.iconSize);return l.h(e.icon,{width:p,height:p,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:t,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Zd={key:1,class:"fox-toast-title"},Qd=["innerHTML"];function Jd(e,n,o,t,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:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Zd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Qd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Xl=Xe(Xd,[["render",Jd]]),eh={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"}},th=(e,n,o)=>({props:{...eh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:r}){const{emitEvent:a}=jr(),{toLocaleRefs:i}=je.useFoxI18n(n),u=i(t,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),d=l.computed(()=>({background:t.inputBackground})),m=b=>{let g=b.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),a("update:modelValue",g,b),a("change",g,b)},v=l.ref({}),p=b=>{let g=b.target.value;s.active=!0,v.value=t.focusStyle,a("focus",g,b)},y=b=>{setTimeout(()=>{s.active=!1},0);let g=b.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),v.value={},a("blur",g,b)},f=b=>{a("update:modelValue","",b),a("change","",b),a("clear","")},h=l.computed(()=>String(t.modelValue).length>0),D=l.computed(()=>{const b={};return h.value||(b.display="none"),b}),w=()=>{a("search",t.modelValue)},x=b=>{a("keyup-input",b),b.key.toLocaleUpperCase()==="ENTER"&&w()},L=b=>{a("click-input",b)},B=b=>{a("click-left-icon",t.modelValue,b)},q=l.computed(()=>({textAlign:t.inputAlign})),P=l.ref(null);l.onMounted(()=>{t.autofocus&&P.value.focus()});const k=()=>{const b=[];if(r.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},N=l.h("view",O,[r.leftin()]);b.push(N)}const j={ref:P,class:[`${e}__input-inner`],style:q.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:L,onInput:m,onFocus:p,onBlur:y,onkeyup:x},g=l.h("input",j);b.push(g);const R=[];if(t.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:D.value,onClick:f},N=r?.clear?.()??t.clearIcon??o,A=l.h("view",O,[l.h(N)]);R.push(A)}if(r.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=l.h("view",O,[r.rightin()]);R.push(N)}if(R.length>0){const O={class:`${e}__input-inner-right`},N=l.h("view",O,R);b.push(N)}const G={class:[`${e}__search-input`,`${t.shape}`],style:{...d.value,...v.value}};return l.h("view",G,b)};return()=>{const b=[];if(t.label){const R={class:`${e}__search-label`},G=l.h("span",R,[t.label]);b.push(G)}if(r.leftout){const R={class:[`${e}__search-icon`,`${e}__left-search-icon`]},G=l.h("view",R,[r.leftout()]);b.push(G)}const j=k();if(b.push(j),r.rightout){const R={class:[`${e}__search-icon`,`${e}__right-search-icon`]},G=l.h("view",R,[r.rightout()]);b.push(G)}const g={class:`${e}`,style:c.value};return l.h("view",g,b)}}}),{componentName:nh,create:lh,scope:oh}=ae("searchbar"),Zl=lh(th(nh,oh,Ie.CircleClose)),rh=/scroll|auto|overlay/i,ca=window;function ah(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ih(e,n=ca){let o=e;for(;o&&o!==n&&ah(o);){const{overflowY:t}=window.getComputedStyle(o);if(rh.test(t))return o;o=o.parentNode}return n}function fa(e,n=ca){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ih(e.value,n))}),o}const da=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,sh={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 uh(e,n,o){return{props:{...sh},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(n),u=i(t,["pullText","loadText","loadMoreText"]),s=l.ref(),c=fa(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,p=()=>{let w=0,x=0,L="down";if(c.value==window){const B=da();s.value&&(w=v(s.value)+s.value.offsetHeight-B-window.innerHeight),x=B}else{const{scrollHeight:B,clientHeight:q,scrollTop:P}=c.value;w=B-q-P,x=P}return d.beforeScrollTop>x?L="up":L="down",d.beforeScrollTop=x,r("scroll-change",x),w<=t.threshold&&L=="down"},y=()=>{yr(()=>{if(!p()||!t.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",y,t.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",y,t.useCapture)};l.onMounted(()=>{f(),t.immediate&&y()}),l.onUnmounted(()=>{h()});const D=l.ref(!1);return l.onActivated(()=>{D.value&&(D.value=!1,f())}),l.onDeactivated(()=>{D.value=!0,h()}),l.watch(()=>t.modelValue,w=>{w||(d.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},x=l.h("view",w,[a?.default?.()]),L=[];if(d.isInfiniting){let k=a?.loading?.()??null;if(!k){let g=a?.loadingIcon?.()??null;if(!g){const O={class:["fox-infinite__bottom-box__img"]};g=l.h(o,O)}const R={class:"fox-infinite__bottom-box__text"},G=l.h("view",R,[u.loadText.value]);k=[g,G]}const b={class:"fox-infinite__bottom-box"},j=l.h("view",b,k);L.push(j)}else if(!t.hasMore){let k=a?.finished?.()??null;if(!k){const b={class:"fox-infinite__bottom-tips"};k=l.h("view",b,[u.loadMoreText.value]),L.push(k)}}const B={class:"fox-infinite__bottom"},q=l.h("view",B,L),P={class:m.value,ref:s};return l.h("view",P,[x,q])}}}}const{componentName:ch,create:fh,scope:dh}=ae("infinite-loading"),Ql=fh(uh(ch,dh,Hl)),hh={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}},mh=(e,n,o)=>({props:{...hh},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(n),u=i(t,["pullingText","loosingText","loadingText"]),s=Bt(),c=l.ref(),d=fa(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),p=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""}}),y=l.computed(()=>({transitionDuration:`${t.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=l.computed(()=>{const P={};return t.headHeight!=50&&(P.height=xe(t.headHeight)),P}),h=P=>{const k=+(t.pullDistance||t.headHeight);let b=P;return P>k&&(P<k*2?b=(P+k)/2:b=k+P/4),Math.round(b)},D=(P,k)=>{const b=+(t.pullDistance||t.headHeight);m.distance=P,k?m.status="loading":P===0?m.status="normal":P<b?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:P})},w=()=>m.status!=="loading"&&m.status!=="complete",x=()=>d.value==window?da()==0:d.value&&d.value.scrollTop==0,L=P=>{w()&&(x()?(s.start(P),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},B=P=>{w()&&m.moving&&(s.move(P),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(P.cancelable&&P.preventDefault(),D(h(s.state.deltaY))))},q=()=>{m.moving=!1,m.isPullRefresh&&w()&&s.state.deltaY&&(m.status==="loosing"?(D(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):D(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>t.modelValue,P=>{P?D(+t.headHeight,!0):D(0)}),()=>{const P=[];let k=null;if(m.status==="loading"){if(k=a?.loading?.()??null,!k){const A={class:["fox-pull-refresh-container-topbox-icon"]};k=l.h(o,A)}}else m.status==="pulling"?k=a?.pulling?.()??null:m.status==="loosing"&&(k=a?.loosing?.()??null);k&&P.push(k);const b={class:["fox-pull-refresh-container-topbox-text"]},j=l.h("dive",b,[p.value]);P.push(j);const g={class:["fox-pull-refresh-container-topbox"],style:f.value},R=l.h("div",g,P),G={class:"fox-pull-refresh-container",style:y.value},O=l.h("div",G,[R,a?.default?.()]),N={ref:c,class:v.value};return Lt()?Object.assign(N,{onTouchstart:L,onTouchmove:B,onTouchend:q}):Object.assign(N,{onMousedown:L,onMousemove:B,onMouseup:q}),l.h("div",N,[O])}}}),{componentName:gh,create:vh,scope:ph}=ae("pull-refresh"),Jl=vh(mh(gh,ph,Hl));function yh(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:t}){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(t.mark)d=t.mark()[0];else{const f={class:i.value,style:u.value};d=l.h(o.icon??"div",f)}const m={class:s.value,style:c.value},v=t.default?t.default():[],p=l.h("div",m,v),y={class:a.value};return o.textPosition==="right"?l.h("div",y,[d,p]):l.h("div",y,[p,d])}}}}const{componentName:bh,create:xh}=ae("indicator"),eo=xh(yh(bh));function wh(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const t=o.getBoundingClientRect().width;if(t>0){n(t);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"),n(r)},500)}const Sh={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 Th(e,n,o,t=!1){return{props:{...Sh},emits:["click"],setup(r,a){const i=l.ref(null),u=l.computed(()=>{const x={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(x[`${e}--${r.type??"default"}`]=!0),r.size&&(x[`${e}--${r.size}`]=!0),x}),s=l.computed(()=>{const x={},L=r.textColor??r.color;return L&&(x.color=L),x}),c=(x,L)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const q=r.highlightFilter;if(x.indexOf(q)!==-1){const k=x.replace(new RegExp(q,"g"),`<span>${q}</span>`);L.innerHTML=k,L.class["is-highlight"]=!0,B=l.h(r.tag,L)}}else if(typeof r.highlightFilter=="function"){const q=r.highlightFilter(x);q&&(L.innerHTML=q,L.class["is-highlight"]=!0,B=l.h(r.tag,L))}return B},d=x=>{a.emit("click",x)};let m="";const v=()=>{const x=i.value;if(!x)return;const L=x.clientWidth;wh(x,B=>{const q=x.innerHTML??"";de(q)||B<L||(m?o?.show(x,q,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show(x,q,{type:"text",showArrow:r.showArrow},!0)??"")})},p=()=>{m&&o?.hide(m)};let y=null;const f=x=>{y||(y=setTimeout(()=>{v(),y=null},r.showAfter??0))},h=x=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{p()},r.hideAfter??0)},D=()=>{const x=i.value;x&&(x.addEventListener("mouseover",f),x.addEventListener("mouseleave",h))},w=()=>{const x=i.value;x&&(x.removeEventListener("mouseover",f),x.removeEventListener("mouseleave",h))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||D()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const x={onClick:d,class:u.value,style:s.value,ref:i};let L=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const k=a.slots.default();if(Array.isArray(k)&&k.length===1){const b=k[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const j=Ce(r.digits),g=Ce(r.decimalLength),R=ue(r.autoPadding);let G=`${k[0].children}`,O=G.split("").reverse().join("");O=un(O,g,R,j,r.separator),G=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(L=c(G,x)),L||(x.innerHTML=G,L=l.h(r.tag,x))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const k=a.slots.default();if(Array.isArray(k)&&k.length===1){const b=k[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const j=`${k[0].children}`;L=c(j,x),L||(x.innerHTML=j,L=l.h(r.tag,x))}}}L||(L=l.h(r.tag,x,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return L;let q=null;if(r.icon){const k={[`${e}__mark-wrap`]:!0};r.type&&(k[`${e}__mark-wrap--${r.type}`]=!0);const b={},j=r.color;j&&(b.color=j);const g={class:k,style:b};q=l.h("view",g,l.h(r.icon))}else if(a.slots.mark){const k={[`${e}__mark-wrap`]:!0};r.type&&(k[`${e}__mark-wrap--${r.type}`]=!0);const b={},j=r.color;j&&(b.color=j);const g={class:k,style:b};q=l.h("view",g,{default:a.slots.mark})}else{const k={[`${e}__mark`]:!0};r.type&&(k[`${e}__mark--${r.type??"default"}`]=!0);const b={},j=r.color;j&&(b["background-color"]=j);const g={class:k,style:b};q=l.h("view",g)}const P={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",P,[q,L])}}}}const{componentName:Ch,create:$h,scope:Nh}=ae("text"),to=$h(Th(Ch,Nh,Re,!1)),Eh={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 kh(e,n,o){return{props:{...Eh},emits:["click","update:modelValue"],setup(t,{emit:r}){const a=l.computed(()=>{const m={[`${e}`]:!0};return t.disabled?m[`${e}__disabled`]=!0:m[`${e}__${t.type}`]=!0,m}),i=he(t,"modelValue"),u=l.computed(()=>i.value?t.expandText??"":t.collapseText??""),s=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(u.value){const f={class:s.value},h=l.h("span",f,[u.value]);m.push(h)}const v={class:c.value},p=o(t.icon,v);return p&&m.push(p),l.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:Ph,create:Ih,scope:Oh}=ae("more-button"),Vh=(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]})),no=Ih(kh(Ph,Oh,Vh));function Dh(e){e.stopPropagation()}let Rh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bt(),t=(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),Dh(r),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{t(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Fh(e,n){return new Rh(e,n)}const Ah={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]}},Mh=(e,n,o,t=!1)=>({props:{...Ah},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 w=[`${e}`];return r.customClass&&w.push(r.customClass),w}),c=l.computed(()=>{const w={};return de(u.top)||(w.top=u.top),de(u.right)||(w.right=u.right),de(u.bottom)||(w.bottom=u.bottom),de(u.left)||(w.left=u.left),de(r.width)||(w.width=r.width),de(r.height)||(w.height=r.height),de(r.color)||(w.color=r.color),de(r.background)||(w.background=r.background),de(r.borderRadius)||(w["border-radius"]=r.borderRadius),de(r.zIndex)||(w["z-index"]=r.zIndex),w}),d=l.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},v=l.ref(null),p=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},y={x:0,y:0},D=Fh(w=>{if(!v.value)return;const x=v.value;p(),u.left=x.offsetLeft,u.top=x.offsetTop,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`,x.style.right=null,x.style.bottom=null,y.x=u.left,y.y=u.top},w=>{if(!v.value)return;const x=v.value;p(),u.left=y.x+w.x,u.top=y.y+w.y,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&v.value){const w=[v.value];D.open(w)}}),l.onBeforeUnmount(()=>{r.draggable&&v.value&&D.close()}),()=>{let w=[];const x=typeof a.default=="function"?a.default():[];if(x&&x.length>0)w=x;else{const B=l.h(o,{class:d.value});w.push(B)}const L={ref:B=>{v.value=B},class:s.value,style:c.value,onClick:m};return l.h("view",L,w)}}}),{componentName:Lh,create:Bh,scope:qh}=ae("floating-button"),lo=Bh(Mh(Lh,qh,Of,!1));function _h(e){return e===window}const ha=e=>{const n=l.unref(e);if(_h(n)){const o=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:o,bottom:t,width:o,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:jh,create:zh}=ae("tour"),Hh=zh({components:{Close:Ie.Close,ElPopover:T.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=jh,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:y,maskWidth:f,maskHeight:h}=e,{width:D,height:w,left:x,top:L}=r.value,B=e.steps[t.active].offset??y,q=[x+D/2,L+w/2],P=Number(f||D),k=Number(h||w);return{width:`${P+ +B.left+B.right}px`,height:`${k+B.top+B.bottom}px`,top:`${q[1]-k/2-+B.top}px`,left:`${q[0]-P/2-+B.left}px`}}),u=y=>{y=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,d()}),n("change",t.active)},s=y=>y.popoverWidth??e.width,c=y=>y.location??e.location,d=()=>{const y=document.querySelector(`${e.steps[t.active].target}`),f=ha(y);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},m=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&m()},p=(y,f=0)=>{y&&d(),e.steps,t.active=f,t.showTour=y,t.showPopup=y};return l.onMounted(()=>{p(e.modelValue,e.current)}),l.watch(()=>e.modelValue,y=>{p(y)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:v}}}),Kh={key:0,class:"fox-tour__content"},Wh={key:0,class:"fox-tour__content-top"},Yh={class:"fox-tour__content-inner"},Uh={class:"fox-tour__content-bottom"},Gh={class:"fox-tour__content-bottom-init"},Xh={class:"fox-tour__content-bottom-operate"},Zh={key:1,class:"fox-tour__content fox-tour__content-tile"},Qh={class:"fox-tour__content-inner"};function Jh(e,n,o,t,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:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,d)=>(l.openBlock(),l.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(l.openBlock(),l.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Kh,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Wh,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Yh,l.toDisplayString(c.content),1),l.createElementVNode("div",Uh,[l.createElementVNode("div",Gh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Xh,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=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:n[3]||(n[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",Zh,[l.createElementVNode("div",Qh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const oo=Xe(Hh,[["render",Jh]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class em{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bt(),t=(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),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{t(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function sr(e,n){return new em(e,n)}const ur=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let vt=[];const cr=e=>{const n=e;n.key==="Escape"&&vt.forEach(o=>o(n))},tm=e=>{l.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",cr),ur&&vt.push(e)}),l.onBeforeUnmount(()=>{vt=vt.filter(n=>n!==e),vt.length===0&&ur&&document.removeEventListener("keydown",cr)})},Wn="fox-focus-trap.focus-after-trapped",Yn="fox-focus-trap.focus-after-released",nm="fox-focus-trap.focusout-prevented",fr={cancelable:!0,bubbles:!1},lm={cancelable:!0,bubbles:!1},dr="foxFocusAfterTrapped",hr="foxFocusAfterReleased",om=Symbol("foxFocusTrap"),ro=l.ref(),Vn=l.ref(0),ao=l.ref(0);let zt=0;const ma=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const r=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},rm=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},mr=(e,n)=>{for(const o of e)if(!rm(o,n))return o},am=e=>{const n=ma(e),o=mr(n,e),t=mr(n.reverse(),e);return[o,t]},im=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ao.value=window.performance.now(),e!==o&&im(e)&&n&&e.select()}};function gr(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const sm=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=gr(e,t),e.unshift(t)},remove:t=>{e=gr(e,t),e[0]?.resume?.()}}},um=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(lt(t,n),document.activeElement!==o)return},vr=sm(),cm=()=>Vn.value>ao.value,Ht=()=>{ro.value="pointer",Vn.value=window.performance.now()},pr=()=>{ro.value="keyboard",Vn.value=window.performance.now()},fm=()=>(l.onMounted(()=>{zt===0&&(document.addEventListener("mousedown",Ht),document.addEventListener("touchstart",Ht),document.addEventListener("keydown",pr)),zt++}),l.onBeforeUnmount(()=>{zt--,zt<=0&&(document.removeEventListener("mousedown",Ht),document.removeEventListener("touchstart",Ht),document.removeEventListener("keydown",pr))}),{focusReason:ro,lastUserFocusTimestamp:Vn,lastAutomatedFocusTimestamp:ao}),Kt=e=>new CustomEvent(nm,{...lm,detail:e}),{create:dm}=ae("focus-trap"),hm={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"}},mm=dm({props:hm,emits:[dr,hr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=fm();tm(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:D,ctrlKey:w,metaKey:x,currentTarget:L,shiftKey:B}=f,{loop:q}=e,P=h==="Tab"&&!D&&!w&&!x,k=document.activeElement;if(P&&k){const b=L,[j,g]=am(b);if(j&&g){if(!B&&k===g){const G=Kt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||(f.preventDefault(),q&&lt(j,!0))}else if(B&&[j,b].includes(k)){const G=Kt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||(f.preventDefault(),q&&lt(g,!0))}}else if(k===b){const G=Kt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||f.preventDefault()}}};l.provide(om,{focusTrapRef:t,onKeydown:s}),l.watch(()=>e.focusTrapEl,f=>{f&&(t.value=f)},{immediate:!0}),l.watch([t],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",m),f.addEventListener("focusout",v)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",v))});const c=f=>{o(dr,f)},d=f=>o(hr,f),m=f=>{const h=l.unref(t);if(!h)return;const D=f.target,w=f.relatedTarget,x=D&&h.contains(D);ue(e.trapped)||w&&h.contains(w)||(r=w),x&&o("focusin",f),!u.paused&&ue(e.trapped)&&(x?a=D:lt(a,!0))},v=f=>{const h=l.unref(t);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const D=f.relatedTarget;!ml(D)&&!h.contains(D)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const w=Kt({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||lt(a,!0)}},0)}else{const D=f.target;D&&h.contains(D)||o("focusout",f)}};async function p(){await l.nextTick();const f=l.unref(t);if(f){vr.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const w=new Event(Wn,fr);f.addEventListener(Wn,c),f.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let x=e.focusStartEl;Tr(x)||(lt(x),document.activeElement!==x&&(x="first")),x==="first"&&um(ma(f),!0),(document.activeElement===h||x==="container")&&lt(f)})}}}function y(){const f=l.unref(t);if(f){f.removeEventListener(Wn,c);const h=new CustomEvent(Yn,{...fr,detail:{focusReason:i.value}});f.addEventListener(Yn,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!cm())&&lt(r??document.body,!0),f.removeEventListener(Yn,c),vr.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&p(),l.watch(()=>e.trapped,f=>{ue(f)?p():y()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&y()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:gm,create:vm}=ae("floating-window"),pm=Symbol.for("InnerPageScopeKey"),ym=Symbol.for("PageWrapperKey"),bm={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}},xm=vm({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:mm},props:{...bm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=gm,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,I=>{t.value=I});const a=l.computed(()=>t.value===!1?!1:!k.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 I=["fox-floating-window"];return e.customClass&&I.push(e.customClass),I}),m=l.computed(()=>{const I={};return ct(i.value)?I.left="auto":I.left=De(i.value),ct(u.value)?I.top="auto":I.top=De(u.value),ct(s.value)?I.right="auto":I.right=De(s.value),ct(c.value)?I.bottom="auto":I.bottom=De(c.value),ct(e.zIndex)||(I["z-index"]=De(e.zIndex)),ct(q.value)||(I.height=q.value),ct(P.value)||(I.width=P.value),I}),v=l.computed(()=>e.closeIcon??Ie.Close),p=l.computed(()=>e.collapseIcon??Ie.ArrowUp),y=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??"展开"),D=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!k.value,"is-collapse":k.value})),x=l.ref(),L=l.ref(null),B=l.ref(null),q=l.computed(()=>De(e.height)||""),P=l.computed(()=>De(e.width)||""),k=l.ref(ue(e.collapse)),b=(I,z=!0)=>{k.value!==I&&(k.value=I,I?C():F(),n("update:collapse",I),I&&typeof R.onHide=="function"?R.onHide():!I&&typeof R.onShow=="function"&&R.onShow())};l.watch(()=>e.collapse,I=>{b(I)});const j=()=>{g()},g=I=>{I=I??!k.value,b(I)};l.provide(pm,!0);const R={setCollapse:b,setFixedNavVisible:I=>{M.value=I}};l.provide(ym,R);const G=()=>{typeof R.beforeClose=="function"?R.beforeClose(()=>{t.value=!1}):t.value=!1},O=l.ref(null),N=l.computed(()=>!e.fixedNavTeleport),A=l.computed(()=>{const I=["fox-floating-window__fixednav"];return e.expandClass&&I.push(e.expandClass),e.collapsePosition==="left"?I.push("is-left"):e.collapsePosition==="right"&&I.push("is-right"),I}),_=l.ref(""),Y=l.computed(()=>{const I={};return _.value?I.top=_.value:e.collapseTop&&(I.top=e.collapseTop),I}),J=l.ref(k.value),M=l.computed({set:I=>{J.value=I},get:()=>t.value===!1?!1:J.value});let te=null;const $=()=>{typeof te=="function"&&(te(),te=null)},C=()=>{O.value&&O.value.classList.add("slide-in"),M.value=!0,te=()=>{O.value&&O.value.classList.remove("slide-in")}},F=()=>{O.value&&O.value.classList.add("slide-out"),te=()=>{O.value&&O.value.classList.remove("slide-out"),M.value=!1}},V=()=>{i.value=null,u.value=null,s.value=null,c.value=null},S={x:0,y:0},ne=sr(I=>{if(!x.value)return;const z=x.value;if(V(),e.origin==="left-top")i.value=z.offsetLeft,u.value=z.offsetTop,S.x=i.value,S.y=u.value;else if(e.origin==="left-bottom"){const Z=document.documentElement.clientHeight||document.body.clientHeight;i.value=z.offsetLeft,c.value=Z-(z.offsetTop+z.offsetHeight),S.x=i.value,S.y=c.value}else if(e.origin==="right-bottom"){const Z=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=Z-(z.offsetLeft+z.offsetWidth),c.value=le-(z.offsetTop+z.offsetHeight),S.x=s.value,S.y=c.value}else{const Z=document.documentElement.clientWidth||document.body.clientWidth;s.value=Z-(z.offsetLeft+z.offsetWidth),u.value=z.offsetTop,S.x=s.value,S.y=u.value}},I=>{if(!x.value)return;const z=x.value;V(),e.origin==="left-top"?(i.value=S.x+I.x,u.value=S.y+I.y,z.style.left=De(i.value),z.style.top=De(u.value)):e.origin==="left-bottom"?(i.value=S.x+I.x,c.value=S.y-I.y,z.style.left=De(i.value),z.style.bottom=De(c.value)):e.origin==="right-bottom"?(s.value=S.x-I.x,c.value=S.y-I.y,z.style.right=De(s.value),z.style.bottom=De(c.value)):(s.value=S.x-I.x,u.value=S.y+I.y,z.style.right=De(s.value),z.style.top=De(u.value))}),U={x:0,y:0},K=sr(I=>{O.value&&(U.x=O.value.offsetLeft,U.y=O.value.offsetTop)},I=>{if(!O.value)return;const z=U.y+I.y;_.value=`${z}px`}),X=()=>{if(x.value){const I=x.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=I}};return l.onMounted(()=>{if(e.draggable&&x.value){const I=[];L.value&&I.push(L.value),e.footerDraggable&&(X(),B.value&&I.push(B.value)),ne.open(I)}e.collapse===!0&&b(e.collapse,!1),O.value&&K.open(O.value)}),l.onBeforeUnmount(()=>{e.draggable&&L.value&&ne.close(),O.value&&K.close()}),{classes:d,styles:m,isShow:a,closeIcon:v,onClose:G,dialogRef:x,headerRef:L,onClickToggle:j,collapseIcon:p,collapseText:y,collapseTextClasses:D,collapseIconClasses:w,expandIcon:f,expandText:h,isShowFixedNav:M,fixedNavRef:O,fixedNavClasses:A,fixedNavStyles:Y,onAnimationEnd:$,teleportDisabled:r,fixedNavTeleportDisabled:N}}}),wm={ref:"headerRef",class:"fox-floating-window__header"},Sm={class:"fox-floating-window__title"},Tm={class:"fox-floating-window__tools"},Cm={class:"fox-floating-window__body"},$m={class:"fox-floating-window__fixednav__text"};function Nm(e,n,o,t,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",wm,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",Sm,l.toDisplayString(e.title),1),l.createElementVNode("div",Tm,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",Cm,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",$m,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const io=Xe(xm,[["render",Nm]]),Em={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 km(e,n,o=!1){return{props:{...Em},emits:["update:visible"],setup(t,{emit:r,slots:a,expose:i}){const u=l.ref({top:null,right:null,bottom:null,left:null}),s=l.ref(0),c=l.ref(0),d=l.ref(0),m=l.ref(0),v=l.ref(t.placement),p=l.ref(!1),y=l.ref(!1),f=l.ref(null),h=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,D=(M,te,$,C,F,V,S,H=!0)=>{const Q=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,U=M.split("-");let W=[];H?U[0]==="top"?W=["top","bottom","right","left"]:U[0]==="bottom"?W=["bottom","top","right","left"]:U[0]==="left"?W=["left","top","bottom","right"]:U[0]==="right"&&(W=["right","top","bottom","left"]):W=[M[0]];const E={top:null,right:null,bottom:null,left:null},K=[];for(let X=0;X<W.length;X++){const I=W[X];if(K[0]=I,U[1]&&(K[1]=U[1]),I==="top"){const z=$-S-t.arrowSize/2-t.offset;if(z>=0){E.top=z;let Z=0;U[1]==="start"?Z=te:U[1]==="end"?Z=te+C-V:Z=te+C/2-V/2;const le=Q-Z-V;le<0?(Z+=le,x.value=-le):x.value=0,E.left=Z<0?0:Z;break}}else if(I==="bottom"){const z=$+F+t.arrowSize/2+t.offset;if(z+S<=ne){E.top=z;let Z=0;U[1]==="start"?Z=te:U[1]==="end"?Z=te+C-V:Z=te+C/2-V/2;const le=Q-Z-V;le<0?(Z+=le,x.value=-le):x.value=0,E.left=Z<0?0:Z;break}}else if(I==="left"){const z=te-V-t.arrowSize/2-t.offset;if(z>=0){E.left=z;let Z=0;U[1]==="start"?Z=$:U[1]==="end"?Z=$+F-S:Z=$+F/2-S/2,E.top=Z<0?0:Z;break}}else if(I==="right"){const z=te+C+t.arrowSize/2+t.offset;if(z+V<=Q){E.left=z;let Z=0;U[1]==="start"?Z=$:U[1]==="end"?Z=$+F-S:Z=$+F/2-S/2,E.top=Z<0?0:Z;break}}}return{bestPlacement:K.join("-"),bestInsetRect:E}},w=()=>{const M=t.visible,te=t.autoFit;if(!at||M===!1)return;if(t.reference){const S=h(),H=Tl(S);s.value=H.x,c.value=H.y,d.value=S.offsetWidth,m.value=S.offsetHeight}else t.referenceInset&&(s.value=t.referenceInset.left,c.value=t.referenceInset.top,d.value=t.referenceInset.right-t.referenceInset.left,m.value=t.referenceInset.bottom-t.referenceInset.top);const $=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:V}=D(t.placement,s.value,c.value,d.value,m.value,$,C,te);v.value=F,u.value=V},x=l.ref(0),L=Ke(()=>{w()},10),B=l.ref(t.visible);l.watch([()=>t.visible],([M])=>{B.value=M,M?(p.value=M,setTimeout(()=>{w(),y.value=!0},0)):y.value=!1});const q=l.computed(()=>B.value&&P.value),P=l.ref(!0),k=Ke(M=>{const te=M[0];te&&(P.value=te.isIntersecting)},10),b=new IntersectionObserver(k);l.watch([()=>t.reference,()=>t.referenceInset],([M,te],[$,C])=>{!M&&!te||(setTimeout(()=>{w()},0),t.autoFit&&($&&(It.unwatch($,L),b.unobserve($)),M&&(It.watch(M,L),b.observe(M))))},{immediate:!0}),l.onBeforeUnmount(()=>{t.reference&&(It.unwatch(t.reference,L),b.unobserve(t.reference),b.disconnect())});const j=l.computed(()=>{const M={[e]:!0};return v.value.startsWith("top")?M["is-top"]=!0:v.value.startsWith("right")?M["is-right"]=!0:v.value.startsWith("bottom")?M["is-bottom"]=!0:v.value.startsWith("left")&&(M["is-left"]=!0),M[`is-${t.effect}`]=!0,!y.value&&q.value&&(M["is-opacity"]=!0),y.value&&q.value&&(M["is-show"]=!0),q.value||(M["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(M[`${t.customClass}`]=!0),M}),g=l.computed(()=>{const M={};return u.value.top!==null&&(M.top=`${u.value.top}px`),u.value.right!==null&&(M.right=`${u.value.right}px`),u.value.bottom!==null&&(M.bottom=`${u.value.bottom}px`),u.value.left!==null&&(M.left=`${u.value.left}px`),t.width&&(M.width=t.width),t.zIndex&&(M["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(M,t.customStyle),M}),R=()=>{B.value=!1,r("update:visible",!1)},G=()=>{if(!t.showOverlay)return null;const M={class:`${e}__overlay`,onClick:R};return l.h("div",M)},O=()=>{let M=null;return a.title?M=l.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(M=l.h("div",{class:`${e}__title`},[t.title])),M},N=l.computed(()=>({[`${e}__arrow`]:!0})),A=l.computed(()=>{const M={};return t.showArrow?(M.width=`${t.arrowSize}px`,M.height=`${t.arrowSize}px`,v.value==="top"?(M.left="50%",M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="top-start"?(M.left=`${t.arrowOffset+x.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="top-end"?(M.right=`${t.arrowOffset-x.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="right"?(M.left="0",M.top="50%",M.transform="translate(-50%, -50%)"):v.value==="right-start"?(M.left="0",M.top=`${t.arrowOffset}px`,M.transform="translate(-50%, 50%)"):v.value==="right-end"?(M.left="0",M.bottom=`-${t.arrowOffset}px`,M.transform="translate(-50%, 50%)"):v.value==="bottom"?(M.left="50%",M.top="0",M.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(M.left=`${t.arrowOffset+x.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(M.right=`${t.arrowOffset-x.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):v.value==="left"?(M.right="0",M.top="50%",M.transform="translate(50%, -50%)"):v.value==="left-start"?(M.right="0",M.top=`${t.arrowOffset}px`,M.transform="translate(50%, -50%)"):v.value==="left-end"&&(M.right="0",M.bottom=`-${t.arrowOffset}px`,M.transform="translate(50%, -50%)"),M):{display:"none"}}),_=()=>{const M={class:N.value,style:A.value};return l.h("div",M)},Y=()=>{B.value===!1&&(p.value=!1)},J=M=>{if(!f.value||B.value===!1)return;const{relatedTarget:te}=M;f.value.contains(te)||(B.value=!1,r("update:visible",!1))};return i({doLayout:w}),()=>{if(!p.value)return null;const M=[],te=G();te&&M.push(te);const $=[],C=O();if(C&&$.push(C),a.default){const H=a.default();$.push(H)}const F=_();F&&$.push(F);const V={ref:f,class:j.value,style:g.value,onAnimationend:Y};t.leaveHide&&(V.onMouseleave=J);const S=l.h("div",V,{default:()=>$});return M.push(S),M}}}}const{componentName:Pm,create:Im,scope:Om}=ae("popover-dialog"),so=Im(km(Pm,Om,!1));function Vm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:t}){return qr(o.name,()=>o.config),()=>typeof t.default=="function"?t.default():null}}}const{create:Dm}=ae("domain-provider"),uo=Dm(Vm()),Rm={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 Fm(e,n){return{inheritAttrs:!1,props:Rm,setup(o,{slots:t}){if(at&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,p)=>{if(d===null){a.set(v,{visible:null,callback:p});return}r.has(v)&&d.unobserve(v),r.set(v,{visible:null,callback:p}),d.observe(v)},u=v=>{if(d===null){a.delete(v);return}r.has(v)&&(r.delete(v),d.unobserve(v))};let s=o.initialVisibleObserverSize;Si({acquire:()=>{const v=s>0;return s--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(v,p,y)=>{d=new IntersectionObserver(f=>{for(let h of f){let D=!1;h.intersectionRatio>0&&(D=!0);const w=r.get(h.target);if(w)try{if(o.loadPolicy==="lazy"&&!D&&w.visible!==null)return;w.visible=D,w.callback(D)}catch(x){console.error(x)}}},{root:v,rootMargin:p,threshold:y}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,p])=>{if(p||!v||d)return;let y=null;typeof v=="string"?y=document.querySelector(v):y=v,y&&m(y,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:Am}=ae("rolling-provider"),co=Am(Fm()),Mm=[pl,bl,xl,wl,Sl,Ne,En,Cl,Mt,$l,Nl,El,kl,Pl,Il,Ol,Vl,Dl,Rl,Fl,kn,Al,Ml,Ll,Bl,ql,_l,jl,zl,Pn,In,Kl,Wl,Yl,Ul,On,Gl,Xl,Zl,Ql,Jl,Rt,Nn,eo,to,no,lo,oo,io,so,uo,co],Lm=new ti(Mm,[oi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>T.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>T.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>T.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>T.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>T.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>T.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>T.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>T.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>T.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>T.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>T.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>T.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>T.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>T.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>T.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>T.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>T.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>T.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>T.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>T.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>T.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>T.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>T.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>T.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>T.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>T.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>T.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>T.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>T.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>T.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>T.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>T.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>T.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>T.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>T.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>T.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>T.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>T.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>T.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>T.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>T.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>T.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>T.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>T.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>T.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>T.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>T.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>T.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>T.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>T.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>T.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>T.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>T.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>T.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>T.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>T.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>T.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>T.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>T.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>T.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>T.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>T.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>T.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>T.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>T.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>T.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>T.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>T.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>T.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>T.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>T.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>T.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>T.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>T.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>T.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>T.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>T.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>T.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>T.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>T.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>T.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>T.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>T.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>T.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>T.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>T.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>T.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>T.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>T.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>T.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>T.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>T.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>T.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>T.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>T.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>T.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>T.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>T.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>T.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>T.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>T.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>T.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>T.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>T.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>T.ElWatermark});exports.AutocompleteItem=Dl;exports.Broadcast=gl;exports.BroadcastKey=be;exports.CascaderItem=Vl;exports.CheckboxItem=Ll;exports.Content=wl;exports.DataItemsKey=gt;exports.DateItem=El;exports.DateUtils=Be;exports.DialogItem=Ul;exports.Domain=gn;exports.DomainKey=Le;exports.DomainProvider=uo;exports.FloatingButton=lo;exports.FloatingWindow=io;exports.FooterBar=xl;exports.FoxAutocompleteItem=Dl;exports.FoxCascaderItem=Vl;exports.FoxCheckboxItem=Ll;exports.FoxContent=wl;exports.FoxDateItem=El;exports.FoxDialogItem=Ul;exports.FoxDomainProvider=uo;exports.FoxFloatingButton=lo;exports.FoxFloatingWindow=io;exports.FoxFooterBar=xl;exports.FoxGroup=Sl;exports.FoxGroupSetting=jl;exports.FoxHeaderBar=bl;exports.FoxHintText=Mt;exports.FoxIndicator=eo;exports.FoxInfiniteLoading=Ql;exports.FoxInputItem=$l;exports.FoxInputNumberItem=Ol;exports.FoxItem=Ne;exports.FoxMapping=Rt;exports.FoxMoneyItem=Il;exports.FoxMoreButton=no;exports.FoxOverLay=On;exports.FoxPage=pl;exports.FoxPopoverDialog=so;exports.FoxPopup=Gl;exports.FoxPrice=Nn;exports.FoxPullRefresh=Jl;exports.FoxRadioItem=Ml;exports.FoxRateItem=Bl;exports.FoxRollingProvider=co;exports.FoxRowItem=Cl;exports.FoxSearchBar=Zl;exports.FoxSelectItem=Nl;exports.FoxSlotItem=En;exports.FoxStepsBar=Yl;exports.FoxSwitchItem=ql;exports.FoxTableItem=Al;exports.FoxTableMappingColumn=Rl;exports.FoxTableRadioColumn=Fl;exports.FoxTableSetting=kn;exports.FoxTabsBar=Pn;exports.FoxTabsContainer=In;exports.FoxTabsFrame=Wl;exports.FoxTabsPane=Kl;exports.FoxText=to;exports.FoxTimeItem=kl;exports.FoxTimeSelectItem=Pl;exports.FoxToast=Xl;exports.FoxTour=oo;exports.FoxTreeItem=zl;exports.FoxTreeSelectItem=_l;exports.Group=Sl;exports.GroupSetting=jl;exports.HeaderBar=bl;exports.HintText=Mt;exports.Indicator=eo;exports.InfiniteLoading=Ql;exports.InputItem=$l;exports.InputNumberItem=Ol;exports.Item=Ne;exports.Mapping=Rt;exports.MoneyItem=Il;exports.MoreButton=no;exports.OverLay=On;exports.Page=pl;exports.PopoverDialog=so;exports.Popup=Gl;exports.Price=Nn;exports.PriorityPolicy=qe;exports.PullRefresh=Jl;exports.RadioItem=Ml;exports.RateItem=Bl;exports.RollingProvider=co;exports.RowItem=Cl;exports.SearchBar=Zl;exports.SelectItem=Nl;exports.SlotItem=En;exports.StepsBar=Yl;exports.SwitchItem=ql;exports.TableItem=Al;exports.TableMappingColumn=Rl;exports.TableRadioColumn=Fl;exports.TableSetting=kn;exports.TabsBar=Pn;exports.TabsContainer=In;exports.TabsFrame=Wl;exports.TabsPane=Kl;exports.Text=to;exports.TimeItem=kl;exports.TimeSelectItem=Pl;exports.Toast=Xl;exports.Tour=oo;exports.TreeItem=zl;exports.TreeSelectItem=_l;exports.UniqueID=Qr;exports.ValidateSchema=Mr;exports.ValidateSchemaKey=Ue;exports.cancelRaf=ba;exports.clearNonNumber=Oa;exports.clone=tl;exports.compareTo=Qn;exports.createBroadcast=dn;exports.createValidateSchema=hn;exports.debounce=Ke;exports.debounceRef=Ha;exports.decimalLength=Vr;exports.default=Lm;exports.defineBroadcast=Fa;exports.defineConfigDomain=qr;exports.defineDataItem=_r;exports.defineDomain=vl;exports.defineItem=Ee;exports.definePageState=zr;exports.defineSimpleItem=jr;exports.deleteGlobalValidator=qa;exports.disabledProperty=Me;exports.divide=dl;exports.excludeProps=Oe;exports.extend=ht;exports.floatData=Ra;exports.getGlobalValidateCheckEvents=Rr;exports.getGlobalValidateResetEvents=Ar;exports.getPageContentAreaHeight=on;exports.getPageContentAreaWidth=rn;exports.getPageFooterAreaHeight=yn;exports.getPageHeaderAreaHeight=pn;exports.getRootDomain=pt;exports.hasSymbol=Nr;exports.includeProps=Vt;exports.indexOf=Va;exports.integerLength=Or;exports.isArray=wa;exports.isArrayLike=kr;exports.isBrowser=at;exports.isDate=Ca;exports.isESModule=Na;exports.isEmptyString=de;exports.isEqual=tt;exports.isFunction=Jn;exports.isHidden=fn;exports.isInnerPage=Ya;exports.isMap=Sa;exports.isNil=ml;exports.isNumberString=Ir;exports.isObject=Ge;exports.isPlainObject=el;exports.isPromise=Cr;exports.isRegExp=nl;exports.isSet=Ta;exports.isString=Tr;exports.isSubPage=Ua;exports.isSymbol=$a;exports.isTouch=Lt;exports.isWindow=Er;exports.lastIndexOf=Da;exports.makeArray=Ia;exports.merge=Pr;exports.multiply=xr;exports.negate=wr;exports.nextTick=ka;exports.numberFormat=un;exports.objectToString=$r;exports.once=Ka;exports.overrideGlobalValidateHandler=La;exports.property=Fe;exports.raf=hl;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=_a;exports.setGlobalValidateHandler=Ma;exports.setGlobalValidateMessages=za;exports.setGlobalValidateResetEvents=ja;exports.setGlobalValidator=Ba;exports.throttle=Br;exports.toBoolean=ue;exports.toNumber=Ce;exports.toPadding=Qe;exports.toPx=me;exports.toPxDesc=xe;exports.toTypeString=cn;exports.toValue=he;exports.tryTimes=mn;exports.typeOf=nn;exports.unNumberFormat=Sr;exports.updatePageState=ll;exports.useBroadcast=kt;exports.useDomain=it;exports.useExpose=Se;exports.useInnerSize=bn;exports.usePageState=vn;exports.usePosition=Tl;exports.useRawTouch=Bt;exports.useRect=ha;exports.useSize=yl;exports.useTouch=od;exports.valueLength=At;
5
+ */function tn(e,n="0"){let o=0,t=-1;e[0]=="-"&&(o++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,t=2,n=n.substring(1),n.length),e=Pe(e),n=Pe(n),[e,n]=fl(Pe(e),Pe(n)),o==1&&(t==1?e=An(e):n=An(n));let r=br(e,n);return o?o==2?"-"+Pe(r):e.length<r.length?Pe(r.substring(1)):"-"+Pe(An(r)):Pe(r)}function An(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return br(n,a)}function Pe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function fl(e,n){let o=e.split("."),t=n.split("."),r=o[0].length,a=t[0].length;return r>a?t[0]=new Array(Math.abs(r-a)+1).join("0")+(t[0]?t[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=t[1]?t[1].length:0,(r||a)&&(r>a?t[1]=(t[1]?t[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]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function br(e,n){[e,n]=fl(e,n);let o="",t=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+t;o=a%10+o,t=Math.floor(a/10)}return t?t.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,n=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 t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=Ot(e,0,o),(t?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,fo(r[1],a,t,o)?(t?"-":"")+Mn(a):(t?"-":"")+a;if(r[1]){if(r[1].length<n)return(t?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&fo(u,i,t,o)&&(i=Mn(i),i.length>n)?(t?"-":"")+Mn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function fo(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===ye.DOWN||!o&&t===ye.FLOOR||o&&t===ye.CEILING)return!1;if(t===ye.UP||o&&t===ye.FLOOR||!o&&t===ye.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(t){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Mn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,t="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function Un(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Ct(e),n=Ct(n);let t=0,r=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=t+r;if(e=Ct(e.replace(".","")),n=Ct(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,d="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let v=0;for(let p=n.length-1;p>=c&&p>=0;p--)s[p]>-1&&s[p]<e.length&&(v+=parseInt(e[s[p]--])*parseInt(n[p]));v+=u,u=Math.floor(v/10),d=v%10+d,c--}return d=Ct(Sa(d,a)),o==1&&(d="-"+d),d}function Sa(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function 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 Gn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Pe(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Pe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Pe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Pe(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Pe(e.replace(".","")))}let a=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=tn(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(t==1?"-":"")+Pe(Ot(u,o-2))}function Xn(e,n){return e=e.toString(),n=n.toString(),n=Zn(n),tn(e,n)}function Zn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ho(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),mo(e),mo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=Xn(e,Un(n,Ot(Gn(e,n),0,ye.FLOOR)));return o+t}function mo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function go(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=fl(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=ye;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,t]=n.split(/[eE]/);o=Pe(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(t=parseInt(t)+o.indexOf("."),o=o.replace(".","")):t=parseInt(t)+o.length,o.length<t?n=r+o+new Array(t-o.length+1).join("0"):o.length>=t&&t>0?n=r+Pe(o.substring(0,t))+(o.length>t?"."+o.substring(t):""):n=r+"0."+new Array(-t+1).join("0")+o}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,t){if(!(o||t))o=3,t=",";else if(!(o&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,t=ye.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Ot(n,o,t)}round(n=0,o=ye.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Ot(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ye.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),tn(n,o)}add(n){return new fe(tn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),Xn(n,o)}subtract(n){return new fe(Xn(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),Un(n,o)}multiply(n){return new fe(Un(this.value,n.getValue()))}static divide(n,o,t){return n=fe.validate(n),o=fe.validate(o),Gn(n,o,t)}divide(n,o){return new fe(Gn(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),ho(n,o)}modulus(n){return new fe(ho(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),go(n,o)}compareTo(n){return go(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Zn(n)}negate(){return new fe(Zn(this.value))}}function xr(e,n){return fe.multiply(`${e}`,`${n}`)}function dl(e,n,o=8){return fe.divide(`${e}`,`${n}`,o)}function Qn(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function wr(e){return fe.negate(e)}function un(e,n=-1,o=!1,t=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)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let d;if(t>0){let m="",v=u.split("").reverse();for(let p=0;p<v.length;p++)m+=v[p]+((p+1)%t==0&&p+1!=v.length?r:"");s.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function Sr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const hl=yr;function Tr(e){return e==null}const Ta=Array.isArray,Ca=e=>cn(e)==="[object Map]",$a=e=>cn(e)==="[object Set]",Na=e=>e instanceof Date,Jn=e=>typeof e=="function",Cr=e=>typeof e=="string",Ea=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",$r=e=>Ge(e)&&Jn(e.then)&&Jn(e.catch),Nr=Object.prototype.toString,cn=e=>Nr.call(e),el=e=>cn(e)==="[object Object]",Er=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ka(e){return e.__esModule||Er&&e[Symbol.toStringTag]==="Module"}const Pa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ht(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,t=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<t;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=n[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:{},n[i]=ht(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function tl(e,n,o=!1){if(!o)ht(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!el(i))continue;a=tl(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!el(i))continue;a=tl(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Ln=Pa?Promise.resolve():null;function Ia(e,...n){Ln!==null?n&&n.length>0?Ln.then(()=>{e(n)}):Ln.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Ce(e){return typeof e=="number"?e:Number(e)}const Oa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function nn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Oa[o]||"object"}function kr(e){return e&&typeof e=="object"&&"setInterval"in e}function fn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Pr(e){let n=!!e&&"length"in e&&e.length,o=nn(e);return o==="function"||kr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ir(e,n){let o=+n.length,t=0,r=e.length;for(;t<o;t++)e[r++]=n[t];return e.length=r,e}function Va(e,n=[]){let o=n;return e!=null&&(Pr(Object(e))?Ir(o,typeof e=="string"?[e]:e):o.push(e)),o}function tt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=nn(e),t=nn(n);if(o!==t)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!tt(s,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!tt(a,i))return!1}return!0}return!1}const at=typeof window<"u";function ml(e){return e==null}function nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null||typeof e!="string"?!1:e.length===0;function Or(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 Vr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Dr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function vo(e,n,o){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(o,"")}function Da(e,n=!0,o=!0){n?e=vo(e,".",/\./g):e=e.replace(/\./g,""),o?e=vo(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function Ra(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(tt(e,o))return!0}):n.indexOf(e)}function Fa(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(tt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Vt(e,...n){const o={};return n.forEach(t=>{for(const r in t)o[r]=e[r]}),o}function Oe(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const t={};for(const r in e)o.includes(r)||(t[r]=e[r]);return t}const Aa=(e,n,o)=>{const t=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(t[a]=n[r[a]]):n[a]&&(t[a]=n[a])}),t):e},be=Symbol.for("BroadcastKey");class gl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,t){this.parent=n,this.proxy=o,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(t=>n===t);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(n,o,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=n.uniqueId,a={matched:n,action:o,args:t};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let t=!1;return!o.name||o.name==="*"||o.name==="+"||nl(o.name)&&n&&o.name.test(n)?t=!0:typeof o.name=="function"?t=Reflect.apply(o.name,null,[n]):o.name===n&&(t=!0),t}trigger(n,o,t){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(r)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(r){console.error(r)}}),n=n.parent}}emit(n,o,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const i=n.resolve,u=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};n.resolve=s}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):nl(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...t]);s!=null&&a.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...t]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,o,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const a=n.resolve,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};n.resolve=u}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function dn(e,n,o,t){const r=new gl(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function Ma(e,n,o){const t=o;if(t[be])return t[be];const r=l.inject(be,null),a=new gl(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),t[be]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}class La{error(n,o){const t=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*"},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?kt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?kt(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?kt(t):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let Pt=new La;function Ba(e){Pt=e}function qa(e){Pt?Object.assign(Pt,e):Pt=e}function _a(e,n){ft.Schema.setValidator(e,n)}function ja(e){ft.Schema.deleteValidator(e)}let Rr=["blur","clear"];function za(e){Rr=e}function Fr(){return Rr}let Ar=["focus","change","setValue"];function Ha(e){Ar=e}function Mr(){return Ar}function Ka(e){ft.Schema.messages(e)}function $t(...e){const n=[];return e.forEach(o=>{o.forEach(t=>{const r=n.findIndex(a=>a.type===t.type);r!==-1&&n.splice(r,1),n.push(t)})}),n}function _t(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ue=Symbol("ValidateSchemaKey");class Lr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,t){this.parent=n,this.descriptor=o,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),t.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};t.push(s)}}this.attrRules=_t(t);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(n,...o){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...o]);const r=Pt;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,t=!1){t?ft.Schema.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?ft.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return ft.Schema.hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const o=$t(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=_t(n):this.rules=_t([n]);const t=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(t,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 t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]: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 hn(e,n,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 Lr(n,o,e)}const ln=Symbol.for("EventEmitterKey");class Br{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let t=this.register.get(n);if(t&&Array.isArray(t)){let r=t.findIndex(a=>a===o);r!==-1&&t.splice(r,1)}}on(n,o){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(o)}emit(n,...o){const t=this.register.get(n);t&&t.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ke(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function qr(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Wa(e,n){const o=Ke((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Ya(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function mn(e,n,o,t=0,r=!0,a){let i=n,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+=t,setTimeout(s,i)};setTimeout(s,i)}const Le=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class gn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=l.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const t in n){const r=n[t];o.length>0&&o.indexOf(r)!==-1||(this._props[t]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const r=t._props[n];o.push(r)}t=t._parent}return o}}const Ua=new gn;function pt(){return Ua}function it(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Bn=Symbol("OriginalDateKey");function vl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=pt());const u=e||n.prop||n.name;let s=new gn(u);s.parent=i;const c=f=>{a[Bn]||v(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[Bn]??null,v=f=>{const h={};ht(!0,h,l.toRaw(f)),a[Bn]=h};l.isReactive(n)||typeof n=="function"?l.watch(n,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&v(n.modelValue);const p=(f,h)=>{s?.set(f,h)},y=f=>s?.getForSelf(f)??null;if(a[Le]=s,l.provide(Le,s),r!==null){const f=l.inject(be,null),h=dn(a,f,u,t);s.broadcast=h,a[be]=h,l.provide(be,h),a.broadcast=(x,L,...B)=>Reflect.apply(h.emit,h,[x,L,...B]);const D=l.inject(Ue,null),w=hn(a,D,{componentName:""});s.validateSchema=w,a[Ue]=w,l.provide(Ue,w),a[gt]=new Map,a.validate=(x=!0)=>{const L=[];let B=null;const q={deep:!1};if(x===!0)B={name:"*"};else if(Array.isArray(x)&&x.length>0){const P=x;B={name:k=>k?P.indexOf(k)!==-1:!1}}else if(x!=null&&typeof x=="object"){const P=x;if(Object.assign(q,P),Array.isArray(P.include)&&P.include.length>0){const k=P.include;B={name:b=>b?k.indexOf(b)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const k=P.exclude;B={name:b=>b?k.indexOf(b)===-1:!1}}else B={name:"*"}}if(B){const P=h?.emitToChildren(B,"validate",q);P&&Reflect.apply([].push,L,P)}return L.length==1?L[0]:L.length>1?Promise.all(L).then(P=>{let k=[];return P.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(k=[...k,...b.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(x,L=!0,B=!1)=>{if(B===!0){Reflect.ownKeys(x).forEach(P=>{let k=String(P);const b={componentName:"",fieldName:k,pureDataValidate:!0};if(s){const j=jr(s,k,b,h,w);a[gt].set(k,j);const g=x[k];g&&j.validateSchema.setRule(g)}});return}if(L){const q=Reflect.ownKeys(x),P={name:k=>q.includes(k),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(P,"setNameValidateRules",x,!1)}},a.clearValidate=(x=!0)=>{let L=null;if(x===!0)L={name:"*"};else if(Array.isArray(x)&&x.length>0){const B=x;L={name:q=>q?B.indexOf(q)!==-1:!1}}else if(x!=null&&typeof x=="object"){const B=x;if(Array.isArray(B.include)&&B.include.length>0){const q=B.include;L={name:P=>P?q.indexOf(P)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;L={name:P=>P?q.indexOf(P)===-1:!1}}else L={name:"*"}}L&&h?.emitToChildren(L,"clearValidate",!1)},a.resetFields=x=>{const L=d();if(!L)return;const B={};if(ht(!0,B,m()??{}),Array.isArray(x))x.forEach(q=>{L[q]=B[q]});else if(x&&Array.isArray(x.include))(x.include??[]).forEach(P=>{L[P]=B[P]});else if(x&&Array.isArray(x.exclude)){let q=x.exclude??[];Reflect.ownKeys(B).forEach(P=>{q.includes(P)||(L[P]=B[P])})}else Object.assign(L,B);a.clearValidate(x)},a.setModelValue=(x,L)=>{if(!L||L===u)c(x);else{const B={name:L,messagingPolicy:"Once"};h?.emitToChildren(B,"setModelValue",x)}},a.getModelValue=()=>d(),a.setDomainProperty=(x,L)=>{p(x,L)},a.getDomainProperty=x=>y(x),setTimeout(function(){h?.pull()},0)}return l.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ue]=void 0,l.provide(Ue,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[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 _r(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=pt());const i=e||n.prop||n.name;let u=new gn(i);return u.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,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,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(be,null);let u=dn(r,i,a,o);r[be]=u,l.provide(be,u),r.broadcast=(y,f,...h)=>u?Reflect.apply(u.emit,u,[y,f,...h]):null;const s=l.inject(Ue,null);e.fieldName=e.fieldName??a;let c=hn(r,s,e);r[Ue]=c,l.provide(Ue,c),r.validate=(y=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,D=!1;if(Array.isArray(y)&&y.indexOf(a)!==-1)D=!0,h=!0;else if(y&&typeof y=="object"){const w=y,x=w.ignoreDisabled??!0,L=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;x===!0&&e.disabled===!0||L===!0&&e.readonly===!0||B===!0&&fn(r.$el)?D=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),D=!0),h=w.deep??!1}else typeof y=="boolean"&&(h=y),D=!0;if(D){const w=c?.validate();f.push(w)}if(h){let w=null;const x={deep:!1};if(y===!0)w={name:"*"};else if(Array.isArray(y)&&y.length>0){const L=y;w={name:B=>B?L.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const L=y;if(Object.assign(x,L),Array.isArray(L.include)&&L.include.length>0){const B=L.include;w={name:q=>q?B.indexOf(q)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const B=L.exclude;w={name:q=>q?B.indexOf(q)===-1:!1}}else w={name:"*"}}if(w&&u){const L=u.emitToChildren(w,"validate",x);Reflect.apply([].push,f,L)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(w=>{let x=[];return w.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(x=[...x,...L.errors])}),x.length>0?{pass:!1,errors:x}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=y=>c?.setRule(y),r.setNameValidateRules=(y,f=!1)=>{const h=y[a];if(h&&c?.setRule(h),f&&u){const D={name:w=>Reflect.ownKeys(y).includes(w)};u.emitToChildren(D,"setNameValidateRules",y,!1)}},r.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(y===!0)f={name:"*"};else if(Array.isArray(y)&&y.length>0){const h=y;f={name:D=>D?h.indexOf(D)!==-1:!1}}else if(y!=null&&typeof y=="object"){const h=y;if(Array.isArray(h.include)&&h.include.length>0){const D=h.include;f={name:w=>w?D.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;f={name:w=>w?D.indexOf(w)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Br(r);r[ln]=d;const m=Ke((y="validate")=>{c&&(y==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fr()).forEach(y=>{d&&d.on(y,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Mr()).forEach(y=>{d&&d.on(y,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[Ue]=void 0,l.provide(Ue,null),c=null,d?.destroy(),r[ln]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(y,...f)=>{d&&Reflect.apply(d.emit,d,[y,...f])},onEvent:(y,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(y,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function jr(e,n,o,t,r){const a={},i=n??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=hn({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let v=!1,p=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)p=!0,v=!0;else if(d&&typeof d=="object"){const y=d;Array.isArray(y.include)&&y.include.indexOf(i)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(i),p=!0,v=y.deep??!1}else typeof d=="boolean"&&(v=d),p=!0;if(p&&s){const y=s.validate();m.push(y)}if(v){let y=null;const f={deep:!1};if(d===!0)y={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;y={name:D=>D?h.indexOf(D)!==-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 D=h.include;y={name:w=>w?D.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;y={name:w=>w?D.indexOf(w)===-1:!1}}else y={name:"*"}}if(y&&c){const h=c.emitToChildren(y,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(y=>{let f=[];return y.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=dn(null,t,i,a);return l.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function zr(){let n=l.getCurrentInstance()?.proxy,o=new Br(n);return n[ln]=o,l.onUnmounted(()=>{o?.destroy(),n[ln]=void 0,o=null,n=null}),{emitEvent:(t,...r)=>{o&&Reflect.apply(o.emit,o,[t,...r])},onEvent:(t,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(t,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const xe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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*n;const t=Number(e);return isNaN(t)?0:t}const rt="PageStateKey";function Qe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function ll(e,n,o={},t=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??n.headerHeight??-1),e.headerPadding=Qe(o.headerPadding??n.headerPadding),e.footerHeight=me(o.footerHeight??n.footerHeight??-1),e.footerPadding=Qe(o.footerPadding??n.footerPadding),e.contentPadding=Qe(o.contentPadding??n.contentPadding),t){const s=o.height??n.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(o.width??n.width??0,r)}}function Hr(e,n={}){const o={top:null,bottom:null,right:null,left:null},t={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")??{},n.safeAreaInset??{});r&&(t.safeAreaTop=me(r.top),t.safeAreaBottom=me(r.bottom),t.safeAreaLeft=me(r.left),t.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;ll(t,a,n,!0,i,u,s,c);const d=l.reactive(t),m=e.getForParent(rt);m&&(t.height=on(e,m),t.width=rn(e,m),l.watch([()=>on(e,m),()=>rn(e,m)],([p,y])=>{d.height=p,d.width=y}));const v=!m;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([p,y,f=-1,h=-1,D=0,w=0])=>{ll(d,y,n,v,f,h,D,w)}),e.set(rt,d),d}function vn(e){return e.get(rt)}function pn(e,n){if(n=n??e.get(rt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function yn(e,n){if(n=n??e.get(rt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function on(e,n){if(n=n??e.get(rt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=pn(e,n),t=yn(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function rn(e,n){return n=n??e.get(rt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ga(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Xa(e){return!!e.getForParent(rt)}var qe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(qe||{});function jt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,o=1,t){const r=it();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(jt(s,t))return s}const i=e.value;return jt(i,t)?i:null}):l.computed(()=>{const a=e.value;if(jt(a,t))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(jt(s,t))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function he(e,n="modelValue",o=null,t){const r=l.toRef(e,n);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,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const Kr=new Map,an=new Map;let ol=null;function Za(e){ol=e}function Wr(e,n,o){if(o){let t=an.get(o);t||(t=new Map,an.set(o,t)),t.set(e,n)}else Kr.set(e,n)}function _e(e,n,o){!o&&ol&&(o=ol(e)??void 0);let t=null;if(o){let r=an.get(o);r&&(t=r.get(n))}return t||(t=Kr.get(n)),t}function Qa(e,n){for(let o in e){const t=e[o];Wr(o,t,n)}}function Ja(e){an.delete(e)}function ei(){return{top:0,left:0,bottom:0,right:0}}function ti(){if(at){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function ni(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class li{packages;installers;_version;get version(){return this._version}constructor(n,o,t){this.packages=n,this.installers=o,this._version=t}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=ni(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...o},i=Ke(()=>{const s={...a};this.initPageLayout(s,r)},120);new window.ResizeObserver(i).observe(window.document.body)}this.initPageLayout(o,r);for(const a in o)t.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const t=n.headerBarHeight??0,r=n.footerBarHeight??0,a=ht({},ei(),n.safeAreaInset),i=ti(),u=ht({},i.pageLayout,n.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Za(n)}setAPI(n,o,t){Wr(n,o,t)}getAPI(n,o,t){return _e(n,o,t)}batchSetAPI(n,o){Qa(n,o)}clearScopeAPI(n){Ja(n)}getRootDomain(){return pt()}}const oi=[T.ElAffix,T.ElAlert,T.ElAutocomplete,T.ElAutoResizer,T.ElAvatar,T.ElBacktop,T.ElBadge,T.ElBreadcrumb,T.ElBreadcrumbItem,T.ElButton,T.ElButtonGroup,T.ElCalendar,T.ElCard,T.ElCarousel,T.ElCarouselItem,T.ElCascader,T.ElCascaderPanel,T.ElCheckTag,T.ElCheckbox,T.ElCheckboxButton,T.ElCheckboxGroup,T.ElCol,T.ElCollapse,T.ElCollapseItem,T.ElCollapseTransition,T.ElColorPicker,T.ElConfigProvider,T.ElContainer,T.ElAside,T.ElFooter,T.ElHeader,T.ElMain,T.ElDatePicker,T.ElDescriptions,T.ElDescriptionsItem,T.ElDialog,T.ElDivider,T.ElDrawer,T.ElDropdown,T.ElDropdownItem,T.ElDropdownMenu,T.ElEmpty,T.ElForm,T.ElFormItem,T.ElIcon,T.ElImage,T.ElImageViewer,T.ElInput,T.ElInputNumber,T.ElLink,T.ElMenu,T.ElSubMenu,T.ElMenuItem,T.ElMenuItemGroup,T.ElPageHeader,T.ElPagination,T.ElPopconfirm,T.ElPopover,T.ElPopper,T.ElProgress,T.ElRadio,T.ElRadioButton,T.ElRadioGroup,T.ElRate,T.ElResult,T.ElRow,T.ElScrollbar,T.ElSelect,T.ElOption,T.ElOptionGroup,T.ElSelectV2,T.ElSkeleton,T.ElSkeletonItem,T.ElSlider,T.ElSpace,T.ElSteps,T.ElStep,T.ElSwitch,T.ElTable,T.ElTableColumn,T.ElTableV2,T.ElTabs,T.ElTabPane,T.ElTag,T.ElTimePicker,T.ElTimeSelect,T.ElTimeline,T.ElTimelineItem,T.ElTooltip,T.ElTransfer,T.ElTree,T.ElTreeSelect,T.ElTreeV2,T.ElUpload,T.ElStatistic,T.ElCountdown,T.ElSegmented,T.ElAnchor,T.ElAnchorLink,T.ElWatermark,T.ElMessageBox,T.ElMessage,T.ElNotification],ri=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],ai=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);oi.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ri.forEach(r=>{e.use(r)})};function ae(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=t=>{t.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Se(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.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}},Yr={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}},Ur={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}},Gr=[];for(const e in Ur)Gr.push(e);const Xr=Symbol.for("InnerPageScopeKey"),ii={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}},si=(e,n)=>({inheritAttrs:!0,props:{...$e,...Yr,...ii},setup(o,{slots:t}){const r=vl(o.name,o),a=l.inject(Xr,!1);if(r){const d=Hr(r,o);Se({getPageContentHeight:()=>on(r,d),getPageContentWidth:()=>rn(r,d),getPageHeaderHeight:()=>pn(r,d),getPageFooterHeight:()=>yn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=(d,m=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(d,!0,m)};return l.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[v,p])=>{if(d&&v){const y=l.toRaw(v),f=l.toRaw(d),h=f?Reflect.ownKeys(f):[];(y?Reflect.ownKeys(y):[]).forEach(w=>{h.includes(w)||(f[w]=[])}),c(f)}if(m&&p){const y=l.toRaw(p),f=l.toRaw(m),h=f?Reflect.ownKeys(f):[];(y?Reflect.ownKeys(y):[]).forEach(w=>{h.includes(w)||(f[w]=[])}),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,[t?.default?.()])}}}),{componentName:ui,create:ci}=ae("page"),pl=ci(si(ui));function yl(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function bn(e){const n=l.unref(e),o=window.getComputedStyle(n,null),t=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:n.clientWidth-t-r,height:n.clientHeight-a-i}}const fi=(e,n,o,t=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default: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?vn(i):null;u&&(u.headerMounted=!0);const s=e,c=l.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=l.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?me(r.height):null,v=l.computed(()=>{const g={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const R=Qe(r.padding??u.headerPadding);return Object.assign(g,R),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+(R.top??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaTop)),g}if(m&&(g.height=m),r.padding){const R=Qe(r.padding);Object.assign(g,R)}return g}),p=l.ref(null),y=()=>{if(u&&p.value&&!fn(p.value)){if(!t){const g=yl(p.value);u.headerAllHeight=g.height}return u.headerMounted=!0,!0}return!1},f=Ke(y,120);let h=null;l.onMounted(()=>{u&&(mn(y,50,5,50,!0),window.ResizeObserver&&p.value&&(h=new window.ResizeObserver(f),h.observe(p.value)))}),l.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const D=l.computed(()=>{const g={};return v.value.height!==null&&v.value.height!==void 0&&(g.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(g.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(g.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(g.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(g.paddingBottom=`${v.value.bottom}px`),g}),w=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function x(){a.emit("back")}function L(){a.emit("click-title")}function B(){a.emit("click-right")}function q(){a.emit("click-right-text")}const P=()=>{if(!r.leftShow)return null;const g=[];if(a.slots.left)g.push(a.slots.left());else{if(a.slots.leftIcon){const R=l.h("view",{class:"left-icon",onClick:x},[a.slots.leftIcon()]);g.push(R)}else if(r.leftIcon){const R=l.h("view",{class:"left-icon",onClick:x},[l.h(r.leftIcon)]);g.push(R)}if(r.leftText){const R=l.h("view",{class:"left-text",onClick:x},[r.leftText]);g.push(R)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__left"},g)},k=()=>{if(!r.rightShow)return null;const g=[];if(a.slots.right)g.push(a.slots.right());else{if(r.rightText){const R=l.h("view",{class:"right-text",onClick:q},[r.rightText]);g.push(R)}if(a.slots.rightIcon){const R=l.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);g.push(R)}else if(r.rightIcon){const R=l.h("view",{class:"right-icon",onClick:B},[l.h(r.rightIcon)]);g.push(R)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__right"},g)},b=()=>{if(!r.titleShow)return null;const g=[],R=a.slots.default?a.slots.default():null;if(R)g.push(R);else{if(r.title){const G=l.h("view",{class:"title-text"},[r.title]);g.push(G)}if(a.slots.titleIcon){const G=l.h("view",{class:"title-icon",onClick:L},[a.slots.titleIcon()]);g.push(G)}else if(r.titleIcon){const G=l.h("view",{class:"title-icon",onClick:L},[l.h(r.titleIcon)]);g.push(G)}}return g.length===0?null:l.h("view",{class:"fox-header-bar__title"},g)},j=()=>{const g=[],R=a.slots.bottom?a.slots.bottom():null;return R&&g.push(R),g.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},g)};return()=>{if(!w.value)return null;const g=[];if(a.slots.all)g.push(a.slots.all());else{const G=[],O=P();O&&G.push(O);const N=b();N&&G.push(N);const A=k();if(A&&G.push(A),G.length>0){const Y=l.h("view",{class:d.value},G);g.push(Y)}const _=j();_&&g.push(_)}if(g.length===0)return null;const R={class:c.value,style:D.value,ref:p};return l.h("view",R,g)}}}),{componentName:di,create:hi,scope:mi}=ae("header-bar"),bl=hi(fi(di,mi,Ie.ArrowLeft));function gi(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(t,r){const a=it(),i=a?vn(a):null,u=l.computed(()=>{const f=e;return{[f]:!0,[`${f}--${t.align}`]:!0,[`${f}--border`]:t.border,[`${f}--fixed`]:t.fixed,[`${f}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),s=t.height!==null&&t.height!==void 0?me(t.height):null,c=l.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Qe(t.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),t.padding){const h=Qe(t.padding);Object.assign(f,h)}return f}),d=l.ref(null),m=()=>{if(i&&d.value&&!fn(d.value)){if(!o){const f=yl(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},v=Ke(m,120);let p=null;l.onMounted(()=>{i&&(mn(m,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(v),p.observe(d.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const y=l.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=xe(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=xe(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=xe(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=xe(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=xe(c.value.bottom)),f});return()=>{const f=r.slots.default?r.slots.default():[],h={ref:d,class:u.value,style:y.value};return l.h("view",h,f)}}}}const{componentName:vi,create:pi}=ae("footer-bar"),xl=pi(gi(vi));function yi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:t,attrs:r}){const a=it(),i=l.computed(()=>({[e]:!0})),u=a?vn(a):null,s=l.computed(()=>{const p={};if(a&&u){if(o.padding){const B=Qe(o.padding);Object.assign(u.contentPadding,B)}const y=pn(a,u),f=yn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,p.height=h;let D=(u&&u.contentPadding&&u.contentPadding.top)??-1;(D>=0||y>0)&&(D=D<0?0:D,p.paddingTop=`${y+D}px`);let w=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(w>=0||f>0)&&(w=w<0?0:w,p.paddingBottom=`${f+w}px`);const x=(u&&u.contentPadding&&u.contentPadding.left)??-1;x>=0&&(p.paddingLeft=`${x}px`);const L=(u&&u.contentPadding&&u.contentPadding.right)??-1;return L>=0&&(p.paddingRight=`${L}px`),p}if(o.padding){const y=Qe(o.padding);y.left&&(p.paddingLeft=`${y.left}px`),y.top&&(p.paddingTop=`${y.top}px`),y.right&&(p.paddingRight=`${y.right}px`),y.bottom&&(p.paddingBottom=`${y.bottom}px`)}return p}),c=l.ref(null),d=()=>{if(u&&c.value){const p=bn(c.value);u.contentInnerHeight=p.height,u.contentInnerWidth=p.width}},m=Ke(d,120);let v=null;return l.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(v=new window.ResizeObserver(m),v.observe(c.value))}),l.onUnmounted(()=>{v&&(v.disconnect(),v=null)}),()=>{const p=o.tag??"view",y={...r,ref:c,class:i.value,style:s.value};return l.h(p,y,t)}}}}const{componentName:bi,create:xi}=ae("content"),wl=xi(yi(bi)),xt="GroupStateKey",Zr=Symbol.for("GroupScopeKey");function xn(){return l.inject(Zr,!1)}function wn(e=!0){l.provide(Zr,e)}function wi(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];ml(r)||(e[t]=r)})}function Si(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};wi(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(xt,a),a}function qn(e,n,o=-1,t=-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),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),m=me(i);u||(u=c.type??"grid");const v=()=>{const p=n===""||n===-1,y=me(n);let f=Ce(o);const h=me(t);if(!p){let x=(y-(f-1)*h)/f;for(;m!==-1&&x>m;)f++,x=(y-(f-1)*h)/f;for(;d!==-1&&f>1&&x<d;)f--,x=(y-(f-1)*h)/f}let D=!1;const w=s.layout;w.value.width=n,w.value.column!==f&&(w.value.column=f,D=!0),w.value.gutter!==h&&(w.value.gutter=h,D=!0),w.value.type!==u&&(w.value.type=u,D=!0),D&&l.triggerRef(w)};if(r)v();else{const p=++s.passport;setTimeout(()=>{p===s.passport&&v()},50)}}function Sn(e,n=!1){let o;return n?o=e.getForParent(xt):o=e.get(xt),o.layout}function Tn(e,n=!1){let o;return n?o=e.getForParent(xt):o=e.get(xt),o.order}function po(e,n=1){if(n==="stretch")return-1;const o=Ce(n);return o===-1?100:100*o/e}function Cn(e,n,o=1,t=0,r){const a={};let i=0;r?i=me(r):i=po(n.column,o),i>0&&(a.width=`${i}%`);const u=po(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function $n(e,n,o=1,t=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Ce(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Ce(t)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Qr=Symbol("RollingStateKey");function Ti(e){l.provide(Qr,e)}function Ci(){return l.inject(Qr,null)}function rl(e){let n=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"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function $i(e){let n=rl(e);if(n<=0){const o=e.cloneNode(!0),t=e.offsetWidth;o.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=rl(o),document.body.removeChild(o)}return n}function Ni(e,n,o){const t=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),a=typeof o=="number"?o:parseInt(o);if(t<=0)return"1fr";const i=(t-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const Ei={...$e,...Yr,...Ur};function ki(e,n,o){return{props:Ei,emits:["update:collapse","header-click"],setup(t,r){const a=vl(t.prop??t.name,t,Gr),i=Si(a,{type:t.type}),u=xn();wn(!0);const s=t.rollingDisplay?Ci():null,c=l.ref(null),d=l.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),m=l.computed(()=>u&&a?Sn(a,!0).value:null),v=l.getCurrentInstance(),p=(E,K=!1)=>{const X=v?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(E,!0,K)};l.watch([()=>t.rules,()=>t.pureDataRules],([E,K],[X,I])=>{if(E&&X){const z=l.toRaw(X),Z=l.toRaw(E),le=Z?Reflect.ownKeys(Z):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{le.includes(ce)||(Z[ce]=[])}),p(Z)}if(K&&I){const z=l.toRaw(I),Z=l.toRaw(K),le=Z?Reflect.ownKeys(Z):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{le.includes(ce)||(Z[ce]=[])}),p(Z,!0)}},{deep:!0});const y=e,f=l.computed(()=>{const E={};E.height=N.value;const K=u?Tn(a,!0):null;if(m.value&&K){if(m.value.type==="grid"){const X=$n(K,m.value,t.span,t.offset);Object.assign(E,X)}else if(m.value.type==="flow"){const X=Cn(K,m.value,t.span,t.offset,t.width);Object.assign(E,X)}}else if(t.width){const X=xe(t.width);E.width=X}return E}),h=l.computed(()=>{const E=i.layout.value.type;return E==="grid"||E==="flow"?{[`${y}--${E}`]:!0,[`${y}--${E}-justify-${t.justify}`]:!0,[`${y}--${E}-align-${t.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${E}`]:!0,[`${y}--gutter`]:!0}}),D=l.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(t.columnWidth)K=`repeat(auto-fill, ${t.columnWidth})`;else{const X=Ni(k.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}}}),w=l.toRef(t,"gutter"),x=l.toRef(t,"column"),L=l.computed(()=>u||d.value?!0:ue(t.isWrap)),B=[],q=E=>{B.push(E)},P=()=>{let E=B.length;B.splice(0,E)},k=l.ref(-1),b=E=>{const K=bn(E).width;K>0&&K!==k.value&&(k.value=K)};qn(a,k.value,x.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([k,x,w],([E,K,X])=>{i.order.index=0,qn(a,E,K,X,!1,t.minItemWidth,t.maxItemWidth,t.type)});const j=l.computed(()=>A.value?t.expandText??"":t.collapseText??""),g=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),R=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),G=l.ref(),O=l.ref(),N=l.computed(()=>_.value||xe(t.height)||""),A=l.ref(!1),_=l.ref(""),Y=l.ref(!1);let J=-1;const M=(E,K=!0)=>{const X=G.value;if(X&&A.value!==E){if(J=J===-1?$i(X):J,Y.value=!0,K)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",E||(_.value="",Y.value=!1)},E){let I=0;t.collapseHeight?I=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(I=O.value.offsetHeight),_.value=`${J}px`,l.nextTick(()=>{_.value=`${I}px`})}else _.value=`${J}px`;else if(E){let I=0;t.collapseHeight?I=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(I=O.value.offsetHeight),_.value=`${I}px`}else Y.value=!1,_.value=`${J}px`;A.value=E,r.emit("update:collapse",E)}};l.watch(()=>t.collapse,E=>{M(E)});const te=E=>{r.emit("header-click",E)},$=()=>{C()},C=E=>{E=E??!A.value,M(E)};Se({toggleCollapse:C,doLayout:()=>{B[0]&&(b(B[0]),qn(a,k.value,x.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let V=null,S=!0;const H=E=>{if(t.rules){const K=l.toRaw(t.rules);p(K)}if(t.pureDataRules){const K=l.toRaw(t.pureDataRules);p(K,!0)}if(at&&(E&&M(ue(t.collapse),!1),t.autoLayout&&Array.isArray(B)&&B.length>0)){const K=B[0];if(b(K),window.ResizeObserver){const X=Ke(()=>b(K),120);V=new window.ResizeObserver(X),V.observe(K)}}},Q=()=>{V?.disconnect(),V=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),l.onMounted(()=>{if(ne&&(H(S),S=!1),d.value&&s){let E=null,K=s.initialHeight;s.observe(G.value,X=>{if(X!==c.value)if(X)c.value=!0,A.value||(_.value=""),E=setTimeout(()=>{E=null,c.value!==!1&&(H(S),S=!1)},100);else{if(E!==null&&clearTimeout(E),c.value=!1,!A.value)if(S)_.value=s.initialHeight;else{let I=rl(G.value);I<=0?_.value=K:(_.value=`${I}px`,K=_.value)}S||Q()}})}}),l.onUnmounted(()=>{V?.disconnect(),s&&s.unobserve(G.value)});const U=(E="right")=>{const K=[];if(j.value){const z={class:g.value},Z=l.h("span",z,[j.value]);K.push(Z)}const X={class:R.value},I=o(t.collapseIcon,X);return I&&K.push(I),K.length>0?l.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${E}`]:!0},onClick:$},K):null},W=(E,K,X,I)=>{const z={...h.value};if(K===0&&(z[`${y}__first`]=!0),X>=I-1&&(z[`${y}__last`]=!0),L.value===!1){const Z=r.attrs.class;Z&&(z[`${Z}`]=!0)}return l.h("div",{ref:q,key:`${K}`,class:z,style:D.value},E)};return()=>{if(d.value&&c.value!==!0){const z=t.tag||"div";return l.h(z,{ref:G,prop:t.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:f.value},[])}i.order.index=0;const E=[];let K=0;if(r.slots.header){const z={key:`${K++}`,ref:O,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:te},Z=l.h("div",z,[r.slots.header()]);E.push(Z)}else{const z=[],Z=t.collapsePosition==="left";if(Z&&t.showCollapse){const le=U("left");le&&z.push(le)}if(t.title||r.slots.title){if(t.showMark){const le={class:{[`${y}__header-mark`]:!0}};t.markColor&&(le.style={background:t.markColor});const se=l.h("div",le);z.push(se)}if(r.slots.title){const le=l.h("div",{class:{[`${y}__header-title`]:!0}},[r.slots.title()]);z.push(le)}else if(t.title){const le=l.h("div",{class:{[`${y}__header-title`]:!0}},[t.title]);z.push(le)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!Z&&t.showCollapse){const le=U("right");le&&z.push(le)}if(z.length>0){const le={key:`${K++}`,ref:O,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:te},se=l.h("div",le,z);E.push(se)}}P();const X=r.slots.default?r.slots.default():[],I=i.layout.value.type;if(I==="grid"){const z=W(X,K++,0,X.length);E.push(z)}else if(I==="flow"){const z=W(X,K++,0,X.length);E.push(z)}else for(let z=0;z<X.length;z++){const Z=X[z],le=W([Z],K++,z,X.length);E.push(le)}if(L.value){const z=t.tag||"div";return l.h(z,{ref:G,prop:t.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:f.value},[E])}else return E}}}}const{componentName:Pi,create:Ii,scope:Oi}=ae("group"),Vi=(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]})),Sl=Ii(ki(Pi,Oi,Vi));function Di(e){return e===window}const Ri=/matrix\((.+)\)/,Tl=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(Di(n))return{x:0,y:0};let o=0,t=0,r=n;for(;r!==null;)o+=r.offsetLeft,t+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=Ri.exec(c);if(d){let v=d[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}r=r.parentNode}return o-=a,t-=i,o+=u,t+=s,{x:o,y:t}};class Fi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ai{monitorRegister=new WeakMap;watch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a||(a=new Fi,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(o),t=t.parentNode}}unwatch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const It=new Ai,Jr={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:Mi,create:Li}=ae("price"),Bi=Li({props:{...Jr},setup(e){const n=l.computed(()=>({[Mi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>At(e.price)==0?"":un(e.price,e.decimalLength,!0,Ce(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Xe=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},qi=["innerHTML"],_i=["innerHTML"];function ji(e,n,o,t,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,qi)):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,_i)):l.createCommentVNode("",!0)],2)}const Nn=Xe(Bi,[["render",ji]]),{componentName:_n,create:zi}=ae("hint-text"),Hi=zi({components:{Price:Nn},props:{...Jr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=l.ref({top:null,right:null,bottom:null,left:null}),t=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,R,G,O,N,A)=>{const _=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,J=g.split("-");let M=[];J[0]==="top"?M=["top","bottom","right","left"]:J[0]==="bottom"?M=["bottom","top","right","left"]:J[0]==="left"?M=["left","top","bottom","right"]:J[0]==="right"&&(M=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},$=[];for(let C=0;C<M.length;C++){const F=M[C];if($[0]=F,J[1]&&($[1]=J[1]),F==="top"){const V=R.y-A-e.arrowSize-e.offset;if(V>=0){te.top=V;let S=0;J[1]==="start"?S=R.x:J[1]==="end"?S=R.x+G-N:S=R.x+G/2-N/2;const H=_-S-N;H<0?(S+=H,m.value=-H):m.value=0,te.left=S<0?0:S;break}}else if(F==="bottom"){const V=R.y+O+e.arrowSize+e.offset;if(V+A<=Y){te.top=V;let S=0;J[1]==="start"?S=R.x:J[1]==="end"?S=R.x+G-N:S=R.x+G/2-N/2;const H=_-S-N;H<0?(S+=H,m.value=-H):m.value=0,te.left=S<0?0:S;break}}else if(F==="left"){const V=R.x-N-e.arrowSize-e.offset;if(V>=0){te.left=V;let S=0;J[1]==="start"?S=R.y:J[1]==="end"?S=R.y+O-A:S=R.y+O/2-A/2,te.top=S<0?0:S;break}}else if(F==="right"){const V=R.x+G+e.arrowSize+e.offset;if(V+N<=_){te.left=V;let S=0;J[1]==="start"?S=R.y:J[1]==="end"?S=R.y+O-A:S=R.y+O/2-A/2,te.top=S<0?0:S;break}}}return{bestPlacement:$.join("-"),bestInsetRect:te}},d=(g,R,G=10)=>{if(!at||R===!1||!g)return;t.value=Tl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=s.value.offsetHeight,N=s.value.offsetWidth,{bestPlacement:A,bestInsetRect:_}=c(e.placement,t.value,r.value,a.value,N,O);i.value=A,o.value=_,u.value=!0},m=l.ref(0),v=Ke(()=>{d(e.message,e.visible)},10),p=l.ref(e.visible);l.watch(()=>e.visible,g=>{p.value=g});const y=l.computed(()=>p.value&&f.value),f=l.ref(!0),h=Ke(g=>{const R=g[0];R&&(f.value=R.isIntersecting)},10),D=new IntersectionObserver(h);l.watch([()=>e.message,()=>e.visible],([g,R])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),It.watch(e.reference,v),D.observe(e.reference)}),l.onBeforeUnmount(()=>{It.unwatch(e.reference,v),D.unobserve(e.reference),D.disconnect()});const w=l.computed(()=>{const g={[_n]:!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}),x=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 R=document.documentElement.clientWidth||document.body.clientWidth;return g["max-width"]=`${R}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}),L=l.computed(()=>{const g=[`${_n}__content`];return e.customTextClass&&g.push(e.customTextClass),g}),B=l.computed(()=>{const g={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(g,e.customTextStyle),g}),q=l.computed(()=>({[`${_n}__arrow`]:!0})),P=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"}}),k=l.computed(()=>y.value&&e.closeOnClick),b=l.computed(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:y,tipRef:s,classes:w,styles:x,textClasses:L,textStyles:B,arrowClasses:q,arrowStyles:P,overlayShow:k,overlayStyle:b,onClickOverlay:()=>{p.value=!1,n.emit("update:visible",!1)}}}}),Ki=["innerHTML"];function Wi(e,n,o,t,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:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ki))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=Xe(Hi,[["render",Wi]]);class ea{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const al={},Yi=new ea,yt=new Map,sn=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of yt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}yt.clear()}},Ui=e=>{e.unmount=sn;const n=document.getElementById(e.id);if(n){const o=yt.get(e.id);o?e={...al,...o,...e}:e={...al,...e},e.transition=!1;const t=l.createVNode(Mt,e);l.render(t,n)}return e.id},Gi=e=>{e.unmount=sn;let n=e.id??`hinttext_${Yi.get()}`;e={...al,...e},e.id=n,yt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(Mt,e);return l.render(t,o),document.body.appendChild(o),n},Xi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,n,o={},t=!0){Xi(n);const r=o.id;return r&&yt.has(r)?Ui({...o,message:n,reference:e}):(t&&sn(),Gi({...o,message:n,reference:e}))},hide(e){sn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Zi(e,n,o,t=!1){return{inheritAttrs:!0,props:{...$e,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ee({componentName:e,validate:!1},i);const u=it(),s=xn();wn(!1);const c=l.computed(()=>s&&u?Sn(u,!1).value:null),d=e,m=l.ref(null),v=l.computed(()=>{const I={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(I[r.errorMarkClass]=!!A.value,I[r.warnMarkClass]=!!O.value,I[r.infoMarkClass]=!!R.value,typeof m.value=="function"){const z=m.value(i);I[z]=!0}else if(typeof m.value=="string"){const z=m.value;I[z]=!0}return I}),p=l.ref(null),y=l.computed(()=>{const I={};if(r.width)r.width!=="auto"&&(I.width=xe(r.width));else{const z=s&&u?Tn(u,!1):null;if(c.value&&z){if(c.value.type==="grid"){const Z=$n(z,c.value,r.span,r.offset);Object.assign(I,Z)}else if(c.value.type==="flow"){const Z=Cn(z,c.value,r.span,r.offset,r.width);Object.assign(I,Z)}}}if(typeof p.value=="function"){const z=p.value(i);z&&Object.assign(I,z)}else if(p.value&&typeof p.value=="object"){const z=p.value;Object.assign(I,z)}return I}),f=l.ref(null),h=l.computed({get:()=>f.value??ue(r.isRequired),set:I=>{f.value=I}}),D=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Fe(l.toRef(r,"labelPosition"),"labelPosition",qe.Near),x=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),L=l.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${x.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${x.value}`]:!0})),q=Fe(l.toRef(r,"labelWidth"),"labelWidth",qe.Near),P=l.computed(()=>q&&q.value?{width:xe(q.value)}:{}),k=l.computed(()=>({"label--string":!0,"label--required":h.value})),b=l.computed(()=>({content:!0,[r.contentClass]:!0})),j=l.computed(()=>({...r.contentStyle})),g=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(I){h.value=I},setErrorTip(I){g.errorTip=I},setErrorIcon(I){g.errorIcon=I},setWarnTip(I){g.warnTip=I},setWarnIcon(I){g.warnIcon=I},setInfoTip(I){g.infoTip=I},setInfoIcon(I){g.infoIcon=I},setCustomClassName(I){m.value=I},setCustomStyle(I){p.value=I}});const R=l.computed(()=>r.infoTip||g.infoTip),G=l.computed(()=>r.infoIcon||g.infoIcon),O=l.computed(()=>r.warnTip||g.warnTip),N=l.computed(()=>r.warnIcon||g.warnIcon),A=l.computed(()=>r.errorTip||g.errorTip),_=l.computed(()=>r.errorIcon||g.errorIcon),Y=l.computed(()=>A.value?"error":O.value?"warn":R.value?"info":""),J=()=>Y.value.length>0,M=l.computed(()=>Y.value==="error"?A.value:Y.value==="warn"?O.value:Y.value==="info"?R.value:""),te=l.computed(()=>Y.value==="error"?_.value:Y.value==="warn"?N.value:Y.value==="info"?G.value:null),$=l.computed(()=>{const I={[`${d}__tip`]:!0,[`${d}__tip--${Y.value}`]:!0,[`${d}--animate`]:!0};return Y.value==="error"&&r.errorClass?I[`${r.errorClass}`]=!0:Y.value==="warn"&&r.warnClass?I[`${r.warnClass}`]=!0:Y.value==="info"&&r.infoClass&&(I[`${r.infoClass}`]=!0),I}),C=l.computed(()=>{const I={};return w&&w.value==="top"||!D()?I["padding-left"]="0px":q&&q.value&&(I["padding-left"]=xe(q.value)),I}),F=l.ref();let V="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([I,z,Z,le])=>{F.value&&(I&&!de(z)?V?o.show(F.value,z,{...le,id:V,type:Z},!0):V=o.show(F.value,z,{...le,type:Z},!0):o.hide(V))});let S=null;const H=()=>{S||!F.value||(S=new IntersectionObserver(I=>{let z=!1;for(let Z of I)if(Z.intersectionRatio>0){z=!0,z&&a.emit("appear",Z);break}z||a.emit("disappear")}),S.observe(F.value))},Q=()=>{!S||!F.value||(S.unobserve(F.value),S=null)};l.watch(()=>ue(r.appearListen),I=>{I?H():Q()}),l.onMounted(()=>{ue(r.appearListen)&&H()}),l.onUnmounted(Q);const ne=()=>{if(!D())return null;const I=[],z=a.slots?.label?.()??r.label,Z={class:k.value},le=l.h("div",Z,[z]);if(I.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();I.push(ce)}const se={class:B.value,style:P.value};return l.h("div",se,I)},U=()=>{const I=[];if(a.slots.prepend){const Z=a.slots.prepend();I.push(Z)}if(a.slots.default){const Z=a.slots.default();I.push(Z)}if(a.slots.append){const Z=a.slots.append();I.push(Z)}if(a.slots.fixedTip){const Z={class:[`${d}__fixed-tip`]},le=l.h("div",Z,[a.slots.fixedTip()]);I.push(le)}const z={ref:F,class:b.value,style:j.value};return l.h("div",z,I)},W=()=>{const I=te.value;return I?typeof I=="function"?l.h("div",{class:"fox-item__tip--icon"},[I()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(I)]):null},E=()=>{const I=M.value;return I?typeof I=="function"?l.h("div",{class:"fox-item__tip--text"},[I()]):l.h("div",{class:"fox-item__tip--text"},[I]):null},K=()=>{if(!J())return null;const I=[],z=W();z&&I.push(z);const Z=E();Z&&I.push(Z);const le={class:$.value,style:C.value};return l.h("div",le,I)},X=()=>a.slots?.hide?.()??null;return()=>{const I=[],z=[],Z=ne();Z&&z.push(Z);const le=U();le&&z.push(le);const se={class:L.value},ce=l.h("div",se,z);I.push(ce);const pe=K();pe&&I.push(pe);const ge=X();ge&&I.push(ge);const Te={class:v.value,style:y.value,prop:r.prop};return l.h("div",Te,I)}}}}const{componentName:Qi,create:Ji,scope:es}=ae("item"),Ne=Ji(Zi(Qi,es,Re,!1)),il={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ts(e,n){return{props:{...il},setup(o,t){const r=it(),a=xn();wn(!1);const i=l.computed(()=>a&&r?Sn(r,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=xe(o.width));else{const m=a&&r?Tn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const v=$n(m,i.value,o.span,o.offset);Object.assign(d,v)}else if(i.value.type==="flow"){const v=Cn(m,i.value,o.span,o.offset,o.width);Object.assign(d,v)}else return o.width&&(d.width=xe(o.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",d,t.slots.default()):l.h("div",d)}}}}const{componentName:ns,create:ls}=ae("slot-item"),En=ls(ts(ns));function os(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=it(),u=xn();wn(!1);const s=l.computed(()=>{const c={};if(u&&i){const d=Sn(i,!1),m=Tn(i,!1);if(d.value&&m)if(d.value.type==="grid"){const v=$n(m,d.value,o.span,o.offset);Object.assign(c,v)}else if(d.value.type==="flow"){const v=Cn(m,d.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=xe(o.width))}else o.width&&(c.width=xe(o.width));return c});return()=>{const c=[];if(t.slots.default){const m=t.slots.default();if(o.divide)for(let v=0;v<m.length;v++){if(v>0){const p=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(p)}c.push(m[v])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return l.h("div",d,c)}}}}const{componentName:rs,create:as}=ae("row-item"),Cl=as(os(rs)),Ze=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},yo={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 is(e,n,o){return{props:{...$e,...Ve,...yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0,[`${y}__disabled`]:i.value,[`${y}__readonly`]:s.value})),h=N=>{p.value=N,c("update:modelValue",N),c("input",N)},D=N=>{c("change",N)};let w=he(t,"hintText"),x=l.ref(!1);const L=N=>{let _=N.target.value;v.value=!0,de(w.value)||(x.value=!0),c("focus",_,N)},B=N=>{setTimeout(()=>{x.value&&(x.value=!1),v.value=!1},0);let _=N.target.value;t.maxLength&&_.length>Number(t.maxLength)&&(_=_.slice(0,Number(t.maxLength))),c("blur",_,N)},q=()=>{c("clear","")},P=l.ref(!1);let k=null;const b=()=>{t.showTooltip&&P.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{P.value=!0},150))},j=()=>{k&&(clearTimeout(k),P.value=!1,k=null)},g=l.computed(()=>P.value||x.value),R=l.computed(()=>P.value?p.value:w.value),G=l.computed(()=>At(t.unit)>0),O=l.ref();return Se({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const A={...Ze(r.attrs),ref:O,class:f.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:q,onChange:D,onInput:h,onFocus:L,onBlur:B,onMouseover:b,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:G.value&&(_.suffix=()=>[t.unit]);const Y=[],J=l.h(T.ElInput,A,_);Y.push(J);const M={default:()=>Y};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const $={...Oe(t,yo),hintText:R.value,hintVisible:g.value};return t.prop&&($.prop=`${t.prop}_item`),l.h(o,$,M)}}}}const{componentName:ss,create:us,scope:cs}=ae("input-item"),$l=us(is(ss,cs,Ne));function ot(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ta(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function fs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ds=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function hs(){const e=l.getCurrentInstance();return new ds(e.proxy)}function na(e,n,o){const t=ot(e,n),r=ot(e,o);if(t!==r)return!1;const a=Dt(e,n),i=Dt(e,o);return a===i}function la(e,n,o,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){const u=ta(e,i);if(Array.isArray(u)&&u.length>0){const s=la(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=na(e,i,a);else{let c=Dt(e,i);c==null&&(c=ot(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function ms(e){return{text:e,value:e}}const bo={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 gs(e,n,o){return{props:{...$e,...Ve,...bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(null),p=l.ref([]),y=l.computed(()=>p.value?p.value.map(K=>ot(t,K)).join(" "):""),f=(E,K,X,I=!0)=>{if(!X||X.length==0){v.value=E,I&&(c("update:modelValue",E),c("change",E));return}const z=la(t,E,K,X);if(z===null){if(p.value===null||p.value.length===0)return;v.value=null,p.value=[],I&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let Z=!0;if(z.length!==p.value.length)Z=!1;else for(let le=0;le<z.length;le++){const se=z[le],ce=p.value[le];if(!na(t,se,ce)){Z=!1;break}}if(!Z){p.value=z;let le=[],se=[],ce=[];z.forEach(ze=>{const st=Dt(t,ze),mt=ot(t,ze);le.push(st),ce.push(mt),t.valueType==="text"?se.push(mt):t.valueType==="item"?se.push(ze):se.push(st)});let pe,ge,Te;ue(t.multiple)?(v.value=le,pe=l.toRaw(se),ge=ce,Te=l.toRaw(z)):(v.value=le[0]??"",pe=l.toRaw(se[0]??""),ge=ce[0]??"",Te=l.toRaw(z[0])),I&&(c("update:modelValue",pe),c("change",pe,Te)),c("update:text",ge)}},h=l.ref(null),D=l.ref(null),w=l.computed(()=>D.value??h.value??[]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,E=>ue(E)),L=hs(),B=async(E,K)=>{if(E){const X=await L.load("select",E,K);if(X.length>0)if(typeof X[0]=="string"){let Z=X.map(le=>ms(le));h.value=Z}else h.value=X;else h.value=null}};l.watch([()=>t.source,()=>t.params],([E,K])=>{D.value=null,B(E,K)},{immediate:!x.value});let q=!1;const P=()=>{q||(q=!0,B(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([E,K])=>{if(g()&&ue(t.multiple)){tt(K,v.value)||(v.value=K);return}f(K,t.valueType,w.value,!1),c("setValue",K)}),t.source||(v.value=t.modelValue);let k=null,b=l.ref(!1);typeof t.remoteMethod=="function"&&(k=async E=>{if(E==null){D.value=null;return}b.value=!0;try{const K=await t.remoteMethod(E);K&&(D.value=K)}catch(K){D.value=null,console.error(K)}b.value=!1});let j=null;typeof t.filterMethod=="function"&&(j=async E=>{if(E==null){D.value=null;return}b.value=!0;try{const K=await t.filterMethod(E,h.value);K&&(D.value=K)}catch(K){D.value=null,console.error(K)}b.value=!1});const g=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",R=l.ref(!1),G=e,O=l.computed(()=>({[G]:!0})),N=E=>{t.allowCreate||g()&&ue(t.multiple)?(c("update:modelValue",E),c("change",E),c("update:text",E),v.value=E):f(E,"value",w.value,!0)};let A=he(t,"hintText"),_=l.ref(!1);const Y=E=>{let X=E.target.value;R.value=!0,de(A.value)||(_.value=!0),c("focus",X,E)},J=E=>{setTimeout(()=>{_.value&&(_.value=!1),R.value=!1},0);let X=E.target.value;t.maxLength&&X.length>Number(t.maxLength)&&(X=X.slice(0,Number(t.maxLength))),H.value||c("blur",X,E)},M=()=>{c("clear","")},te=l.ref(!1);let $=null;const C=()=>{t.showTooltip&&te.value===!1&&($&&clearTimeout($),$=setTimeout(()=>{te.value=!0},150))},F=()=>{$&&(clearTimeout($),te.value=!1,$=null)},V=l.computed(()=>te.value||_.value),S=l.computed(()=>te.value?y.value:A.value),H=l.ref(!1),Q=E=>{H.value=E,c("visible-change",E),E||c("selected")},ne=E=>{c("remove-tag",E)},U=(E,K)=>{const X=[];return E.forEach((I,z)=>{const Z=ta(t,I);if(Array.isArray(Z)&&Z.length>0){const le=U(Z,K),se=ot(t,I),pe={key:`${se}_${z}`,label:se};X.push(l.h(T.ElOptionGroup,pe,{default:()=>le}))}else{const le=Dt(t,I),se=ot(t,I),ce=fs(t,I),ge={key:`${le}_${z}`,label:se,disabled:ce,value:le};if(typeof K=="function")X.push(l.h(T.ElOption,ge,{default:()=>K(I)}));else if(t.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},ze=l.h("span",Te,[le]),st={class:{"fox-select-item__option-right":!0}},mt=l.h("span",st,[se]),Dn=l.h("div",{class:{"fox-select-item__option":!0}},[ze,mt]);X.push(l.h(T.ElOption,ge,{default:()=>Dn}))}else t.optionType==="value"?X.push(l.h(T.ElOption,ge,{default:()=>[le]})):X.push(l.h(T.ElOption,ge))}}),X},W=l.ref();return Se({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const K={...Ze(r.attrs),ref:W,class:O.value,clearable:t.clearable,multiple:t.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:v.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:M,onChange:N,onFocus:Y,onBlur:J,onVisibleChange:Q,onRemoveTag:ne};typeof k=="function"&&(K["remote-method"]=k,K.loading=b.value),typeof j=="function"&&(K["filter-method"]=j,K.loading=b.value);const X={};r.slots.prefix&&(X.prefix=r.slots.prefix),r.slots.empty&&(X.empty=r.slots.empty),r.slots.options?X.default=r.slots.options:X.default=()=>U(w.value,r.slots.option);const I=[],z=l.h(T.ElSelect,K,X);I.push(z);const Z={default:()=>I};Z.label=r.slots.default,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const se={...Oe(t,bo),hintText:S.value,hintVisible:V.value,onMouseover:C,onMouseleave:F};return t.prop&&(se.prop=`${t.prop}_item`),x.value&&(se["appear-listen"]=!0,se.onAppear=P),l.h(o,se,Z)}}}}const{componentName:vs,create:ps,scope:ys}=ae("select-item"),Nl=ps(gs(vs,ys,Ne));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt={exports:{}},bs=Wt.exports,xo;function xs(){return xo||(xo=1,function(e,n){(function(o,t){e.exports=t()})(bs,function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",v="quarter",p="year",y="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+)?$/,D=/\[([^\]]+)]|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,w={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(O){var N=["th","st","nd","rd"],A=O%100;return"["+O+(N[(A-20)%10]||N[A]||N[0])+"]"}},x=function(O,N,A){var _=String(O);return!_||_.length>=N?O:""+Array(N+1-_.length).join(A)+O},L={s:x,z:function(O){var N=-O.utcOffset(),A=Math.abs(N),_=Math.floor(A/60),Y=A%60;return(N<=0?"+":"-")+x(_,2,"0")+":"+x(Y,2,"0")},m:function O(N,A){if(N.date()<A.date())return-O(A,N);var _=12*(A.year()-N.year())+(A.month()-N.month()),Y=N.clone().add(_,m),J=A-Y<0,M=N.clone().add(_+(J?-1:1),m);return+(-(_+(A-Y)/(J?Y-M:M-Y))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:m,y:p,w:d,d:c,D:y,h:s,m:u,s:i,ms:a,Q:v}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},B="en",q={};q[B]=w;var P="$isDayjsObject",k=function(O){return O instanceof R||!(!O||!O[P])},b=function O(N,A,_){var Y;if(!N)return B;if(typeof N=="string"){var J=N.toLowerCase();q[J]&&(Y=J),A&&(q[J]=A,Y=J);var M=N.split("-");if(!Y&&M.length>1)return O(M[0])}else{var te=N.name;q[te]=N,Y=te}return!_&&Y&&(B=Y),Y||!_&&B},j=function(O,N){if(k(O))return O.clone();var A=typeof N=="object"?N:{};return A.date=O,A.args=arguments,new R(A)},g=L;g.l=b,g.i=k,g.w=function(O,N){return j(O,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var R=function(){function O(A){this.$L=b(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[P]=!0}var N=O.prototype;return N.parse=function(A){this.$d=function(_){var Y=_.date,J=_.utc;if(Y===null)return new Date(NaN);if(g.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var M=Y.match(h);if(M){var te=M[2]-1||0,$=(M[7]||"0").substring(0,3);return J?new Date(Date.UTC(M[1],te,M[3]||1,M[4]||0,M[5]||0,M[6]||0,$)):new Date(M[1],te,M[3]||1,M[4]||0,M[5]||0,M[6]||0,$)}}return new Date(Y)}(A),this.init()},N.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},N.$utils=function(){return g},N.isValid=function(){return this.$d.toString()!==f},N.isSame=function(A,_){var Y=j(A);return this.startOf(_)<=Y&&Y<=this.endOf(_)},N.isAfter=function(A,_){return j(A)<this.startOf(_)},N.isBefore=function(A,_){return this.endOf(_)<j(A)},N.$g=function(A,_,Y){return g.u(A)?this[_]:this.set(Y,A)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(A,_){var Y=this,J=!!g.u(_)||_,M=g.p(A),te=function(ne,U){var W=g.w(Y.$u?Date.UTC(Y.$y,U,ne):new Date(Y.$y,U,ne),Y);return J?W:W.endOf(c)},$=function(ne,U){return g.w(Y.toDate()[ne].apply(Y.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(U)),Y)},C=this.$W,F=this.$M,V=this.$D,S="set"+(this.$u?"UTC":"");switch(M){case p:return J?te(1,0):te(31,11);case m:return J?te(1,F):te(0,F+1);case d:var H=this.$locale().weekStart||0,Q=(C<H?C+7:C)-H;return te(J?V-Q:V+(6-Q),F);case c:case y:return $(S+"Hours",0);case s:return $(S+"Minutes",1);case u:return $(S+"Seconds",2);case i:return $(S+"Milliseconds",3);default:return this.clone()}},N.endOf=function(A){return this.startOf(A,!1)},N.$set=function(A,_){var Y,J=g.p(A),M="set"+(this.$u?"UTC":""),te=(Y={},Y[c]=M+"Date",Y[y]=M+"Date",Y[m]=M+"Month",Y[p]=M+"FullYear",Y[s]=M+"Hours",Y[u]=M+"Minutes",Y[i]=M+"Seconds",Y[a]=M+"Milliseconds",Y)[J],$=J===c?this.$D+(_-this.$W):_;if(J===m||J===p){var C=this.clone().set(y,1);C.$d[te]($),C.init(),this.$d=C.set(y,Math.min(this.$D,C.daysInMonth())).$d}else te&&this.$d[te]($);return this.init(),this},N.set=function(A,_){return this.clone().$set(A,_)},N.get=function(A){return this[g.p(A)]()},N.add=function(A,_){var Y,J=this;A=Number(A);var M=g.p(_),te=function(F){var V=j(J);return g.w(V.date(V.date()+Math.round(F*A)),J)};if(M===m)return this.set(m,this.$M+A);if(M===p)return this.set(p,this.$y+A);if(M===c)return te(1);if(M===d)return te(7);var $=(Y={},Y[u]=t,Y[s]=r,Y[i]=o,Y)[M]||1,C=this.$d.getTime()+A*$;return g.w(C,this)},N.subtract=function(A,_){return this.add(-1*A,_)},N.format=function(A){var _=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var J=A||"YYYY-MM-DDTHH:mm:ssZ",M=g.z(this),te=this.$H,$=this.$m,C=this.$M,F=Y.weekdays,V=Y.months,S=Y.meridiem,H=function(U,W,E,K){return U&&(U[W]||U(_,J))||E[W].slice(0,K)},Q=function(U){return g.s(te%12||12,U,"0")},ne=S||function(U,W,E){var K=U<12?"AM":"PM";return E?K.toLowerCase():K};return J.replace(D,function(U,W){return W||function(E){switch(E){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(Y.monthsShort,C,V,3);case"MMMM":return H(V,C);case"D":return _.$D;case"DD":return g.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return H(Y.weekdaysMin,_.$W,F,2);case"ddd":return H(Y.weekdaysShort,_.$W,F,3);case"dddd":return F[_.$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 M}return null}(U)||M.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(A,_,Y){var J,M=this,te=g.p(_),$=j(A),C=($.utcOffset()-this.utcOffset())*t,F=this-$,V=function(){return g.m(M,$)};switch(te){case p:J=V()/12;break;case m:J=V();break;case v:J=V()/3;break;case d:J=(F-C)/6048e5;break;case c:J=(F-C)/864e5;break;case s:J=F/r;break;case u:J=F/t;break;case i:J=F/o;break;default:J=F}return Y?J:g.a(J)},N.daysInMonth=function(){return this.endOf(m).$D},N.$locale=function(){return q[this.$L]},N.locale=function(A,_){if(!A)return this.$L;var Y=this.clone(),J=b(A,_,!0);return J&&(Y.$L=J),Y},N.clone=function(){return g.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},O}(),G=R.prototype;return j.prototype=G,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",p],["$D",y]].forEach(function(O){G[O[1]]=function(N){return this.$g(N,O[0],O[1])}}),j.extend=function(O,N){return O.$i||(O(N,R,j),O.$i=!0),j},j.locale=b,j.isDayjs=k,j.unix=function(O){return j(1e3*O)},j.en=q[B],j.Ls=q,j.p={},j})}(Wt)),Wt.exports}var ws=xs();const Je=nt(ws);var Yt={exports:{}},Ss=Yt.exports,wo;function Ts(){return wo||(wo=1,function(e,n){(function(o,t){e.exports=t()})(Ss,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"},t=/(\[[^[]*\])|([-_:/.,()\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 D=h.match(/([+-]|\d\d)/g),w=60*D[1]+(+D[2]||0);return w===0?0:D[0]==="+"?-w:w}(f)}],m=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},v=function(f,h){var D,w=u.meridiem;if(w){for(var x=1;x<=24;x+=1)if(f.indexOf(w(x,0,h))>-1){D=x>12;break}}else D=f===(h?"pm":"PM");return D},p={A:[i,function(f){this.afternoon=v(f,!1)}],a:[i,function(f){this.afternoon=v(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,D=f.match(/\d+/);if(this.day=D[0],h)for(var w=1;w<=31;w+=1)h(w).replace(/\[|\]/g,"")===f&&(this.day=w)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=m("months"),D=(m("monthsShort")||h.map(function(w){return w.slice(0,3)})).indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],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 y(f){var h,D;h=f,D=u&&u.formats;for(var w=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,j,g){var R=g&&g.toUpperCase();return j||D[g]||o[g]||D[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,O,N){return O||N.slice(1)})})).match(t),x=w.length,L=0;L<x;L+=1){var B=w[L],q=p[B],P=q&&q[0],k=q&&q[1];w[L]=k?{regex:P,parser:k}:B.replace(/^\[|\]$/g,"")}return function(b){for(var j={},g=0,R=0;g<x;g+=1){var G=w[g];if(typeof G=="string")R+=G.length;else{var O=G.regex,N=G.parser,A=b.slice(R),_=O.exec(A)[0];N.call(j,_),b=b.replace(_,"")}}return function(Y){var J=Y.afternoon;if(J!==void 0){var M=Y.hours;J?M<12&&(Y.hours+=12):M===12&&(Y.hours=0),delete Y.afternoon}}(j),j}}return function(f,h,D){D.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var w=h.prototype,x=w.parse;w.parse=function(L){var B=L.date,q=L.utc,P=L.args;this.$u=q;var k=P[1];if(typeof k=="string"){var b=P[2]===!0,j=P[3]===!0,g=b||j,R=P[2];j&&(R=P[2]),u=this.$locale(),!b&&R&&(u=D.Ls[R]),this.$d=function(A,_,Y){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*A);var J=y(_)(A),M=J.year,te=J.month,$=J.day,C=J.hours,F=J.minutes,V=J.seconds,S=J.milliseconds,H=J.zone,Q=new Date,ne=$||(M||te?1:Q.getDate()),U=M||Q.getFullYear(),W=0;M&&!te||(W=te>0?te-1:Q.getMonth());var E=C||0,K=F||0,X=V||0,I=S||0;return H?new Date(Date.UTC(U,W,ne,E,K,X,I+60*H.offset*1e3)):Y?new Date(Date.UTC(U,W,ne,E,K,X,I)):new Date(U,W,ne,E,K,X,I)}catch{return new Date("")}}(B,k,q),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),g&&B!=this.format(k)&&(this.$d=new Date("")),u={}}else if(k instanceof Array)for(var G=k.length,O=1;O<=G;O+=1){P[1]=k[O-1];var N=D.apply(this,P);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}O===G&&(this.$d=new Date(""))}else x.call(this,L)}}})}(Yt)),Yt.exports}var Cs=Ts();const $s=nt(Cs);var Ut={exports:{}},Ns=Ut.exports,So;function Es(){return So||(So=1,function(e,n){(function(o,t){e.exports=t()})(Ns,function(){return function(o,t){var r=t.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}});return a.bind(this)(d)}}})}(Ut)),Ut.exports}var ks=Es();const Ps=nt(ks);var Gt={exports:{}},Is=Gt.exports,To;function Os(){return To||(To=1,function(e,n){(function(o,t){e.exports=t()})(Is,function(){return function(o,t,r){var a=t.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,v,p,y,f){var h=m.name?m:m.$locale(),D=i(h[v]),w=i(h[p]),x=D||w.map(function(B){return B.slice(0,y)});if(!f)return x;var L=h.weekStart;return x.map(function(B,q){return x[(q+(L||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(m,v){return m.formats[v]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,f,h){return f||h.slice(1)})}(m.formats[v.toUpperCase()])},d=function(){var m=this;return{months:function(v){return v?v.format("MMMM"):u(m,"months")},monthsShort:function(v){return v?v.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(m,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(m.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return c(m,v)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}})}(Gt)),Gt.exports}var Vs=Os();const Ds=nt(Vs);var Xt={exports:{}},Rs=Xt.exports,Co;function Fs(){return Co||(Co=1,function(e,n){(function(o,t){e.exports=t()})(Rs,function(){var o="week",t="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(t).add(1,t).date(c),m=i(this).endOf(o);if(d.isBefore(m))return 1}var v=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),p=this.diff(v,o,!0);return p<0?i(this).startOf("week").week():Math.ceil(p)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(Xt)),Xt.exports}var As=Fs();const Ms=nt(As);var Zt={exports:{}},Ls=Zt.exports,$o;function Bs(){return $o||($o=1,function(e,n){(function(o,t){e.exports=t()})(Ls,function(){return function(o,t){t.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})}(Zt)),Zt.exports}var qs=Bs();const _s=nt(qs);var Qt={exports:{}},js=Qt.exports,No;function zs(){return No||(No=1,function(e,n){(function(o,t){e.exports=t()})(js,function(){return function(o,t,r){t.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")}}})}(Qt)),Qt.exports}var Hs=zs();const Ks=nt(Hs);var Jt={exports:{}},Ws=Jt.exports,Eo;function Ys(){return Eo||(Eo=1,function(e,n){(function(o,t){e.exports=t()})(Ws,function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Jt)),Jt.exports}var Us=Ys();const Gs=nt(Us);var en={exports:{}},Xs=en.exports,ko;function Zs(){return ko||(ko=1,function(e,n){(function(o,t){e.exports=t()})(Xs,function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}(en)),en.exports}var Qs=Zs();const Js=nt(Qs);Je.extend(Ds);Je.extend(Ps);Je.extend($s);Je.extend(Ms);Je.extend(_s);Je.extend(Ks);Je.extend(Gs);Je.extend(Js);const Be={format(e,n){return Je(e).format(n)},parser(e,n){return Je(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,t,r].join(n)},getDay(e,n,o){e=e||0;let t=n??new Date;const r=e*(1e3*60*60*24);return t=new Date(t.getTime()+r),o=o??"YYYY-MM-DD",this.format(t,o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(o>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,o==t},getMonthWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-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 t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(t===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 n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const t=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Po={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"}},Io={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 eu(e,n,o){return{props:{...$e,...Ve,...Po,...Io},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=l.computed(()=>_.value&&Array.isArray(p.value)&&p.value.length==2?p.value[0]:p.value),f=l.computed(()=>_.value?"longTermKey":"normalKey"),h=W=>{if(_.value&&t.type==="daterange"){const E=[...p.value];E[0]=W,p.value=E}else p.value=W;c("update:modelValue",p.value),c("change",p.value)},D=l.computed(()=>_.value&&t.type==="daterange"?"date":t.type),w=e,x=l.computed(()=>({[`${w}`]:!0,"is-long":_.value,"is-readonly":s.value,"is-disabled":i.value}));let L=he(t,"hintText"),B=l.ref(!1);const q=W=>{let K=W.target.value;v.value=!0,de(L.value)||(B.value=!0),c("focus",K,W)},P=W=>{setTimeout(()=>{B.value&&(B.value=!1),v.value=!1},0);let K=W.target.value;t.maxLength&&K.length>Number(t.maxLength)&&(K=K.slice(0,Number(t.maxLength))),c("blur",K,W)},k=()=>{c("clear","")},b=W=>{c("calendar-change",W)},j=(W,E,K)=>{c("panel-change",W,E,K)},g=W=>{c("visible-change",W)},R=Fe(l.computed(()=>t.longTermText),"longTermText",qe.Near),G=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",qe.Near),O=Fe(l.computed(()=>t.longTermValue),"longTermValue",qe.Near),N=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",qe.Near);let A=null;const _=l.ref(ue(t.longTerm)),Y=W=>{if(_.value=W,c("update:longTerm",W),W){if(A=p.value,t.type==="daterange"){const E=[];Array.isArray(O.value)?(E[0]=p.value?p.value[0]??O.value[0]:null,E[1]=O.value[1]??O.value[0]):(E[0]=p.value?p.value[0]??O.value:null,E[1]=_.value),E[0]||(E[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),p.value=E}else Array.isArray(O.value)?p.value=O.value[1]??O.value[0]:p.value=O.value,p.value||(p.value=t.valueFormat?Be.format(new Date,t.valueFormat):new Date);c("update:modelValue",p.value)}else{if(t.type==="daterange"){const E=[];E[0]=Array.isArray(p.value)?p.value[0]:p.value,Array.isArray(A)?E[1]=A[1]:E[1]=A,E[0]||(E[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),p.value=E}else p.value=A;c("update:modelValue",p.value),setTimeout(()=>{ne()},100)}},J=ue(t.isLongTerm);if(J){const W=()=>{if(_.value===!0){if(A=p.value,t.type==="daterange"){const E=[p.value[0]];Array.isArray(O.value)?E[1]=O.value[1]??O.value[0]:E[1]=_.value,E[0]||(E[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),E[1]||(E[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),p.value=E}else p.value=O.value;c("update:modelValue",p.value)}else tt(O.value,p.value)&&(_.value=!0)};W(),l.watch([()=>t.longTerm],([E])=>{_.value!==E&&W()}),l.watch([()=>p.value],([E])=>{let K=!1;if(t.type==="daterange"&&Array.isArray(E))try{let X=E[1];if(!X)return;if(E[0]==null){c("update:modelValue",[]);return}typeof X!="string"&&t.valueFormat&&(X=Be.format(X,t.valueFormat));let I=Array.isArray(O.value)?O.value[1]:O.value;(X===I||Array.isArray(N.value)&&N.value.findIndex(Z=>X==Z)!==-1)&&(K=!0)}catch(X){console.error(X)}_.value!==K&&(_.value=K)},{immediate:!0})}const M=l.computed(()=>({"fox-date-item__long":!0,"is-active":v.value})),te=l.ref(),$=l.ref(),C=/^\d+$/,F=(W,E)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(W,E):C.test(W)&&W.length===t.flashFillThreshold,V=(W,E)=>{let K;if(typeof t.flashFillFormat=="function")K=t.flashFillFormat(W,E);else{const I=t.flashFillFormat??"YYYYMMDD";K=Be.parser(W,I)}const X=t.valueFormat??"YYYY-MM-DD";return Be.format(K,X)},S=W=>W?W.endsWith("range"):!1,H=W=>{if(!W.target)return;const E=W.target.value??"";if(F(E,t.type)){const K=V(E,t.type);if(S(t.type)){const X=Array.isArray(p.value)?[...p.value]:[];X[0]=K,h(X)}else h(K)}},Q=W=>{if(!W.target)return;const E=W.target.value??"";if(F(E,t.type)){const K=V(E,t.type);if(S(t.type)){const X=Array.isArray(p.value)?[...p.value]:[];X[1]=K,h(X)}else h(K)}},ne=()=>{if(t.flashFill&&te.value&&te.value.$el)if(S(t.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",H),W[1]&&W[1].addEventListener("input",Q)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",H)}},U=()=>{if(t.flashFill&&te.value&&te.value.$el)if(S(t.type)){const W=te.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",H),W[1]&&W[1].removeEventListener("input",Q)}else{const W=te.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",H)}};return l.onMounted(ne),l.onBeforeUnmount(U),Se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const E={...r.attrs,key:f.value,type:D.value,ref:$,class:x.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":h,onClear:k,onFocus:q,onBlur:P,onCalendarChange:b,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=[],I=l.h(T.ElDatePicker,E,K);X.push(I);const z={default:()=>X};if(z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip,J){if(_.value){const ce=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),pe=l.h("input",{class:["fox-date-item__long-text"],value:R.value,readonly:!0}),ge={class:M.value},Te=l.h("div",ge,{default:()=>[ce,pe]});X.push(Te)}if(!s.value&&!i.value){const ce={label:G.value||R.value,disabled:s.value||i.value,modelValue:_.value,"onUpdate:modelValue":Y},pe=l.h(T.ElCheckbox,ce),ge=l.h("div",{class:{[`${w}__append`]:!0}},[pe]);z.append=()=>ge}}const le={...Oe(t,Po,Io),ref:te,class:{[`${w}__wrapper`]:!0,"has-append":J},hintText:L.value,hintVisible:B.value};return t.prop&&(le.prop=`${t.prop}_item`),l.h(o,le,z)}}}}const{componentName:tu,create:nu,scope:lu}=ae("date-item"),El=nu(eu(tu,lu,Ne)),Oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ou(e,n,o){return{props:{...$e,...Ve,...Oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0})),h=k=>{p.value=k,c("update:modelValue",k),c("change",k)};let D=he(t,"hintText"),w=l.ref(!1);const x=k=>{let j=k.target.value;v.value=!0,de(D.value)||(w.value=!0),c("focus",j,k)},L=k=>{setTimeout(()=>{w.value&&(w.value=!1),v.value=!1},0);let j=k.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,k)},B=()=>{c("clear","")},q=k=>{c("visible-change",k)},P=l.ref();return Se({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const b={...r.attrs,ref:P,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,"onUpdate:modelValue":h,onClear:B,onFocus:x,onBlur:L,onVisibleChange:q},j={},g=[],R=l.h(T.ElTimePicker,b,j);g.push(R);const G={default:()=>g};G.label=r.slots.default,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const N={...Oe(t,Oo),hintText:D.value,hintVisible:w.value};return t.prop&&(N.prop=`${t.prop}_item`),l.h(o,N,G)}}}}const{componentName:ru,create:au,scope:iu}=ae("time-item"),kl=au(ou(ru,iu,Ne)),Vo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function su(e,n,o){return{props:{...$e,...Ve,...Vo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0})),h=P=>{p.value=P,c("update:modelValue",P),c("change",P)};let D=he(t,"hintText"),w=l.ref(!1);const x=P=>{let b=P.target.value;v.value=!0,de(D.value)||(w.value=!0),c("focus",b,P)},L=P=>{setTimeout(()=>{w.value&&(w.value=!1),v.value=!1},0);let b=P.target.value;t.maxLength&&b.length>Number(t.maxLength)&&(b=b.slice(0,Number(t.maxLength))),c("blur",b,P)},B=()=>{c("clear","")},q=l.ref();return Se({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()},setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const k={...r.attrs,ref:q,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,"onUpdate:modelValue":h,onClear:B,onFocus:x,onBlur:L},b={},j=[],g=l.h(T.ElTimeSelect,k,b);j.push(g);const R={default:()=>j};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const O={...Oe(t,Vo),hintText:D.value,hintVisible:w.value};return t.prop&&(O.prop=`${t.prop}_item`),l.h(o,O,R)}}}}const{componentName:uu,create:cu,scope:fu}=ae("time-select-item"),Pl=cu(su(uu,fu,Ne));function Do(e,n=0){let o=`${e}`,t=o.indexOf(".");if(t==-1)return o;let r=t;for(let a=o.length-1;a>=t;a--)if(o.charAt(a)!="0"){r=a;break}return r-t<n?r=t+n+1:r!=t&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Ro(e,n,o=20){if(typeof n=="string"&&(n=Ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=xr(`${e}`,`${n}`);return Do(t)}else{let t=dl(`${e}`,wr(`${n}`),20);return Do(t)}}function du(e,n=-1,o=!1,t=3,r=","){return un(e,n,o,t,r)}function Fo(e,n,o,t,r=!0){if(e==="")return"";if(e=Sr(e),n=Ce(n),n==1)return e;if(t)e=Ro(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Ce(o)+2,"0"):e=dl(e,1,Ce(o)));else{let a=-1*n;e=Ro(e,a)}return e}function Ao(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ue(n.minInclude),r=Qn(e,n.min);if(t&&r==-1||!t&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let t=ue(n.maxInclude),r=Qn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Mo={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 hu(e,n,o){return{props:{...$e,...Ve,...Mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=l.ref(!1),m=he(t,"modelValue",null,c),v=l.ref("");l.watch([()=>m.value,()=>t.rates,()=>t.precision],([N,A,_])=>{if(de(N)){v.value="";return}const Y=Fo(N,A,_,!1);v.value!==Y&&(v.value=Y)},{immediate:!0});const p=l.computed(()=>{let N="";return d.value&&(N=v.value),N}),{t:y}=je.useFoxI18n(n),f=l.computed(()=>{let N=t.placeholder??"";return!d.value&&!de(v.value)?N=du(v.value,t.decimalLength,t.autoPadding,t.digits,t.separator):N=y(["placeholder",N]),N}),h=e,D=l.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:v.value.length>0})),w=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>d.value?{textAlign:"left"}:{textAlign:w.value??"right"});const x=l.ref(""),L=l.computed(()=>{let N=x.value;return de(N)&&(N=t.errorTip??""),N}),B=l.ref(""),q=l.ref(!1),P=(N,A)=>{if(N=`${N}`,de(N)){v.value="",m.value="",A.forEach(_=>{c(_,"")}),ue(t.showTip)&&q.value&&(q.value=!1);return}if(N.length>=2){let _=N;if(_.charAt(0)=="-"&&(_=_.substring(1)),_.length>=2&&_.charAt(0)=="0"&&_.charAt(1)!="."){l.triggerRef(v);return}}if(N!="-"){if(!Or(N)){l.triggerRef(v);return}if(t.integerLength!=-1&&Vr(N)>Number(t.integerLength)){l.triggerRef(v);return}if(t.decimalLength&&t.decimalLength!=-1&&Dr(N)>Number(t.decimalLength)){l.triggerRef(v);return}let _=Ao(N,t);if(_.maxValid===!1){x.value=_.message,l.triggerRef(v);return}}else if(t.min!=null&&Ce(t.min)>=0){l.triggerRef(v);return}B.value=N,ue(t.showTip)&&(q.value=N.length>0),v.value=N,m.value=Fo(N,t.rates,t.precision,!0),A.forEach(_=>{c(_,m.value)})},k=N=>{P(N,["update:modelValue","input"])},b=N=>{P(N,["update:modelValue","change"])},j=N=>{if(d.value=!0,ue(t.showTip)){let A=v.value;de(A)&&(A=t.hintText),de(A)||(B.value=A,q.value=!0)}x.value="",c("focus",m.value,N)},g=N=>{if(setTimeout(()=>{d.value=!1,ue(t.showTip)&&q.value===!0&&(q.value=!1)},0),!de(v.value)){let A=Ao(v.value,t);if(A.minValid===!1||A.maxValid===!1){x.value=A.message;return}}c("update:modelValue",m.value,N),c("blur",m.value,N)},R=()=>{c("clear","")},G=l.computed(()=>At(t.unit)>0),O=l.ref();return Se({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const A={...Ze(r.attrs),ref:O,class:D.value,type:"digit",maxlength:t.maxLength,placeholder:f.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:R,onInput:k,onChange:b,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:G.value&&(_.suffix=()=>[t.unit]);const Y=[],J=l.h(T.ElInput,A,_);Y.push(J);const M={default:()=>Y};M.label=r.slots.default,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const $={...Oe(t,Mo),errorTip:L.value,hintText:B.value,hintVisible:q.value,hintType:"number"};return t.prop&&($.prop=`${t.prop}_item`),l.h(o,$,M)}}}}const{componentName:mu,create:gu,scope:vu}=ae("money-item"),Il=gu(hu(mu,vu,Ne)),Lo={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 pu(e,n,o){return{props:{...$e,...Ve,...Lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0,[`${y}__append`]:k.value})),h=l.computed(()=>({[`${y}__unit`]:!0})),D=j=>{p.value=j,c("update:modelValue",j),c("input",j)},w=j=>{c("change",j)};let x=he(t,"hintText"),L=l.ref(!1);const B=j=>{let R=j.target.value;v.value=!0,de(x.value)||(L.value=!0),c("focus",R,j)},q=j=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let R=j.target.value;t.maxLength&&R.length>Number(t.maxLength)&&(R=R.slice(0,Number(t.maxLength))),c("blur",R,j)},P=()=>{c("clear","")},k=l.computed(()=>At(t.unit)>0),b=l.ref();return Se({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},setDisabled:j=>{a.value=j},setReadonly:j=>{u.value=j}}),()=>{const g={...Ze(r.attrs),ref:b,class:f.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:P,onChange:w,onInput:D,onFocus:B,onBlur:q},R={},G=[],O=l.h(T.ElInputNumber,g,R);G.push(O);const N={default:()=>G};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const _={...Oe(t,Lo),hintText:x.value,hintVisible:L.value};if(t.prop&&(_.prop=`${t.prop}_item`),r.slots.append)N.append=r.slots.append;else if(k.value){const J={class:h.value},M=l.h("div",J,[t.unit]);N.append=()=>M}return l.h(o,_,N)}}}}const{componentName:yu,create:bu,scope:xu}=ae("input-number-item"),Ol=bu(pu(yu,xu,Ne));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function wu(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Su=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const a=_e(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Tu(){const e=l.getCurrentInstance();return new Su(e.proxy)}function sl(e,n,o){const t=et(e,n),r=et(e,o);if(t!==r)return!1;const a=dt(e,n),i=dt(e,o);return a===i}function oa(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=t;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=oa(e,u,o,t);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=et(e,c)===u;else if(o==="item")s=sl(e,c,u);else{let d=dt(e,c);d==null&&(d=et(e,c)),s=d===u}if(s){r.push(c),a=wu(e,c);break}}if(!s)break}}return r}function Cu(e){return{text:e,value:e}}const Bo={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 $u(e,n,o){return{props:{...$e,...Ve,...Bo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(null),p=l.ref([]),y=l.computed(()=>p.value?p.value.map(W=>Array.isArray(W)?W.map(K=>et(t,K)).join(" "):et(t,W)).join(" "):""),f=(U,W,E,K=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(v.value===U)return;v.value=U;const Z=l.toRaw(U);if(K){const le=ne?.value.getCheckedNodes();if(le)if(t.multiple){const se=[];le.forEach(ce=>{const ge=(ce.pathNodes??[]).map(Te=>Te.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",Z),c("change",Z)}return}const X=oa(t,U,W,E);if(X===null){if(p.value.length===0||p.value===null)return;p.value=[],v.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const I=X[X.length-1];if(R.value.checkStrictly!==!0&&I&&!Array.isArray(I)&&Array.isArray(I.children)&&I.children.length>0){const Z=[];X.forEach(le=>{const se=`${et(t,le)}`;Z.push(se)}),Z.length>0&&(j.value=Z.join(t.separator))}else j.value=null;let z=!0;if(X.length!==p.value.length)z=!1;else for(let Z=0;Z<X.length;Z++){const le=X[Z],se=p.value[Z];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)z=!1;else for(let ce=0;ce<le.length;ce++)if(!sl(t,le[ce],se[ce])){z=!1;break}}else sl(t,le,se)||(z=!1);if(!z)break}if(!z){p.value=X;let Z=[],le=[];X.forEach(ce=>{if(Array.isArray(ce)){let pe=[],ge=[];for(let Te of ce)pe.push(dt(t,Te)),t.valueType==="text"?ge.push(et(t,Te)):t.valueType==="item"?ge.push(Te):ge.push(dt(t,Te));Z.push(pe),le.push(ge)}else Z.push(dt(t,ce)),t.valueType==="text"?le.push(et(t,ce)):t.valueType==="item"?le.push(ce):le.push(dt(t,ce))}),v.value=Z;const se=l.toRaw(le);K&&(c("update:pathNodes",X),c("update:modelValue",se),c("change",se))}},h=l.ref([]),D=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,U=>ue(U)),w=Tu(),x=async(U,W)=>{if(U){const E=await w.load("cascader",U,W);if(E.length>0)if(typeof E[0]=="string"){let I=E.map(z=>Cu(z));h.value=I}else h.value=E}};l.watch([()=>t.source,()=>t.params],async([U,W])=>{x(U,W)},{immediate:!(D.value||t.lazy)});let L=!1;const B=()=>{L||(L=!0,x(t.source,t.params))};l.watch([()=>h.value,()=>t.modelValue],([U,W])=>{f(W,t.valueType,U,!1),c("setValue",W)}),t.lazy&&f(t.modelValue,"value",[],!1);let q=null,P=l.ref(!1);typeof t.remoteMethod=="function"&&(q=async U=>{if(U!=null){P.value=!0;try{const W=await t.remoteMethod(U);h.value=W}catch(W){console.error(W)}P.value=!1}});const k=l.ref(!1),b=e,j=l.ref(null),g=l.computed(()=>({[b]:!0,"is-incomplete":j.value&&j.value.length>0})),R=l.computed(()=>{let U={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(U.multiple=!0),t.props&&Object.assign(U,t.props),t.lazy&&(U.lazy=!0,typeof t.lazyLoad=="function"?U.lazyLoad=t.lazyLoad:U.lazyLoad=async(W,E)=>{let K={};t.params&&Object.assign(K,t.params),W&&Object.assign(K,W);const X=await w.load("cascader",t.source,K,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===W.level){const I=W.pathLabels??[];let z=[];I.forEach(Z=>{Z&&z.push(Z)}),z.length>0&&(j.value=z.join(t.separator))}else j.value=null;E(X)}),U}),G=U=>{t.allowCreate?(c("update:modelValue",U),c("change",U),v.value=U):f(U,"value",h.value,!0)};let O=he(t,"hintText"),N=l.ref(!1);const A=U=>{let E=U.target.value;k.value=!0,de(O.value)||(N.value=!0),c("focus",E,U)},_=U=>{setTimeout(()=>{N.value&&(N.value=!1),k.value=!1},0);let E=U.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),V.value||c("blur",E,U)},Y=()=>{c("clear","")},J=l.ref(!1);let M=null;const te=()=>{t.showTooltip&&J.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{J.value=!0},150))},$=()=>{M&&(clearTimeout(M),J.value=!1,M=null)},C=l.computed(()=>J.value||N.value),F=l.computed(()=>J.value?y.value:O.value),V=l.ref(!1),S=U=>{V.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},Q=U=>{c("expand-change",U)},ne=l.ref();return Se({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const W={...r.attrs,ref:ne,class:g.value,props:R.value,clearable:t.clearable,placeholder:j.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:v.value,separator:t.separator,onClear:Y,onChange:G,onFocus:A,onBlur:_,onVisibleChange:S,onRemoveTag:H,expandChange:Q};typeof q=="function"&&(W["remote-method"]=q,W.loading=P.value);const E={};r.slots.option&&(E.default=r.slots.option),r.slots.empty&&(E.empty=r.slots.empty);const K=[],X=l.h(T.ElCascader,W,E);K.push(X);const I={default:()=>K};I.label=r.slots.default,I.fixedPreTip=r.slots.fixedPreTip,I.fixedTip=r.slots.fixedTip;const Z={...Oe(t,Bo),hintText:F.value,hintVisible:C.value,onMouseover:te,onMouseleave:$};return t.prop&&(Z.prop=`${t.prop}_item`),D.value&&!t.lazy&&(Z["appear-listen"]=!0,Z.onAppear=B),l.h(o,Z,I)}}}}const{componentName:Nu,create:Eu,scope:ku}=ae("cascader-item"),Vl=Eu($u(Nu,ku,Ne)),qo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Pu(e,n,o){return{props:{...$e,...Ve,...qo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:d}=je.useFoxI18n(n),m=d(t,["placeholder"]),v=l.ref(!1),p=he(t,"modelValue",null,c),y=e,f=l.computed(()=>({[y]:!0})),h=b=>{p.value=b,c("update:modelValue",b),c("input",b)},D=b=>{c("change",b)},w=b=>{c("select",b)};let x=he(t,"hintText"),L=l.ref(!1);const B=b=>{let g=b.target.value;v.value=!0,de(x.value)||(L.value=!0),c("focus",g,b)},q=b=>{setTimeout(()=>{L.value&&(L.value=!1),v.value=!1},0);let g=b.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),c("blur",g,b)},P=()=>{c("clear","")},k=l.ref();return Se({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},setDisabled:b=>{a.value=b},setReadonly:b=>{u.value=b}}),()=>{const j={...r.attrs,ref:k,class:f.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:p.value,onClear:P,onChange:D,onInput:h,onFocus:B,onBlur:q,onSelect:w},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 R=[],G=l.h(T.ElAutocomplete,j,g);R.push(G);const O={default:()=>R};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const A={...Oe(t,qo),hintText:x.value,hintVisible:L.value};return t.prop&&(A.prop=`${t.prop}_item`),l.h(o,A,O)}}}}const{componentName:Iu,create:Ou,scope:Vu}=ae("autocomplete-item"),Dl=Ou(Pu(Iu,Vu,Ne));function Du(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(v=>v[t]===d);if(!m)break;i.push(m[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],d=a[s];const m=c.find(v=>v[t]===d);if(!m)break;i.push(m[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(v=>v[t]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let Ru=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Fu(){const e=l.getCurrentInstance();return new Ru(e.proxy)}const ra={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 Au(e,n){return{props:{...ra},setup(o,{attrs:t,slots:r}){const a=Fu(),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=Du(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={...t};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",{...t,class:o.emptyClass},u.value):l.h(s,c,{default:()=>u.value}):l.h(s,c,u.value)}}}}const{create:Mu}=ae("mapping"),Rt=Mu(Au());function Lu(e,n){let o=n.split("."),t=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);t=t[m][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function Bu(e,n){return{props:{...ra},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const u=Lu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:u},{default:r.default}):l.h(Rt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(T.ElTableColumn,{...t},a)}}}}const{create:qu}=ae("table-mapping-column"),Rl=qu(Bu()),_u=Symbol.for("TableStateKey");function _o(e,n){let o=n.split("."),t=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);t=t[m][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function ju(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(_u,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=_o(u.row,u.column.property),c=a?_o(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},v=l.h("span",m,[l.h("span",{class:{"el-radio__inner":!0}})]),p={class:{"el-radio":!0,"is-checked":d}};return l.h("label",p,[v])}};return l.h(T.ElTableColumn,{...t},i)}}}}const{create:zu}=ae("table-radio-column"),Fl=zu(ju()),Hu={},Ku={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 Wu(e,n){return l.openBlock(),l.createElementBlock("svg",Ku,n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const Yu=Xe(Hu,[["render",Wu]]),{create:Uu}=ae("table-setting"),Gu={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:"不固定"}},Xu=Uu({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:Yu,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Gu},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),i=l.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),u=l.computed(()=>r.value.filter(S=>!(S.label===""||S.type||S.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=S=>S.length>1,v=(S,H)=>{Array.isArray(S)&&Array.isArray(H)&&S.forEach(U=>{H.some(W=>W.prop===U.prop?(U.label=W.label,!0):!1)});const Q=[];r.value=S.map((U,W)=>(!(U.label===""||U.type)&&U.visible!==!1&&Q.push(U.prop),{...U,sortIndex:W})),u.value.length+a.value.length+i.value.length===Q.length?w.value=!0:Q.length>0&&(x.value=!0),q.value=Q},p=S=>S?S.type?S.type:S.label?S.prop:"":"",y=(S,H)=>{if(S.length!==H.length)return!1;const Q=S.map(ne=>p(ne));for(let ne of H){const U=p(ne);if(Q.indexOf(U)===-1)return!1}return!0},f=S=>{if(!S){const H=e.tableRef.getColumnSetting(),Q=H.srcColumnPropertyList;t=Q.map((ne,U)=>({...ne,sortIndex:U})),S=H.columnPropertyList,S&&S.length>0&&y(Q,S)||(S=Q)}v(S,t)},h=()=>{e.tableRef.setColumnSetting(r.value)},D=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),x=l.ref(!1),L=S=>{const H=[];r.value.forEach(ne=>{S&&!(ne.label===""||ne.type)&&H.push(ne.prop),ne.visible=S}),w.value=!1,x.value=!1,u.value.length+a.value.length+i.value.length===H.length?w.value=!0:H.length>0&&(x.value=!0),q.value=H,h()},B=()=>{f(t),h()},q=l.ref([]),P=S=>{r.value.forEach(Q=>{if(Q.label===""||Q.type)return;const ne=S.indexOf(Q.prop)!==-1;Q.visible=ne}),w.value=!1,x.value=!1;const H=u.value.length+a.value.length+i.value.length;S.length===H?w.value=!0:S.length>0&&(x.value=!0),h()},k=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const b={currentRow:null,index:null,roleType:null},j=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,j(S)):null:null,g=S=>{const H=S.currentTarget;H&&H.dataset&&(b.roleType=H.dataset.roleType,b.index=H.dataset.index)},R=S=>{b.currentRow&&(b.currentRow.classList.remove("is-dragover"),b.currentRow=null),b.index=null,b.roleType=null},G=S=>{const H=S.currentTarget;S.relatedTarget;const Q=j(H);if(!Q)return;const ne=Q.dataset&&Q.dataset.roleType;b.roleType===ne&&(S.preventDefault(),b.currentRow&&b.currentRow!==Q&&b.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),b.currentRow=Q)},O=S=>{S.preventDefault(),b.currentRow&&(b.currentRow.classList.remove("is-dragover"),b.currentRow=null)},N=S=>{const H=S.currentTarget,Q=j(H);if(!Q)return;const ne=Q.dataset&&Q.dataset.roleType;if(b.roleType!==ne)return;S.preventDefault();const U=Number(b.index),W=Number(Q.dataset.index);if(U!==W){if(U<W){const E=r.value[U];r.value.splice(U,1),r.value.splice(W,0,E)}else{const E=r.value[U];r.value.splice(U,1),r.value.splice(W+1,0,E)}v(r.value,t),h()}},A=S=>{const H=r.value[S];H.fixed="left",h()},_=S=>{const H=r.value[S];H.fixed="right",h()},Y=S=>{const H=r.value[S];H.fixed=void 0,h()},J=new Map;let M=null;function te(S){const H=document.createRange();return H.setStart(S,0),H.setEnd(S,S.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:w,isIndeterminate:x,handleCheckAllChange:L,handleReset:B,checkedValue:q,handleCheckChange:P,onShow:k,onDragStart:g,onDragEnd:R,onDragOver:G,onDragLeave:O,onDrop:N,toLeftFixed:A,toRightFixed:_,toUnFixed:Y,checkboxLabelStyle:D,onMouseOverForOverflowText:(S,H,Q)=>{const ne=S.currentTarget;if(ne){const U=Math.floor(ne.offsetWidth);if(Math.floor(te(ne))>U){let E=J.get(H);if(E){if(E===M)return;Re.hide(E)}E=Re.show(ne,Q,{type:"text",placement:"top",closeOnClick:!1}),E&&(J.set(H,E),M=E)}}},onMouseLeaveForOverflowText:(S,H)=>{const Q=J.get(H);Q&&(Re.hide(Q),Q===M&&(M=null))},onMouseOverForTip:(S,H)=>{const Q=S.currentTarget;Q&&(M&&Re.hide(M),M=Re.show(Q,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:S=>{M&&(Re.hide(M),M=null)}}}}),Zu={class:"fox-table-setting"},Qu={class:"fox-table-setting__header"},Ju={class:"fox-table-setting__body"},ec={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},tc={key:0,class:"fox-table-setting__body-title"},nc=["data-index","draggable"],lc=["onMouseover","onMouseleave"],oc={class:"tools-item"},rc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ac={key:0,class:"fox-table-setting__body-title"},ic=["data-index","draggable"],sc=["onMouseover","onMouseleave"],uc={class:"tools-item"},cc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},fc={key:0,class:"fox-table-setting__body-title"},dc=["data-index","draggable"],hc=["onMouseover","onMouseleave"],mc={class:"tools-item"};function gc(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),d=l.resolveComponent("FoxIcon"),m=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),p=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,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",Zu,[l.createElementVNode("div",Qu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Ju,[l.createVNode(p,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",ec,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",tc,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,lc)]),_:2},1032,["value"]),l.createElementVNode("div",oc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,nc))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",rc,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",ac,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,sc)]),_:2},1032,["value"]),l.createElementVNode("div",uc,[l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,ic))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",cc,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",fc,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,hc)]),_:2},1032,["label"]),l.createElementVNode("div",mc,[l.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(m)]),_:2},1032,["onClick"])])],40,dc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const kn=Xe(Xu,[["render",gc]]);let vc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,u){if(Array.isArray(o)){let c=(t-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,[t,r,a,i,u]);const s=_e(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(s,null,[o,t,r,a,i,u]))}};function pc(){const e=l.getCurrentInstance();return new vc(e.proxy)}class yc{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=_e(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=_e(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=_e(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function aa(){const e=l.getCurrentInstance();return new yc(e.proxy)}const bc=Symbol.for("TableStateKey"),jo={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"}},zo={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[Boolean],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},jn={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:()=>"不固定"}},xc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function wc(e,n){let o=n.split("."),t=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);t=t[m][d]}else t=t[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function zn(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=wc(t,r);if(a!==i)return!1}return!0})}function Sc(e,n,o){return{props:{...$e,...Ve,...jo,...zo,...jn,...xc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a}=je.useFoxI18n(n),{emitEvent:i,broadcast:u}=Ee({componentName:e,validateHandler:{getValue(...ee){return P.value}}},t.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__${t.footerAlign}`]:!0})),v=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${t.paginationAlign}`]:!0})),p=l.shallowRef({}),y=l.computed(()=>({...p.value,...t.params??{},...t.baseParams??{}})),f=l.ref(t.infiniteLoad===!0?0:t.pageIndex),h=l.ref(t.pageSize),D=ue(t.infiniteLoad);D||(l.watch(()=>t.pageIndex,ee=>{f.value=ee}),l.watch(()=>t.pageSize,ee=>{h.value=ee}),l.watch([f,h],([ee,oe],[re,ie])=>{oe!==ie&&(f.value=1,ee=1),g(t.data,ee,oe,y.value)}));const w=()=>Array.isArray(t.data)?!0:ue(t.autoLoad);w()&&l.watch([()=>t.data,y],async([ee,oe],[re,ie])=>{w()&&(ee!==re&&(b=!0),!(!Array.isArray(ee)&&tt(ee,re)&&tt(oe,ie))&&(D?(f.value=0,B.value=!0,P.value=[],G()):f.value===1?g(ee,f.value,h.value,oe):f.value=1))},{deep:!0});const x=ee=>{f.value=ee,i("page-index-change",ee)},L=ee=>{h.value=ee,i("page-size-change",ee)},B=l.ref(!0),q=l.ref(0),P=l.ref(),k=pc();let b=!0;const j=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,ee=>ue(ee)),g=async(ee,oe,re,ie,ke)=>{b=!1;try{if(ke===!0){if(!B.value)return!1;const ve=await k.load("table",ee,oe,re,ie,b,a.value);return q.value=ve.totalSize,!ve.page||!Array.isArray(ve.page)||(Reflect.apply([].push,P.value,ve.page),setTimeout(()=>{i("loaded-data")},250),(P.value?.length??0)>=q.value)||ve.page.length<re?(B.value=!1,!1):!0}else{const ve=await k.load("table",ee,oe,re,ie,b,a.value);return q.value=ve.totalSize,P.value=ve.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ve){console.error("[FoxUI] Load Table Data Fail",ve),q.value=0,P.value=[]}return!1};let R=!1;const G=async()=>{if(!R){if(R=!0,!B.value){R=!1;return}f.value+=1,await g(t.data,f.value,h.value,y.value,!0),R=!1}},O=(ee={},oe=!1)=>new Promise(async re=>{p.value={...l.toRaw(ee??{})},oe||(f.value=t.pageIndex??1),D===!0?(f.value=0,P.value=[],B.value=!0,await G()):await g(t.data,f.value,h.value,y.value),re()}),N=()=>{q.value=0,P.value=[],D===!0&&(f.value=0,B.value=!0)};let A=!1;const _=()=>{A||(A=!0,O())},Y=l.ref(null);if(D===!0){let ee=null;const oe=()=>{Y.value&&(ee=new IntersectionObserver(ie=>{let ke=!1;for(let ve of ie)if(ve.intersectionRatio>0){ke=!0;break}ke&&G()}),ee.observe(Y.value))},re=()=>{!ee||!Y.value||(ee.unobserve(Y.value),ee=null)};l.onMounted(oe),l.onBeforeUnmount(re)}w()&&!j.value&&O();const J=l.ref(null);l.provide(bc,{currentRow:J});const M=(ee,oe)=>{J.value=ee,i("current-change",ee,oe)},te=(ee,oe,re)=>{i("row-click",ee,oe,re),ue(t.rowClickSelectable)===!0&&we?.value.toggleRowSelection(ee)},$=[],C=(ee,oe)=>{if(i("expand-change",ee,oe),ue(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=$.length;$.splice(0,re)}else{$.forEach(ie=>{ie!==ee&&we?.value.toggleRowExpansion(ie,!1)});const re=$.length;$.splice(0,re,ee)}},F=r.attrs.id??t.prop??r.attrs.name,V=aa(),S=l.ref([]);let H=[];const Q=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:S.value}),ne=ee=>{S.value=[...ee],W()},U=async()=>{const ee=await V.load(F);ee&&(S.value=ee)},W=()=>{V.save(F,S.value)},E=()=>{V.remove(F)};U();const K=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",X=(ee,oe={})=>{for(let re in oe){const ie=oe[re];typeof ie!="function"&&(ee[re]=ie)}},I=ee=>{const oe=ee?ee():[],re=new Map;if(H=[],oe.forEach(ie=>{const ve=ie;if(!ve.props)return;const We=K(ve.props);re.set(We,ve);const He={label:"",prop:""};X(He,ve.props),H.push(He)}),S.value.length===H.length){const ie=[];for(let ke of S.value){const ve=K(ke),We=re.get(ve);if(!We)return oe;if(ke.visible===!1)continue;const He=We;He.props.fixed=ke.fixed,ie.push(He)}return ie}return oe},z=l.shallowRef(new Map),Z=({row:ee,column:oe,rowIndex:re,columnIndex:ie})=>{const ke=`${re}_${oe.property}`,ve=`${re}_${ie}`;let We=z.value.get(ke);return We||(We=z.value.get(ve)),typeof We=="string"?We:""},le=ee=>ee?oe=>{const re=[];let ie=Z(oe);return ie&&re.push(ie),ie=ie=typeof ee=="function"?ee(oe):ee,ie&&re.push(ie),re.length===0?"":re.join(" ")}:Z,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)},Te=()=>{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,Dn=(ee,oe)=>{const re=`${ee}`;oe?ze.value.set(re,oe):ze.value.delete(re),l.triggerRef(ze)},pa=()=>{ze.value.clear(),l.triggerRef(ze)},we=l.ref();return Se({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{we?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!P.value)return;const re=zn(P.value,ee);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowSelection(ie,oe)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{we?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!P.value)return;const re=zn(P.value,ee);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowExpansion(ie,oe)})},setCurrentRow:ee=>{we?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!P.value)return;const oe=zn(P.value,ee);oe.length!==0&&we?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{we?.value.clearSort()},clearFilter:ee=>{we?.value.clearFilter(ee)},doLayout:()=>{we?.value.doLayout()},sort:(ee,oe)=>{we?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{we?.value.scrollTo(ee,oe)},setScrollTop:ee=>{we?.value.setScrollTop(ee)},setScrollLeft:ee=>{we?.value.setScrollLeft(ee)},loadData:O,clearData:N,getData(){return P.value},getTotalSize(){return q.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Q,setColumnSetting:ne,removeColumnSetting:E,setCellClassName:pe,setCellClassNames:ge,clearCellClassName:Te,setRowClassName:Dn,clearRowClassName:pa}),()=>{const oe={...Ze(r.attrs),onCurrentChange:M,onRowClick:te,onExpandChange:C,data:P.value,ref:we,class:c.value,"cell-class-name":le(t.cellClassName),"row-class-name":mt(t.rowClassName)},re={};if(r.slots.default&&(re.default=()=>I(r.slots.default)),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),D===!0){const Ye=[];if(B.value){const Tt=l.h(Ie.Loading,{class:`${s}__infinite-icon`});Ye.push(Tt);const Fn=l.h("span",{class:`${s}__infinite-text`},[t.loadText]);Ye.push(Fn)}else{const Tt=l.h("span",{class:`${s}__infinite-text`},[t.loadMoreText]);Ye.push(Tt)}const ut={ref:Y,class:`${s}__infinite`},Rn=l.h("div",ut,Ye);re.append=()=>Rn}const ie=l.h(T.ElTable,oe,re),ke=[];if(ke.push(ie),!D){let Ye=null;if(typeof r.slots.pagination=="function")Ye=r.slots.pagination();else if(t.showPagination){const ut={class:v.value,total:q.value,pageSize:h.value,"onUpdate:pageSize":L,pageSizes:t.pageSizes,currentPage:f.value,"onUpdate:currentPage":x,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,size:t.paginationSize,background:t.paginationBackground,appendSizeTo:t.paginationAppendSizeTo,teleported:t.paginationTeleported,popperClass:t.paginationPopperClass,prevText:t.paginationpPrevText,prevIcos:t.paginationPrevIcon,nextText:t.paginationNextText,pnextIcon:t.paginationNextIcon,disabled:t.paginationDisabled};Ye=l.h(T.ElPagination,ut)}if(t.showSetting){const ut=[];Ye&&ut.push(Ye);const Rn=l.h(T.ElIcon,{class:d.value},{default:()=>l.h(Ie.Setting)}),Tt=Vt(t,jn),Fn=l.h(kn,{...Tt,tableRef:{getColumnSetting:Q,setColumnSetting:ne,removeColumnSetting:E}},{default:()=>Rn});ut.push(Fn);const ya=l.h("div",{class:m.value},ut);ke.push(ya)}else Ye&&ke.push(Ye)}const ve={default:()=>ke},He={...Oe(t,jo,zo,jn)};return t.prop&&(He.prop=`${t.prop}_item`),He.contentClass=`${s}__wrap`,He.errorMarkClass="is-table-error",j.value&&w()&&(He["appear-listen"]=!0,He.onAppear=_),l.h(o,He,ve)}}}}const{componentName:Tc,create:Cc,scope:$c}=ae("table-item"),Al=Cc(Sc(Tc,$c,Ne));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Nc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ec=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function kc(){const e=l.getCurrentInstance();return new Ec(e.proxy)}function ia(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=wt(e,n),r=wt(e,o);if(t!==r)return!1;const a=Ft(e,n),i=Ft(e,o);return a===i}function Pc(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of t){let i=!1;if(o==="text")i=wt(e,a)===n;else if(o==="item")i=ia(e,a,n);else{let u=Ft(e,a);u==null&&(u=wt(e,a)),i=u===n}if(i){r=a;break}}return r}function Ic(e){return{text:e,value:e}}function Oc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ho={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 Vc(e,n,o){return{inheritAttrs:!0,props:{...$e,...Ve,...Ho},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=l.ref(null),m=l.ref(null),v=(b,j,g,R=!0)=>{const G=Pc(t,b,j,g);if(G===null){if(m.value===null)return;m.value=null,d.value=null,R&&(c("update:modelValue",null),c("change",null));return}if(!ia(t,G,m.value)){d.value=b;const N=l.toRaw(G);m.value=N;let A=null;t.valueType==="text"?A=wt(t,N):t.valueType==="item"?A=N:A=Ft(t,N),R&&(c("update:modelValue",A),c("change",A))}},p=l.ref([]),y=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,b=>ue(b)),f=kc(),h=async(b,j)=>{if(b){const g=await f.load("radio",b,j);if(g.length>0)if(typeof g[0]=="string"){let O=g.map(N=>Ic(N));p.value=O}else p.value=g}};l.watch([()=>t.source,()=>t.params],async([b,j])=>{h(b,j)},{immediate:!y.value});let D=!1;const w=()=>{D||(D=!0,h(t.source,t.params))};l.watch([()=>p.value,()=>t.modelValue],([b,j])=>{v(j,t.valueType,b,!1),c("setValue",j)});const x=e,L=l.computed(()=>({[x]:!0,[`is-${t.direction}`]:!0})),B=b=>{v(b,"value",p.value,!0)};let q=he(t,"hintText"),P=he(t,"hintVisible");const k=(b,j)=>{const g=[];return b.forEach((R,G)=>{const O=Ft(t,R),N=wt(t,R);let A=Nc(t,R);i.value===!0&&(A=i.value),s.value===!0&&(A=s.value);const _=Oc(t,R,G)??{},Y=`${O}_${G}`,J={..._,key:Y,value:O,size:t.size,border:ue(t.border)};A&&(J.disabled=A),t.itemType==="button"?g.push(l.h(T.ElRadioButton,J,{default:()=>[N]})):typeof j=="function"?g.push(l.h(T.ElRadio,J,{default:()=>j(R)})):g.push(l.h(T.ElRadio,J,{default:()=>[N]}))}),g};return Se({setDisabled:b=>{a.value=b},setReadonly:b=>{u.value=b}}),()=>{const j={...Ze(r.attrs),class:L.value,disabled:i.value||s.value,modelValue:d.value,"text-color":t.textColor,fill:t.fill,onChange:B},g=[],R={};r.slots.options?R.default=r.slots.options:R.default=()=>k(p.value,r.slots.text);const G=l.h(T.ElRadioGroup,j,R);g.push(G);const O={default:()=>g};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const A={...Oe(t,Ho),hintText:q.value,hintVisible:P.value};return t.prop&&(A.prop=`${t.prop}_item`),y.value&&(A["appear-listen"]=!0,A.onAppear=w),l.h(o,A,O)}}}}const{componentName:Dc,create:Rc,scope:Fc}=ae("radio-item"),Ml=Rc(Vc(Dc,Fc,Ne));function St(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ac(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Mc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Lc(){const e=l.getCurrentInstance();return new Mc(e.proxy)}function sa(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=St(e,n),r=St(e,o);if(t!==r)return!1;const a=bt(e,n),i=bt(e,o);return a===i}function Bc(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){let u=!1;if(o==="text")u=St(e,i)===a;else if(o==="item")u=sa(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 qc(e){return{text:e,value:e}}function _c(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ko={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 jc(e,n,o){return{inheritAttrs:!0,props:{...$e,...Ve,...Ko},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=l.ref([]),m=l.ref([]),v=(b,j,g,R=!0)=>{const G=Bc(t,b,j,g);if(G===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],R&&(c("update:modelValue",[]),c("change",[]));return}let O=!0;if(G.length!==m.value.length)O=!1;else for(let N=0;N<G.length;N++){const A=G[N],_=m.value[N];if(!sa(t,A,_)){O=!1;break}}if(!O){m.value=G;let N=[],A=[];G.forEach(Y=>{N.push(bt(t,Y)),t.valueType==="text"?A.push(St(t,Y)):t.valueType==="item"?A.push(Y):A.push(bt(t,Y))}),d.value=N;const _=l.toRaw(A);R&&(c("update:modelValue",_),c("change",_))}},p=l.ref([]),y=Fe(l.computed(()=>t.appearLoad),"appearLoad",qe.Near,b=>ue(b)),f=Lc(),h=async(b,j)=>{if(b){const g=await f.load("checkbox",b,j);if(g.length>0)if(typeof g[0]=="string"){let O=g.map(N=>qc(N));p.value=O}else p.value=g}};l.watch([()=>t.source,()=>t.params],async([b,j])=>{h(b,j)},{immediate:!y.value});let D=!1;const w=()=>{D||(D=!0,h(t.source,t.params))};l.watch([()=>p.value,()=>t.modelValue],([b,j])=>{v(j,t.valueType,b,!1),c("setValue",j)});const x=e,L=l.computed(()=>({[x]:!0,[`is-${t.direction}`]:!0})),B=b=>{v(b,"value",p.value,!0)};let q=he(t,"hintText"),P=he(t,"hintVisible");const k=(b,j)=>{const g=[];return b.forEach((R,G)=>{const O=bt(t,R),N=St(t,R);let A=Ac(t,R);i.value===!0&&(A=i.value),s.value===!0&&(A=s.value);const _=_c(t,R,G)??{},Y=`${O}_${G}`,J={..._,key:Y,class:t.itemClass,value:O,size:t.size,border:ue(t.border)};A&&(J.disabled=A),t.itemType==="button"?g.push(l.h(T.ElCheckboxButton,J,{default:()=>[N]})):typeof j=="function"?g.push(l.h(T.ElCheckbox,J,{default:()=>j(R)})):g.push(l.h(T.ElCheckbox,J,{default:()=>[N]}))}),g};return Se({setDisabled:b=>{a.value=b},setReadonly:b=>{u.value=b}}),()=>{const j={...Ze(r.attrs),class:L.value,disabled:i.value||s.value,modelValue:d.value,"text-color":t.textColor,fill:t.fill,max:Ce(t.max),min:Ce(t.min),onChange:B},g=[],R={};r.slots.options?R.default=r.slots.options:R.default=()=>k(p.value,r.slots.text);const G=l.h(T.ElCheckboxGroup,j,R);g.push(G);const O={default:()=>g};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const A={...Oe(t,Ko),hintText:q.value,hintVisible:P.value};return t.prop&&(A.prop=`${t.prop}_item`),y.value&&(A["appear-listen"]=!0,A.onAppear=w),l.h(o,A,O)}}}}const{componentName:zc,create:Hc,scope:Kc}=ae("checkbox-item"),Ll=Hc(jc(zc,Kc,Ne)),Wo={modelValue:{type:[Number,String],required:!1}};function Wc(e,n,o){return{props:{...$e,...Ve,...Wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=he(t,"modelValue",D=>Ce(D),c),m=e,v=l.computed(()=>({[m]:!0})),p=D=>{c("update:modelValue",D),c("change",D)};let y=he(t,"hintText"),f=l.ref(!1);const h=l.ref();return Se({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const w={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value||i.value,modelValue:d.value,onChange:p},x={},L=[],B=l.h(T.ElRate,w,x);L.push(B);const q={default:()=>L};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const k={...Oe(t,Wo),hintText:y.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,q)}}}}const{componentName:Yc,create:Uc,scope:Gc}=ae("rate-item"),Bl=Uc(Wc(Yc,Gc,Ne)),Yo={modelValue:{type:[Boolean,String,Number],required:!1}};function Xc(e,n,o){return{props:{...$e,...Ve,...Yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),d=he(t,"modelValue",null,c),m=e,v=l.computed(()=>({[m]:!0})),p=D=>{c("update:modelValue",D),c("change",D)};let y=he(t,"hintText"),f=he(t,"hintVisible");const h=l.ref();return Se({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const w={...Ze(r.attrs),ref:h,class:v.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:p},x={},L=[],B=l.h(T.ElSwitch,w,x);L.push(B);const q={default:()=>L};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const k={...Oe(t,Yo),hintText:y.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,q)}}}}const{componentName:Zc,create:Qc,scope:Jc}=ae("switch-item"),ql=Qc(Xc(Zc,Jc,Ne)),Uo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let ef=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const i=_e(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function tf(){const e=l.getCurrentInstance();return new ef(e.proxy)}const Go={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function nf(e,n,o){return{props:{...$e,...Ve,...Go,...Uo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),i=Me(l.computed(()=>a.value??t.disabled)),u=l.ref(null),s=Ae(l.computed(()=>u.value??t.readonly)),c=l.ref(!1),{emitEvent:d}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=he(t,"modelValue",null,d),v=e,p=l.computed(()=>({[v]:!0})),y=R=>{m.value=R,d("update:modelValue",R),d("change",R)};let f=he(t,"hintText"),h=l.ref(!1);const D=R=>{let O=R.target.value;c.value=!0,de(f.value)||(h.value=!0),d("focus",O,R)},w=R=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let O=R.target.value;t.maxLength&&O.length>Number(t.maxLength)&&(O=O.slice(0,Number(t.maxLength))),L.value||d("blur",O,R)},x=()=>{d("clear","")},L=l.ref(!1),B=R=>{L.value=R,d("visible-change",R),R||d("selected")},q=l.ref([]),P=tf(),k=async(R,G)=>{try{const O=await P.load("treeselect",R,G);q.value=O}catch(O){console.error(O)}};l.watch([()=>t.data,()=>t.params,()=>t.lazy],([R,G,O])=>{!R||O||k(R,G)},{immediate:!0});let b=null;t.lazy&&(typeof t.load=="function"?b=t.load:b=async(R,G)=>{debugger;let O={};t.params&&Object.assign(O,t.params),R&&Object.assign(O,R);const N=await P.load("treeselect",t.data,O,!0);G(N)});let j={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const g=l.ref();return Se({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const G={...Ze(r.attrs),ref:g,class:p.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":y,lazy:t.lazy,props:j,onClear:x,onFocus:D,onBlur:w,onVisibleChange:B};b?G.load=b:G.data=q.value;const O={};r.slots.option&&(O.default=r.slots.option);const N=[],A=l.h(T.ElTreeSelect,G,O);N.push(A);const _={default:()=>N};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const J={...Oe(t,Go,Uo),hintText:f.value,hintVisible:h.value};return t.prop&&(J.prop=`${t.prop}_item`),l.h(o,J,_)}}}}const{componentName:lf,create:of,scope:rf}=ae("tree-select-item"),_l=of(nf(lf,rf,Ne)),af={},sf={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function uf(e,n){return l.openBlock(),l.createElementBlock("svg",sf,n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const cf=Xe(af,[["render",uf]]),{create:ff}=ae("group-setting"),df={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:"到底部"}},hf=ff({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:cf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...df},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=aa(),u=$=>$.length>1,s=()=>{const $=[],C=[...a.value];a.value=C.map((V,S)=>(V.visible!==!1&&$.push(V.prop),{...V,sortIndex:S})),a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),x.value=$},c=$=>{let C=null;if(typeof $=="string")C=document.querySelectorAll(`.fox-group[prop="${$}"] > div > .fox-item[prop]`);else if($&&typeof $=="object"){const V=$.$el??$;typeof V.querySelectorAll=="function"&&(C=V.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const F=[];return C.forEach(V=>{const S=V.querySelector(".label--string");let H="";S&&(H=S.textContent??"");const Q=V.getAttribute("prop")??"",U=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:H,prop:Q,sortIndex:0,visible:U!=="none"})}),F},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),F=V=>{if(!V||!r)return;const S=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{S.some(Q=>{if(Q.prop===H.prop){const ne=Q.label;return Object.assign(Q,H),Q.label=ne,!0}return!1})}),a.value=S.sort((H,Q)=>H.sortIndex-Q.sortIndex),s(),$&&p(!1)};r?F(!0):mn(d,e.initDelay,5,50,!1,F)},v=()=>{const $=r??[];a.value=$.map(C=>({...C})),s(),p()},p=($=!0)=>{$&&i.save(e.groupProp,a.value);const C=a.value.map(F=>({...F}));n("change",C)},y=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),h=l.ref(!1),D=$=>{const C=[];a.value.forEach(V=>{$&&C.push(V.prop),V.visible=$}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),x.value=C,p()},w=()=>{v()},x=l.ref([]),L=$=>{a.value.forEach(F=>{const V=$.indexOf(F.prop)!==-1;F.visible=V}),f.value=!1,h.value=!1;const C=a.value.length;$.length===C?f.value=!0:$.length>0&&(h.value=!0),p()},B=()=>{m()};l.onMounted(()=>{m(!0)});const q={currentRow:null,index:null},P=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,P($)):null:null,k=$=>{const C=$.currentTarget;C&&C.dataset&&(q.index=C.dataset.index)},b=$=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},j=$=>{const C=$.currentTarget;$.relatedTarget;const F=P(C);F&&($.preventDefault(),q.currentRow&&q.currentRow!==F&&q.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),q.currentRow=F)},g=$=>{$.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},R=$=>{const C=$.currentTarget,F=P(C);if(!F)return;$.preventDefault();const V=Number(q.index),S=Number(F.dataset.index);if(V!==S){if(V<S){const H=a.value[V];a.value.splice(V,1),a.value.splice(S,0,H)}else{const H=a.value[V];a.value.splice(V,1),a.value.splice(S+1,0,H)}s(),p()}},G=$=>{const C=a.value[$];a.value.splice($,1),a.value.splice(0,0,C),s(),p()},O=$=>{const C=a.value[$];a.value.splice($,1),a.value.push(C),s(),p()};t({refresh:()=>{r=null,m(!1)}});const N=new Map;let A=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:D,handleReset:w,checkedValue:x,handleCheckChange:L,onShow:B,onDragStart:k,onDragEnd:b,onDragOver:j,onDragLeave:g,onDrop:R,checkboxLabelStyle:y,toTop:G,toBottom:O,onMouseOverForOverflowText:($,C,F)=>{const V=$.currentTarget;if(V){const S=Math.floor(V.offsetWidth);if(Math.floor(_(V))>S){let Q=N.get(C);if(Q){if(Q===A)return;Re.hide(Q)}Q=Re.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),N.set(C,Q),A=Q}}},onMouseLeaveForOverflowText:($,C)=>{const F=N.get(C);F&&(Re.hide(F),F===A&&(A=null))},onMouseOverForTip:($,C)=>{const F=$.currentTarget;F&&(A&&Re.hide(A),A=Re.show(F,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:$=>{A&&(Re.hide(A),A=null)}}}}),mf={class:"fox-group-setting"},gf={class:"fox-group-setting__header"},vf={class:"fox-group-setting__body"},pf={class:"fox-group-setting__body-list","data-role":"container"},yf=["data-index","draggable"],bf=["onMouseover","onMouseleave"],xf={class:"tools-item"};function wf(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),s=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),d=l.resolveComponent("FoxIcon"),m=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",mf,[l.createElementVNode("div",gf,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),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",vf,[l.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",pf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,p=>(l.openBlock(),l.createElementBlock("div",{key:p.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":p.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(s,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:p.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,p.prop,p.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,p.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(p.label),45,bf)]),_:2},1032,["label"]),l.createElementVNode("div",xf,[l.createVNode(d,{onClick:y=>e.toTop(p.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.toTopText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(d,{onClick:y=>e.toBottom(p.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.toBottomText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,yf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const jl=Xe(hf,[["render",wf]]),Sf={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Tf=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const i=_e(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await i(o,t,r))}};function Cf(){const e=l.getCurrentInstance();return new Tf(e.proxy)}function $f(e,n,o){return{props:{...il,...Sf},setup(t,r){const a=e,i=l.computed(()=>({[a]:!0})),u=l.ref([]),s=Cf(),c=async(x,L)=>{try{const B=await s.load("tree",x,L);u.value=B}catch(B){console.error(B)}},d=l.shallowRef({}),m=l.computed(()=>({...d.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ue(t.autoLoad))&&l.watch([()=>t.data,()=>m.value],([x,L])=>{x&&c(x,L)},{immediate:!0,deep:!0});let p=null;t.lazy&&(typeof t.load=="function"?p=t.load:p=async(x,L)=>{let B={};t.params&&Object.assign(B,t.params),x&&Object.assign(B,x);const q=await s.load("treeselect",t.data,B,!0);L(q)});const y={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},f=(x={})=>new Promise(async L=>{d.value={...l.toRaw(x??{})},await c(t.data,m.value),L()}),h=function(x,L){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(x,L);if(!t.filterKeyword)return!0;const B=`${L[y.label]}`,q=`${x}`;return B.includes(q)},D=l.ref();l.watch(()=>t.filterKeyword,x=>{D.value.filter(x)});const w=x=>(...L)=>{const B=D.value[x];return Reflect.apply(B,D.value,[...L])};return r.expose({loadData:f,filter:w("filter"),updateKeyChildren:w("updateKeyChildren"),getCheckedNodes:w("getCheckedNodes"),setCheckedNodes:w("setCheckedNodes"),getCheckedKeys:w("getCheckedKeys"),setCheckedKeys:w("setCheckedKeys"),setChecked:w("setChecked"),getHalfCheckedNodes:w("getHalfCheckedNodes"),getHalfCheckedKeys:w("getHalfCheckedKeys"),getCurrentKey:w("getCurrentKey"),getCurrentNode:w("getCurrentNode"),setCurrentKey:w("setCurrentKey"),setCurrentNode:w("setCurrentNode"),getNode:w("getNode"),remove:w("remove"),append:w("append"),insertBefore:w("insertBefore"),insertAfter:w("insertAfter")}),()=>{const L={...Ze(r.attrs),class:i.value,lazy:t.lazy,props:y,ref:g=>D.value=g};p?L.load=p:L.data=u.value,L["filter-node-method"]=h;const B=[],q=l.h(T.ElTree,L,r.slots);B.push(q);const P={default:()=>B},b={...Vt(t,il)};return l.h(o,b,P)}}}}const{componentName:Nf,create:Ef,scope:kf}=ae("tree-item"),zl=Ef($f(Nf,kf,En)),Pf=["aria-labelledby"],If=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),Of=[If],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:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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:"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),Ff=[Rf],Af=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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=["aria-labelledby"],Lf=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),Bf=[Lf],Hl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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,Mf))}}),qf=["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),jf=[_f],zf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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"},jf,14,qf))}}),Hf=["aria-labelledby"],Kf=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wf=[Kf],Yf=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wf,14,Hf))}}),Uf=["aria-labelledby"],Gf=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),Xf=[Gf],Zf=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=l.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+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,Uf))}}),ul={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}},Xo=(e,n)=>n[e.textKey],Nt=(e,n)=>n[e.valueKey],Qf=(e,n)=>n[e.visibleKey],Zo=(e,n)=>n[e.disabledKey],Jf=(e,n)=>{const o=n[e.doitKey];return ue(o)},ed=(e,n)=>{const o=n[e.numKey];return o==null?null:Ce(n[o])},Qo=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function td(e,n,o,t=!1){return{props:{...ul},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 v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),p=l.computed(()=>{const $={};return f.value||($.display="none"),$}),y=l.ref(),f=l.ref(!1),h=()=>{const $=!f.value;D($)},D=$=>{const C=$;C?(f.value=C,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},w=l.ref(),x=l.ref([]),L=($,C)=>{x.value[C]=$},B=$=>C=>{L(C,$)},q=($,C)=>{const F=w.value,V=x.value;if(!F||!V||!V[$])return;const S=V[$];let H=0;r.direction==="vertical"?H=S.offsetTop-(F.offsetHeight-S.offsetHeight)/2:H=S.offsetLeft-(F.offsetWidth-S.offsetWidth)/2,P(F,H,C?0:.3,r.direction)},P=($,C,F,V)=>{let S=0;const H=V==="horizontal"?$.scrollLeft:$.scrollTop,Q=F===0?1:Math.round(F*1e3/16);function ne(){V==="horizontal"?$.scrollLeft+=(C-H)/Q:$.scrollTop+=(C-H)/Q,++S<Q&&hl(ne)}ne()},k=($,C)=>{const F=Nt(r,$),V={};return V[`${e}__titles-item`]=!0,V.disabled=Zo(r,$),V.active=F===m.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),C&&(C.class&&(V[`${C.class}`]=!0),C.disabled===!0&&(V.disabled=C.disabled)),V},b=($,C)=>{const F={};if(d.value>0){const V=Math.abs(d.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return C&&C.style&&Object.assign(F,C.style),F},j=($,C)=>`${Nt(r,$)??C}`,g=($,C)=>{const F=Nt(r,$),V={};V[`${e}__popup-item`]=!0,V.disabled=Zo(r,$),V.active=F===m.value,r.shape&&(V[`${r.shape}`]=!0);const S=Qo(r,$,C);return S&&S.disabled===!0&&(V.disabled=S.disabled),V},R=l.computed(()=>(r.data??[]).filter(C=>Qf(r,C)!==!1)),G=($,C)=>{const F=Nt(r,$);if(m.value==F)return;const V=()=>{m.value=F,r.scroll&&q(C,!1),i("update:modelValue",F),i("change",$,C)};if(typeof r.beforeChange=="function"){const S=r.beforeChange($,C);$r(S)?S.then(H=>{H!==!1&&V()}).catch(()=>{V()}):S!==!1&&V()}else V()},O=($,C)=>function(){G($,C)},N=($,C)=>{G($,C),D(!1)},A=($,C)=>function(){N($,C)},_=$=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(F=>Nt(r,F)===m.value);C!==-1&&q(C,$)};l.watch(()=>r.data,()=>{setTimeout(_,0)}),l.onMounted(()=>{_(!0)});const Y=($,C)=>{if(a.item)return a.item({item:$,index:C});const F=Qo(r,$,C),V=[];if(a.text){const ne=a.text({item:$,index:C});V.push(ne)}else{const ne=[];if(F?.doit===!0||Jf(r,$)){const K={class:[`${e}__titles-item-tip`,"doit"]},X=l.h("view",K);ne.push(X)}const U=F?.num??ed(r,$);if(U){let K="";const X=Ce(U);X>=100?K="99+":K=`${X}`;const I={class:[`${e}__titles-item-tip`,"num"]},z=l.h("view",I,[K]);ne.push(z)}const W={class:`${e}__titles-item-text`};ne.push(Xo(r,$));const E=l.h("view",W,ne);V.push(E)}const S={class:`${e}__titles-item-line`},H=l.h("view",S);V.push(H);const Q={ref:B(C),class:k($,F),style:b($,F),key:j($,C),onClick:O($,C)};return l.h("view",Q,V)},J=()=>{const $=a.default?a.default():[];if($.length===0)for(let F=0;F<R.value.length;F++){const V=R.value[F],S=Y(V,F);$.push(S)}const C={ref:w,class:s.value,style:c.value};return l.h("view",C,$)},M=()=>{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 F=0;F<R.value.length;F++){const V=R.value[F];let S=null;a.popupItem?S=a.popupItem({item:V,index:F}):S=Xo(r,V);const H={class:g(V,F),key:j(V,F),onClick:A(V,F)},Q=l.h("view",H,[S]);$.push(Q)}const C={class:v.value,style:p.value};return l.h("view",C,$)};return()=>{const $=[],C=J();if($.push(C),r.showQuickNavigation){const V=M();$.push(V);const S=te();$.push(S)}const F={class:u.value};return l.h("view",F,$)}}}}const{create:nd,componentName:ld,scope:od}=ae("tabs-bar"),Pn=nd(td(ld,od,Af,!1)),ua=Symbol("TabsStatesKey"),cl={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Jo=10;function ca(e,n){return e>n&&e>Jo?"horizontal":n>e&&n>Jo?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",t=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ca(e.offsetX,e.offsetY))},start:i=>{if(t(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:t,isVertical:n,isHorizontal:o,state:e}}function rd(){const e=l.ref(0),n=l.ref(0),o=l.ref(0),t=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),c=l.ref(0),d=l.ref(""),m=()=>d.value==="vertical",v=()=>d.value==="horizontal",p=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const x=h.touches[0];i.value=x.clientX-e.value,u.value=x.clientY-n.value,r.value=x.clientX,a.value=x.clientY}else{const w=h;i.value=w.clientX-e.value,u.value=w.clientY-n.value,r.value=w.clientX,a.value=w.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-o.value,d.value||(d.value=ca(s.value,c.value))},start:h=>{if(p(),h.touches){const x=h.touches[0];e.value=x.clientX,n.value=x.clientY}else{const w=h;e.value=w.clientX,n.value=w.clientY}o.value=Date.now()},reset:p,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:m,isHorizontal:v}}const ad=15,id=300,sd=200;function ud(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function er(e,n=0,o,t,r=sd){o==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",t==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let cd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,o,t,r=1){this.onStart=n,this.onMove=o,this.onEnd=t,this.momentumReduceRatio=r,this.isTouch=Lt()}open(n){this.el=n;const o=Bt(),t=(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=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=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}t(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let 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<id&&Math.abs(r)>ad?(r=ud(r,a,this.momentumReduceRatio),t(r,this.direction,"end")):t(r,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function fd(e,n,o,t=1){return new cd(e,n,o,t)}function dd(e,n,o=!1){return{props:{...cl},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),u={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:P=>{const k={name:P};u.current.value===P&&(k.loaded=!0),i.value.push(k),l.triggerRef(i)},remove:P=>{const k=i.value.findIndex(b=>b.name===P);k!==-1&&i.value.splice(k,1)},isLoaded:P=>{if(!t.lazy)return!0;const k=i.value.findIndex(b=>b.name===P);return k!==-1?u.current.value?i.value[k].loaded??!1:k===0:!1}};l.provide(ua,u);const s=P=>{const k=i.value.findIndex(b=>b.name===P);k!==-1&&(i.value[k].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([P,k])=>{u.current.value!==P&&(u.current.value=P??"",s(P??"")),u.direction.value!==k&&(u.direction.value=k)});const c=l.ref(null),d=l.ref(null),m=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),v=l.computed(()=>{const P={};if(t.width){const k=xe(t.width);k&&(P.width=k)}if(t.height){const k=xe(t.height);k&&(P.height=k)}return P});let p=!0;const y=l.computed(()=>{const P={},k=i.value.length;if(k<=0)return P;const b=i.value.findIndex(j=>j.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(P.height=`${k*u.tabHeight.value}px`,b!==-1&&(P.transform=`translate(0, -${b*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(P.width=`${k*u.tabWidth.value}px`,b!==-1&&(P.transform=`translate(-${b*u.tabWidth.value}px, 0)`)),p&&(p=!1,P.transition="transform 0s ease"),P}),f={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=P=>{const k=i.value.length,b=i.value.findIndex(j=>j.name===u.current.value);f.moved=0,P.direction==="vertical"?(f.min=-1*(u.tabHeight.value*(k-1)+u.tabHeight.value/4),f.max=u.tabHeight.value/4,f.start=-b*u.tabHeight.value,f.itemDistance=u.tabHeight.value):(f.min=-1*(u.tabWidth.value*(k-1)+u.tabWidth.value/4),f.max=u.tabWidth.value/4,f.start=-b*u.tabWidth.value,f.itemDistance=u.tabWidth.value)},D=P=>{const k=d.value;if(!k)return;let b=f.start+P.delta;if(b>f.max?b=f.max:b<f.min&&(b=f.min),P.type==="move")er(k,b,"move",P.direction,300);else if(P.type==="end"){let j=Math.floor(Math.abs(b)*1/f.itemDistance);const g=Math.abs(b)%f.itemDistance;f.start>b?g>=f.itemDistance*f.triggerAutoMoveRatio&&(j+=1):g>f.itemDistance-f.itemDistance*f.triggerAutoMoveRatio&&(j+=1),b=-1*j*f.itemDistance,er(k,b,"end",P.direction,300),f.moved=b;const R=i.value[j].name;u.current.value=R??"",s(R??""),r("update:modelValue",R)}},w=()=>{},x=()=>{if(!c.value)return;const P=bn(c.value);u.tabWidth.value=P.width,u.tabHeight.value=P.height},L=qr(x,250);let B=null,q=null;return l.onMounted(()=>{c.value&&(x(),window.ResizeObserver&&(q=new window.ResizeObserver(L),q.observe(c.value)),t.draggle&&(B=fd(h,D,w),B.open(d.value)))}),l.onBeforeUnmount(()=>{q&&(q.disconnect(),q=null),B&&B.close()}),()=>{const P={class:`${e}__panes`,style:y.value,ref:d},k=l.h("view",P,[a?.default?.()]),b={class:m.value,style:v.value,ref:c};return l.h("view",b,[k])}}}}const{create:hd,componentName:md,scope:gd}=ae("tabs-container"),In=hd(dd(md,gd,!1)),vd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function pd(e,n,o){return{props:{...vd},setup(t,{emit:r,slots:a}){const i=l.inject(ua);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=l.computed(()=>t.loaded!=null?ue(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},v=t.emptyIcon??o,p=l.h(v,m),y={class:`${e}__empty-text`},f=t.emptyText??"Loading",h=l.h("view",y,[f]),D={class:`${e}__empty`},w=l.h("view",D,[p,h]);c.push(w)}const d={class:`${e}`,style:u.value};return l.h("view",d,c)}}}}const{create:yd,componentName:bd,scope:xd}=ae("tabs-pane"),Kl=yd(pd(bd,xd,Hl));function wd(e,n,o,t){return{props:{...ul,...cl,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(r,{emit:a,slots:i}){const u=e,s=l.computed(()=>{const f=[`${u}`];return r.direction==="vertical"?f.push("vertical-tabbar"):f.push("horizontal-tabbar"),f}),c=l.computed(()=>{const f={};if(r.width){const h=xe(r.width);h&&(f.width=h)}if(r.height){const h=xe(r.height);h&&(f.height=h)}return f}),d=l.computed(()=>[`${u}__bars`]),m=l.computed(()=>[`${u}__container`]),v=l.ref(r.modelValue);l.watch(()=>r.modelValue,f=>{v.value!==f&&(v.value=f)});const p=f=>{a("change",f)},y=f=>{v.value!==f&&(v.value=f,a("update:modelValue",f))};return()=>{const f=i.default?.()??[],h=[];if(Array.isArray(r.data))h.push(...r.data);else for(let k=0;k<f.length;k++){const b=f[k].props??{},j={text:b.label??"",value:b["pane-key"]??b.paneKey??""};h.push(j)}const D={};for(let k in i)k!=="default"&&(D[k]=i[k]);const w=Vt(r,ul);Object.assign(w,{data:h,class:d.value,modelValue:v.value,direction:r.direction,onChange:p,"onUpdate:modelValue":y});const x=l.h(o,w,D),L={default:i.default},B=Vt(r,cl);Object.assign(B,{class:m.value,modelValue:v.value,onChange:p,"onUpdate:modelValue":y});const q=l.h(t,B,L),P={class:s.value,style:c.value};return l.h("view",P,[x,q])}}}}const{create:Sd,componentName:Td,scope:Cd}=ae("tabs-frame"),Wl=Sd(wd(Td,Cd,Pn,In)),$d={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 Nd(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function tr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function nr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ed(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Hn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function lr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function or(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Kn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class kd{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[t]);const r=_e(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ge(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function Pd(){const e=l.getCurrentInstance();return new kd(e.proxy)}function Id(e,n,o,t){return{props:{...$d},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=Pd(),c=l.ref([]),d=l.computed(()=>c.value.filter(C=>Ed(r,C)!==!1)),m=l.ref(-1),v=()=>{const C=r.modelValue,F=d.value.findIndex(V=>tr(r,V)===C);m.value!==F&&(m.value=F,r.scroll&&te(F))};l.watch([()=>r.modelValue,d],()=>{v()});const p=C=>m.value===C,y=C=>{if(C<0&&C>=d.value.length)return!1;const F=d.value[C],S=(Kn(r,F,C)??{}).status??Hn(r,F);return p(C)||S},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(()=>({})),D=(C,F,V,S,H)=>{const Q={[`${u}__step`]:!0};return H&&(Q[`${H}`]=!0),Q[`${w.value}`]=!0,S&&(Q["is-doit"]=!0),C===m.value?Q["is-active"]=!0:F==="done"?Q["is-done"]=!0:F==="error"?Q["is-error"]=!0:F==="half"?Q["is-half"]=!0:V?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},w=l.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),x=(C,F={})=>{const V={...F};return w.value==="start"&&C===d.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},L=(C,F)=>{let V={};if(F<d.value.length-1){const S=F+1;y(F)&&y(S)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},B=C=>d.value.length-1===C,q=(C,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>m.value||m.value===F)return;const V=m.value,S=F;m.value=F,r.scroll&&te(F);const H=tr(r,C);i("update:modelValue",H);const Q={fromIndex:V,currentIndex:S,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Q)},P=l.ref(!0),k=async(C,F)=>{try{const V=await s.load("stesbar",C,F);Array.isArray(V)&&(c.value=V),P.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([C,F])=>{C&&k(C,F)},{immediate:!0});const b=(C,F,V,S,H)=>{let Q=null;if(a.icon)Q=a.icon({item:C,index:F,status:S});else if(S==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const W=r.icon??o;Q=l.h(W,U)}else{const U=V??`${F+1}`;Q=l.h("span",{},[U])}const ne={class:"fox-steps-bar__icon",onClick:()=>{H||q(C,F)}};return l.h("view",ne,[Q])},j=(C,F,V)=>{const S=l.h("i",{class:"fox-steps-bar__line-inner",style:L(C,F)});return l.h("view",{class:"fox-steps-bar__line"},[S])},g=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const S=r.markIcon??t;C=l.h(S,V)}return l.h("view",{class:"fox-steps-bar__mark"},[C])},R=(C,F,V,S,H)=>{const Q=[];if(!B(F)){const W=j(C,F);Q.push(W)}const ne=b(C,F,V,S,H);Q.push(ne);const U={class:"fox-steps-bar__head"};return l.h("view",U,Q)},G=(C,F,V,S)=>{let H=null;a.main?H=a.main({item:C,index:F,status:V}):H=Nd(r,C);const Q={class:"fox-steps-bar__main",onClick:()=>{S||q(C,F)}};return l.h("view",Q,[H])},O=(C,F,V)=>{let S=null;if(a.sub){S=a.sub({item:C,index:F,status:V});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[S])}return null},N=(C,F)=>{const V=Kn(r,C,F)??{},S=V.status??Hn(r,C);let H=nr(r,C);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=V.label??or(r,C),ne=[],U=b(C,F,Q,S,H);U&&ne.push(U);const W=G(C,F,S,H);if(W&&ne.push(W),!B(F)){const Z=j(C,F);Z&&ne.push(Z)}const E=l.h("view",{class:"fox-steps-bar__head"},ne),K=V.class,X=V.style??{};let I=lr(r,C);V.doit===!0&&(I=!0);const z={ref:M(F),class:D(F,S,H,I,K),style:x(F,X)};return l.h("view",z,[E])},A=(C,F)=>{const V=Kn(r,C,F)??{},S=V.status??Hn(r,C);let H=nr(r,C);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=V.label??or(r,C),ne=[],U=r.layout;for(let I of U)if(I==="head"){const z=R(C,F,Q,S,H);ne.push(z)}else if(I==="main"){const z=G(C,F,S,H);ne.push(z)}else if(I==="sub"){const z=O(C,F,S);ne.push(z)}else if(I==="mark"){const z=g();ne.push(z)}const W=V.class,E=V.style??{};let K=lr(r,C);V.doit===!0&&(K=!0);const X={ref:M(F),class:D(F,S,H,K,W),style:x(F,E)};return l.h("view",X,ne)},_=l.ref(),Y=l.ref([]),J=(C,F)=>{Y.value[F]=C},M=C=>F=>{J(F,C)},te=(C,F)=>{const V=_.value,S=Y.value;if(!V||!S||!S[C])return;const H=S[C];let Q=0;r.direction==="vertical"?Q=H.offsetTop-(V.offsetHeight-H.offsetHeight)/2:Q=H.offsetLeft-(V.offsetWidth-H.offsetWidth)/2,$(V,Q,.3,r.direction)},$=(C,F,V,S)=>{let H=0;const Q=S==="horizontal"?C.scrollLeft:C.scrollTop,ne=Math.round(V*1e3/16);function U(){S==="horizontal"?C.scrollLeft+=(F-Q)/ne:C.scrollTop+=(F-Q)/ne,++H<ne&&hl(U)}U()};return()=>{const C=[];if(r.mode==="simple")for(let V=0;V<d.value.length;V++){const S=d.value[V],H=N(S,V);C.push(H)}else for(let V=0;V<d.value.length;V++){const S=d.value[V],H=A(S,V);C.push(H)}const F={ref:_,class:f.value,style:h.value};return l.h("view",F,C)}}}}const{componentName:Od,create:Vd,scope:Dd}=ae("steps-bar"),Yl=Vd(Id(Od,Dd,Yf,Zf)),Rd=Symbol.for("InnerPageScopeKey"),Fd=Symbol.for("PageWrapperKey");function Ad(e,n){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,t){l.provide(Rd,!0);const r={};l.provide(Fd,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),u=s=>{i.value=s};return()=>{const c={...t.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 t.slots.default=="function"&&(m.default=t.slots.default),l.h(T.ElDialog,c,m)}}}}const{create:Md}=ae("dialog-item"),Ul=Md(Ad());let Et=0;const rr="fox-overflow-hidden",ar=()=>at?document.body:{classList:[]},Ld=e=>[()=>{if(e())try{!Et&&ar().classList.add(rr),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&ar().classList.remove(rr)}catch{}}],Bd={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:qd,create:_d}=ae("overlay"),jd=_d({props:{...Bd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=Ld(()=>e.lockScroll),r=l.computed(()=>({[qd]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,u=>{u?o():t()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function zd(e,n,o,t,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:n[0]||(n[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const On=Xe(jd,[["render",zd]]),Hd={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:{}}},fa=2e3;let ir=fa;const Kd=(e,n)=>({components:n,props:{...Hd},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:t}){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!==fa&&(ir=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++ir,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{t("click-pop",f)},m=f=>{f.stopPropagation(),t("click-close-icon",f),t("update:visible",!1)},v=f=>{t("click-overlay",f),o.closeOnClickOverlay&&t("update:visible",!1)},p=f=>{t("opend",f)},y=f=>{t("closed",f)};return l.watch(()=>o.visible,f=>{o.visible?s():c()}),l.watch(()=>o.closeable,f=>{r.closed=f}),{...l.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:v,onOpened:p,onClosed:y}}}),{componentName:Wd,create:Yd}=ae("popup"),Ud=Yd(Kd(Wd,{FoxOverLay:On,Close:zf}));function Gd(e,n,o,t,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:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(u)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Gl=Xe(Ud,[["render",Gd]]),{create:Xd}=ae("toast"),Zd=Xd({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const t=l.reactive({mounted:!1});l.onMounted(()=>{t.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{t.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,p=>{p&&i()});const s=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const p=me(e.iconSize);return l.h(e.icon,{width:p,height:p,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:t,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Qd={key:1,class:"fox-toast-title"},Jd=["innerHTML"];function eh(e,n,o,t,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:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Qd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Jd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Xl=Xe(Zd,[["render",eh]]),th={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"}},nh=(e,n,o)=>({props:{...th},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:r}){const{emitEvent:a}=zr(),{toLocaleRefs:i}=je.useFoxI18n(n),u=i(t,["placeholder"]),s=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),d=l.computed(()=>({background:t.inputBackground})),m=b=>{let g=b.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),a("update:modelValue",g,b),a("change",g,b)},v=l.ref({}),p=b=>{let g=b.target.value;s.active=!0,v.value=t.focusStyle,a("focus",g,b)},y=b=>{setTimeout(()=>{s.active=!1},0);let g=b.target.value;t.maxLength&&g.length>Number(t.maxLength)&&(g=g.slice(0,Number(t.maxLength))),v.value={},a("blur",g,b)},f=b=>{a("update:modelValue","",b),a("change","",b),a("clear","")},h=l.computed(()=>String(t.modelValue).length>0),D=l.computed(()=>{const b={};return h.value||(b.display="none"),b}),w=()=>{a("search",t.modelValue)},x=b=>{a("keyup-input",b),b.key.toLocaleUpperCase()==="ENTER"&&w()},L=b=>{a("click-input",b)},B=b=>{a("click-left-icon",t.modelValue,b)},q=l.computed(()=>({textAlign:t.inputAlign})),P=l.ref(null);l.onMounted(()=>{t.autofocus&&P.value.focus()});const k=()=>{const b=[];if(r.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},N=l.h("view",O,[r.leftin()]);b.push(N)}const j={ref:P,class:[`${e}__input-inner`],style:q.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:L,onInput:m,onFocus:p,onBlur:y,onkeyup:x},g=l.h("input",j);b.push(g);const R=[];if(t.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:D.value,onClick:f},N=r?.clear?.()??t.clearIcon??o,A=l.h("view",O,[l.h(N)]);R.push(A)}if(r.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=l.h("view",O,[r.rightin()]);R.push(N)}if(R.length>0){const O={class:`${e}__input-inner-right`},N=l.h("view",O,R);b.push(N)}const G={class:[`${e}__search-input`,`${t.shape}`],style:{...d.value,...v.value}};return l.h("view",G,b)};return()=>{const b=[];if(t.label){const R={class:`${e}__search-label`},G=l.h("span",R,[t.label]);b.push(G)}if(r.leftout){const R={class:[`${e}__search-icon`,`${e}__left-search-icon`]},G=l.h("view",R,[r.leftout()]);b.push(G)}const j=k();if(b.push(j),r.rightout){const R={class:[`${e}__search-icon`,`${e}__right-search-icon`]},G=l.h("view",R,[r.rightout()]);b.push(G)}const g={class:`${e}`,style:c.value};return l.h("view",g,b)}}}),{componentName:lh,create:oh,scope:rh}=ae("searchbar"),Zl=oh(nh(lh,rh,Ie.CircleClose)),ah=/scroll|auto|overlay/i,da=window;function ih(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function sh(e,n=da){let o=e;for(;o&&o!==n&&ih(o);){const{overflowY:t}=window.getComputedStyle(o);if(ah.test(t))return o;o=o.parentNode}return n}function ha(e,n=da){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=sh(e.value,n))}),o}const ma=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,uh={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 ch(e,n,o){return{props:{...uh},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(n),u=i(t,["pullText","loadText","loadMoreText"]),s=l.ref(),c=ha(s),d=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,p=()=>{let w=0,x=0,L="down";if(c.value==window){const B=ma();s.value&&(w=v(s.value)+s.value.offsetHeight-B-window.innerHeight),x=B}else{const{scrollHeight:B,clientHeight:q,scrollTop:P}=c.value;w=B-q-P,x=P}return d.beforeScrollTop>x?L="up":L="down",d.beforeScrollTop=x,r("scroll-change",x),w<=t.threshold&&L=="down"},y=()=>{yr(()=>{if(!p()||!t.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",y,t.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",y,t.useCapture)};l.onMounted(()=>{f(),t.immediate&&y()}),l.onUnmounted(()=>{h()});const D=l.ref(!1);return l.onActivated(()=>{D.value&&(D.value=!1,f())}),l.onDeactivated(()=>{D.value=!0,h()}),l.watch(()=>t.modelValue,w=>{w||(d.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},x=l.h("view",w,[a?.default?.()]),L=[];if(d.isInfiniting){let k=a?.loading?.()??null;if(!k){let g=a?.loadingIcon?.()??null;if(!g){const O={class:["fox-infinite__bottom-box__img"]};g=l.h(o,O)}const R={class:"fox-infinite__bottom-box__text"},G=l.h("view",R,[u.loadText.value]);k=[g,G]}const b={class:"fox-infinite__bottom-box"},j=l.h("view",b,k);L.push(j)}else if(!t.hasMore){let k=a?.finished?.()??null;if(!k){const b={class:"fox-infinite__bottom-tips"};k=l.h("view",b,[u.loadMoreText.value]),L.push(k)}}const B={class:"fox-infinite__bottom"},q=l.h("view",B,L),P={class:m.value,ref:s};return l.h("view",P,[x,q])}}}}const{componentName:fh,create:dh,scope:hh}=ae("infinite-loading"),Ql=dh(ch(fh,hh,Hl)),mh={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}},gh=(e,n,o)=>({props:{...mh},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=je.useFoxI18n(n),u=i(t,["pullingText","loosingText","loadingText"]),s=Bt(),c=l.ref(),d=ha(c),m=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),p=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""}}),y=l.computed(()=>({transitionDuration:`${t.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=l.computed(()=>{const P={};return t.headHeight!=50&&(P.height=xe(t.headHeight)),P}),h=P=>{const k=+(t.pullDistance||t.headHeight);let b=P;return P>k&&(P<k*2?b=(P+k)/2:b=k+P/4),Math.round(b)},D=(P,k)=>{const b=+(t.pullDistance||t.headHeight);m.distance=P,k?m.status="loading":P===0?m.status="normal":P<b?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:P})},w=()=>m.status!=="loading"&&m.status!=="complete",x=()=>d.value==window?ma()==0:d.value&&d.value.scrollTop==0,L=P=>{w()&&(x()?(s.start(P),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},B=P=>{w()&&m.moving&&(s.move(P),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(P.cancelable&&P.preventDefault(),D(h(s.state.deltaY))))},q=()=>{m.moving=!1,m.isPullRefresh&&w()&&s.state.deltaY&&(m.status==="loosing"?(D(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):D(0)),setTimeout(()=>{s.reset()},0)};return l.watch(()=>t.modelValue,P=>{P?D(+t.headHeight,!0):D(0)}),()=>{const P=[];let k=null;if(m.status==="loading"){if(k=a?.loading?.()??null,!k){const A={class:["fox-pull-refresh-container-topbox-icon"]};k=l.h(o,A)}}else m.status==="pulling"?k=a?.pulling?.()??null:m.status==="loosing"&&(k=a?.loosing?.()??null);k&&P.push(k);const b={class:["fox-pull-refresh-container-topbox-text"]},j=l.h("dive",b,[p.value]);P.push(j);const g={class:["fox-pull-refresh-container-topbox"],style:f.value},R=l.h("div",g,P),G={class:"fox-pull-refresh-container",style:y.value},O=l.h("div",G,[R,a?.default?.()]),N={ref:c,class:v.value};return Lt()?Object.assign(N,{onTouchstart:L,onTouchmove:B,onTouchend:q}):Object.assign(N,{onMousedown:L,onMousemove:B,onMouseup:q}),l.h("div",N,[O])}}}),{componentName:vh,create:ph,scope:yh}=ae("pull-refresh"),Jl=ph(gh(vh,yh,Hl));function bh(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:t}){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(t.mark)d=t.mark()[0];else{const f={class:i.value,style:u.value};d=l.h(o.icon??"div",f)}const m={class:s.value,style:c.value},v=t.default?t.default():[],p=l.h("div",m,v),y={class:a.value};return o.textPosition==="right"?l.h("div",y,[d,p]):l.h("div",y,[p,d])}}}}const{componentName:xh,create:wh}=ae("indicator"),eo=wh(bh(xh));function Sh(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const t=o.getBoundingClientRect().width;if(t>0){n(t);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"),n(r)},500)}const Th={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 Ch(e,n,o,t=!1){return{props:{...Th},emits:["click"],setup(r,a){const i=l.ref(null),u=l.computed(()=>{const x={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(x[`${e}--${r.type??"default"}`]=!0),r.size&&(x[`${e}--${r.size}`]=!0),x}),s=l.computed(()=>{const x={},L=r.textColor??r.color;return L&&(x.color=L),x}),c=(x,L)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const q=r.highlightFilter;if(x.indexOf(q)!==-1){const k=x.replace(new RegExp(q,"g"),`<span>${q}</span>`);L.innerHTML=k,L.class["is-highlight"]=!0,B=l.h(r.tag,L)}}else if(typeof r.highlightFilter=="function"){const q=r.highlightFilter(x);q&&(L.innerHTML=q,L.class["is-highlight"]=!0,B=l.h(r.tag,L))}return B},d=x=>{a.emit("click",x)};let m="";const v=()=>{const x=i.value;if(!x)return;const L=x.clientWidth;Sh(x,B=>{const q=x.innerHTML??"";de(q)||B<L||(m?o?.show(x,q,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show(x,q,{type:"text",showArrow:r.showArrow},!0)??"")})},p=()=>{m&&o?.hide(m)};let y=null;const f=x=>{y||(y=setTimeout(()=>{v(),y=null},r.showAfter??0))},h=x=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{p()},r.hideAfter??0)},D=()=>{const x=i.value;x&&(x.addEventListener("mouseover",f),x.addEventListener("mouseleave",h))},w=()=>{const x=i.value;x&&(x.removeEventListener("mouseover",f),x.removeEventListener("mouseleave",h))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||D()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const x={onClick:d,class:u.value,style:s.value,ref:i};let L=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const k=a.slots.default();if(Array.isArray(k)&&k.length===1){const b=k[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const j=Ce(r.digits),g=Ce(r.decimalLength),R=ue(r.autoPadding);let G=`${k[0].children}`,O=G.split("").reverse().join("");O=un(O,g,R,j,r.separator),G=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(L=c(G,x)),L||(x.innerHTML=G,L=l.h(r.tag,x))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const k=a.slots.default();if(Array.isArray(k)&&k.length===1){const b=k[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const j=`${k[0].children}`;L=c(j,x),L||(x.innerHTML=j,L=l.h(r.tag,x))}}}L||(L=l.h(r.tag,x,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return L;let q=null;if(r.icon){const k={[`${e}__mark-wrap`]:!0};r.type&&(k[`${e}__mark-wrap--${r.type}`]=!0);const b={},j=r.color;j&&(b.color=j);const g={class:k,style:b};q=l.h("view",g,l.h(r.icon))}else if(a.slots.mark){const k={[`${e}__mark-wrap`]:!0};r.type&&(k[`${e}__mark-wrap--${r.type}`]=!0);const b={},j=r.color;j&&(b.color=j);const g={class:k,style:b};q=l.h("view",g,{default:a.slots.mark})}else{const k={[`${e}__mark`]:!0};r.type&&(k[`${e}__mark--${r.type??"default"}`]=!0);const b={},j=r.color;j&&(b["background-color"]=j);const g={class:k,style:b};q=l.h("view",g)}const P={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",P,[q,L])}}}}const{componentName:$h,create:Nh,scope:Eh}=ae("text"),to=Nh(Ch($h,Eh,Re,!1)),kh={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 Ph(e,n,o){return{props:{...kh},emits:["click","update:modelValue"],setup(t,{emit:r}){const a=l.computed(()=>{const m={[`${e}`]:!0};return t.disabled?m[`${e}__disabled`]=!0:m[`${e}__${t.type}`]=!0,m}),i=he(t,"modelValue"),u=l.computed(()=>i.value?t.expandText??"":t.collapseText??""),s=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(u.value){const f={class:s.value},h=l.h("span",f,[u.value]);m.push(h)}const v={class:c.value},p=o(t.icon,v);return p&&m.push(p),l.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:Ih,create:Oh,scope:Vh}=ae("more-button"),Dh=(e,n)=>(e=e??Ie.ArrowUp,l.h(T.ElIcon,n,{default:()=>[l.h(e)]})),no=Oh(Ph(Ih,Vh,Dh));function Rh(e){e.stopPropagation()}let Fh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bt(),t=(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),Rh(r),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{t(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Ah(e,n){return new Fh(e,n)}const Mh={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]}},Lh=(e,n,o,t=!1)=>({props:{...Mh},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 w=[`${e}`];return r.customClass&&w.push(r.customClass),w}),c=l.computed(()=>{const w={};return de(u.top)||(w.top=u.top),de(u.right)||(w.right=u.right),de(u.bottom)||(w.bottom=u.bottom),de(u.left)||(w.left=u.left),de(r.width)||(w.width=r.width),de(r.height)||(w.height=r.height),de(r.color)||(w.color=r.color),de(r.background)||(w.background=r.background),de(r.borderRadius)||(w["border-radius"]=r.borderRadius),de(r.zIndex)||(w["z-index"]=r.zIndex),w}),d=l.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},v=l.ref(null),p=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},y={x:0,y:0},D=Ah(w=>{if(!v.value)return;const x=v.value;p(),u.left=x.offsetLeft,u.top=x.offsetTop,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`,x.style.right=null,x.style.bottom=null,y.x=u.left,y.y=u.top},w=>{if(!v.value)return;const x=v.value;p(),u.left=y.x+w.x,u.top=y.y+w.y,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&v.value){const w=[v.value];D.open(w)}}),l.onBeforeUnmount(()=>{r.draggable&&v.value&&D.close()}),()=>{let w=[];const x=typeof a.default=="function"?a.default():[];if(x&&x.length>0)w=x;else{const B=l.h(o,{class:d.value});w.push(B)}const L={ref:B=>{v.value=B},class:s.value,style:c.value,onClick:m};return l.h("view",L,w)}}}),{componentName:Bh,create:qh,scope:_h}=ae("floating-button"),lo=qh(Lh(Bh,_h,Vf,!1));function jh(e){return e===window}const ga=e=>{const n=l.unref(e);if(jh(n)){const o=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:o,bottom:t,width:o,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:zh,create:Hh}=ae("tour"),Kh=Hh({components:{Close:Ie.Close,ElPopover:T.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=zh,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:y,maskWidth:f,maskHeight:h}=e,{width:D,height:w,left:x,top:L}=r.value,B=e.steps[t.active].offset??y,q=[x+D/2,L+w/2],P=Number(f||D),k=Number(h||w);return{width:`${P+ +B.left+B.right}px`,height:`${k+B.top+B.bottom}px`,top:`${q[1]-k/2-+B.top}px`,left:`${q[0]-P/2-+B.left}px`}}),u=y=>{y=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,d()}),n("change",t.active)},s=y=>y.popoverWidth??e.width,c=y=>y.location??e.location,d=()=>{const y=document.querySelector(`${e.steps[t.active].target}`),f=ga(y);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},m=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&m()},p=(y,f=0)=>{y&&d(),e.steps,t.active=f,t.showTour=y,t.showPopup=y};return l.onMounted(()=>{p(e.modelValue,e.current)}),l.watch(()=>e.modelValue,y=>{p(y)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:v}}}),Wh={key:0,class:"fox-tour__content"},Yh={key:0,class:"fox-tour__content-top"},Uh={class:"fox-tour__content-inner"},Gh={class:"fox-tour__content-bottom"},Xh={class:"fox-tour__content-bottom-init"},Zh={class:"fox-tour__content-bottom-operate"},Qh={key:1,class:"fox-tour__content fox-tour__content-tile"},Jh={class:"fox-tour__content-inner"};function em(e,n,o,t,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:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,d)=>(l.openBlock(),l.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(l.openBlock(),l.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Wh,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Yh,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Uh,l.toDisplayString(c.content),1),l.createElementVNode("div",Gh,[l.createElementVNode("div",Xh,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Zh,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=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:n[3]||(n[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",Qh,[l.createElementVNode("div",Jh,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const oo=Xe(Kh,[["render",em]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class tm{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bt(),t=(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),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{t(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function sr(e,n){return new tm(e,n)}const ur=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let vt=[];const cr=e=>{const n=e;n.key==="Escape"&&vt.forEach(o=>o(n))},nm=e=>{l.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",cr),ur&&vt.push(e)}),l.onBeforeUnmount(()=>{vt=vt.filter(n=>n!==e),vt.length===0&&ur&&document.removeEventListener("keydown",cr)})},Wn="fox-focus-trap.focus-after-trapped",Yn="fox-focus-trap.focus-after-released",lm="fox-focus-trap.focusout-prevented",fr={cancelable:!0,bubbles:!1},om={cancelable:!0,bubbles:!1},dr="foxFocusAfterTrapped",hr="foxFocusAfterReleased",rm=Symbol("foxFocusTrap"),ro=l.ref(),Vn=l.ref(0),ao=l.ref(0);let zt=0;const va=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const r=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},am=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},mr=(e,n)=>{for(const o of e)if(!am(o,n))return o},im=e=>{const n=va(e),o=mr(n,e),t=mr(n.reverse(),e);return[o,t]},sm=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ao.value=window.performance.now(),e!==o&&sm(e)&&n&&e.select()}};function gr(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const um=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=gr(e,t),e.unshift(t)},remove:t=>{e=gr(e,t),e[0]?.resume?.()}}},cm=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(lt(t,n),document.activeElement!==o)return},vr=um(),fm=()=>Vn.value>ao.value,Ht=()=>{ro.value="pointer",Vn.value=window.performance.now()},pr=()=>{ro.value="keyboard",Vn.value=window.performance.now()},dm=()=>(l.onMounted(()=>{zt===0&&(document.addEventListener("mousedown",Ht),document.addEventListener("touchstart",Ht),document.addEventListener("keydown",pr)),zt++}),l.onBeforeUnmount(()=>{zt--,zt<=0&&(document.removeEventListener("mousedown",Ht),document.removeEventListener("touchstart",Ht),document.removeEventListener("keydown",pr))}),{focusReason:ro,lastUserFocusTimestamp:Vn,lastAutomatedFocusTimestamp:ao}),Kt=e=>new CustomEvent(lm,{...om,detail:e}),{create:hm}=ae("focus-trap"),mm={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"}},gm=hm({props:mm,emits:[dr,hr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=dm();nm(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:D,ctrlKey:w,metaKey:x,currentTarget:L,shiftKey:B}=f,{loop:q}=e,P=h==="Tab"&&!D&&!w&&!x,k=document.activeElement;if(P&&k){const b=L,[j,g]=im(b);if(j&&g){if(!B&&k===g){const G=Kt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||(f.preventDefault(),q&&lt(j,!0))}else if(B&&[j,b].includes(k)){const G=Kt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||(f.preventDefault(),q&&lt(g,!0))}}else if(k===b){const G=Kt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||f.preventDefault()}}};l.provide(rm,{focusTrapRef:t,onKeydown:s}),l.watch(()=>e.focusTrapEl,f=>{f&&(t.value=f)},{immediate:!0}),l.watch([t],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",m),f.addEventListener("focusout",v)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",v))});const c=f=>{o(dr,f)},d=f=>o(hr,f),m=f=>{const h=l.unref(t);if(!h)return;const D=f.target,w=f.relatedTarget,x=D&&h.contains(D);ue(e.trapped)||w&&h.contains(w)||(r=w),x&&o("focusin",f),!u.paused&&ue(e.trapped)&&(x?a=D:lt(a,!0))},v=f=>{const h=l.unref(t);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const D=f.relatedTarget;!ml(D)&&!h.contains(D)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const w=Kt({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||lt(a,!0)}},0)}else{const D=f.target;D&&h.contains(D)||o("focusout",f)}};async function p(){await l.nextTick();const f=l.unref(t);if(f){vr.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const w=new Event(Wn,fr);f.addEventListener(Wn,c),f.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let x=e.focusStartEl;Cr(x)||(lt(x),document.activeElement!==x&&(x="first")),x==="first"&&cm(va(f),!0),(document.activeElement===h||x==="container")&&lt(f)})}}}function y(){const f=l.unref(t);if(f){f.removeEventListener(Wn,c);const h=new CustomEvent(Yn,{...fr,detail:{focusReason:i.value}});f.addEventListener(Yn,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!fm())&&lt(r??document.body,!0),f.removeEventListener(Yn,c),vr.remove(u)}}return l.onMounted(()=>{ue(e.trapped)&&p(),l.watch(()=>e.trapped,f=>{ue(f)?p():y()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&y()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:vm,create:pm}=ae("floating-window"),ym=Symbol.for("InnerPageScopeKey"),bm=Symbol.for("PageWrapperKey"),xm={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}},wm=pm({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:gm},props:{...xm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=vm,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,I=>{t.value=I});const a=l.computed(()=>t.value===!1?!1:!k.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 I=["fox-floating-window"];return e.customClass&&I.push(e.customClass),I}),m=l.computed(()=>{const I={};return ct(i.value)?I.left="auto":I.left=De(i.value),ct(u.value)?I.top="auto":I.top=De(u.value),ct(s.value)?I.right="auto":I.right=De(s.value),ct(c.value)?I.bottom="auto":I.bottom=De(c.value),ct(e.zIndex)||(I["z-index"]=De(e.zIndex)),ct(q.value)||(I.height=q.value),ct(P.value)||(I.width=P.value),I}),v=l.computed(()=>e.closeIcon??Ie.Close),p=l.computed(()=>e.collapseIcon??Ie.ArrowUp),y=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??"展开"),D=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!k.value,"is-collapse":k.value})),x=l.ref(),L=l.ref(null),B=l.ref(null),q=l.computed(()=>De(e.height)||""),P=l.computed(()=>De(e.width)||""),k=l.ref(ue(e.collapse)),b=(I,z=!0)=>{k.value!==I&&(k.value=I,I?C():F(),n("update:collapse",I),I&&typeof R.onHide=="function"?R.onHide():!I&&typeof R.onShow=="function"&&R.onShow())};l.watch(()=>e.collapse,I=>{b(I)});const j=()=>{g()},g=I=>{I=I??!k.value,b(I)};l.provide(ym,!0);const R={setCollapse:b,setFixedNavVisible:I=>{M.value=I}};l.provide(bm,R);const G=()=>{typeof R.beforeClose=="function"?R.beforeClose(()=>{t.value=!1}):t.value=!1},O=l.ref(null),N=l.computed(()=>!e.fixedNavTeleport),A=l.computed(()=>{const I=["fox-floating-window__fixednav"];return e.expandClass&&I.push(e.expandClass),e.collapsePosition==="left"?I.push("is-left"):e.collapsePosition==="right"&&I.push("is-right"),I}),_=l.ref(""),Y=l.computed(()=>{const I={};return _.value?I.top=_.value:e.collapseTop&&(I.top=e.collapseTop),I}),J=l.ref(k.value),M=l.computed({set:I=>{J.value=I},get:()=>t.value===!1?!1:J.value});let te=null;const $=()=>{typeof te=="function"&&(te(),te=null)},C=()=>{O.value&&O.value.classList.add("slide-in"),M.value=!0,te=()=>{O.value&&O.value.classList.remove("slide-in")}},F=()=>{O.value&&O.value.classList.add("slide-out"),te=()=>{O.value&&O.value.classList.remove("slide-out"),M.value=!1}},V=()=>{i.value=null,u.value=null,s.value=null,c.value=null},S={x:0,y:0},ne=sr(I=>{if(!x.value)return;const z=x.value;if(V(),e.origin==="left-top")i.value=z.offsetLeft,u.value=z.offsetTop,S.x=i.value,S.y=u.value;else if(e.origin==="left-bottom"){const Z=document.documentElement.clientHeight||document.body.clientHeight;i.value=z.offsetLeft,c.value=Z-(z.offsetTop+z.offsetHeight),S.x=i.value,S.y=c.value}else if(e.origin==="right-bottom"){const Z=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=Z-(z.offsetLeft+z.offsetWidth),c.value=le-(z.offsetTop+z.offsetHeight),S.x=s.value,S.y=c.value}else{const Z=document.documentElement.clientWidth||document.body.clientWidth;s.value=Z-(z.offsetLeft+z.offsetWidth),u.value=z.offsetTop,S.x=s.value,S.y=u.value}},I=>{if(!x.value)return;const z=x.value;V(),e.origin==="left-top"?(i.value=S.x+I.x,u.value=S.y+I.y,z.style.left=De(i.value),z.style.top=De(u.value)):e.origin==="left-bottom"?(i.value=S.x+I.x,c.value=S.y-I.y,z.style.left=De(i.value),z.style.bottom=De(c.value)):e.origin==="right-bottom"?(s.value=S.x-I.x,c.value=S.y-I.y,z.style.right=De(s.value),z.style.bottom=De(c.value)):(s.value=S.x-I.x,u.value=S.y+I.y,z.style.right=De(s.value),z.style.top=De(u.value))}),U={x:0,y:0},K=sr(I=>{O.value&&(U.x=O.value.offsetLeft,U.y=O.value.offsetTop)},I=>{if(!O.value)return;const z=U.y+I.y;_.value=`${z}px`}),X=()=>{if(x.value){const I=x.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=I}};return l.onMounted(()=>{if(e.draggable&&x.value){const I=[];L.value&&I.push(L.value),e.footerDraggable&&(X(),B.value&&I.push(B.value)),ne.open(I)}e.collapse===!0&&b(e.collapse,!1),O.value&&K.open(O.value)}),l.onBeforeUnmount(()=>{e.draggable&&L.value&&ne.close(),O.value&&K.close()}),{classes:d,styles:m,isShow:a,closeIcon:v,onClose:G,dialogRef:x,headerRef:L,onClickToggle:j,collapseIcon:p,collapseText:y,collapseTextClasses:D,collapseIconClasses:w,expandIcon:f,expandText:h,isShowFixedNav:M,fixedNavRef:O,fixedNavClasses:A,fixedNavStyles:Y,onAnimationEnd:$,teleportDisabled:r,fixedNavTeleportDisabled:N}}}),Sm={ref:"headerRef",class:"fox-floating-window__header"},Tm={class:"fox-floating-window__title"},Cm={class:"fox-floating-window__tools"},$m={class:"fox-floating-window__body"},Nm={class:"fox-floating-window__fixednav__text"};function Em(e,n,o,t,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",Sm,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",Tm,l.toDisplayString(e.title),1),l.createElementVNode("div",Cm,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",$m,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Nm,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const io=Xe(wm,[["render",Em]]),km={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 Pm(e,n,o=!1){return{props:{...km},emits:["update:visible"],setup(t,{emit:r,slots:a,expose:i}){const u=l.ref({top:null,right:null,bottom:null,left:null}),s=l.ref(0),c=l.ref(0),d=l.ref(0),m=l.ref(0),v=l.ref(t.placement),p=l.ref(!1),y=l.ref(!1),f=l.ref(null),h=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,D=(M,te,$,C,F,V,S,H=!0)=>{const Q=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,U=M.split("-");let W=[];H?U[0]==="top"?W=["top","bottom","right","left"]:U[0]==="bottom"?W=["bottom","top","right","left"]:U[0]==="left"?W=["left","top","bottom","right"]:U[0]==="right"&&(W=["right","top","bottom","left"]):W=[M[0]];const E={top:null,right:null,bottom:null,left:null},K=[];for(let X=0;X<W.length;X++){const I=W[X];if(K[0]=I,U[1]&&(K[1]=U[1]),I==="top"){const z=$-S-t.arrowSize/2-t.offset;if(z>=0){E.top=z;let Z=0;U[1]==="start"?Z=te:U[1]==="end"?Z=te+C-V:Z=te+C/2-V/2;const le=Q-Z-V;le<0?(Z+=le,x.value=-le):x.value=0,E.left=Z<0?0:Z;break}}else if(I==="bottom"){const z=$+F+t.arrowSize/2+t.offset;if(z+S<=ne){E.top=z;let Z=0;U[1]==="start"?Z=te:U[1]==="end"?Z=te+C-V:Z=te+C/2-V/2;const le=Q-Z-V;le<0?(Z+=le,x.value=-le):x.value=0,E.left=Z<0?0:Z;break}}else if(I==="left"){const z=te-V-t.arrowSize/2-t.offset;if(z>=0){E.left=z;let Z=0;U[1]==="start"?Z=$:U[1]==="end"?Z=$+F-S:Z=$+F/2-S/2,E.top=Z<0?0:Z;break}}else if(I==="right"){const z=te+C+t.arrowSize/2+t.offset;if(z+V<=Q){E.left=z;let Z=0;U[1]==="start"?Z=$:U[1]==="end"?Z=$+F-S:Z=$+F/2-S/2,E.top=Z<0?0:Z;break}}}return{bestPlacement:K.join("-"),bestInsetRect:E}},w=()=>{const M=t.visible,te=t.autoFit;if(!at||M===!1)return;if(t.reference){const S=h(),H=Tl(S);s.value=H.x,c.value=H.y,d.value=S.offsetWidth,m.value=S.offsetHeight}else t.referenceInset&&(s.value=t.referenceInset.left,c.value=t.referenceInset.top,d.value=t.referenceInset.right-t.referenceInset.left,m.value=t.referenceInset.bottom-t.referenceInset.top);const $=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:V}=D(t.placement,s.value,c.value,d.value,m.value,$,C,te);v.value=F,u.value=V},x=l.ref(0),L=Ke(()=>{w()},10),B=l.ref(t.visible);l.watch([()=>t.visible],([M])=>{B.value=M,M?(p.value=M,setTimeout(()=>{w(),y.value=!0},0)):y.value=!1});const q=l.computed(()=>B.value&&P.value),P=l.ref(!0),k=Ke(M=>{const te=M[0];te&&(P.value=te.isIntersecting)},10),b=new IntersectionObserver(k);l.watch([()=>t.reference,()=>t.referenceInset],([M,te],[$,C])=>{!M&&!te||(setTimeout(()=>{w()},0),t.autoFit&&($&&(It.unwatch($,L),b.unobserve($)),M&&(It.watch(M,L),b.observe(M))))},{immediate:!0}),l.onBeforeUnmount(()=>{t.reference&&(It.unwatch(t.reference,L),b.unobserve(t.reference),b.disconnect())});const j=l.computed(()=>{const M={[e]:!0};return v.value.startsWith("top")?M["is-top"]=!0:v.value.startsWith("right")?M["is-right"]=!0:v.value.startsWith("bottom")?M["is-bottom"]=!0:v.value.startsWith("left")&&(M["is-left"]=!0),M[`is-${t.effect}`]=!0,!y.value&&q.value&&(M["is-opacity"]=!0),y.value&&q.value&&(M["is-show"]=!0),q.value||(M["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(M[`${t.customClass}`]=!0),M}),g=l.computed(()=>{const M={};return u.value.top!==null&&(M.top=`${u.value.top}px`),u.value.right!==null&&(M.right=`${u.value.right}px`),u.value.bottom!==null&&(M.bottom=`${u.value.bottom}px`),u.value.left!==null&&(M.left=`${u.value.left}px`),t.width&&(M.width=t.width),t.zIndex&&(M["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(M,t.customStyle),M}),R=()=>{B.value=!1,r("update:visible",!1)},G=()=>{if(!t.showOverlay)return null;const M={class:`${e}__overlay`,onClick:R};return l.h("div",M)},O=()=>{let M=null;return a.title?M=l.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(M=l.h("div",{class:`${e}__title`},[t.title])),M},N=l.computed(()=>({[`${e}__arrow`]:!0})),A=l.computed(()=>{const M={};return t.showArrow?(M.width=`${t.arrowSize}px`,M.height=`${t.arrowSize}px`,v.value==="top"?(M.left="50%",M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="top-start"?(M.left=`${t.arrowOffset+x.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="top-end"?(M.right=`${t.arrowOffset-x.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):v.value==="right"?(M.left="0",M.top="50%",M.transform="translate(-50%, -50%)"):v.value==="right-start"?(M.left="0",M.top=`${t.arrowOffset}px`,M.transform="translate(-50%, 50%)"):v.value==="right-end"?(M.left="0",M.bottom=`-${t.arrowOffset}px`,M.transform="translate(-50%, 50%)"):v.value==="bottom"?(M.left="50%",M.top="0",M.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(M.left=`${t.arrowOffset+x.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(M.right=`${t.arrowOffset-x.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):v.value==="left"?(M.right="0",M.top="50%",M.transform="translate(50%, -50%)"):v.value==="left-start"?(M.right="0",M.top=`${t.arrowOffset}px`,M.transform="translate(50%, -50%)"):v.value==="left-end"&&(M.right="0",M.bottom=`-${t.arrowOffset}px`,M.transform="translate(50%, -50%)"),M):{display:"none"}}),_=()=>{const M={class:N.value,style:A.value};return l.h("div",M)},Y=()=>{B.value===!1&&(p.value=!1)},J=M=>{if(!f.value||B.value===!1)return;const{relatedTarget:te}=M;f.value.contains(te)||(B.value=!1,r("update:visible",!1))};return i({doLayout:w}),()=>{if(!p.value)return null;const M=[],te=G();te&&M.push(te);const $=[],C=O();if(C&&$.push(C),a.default){const H=a.default();$.push(H)}const F=_();F&&$.push(F);const V={ref:f,class:j.value,style:g.value,onAnimationend:Y};t.leaveHide&&(V.onMouseleave=J);const S=l.h("div",V,{default:()=>$});return M.push(S),M}}}}const{componentName:Im,create:Om,scope:Vm}=ae("popover-dialog"),so=Om(Pm(Im,Vm,!1));function Dm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1}},setup(o,{slots:t}){return _r(o.name,()=>o.config),Tr(o.innerPageScope)||l.provide(Xr,o.innerPageScope),()=>typeof t.default=="function"?t.default():null}}}const{create:Rm}=ae("domain-provider"),uo=Rm(Dm()),Fm={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 Am(e,n){return{inheritAttrs:!1,props:Fm,setup(o,{slots:t}){if(at&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,p)=>{if(d===null){a.set(v,{visible:null,callback:p});return}r.has(v)&&d.unobserve(v),r.set(v,{visible:null,callback:p}),d.observe(v)},u=v=>{if(d===null){a.delete(v);return}r.has(v)&&(r.delete(v),d.unobserve(v))};let s=o.initialVisibleObserverSize;Ti({acquire:()=>{const v=s>0;return s--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(v,p,y)=>{d=new IntersectionObserver(f=>{for(let h of f){let D=!1;h.intersectionRatio>0&&(D=!0);const w=r.get(h.target);if(w)try{if(o.loadPolicy==="lazy"&&!D&&w.visible!==null)return;w.visible=D,w.callback(D)}catch(x){console.error(x)}}},{root:v,rootMargin:p,threshold:y}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,p])=>{if(p||!v||d)return;let y=null;typeof v=="string"?y=document.querySelector(v):y=v,y&&m(y,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:Mm}=ae("rolling-provider"),co=Mm(Am()),Lm=[pl,bl,xl,wl,Sl,Ne,En,Cl,Mt,$l,Nl,El,kl,Pl,Il,Ol,Vl,Dl,Rl,Fl,kn,Al,Ml,Ll,Bl,ql,_l,jl,zl,Pn,In,Kl,Wl,Yl,Ul,On,Gl,Xl,Zl,Ql,Jl,Rt,Nn,eo,to,no,lo,oo,io,so,uo,co],Bm=new li(Lm,[ai],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>T.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>T.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>T.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>T.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>T.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>T.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>T.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>T.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>T.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>T.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>T.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>T.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>T.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>T.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>T.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>T.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>T.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>T.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>T.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>T.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>T.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>T.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>T.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>T.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>T.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>T.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>T.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>T.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>T.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>T.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>T.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>T.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>T.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>T.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>T.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>T.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>T.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>T.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>T.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>T.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>T.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>T.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>T.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>T.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>T.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>T.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>T.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>T.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>T.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>T.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>T.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>T.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>T.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>T.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>T.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>T.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>T.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>T.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>T.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>T.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>T.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>T.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>T.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>T.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>T.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>T.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>T.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>T.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>T.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>T.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>T.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>T.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>T.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>T.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>T.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>T.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>T.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>T.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>T.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>T.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>T.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>T.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>T.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>T.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>T.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>T.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>T.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>T.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>T.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>T.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>T.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>T.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>T.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>T.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>T.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>T.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>T.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>T.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>T.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>T.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>T.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>T.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>T.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>T.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>T.ElWatermark});exports.AutocompleteItem=Dl;exports.Broadcast=gl;exports.BroadcastKey=be;exports.CascaderItem=Vl;exports.CheckboxItem=Ll;exports.Content=wl;exports.DataItemsKey=gt;exports.DateItem=El;exports.DateUtils=Be;exports.DialogItem=Ul;exports.Domain=gn;exports.DomainKey=Le;exports.DomainProvider=uo;exports.FloatingButton=lo;exports.FloatingWindow=io;exports.FooterBar=xl;exports.FoxAutocompleteItem=Dl;exports.FoxCascaderItem=Vl;exports.FoxCheckboxItem=Ll;exports.FoxContent=wl;exports.FoxDateItem=El;exports.FoxDialogItem=Ul;exports.FoxDomainProvider=uo;exports.FoxFloatingButton=lo;exports.FoxFloatingWindow=io;exports.FoxFooterBar=xl;exports.FoxGroup=Sl;exports.FoxGroupSetting=jl;exports.FoxHeaderBar=bl;exports.FoxHintText=Mt;exports.FoxIndicator=eo;exports.FoxInfiniteLoading=Ql;exports.FoxInputItem=$l;exports.FoxInputNumberItem=Ol;exports.FoxItem=Ne;exports.FoxMapping=Rt;exports.FoxMoneyItem=Il;exports.FoxMoreButton=no;exports.FoxOverLay=On;exports.FoxPage=pl;exports.FoxPopoverDialog=so;exports.FoxPopup=Gl;exports.FoxPrice=Nn;exports.FoxPullRefresh=Jl;exports.FoxRadioItem=Ml;exports.FoxRateItem=Bl;exports.FoxRollingProvider=co;exports.FoxRowItem=Cl;exports.FoxSearchBar=Zl;exports.FoxSelectItem=Nl;exports.FoxSlotItem=En;exports.FoxStepsBar=Yl;exports.FoxSwitchItem=ql;exports.FoxTableItem=Al;exports.FoxTableMappingColumn=Rl;exports.FoxTableRadioColumn=Fl;exports.FoxTableSetting=kn;exports.FoxTabsBar=Pn;exports.FoxTabsContainer=In;exports.FoxTabsFrame=Wl;exports.FoxTabsPane=Kl;exports.FoxText=to;exports.FoxTimeItem=kl;exports.FoxTimeSelectItem=Pl;exports.FoxToast=Xl;exports.FoxTour=oo;exports.FoxTreeItem=zl;exports.FoxTreeSelectItem=_l;exports.Group=Sl;exports.GroupSetting=jl;exports.HeaderBar=bl;exports.HintText=Mt;exports.Indicator=eo;exports.InfiniteLoading=Ql;exports.InputItem=$l;exports.InputNumberItem=Ol;exports.Item=Ne;exports.Mapping=Rt;exports.MoneyItem=Il;exports.MoreButton=no;exports.OverLay=On;exports.Page=pl;exports.PopoverDialog=so;exports.Popup=Gl;exports.Price=Nn;exports.PriorityPolicy=qe;exports.PullRefresh=Jl;exports.RadioItem=Ml;exports.RateItem=Bl;exports.RollingProvider=co;exports.RowItem=Cl;exports.SearchBar=Zl;exports.SelectItem=Nl;exports.SlotItem=En;exports.StepsBar=Yl;exports.SwitchItem=ql;exports.TableItem=Al;exports.TableMappingColumn=Rl;exports.TableRadioColumn=Fl;exports.TableSetting=kn;exports.TabsBar=Pn;exports.TabsContainer=In;exports.TabsFrame=Wl;exports.TabsPane=Kl;exports.Text=to;exports.TimeItem=kl;exports.TimeSelectItem=Pl;exports.Toast=Xl;exports.Tour=oo;exports.TreeItem=zl;exports.TreeSelectItem=_l;exports.UniqueID=ea;exports.ValidateSchema=Lr;exports.ValidateSchemaKey=Ue;exports.cancelRaf=wa;exports.clearNonNumber=Da;exports.clone=tl;exports.compareTo=Qn;exports.createBroadcast=dn;exports.createValidateSchema=hn;exports.debounce=Ke;exports.debounceRef=Wa;exports.decimalLength=Dr;exports.default=Bm;exports.defineBroadcast=Ma;exports.defineConfigDomain=_r;exports.defineDataItem=jr;exports.defineDomain=vl;exports.defineItem=Ee;exports.definePageState=Hr;exports.defineSimpleItem=zr;exports.deleteGlobalValidator=ja;exports.disabledProperty=Me;exports.divide=dl;exports.excludeProps=Oe;exports.extend=ht;exports.floatData=Aa;exports.getGlobalValidateCheckEvents=Fr;exports.getGlobalValidateResetEvents=Mr;exports.getPageContentAreaHeight=on;exports.getPageContentAreaWidth=rn;exports.getPageFooterAreaHeight=yn;exports.getPageHeaderAreaHeight=pn;exports.getRootDomain=pt;exports.hasSymbol=Er;exports.includeProps=Vt;exports.indexOf=Ra;exports.integerLength=Vr;exports.isArray=Ta;exports.isArrayLike=Pr;exports.isBrowser=at;exports.isDate=Na;exports.isESModule=ka;exports.isEmptyString=de;exports.isEqual=tt;exports.isFunction=Jn;exports.isHidden=fn;exports.isInnerPage=Ga;exports.isMap=Ca;exports.isNil=ml;exports.isNumberString=Or;exports.isObject=Ge;exports.isPlainObject=el;exports.isPromise=$r;exports.isRegExp=nl;exports.isSet=$a;exports.isString=Cr;exports.isSubPage=Xa;exports.isSymbol=Ea;exports.isTouch=Lt;exports.isUndefined=Tr;exports.isWindow=kr;exports.lastIndexOf=Fa;exports.makeArray=Va;exports.merge=Ir;exports.multiply=xr;exports.negate=wr;exports.nextTick=Ia;exports.numberFormat=un;exports.objectToString=Nr;exports.once=Ya;exports.overrideGlobalValidateHandler=qa;exports.property=Fe;exports.raf=hl;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=za;exports.setGlobalValidateHandler=Ba;exports.setGlobalValidateMessages=Ka;exports.setGlobalValidateResetEvents=Ha;exports.setGlobalValidator=_a;exports.throttle=qr;exports.toBoolean=ue;exports.toNumber=Ce;exports.toPadding=Qe;exports.toPx=me;exports.toPxDesc=xe;exports.toTypeString=cn;exports.toValue=he;exports.tryTimes=mn;exports.typeOf=nn;exports.unNumberFormat=Sr;exports.updatePageState=ll;exports.useBroadcast=kt;exports.useDomain=it;exports.useExpose=Se;exports.useInnerSize=bn;exports.usePageState=vn;exports.usePosition=Tl;exports.useRawTouch=Bt;exports.useRect=ga;exports.useSize=yl;exports.useTouch=rd;exports.valueLength=At;