@fox-js/foxui-pc 4.0.1-133 → 4.0.1-134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,dt,S,ke,qe){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon Aug 24 2026 11:14:21 GMT+0800 (China Standard Time)
3
- */const Kt=window,la=typeof window<"u";function oa(){return typeof Kt<"u"?Kt.requestAnimationFrame||Kt.webkitRequestAnimationFrame||function(e){Kt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ra(e){la?cancelAnimationFrame(e):clearTimeout(e)}const Jl=oa();function Wt(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=Ie(e),n=Ie(n),[e,n]=Nn(Ie(e),Ie(n)),o==1&&(t==1?e=$n(e):n=$n(n));let r=eo(e,n);return o?o==2?"-"+Ie(r):e.length<r.length?Ie(r.substring(1)):"-"+Ie($n(r)):Ie(r)}function $n(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 eo(n,a)}function Ie(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 Nn(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 eo(e,n){[e,n]=Nn(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 we=function(e){return 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}({});function Et(e,n=0,o=we.HALF_EVEN){if(o===we.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 u=a.substr(0,a.length-n);return e=u+"."+a.substr(a.length-n)+i,u=Et(e,0,o),(t?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return a.length,to(r[1],a,t,o)?(t?"-":"")+En(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 s=r[1].substring(n);return s&&to(s,i,t,o)&&(i=En(i),i.length>n)?(t?"-":"")+En(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function to(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===we.DOWN||!o&&t===we.FLOOR||o&&t===we.CEILING)return!1;if(t===we.UP||o&&t===we.FLOOR||!o&&t===we.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 we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function En(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 kn(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=kt(e),n=kt(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=kt(e.replace(".","")),n=kt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,s=0,u=[],c=i-1,f="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let $=n.length-1;$>=c&&$>=0;$--)u[$]>-1&&u[$]<e.length&&(v+=parseInt(e[u[$]--])*parseInt(n[$]));v+=s,s=Math.floor(v/10),f=v%10+f,c--}return f=kt(aa(f,a)),o==1&&(f="-"+f),f}function aa(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 kt(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 In(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=Ie(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ie(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ie(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=Ie(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=Ie(e.replace(".","")))}let a=0,i=n.length,s="",u=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),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(u)>=parseInt(n);)u=Wt(u,"-"+n),c++;s+=c,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(t==1?"-":"")+Ie(Et(s,o-2))}function On(e,n){return e=e.toString(),n=n.toString(),n=Vn(n),Wt(e,n)}function Vn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function no(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),lo(e),lo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=On(e,kn(n,Et(In(e,n),0,we.FLOOR)));return o+t}function lo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function oo(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]=Nn(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}var Yt=class he{value;static RoundingModes=we;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=Ie(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+Ie(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=he.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=he.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="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=n.substring(s,s+o)+(s<a-o&&s>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return he.getPrettyValue(this.value,n,o)}static round(n,o=0,t=we.HALF_EVEN){if(n=he.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Et(n,o,t)}round(n=0,o=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new he(Et(this.value,n,o))}static floor(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,we.FLOOR)}static ceil(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,we.CEILING)}static add(n,o){return n=he.validate(n),o=he.validate(o),Wt(n,o)}add(n){return new he(Wt(this.value,n.getValue()))}static subtract(n,o){return n=he.validate(n),o=he.validate(o),On(n,o)}subtract(n){return new he(On(this.value,n.getValue()))}static multiply(n,o){return n=he.validate(n),o=he.validate(o),kn(n,o)}multiply(n){return new he(kn(this.value,n.getValue()))}static divide(n,o,t){return n=he.validate(n),o=he.validate(o),In(n,o,t)}divide(n,o){return new he(In(this.value,n.getValue(),o))}static modulus(n,o){return n=he.validate(n),o=he.validate(o),no(n,o)}modulus(n){return new he(no(this.value,n.getValue()))}static compareTo(n,o){return n=he.validate(n),o=he.validate(o),oo(n,o)}compareTo(n){return oo(this.value,n.getValue())}static negate(n){return n=he.validate(n),Vn(n)}negate(){return new he(Vn(this.value))}};function ro(e,n){return Yt.multiply(`${e}`,`${n}`)}function Dn(e,n,o=8){return Yt.divide(`${e}`,`${n}`,o)}function Fn(e,n){return e=`${e}`,n=`${n}`,Yt.compareTo(e,n)}function ao(e){return Yt.negate(e)}function Ut(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 s=a,u="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let f;if(t>0){let d="",v=s.split("").reverse();for(let $=0;$<v.length;$++)d+=v[$]+(($+1)%t==0&&$+1!=v.length?r:"");u.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function io(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const Rn=Jl,ia=Array.isArray,sa=e=>Gt(e)==="[object Map]",ua=e=>Gt(e)==="[object Set]",ca=e=>e instanceof Date,An=e=>typeof e=="function",so=e=>typeof e=="string",fa=e=>typeof e=="symbol",tt=e=>e!==null&&typeof e=="object",uo=e=>tt(e)&&An(e.then)&&An(e.catch),co=Object.prototype.toString,Gt=e=>co.call(e),Mn=e=>Gt(e)==="[object Object]",fo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||fo&&e[Symbol.toStringTag]==="Module"}const ha=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 s=n[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},n[i]=ht(r,c,u)}else u!==void 0&&(n[i]=u)}}return n}function Ln(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)&&!Mn(i))continue;a=Ln(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)&&!Mn(i))continue;a=Ln(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Bn=ha?Promise.resolve():null;function ga(e,...n){Bn!==null?n&&n.length>0?Bn.then(()=>{e(n)}):Bn.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 xe(e){return typeof e=="number"?e:Number(e)}const ma={"[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 Xt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function ho(e){return e&&typeof e=="object"&&"setInterval"in e}function Zt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function go(e){let n=!!e&&"length"in e&&e.length,o=Xt(e);return o==="function"||ho(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function mo(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 pa(e,n=[]){let o=n;return e!=null&&(go(Object(e))?mo(o,typeof e=="string"?[e]:e):o.push(e)),o}function nt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Xt(e),t=Xt(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 s=r[i],u=e[s],c=n[s];if(!nt(u,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(!nt(a,i))return!1}return!0}return!1}const Ue=typeof window<"u";function _n(e){return e==null}function qn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const be=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function po(e){return be(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),be(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function yo(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 bo(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 ya(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 ba(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(nt(e,o))return!0}):n.indexOf(e)}function va(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(nt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function It(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function wo(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 wa=(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},ve=Symbol.for("BroadcastKey");class Pn{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(){const n=[...this.children];this.children=[],n.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.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==="+"||qn(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,s=n.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};n.resolve=u}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):qn(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 u=Reflect.apply(i,this.proxy,[...t]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...t]);u!=null&&a.push(u)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},o,...t]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),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??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};n.resolve=s}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 Qt(e,n,o,t){const r=new Pn(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function Sa(e,n,o){const t=o;if(t[ve])return t[ve];const r=l.inject(ve,null),a=new Pn(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),t[ve]=void 0}),a}function Ot(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const gt=e=>e.default??e;class xa{error(n,o){const t=o,r=o||l.hasInjectionContext()?Ot(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?Ot(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?Ot(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?Ot(t):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let Vt=new xa;function Ta(e){Vt=e}function Ca(e){Vt?Object.assign(Vt,e):Vt=e}function $a(e,n){gt(dt).setValidator(e,n)}function Na(e){gt(dt).deleteValidator(e)}let So=["blur","clear"];function Ea(e){So=e}function xo(){return So}let To=["focus","change","setValue"];function ka(e){To=e}function Co(){return To}function Ia(e){gt(dt).messages(e)}function Dt(...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 Jt(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 He=Symbol("ValidateSchemaKey");class $o{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=Jt(Dt(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),t.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};t.push(u)}}this.attrRules=Jt(t);const r=Dt(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=Vt;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?gt(dt).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?gt(dt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return gt(dt).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=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Jt(n):this.rules=Jt([n]);const t=Dt(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=Dt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]:a},s=gt(dt),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function en(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 $o(n,o,e)}const tn=Symbol.for("EventEmitterKey");class No{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 mt(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function Eo(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Oa(e,n){const o=mt((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Va(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function nn(e,n,o,t=0,r=!0,a){let i=n,s=0;if(r){const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=t,setTimeout(u,i)};setTimeout(u,i)}const _e=Symbol("DomainKey"),vt=Symbol("DataItemsKey");class ln{_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 Da=new ln;function wt(){return Da}function st(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[_e]??l.inject(_e,null):l.inject(_e,null)}const on=Symbol("OriginalDateKey");function jn(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(_e,null);i===null&&(i=wt());const s=e||n.prop||n.name;let u=new ln(s);u.parent=i;const c=$=>{a[on]||v($),u?.set("modelValue",$)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[on]??null,v=$=>{const m={};ht(!0,m,l.toRaw($)),a[on]=m};if(l.isReactive(n)||typeof n=="function"?l.watch(n,$=>{u?.merge($,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&v(n.modelValue),a[_e]=u,l.provide(_e,u),r!==null){const $=l.inject(ve,null),m=Qt(a,$,s,t);u.broadcast=m,a[ve]=m,l.provide(ve,m),a.broadcast=(T,w,...O)=>Reflect.apply(m.emit,m,[T,w,...O]);const h=l.inject(He,null),g=en(a,h,{componentName:""});u.validateSchema=g,a[He]=g,l.provide(He,g),a[vt]=new Map,a.validate=(T=!0)=>{const w=[];let O=null;const H={deep:!1};if(T===!0)O={name:"*"};else if(Array.isArray(T)&&T.length>0){const _=T;O={name:q=>q?_.indexOf(q)!==-1:!1}}else if(T!=null&&typeof T=="object"){const _=T;if(Object.assign(H,_),Array.isArray(_.include)&&_.include.length>0){const q=_.include;O={name:F=>F?q.indexOf(F)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const q=_.exclude;O={name:F=>F?q.indexOf(F)===-1:!1}}else O={name:"*"}}if(O){const _=m?.emitToChildren(O,"validate",H);_&&Reflect.apply([].push,w,_)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(_=>{let q=[];return _.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(q=[...q,...F.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,O=!1)=>{if(O===!0){Reflect.ownKeys(T).forEach(_=>{let q=String(_);const F={componentName:"",fieldName:q,pureDataValidate:!0};if(u){const L=Io(u,q,F,m,g);a[vt].set(q,L);const E=T[q];E&&L.validateSchema.setRule(E)}});return}if(w){const H=Reflect.ownKeys(T),_={name:q=>H.includes(q),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(_,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const O=T;w={name:H=>H?O.indexOf(H)!==-1:!1}}else if(T!=null&&typeof T=="object"){const O=T;if(Array.isArray(O.include)&&O.include.length>0){const H=O.include;w={name:_=>_?H.indexOf(_)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const H=O.exclude;w={name:_=>_?H.indexOf(_)===-1:!1}}else w={name:"*"}}w&&m?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=f();if(!w)return;const O={};if(ht(!0,O,d()??{}),Array.isArray(T))T.forEach(H=>{w[H]=O[H]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(_=>{w[_]=O[_]});else if(T&&Array.isArray(T.exclude)){let H=T.exclude??[];Reflect.ownKeys(O).forEach(_=>{H.includes(_)||(w[_]=O[_])})}else Object.assign(w,O);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?c(T):m?.emitToChildren({name:w,messagingPolicy:"Once"},"setModelValue",T)},a.getModelValue=()=>f(),setTimeout(function(){m?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[He]=void 0,l.provide(He,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[_e]=void 0,l.provide(_e,null),a[vt]&&(a[vt].clear(),a[vt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a[on]=null,u=null,a=null}),u}function ko(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(_e,null);a===null&&(a=wt());const i=e||n.prop||n.name;let s=new ln(i);return s.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(n,o),r[_e]=s,l.provide(_e,s),l.onUnmounted(()=>{s?.destroy(),r[_e]=void 0,l.provide(_e,null),s=null,r=null}),s}function $e(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(ve,null);let s=Qt(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(m,h,...g)=>s?Reflect.apply(s.emit,s,[m,h,...g]):null;const u=l.inject(He,null);e.fieldName=e.fieldName??a;let c=en(r,u,e);r[He]=c,l.provide(He,c),r.validate=(m=null)=>{if(!c)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const w=m,O=w.ignoreDisabled??!0,H=w.ignoreReadonly??!0,_=w.ignoreHidden??!0;O===!0&&e.disabled===!0||H===!0&&e.readonly===!0||_===!0&&Zt(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const w=c?.validate();h.push(w)}if(g){let w=null;const O={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const H=m;w={name:_=>_?H.indexOf(_)!==-1:!1}}else if(m!=null&&typeof m=="object"){const H=m;if(Object.assign(O,H),Array.isArray(H.include)&&H.include.length>0){const _=H.include;w={name:q=>q?_.indexOf(q)!==-1:!1}}else if(Array.isArray(H.exclude)&&H.exclude.length>0){const _=H.exclude;w={name:q=>q?_.indexOf(q)===-1:!1}}else w={name:"*"}}if(w&&s){const H=s.emitToChildren(w,"validate",O);Reflect.apply([].push,h,H)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let O=[];return w.forEach(H=>{H.pass===!1&&Array.isArray(H.errors)&&(O=[...O,...H.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&c?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(n??"")!==-1)&&c?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let f=new No(r);r[tn]=f;const d=mt((m="validate")=>{c&&(m==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xo()).forEach(m=>{f&&f.on(m,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Co()).forEach(m=>{f&&f.on(m,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,c?.destroy(),r[He]=void 0,l.provide(He,null),c=null,f?.destroy(),r[tn]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:c,emitEvent:(m,...h)=>{f&&Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function Io(e,n,o,t,r){const a={},i=n??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};let u=en({},r,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,$=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)$=!0,v=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),$=!0,v=m.deep??!1}else typeof f=="boolean"&&(v=f),$=!0;if($&&u){const m=u.validate();d.push(m)}if(v){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:w=>w?T.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&c){const g=c.emitToChildren(m,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};let c=Qt(null,t,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function Oo(){let n=l.getCurrentInstance()?.proxy,o=new No(n);return n[tn]=o,l.onUnmounted(()=>{o?.destroy(),n[tn]=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 Ve=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ge(e,n)}px`:"";function ge(e,n=-1){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(Ue){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}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 ut="PageStateKey";function Ge(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ge(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ge(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ge(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ge(e.right))),n}function zn(e,n,o={},t=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=ge(o.headerHeight??n.headerHeight??-1),e.headerPadding=Ge(o.headerPadding??n.headerPadding),e.footerHeight=ge(o.footerHeight??n.footerHeight??-1),e.footerPadding=Ge(o.footerPadding??n.footerPadding),e.contentPadding=Ge(o.contentPadding??n.contentPadding),t){const u=o.height??n.height;u?e.height=ge(u,a):e.height=ge(a)-ge(i,a)-ge(s,a),e.width=ge(o.width??n.width??0,r)}}function Vo(e,n={}){const o={top:null,left:null,bottom:null,right: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=ge(r.top),t.safeAreaBottom=ge(r.bottom),t.safeAreaLeft=ge(r.left),t.safeAreaRight=ge(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;zn(t,a,n,!0,i,s,u,c);const f=l.reactive(t),d=e.getForParent(ut);d&&(t.height=an(e,d),t.width=sn(e,d),l.watch([()=>an(e,d),()=>sn(e,d)],([$,m])=>{f.height=$,f.width=m}));const v=!d;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([$,m,h=-1,g=-1,T=0,w=0])=>{zn(f,m,n,v,h,g,T,w)}),e.set(ut,f),f}function rn(e){return e.get(ut)}function Ft(e,n){if(n=n??e.get(ut),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Rt(e,n){if(n=n??e.get(ut),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function an(e,n){if(n=n??e.get(ut),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Ft(e,n),t=Rt(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function sn(e,n){return n=n??e.get(ut),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Fa(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Ra(e){return!!e.getForParent(ut)}var Pe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Pe||{});function Hn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,o=1,t){const r=st();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Hn(u,t))return u}const i=e.value;return Hn(i,t)?i:null}):l.computed(()=>{const a=e.value;return Hn(a,t)?a:r?.get(n)})}function Re(e){return Fe(e,"readonly",0,function(o){return ue(o)})}function Ae(e){return Fe(e,"disabled",0,function(o){return ue(o)})}function me(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,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,t&&t("setValue",u))}else s!==i.value&&(i.value=s,t&&t("setValue",s))}),i}const Do=new Map,un=new Map;let Kn=null;function Aa(e){Kn=e}function Fo(e,n,o){if(o){let t=un.get(o);t||(t=new Map,un.set(o,t)),t.set(e,n)}else Do.set(e,n)}function Ke(e,n,o){!o&&Kn&&(o=Kn(e)??void 0);let t=null;if(o){let r=un.get(o);r&&(t=r.get(n))}return t||(t=Do.get(n)),t}function Ma(e,n){for(let o in e){const t=e[o];Fo(o,t,n)}}function La(e){un.delete(e)}function Ba(){return{top:0,left:0,bottom:0,right:0}}function _a(e=0,n=0){if(Ue){const o=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:t-ge(e,t)-ge(n,t)};return{rootWidth:o,rootHeight:t,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function qa(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Pa{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=qa(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=wt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Eo(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}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({},Ba(),n.safeAreaInset),i=_a(t,r),s=ht({},i.pageLayout,n.pageLayout);o=o??wt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Aa(n)}setAPI(n,o,t){Fo(n,o,t)}getAPI(n,o,t){return Ke(n,o,t)}batchSetAPI(n,o){Ma(n,o)}clearScopeAPI(n){La(n)}getRootDomain(){return wt()}}const ja=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload],za=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Ha=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),za.forEach(r=>{e.use(r)})};function fe(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 Ne(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Te={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},De={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}},Ro={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}},Ao={name:{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}},Mo=[];for(const e in Ao)Mo.push(e);const Ka=Symbol.for("InnerPageScopeKey"),Wa={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}},Ya=(e,n)=>({inheritAttrs:!0,props:{...Te,...Ro,...Wa},setup(o,{slots:t}){const r=jn(o.name,o),a=l.inject(Ka,!1);if(r){const f=Vo(r,o);Ne({getPageContentHeight:()=>an(r,f),getPageContentWidth:()=>sn(r,f),getPageHeaderHeight:()=>Ft(r,f),getPageFooterHeight:()=>Rt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[v,$])=>{if(f&&v){const m=l.toRaw(v),h=l.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),c(h)}if(d&&$){const m=l.toRaw($),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),c(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);c(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:s.value};return l.h("div",f,[t?.default?.()])}}}),{componentName:Ua,create:Ga,scope:xh}=fe("page"),Wn=Ga(Ya(Ua));function cn(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Yn(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 Xa=(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=st(),s=i?rn(i):null;s&&(s.headerMounted=!0);const u=e,c=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?ge(r.height):null,v=l.computed(()=>{const I={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const C=Ge(r.padding??s.headerPadding);return Object.assign(I,C),d&&(s.headerHeight=d),s.headerHeight>0&&(I.height=s.headerHeight),I.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,I.safeAreaTop>0&&(I.top=I.safeAreaTop+(C.top??0),I.height&&I.height>0&&(I.height=I.height+I.safeAreaTop)),I}if(d&&(I.height=d),r.padding){const C=Ge(r.padding);Object.assign(I,C)}return I}),$=l.ref(null),m=()=>{if(s&&$.value&&!Zt($.value)){if(!t){const I=cn($.value);s.headerAllHeight=I.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(nn(m,50,5,50,!0),window.ResizeObserver&&$.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe($.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const I={};return v.value.height!==null&&v.value.height!==void 0&&(I.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(I.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(I.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(I.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(I.paddingBottom=`${v.value.bottom}px`),I}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function O(){a.emit("click-title")}function H(){a.emit("click-right")}function _(){a.emit("click-right-text")}const q=()=>{if(!r.leftShow)return null;const I=[];if(a.slots.left)I.push(a.slots.left());else{if(a.slots.leftIcon){const C=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);I.push(C)}else if(r.leftIcon){const C=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);I.push(C)}if(r.leftText){const C=l.h("view",{class:"left-text",onClick:w},[r.leftText]);I.push(C)}}return I.length===0?null:l.h("view",{class:"fox-header-bar__left"},I)},F=()=>{if(!r.rightShow)return null;const I=[];if(a.slots.right)I.push(a.slots.right());else{if(r.rightText){const C=l.h("view",{class:"right-text",onClick:_},[r.rightText]);I.push(C)}if(a.slots.rightIcon){const C=l.h("view",{class:"right-icon",onClick:H},[a.slots.rightIcon()]);I.push(C)}else if(r.rightIcon){const C=l.h("view",{class:"right-icon",onClick:H},[l.h(r.rightIcon)]);I.push(C)}}return I.length===0?null:l.h("view",{class:"fox-header-bar__right"},I)},L=()=>{if(!r.titleShow)return null;const I=[],C=a.slots.default?a.slots.default():null;if(C)I.push(C);else{if(r.title){const z=l.h("view",{class:"title-text"},[r.title]);I.push(z)}if(a.slots.titleIcon){const z=l.h("view",{class:"title-icon",onClick:O},[a.slots.titleIcon()]);I.push(z)}else if(r.titleIcon){const z=l.h("view",{class:"title-icon",onClick:O},[l.h(r.titleIcon)]);I.push(z)}}return I.length===0?null:l.h("view",{class:"fox-header-bar__title"},I)},E=()=>{const I=[],C=a.slots.bottom?a.slots.bottom():null;return C&&I.push(C),I.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},I)};return()=>{if(!T.value)return null;const I=[];if(a.slots.all)I.push(a.slots.all());else{const z=[],k=q();k&&z.push(k);const D=L();D&&z.push(D);const A=F();if(A&&z.push(A),z.length>0){const U=l.h("view",{class:f.value},z);I.push(U)}const G=E();G&&I.push(G)}if(I.length===0)return null;const C={class:c.value,style:g.value,ref:$};return l.h("view",C,I)}}}),{componentName:Za,create:Qa,scope:Ja}=fe("header-bar"),Un=Qa(Xa(Za,Ja,ke.ArrowLeft));function ei(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=st(),i=a?rn(a):null,s=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${t.align}`]:!0,[`${m}--border`]:t.border,[`${m}--fixed`]:t.fixed,[`${m}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),u=t.height!==null&&t.height!==void 0?ge(t.height):null,c=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ge(t.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),t.padding){const h=Ge(t.padding);Object.assign(m,h)}return m}),f=l.ref(null),d=()=>{if(i&&f.value&&!Zt(f.value)){if(!o){const m=cn(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(nn(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const $=l.computed(()=>{const m={};return c.value.height!==null&&c.value.height!==void 0&&(m.height=Ve(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(m.paddingTop=Ve(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(m.paddingLeft=Ve(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(m.paddingRight=Ve(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(m.paddingBottom=Ve(c.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:$.value};return l.h("view",h,m)}}}}const{componentName:ti,create:ni,scope:Th}=fe("footer-bar"),Gn=ni(ei(ti));function li(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const t=st(),r=l.computed(()=>({[e]:!0})),a=t?rn(t):null,i=l.computed(()=>{const c={};if(t&&a){if(o.padding){const $=Ge(o.padding);Object.assign(a.contentPadding,$)}const f=Ft(t,a),d=Rt(t,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,c.height=v,a.contentPadding.top||f>0){const $=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+$}px`}if(a.contentPadding.bottom||d>0){const $=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+$}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const f=Ge(o.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),s=l.ref(null),u=()=>{if(a&&s.value){const c=Yn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),t&&a&&l.watch([()=>Ft(t),()=>Rt(t)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:oi,create:ri,scope:Ch}=fe("content"),ai=ri(li(oi));function ii(e,n,o,t,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const ze=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},Xn=ze(ai,[["render",ii]]),St="GroupStateKey",Lo=Symbol.for("GroupScopeKey");function fn(){return l.inject(Lo,!1)}function dn(e=!0){l.provide(Lo,e)}function si(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];_n(r)||(e[t]=r)})}function ui(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};si(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(St,a),a}function Zn(e,n,o=-1,t=-1,r=!1,a,i,s){const u=e.get(St);if(!u)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 f=ge(a),d=ge(i);s||(s=c.type??"grid");const v=()=>{const $=n===""||n===-1,m=ge(n);let h=xe(o);const g=ge(t);if(!$){let O=(m-(h-1)*g)/h;for(;d!==-1&&O>d;)h++,O=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&O<f;)h--,O=(m-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=n,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const $=++u.passport;setTimeout(()=>{$===u.passport&&v()},50)}}function hn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.layout}function gn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.order}function Bo(e,n=1){if(n==="stretch")return-1;const o=xe(n);return o===-1?100:100*o/e}function mn(e,n,o=1,t=0,r){const a={};let i=0;r?i=ge(r):i=Bo(n.column,o),i>0&&(a.width=`${i}%`);const s=Bo(n.column,t);s>0&&(a["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function pn(e,n,o=1,t=0){if(o==="stretch"){const u=e.index%n.column,c=u+(n.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let r=xe(o);if(r===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const a=xe(t)%n.column;let i=(e.index+a)%n.column,s=i+r;return s>n.column?(i=0,s=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 _o=Symbol("RollingStateKey");function ci(e){l.provide(_o,e)}function fi(){return l.inject(_o,null)}function Qn(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 di(e){let n=Qn(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=Qn(o),document.body.removeChild(o)}return n}function hi(e,n,o){if(e<=0)return"1fr";const t=(e-(n-1)*o)/n;return t>0?`${t}px`:"1fr"}const gi={...Te,...Ro,...Ao};function mi(e,n,o){return{props:gi,emits:["update:collapse","header-click"],setup(t,r){const a=jn(t.name,t,Mo),i=ui(a,{type:t.type}),s=fn();dn(!0);const u=t.rollingDisplay?fi():null,c=l.ref(null),f=l.computed(()=>t.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?hn(a,!0).value:null),v=l.getCurrentInstance(),$=(K,ee=!1)=>{const oe=v?.proxy;oe&&typeof oe.setNameValidateRules=="function"&&oe.setNameValidateRules(K,!0,ee)};l.watch([()=>t.rules,()=>t.pureDataRules],([K,ee],[oe,N])=>{if(K&&oe){const y=l.toRaw(oe),Y=l.toRaw(K),te=Y?Reflect.ownKeys(Y):[];(y?Reflect.ownKeys(y):[]).forEach(se=>{te.includes(se)||(Y[se]=[])}),$(Y)}if(ee&&N){const y=l.toRaw(N),Y=l.toRaw(ee),te=Y?Reflect.ownKeys(Y):[];(y?Reflect.ownKeys(y):[]).forEach(se=>{te.includes(se)||(Y[se]=[])}),$(Y,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const K={};K.height=A.value;const ee=s?gn(a,!0):null;if(d.value&&ee){if(d.value.type==="grid"){const oe=pn(ee,d.value,t.span,t.offset);Object.assign(K,oe)}else if(d.value.type==="flow"){const oe=mn(ee,d.value,t.span,t.offset,t.width);Object.assign(K,oe)}}else if(t.width){const oe=Ve(t.width);K.width=oe}return K}),g=l.computed(()=>{const K=i.layout.value.type;return K==="grid"||K==="flow"?{[`${m}--${K}`]:!0,[`${m}--${K}-justify-${t.justify}`]:!0,[`${m}--${K}-align-${t.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${K}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let ee="";if(t.columnWidth)ee=`repeat(auto-fill, ${t.columnWidth})`;else{const oe=hi(L.value,i.layout.value.column,i.layout.value.gutter);ee=`repeat(${i.layout.value.column}, ${oe})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":ee}}}),w=l.toRef(t,"gutter"),O=l.toRef(t,"column"),H=l.computed(()=>s||f.value?!0:ue(t.isWrap)),_=[],q=K=>{_.push(K)},F=()=>{let K=_.length;_.splice(0,K)},L=l.ref(-1),E=K=>{const ee=Yn(K).width;ee>0&&ee!==L.value&&(L.value=ee)};Zn(a,L.value,O.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([L,O,w],([K,ee,oe])=>{i.order.index=0,Zn(a,K,ee,oe,!1,t.minItemWidth,t.maxItemWidth,t.type)});const I=l.computed(()=>G.value?t.expandText??"":t.collapseText??""),C=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!G.value,"is-collapse":G.value})),k=l.ref(),D=l.ref(),A=l.computed(()=>U.value||Ve(t.height)||""),G=l.ref(!1),U=l.ref(""),J=l.ref(!1);let X=-1;const ne=(K,ee=!0)=>{const oe=k.value;if(oe&&G.value!==K){if(X=X===-1?di(oe):X,J.value=!0,ee)if(oe.style["will-change"]="height",oe.ontransitionend=function(){oe.ontransitionend=null,this.style["will-change"]="auto",K||(U.value="",J.value=!1)},K){let N=0;t.collapseHeight?N=t.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(N=D.value.offsetHeight),U.value=`${X}px`,l.nextTick(()=>{U.value=`${N}px`})}else U.value=`${X}px`;else if(K){let N=0;t.collapseHeight?N=t.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(N=D.value.offsetHeight),U.value=`${N}px`}else J.value=!1,U.value=`${X}px`;G.value=K,r.emit("update:collapse",K)}};l.watch(()=>t.collapse,K=>{ne(K)});const ae=K=>{r.emit("header-click",K)},V=()=>{x()},x=K=>{K=K??!G.value,ne(K)};Ne({toggleCollapse:x,doLayout:()=>{_[0]&&(E(_[0]),Zn(a,L.value,O.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let R=null,b=!0;const W=K=>{if(t.rules){const ee=l.toRaw(t.rules);$(ee)}if(t.pureDataRules){const ee=l.toRaw(t.pureDataRules);$(ee,!0)}if(Ue&&(K&&ne(ue(t.collapse),!1),t.autoLayout&&Array.isArray(_)&&_.length>0)){const ee=_[0];E(ee),window.ResizeObserver&&(R=new window.ResizeObserver(()=>{E(ee)}),R.observe(ee))}},j=()=>{R?.disconnect(),R=null},P=!f.value||u?.acquire();P&&(c.value=f.value?!0:null),l.onMounted(()=>{if(P&&(W(b),b=!1),f.value&&u){let K=null,ee=u.initialHeight;u.observe(k.value,oe=>{if(oe!==c.value)if(oe)c.value=!0,G.value||(U.value=""),K=setTimeout(()=>{K=null,c.value!==!1&&(W(b),b=!1)},100);else{if(K!==null&&clearTimeout(K),c.value=!1,!G.value)if(b)U.value=u.initialHeight;else{let N=Qn(k.value);N<=0?U.value=ee:(U.value=`${N}px`,ee=U.value)}b||j()}})}}),l.onUnmounted(()=>{R?.disconnect(),u&&u.unobserve(k.value)});const B=(K="right")=>{const ee=[];if(I.value){const y={class:C.value},Y=l.h("span",y,[I.value]);ee.push(Y)}const oe={class:z.value},N=o(t.collapseIcon,oe);return N&&ee.push(N),ee.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:V},ee):null},Z=(K,ee,oe,N)=>{const y={...g.value};return ee===0&&(y[`${m}__first`]=!0),oe>=N-1&&(y[`${m}__last`]=!0),l.h("div",{ref:q,key:`${ee}`,class:y,style:T.value},K)};return()=>{if(f.value&&c.value!==!0){const y=t.tag||"div";return l.h(y,{ref:k,prop:t.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const K=[];let ee=0;if(r.slots.header){const y={key:`${ee++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},Y=l.h("div",y,[r.slots.header()]);K.push(Y)}else{const y=[],Y=t.collapsePosition==="left";if(Y&&t.showCollapse){const te=B("left");te&&y.push(te)}if(t.title||r.slots.title){if(t.showMark){const te={class:{[`${m}__header-mark`]:!0}};t.markColor&&(te.style={background:t.markColor});const ce=l.h("div",te);y.push(ce)}if(r.slots.title){const te=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);y.push(te)}else if(t.title){const te=l.h("div",{class:{[`${m}__header-title`]:!0}},[t.title]);y.push(te)}}if(r.slots.toolbar&&y.push(r.slots.toolbar()),!Y&&t.showCollapse){const te=B("right");te&&y.push(te)}if(y.length>0){const te={key:`${ee++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},ce=l.h("div",te,y);K.push(ce)}}F();const oe=r.slots.default?r.slots.default():[],N=i.layout.value.type;if(N==="grid"){const y=Z(oe,ee++,0,oe.length);K.push(y)}else if(N==="flow"){const y=Z(oe,ee++,0,oe.length);K.push(y)}else for(let y=0;y<oe.length;y++){const Y=oe[y],te=Z([Y],ee++,y,oe.length);K.push(te)}if(H.value){const y=t.tag||"div";return l.h(y,{ref:k,prop:t.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[K])}else return K}}}}const{componentName:pi,create:yi,scope:bi}=fe("group"),Jn=yi(mi(pi,bi,(e,n)=>(e=e??ke.ArrowUp,l.h(S.ElIcon,n,{default:()=>[l.h(e)]}))));function vi(e){return e===window}const wi=/matrix\((.+)\)/,qo=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,s=0,u=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=wi.exec(c);if(f){let v=f[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,t-=i,o+=s,t+=u,{x:o,y:t}};class Si{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 xi{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 Si,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 At=new xi,Po={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:Ti,create:Ci}=fe("price"),$i=Ci({props:{...Po},setup(e){const n=l.computed(()=>({[Ti]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>It(e.price)==0?"":Ut(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Ni=["innerHTML"],Ei=["innerHTML"];function ki(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,Ni)):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,Ei)):l.createCommentVNode("",!0)],2)}const yn=ze($i,[["render",ki]]),{componentName:el,create:Ii}=fe("hint-text"),Oi=Ii({components:{Price:yn},props:{...Po,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),s=l.ref(!1),u=l.ref(null),c=(C,z,k,D,A,G)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,X=C.split("-");let ne=[];X[0]==="top"?ne=["top","bottom","right","left"]:X[0]==="bottom"?ne=["bottom","top","right","left"]:X[0]==="left"?ne=["left","top","bottom","right"]:X[0]==="right"&&(ne=["right","top","bottom","left"]);const ae={top:null,right:null,bottom:null,left:null},V=[];for(let x=0;x<ne.length;x++){const M=ne[x];if(V[0]=M,X[1]&&(V[1]=X[1]),M==="top"){const R=z.y-G-e.arrowSize-e.offset;if(R>=0){ae.top=R;let b=0;X[1]==="start"?b=z.x:X[1]==="end"?b=z.x+k-A:b=z.x+k/2-A/2;const W=U-b-A;W<0?(b+=W,d.value=-W):d.value=0,ae.left=b<0?0:b;break}}else if(M==="bottom"){const R=z.y+D+e.arrowSize+e.offset;if(R+G<=J){ae.top=R;let b=0;X[1]==="start"?b=z.x:X[1]==="end"?b=z.x+k-A:b=z.x+k/2-A/2;const W=U-b-A;W<0?(b+=W,d.value=-W):d.value=0,ae.left=b<0?0:b;break}}else if(M==="left"){const R=z.x-A-e.arrowSize-e.offset;if(R>=0){ae.left=R;let b=0;X[1]==="start"?b=z.y:X[1]==="end"?b=z.y+D-G:b=z.y+D/2-G/2,ae.top=b<0?0:b;break}}else if(M==="right"){const R=z.x+k+e.arrowSize+e.offset;if(R+A<=U){ae.left=R;let b=0;X[1]==="start"?b=z.y:X[1]==="end"?b=z.y+D-G:b=z.y+D/2-G/2,ae.top=b<0?0:b;break}}}return{bestPlacement:V.join("-"),bestInsetRect:ae}},f=(C,z,k=10)=>{if(Ue&&!(z===!1||!C)&&e.reference){t.value=qo(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=u.value?.offsetHeight??0,A=u.value?.offsetWidth??0,{bestPlacement:G,bestInsetRect:U}=c(e.placement,t.value,r.value,a.value,A,D);i.value=G,o.value=U,s.value=!0}},d=l.ref(0),v=mt(()=>{f(e.message,e.visible)},10),$=l.ref(e.visible);l.watch(()=>e.visible,C=>{$.value=C});const m=l.computed(()=>$.value&&h.value),h=l.ref(!0),g=mt(C=>{const z=C[0];z&&(h.value=z.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([C,z])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),At.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeUnmount(()=>{At.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const C={[el]:!0};return i.value.startsWith("top")?C["is-top"]=!0:i.value.startsWith("right")?C["is-right"]=!0:i.value.startsWith("bottom")?C["is-bottom"]=!0:i.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),O=l.computed(()=>{const C={};o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${z}px`,s.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),H=l.computed(()=>{const C=[`${el}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),_=l.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),q=l.computed(()=>({[`${el}__arrow`]:!0})),F=l.computed(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,i.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="top-start"?(C.left=`${e.arrowOffset+d.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-d.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(C.left=`${e.arrowOffset+d.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-d.value}px`,C.top=`-${e.arrowSize}px`):i.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),L=l.computed(()=>m.value&&e.closeOnClick),E=l.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:m,tipRef:u,classes:w,styles:O,textClasses:H,textStyles:_,arrowClasses:q,arrowStyles:F,overlayShow:L,overlayStyle:E,onClickOverlay:()=>{$.value=!1,n.emit("update:visible",!1)}}}}),Vi=["innerHTML"];function Di(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]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},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,Vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=ze(Oi,[["render",Di]]);class jo{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 tl={},Fi=new jo,xt=new Map,bn=e=>{if(e){const n=document.getElementById(e);xt.delete(e),n&&(l.render(null,n),n.parentNode?.removeChild(n))}else{for(const n of xt.keys()){const o=document.getElementById(n);o&&(l.render(null,o),o.parentNode?.removeChild(o))}xt.clear()}},Ri=e=>{e.unmount=bn;const n=document.getElementById(e.id);if(n){const o=xt.get(e.id);o?e={...tl,...o,...e}:e={...tl,...e},e.transition=!1;const t=l.createVNode(Mt,e);return l.render(t,n),e.id}},Ai=e=>{e.unmount=bn;let n=e.id??`hinttext_${Fi.get()}`;e={...tl,...e},e.id=n,xt.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},Mi=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Me={show(e,n,o={},t=!0){Mi(n);const r=o.id;return r&&xt.has(r)?Ri({...o,message:n,reference:e}):(t&&bn(),Ai({...o,message:n,reference:e}))},hide(e){bn(e)},install(e){e.config.globalProperties.$hintText=Me}};function Li(e,n,o,t=!1){return{inheritAttrs:!0,props:{...Te,...De},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const s=st(),u=fn();dn(!1);const c=l.computed(()=>u&&s?hn(s,!1).value:null),f=e,d=l.ref(null),v=l.computed(()=>{const N={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(N[r.errorMarkClass]=!!G.value,N[r.warnMarkClass]=!!D.value,N[r.infoMarkClass]=!!z.value,typeof d.value=="function"){const y=d.value(i);N[y]=!0}else if(typeof d.value=="string"){const y=d.value;N[y]=!0}return N}),$=l.ref(null),m=l.computed(()=>{const N={};if(r.width)r.width!=="auto"&&(N.width=Ve(r.width));else{const y=u&&s?gn(s,!1):null;if(c.value&&y){if(c.value.type==="grid"){const Y=pn(y,c.value,r.span,r.offset);Object.assign(N,Y)}else if(c.value.type==="flow"){const Y=mn(y,c.value,r.span,r.offset,r.width);Object.assign(N,Y)}}}if(typeof $.value=="function"){const y=$.value(i);y&&Object.assign(N,y)}else if($.value&&typeof $.value=="object"){const y=$.value;Object.assign(N,y)}return N}),h=l.ref(null),g=l.computed({get:()=>h.value??ue(r.isRequired),set:N=>{h.value=N}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Fe(l.toRef(r,"labelPosition"),"labelPosition",Pe.Near),O=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),H=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${O.value}`]:!0})),_=l.computed(()=>({label:!0,[`label--${O.value}`]:!0})),q=Fe(l.toRef(r,"labelWidth"),"labelWidth",Pe.Near),F=l.computed(()=>q&&q.value?{width:Ve(q.value)}:{}),L=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),I=l.computed(()=>({...r.contentStyle})),C=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ne({setRequired(N){g.value=N},setErrorTip(N){C.errorTip=N},setErrorIcon(N){C.errorIcon=N},setWarnTip(N){C.warnTip=N},setWarnIcon(N){C.warnIcon=N},setInfoTip(N){C.infoTip=N},setInfoIcon(N){C.infoIcon=N},setCustomClassName(N){d.value=N},setCustomStyle(N){$.value=N}});const z=l.computed(()=>r.infoTip||C.infoTip),k=l.computed(()=>r.infoIcon||C.infoIcon),D=l.computed(()=>r.warnTip||C.warnTip),A=l.computed(()=>r.warnIcon||C.warnIcon),G=l.computed(()=>r.errorTip||C.errorTip),U=l.computed(()=>r.errorIcon||C.errorIcon),J=l.computed(()=>G.value?"error":D.value?"warn":z.value?"info":""),X=()=>J.value.length>0,ne=l.computed(()=>J.value==="error"?G.value:J.value==="warn"?D.value:J.value==="info"?z.value:""),ae=l.computed(()=>J.value==="error"?U.value:J.value==="warn"?A.value:J.value==="info"?k.value:null),V=l.computed(()=>{const N={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?N[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?N[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(N[`${r.infoClass}`]=!0),N}),x=l.computed(()=>{const N={};return w&&w.value==="top"||!T()?N["padding-left"]="0px":q&&q.value&&(N["padding-left"]=Ve(q.value)),N}),M=l.ref();let R="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([N,y,Y,te])=>{M.value&&(N&&!be(y)?R?o.show(M.value,y,{...te,id:R,type:Y},!0):R=o.show(M.value,y,{...te,type:Y},!0):o.hide(R))});let b=null;const W=()=>{b||!M.value||(b=new IntersectionObserver(N=>{let y=!1;for(let Y of N)if(Y.intersectionRatio>0){y=!0,y&&a.emit("appear",Y);break}y||a.emit("disappear")}),b.observe(M.value))},j=()=>{b&&(M.value&&b.unobserve(M.value),b.disconnect(),b=null)};l.watch(()=>ue(r.appearListen),N=>{N?W():j()}),l.onMounted(()=>{ue(r.appearListen)&&W()}),l.onUnmounted(()=>{j(),R&&o.hide(R)});const P=()=>{if(!T())return null;const N=[],y=a.slots?.label?.()??r.label,Y={class:L.value},te=l.h("div",Y,[y]);if(N.push(te),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();N.push(se)}const ce={class:_.value,style:F.value};return l.h("div",ce,N)},B=()=>{const N=[];if(a.slots.prepend){const Y=a.slots.prepend();N.push(Y)}if(a.slots.default){const Y=a.slots.default();N.push(Y)}if(a.slots.append){const Y=a.slots.append();N.push(Y)}if(a.slots.fixedTip){const Y={class:[`${f}__fixed-tip`]},te=l.h("div",Y,[a.slots.fixedTip()]);N.push(te)}const y={ref:M,class:E.value,style:I.value};return l.h("div",y,N)},Z=()=>{const N=ae.value;return N?typeof N=="function"?l.h("div",{class:"fox-item__tip--icon"},[N()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(N)]):null},K=()=>{const N=ne.value;return N?typeof N=="function"?l.h("div",{class:"fox-item__tip--text"},[N()]):l.h("div",{class:"fox-item__tip--text"},[N]):null},ee=()=>{if(!X())return null;const N=[],y=Z();y&&N.push(y);const Y=K();Y&&N.push(Y);const te={class:V.value,style:x.value};return l.h("div",te,N)},oe=()=>a.slots?.hide?.()??null;return()=>{const N=[],y=[],Y=P();Y&&y.push(Y);const te=B();te&&y.push(te);const ce={class:H.value},se=l.h("div",ce,y);N.push(se);const de=ee();de&&N.push(de);const Se=oe();Se&&N.push(Se);const Qe={class:v.value,style:m.value,prop:r.prop};return l.h("div",Qe,N)}}}}const{componentName:Bi,create:_i,scope:qi}=fe("item"),Ce=_i(Li(Bi,qi,Me,!1));function Pi(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,t){const r=st(),a=fn();dn(!1);const i=l.computed(()=>a&&r?hn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const f={},d=a&&r?gn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=pn(d,i.value,o.span,o.offset);Object.assign(f,v)}else if(i.value.type==="flow"){const v=mn(d,i.value,o.span,o.offset,o.width);Object.assign(f,v)}else return o.width&&(f.width=Ve(o.width)),f;else o.width&&(f.width=Ve(o.width));return f});return()=>{const f={class:u.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",f,t.slots.default()):l.h("div",f)}}}}const{componentName:ji,create:zi,scope:Nh}=fe("slot-item"),nl=zi(Pi(ji));function Hi(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=st(),s=fn();dn(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=hn(i,!1),d=gn(i,!1);if(f.value&&d)if(f.value.type==="grid"){const v=pn(d,f.value,o.span,o.offset);Object.assign(c,v)}else if(f.value.type==="flow"){const v=mn(d,f.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Ve(o.width))}else o.width&&(c.width=Ve(o.width));return c});return()=>{const c=[];if(t.slots.default){const d=t.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const $=l.h("div",{class:{[`${r}__divide`]:!0}});c.push($)}c.push(d[v])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Ki,create:Wi,scope:Eh}=fe("row-item"),ll=Wi(Hi(Ki)),Xe=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},zo={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,String],default:!1}};function Yi(e,n,o){return{props:{...Te,...De,...zo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),m=k=>{d.value=k,s("update:modelValue",k),s("input",k)},h=k=>{s("change",k)};let g=me(t,"hintText"),T=l.ref(!1);const w=k=>{let A=k.target.value;f.value=!0,be(g.value)||(T.value=!0),s("focus",A,k)},O=k=>{setTimeout(()=>{T.value&&(T.value=!1),f.value=!1},0);let A=k.target.value;t.maxLength&&A.length>Number(t.maxLength)&&(A=A.slice(0,Number(t.maxLength))),s("blur",A,k)},H=()=>{s("clear","")},_=l.ref(!1);let q=null;const F=()=>{ue(t.showTooltip)&&_.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{_.value=!0},150))},L=()=>{q&&(clearTimeout(q),_.value=!1,q=null)},E=l.computed(()=>_.value||T.value),I=l.computed(()=>_.value?d.value:g.value),C=l.computed(()=>It(t.unit)>0),z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const D={...Xe(r.attrs),ref:z,class:$.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:H,onChange:h,onInput:m,onFocus:w,onBlur:O,onMouseover:F,onMouseleave:L},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:C.value&&(A.suffix=()=>[t.unit]);const G=[],U=l.h(S.ElInput,D,A);G.push(U);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ne={...Oe(t,zo),hintText:I.value,hintVisible:E.value,prop:`${t.prop}_item`};return l.h(o,ne,J)}}}}const{componentName:Ui,create:Gi,scope:Xi}=fe("input-item"),ol=Gi(Yi(Ui,Xi,Ce));function ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Lt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ho(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Zi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Qi=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Ji(){const e=l.getCurrentInstance();return new Qi(e.proxy)}function Ko(e,n,o){const t=ct(e,n),r=ct(e,o);if(t!==r)return!1;const a=Lt(e,n),i=Lt(e,o);return a===i}function Wo(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 s=Ho(e,i);if(Array.isArray(s)&&s.length>0){const u=Wo(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ct(e,i)===a;else if(o==="item")u=Ko(e,i,a);else{let c=Lt(e,i);c==null&&(c=ct(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function es(e){return{text:e,value:e}}const Yo={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,String],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,String],default:!1}};function ts(e,n,o){return{props:{...Te,...De,...Yo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(Z=>ct(t,Z)).join(" "):""),$=(B,Z,K,ee=!0)=>{if(K.length==0){ee&&(s("update:modelValue",B),s("change",B)),f.value=B;return}const oe=Wo(t,B,Z,K);if(oe===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],ee&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let N=!0;if(oe.length!==d.value.length)N=!1;else for(let y=0;y<oe.length;y++){const Y=oe[y],te=d.value[y];if(!Ko(t,Y,te)){N=!1;break}}if(!N){d.value=oe;let y=[],Y=[],te=[];oe.forEach(Se=>{const Qe=Lt(t,Se),Je=ct(t,Se);y.push(Qe),te.push(Je),t.valueType==="text"?Y.push(Je):t.valueType==="item"?Y.push(Se):Y.push(Qe)});let ce,se,de;ue(t.multiple)?(f.value=y,ce=l.toRaw(Y),se=te,de=l.toRaw(oe)):(f.value=y[0]??"",ce=l.toRaw(Y[0]??""),se=te[0]??"",de=l.toRaw(oe[0])),ee&&(s("update:modelValue",ce),s("change",ce,de)),s("update:text",se)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,B=>ue(B)),w=Ji(),O=async(B,Z)=>{if(B){const K=await w.load("select",B,Z);if(K.length>0)if(typeof K[0]=="string"){let N=K.map(y=>es(y));m.value=N}else m.value=K;else m.value=null}};l.watch([()=>t.source,()=>t.params],([B,Z])=>{h.value=null,O(B,Z)},{immediate:!T.value});let H=!1;const _=()=>{H||(H=!0,O(t.source,t.params))};l.watch([()=>m.value,()=>t.modelValue],([B,Z])=>{if(E()&&ue(t.multiple)){nt(Z,f.value)||(f.value=Z);return}$(Z,t.valueType,g.value,!1),s("setValue",Z)}),t.source||(f.value=t.modelValue);let q=null,F=l.ref(!1);typeof t.remoteMethod=="function"&&(q=async B=>{if(B==null){h.value=null;return}F.value=!0;try{const Z=await t.remoteMethod(B);Z&&(h.value=Z)}catch(Z){h.value=null,console.error(Z)}F.value=!1});let L=null;typeof t.filterMethod=="function"&&(L=async B=>{if(B==null){h.value=null;return}F.value=!0;try{const Z=await t.filterMethod(B,m.value);Z&&(h.value=Z)}catch(Z){h.value=null,console.error(Z)}F.value=!1});const E=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",I=l.ref(!1),C=e,z=l.computed(()=>({[C]:!0})),k=B=>{t.allowCreate||E()&&ue(t.multiple)?(s("update:modelValue",B),s("change",B),s("update:text",B),f.value=B):$(B,"value",g.value,!0)};let D=me(t,"hintText"),A=l.ref(!1);const G=B=>{let K=B.target.value;I.value=!0,be(D.value)||(A.value=!0),s("focus",K,B)},U=B=>{setTimeout(()=>{A.value&&(A.value=!1),I.value=!1},0);let K=B.target.value;t.maxLength&&K.length>Number(t.maxLength)&&(K=K.slice(0,Number(t.maxLength))),R.value||s("blur",K,B)},J=()=>{s("clear","")},X=l.ref(!1);let ne=null;const ae=()=>{ue(t.showTooltip)&&X.value===!1&&(ne&&clearTimeout(ne),ne=setTimeout(()=>{X.value=!0},150))},V=()=>{ne&&(clearTimeout(ne),X.value=!1,ne=null)},x=l.computed(()=>X.value||A.value),M=l.computed(()=>X.value?v.value:D.value),R=l.ref(!1),b=B=>{R.value=B,s("visible-change",B),B||s("selected")},W=B=>{s("remove-tag",B)},j=(B,Z)=>{const K=[];return B.forEach((ee,oe)=>{const N=Ho(t,ee);if(Array.isArray(N)&&N.length>0){const y=j(N,Z),Y=ct(t,ee),ce={key:`${Y}_${oe}`,label:Y};K.push(l.h(S.ElOptionGroup,ce,{default:()=>y}))}else{const y=Lt(t,ee),Y=ct(t,ee),te=Zi(t,ee),se={key:`${y}_${oe}`,label:Y,disabled:te,value:y};if(typeof Z=="function")K.push(l.h(S.ElOption,se,{default:()=>Z(ee)}));else if(t.optionType==="item"){const de={class:{"fox-select-item__option-left":!0}},Se=l.h("span",de,[y]),Qe={class:{"fox-select-item__option-right":!0}},Je=l.h("span",Qe,[Y]),et=l.h("div",{class:{"fox-select-item__option":!0}},[Se,Je]);K.push(l.h(S.ElOption,se,{default:()=>et}))}else t.optionType==="value"?K.push(l.h(S.ElOption,se,{default:()=>[y]})):K.push(l.h(S.ElOption,se))}}),K},P=l.ref();return Ne({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const Z={...Xe(r.attrs),ref:P,class:z.value,clearable:ue(t.clearable),multiple:ue(t.multiple),placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:J,onChange:k,onFocus:G,onBlur:U,onVisibleChange:b,onRemoveTag:W};typeof q=="function"&&(Z["remote-method"]=q,Z.loading=F.value),typeof L=="function"&&(Z["filter-method"]=L,Z.loading=F.value);const K={};r.slots.prefix&&(K.prefix=r.slots.prefix),r.slots.empty&&(K.empty=r.slots.empty),r.slots.options?K.default=r.slots.options:K.default=()=>j(g.value,r.slots.option);const ee=[],oe=l.h(S.ElSelect,Z,K);ee.push(oe);const N={default:()=>ee};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const Y={...Oe(t,Yo),hintText:M.value,hintVisible:x.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:ae,onMouseleave:V};return T.value&&(Y["appear-listen"]=!0,Y.onAppear=_),l.h(o,Y,N)}}}}const{componentName:ns,create:ls,scope:os}=fe("select-item"),rl=ls(ts(ns,os,Ce));var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",v="quarter",$="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|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("_")},O=function(k,D,A){var G=String(k);return!G||G.length>=D?k:""+Array(D+1-G.length).join(A)+k},H={s:O,z:function(k){var D=-k.utcOffset(),A=Math.abs(D),G=Math.floor(A/60),U=A%60;return(D<=0?"+":"-")+O(G,2,"0")+":"+O(U,2,"0")},m:function k(D,A){if(D.date()<A.date())return-k(A,D);var G=12*(A.year()-D.year())+(A.month()-D.month()),U=D.clone().add(G,d),J=A-U<0,X=D.clone().add(G+(J?-1:1),d);return+(-(G+(A-U)/(J?U-X:X-U))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:$,w:f,d:c,D:m,h:u,m:s,s:i,ms:a,Q:v}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},_="en",q={};q[_]=w;var F=function(k){return k instanceof C},L=function k(D,A,G){var U;if(!D)return _;if(typeof D=="string"){var J=D.toLowerCase();q[J]&&(U=J),A&&(q[J]=A,U=J);var X=D.split("-");if(!U&&X.length>1)return k(X[0])}else{var ne=D.name;q[ne]=D,U=ne}return!G&&U&&(_=U),U||!G&&_},E=function(k,D){if(F(k))return k.clone();var A=typeof D=="object"?D:{};return A.date=k,A.args=arguments,new C(A)},I=H;I.l=L,I.i=F,I.w=function(k,D){return E(k,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var C=function(){function k(A){this.$L=L(A.locale,null,!0),this.parse(A)}var D=k.prototype;return D.parse=function(A){this.$d=function(G){var U=G.date,J=G.utc;if(U===null)return new Date(NaN);if(I.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var X=U.match(g);if(X){var ne=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],ne,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],ne,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(U)}(A),this.$x=A.x||{},this.init()},D.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()},D.$utils=function(){return I},D.isValid=function(){return this.$d.toString()!==h},D.isSame=function(A,G){var U=E(A);return this.startOf(G)<=U&&U<=this.endOf(G)},D.isAfter=function(A,G){return E(A)<this.startOf(G)},D.isBefore=function(A,G){return this.endOf(G)<E(A)},D.$g=function(A,G,U){return I.u(A)?this[G]:this.set(U,A)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(A,G){var U=this,J=!!I.u(G)||G,X=I.p(A),ne=function(j,P){var B=I.w(U.$u?Date.UTC(U.$y,P,j):new Date(U.$y,P,j),U);return J?B:B.endOf(c)},ae=function(j,P){return I.w(U.toDate()[j].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(P)),U)},V=this.$W,x=this.$M,M=this.$D,R="set"+(this.$u?"UTC":"");switch(X){case $:return J?ne(1,0):ne(31,11);case d:return J?ne(1,x):ne(0,x+1);case f:var b=this.$locale().weekStart||0,W=(V<b?V+7:V)-b;return ne(J?M-W:M+(6-W),x);case c:case m:return ae(R+"Hours",0);case u:return ae(R+"Minutes",1);case s:return ae(R+"Seconds",2);case i:return ae(R+"Milliseconds",3);default:return this.clone()}},D.endOf=function(A){return this.startOf(A,!1)},D.$set=function(A,G){var U,J=I.p(A),X="set"+(this.$u?"UTC":""),ne=(U={},U[c]=X+"Date",U[m]=X+"Date",U[d]=X+"Month",U[$]=X+"FullYear",U[u]=X+"Hours",U[s]=X+"Minutes",U[i]=X+"Seconds",U[a]=X+"Milliseconds",U)[J],ae=J===c?this.$D+(G-this.$W):G;if(J===d||J===$){var V=this.clone().set(m,1);V.$d[ne](ae),V.init(),this.$d=V.set(m,Math.min(this.$D,V.daysInMonth())).$d}else ne&&this.$d[ne](ae);return this.init(),this},D.set=function(A,G){return this.clone().$set(A,G)},D.get=function(A){return this[I.p(A)]()},D.add=function(A,G){var U,J=this;A=Number(A);var X=I.p(G),ne=function(x){var M=E(J);return I.w(M.date(M.date()+Math.round(x*A)),J)};if(X===d)return this.set(d,this.$M+A);if(X===$)return this.set($,this.$y+A);if(X===c)return ne(1);if(X===f)return ne(7);var ae=(U={},U[s]=t,U[u]=r,U[i]=o,U)[X]||1,V=this.$d.getTime()+A*ae;return I.w(V,this)},D.subtract=function(A,G){return this.add(-1*A,G)},D.format=function(A){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var J=A||"YYYY-MM-DDTHH:mm:ssZ",X=I.z(this),ne=this.$H,ae=this.$m,V=this.$M,x=U.weekdays,M=U.months,R=function(P,B,Z,K){return P&&(P[B]||P(G,J))||Z[B].slice(0,K)},b=function(P){return I.s(ne%12||12,P,"0")},W=U.meridiem||function(P,B,Z){var K=P<12?"AM":"PM";return Z?K.toLowerCase():K},j={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:I.s(V+1,2,"0"),MMM:R(U.monthsShort,V,M,3),MMMM:R(M,V),D:this.$D,DD:I.s(this.$D,2,"0"),d:String(this.$W),dd:R(U.weekdaysMin,this.$W,x,2),ddd:R(U.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ne),HH:I.s(ne,2,"0"),h:b(1),hh:b(2),a:W(ne,ae,!0),A:W(ne,ae,!1),m:String(ae),mm:I.s(ae,2,"0"),s:String(this.$s),ss:I.s(this.$s,2,"0"),SSS:I.s(this.$ms,3,"0"),Z:X};return J.replace(T,function(P,B){return B||j[P]||X.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(A,G,U){var J,X=I.p(G),ne=E(A),ae=(ne.utcOffset()-this.utcOffset())*t,V=this-ne,x=I.m(this,ne);return x=(J={},J[$]=x/12,J[d]=x,J[v]=x/3,J[f]=(V-ae)/6048e5,J[c]=(V-ae)/864e5,J[u]=V/r,J[s]=V/t,J[i]=V/o,J)[X]||V,U?x:I.a(x)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return q[this.$L]},D.locale=function(A,G){if(!A)return this.$L;var U=this.clone(),J=L(A,G,!0);return J&&(U.$L=J),U},D.clone=function(){return I.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},k}(),z=C.prototype;return E.prototype=z,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",$],["$D",m]].forEach(function(k){z[k[1]]=function(D){return this.$g(D,k[0],k[1])}}),E.extend=function(k,D){return k.$i||(k(D,C,E),k.$i=!0),E},E.locale=L,E.isDayjs=F,E.unix=function(k){return E(1e3*k)},E.en=q[_],E.Ls=q,E.p={},E})})(Uo);var rs=Uo.exports;const Ze=ot(rs);var Go={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,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]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var O=1;O<=24;O+=1)if(h.indexOf(w(O,0,g))>-1){T=O>12;break}}else T=h===(g?"pm":"PM");return T},$={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function m(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,I,C){var z=C&&C.toUpperCase();return I||T[C]||o[C]||T[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,D,A){return D||A.slice(1)})})).match(t),O=w.length,H=0;H<O;H+=1){var _=w[H],q=$[_],F=q&&q[0],L=q&&q[1];w[H]=L?{regex:F,parser:L}:_.replace(/^\[|\]$/g,"")}return function(E){for(var I={},C=0,z=0;C<O;C+=1){var k=w[C];if(typeof k=="string")z+=k.length;else{var D=k.regex,A=k.parser,G=E.slice(z),U=D.exec(G)[0];A.call(I,U),E=E.replace(U,"")}}return function(J){var X=J.afternoon;if(X!==void 0){var ne=J.hours;X?ne<12&&(J.hours+=12):ne===12&&(J.hours=0),delete J.afternoon}}(I),I}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,O=w.parse;w.parse=function(H){var _=H.date,q=H.utc,F=H.args;this.$u=q;var L=F[1];if(typeof L=="string"){var E=F[2]===!0,I=F[3]===!0,C=E||I,z=F[2];I&&(z=F[2]),s=this.$locale(),!E&&z&&(s=T.Ls[z]),this.$d=function(G,U,J){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*G);var X=m(U)(G),ne=X.year,ae=X.month,V=X.day,x=X.hours,M=X.minutes,R=X.seconds,b=X.milliseconds,W=X.zone,j=new Date,P=V||(ne||ae?1:j.getDate()),B=ne||j.getFullYear(),Z=0;ne&&!ae||(Z=ae>0?ae-1:j.getMonth());var K=x||0,ee=M||0,oe=R||0,N=b||0;return W?new Date(Date.UTC(B,Z,P,K,ee,oe,N+60*W.offset*1e3)):J?new Date(Date.UTC(B,Z,P,K,ee,oe,N)):new Date(B,Z,P,K,ee,oe,N)}catch{return new Date("")}}(_,L,q),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),C&&_!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var k=L.length,D=1;D<=k;D+=1){F[1]=L[D-1];var A=T.apply(this,F);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}D===k&&(this.$d=new Date(""))}else O.call(this,H)}}})})(Go);var as=Go.exports;const is=ot(as);var Xo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t,r){var a=t.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(s||"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(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),v==="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 v}});return i.bind(this)(d)}}})})(Xo);var ss=Xo.exports;const us=ot(ss);var Zo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t,r){var a=t.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,$,m,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[$]),O=T||w.map(function(_){return _.slice(0,m)});if(!h)return O;var H=g.weekStart;return O.map(function(_,q){return O[(q+(H||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,v){return d.formats[v]||function($){return $.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},f=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.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(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Zo);var cs=Zo.exports;const fs=ot(cs);var Qo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){var o="week",t="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(t).add(1,t).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var v=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),$=this.diff(v,o,!0);return $<0?i(this).startOf("week").week():Math.ceil($)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Qo);var ds=Qo.exports;const hs=ot(ds);var Jo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,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}}})})(Jo);var gs=Jo.exports;const ms=ot(gs);var er={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,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")}}})})(er);var ps=er.exports;const ys=ot(ps);var tr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(tr);var bs=tr.exports;const vs=ot(bs);var nr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(nr);var ws=nr.exports;const Ss=ot(ws);Ze.extend(fs),Ze.extend(us),Ze.extend(is),Ze.extend(hs),Ze.extend(ms),Ze.extend(ys),Ze.extend(vs),Ze.extend(Ss);const je={format(e,n){return Ze(e).format(n)},parser(e,n){return Ze(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){e=e||0;let o=n??new Date;const t=e*(1e3*60*60*24);return o=new Date(o.getTime()+t),this.date2Str(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(),s=6-a;return t!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/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 s=r.getDay(),u=6-s;return t!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/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 u=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=je.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=je.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}},lr={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"}},or={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 xs(e,n,o){return{props:{...Te,...De,...lr,...or},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=l.computed(()=>A.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),$=l.computed(()=>A.value?"longTermKey":"normalKey"),m=P=>{if(A.value&&t.type==="daterange"){const B=[...d.value];B[0]=P,d.value=B}else d.value=P;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>A.value&&t.type==="daterange"?"date":t.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":A.value,"is-readonly":i.value,"is-disabled":a.value}));let w=me(t,"hintText"),O=l.ref(!1);const H=P=>{let Z=P.target.value;f.value=!0,be(w.value)||(O.value=!0),s("focus",Z,P)},_=P=>{setTimeout(()=>{O.value&&(O.value=!1),f.value=!1},0);let Z=P.target.value;t.maxLength&&Z.length>Number(t.maxLength)&&(Z=Z.slice(0,Number(t.maxLength))),s("blur",Z,P)},q=()=>{s("clear","")},F=P=>{s("calendar-change",P)},L=(P,B,Z)=>{s("panel-change",P,B,Z)},E=P=>{s("visible-change",P)},I=Fe(l.computed(()=>t.longTermText),"longTermText",Pe.Near),C=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",Pe.Near),z=Fe(l.computed(()=>t.longTermValue),"longTermValue",Pe.Near),k=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",Pe.Near);let D=null;const A=l.ref(ue(t.longTerm)),G=P=>{if(A.value=P,s("update:longTerm",P),P){if(D=d.value,t.type==="daterange"){const B=[];Array.isArray(z.value)?(B[0]=d.value?d.value[0]??z.value[0]:null,B[1]=z.value[1]??z.value[0]):(B[0]=d.value?d.value[0]??z.value:null,B[1]=A.value),B[0]||(B[0]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),B[1]||(B[1]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),d.value=B}else Array.isArray(z.value)?d.value=z.value[1]??z.value[0]:d.value=z.value,d.value||(d.value=t.valueFormat?je.format(new Date,t.valueFormat):new Date);s("update:modelValue",d.value)}else{if(t.type==="daterange"){const B=[];B[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(D)?B[1]=D[1]:B[1]=D,B[0]||(B[0]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),B[1]||(B[1]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),d.value=B}else d.value=D;s("update:modelValue",d.value),setTimeout(()=>{W()},100)}},U=ue(t.isLongTerm);if(U){const P=()=>{if(A.value===!0){if(D=d.value,t.type==="daterange"){const B=[d.value[0]];Array.isArray(z.value)?B[1]=z.value[1]??z.value[0]:B[1]=A.value,B[0]||(B[0]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),B[1]||(B[1]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),d.value=B}else d.value=z.value;s("update:modelValue",d.value)}else nt(z.value,d.value)&&(A.value=!0)};P(),l.watch([()=>t.longTerm],([B])=>{A.value!==B&&P()}),l.watch([()=>d.value],([B])=>{let Z=!1;if(t.type==="daterange"&&Array.isArray(B))try{let K=B[1];if(!K)return;typeof K!="string"&&t.valueFormat&&(K=je.format(K,t.valueFormat));let ee=Array.isArray(z.value)?z.value[1]:z.value;(K===ee||Array.isArray(k.value)&&k.value.findIndex(N=>K==N)!==-1)&&(Z=!0)}catch(K){console.error(K)}A.value!==Z&&(A.value=Z)},{immediate:!0})}const J=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),X=l.ref(),ne=l.ref(),ae=/^\d+$/,V=(P,B)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(P,B):ae.test(P)&&P.length===t.flashFillThreshold,x=(P,B)=>{let Z;if(typeof t.flashFillFormat=="function")Z=t.flashFillFormat(P,B);else{const ee=t.flashFillFormat??"YYYYMMDD";Z=je.parser(P,ee)}const K=t.valueFormat??"YYYY-MM-DD";return je.format(Z,K)},M=P=>P?P.endsWith("range"):!1,R=P=>{if(!P.target)return;const B=P.target.value??"";if(V(B,t.type)){const Z=x(B,t.type);if(M(t.type)){const K=Array.isArray(d.value)?[...d.value]:[];K[0]=Z,m(K)}else m(Z)}},b=P=>{if(!P.target)return;const B=P.target.value??"";if(V(B,t.type)){const Z=x(B,t.type);if(M(t.type)){const K=Array.isArray(d.value)?[...d.value]:[];K[1]=Z,m(K)}else m(Z)}},W=()=>{if(t.flashFill&&X.value&&X.value.$el)if(M(t.type)){const P=X.value.$el.querySelectorAll("input.el-range-input");P[0]&&P[0].addEventListener("input",R),P[1]&&P[1].addEventListener("input",b)}else{const P=X.value.$el.querySelector("input.el-input__inner");P&&P.addEventListener("input",R)}},j=()=>{if(t.flashFill&&X.value&&X.value.$el)if(M(t.type)){const P=X.value.$el.querySelectorAll("input.el-range-input");P[0]&&P[0].removeEventListener("input",R),P[1]&&P[1].removeEventListener("input",b)}else{const P=X.value.$el.querySelector("input.el-input__inner");P&&P.removeEventListener("input",R)}};return l.onMounted(W),l.onBeforeUnmount(j),Ne({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},handleOpen:()=>{ne?.value.handleOpen()},handleClose:()=>{ne?.value.handleClose()}}),()=>{const B={...r.attrs,key:$.value,type:h.value,ref:ne,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":m,onClear:q,onFocus:H,onBlur:_,onCalendarChange:F,onPanelChange:L,onVisibleChange:E},Z={};r.slots["range-separator"]&&(Z["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(Z.default=r.slots.cell);const K=[],ee=l.h(S.ElDatePicker,B,Z);K.push(ee);const oe={default:()=>K};if(r.slots.default&&(oe.label=r.slots.default),r.slots.fixedTip&&(oe.fixedTip=r.slots.fixedTip),U){if(A.value){const te=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ce=l.h("input",{class:["fox-date-item__long-text"],value:I.value,readonly:!0}),se={class:J.value},de=l.h("div",se,{default:()=>[te,ce]});K.push(de)}if(!i.value&&!a.value){const te={label:C.value||I.value,disabled:i.value||a.value,modelValue:A.value,"onUpdate:modelValue":G},ce=l.h(S.ElCheckbox,te),se=l.h("div",{class:{[`${g}__append`]:!0}},[ce]);oe.append=()=>se}}const y={...Oe(t,lr,or),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":U},hintText:w.value,hintVisible:O.value,prop:`${t.prop}_item`};return l.h(o,y,oe)}}}}const{componentName:Ts,create:Cs,scope:$s}=fe("date-item"),al=Cs(xs(Ts,$s,Ce)),rr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ns(e,n,o){return{props:{...Te,...De,...rr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0})),m=q=>{d.value=q,s("update:modelValue",q),s("change",q)};let h=me(t,"hintText"),g=l.ref(!1);const T=q=>{let L=q.target.value;f.value=!0,be(h.value)||(g.value=!0),s("focus",L,q)},w=q=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=q.target.value;t.maxLength&&L.length>Number(t.maxLength)&&(L=L.slice(0,Number(t.maxLength))),s("blur",L,q)},O=()=>{s("clear","")},H=q=>{s("visible-change",q)},_=l.ref();return Ne({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const F={...r.attrs,ref:_,class:$.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:O,onFocus:T,onBlur:w,onVisibleChange:H},L={},E=[],I=l.h(S.ElTimePicker,F,L);E.push(I);const C={default:()=>E};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const k={...Oe(t,rr),hintText:h.value,hintVisible:g.value,prop:`${t.prop}_item`};return l.h(o,k,C)}}}}const{componentName:Es,create:ks,scope:Is}=fe("time-item"),il=ks(Ns(Es,Is,Ce)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Os(e,n,o){return{props:{...Te,...De,...ar},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0})),m=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=me(t,"hintText"),g=l.ref(!1);const T=_=>{let F=_.target.value;f.value=!0,be(h.value)||(g.value=!0),s("focus",F,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let F=_.target.value;t.maxLength&&F.length>Number(t.maxLength)&&(F=F.slice(0,Number(t.maxLength))),s("blur",F,_)},O=()=>{s("clear","")},H=l.ref();return Ne({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},handleOpen:()=>{H?.value.handleOpen()},handleClose:()=>{H?.value.handleClose()}}),()=>{const q={...r.attrs,ref:H,class:$.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:O,onFocus:T,onBlur:w},F={},L=[],E=l.h(S.ElTimeSelect,q,F);L.push(E);const I={default:()=>L};r.slots.default&&(I.label=r.slots.default),r.slots.fixedTip&&(I.fixedTip=r.slots.fixedTip);const z={...Oe(t,ar),hintText:h.value,hintVisible:g.value,prop:`${t.prop}_item`};return l.h(o,z,I)}}}}const{componentName:Vs,create:Ds,scope:Fs}=fe("time-select-item"),sl=Ds(Os(Vs,Fs,Ce));function ir(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 sr(e,n,o=20){if(typeof n=="string"&&(n=xe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=ro(`${e}`,`${n}`);return ir(t)}else{let t=Dn(`${e}`,ao(`${n}`),20);return ir(t)}}function Rs(e,n=-1,o=!1,t=3,r=","){return Ut(e,n,o,t,r)}function ur(e,n,o,t,r=!0){if(e==="")return"";if(e=io(e),n=xe(n),n==1)return e;if(t)e=sr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Dn(e,1,xe(o)));else{let a=-1*n;e=sr(e,a)}return e}function cr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ue(n.minInclude),r=Fn(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=Fn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const fr={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 As(e,n,o){return{props:{...Te,...De,...fr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(!1),c=me(t,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>t.rates,()=>t.precision],([k,D,A])=>{if(be(k)){f.value="";return}const G=ur(k,D,A,!1);f.value!==G&&(f.value=G)},{immediate:!0});const d=l.computed(()=>{let k="";return u.value&&(k=f.value),k}),{t:v}=qe.useFoxI18n(n),$=l.computed(()=>{let k=t.placeholder??"";return!u.value&&!be(f.value)?k=Rs(f.value,t.decimalLength,t.autoPadding,t.digits,t.separator):k=v(["placeholder",k]),k}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let k=T.value;return be(k)&&(k=t.errorTip??""),k}),O=l.ref(""),H=l.ref(!1),_=(k,D)=>{if(k=`${k}`,be(k)){f.value="",c.value="",D.forEach(A=>{s(A,"")}),ue(t.showTip)&&H.value&&(H.value=!1);return}if(k.length>=2){let A=k;if(A.charAt(0)=="-"&&(A=A.substring(1)),A.length>=2&&A.charAt(0)=="0"&&A.charAt(1)!="."){l.triggerRef(f);return}}if(k!="-"){if(!po(k)){l.triggerRef(f);return}if(t.integerLength!=-1&&yo(k)>Number(t.integerLength)){l.triggerRef(f);return}if(t.decimalLength&&t.decimalLength!=-1&&bo(k)>Number(t.decimalLength)){l.triggerRef(f);return}let A=cr(k,t);if(A.maxValid===!1){T.value=A.message,l.triggerRef(f);return}}else if(t.min!=null&&xe(t.min)>=0){l.triggerRef(f);return}O.value=k,ue(t.showTip)&&(H.value=k.length>0),f.value=k,c.value=ur(k,t.rates,t.precision,!0),D.forEach(A=>{s(A,c.value)})},q=k=>{_(k,["update:modelValue","input"])},F=k=>{_(k,["update:modelValue","change"])},L=k=>{if(u.value=!0,ue(t.showTip)){let D=f.value;be(D)&&(D=t.hintText),be(D)||(O.value=D,H.value=!0)}T.value="",s("focus",c.value,k)},E=k=>{if(setTimeout(()=>{u.value=!1,ue(t.showTip)&&H.value===!0&&(H.value=!1)},0),!be(f.value)){let D=cr(f.value,t);if(D.minValid===!1||D.maxValid===!1){T.value=D.message;return}}s("update:modelValue",c.value,k),s("blur",c.value,k)},I=()=>{s("clear","")},C=l.computed(()=>It(t.unit)>0),z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const D={...Xe(r.attrs),ref:z,class:h.value,type:"digit",maxlength:t.maxLength,placeholder:$.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:I,onInput:q,onChange:F,onFocus:L,onBlur:E},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:C.value&&(A.suffix=()=>[t.unit]);const G=[],U=l.h(S.ElInput,D,A);G.push(U);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ne={...Oe(t,fr),errorTip:w.value,hintText:O.value,hintVisible:H.value,hintType:"number",prop:`${t.prop}_item`};return l.h(o,ne,J)}}}}const{componentName:Ms,create:Ls,scope:Bs}=fe("money-item"),ul=Ls(As(Ms,Bs,Ce)),dr={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 _s(e,n,o){return{props:{...Te,...De,...dr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0,[`${v}__append`]:q.value})),m=l.computed(()=>({[`${v}__unit`]:!0})),h=L=>{d.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)};let T=me(t,"hintText"),w=l.ref(!1);const O=L=>{let I=L.target.value;f.value=!0,be(T.value)||(w.value=!0),s("focus",I,L)},H=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let I=L.target.value;t.maxLength&&I.length>Number(t.maxLength)&&(I=I.slice(0,Number(t.maxLength))),s("blur",I,L)},_=()=>{s("clear","")},q=l.computed(()=>It(t.unit)>0),F=l.ref();return Ne({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...Xe(r.attrs),ref:F,class:$.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:_,onChange:g,onInput:h,onFocus:O,onBlur:H},I={},C=[],z=l.h(S.ElInputNumber,E,I);C.push(z);const k={default:()=>C};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const A={...Oe(t,dr),hintText:T.value,hintVisible:w.value,prop:`${t.prop}_item`};if(r.slots.append)k.append=r.slots.append;else if(q.value){const U={class:m.value},J=l.h("div",U,[t.unit]);k.append=()=>J}return l.h(o,A,k)}}}}const{componentName:qs,create:Ps,scope:js}=fe("input-number-item"),cl=Ps(_s(qs,js,Ce));function rt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function zs(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Hs=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=Ke(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}function fl(e,n,o){const t=rt(e,n),r=rt(e,o);if(t!==r)return!1;const a=pt(e,n),i=pt(e,o);return a===i}function hr(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 s=n[i];if(Array.isArray(s)){const u=hr(e,s,o,t);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=rt(e,c)===s;else if(o==="item")u=fl(e,c,s);else{let f=pt(e,c);f==null&&(f=rt(e,c)),u=f===s}if(u){r.push(c),a=zs(e,c);break}}if(!u)break}}return r}function Ws(e){return{text:e,value:e}}const gr={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,String],default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ys(e,n,o){return{props:{...Te,...De,...gr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(P=>Array.isArray(P)?P.map(Z=>rt(t,Z)).join(" "):rt(t,P)).join(" "):""),$=(j,P,B,Z=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(f.value===j)return;f.value=j;const N=l.toRaw(j);if(Z){const y=W?.value.getCheckedNodes();if(y)if(t.multiple){const Y=[];y.forEach(te=>{const se=(te.pathNodes??[]).map(de=>de.data);Y.push(se)}),s("update:pathNodes",Y)}else{const te=(y[0]?.pathNodes??[]).map(ce=>ce.data);s("update:pathNodes",te)}s("update:modelValue",N),s("change",N)}return}const K=hr(t,j,P,B);if(K===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,Z&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const ee=K[K.length-1];if(I.value.checkStrictly!==!0&&ee&&!Array.isArray(ee)&&Array.isArray(ee.children)&&ee.children.length>0){const N=[];K.forEach(y=>{const Y=`${rt(t,y)}`;N.push(Y)}),N.length>0&&(L.value=N.join(t.separator))}else L.value=null;let oe=!0;if(K.length!==d.value.length)oe=!1;else for(let N=0;N<K.length;N++){const y=K[N],Y=d.value[N];if(Array.isArray(y)){if(!Array.isArray(Y)||y.length!==Y.length)oe=!1;else for(let te=0;te<y.length;te++)if(!fl(t,y[te],Y[te])){oe=!1;break}}else fl(t,y,Y)||(oe=!1);if(!oe)break}if(!oe){d.value=K;let N=[],y=[];K.forEach(te=>{if(Array.isArray(te)){let ce=[],se=[];for(let de of te)ce.push(pt(t,de)),t.valueType==="text"?se.push(rt(t,de)):t.valueType==="item"?se.push(de):se.push(pt(t,de));N.push(ce),y.push(se)}else N.push(pt(t,te)),t.valueType==="text"?y.push(rt(t,te)):t.valueType==="item"?y.push(te):y.push(pt(t,te))}),f.value=N;const Y=l.toRaw(y);Z&&(s("update:pathNodes",K),s("update:modelValue",Y),s("change",Y))}},m=l.ref([]),h=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,j=>ue(j)),g=Ks(),T=async(j,P)=>{if(j){const B=await g.load("cascader",j,P);if(B.length>0)if(typeof B[0]=="string"){let ee=B.map(oe=>Ws(oe));m.value=ee}else m.value=B}};l.watch([()=>t.source,()=>t.params],async([j,P])=>{T(j,P)},{immediate:!(h.value||t.lazy)});let w=!1;const O=()=>{w||(w=!0,T(t.source,t.params))};l.watch([()=>m.value,()=>t.modelValue],([j,P])=>{$(P,t.valueType,j,!1),s("setValue",P)}),t.lazy&&$(t.modelValue,"value",[],!1);let H=null,_=l.ref(!1);typeof t.remoteMethod=="function"&&(H=async j=>{if(j!=null){_.value=!0;try{const P=await t.remoteMethod(j);m.value=P}catch(P){console.error(P)}_.value=!1}});const q=l.ref(!1),F=e,L=l.ref(null),E=l.computed(()=>({[F]:!0,"is-incomplete":L.value&&L.value.length>0})),I=l.computed(()=>{let j={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(j.multiple=!0),t.props&&Object.assign(j,t.props),t.lazy&&(j.lazy=!0,typeof t.lazyLoad=="function"?j.lazyLoad=t.lazyLoad:j.lazyLoad=async(P,B)=>{const Z=await g.load("cascader",t.source,P,!0);if(P?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===P.level){const K=P.pathLabels??[];let ee=[];K.forEach(oe=>{oe&&ee.push(oe)}),ee.length>0&&(L.value=ee.join(t.separator))}else L.value=null;B(Z)}),j}),C=j=>{t.allowCreate?(s("update:modelValue",j),s("change",j),f.value=j):$(j,"value",m.value,!0)};let z=me(t,"hintText"),k=l.ref(!1);const D=j=>{let B=j.target.value;q.value=!0,be(z.value)||(k.value=!0),s("focus",B,j)},A=j=>{setTimeout(()=>{k.value&&(k.value=!1),q.value=!1},0);let B=j.target.value;t.maxLength&&B.length>Number(t.maxLength)&&(B=B.slice(0,Number(t.maxLength))),x.value||s("blur",B,j)},G=()=>{s("clear","")},U=l.ref(!1);let J=null;const X=()=>{ue(t.showTooltip)&&U.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{U.value=!0},150))},ne=()=>{J&&(clearTimeout(J),U.value=!1,J=null)},ae=l.computed(()=>U.value||k.value),V=l.computed(()=>U.value?v.value:z.value),x=l.ref(!1),M=j=>{x.value=j,s("visible-change",j),j||s("selected")},R=j=>{s("remove-tag",j)},b=j=>{s("expand-change",j)},W=l.ref();return Ne({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},getCheckedNodes:()=>W?.value.getCheckedNodes()}),()=>{const P={...r.attrs,ref:W,class:E.value,props:I.value,clearable:t.clearable,placeholder:L.value||c.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:t.separator,onClear:G,onChange:C,onFocus:D,onBlur:A,onVisibleChange:M,onRemoveTag:R,expandChange:b};typeof H=="function"&&(P["remote-method"]=H,P.loading=_.value);const B={};r.slots.option&&(B.default=r.slots.option),r.slots.empty&&(B.empty=r.slots.empty);const Z=[],K=l.h(S.ElCascader,P,B);Z.push(K);const ee={default:()=>Z};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const N={...Oe(t,gr),hintText:V.value,hintVisible:ae.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:ne};return h.value&&!t.lazy&&(N["appear-listen"]=!0,N.onAppear=O),l.h(o,N,ee)}}}}const{componentName:Us,create:Gs,scope:Xs}=fe("cascader-item"),dl=Gs(Ys(Us,Xs,Ce)),mr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zs(e,n,o){return{props:{...Te,...De,...mr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0})),m=F=>{d.value=F,s("update:modelValue",F),s("input",F)},h=F=>{s("change",F)},g=F=>{s("select",F)};let T=me(t,"hintText"),w=l.ref(!1);const O=F=>{let E=F.target.value;f.value=!0,be(T.value)||(w.value=!0),s("focus",E,F)},H=F=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=F.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),s("blur",E,F)},_=()=>{s("clear","")},q=l.ref();return Ne({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const L={...r.attrs,ref:q,class:$.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:_,onChange:h,onInput:m,onFocus:O,onBlur:H,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const I=[],C=l.h(S.ElAutocomplete,L,E);I.push(C);const z={default:()=>I};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const D={...Oe(t,mr),hintText:T.value,hintVisible:w.value,prop:`${t.prop}_item`};return l.h(o,D,z)}}}}const{componentName:Qs,create:Js,scope:eu}=fe("autocomplete-item"),hl=Js(Zs(Qs,eu,Ce));function tu(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[t]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<a.length;u++){let c=n[u],f=a[u];const d=c.find(v=>v[t]===f);if(!d)break;i.push(d[o])}else{let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[t]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let nu=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function lu(){const e=l.getCurrentInstance();return new nu(e.proxy)}const pr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ou(e,n){return{props:{...pr},setup(o,{attrs:t,slots:r}){const a=lu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=tu(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)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const c={...t};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...t,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:kh,create:ru,scope:Ih}=fe("mapping"),Bt=ru(ou());function au(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function iu(e,n){return{props:{...pr},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const s=au(i.row,i.column.property);return r.default?l.h(Bt,{...o,modelValue:s},{default:r.default}):l.h(Bt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(S.ElTableColumn,{...t},a)}}}}const{componentName:Oh,create:su,scope:Vh}=fe("table-mapping-column"),gl=su(iu()),uu=Symbol.for("TableStateKey");function yr(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function cu(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(uu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=yr(s.row,s.column.property),c=a?yr(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),$={class:{"el-radio":!0,"is-checked":f}};return l.h("label",$,[v])}};return l.h(S.ElTableColumn,{...t},i)}}}}const{componentName:Dh,create:fu,scope:Fh}=fe("table-radio-column"),ml=fu(cu()),du={},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 gu(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 mu=ze(du,[["render",gu]]),{componentName:Rh,create:pu,scope:Ah}=fe("table-setting"),yu={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:"不固定"}},bu=pu({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:mu,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...yu},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed===""||b.fixed===!0||b.fixed==="left")),i=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed==="right")),s=l.computed(()=>r.value.filter(b=>!(b.label===""||b.type||b.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=b=>b.length>1,v=(b,W)=>{Array.isArray(b)&&Array.isArray(W)&&b.forEach(B=>{W.some(Z=>Z.prop===B.prop?(B.label=Z.label,!0):!1)});const j=[];r.value=b.map((B,Z)=>(!(B.label===""||B.type)&&B.visible!==!1&&j.push(B.prop),{...B,sortIndex:Z})),s.value.length+a.value.length+i.value.length===j.length?w.value=!0:j.length>0&&(O.value=!0),q.value=j},$=b=>b?b.type?b.type:b.label?b.prop:"":"",m=(b,W)=>{if(b.length!==W.length)return!1;const j=b.map(P=>$(P));for(let P of W){const B=$(P);if(j.indexOf(B)===-1)return!1}return!0},h=b=>{if(!b){const W=e.tableRef.getColumnSetting(),j=W.srcColumnPropertyList;t=j.map((P,B)=>({...P,sortIndex:B})),b=W.columnPropertyList,b&&b.length>0&&m(j,b)||(b=j)}v(b,t)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),O=l.ref(!1),H=b=>{const W=[];r.value.forEach(P=>{b&&!(P.label===""||P.type)&&W.push(P.prop),P.visible=b}),w.value=!1,O.value=!1,s.value.length+a.value.length+i.value.length===W.length?w.value=!0:W.length>0&&(O.value=!0),q.value=W,g()},_=()=>{h(t),g()},q=l.ref([]),F=b=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const P=b.indexOf(j.prop)!==-1;j.visible=P}),w.value=!1,O.value=!1;const W=s.value.length+a.value.length+i.value.length;b.length===W?w.value=!0:b.length>0&&(O.value=!0),g()},L=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},I=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,I(b)):null:null,C=b=>{const W=b.currentTarget;W&&W.dataset&&(E.roleType=W.dataset.roleType,E.index=W.dataset.index)},z=b=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},k=b=>{const W=b.currentTarget;b.relatedTarget;const j=I(W);if(!j)return;const P=j.dataset&&j.dataset.roleType;E.roleType===P&&(b.preventDefault(),E.currentRow&&E.currentRow!==j&&E.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),E.currentRow=j)},D=b=>{b.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},A=b=>{const W=b.currentTarget,j=I(W);if(!j)return;const P=j.dataset&&j.dataset.roleType;if(E.roleType!==P)return;b.preventDefault();const B=Number(E.index),Z=Number(j.dataset.index);if(B!==Z){if(B<Z){const K=r.value[B];r.value.splice(B,1),r.value.splice(Z,0,K)}else{const K=r.value[B];r.value.splice(B,1),r.value.splice(Z+1,0,K)}v(r.value,t),g()}},G=b=>{const W=r.value[b];W.fixed="left",g()},U=b=>{const W=r.value[b];W.fixed="right",g()},J=b=>{const W=r.value[b];W.fixed=void 0,g()},X=new Map;let ne=null;function ae(b){const W=document.createRange();return W.setStart(b,0),W.setEnd(b,b.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:w,isIndeterminate:O,handleCheckAllChange:H,handleReset:_,checkedValue:q,handleCheckChange:F,onShow:L,onDragStart:C,onDragEnd:z,onDragOver:k,onDragLeave:D,onDrop:A,toLeftFixed:G,toRightFixed:U,toUnFixed:J,checkboxLabelStyle:T,onMouseOverForOverflowText:(b,W,j)=>{const P=b.currentTarget;if(P){const B=Math.floor(P.offsetWidth);if(Math.floor(ae(P))>B){let K=X.get(W);if(K){if(K===ne)return;Me.hide(K)}K=Me.show(P,j,{type:"text",placement:"top",closeOnClick:!1}),X.set(W,K),ne=K}}},onMouseLeaveForOverflowText:(b,W)=>{const j=X.get(W);j&&(Me.hide(j),j===ne&&(ne=null))},onMouseOverForTip:(b,W)=>{const j=b.currentTarget;j&&(ne&&Me.hide(ne),ne=Me.show(j,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{ne&&(Me.hide(ne),ne=null)}}}}),vu={class:"fox-table-setting"},wu={class:"fox-table-setting__header"},Su={class:"fox-table-setting__body"},xu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Tu={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],$u=["onMouseover","onMouseleave"],Nu={class:"tools-item"},Eu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ku={key:0,class:"fox-table-setting__body-title"},Iu=["data-index","draggable"],Ou=["onMouseover","onMouseleave"],Vu={class:"tools-item"},Du={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Fu={key:0,class:"fox-table-setting__body-title"},Ru=["data-index","draggable"],Au=["onMouseover","onMouseleave"],Mu={class:"tools-item"};function Lu(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),$=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,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",vu,[l.createElementVNode("div",wu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Su,[l.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",xu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Tu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,$u)]),_:2},1032,["label"]),l.createElementVNode("div",Nu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Eu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",ku,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[15]||(n[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[16]||(n[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[17]||(n[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[18]||(n[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Ou)]),_:2},1032,["label"]),l.createElementVNode("div",Vu,[l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:n[10]||(n[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:n[12]||(n[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[13]||(n[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Iu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Du,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Fu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[24]||(n[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[25]||(n[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[26]||(n[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[27]||(n[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Au)]),_:2},1032,["label"]),l.createElementVNode("div",Mu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:n[19]||(n[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[20]||(n[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:n[21]||(n[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ru))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const vn=ze(bu,[["render",Lu]]);let Bu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,s){if(Array.isArray(o)){let c=(t-1)*r,f=c+r;f>o.length&&(f=o.length);const d=o.slice(c,f);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[t,r,a,i,s]);const u=Ke(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(tt(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,t,r,a,i,s]))}};function _u(){const e=l.getCurrentInstance();return new Bu(e.proxy)}class qu{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=Ke(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=Ke(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=Ke(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function br(){const e=l.getCurrentInstance();return new qu(e.proxy)}const Pu=Symbol.for("TableStateKey"),vr={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"}},wr={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},pl={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:()=>"不固定"}},ju={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function zu(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function yl(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=zu(t,r);if(a!==i)return!1}return!0})}function Hu(e,n,o){return{inheritAttrs:!1,props:{...Te,...De,...vr,...wr,...pl,...ju},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a}=qe.useFoxI18n(n),{emitEvent:i,broadcast:s}=$e({componentName:e,validateHandler:{getValue(...Q){return F.value}}},t.prop??r.attrs.name),u=e,c=l.computed(()=>({[u]:!0})),f=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${t.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${t.paginationAlign}`]:!0})),$=l.shallowRef({}),m=l.computed(()=>({...$.value,...t.params??{},...t.baseParams??{}})),h=l.ref(t.infiniteLoad===!0?0:t.pageIndex),g=l.ref(t.pageSize),T=ue(t.infiniteLoad);T||(l.watch(()=>t.pageIndex,Q=>{h.value=Q}),l.watch(()=>t.pageSize,Q=>{g.value=Q}),l.watch([h,g],([Q,re],[le,ie])=>{re!==ie&&(h.value=1,Q=1),C(t.data,Q,re,m.value)}));const w=()=>Array.isArray(t.data)?!0:ue(t.autoLoad);w()&&l.watch([()=>t.data,m],async([Q,re],[le,ie])=>{w()&&(Q!==le&&(E=!0),!(!Array.isArray(Q)&&nt(Q,le)&&nt(re,ie))&&(T?(h.value=0,_.value=!0,F.value=[],k()):h.value===1?C(Q,h.value,g.value,re):h.value=1))},{deep:!0});const O=Q=>{h.value=Q,i("page-index-change",Q)},H=Q=>{g.value=Q,i("page-size-change",Q)},_=l.ref(!0),q=l.ref(0),F=l.ref(),L=_u();let E=!0;const I=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,Q=>ue(Q)),C=async(Q,re,le,ie,Be)=>{E=!1;try{if(Be===!0){if(!_.value)return!1;const ye=await L.load("table",Q,re,le,ie,E,a.value);return q.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,F.value,ye.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=q.value)||ye.page.length<le?(_.value=!1,!1):!0}else{const ye=await L.load("table",Q,re,le,ie,E,a.value);return q.value=ye.totalSize,F.value=ye.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),q.value=0,F.value=[]}return!1};let z=!1;const k=async()=>{if(!z){if(z=!0,!_.value){z=!1;return}h.value+=1,await C(t.data,h.value,g.value,m.value,!0),z=!1}},D=(Q={},re=!1)=>new Promise(async le=>{$.value={...l.toRaw(Q??{})},re||(h.value=t.pageIndex??1),T===!0?(h.value=0,F.value=[],_.value=!0,await k()):await C(t.data,h.value,g.value,m.value),le()}),A=()=>{q.value=0,F.value=[],T===!0&&(h.value=0,_.value=!0)};let G=!1;const U=()=>{G||(G=!0,D())},J=l.ref(null);if(T===!0){let Q=null;const re=()=>{J.value&&(Q=new IntersectionObserver(ie=>{let Be=!1;for(let ye of ie)if(ye.intersectionRatio>0){Be=!0;break}Be&&k()}),Q.observe(J.value))},le=()=>{!Q||!J.value||(Q.unobserve(J.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(le)}w()&&!I.value&&D();const X=l.ref(null);l.provide(Pu,{currentRow:X});const ne=(Q,re)=>{X.value=Q,i("current-change",Q,re)},ae=(Q,re,le)=>{i("row-click",Q,re,le),ue(t.rowClickSelectable)===!0&&pe?.value.toggleRowSelection(Q)},V=[],x=(Q,re)=>{if(i("expand-change",Q,re),ue(t.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const le=V.length;V.splice(0,le)}else{V.forEach(ie=>{ie!==Q&&pe?.value.toggleRowExpansion(ie,!1)});const le=V.length;V.splice(0,le,Q)}},M=r.attrs.id??t.prop??r.attrs.name,R=br(),b=l.ref([]);let W=[];const j=()=>({srcColumnPropertyList:W.map(re=>({...re})),columnPropertyList:b.value}),P=Q=>{b.value=[...Q],Z()},B=async()=>{const Q=await R.load(M);Q&&(b.value=Q)},Z=()=>{R.save(M,b.value)},K=()=>{R.remove(M)};B();const ee=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",oe=()=>typeof r.slots.default=="function"?r.slots.default():[],N=(Q,re)=>{for(let le in re){const ie=re[le];typeof ie!="function"&&(Q[le]=ie)}},y=l.computed(()=>{const Q=oe(),re=new Map;if(W=[],Q.forEach(le=>{const ie=le;if(!ie.props)return;const Be=ee(ie.props);re.set(Be,le);const ye={label:"",prop:""};N(ye,ie.props),W.push(ye)}),b.value.length===W.length){const le=[];for(let ie of b.value){const Be=ee(ie),ye=re.get(Be);if(!ye)return Q;if(ie.visible===!1)continue;const it=ye;it.props.fixed=ie.fixed,le.push(it)}return le}return Q}),Y=l.shallowRef(new Map),te=({row:Q,column:re,rowIndex:le,columnIndex:ie})=>{const Be=`${le}_${re.property}`,ye=`${le}_${ie}`;let it=Y.value.get(Be);return it||(it=Y.value.get(ye)),typeof it=="string"?it:""},ce=Q=>Q?re=>{const le=[];let ie=te(re);return ie&&le.push(ie),ie=typeof Q=="function"?Q(re):Q,ie&&le.push(ie),le.length===0?"":le.join(" ")}:te,se=(Q=!1)=>{Y.value.forEach((re,le)=>{de(le,re,Q)})},de=(Q,re,le=!1)=>{const ie=`${Q}_item`;le?(s.clearPersistantMessage(),Array.isArray(re)?s.emitToChildren({name:Q},"setCellClassNames",[]):s.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(re)?s.emitToChildren({name:Q,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",re):s.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",re)},Se=(Q,re,le)=>{const ie=`${Q}_${re}`;le?(Y.value.set(ie,le),de(ie,le)):(Y.value.delete(ie),de(ie,"",!0)),l.triggerRef(Y)},Qe=Q=>{se(!0),Y.value.clear(),Q.forEach(re=>{const le=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?Y.value.set(le,re.children):typeof re.cellClassName=="string"&&Y.value.set(le,re.cellClassName)}),se(),l.triggerRef(Y)},Je=()=>{se(),Y.value.clear(),l.triggerRef(Y)},et=l.shallowRef(new Map),Ee=({rowIndex:Q})=>{const re=`${Q}`;return et.value.get(re)??""},at=Q=>Q?re=>{const le=[];let ie=Ee(re);return ie&&le.push(ie),ie=typeof Q=="function"?Q(re):Q,ie&&le.push(ie),le.length===0?"":le.join(" ")}:Ee,We=(Q,re)=>{const le=`${Q}`;re?et.value.set(le,re):et.value.delete(le),l.triggerRef(et)},jt=()=>{et.value.clear(),l.triggerRef(et)},pe=l.ref();return Ne({clearSelection:()=>pe?.value.clearSelection(),getSelectionRows:()=>pe?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{pe?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!F.value)return;const le=yl(F.value,Q);le.length!==0&&le.forEach(ie=>{pe?.value.toggleRowSelection(ie,re)})},toggleAllSelection:()=>{pe?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{pe?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!F.value)return;const le=yl(F.value,Q);le.length!==0&&le.forEach(ie=>{pe?.value.toggleRowExpansion(ie,re)})},setCurrentRow:Q=>{pe?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!F.value)return;const re=yl(F.value,Q);re.length!==0&&pe?.value.setCurrentRow(re[0])},getCurrentRow:()=>X.value,clearSort:()=>{pe?.value.clearSort()},clearFilter:Q=>{pe?.value.clearFilter(Q)},doLayout:()=>{pe?.value.doLayout()},sort:(Q,re)=>{pe?.value.sort(Q,re)},scrollTo:(Q,re)=>{pe?.value.scrollTo(Q,re)},setScrollTop:Q=>{pe?.value.setScrollTop(Q)},setScrollLeft:Q=>{pe?.value.setScrollLeft(Q)},loadData:D,clearData:A,getData(){return F.value},getTotalSize(){return q.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:j,setColumnSetting:P,removeColumnSetting:K,setCellClassName:Se,setCellClassNames:Qe,clearCellClassName:Je,setRowClassName:We,clearRowClassName:jt}),()=>{const re={...Xe(r.attrs),onCurrentChange:ne,onRowClick:ae,onExpandChange:x,data:F.value,ref:pe,class:c.value,"cell-class-name":ce(t.cellClassName),"row-class-name":at(t.rowClassName)},le={};if(r.slots.default&&(le.default=()=>y.value),r.slots.append&&(le.append=r.slots.append),r.slots.empty&&(le.empty=r.slots.empty),T===!0){const Ye=[];if(_.value){const Ht=l.h(ke.Loading,{class:`${u}__infinite-icon`});Ye.push(Ht);const Ql=l.h("span",{class:`${u}__infinite-text`},[t.loadText]);Ye.push(Ql)}else{const Ht=l.h("span",{class:`${u}__infinite-text`},[t.loadMoreText]);Ye.push(Ht)}const bt={ref:J,class:`${u}__infinite`},Zl=l.h("div",bt,Ye);le.append=()=>Zl}const ie=l.h(S.ElTable,re,le),Be=[];if(Be.push(ie),!T){let Ye=null;if(typeof r.slots.pagination=="function")Ye=r.slots.pagination();else if(t.showPagination){const bt={class:v.value,total:q.value,pageSize:g.value,"onUpdate:pageSize":H,pageSizes:t.pageSizes,currentPage:h.value,"onUpdate:currentPage":O,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,samll:t.paginationSmall,background:t.paginationBackground};Ye=l.h(S.ElPagination,bt)}if(t.showSetting){const bt=[];Ye&&bt.push(Ye);const Zl=l.h(S.ElIcon,{class:f.value},{default:()=>l.h(ke.Setting)}),Ht=wo(t,pl),Ql=l.h(vn,{...Ht,tableRef:{getColumnSetting:j,setColumnSetting:P,removeColumnSetting:K}},{default:()=>Zl});bt.push(Ql);const Sh=l.h("div",{class:d.value},bt);Be.push(Sh)}else Ye&&Be.push(Ye)}const ye={default:()=>Be},zt={...Oe(t,vr,wr,pl),prop:`${t.prop}_item`};return zt.contentClass=`${u}__wrap`,zt.errorMarkClass="is-table-error",I.value&&w()&&(zt["appear-listen"]=!0,zt.onAppear=U),l.h(o,zt,ye)}}}}const{componentName:Ku,create:Wu,scope:Yu}=fe("table-item"),bl=Wu(Hu(Ku,Yu,Ce));function Tt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function _t(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Gu=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Xu(){const e=l.getCurrentInstance();return new Gu(e.proxy)}function Sr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Tt(e,n),r=Tt(e,o);if(t!==r)return!1;const a=_t(e,n),i=_t(e,o);return a===i}function Zu(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=Tt(e,a)===n;else if(o==="item")i=Sr(e,a,n);else{let s=_t(e,a);s==null&&(s=Tt(e,a)),i=s===n}if(i){r=a;break}}return r}function Qu(e){return{text:e,value:e}}function Ju(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const xr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function ec(e,n,o){return{inheritAttrs:!0,props:{...Te,...De,...xr},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(F,L,E,I=!0)=>{const C=Zu(t,F,L,E);if(C===null){if(c.value===null)return;c.value=null,u.value=null,I&&(s("update:modelValue",null),s("change",null));return}if(!Sr(t,C,c.value)){u.value=F;const k=l.toRaw(C);c.value=k;let D=null;t.valueType==="text"?D=Tt(t,k):t.valueType==="item"?D=k:D=_t(t,k),I&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),v=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,F=>ue(F)),$=Xu(),m=async(F,L)=>{if(F){const E=await $.load("radio",F,L);if(E.length>0)if(typeof E[0]=="string"){let z=E.map(k=>Qu(k));d.value=z}else d.value=E}};l.watch([()=>t.source,()=>t.params],async([F,L])=>{m(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([F,L])=>{f(L,t.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${t.direction}`]:!0})),O=F=>{f(F,"value",d.value,!0)};let H=me(t,"hintText"),_=me(t,"hintVisible");const q=(F,L)=>{const E=[];return F.forEach((I,C)=>{const z=_t(t,I),k=Tt(t,I);let D=Uu(t,I);a.value===!0&&(D=a.value),i.value===!0&&(D=i.value);const A=Ju(t,I,C)??{},G=`${z}_${C}`,U={...A,key:G,label:z,size:t.size,border:ue(t.border)};D&&(U.disabled=D),t.itemType==="button"?E.push(l.h(S.ElRadioButton,U,{default:()=>[k]})):typeof L=="function"?E.push(l.h(S.ElRadio,U,{default:()=>L(I)})):E.push(l.h(S.ElRadio,U,{default:()=>[k]}))}),E};return()=>{const L={...Xe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,onChange:O},E=[],I={};r.slots.options?I.default=r.slots.options:I.default=()=>q(d.value,r.slots.text);const C=l.h(S.ElRadioGroup,L,I);E.push(C);const z={default:()=>E};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const D={...Oe(t,xr),hintText:H.value,hintVisible:_.value,prop:`${t.prop??r.attrs.name}_item`};return v.value&&(D["appear-listen"]=!0,D.onAppear=g),l.h(o,D,z)}}}}const{componentName:tc,create:nc,scope:lc}=fe("radio-item"),vl=nc(ec(tc,lc,Ce));function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $t(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function oc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let rc=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ac(){const e=l.getCurrentInstance();return new rc(e.proxy)}function Tr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Ct(e,n),r=Ct(e,o);if(t!==r)return!1;const a=$t(e,n),i=$t(e,o);return a===i}function ic(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 s=!1;if(o==="text")s=Ct(e,i)===a;else if(o==="item")s=Tr(e,i,a);else{let u=$t(e,i);u==null&&(u=Ct(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function sc(e){return{text:e,value:e}}function uc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Cr={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 cc(e,n,o){return{inheritAttrs:!0,props:{...Te,...De,...Cr},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(F,L,E,I=!0)=>{const C=ic(t,F,L,E);if(C===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],I&&(s("update:modelValue",[]),s("change",[]));return}let z=!0;if(C.length!==c.value.length)z=!1;else for(let k=0;k<C.length;k++){const D=C[k],A=c.value[k];if(!Tr(t,D,A)){z=!1;break}}if(!z){c.value=C;let k=[],D=[];C.forEach(G=>{k.push($t(t,G)),t.valueType==="text"?D.push(Ct(t,G)):t.valueType==="item"?D.push(G):D.push($t(t,G))}),u.value=k;const A=l.toRaw(D);I&&(s("update:modelValue",A),s("change",A))}},d=l.ref([]),v=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,F=>ue(F)),$=ac(),m=async(F,L)=>{if(F){const E=await $.load("checkbox",F,L);if(E.length>0)if(typeof E[0]=="string"){let z=E.map(k=>sc(k));d.value=z}else d.value=E}};l.watch([()=>t.source,()=>t.params],async([F,L])=>{m(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([F,L])=>{f(L,t.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${t.direction}`]:!0})),O=F=>{f(F,"value",d.value,!0)};let H=me(t,"hintText"),_=me(t,"hintVisible");const q=(F,L)=>{const E=[];return F.forEach((I,C)=>{const z=$t(t,I),k=Ct(t,I);let D=oc(t,I);a.value===!0&&(D=a.value),i.value===!0&&(D=i.value);const A=uc(t,I,C)??{},G=`${z}_${C}`,U={...A,key:G,class:t.itemClass,label:z,size:t.size,border:ue(t.border)};D&&(U.disabled=D),t.itemType==="button"?E.push(l.h(S.ElCheckboxButton,U,{default:()=>[k]})):typeof L=="function"?E.push(l.h(S.ElCheckbox,U,{default:()=>L(I)})):E.push(l.h(S.ElCheckbox,U,{default:()=>[k]}))}),E};return()=>{const L={...Xe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,max:xe(t.max),min:xe(t.min),onChange:O},E=[],I={};r.slots.options?I.default=r.slots.options:I.default=()=>q(d.value,r.slots.text);const C=l.h(S.ElCheckboxGroup,L,I);E.push(C);const z={default:()=>E};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const D={...Oe(t,Cr),hintText:H.value,hintVisible:_.value,prop:`${t.prop??r.attrs.name}_item`};return v.value&&(D["appear-listen"]=!0,D.onAppear=g),l.h(o,D,z)}}}}const{componentName:fc,create:dc,scope:hc}=fe("checkbox-item"),wl=dc(cc(fc,hc,Ce)),$r={modelValue:{type:[Number,String],required:!1}};function gc(e,n,o){return{props:{...Te,...De,...$r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",h=>xe(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=me(t,"hintText"),$=l.ref(!1);const m=l.ref();return Ne({}),()=>{const g={...Xe(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],O=l.h(S.ElRate,g,T);w.push(O);const H={default:()=>w};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const q={...Oe(t,$r),hintText:v.value,hintVisible:$.value,prop:`${t.prop}_item`};return l.h(o,q,H)}}}}const{componentName:mc,create:pc,scope:yc}=fe("rate-item"),Sl=pc(gc(mc,yc,Ce)),Nr={modelValue:{type:[Boolean,String,Number],required:!1}};function bc(e,n,o){return{props:{...Te,...De,...Nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=me(t,"hintText"),$=me(t,"hintVisible");const m=l.ref();return Ne({}),()=>{const g={...Xe(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],O=l.h(S.ElSwitch,g,T);w.push(O);const H={default:()=>w};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const q={...Oe(t,Nr),hintText:v.value,hintVisible:$.value,prop:`${t.prop}_item`};return l.h(o,q,H)}}}}const{componentName:vc,create:wc,scope:Sc}=fe("switch-item"),xl=wc(bc(vc,Sc,Ce)),Er={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function xc(e,n,o){return{props:{...Te,...De,...Er},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),s=l.ref(!1),{emitEvent:u}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),c=me(t,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),v=_=>{u("update:modelValue",_),u("change",_)};let $=me(t,"hintText"),m=l.ref(!1);const h=_=>{let F=_.target.value;s.value=!0,be($.value)||(m.value=!0),u("focus",F,_)},g=_=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let F=_.target.value;t.maxLength&&F.length>Number(t.maxLength)&&(F=F.slice(0,Number(t.maxLength))),w.value||u("blur",F,_)},T=()=>{u("clear","")},w=l.ref(!1),O=_=>{w.value=_,u("visible-change",_),_||u("selected")},H=l.ref();return Ne({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const q={...Xe(r.attrs),ref:H,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:O},F={};r.slots.option&&(F.default=r.slots.option);const L=[],E=l.h(S.ElTreeSelect,q,F);L.push(E);const I={default:()=>L};r.slots.default&&(I.label=r.slots.default),r.slots.fixedTip&&(I.fixedTip=r.slots.fixedTip);const z={...Oe(t,Er),hintText:$.value,hintVisible:m.value,prop:`${t.prop}_item`};return l.h(o,z,I)}}}}const{componentName:Tc,create:Cc,scope:$c}=fe("tree-select-item"),Tl=Cc(xc(Tc,$c,Ce)),Nc={},Ec={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 kc(e,n){return l.openBlock(),l.createElementBlock("svg",Ec,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 Ic=ze(Nc,[["render",kc]]),{componentName:Mh,create:Oc,scope:Lh}=fe("group-setting"),Vc={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:"到底部"}},Dc=Oc({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Ic,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Vc},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=br(),s=V=>V.length>1,u=()=>{const V=[],x=[...a.value];a.value=x.map((R,b)=>(R.visible!==!1&&V.push(R.prop),{...R,sortIndex:b})),a.value.length===V.length?h.value=!0:V.length>0&&(g.value=!0),O.value=V},c=V=>{let x=null;if(typeof V=="string")x=document.querySelectorAll(`.fox-group[prop="${V}"] > div > .fox-item[prop]`);else if(V&&typeof V=="object"){const R=V.$el??V;typeof R.querySelectorAll=="function"&&(x=R.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const M=[];return x.forEach(R=>{const b=R.querySelector(".label--string");let W="";b&&(W=b.textContent??"");const j=R.getAttribute("prop")??"",B=window.getComputedStyle(R,null).getPropertyValue("display");M.push({label:W,prop:j,sortIndex:0,visible:B!=="none"})}),M},f=()=>{if(!r){const V=c(e.groupRef??e.groupProp);if(V.length===0)return!1;r=V}return!0},d=async(V=!1)=>{const x=await i.load(e.groupProp),M=R=>{if(!R||!r)return;const b=r.map(W=>({...W}));Array.isArray(x)&&x.forEach(W=>{b.some(j=>{if(j.prop===W.prop){const P=j.label;return Object.assign(j,W),j.label=P,!0}return!1})}),a.value=b.sort((W,j)=>W.sortIndex-j.sortIndex),u(),V&&$(!1)};r?M(!0):nn(f,e.initDelay,5,50,!1,M)},v=()=>{const V=r??[];a.value=V.map(x=>({...x})),u(),$()},$=(V=!0)=>{V&&i.save(e.groupProp,a.value);const x=a.value.map(M=>({...M}));n("change",x)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=V=>{const x=[];a.value.forEach(R=>{V&&x.push(R.prop),R.visible=V}),h.value=!1,g.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(g.value=!0),O.value=x,$()},w=()=>{v()},O=l.ref([]),H=V=>{a.value.forEach(M=>{const R=V.indexOf(M.prop)!==-1;M.visible=R}),h.value=!1,g.value=!1;const x=a.value.length;V.length===x?h.value=!0:V.length>0&&(g.value=!0),$()},_=()=>{d()};l.onMounted(()=>{d(!0)});const q={currentRow:null,index:null},F=V=>V?V.dataset&&V.dataset.role==="row"?V:V.tagName.toLowerCase()!=="body"?(V=V.parentElement,F(V)):null:null,L=V=>{const x=V.currentTarget;x&&x.dataset&&(q.index=x.dataset.index)},E=V=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},I=V=>{const x=V.currentTarget;V.relatedTarget;const M=F(x);M&&(V.preventDefault(),q.currentRow&&q.currentRow!==M&&q.currentRow.classList.remove("is-dragover"),M.classList.add("is-dragover"),q.currentRow=M)},C=V=>{V.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},z=V=>{const x=V.currentTarget,M=F(x);if(!M)return;V.preventDefault();const R=Number(q.index),b=Number(M.dataset.index);if(R!==b){if(R<b){const W=a.value[R];a.value.splice(R,1),a.value.splice(b,0,W)}else{const W=a.value[R];a.value.splice(R,1),a.value.splice(b+1,0,W)}u(),$()}},k=V=>{const x=a.value[V];a.value.splice(V,1),a.value.splice(0,0,x),u(),$()},D=V=>{const x=a.value[V];a.value.splice(V,1),a.value.push(x),u(),$()};t({refresh:()=>{r=null,d(!1)}});const A=new Map;let G=null;function U(V){const x=document.createRange();return x.setStart(V,0),x.setEnd(V,V.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:O,handleCheckChange:H,onShow:_,onDragStart:L,onDragEnd:E,onDragOver:I,onDragLeave:C,onDrop:z,checkboxLabelStyle:m,toTop:k,toBottom:D,onMouseOverForOverflowText:(V,x,M)=>{const R=V.currentTarget;if(R){const b=Math.floor(R.offsetWidth);if(Math.floor(U(R))>b){let j=A.get(x);if(j){if(j===G)return;Me.hide(j)}j=Me.show(R,M,{type:"text",placement:"top",closeOnClick:!1}),A.set(x,j),G=j}}},onMouseLeaveForOverflowText:(V,x)=>{const M=A.get(x);M&&(Me.hide(M),M===G&&(G=null))},onMouseOverForTip:(V,x)=>{const M=V.currentTarget;M&&(G&&Me.hide(G),G=Me.show(M,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:V=>{G&&(Me.hide(G),G=null)}}}}),Fc={class:"fox-group-setting"},Rc={class:"fox-group-setting__header"},Ac={class:"fox-group-setting__body"},Mc={class:"fox-group-setting__body-list","data-role":"container"},Lc=["data-index","draggable"],Bc=["onMouseover","onMouseleave"],_c={class:"tools-item"};function qc(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),d=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",Fc,[l.createElementVNode("div",Rc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=$=>e.isCheckAll=$),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Ac,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=$=>e.checkedValue=$),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Mc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,$=>(l.openBlock(),l.createElementBlock("div",{key:$.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":$.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[6]||(n[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[7]||(n[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[8]||(n[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[9]||(n[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:$.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,$.prop,$.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,$.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString($.label),45,Bc)]),_:2},1032,["label"]),l.createElementVNode("div",_c,[l.createVNode(f,{onClick:m=>e.toTop($.sortIndex),onMouseover:n[1]||(n[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:n[2]||(n[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toBottom($.sortIndex),onMouseover:n[3]||(n[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:n[4]||(n[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Lc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cl=ze(Dc,[["render",qc]]);var Pc=["aria-labelledby"],jc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Pc))}}),zc=["aria-labelledby"],$l=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[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.8M550.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 16s-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.4zM121.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.4zM38.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.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 16zm160-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.4M473.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.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.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.8M985.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.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,zc))}}),Hc=["aria-labelledby"],Kc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[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 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Hc))}}),Wc=["aria-labelledby"],Yc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Wc))}}),Uc=["aria-labelledby"],Gc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 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)]],14,Uc))}});const Xc={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},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},kr=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],Zc=(e,n)=>n[e.visibleKey],Ir=(e,n)=>n[e.disabledKey],Qc=(e,n)=>{const o=n[e.doitKey];return ue(o)},Jc=(e,n)=>{const o=n[e.numKey];return o==null?null:xe(n[o])},Or=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function ef(e,n,o,t=!1){return{props:{...Xc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const V={};return V[`${e}`]=!0,V}),u=l.computed(()=>{const V={};return V[`${e}__titles`]=!0,V[`${r.direction}`]=!0,r.align==="left"&&(V.left=!0),r.scroll===!0&&(V.scrollable=!0),r.shape&&(V[`${r.shape}`]=!0),V}),c=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const V=ge(r.gutter);return V<=0?0:V}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,V=>{d.value!==V&&(d.value=V,U(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),$=l.computed(()=>{const V={};return h.value||(V.display="none"),V}),m=l.ref(),h=l.ref(!1),g=()=>{const V=!h.value;T(V)},T=V=>{const x=V;x?(h.value=x,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,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),O=l.ref([]),H=(V,x)=>{O.value[x]=V},_=V=>x=>{H(x,V)},q=(V,x)=>{const M=w.value,R=O.value;if(!M||!R||!R[V])return;const b=R[V];let W=0;r.direction==="vertical"?W=b.offsetTop-(M.offsetHeight-b.offsetHeight)/2:W=b.offsetLeft-(M.offsetWidth-b.offsetWidth)/2,F(M,W,x?0:.3,r.direction)},F=(V,x,M,R)=>{let b=0;const W=R==="horizontal"?V.scrollLeft:V.scrollTop,j=M===0?1:Math.round(M*1e3/16);function P(){R==="horizontal"?V.scrollLeft+=(x-W)/j:V.scrollTop+=(x-W)/j,++b<j&&Rn(P)}P()},L=(V,x)=>{const M=qt(r,V),R={};return R[`${e}__titles-item`]=!0,R.disabled=Ir(r,V),R.active=M===d.value,r.shape&&(R[`${r.shape}`]=!0),r.ellipsis&&(R.ellipsis=!0),x&&(x.class&&(R[`${x.class}`]=!0),x.disabled===!0&&(R.disabled=x.disabled)),R},E=(V,x)=>{const M={};if(f.value>0){const R=Math.abs(f.value/2);r.direction==="vertical"?(M["margin-top"]=`${R}px`,M["margin-bottom"]=`${R}px`):(M["margin-left"]=`${R}px`,M["margin-right"]=`${R}px`)}return x&&x.style&&Object.assign(M,x.style),M},I=(V,x)=>`${qt(r,V)??x}`,C=(V,x)=>{const M=qt(r,V),R={};R[`${e}__popup-item`]=!0,R.disabled=Ir(r,V),R.active=M===d.value,r.shape&&(R[`${r.shape}`]=!0);const b=Or(r,V,x);return b&&b.disabled===!0&&(R.disabled=b.disabled),R},z=l.computed(()=>(r.data??[]).filter(x=>Zc(r,x)!==!1)),k=(V,x)=>{const M=qt(r,V);if(d.value==M)return;const R=()=>{d.value=M,r.scroll&&q(x,!1),i("update:modelValue",M),i("change",V,x)};if(typeof r.beforeChange=="function"){const b=r.beforeChange(V,x);uo(b)?b.then(W=>{W!==!1&&R()}).catch(()=>{R()}):b!==!1&&R()}else R()},D=(V,x)=>function(){k(V,x)},A=(V,x)=>{k(V,x),T(!1)},G=(V,x)=>function(){A(V,x)},U=V=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(M=>qt(r,M)===d.value);x!==-1&&q(x,V)};l.watch(()=>r.data,()=>{setTimeout(U,0)}),l.onMounted(()=>{U(!0)});const J=(V,x)=>{if(a.item)return a.item({item:V,index:x});const M=Or(r,V,x),R=[];if(a.text){const P=a.text({item:V,index:x});R.push(P)}else{const P=[];if(M?.doit===!0||Qc(r,V)){const ee={class:[`${e}__titles-item-tip`,"doit"]},oe=l.h("view",ee);P.push(oe)}const B=M?.num??Jc(r,V);if(B){let ee="";const oe=xe(B);oe>=100?ee="99+":ee=`${oe}`;const N={class:[`${e}__titles-item-tip`,"num"]},y=l.h("view",N,[ee]);P.push(y)}const Z={class:`${e}__titles-item-text`};P.push(kr(r,V));const K=l.h("view",Z,P);R.push(K)}const b={class:`${e}__titles-item-line`},W=l.h("view",b);R.push(W);const j={ref:_(x),class:L(V,M),style:E(V,M),key:I(V,x),onClick:D(V,x)};return l.h("view",j,R)},X=()=>{const V=a.default?a.default():[];if(V.length===0)for(let M=0;M<z.value.length;M++){const R=z.value[M],b=J(R,M);V.push(b)}const x={ref:w,class:u.value,style:c.value};return l.h("view",x,V)},ne=()=>{let V=null;a.navigation?V=a.navigation():V=l.h(o);const x={class:`${e}__navigation`,onClick:g};return l.h("view",x,[V])},ae=()=>{const V=[];for(let M=0;M<z.value.length;M++){const R=z.value[M];let b=null;a.popupItem?b=a.popupItem({item:R,index:M}):b=kr(r,R);const W={class:C(R,M),key:I(R,M),onClick:G(R,M)},j=l.h("view",W,[b]);V.push(j)}const x={class:v.value,style:$.value};return l.h("view",x,V)};return()=>{const V=[],x=X();if(V.push(x),r.showQuickNavigation){const R=ne();V.push(R);const b=ae();V.push(b)}const M={class:s.value};return l.h("view",M,V)}}}}const{create:tf,componentName:nf,scope:lf}=fe("tabs-bar"),Nl=tf(ef(nf,lf,jc,!1)),Vr=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function rf(e,n,o=!1){return{props:{...of},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!t.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(Vr,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const c=l.ref(null),f=l.ref(null),d=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0}));let v=!0;const $=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const g=cn(c.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(c.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:$.value,ref:f},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:c};return l.h("view",T,[g])}}}}const{create:af,componentName:sf,scope:uf}=fe("tabs-container"),El=af(rf(sf,uf,!1)),cf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function ff(e,n,o){return{props:{...cf},setup(t,{emit:r,slots:a}){const i=l.inject(Vr);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const s=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}),u=l.computed(()=>t.loaded!=null?ue(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},v=t.emptyIcon??o,$=l.h(v,d),m={class:`${e}__empty-text`},h=t.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},w=l.h("view",T,[$,g]);c.push(w)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:df,componentName:hf,scope:gf}=fe("tabs-pane"),kl=df(ff(hf,gf,$l)),mf={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:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function pf(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Dr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function yf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Il(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Rr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Ar(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ol(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class bf{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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function vf(){const e=l.getCurrentInstance();return new bf(e.proxy)}function wf(e,n,o,t){return{props:{...mf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=vf(),c=l.ref([]),f=l.computed(()=>c.value.filter(x=>yf(r,x)!==!1)),d=l.ref(-1),v=()=>{const x=r.modelValue,M=f.value.findIndex(R=>Dr(r,R)===x);d.value!==M&&(d.value=M,r.scroll&&ae(M,!1))};l.watch([()=>r.modelValue,f],()=>{v()});const $=x=>d.value===x,m=x=>{if(x<0&&x>=f.value.length)return!1;const M=f.value[x],b=(Ol(r,M,x)??{}).status??Il(r,M);return $(x)||b},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),g=l.computed(()=>({})),T=(x,M,R,b,W)=>{const j={[`${s}__step`]:!0};return W&&(j[`${W}`]=!0),j[`${w.value}`]=!0,b&&(j["is-doit"]=!0),x===d.value?j["is-active"]=!0:M==="done"?j["is-done"]=!0:M==="error"?j["is-error"]=!0:M==="half"?j["is-half"]=!0:R?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),O=(x,M={})=>{const R={...M};return w.value==="start"&&x===f.value.length-1?R.flex="0 0 auto":r.step?r.direction==="vertical"?R.height=r.step:R.width=r.step:R.flex="1 1 100%",R},H=(x,M)=>{let R={};if(M<f.value.length-1){const b=M+1;m(M)&&m(b)?r.direction==="vertical"?R.height="100%":R.width="100%":R.opacity="0"}return R},_=x=>f.value.length-1===x,q=(x,M)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&M>d.value||d.value===M)return;const R=d.value,b=M;d.value=M,r.scroll&&ae(M,!1);const W=Dr(r,x);i("update:modelValue",W);const j={fromIndex:R,currentIndex:b,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",W,j)},F=l.ref(!0),L=async(x,M)=>{try{const R=await u.load("stesbar",x,M);Array.isArray(R)&&(c.value=R),F.value=!1}catch(R){console.error("[FoxUI] Load StepsBar Data Fail",R),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,M])=>{x&&L(x,M)},{immediate:!0});const E=(x,M,R,b,W)=>{let j=null;if(a.icon)j=a.icon({item:x,index:M,status:b});else if(b==="done"){const B={};r.iconSize&&(B.width=r.iconSize,B.height=r.iconSize);const Z=r.icon??o;j=l.h(Z,B)}else{const B=R??`${M+1}`;j=l.h("span",{},[B])}const P={class:"fox-steps-bar__icon",onClick:()=>{W||q(x,M)}};return l.h("view",P,[j])},I=(x,M,R)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:H(x,M)});return l.h("view",{class:"fox-steps-bar__line"},[b])},C=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const R={};r.iconSize&&(R.width=r.markIconSize,R.height=r.markIconSize);const b=r.markIcon??t;x=l.h(b,R)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},z=(x,M,R,b,W)=>{const j=[];if(!_(M)){const Z=I(x,M);j.push(Z)}const P=E(x,M,R,b,W);j.push(P);const B={class:"fox-steps-bar__head"};return l.h("view",B,j)},k=(x,M,R,b)=>{let W=null;a.main?W=a.main({item:x,index:M,status:R}):W=pf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{b||q(x,M)}};return l.h("view",j,[W])},D=(x,M,R)=>{let b=null;if(a.sub){b=a.sub({item:x,index:M,status:R});const W={class:"fox-steps-bar__sub"};return l.h("view",W,[b])}return null},A=(x,M)=>{const R=Ol(r,x,M)??{},b=R.status??Il(r,x);let W=Fr(r,x);R.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const j=R.label??Ar(r,x),P=[],B=E(x,M,j,b,W);B&&P.push(B);const Z=k(x,M,b,W);if(Z&&P.push(Z),!_(M)){const Y=I(x,M);Y&&P.push(Y)}const K=l.h("view",{class:"fox-steps-bar__head"},P),ee=R.class,oe=R.style??{};let N=Rr(r,x);R.doit===!0&&(N=!0);const y={ref:ne(M),class:T(M,b,W,N,ee),style:O(M,oe)};return l.h("view",y,[K])},G=(x,M)=>{const R=Ol(r,x,M)??{},b=R.status??Il(r,x);let W=Fr(r,x);R.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const j=R.label??Ar(r,x),P=[],B=r.layout;for(let N of B)if(N==="head"){const y=z(x,M,j,b,W);P.push(y)}else if(N==="main"){const y=k(x,M,b,W);P.push(y)}else if(N==="sub"){const y=D(x,M,b);P.push(y)}else if(N==="mark"){const y=C();P.push(y)}const Z=R.class,K=R.style??{};let ee=Rr(r,x);R.doit===!0&&(ee=!0);const oe={ref:ne(M),class:T(M,b,W,ee,Z),style:O(M,K)};return l.h("view",oe,P)},U=l.ref(),J=l.ref([]),X=(x,M)=>{J.value[M]=x},ne=x=>M=>{X(M,x)},ae=(x,M)=>{const R=U.value,b=J.value;if(!R||!b||!b[x])return;const W=b[x];let j=0;r.direction==="vertical"?j=W.offsetTop-(R.offsetHeight-W.offsetHeight)/2:j=W.offsetLeft-(R.offsetWidth-W.offsetWidth)/2,V(R,j,M?0:.3,r.direction)},V=(x,M,R,b)=>{let W=0;const j=b==="horizontal"?x.scrollLeft:x.scrollTop,P=R===0?1:Math.round(R*1e3/16);function B(){b==="horizontal"?x.scrollLeft+=(M-j)/P:x.scrollTop+=(M-j)/P,++W<P&&Rn(B)}B()};return()=>{const x=[];if(r.mode==="simple")for(let R=0;R<f.value.length;R++){const b=f.value[R],W=A(b,R);x.push(W)}else for(let R=0;R<f.value.length;R++){const b=f.value[R],W=G(b,R);x.push(W)}const M={ref:U,class:h.value,style:g.value};return l.h("view",M,x)}}}}const{componentName:Sf,create:xf,scope:Tf}=fe("steps-bar"),Vl=xf(wf(Sf,Tf,Yc,Gc)),Cf=Symbol.for("InnerPageScopeKey"),$f=Symbol.for("PageWrapperKey");function Nf(e,n){return{props:{title:{type:[String]},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(Cf,!0);const r={};l.provide($f,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const c={...t.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof t.slots.default=="function"){const d=t.slots.default();f.default=()=>d}return l.h(S.ElDialog,c,f)}}}}const{componentName:Bh,create:Ef,scope:_h}=fe("dialog-item"),Dl=Ef(Nf());let Pt=0;const Mr="fox-overflow-hidden",Lr=()=>Ue?document.body:{classList:[]},kf=e=>[()=>{if(e())try{!Pt&&Lr().classList.add(Mr),Pt++}catch{}},()=>{if(e()&&Pt)try{Pt--,!Pt&&Lr().classList.remove(Mr)}catch{}}],If={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:Of,create:Vf}=fe("overlay"),Df=Vf({props:{...If},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=kf(()=>e.lockScroll),r=l.computed(()=>({[Of]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():t()}),{classes:r,style:a,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ff(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 wn=ze(Df,[["render",Ff]]),Rf={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:{}}},Br=2e3;let _r=Br;const Af=(e,n)=>({components:n,props:{...Rf},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})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Br&&(_r=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++_r,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{t("click-pop",h)},d=h=>{h.stopPropagation(),t("click-close-icon",h),t("update:visible",!1)},v=h=>{t("click-overlay",h),o.closeOnClickOverlay&&t("update:visible",!1)},$=h=>{t("opend",h)},m=h=>{t("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():c()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:d,onClickOverlay:v,onOpened:$,onClosed:m}}}),{componentName:Mf,create:Lf}=fe("popup"),Bf=Lf(Af(Mf,{FoxOverLay:wn,Close:Kc}));function _f(e,n,o,t,r,a){const i=l.resolveComponent("FoxOverLay"),s=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]=(...u)=>e.onClick&&e.onClick(...u))},[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]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Fl=ze(Bf,[["render",_f]]),{create:qf}=fe("toast"),Pf=qf({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))},s=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,$=>{$&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const $=ge(e.iconSize);return l.h(e.icon,{width:$,height:$,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),jf={key:1,class:"fox-toast-title"},zf=["innerHTML"];function Hf(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",jf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,zf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Rl=ze(Pf,[["render",Hf]]),Kf={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"}},Wf=(e,n,o)=>({props:{...Kf},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}=Oo(),{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),f=l.computed(()=>({background:t.inputBackground})),d=E=>{let C=E.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),a("update:modelValue",C,E),a("change",C,E)},v=l.ref({}),$=E=>{let C=E.target.value;u.active=!0,v.value=t.focusStyle,a("focus",C,E)},m=E=>{setTimeout(()=>{u.active=!1},0);let C=E.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),v.value={},a("blur",C,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(t.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",t.modelValue)},O=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},H=E=>{a("click-input",E)},_=E=>{a("click-left-icon",t.modelValue,E)},q=l.computed(()=>({textAlign:t.inputAlign})),F=l.ref(null);l.onMounted(()=>{t.autofocus&&F.value.focus()});const L=()=>{const E=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},A=l.h("view",D,[r.leftin()]);E.push(A)}const I={ref:F,class:[`${e}__input-inner`],style:q.value,type:t.inputType,maxlengt:t.maxLength,placeholder:s.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:H,onInput:d,onFocus:$,onBlur:m,onkeyup:O},C=l.h("input",I);E.push(C);const z=[];if(t.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},A=r?.clear?.()??t.clearIcon??o,G=l.h("view",D,[l.h(A)]);z.push(G)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},A=l.h("view",D,[r.rightin()]);z.push(A)}if(z.length>0){const D={class:`${e}__input-inner-right`},A=l.h("view",D,z);E.push(A)}const k={class:[`${e}__search-input`,`${t.shape}`],style:{...f.value,...v.value}};return l.h("view",k,E)};return()=>{const E=[];if(t.label){const z={class:`${e}__search-label`},k=l.h("span",z,[t.label]);E.push(k)}if(r.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},k=l.h("view",z,[r.leftout()]);E.push(k)}const I=L();if(E.push(I),r.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},k=l.h("view",z,[r.rightout()]);E.push(k)}const C={class:`${e}`,style:c.value};return l.h("view",C,E)}}}),{componentName:Yf,create:Uf,scope:Gf}=fe("searchbar"),Al=Uf(Wf(Yf,Gf,ke.CircleClose)),Xf=/scroll|auto|overlay/i,qr=window;function Zf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Qf(e,n=qr){let o=e;for(;o&&o!==n&&Zf(o);){const{overflowY:t}=window.getComputedStyle(o);if(Xf.test(t))return o;o=o.parentNode}return n}function Pr(e,n=qr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Qf(e.value,n))}),o}const jr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Jf={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 ed(e,n,o){return{props:{...Jf},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Pr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,$=()=>{let w=0,O=0,H="down";if(c.value==window){const _=jr();u.value&&(w=v(u.value)+u.value.offsetHeight-_-window.innerHeight),O=_}else{const{scrollHeight:_,clientHeight:q,scrollTop:F}=c.value;w=_-q-F,O=F}return f.beforeScrollTop>O?H="up":H="down",f.beforeScrollTop=O,r("scroll-change",O),w<=t.threshold&&H=="down"},m=()=>{Jl(()=>{if(!$()||!t.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{c.value&&c.value.addEventListener("scroll",m,t.useCapture)},g=()=>{c.value&&c.value.removeEventListener("scroll",m,t.useCapture)};l.onMounted(()=>{h(),t.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>t.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},O=l.h("view",w,[a?.default?.()]),H=[];if(f.isInfiniting){let L=a?.loading?.()??null;if(!L){let C=a?.loadingIcon?.()??null;if(!C){const D={class:["fox-infinite__bottom-box__img"]};C=l.h(o,D)}const z={class:"fox-infinite__bottom-box__text"},k=l.h("view",z,[s.loadText.value]);L=[C,k]}const E={class:"fox-infinite__bottom-box"},I=l.h("view",E,L);H.push(I)}else if(!t.hasMore){let L=a?.finished?.()??null;if(!L){const E={class:"fox-infinite__bottom-tips"};L=l.h("view",E,[s.loadMoreText.value]),H.push(L)}}const _={class:"fox-infinite__bottom"},q=l.h("view",_,H),F={class:d.value,ref:u};return l.h("view",F,[O,q])}}}}const{componentName:td,create:nd,scope:ld}=fe("infinite-loading"),Ml=nd(ed(td,ld,$l)),zr=10;function Hr(e,n){return e>n&&e>zr?"horizontal":n>e&&n>zr?"vertical":""}function Ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bl(){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 u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Hr(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 u=i;e.startX=u.clientX,e.startY=u.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),s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(""),d=()=>f.value==="vertical",v=()=>f.value==="horizontal",$=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const O=g.touches[0];i.value=O.clientX-e.value,s.value=O.clientY-n.value,r.value=O.clientX,a.value=O.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-n.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),t.value=Date.now()-o.value,f.value||(f.value=Hr(u.value,c.value))},start:g=>{if($(),g.touches){const O=g.touches[0];e.value=O.clientX,n.value=O.clientY}else{const w=g;e.value=w.clientX,n.value=w.clientY}o.value=Date.now()},reset:$,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:v}}const rd={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}},ad=(e,n,o)=>({props:{...rd},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullingText","loosingText","loadingText"]),u=Bl(),c=l.ref(),f=Pr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),$=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${t.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const F={};return t.headHeight!=50&&(F.height=Ve(t.headHeight)),F}),g=F=>{const L=+(t.pullDistance||t.headHeight);let E=F;return F>L&&(F<L*2?E=(F+L)/2:E=L+F/4),Math.round(E)},T=(F,L)=>{const E=+(t.pullDistance||t.headHeight);d.distance=F,L?d.status="loading":F===0?d.status="normal":F<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:F})},w=()=>d.status!=="loading"&&d.status!=="complete",O=()=>f.value==window?jr()==0:f.value&&f.value.scrollTop==0,H=F=>{w()&&(O()?(u.start(F),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},_=F=>{w()&&d.moving&&(u.move(F),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(F.cancelable&&F.preventDefault(),T(g(u.state.deltaY))))},q=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>t.modelValue,F=>{F?T(+t.headHeight,!0):T(0)}),()=>{const F=[];let L=null;if(d.status==="loading"){if(L=a?.loading?.()??null,!L){const G={class:["fox-pull-refresh-container-topbox-icon"]};L=l.h(o,G)}}else d.status==="pulling"?L=a?.pulling?.()??null:d.status==="loosing"&&(L=a?.loosing?.()??null);L&&F.push(L);const E={class:["fox-pull-refresh-container-topbox-text"]},I=l.h("dive",E,[$.value]);F.push(I);const C={class:["fox-pull-refresh-container-topbox"],style:h.value},z=l.h("div",C,F),k={class:"fox-pull-refresh-container",style:m.value},D=l.h("div",k,[z,a?.default?.()]),A={ref:c,class:v.value};return Ll()?Object.assign(A,{onTouchstart:H,onTouchmove:_,onTouchend:q}):Object.assign(A,{onMousedown:H,onMousemove:_,onMouseup:q}),l.h("div",A,[D])}}}),{componentName:id,create:sd,scope:ud}=fe("pull-refresh"),_l=sd(ad(id,ud,$l)),cd={visible:{type:Boolean},reference:{type:[Object,String]},trigger:{type:String,default:"click"},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},title:{type:String},content:{type:String},width:{type:String},offset:{type:Number,default:()=>6},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]},popperClass:{type:[String]},popperStyle:{type:[Object]},leaveHide:{type:[Boolean]},persistenet:{type:[Boolean],default:()=>!1},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function fd(e,n,o=!1){return{props:{...cd},emits:["update:visible","open","close"],setup(t,{emit:r,slots:a,expose:i}){const s=e,u=l.ref({top:null,right:null,bottom:null,left:null}),c=l.ref(0),f=l.ref(0),d=l.ref(0),v=l.ref(0),$=l.ref(t.placement),m=l.ref(!1),h=l.ref(!1),g=l.ref(null),T=l.ref(null),w=()=>T.value?T.value?.$el??T.value:typeof t.reference=="string"?document.querySelector(t.reference):t.reference,O=y=>{if(y instanceof HTMLElement){const Y=y.getBoundingClientRect();return{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom}}return y},H=(y,Y,te,ce,se,de,Se,Qe=!0)=>{const Je=document.documentElement.clientWidth||document.body.clientWidth,et=document.documentElement.clientHeight||document.body.clientHeight,Ee=y.split("-");let at=[];Qe?Ee[0]==="top"?at=["top","bottom","right","left"]:Ee[0]==="bottom"?at=["bottom","top","right","left"]:Ee[0]==="left"?at=["left","top","bottom","right"]:Ee[0]==="right"&&(at=["right","top","bottom","left"]):at=[y[0]];const We={top:null,right:null,bottom:null,left:null},jt=[];for(let pe=0;pe<at.length;pe++){const Q=at[pe];if(jt[0]=Q,Ee[1]&&(jt[1]=Ee[1]),Q==="top"){const re=te-Se-t.arrowSize/2-t.offset;if(re>=0){We.top=re;let le=0;Ee[1]==="start"?le=Y:Ee[1]==="end"?le=Y+ce-de:le=Y+ce/2-de/2;const ie=Je-le-de;ie<0?(le+=ie,q.value=-ie):q.value=0,We.left=le<0?0:le;break}}else if(Q==="bottom"){const re=te+se+t.arrowSize/2+t.offset;if(re+Se<=et){We.top=re;let le=0;Ee[1]==="start"?le=Y:Ee[1]==="end"?le=Y+ce-de:le=Y+ce/2-de/2;const ie=Je-le-de;ie<0?(le+=ie,q.value=-ie):q.value=0,We.left=le<0?0:le;break}}else if(Q==="left"){const re=Y-de-t.arrowSize/2-t.offset;if(re>=0){We.left=re;let le=0;Ee[1]==="start"?le=te:Ee[1]==="end"?le=te+se-Se:le=te+se/2-Se/2,We.top=le<0?0:le;break}}else if(Q==="right"){const re=Y+ce+t.arrowSize/2+t.offset;if(re+de<=Je){We.left=re;let le=0;Ee[1]==="start"?le=te:Ee[1]==="end"?le=te+se-Se:le=te+se/2-Se/2,We.top=le<0?0:le;break}}}return{bestPlacement:jt.join("-"),bestInsetRect:We}},_=()=>{const y=t.autoFit;if(!Ue||L.value===!1)return;const Y=w();if(!Y)return;const te=O(Y);if(!te)return;c.value=te.left??0,f.value=te.top??0,d.value=(te.right??0)-(te.left??0),v.value=(te.bottom??0)-(te.top??0);const ce=g.value.offsetWidth,se=g.value.offsetHeight,{bestPlacement:de,bestInsetRect:Se}=H(t.placement,c.value,f.value,d.value,v.value,ce,se,y);$.value=de,u.value=Se},q=l.ref(0),F=mt(()=>{_()},10),L=l.ref(t.visible),E=y=>{L.value!==y&&(L.value=y,r("update:visible",y),r(y?"open":"close"),y?(m.value=y,setTimeout(()=>{_(),h.value=!0},0)):h.value=!1)};l.watch([()=>t.visible],([y])=>{E(y)});const I=l.computed(()=>L.value&&C.value),C=l.ref(!0),z=mt(y=>{const Y=y[0];Y&&(C.value=Y.isIntersecting)},10),k=new IntersectionObserver(z),D=(y,Y)=>{y&&(setTimeout(()=>{_()},0),t.autoFit&&(Y&&(At.unwatch(Y,F),k.unobserve(Y)),y&&(At.watch(y,F),k.observe(y))))};l.watch(()=>t.reference,(y,Y)=>{D(y?.$el??y,Y?.$el??Y)},{immediate:!0}),l.watch(()=>T.value,(y,Y)=>{D(y?.$el??y,Y?.$el??Y)}),l.onBeforeUnmount(()=>{const y=w();y&&(At.unwatch(y,F),k.unobserve(y),k.disconnect())});let A=null,G=null;const U=()=>{A&&(clearTimeout(A),A=null)},J=()=>{G&&(clearTimeout(G),G=null)},X=()=>{J(),t.openDelay>0?(U(),A=setTimeout(()=>{A=null,E(!0)},t.openDelay)):E(!0)},ne=()=>{U(),t.closeDelay>0?(J(),G=setTimeout(()=>{G=null,E(!1)},t.closeDelay)):E(!1)},ae=()=>{L.value?ne():X()};i({open:X,close:ne,doLayout:_});const V=(y,...Y)=>{y&&(Array.isArray(y)?y.forEach(te=>{te(...Y)}):y(...Y))},x=y=>{const Y=y.props||{},te={...Y};switch(t.trigger){case"click":{const ce=Y.onClick;te.onClick=se=>{V(ce,se),ae()};break}case"hover":{const ce=Y.onMouseenter,se=Y.onMouseleave;te.onMouseenter=de=>{V(ce,de),X()},te.onMouseleave=de=>{V(se,de),ne()};break}case"focus":{const ce=Y.onFocus;te.onFocus=se=>{V(ce,se),X()};break}case"contextmenu":{const ce=Y.onContextmenu;te.onContextmenu=se=>{se.preventDefault(),V(ce,se),ae()};break}}return te},M=()=>{const y=a.reference?.();if(!y?.length)return null;const Y=y[0];return l.cloneVNode(Y,{...x(Y),ref:te=>{T.value=te}})},R=l.computed(()=>{const y={[s]:!0};return $.value.startsWith("top")?y["is-top"]=!0:$.value.startsWith("right")?y["is-right"]=!0:$.value.startsWith("bottom")?y["is-bottom"]=!0:$.value.startsWith("left")&&(y["is-left"]=!0),y[`is-${t.effect}`]=!0,!h.value&&I.value&&(y["is-opacity"]=!0),h.value&&I.value&&(y["is-show"]=!0),I.value||(y["is-hide"]=!0),t.popperClass&&typeof t.popperClass=="string"&&(y[`${t.popperClass}`]=!0),y}),b=l.computed(()=>{const y={};return u.value.top!==null&&(y.top=`${u.value.top}px`),u.value.right!==null&&(y.right=`${u.value.right}px`),u.value.bottom!==null&&(y.bottom=`${u.value.bottom}px`),u.value.left!==null&&(y.left=`${u.value.left}px`),t.width&&(y.width=t.width),t.zIndex&&(y["z-index"]=`${t.zIndex}`),t.popperStyle&&typeof t.popperStyle=="object"&&Object.assign(y,t.popperStyle),y}),W=()=>{E(!1)},j=()=>{if(T.value&&t.trigger==="hover"||!t.showOverlay)return null;const y={class:`${s}__overlay`,onClick:W};return l.h("div",y)},P=()=>{let y=null;return a.title?y=l.h("div",{class:`${s}__title`},{default:a.title}):t.title&&(y=l.h("div",{class:`${s}__title`},[t.title])),y},B=l.computed(()=>({[`${s}__arrow`]:!0})),Z=l.computed(()=>{const y={};return t.showArrow?(y.width=`${t.arrowSize}px`,y.height=`${t.arrowSize}px`,$.value==="top"?(y.left="50%",y.bottom="0",y.transform="translate(-50%, 50%)"):$.value==="top-start"?(y.left=`${t.arrowOffset+q.value}px`,y.bottom="0",y.transform="translate(-50%, 50%)"):$.value==="top-end"?(y.right=`${t.arrowOffset-q.value}px`,y.bottom="0",y.transform="translate(-50%, 50%)"):$.value==="right"?(y.left="0",y.top="50%",y.transform="translate(-50%, -50%)"):$.value==="right-start"?(y.left="0",y.top=`${t.arrowOffset}px`,y.transform="translate(-50%, 50%)"):$.value==="right-end"?(y.left="0",y.bottom=`-${t.arrowOffset}px`,y.transform="translate(-50%, 50%)"):$.value==="bottom"?(y.left="50%",y.top="0",y.transform="translate(-50%, -50%)"):$.value==="bottom-start"?(y.left=`${t.arrowOffset+q.value}px`,y.top="0",y.transform="translate(-50%, -50%)"):$.value==="bottom-end"?(y.right=`${t.arrowOffset-q.value}px`,y.top="0",y.transform="translate(-50%, -50%)"):$.value==="left"?(y.right="0",y.top="50%",y.transform="translate(50%, -50%)"):$.value==="left-start"?(y.right="0",y.top=`${t.arrowOffset}px`,y.transform="translate(50%, -50%)"):$.value==="left-end"&&(y.right="0",y.bottom=`-${t.arrowOffset}px`,y.transform="translate(50%, -50%)"),y):{display:"none"}}),K=()=>{const y={class:B.value,style:Z.value};return l.h("div",y)},ee=()=>{L.value===!1&&t.persistenet!==!0&&(m.value=!1)},oe=y=>{if(!g.value||L.value===!1)return;const{relatedTarget:Y}=y;g.value.contains(Y)||E(!1)},N=()=>{const y=[],Y=P();if(Y&&y.push(Y),a.default){const de=a.default();y.push(de)}const te=K();te&&y.push(te);const ce={ref:g,class:R.value,style:b.value,onAnimationend:ee};return t.leaveHide&&(ce.onMouseleave=oe),l.h("div",ce,{default:()=>y})};return()=>{const y=[],Y=M();if(Y&&y.push(Y),!m.value)return y.length===null?null:y;const te=[],ce=j();ce&&te.push(ce);const se=N();se&&te.push(se);const de=l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>te});return y.push(de),y}}}}const{componentName:dd,create:hd,scope:gd}=fe("popover-dialog"),ql=hd(fd(dd,gd,!1));function md(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}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(t.mark)f=t.mark()[0];else{const h={class:i.value,style:s.value};f=l.h(o.icon??"div",h)}const d={class:u.value,style:c.value},v=t.default?t.default():[],$=l.h("div",d,v),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[f,$]):l.h("div",m,[$,f])}}}}const{componentName:pd,create:yd,scope:qh}=fe("indicator"),Pl=yd(md(pd));function bd(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 vd={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 wd(e,n,o,t=!1){return{props:{...vd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const O={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(O[`${e}--${r.type??"default"}`]=!0),r.size&&(O[`${e}--${r.size}`]=!0),O}),u=l.computed(()=>{const O={},H=r.textColor??r.color;return H&&(O.color=H),O}),c=(O,H)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const q=r.highlightFilter;if(O.indexOf(q)!==-1){const L=O.replace(new RegExp(q,"g"),`<span>${q}</span>`);H.innerHTML=L,H.class["is-highlight"]=!0,_=l.h(r.tag,H)}}else if(typeof r.highlightFilter=="function"){const q=r.highlightFilter(O);q&&(H.innerHTML=q,H.class["is-highlight"]=!0,_=l.h(r.tag,H))}return _},f=O=>{a.emit("click",O)};let d="";const v=()=>{const O=i.value;if(!O)return;const H=O.clientWidth;bd(O,_=>{const q=O.innerHTML??"";be(q)||_<H||(d?o?.show(O,q,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(O,q,{type:"text",showArrow:r.showArrow},!0)??"")})},$=()=>{d&&o?.hide(d)};let m=null;const h=O=>{m||(m=setTimeout(()=>{v(),m=null},r.showAfter??0))},g=O=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{$()},r.hideAfter??0)},T=()=>{const O=i.value;O&&(O.addEventListener("mouseover",h),O.addEventListener("mouseleave",g))},w=()=>{const O=i.value;O&&(O.removeEventListener("mouseover",h),O.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||(w(),$())}),()=>{const O={onClick:f,class:s.value,style:u.value,ref:i};let H=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const I=xe(r.digits),C=xe(r.decimalLength),z=ue(r.autoPadding);let k=`${L[0].children}`,D=k.split("").reverse().join("");D=Ut(D,C,z,I,r.separator),k=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(H=c(k,O)),H||(O.innerHTML=k,H=l.h(r.tag,O))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const I=`${L[0].children}`;H=c(I,O),H||(O.innerHTML=I,H=l.h(r.tag,O))}}}H||(H=l.h(r.tag,O,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return H;let q=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},I=r.color;I&&(E.color=I);const C={class:L,style:E};q=l.h("view",C,l.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},I=r.color;I&&(E.color=I);const C={class:L,style:E};q=l.h("view",C,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const E={},I=r.color;I&&(E["background-color"]=I);const C={class:L,style:E};q=l.h("view",C)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",F,[q,H])}}}}const{componentName:Sd,create:xd,scope:Td}=fe("text"),jl=xd(wd(Sd,Td,Me,!1)),Cd={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:ke.ArrowUp}};function $d(e,n,o){return{props:{...Cd},emits:["click","update:modelValue"],setup(t,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return t.disabled?d[`${e}__disabled`]=!0:d[`${e}__${t.type}`]=!0,d}),i=me(t,"modelValue"),s=l.computed(()=>i.value?t.expandText??"":t.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:c.value},$=o(t.icon,v);return $&&d.push($),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:Nd,create:Ed,scope:kd}=fe("more-button"),zl=Ed($d(Nd,kd,(e,n)=>(e=e??ke.ArrowUp,l.h(S.ElIcon,n,{default:()=>[l.h(e)]}))));function Id(e){return e===window}const Kr=e=>{const n=l.unref(e);if(Id(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:Od,create:Vd,scope:jh}=fe("tour"),Dd=Vd({components:{Close:ke.Close,ElPopover:S.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=Od,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:O,top:H}=r.value,_=e.steps[t.active].offset??m,q=[O+T/2,H+w/2],F=Number(h||T),L=Number(g||w);return{width:`${F+ +_.left+_.right}px`,height:`${L+_.top+_.bottom}px`,top:`${q[1]-L/2-+_.top}px`,left:`${q[0]-F/2-+_.left}px`}}),s=m=>{m=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,f()}),n("change",t.active)},u=m=>m.popoverWidth??e.width,c=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[t.active].target}`),h=Kr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},$=(m,h=0)=>{m&&f(),e.steps,t.active=h,t.showTour=m,t.showPopup=m};return l.onMounted(()=>{$(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{$(m)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:v}}}),Fd={key:0,class:"fox-tour__content"},Rd={key:0,class:"fox-tour__content-top"},Ad={class:"fox-tour__content-inner"},Md={class:"fox-tour__content-bottom"},Ld={class:"fox-tour__content-bottom-init"},Bd={class:"fox-tour__content-bottom-operate"},_d={key:1,class:"fox-tour__content fox-tour__content-tile"},qd={class:"fox-tour__content-inner"};function Pd(e,n,o,t,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=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,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{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",Fd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Ad,l.toDisplayString(c.content),1),l.createElementVNode("div",Md,[l.createElementVNode("div",Ld,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Bd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=d=>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(s,{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(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=d=>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",_d,[l.createElementVNode("div",qd,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Hl=ze(Dd,[["render",Pd]]),Le=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,yt=e=>e==null;class jd{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=Ll()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bl(),t=(r,a,i,s)=>{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 Wr(e,n){return new jd(e,n)}let Nt=[];const Yr=e=>{const n=e;n.key==="Escape"&&Nt.forEach(o=>o(n))},zd=e=>{l.onMounted(()=>{Nt.length===0&&document.addEventListener("keydown",Yr),Ue&&Nt.push(e)}),l.onBeforeUnmount(()=>{Nt=Nt.filter(n=>n!==e),Nt.length===0&&Ue&&document.removeEventListener("keydown",Yr)})},Kl="fox-focus-trap.focus-after-trapped",Ur="fox-focus-trap.focus-after-released",Hd="fox-focus-trap.focusout-prevented",Gr={cancelable:!0,bubbles:!1},Kd={cancelable:!0,bubbles:!1},Xr="foxFocusAfterTrapped",Zr="foxFocusAfterReleased",Wd=Symbol("foxFocusTrap"),Wl=l.ref(),Sn=l.ref(0),Yl=l.ref(0);let xn=0;const Qr=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},Yd=(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},Jr=(e,n)=>{for(const o of e)if(!Yd(o,n))return o},Ud=e=>{const n=Qr(e),o=Jr(n,e),t=Jr(n.reverse(),e);return[o,t]},Gd=e=>e instanceof HTMLInputElement&&"select"in e,ft=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Yl.value=window.performance.now(),e!==o&&Gd(e)&&n&&e.select()}};function ea(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const Xd=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=ea(e,t),e.unshift(t)},remove:t=>{e=ea(e,t),e[0]?.resume?.()}}},Zd=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(ft(t,n),document.activeElement!==o)return},ta=Xd(),Qd=()=>Sn.value>Yl.value,Tn=()=>{Wl.value="pointer",Sn.value=window.performance.now()},na=()=>{Wl.value="keyboard",Sn.value=window.performance.now()},Jd=()=>(l.onMounted(()=>{xn===0&&(document.addEventListener("mousedown",Tn),document.addEventListener("touchstart",Tn),document.addEventListener("keydown",na)),xn++}),l.onBeforeUnmount(()=>{xn--,xn<=0&&(document.removeEventListener("mousedown",Tn),document.removeEventListener("touchstart",Tn),document.removeEventListener("keydown",na))}),{focusReason:Wl,lastUserFocusTimestamp:Sn,lastAutomatedFocusTimestamp:Yl}),Cn=e=>new CustomEvent(Hd,{...Kd,detail:e}),{componentName:zh,create:eh,scope:Hh}=fe("focus-trap"),th=eh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Xr,Zr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=Jd();zd(h=>{ue(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:O,currentTarget:H,shiftKey:_}=h,{loop:q}=e,F=g==="Tab"&&!T&&!w&&!O,L=document.activeElement;if(F&&L){const E=H,[I,C]=Ud(E);if(I&&C){if(!_&&L===C){const k=Cn({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(h.preventDefault(),q&&ft(I,!0))}else if(_&&[I,E].includes(L)){const k=Cn({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(h.preventDefault(),q&&ft(C,!0))}}else if(L===E){const k=Cn({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||h.preventDefault()}}};l.provide(Wd,{focusTrapRef:t,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(t.value=h)},{immediate:!0}),l.watch([t],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const c=h=>{o(Xr,h)},f=h=>o(Zr,h),d=h=>{const g=l.unref(t);if(!g)return;const T=h.target,w=h.relatedTarget,O=T&&g.contains(T);ue(e.trapped)||w&&g.contains(w)||(r=w),O&&o("focusin",h),!s.paused&&ue(e.trapped)&&(O?a=T:ft(a,!0))},v=h=>{const g=l.unref(t);if(!(s.paused||!g))if(!e.escape&&ue(e.trapped)){const T=h.relatedTarget;!_n(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&ue(e.trapped)){const w=Cn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||ft(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function $(){await l.nextTick();const h=l.unref(t);if(h){ta.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Kl,Gr);h.addEventListener(Kl,c),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let O=e.focusStartEl;so(O)||(ft(O),document.activeElement!==O&&(O="first")),O==="first"&&Zd(Qr(h),!0),(document.activeElement===g||O==="container")&&ft(h)})}}}function m(){const h=l.unref(t);if(h){h.removeEventListener(Kl,c);const g=new CustomEvent(Ur,{...Gr,detail:{focusReason:i.value}});h.addEventListener(Ur,f,{once:!0}),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Qd())&&ft(r??document.body,!0),ta.remove(s)}}return l.onMounted(()=>{ue(e.trapped)&&$(),l.watch(()=>e.trapped,h=>{ue(h)?$():m()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&m(),t.value&&(t.value.removeEventListener("keydown",u),t.value.removeEventListener("focusin",d),t.value.removeEventListener("focusout",v))}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:nh,create:lh,scope:Wh}=fe("floating-window"),oh=Symbol.for("InnerPageScopeKey"),rh=Symbol.for("PageWrapperKey"),ah={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{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}},ih=lh({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:th},props:{...ah},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=nh,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,N=>{t.value=N});const a=l.computed(()=>t.value===!1?!1:!L.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),c=l.ref(e.bottom),f=l.computed(()=>{const N=["fox-floating-window"];return e.customClass&&N.push(e.customClass),N}),d=l.computed(()=>{const N={};return yt(i.value)?N.left="auto":N.left=Le(i.value),yt(s.value)?N.top="auto":N.top=Le(s.value),yt(u.value)?N.right="auto":N.right=Le(u.value),yt(c.value)?N.bottom="auto":N.bottom=Le(c.value),yt(e.zIndex)||(N["z-index"]=Le(e.zIndex)),yt(q.value)||(N.height=q.value),yt(F.value)||(N.width=F.value),N}),v=l.computed(()=>e.closeIcon??ke.Close),$=l.computed(()=>e.collapseIcon??ke.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),O=l.ref(),H=l.ref(null),_=l.ref(null),q=l.computed(()=>Le(e.height)||""),F=l.computed(()=>Le(e.width)||""),L=l.ref(ue(e.collapse)),E=(N,y=!0)=>{L.value!==N&&(L.value=N,N?x():M(),n("update:collapse",N),N&&typeof z.onHide=="function"?z.onHide():!N&&typeof z.onShow=="function"&&z.onShow())};l.watch(()=>e.collapse,N=>{E(N)});const I=()=>{C()},C=N=>{N=N??!L.value,E(N)};l.provide(oh,!0);const z={setCollapse:E,setFixedNavVisible:N=>{ne.value=N}};l.provide(rh,z);const k=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{t.value=!1}):t.value=!1},D=l.ref(null),A=l.computed(()=>!e.fixedNavTeleport),G=l.computed(()=>{const N=["fox-floating-window__fixednav"];return e.expandClass&&N.push(e.expandClass),e.collapsePosition==="left"?N.push("is-left"):e.collapsePosition==="right"&&N.push("is-right"),N}),U=l.ref(""),J=l.computed(()=>{const N={};return U.value?N.top=U.value:e.collapseTop&&(N.top=e.collapseTop),N}),X=l.ref(L.value),ne=l.computed({set:N=>{X.value=N},get:()=>t.value===!1?!1:X.value});let ae=null;const V=()=>{typeof ae=="function"&&(ae(),ae=null)},x=()=>{D.value&&D.value.classList.add("slide-in"),ne.value=!0,ae=()=>{D.value&&D.value.classList.remove("slide-in")}},M=()=>{D.value&&D.value.classList.add("slide-out"),ae=()=>{D.value&&D.value.classList.remove("slide-out"),ne.value=!1}},R=()=>{i.value=null,s.value=null,u.value=null,c.value=null},b={x:0,y:0},P=Wr(N=>{if(!O.value)return;const y=O.value;if(R(),e.origin==="left-top")i.value=y.offsetLeft,s.value=y.offsetTop,b.x=i.value,b.y=s.value;else if(e.origin==="left-bottom"){const Y=document.documentElement.clientHeight||document.body.clientHeight;i.value=y.offsetLeft,c.value=Y-(y.offsetTop+y.offsetHeight),b.x=i.value,b.y=c.value}else if(e.origin==="right-bottom"){const Y=document.documentElement.clientWidth||document.body.clientWidth,te=document.documentElement.clientHeight||document.body.clientHeight;u.value=Y-(y.offsetLeft+y.offsetWidth),c.value=te-(y.offsetTop+y.offsetHeight),b.x=u.value,b.y=c.value}else{const Y=document.documentElement.clientWidth||document.body.clientWidth;u.value=Y-(y.offsetLeft+y.offsetWidth),s.value=y.offsetTop,b.x=u.value,b.y=s.value}},N=>{if(!O.value)return;const y=O.value;R(),e.origin==="left-top"?(i.value=b.x+N.x,s.value=b.y+N.y,y.style.left=Le(i.value),y.style.top=Le(s.value)):e.origin==="left-bottom"?(i.value=b.x+N.x,c.value=b.y-N.y,y.style.left=Le(i.value),y.style.bottom=Le(c.value)):e.origin==="right-bottom"?(u.value=b.x-N.x,c.value=b.y-N.y,y.style.right=Le(u.value),y.style.bottom=Le(c.value)):(u.value=b.x-N.x,s.value=b.y+N.y,y.style.right=Le(u.value),y.style.top=Le(s.value))}),B={x:0,y:0},ee=Wr(N=>{D.value&&(B.x=D.value.offsetLeft,B.y=D.value.offsetTop)},N=>{if(!D.value)return;const y=B.y+N.y;U.value=`${y}px`}),oe=()=>{if(O.value){const N=O.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=N}};return l.onMounted(()=>{if(e.draggable&&O.value){const N=[];H.value&&N.push(H.value),e.footerDraggable&&(oe(),_.value&&N.push(_.value)),P.open(N)}e.collapse===!0&&E(e.collapse,!1),D.value&&ee.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&H.value&&P.close(),D.value&&ee.close()}),{classes:f,styles:d,isShow:a,closeIcon:v,onClose:k,dialogRef:O,headerRef:H,onClickToggle:I,collapseIcon:$,collapseText:m,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:ne,fixedNavRef:D,fixedNavClasses:G,fixedNavStyles:J,onAnimationEnd:V,teleportDisabled:r,fixedNavTeleportDisabled:A}}}),sh={ref:"headerRef",class:"fox-floating-window__header"},uh={class:"fox-floating-window__title"},ch={class:"fox-floating-window__tools"},fh={class:"fox-floating-window__body"},dh={class:"fox-floating-window__fixednav__text"};function hh(e,n,o,t,r,a){const i=l.resolveComponent("FoxIcon"),s=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(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",sh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",uh,l.toDisplayString(e.title),1),l.createElementVNode("div",ch,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[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",fh,[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]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",dh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ul=ze(ih,[["render",hh]]);function gh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:t}){return ko(o.name,()=>o.config),()=>typeof t.default=="function"?t.default():null}}}const{componentName:Yh,create:mh,scope:Uh}=fe("domain-provider"),Gl=mh(gh()),ph={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 yh(e,n){return{inheritAttrs:!1,props:ph,setup(o,{slots:t}){if(Ue&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,$)=>{if(f===null){a.set(v,{visible:null,callback:$});return}r.has(v)&&f.unobserve(v),r.set(v,{visible:null,callback:$}),f.observe(v)},s=v=>{if(f===null){a.delete(v);return}r.has(v)&&(r.delete(v),f.unobserve(v))};let u=o.initialVisibleObserverSize;ci({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(v,$,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(O){console.error(O)}}},{root:v,rootMargin:$,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,$])=>{if($||!v||f)return;let m=null;typeof v=="string"?m=document.querySelector(v):m=v,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{componentName:Gh,create:bh,scope:Xh}=fe("rolling-provider"),Xl=bh(yh()),vh=[Wn,Un,Gn,Xn,Jn,Ce,nl,ll,Mt,ol,rl,al,il,sl,ul,cl,dl,hl,gl,ml,vn,bl,vl,wl,Sl,xl,Tl,Cl,Nl,El,kl,Vl,Dl,wn,Fl,Rl,Al,Ml,_l,ql,Bt,yn,Pl,jl,zl,Hl,Ul,Gl,Xl],wh=new Pa(vh,[Ha],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),p.AutocompleteItem=hl,p.Broadcast=Pn,p.BroadcastKey=ve,p.CascaderItem=dl,p.CheckboxItem=wl,p.Content=Xn,p.DataItemsKey=vt,p.DateItem=al,p.DateUtils=je,p.DialogItem=Dl,p.Domain=ln,p.DomainKey=_e,p.DomainProvider=Gl,p.FloatingWindow=Ul,p.FooterBar=Gn,p.FoxAutocompleteItem=hl,p.FoxCascaderItem=dl,p.FoxCheckboxItem=wl,p.FoxContent=Xn,p.FoxDateItem=al,p.FoxDialogItem=Dl,p.FoxDomainProvider=Gl,p.FoxFloatingWindow=Ul,p.FoxFooterBar=Gn,p.FoxGroup=Jn,p.FoxGroupSetting=Cl,p.FoxHeaderBar=Un,p.FoxHintText=Mt,p.FoxIndicator=Pl,p.FoxInfiniteLoading=Ml,p.FoxInputItem=ol,p.FoxInputNumberItem=cl,p.FoxItem=Ce,p.FoxMapping=Bt,p.FoxMoneyItem=ul,p.FoxMoreButton=zl,p.FoxOverLay=wn,p.FoxPage=Wn,p.FoxPopoverDialog=ql,p.FoxPopup=Fl,p.FoxPrice=yn,p.FoxPullRefresh=_l,p.FoxRadioItem=vl,p.FoxRateItem=Sl,p.FoxRollingProvider=Xl,p.FoxRowItem=ll,p.FoxSearchBar=Al,p.FoxSelectItem=rl,p.FoxSlotItem=nl,p.FoxStepsBar=Vl,p.FoxSwitchItem=xl,p.FoxTableItem=bl,p.FoxTableMappingColumn=gl,p.FoxTableRadioColumn=ml,p.FoxTableSetting=vn,p.FoxTabsBar=Nl,p.FoxTabsContainer=El,p.FoxTabsPane=kl,p.FoxText=jl,p.FoxTimeItem=il,p.FoxTimeSelectItem=sl,p.FoxToast=Rl,p.FoxTour=Hl,p.FoxTreeSelectItem=Tl,p.Group=Jn,p.GroupSetting=Cl,p.HeaderBar=Un,p.HintText=Mt,p.Indicator=Pl,p.InfiniteLoading=Ml,p.InputItem=ol,p.InputNumberItem=cl,p.Item=Ce,p.Mapping=Bt,p.MoneyItem=ul,p.MoreButton=zl,p.OverLay=wn,p.Page=Wn,p.PopoverDialog=ql,p.Popup=Fl,p.Price=yn,p.PriorityPolicy=Pe,p.PullRefresh=_l,p.RadioItem=vl,p.RateItem=Sl,p.RollingProvider=Xl,p.RowItem=ll,p.SearchBar=Al,p.SelectItem=rl,p.SlotItem=nl,p.StepsBar=Vl,p.SwitchItem=xl,p.TableItem=bl,p.TableMappingColumn=gl,p.TableRadioColumn=ml,p.TableSetting=vn,p.TabsBar=Nl,p.TabsContainer=El,p.TabsPane=kl,p.Text=jl,p.TimeItem=il,p.TimeSelectItem=sl,p.Toast=Rl,p.Tour=Hl,p.TreeSelectItem=Tl,p.UniqueID=jo,p.ValidateSchema=$o,p.ValidateSchemaKey=He,p.cancelRaf=ra,p.clearNonNumber=ya,p.clone=Ln,p.compareTo=Fn,p.createBroadcast=Qt,p.createValidateSchema=en,p.debounce=mt,p.debounceRef=Oa,p.decimalLength=bo,p.default=wh,p.defineBroadcast=Sa,p.defineConfigDomain=ko,p.defineDataItem=Io,p.defineDomain=jn,p.defineItem=$e,p.definePageState=Vo,p.defineSimpleItem=Oo,p.deleteGlobalValidator=Na,p.disabledProperty=Ae,p.divide=Dn,p.excludeProps=Oe,p.extend=ht,p.floatData=wa,p.getGlobalValidateCheckEvents=xo,p.getGlobalValidateResetEvents=Co,p.getPageContentAreaHeight=an,p.getPageContentAreaWidth=sn,p.getPageFooterAreaHeight=Rt,p.getPageHeaderAreaHeight=Ft,p.getRootDomain=wt,p.hasSymbol=fo,p.includeProps=wo,p.indexOf=ba,p.integerLength=yo,p.isArray=ia,p.isArrayLike=go,p.isBrowser=Ue,p.isDate=ca,p.isESModule=da,p.isEmptyString=be,p.isEqual=nt,p.isFunction=An,p.isHidden=Zt,p.isInnerPage=Fa,p.isMap=sa,p.isNil=_n,p.isNumberString=po,p.isObject=tt,p.isPlainObject=Mn,p.isPromise=uo,p.isRegExp=qn,p.isSet=ua,p.isString=so,p.isSubPage=Ra,p.isSymbol=fa,p.isTouch=Ll,p.isWindow=ho,p.lastIndexOf=va,p.makeArray=pa,p.merge=mo,p.multiply=ro,p.negate=ao,p.nextTick=ga,p.numberFormat=Ut,p.objectToString=co,p.once=Va,p.overrideGlobalValidateHandler=Ca,p.property=Fe,p.raf=Rn,p.readonlyProperty=Re,p.setGlobalValidateCheckEvents=Ea,p.setGlobalValidateHandler=Ta,p.setGlobalValidateMessages=Ia,p.setGlobalValidateResetEvents=ka,p.setGlobalValidator=$a,p.throttle=Eo,p.toBoolean=ue,p.toNumber=xe,p.toPadding=Ge,p.toPx=ge,p.toPxDesc=Ve,p.toTypeString=Gt,p.toValue=me,p.tryTimes=nn,p.typeOf=Xt,p.unNumberFormat=io,p.updatePageState=zn,p.useBroadcast=Ot,p.useDomain=st,p.useExpose=Ne,p.useInnerSize=Yn,p.usePageState=rn,p.usePosition=qo,p.useRawTouch=Bl,p.useRect=Kr,p.useSize=cn,p.useTouch=od,p.valueLength=It,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Aug 24 2026 15:28:42 GMT+0800 (China Standard Time)
3
+ */const Kt=window,la=typeof window<"u";function oa(){return typeof Kt<"u"?Kt.requestAnimationFrame||Kt.webkitRequestAnimationFrame||function(e){Kt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ra(e){la?cancelAnimationFrame(e):clearTimeout(e)}const Jl=oa();function Wt(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=Ie(e),n=Ie(n),[e,n]=Nn(Ie(e),Ie(n)),o==1&&(t==1?e=$n(e):n=$n(n));let r=eo(e,n);return o?o==2?"-"+Ie(r):e.length<r.length?Ie(r.substring(1)):"-"+Ie($n(r)):Ie(r)}function $n(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 eo(n,a)}function Ie(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 Nn(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 eo(e,n){[e,n]=Nn(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 we=function(e){return 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}({});function Et(e,n=0,o=we.HALF_EVEN){if(o===we.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 u=a.substr(0,a.length-n);return e=u+"."+a.substr(a.length-n)+i,u=Et(e,0,o),(t?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return a.length,to(r[1],a,t,o)?(t?"-":"")+En(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 s=r[1].substring(n);return s&&to(s,i,t,o)&&(i=En(i),i.length>n)?(t?"-":"")+En(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function to(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===we.DOWN||!o&&t===we.FLOOR||o&&t===we.CEILING)return!1;if(t===we.UP||o&&t===we.FLOOR||!o&&t===we.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 we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function En(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 kn(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=kt(e),n=kt(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=kt(e.replace(".","")),n=kt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,s=0,u=[],c=i-1,f="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let $=n.length-1;$>=c&&$>=0;$--)u[$]>-1&&u[$]<e.length&&(v+=parseInt(e[u[$]--])*parseInt(n[$]));v+=s,s=Math.floor(v/10),f=v%10+f,c--}return f=kt(aa(f,a)),o==1&&(f="-"+f),f}function aa(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 kt(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 In(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=Ie(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ie(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ie(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=Ie(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=Ie(e.replace(".","")))}let a=0,i=n.length,s="",u=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),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(u)>=parseInt(n);)u=Wt(u,"-"+n),c++;s+=c,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(t==1?"-":"")+Ie(Et(s,o-2))}function On(e,n){return e=e.toString(),n=n.toString(),n=Vn(n),Wt(e,n)}function Vn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function no(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),lo(e),lo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=On(e,kn(n,Et(In(e,n),0,we.FLOOR)));return o+t}function lo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function oo(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]=Nn(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}var Yt=class he{value;static RoundingModes=we;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=Ie(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+Ie(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=he.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=he.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="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=n.substring(s,s+o)+(s<a-o&&s>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return he.getPrettyValue(this.value,n,o)}static round(n,o=0,t=we.HALF_EVEN){if(n=he.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Et(n,o,t)}round(n=0,o=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new he(Et(this.value,n,o))}static floor(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,we.FLOOR)}static ceil(n){return n=he.validate(n),n.indexOf(".")===-1?n:he.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,we.CEILING)}static add(n,o){return n=he.validate(n),o=he.validate(o),Wt(n,o)}add(n){return new he(Wt(this.value,n.getValue()))}static subtract(n,o){return n=he.validate(n),o=he.validate(o),On(n,o)}subtract(n){return new he(On(this.value,n.getValue()))}static multiply(n,o){return n=he.validate(n),o=he.validate(o),kn(n,o)}multiply(n){return new he(kn(this.value,n.getValue()))}static divide(n,o,t){return n=he.validate(n),o=he.validate(o),In(n,o,t)}divide(n,o){return new he(In(this.value,n.getValue(),o))}static modulus(n,o){return n=he.validate(n),o=he.validate(o),no(n,o)}modulus(n){return new he(no(this.value,n.getValue()))}static compareTo(n,o){return n=he.validate(n),o=he.validate(o),oo(n,o)}compareTo(n){return oo(this.value,n.getValue())}static negate(n){return n=he.validate(n),Vn(n)}negate(){return new he(Vn(this.value))}};function ro(e,n){return Yt.multiply(`${e}`,`${n}`)}function Dn(e,n,o=8){return Yt.divide(`${e}`,`${n}`,o)}function Fn(e,n){return e=`${e}`,n=`${n}`,Yt.compareTo(e,n)}function ao(e){return Yt.negate(e)}function Ut(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 s=a,u="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let f;if(t>0){let d="",v=s.split("").reverse();for(let $=0;$<v.length;$++)d+=v[$]+(($+1)%t==0&&$+1!=v.length?r:"");u.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function io(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const Rn=Jl,ia=Array.isArray,sa=e=>Gt(e)==="[object Map]",ua=e=>Gt(e)==="[object Set]",ca=e=>e instanceof Date,An=e=>typeof e=="function",so=e=>typeof e=="string",fa=e=>typeof e=="symbol",tt=e=>e!==null&&typeof e=="object",uo=e=>tt(e)&&An(e.then)&&An(e.catch),co=Object.prototype.toString,Gt=e=>co.call(e),Mn=e=>Gt(e)==="[object Object]",fo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||fo&&e[Symbol.toStringTag]==="Module"}const ha=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 s=n[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},n[i]=ht(r,c,u)}else u!==void 0&&(n[i]=u)}}return n}function Ln(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)&&!Mn(i))continue;a=Ln(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)&&!Mn(i))continue;a=Ln(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Bn=ha?Promise.resolve():null;function ga(e,...n){Bn!==null?n&&n.length>0?Bn.then(()=>{e(n)}):Bn.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 xe(e){return typeof e=="number"?e:Number(e)}const ma={"[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 Xt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function ho(e){return e&&typeof e=="object"&&"setInterval"in e}function Zt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function go(e){let n=!!e&&"length"in e&&e.length,o=Xt(e);return o==="function"||ho(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function mo(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 pa(e,n=[]){let o=n;return e!=null&&(go(Object(e))?mo(o,typeof e=="string"?[e]:e):o.push(e)),o}function nt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Xt(e),t=Xt(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 s=r[i],u=e[s],c=n[s];if(!nt(u,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(!nt(a,i))return!1}return!0}return!1}const Ue=typeof window<"u";function _n(e){return e==null}function qn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const be=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function po(e){return be(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),be(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function yo(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 bo(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 ya(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 ba(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(nt(e,o))return!0}):n.indexOf(e)}function va(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(nt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function It(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function wo(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 wa=(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},ve=Symbol.for("BroadcastKey");class Pn{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(){const n=[...this.children];this.children=[],n.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.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==="+"||qn(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,s=n.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};n.resolve=u}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):qn(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 u=Reflect.apply(i,this.proxy,[...t]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...t]);u!=null&&a.push(u)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},o,...t]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),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??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};n.resolve=s}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 Qt(e,n,o,t){const r=new Pn(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function Sa(e,n,o){const t=o;if(t[ve])return t[ve];const r=l.inject(ve,null),a=new Pn(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),t[ve]=void 0}),a}function Ot(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const gt=e=>e.default??e;class xa{error(n,o){const t=o,r=o||l.hasInjectionContext()?Ot(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?Ot(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?Ot(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?Ot(t):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let Vt=new xa;function Ta(e){Vt=e}function Ca(e){Vt?Object.assign(Vt,e):Vt=e}function $a(e,n){gt(dt).setValidator(e,n)}function Na(e){gt(dt).deleteValidator(e)}let So=["blur","clear"];function Ea(e){So=e}function xo(){return So}let To=["focus","change","setValue"];function ka(e){To=e}function Co(){return To}function Ia(e){gt(dt).messages(e)}function Dt(...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 Jt(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 He=Symbol("ValidateSchemaKey");class $o{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=Jt(Dt(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),t.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};t.push(u)}}this.attrRules=Jt(t);const r=Dt(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=Vt;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?gt(dt).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?gt(dt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return gt(dt).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=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Jt(n):this.rules=Jt([n]);const t=Dt(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=Dt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]:a},s=gt(dt),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function en(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 $o(n,o,e)}const tn=Symbol.for("EventEmitterKey");class No{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 mt(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function Eo(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Oa(e,n){const o=mt((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Va(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function nn(e,n,o,t=0,r=!0,a){let i=n,s=0;if(r){const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=t,setTimeout(u,i)};setTimeout(u,i)}const _e=Symbol("DomainKey"),vt=Symbol("DataItemsKey");class ln{_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 Da=new ln;function wt(){return Da}function st(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[_e]??l.inject(_e,null):l.inject(_e,null)}const on=Symbol("OriginalDateKey");function jn(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(_e,null);i===null&&(i=wt());const s=e||n.prop||n.name;let u=new ln(s);u.parent=i;const c=$=>{a[on]||v($),u?.set("modelValue",$)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[on]??null,v=$=>{const m={};ht(!0,m,l.toRaw($)),a[on]=m};if(l.isReactive(n)||typeof n=="function"?l.watch(n,$=>{u?.merge($,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&v(n.modelValue),a[_e]=u,l.provide(_e,u),r!==null){const $=l.inject(ve,null),m=Qt(a,$,s,t);u.broadcast=m,a[ve]=m,l.provide(ve,m),a.broadcast=(T,w,...O)=>Reflect.apply(m.emit,m,[T,w,...O]);const h=l.inject(He,null),g=en(a,h,{componentName:""});u.validateSchema=g,a[He]=g,l.provide(He,g),a[vt]=new Map,a.validate=(T=!0)=>{const w=[];let O=null;const H={deep:!1};if(T===!0)O={name:"*"};else if(Array.isArray(T)&&T.length>0){const _=T;O={name:q=>q?_.indexOf(q)!==-1:!1}}else if(T!=null&&typeof T=="object"){const _=T;if(Object.assign(H,_),Array.isArray(_.include)&&_.include.length>0){const q=_.include;O={name:F=>F?q.indexOf(F)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const q=_.exclude;O={name:F=>F?q.indexOf(F)===-1:!1}}else O={name:"*"}}if(O){const _=m?.emitToChildren(O,"validate",H);_&&Reflect.apply([].push,w,_)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(_=>{let q=[];return _.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(q=[...q,...F.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,O=!1)=>{if(O===!0){Reflect.ownKeys(T).forEach(_=>{let q=String(_);const F={componentName:"",fieldName:q,pureDataValidate:!0};if(u){const L=Io(u,q,F,m,g);a[vt].set(q,L);const E=T[q];E&&L.validateSchema.setRule(E)}});return}if(w){const H=Reflect.ownKeys(T),_={name:q=>H.includes(q),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(_,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const O=T;w={name:H=>H?O.indexOf(H)!==-1:!1}}else if(T!=null&&typeof T=="object"){const O=T;if(Array.isArray(O.include)&&O.include.length>0){const H=O.include;w={name:_=>_?H.indexOf(_)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const H=O.exclude;w={name:_=>_?H.indexOf(_)===-1:!1}}else w={name:"*"}}w&&m?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=f();if(!w)return;const O={};if(ht(!0,O,d()??{}),Array.isArray(T))T.forEach(H=>{w[H]=O[H]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(_=>{w[_]=O[_]});else if(T&&Array.isArray(T.exclude)){let H=T.exclude??[];Reflect.ownKeys(O).forEach(_=>{H.includes(_)||(w[_]=O[_])})}else Object.assign(w,O);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?c(T):m?.emitToChildren({name:w,messagingPolicy:"Once"},"setModelValue",T)},a.getModelValue=()=>f(),setTimeout(function(){m?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[He]=void 0,l.provide(He,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[_e]=void 0,l.provide(_e,null),a[vt]&&(a[vt].clear(),a[vt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a[on]=null,u=null,a=null}),u}function ko(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(_e,null);a===null&&(a=wt());const i=e||n.prop||n.name;let s=new ln(i);return s.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(n,o),r[_e]=s,l.provide(_e,s),l.onUnmounted(()=>{s?.destroy(),r[_e]=void 0,l.provide(_e,null),s=null,r=null}),s}function $e(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(ve,null);let s=Qt(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(m,h,...g)=>s?Reflect.apply(s.emit,s,[m,h,...g]):null;const u=l.inject(He,null);e.fieldName=e.fieldName??a;let c=en(r,u,e);r[He]=c,l.provide(He,c),r.validate=(m=null)=>{if(!c)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const w=m,O=w.ignoreDisabled??!0,H=w.ignoreReadonly??!0,_=w.ignoreHidden??!0;O===!0&&e.disabled===!0||H===!0&&e.readonly===!0||_===!0&&Zt(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const w=c?.validate();h.push(w)}if(g){let w=null;const O={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const H=m;w={name:_=>_?H.indexOf(_)!==-1:!1}}else if(m!=null&&typeof m=="object"){const H=m;if(Object.assign(O,H),Array.isArray(H.include)&&H.include.length>0){const _=H.include;w={name:q=>q?_.indexOf(q)!==-1:!1}}else if(Array.isArray(H.exclude)&&H.exclude.length>0){const _=H.exclude;w={name:q=>q?_.indexOf(q)===-1:!1}}else w={name:"*"}}if(w&&s){const H=s.emitToChildren(w,"validate",O);Reflect.apply([].push,h,H)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let O=[];return w.forEach(H=>{H.pass===!1&&Array.isArray(H.errors)&&(O=[...O,...H.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&c?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(n??"")!==-1)&&c?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let f=new No(r);r[tn]=f;const d=mt((m="validate")=>{c&&(m==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xo()).forEach(m=>{f&&f.on(m,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Co()).forEach(m=>{f&&f.on(m,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,c?.destroy(),r[He]=void 0,l.provide(He,null),c=null,f?.destroy(),r[tn]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:c,emitEvent:(m,...h)=>{f&&Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function Io(e,n,o,t,r){const a={},i=n??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};let u=en({},r,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,$=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)$=!0,v=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),$=!0,v=m.deep??!1}else typeof f=="boolean"&&(v=f),$=!0;if($&&u){const m=u.validate();d.push(m)}if(v){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:w=>w?T.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&c){const g=c.emitToChildren(m,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};let c=Qt(null,t,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function Oo(){let n=l.getCurrentInstance()?.proxy,o=new No(n);return n[tn]=o,l.onUnmounted(()=>{o?.destroy(),n[tn]=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 Ve=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ge(e,n)}px`:"";function ge(e,n=-1){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(Ue){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}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 ut="PageStateKey";function Ge(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ge(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ge(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ge(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ge(e.right))),n}function zn(e,n,o={},t=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=ge(o.headerHeight??n.headerHeight??-1),e.headerPadding=Ge(o.headerPadding??n.headerPadding),e.footerHeight=ge(o.footerHeight??n.footerHeight??-1),e.footerPadding=Ge(o.footerPadding??n.footerPadding),e.contentPadding=Ge(o.contentPadding??n.contentPadding),t){const u=o.height??n.height;u?e.height=ge(u,a):e.height=ge(a)-ge(i,a)-ge(s,a),e.width=ge(o.width??n.width??0,r)}}function Vo(e,n={}){const o={top:null,left:null,bottom:null,right: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=ge(r.top),t.safeAreaBottom=ge(r.bottom),t.safeAreaLeft=ge(r.left),t.safeAreaRight=ge(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;zn(t,a,n,!0,i,s,u,c);const f=l.reactive(t),d=e.getForParent(ut);d&&(t.height=an(e,d),t.width=sn(e,d),l.watch([()=>an(e,d),()=>sn(e,d)],([$,m])=>{f.height=$,f.width=m}));const v=!d;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([$,m,h=-1,g=-1,T=0,w=0])=>{zn(f,m,n,v,h,g,T,w)}),e.set(ut,f),f}function rn(e){return e.get(ut)}function Ft(e,n){if(n=n??e.get(ut),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Rt(e,n){if(n=n??e.get(ut),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function an(e,n){if(n=n??e.get(ut),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Ft(e,n),t=Rt(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function sn(e,n){return n=n??e.get(ut),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Fa(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Ra(e){return!!e.getForParent(ut)}var Pe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Pe||{});function Hn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,o=1,t){const r=st();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Hn(u,t))return u}const i=e.value;return Hn(i,t)?i:null}):l.computed(()=>{const a=e.value;return Hn(a,t)?a:r?.get(n)})}function Re(e){return Fe(e,"readonly",0,function(o){return ue(o)})}function Ae(e){return Fe(e,"disabled",0,function(o){return ue(o)})}function me(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,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,t&&t("setValue",u))}else s!==i.value&&(i.value=s,t&&t("setValue",s))}),i}const Do=new Map,un=new Map;let Kn=null;function Aa(e){Kn=e}function Fo(e,n,o){if(o){let t=un.get(o);t||(t=new Map,un.set(o,t)),t.set(e,n)}else Do.set(e,n)}function Ke(e,n,o){!o&&Kn&&(o=Kn(e)??void 0);let t=null;if(o){let r=un.get(o);r&&(t=r.get(n))}return t||(t=Do.get(n)),t}function Ma(e,n){for(let o in e){const t=e[o];Fo(o,t,n)}}function La(e){un.delete(e)}function Ba(){return{top:0,left:0,bottom:0,right:0}}function _a(e=0,n=0){if(Ue){const o=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:t-ge(e,t)-ge(n,t)};return{rootWidth:o,rootHeight:t,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function qa(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Pa{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=qa(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=wt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Eo(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}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({},Ba(),n.safeAreaInset),i=_a(t,r),s=ht({},i.pageLayout,n.pageLayout);o=o??wt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Aa(n)}setAPI(n,o,t){Fo(n,o,t)}getAPI(n,o,t){return Ke(n,o,t)}batchSetAPI(n,o){Ma(n,o)}clearScopeAPI(n){La(n)}getRootDomain(){return wt()}}const ja=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload],za=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Ha=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),za.forEach(r=>{e.use(r)})};function fe(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 Ne(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Te={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},De={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}},Ro={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}},Ao={name:{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}},Mo=[];for(const e in Ao)Mo.push(e);const Ka=Symbol.for("InnerPageScopeKey"),Wa={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}},Ya=(e,n)=>({inheritAttrs:!0,props:{...Te,...Ro,...Wa},setup(o,{slots:t}){const r=jn(o.name,o),a=l.inject(Ka,!1);if(r){const f=Vo(r,o);Ne({getPageContentHeight:()=>an(r,f),getPageContentWidth:()=>sn(r,f),getPageHeaderHeight:()=>Ft(r,f),getPageFooterHeight:()=>Rt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[v,$])=>{if(f&&v){const m=l.toRaw(v),h=l.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),c(h)}if(d&&$){const m=l.toRaw($),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),c(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);c(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:s.value};return l.h("div",f,[t?.default?.()])}}}),{componentName:Ua,create:Ga,scope:Th}=fe("page"),Wn=Ga(Ya(Ua));function cn(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Yn(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 Xa=(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=st(),s=i?rn(i):null;s&&(s.headerMounted=!0);const u=e,c=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?ge(r.height):null,v=l.computed(()=>{const I={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const C=Ge(r.padding??s.headerPadding);return Object.assign(I,C),d&&(s.headerHeight=d),s.headerHeight>0&&(I.height=s.headerHeight),I.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,I.safeAreaTop>0&&(I.top=I.safeAreaTop+(C.top??0),I.height&&I.height>0&&(I.height=I.height+I.safeAreaTop)),I}if(d&&(I.height=d),r.padding){const C=Ge(r.padding);Object.assign(I,C)}return I}),$=l.ref(null),m=()=>{if(s&&$.value&&!Zt($.value)){if(!t){const I=cn($.value);s.headerAllHeight=I.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(nn(m,50,5,50,!0),window.ResizeObserver&&$.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe($.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const I={};return v.value.height!==null&&v.value.height!==void 0&&(I.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(I.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(I.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(I.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(I.paddingBottom=`${v.value.bottom}px`),I}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function O(){a.emit("click-title")}function H(){a.emit("click-right")}function _(){a.emit("click-right-text")}const q=()=>{if(!r.leftShow)return null;const I=[];if(a.slots.left)I.push(a.slots.left());else{if(a.slots.leftIcon){const C=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);I.push(C)}else if(r.leftIcon){const C=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);I.push(C)}if(r.leftText){const C=l.h("view",{class:"left-text",onClick:w},[r.leftText]);I.push(C)}}return I.length===0?null:l.h("view",{class:"fox-header-bar__left"},I)},F=()=>{if(!r.rightShow)return null;const I=[];if(a.slots.right)I.push(a.slots.right());else{if(r.rightText){const C=l.h("view",{class:"right-text",onClick:_},[r.rightText]);I.push(C)}if(a.slots.rightIcon){const C=l.h("view",{class:"right-icon",onClick:H},[a.slots.rightIcon()]);I.push(C)}else if(r.rightIcon){const C=l.h("view",{class:"right-icon",onClick:H},[l.h(r.rightIcon)]);I.push(C)}}return I.length===0?null:l.h("view",{class:"fox-header-bar__right"},I)},L=()=>{if(!r.titleShow)return null;const I=[],C=a.slots.default?a.slots.default():null;if(C)I.push(C);else{if(r.title){const z=l.h("view",{class:"title-text"},[r.title]);I.push(z)}if(a.slots.titleIcon){const z=l.h("view",{class:"title-icon",onClick:O},[a.slots.titleIcon()]);I.push(z)}else if(r.titleIcon){const z=l.h("view",{class:"title-icon",onClick:O},[l.h(r.titleIcon)]);I.push(z)}}return I.length===0?null:l.h("view",{class:"fox-header-bar__title"},I)},E=()=>{const I=[],C=a.slots.bottom?a.slots.bottom():null;return C&&I.push(C),I.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},I)};return()=>{if(!T.value)return null;const I=[];if(a.slots.all)I.push(a.slots.all());else{const z=[],k=q();k&&z.push(k);const D=L();D&&z.push(D);const A=F();if(A&&z.push(A),z.length>0){const U=l.h("view",{class:f.value},z);I.push(U)}const G=E();G&&I.push(G)}if(I.length===0)return null;const C={class:c.value,style:g.value,ref:$};return l.h("view",C,I)}}}),{componentName:Za,create:Qa,scope:Ja}=fe("header-bar"),Un=Qa(Xa(Za,Ja,ke.ArrowLeft));function ei(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=st(),i=a?rn(a):null,s=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${t.align}`]:!0,[`${m}--border`]:t.border,[`${m}--fixed`]:t.fixed,[`${m}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),u=t.height!==null&&t.height!==void 0?ge(t.height):null,c=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ge(t.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),t.padding){const h=Ge(t.padding);Object.assign(m,h)}return m}),f=l.ref(null),d=()=>{if(i&&f.value&&!Zt(f.value)){if(!o){const m=cn(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(nn(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const $=l.computed(()=>{const m={};return c.value.height!==null&&c.value.height!==void 0&&(m.height=Ve(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(m.paddingTop=Ve(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(m.paddingLeft=Ve(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(m.paddingRight=Ve(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(m.paddingBottom=Ve(c.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:$.value};return l.h("view",h,m)}}}}const{componentName:ti,create:ni,scope:Ch}=fe("footer-bar"),Gn=ni(ei(ti));function li(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const t=st(),r=l.computed(()=>({[e]:!0})),a=t?rn(t):null,i=l.computed(()=>{const c={};if(t&&a){if(o.padding){const $=Ge(o.padding);Object.assign(a.contentPadding,$)}const f=Ft(t,a),d=Rt(t,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,c.height=v,a.contentPadding.top||f>0){const $=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+$}px`}if(a.contentPadding.bottom||d>0){const $=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+$}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const f=Ge(o.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),s=l.ref(null),u=()=>{if(a&&s.value){const c=Yn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),t&&a&&l.watch([()=>Ft(t),()=>Rt(t)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:oi,create:ri,scope:$h}=fe("content"),ai=ri(li(oi));function ii(e,n,o,t,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const ze=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},Xn=ze(ai,[["render",ii]]),St="GroupStateKey",Lo=Symbol.for("GroupScopeKey");function fn(){return l.inject(Lo,!1)}function dn(e=!0){l.provide(Lo,e)}function si(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];_n(r)||(e[t]=r)})}function ui(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};si(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(St,a),a}function Zn(e,n,o=-1,t=-1,r=!1,a,i,s){const u=e.get(St);if(!u)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 f=ge(a),d=ge(i);s||(s=c.type??"grid");const v=()=>{const $=n===""||n===-1,m=ge(n);let h=xe(o);const g=ge(t);if(!$){let O=(m-(h-1)*g)/h;for(;d!==-1&&O>d;)h++,O=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&O<f;)h--,O=(m-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=n,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const $=++u.passport;setTimeout(()=>{$===u.passport&&v()},50)}}function hn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.layout}function gn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.order}function Bo(e,n=1){if(n==="stretch")return-1;const o=xe(n);return o===-1?100:100*o/e}function mn(e,n,o=1,t=0,r){const a={};let i=0;r?i=ge(r):i=Bo(n.column,o),i>0&&(a.width=`${i}%`);const s=Bo(n.column,t);s>0&&(a["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function pn(e,n,o=1,t=0){if(o==="stretch"){const u=e.index%n.column,c=u+(n.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let r=xe(o);if(r===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const a=xe(t)%n.column;let i=(e.index+a)%n.column,s=i+r;return s>n.column?(i=0,s=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 _o=Symbol("RollingStateKey");function ci(e){l.provide(_o,e)}function fi(){return l.inject(_o,null)}function Qn(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 di(e){let n=Qn(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=Qn(o),document.body.removeChild(o)}return n}function hi(e,n,o){if(e<=0)return"1fr";const t=(e-(n-1)*o)/n;return t>0?`${t}px`:"1fr"}const gi={...Te,...Ro,...Ao};function mi(e,n,o){return{props:gi,emits:["update:collapse","header-click"],setup(t,r){const a=jn(t.name,t,Mo),i=ui(a,{type:t.type}),s=fn();dn(!0);const u=t.rollingDisplay?fi():null,c=l.ref(null),f=l.computed(()=>t.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?hn(a,!0).value:null),v=l.getCurrentInstance(),$=(K,ee=!1)=>{const oe=v?.proxy;oe&&typeof oe.setNameValidateRules=="function"&&oe.setNameValidateRules(K,!0,ee)};l.watch([()=>t.rules,()=>t.pureDataRules],([K,ee],[oe,N])=>{if(K&&oe){const y=l.toRaw(oe),Y=l.toRaw(K),te=Y?Reflect.ownKeys(Y):[];(y?Reflect.ownKeys(y):[]).forEach(se=>{te.includes(se)||(Y[se]=[])}),$(Y)}if(ee&&N){const y=l.toRaw(N),Y=l.toRaw(ee),te=Y?Reflect.ownKeys(Y):[];(y?Reflect.ownKeys(y):[]).forEach(se=>{te.includes(se)||(Y[se]=[])}),$(Y,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const K={};K.height=A.value;const ee=s?gn(a,!0):null;if(d.value&&ee){if(d.value.type==="grid"){const oe=pn(ee,d.value,t.span,t.offset);Object.assign(K,oe)}else if(d.value.type==="flow"){const oe=mn(ee,d.value,t.span,t.offset,t.width);Object.assign(K,oe)}}else if(t.width){const oe=Ve(t.width);K.width=oe}return K}),g=l.computed(()=>{const K=i.layout.value.type;return K==="grid"||K==="flow"?{[`${m}--${K}`]:!0,[`${m}--${K}-justify-${t.justify}`]:!0,[`${m}--${K}-align-${t.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${K}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let ee="";if(t.columnWidth)ee=`repeat(auto-fill, ${t.columnWidth})`;else{const oe=hi(L.value,i.layout.value.column,i.layout.value.gutter);ee=`repeat(${i.layout.value.column}, ${oe})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":ee}}}),w=l.toRef(t,"gutter"),O=l.toRef(t,"column"),H=l.computed(()=>s||f.value?!0:ue(t.isWrap)),_=[],q=K=>{_.push(K)},F=()=>{let K=_.length;_.splice(0,K)},L=l.ref(-1),E=K=>{const ee=Yn(K).width;ee>0&&ee!==L.value&&(L.value=ee)};Zn(a,L.value,O.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([L,O,w],([K,ee,oe])=>{i.order.index=0,Zn(a,K,ee,oe,!1,t.minItemWidth,t.maxItemWidth,t.type)});const I=l.computed(()=>G.value?t.expandText??"":t.collapseText??""),C=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!G.value,"is-collapse":G.value})),k=l.ref(),D=l.ref(),A=l.computed(()=>U.value||Ve(t.height)||""),G=l.ref(!1),U=l.ref(""),J=l.ref(!1);let X=-1;const ne=(K,ee=!0)=>{const oe=k.value;if(oe&&G.value!==K){if(X=X===-1?di(oe):X,J.value=!0,ee)if(oe.style["will-change"]="height",oe.ontransitionend=function(){oe.ontransitionend=null,this.style["will-change"]="auto",K||(U.value="",J.value=!1)},K){let N=0;t.collapseHeight?N=t.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(N=D.value.offsetHeight),U.value=`${X}px`,l.nextTick(()=>{U.value=`${N}px`})}else U.value=`${X}px`;else if(K){let N=0;t.collapseHeight?N=t.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(N=D.value.offsetHeight),U.value=`${N}px`}else J.value=!1,U.value=`${X}px`;G.value=K,r.emit("update:collapse",K)}};l.watch(()=>t.collapse,K=>{ne(K)});const ae=K=>{r.emit("header-click",K)},V=()=>{x()},x=K=>{K=K??!G.value,ne(K)};Ne({toggleCollapse:x,doLayout:()=>{_[0]&&(E(_[0]),Zn(a,L.value,O.value,w.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let R=null,b=!0;const W=K=>{if(t.rules){const ee=l.toRaw(t.rules);$(ee)}if(t.pureDataRules){const ee=l.toRaw(t.pureDataRules);$(ee,!0)}if(Ue&&(K&&ne(ue(t.collapse),!1),t.autoLayout&&Array.isArray(_)&&_.length>0)){const ee=_[0];E(ee),window.ResizeObserver&&(R=new window.ResizeObserver(()=>{E(ee)}),R.observe(ee))}},j=()=>{R?.disconnect(),R=null},P=!f.value||u?.acquire();P&&(c.value=f.value?!0:null),l.onMounted(()=>{if(P&&(W(b),b=!1),f.value&&u){let K=null,ee=u.initialHeight;u.observe(k.value,oe=>{if(oe!==c.value)if(oe)c.value=!0,G.value||(U.value=""),K=setTimeout(()=>{K=null,c.value!==!1&&(W(b),b=!1)},100);else{if(K!==null&&clearTimeout(K),c.value=!1,!G.value)if(b)U.value=u.initialHeight;else{let N=Qn(k.value);N<=0?U.value=ee:(U.value=`${N}px`,ee=U.value)}b||j()}})}}),l.onUnmounted(()=>{R?.disconnect(),u&&u.unobserve(k.value)});const B=(K="right")=>{const ee=[];if(I.value){const y={class:C.value},Y=l.h("span",y,[I.value]);ee.push(Y)}const oe={class:z.value},N=o(t.collapseIcon,oe);return N&&ee.push(N),ee.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:V},ee):null},Z=(K,ee,oe,N)=>{const y={...g.value};return ee===0&&(y[`${m}__first`]=!0),oe>=N-1&&(y[`${m}__last`]=!0),l.h("div",{ref:q,key:`${ee}`,class:y,style:T.value},K)};return()=>{if(f.value&&c.value!==!0){const y=t.tag||"div";return l.h(y,{ref:k,prop:t.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const K=[];let ee=0;if(r.slots.header){const y={key:`${ee++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},Y=l.h("div",y,[r.slots.header()]);K.push(Y)}else{const y=[],Y=t.collapsePosition==="left";if(Y&&t.showCollapse){const te=B("left");te&&y.push(te)}if(t.title||r.slots.title){if(t.showMark){const te={class:{[`${m}__header-mark`]:!0}};t.markColor&&(te.style={background:t.markColor});const ce=l.h("div",te);y.push(ce)}if(r.slots.title){const te=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);y.push(te)}else if(t.title){const te=l.h("div",{class:{[`${m}__header-title`]:!0}},[t.title]);y.push(te)}}if(r.slots.toolbar&&y.push(r.slots.toolbar()),!Y&&t.showCollapse){const te=B("right");te&&y.push(te)}if(y.length>0){const te={key:`${ee++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},ce=l.h("div",te,y);K.push(ce)}}F();const oe=r.slots.default?r.slots.default():[],N=i.layout.value.type;if(N==="grid"){const y=Z(oe,ee++,0,oe.length);K.push(y)}else if(N==="flow"){const y=Z(oe,ee++,0,oe.length);K.push(y)}else for(let y=0;y<oe.length;y++){const Y=oe[y],te=Z([Y],ee++,y,oe.length);K.push(te)}if(H.value){const y=t.tag||"div";return l.h(y,{ref:k,prop:t.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[K])}else return K}}}}const{componentName:pi,create:yi,scope:bi}=fe("group"),Jn=yi(mi(pi,bi,(e,n)=>(e=e??ke.ArrowUp,l.h(S.ElIcon,n,{default:()=>[l.h(e)]}))));function vi(e){return e===window}const wi=/matrix\((.+)\)/,qo=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,s=0,u=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=wi.exec(c);if(f){let v=f[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,t-=i,o+=s,t+=u,{x:o,y:t}};class Si{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 xi{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 Si,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 At=new xi,Po={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:Ti,create:Ci}=fe("price"),$i=Ci({props:{...Po},setup(e){const n=l.computed(()=>({[Ti]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>It(e.price)==0?"":Ut(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Ni=["innerHTML"],Ei=["innerHTML"];function ki(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,Ni)):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,Ei)):l.createCommentVNode("",!0)],2)}const yn=ze($i,[["render",ki]]),{componentName:el,create:Ii}=fe("hint-text"),Oi=Ii({components:{Price:yn},props:{...Po,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),s=l.ref(!1),u=l.ref(null),c=(C,z,k,D,A,G)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,X=C.split("-");let ne=[];X[0]==="top"?ne=["top","bottom","right","left"]:X[0]==="bottom"?ne=["bottom","top","right","left"]:X[0]==="left"?ne=["left","top","bottom","right"]:X[0]==="right"&&(ne=["right","top","bottom","left"]);const ae={top:null,right:null,bottom:null,left:null},V=[];for(let x=0;x<ne.length;x++){const M=ne[x];if(V[0]=M,X[1]&&(V[1]=X[1]),M==="top"){const R=z.y-G-e.arrowSize-e.offset;if(R>=0){ae.top=R;let b=0;X[1]==="start"?b=z.x:X[1]==="end"?b=z.x+k-A:b=z.x+k/2-A/2;const W=U-b-A;W<0?(b+=W,d.value=-W):d.value=0,ae.left=b<0?0:b;break}}else if(M==="bottom"){const R=z.y+D+e.arrowSize+e.offset;if(R+G<=J){ae.top=R;let b=0;X[1]==="start"?b=z.x:X[1]==="end"?b=z.x+k-A:b=z.x+k/2-A/2;const W=U-b-A;W<0?(b+=W,d.value=-W):d.value=0,ae.left=b<0?0:b;break}}else if(M==="left"){const R=z.x-A-e.arrowSize-e.offset;if(R>=0){ae.left=R;let b=0;X[1]==="start"?b=z.y:X[1]==="end"?b=z.y+D-G:b=z.y+D/2-G/2,ae.top=b<0?0:b;break}}else if(M==="right"){const R=z.x+k+e.arrowSize+e.offset;if(R+A<=U){ae.left=R;let b=0;X[1]==="start"?b=z.y:X[1]==="end"?b=z.y+D-G:b=z.y+D/2-G/2,ae.top=b<0?0:b;break}}}return{bestPlacement:V.join("-"),bestInsetRect:ae}},f=(C,z,k=10)=>{if(Ue&&!(z===!1||!C)&&e.reference){t.value=qo(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=u.value?.offsetHeight??0,A=u.value?.offsetWidth??0,{bestPlacement:G,bestInsetRect:U}=c(e.placement,t.value,r.value,a.value,A,D);i.value=G,o.value=U,s.value=!0}},d=l.ref(0),v=mt(()=>{f(e.message,e.visible)},10),$=l.ref(e.visible);l.watch(()=>e.visible,C=>{$.value=C});const m=l.computed(()=>$.value&&h.value),h=l.ref(!0),g=mt(C=>{const z=C[0];z&&(h.value=z.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([C,z])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),At.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeUnmount(()=>{At.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const C={[el]:!0};return i.value.startsWith("top")?C["is-top"]=!0:i.value.startsWith("right")?C["is-right"]=!0:i.value.startsWith("bottom")?C["is-bottom"]=!0:i.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),O=l.computed(()=>{const C={};o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${z}px`,s.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),H=l.computed(()=>{const C=[`${el}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),_=l.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),q=l.computed(()=>({[`${el}__arrow`]:!0})),F=l.computed(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,i.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="top-start"?(C.left=`${e.arrowOffset+d.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-d.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(C.left=`${e.arrowOffset+d.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-d.value}px`,C.top=`-${e.arrowSize}px`):i.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),L=l.computed(()=>m.value&&e.closeOnClick),E=l.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:m,tipRef:u,classes:w,styles:O,textClasses:H,textStyles:_,arrowClasses:q,arrowStyles:F,overlayShow:L,overlayStyle:E,onClickOverlay:()=>{$.value=!1,n.emit("update:visible",!1)}}}}),Vi=["innerHTML"];function Di(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]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},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,Vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=ze(Oi,[["render",Di]]);class jo{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 tl={},Fi=new jo,xt=new Map,bn=e=>{if(e){const n=document.getElementById(e);xt.delete(e),n&&(l.render(null,n),n.parentNode?.removeChild(n))}else{for(const n of xt.keys()){const o=document.getElementById(n);o&&(l.render(null,o),o.parentNode?.removeChild(o))}xt.clear()}},Ri=e=>{e.unmount=bn;const n=document.getElementById(e.id);if(n){const o=xt.get(e.id);o?e={...tl,...o,...e}:e={...tl,...e},e.transition=!1;const t=l.createVNode(Mt,e);return l.render(t,n),e.id}},Ai=e=>{e.unmount=bn;let n=e.id??`hinttext_${Fi.get()}`;e={...tl,...e},e.id=n,xt.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},Mi=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Me={show(e,n,o={},t=!0){Mi(n);const r=o.id;return r&&xt.has(r)?Ri({...o,message:n,reference:e}):(t&&bn(),Ai({...o,message:n,reference:e}))},hide(e){bn(e)},install(e){e.config.globalProperties.$hintText=Me}};function Li(e,n,o,t=!1){return{inheritAttrs:!0,props:{...Te,...De},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const s=st(),u=fn();dn(!1);const c=l.computed(()=>u&&s?hn(s,!1).value:null),f=e,d=l.ref(null),v=l.computed(()=>{const N={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(N[r.errorMarkClass]=!!G.value,N[r.warnMarkClass]=!!D.value,N[r.infoMarkClass]=!!z.value,typeof d.value=="function"){const y=d.value(i);N[y]=!0}else if(typeof d.value=="string"){const y=d.value;N[y]=!0}return N}),$=l.ref(null),m=l.computed(()=>{const N={};if(r.width)r.width!=="auto"&&(N.width=Ve(r.width));else{const y=u&&s?gn(s,!1):null;if(c.value&&y){if(c.value.type==="grid"){const Y=pn(y,c.value,r.span,r.offset);Object.assign(N,Y)}else if(c.value.type==="flow"){const Y=mn(y,c.value,r.span,r.offset,r.width);Object.assign(N,Y)}}}if(typeof $.value=="function"){const y=$.value(i);y&&Object.assign(N,y)}else if($.value&&typeof $.value=="object"){const y=$.value;Object.assign(N,y)}return N}),h=l.ref(null),g=l.computed({get:()=>h.value??ue(r.isRequired),set:N=>{h.value=N}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Fe(l.toRef(r,"labelPosition"),"labelPosition",Pe.Near),O=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),H=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${O.value}`]:!0})),_=l.computed(()=>({label:!0,[`label--${O.value}`]:!0})),q=Fe(l.toRef(r,"labelWidth"),"labelWidth",Pe.Near),F=l.computed(()=>q&&q.value?{width:Ve(q.value)}:{}),L=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),I=l.computed(()=>({...r.contentStyle})),C=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ne({setRequired(N){g.value=N},setErrorTip(N){C.errorTip=N},setErrorIcon(N){C.errorIcon=N},setWarnTip(N){C.warnTip=N},setWarnIcon(N){C.warnIcon=N},setInfoTip(N){C.infoTip=N},setInfoIcon(N){C.infoIcon=N},setCustomClassName(N){d.value=N},setCustomStyle(N){$.value=N}});const z=l.computed(()=>r.infoTip||C.infoTip),k=l.computed(()=>r.infoIcon||C.infoIcon),D=l.computed(()=>r.warnTip||C.warnTip),A=l.computed(()=>r.warnIcon||C.warnIcon),G=l.computed(()=>r.errorTip||C.errorTip),U=l.computed(()=>r.errorIcon||C.errorIcon),J=l.computed(()=>G.value?"error":D.value?"warn":z.value?"info":""),X=()=>J.value.length>0,ne=l.computed(()=>J.value==="error"?G.value:J.value==="warn"?D.value:J.value==="info"?z.value:""),ae=l.computed(()=>J.value==="error"?U.value:J.value==="warn"?A.value:J.value==="info"?k.value:null),V=l.computed(()=>{const N={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?N[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?N[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(N[`${r.infoClass}`]=!0),N}),x=l.computed(()=>{const N={};return w&&w.value==="top"||!T()?N["padding-left"]="0px":q&&q.value&&(N["padding-left"]=Ve(q.value)),N}),M=l.ref();let R="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([N,y,Y,te])=>{M.value&&(N&&!be(y)?R?o.show(M.value,y,{...te,id:R,type:Y},!0):R=o.show(M.value,y,{...te,type:Y},!0):o.hide(R))});let b=null;const W=()=>{b||!M.value||(b=new IntersectionObserver(N=>{let y=!1;for(let Y of N)if(Y.intersectionRatio>0){y=!0,y&&a.emit("appear",Y);break}y||a.emit("disappear")}),b.observe(M.value))},j=()=>{b&&(M.value&&b.unobserve(M.value),b.disconnect(),b=null)};l.watch(()=>ue(r.appearListen),N=>{N?W():j()}),l.onMounted(()=>{ue(r.appearListen)&&W()}),l.onUnmounted(()=>{j(),R&&o.hide(R)});const P=()=>{if(!T())return null;const N=[],y=a.slots?.label?.()??r.label,Y={class:L.value},te=l.h("div",Y,[y]);if(N.push(te),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();N.push(se)}const ce={class:_.value,style:F.value};return l.h("div",ce,N)},B=()=>{const N=[];if(a.slots.prepend){const Y=a.slots.prepend();N.push(Y)}if(a.slots.default){const Y=a.slots.default();N.push(Y)}if(a.slots.append){const Y=a.slots.append();N.push(Y)}if(a.slots.fixedTip){const Y={class:[`${f}__fixed-tip`]},te=l.h("div",Y,[a.slots.fixedTip()]);N.push(te)}const y={ref:M,class:E.value,style:I.value};return l.h("div",y,N)},Z=()=>{const N=ae.value;return N?typeof N=="function"?l.h("div",{class:"fox-item__tip--icon"},[N()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(N)]):null},K=()=>{const N=ne.value;return N?typeof N=="function"?l.h("div",{class:"fox-item__tip--text"},[N()]):l.h("div",{class:"fox-item__tip--text"},[N]):null},ee=()=>{if(!X())return null;const N=[],y=Z();y&&N.push(y);const Y=K();Y&&N.push(Y);const te={class:V.value,style:x.value};return l.h("div",te,N)},oe=()=>a.slots?.hide?.()??null;return()=>{const N=[],y=[],Y=P();Y&&y.push(Y);const te=B();te&&y.push(te);const ce={class:H.value},se=l.h("div",ce,y);N.push(se);const de=ee();de&&N.push(de);const Se=oe();Se&&N.push(Se);const Qe={class:v.value,style:m.value,prop:r.prop};return l.h("div",Qe,N)}}}}const{componentName:Bi,create:_i,scope:qi}=fe("item"),Ce=_i(Li(Bi,qi,Me,!1));function Pi(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,t){const r=st(),a=fn();dn(!1);const i=l.computed(()=>a&&r?hn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const f={},d=a&&r?gn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=pn(d,i.value,o.span,o.offset);Object.assign(f,v)}else if(i.value.type==="flow"){const v=mn(d,i.value,o.span,o.offset,o.width);Object.assign(f,v)}else return o.width&&(f.width=Ve(o.width)),f;else o.width&&(f.width=Ve(o.width));return f});return()=>{const f={class:u.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",f,t.slots.default()):l.h("div",f)}}}}const{componentName:ji,create:zi,scope:Eh}=fe("slot-item"),nl=zi(Pi(ji));function Hi(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=st(),s=fn();dn(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=hn(i,!1),d=gn(i,!1);if(f.value&&d)if(f.value.type==="grid"){const v=pn(d,f.value,o.span,o.offset);Object.assign(c,v)}else if(f.value.type==="flow"){const v=mn(d,f.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Ve(o.width))}else o.width&&(c.width=Ve(o.width));return c});return()=>{const c=[];if(t.slots.default){const d=t.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const $=l.h("div",{class:{[`${r}__divide`]:!0}});c.push($)}c.push(d[v])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Ki,create:Wi,scope:kh}=fe("row-item"),ll=Wi(Hi(Ki)),Xe=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},zo={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,String],default:!1}};function Yi(e,n,o){return{props:{...Te,...De,...zo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),m=k=>{d.value=k,s("update:modelValue",k),s("input",k)},h=k=>{s("change",k)};let g=me(t,"hintText"),T=l.ref(!1);const w=k=>{let A=k.target.value;f.value=!0,be(g.value)||(T.value=!0),s("focus",A,k)},O=k=>{setTimeout(()=>{T.value&&(T.value=!1),f.value=!1},0);let A=k.target.value;t.maxLength&&A.length>Number(t.maxLength)&&(A=A.slice(0,Number(t.maxLength))),s("blur",A,k)},H=()=>{s("clear","")},_=l.ref(!1);let q=null;const F=()=>{ue(t.showTooltip)&&_.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{_.value=!0},150))},L=()=>{q&&(clearTimeout(q),_.value=!1,q=null)},E=l.computed(()=>_.value||T.value),I=l.computed(()=>_.value?d.value:g.value),C=l.computed(()=>It(t.unit)>0),z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const D={...Xe(r.attrs),ref:z,class:$.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:H,onChange:h,onInput:m,onFocus:w,onBlur:O,onMouseover:F,onMouseleave:L},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:C.value&&(A.suffix=()=>[t.unit]);const G=[],U=l.h(S.ElInput,D,A);G.push(U);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ne={...Oe(t,zo),hintText:I.value,hintVisible:E.value,prop:`${t.prop}_item`};return l.h(o,ne,J)}}}}const{componentName:Ui,create:Gi,scope:Xi}=fe("input-item"),ol=Gi(Yi(Ui,Xi,Ce));function ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Lt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ho(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Zi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Qi=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Ji(){const e=l.getCurrentInstance();return new Qi(e.proxy)}function Ko(e,n,o){const t=ct(e,n),r=ct(e,o);if(t!==r)return!1;const a=Lt(e,n),i=Lt(e,o);return a===i}function Wo(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 s=Ho(e,i);if(Array.isArray(s)&&s.length>0){const u=Wo(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ct(e,i)===a;else if(o==="item")u=Ko(e,i,a);else{let c=Lt(e,i);c==null&&(c=ct(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function es(e){return{text:e,value:e}}const Yo={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,String],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,String],default:!1}};function ts(e,n,o){return{props:{...Te,...De,...Yo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(Z=>ct(t,Z)).join(" "):""),$=(B,Z,K,ee=!0)=>{if(K.length==0){ee&&(s("update:modelValue",B),s("change",B)),f.value=B;return}const oe=Wo(t,B,Z,K);if(oe===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],ee&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let N=!0;if(oe.length!==d.value.length)N=!1;else for(let y=0;y<oe.length;y++){const Y=oe[y],te=d.value[y];if(!Ko(t,Y,te)){N=!1;break}}if(!N){d.value=oe;let y=[],Y=[],te=[];oe.forEach(Se=>{const Qe=Lt(t,Se),Je=ct(t,Se);y.push(Qe),te.push(Je),t.valueType==="text"?Y.push(Je):t.valueType==="item"?Y.push(Se):Y.push(Qe)});let ce,se,de;ue(t.multiple)?(f.value=y,ce=l.toRaw(Y),se=te,de=l.toRaw(oe)):(f.value=y[0]??"",ce=l.toRaw(Y[0]??""),se=te[0]??"",de=l.toRaw(oe[0])),ee&&(s("update:modelValue",ce),s("change",ce,de)),s("update:text",se)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,B=>ue(B)),w=Ji(),O=async(B,Z)=>{if(B){const K=await w.load("select",B,Z);if(K.length>0)if(typeof K[0]=="string"){let N=K.map(y=>es(y));m.value=N}else m.value=K;else m.value=null}};l.watch([()=>t.source,()=>t.params],([B,Z])=>{h.value=null,O(B,Z)},{immediate:!T.value});let H=!1;const _=()=>{H||(H=!0,O(t.source,t.params))};l.watch([()=>m.value,()=>t.modelValue],([B,Z])=>{if(E()&&ue(t.multiple)){nt(Z,f.value)||(f.value=Z);return}$(Z,t.valueType,g.value,!1),s("setValue",Z)}),t.source||(f.value=t.modelValue);let q=null,F=l.ref(!1);typeof t.remoteMethod=="function"&&(q=async B=>{if(B==null){h.value=null;return}F.value=!0;try{const Z=await t.remoteMethod(B);Z&&(h.value=Z)}catch(Z){h.value=null,console.error(Z)}F.value=!1});let L=null;typeof t.filterMethod=="function"&&(L=async B=>{if(B==null){h.value=null;return}F.value=!0;try{const Z=await t.filterMethod(B,m.value);Z&&(h.value=Z)}catch(Z){h.value=null,console.error(Z)}F.value=!1});const E=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",I=l.ref(!1),C=e,z=l.computed(()=>({[C]:!0})),k=B=>{t.allowCreate||E()&&ue(t.multiple)?(s("update:modelValue",B),s("change",B),s("update:text",B),f.value=B):$(B,"value",g.value,!0)};let D=me(t,"hintText"),A=l.ref(!1);const G=B=>{let K=B.target.value;I.value=!0,be(D.value)||(A.value=!0),s("focus",K,B)},U=B=>{setTimeout(()=>{A.value&&(A.value=!1),I.value=!1},0);let K=B.target.value;t.maxLength&&K.length>Number(t.maxLength)&&(K=K.slice(0,Number(t.maxLength))),R.value||s("blur",K,B)},J=()=>{s("clear","")},X=l.ref(!1);let ne=null;const ae=()=>{ue(t.showTooltip)&&X.value===!1&&(ne&&clearTimeout(ne),ne=setTimeout(()=>{X.value=!0},150))},V=()=>{ne&&(clearTimeout(ne),X.value=!1,ne=null)},x=l.computed(()=>X.value||A.value),M=l.computed(()=>X.value?v.value:D.value),R=l.ref(!1),b=B=>{R.value=B,s("visible-change",B),B||s("selected")},W=B=>{s("remove-tag",B)},j=(B,Z)=>{const K=[];return B.forEach((ee,oe)=>{const N=Ho(t,ee);if(Array.isArray(N)&&N.length>0){const y=j(N,Z),Y=ct(t,ee),ce={key:`${Y}_${oe}`,label:Y};K.push(l.h(S.ElOptionGroup,ce,{default:()=>y}))}else{const y=Lt(t,ee),Y=ct(t,ee),te=Zi(t,ee),se={key:`${y}_${oe}`,label:Y,disabled:te,value:y};if(typeof Z=="function")K.push(l.h(S.ElOption,se,{default:()=>Z(ee)}));else if(t.optionType==="item"){const de={class:{"fox-select-item__option-left":!0}},Se=l.h("span",de,[y]),Qe={class:{"fox-select-item__option-right":!0}},Je=l.h("span",Qe,[Y]),et=l.h("div",{class:{"fox-select-item__option":!0}},[Se,Je]);K.push(l.h(S.ElOption,se,{default:()=>et}))}else t.optionType==="value"?K.push(l.h(S.ElOption,se,{default:()=>[y]})):K.push(l.h(S.ElOption,se))}}),K},P=l.ref();return Ne({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const Z={...Xe(r.attrs),ref:P,class:z.value,clearable:ue(t.clearable),multiple:ue(t.multiple),placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:J,onChange:k,onFocus:G,onBlur:U,onVisibleChange:b,onRemoveTag:W};typeof q=="function"&&(Z["remote-method"]=q,Z.loading=F.value),typeof L=="function"&&(Z["filter-method"]=L,Z.loading=F.value);const K={};r.slots.prefix&&(K.prefix=r.slots.prefix),r.slots.empty&&(K.empty=r.slots.empty),r.slots.options?K.default=r.slots.options:K.default=()=>j(g.value,r.slots.option);const ee=[],oe=l.h(S.ElSelect,Z,K);ee.push(oe);const N={default:()=>ee};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const Y={...Oe(t,Yo),hintText:M.value,hintVisible:x.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:ae,onMouseleave:V};return T.value&&(Y["appear-listen"]=!0,Y.onAppear=_),l.h(o,Y,N)}}}}const{componentName:ns,create:ls,scope:os}=fe("select-item"),rl=ls(ts(ns,os,Ce));var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",v="quarter",$="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|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("_")},O=function(k,D,A){var G=String(k);return!G||G.length>=D?k:""+Array(D+1-G.length).join(A)+k},H={s:O,z:function(k){var D=-k.utcOffset(),A=Math.abs(D),G=Math.floor(A/60),U=A%60;return(D<=0?"+":"-")+O(G,2,"0")+":"+O(U,2,"0")},m:function k(D,A){if(D.date()<A.date())return-k(A,D);var G=12*(A.year()-D.year())+(A.month()-D.month()),U=D.clone().add(G,d),J=A-U<0,X=D.clone().add(G+(J?-1:1),d);return+(-(G+(A-U)/(J?U-X:X-U))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:$,w:f,d:c,D:m,h:u,m:s,s:i,ms:a,Q:v}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},_="en",q={};q[_]=w;var F=function(k){return k instanceof C},L=function k(D,A,G){var U;if(!D)return _;if(typeof D=="string"){var J=D.toLowerCase();q[J]&&(U=J),A&&(q[J]=A,U=J);var X=D.split("-");if(!U&&X.length>1)return k(X[0])}else{var ne=D.name;q[ne]=D,U=ne}return!G&&U&&(_=U),U||!G&&_},E=function(k,D){if(F(k))return k.clone();var A=typeof D=="object"?D:{};return A.date=k,A.args=arguments,new C(A)},I=H;I.l=L,I.i=F,I.w=function(k,D){return E(k,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var C=function(){function k(A){this.$L=L(A.locale,null,!0),this.parse(A)}var D=k.prototype;return D.parse=function(A){this.$d=function(G){var U=G.date,J=G.utc;if(U===null)return new Date(NaN);if(I.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var X=U.match(g);if(X){var ne=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],ne,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],ne,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(U)}(A),this.$x=A.x||{},this.init()},D.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()},D.$utils=function(){return I},D.isValid=function(){return this.$d.toString()!==h},D.isSame=function(A,G){var U=E(A);return this.startOf(G)<=U&&U<=this.endOf(G)},D.isAfter=function(A,G){return E(A)<this.startOf(G)},D.isBefore=function(A,G){return this.endOf(G)<E(A)},D.$g=function(A,G,U){return I.u(A)?this[G]:this.set(U,A)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(A,G){var U=this,J=!!I.u(G)||G,X=I.p(A),ne=function(j,P){var B=I.w(U.$u?Date.UTC(U.$y,P,j):new Date(U.$y,P,j),U);return J?B:B.endOf(c)},ae=function(j,P){return I.w(U.toDate()[j].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(P)),U)},V=this.$W,x=this.$M,M=this.$D,R="set"+(this.$u?"UTC":"");switch(X){case $:return J?ne(1,0):ne(31,11);case d:return J?ne(1,x):ne(0,x+1);case f:var b=this.$locale().weekStart||0,W=(V<b?V+7:V)-b;return ne(J?M-W:M+(6-W),x);case c:case m:return ae(R+"Hours",0);case u:return ae(R+"Minutes",1);case s:return ae(R+"Seconds",2);case i:return ae(R+"Milliseconds",3);default:return this.clone()}},D.endOf=function(A){return this.startOf(A,!1)},D.$set=function(A,G){var U,J=I.p(A),X="set"+(this.$u?"UTC":""),ne=(U={},U[c]=X+"Date",U[m]=X+"Date",U[d]=X+"Month",U[$]=X+"FullYear",U[u]=X+"Hours",U[s]=X+"Minutes",U[i]=X+"Seconds",U[a]=X+"Milliseconds",U)[J],ae=J===c?this.$D+(G-this.$W):G;if(J===d||J===$){var V=this.clone().set(m,1);V.$d[ne](ae),V.init(),this.$d=V.set(m,Math.min(this.$D,V.daysInMonth())).$d}else ne&&this.$d[ne](ae);return this.init(),this},D.set=function(A,G){return this.clone().$set(A,G)},D.get=function(A){return this[I.p(A)]()},D.add=function(A,G){var U,J=this;A=Number(A);var X=I.p(G),ne=function(x){var M=E(J);return I.w(M.date(M.date()+Math.round(x*A)),J)};if(X===d)return this.set(d,this.$M+A);if(X===$)return this.set($,this.$y+A);if(X===c)return ne(1);if(X===f)return ne(7);var ae=(U={},U[s]=t,U[u]=r,U[i]=o,U)[X]||1,V=this.$d.getTime()+A*ae;return I.w(V,this)},D.subtract=function(A,G){return this.add(-1*A,G)},D.format=function(A){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var J=A||"YYYY-MM-DDTHH:mm:ssZ",X=I.z(this),ne=this.$H,ae=this.$m,V=this.$M,x=U.weekdays,M=U.months,R=function(P,B,Z,K){return P&&(P[B]||P(G,J))||Z[B].slice(0,K)},b=function(P){return I.s(ne%12||12,P,"0")},W=U.meridiem||function(P,B,Z){var K=P<12?"AM":"PM";return Z?K.toLowerCase():K},j={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:I.s(V+1,2,"0"),MMM:R(U.monthsShort,V,M,3),MMMM:R(M,V),D:this.$D,DD:I.s(this.$D,2,"0"),d:String(this.$W),dd:R(U.weekdaysMin,this.$W,x,2),ddd:R(U.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ne),HH:I.s(ne,2,"0"),h:b(1),hh:b(2),a:W(ne,ae,!0),A:W(ne,ae,!1),m:String(ae),mm:I.s(ae,2,"0"),s:String(this.$s),ss:I.s(this.$s,2,"0"),SSS:I.s(this.$ms,3,"0"),Z:X};return J.replace(T,function(P,B){return B||j[P]||X.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(A,G,U){var J,X=I.p(G),ne=E(A),ae=(ne.utcOffset()-this.utcOffset())*t,V=this-ne,x=I.m(this,ne);return x=(J={},J[$]=x/12,J[d]=x,J[v]=x/3,J[f]=(V-ae)/6048e5,J[c]=(V-ae)/864e5,J[u]=V/r,J[s]=V/t,J[i]=V/o,J)[X]||V,U?x:I.a(x)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return q[this.$L]},D.locale=function(A,G){if(!A)return this.$L;var U=this.clone(),J=L(A,G,!0);return J&&(U.$L=J),U},D.clone=function(){return I.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},k}(),z=C.prototype;return E.prototype=z,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",$],["$D",m]].forEach(function(k){z[k[1]]=function(D){return this.$g(D,k[0],k[1])}}),E.extend=function(k,D){return k.$i||(k(D,C,E),k.$i=!0),E},E.locale=L,E.isDayjs=F,E.unix=function(k){return E(1e3*k)},E.en=q[_],E.Ls=q,E.p={},E})})(Uo);var rs=Uo.exports;const Ze=ot(rs);var Go={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,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]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var O=1;O<=24;O+=1)if(h.indexOf(w(O,0,g))>-1){T=O>12;break}}else T=h===(g?"pm":"PM");return T},$={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function m(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,I,C){var z=C&&C.toUpperCase();return I||T[C]||o[C]||T[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,D,A){return D||A.slice(1)})})).match(t),O=w.length,H=0;H<O;H+=1){var _=w[H],q=$[_],F=q&&q[0],L=q&&q[1];w[H]=L?{regex:F,parser:L}:_.replace(/^\[|\]$/g,"")}return function(E){for(var I={},C=0,z=0;C<O;C+=1){var k=w[C];if(typeof k=="string")z+=k.length;else{var D=k.regex,A=k.parser,G=E.slice(z),U=D.exec(G)[0];A.call(I,U),E=E.replace(U,"")}}return function(J){var X=J.afternoon;if(X!==void 0){var ne=J.hours;X?ne<12&&(J.hours+=12):ne===12&&(J.hours=0),delete J.afternoon}}(I),I}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,O=w.parse;w.parse=function(H){var _=H.date,q=H.utc,F=H.args;this.$u=q;var L=F[1];if(typeof L=="string"){var E=F[2]===!0,I=F[3]===!0,C=E||I,z=F[2];I&&(z=F[2]),s=this.$locale(),!E&&z&&(s=T.Ls[z]),this.$d=function(G,U,J){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*G);var X=m(U)(G),ne=X.year,ae=X.month,V=X.day,x=X.hours,M=X.minutes,R=X.seconds,b=X.milliseconds,W=X.zone,j=new Date,P=V||(ne||ae?1:j.getDate()),B=ne||j.getFullYear(),Z=0;ne&&!ae||(Z=ae>0?ae-1:j.getMonth());var K=x||0,ee=M||0,oe=R||0,N=b||0;return W?new Date(Date.UTC(B,Z,P,K,ee,oe,N+60*W.offset*1e3)):J?new Date(Date.UTC(B,Z,P,K,ee,oe,N)):new Date(B,Z,P,K,ee,oe,N)}catch{return new Date("")}}(_,L,q),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),C&&_!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var k=L.length,D=1;D<=k;D+=1){F[1]=L[D-1];var A=T.apply(this,F);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}D===k&&(this.$d=new Date(""))}else O.call(this,H)}}})})(Go);var as=Go.exports;const is=ot(as);var Xo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t,r){var a=t.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(s||"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(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),v==="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 v}});return i.bind(this)(d)}}})})(Xo);var ss=Xo.exports;const us=ot(ss);var Zo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t,r){var a=t.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,$,m,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[$]),O=T||w.map(function(_){return _.slice(0,m)});if(!h)return O;var H=g.weekStart;return O.map(function(_,q){return O[(q+(H||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,v){return d.formats[v]||function($){return $.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},f=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.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(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Zo);var cs=Zo.exports;const fs=ot(cs);var Qo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){var o="week",t="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(t).add(1,t).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var v=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),$=this.diff(v,o,!0);return $<0?i(this).startOf("week").week():Math.ceil($)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Qo);var ds=Qo.exports;const hs=ot(ds);var Jo={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,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}}})})(Jo);var gs=Jo.exports;const ms=ot(gs);var er={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,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")}}})})(er);var ps=er.exports;const ys=ot(ps);var tr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(tr);var bs=tr.exports;const vs=ot(bs);var nr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(lt,function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(nr);var ws=nr.exports;const Ss=ot(ws);Ze.extend(fs),Ze.extend(us),Ze.extend(is),Ze.extend(hs),Ze.extend(ms),Ze.extend(ys),Ze.extend(vs),Ze.extend(Ss);const je={format(e,n){return Ze(e).format(n)},parser(e,n){return Ze(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){e=e||0;let o=n??new Date;const t=e*(1e3*60*60*24);return o=new Date(o.getTime()+t),this.date2Str(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(),s=6-a;return t!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/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 s=r.getDay(),u=6-s;return t!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/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 u=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=je.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=je.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}},lr={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"},editable:{type:[Boolean,String],required:!1,default:()=>!0}},or={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}},xs={...Te,...De,...lr,...or};function Ts(e,n,o){return{props:xs,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},`${t.prop??r.attrs.name}`),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=l.computed(()=>A.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),$=l.computed(()=>A.value?"longTermKey":"normalKey"),m=P=>{if(A.value&&t.type==="daterange"){const B=[...d.value];B[0]=P,d.value=B}else d.value=P;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>A.value&&t.type==="daterange"?"date":t.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":A.value,"is-readonly":i.value,"is-disabled":a.value}));let w=me(t,"hintText"),O=l.ref(!1);const H=P=>{let Z=P.target.value;f.value=!0,be(w.value)||(O.value=!0),s("focus",Z,P)},_=P=>{setTimeout(()=>{O.value&&(O.value=!1),f.value=!1},0);let Z=P.target.value;s("blur",Z,P)},q=()=>{s("clear","")},F=P=>{s("calendar-change",P)},L=(P,B,Z)=>{s("panel-change",P,B,Z)},E=P=>{s("visible-change",P)},I=Fe(l.computed(()=>t.longTermText),"longTermText",Pe.Near),C=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",Pe.Near),z=Fe(l.computed(()=>t.longTermValue),"longTermValue",Pe.Near),k=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",Pe.Near);let D=null;const A=l.ref(ue(t.longTerm)),G=P=>{if(A.value=P,s("update:longTerm",P),P){if(D=d.value,t.type==="daterange"){const B=[];Array.isArray(z.value)?(B[0]=d.value?d.value[0]??z.value[0]:null,B[1]=z.value[1]??z.value[0]):(B[0]=d.value?d.value[0]??z.value:null,B[1]=A.value),B[0]||(B[0]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),B[1]||(B[1]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),d.value=B}else Array.isArray(z.value)?d.value=z.value[1]??z.value[0]:d.value=z.value,d.value||(d.value=t.valueFormat?je.format(new Date,t.valueFormat):new Date);s("update:modelValue",d.value)}else{if(t.type==="daterange"){const B=[];B[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(D)?B[1]=D[1]:B[1]=D,B[0]||(B[0]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),B[1]||(B[1]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),d.value=B}else d.value=D;s("update:modelValue",d.value),setTimeout(()=>{W()},100)}},U=ue(t.isLongTerm);if(U){const P=()=>{if(A.value===!0){if(D=d.value,t.type==="daterange"){const B=[d.value[0]];Array.isArray(z.value)?B[1]=z.value[1]??z.value[0]:B[1]=A.value,B[0]||(B[0]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),B[1]||(B[1]=t.valueFormat?je.format(new Date,t.valueFormat):new Date),d.value=B}else d.value=z.value;s("update:modelValue",d.value)}else nt(z.value,d.value)&&(A.value=!0)};P(),l.watch([()=>t.longTerm],([B])=>{A.value!==B&&P()}),l.watch([()=>d.value],([B])=>{let Z=!1;if(t.type==="daterange"&&Array.isArray(B))try{let K=B[1];if(!K)return;typeof K!="string"&&t.valueFormat&&(K=je.format(K,t.valueFormat));let ee=Array.isArray(z.value)?z.value[1]:z.value;(K===ee||Array.isArray(k.value)&&k.value.findIndex(N=>K==N)!==-1)&&(Z=!0)}catch(K){console.error(K)}A.value!==Z&&(A.value=Z)},{immediate:!0})}const J=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),X=l.ref(),ne=l.ref(),ae=/^\d+$/,V=(P,B)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(P,B):ae.test(P)&&P.length===t.flashFillThreshold,x=(P,B)=>{let Z;if(typeof t.flashFillFormat=="function")Z=t.flashFillFormat(P,B);else{const ee=t.flashFillFormat??"YYYYMMDD";Z=je.parser(P,ee)}const K=t.valueFormat??"YYYY-MM-DD";return je.format(Z,K)},M=P=>P?P.endsWith("range"):!1,R=P=>{if(!P.target)return;const B=P.target.value??"";if(t.type&&V(B,t.type)){const Z=x(B,t.type);if(M(t.type)){const K=Array.isArray(d.value)?[...d.value]:[];K[0]=Z,m(K)}else m(Z)}},b=P=>{if(!P.target)return;const B=P.target.value??"";if(t.type&&V(B,t.type)){const Z=x(B,t.type);if(M(t.type)){const K=Array.isArray(d.value)?[...d.value]:[];K[1]=Z,m(K)}else m(Z)}},W=()=>{if(t.flashFill&&X.value&&X.value.$el)if(M(t.type)){const P=X.value.$el.querySelectorAll("input.el-range-input");P[0]&&P[0].addEventListener("input",R),P[1]&&P[1].addEventListener("input",b)}else{const P=X.value.$el.querySelector("input.el-input__inner");P&&P.addEventListener("input",R)}},j=()=>{if(t.flashFill&&X.value&&X.value.$el)if(M(t.type)){const P=X.value.$el.querySelectorAll("input.el-range-input");P[0]&&P[0].removeEventListener("input",R),P[1]&&P[1].removeEventListener("input",b)}else{const P=X.value.$el.querySelector("input.el-input__inner");P&&P.removeEventListener("input",R)}};return l.onMounted(W),l.onBeforeUnmount(j),Ne({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},handleOpen:()=>{ne?.value.handleOpen()},handleClose:()=>{ne?.value.handleClose()}}),()=>{const B={...r.attrs,key:$.value,type:h.value,ref:ne,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:t.valueFormat,format:t.format,editable:ue(t.editable),"onUpdate:modelValue":m,onClear:q,onFocus:H,onBlur:_,onCalendarChange:F,onPanelChange:L,onVisibleChange:E},Z={};r.slots["range-separator"]&&(Z["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(Z.default=r.slots.cell);const K=[],ee=l.h(S.ElDatePicker,B,Z);K.push(ee);const oe={default:()=>K};if(r.slots.default&&(oe.label=r.slots.default),r.slots.fixedTip&&(oe.fixedTip=r.slots.fixedTip),U){if(A.value){const te=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ce=l.h("input",{class:["fox-date-item__long-text"],value:I.value,readonly:!0}),se={class:J.value},de=l.h("div",se,{default:()=>[te,ce]});K.push(de)}if(!i.value&&!a.value){const te={label:C.value||I.value,disabled:i.value||a.value,modelValue:A.value,"onUpdate:modelValue":G},ce=l.h(S.ElCheckbox,te),se=l.h("div",{class:{[`${g}__append`]:!0}},[ce]);oe.append=()=>se}}const y={...Oe(t,lr,or),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":U},hintText:w.value,hintVisible:O.value,prop:`${t.prop}_item`};return l.h(o,y,oe)}}}}const{componentName:Cs,create:$s,scope:Ns}=fe("date-item"),al=$s(Ts(Cs,Ns,Ce)),rr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Es(e,n,o){return{props:{...Te,...De,...rr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0})),m=q=>{d.value=q,s("update:modelValue",q),s("change",q)};let h=me(t,"hintText"),g=l.ref(!1);const T=q=>{let L=q.target.value;f.value=!0,be(h.value)||(g.value=!0),s("focus",L,q)},w=q=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=q.target.value;t.maxLength&&L.length>Number(t.maxLength)&&(L=L.slice(0,Number(t.maxLength))),s("blur",L,q)},O=()=>{s("clear","")},H=q=>{s("visible-change",q)},_=l.ref();return Ne({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const F={...r.attrs,ref:_,class:$.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:O,onFocus:T,onBlur:w,onVisibleChange:H},L={},E=[],I=l.h(S.ElTimePicker,F,L);E.push(I);const C={default:()=>E};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const k={...Oe(t,rr),hintText:h.value,hintVisible:g.value,prop:`${t.prop}_item`};return l.h(o,k,C)}}}}const{componentName:ks,create:Is,scope:Os}=fe("time-item"),il=Is(Es(ks,Os,Ce)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vs(e,n,o){return{props:{...Te,...De,...ar},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0})),m=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=me(t,"hintText"),g=l.ref(!1);const T=_=>{let F=_.target.value;f.value=!0,be(h.value)||(g.value=!0),s("focus",F,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let F=_.target.value;t.maxLength&&F.length>Number(t.maxLength)&&(F=F.slice(0,Number(t.maxLength))),s("blur",F,_)},O=()=>{s("clear","")},H=l.ref();return Ne({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},handleOpen:()=>{H?.value.handleOpen()},handleClose:()=>{H?.value.handleClose()}}),()=>{const q={...r.attrs,ref:H,class:$.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:O,onFocus:T,onBlur:w},F={},L=[],E=l.h(S.ElTimeSelect,q,F);L.push(E);const I={default:()=>L};r.slots.default&&(I.label=r.slots.default),r.slots.fixedTip&&(I.fixedTip=r.slots.fixedTip);const z={...Oe(t,ar),hintText:h.value,hintVisible:g.value,prop:`${t.prop}_item`};return l.h(o,z,I)}}}}const{componentName:Ds,create:Fs,scope:Rs}=fe("time-select-item"),sl=Fs(Vs(Ds,Rs,Ce));function ir(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 sr(e,n,o=20){if(typeof n=="string"&&(n=xe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=ro(`${e}`,`${n}`);return ir(t)}else{let t=Dn(`${e}`,ao(`${n}`),20);return ir(t)}}function As(e,n=-1,o=!1,t=3,r=","){return Ut(e,n,o,t,r)}function ur(e,n,o,t,r=!0){if(e==="")return"";if(e=io(e),n=xe(n),n==1)return e;if(t)e=sr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Dn(e,1,xe(o)));else{let a=-1*n;e=sr(e,a)}return e}function cr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ue(n.minInclude),r=Fn(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=Fn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const fr={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 Ms(e,n,o){return{props:{...Te,...De,...fr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(!1),c=me(t,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>t.rates,()=>t.precision],([k,D,A])=>{if(be(k)){f.value="";return}const G=ur(k,D,A,!1);f.value!==G&&(f.value=G)},{immediate:!0});const d=l.computed(()=>{let k="";return u.value&&(k=f.value),k}),{t:v}=qe.useFoxI18n(n),$=l.computed(()=>{let k=t.placeholder??"";return!u.value&&!be(f.value)?k=As(f.value,t.decimalLength,t.autoPadding,t.digits,t.separator):k=v(["placeholder",k]),k}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let k=T.value;return be(k)&&(k=t.errorTip??""),k}),O=l.ref(""),H=l.ref(!1),_=(k,D)=>{if(k=`${k}`,be(k)){f.value="",c.value="",D.forEach(A=>{s(A,"")}),ue(t.showTip)&&H.value&&(H.value=!1);return}if(k.length>=2){let A=k;if(A.charAt(0)=="-"&&(A=A.substring(1)),A.length>=2&&A.charAt(0)=="0"&&A.charAt(1)!="."){l.triggerRef(f);return}}if(k!="-"){if(!po(k)){l.triggerRef(f);return}if(t.integerLength!=-1&&yo(k)>Number(t.integerLength)){l.triggerRef(f);return}if(t.decimalLength&&t.decimalLength!=-1&&bo(k)>Number(t.decimalLength)){l.triggerRef(f);return}let A=cr(k,t);if(A.maxValid===!1){T.value=A.message,l.triggerRef(f);return}}else if(t.min!=null&&xe(t.min)>=0){l.triggerRef(f);return}O.value=k,ue(t.showTip)&&(H.value=k.length>0),f.value=k,c.value=ur(k,t.rates,t.precision,!0),D.forEach(A=>{s(A,c.value)})},q=k=>{_(k,["update:modelValue","input"])},F=k=>{_(k,["update:modelValue","change"])},L=k=>{if(u.value=!0,ue(t.showTip)){let D=f.value;be(D)&&(D=t.hintText),be(D)||(O.value=D,H.value=!0)}T.value="",s("focus",c.value,k)},E=k=>{if(setTimeout(()=>{u.value=!1,ue(t.showTip)&&H.value===!0&&(H.value=!1)},0),!be(f.value)){let D=cr(f.value,t);if(D.minValid===!1||D.maxValid===!1){T.value=D.message;return}}s("update:modelValue",c.value,k),s("blur",c.value,k)},I=()=>{s("clear","")},C=l.computed(()=>It(t.unit)>0),z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const D={...Xe(r.attrs),ref:z,class:h.value,type:"digit",maxlength:t.maxLength,placeholder:$.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:I,onInput:q,onChange:F,onFocus:L,onBlur:E},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:C.value&&(A.suffix=()=>[t.unit]);const G=[],U=l.h(S.ElInput,D,A);G.push(U);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ne={...Oe(t,fr),errorTip:w.value,hintText:O.value,hintVisible:H.value,hintType:"number",prop:`${t.prop}_item`};return l.h(o,ne,J)}}}}const{componentName:Ls,create:Bs,scope:_s}=fe("money-item"),ul=Bs(Ms(Ls,_s,Ce)),dr={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 qs(e,n,o){return{props:{...Te,...De,...dr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0,[`${v}__append`]:q.value})),m=l.computed(()=>({[`${v}__unit`]:!0})),h=L=>{d.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)};let T=me(t,"hintText"),w=l.ref(!1);const O=L=>{let I=L.target.value;f.value=!0,be(T.value)||(w.value=!0),s("focus",I,L)},H=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let I=L.target.value;t.maxLength&&I.length>Number(t.maxLength)&&(I=I.slice(0,Number(t.maxLength))),s("blur",I,L)},_=()=>{s("clear","")},q=l.computed(()=>It(t.unit)>0),F=l.ref();return Ne({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...Xe(r.attrs),ref:F,class:$.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:_,onChange:g,onInput:h,onFocus:O,onBlur:H},I={},C=[],z=l.h(S.ElInputNumber,E,I);C.push(z);const k={default:()=>C};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const A={...Oe(t,dr),hintText:T.value,hintVisible:w.value,prop:`${t.prop}_item`};if(r.slots.append)k.append=r.slots.append;else if(q.value){const U={class:m.value},J=l.h("div",U,[t.unit]);k.append=()=>J}return l.h(o,A,k)}}}}const{componentName:Ps,create:js,scope:zs}=fe("input-number-item"),cl=js(qs(Ps,zs,Ce));function rt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hs(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Ks=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=Ke(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Ws(){const e=l.getCurrentInstance();return new Ks(e.proxy)}function fl(e,n,o){const t=rt(e,n),r=rt(e,o);if(t!==r)return!1;const a=pt(e,n),i=pt(e,o);return a===i}function hr(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 s=n[i];if(Array.isArray(s)){const u=hr(e,s,o,t);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=rt(e,c)===s;else if(o==="item")u=fl(e,c,s);else{let f=pt(e,c);f==null&&(f=rt(e,c)),u=f===s}if(u){r.push(c),a=Hs(e,c);break}}if(!u)break}}return r}function Ys(e){return{text:e,value:e}}const gr={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,String],default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Us(e,n,o){return{props:{...Te,...De,...gr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(P=>Array.isArray(P)?P.map(Z=>rt(t,Z)).join(" "):rt(t,P)).join(" "):""),$=(j,P,B,Z=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(f.value===j)return;f.value=j;const N=l.toRaw(j);if(Z){const y=W?.value.getCheckedNodes();if(y)if(t.multiple){const Y=[];y.forEach(te=>{const se=(te.pathNodes??[]).map(de=>de.data);Y.push(se)}),s("update:pathNodes",Y)}else{const te=(y[0]?.pathNodes??[]).map(ce=>ce.data);s("update:pathNodes",te)}s("update:modelValue",N),s("change",N)}return}const K=hr(t,j,P,B);if(K===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,Z&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const ee=K[K.length-1];if(I.value.checkStrictly!==!0&&ee&&!Array.isArray(ee)&&Array.isArray(ee.children)&&ee.children.length>0){const N=[];K.forEach(y=>{const Y=`${rt(t,y)}`;N.push(Y)}),N.length>0&&(L.value=N.join(t.separator))}else L.value=null;let oe=!0;if(K.length!==d.value.length)oe=!1;else for(let N=0;N<K.length;N++){const y=K[N],Y=d.value[N];if(Array.isArray(y)){if(!Array.isArray(Y)||y.length!==Y.length)oe=!1;else for(let te=0;te<y.length;te++)if(!fl(t,y[te],Y[te])){oe=!1;break}}else fl(t,y,Y)||(oe=!1);if(!oe)break}if(!oe){d.value=K;let N=[],y=[];K.forEach(te=>{if(Array.isArray(te)){let ce=[],se=[];for(let de of te)ce.push(pt(t,de)),t.valueType==="text"?se.push(rt(t,de)):t.valueType==="item"?se.push(de):se.push(pt(t,de));N.push(ce),y.push(se)}else N.push(pt(t,te)),t.valueType==="text"?y.push(rt(t,te)):t.valueType==="item"?y.push(te):y.push(pt(t,te))}),f.value=N;const Y=l.toRaw(y);Z&&(s("update:pathNodes",K),s("update:modelValue",Y),s("change",Y))}},m=l.ref([]),h=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,j=>ue(j)),g=Ws(),T=async(j,P)=>{if(j){const B=await g.load("cascader",j,P);if(B.length>0)if(typeof B[0]=="string"){let ee=B.map(oe=>Ys(oe));m.value=ee}else m.value=B}};l.watch([()=>t.source,()=>t.params],async([j,P])=>{T(j,P)},{immediate:!(h.value||t.lazy)});let w=!1;const O=()=>{w||(w=!0,T(t.source,t.params))};l.watch([()=>m.value,()=>t.modelValue],([j,P])=>{$(P,t.valueType,j,!1),s("setValue",P)}),t.lazy&&$(t.modelValue,"value",[],!1);let H=null,_=l.ref(!1);typeof t.remoteMethod=="function"&&(H=async j=>{if(j!=null){_.value=!0;try{const P=await t.remoteMethod(j);m.value=P}catch(P){console.error(P)}_.value=!1}});const q=l.ref(!1),F=e,L=l.ref(null),E=l.computed(()=>({[F]:!0,"is-incomplete":L.value&&L.value.length>0})),I=l.computed(()=>{let j={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(j.multiple=!0),t.props&&Object.assign(j,t.props),t.lazy&&(j.lazy=!0,typeof t.lazyLoad=="function"?j.lazyLoad=t.lazyLoad:j.lazyLoad=async(P,B)=>{const Z=await g.load("cascader",t.source,P,!0);if(P?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===P.level){const K=P.pathLabels??[];let ee=[];K.forEach(oe=>{oe&&ee.push(oe)}),ee.length>0&&(L.value=ee.join(t.separator))}else L.value=null;B(Z)}),j}),C=j=>{t.allowCreate?(s("update:modelValue",j),s("change",j),f.value=j):$(j,"value",m.value,!0)};let z=me(t,"hintText"),k=l.ref(!1);const D=j=>{let B=j.target.value;q.value=!0,be(z.value)||(k.value=!0),s("focus",B,j)},A=j=>{setTimeout(()=>{k.value&&(k.value=!1),q.value=!1},0);let B=j.target.value;t.maxLength&&B.length>Number(t.maxLength)&&(B=B.slice(0,Number(t.maxLength))),x.value||s("blur",B,j)},G=()=>{s("clear","")},U=l.ref(!1);let J=null;const X=()=>{ue(t.showTooltip)&&U.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{U.value=!0},150))},ne=()=>{J&&(clearTimeout(J),U.value=!1,J=null)},ae=l.computed(()=>U.value||k.value),V=l.computed(()=>U.value?v.value:z.value),x=l.ref(!1),M=j=>{x.value=j,s("visible-change",j),j||s("selected")},R=j=>{s("remove-tag",j)},b=j=>{s("expand-change",j)},W=l.ref();return Ne({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},getCheckedNodes:()=>W?.value.getCheckedNodes()}),()=>{const P={...r.attrs,ref:W,class:E.value,props:I.value,clearable:t.clearable,placeholder:L.value||c.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:t.separator,onClear:G,onChange:C,onFocus:D,onBlur:A,onVisibleChange:M,onRemoveTag:R,expandChange:b};typeof H=="function"&&(P["remote-method"]=H,P.loading=_.value);const B={};r.slots.option&&(B.default=r.slots.option),r.slots.empty&&(B.empty=r.slots.empty);const Z=[],K=l.h(S.ElCascader,P,B);Z.push(K);const ee={default:()=>Z};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const N={...Oe(t,gr),hintText:V.value,hintVisible:ae.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:ne};return h.value&&!t.lazy&&(N["appear-listen"]=!0,N.onAppear=O),l.h(o,N,ee)}}}}const{componentName:Gs,create:Xs,scope:Zs}=fe("cascader-item"),dl=Xs(Us(Gs,Zs,Ce)),mr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,n,o){return{props:{...Te,...De,...mr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),v=e,$=l.computed(()=>({[v]:!0})),m=F=>{d.value=F,s("update:modelValue",F),s("input",F)},h=F=>{s("change",F)},g=F=>{s("select",F)};let T=me(t,"hintText"),w=l.ref(!1);const O=F=>{let E=F.target.value;f.value=!0,be(T.value)||(w.value=!0),s("focus",E,F)},H=F=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=F.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),s("blur",E,F)},_=()=>{s("clear","")},q=l.ref();return Ne({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const L={...r.attrs,ref:q,class:$.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:_,onChange:h,onInput:m,onFocus:O,onBlur:H,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const I=[],C=l.h(S.ElAutocomplete,L,E);I.push(C);const z={default:()=>I};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const D={...Oe(t,mr),hintText:T.value,hintVisible:w.value,prop:`${t.prop}_item`};return l.h(o,D,z)}}}}const{componentName:Js,create:eu,scope:tu}=fe("autocomplete-item"),hl=eu(Qs(Js,tu,Ce));function nu(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[t]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<a.length;u++){let c=n[u],f=a[u];const d=c.find(v=>v[t]===f);if(!d)break;i.push(d[o])}else{let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[t]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let lu=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ou(){const e=l.getCurrentInstance();return new lu(e.proxy)}const pr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ru(e,n){return{props:{...pr},setup(o,{attrs:t,slots:r}){const a=ou(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=nu(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)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const c={...t};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...t,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:Ih,create:au,scope:Oh}=fe("mapping"),Bt=au(ru());function iu(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function su(e,n){return{props:{...pr},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const s=iu(i.row,i.column.property);return r.default?l.h(Bt,{...o,modelValue:s},{default:r.default}):l.h(Bt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(S.ElTableColumn,{...t},a)}}}}const{componentName:Vh,create:uu,scope:Dh}=fe("table-mapping-column"),gl=uu(su()),cu=Symbol.for("TableStateKey");function yr(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function fu(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(cu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=yr(s.row,s.column.property),c=a?yr(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),$={class:{"el-radio":!0,"is-checked":f}};return l.h("label",$,[v])}};return l.h(S.ElTableColumn,{...t},i)}}}}const{componentName:Fh,create:du,scope:Rh}=fe("table-radio-column"),ml=du(fu()),hu={},gu={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 mu(e,n){return l.openBlock(),l.createElementBlock("svg",gu,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 pu=ze(hu,[["render",mu]]),{componentName:Ah,create:yu,scope:Mh}=fe("table-setting"),bu={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:"不固定"}},vu=yu({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:pu,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...bu},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed===""||b.fixed===!0||b.fixed==="left")),i=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed==="right")),s=l.computed(()=>r.value.filter(b=>!(b.label===""||b.type||b.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=b=>b.length>1,v=(b,W)=>{Array.isArray(b)&&Array.isArray(W)&&b.forEach(B=>{W.some(Z=>Z.prop===B.prop?(B.label=Z.label,!0):!1)});const j=[];r.value=b.map((B,Z)=>(!(B.label===""||B.type)&&B.visible!==!1&&j.push(B.prop),{...B,sortIndex:Z})),s.value.length+a.value.length+i.value.length===j.length?w.value=!0:j.length>0&&(O.value=!0),q.value=j},$=b=>b?b.type?b.type:b.label?b.prop:"":"",m=(b,W)=>{if(b.length!==W.length)return!1;const j=b.map(P=>$(P));for(let P of W){const B=$(P);if(j.indexOf(B)===-1)return!1}return!0},h=b=>{if(!b){const W=e.tableRef.getColumnSetting(),j=W.srcColumnPropertyList;t=j.map((P,B)=>({...P,sortIndex:B})),b=W.columnPropertyList,b&&b.length>0&&m(j,b)||(b=j)}v(b,t)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),O=l.ref(!1),H=b=>{const W=[];r.value.forEach(P=>{b&&!(P.label===""||P.type)&&W.push(P.prop),P.visible=b}),w.value=!1,O.value=!1,s.value.length+a.value.length+i.value.length===W.length?w.value=!0:W.length>0&&(O.value=!0),q.value=W,g()},_=()=>{h(t),g()},q=l.ref([]),F=b=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const P=b.indexOf(j.prop)!==-1;j.visible=P}),w.value=!1,O.value=!1;const W=s.value.length+a.value.length+i.value.length;b.length===W?w.value=!0:b.length>0&&(O.value=!0),g()},L=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},I=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,I(b)):null:null,C=b=>{const W=b.currentTarget;W&&W.dataset&&(E.roleType=W.dataset.roleType,E.index=W.dataset.index)},z=b=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},k=b=>{const W=b.currentTarget;b.relatedTarget;const j=I(W);if(!j)return;const P=j.dataset&&j.dataset.roleType;E.roleType===P&&(b.preventDefault(),E.currentRow&&E.currentRow!==j&&E.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),E.currentRow=j)},D=b=>{b.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},A=b=>{const W=b.currentTarget,j=I(W);if(!j)return;const P=j.dataset&&j.dataset.roleType;if(E.roleType!==P)return;b.preventDefault();const B=Number(E.index),Z=Number(j.dataset.index);if(B!==Z){if(B<Z){const K=r.value[B];r.value.splice(B,1),r.value.splice(Z,0,K)}else{const K=r.value[B];r.value.splice(B,1),r.value.splice(Z+1,0,K)}v(r.value,t),g()}},G=b=>{const W=r.value[b];W.fixed="left",g()},U=b=>{const W=r.value[b];W.fixed="right",g()},J=b=>{const W=r.value[b];W.fixed=void 0,g()},X=new Map;let ne=null;function ae(b){const W=document.createRange();return W.setStart(b,0),W.setEnd(b,b.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:w,isIndeterminate:O,handleCheckAllChange:H,handleReset:_,checkedValue:q,handleCheckChange:F,onShow:L,onDragStart:C,onDragEnd:z,onDragOver:k,onDragLeave:D,onDrop:A,toLeftFixed:G,toRightFixed:U,toUnFixed:J,checkboxLabelStyle:T,onMouseOverForOverflowText:(b,W,j)=>{const P=b.currentTarget;if(P){const B=Math.floor(P.offsetWidth);if(Math.floor(ae(P))>B){let K=X.get(W);if(K){if(K===ne)return;Me.hide(K)}K=Me.show(P,j,{type:"text",placement:"top",closeOnClick:!1}),X.set(W,K),ne=K}}},onMouseLeaveForOverflowText:(b,W)=>{const j=X.get(W);j&&(Me.hide(j),j===ne&&(ne=null))},onMouseOverForTip:(b,W)=>{const j=b.currentTarget;j&&(ne&&Me.hide(ne),ne=Me.show(j,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{ne&&(Me.hide(ne),ne=null)}}}}),wu={class:"fox-table-setting"},Su={class:"fox-table-setting__header"},xu={class:"fox-table-setting__body"},Tu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Cu={key:0,class:"fox-table-setting__body-title"},$u=["data-index","draggable"],Nu=["onMouseover","onMouseleave"],Eu={class:"tools-item"},ku={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Iu={key:0,class:"fox-table-setting__body-title"},Ou=["data-index","draggable"],Vu=["onMouseover","onMouseleave"],Du={class:"tools-item"},Fu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ru={key:0,class:"fox-table-setting__body-title"},Au=["data-index","draggable"],Mu=["onMouseover","onMouseleave"],Lu={class:"tools-item"};function Bu(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),$=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",wu,[l.createElementVNode("div",Su,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",xu,[l.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Cu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Nu)]),_:2},1032,["label"]),l.createElementVNode("div",Eu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,$u))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",ku,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Iu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[15]||(n[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[16]||(n[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[17]||(n[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[18]||(n[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Vu)]),_:2},1032,["label"]),l.createElementVNode("div",Du,[l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:n[10]||(n[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:n[12]||(n[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[13]||(n[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ou))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Fu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Ru,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[24]||(n[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[25]||(n[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[26]||(n[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[27]||(n[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Mu)]),_:2},1032,["label"]),l.createElementVNode("div",Lu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:n[19]||(n[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[20]||(n[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:n[21]||(n[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Au))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const vn=ze(vu,[["render",Bu]]);let _u=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,s){if(Array.isArray(o)){let c=(t-1)*r,f=c+r;f>o.length&&(f=o.length);const d=o.slice(c,f);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[t,r,a,i,s]);const u=Ke(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(tt(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,t,r,a,i,s]))}};function qu(){const e=l.getCurrentInstance();return new _u(e.proxy)}class Pu{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=Ke(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=Ke(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=Ke(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function br(){const e=l.getCurrentInstance();return new Pu(e.proxy)}const ju=Symbol.for("TableStateKey"),vr={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"}},wr={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},pl={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:()=>"不固定"}},zu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Hu(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function yl(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=Hu(t,r);if(a!==i)return!1}return!0})}function Ku(e,n,o){return{inheritAttrs:!1,props:{...Te,...De,...vr,...wr,...pl,...zu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a}=qe.useFoxI18n(n),{emitEvent:i,broadcast:s}=$e({componentName:e,validateHandler:{getValue(...Q){return F.value}}},t.prop??r.attrs.name),u=e,c=l.computed(()=>({[u]:!0})),f=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${t.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${t.paginationAlign}`]:!0})),$=l.shallowRef({}),m=l.computed(()=>({...$.value,...t.params??{},...t.baseParams??{}})),h=l.ref(t.infiniteLoad===!0?0:t.pageIndex),g=l.ref(t.pageSize),T=ue(t.infiniteLoad);T||(l.watch(()=>t.pageIndex,Q=>{h.value=Q}),l.watch(()=>t.pageSize,Q=>{g.value=Q}),l.watch([h,g],([Q,re],[le,ie])=>{re!==ie&&(h.value=1,Q=1),C(t.data,Q,re,m.value)}));const w=()=>Array.isArray(t.data)?!0:ue(t.autoLoad);w()&&l.watch([()=>t.data,m],async([Q,re],[le,ie])=>{w()&&(Q!==le&&(E=!0),!(!Array.isArray(Q)&&nt(Q,le)&&nt(re,ie))&&(T?(h.value=0,_.value=!0,F.value=[],k()):h.value===1?C(Q,h.value,g.value,re):h.value=1))},{deep:!0});const O=Q=>{h.value=Q,i("page-index-change",Q)},H=Q=>{g.value=Q,i("page-size-change",Q)},_=l.ref(!0),q=l.ref(0),F=l.ref(),L=qu();let E=!0;const I=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,Q=>ue(Q)),C=async(Q,re,le,ie,Be)=>{E=!1;try{if(Be===!0){if(!_.value)return!1;const ye=await L.load("table",Q,re,le,ie,E,a.value);return q.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,F.value,ye.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=q.value)||ye.page.length<le?(_.value=!1,!1):!0}else{const ye=await L.load("table",Q,re,le,ie,E,a.value);return q.value=ye.totalSize,F.value=ye.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),q.value=0,F.value=[]}return!1};let z=!1;const k=async()=>{if(!z){if(z=!0,!_.value){z=!1;return}h.value+=1,await C(t.data,h.value,g.value,m.value,!0),z=!1}},D=(Q={},re=!1)=>new Promise(async le=>{$.value={...l.toRaw(Q??{})},re||(h.value=t.pageIndex??1),T===!0?(h.value=0,F.value=[],_.value=!0,await k()):await C(t.data,h.value,g.value,m.value),le()}),A=()=>{q.value=0,F.value=[],T===!0&&(h.value=0,_.value=!0)};let G=!1;const U=()=>{G||(G=!0,D())},J=l.ref(null);if(T===!0){let Q=null;const re=()=>{J.value&&(Q=new IntersectionObserver(ie=>{let Be=!1;for(let ye of ie)if(ye.intersectionRatio>0){Be=!0;break}Be&&k()}),Q.observe(J.value))},le=()=>{!Q||!J.value||(Q.unobserve(J.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(le)}w()&&!I.value&&D();const X=l.ref(null);l.provide(ju,{currentRow:X});const ne=(Q,re)=>{X.value=Q,i("current-change",Q,re)},ae=(Q,re,le)=>{i("row-click",Q,re,le),ue(t.rowClickSelectable)===!0&&pe?.value.toggleRowSelection(Q)},V=[],x=(Q,re)=>{if(i("expand-change",Q,re),ue(t.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const le=V.length;V.splice(0,le)}else{V.forEach(ie=>{ie!==Q&&pe?.value.toggleRowExpansion(ie,!1)});const le=V.length;V.splice(0,le,Q)}},M=r.attrs.id??t.prop??r.attrs.name,R=br(),b=l.ref([]);let W=[];const j=()=>({srcColumnPropertyList:W.map(re=>({...re})),columnPropertyList:b.value}),P=Q=>{b.value=[...Q],Z()},B=async()=>{const Q=await R.load(M);Q&&(b.value=Q)},Z=()=>{R.save(M,b.value)},K=()=>{R.remove(M)};B();const ee=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",oe=()=>typeof r.slots.default=="function"?r.slots.default():[],N=(Q,re)=>{for(let le in re){const ie=re[le];typeof ie!="function"&&(Q[le]=ie)}},y=l.computed(()=>{const Q=oe(),re=new Map;if(W=[],Q.forEach(le=>{const ie=le;if(!ie.props)return;const Be=ee(ie.props);re.set(Be,le);const ye={label:"",prop:""};N(ye,ie.props),W.push(ye)}),b.value.length===W.length){const le=[];for(let ie of b.value){const Be=ee(ie),ye=re.get(Be);if(!ye)return Q;if(ie.visible===!1)continue;const it=ye;it.props.fixed=ie.fixed,le.push(it)}return le}return Q}),Y=l.shallowRef(new Map),te=({row:Q,column:re,rowIndex:le,columnIndex:ie})=>{const Be=`${le}_${re.property}`,ye=`${le}_${ie}`;let it=Y.value.get(Be);return it||(it=Y.value.get(ye)),typeof it=="string"?it:""},ce=Q=>Q?re=>{const le=[];let ie=te(re);return ie&&le.push(ie),ie=typeof Q=="function"?Q(re):Q,ie&&le.push(ie),le.length===0?"":le.join(" ")}:te,se=(Q=!1)=>{Y.value.forEach((re,le)=>{de(le,re,Q)})},de=(Q,re,le=!1)=>{const ie=`${Q}_item`;le?(s.clearPersistantMessage(),Array.isArray(re)?s.emitToChildren({name:Q},"setCellClassNames",[]):s.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(re)?s.emitToChildren({name:Q,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",re):s.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",re)},Se=(Q,re,le)=>{const ie=`${Q}_${re}`;le?(Y.value.set(ie,le),de(ie,le)):(Y.value.delete(ie),de(ie,"",!0)),l.triggerRef(Y)},Qe=Q=>{se(!0),Y.value.clear(),Q.forEach(re=>{const le=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?Y.value.set(le,re.children):typeof re.cellClassName=="string"&&Y.value.set(le,re.cellClassName)}),se(),l.triggerRef(Y)},Je=()=>{se(),Y.value.clear(),l.triggerRef(Y)},et=l.shallowRef(new Map),Ee=({rowIndex:Q})=>{const re=`${Q}`;return et.value.get(re)??""},at=Q=>Q?re=>{const le=[];let ie=Ee(re);return ie&&le.push(ie),ie=typeof Q=="function"?Q(re):Q,ie&&le.push(ie),le.length===0?"":le.join(" ")}:Ee,We=(Q,re)=>{const le=`${Q}`;re?et.value.set(le,re):et.value.delete(le),l.triggerRef(et)},jt=()=>{et.value.clear(),l.triggerRef(et)},pe=l.ref();return Ne({clearSelection:()=>pe?.value.clearSelection(),getSelectionRows:()=>pe?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{pe?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!F.value)return;const le=yl(F.value,Q);le.length!==0&&le.forEach(ie=>{pe?.value.toggleRowSelection(ie,re)})},toggleAllSelection:()=>{pe?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{pe?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!F.value)return;const le=yl(F.value,Q);le.length!==0&&le.forEach(ie=>{pe?.value.toggleRowExpansion(ie,re)})},setCurrentRow:Q=>{pe?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!F.value)return;const re=yl(F.value,Q);re.length!==0&&pe?.value.setCurrentRow(re[0])},getCurrentRow:()=>X.value,clearSort:()=>{pe?.value.clearSort()},clearFilter:Q=>{pe?.value.clearFilter(Q)},doLayout:()=>{pe?.value.doLayout()},sort:(Q,re)=>{pe?.value.sort(Q,re)},scrollTo:(Q,re)=>{pe?.value.scrollTo(Q,re)},setScrollTop:Q=>{pe?.value.setScrollTop(Q)},setScrollLeft:Q=>{pe?.value.setScrollLeft(Q)},loadData:D,clearData:A,getData(){return F.value},getTotalSize(){return q.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:j,setColumnSetting:P,removeColumnSetting:K,setCellClassName:Se,setCellClassNames:Qe,clearCellClassName:Je,setRowClassName:We,clearRowClassName:jt}),()=>{const re={...Xe(r.attrs),onCurrentChange:ne,onRowClick:ae,onExpandChange:x,data:F.value,ref:pe,class:c.value,"cell-class-name":ce(t.cellClassName),"row-class-name":at(t.rowClassName)},le={};if(r.slots.default&&(le.default=()=>y.value),r.slots.append&&(le.append=r.slots.append),r.slots.empty&&(le.empty=r.slots.empty),T===!0){const Ye=[];if(_.value){const Ht=l.h(ke.Loading,{class:`${u}__infinite-icon`});Ye.push(Ht);const Ql=l.h("span",{class:`${u}__infinite-text`},[t.loadText]);Ye.push(Ql)}else{const Ht=l.h("span",{class:`${u}__infinite-text`},[t.loadMoreText]);Ye.push(Ht)}const bt={ref:J,class:`${u}__infinite`},Zl=l.h("div",bt,Ye);le.append=()=>Zl}const ie=l.h(S.ElTable,re,le),Be=[];if(Be.push(ie),!T){let Ye=null;if(typeof r.slots.pagination=="function")Ye=r.slots.pagination();else if(t.showPagination){const bt={class:v.value,total:q.value,pageSize:g.value,"onUpdate:pageSize":H,pageSizes:t.pageSizes,currentPage:h.value,"onUpdate:currentPage":O,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,samll:t.paginationSmall,background:t.paginationBackground};Ye=l.h(S.ElPagination,bt)}if(t.showSetting){const bt=[];Ye&&bt.push(Ye);const Zl=l.h(S.ElIcon,{class:f.value},{default:()=>l.h(ke.Setting)}),Ht=wo(t,pl),Ql=l.h(vn,{...Ht,tableRef:{getColumnSetting:j,setColumnSetting:P,removeColumnSetting:K}},{default:()=>Zl});bt.push(Ql);const xh=l.h("div",{class:d.value},bt);Be.push(xh)}else Ye&&Be.push(Ye)}const ye={default:()=>Be},zt={...Oe(t,vr,wr,pl),prop:`${t.prop}_item`};return zt.contentClass=`${u}__wrap`,zt.errorMarkClass="is-table-error",I.value&&w()&&(zt["appear-listen"]=!0,zt.onAppear=U),l.h(o,zt,ye)}}}}const{componentName:Wu,create:Yu,scope:Uu}=fe("table-item"),bl=Yu(Ku(Wu,Uu,Ce));function Tt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function _t(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xu=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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Zu(){const e=l.getCurrentInstance();return new Xu(e.proxy)}function Sr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Tt(e,n),r=Tt(e,o);if(t!==r)return!1;const a=_t(e,n),i=_t(e,o);return a===i}function Qu(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=Tt(e,a)===n;else if(o==="item")i=Sr(e,a,n);else{let s=_t(e,a);s==null&&(s=Tt(e,a)),i=s===n}if(i){r=a;break}}return r}function Ju(e){return{text:e,value:e}}function ec(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const xr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function tc(e,n,o){return{inheritAttrs:!0,props:{...Te,...De,...xr},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(F,L,E,I=!0)=>{const C=Qu(t,F,L,E);if(C===null){if(c.value===null)return;c.value=null,u.value=null,I&&(s("update:modelValue",null),s("change",null));return}if(!Sr(t,C,c.value)){u.value=F;const k=l.toRaw(C);c.value=k;let D=null;t.valueType==="text"?D=Tt(t,k):t.valueType==="item"?D=k:D=_t(t,k),I&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),v=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,F=>ue(F)),$=Zu(),m=async(F,L)=>{if(F){const E=await $.load("radio",F,L);if(E.length>0)if(typeof E[0]=="string"){let z=E.map(k=>Ju(k));d.value=z}else d.value=E}};l.watch([()=>t.source,()=>t.params],async([F,L])=>{m(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([F,L])=>{f(L,t.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${t.direction}`]:!0})),O=F=>{f(F,"value",d.value,!0)};let H=me(t,"hintText"),_=me(t,"hintVisible");const q=(F,L)=>{const E=[];return F.forEach((I,C)=>{const z=_t(t,I),k=Tt(t,I);let D=Gu(t,I);a.value===!0&&(D=a.value),i.value===!0&&(D=i.value);const A=ec(t,I,C)??{},G=`${z}_${C}`,U={...A,key:G,label:z,size:t.size,border:ue(t.border)};D&&(U.disabled=D),t.itemType==="button"?E.push(l.h(S.ElRadioButton,U,{default:()=>[k]})):typeof L=="function"?E.push(l.h(S.ElRadio,U,{default:()=>L(I)})):E.push(l.h(S.ElRadio,U,{default:()=>[k]}))}),E};return()=>{const L={...Xe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,onChange:O},E=[],I={};r.slots.options?I.default=r.slots.options:I.default=()=>q(d.value,r.slots.text);const C=l.h(S.ElRadioGroup,L,I);E.push(C);const z={default:()=>E};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const D={...Oe(t,xr),hintText:H.value,hintVisible:_.value,prop:`${t.prop??r.attrs.name}_item`};return v.value&&(D["appear-listen"]=!0,D.onAppear=g),l.h(o,D,z)}}}}const{componentName:nc,create:lc,scope:oc}=fe("radio-item"),vl=lc(tc(nc,oc,Ce));function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $t(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function rc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let 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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ic(){const e=l.getCurrentInstance();return new ac(e.proxy)}function Tr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Ct(e,n),r=Ct(e,o);if(t!==r)return!1;const a=$t(e,n),i=$t(e,o);return a===i}function sc(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 s=!1;if(o==="text")s=Ct(e,i)===a;else if(o==="item")s=Tr(e,i,a);else{let u=$t(e,i);u==null&&(u=Ct(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function uc(e){return{text:e,value:e}}function cc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Cr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function fc(e,n,o){return{inheritAttrs:!0,props:{...Te,...De,...Cr},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(F,L,E,I=!0)=>{const C=sc(t,F,L,E);if(C===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],I&&(s("update:modelValue",[]),s("change",[]));return}let z=!0;if(C.length!==c.value.length)z=!1;else for(let k=0;k<C.length;k++){const D=C[k],A=c.value[k];if(!Tr(t,D,A)){z=!1;break}}if(!z){c.value=C;let k=[],D=[];C.forEach(G=>{k.push($t(t,G)),t.valueType==="text"?D.push(Ct(t,G)):t.valueType==="item"?D.push(G):D.push($t(t,G))}),u.value=k;const A=l.toRaw(D);I&&(s("update:modelValue",A),s("change",A))}},d=l.ref([]),v=Fe(l.computed(()=>t.appearLoad),"appearLoad",Pe.Near,F=>ue(F)),$=ic(),m=async(F,L)=>{if(F){const E=await $.load("checkbox",F,L);if(E.length>0)if(typeof E[0]=="string"){let z=E.map(k=>uc(k));d.value=z}else d.value=E}};l.watch([()=>t.source,()=>t.params],async([F,L])=>{m(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([F,L])=>{f(L,t.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${t.direction}`]:!0})),O=F=>{f(F,"value",d.value,!0)};let H=me(t,"hintText"),_=me(t,"hintVisible");const q=(F,L)=>{const E=[];return F.forEach((I,C)=>{const z=$t(t,I),k=Ct(t,I);let D=rc(t,I);a.value===!0&&(D=a.value),i.value===!0&&(D=i.value);const A=cc(t,I,C)??{},G=`${z}_${C}`,U={...A,key:G,class:t.itemClass,label:z,size:t.size,border:ue(t.border)};D&&(U.disabled=D),t.itemType==="button"?E.push(l.h(S.ElCheckboxButton,U,{default:()=>[k]})):typeof L=="function"?E.push(l.h(S.ElCheckbox,U,{default:()=>L(I)})):E.push(l.h(S.ElCheckbox,U,{default:()=>[k]}))}),E};return()=>{const L={...Xe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,max:xe(t.max),min:xe(t.min),onChange:O},E=[],I={};r.slots.options?I.default=r.slots.options:I.default=()=>q(d.value,r.slots.text);const C=l.h(S.ElCheckboxGroup,L,I);E.push(C);const z={default:()=>E};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const D={...Oe(t,Cr),hintText:H.value,hintVisible:_.value,prop:`${t.prop??r.attrs.name}_item`};return v.value&&(D["appear-listen"]=!0,D.onAppear=g),l.h(o,D,z)}}}}const{componentName:dc,create:hc,scope:gc}=fe("checkbox-item"),wl=hc(fc(dc,gc,Ce)),$r={modelValue:{type:[Number,String],required:!1}};function mc(e,n,o){return{props:{...Te,...De,...$r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",h=>xe(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=me(t,"hintText"),$=l.ref(!1);const m=l.ref();return Ne({}),()=>{const g={...Xe(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],O=l.h(S.ElRate,g,T);w.push(O);const H={default:()=>w};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const q={...Oe(t,$r),hintText:v.value,hintVisible:$.value,prop:`${t.prop}_item`};return l.h(o,q,H)}}}}const{componentName:pc,create:yc,scope:bc}=fe("rate-item"),Sl=yc(mc(pc,bc,Ce)),Nr={modelValue:{type:[Boolean,String,Number],required:!1}};function vc(e,n,o){return{props:{...Te,...De,...Nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=me(t,"hintText"),$=me(t,"hintVisible");const m=l.ref();return Ne({}),()=>{const g={...Xe(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],O=l.h(S.ElSwitch,g,T);w.push(O);const H={default:()=>w};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const q={...Oe(t,Nr),hintText:v.value,hintVisible:$.value,prop:`${t.prop}_item`};return l.h(o,q,H)}}}}const{componentName:wc,create:Sc,scope:xc}=fe("switch-item"),xl=Sc(vc(wc,xc,Ce)),Er={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Tc(e,n,o){return{props:{...Te,...De,...Er},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Ae(l.computed(()=>t.disabled)),i=Re(l.computed(()=>t.readonly)),s=l.ref(!1),{emitEvent:u}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),c=me(t,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),v=_=>{u("update:modelValue",_),u("change",_)};let $=me(t,"hintText"),m=l.ref(!1);const h=_=>{let F=_.target.value;s.value=!0,be($.value)||(m.value=!0),u("focus",F,_)},g=_=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let F=_.target.value;t.maxLength&&F.length>Number(t.maxLength)&&(F=F.slice(0,Number(t.maxLength))),w.value||u("blur",F,_)},T=()=>{u("clear","")},w=l.ref(!1),O=_=>{w.value=_,u("visible-change",_),_||u("selected")},H=l.ref();return Ne({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const q={...Xe(r.attrs),ref:H,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:O},F={};r.slots.option&&(F.default=r.slots.option);const L=[],E=l.h(S.ElTreeSelect,q,F);L.push(E);const I={default:()=>L};r.slots.default&&(I.label=r.slots.default),r.slots.fixedTip&&(I.fixedTip=r.slots.fixedTip);const z={...Oe(t,Er),hintText:$.value,hintVisible:m.value,prop:`${t.prop}_item`};return l.h(o,z,I)}}}}const{componentName:Cc,create:$c,scope:Nc}=fe("tree-select-item"),Tl=$c(Tc(Cc,Nc,Ce)),Ec={},kc={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 Ic(e,n){return l.openBlock(),l.createElementBlock("svg",kc,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 Oc=ze(Ec,[["render",Ic]]),{componentName:Lh,create:Vc,scope:Bh}=fe("group-setting"),Dc={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:"到底部"}},Fc=Vc({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Oc,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Dc},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=br(),s=V=>V.length>1,u=()=>{const V=[],x=[...a.value];a.value=x.map((R,b)=>(R.visible!==!1&&V.push(R.prop),{...R,sortIndex:b})),a.value.length===V.length?h.value=!0:V.length>0&&(g.value=!0),O.value=V},c=V=>{let x=null;if(typeof V=="string")x=document.querySelectorAll(`.fox-group[prop="${V}"] > div > .fox-item[prop]`);else if(V&&typeof V=="object"){const R=V.$el??V;typeof R.querySelectorAll=="function"&&(x=R.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const M=[];return x.forEach(R=>{const b=R.querySelector(".label--string");let W="";b&&(W=b.textContent??"");const j=R.getAttribute("prop")??"",B=window.getComputedStyle(R,null).getPropertyValue("display");M.push({label:W,prop:j,sortIndex:0,visible:B!=="none"})}),M},f=()=>{if(!r){const V=c(e.groupRef??e.groupProp);if(V.length===0)return!1;r=V}return!0},d=async(V=!1)=>{const x=await i.load(e.groupProp),M=R=>{if(!R||!r)return;const b=r.map(W=>({...W}));Array.isArray(x)&&x.forEach(W=>{b.some(j=>{if(j.prop===W.prop){const P=j.label;return Object.assign(j,W),j.label=P,!0}return!1})}),a.value=b.sort((W,j)=>W.sortIndex-j.sortIndex),u(),V&&$(!1)};r?M(!0):nn(f,e.initDelay,5,50,!1,M)},v=()=>{const V=r??[];a.value=V.map(x=>({...x})),u(),$()},$=(V=!0)=>{V&&i.save(e.groupProp,a.value);const x=a.value.map(M=>({...M}));n("change",x)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=V=>{const x=[];a.value.forEach(R=>{V&&x.push(R.prop),R.visible=V}),h.value=!1,g.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(g.value=!0),O.value=x,$()},w=()=>{v()},O=l.ref([]),H=V=>{a.value.forEach(M=>{const R=V.indexOf(M.prop)!==-1;M.visible=R}),h.value=!1,g.value=!1;const x=a.value.length;V.length===x?h.value=!0:V.length>0&&(g.value=!0),$()},_=()=>{d()};l.onMounted(()=>{d(!0)});const q={currentRow:null,index:null},F=V=>V?V.dataset&&V.dataset.role==="row"?V:V.tagName.toLowerCase()!=="body"?(V=V.parentElement,F(V)):null:null,L=V=>{const x=V.currentTarget;x&&x.dataset&&(q.index=x.dataset.index)},E=V=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},I=V=>{const x=V.currentTarget;V.relatedTarget;const M=F(x);M&&(V.preventDefault(),q.currentRow&&q.currentRow!==M&&q.currentRow.classList.remove("is-dragover"),M.classList.add("is-dragover"),q.currentRow=M)},C=V=>{V.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},z=V=>{const x=V.currentTarget,M=F(x);if(!M)return;V.preventDefault();const R=Number(q.index),b=Number(M.dataset.index);if(R!==b){if(R<b){const W=a.value[R];a.value.splice(R,1),a.value.splice(b,0,W)}else{const W=a.value[R];a.value.splice(R,1),a.value.splice(b+1,0,W)}u(),$()}},k=V=>{const x=a.value[V];a.value.splice(V,1),a.value.splice(0,0,x),u(),$()},D=V=>{const x=a.value[V];a.value.splice(V,1),a.value.push(x),u(),$()};t({refresh:()=>{r=null,d(!1)}});const A=new Map;let G=null;function U(V){const x=document.createRange();return x.setStart(V,0),x.setEnd(V,V.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:O,handleCheckChange:H,onShow:_,onDragStart:L,onDragEnd:E,onDragOver:I,onDragLeave:C,onDrop:z,checkboxLabelStyle:m,toTop:k,toBottom:D,onMouseOverForOverflowText:(V,x,M)=>{const R=V.currentTarget;if(R){const b=Math.floor(R.offsetWidth);if(Math.floor(U(R))>b){let j=A.get(x);if(j){if(j===G)return;Me.hide(j)}j=Me.show(R,M,{type:"text",placement:"top",closeOnClick:!1}),A.set(x,j),G=j}}},onMouseLeaveForOverflowText:(V,x)=>{const M=A.get(x);M&&(Me.hide(M),M===G&&(G=null))},onMouseOverForTip:(V,x)=>{const M=V.currentTarget;M&&(G&&Me.hide(G),G=Me.show(M,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:V=>{G&&(Me.hide(G),G=null)}}}}),Rc={class:"fox-group-setting"},Ac={class:"fox-group-setting__header"},Mc={class:"fox-group-setting__body"},Lc={class:"fox-group-setting__body-list","data-role":"container"},Bc=["data-index","draggable"],_c=["onMouseover","onMouseleave"],qc={class:"tools-item"};function Pc(e,n,o,t,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),d=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",Rc,[l.createElementVNode("div",Ac,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=$=>e.isCheckAll=$),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Mc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=$=>e.checkedValue=$),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Lc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,$=>(l.openBlock(),l.createElementBlock("div",{key:$.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":$.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[6]||(n[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[7]||(n[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[8]||(n[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[9]||(n[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:$.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,$.prop,$.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,$.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString($.label),45,_c)]),_:2},1032,["label"]),l.createElementVNode("div",qc,[l.createVNode(f,{onClick:m=>e.toTop($.sortIndex),onMouseover:n[1]||(n[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:n[2]||(n[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toBottom($.sortIndex),onMouseover:n[3]||(n[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:n[4]||(n[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Bc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cl=ze(Fc,[["render",Pc]]);var jc=["aria-labelledby"],zc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,jc))}}),Hc=["aria-labelledby"],$l=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[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.8M550.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 16s-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.4zM121.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.4zM38.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.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 16zm160-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.4M473.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.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.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.8M985.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.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Hc))}}),Kc=["aria-labelledby"],Wc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[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 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Kc))}}),Yc=["aria-labelledby"],Uc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Yc))}}),Gc=["aria-labelledby"],Xc=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}){let o=e,t=n,r=u=>{t("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 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)]],14,Gc))}});const Zc={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},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},kr=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],Qc=(e,n)=>n[e.visibleKey],Ir=(e,n)=>n[e.disabledKey],Jc=(e,n)=>{const o=n[e.doitKey];return ue(o)},ef=(e,n)=>{const o=n[e.numKey];return o==null?null:xe(n[o])},Or=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function tf(e,n,o,t=!1){return{props:{...Zc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const V={};return V[`${e}`]=!0,V}),u=l.computed(()=>{const V={};return V[`${e}__titles`]=!0,V[`${r.direction}`]=!0,r.align==="left"&&(V.left=!0),r.scroll===!0&&(V.scrollable=!0),r.shape&&(V[`${r.shape}`]=!0),V}),c=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const V=ge(r.gutter);return V<=0?0:V}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,V=>{d.value!==V&&(d.value=V,U(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),$=l.computed(()=>{const V={};return h.value||(V.display="none"),V}),m=l.ref(),h=l.ref(!1),g=()=>{const V=!h.value;T(V)},T=V=>{const x=V;x?(h.value=x,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,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),O=l.ref([]),H=(V,x)=>{O.value[x]=V},_=V=>x=>{H(x,V)},q=(V,x)=>{const M=w.value,R=O.value;if(!M||!R||!R[V])return;const b=R[V];let W=0;r.direction==="vertical"?W=b.offsetTop-(M.offsetHeight-b.offsetHeight)/2:W=b.offsetLeft-(M.offsetWidth-b.offsetWidth)/2,F(M,W,x?0:.3,r.direction)},F=(V,x,M,R)=>{let b=0;const W=R==="horizontal"?V.scrollLeft:V.scrollTop,j=M===0?1:Math.round(M*1e3/16);function P(){R==="horizontal"?V.scrollLeft+=(x-W)/j:V.scrollTop+=(x-W)/j,++b<j&&Rn(P)}P()},L=(V,x)=>{const M=qt(r,V),R={};return R[`${e}__titles-item`]=!0,R.disabled=Ir(r,V),R.active=M===d.value,r.shape&&(R[`${r.shape}`]=!0),r.ellipsis&&(R.ellipsis=!0),x&&(x.class&&(R[`${x.class}`]=!0),x.disabled===!0&&(R.disabled=x.disabled)),R},E=(V,x)=>{const M={};if(f.value>0){const R=Math.abs(f.value/2);r.direction==="vertical"?(M["margin-top"]=`${R}px`,M["margin-bottom"]=`${R}px`):(M["margin-left"]=`${R}px`,M["margin-right"]=`${R}px`)}return x&&x.style&&Object.assign(M,x.style),M},I=(V,x)=>`${qt(r,V)??x}`,C=(V,x)=>{const M=qt(r,V),R={};R[`${e}__popup-item`]=!0,R.disabled=Ir(r,V),R.active=M===d.value,r.shape&&(R[`${r.shape}`]=!0);const b=Or(r,V,x);return b&&b.disabled===!0&&(R.disabled=b.disabled),R},z=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),k=(V,x)=>{const M=qt(r,V);if(d.value==M)return;const R=()=>{d.value=M,r.scroll&&q(x,!1),i("update:modelValue",M),i("change",V,x)};if(typeof r.beforeChange=="function"){const b=r.beforeChange(V,x);uo(b)?b.then(W=>{W!==!1&&R()}).catch(()=>{R()}):b!==!1&&R()}else R()},D=(V,x)=>function(){k(V,x)},A=(V,x)=>{k(V,x),T(!1)},G=(V,x)=>function(){A(V,x)},U=V=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(M=>qt(r,M)===d.value);x!==-1&&q(x,V)};l.watch(()=>r.data,()=>{setTimeout(U,0)}),l.onMounted(()=>{U(!0)});const J=(V,x)=>{if(a.item)return a.item({item:V,index:x});const M=Or(r,V,x),R=[];if(a.text){const P=a.text({item:V,index:x});R.push(P)}else{const P=[];if(M?.doit===!0||Jc(r,V)){const ee={class:[`${e}__titles-item-tip`,"doit"]},oe=l.h("view",ee);P.push(oe)}const B=M?.num??ef(r,V);if(B){let ee="";const oe=xe(B);oe>=100?ee="99+":ee=`${oe}`;const N={class:[`${e}__titles-item-tip`,"num"]},y=l.h("view",N,[ee]);P.push(y)}const Z={class:`${e}__titles-item-text`};P.push(kr(r,V));const K=l.h("view",Z,P);R.push(K)}const b={class:`${e}__titles-item-line`},W=l.h("view",b);R.push(W);const j={ref:_(x),class:L(V,M),style:E(V,M),key:I(V,x),onClick:D(V,x)};return l.h("view",j,R)},X=()=>{const V=a.default?a.default():[];if(V.length===0)for(let M=0;M<z.value.length;M++){const R=z.value[M],b=J(R,M);V.push(b)}const x={ref:w,class:u.value,style:c.value};return l.h("view",x,V)},ne=()=>{let V=null;a.navigation?V=a.navigation():V=l.h(o);const x={class:`${e}__navigation`,onClick:g};return l.h("view",x,[V])},ae=()=>{const V=[];for(let M=0;M<z.value.length;M++){const R=z.value[M];let b=null;a.popupItem?b=a.popupItem({item:R,index:M}):b=kr(r,R);const W={class:C(R,M),key:I(R,M),onClick:G(R,M)},j=l.h("view",W,[b]);V.push(j)}const x={class:v.value,style:$.value};return l.h("view",x,V)};return()=>{const V=[],x=X();if(V.push(x),r.showQuickNavigation){const R=ne();V.push(R);const b=ae();V.push(b)}const M={class:s.value};return l.h("view",M,V)}}}}const{create:nf,componentName:lf,scope:of}=fe("tabs-bar"),Nl=nf(tf(lf,of,zc,!1)),Vr=Symbol("TabsStatesKey"),rf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function af(e,n,o=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!t.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(Vr,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>t.modelValue,()=>t.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const c=l.ref(null),f=l.ref(null),d=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0}));let v=!0;const $=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const g=cn(c.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(c.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:$.value,ref:f},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:c};return l.h("view",T,[g])}}}}const{create:sf,componentName:uf,scope:cf}=fe("tabs-container"),El=sf(af(uf,cf,!1)),ff={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function df(e,n,o){return{props:{...ff},setup(t,{emit:r,slots:a}){const i=l.inject(Vr);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.paneKey)});const s=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}),u=l.computed(()=>t.loaded!=null?ue(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},v=t.emptyIcon??o,$=l.h(v,d),m={class:`${e}__empty-text`},h=t.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},w=l.h("view",T,[$,g]);c.push(w)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:hf,componentName:gf,scope:mf}=fe("tabs-pane"),kl=hf(df(gf,mf,$l)),pf={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:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function yf(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Dr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Il(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Rr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Ar(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ol(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class vf{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=Ke(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(tt(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function wf(){const e=l.getCurrentInstance();return new vf(e.proxy)}function Sf(e,n,o,t){return{props:{...pf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=wf(),c=l.ref([]),f=l.computed(()=>c.value.filter(x=>bf(r,x)!==!1)),d=l.ref(-1),v=()=>{const x=r.modelValue,M=f.value.findIndex(R=>Dr(r,R)===x);d.value!==M&&(d.value=M,r.scroll&&ae(M,!1))};l.watch([()=>r.modelValue,f],()=>{v()});const $=x=>d.value===x,m=x=>{if(x<0&&x>=f.value.length)return!1;const M=f.value[x],b=(Ol(r,M,x)??{}).status??Il(r,M);return $(x)||b},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),g=l.computed(()=>({})),T=(x,M,R,b,W)=>{const j={[`${s}__step`]:!0};return W&&(j[`${W}`]=!0),j[`${w.value}`]=!0,b&&(j["is-doit"]=!0),x===d.value?j["is-active"]=!0:M==="done"?j["is-done"]=!0:M==="error"?j["is-error"]=!0:M==="half"?j["is-half"]=!0:R?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),O=(x,M={})=>{const R={...M};return w.value==="start"&&x===f.value.length-1?R.flex="0 0 auto":r.step?r.direction==="vertical"?R.height=r.step:R.width=r.step:R.flex="1 1 100%",R},H=(x,M)=>{let R={};if(M<f.value.length-1){const b=M+1;m(M)&&m(b)?r.direction==="vertical"?R.height="100%":R.width="100%":R.opacity="0"}return R},_=x=>f.value.length-1===x,q=(x,M)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&M>d.value||d.value===M)return;const R=d.value,b=M;d.value=M,r.scroll&&ae(M,!1);const W=Dr(r,x);i("update:modelValue",W);const j={fromIndex:R,currentIndex:b,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",W,j)},F=l.ref(!0),L=async(x,M)=>{try{const R=await u.load("stesbar",x,M);Array.isArray(R)&&(c.value=R),F.value=!1}catch(R){console.error("[FoxUI] Load StepsBar Data Fail",R),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,M])=>{x&&L(x,M)},{immediate:!0});const E=(x,M,R,b,W)=>{let j=null;if(a.icon)j=a.icon({item:x,index:M,status:b});else if(b==="done"){const B={};r.iconSize&&(B.width=r.iconSize,B.height=r.iconSize);const Z=r.icon??o;j=l.h(Z,B)}else{const B=R??`${M+1}`;j=l.h("span",{},[B])}const P={class:"fox-steps-bar__icon",onClick:()=>{W||q(x,M)}};return l.h("view",P,[j])},I=(x,M,R)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:H(x,M)});return l.h("view",{class:"fox-steps-bar__line"},[b])},C=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const R={};r.iconSize&&(R.width=r.markIconSize,R.height=r.markIconSize);const b=r.markIcon??t;x=l.h(b,R)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},z=(x,M,R,b,W)=>{const j=[];if(!_(M)){const Z=I(x,M);j.push(Z)}const P=E(x,M,R,b,W);j.push(P);const B={class:"fox-steps-bar__head"};return l.h("view",B,j)},k=(x,M,R,b)=>{let W=null;a.main?W=a.main({item:x,index:M,status:R}):W=yf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{b||q(x,M)}};return l.h("view",j,[W])},D=(x,M,R)=>{let b=null;if(a.sub){b=a.sub({item:x,index:M,status:R});const W={class:"fox-steps-bar__sub"};return l.h("view",W,[b])}return null},A=(x,M)=>{const R=Ol(r,x,M)??{},b=R.status??Il(r,x);let W=Fr(r,x);R.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const j=R.label??Ar(r,x),P=[],B=E(x,M,j,b,W);B&&P.push(B);const Z=k(x,M,b,W);if(Z&&P.push(Z),!_(M)){const Y=I(x,M);Y&&P.push(Y)}const K=l.h("view",{class:"fox-steps-bar__head"},P),ee=R.class,oe=R.style??{};let N=Rr(r,x);R.doit===!0&&(N=!0);const y={ref:ne(M),class:T(M,b,W,N,ee),style:O(M,oe)};return l.h("view",y,[K])},G=(x,M)=>{const R=Ol(r,x,M)??{},b=R.status??Il(r,x);let W=Fr(r,x);R.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const j=R.label??Ar(r,x),P=[],B=r.layout;for(let N of B)if(N==="head"){const y=z(x,M,j,b,W);P.push(y)}else if(N==="main"){const y=k(x,M,b,W);P.push(y)}else if(N==="sub"){const y=D(x,M,b);P.push(y)}else if(N==="mark"){const y=C();P.push(y)}const Z=R.class,K=R.style??{};let ee=Rr(r,x);R.doit===!0&&(ee=!0);const oe={ref:ne(M),class:T(M,b,W,ee,Z),style:O(M,K)};return l.h("view",oe,P)},U=l.ref(),J=l.ref([]),X=(x,M)=>{J.value[M]=x},ne=x=>M=>{X(M,x)},ae=(x,M)=>{const R=U.value,b=J.value;if(!R||!b||!b[x])return;const W=b[x];let j=0;r.direction==="vertical"?j=W.offsetTop-(R.offsetHeight-W.offsetHeight)/2:j=W.offsetLeft-(R.offsetWidth-W.offsetWidth)/2,V(R,j,M?0:.3,r.direction)},V=(x,M,R,b)=>{let W=0;const j=b==="horizontal"?x.scrollLeft:x.scrollTop,P=R===0?1:Math.round(R*1e3/16);function B(){b==="horizontal"?x.scrollLeft+=(M-j)/P:x.scrollTop+=(M-j)/P,++W<P&&Rn(B)}B()};return()=>{const x=[];if(r.mode==="simple")for(let R=0;R<f.value.length;R++){const b=f.value[R],W=A(b,R);x.push(W)}else for(let R=0;R<f.value.length;R++){const b=f.value[R],W=G(b,R);x.push(W)}const M={ref:U,class:h.value,style:g.value};return l.h("view",M,x)}}}}const{componentName:xf,create:Tf,scope:Cf}=fe("steps-bar"),Vl=Tf(Sf(xf,Cf,Uc,Xc)),$f=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function Ef(e,n){return{props:{title:{type:[String]},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($f,!0);const r={};l.provide(Nf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const c={...t.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof t.slots.default=="function"){const d=t.slots.default();f.default=()=>d}return l.h(S.ElDialog,c,f)}}}}const{componentName:_h,create:kf,scope:qh}=fe("dialog-item"),Dl=kf(Ef());let Pt=0;const Mr="fox-overflow-hidden",Lr=()=>Ue?document.body:{classList:[]},If=e=>[()=>{if(e())try{!Pt&&Lr().classList.add(Mr),Pt++}catch{}},()=>{if(e()&&Pt)try{Pt--,!Pt&&Lr().classList.remove(Mr)}catch{}}],Of={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:Vf,create:Df}=fe("overlay"),Ff=Df({props:{...Of},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=If(()=>e.lockScroll),r=l.computed(()=>({[Vf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():t()}),{classes:r,style:a,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Rf(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 wn=ze(Ff,[["render",Rf]]),Af={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:{}}},Br=2e3;let _r=Br;const Mf=(e,n)=>({components:n,props:{...Af},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})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Br&&(_r=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++_r,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{t("click-pop",h)},d=h=>{h.stopPropagation(),t("click-close-icon",h),t("update:visible",!1)},v=h=>{t("click-overlay",h),o.closeOnClickOverlay&&t("update:visible",!1)},$=h=>{t("opend",h)},m=h=>{t("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():c()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:d,onClickOverlay:v,onOpened:$,onClosed:m}}}),{componentName:Lf,create:Bf}=fe("popup"),_f=Bf(Mf(Lf,{FoxOverLay:wn,Close:Wc}));function qf(e,n,o,t,r,a){const i=l.resolveComponent("FoxOverLay"),s=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]=(...u)=>e.onClick&&e.onClick(...u))},[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]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Fl=ze(_f,[["render",qf]]),{create:Pf}=fe("toast"),jf=Pf({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))},s=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,$=>{$&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const $=ge(e.iconSize);return l.h(e.icon,{width:$,height:$,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),zf={key:1,class:"fox-toast-title"},Hf=["innerHTML"];function Kf(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",zf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Hf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Rl=ze(jf,[["render",Kf]]),Wf={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"}},Yf=(e,n,o)=>({props:{...Wf},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}=Oo(),{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),f=l.computed(()=>({background:t.inputBackground})),d=E=>{let C=E.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),a("update:modelValue",C,E),a("change",C,E)},v=l.ref({}),$=E=>{let C=E.target.value;u.active=!0,v.value=t.focusStyle,a("focus",C,E)},m=E=>{setTimeout(()=>{u.active=!1},0);let C=E.target.value;t.maxLength&&C.length>Number(t.maxLength)&&(C=C.slice(0,Number(t.maxLength))),v.value={},a("blur",C,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(t.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",t.modelValue)},O=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},H=E=>{a("click-input",E)},_=E=>{a("click-left-icon",t.modelValue,E)},q=l.computed(()=>({textAlign:t.inputAlign})),F=l.ref(null);l.onMounted(()=>{t.autofocus&&F.value.focus()});const L=()=>{const E=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},A=l.h("view",D,[r.leftin()]);E.push(A)}const I={ref:F,class:[`${e}__input-inner`],style:q.value,type:t.inputType,maxlengt:t.maxLength,placeholder:s.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:H,onInput:d,onFocus:$,onBlur:m,onkeyup:O},C=l.h("input",I);E.push(C);const z=[];if(t.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},A=r?.clear?.()??t.clearIcon??o,G=l.h("view",D,[l.h(A)]);z.push(G)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},A=l.h("view",D,[r.rightin()]);z.push(A)}if(z.length>0){const D={class:`${e}__input-inner-right`},A=l.h("view",D,z);E.push(A)}const k={class:[`${e}__search-input`,`${t.shape}`],style:{...f.value,...v.value}};return l.h("view",k,E)};return()=>{const E=[];if(t.label){const z={class:`${e}__search-label`},k=l.h("span",z,[t.label]);E.push(k)}if(r.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},k=l.h("view",z,[r.leftout()]);E.push(k)}const I=L();if(E.push(I),r.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},k=l.h("view",z,[r.rightout()]);E.push(k)}const C={class:`${e}`,style:c.value};return l.h("view",C,E)}}}),{componentName:Uf,create:Gf,scope:Xf}=fe("searchbar"),Al=Gf(Yf(Uf,Xf,ke.CircleClose)),Zf=/scroll|auto|overlay/i,qr=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jf(e,n=qr){let o=e;for(;o&&o!==n&&Qf(o);){const{overflowY:t}=window.getComputedStyle(o);if(Zf.test(t))return o;o=o.parentNode}return n}function Pr(e,n=qr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Jf(e.value,n))}),o}const jr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ed={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 td(e,n,o){return{props:{...ed},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Pr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,$=()=>{let w=0,O=0,H="down";if(c.value==window){const _=jr();u.value&&(w=v(u.value)+u.value.offsetHeight-_-window.innerHeight),O=_}else{const{scrollHeight:_,clientHeight:q,scrollTop:F}=c.value;w=_-q-F,O=F}return f.beforeScrollTop>O?H="up":H="down",f.beforeScrollTop=O,r("scroll-change",O),w<=t.threshold&&H=="down"},m=()=>{Jl(()=>{if(!$()||!t.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{c.value&&c.value.addEventListener("scroll",m,t.useCapture)},g=()=>{c.value&&c.value.removeEventListener("scroll",m,t.useCapture)};l.onMounted(()=>{h(),t.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>t.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},O=l.h("view",w,[a?.default?.()]),H=[];if(f.isInfiniting){let L=a?.loading?.()??null;if(!L){let C=a?.loadingIcon?.()??null;if(!C){const D={class:["fox-infinite__bottom-box__img"]};C=l.h(o,D)}const z={class:"fox-infinite__bottom-box__text"},k=l.h("view",z,[s.loadText.value]);L=[C,k]}const E={class:"fox-infinite__bottom-box"},I=l.h("view",E,L);H.push(I)}else if(!t.hasMore){let L=a?.finished?.()??null;if(!L){const E={class:"fox-infinite__bottom-tips"};L=l.h("view",E,[s.loadMoreText.value]),H.push(L)}}const _={class:"fox-infinite__bottom"},q=l.h("view",_,H),F={class:d.value,ref:u};return l.h("view",F,[O,q])}}}}const{componentName:nd,create:ld,scope:od}=fe("infinite-loading"),Ml=ld(td(nd,od,$l)),zr=10;function Hr(e,n){return e>n&&e>zr?"horizontal":n>e&&n>zr?"vertical":""}function Ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bl(){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 u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Hr(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 u=i;e.startX=u.clientX,e.startY=u.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),s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(""),d=()=>f.value==="vertical",v=()=>f.value==="horizontal",$=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const O=g.touches[0];i.value=O.clientX-e.value,s.value=O.clientY-n.value,r.value=O.clientX,a.value=O.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-n.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),t.value=Date.now()-o.value,f.value||(f.value=Hr(u.value,c.value))},start:g=>{if($(),g.touches){const O=g.touches[0];e.value=O.clientX,n.value=O.clientY}else{const w=g;e.value=w.clientX,n.value=w.clientY}o.value=Date.now()},reset:$,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:v}}const ad={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}},id=(e,n,o)=>({props:{...ad},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullingText","loosingText","loadingText"]),u=Bl(),c=l.ref(),f=Pr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),$=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${t.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const F={};return t.headHeight!=50&&(F.height=Ve(t.headHeight)),F}),g=F=>{const L=+(t.pullDistance||t.headHeight);let E=F;return F>L&&(F<L*2?E=(F+L)/2:E=L+F/4),Math.round(E)},T=(F,L)=>{const E=+(t.pullDistance||t.headHeight);d.distance=F,L?d.status="loading":F===0?d.status="normal":F<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:F})},w=()=>d.status!=="loading"&&d.status!=="complete",O=()=>f.value==window?jr()==0:f.value&&f.value.scrollTop==0,H=F=>{w()&&(O()?(u.start(F),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},_=F=>{w()&&d.moving&&(u.move(F),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(F.cancelable&&F.preventDefault(),T(g(u.state.deltaY))))},q=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>t.modelValue,F=>{F?T(+t.headHeight,!0):T(0)}),()=>{const F=[];let L=null;if(d.status==="loading"){if(L=a?.loading?.()??null,!L){const G={class:["fox-pull-refresh-container-topbox-icon"]};L=l.h(o,G)}}else d.status==="pulling"?L=a?.pulling?.()??null:d.status==="loosing"&&(L=a?.loosing?.()??null);L&&F.push(L);const E={class:["fox-pull-refresh-container-topbox-text"]},I=l.h("dive",E,[$.value]);F.push(I);const C={class:["fox-pull-refresh-container-topbox"],style:h.value},z=l.h("div",C,F),k={class:"fox-pull-refresh-container",style:m.value},D=l.h("div",k,[z,a?.default?.()]),A={ref:c,class:v.value};return Ll()?Object.assign(A,{onTouchstart:H,onTouchmove:_,onTouchend:q}):Object.assign(A,{onMousedown:H,onMousemove:_,onMouseup:q}),l.h("div",A,[D])}}}),{componentName:sd,create:ud,scope:cd}=fe("pull-refresh"),_l=ud(id(sd,cd,$l)),fd={visible:{type:Boolean},reference:{type:[Object,String]},trigger:{type:String,default:"click"},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},title:{type:String},content:{type:String},width:{type:String},offset:{type:Number,default:()=>6},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]},popperClass:{type:[String]},popperStyle:{type:[Object]},leaveHide:{type:[Boolean]},persistenet:{type:[Boolean],default:()=>!1},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function dd(e,n,o=!1){return{props:fd,emits:["update:visible","open","close"],setup(t,{emit:r,slots:a,expose:i}){const s=e,u=l.ref({top:null,right:null,bottom:null,left:null}),c=l.ref(0),f=l.ref(0),d=l.ref(0),v=l.ref(0),$=l.ref(t.placement),m=l.ref(!1),h=l.ref(!1),g=l.ref(null),T=l.ref(null),w=()=>T.value?T.value?.$el??T.value:typeof t.reference=="string"?document.querySelector(t.reference):t.reference,O=y=>{if(y instanceof Element){const Y=y.getBoundingClientRect();return{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom}}return y},H=(y,Y,te,ce,se,de,Se,Qe=!0)=>{const Je=document.documentElement.clientWidth||document.body.clientWidth,et=document.documentElement.clientHeight||document.body.clientHeight,Ee=y.split("-");let at=[];Qe?Ee[0]==="top"?at=["top","bottom","right","left"]:Ee[0]==="bottom"?at=["bottom","top","right","left"]:Ee[0]==="left"?at=["left","top","bottom","right"]:Ee[0]==="right"&&(at=["right","top","bottom","left"]):at=[y[0]];const We={top:null,right:null,bottom:null,left:null},jt=[];for(let pe=0;pe<at.length;pe++){const Q=at[pe];if(jt[0]=Q,Ee[1]&&(jt[1]=Ee[1]),Q==="top"){const re=te-Se-t.arrowSize/2-t.offset;if(re>=0){We.top=re;let le=0;Ee[1]==="start"?le=Y:Ee[1]==="end"?le=Y+ce-de:le=Y+ce/2-de/2;const ie=Je-le-de;ie<0?(le+=ie,q.value=-ie):q.value=0,We.left=le<0?0:le;break}}else if(Q==="bottom"){const re=te+se+t.arrowSize/2+t.offset;if(re+Se<=et){We.top=re;let le=0;Ee[1]==="start"?le=Y:Ee[1]==="end"?le=Y+ce-de:le=Y+ce/2-de/2;const ie=Je-le-de;ie<0?(le+=ie,q.value=-ie):q.value=0,We.left=le<0?0:le;break}}else if(Q==="left"){const re=Y-de-t.arrowSize/2-t.offset;if(re>=0){We.left=re;let le=0;Ee[1]==="start"?le=te:Ee[1]==="end"?le=te+se-Se:le=te+se/2-Se/2,We.top=le<0?0:le;break}}else if(Q==="right"){const re=Y+ce+t.arrowSize/2+t.offset;if(re+de<=Je){We.left=re;let le=0;Ee[1]==="start"?le=te:Ee[1]==="end"?le=te+se-Se:le=te+se/2-Se/2,We.top=le<0?0:le;break}}}return{bestPlacement:jt.join("-"),bestInsetRect:We}},_=()=>{const y=t.autoFit;if(!Ue||L.value===!1)return;const Y=w();if(!Y)return;const te=O(Y);if(!te)return;c.value=te.left??0,f.value=te.top??0,d.value=(te.right??0)-(te.left??0),v.value=(te.bottom??0)-(te.top??0);const ce=g.value.offsetWidth,se=g.value.offsetHeight,{bestPlacement:de,bestInsetRect:Se}=H(t.placement,c.value,f.value,d.value,v.value,ce,se,y);$.value=de,u.value=Se},q=l.ref(0),F=mt(()=>{_()},10),L=l.ref(t.visible),E=y=>{L.value!==y&&(L.value=y,r("update:visible",y),r(y?"open":"close"),y?(m.value=y,setTimeout(()=>{_(),h.value=!0},0)):h.value=!1)};l.watch([()=>t.visible],([y])=>{E(y)});const I=l.computed(()=>L.value&&C.value),C=l.ref(!0),z=mt(y=>{const Y=y[0];Y&&(C.value=Y.isIntersecting)},10),k=new IntersectionObserver(z),D=(y,Y)=>{y&&(setTimeout(()=>{_()},0),t.autoFit&&(Y&&Y instanceof Element&&(At.unwatch(Y,F),k.unobserve(Y)),y&&y instanceof Element&&(At.watch(y,F),k.observe(y))))};l.watch(()=>t.reference,(y,Y)=>{D(y?.$el??y,Y?.$el??Y)},{immediate:!0}),l.watch(()=>T.value,(y,Y)=>{D(y?.$el??y,Y?.$el??Y)}),l.onBeforeUnmount(()=>{const y=w();y instanceof Element&&(At.unwatch(y,F),k.unobserve(y)),k?.disconnect()});let A=null,G=null;const U=()=>{A&&(clearTimeout(A),A=null)},J=()=>{G&&(clearTimeout(G),G=null)},X=()=>{J(),t.openDelay>0?(U(),A=setTimeout(()=>{A=null,E(!0)},t.openDelay)):E(!0)},ne=()=>{U(),t.closeDelay>0?(J(),G=setTimeout(()=>{G=null,E(!1)},t.closeDelay)):E(!1)},ae=()=>{L.value?ne():X()};i({open:X,close:ne,doLayout:_});const V=(y,...Y)=>{y&&(Array.isArray(y)?y.forEach(te=>{te(...Y)}):y(...Y))},x=y=>{const Y=y.props||{},te={...Y};switch(t.trigger){case"click":{const ce=Y.onClick;te.onClick=se=>{V(ce,se),ae()};break}case"hover":{const ce=Y.onMouseenter,se=Y.onMouseleave;te.onMouseenter=de=>{V(ce,de),X()},te.onMouseleave=de=>{V(se,de),ne()};break}case"focus":{const ce=Y.onFocus;te.onFocus=se=>{V(ce,se),X()};break}case"contextmenu":{const ce=Y.onContextmenu;te.onContextmenu=se=>{se.preventDefault(),V(ce,se),ae()};break}}return te},M=()=>{const y=a.reference?.();if(!y?.length)return null;const Y=y[0];return l.cloneVNode(Y,{...x(Y),ref:te=>{T.value=te?.ref??te}})},R=l.computed(()=>{const y={[s]:!0};return $.value.startsWith("top")?y["is-top"]=!0:$.value.startsWith("right")?y["is-right"]=!0:$.value.startsWith("bottom")?y["is-bottom"]=!0:$.value.startsWith("left")&&(y["is-left"]=!0),y[`is-${t.effect}`]=!0,!h.value&&I.value&&(y["is-opacity"]=!0),h.value&&I.value&&(y["is-show"]=!0),I.value||(y["is-hide"]=!0),t.popperClass&&typeof t.popperClass=="string"&&(y[`${t.popperClass}`]=!0),y}),b=l.computed(()=>{const y={};return u.value.top!==null&&(y.top=`${u.value.top}px`),u.value.right!==null&&(y.right=`${u.value.right}px`),u.value.bottom!==null&&(y.bottom=`${u.value.bottom}px`),u.value.left!==null&&(y.left=`${u.value.left}px`),t.width&&(y.width=t.width),t.zIndex&&(y["z-index"]=`${t.zIndex}`),t.popperStyle&&typeof t.popperStyle=="object"&&Object.assign(y,t.popperStyle),y}),W=()=>{E(!1)},j=()=>{if(T.value&&t.trigger==="hover"||!t.showOverlay)return null;const y={class:`${s}__overlay`,onClick:W};return l.h("div",y)},P=()=>{let y=null;return a.title?y=l.h("div",{class:`${s}__title`},{default:a.title}):t.title&&(y=l.h("div",{class:`${s}__title`},[t.title])),y},B=l.computed(()=>({[`${s}__arrow`]:!0})),Z=l.computed(()=>{const y={};return t.showArrow?(y.width=`${t.arrowSize}px`,y.height=`${t.arrowSize}px`,$.value==="top"?(y.left="50%",y.bottom="0",y.transform="translate(-50%, 50%)"):$.value==="top-start"?(y.left=`${t.arrowOffset+q.value}px`,y.bottom="0",y.transform="translate(-50%, 50%)"):$.value==="top-end"?(y.right=`${t.arrowOffset-q.value}px`,y.bottom="0",y.transform="translate(-50%, 50%)"):$.value==="right"?(y.left="0",y.top="50%",y.transform="translate(-50%, -50%)"):$.value==="right-start"?(y.left="0",y.top=`${t.arrowOffset}px`,y.transform="translate(-50%, 50%)"):$.value==="right-end"?(y.left="0",y.bottom=`-${t.arrowOffset}px`,y.transform="translate(-50%, 50%)"):$.value==="bottom"?(y.left="50%",y.top="0",y.transform="translate(-50%, -50%)"):$.value==="bottom-start"?(y.left=`${t.arrowOffset+q.value}px`,y.top="0",y.transform="translate(-50%, -50%)"):$.value==="bottom-end"?(y.right=`${t.arrowOffset-q.value}px`,y.top="0",y.transform="translate(-50%, -50%)"):$.value==="left"?(y.right="0",y.top="50%",y.transform="translate(50%, -50%)"):$.value==="left-start"?(y.right="0",y.top=`${t.arrowOffset}px`,y.transform="translate(50%, -50%)"):$.value==="left-end"&&(y.right="0",y.bottom=`-${t.arrowOffset}px`,y.transform="translate(50%, -50%)"),y):{display:"none"}}),K=()=>{const y={class:B.value,style:Z.value};return l.h("div",y)},ee=()=>{L.value===!1&&t.persistenet!==!0&&(m.value=!1)},oe=y=>{if(!g.value||L.value===!1)return;const{relatedTarget:Y}=y;g.value.contains(Y)||E(!1)},N=()=>{const y=[],Y=P();if(Y&&y.push(Y),a.default){const de=a.default();y.push(de)}const te=K();te&&y.push(te);const ce={ref:g,class:R.value,style:b.value,onAnimationend:ee};return t.leaveHide&&(ce.onMouseleave=oe),l.h("div",ce,{default:()=>y})};return()=>{const y=[],Y=M();if(Y&&y.push(Y),!m.value)return y.length===null?null:y;const te=[],ce=j();ce&&te.push(ce);const se=N();se&&te.push(se);const de=l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>te});return y.push(de),y}}}}const{componentName:hd,create:gd,scope:md}=fe("popover-dialog"),ql=gd(dd(hd,md,!1));function pd(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}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(t.mark)f=t.mark()[0];else{const h={class:i.value,style:s.value};f=l.h(o.icon??"div",h)}const d={class:u.value,style:c.value},v=t.default?t.default():[],$=l.h("div",d,v),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[f,$]):l.h("div",m,[$,f])}}}}const{componentName:yd,create:bd,scope:Ph}=fe("indicator"),Pl=bd(pd(yd));function vd(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 wd={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 Sd(e,n,o,t=!1){return{props:{...wd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const O={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(O[`${e}--${r.type??"default"}`]=!0),r.size&&(O[`${e}--${r.size}`]=!0),O}),u=l.computed(()=>{const O={},H=r.textColor??r.color;return H&&(O.color=H),O}),c=(O,H)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const q=r.highlightFilter;if(O.indexOf(q)!==-1){const L=O.replace(new RegExp(q,"g"),`<span>${q}</span>`);H.innerHTML=L,H.class["is-highlight"]=!0,_=l.h(r.tag,H)}}else if(typeof r.highlightFilter=="function"){const q=r.highlightFilter(O);q&&(H.innerHTML=q,H.class["is-highlight"]=!0,_=l.h(r.tag,H))}return _},f=O=>{a.emit("click",O)};let d="";const v=()=>{const O=i.value;if(!O)return;const H=O.clientWidth;vd(O,_=>{const q=O.innerHTML??"";be(q)||_<H||(d?o?.show(O,q,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(O,q,{type:"text",showArrow:r.showArrow},!0)??"")})},$=()=>{d&&o?.hide(d)};let m=null;const h=O=>{m||(m=setTimeout(()=>{v(),m=null},r.showAfter??0))},g=O=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{$()},r.hideAfter??0)},T=()=>{const O=i.value;O&&(O.addEventListener("mouseover",h),O.addEventListener("mouseleave",g))},w=()=>{const O=i.value;O&&(O.removeEventListener("mouseover",h),O.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||(w(),$())}),()=>{const O={onClick:f,class:s.value,style:u.value,ref:i};let H=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const I=xe(r.digits),C=xe(r.decimalLength),z=ue(r.autoPadding);let k=`${L[0].children}`,D=k.split("").reverse().join("");D=Ut(D,C,z,I,r.separator),k=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(H=c(k,O)),H||(O.innerHTML=k,H=l.h(r.tag,O))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const I=`${L[0].children}`;H=c(I,O),H||(O.innerHTML=I,H=l.h(r.tag,O))}}}H||(H=l.h(r.tag,O,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return H;let q=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},I=r.color;I&&(E.color=I);const C={class:L,style:E};q=l.h("view",C,l.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},I=r.color;I&&(E.color=I);const C={class:L,style:E};q=l.h("view",C,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const E={},I=r.color;I&&(E["background-color"]=I);const C={class:L,style:E};q=l.h("view",C)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",F,[q,H])}}}}const{componentName:xd,create:Td,scope:Cd}=fe("text"),jl=Td(Sd(xd,Cd,Me,!1)),$d={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:ke.ArrowUp}};function Nd(e,n,o){return{props:{...$d},emits:["click","update:modelValue"],setup(t,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return t.disabled?d[`${e}__disabled`]=!0:d[`${e}__${t.type}`]=!0,d}),i=me(t,"modelValue"),s=l.computed(()=>i.value?t.expandText??"":t.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:c.value},$=o(t.icon,v);return $&&d.push($),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:Ed,create:kd,scope:Id}=fe("more-button"),zl=kd(Nd(Ed,Id,(e,n)=>(e=e??ke.ArrowUp,l.h(S.ElIcon,n,{default:()=>[l.h(e)]}))));function Od(e){return e===window}const Kr=e=>{const n=l.unref(e);if(Od(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:Vd,create:Dd,scope:zh}=fe("tour"),Fd=Dd({components:{Close:ke.Close,ElPopover:S.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=Vd,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:O,top:H}=r.value,_=e.steps[t.active].offset??m,q=[O+T/2,H+w/2],F=Number(h||T),L=Number(g||w);return{width:`${F+ +_.left+_.right}px`,height:`${L+_.top+_.bottom}px`,top:`${q[1]-L/2-+_.top}px`,left:`${q[0]-F/2-+_.left}px`}}),s=m=>{m=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,f()}),n("change",t.active)},u=m=>m.popoverWidth??e.width,c=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[t.active].target}`),h=Kr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},$=(m,h=0)=>{m&&f(),e.steps,t.active=h,t.showTour=m,t.showPopup=m};return l.onMounted(()=>{$(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{$(m)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:v}}}),Rd={key:0,class:"fox-tour__content"},Ad={key:0,class:"fox-tour__content-top"},Md={class:"fox-tour__content-inner"},Ld={class:"fox-tour__content-bottom"},Bd={class:"fox-tour__content-bottom-init"},_d={class:"fox-tour__content-bottom-operate"},qd={key:1,class:"fox-tour__content fox-tour__content-tile"},Pd={class:"fox-tour__content-inner"};function jd(e,n,o,t,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=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,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{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",Rd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Ad,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Md,l.toDisplayString(c.content),1),l.createElementVNode("div",Ld,[l.createElementVNode("div",Bd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",_d,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=d=>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(s,{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(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=d=>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",qd,[l.createElementVNode("div",Pd,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Hl=ze(Fd,[["render",jd]]),Le=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,yt=e=>e==null;class zd{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=Ll()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Bl(),t=(r,a,i,s)=>{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 Wr(e,n){return new zd(e,n)}let Nt=[];const Yr=e=>{const n=e;n.key==="Escape"&&Nt.forEach(o=>o(n))},Hd=e=>{l.onMounted(()=>{Nt.length===0&&document.addEventListener("keydown",Yr),Ue&&Nt.push(e)}),l.onBeforeUnmount(()=>{Nt=Nt.filter(n=>n!==e),Nt.length===0&&Ue&&document.removeEventListener("keydown",Yr)})},Kl="fox-focus-trap.focus-after-trapped",Ur="fox-focus-trap.focus-after-released",Kd="fox-focus-trap.focusout-prevented",Gr={cancelable:!0,bubbles:!1},Wd={cancelable:!0,bubbles:!1},Xr="foxFocusAfterTrapped",Zr="foxFocusAfterReleased",Yd=Symbol("foxFocusTrap"),Wl=l.ref(),Sn=l.ref(0),Yl=l.ref(0);let xn=0;const Qr=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},Ud=(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},Jr=(e,n)=>{for(const o of e)if(!Ud(o,n))return o},Gd=e=>{const n=Qr(e),o=Jr(n,e),t=Jr(n.reverse(),e);return[o,t]},Xd=e=>e instanceof HTMLInputElement&&"select"in e,ft=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Yl.value=window.performance.now(),e!==o&&Xd(e)&&n&&e.select()}};function ea(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const Zd=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=ea(e,t),e.unshift(t)},remove:t=>{e=ea(e,t),e[0]?.resume?.()}}},Qd=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(ft(t,n),document.activeElement!==o)return},ta=Zd(),Jd=()=>Sn.value>Yl.value,Tn=()=>{Wl.value="pointer",Sn.value=window.performance.now()},na=()=>{Wl.value="keyboard",Sn.value=window.performance.now()},eh=()=>(l.onMounted(()=>{xn===0&&(document.addEventListener("mousedown",Tn),document.addEventListener("touchstart",Tn),document.addEventListener("keydown",na)),xn++}),l.onBeforeUnmount(()=>{xn--,xn<=0&&(document.removeEventListener("mousedown",Tn),document.removeEventListener("touchstart",Tn),document.removeEventListener("keydown",na))}),{focusReason:Wl,lastUserFocusTimestamp:Sn,lastAutomatedFocusTimestamp:Yl}),Cn=e=>new CustomEvent(Kd,{...Wd,detail:e}),{componentName:Hh,create:th,scope:Kh}=fe("focus-trap"),nh=th({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Xr,Zr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=eh();Hd(h=>{ue(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:O,currentTarget:H,shiftKey:_}=h,{loop:q}=e,F=g==="Tab"&&!T&&!w&&!O,L=document.activeElement;if(F&&L){const E=H,[I,C]=Gd(E);if(I&&C){if(!_&&L===C){const k=Cn({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(h.preventDefault(),q&&ft(I,!0))}else if(_&&[I,E].includes(L)){const k=Cn({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(h.preventDefault(),q&&ft(C,!0))}}else if(L===E){const k=Cn({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||h.preventDefault()}}};l.provide(Yd,{focusTrapRef:t,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(t.value=h)},{immediate:!0}),l.watch([t],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const c=h=>{o(Xr,h)},f=h=>o(Zr,h),d=h=>{const g=l.unref(t);if(!g)return;const T=h.target,w=h.relatedTarget,O=T&&g.contains(T);ue(e.trapped)||w&&g.contains(w)||(r=w),O&&o("focusin",h),!s.paused&&ue(e.trapped)&&(O?a=T:ft(a,!0))},v=h=>{const g=l.unref(t);if(!(s.paused||!g))if(!e.escape&&ue(e.trapped)){const T=h.relatedTarget;!_n(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&ue(e.trapped)){const w=Cn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||ft(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function $(){await l.nextTick();const h=l.unref(t);if(h){ta.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Kl,Gr);h.addEventListener(Kl,c),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let O=e.focusStartEl;so(O)||(ft(O),document.activeElement!==O&&(O="first")),O==="first"&&Qd(Qr(h),!0),(document.activeElement===g||O==="container")&&ft(h)})}}}function m(){const h=l.unref(t);if(h){h.removeEventListener(Kl,c);const g=new CustomEvent(Ur,{...Gr,detail:{focusReason:i.value}});h.addEventListener(Ur,f,{once:!0}),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Jd())&&ft(r??document.body,!0),ta.remove(s)}}return l.onMounted(()=>{ue(e.trapped)&&$(),l.watch(()=>e.trapped,h=>{ue(h)?$():m()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&m(),t.value&&(t.value.removeEventListener("keydown",u),t.value.removeEventListener("focusin",d),t.value.removeEventListener("focusout",v))}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:lh,create:oh,scope:Yh}=fe("floating-window"),rh=Symbol.for("InnerPageScopeKey"),ah=Symbol.for("PageWrapperKey"),ih={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{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}},sh=oh({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:nh},props:{...ih},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=lh,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,N=>{t.value=N});const a=l.computed(()=>t.value===!1?!1:!L.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),c=l.ref(e.bottom),f=l.computed(()=>{const N=["fox-floating-window"];return e.customClass&&N.push(e.customClass),N}),d=l.computed(()=>{const N={};return yt(i.value)?N.left="auto":N.left=Le(i.value),yt(s.value)?N.top="auto":N.top=Le(s.value),yt(u.value)?N.right="auto":N.right=Le(u.value),yt(c.value)?N.bottom="auto":N.bottom=Le(c.value),yt(e.zIndex)||(N["z-index"]=Le(e.zIndex)),yt(q.value)||(N.height=q.value),yt(F.value)||(N.width=F.value),N}),v=l.computed(()=>e.closeIcon??ke.Close),$=l.computed(()=>e.collapseIcon??ke.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),O=l.ref(),H=l.ref(null),_=l.ref(null),q=l.computed(()=>Le(e.height)||""),F=l.computed(()=>Le(e.width)||""),L=l.ref(ue(e.collapse)),E=(N,y=!0)=>{L.value!==N&&(L.value=N,N?x():M(),n("update:collapse",N),N&&typeof z.onHide=="function"?z.onHide():!N&&typeof z.onShow=="function"&&z.onShow())};l.watch(()=>e.collapse,N=>{E(N)});const I=()=>{C()},C=N=>{N=N??!L.value,E(N)};l.provide(rh,!0);const z={setCollapse:E,setFixedNavVisible:N=>{ne.value=N}};l.provide(ah,z);const k=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{t.value=!1}):t.value=!1},D=l.ref(null),A=l.computed(()=>!e.fixedNavTeleport),G=l.computed(()=>{const N=["fox-floating-window__fixednav"];return e.expandClass&&N.push(e.expandClass),e.collapsePosition==="left"?N.push("is-left"):e.collapsePosition==="right"&&N.push("is-right"),N}),U=l.ref(""),J=l.computed(()=>{const N={};return U.value?N.top=U.value:e.collapseTop&&(N.top=e.collapseTop),N}),X=l.ref(L.value),ne=l.computed({set:N=>{X.value=N},get:()=>t.value===!1?!1:X.value});let ae=null;const V=()=>{typeof ae=="function"&&(ae(),ae=null)},x=()=>{D.value&&D.value.classList.add("slide-in"),ne.value=!0,ae=()=>{D.value&&D.value.classList.remove("slide-in")}},M=()=>{D.value&&D.value.classList.add("slide-out"),ae=()=>{D.value&&D.value.classList.remove("slide-out"),ne.value=!1}},R=()=>{i.value=null,s.value=null,u.value=null,c.value=null},b={x:0,y:0},P=Wr(N=>{if(!O.value)return;const y=O.value;if(R(),e.origin==="left-top")i.value=y.offsetLeft,s.value=y.offsetTop,b.x=i.value,b.y=s.value;else if(e.origin==="left-bottom"){const Y=document.documentElement.clientHeight||document.body.clientHeight;i.value=y.offsetLeft,c.value=Y-(y.offsetTop+y.offsetHeight),b.x=i.value,b.y=c.value}else if(e.origin==="right-bottom"){const Y=document.documentElement.clientWidth||document.body.clientWidth,te=document.documentElement.clientHeight||document.body.clientHeight;u.value=Y-(y.offsetLeft+y.offsetWidth),c.value=te-(y.offsetTop+y.offsetHeight),b.x=u.value,b.y=c.value}else{const Y=document.documentElement.clientWidth||document.body.clientWidth;u.value=Y-(y.offsetLeft+y.offsetWidth),s.value=y.offsetTop,b.x=u.value,b.y=s.value}},N=>{if(!O.value)return;const y=O.value;R(),e.origin==="left-top"?(i.value=b.x+N.x,s.value=b.y+N.y,y.style.left=Le(i.value),y.style.top=Le(s.value)):e.origin==="left-bottom"?(i.value=b.x+N.x,c.value=b.y-N.y,y.style.left=Le(i.value),y.style.bottom=Le(c.value)):e.origin==="right-bottom"?(u.value=b.x-N.x,c.value=b.y-N.y,y.style.right=Le(u.value),y.style.bottom=Le(c.value)):(u.value=b.x-N.x,s.value=b.y+N.y,y.style.right=Le(u.value),y.style.top=Le(s.value))}),B={x:0,y:0},ee=Wr(N=>{D.value&&(B.x=D.value.offsetLeft,B.y=D.value.offsetTop)},N=>{if(!D.value)return;const y=B.y+N.y;U.value=`${y}px`}),oe=()=>{if(O.value){const N=O.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=N}};return l.onMounted(()=>{if(e.draggable&&O.value){const N=[];H.value&&N.push(H.value),e.footerDraggable&&(oe(),_.value&&N.push(_.value)),P.open(N)}e.collapse===!0&&E(e.collapse,!1),D.value&&ee.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&H.value&&P.close(),D.value&&ee.close()}),{classes:f,styles:d,isShow:a,closeIcon:v,onClose:k,dialogRef:O,headerRef:H,onClickToggle:I,collapseIcon:$,collapseText:m,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:ne,fixedNavRef:D,fixedNavClasses:G,fixedNavStyles:J,onAnimationEnd:V,teleportDisabled:r,fixedNavTeleportDisabled:A}}}),uh={ref:"headerRef",class:"fox-floating-window__header"},ch={class:"fox-floating-window__title"},fh={class:"fox-floating-window__tools"},dh={class:"fox-floating-window__body"},hh={class:"fox-floating-window__fixednav__text"};function gh(e,n,o,t,r,a){const i=l.resolveComponent("FoxIcon"),s=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(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",uh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ch,l.toDisplayString(e.title),1),l.createElementVNode("div",fh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[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",dh,[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]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",hh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ul=ze(sh,[["render",gh]]);function mh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:t}){return ko(o.name,()=>o.config),()=>typeof t.default=="function"?t.default():null}}}const{componentName:Uh,create:ph,scope:Gh}=fe("domain-provider"),Gl=ph(mh()),yh={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 bh(e,n){return{inheritAttrs:!1,props:yh,setup(o,{slots:t}){if(Ue&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,$)=>{if(f===null){a.set(v,{visible:null,callback:$});return}r.has(v)&&f.unobserve(v),r.set(v,{visible:null,callback:$}),f.observe(v)},s=v=>{if(f===null){a.delete(v);return}r.has(v)&&(r.delete(v),f.unobserve(v))};let u=o.initialVisibleObserverSize;ci({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(v,$,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(O){console.error(O)}}},{root:v,rootMargin:$,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,$])=>{if($||!v||f)return;let m=null;typeof v=="string"?m=document.querySelector(v):m=v,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{componentName:Xh,create:vh,scope:Zh}=fe("rolling-provider"),Xl=vh(bh()),wh=[Wn,Un,Gn,Xn,Jn,Ce,nl,ll,Mt,ol,rl,al,il,sl,ul,cl,dl,hl,gl,ml,vn,bl,vl,wl,Sl,xl,Tl,Cl,Nl,El,kl,Vl,Dl,wn,Fl,Rl,Al,Ml,_l,ql,Bt,yn,Pl,jl,zl,Hl,Ul,Gl,Xl],Sh=new Pa(wh,[Ha],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),p.AutocompleteItem=hl,p.Broadcast=Pn,p.BroadcastKey=ve,p.CascaderItem=dl,p.CheckboxItem=wl,p.Content=Xn,p.DataItemsKey=vt,p.DateItem=al,p.DateUtils=je,p.DialogItem=Dl,p.Domain=ln,p.DomainKey=_e,p.DomainProvider=Gl,p.FloatingWindow=Ul,p.FooterBar=Gn,p.FoxAutocompleteItem=hl,p.FoxCascaderItem=dl,p.FoxCheckboxItem=wl,p.FoxContent=Xn,p.FoxDateItem=al,p.FoxDialogItem=Dl,p.FoxDomainProvider=Gl,p.FoxFloatingWindow=Ul,p.FoxFooterBar=Gn,p.FoxGroup=Jn,p.FoxGroupSetting=Cl,p.FoxHeaderBar=Un,p.FoxHintText=Mt,p.FoxIndicator=Pl,p.FoxInfiniteLoading=Ml,p.FoxInputItem=ol,p.FoxInputNumberItem=cl,p.FoxItem=Ce,p.FoxMapping=Bt,p.FoxMoneyItem=ul,p.FoxMoreButton=zl,p.FoxOverLay=wn,p.FoxPage=Wn,p.FoxPopoverDialog=ql,p.FoxPopup=Fl,p.FoxPrice=yn,p.FoxPullRefresh=_l,p.FoxRadioItem=vl,p.FoxRateItem=Sl,p.FoxRollingProvider=Xl,p.FoxRowItem=ll,p.FoxSearchBar=Al,p.FoxSelectItem=rl,p.FoxSlotItem=nl,p.FoxStepsBar=Vl,p.FoxSwitchItem=xl,p.FoxTableItem=bl,p.FoxTableMappingColumn=gl,p.FoxTableRadioColumn=ml,p.FoxTableSetting=vn,p.FoxTabsBar=Nl,p.FoxTabsContainer=El,p.FoxTabsPane=kl,p.FoxText=jl,p.FoxTimeItem=il,p.FoxTimeSelectItem=sl,p.FoxToast=Rl,p.FoxTour=Hl,p.FoxTreeSelectItem=Tl,p.Group=Jn,p.GroupSetting=Cl,p.HeaderBar=Un,p.HintText=Mt,p.Indicator=Pl,p.InfiniteLoading=Ml,p.InputItem=ol,p.InputNumberItem=cl,p.Item=Ce,p.Mapping=Bt,p.MoneyItem=ul,p.MoreButton=zl,p.OverLay=wn,p.Page=Wn,p.PopoverDialog=ql,p.Popup=Fl,p.Price=yn,p.PriorityPolicy=Pe,p.PullRefresh=_l,p.RadioItem=vl,p.RateItem=Sl,p.RollingProvider=Xl,p.RowItem=ll,p.SearchBar=Al,p.SelectItem=rl,p.SlotItem=nl,p.StepsBar=Vl,p.SwitchItem=xl,p.TableItem=bl,p.TableMappingColumn=gl,p.TableRadioColumn=ml,p.TableSetting=vn,p.TabsBar=Nl,p.TabsContainer=El,p.TabsPane=kl,p.Text=jl,p.TimeItem=il,p.TimeSelectItem=sl,p.Toast=Rl,p.Tour=Hl,p.TreeSelectItem=Tl,p.UniqueID=jo,p.ValidateSchema=$o,p.ValidateSchemaKey=He,p.cancelRaf=ra,p.clearNonNumber=ya,p.clone=Ln,p.compareTo=Fn,p.createBroadcast=Qt,p.createValidateSchema=en,p.debounce=mt,p.debounceRef=Oa,p.decimalLength=bo,p.default=Sh,p.defineBroadcast=Sa,p.defineConfigDomain=ko,p.defineDataItem=Io,p.defineDomain=jn,p.defineItem=$e,p.definePageState=Vo,p.defineSimpleItem=Oo,p.deleteGlobalValidator=Na,p.disabledProperty=Ae,p.divide=Dn,p.excludeProps=Oe,p.extend=ht,p.floatData=wa,p.getGlobalValidateCheckEvents=xo,p.getGlobalValidateResetEvents=Co,p.getPageContentAreaHeight=an,p.getPageContentAreaWidth=sn,p.getPageFooterAreaHeight=Rt,p.getPageHeaderAreaHeight=Ft,p.getRootDomain=wt,p.hasSymbol=fo,p.includeProps=wo,p.indexOf=ba,p.integerLength=yo,p.isArray=ia,p.isArrayLike=go,p.isBrowser=Ue,p.isDate=ca,p.isESModule=da,p.isEmptyString=be,p.isEqual=nt,p.isFunction=An,p.isHidden=Zt,p.isInnerPage=Fa,p.isMap=sa,p.isNil=_n,p.isNumberString=po,p.isObject=tt,p.isPlainObject=Mn,p.isPromise=uo,p.isRegExp=qn,p.isSet=ua,p.isString=so,p.isSubPage=Ra,p.isSymbol=fa,p.isTouch=Ll,p.isWindow=ho,p.lastIndexOf=va,p.makeArray=pa,p.merge=mo,p.multiply=ro,p.negate=ao,p.nextTick=ga,p.numberFormat=Ut,p.objectToString=co,p.once=Va,p.overrideGlobalValidateHandler=Ca,p.property=Fe,p.raf=Rn,p.readonlyProperty=Re,p.setGlobalValidateCheckEvents=Ea,p.setGlobalValidateHandler=Ta,p.setGlobalValidateMessages=Ia,p.setGlobalValidateResetEvents=ka,p.setGlobalValidator=$a,p.throttle=Eo,p.toBoolean=ue,p.toNumber=xe,p.toPadding=Ge,p.toPx=ge,p.toPxDesc=Ve,p.toTypeString=Gt,p.toValue=me,p.tryTimes=nn,p.typeOf=Xt,p.unNumberFormat=io,p.updatePageState=zn,p.useBroadcast=Ot,p.useDomain=st,p.useExpose=Ne,p.useInnerSize=Yn,p.usePageState=rn,p.usePosition=qo,p.useRawTouch=Bl,p.useRect=Kr,p.useSize=cn,p.useTouch=rd,p.valueLength=It,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});