@fox-js/foxui-pc 4.0.1-73 → 4.0.1-75

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,5 +1,5 @@
1
- (function(g,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,Pe,m,Re,Ne){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Sep 14 2023 21:30:27 GMT+0800 (中国标准时间)
3
- */const mt=window,Xo=typeof window<"u";function Zo(){return typeof mt<"u"?mt.requestAnimationFrame||mt.webkitRequestAnimationFrame||function(e){mt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Jo(e){Xo?cancelAnimationFrame(e):clearTimeout(e)}const Qo=Zo();/*!
1
+ (function(g,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,We,m,De,Oe){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Fri Sep 15 2023 15:14:46 GMT+0800 (中国标准时间)
3
+ */const wt=window,ea=typeof window<"u";function ta(){return typeof wt<"u"?wt.requestAnimationFrame||wt.webkitRequestAnimationFrame||function(e){wt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const ra=ta();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function pt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=pe(e),t=pe(t),[e,t]=zt(pe(e),pe(t)),o==1&&(n==1?e=Ht(e):t=Ht(t));let a=Vn(e,t);return o?o==2?"-"+pe(a):e.length<a.length?pe(a.substring(1)):"-"+pe(Ht(a)):pe(a)}function Ht(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return Vn(t,l)}function pe(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function zt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Vn(e,t){[e,t]=zt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var ie=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ie||{});function ot(e,t=0,o=ie.HALF_EVEN){if(o===ie.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),l=a[0],s=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+s,u=ot(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,On(a[1],l,n,o)?(n?"-":"")+Wt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&On(i,s,n,o)&&(s=Wt(s),s.length>t)?(n?"-":"")+Wt(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function On(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ie.DOWN||!o&&n===ie.FLOOR||o&&n===ie.CEILING)return!1;if(n===ie.UP||o&&n===ie.FLOOR||!o&&n===ie.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ie.HALF_DOWN:return!1;case ie.HALF_UP:return!0;case ie.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Wt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Kt(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=at(e),t=at(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=at(e.replace(".","")),t=at(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let S=t.length-1;S>=f&&S>=0;S--)u[S]>-1&&u[S]<e.length&&(b+=parseInt(e[u[S]--])*parseInt(t[S]));b+=i,i=Math.floor(b/10),c=b%10+c,f--}return c=at(ea(c,l)),o==1&&(c="-"+c),c}function ea(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function at(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 Yt(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=pe(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=pe(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=pe(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=pe(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=pe(e.replace(".","")))}let l=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=pt(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+pe(ot(i,o-2))}function Ut(e,t){return e=e.toString(),t=t.toString(),t=Gt(t),pt(e,t)}function Gt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function In(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Rn(e),Rn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Ut(e,Kt(t,ot(Yt(e,t),0,ie.FLOOR)));return o+n}function Rn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function An(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=zt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ne{value;static RoundingModes=ie;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=pe(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+pe(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ne.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ne.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return ne.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ie.HALF_EVEN){if(t=ne.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ot(t,o,n)}round(t=0,o=ie.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ne(ot(this.value,t,o))}static floor(t){return t=ne.validate(t),t.indexOf(".")===-1?t:ne.round(t,0,ie.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,ie.FLOOR)}static ceil(t){return t=ne.validate(t),t.indexOf(".")===-1?t:ne.round(t,0,ie.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,ie.CEILING)}static add(t,o){return t=ne.validate(t),o=ne.validate(o),pt(t,o)}add(t){return new ne(pt(this.value,t.getValue()))}static subtract(t,o){return t=ne.validate(t),o=ne.validate(o),Ut(t,o)}subtract(t){return new ne(Ut(this.value,t.getValue()))}static multiply(t,o){return t=ne.validate(t),o=ne.validate(o),Kt(t,o)}multiply(t){return new ne(Kt(this.value,t.getValue()))}static divide(t,o,n){return t=ne.validate(t),o=ne.validate(o),Yt(t,o,n)}divide(t,o){return new ne(Yt(this.value,t.getValue(),o))}static modulus(t,o){return t=ne.validate(t),o=ne.validate(o),In(t,o)}modulus(t){return new ne(In(this.value,t.getValue()))}static compareTo(t,o){return t=ne.validate(t),o=ne.validate(o),An(t,o)}compareTo(t){return An(this.value,t.getValue())}static negate(t){return t=ne.validate(t),Gt(t)}negate(){return new ne(Gt(this.value))}}function Dn(e,t){return ne.multiply(`${e}`,`${t}`)}function Xt(e,t,o=8){return ne.divide(`${e}`,`${t}`,o)}function Zt(e,t){return e=`${e}`,t=`${t}`,ne.compareTo(e,t)}function Fn(e){return ne.negate(e)}function yt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=l.substring(0,f),u=l.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",b=i.split("").reverse();for(let S=0;S<b.length;S++)d+=b[S]+((S+1)%n==0&&S+1!=b.length?a:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function Bn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ta=Qo,na=Array.isArray,ra=e=>bt(e)==="[object Map]",oa=e=>bt(e)==="[object Set]",aa=e=>e instanceof Date,Jt=e=>typeof e=="function",qn=e=>typeof e=="string",la=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",ia=e=>Le(e)&&Jt(e.then)&&Jt(e.catch),Ln=Object.prototype.toString,bt=e=>Ln.call(e),Qt=e=>bt(e)==="[object Object]",Mn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function sa(e){return e.__esModule||Mn&&e[Symbol.toStringTag]==="Module"}const ua=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function He(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=He(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function en(e,t,o=!1){if(!o)He(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Qt(s))continue;l=en(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Qt(s))continue;l=en(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const tn=ua?Promise.resolve():null;function ca(e,...t){tn!==null?t&&t.length>0?tn.then(()=>{e(t)}):tn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ye(e){return typeof e=="number"?e:Number(e)}const fa={"[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 wt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):fa[o]||"object"}function jn(e){return e&&typeof e=="object"&&"setInterval"in e}function _n(e){return!e||e.offsetParent===null}function Pn(e){let t=!!e&&"length"in e&&e.length,o=wt(e);return o==="function"||jn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Hn(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function da(e,t=[]){let o=t;return e!=null&&(Pn(Object(e))?Hn(o,typeof e=="string"?[e]:e):o.push(e)),o}function Me(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=wt(e),n=wt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!Me(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],s=t[a];if(!Me(l,s))return!1}return!0}return!1}const Ue=typeof window<"u";function nn(e){return e==null}function zn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const se=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Wn(e){return se(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),se(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Kn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function Yn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Un(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ha(e,t=!0,o=!0){t?e=Un(e,".",/\./g):e=e.replace(/\./g,""),o?e=Un(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ga(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Me(e,o))return!0}):t.indexOf(e)}function ma(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Me(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Gn(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function be(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const pa=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},ue=Symbol.for("BroadcastKey");class rn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):zn(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function St(e,t,o,n){const a=new rn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function ya(e,t,o){const n=o;if(n[ue])return n[ue];const a=r.inject(ue,null),l=new rn(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[ue]=l,r.provide(ue,l),r.onUnmounted(()=>{l.destroy(),n[ue]=void 0}),l}function it(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ue]??r.inject(ue,null):r.inject(ue,null)}const ze=e=>e.default??e;class ba{error(t,o){const n=o,a=it(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=it(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=it(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=it(n),s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Xn=new ba;function wa(e){Xn=e}function Sa(e,t){ze(Pe).setValidator(e,t)}function va(e){ze(Pe).deleteValidator(e)}let Zn=["blur","clear"];function $a(e){Zn=e}function Jn(){return Zn}let Qn=["focus","change"];function Ta(e){Qn=e}function er(){return Qn}function xa(e){ze(Pe).messages(e)}function st(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function vt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ae=Symbol("ValidateSchemaKey");class tr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=vt(st(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=vt(n);const a=st(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Xn;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ze(Pe).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ze(Pe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ze(Pe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=st(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=vt(t):this.rules=vt([t]);const n=st(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=st(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=ze(Pe),u=new i(a),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let b="error";Array.isArray(d.errors)&&d.errors.length>0&&(b=d.errors[0].message??b,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(b)}return d}).catch(d=>{const b=d.message??`${d}`;return this.error(b),d})}}return Promise.resolve({pass:!0})}}function $t(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new tr(t,o,e)}const nr=Symbol.for("EventEmitterKey");class Ea{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function ut(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function rr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Ca(e,t){const o=ut((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Na(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function on(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const xe=Symbol("DomainKey"),Ge=Symbol("DataItemsKey");class Tt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];o.push(a)}n=n._parent}return o}}const ka=new Tt;function Xe(){return ka}function De(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[xe]??r.inject(xe,null):r.inject(xe,null)}const an=Symbol("OriginalDateKey");function ln(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(xe,null);s===null&&(s=Xe());const i=e||t.prop||t.name,u=new Tt(i);u.parent=s;const f=h=>{l[an]||b(h),u.set("modelValue",h)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[an]??null,b=h=>{const w={};He(!0,w,r.toRaw(h)),l[an]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[xe]=u,r.provide(xe,u);let S=null,v=null;if(a!==null){const h=r.inject(ue,null);S=St(l,h,i,n),u.broadcast=S,l[ue]=S,r.provide(ue,S),l.broadcast=(p,$,...I)=>Reflect.apply(S.emit,S,[p,$,...I]);const w=r.inject(Ae,null);v=$t(l,w,{componentName:""}),u.validateSchema=v,l[Ae]=v,r.provide(Ae,v),l[Ge]=new Map,l.validate=(p=!0)=>{const $=[];let I=null;const D={deep:!1};if(p===!0)I={name:"*"};else if(Array.isArray(p)&&p.length>0){const O=p;I={name:N=>N?O.indexOf(N)!==-1:!1}}else if(p!=null&&typeof p=="object"){const O=p;if(D.ignoreHidden=O.ignoreHidden,Array.isArray(O.include)&&O.include.length>0){const N=O.include;I={name:V=>V?N.indexOf(V)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const N=O.exclude;I={name:V=>V?N.indexOf(V)===-1:!1}}else I={name:"*"}}if(I){const O=S?.emitToChildren(I,"validate",D);O&&Reflect.apply([].push,$,O)}return $.length==1?$[0]:$.length>1?Promise.all($).then(O=>{let N=[];return O.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(N=[...N,...V.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,$=!0)=>{if($){const I=Reflect.ownKeys(p),D=[...I],O={name:N=>{const V=I.includes(N);if(V){const A=D.findIndex(C=>N===C);A!==-1&&D.splice(A,1)}return V}};S?.emitToChildren(O,"setNameValidateRules",p,!1),D.length>0&&D.forEach(N=>{let V=String(N);const C=lr(u,V,{componentName:"",fieldName:V,pureDataValidate:!0},S,v);l[Ge].set(V,C);const R=p[V];R&&C.validateSchema.setRule(R)})}},l.clearValidate=(p=!0)=>{let $=null;if(p===!0)$={name:"*"};else if(Array.isArray(p)&&p.length>0){const I=p;$={name:D=>D?I.indexOf(D)!==-1:!1}}else if(p!=null&&typeof p=="object"){const I=p;if(Array.isArray(I.include)&&I.include.length>0){const D=I.include;$={name:O=>O?D.indexOf(O)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const D=I.exclude;$={name:O=>O?D.indexOf(O)===-1:!1}}else $={name:"*"}}$&&S?.emitToChildren($,"clearValidate",!1)},l.resetFields=p=>{const $=c();if(!$)return;const I={};if(He(!0,I,d()??{}),Array.isArray(p))p.forEach(D=>{$[D]=I[D]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(O=>{$[O]=I[O]});else if(p&&Array.isArray(p.exclude)){let D=p.exclude??[];Reflect.ownKeys(I).forEach(O=>{D.includes(O)||($[O]=I[O])})}else Object.assign($,I);l.clearValidate(p)},l.setModelValue=(p,$)=>{!$||$===i?f(p):S?.emitToChildren({name:$},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[xe]=void 0,l[Ge]&&(l[Ge].clear(),l[Ge]=void 0),S!==null&&(S.destroy(),l[ue]=void 0),v!==null&&(v.destroy(),l[Ae]=void 0)}),u}function or(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(xe,null);l===null&&(l=Xe());const s=e||t.prop||t.name,i=new Tt(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[xe]=i,r.provide(xe,i),r.onUnmounted(()=>{i.destroy(),a[xe]=void 0}),i}function ar(e,t,o){const a=De(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function fe(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(ue,null),i=St(a,s,l,o);a[ue]=i,r.provide(ue,i),a.broadcast=(v,h,...w)=>Reflect.apply(i.emit,i,[v,h,...w]);const u=r.inject(Ae,null);e.fieldName=e.fieldName??l;const f=$t(a,u,e);a[Ae]=f,r.provide(Ae,f),ar(a,f,l),a.validate=(v=null)=>{const h=[];let w=!1,p=!1;if(Array.isArray(v)&&v.indexOf(l)!==-1)p=!0,w=!0;else if(v&&typeof v=="object"){const $=v;$.ignoreHidden===!0&&_n(a.$el)?p=!1:(Array.isArray($.include)&&$.include.indexOf(l)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(l),p=!0),w=$.deep??!1}else typeof v=="boolean"&&(w=v),p=!0;if(p){const $=f?.validate();h.push($)}if(w){let $=null;const I={deep:!1};if(v===!0)$={name:"*"};else if(Array.isArray(v)&&v.length>0){const D=v;$={name:O=>O?D.indexOf(O)!==-1:!1}}else if(v!=null&&typeof v=="object"){const D=v;if(I.ignoreHidden=D.ignoreHidden,Array.isArray(D.include)&&D.include.length>0){const O=D.include;$={name:N=>N?O.indexOf(N)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const O=D.exclude;$={name:N=>N?O.indexOf(N)===-1:!1}}else $={name:"*"}}if($){const D=i.emitToChildren($,"validate",I);Reflect.apply([].push,h,D)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then($=>{let I=[];return $.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(I=[...I,...D.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=v=>f?.setRule(v),a.setNameValidateRules=(v,h=!1)=>{const w=v[l];if(w&&f?.setRule(w),h){const p={name:$=>Reflect.ownKeys(v).includes($)};i.emitToChildren(p,"setNameValidateRules",v,!1)}},a.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(v===!0)h={name:"*"};else if(Array.isArray(v)&&v.length>0){const w=v;h={name:p=>p?w.indexOf(p)!==-1:!1}}else if(v!=null&&typeof v=="object"){const w=v;if(Array.isArray(w.include)&&w.include.length>0){const p=w.include;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const p=w.exclude;h={name:$=>$?p.indexOf($)===-1:!1}}else h={name:"*"}}h&&i.emitToChildren(h,"clearValidate",!1)};const c=new Ea(a);a[nr]=c;const d=ut((v="validate")=>{v==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Jn()).forEach(v=>{c.on(v,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:er()).forEach(v=>{c.on(v,h=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[ue]=void 0,f.destroy(),a[Ae]=void 0,c.destroy(),a[nr]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(v,...h)=>{Reflect.apply(c.emit,c,[v,...h])},onEvent:(v,h)=>{Reflect.apply(c.on,c,[h])},offEvent:(v,h)=>{Reflect.apply(c.off,c,[h])}}}function lr(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=$t({},a,o);l.validate=(f=null)=>{const c=[];let d=!1,b=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)b=!0,d=!0;else if(f&&typeof f=="object"){const S=f;Array.isArray(S.include)&&S.include.indexOf(s)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(s),b=!0,d=S.deep??!1}else typeof f=="boolean"&&(d=f),b=!0;if(b){const S=i?.validate();c.push(S)}if(d){let S=null;const v={deep:!1};if(f===!0)S={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;S={name:w=>w?h.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Array.isArray(h.include)&&h.include.length>0){const w=h.include;S={name:p=>p?w.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const w=h.exclude;S={name:p=>p?w.indexOf(p)===-1:!1}}else S={name:"*"}}if(S){const h=u.emitToChildren(S,"validate",v);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(S=>{let v=[];return S.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(v=[...v,...h.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=St(null,n,s,l);return{broadcast:u,validateSchema:i}}const de=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ae(e,t)}px`:"";function ae(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),l=1;if(Ue){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const je="PageStateKey";function ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ae(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ae(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ae(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ae(e.right))),t}function sn(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=ae(o.headerHeight??t.headerHeight),e.headerPadding=ke(o.headerPadding??t.headerPadding),e.footerHeight=ae(o.footerHeight??t.footerHeight),e.footerPadding=ke(o.footerPadding??t.footerPadding),e.contentPadding=ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ae(u,l):e.height=ae(l)-ae(s,l)-ae(i,l),e.width=ae(o.width??t.width??0,a)}}function ir(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ae(a.top),n.safeAreaBottom=ae(a.bottom),n.safeAreaLeft=ae(a.left),n.safeAreaRight=ae(a.right));const l=e.get("pageLayout");if(!l)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;sn(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(je);d&&(n.height=Et(e,d),n.width=Ct(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Et(e,d),c.width=Ct(e,d)}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,v,h=-1,w=-1,p=0,$=0])=>{sn(c,v,t,b,h,w,p,$)}),e.set(je,c),c}function xt(e){return e.get(je)}function ct(e,t){if(t=t??e.get(je),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function ft(e,t){if(t=t??e.get(je),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Et(e,t){if(t=t??e.get(je),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=ct(e,t),n=ft(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ct(e,t){return t=t??e.get(je),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Va(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Oa(e){return!!e.getForParent(je)}var Ee=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ee||{});function un(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Te(e,t,o=1,n){const a=De();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(un(u,n))return u}const s=e.value;return un(s,n)?s:null}):r.computed(()=>{const l=e.value;return un(l,n)?l:a?.get(t)})}function Se(e){return Te(e,"readonly",0,function(o){return re(o)})}function ve(e){return Te(e,"disabled",0,function(o){return re(o)})}function oe(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const sr=new Map,Nt=new Map;let cn=null;function Ia(e){cn=e}function ur(e,t,o){if(o){let n=Nt.get(o);n||(n=new Map,Nt.set(o,n)),n.set(e,t)}else sr.set(e,t)}function Ve(e,t,o){!o&&cn&&(o=cn(e)??void 0);let n=null;if(o){let a=Nt.get(o);a&&(n=a.get(t))}return n||(n=sr.get(t)),n}function Ra(e,t){for(let o in e){const n=e[o];ur(o,n,t)}}function Aa(e){Nt.delete(e)}function Da(){return{top:0,left:0,bottom:0,right:0}}function Fa(e=0,t=0){if(Ue){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ae(e,n)-ae(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ba{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Xe();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=rr(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=He({},Da(),t.safeAreaInset),s=Fa(n,a),i=He({},s.pageLayout,t.pageLayout);o=o??Xe(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ia(t)}setAPI(t,o,n){ur(t,o,n)}getAPI(t,o,n){return Ve(t,o,n)}batchSetAPI(t,o){Ra(t,o)}clearScopeAPI(t){Aa(t)}getRootDomain(){return Xe()}}const qa=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],La=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ma=e=>{qa.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),La.forEach(t=>{e.use(t)})};function te(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ce={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},we={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},cr={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}},fr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{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},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}},dr=[];for(const e in fr)dr.push(e);function he(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const ja=Symbol.for("InnerPageScopeKey"),_a=(e,t)=>({inheritAttrs:!0,props:{...ce,...cr,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}},setup(o,n){const a=ln(o.name,o);if(a){const f=ir(a,o);he({getPageContentHeight:()=>Et(a,f),getPageContentWidth:()=>Ct(a,f),getPageHeaderHeight:()=>ct(a,f),getPageFooterHeight:()=>ft(a,f)});const c=r.inject(ja,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),b=r.toRaw(f),S=b?Reflect.ownKeys(b):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{S.includes(h)||(b[h]=[])}),u(b)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Pa,create:Ha,scope:Jc}=te("page"),za=Ha(_a(Pa));function Wa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ce=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},hr=Ce(za,[["render",Wa]]),Ka=["aria-labelledby"],Ya=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ua=[Ya],Ga=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ua,14,Ka))}});function fn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function dn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}const Xa=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},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,default:""},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(a,l){const s=De(),i=s?xt(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:a.border,[`${y}--fixed`]:a.fixed,[`${y}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ae(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const E=ke(a.padding??i.headerPadding);return Object.assign(y,E),f&&(i.headerHeight=f),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(E.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const E=ke(a.padding);Object.assign(y,E)}return y}),d=r.ref(null),b=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const y=fn(d.value);i.headerAllHeight=y.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&on(b,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const S=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),v=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),h=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),$=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),I=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),D=r.computed(()=>a.leftIcon),O=r.computed(()=>D.value||l.slots.leftIcon),N=r.computed(()=>a.titleIcon),V=r.computed(()=>a.titleIcon||l.slots.titleIcon),A=r.computed(()=>a.rightIcon),C=r.computed(()=>a.rightIcon||l.slots.rightIcon);function R(){l.emit("back")}function K(){l.emit("click-title")}function z(){l.emit("click-right")}function T(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:S,mHeaderShow:p,leftStyles:v,rightStyles:h,mLeftShow:w,mTitleShow:$,mRightShow:I,mLeftIcon:D,hasLeftIcon:O,mTitleIcon:N,hasTitleIcon:V,mRightIcon:A,hasRightIcon:C,handleLeft:R,handleCenter:K,handleRight:z,handleRightText:T}}}),{componentName:Za,create:Ja,scope:Qa}=te("header-bar"),el=Ja(Xa(Za,Qa,Ga)),tl={key:1,class:"fox-header-bar__title"},nl={key:0,class:"title-text"};function rl(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",tl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",nl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const gr=Ce(el,[["render",rl]]);function ol(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,a){const l=De(),s=l?xt(l):null,i=r.computed(()=>{const S=e;return{[S]:!0,[`${S}--${n.align}`]:!0,[`${S}--border`]:n.border,[`${S}--fixed`]:n.fixed,[`${S}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ae(n.height):null,f=r.computed(()=>{const S={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const v=ke(n.padding??s.footerPadding);return Object.assign(S,v),u&&(s.footerHeight=u),S.height=s.footerHeight,S.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,S.safeAreaBottom>0&&(S.height=S.height+S.safeAreaBottom,S.bottom=S.safeAreaBottom+(v.bottom??0)),S}if(u&&(S.height=u),n.padding){const v=ke(n.padding);Object.assign(S,v)}return S}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const S=fn(c.value);s.footerAllHeight=S.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&on(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const b=r.computed(()=>{const S={};return f.value.height!==null&&f.value.height!==void 0&&(S.height=de(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(S.paddingTop=de(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(S.paddingLeft=de(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(S.paddingRight=de(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(S.paddingBottom=de(f.value.bottom)),S});return{footerBarRef:c,classes:i,styles:b}}}}const{componentName:al,create:ll,scope:Qc}=te("footer-bar"),il=ll(ol(al));function sl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const mr=Ce(il,[["render",sl]]);function ul(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=De(),a=r.computed(()=>({[e]:!0})),l=n?xt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const S=ke(o.padding);Object.assign(l.contentPadding,S)}const c=ct(n,l),d=ft(n,l);let b="";if(l.contentHeight?b=`${l.contentHeight}`:b=`${l.height}px`,l.contentPadding,f.height=b,l.contentPadding.top||c>0){const S=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+S}px`}if(l.contentPadding.bottom||d>0){const S=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+S}px`}return l.contentPadding.left&&(f.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(f.paddingRight=`${l.contentPadding.right}px`),f}if(o.padding){const c=ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),i=r.ref(null),u=()=>{if(l&&i.value){const f=dn(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>ct(n),()=>ft(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:cl,create:fl,scope:ef}=te("content"),dl=fl(ul(cl));function hl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const pr=Ce(dl,[["render",hl]]),Ze="GroupStateKey",yr=Symbol.for("GroupScopeKey");function kt(){return r.inject(yr,!1)}function Vt(e=!0){r.provide(yr,e)}function gl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];nn(a)||(e[n]=a)})}function ml(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(Ze,l),l}function hn(e,t,o=-1,n=-1,a=!1,l,s,i){const u=e.get(Ze);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),l||(l=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const c=ae(l),d=ae(s);i||(i=f.type??"grid");const b=()=>{const S=t===""||t===-1,v=ae(t);let h=ye(o);const w=ae(n);if(!S){let I=(v-(h-1)*w)/h;for(;d!==-1&&I>d;)h++,I=(v-(h-1)*w)/h;for(;c!==-1&&h>1&&I<c;)h--,I=(v-(h-1)*w)/h}let p=!1;const $=u.layout;$.value.width=t,$.value.column!==h&&($.value.column=h,p=!0),$.value.gutter!==w&&($.value.gutter=w,p=!0),$.value.type!==i&&($.value.type=i,p=!0),p&&r.triggerRef($)};if(a)b();else{const S=++u.passport;setTimeout(()=>{S===u.passport&&b()},50)}}function Ot(e,t=!1){let o;return t?o=e.getForParent(Ze):o=e.get(Ze),o.layout}function It(e,t=!1){let o;return t?o=e.getForParent(Ze):o=e.get(Ze),o.order}function br(e,t=1){if(t==="stretch")return-1;const o=ye(t);return o===-1?100:100*o/e}function Rt(e,t,o=1,n=0,a){const l={};let s=0;a?s=ae(a):s=br(t.column,o),s>0&&(l.width=`${s}%`);const i=br(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function At(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let a=ye(o);if(a===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(a>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const l=ye(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const wr=Symbol("RollingStateKey");function pl(e){r.provide(wr,e)}function yl(){return r.inject(wr,null)}function gn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function bl(e){let t=gn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=gn(o),document.body.removeChild(o)}return t}function wl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const Sl={...ce,...cr,...fr};function vl(e,t,o){return{props:Sl,emits:["update:collapse"],setup(n,a){const l=ln(n.name,n,dr),s=ml(l,{type:n.type}),i=kt();Vt(!0);const u=n.rollingDisplay?yl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>i&&l?Ot(l,!0).value:null),b=r.getCurrentInstance(),S=q=>{const H=b?.proxy;H&&typeof H.setNameValidateRules=="function"&&H.setNameValidateRules(q,!0)};r.watch(()=>n.rules,(q,H)=>{if(!q&&!H)return;const U=r.toRaw(H),ee=r.toRaw(q),Q=ee?Reflect.ownKeys(ee):[];(U?Reflect.ownKeys(U):[]).forEach($e=>{Q.includes($e)||(ee[$e]=[])}),S(ee)},{deep:!0});const v=e,h=r.computed(()=>{const q={};q.height=j.value;const H=i?It(l,!0):null;if(d.value&&H){if(d.value.type==="grid"){const U=At(H,d.value,n.span,n.offset);Object.assign(q,U)}else if(d.value.type==="flow"){const U=Rt(H,d.value,n.span,n.offset,n.width);Object.assign(q,U)}}else if(n.width){const U=de(n.width);q.width=U}return q}),w=r.computed(()=>{const q=s.layout.value.type;return q==="grid"||q==="flow"?{[`${v}--${q}`]:!0,[`${v}--${q}-justify-${n.justify}`]:!0,[`${v}--${q}-align-${n.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${q}`]:!0,[`${v}--gutter`]:!0}}),p=r.computed(()=>{if(s.layout.value.type==="grid"){let H="";if(n.columnWidth)H=`repeat(auto-fill, ${n.columnWidth})`;else{const U=wl(C.value,s.layout.value.column,s.layout.value.gutter);H=`repeat(${s.layout.value.column}, ${U})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":H}}}),$=r.toRef(n,"title"),I=r.toRef(n,"gutter"),D=r.toRef(n,"column"),O=r.computed(()=>i||c.value?!0:re(n.isWrap)),N=[],V=q=>{N.push(q)},A=()=>{let q=N.length;N.splice(0,q)},C=r.ref(-1),R=q=>{const H=dn(q).width;H>0&&H!==C.value&&(C.value=H)};hn(l,C.value,D.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([C,D,I],([q,H,U])=>{s.order.index=0,hn(l,q,H,U,!1,n.minItemWidth,n.maxItemWidth,n.type)});const K=r.computed(()=>L.value?n.expandText??"":n.collapseText??""),z=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),T=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),y=r.ref(),E=r.ref(),j=r.computed(()=>F.value||de(n.height)||""),L=r.ref(!1),F=r.ref(""),x=r.ref(!1);let k=-1;const _=(q,H=!0)=>{const U=y.value;if(U&&L.value!==q){if(k=k===-1?bl(U):k,x.value=!0,H)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",q||(F.value="",x.value=!1)},q){let ee=0;n.collapseHeight?ee=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ee=E.value.offsetHeight),F.value=`${k}px`,r.nextTick(()=>{F.value=`${ee}px`})}else F.value=`${k}px`;else if(q){let ee=0;n.collapseHeight?ee=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ee=E.value.offsetHeight),F.value=`${ee}px`}else x.value=!1,F.value=`${k}px`;L.value=q,a.emit("update:collapse",q)}};r.watch(()=>n.collapse,q=>{_(q)});const B=()=>{Y()},Y=q=>{q=q??!L.value,_(q)};he({toggleCollapse:Y,doLayout:()=>{N[0]&&(R(N[0]),hn(l,C.value,D.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let Z=null,J=!0;const P=q=>{if(n.rules){const H=r.toRaw(n.rules);S(H)}if(Ue&&(q&&_(re(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const H=N[0];R(H),window.ResizeObserver&&(Z=new window.ResizeObserver(()=>{R(H)}),Z.observe(H))}},X=()=>{Z?.disconnect(),Z=null},W=!c.value||u?.acquire();W&&(f.value=c.value?!0:null),r.onMounted(()=>{if(W&&(P(J),J=!1),c.value&&u){let q=null,H=u.initialHeight;u.observe(y.value,U=>{if(U!==f.value)if(U)f.value=!0,L.value||(F.value=""),q=setTimeout(()=>{q=null,f.value!==!1&&(P(J),J=!1)},100);else{if(q!==null&&clearTimeout(q),f.value=!1,!L.value)if(J)F.value=u.initialHeight;else{let ee=gn(y.value);ee<=0?F.value=H:(F.value=`${ee}px`,H=F.value)}J||X()}})}}),r.onUnmounted(()=>{Z?.disconnect(),u&&u.unobserve(y.value)});const M=(q,H,U,ee)=>{const Q={...w.value};return H===0&&(Q[`${v}__first`]=!0),U>=ee-1&&(Q[`${v}__last`]=!0),r.h("div",{ref:V,key:`${H}`,class:Q,style:p.value},q)};return()=>{if(c.value&&f.value!==!0){const Q=n.tag||"div";return r.h(Q,{ref:y,prop:n.name,class:{[`${v}`]:!0,"is-collapse":x.value},style:h.value},[])}s.order.index=0;const q=[];let H=0;if(a.slots.header){const Q={key:`${H++}`,ref:E,class:{[`${v}__header`]:!0,[`${v}__first`]:!0}},le=r.h("div",Q,[a.slots.header()]);q.push(le)}else{const Q=[];if($.value){if(n.showMark){const $e={class:{[`${v}__header-mark`]:!0}};n.markColor&&($e.style={background:n.markColor});const Ie=r.h("div",$e);Q.push(Ie)}const le=r.h("div",{class:{[`${v}__header-title`]:!0}},[$.value]);Q.push(le)}if(a.slots.toolbar&&Q.push(a.slots.toolbar()),n.showCollapse){const le=[];if(K.value){const Pt={class:z.value},Ye=r.h("span",Pt,[K.value]);le.push(Ye)}const $e={class:T.value},Ie=o(n.collapseIcon,$e);if(Ie&&le.push(Ie),le.length>0){const Pt=r.h("div",{class:{[`${v}__header-collapse`]:!0},onClick:B},le);Q.push(Pt)}}if(Q.length>0){const le={key:`${H++}`,ref:E,class:{[`${v}__header`]:!0,[`${v}__first`]:!0}},$e=r.h("div",le,Q);q.push($e)}}A();const U=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const Q=M(U,H++,0,U.length);q.push(Q)}else if(ee==="flow"){const Q=M(U,H++,0,U.length);q.push(Q)}else for(let Q=0;Q<U.length;Q++){const le=U[Q],$e=M([le],H++,Q,U.length);q.push($e)}if(O.value){const Q=n.tag||"div";return r.h(Q,{ref:y,prop:n.name,class:{[`${v}`]:!0,"is-collapse":x.value},style:h.value},[q])}else return q}}}}const{componentName:$l,create:Tl,scope:xl}=te("group"),Sr=Tl(vl($l,xl,(e,t)=>(e=e??Re.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function El(e){return e===window}const Cl=/matrix\((.+)\)/,vr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(El(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Cl.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(i+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function Nl(e){return e===window}const mn=e=>{const t=r.unref(e);if(Nl(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class kl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Vl{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new kl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const $r=new Vl,Tr={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:Ol,create:Il}=te("price"),Rl=Il({props:{...Tr},setup(e){const t=r.computed(()=>({[Ol]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>lt(e.price)==0?"":yt(e.price,e.decimalLength,!0,ye(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:a,decimalText:l}}}),Al=["innerHTML"],Dl=["innerHTML"];function Fl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Al)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Dl)):r.createCommentVNode("",!0)],2)}const pn=Ce(Rl,[["render",Fl]]),{componentName:Dt,create:Bl}=te("hint-text"),ql=Bl({components:{Price:pn},props:{...Tr,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Dt]:!0})),b=r.ref(null),S=(A,C,R=10)=>{if(!Ue||C===!1||!A)return;l.value=!0;const K=mn(e.reference);u.value=K.width,f.value=K.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const z=vr(e.reference),T=document.documentElement.clientWidth||document.body.clientWidth,y=b.value.offsetWidth,E=b.value.offsetHeight;z.y-E>=0?(c.value="top",s.value.y=z.y-E-10-4,i.value.y=E):(c.value="bottom",s.value.y=z.y+f.value+10,i.value.y=-10);const j=z.x+y-T;j<0?(s.value.x=z.x,i.value.x=20):(s.value.x=z.x-j,i.value.x=j+20),l.value=!1},R)},v=ut(()=>{S(e.message,e.visible)},10),h=r.computed(()=>e.visible&&w.value),w=r.ref(!0),p=ut(A=>{const C=A[0];C&&(w.value=C.isIntersecting)},10),$=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([A,C])=>{S(A,C)}),r.onMounted(()=>{S(e.message,e.visible),$r.watch(e.reference,v),$.observe(e.reference)}),r.onBeforeMount(()=>{$r.unwatch(e.reference,v),$.unobserve(e.reference),$.disconnect()});const I=r.computed(()=>{const A={"min-width":de(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${s.value.x}px, ${s.value.y}px)`,A}),D=r.computed(()=>({[`${Dt}__content`]:!0})),O=r.computed(()=>({})),N=r.computed(()=>({[`${Dt}__arrow`]:!0,[`${Dt}__arrow-${e.placement}`]:!0})),V=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:h,tipRef:b,classes:d,styles:I,textClasses:D,textStyles:O,arrowClasses:N,arrowStyles:V}}}),Ll={key:1,class:"text"};function Ml(e,t,o,n,a,l){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Ll,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Ft=Ce(ql,[["render",Ml]]);class xr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const yn={},jl=new xr,Je=new Map,bn=e=>{if(e){const t=document.getElementById(e);Je.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Je.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}Je.clear()}},_l=e=>{const t=document.getElementById(e.id);if(t){const o=Je.get(e.id);o?e={...yn,...o,...e}:e={...yn,...e};const n=r.createVNode(Ft,e);return r.render(n,t),e.id}},Pl=e=>{e.unmount=bn;let t;if(e.id){if(t=e.id,Je.has(t))return _l(e)}else t=`hinttext_${jl.get()}`;e={...yn,...e},e.id=t,Je.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Ft,e);return r.render(n,o),document.body.appendChild(o),t},Hl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Bt={show(e,t,o={},n=!0){return n&&bn(),Hl(t),Pl({...o,message:t,reference:e})},hide(e){bn(e)},install(e){e.config.globalProperties.$hintText=Bt}},{componentName:Er,create:zl}=te("item"),Wl=zl({inheritAttrs:!0,props:{...ce,...we},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;fe({componentName:Er,validate:!1},o);const n=De(),a=kt();Vt(!1);const l=r.computed(()=>a&&n?Ot(n,!1).value:null),s=Er,i=r.ref(null),u=r.computed(()=>{const P={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(P[e.errorMarkClass]=!!K.value,P[e.warnMarkClass]=!!C.value,P[e.infoMarkClass]=!!V.value,typeof i.value=="function"){const X=i.value(o);P[X]=!0}else if(typeof i.value=="string"){const X=i.value;P[X]=!0}return P}),f=r.computed(()=>{const P={},X=a&&n?It(n,!1):null;if(l.value&&X)if(l.value.type==="grid"){const W=At(X,l.value,e.span,e.offset);Object.assign(P,W)}else if(l.value.type==="flow"){const W=Rt(X,l.value,e.span,e.offset,e.width);Object.assign(P,W)}else return e.width&&(P.width=de(e.width)),P;else e.width&&(P.width=de(e.width));return P}),c=r.ref(null),d=r.computed({get:()=>c.value??re(e.isRequired),set:P=>{c.value=P}}),b=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),S=Te(r.toRef(e,"labelPosition"),"labelPosition",Ee.Near),v=r.computed(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),h=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${v.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Te(r.toRef(e,"labelWidth"),"labelWidth",Ee.Near),$=r.computed(()=>p&&p.value?{width:de(p.value)}:{}),I=r.computed(()=>({"label--string":!0,"label--required":d.value})),D=r.computed(()=>({content:!0,[e.contentClass]:!0})),O=r.computed(()=>({...e.contentStyle})),N=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});he({setRequired(P){d.value=P},setErrorTip(P){N.errorTip=P},setErrorIcon(P){N.errorIcon=P},setWarnTip(P){N.warnTip=P},setWarnIcon(P){N.warnIcon=P},setInfoTip(P){N.infoTip=P},setInfoIcon(P){N.infoIcon=P},setCustomClassName(P){i.value=P}});const V=r.computed(()=>e.infoTip||N.infoTip),A=r.computed(()=>e.infoIcon||N.infoIcon),C=r.computed(()=>e.warnTip||N.warnTip),R=r.computed(()=>e.warnIcon||N.warnIcon),K=r.computed(()=>e.errorTip||N.errorTip),z=r.computed(()=>e.errorIcon||N.errorIcon),T=r.computed(()=>K.value?"error":C.value?"warn":V.value?"info":""),y=r.computed(()=>T.value.length>0),E=r.computed(()=>T.value==="error"?K.value:T.value==="warn"?C.value:T.value==="info"?V.value:""),j=r.computed(()=>T.value==="error"?z.value:T.value==="warn"?R.value:T.value==="info"?A.value:null),L=r.computed(()=>{let P={[`${s}__tip`]:!0,[`${s}__tip--${T.value}`]:!0};return T.value==="error"&&e.errorClass?P[`${e.errorClass}`]=!0:T.value==="warn"&&e.warnClass?P[`${e.warnClass}`]=!0:T.value==="info"&&e.infoClass&&(P[`${e.infoClass}`]=!0),P}),F=r.computed(()=>{let P={};return S&&S.value==="top"||!b.value?P["padding-left"]="0px":p&&p.value&&(P["padding-left"]=de(p.value)),P}),x=()=>r.h(j.value,{width:12,height:12}),k=r.computed(()=>t.slots.fixedTip),_=r.computed(()=>({[`${s}__fixed-tip`]:!0})),B=r.ref();let Y="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([P,X,W,M])=>{B.value&&(P&&!se(X)?Y?Bt.show(B.value,X,{...M,id:Y,type:W},!0):Y=Bt.show(B.value,X,{...M,type:W},!0):Bt.hide(Y))});let G=null;const Z=()=>{G||!B.value||(G=new IntersectionObserver(P=>{let X=!1;for(let W of P)if(W.intersectionRatio>0){X=!0,X&&t.emit("appear",W);break}X||t.emit("disappear")}),G.observe(B.value))},J=()=>{!G||!B.value||(G.unobserve(B.value),G=null)};return r.watch(()=>re(e.appearListen),P=>{P?Z():J()}),r.onMounted(()=>{re(e.appearListen)&&Z()}),r.onUnmounted(J),{classes:u,styles:f,mainClasses:h,hasLabel:b,labelClasses:w,labelStyles:$,labelStringClasses:I,contentClasses:D,contentStyles:O,contentRef:B,hasTip:y,mTip:E,mIcon:j,renderIcon:x,tipClasses:L,tipStyles:F,hasFixedTip:k,fixedTipClasses:_}}}),Kl=["prop"],Yl={key:0,class:"fox-item__tip--icon"},Ul={class:"fox-item__tip--text"};function Gl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",Yl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Ul,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Kl)}const ge=Ce(Wl,[["render",Gl]]);function Xl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=De(),l=kt();Vt(!1);const s=r.computed(()=>l&&a?Ot(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?It(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const b=At(d,s.value,o.span,o.offset);Object.assign(c,b)}else if(s.value.type==="flow"){const b=Rt(d,s.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=de(o.width)),c;else o.width&&(c.width=de(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Zl,create:Jl,scope:nf}=te("slot-item"),Cr=Jl(Xl(Zl));function Ql(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=De(),i=kt();Vt(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Ot(s,!1),d=It(s,!1);if(c.value&&d)if(c.value.type==="grid"){const b=At(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=Rt(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=de(o.width))}else o.width&&(f.width=de(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const S=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(S)}f.push(d[b])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:ei,create:ti,scope:rf}=te("row-item"),Nr=ti(Ql(ei)),kr={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function ni(e,t,o){return{props:{...ce,...we,...kr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,S=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:s.value})),v=T=>{d.value=T,i("update:modelValue",T),i("input",T)},h=T=>{i("change",T)};let w=oe(n,"hintText"),p=r.ref(!1);const $=T=>{let E=T.target.value;c.value=!0,se(w.value)||(p.value=!0),i("focus",E,T)},I=T=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let E=T.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,T)},D=()=>{i("clear","")},O=r.ref(!1);let N=null;const V=()=>{n.showTooltip&&O.value===!1&&(N=setTimeout(()=>{O.value=!0},150))},A=()=>{N&&(clearTimeout(N),O.value=!1,N=null)},C=r.computed(()=>O.value||p.value),R=r.computed(()=>O.value?d.value:w.value),K=r.computed(()=>lt(n.unit)>0),z=r.ref();return he({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:S.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onChange:h,onInput:v,onFocus:$,onBlur:I,onMouseover:V,onMouseleave:A},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:K.value&&(E.suffix=()=>[n.unit]);const j=[],L=r.h(m.ElInput,y,E);j.push(L);const F={default:()=>j};a.slots.default&&(F.label=a.slots.default),a.slots.default&&(F.fixedTip=a.slots.fixedTip);const k={...be(n,kr),hintText:R.value,hintVisible:C.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:ri,create:oi,scope:ai}=te("input-item"),Vr=oi(ni(ri,ai,ge));function We(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Or(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function li(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ii=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ve(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Le(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function si(){const e=r.getCurrentInstance();return new ii(e.proxy)}function Ir(e,t,o){const n=We(e,t),a=We(e,o);if(n!==a)return!1;const l=dt(e,t),s=dt(e,o);return l===s}function Rr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let s of n){const i=Or(e,s);if(Array.isArray(i)&&i.length>0){const u=Rr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=We(e,s)===l;else if(o==="item")u=Ir(e,s,l);else{let f=dt(e,s);f==null&&(f=We(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function ui(e){return{text:e,value:e}}const Ar={modelValue:{type:[String,Object,Boolean,Number],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1}};function ci(e,t,o){return{props:{...ce,...we,...Ar},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=(B,Y,G,Z=!0)=>{const J=Rr(n,B,Y,G);if(J===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let P=!0;if(J.length!==d.value.length)P=!1;else for(let X=0;X<J.length;X++){const W=J[X],M=d.value[X];if(!Ir(n,W,M)){P=!1;break}}if(!P){d.value=J;let X=[],W=[],M=[];J.forEach(ee=>{const Q=dt(n,ee),le=We(n,ee);X.push(Q),M.push(le),n.valueType==="text"?W.push(le):n.valueType==="item"?W.push(ee):W.push(Q)});let q,H,U;n.multiple?(c.value=X,q=r.toRaw(W),H=M,U=r.toRaw(J)):(c.value=X[0]??"",q=r.toRaw(W[0]??""),H=M[0]??"",U=r.toRaw(J[0])),Z&&(i("update:modelValue",q),i("change",q,U)),i("update:text",H)}},S=r.ref(null),v=r.ref(null),h=r.computed(()=>v.value??S.value??[]),w=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,B=>re(B)),p=si(),$=async(B,Y)=>{if(B){const G=await p.load("select",B,Y);if(G.length>0)if(typeof G[0]=="string"){let P=G.map(X=>ui(X));S.value=P}else S.value=G;else S.value=null}};r.watch([()=>n.source,()=>n.params],([B,Y])=>{$(B,Y)},{immediate:!w.value});let I=!1;const D=()=>{I||(I=!0,$(n.source,n.params))};r.watch([()=>h.value,()=>n.modelValue],([B,Y])=>{b(Y,n.valueType,B,!1)});let O=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(O=async B=>{if(B==null){v.value=null;return}N.value=!0;try{const Y=await n.remoteMethod(B);Y&&(v.value=Y)}catch(Y){v.value=null,console.error(Y)}N.value=!1});let V=null;typeof n.filterMethod=="function"&&(V=async B=>{if(B==null){v.value=null;return}N.value=!0;try{const Y=await n.filterMethod(B,S.value);Y&&(v.value=Y)}catch(Y){v.value=null,console.error(Y)}N.value=!1});const A=r.ref(!1),C=e,R=r.computed(()=>({[C]:!0})),K=B=>{n.allowCreate?(i("update:modelValue",B),i("change",B),i("update:text",B),c.value=B):b(B,"value",h.value,!0)};let z=oe(n,"hintText"),T=r.ref(!1);const y=B=>{let G=B.target.value;A.value=!0,se(z.value)||(T.value=!0),i("focus",G,B)},E=B=>{setTimeout(()=>{T.value&&(T.value=!1),A.value=!1},0);let G=B.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),L.value||i("blur",G,B)},j=()=>{i("clear","")},L=r.ref(!1),F=B=>{L.value=B,i("visible-change",B),B||i("selected")},x=B=>{i("remove-tag",B)},k=(B,Y)=>{const G=[];return B.forEach((Z,J)=>{const P=Or(n,Z);if(Array.isArray(P)&&P.length>0){const X=k(P,Y),W=We(n,Z),q={key:`${W}_${J}`,label:W};G.push(r.h(m.ElOptionGroup,q,{default:()=>X}))}else{const X=dt(n,Z),W=We(n,Z),M=li(n,Z),H={key:`${X}_${J}`,label:W,disabled:M,value:X};if(typeof Y=="function")G.push(r.h(m.ElOption,H,{default:()=>Y(Z)}));else if(n.optionType==="item"){const U={class:{"fox-select-item__option-left":!0}},ee=r.h("span",U,[X]),Q={class:{"fox-select-item__option-right":!0}},le=r.h("span",Q,[W]),$e=r.h("div",{class:{"fox-select-item__option":!0}},[ee,le]);G.push(r.h(m.ElOption,H,{default:()=>$e}))}else n.optionType==="value"?G.push(r.h(m.ElOption,H,{default:()=>[X]})):G.push(r.h(m.ElOption,H))}}),G},_=r.ref();return he({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()}}),()=>{const Y={...a.attrs,ref:_,class:R.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:j,onChange:K,onFocus:y,onBlur:E,onVisibleChange:F,onRemoveTag:x};typeof O=="function"&&(Y["remote-method"]=O,Y.loading=N.value),typeof V=="function"&&(Y["filter-method"]=V,Y.loading=N.value);const G={};a.slots.prefix&&(G.prefix=a.slots.prefix),a.slots.empty&&(G.empty=a.slots.empty),a.slots.options?G.default=a.slots.options:G.default=()=>k(h.value,a.slots.option);const Z=[],J=r.h(m.ElSelect,Y,G);Z.push(J);const P={default:()=>Z};a.slots.default&&(P.label=a.slots.default),a.slots.fixedTip&&(P.fixedTip=a.slots.fixedTip);const W={...be(n,Ar),hintText:z.value,hintVisible:T.value,prop:`${n.prop??a.attrs.name}_item`};return w.value&&(W["appear-listen"]=!0,W.onAppear=D),r.h(o,W,P)}}}}const{componentName:fi,create:di,scope:hi}=te("select-item"),Dr=di(ci(fi,hi,ge));var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",b="quarter",S="year",v="date",h="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,$={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("_")},I=function(T,y,E){var j=String(T);return!j||j.length>=y?T:""+Array(y+1-j.length).join(E)+T},D={s:I,z:function(T){var y=-T.utcOffset(),E=Math.abs(y),j=Math.floor(E/60),L=E%60;return(y<=0?"+":"-")+I(j,2,"0")+":"+I(L,2,"0")},m:function T(y,E){if(y.date()<E.date())return-T(E,y);var j=12*(E.year()-y.year())+(E.month()-y.month()),L=y.clone().add(j,d),F=E-L<0,x=y.clone().add(j+(F?-1:1),d);return+(-(j+(E-L)/(F?L-x:x-L))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:S,w:c,d:f,D:v,h:u,m:i,s,ms:l,Q:b}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},O="en",N={};N[O]=$;var V=function(T){return T instanceof K},A=function T(y,E,j){var L;if(!y)return O;if(typeof y=="string"){var F=y.toLowerCase();N[F]&&(L=F),E&&(N[F]=E,L=F);var x=y.split("-");if(!L&&x.length>1)return T(x[0])}else{var k=y.name;N[k]=y,L=k}return!j&&L&&(O=L),L||!j&&O},C=function(T,y){if(V(T))return T.clone();var E=typeof y=="object"?y:{};return E.date=T,E.args=arguments,new K(E)},R=D;R.l=A,R.i=V,R.w=function(T,y){return C(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var K=function(){function T(E){this.$L=A(E.locale,null,!0),this.parse(E)}var y=T.prototype;return y.parse=function(E){this.$d=function(j){var L=j.date,F=j.utc;if(L===null)return new Date(NaN);if(R.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var x=L.match(w);if(x){var k=x[2]-1||0,_=(x[7]||"0").substring(0,3);return F?new Date(Date.UTC(x[1],k,x[3]||1,x[4]||0,x[5]||0,x[6]||0,_)):new Date(x[1],k,x[3]||1,x[4]||0,x[5]||0,x[6]||0,_)}}return new Date(L)}(E),this.$x=E.x||{},this.init()},y.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},y.$utils=function(){return R},y.isValid=function(){return this.$d.toString()!==h},y.isSame=function(E,j){var L=C(E);return this.startOf(j)<=L&&L<=this.endOf(j)},y.isAfter=function(E,j){return C(E)<this.startOf(j)},y.isBefore=function(E,j){return this.endOf(j)<C(E)},y.$g=function(E,j,L){return R.u(E)?this[j]:this.set(L,E)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(E,j){var L=this,F=!!R.u(j)||j,x=R.p(E),k=function(X,W){var M=R.w(L.$u?Date.UTC(L.$y,W,X):new Date(L.$y,W,X),L);return F?M:M.endOf(f)},_=function(X,W){return R.w(L.toDate()[X].apply(L.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(W)),L)},B=this.$W,Y=this.$M,G=this.$D,Z="set"+(this.$u?"UTC":"");switch(x){case S:return F?k(1,0):k(31,11);case d:return F?k(1,Y):k(0,Y+1);case c:var J=this.$locale().weekStart||0,P=(B<J?B+7:B)-J;return k(F?G-P:G+(6-P),Y);case f:case v:return _(Z+"Hours",0);case u:return _(Z+"Minutes",1);case i:return _(Z+"Seconds",2);case s:return _(Z+"Milliseconds",3);default:return this.clone()}},y.endOf=function(E){return this.startOf(E,!1)},y.$set=function(E,j){var L,F=R.p(E),x="set"+(this.$u?"UTC":""),k=(L={},L[f]=x+"Date",L[v]=x+"Date",L[d]=x+"Month",L[S]=x+"FullYear",L[u]=x+"Hours",L[i]=x+"Minutes",L[s]=x+"Seconds",L[l]=x+"Milliseconds",L)[F],_=F===f?this.$D+(j-this.$W):j;if(F===d||F===S){var B=this.clone().set(v,1);B.$d[k](_),B.init(),this.$d=B.set(v,Math.min(this.$D,B.daysInMonth())).$d}else k&&this.$d[k](_);return this.init(),this},y.set=function(E,j){return this.clone().$set(E,j)},y.get=function(E){return this[R.p(E)]()},y.add=function(E,j){var L,F=this;E=Number(E);var x=R.p(j),k=function(Y){var G=C(F);return R.w(G.date(G.date()+Math.round(Y*E)),F)};if(x===d)return this.set(d,this.$M+E);if(x===S)return this.set(S,this.$y+E);if(x===f)return k(1);if(x===c)return k(7);var _=(L={},L[i]=n,L[u]=a,L[s]=o,L)[x]||1,B=this.$d.getTime()+E*_;return R.w(B,this)},y.subtract=function(E,j){return this.add(-1*E,j)},y.format=function(E){var j=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var F=E||"YYYY-MM-DDTHH:mm:ssZ",x=R.z(this),k=this.$H,_=this.$m,B=this.$M,Y=L.weekdays,G=L.months,Z=function(W,M,q,H){return W&&(W[M]||W(j,F))||q[M].slice(0,H)},J=function(W){return R.s(k%12||12,W,"0")},P=L.meridiem||function(W,M,q){var H=W<12?"AM":"PM";return q?H.toLowerCase():H},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:B+1,MM:R.s(B+1,2,"0"),MMM:Z(L.monthsShort,B,G,3),MMMM:Z(G,B),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:Z(L.weekdaysMin,this.$W,Y,2),ddd:Z(L.weekdaysShort,this.$W,Y,3),dddd:Y[this.$W],H:String(k),HH:R.s(k,2,"0"),h:J(1),hh:J(2),a:P(k,_,!0),A:P(k,_,!1),m:String(_),mm:R.s(_,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:x};return F.replace(p,function(W,M){return M||X[W]||x.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(E,j,L){var F,x=R.p(j),k=C(E),_=(k.utcOffset()-this.utcOffset())*n,B=this-k,Y=R.m(this,k);return Y=(F={},F[S]=Y/12,F[d]=Y,F[b]=Y/3,F[c]=(B-_)/6048e5,F[f]=(B-_)/864e5,F[u]=B/a,F[i]=B/n,F[s]=B/o,F)[x]||B,L?Y:R.a(Y)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return N[this.$L]},y.locale=function(E,j){if(!E)return this.$L;var L=this.clone(),F=A(E,j,!0);return F&&(L.$L=F),L},y.clone=function(){return R.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},T}(),z=K.prototype;return C.prototype=z,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",S],["$D",v]].forEach(function(T){z[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),C.extend=function(T,y){return T.$i||(T(y,K,C),T.$i=!0),C},C.locale=A,C.isDayjs=V,C.unix=function(T){return C(1e3*T)},C.en=N[O],C.Ls=N,C.p={},C})})(Fr);var gi=Fr.exports;const Oe=Be(gi);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(w){this[h]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var p=w.match(/([+-]|\d\d)/g),$=60*p[1]+(+p[2]||0);return $===0?0:p[0]==="+"?-$:$}(h)}],d=function(h){var w=i[h];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(h,w){var p,$=i.meridiem;if($){for(var I=1;I<=24;I+=1)if(h.indexOf($(I,0,w))>-1){p=I>12;break}}else p=h===(w?"pm":"PM");return p},S={A:[s,function(h){this.afternoon=b(h,!1)}],a:[s,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[a,f("day")],Do:[s,function(h){var w=i.ordinal,p=h.match(/\d+/);if(this.day=p[0],w)for(var $=1;$<=31;$+=1)w($).replace(/\[|\]/g,"")===h&&(this.day=$)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(h){var w=d("months"),p=(d("monthsShort")||w.map(function($){return $.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(h){var w=d("months").indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function v(h){var w,p;w=h,p=i&&i.formats;for(var $=(h=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,R,K){var z=K&&K.toUpperCase();return R||p[K]||o[K]||p[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,y,E){return y||E.slice(1)})})).match(n),I=$.length,D=0;D<I;D+=1){var O=$[D],N=S[O],V=N&&N[0],A=N&&N[1];$[D]=A?{regex:V,parser:A}:O.replace(/^\[|\]$/g,"")}return function(C){for(var R={},K=0,z=0;K<I;K+=1){var T=$[K];if(typeof T=="string")z+=T.length;else{var y=T.regex,E=T.parser,j=C.slice(z),L=y.exec(j)[0];E.call(R,L),C=C.replace(L,"")}}return function(F){var x=F.afternoon;if(x!==void 0){var k=F.hours;x?k<12&&(F.hours+=12):k===12&&(F.hours=0),delete F.afternoon}}(R),R}}return function(h,w,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var $=w.prototype,I=$.parse;$.parse=function(D){var O=D.date,N=D.utc,V=D.args;this.$u=N;var A=V[1];if(typeof A=="string"){var C=V[2]===!0,R=V[3]===!0,K=C||R,z=V[2];R&&(z=V[2]),i=this.$locale(),!C&&z&&(i=p.Ls[z]),this.$d=function(j,L,F){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*j);var x=v(L)(j),k=x.year,_=x.month,B=x.day,Y=x.hours,G=x.minutes,Z=x.seconds,J=x.milliseconds,P=x.zone,X=new Date,W=B||(k||_?1:X.getDate()),M=k||X.getFullYear(),q=0;k&&!_||(q=_>0?_-1:X.getMonth());var H=Y||0,U=G||0,ee=Z||0,Q=J||0;return P?new Date(Date.UTC(M,q,W,H,U,ee,Q+60*P.offset*1e3)):F?new Date(Date.UTC(M,q,W,H,U,ee,Q)):new Date(M,q,W,H,U,ee,Q)}catch{return new Date("")}}(O,A,N),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),K&&O!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var T=A.length,y=1;y<=T;y+=1){V[1]=A[y-1];var E=p.apply(this,V);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}y===T&&(this.$d=new Date(""))}else I.call(this,D)}}})})(Br);var mi=Br.exports;const pi=Be(mi);var qr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),b==="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 b}});return s.bind(this)(d)}}})})(qr);var yi=qr.exports;const bi=Be(yi);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,b,S,v,h){var w=d.name?d:d.$locale(),p=s(w[b]),$=s(w[S]),I=p||$.map(function(O){return O.slice(0,v)});if(!h)return I;var D=w.weekStart;return I.map(function(O,N){return I[(N+(D||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,h,w){return h||w.slice(1)})}(d.formats[b.toUpperCase()])},c=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):i(d,"months")},monthsShort:function(b){return b?b.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):i(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return f(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return f(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Lr);var wi=Lr.exports;const Si=Be(wi);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){var o="week",n="year";return function(a,l,s){var i=l.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var b=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),S=this.diff(b,o,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Mr);var vi=Mr.exports;const $i=Be(vi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(jr);var Ti=jr.exports;const xi=Be(Ti);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(_r);var Ei=_r.exports;const Ci=Be(Ei);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Pr);var Ni=Pr.exports;const ki=Be(Ni);var Hr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Fe,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(Hr);var Vi=Hr.exports;const Oi=Be(Vi);Oe.extend(Si),Oe.extend(bi),Oe.extend(pi),Oe.extend($i),Oe.extend(xi),Oe.extend(Ci),Oe.extend(ki),Oe.extend(Oi);const ht={format(e,t){return Oe(e).format(t)},parser(e,t){return Oe(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=l-(s-1)*i,f=l+(7-s)*i,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ht.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ht.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Wr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Ii(e,t,o){return{props:{...ce,...we,...zr,...Wr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,S=r.computed(()=>({[`${b}__input`]:!0})),v=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let h=oe(n,"hintText"),w=r.ref(!1);const p=y=>{let j=y.target.value;c.value=!0,se(h.value)||(w.value=!0),i("focus",j,y)},$=y=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let j=y.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),i("blur",j,y)},I=()=>{i("clear","")},D=y=>{i("calendar-change",y)},O=(y,E,j)=>{i("panel-change",y,E,j)},N=y=>{i("visible-change",y)},V=Te(r.computed(()=>n.longTermValue),"longTermText",Ee.Near),A=Te(r.computed(()=>n.longTermValue),"longTermValue",Ee.Near);let C=null;const R=r.ref(re(n.longTerm)),K=y=>{if(R.value=y,i("update:longTerm",y),y){let E="";Array.isArray(A.value)?E=A.value.map((j,L)=>j||(Array.isArray(d.value)?d.value[L]:n.valueFormat?ht.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else i("update:modelValue",C)},z=re(n.isLongTerm);if(z){const y=()=>{if(R.value===!0){let E="";Array.isArray(A.value)?E=A.value.map((j,L)=>j||(Array.isArray(d.value)?d.value[L]:n.valueFormat?ht.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else Me(A.value,d.value)&&(R.value=!0)};y(),r.watch([()=>n.longTerm],([E])=>{R.value!==E&&y()})}const T=r.ref();return he({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},handleOpen:()=>{T?.value.handleOpen()},handleClose:()=>{T?.value.handleClose()}}),()=>{const E={...a.attrs,ref:T,class:S.value,placeholder:f.placeholder.value,disabled:l.value||R.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":v,onClear:I,onFocus:p,onBlur:$,onCalendarChange:D,onPanelChange:O,onVisibleChange:N},j={};a.slots["range-separator"]&&(j["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(j.default=a.slots.cell);const L=[],F=r.h(m.ElDatePicker,E,j);L.push(F);const x={default:()=>L};if(a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip),z){const Y={label:V.value,disabled:s.value||l.value,modelValue:R.value,"onUpdate:modelValue":K},G=r.h(m.ElCheckbox,Y),Z=r.h("div",{class:{[`${b}__append`]:!0}},[G]);x.append=()=>Z}const _={...be(n,zr,Wr),class:{[`${b}__wrapper`]:!0,"has-append":z},hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,_,x)}}}}const{componentName:Ri,create:Ai,scope:Di}=te("date-item"),Kr=Ai(Ii(Ri,Di,ge)),Yr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Fi(e,t,o){return{props:{...ce,...we,...Yr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,S=r.computed(()=>({[b]:!0})),v=N=>{d.value=N,i("update:modelValue",N),i("change",N)};let h=oe(n,"hintText"),w=r.ref(!1);const p=N=>{let A=N.target.value;c.value=!0,se(h.value)||(w.value=!0),i("focus",A,N)},$=N=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let A=N.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,N)},I=()=>{i("clear","")},D=N=>{i("visible-change",N)},O=r.ref();return he({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()}}),()=>{const V={...a.attrs,ref:O,class:S.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":v,onClear:I,onFocus:p,onBlur:$,onVisibleChange:D},A={},C=[],R=r.h(m.ElTimePicker,V,A);C.push(R);const K={default:()=>C};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const T={...be(n,Yr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,T,K)}}}}const{componentName:Bi,create:qi,scope:Li}=te("time-item"),Ur=qi(Fi(Bi,Li,ge)),Gr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...ce,...we,...Gr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,S=r.computed(()=>({[b]:!0})),v=O=>{d.value=O,i("update:modelValue",O),i("change",O)};let h=oe(n,"hintText"),w=r.ref(!1);const p=O=>{let V=O.target.value;c.value=!0,se(h.value)||(w.value=!0),i("focus",V,O)},$=O=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let V=O.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,O)},I=()=>{i("clear","")},D=r.ref();return he({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()}}),()=>{const N={...a.attrs,ref:D,class:S.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":v,onClear:I,onFocus:p,onBlur:$},V={},A=[],C=r.h(m.ElTimeSelect,N,V);A.push(C);const R={default:()=>A};a.slots.default&&(R.label=a.slots.default),a.slots.fixedTip&&(R.fixedTip=a.slots.fixedTip);const z={...be(n,Gr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,z,R)}}}}const{componentName:ji,create:_i,scope:Pi}=te("time-select-item"),Xr=_i(Mi(ji,Pi,ge));function Zr(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Jr(e,t,o=20){if(typeof t=="string"&&(t=ye(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Dn(`${e}`,`${t}`);return Zr(n)}else{let n=Xt(`${e}`,Fn(`${t}`),20);return Zr(n)}}function Hi(e,t=-1,o=!1,n=3,a=","){return yt(e,t,o,n,a)}function Qr(e,t,o,n,a=!0){if(e=="")return"";if(e=Bn(e),t=ye(t),t==1)return e;if(n)e=Jr(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ye(o)+2,"0"):e=Xt(e,1,ye(o)));else{let l=-1*t;e=Jr(e,l)}return e}function eo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=Zt(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),a=Zt(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const to={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 zi(e,t,o){return{props:{...ce,...we,...to},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(!1),f=oe(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([T,y,E])=>{if(se(T)){c.value="";return}const j=Qr(T,y,E,!1);c.value!==j&&(c.value=j)},{immediate:!0});const d=r.computed(()=>{let T="";return u.value&&(T=c.value),T}),{t:b}=Ne.useFoxI18n(t),S=r.computed(()=>{let T=n.placeholder??"";return!u.value&&!se(c.value)?T=Hi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):T=b(["placeholder",T]),T}),v=e,h=r.computed(()=>({[v]:!0,[`${v}__disabled`]:l.value,[`${v}__placeholder`]:c.value.length>0})),w=Te(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const p=r.ref(""),$=r.computed(()=>{let T=p.value;return se(T)&&(T=n.errorTip??""),T}),I=r.ref(""),D=r.ref(!1),O=(T,y)=>{if(T=`${T}`,se(T)){c.value="",f.value="",y.forEach(E=>{i(E,"")}),re(n.showTip)&&D.value&&(D.value=!1);return}if(T.length>=2){let E=T;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){r.triggerRef(c);return}}if(T!="-"){if(!Wn(T)){r.triggerRef(c);return}if(n.integerLength!=-1&&Kn(T)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Yn(T)>Number(n.decimalLength)){r.triggerRef(c);return}let E=eo(T,n);if(E.maxValid===!1){p.value=E.message,r.triggerRef(c);return}}else if(n.min!=null&&ye(n.min)>=0){r.triggerRef(c);return}I.value=T,re(n.showTip)&&(D.value=T.length>0),c.value=T,f.value=Qr(T,n.rates,n.precision,!0),y.forEach(E=>{i(E,f.value)})},N=T=>{O(T,["update:modelValue","input"])},V=T=>{O(T,["update:modelValue","change"])},A=T=>{if(u.value=!0,re(n.showTip)){let y=c.value;se(y)&&(y=n.hintText),se(y)||(I.value=y,D.value=!0)}p.value="",i("focus",f.value,T)},C=T=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&D.value===!0&&(D.value=!1)},0),!se(c.value)){let y=eo(c.value,n);if(y.minValid===!1||y.maxValid===!1){p.value=y.message;return}}i("update:modelValue",f.value,T),i("blur",f.value,T)},R=()=>{i("clear","")},K=r.computed(()=>lt(n.unit)>0),z=r.ref();return he({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:S.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onInput:N,onChange:V,onFocus:A,onBlur:C},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:K.value&&(E.suffix=()=>[n.unit]);const j=[],L=r.h(m.ElInput,y,E);j.push(L);const F={default:()=>j};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...be(n,to),errorTip:$.value,hintText:I.value,hintVisible:D.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Wi,create:Ki,scope:Yi}=te("money-item"),no=Ki(zi(Wi,Yi,ge)),ro={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 Ui(e,t,o){return{props:{...ce,...we,...ro},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,S=r.computed(()=>({[b]:!0,[`${b}__append`]:N.value})),v=r.computed(()=>({[`${b}__unit`]:!0})),h=A=>{d.value=A,i("update:modelValue",A),i("input",A)},w=A=>{i("change",A)};let p=oe(n,"hintText"),$=r.ref(!1);const I=A=>{let R=A.target.value;c.value=!0,se(p.value)||($.value=!0),i("focus",R,A)},D=A=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let R=A.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,A)},O=()=>{i("clear","")},N=r.computed(()=>lt(n.unit)>0),V=r.ref();return he({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const C={...a.attrs,ref:V,class:S.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:O,onChange:w,onInput:h,onFocus:I,onBlur:D},R={},K=[],z=r.h(m.ElInputNumber,C,R);K.push(z);const T={default:()=>K};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const E={...be(n,ro),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};if(a.slots.append)T.append=a.slots.append;else if(N.value){const L={class:v.value},F=r.h("div",L,[n.unit]);T.append=()=>F}return r.h(o,E,T)}}}}const{componentName:Gi,create:Xi,scope:Zi}=te("input-number-item"),oo=Xi(Ui(Gi,Zi,ge));function Qe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ke(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ji(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Ve(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Le(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function es(){const e=r.getCurrentInstance();return new Qi(e.proxy)}function wn(e,t,o){const n=Qe(e,t),a=Qe(e,o);if(n!==a)return!1;const l=Ke(e,t),s=Ke(e,o);return l===s}function ao(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=ao(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Qe(e,f)===i;else if(o==="item")u=wn(e,f,i);else{let c=Ke(e,f);c==null&&(c=Qe(e,f)),u=c===i}if(u){a.push(f),l=Ji(e,f);break}}if(!u)break}}return a}function ts(e){return{text:e,value:e}}const lo={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function ns(e,t,o){return{props:{...ce,...we,...lo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=(k,_,B,Y=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===k)return;c.value=k;const J=r.toRaw(k);if(Y){const P=x?.value.getCheckedNodes();if(P)if(n.multiple){const X=[];P.forEach(W=>{const q=(W.pathNodes??[]).map(H=>H.data);X.push(q)}),i("update:pathNodes",X)}else{const W=(P[0]?.pathNodes??[]).map(M=>M.data);i("update:pathNodes",W)}i("update:modelValue",J),i("change",J)}}const G=ao(n,k,_,B);if(G===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,Y&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let Z=!0;if(G.length!==d.value.length)Z=!1;else for(let J=0;J<G.length;J++){const P=G[J],X=d.value[J];if(Array.isArray(P)){if(!Array.isArray(X)||P.length!==X.length)Z=!1;else for(let W=0;W<P.length;W++)if(!wn(n,P[W],X[W])){Z=!1;break}}else wn(n,P,X)||(Z=!1);if(!Z)break}if(!Z){d.value=G;let J=[],P=[];G.forEach(W=>{if(Array.isArray(W)){let M=[],q=[];for(let H of W)M.push(Ke(n,H)),n.valueType==="text"?q.push(Qe(n,H)):n.valueType==="item"?q.push(H):q.push(Ke(n,H));J.push(M),P.push(q)}else J.push(Ke(n,W)),n.valueType==="text"?P.push(Qe(n,W)):n.valueType==="item"?P.push(W):P.push(Ke(n,W))}),c.value=J;const X=r.toRaw(P);Y&&(i("update:pathNodes",G),i("update:modelValue",X),i("change",X))}},S=r.ref([]),v=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,k=>re(k)),h=es(),w=async(k,_)=>{if(k){const B=await h.load("cascader",k,_);if(B.length>0)if(typeof B[0]=="string"){let Z=B.map(J=>ts(J));S.value=Z}else S.value=B}};r.watch([()=>n.source,()=>n.params],async([k,_])=>{w(k,_)},{immediate:!(v.value||n.lazy)});let p=!1;const $=()=>{p||(p=!0,w(n.source,n.params))};r.watch([()=>S.value,()=>n.modelValue],([k,_])=>{b(_,n.valueType,k,!1)}),n.lazy&&b(n.modelValue,"value",[],!1);let I=null,D=r.ref(!1);typeof n.remoteMethod=="function"&&(I=async k=>{if(k!=null){D.value=!0;try{const _=await n.remoteMethod(k);S.value=_}catch(_){console.error(_)}D.value=!1}});const O=r.ref(!1),N=e,V=r.computed(()=>({[N]:!0})),A=r.computed(()=>{let k={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(k.multiple=!0),n.props&&Object.assign(k,n.props),n.lazy&&(k.lazy=!0,k.lazyLoad=async(_,B)=>{const Y=await h.load("cascader",n.source,_,!0);B(Y)}),k}),C=k=>{n.allowCreate?(i("update:modelValue",k),i("change",k),c.value=k):b(k,"value",S.value,!0)};let R=oe(n,"hintText"),K=r.ref(!1);const z=k=>{let B=k.target.value;O.value=!0,se(R.value)||(K.value=!0),i("focus",B,k)},T=k=>{setTimeout(()=>{K.value&&(K.value=!1),O.value=!1},0);let B=k.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),E.value||i("blur",B,k)},y=()=>{i("clear","")},E=r.ref(!1),j=k=>{E.value=k,i("visible-change",k),k||i("selected")},L=k=>{i("remove-tag",k)},F=k=>{i("expand-change",k)},x=r.ref();return he({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},getCheckedNodes:()=>x?.value.getCheckedNodes()}),()=>{const _={...a.attrs,ref:x,class:V.value,props:A.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:S.value,modelValue:c.value,onClear:y,onChange:C,onFocus:z,onBlur:T,onVisibleChange:j,onRemoveTag:L,expandChange:F};typeof I=="function"&&(_["remote-method"]=I,_.loading=D.value);const B={};a.slots.option&&(B.default=a.slots.option),a.slots.empty&&(B.empty=a.slots.empty);const Y=[],G=r.h(m.ElCascader,_,B);Y.push(G);const Z={default:()=>Y};a.slots.default&&(Z.label=a.slots.default),a.slots.fixedTip&&(Z.fixedTip=a.slots.fixedTip);const P={...be(n,lo),hintText:R.value,hintVisible:K.value,prop:`${n.prop??a.attrs.name}_item`};return v.value&&!n.lazy&&(P["appear-listen"]=!0,P.onAppear=$),r.h(o,P,Z)}}}}const{componentName:rs,create:os,scope:as}=te("cascader-item"),io=os(ns(rs,as,ge)),so={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ls(e,t,o){return{props:{...ce,...we,...so},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ne.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,S=r.computed(()=>({[b]:!0})),v=V=>{d.value=V,i("update:modelValue",V),i("input",V)},h=V=>{i("change",V)},w=V=>{i("select",V)};let p=oe(n,"hintText"),$=r.ref(!1);const I=V=>{let C=V.target.value;c.value=!0,se(p.value)||($.value=!0),i("focus",C,V)},D=V=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let C=V.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),i("blur",C,V)},O=()=>{i("clear","")},N=r.ref();return he({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const A={...a.attrs,ref:N,class:S.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:O,onChange:h,onInput:v,onFocus:I,onBlur:D,onSelect:w},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix&&(C.suffix=a.slots.suffix),a.slots.option&&(C.default=a.slots.option);const R=[],K=r.h(m.ElAutocomplete,A,C);R.push(K);const z={default:()=>R};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...be(n,so),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,y,z)}}}}const{componentName:is,create:ss,scope:us}=te("autocomplete-item"),uo=ss(ls(is,us,ge));function cs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(b=>b[n]===c);if(!d)break;s.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;s.push(d[o]),u=d[a]}}return s}let fs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ve(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Le(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ds(){const e=r.getCurrentInstance();return new fs(e.proxy)}const co={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 hs(e,t){return{props:{...co},setup(o,{attrs:n,slots:a}){const l=ds(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=cs(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return a.default?a.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:of,create:gs,scope:af}=te("mapping"),qt=gs(hs());function ms(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function ps(e,t){return{props:{...co},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=ms(s.row,s.column.property);return a.default?r.h(qt,{...o,modelValue:i},{default:a.default}):r.h(qt,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:ys,scope:sf}=te("table-mapping-column"),fo=ys(ps()),bs=Symbol.for("TableStateKey");function ho(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function ws(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(bs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=ho(i.row,i.column.property),f=l?ho(l,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),S={class:{"el-radio":!0,"is-checked":c}};return r.h("label",S,[b])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:uf,create:Ss,scope:cf}=te("table-radio-column"),go=Ss(ws()),vs={},$s={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"},Ts=[r.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)];function xs(e,t){return r.openBlock(),r.createElementBlock("svg",$s,Ts)}const Es=Ce(vs,[["render",xs]]),{componentName:df,create:Cs,scope:hf}=te("table-setting"),Ns={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:"不固定"}},ks=Cs({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:Es,Download:Re.Download,RefreshLeft:Re.RefreshLeft},props:{...Ns},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed===""||x.fixed===!0||x.fixed==="left")),s=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed==="right")),i=r.computed(()=>a.value.filter(x=>!(x.label===""||x.type||x.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=x=>x.length>1,b=x=>{const k=[];a.value=x.map((B,Y)=>(!(B.label===""||B.type)&&B.visible!==!1&&k.push(B.prop),{...B,sortIndex:Y})),i.value.length+l.value.length+s.value.length===k.length?$.value=!0:k.length>0&&(I.value=!0),N.value=k},S=x=>x?x.type?x.type:x.label?x.prop:"":"",v=(x,k)=>{if(x.length!==k.length)return!1;const _=x.map(B=>S(B));for(let B of k){const Y=S(B);if(_.indexOf(Y)===-1)return!1}return!0},h=x=>{if(!x){const k=e.tableRef.getColumnSetting(),_=k.srcColumnPropertyList;n=_.map((B,Y)=>({...B,sortIndex:Y})),x=k.columnPropertyList,x&&x.length>0&&v(_,x)||(x=_)}b(x)},w=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=r.ref(!1),I=r.ref(!1),D=x=>{const k=[];a.value.forEach(B=>{x&&!(B.label===""||B.type)&&k.push(B.prop),B.visible=x}),$.value=!1,I.value=!1,i.value.length+l.value.length+s.value.length===k.length?$.value=!0:k.length>0&&(I.value=!0),N.value=k,w()},O=()=>{h(n),w()},N=r.ref([]),V=x=>{a.value.forEach(_=>{if(_.label===""||_.type)return;const B=x.indexOf(_.prop)!==-1;_.visible=B}),$.value=!1,I.value=!1;const k=i.value.length+l.value.length+s.value.length;x.length===k?$.value=!0:x.length>0&&(I.value=!0),w()},A=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},R=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,R(x)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:$,isIndeterminate:I,handleCheckAllChange:D,handleReset:O,checkedValue:N,handleCheckChange:V,onShow:A,onDragStart:x=>{const k=x.currentTarget;k&&k.dataset&&(C.roleType=k.dataset.roleType,C.index=k.dataset.index)},onDragEnd:x=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},onDragOver:x=>{const k=x.currentTarget;x.relatedTarget;const _=R(k);if(!_)return;const B=_.dataset&&_.dataset.roleType;C.roleType===B&&(x.preventDefault(),C.currentRow&&C.currentRow!==_&&C.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),C.currentRow=_)},onDragLeave:x=>{x.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},onDrop:x=>{const k=x.currentTarget,_=R(k);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(C.roleType!==B)return;x.preventDefault();const Y=Number(C.index),G=Number(_.dataset.index);if(Y!==G){if(Y<G){const Z=a.value[Y];a.value.splice(Y,1),a.value.splice(G,0,Z)}else{const Z=a.value[Y];a.value.splice(Y,1),a.value.splice(G+1,0,Z)}b(a.value),w()}},toLeftFixed:x=>{const k=a.value[x];k.fixed="left",w()},toRightFixed:x=>{const k=a.value[x];k.fixed="right",w()},toUnFixed:x=>{const k=a.value[x];k.fixed=void 0,w()},checkboxLabelStyle:p}}}),Vs={class:"fox-table-setting"},Os={class:"fox-table-setting__header"},Is={class:"fox-table-setting__body"},Rs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},As={key:0,class:"fox-table-setting__body-title"},Ds=["data-index","draggable"],Fs={class:"tools-item"},Bs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ls=["data-index","draggable"],Ms={class:"tools-item"},js={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"};function zs(e,t,o,n,a,l){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),S=r.resolveComponent("fox-checkbox"),v=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Vs,[r.createElementVNode("div",Os,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Is,[r.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Rs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Fs,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ds))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Bs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",qs,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ms,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ls))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(S,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Hs,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Sn=Ce(ks,[["render",zs]]);let Ws=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){if(Array.isArray(o)){let f=(n-1)*a,c=f+a;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,s,i]);const u=Ve(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Le(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function Ks(){const e=r.getCurrentInstance();return new Ws(e.proxy)}class Ys{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ve(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ve(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ve(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Us(){const e=r.getCurrentInstance();return new Ys(e.proxy)}const Gs=Symbol.for("TableStateKey");function Xs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function vn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=Xs(n,a);if(l!==s)return!1}return!0})}const mo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},po={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},$n={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:"不固定"}};function Zs(e,t,o){return{inheritAttrs:!1,props:{...ce,...we,...mo,...po,...$n},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Ne.useFoxI18n(t),{emitEvent:s}=fe({componentName:e,validateHandler:{getValue(...M){return I.value}}},n.prop??a.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,M=>{b.value=M});const S=M=>{b.value=M,s("page-index-change",M)},v=r.ref(n.pageSize);r.watch(()=>n.pageSize,M=>{v.value=M});const h=M=>{v.value=M,s("page-size-change",M)},w=r.shallowRef({}),p=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),$=r.ref(0),I=r.ref(),D=Ks();let O=!0;const N=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),V=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,M=>re(M)),A=async(M,q,H,U)=>{try{const ee=await D.load("table",M,q,H,U,O,l.value);$.value=ee.totalSize,I.value=ee.page}catch(ee){console.error("[FoxUI] Load Table Data Fail",ee),$.value=0,I.value=[]}O=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([b,v],([M,q],[H,U])=>{q!==U&&(b.value=1,M=1),A(n.data,M,q,p.value)}),r.watch([()=>n.data,p],([M,q],[H,U])=>{N()&&(M!==H&&(O=!0),!(!Array.isArray(M)&&Me(M,H)&&Me(q,U))&&A(M,b.value,v.value,q))},{deep:!0});const C=(M={},q=!1)=>new Promise(H=>{w.value=r.toRaw(M??{}),r.triggerRef(w),q||(b.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,b.value,v.value,p.value),H()})}),R=()=>{$.value=0,I.value=[]};let K=!1;const z=()=>{K||(K=!0,C())};N()&&!V.value&&C();const T=r.ref(null);r.provide(Gs,{currentRow:T});const y=(M,q)=>{T.value=M,s("current-change",M,q)},E=(M,q,H)=>{s("row-click",M,q,H),re(n.rowClickSelectable)===!0&&W?.value.toggleRowSelection(M)},j=[],L=(M,q)=>{if(s("expand-change",M,q),re(n.uniqueExpansion))if(Array.isArray(q)&&q.length==0){const H=j.length;j.splice(0,H)}else{j.forEach(U=>{U!==M&&W?.value.toggleRowExpansion(U,!1)});const H=j.length;j.splice(0,H,M)}},F=a.attrs.id??n.prop??a.attrs.name,x=Us(),k=r.ref([]);let _=[];const B=()=>({srcColumnPropertyList:_.map(q=>({...q})),columnPropertyList:k.value}),Y=M=>{k.value=[...M],Z()},G=async()=>{const M=await x.load(F);M&&(k.value=M)},Z=()=>{x.save(F,k.value)},J=()=>{x.remove(F)};G();const P=M=>M?M.type?M.type:M.label?M.prop:"":"",X=r.computed(()=>{if(typeof a.slots.default=="function"){const M=a.slots.default(),q=new Map;if(_=[],M.forEach(H=>{const U=H;if(!U.props)return;const ee=P(U.props);q.set(ee,H);const Q={label:"",prop:""};Object.assign(Q,U.props),_.push(Q)}),k.value.length===_.length){const H=[];for(let U of k.value){const ee=P(U),Q=q.get(ee);if(!Q)return M;if(U.visible===!1)continue;const le=Q;le.props.fixed=U.fixed,H.push(le)}return H}return M}return[]}),W=r.ref();return he({clearSelection:()=>W?.value.clearSelection(),getSelectionRows:()=>W?.value.getSelectionRows(),toggleRowSelection:(M,q)=>{W?.value.toggleRowSelection(M,q)},toggleRowSelectionByProp:(M,q)=>{if(!I.value)return;const H=vn(I.value,M);H.length!==0&&H.forEach(U=>{W?.value.toggleRowSelection(U,q)})},toggleAllSelection:()=>{W?.value.toggleAllSelection()},toggleRowExpansion:(M,q)=>{W?.value.toggleRowExpansion(M,q)},toggleRowExpansionByProp:(M,q)=>{if(!I.value)return;const H=vn(I.value,M);H.length!==0&&H.forEach(U=>{W?.value.toggleRowExpansion(U,q)})},setCurrentRow:M=>{W?.value.setCurrentRow(M)},setCurrentRowByProp:M=>{if(!I.value)return;const q=vn(I.value,M);q.length!==0&&W?.value.setCurrentRow(q[0])},getCurrentRow:()=>T.value,clearSort:()=>{W?.value.clearSort()},clearFilter:M=>{W?.value.clearFilter(M)},doLayout:()=>{W?.value.doLayout()},sort:(M,q)=>{W?.value.sort(M,q)},scrollTo:(M,q)=>{W?.value.scrollTo(M,q)},setScrollTop:M=>{W?.value.setScrollTop(M)},setScrollLeft:M=>{W?.value.setScrollLeft(M)},loadData:C,clearData:R,getData(){return I.value},getTotalSize(){return $.value},getPageIndex(){return b.value},getPageSize(){return v.value},getColumnSetting:B,setColumnSetting:Y,removeColumnSetting:J}),()=>{const q={...a.attrs,onCurrentChange:y,onRowClick:E,onExpandChange:L,data:I.value,ref:W,class:u.value},H={};a.slots.default&&(H.default=()=>X.value),a.slots.append&&(H.append=a.slots.append),a.slots.empty&&(H.empty=a.slots.empty);const U=[],ee=r.h(m.ElTable,q,H);U.push(ee);let Q=null;if(typeof a.slots.pagination=="function")Q=a.slots.pagination();else if(n.showPagination){const Ye={class:d.value,total:$.value,pageSize:v.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":S,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};Q=r.h(m.ElPagination,Ye)}if(n.showSetting){const Ye=[];Q&&Ye.push(Q);const Uc=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(Re.Setting)}),Gc=Gn(n,$n),Xc=r.h(Sn,{...Gc,tableRef:{getColumnSetting:B,setColumnSetting:Y,removeColumnSetting:J}},{default:()=>Uc});Ye.push(Xc);const Zc=r.h("div",{class:c.value},Ye);U.push(Zc)}else Q&&U.push(Q);const le={default:()=>U},Ie={...be(n,mo,po,$n),prop:`${n.prop}_item`};return Ie.contentClass=`${i}__wrap`,Ie.errorMarkClass="is-table-error",V.value&&N()&&(Ie["appear-listen"]=!0,Ie.onAppear=z),r.h(o,Ie,le)}}}}const{componentName:Js,create:Qs,scope:eu}=te("table-item"),yo=Qs(Zs(Js,eu,ge));function et(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function tu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let nu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ve(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Le(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ru(){const e=r.getCurrentInstance();return new nu(e.proxy)}function bo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=et(e,t),a=et(e,o);if(n!==a)return!1;const l=gt(e,t),s=gt(e,o);return l===s}function ou(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let s=!1;if(o==="text")s=et(e,l)===t;else if(o==="item")s=bo(e,l,t);else{let i=gt(e,l);i==null&&(i=et(e,l)),s=i===t}if(s){a=l;break}}return a}function au(e){return{text:e,value:e}}function lu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const wo={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"},lazyLoad:{type:[Boolean,String],default:!1}};function iu(e,t,o){return{inheritAttrs:!0,props:{...ce,...we,...wo},emits:["change","update:modelValue"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(V,A,C,R=!0)=>{const K=ou(n,V,A,C);if(K===null){if(f.value===null)return;f.value=null,u.value=null,R&&(i("update:modelValue",null),i("change",null));return}if(!bo(n,K,f.value)){u.value=V;const T=r.toRaw(K);f.value=T;let y=null;n.valueType==="text"?y=et(n,T):n.valueType==="item"?y=T:y=gt(n,T),R&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),b=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,V=>re(V)),S=ru(),v=async(V,A)=>{if(V){const C=await S.load("radio",V,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>au(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([V,A])=>{v(V,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,v(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,A])=>{c(A,n.valueType,V,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let D=oe(n,"hintText"),O=oe(n,"hintVisible");const N=(V,A)=>{const C=[];return V.forEach((R,K)=>{const z=gt(n,R),T=et(n,R);let y=tu(n,R);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=lu(n,R,K)??{},j=`${z}_${K}`,L={...E,key:j,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElRadioButton,L,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElRadio,L,{default:()=>A(R)})):C.push(r.h(m.ElRadio,L,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],R={};a.slots.options?R.default=a.slots.options:R.default=()=>N(d.value,a.slots.text);const K=r.h(m.ElRadioGroup,A,R);C.push(K);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...be(n,wo),hintText:D.value,hintVisible:O.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:su,create:uu,scope:cu}=te("radio-item"),So=uu(iu(su,cu,ge));function tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function fu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class du{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ve(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Le(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function hu(){const e=r.getCurrentInstance();return new du(e.proxy)}function vo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=tt(e,t),a=tt(e,o);if(n!==a)return!1;const l=nt(e,t),s=nt(e,o);return l===s}function gu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let s of n){let i=!1;if(o==="text")i=tt(e,s)===l;else if(o==="item")i=vo(e,s,l);else{let u=nt(e,s);u==null&&(u=tt(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function mu(e){return{text:e,value:e}}function pu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const $o={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function yu(e,t,o){return{inheritAttrs:!1,props:{...ce,...we,...$o},emits:["change","update:modelValue"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(V,A,C,R=!0)=>{const K=gu(n,V,A,C);if(K===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],R&&(i("update:modelValue",[]),i("change",[]));return}let z=!0;if(K.length!==f.value.length)z=!1;else for(let T=0;T<K.length;T++){const y=K[T],E=f.value[T];if(!vo(n,y,E)){z=!1;break}}if(!z){f.value=K;let T=[],y=[];K.forEach(j=>{T.push(nt(n,j)),n.valueType==="text"?y.push(tt(n,j)):n.valueType==="item"?y.push(j):y.push(nt(n,j))}),u.value=T;const E=r.toRaw(y);R&&(i("update:modelValue",E),i("change",E))}},d=r.ref([]),b=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,V=>re(V)),S=hu(),v=async(V,A)=>{if(V){const C=await S.load("checkbox",V,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>mu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([V,A])=>{v(V,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,v(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,A])=>{c(A,n.valueType,V,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let D=oe(n,"hintText"),O=oe(n,"hintVisible");const N=(V,A)=>{const C=[];return V.forEach((R,K)=>{const z=nt(n,R),T=tt(n,R);let y=fu(n,R);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=pu(n,R,K)??{},j=`${z}_${K}`,L={...E,key:j,class:n.itemClass,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElCheckboxButton,L,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElCheckbox,L,{default:()=>A(R)})):C.push(r.h(m.ElCheckbox,L,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ye(n.max),min:ye(n.min),onChange:I},C=[],R={};a.slots.options?R.default=a.slots.options:R.default=()=>N(d.value,a.slots.text);const K=r.h(m.ElCheckboxGroup,A,R);C.push(K);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...be(n,$o),hintText:D.value,hintVisible:O.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:bu,create:wu,scope:Su}=te("checkbox-item"),To=wu(yu(bu,Su,ge)),xo={modelValue:{type:[Number,String],required:!1}};function vu(e,t,o){return{props:{...ce,...we,...xo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue",h=>ye(h)),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),S=r.ref(!1);const v=r.ref();return he({}),()=>{const w={...a.attrs,ref:v,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElRate,w,p);$.push(I);const D={default:()=>$};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const N={...be(n,xo),hintText:b.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,N,D)}}}}const{componentName:$u,create:Tu,scope:xu}=te("rate-item"),Eo=Tu(vu($u,xu,ge)),Co={modelValue:{type:[Boolean,String,Number],required:!1}};function Eu(e,t,o){return{props:{...ce,...we,...Co},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),{emitEvent:i}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),S=oe(n,"hintVisible");const v=r.ref();return he({}),()=>{const w={...a.attrs,ref:v,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElSwitch,w,p);$.push(I);const D={default:()=>$};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const N={...be(n,Co),hintText:b.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,N,D)}}}}const{componentName:Cu,create:Nu,scope:ku}=te("switch-item"),No=Nu(Eu(Cu,ku,ge)),ko={modelValue:{type:[String,Number,Boolean],required:!1}};function Vu(e,t,o){return{props:{...ce,...we,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=ve(r.computed(()=>n.disabled)),s=Se(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=fe({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=oe(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=O=>{u("update:modelValue",O),u("change",O)};let S=oe(n,"hintText"),v=r.ref(!1);const h=O=>{let V=O.target.value;i.value=!0,se(S.value)||(v.value=!0),u("focus",V,O)},w=O=>{setTimeout(()=>{v.value&&(v.value=!1),i.value=!1},0);let V=O.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),$.value||u("blur",V,O)},p=()=>{u("clear","")},$=r.ref(!1),I=O=>{$.value=O,u("visible-change",O),O||u("selected")},D=r.ref();return he({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const N={...a.attrs,ref:D,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:p,onFocus:h,onBlur:w,onVisibleChange:I},V={};a.slots.option&&(V.default=a.slots.option);const A=[],C=r.h(m.ElTreeSelect,N,V);A.push(C);const R={default:()=>A};a.slots.default&&(R.label=a.slots.default),a.slots.fixedTip&&(R.fixedTip=a.slots.fixedTip);const z={...be(n,ko),hintText:S.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,z,R)}}}}const{componentName:Ou,create:Iu,scope:Ru}=te("tree-select-item"),Vo=Iu(Vu(Ou,Ru,ge)),Au=Symbol.for("InnerPageScopeKey"),Du=Symbol.for("PageWrapperKey");function Fu(e,t){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,n){r.provide(Au,!0);const a={};r.provide(Du,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:gf,create:Bu,scope:mf}=te("dialog-item"),Oo=Bu(Fu());function qu(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const a=e,l=r.computed(()=>({[a]:!0})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:s.value,style:i.value};c=r.h(o.icon??"div",h)}const d={class:u.value,style:f.value},b=n.default?n.default():[],S=r.h("div",d,b),v={class:l.value};return o.textPosition==="right"?r.h("div",v,[c,S]):r.h("div",v,[S,c])}}}}const{componentName:Lu,create:Mu,scope:pf}=te("indicator"),Io=Mu(qu(Lu));function ju(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const _u={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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}};function Pu(e,t){return{props:{..._u},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{c[b]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),i=c=>{if(c&&re(o.showOverflowTooltip)){const d=c.clientWidth;ju(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!re(o.showOverflowTooltip))return;const c=l.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const S=o.highlightFilter;if(c.indexOf(S)!==-1){const h=c.replace(new RegExp(S,"g"),`<span>${S}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const S=o.highlightFilter(c);S&&(d.innerHTML=S,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(re(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const w=h[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const p=ye(o.digits),$=ye(o.decimalLength),I=re(o.autoPadding);let D=`${h[0].children}`,O=D.split("").reverse().join("");O=yt(O,$,I,p,o.separator),D=O.split("").reverse().join("");let N=null;o.highlightFilter!==void 0&&(N=f(D,d)),N||(d.innerHTML=D,N=r.h(o.tag,d)),c.default=()=>N}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const p=w[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const $=`${w[0].children}`;h=f($,d),h||(d.innerHTML=$,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>h}const S={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,S,c)}}}}const{componentName:Hu,create:zu,scope:yf}=te("text"),Ro=zu(Pu(Hu)),Wu={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:Re.ArrowUp}};function Ku(e,t,o){return{props:{...Wu},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=oe(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},w=r.h("span",h,[i.value]);d.push(w)}const b={class:f.value},S=o(n.icon,b);return S&&d.push(S),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Yu,create:Uu,scope:Gu}=te("more-button"),Ao=Uu(Ku(Yu,Gu,(e,t)=>(e=e??Re.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Xu,create:Zu,scope:wf}=te("tour"),Ju=Zu({components:{Close:Re.Close,ElPopover:m.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Xu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:v,maskWidth:h,maskHeight:w}=e,{width:p,height:$,left:I,top:D}=a.value,O=e.steps[n.active].offset??v,N=[I+p/2,D+$/2],V=Number(h||p),A=Number(w||$);return{width:`${V+ +O.left+O.right}px`,height:`${A+O.top+O.bottom}px`,top:`${N[1]-A/2-+O.top}px`,left:`${N[0]-V/2-+O.left}px`}}),i=v=>{v=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=v=>v.popoverWidth??e.width,f=v=>v.location??e.location,c=()=>{const v=document.querySelector(`${e.steps[n.active].target}`),h=mn(v);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},S=(v,h=0)=>{v&&c(),e.steps,n.active=h,n.showTour=v,n.showPopup=v};return r.onMounted(()=>{S(e.modelValue,e.current)}),r.watch(()=>e.modelValue,v=>{S(v)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),Qu={key:0,class:"fox-tour__content"},ec={key:0,class:"fox-tour__content-top"},tc={class:"fox-tour__content-inner"},nc={class:"fox-tour__content-bottom"},rc={class:"fox-tour__content-bottom-init"},oc={class:"fox-tour__content-bottom-operate"},ac={key:1,class:"fox-tour__content fox-tour__content-tile"},lc={class:"fox-tour__content-inner"};function ic(e,t,o,n,a,l){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",Qu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",ec,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",tc,r.toDisplayString(f.content),1),r.createElementVNode("div",nc,[r.createElementVNode("div",rc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",oc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",ac,[r.createElementVNode("div",lc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Do=Ce(Ju,[["render",ic]]);function Tn(e){let t=e.offsetHeight;if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=o.offsetHeight,document.body.removeChild(o)}return t}const me=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,qe=e=>e==null,Fo=10;function sc(e,t){return e>t&&e>Fo?"horizontal":t>e&&t>Fo?"vertical":""}function uc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=sc(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function cc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function fc(e){e.stopPropagation()}function dc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&fc(e)}class hc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=cc()}open(t){this.el=t;const o=uc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};this.touchstart=a=>{this.moving||(o.start(a),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=a=>{this.moving&&(o.move(a),o.isHorizontal()&&dc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(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},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function gc(e,t){return new hc(e,t)}var Bo;const xn=typeof window<"u";xn&&((Bo=window?.navigator)!=null&&Bo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let rt=[];const qo=e=>{const t=e;t.key==="Escape"&&rt.forEach(o=>o(t))},mc=e=>{r.onMounted(()=>{rt.length===0&&document.addEventListener("keydown",qo),xn&&rt.push(e)}),r.onBeforeUnmount(()=>{rt=rt.filter(t=>t!==e),rt.length===0&&xn&&document.removeEventListener("keydown",qo)})},En="fox-focus-trap.focus-after-trapped",Cn="fox-focus-trap.focus-after-released",pc="fox-focus-trap.focusout-prevented",Lo={cancelable:!0,bubbles:!1},yc={cancelable:!0,bubbles:!1},Mo="foxFocusAfterTrapped",jo="foxFocusAfterReleased",bc=Symbol("foxFocusTrap"),Nn=r.ref(),Lt=r.ref(0),kn=r.ref(0);let Mt=0;const _o=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},wc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Po=(e,t)=>{for(const o of e)if(!wc(o,t))return o},Sc=e=>{const t=_o(e),o=Po(t,e),n=Po(t.reverse(),e);return[o,n]},vc=e=>e instanceof HTMLInputElement&&"select"in e,_e=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),kn.value=window.performance.now(),e!==o&&vc(e)&&t&&e.select()}};function Ho(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const $c=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Ho(e,n),e.unshift(n)},remove:n=>{e=Ho(e,n),e[0]?.resume?.()}}},Tc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(_e(n,t),document.activeElement!==o)return},zo=$c(),xc=()=>Lt.value>kn.value,jt=()=>{Nn.value="pointer",Lt.value=window.performance.now()},Wo=()=>{Nn.value="keyboard",Lt.value=window.performance.now()},Ec=()=>(r.onMounted(()=>{Mt===0&&(document.addEventListener("mousedown",jt),document.addEventListener("touchstart",jt),document.addEventListener("keydown",Wo)),Mt++}),r.onBeforeUnmount(()=>{Mt--,Mt<=0&&(document.removeEventListener("mousedown",jt),document.removeEventListener("touchstart",jt),document.removeEventListener("keydown",Wo))}),{focusReason:Nn,lastUserFocusTimestamp:Lt,lastAutomatedFocusTimestamp:kn}),_t=e=>new CustomEvent(pc,{...yc,detail:e}),{componentName:Sf,create:Cc,scope:vf}=te("focus-trap"),Nc=Cc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean],required:!0},escape:{type:[Boolean],required:!0,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Mo,jo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=Ec();mc(h=>{e.trapped&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:w,altKey:p,ctrlKey:$,metaKey:I,currentTarget:D,shiftKey:O}=h,{loop:N}=e,V=w==="Tab"&&!p&&!$&&!I,A=document.activeElement;if(V&&A){const C=D,[R,K]=Sc(C);if(R&&K){if(!O&&A===K){const T=_t({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),N&&_e(R,!0))}else if(O&&[R,C].includes(A)){const T=_t({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),N&&_e(K,!0))}}else if(A===C){const T=_t({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};r.provide(bc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[w])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=h=>{o(Mo,h)},c=h=>o(jo,h),d=h=>{const w=r.unref(n);if(!w)return;const p=h.target,$=h.relatedTarget,I=p&&w.contains(p);e.trapped||$&&w.contains($)||(a=$),I&&o("focusin",h),!i.paused&&e.trapped&&(I?l=p:_e(l,!0))},b=h=>{const w=r.unref(n);if(!(i.paused||!w))if(!e.escape&&e.trapped){const p=h.relatedTarget;!nn(p)&&!w.contains(p)&&setTimeout(()=>{if(!i.paused&&e.trapped){const $=_t({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||_e(l,!0)}},0)}else{const p=h.target;p&&w.contains(p)||o("focusout",h)}};async function S(){await r.nextTick();const h=r.unref(n);if(h){zo.push(i);const w=h.contains(document.activeElement)?a:document.activeElement;if(a=w,!h.contains(w)){const $=new Event(En,Lo);h.addEventListener(En,f),h.dispatchEvent($),$.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;qn(I)||(_e(I),document.activeElement!==I&&(I="first")),I==="first"&&Tc(_o(h),!0),(document.activeElement===w||I==="container")&&_e(h)})}}}function v(){const h=r.unref(n);if(h){h.removeEventListener(En,f);const w=new CustomEvent(Cn,{...Lo,detail:{focusReason:s.value}});h.addEventListener(Cn,c),h.dispatchEvent(w),!w.defaultPrevented&&(s.value=="keyboard"||!xc())&&_e(a??document.body,!0),h.removeEventListener(Cn,f),zo.remove(i)}}return r.onMounted(()=>{e.trapped&&S(),r.watch(()=>e.trapped,h=>{h?S():v()})}),r.onBeforeUnmount(()=>{e.trapped&&v()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:kc,create:Vc,scope:Tf}=te("floating-window"),Oc=Symbol.for("InnerPageScopeKey"),Ic=Symbol.for("PageWrapperKey"),Rc={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},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},Ac=Vc({inheritAttrs:!1,components:{FoxIcon:m.ElIcon,FocusTrap:Nc},props:{...Rc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=kc,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,F=>{n.value=F});const a=r.ref(e.left),l=r.ref(e.top),s=r.ref(e.right),i=r.ref(e.bottom),u=r.computed(()=>["fox-floating-window"]),f=r.computed(()=>{const F={};return qe(a.value)?F.left="auto":F.left=me(a.value),qe(l.value)?F.top="auto":F.top=me(l.value),qe(s.value)?F.right="auto":F.right=me(s.value),qe(i.value)?F.bottom="auto":F.bottom=me(i.value),qe(e.zIndex)||(F["z-index"]=me(e.zIndex)),qe(I.value)||(F.height=I.value),qe(D.value)||(F.width=D.value),F}),c=r.computed(()=>e.closeIcon??Re.Close);r.provide(Oc,!0);const d={};r.provide(Ic,d);const b=()=>{typeof d.beforeClose=="function"?d.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.computed(()=>e.collapseIcon??Re.ArrowUp),v=r.computed(()=>O.value?e.expandText??"":e.collapseText??""),h=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!O.value,"is-collapse":O.value})),p=r.ref(),$=r.ref(),I=r.computed(()=>N.value||me(e.height)||""),D=r.computed(()=>V.value||me(e.width)||""),O=r.ref(!1),N=r.ref(""),V=r.ref(""),A=r.ref(!1);let C=-1;const R=(F,x=!0)=>{const k=p.value;if(k&&O.value!==F){if(C=C===-1?Tn(k):C,A.value=!0,x)if(k.style["will-change"]="height",k.ontransitionend=function(){k.ontransitionend=null,this.style["will-change"]="auto",F||(N.value="",A.value=!1)},F){let _=0;e.collapseHeight?_=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(_=Tn($.value)),N.value=`${C}px`,r.nextTick(()=>{N.value=`${_}px`,V.value=qe(e.collapseWidth)?"":me(e.collapseWidth)})}else N.value=`${C}px`,V.value="";else if(F){let _=0;e.collapseHeight?_=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(_=Tn($.value)),N.value=`${_}px`,V.value=qe(e.collapseWidth)?"":me(e.collapseWidth)}else A.value=!1,N.value=`${C}px`,V.value="";O.value=F,t("update:collapse",F)}};r.watch(()=>e.collapse,F=>{R(F)});const K=()=>{z()},z=F=>{F=F??!O.value,R(F)},T=()=>{a.value=null,l.value=null,s.value=null,i.value=null},y={x:0,y:0},L=gc(F=>{if(!p.value)return;const x=p.value;if(T(),e.origin==="left-top")a.value=x.offsetLeft,l.value=x.offsetTop,y.x=a.value,y.y=l.value;else if(e.origin==="left-bottom"){const k=document.documentElement.clientHeight||document.body.clientHeight;a.value=x.offsetLeft,i.value=k-(x.offsetTop+x.offsetHeight),y.x=a.value,y.y=i.value}else if(e.origin==="right-bottom"){const k=document.documentElement.clientWidth||document.body.clientWidth,_=document.documentElement.clientHeight||document.body.clientHeight;s.value=k-(x.offsetLeft+x.offsetWidth),i.value=_-(x.offsetTop+x.offsetHeight),y.x=s.value,y.y=i.value}else{const k=document.documentElement.clientWidth||document.body.clientWidth;s.value=k-(x.offsetLeft+x.offsetWidth),l.value=x.offsetTop,y.x=s.value,y.y=l.value}},F=>{if(!p.value)return;const x=p.value;T(),e.origin==="left-top"?(a.value=y.x+F.x,l.value=y.y+F.y,x.style.left=me(a.value),x.style.top=me(l.value)):e.origin==="left-bottom"?(a.value=y.x+F.x,i.value=y.y-F.y,x.style.left=me(a.value),x.style.bottom=me(i.value)):e.origin==="right-bottom"?(s.value=y.x-F.x,i.value=y.y-F.y,x.style.right=me(s.value),x.style.bottom=me(i.value)):(s.value=y.x-F.x,l.value=y.y+F.y,x.style.right=me(s.value),x.style.top=me(l.value))});return r.onMounted(()=>{e.draggable&&$.value&&p.value&&L.open($.value),e.collapse===!0&&R(e.collapse,!1)}),r.onBeforeUnmount(()=>{e.draggable&&$.value&&L.close()}),{classes:u,styles:f,visible:n,closeIcon:c,onClose:b,dialogRef:p,headerRef:$,onClickToggle:K,collapseIcon:S,currentCollapseText:v,collapseTextClasses:h,collapseIconClasses:w}}}),Dc={ref:"headerRef",class:"fox-floating-window__header"},Fc={class:"fox-floating-window__title"},Bc={class:"fox-floating-window__tools"},qc={class:"fox-floating-window__body"};function Lc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(i,{loop:!0,escape:!0,trapped:e.visible,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Dc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Fc,r.toDisplayString(e.title),1),r.createElementVNode("div",Bc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.currentCollapseText),3),r.createVNode(s,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",qc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.visible]])]),_:3})],8,["disabled"])}const Ko=Ce(Ac,[["render",Lc]]);function Mc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return or(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:xf,create:jc,scope:Ef}=te("domain-provider"),Yo=jc(Mc()),_c={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 Pc(e,t){return{inheritAttrs:!1,props:_c,setup(o,{slots:n}){if(Ue&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const s=(b,S)=>{if(c===null){l.set(b,{visible:null,callback:S});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:S}),c.observe(b)},i=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;pl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(b,S,v)=>{c=new IntersectionObserver(h=>{for(let w of h){let p=!1;w.intersectionRatio>0&&(p=!0);const $=a.get(w.target);if($)try{if(o.loadPolicy==="lazy"&&!p&&$.visible!==null)return;$.visible=p,$.callback(p)}catch(I){console.error(I)}}},{root:b,rootMargin:S,threshold:v}),l.forEach((h,w)=>{a.set(w,h),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,S])=>{if(S||!b||c)return;let v=null;typeof b=="string"?v=document.querySelector(b):v=b,v&&d(v,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Cf,create:Hc,scope:Nf}=te("rolling-provider"),Uo=Hc(Pc()),Go=10;function zc(e,t){return e>t&&e>Go?"horizontal":t>e&&t>Go?"vertical":""}function Wc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",S=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const p=w.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=zc(u.value,f.value))},start:w=>{S(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:S,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const Kc=[hr,gr,mr,pr,Sr,ge,Cr,Nr,Ft,Vr,Dr,Kr,Ur,Xr,no,oo,io,uo,fo,go,Sn,yo,So,To,Eo,No,Vo,Oo,qt,pn,Io,Ro,Ao,Do,Ko,Yo,Uo],Yc=new Ba(Kc,[Ma],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=uo,g.Broadcast=rn,g.BroadcastKey=ue,g.CascaderItem=io,g.CheckboxItem=To,g.Content=pr,g.DataItemsKey=Ge,g.DateItem=Kr,g.DateUtils=ht,g.DialogItem=Oo,g.Domain=Tt,g.DomainKey=xe,g.DomainProvider=Yo,g.FloatingWindow=Ko,g.FooterBar=mr,g.Group=Sr,g.HeaderBar=gr,g.HintText=Ft,g.Indicator=Io,g.InputItem=Vr,g.InputNumberItem=oo,g.Item=ge,g.Mapping=qt,g.MoneyItem=no,g.MoreButton=Ao,g.Page=hr,g.Price=pn,g.PriorityPolicy=Ee,g.RadioItem=So,g.RateItem=Eo,g.RollingProvider=Uo,g.RowItem=Nr,g.SelectItem=Dr,g.SlotItem=Cr,g.SwitchItem=No,g.TableItem=yo,g.TableMappingColumn=fo,g.TableRadioColumn=go,g.TableSetting=Sn,g.Text=Ro,g.TimeItem=Ur,g.TimeSelectItem=Xr,g.Tour=Do,g.TreeSelectItem=Vo,g.UniqueID=xr,g.ValidateSchema=tr,g.ValidateSchemaKey=Ae,g.cancelRaf=Jo,g.clearNonNumber=ha,g.clone=en,g.compareTo=Zt,g.createBroadcast=St,g.createValidateSchema=$t,g.debounce=ut,g.debounceRef=Ca,g.decimalLength=Yn,g.default=Yc,g.defineBroadcast=ya,g.defineConfigDomain=or,g.defineDataItem=lr,g.defineDomain=ln,g.defineItem=fe,g.definePageState=ir,g.deleteGlobalValidator=va,g.disabledProperty=ve,g.divide=Xt,g.excludeProps=be,g.extend=He,g.floatData=pa,g.getGlobalValidateCheckEvents=Jn,g.getGlobalValidateResetEvents=er,g.getPageContentAreaHeight=Et,g.getPageContentAreaWidth=Ct,g.getPageFooterAreaHeight=ft,g.getPageHeaderAreaHeight=ct,g.getRootDomain=Xe,g.hasSymbol=Mn,g.includeProps=Gn,g.indexOf=ga,g.installRules=ar,g.integerLength=Kn,g.isArray=na,g.isArrayLike=Pn,g.isBrowser=Ue,g.isDate=aa,g.isESModule=sa,g.isEmptyString=se,g.isEqual=Me,g.isFunction=Jt,g.isHidden=_n,g.isInnerPage=Va,g.isMap=ra,g.isNil=nn,g.isNumberString=Wn,g.isObject=Le,g.isPlainObject=Qt,g.isPromise=ia,g.isRegExp=zn,g.isSet=oa,g.isString=qn,g.isSubPage=Oa,g.isSymbol=la,g.isWindow=jn,g.lastIndexOf=ma,g.makeArray=da,g.merge=Hn,g.multiply=Dn,g.negate=Fn,g.nextTick=ca,g.numberFormat=yt,g.objectToString=Ln,g.once=Na,g.property=Te,g.raf=ta,g.readonlyProperty=Se,g.setGlobalValidateCheckEvents=$a,g.setGlobalValidateHandler=wa,g.setGlobalValidateMessages=xa,g.setGlobalValidateResetEvents=Ta,g.setGlobalValidator=Sa,g.throttle=rr,g.toBoolean=re,g.toNumber=ye,g.toPadding=ke,g.toPx=ae,g.toPxDesc=de,g.toTypeString=bt,g.toValue=oe,g.tryTimes=on,g.typeOf=wt,g.unNumberFormat=Bn,g.updatePageState=sn,g.useBroadcast=it,g.useDomain=De,g.useExpose=he,g.useInnerSize=dn,g.usePageState=xt,g.usePosition=vr,g.useRect=mn,g.useSize=fn,g.useTouch=Wc,g.valueLength=lt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function St(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=we(e),t=we(t),[e,t]=Yt(we(e),we(t)),o==1&&(n==1?e=Kt(e):t=Kt(t));let a=An(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Kt(a)):we(a)}function Kt(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return An(t,l)}function we(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Yt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function An(e,t){[e,t]=Yt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var ue=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ue||{});function st(e,t=0,o=ue.HALF_EVEN){if(o===ue.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),l=a[0],s=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+s,u=st(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,Dn(a[1],l,n,o)?(n?"-":"")+Ut(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&Dn(i,s,n,o)&&(s=Ut(s),s.length>t)?(n?"-":"")+Ut(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function Dn(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ue.DOWN||!o&&n===ue.FLOOR||o&&n===ue.CEILING)return!1;if(n===ue.UP||o&&n===ue.FLOOR||!o&&n===ue.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ue.HALF_DOWN:return!1;case ue.HALF_UP:return!0;case ue.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ut(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Gt(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=ut(e),t=ut(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=ut(e.replace(".","")),t=ut(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let v=t.length-1;v>=f&&v>=0;v--)u[v]>-1&&u[v]<e.length&&(b+=parseInt(e[u[v]--])*parseInt(t[v]));b+=i,i=Math.floor(b/10),c=b%10+c,f--}return c=ut(oa(c,l)),o==1&&(c="-"+c),c}function oa(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ut(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 Xt(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=we(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=we(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=we(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=we(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=we(e.replace(".","")))}let l=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=St(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+we(st(i,o-2))}function Zt(e,t){return e=e.toString(),t=t.toString(),t=Jt(t),St(e,t)}function Jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Bn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Fn(e),Fn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Zt(e,Gt(t,st(Xt(e,t),0,ue.FLOOR)));return o+n}function Fn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function qn(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Yt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ee{value;static RoundingModes=ue;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=we(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+we(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ee.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ee.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return ee.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ue.HALF_EVEN){if(t=ee.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return st(t,o,n)}round(t=0,o=ue.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ee(st(this.value,t,o))}static floor(t){return t=ee.validate(t),t.indexOf(".")===-1?t:ee.round(t,0,ue.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,ue.FLOOR)}static ceil(t){return t=ee.validate(t),t.indexOf(".")===-1?t:ee.round(t,0,ue.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,ue.CEILING)}static add(t,o){return t=ee.validate(t),o=ee.validate(o),St(t,o)}add(t){return new ee(St(this.value,t.getValue()))}static subtract(t,o){return t=ee.validate(t),o=ee.validate(o),Zt(t,o)}subtract(t){return new ee(Zt(this.value,t.getValue()))}static multiply(t,o){return t=ee.validate(t),o=ee.validate(o),Gt(t,o)}multiply(t){return new ee(Gt(this.value,t.getValue()))}static divide(t,o,n){return t=ee.validate(t),o=ee.validate(o),Xt(t,o,n)}divide(t,o){return new ee(Xt(this.value,t.getValue(),o))}static modulus(t,o){return t=ee.validate(t),o=ee.validate(o),Bn(t,o)}modulus(t){return new ee(Bn(this.value,t.getValue()))}static compareTo(t,o){return t=ee.validate(t),o=ee.validate(o),qn(t,o)}compareTo(t){return qn(this.value,t.getValue())}static negate(t){return t=ee.validate(t),Jt(t)}negate(){return new ee(Jt(this.value))}}function Ln(e,t){return ee.multiply(`${e}`,`${t}`)}function Qt(e,t,o=8){return ee.divide(`${e}`,`${t}`,o)}function en(e,t){return e=`${e}`,t=`${t}`,ee.compareTo(e,t)}function Mn(e){return ee.negate(e)}function vt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=l.substring(0,f),u=l.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",b=i.split("").reverse();for(let v=0;v<b.length;v++)d+=b[v]+((v+1)%n==0&&v+1!=b.length?a:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function jn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const aa=ra,la=Array.isArray,ia=e=>$t(e)==="[object Map]",sa=e=>$t(e)==="[object Set]",ua=e=>e instanceof Date,tn=e=>typeof e=="function",_n=e=>typeof e=="string",ca=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",fa=e=>je(e)&&tn(e.then)&&tn(e.catch),Pn=Object.prototype.toString,$t=e=>Pn.call(e),nn=e=>$t(e)==="[object Object]",Hn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||Hn&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ke(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=Ke(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function rn(e,t,o=!1){if(!o)Ke(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const on=ha?Promise.resolve():null;function ga(e,...t){on!==null?t&&t.length>0?on.then(()=>{e(t)}):on.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(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 Tt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function zn(e){return e&&typeof e=="object"&&"setInterval"in e}function Wn(e){return!e||e.offsetParent===null}function Kn(e){let t=!!e&&"length"in e&&e.length,o=Tt(e);return o==="function"||zn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Yn(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function pa(e,t=[]){let o=t;return e!=null&&(Kn(Object(e))?Yn(o,typeof e=="string"?[e]:e):o.push(e)),o}function _e(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Tt(e),n=Tt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!_e(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],s=t[a];if(!_e(l,s))return!1}return!0}return!1}const Ze=typeof window<"u";function an(e){return e==null}function Un(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Gn(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Xn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function Zn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Jn(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ya(e,t=!0,o=!0){t?e=Jn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Jn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(_e(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(_e(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ct(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Qn(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function ve(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const Sa=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},de=Symbol.for("BroadcastKey");class ln{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Un(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function xt(e,t,o,n){const a=new ln(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function va(e,t,o){const n=o;if(n[de])return n[de];const a=r.inject(de,null),l=new ln(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[de]=l,r.provide(de,l),r.onUnmounted(()=>{l.destroy(),n[de]=void 0}),l}function ft(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ye=e=>e.default??e;class $a{error(t,o){const n=o,a=ft(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ft(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ft(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=ft(n),s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let er=new $a;function Ta(e){er=e}function xa(e,t){Ye(We).setValidator(e,t)}function Ea(e){Ye(We).deleteValidator(e)}let tr=["blur","clear"];function Ca(e){tr=e}function nr(){return tr}let rr=["focus","change"];function Na(e){rr=e}function or(){return rr}function ka(e){Ye(We).messages(e)}function dt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Et(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Be=Symbol("ValidateSchemaKey");class ar{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=Et(dt(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=Et(n);const a=dt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=er;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?Ye(We).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?Ye(We).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ye(We).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=dt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Et(t):this.rules=Et([t]);const n=dt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=Ye(We),u=new i(a),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let b="error";Array.isArray(d.errors)&&d.errors.length>0&&(b=d.errors[0].message??b,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(b)}return d}).catch(d=>{const b=d.message??`${d}`;return this.error(b),d})}}return Promise.resolve({pass:!0})}}function Ct(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new ar(t,o,e)}const lr=Symbol.for("EventEmitterKey");class Va{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function ht(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function ir(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=ht((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function sn(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const Ne=Symbol("DomainKey"),Je=Symbol("DataItemsKey");class Nt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];o.push(a)}n=n._parent}return o}}const Ra=new Nt;function Qe(){return Ra}function Fe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ne]??r.inject(Ne,null):r.inject(Ne,null)}const un=Symbol("OriginalDateKey");function cn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(Ne,null);s===null&&(s=Qe());const i=e||t.prop||t.name,u=new Nt(i);u.parent=s;const f=h=>{l[un]||b(h),u.set("modelValue",h)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[un]??null,b=h=>{const w={};Ke(!0,w,r.toRaw(h)),l[un]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[Ne]=u,r.provide(Ne,u);let v=null,S=null;if(a!==null){const h=r.inject(de,null);v=xt(l,h,i,n),u.broadcast=v,l[de]=v,r.provide(de,v),l.broadcast=(p,$,...I)=>Reflect.apply(v.emit,v,[p,$,...I]);const w=r.inject(Be,null);S=Ct(l,w,{componentName:""}),u.validateSchema=S,l[Be]=S,r.provide(Be,S),l[Je]=new Map,l.validate=(p=!0)=>{const $=[];let I=null;const F={deep:!1};if(p===!0)I={name:"*"};else if(Array.isArray(p)&&p.length>0){const V=p;I={name:k=>k?V.indexOf(k)!==-1:!1}}else if(p!=null&&typeof p=="object"){const V=p;if(F.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const k=V.include;I={name:N=>N?k.indexOf(N)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const k=V.exclude;I={name:N=>N?k.indexOf(N)===-1:!1}}else I={name:"*"}}if(I){const V=v?.emitToChildren(I,"validate",F);V&&Reflect.apply([].push,$,V)}return $.length==1?$[0]:$.length>1?Promise.all($).then(V=>{let k=[];return V.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(k=[...k,...N.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,$=!0)=>{if($){const I=Reflect.ownKeys(p),F=[...I],V={name:k=>{const N=I.includes(k);if(N){const A=F.findIndex(C=>k===C);A!==-1&&F.splice(A,1)}return N}};v?.emitToChildren(V,"setNameValidateRules",p,!1),F.length>0&&F.forEach(k=>{let N=String(k);const C=cr(u,N,{componentName:"",fieldName:N,pureDataValidate:!0},v,S);l[Je].set(N,C);const D=p[N];D&&C.validateSchema.setRule(D)})}},l.clearValidate=(p=!0)=>{let $=null;if(p===!0)$={name:"*"};else if(Array.isArray(p)&&p.length>0){const I=p;$={name:F=>F?I.indexOf(F)!==-1:!1}}else if(p!=null&&typeof p=="object"){const I=p;if(Array.isArray(I.include)&&I.include.length>0){const F=I.include;$={name:V=>V?F.indexOf(V)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const F=I.exclude;$={name:V=>V?F.indexOf(V)===-1:!1}}else $={name:"*"}}$&&v?.emitToChildren($,"clearValidate",!1)},l.resetFields=p=>{const $=c();if(!$)return;const I={};if(Ke(!0,I,d()??{}),Array.isArray(p))p.forEach(F=>{$[F]=I[F]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(V=>{$[V]=I[V]});else if(p&&Array.isArray(p.exclude)){let F=p.exclude??[];Reflect.ownKeys(I).forEach(V=>{F.includes(V)||($[V]=I[V])})}else Object.assign($,I);l.clearValidate(p)},l.setModelValue=(p,$)=>{!$||$===i?f(p):v?.emitToChildren({name:$},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ne]=void 0,l[Je]&&(l[Je].clear(),l[Je]=void 0),v!==null&&(v.destroy(),l[de]=void 0),S!==null&&(S.destroy(),l[Be]=void 0)}),u}function sr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ne,null);l===null&&(l=Qe());const s=e||t.prop||t.name,i=new Nt(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[Ne]=i,r.provide(Ne,i),r.onUnmounted(()=>{i.destroy(),a[Ne]=void 0}),i}function ur(e,t,o){const a=Fe(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function ge(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(de,null),i=xt(a,s,l,o);a[de]=i,r.provide(de,i),a.broadcast=(S,h,...w)=>Reflect.apply(i.emit,i,[S,h,...w]);const u=r.inject(Be,null);e.fieldName=e.fieldName??l;const f=Ct(a,u,e);a[Be]=f,r.provide(Be,f),ur(a,f,l),a.validate=(S=null)=>{const h=[];let w=!1,p=!1;if(Array.isArray(S)&&S.indexOf(l)!==-1)p=!0,w=!0;else if(S&&typeof S=="object"){const $=S;$.ignoreHidden===!0&&Wn(a.$el)?p=!1:(Array.isArray($.include)&&$.include.indexOf(l)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(l),p=!0),w=$.deep??!1}else typeof S=="boolean"&&(w=S),p=!0;if(p){const $=f?.validate();h.push($)}if(w){let $=null;const I={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const F=S;$={name:V=>V?F.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const F=S;if(I.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const V=F.include;$={name:k=>k?V.indexOf(k)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const V=F.exclude;$={name:k=>k?V.indexOf(k)===-1:!1}}else $={name:"*"}}if($){const F=i.emitToChildren($,"validate",I);Reflect.apply([].push,h,F)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then($=>{let I=[];return $.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(I=[...I,...F.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=S=>f?.setRule(S),a.setNameValidateRules=(S,h=!1)=>{const w=S[l];if(w&&f?.setRule(w),h){const p={name:$=>Reflect.ownKeys(S).includes($)};i.emitToChildren(p,"setNameValidateRules",S,!1)}},a.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(S===!0)h={name:"*"};else if(Array.isArray(S)&&S.length>0){const w=S;h={name:p=>p?w.indexOf(p)!==-1:!1}}else if(S!=null&&typeof S=="object"){const w=S;if(Array.isArray(w.include)&&w.include.length>0){const p=w.include;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const p=w.exclude;h={name:$=>$?p.indexOf($)===-1:!1}}else h={name:"*"}}h&&i.emitToChildren(h,"clearValidate",!1)};const c=new Va(a);a[lr]=c;const d=ht((S="validate")=>{S==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:nr()).forEach(S=>{c.on(S,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:or()).forEach(S=>{c.on(S,h=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[de]=void 0,f.destroy(),a[Be]=void 0,c.destroy(),a[lr]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(S,...h)=>{Reflect.apply(c.emit,c,[S,...h])},onEvent:(S,h)=>{Reflect.apply(c.on,c,[h])},offEvent:(S,h)=>{Reflect.apply(c.off,c,[h])}}}function cr(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=Ct({},a,o);l.validate=(f=null)=>{const c=[];let d=!1,b=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)b=!0,d=!0;else if(f&&typeof f=="object"){const v=f;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),b=!0,d=v.deep??!1}else typeof f=="boolean"&&(d=f),b=!0;if(b){const v=i?.validate();c.push(v)}if(d){let v=null;const S={deep:!1};if(f===!0)v={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;v={name:w=>w?h.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Array.isArray(h.include)&&h.include.length>0){const w=h.include;v={name:p=>p?w.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const w=h.exclude;v={name:p=>p?w.indexOf(p)===-1:!1}}else v={name:"*"}}if(v){const h=u.emitToChildren(v,"validate",S);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let S=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(S=[...S,...h.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=xt(null,n,s,l);return{broadcast:u,validateSchema:i}}const me=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ie(e,t)}px`:"";function ie(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),l=1;if(Ze){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Pe="PageStateKey";function Ie(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ie(e.right))),t}function fn(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=ie(o.headerHeight??t.headerHeight),e.headerPadding=Ie(o.headerPadding??t.headerPadding),e.footerHeight=ie(o.footerHeight??t.footerHeight),e.footerPadding=Ie(o.footerPadding??t.footerPadding),e.contentPadding=Ie(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ie(u,l):e.height=ie(l)-ie(s,l)-ie(i,l),e.width=ie(o.width??t.width??0,a)}}function fr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ie(a.top),n.safeAreaBottom=ie(a.bottom),n.safeAreaLeft=ie(a.left),n.safeAreaRight=ie(a.right));const l=e.get("pageLayout");if(!l)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;fn(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(Pe);d&&(n.height=Vt(e,d),n.width=Ot(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Vt(e,d),c.width=Ot(e,d)}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,S,h=-1,w=-1,p=0,$=0])=>{fn(c,S,t,b,h,w,p,$)}),e.set(Pe,c),c}function kt(e){return e.get(Pe)}function gt(e,t){if(t=t??e.get(Pe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function mt(e,t){if(t=t??e.get(Pe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(Pe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=gt(e,t),n=mt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ot(e,t){return t=t??e.get(Pe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Aa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(Pe)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function dn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ee(e,t,o=1,n){const a=Fe();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(dn(u,n))return u}const s=e.value;return dn(s,n)?s:null}):r.computed(()=>{const l=e.value;return dn(l,n)?l:a?.get(t)})}function Te(e){return Ee(e,"readonly",0,function(o){return re(o)})}function xe(e){return Ee(e,"disabled",0,function(o){return re(o)})}function oe(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const dr=new Map,It=new Map;let hn=null;function Ba(e){hn=e}function hr(e,t,o){if(o){let n=It.get(o);n||(n=new Map,It.set(o,n)),n.set(e,t)}else dr.set(e,t)}function Re(e,t,o){!o&&hn&&(o=hn(e)??void 0);let n=null;if(o){let a=It.get(o);a&&(n=a.get(t))}return n||(n=dr.get(t)),n}function Fa(e,t){for(let o in e){const n=e[o];hr(o,n,t)}}function qa(e){It.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ie(e,n)-ie(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class ja{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Qe();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=ir(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=Ke({},La(),t.safeAreaInset),s=Ma(n,a),i=Ke({},s.pageLayout,t.pageLayout);o=o??Qe(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ba(t)}setAPI(t,o,n){hr(t,o,n)}getAPI(t,o,n){return Re(t,o,n)}batchSetAPI(t,o){Fa(t,o)}clearScopeAPI(t){qa(t)}getRootDomain(){return Qe()}}const _a=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Pa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ha=e=>{_a.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Pa.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},$e={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},gr={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}},mr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{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},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}},pr=[];for(const e in mr)pr.push(e);function pe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const za=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...he,...gr,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}},setup(o,n){const a=cn(o.name,o);if(a){const f=fr(a,o);pe({getPageContentHeight:()=>Vt(a,f),getPageContentWidth:()=>Ot(a,f),getPageHeaderHeight:()=>gt(a,f),getPageFooterHeight:()=>mt(a,f)});const c=r.inject(za,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),b=r.toRaw(f),v=b?Reflect.ownKeys(b):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{v.includes(h)||(b[h]=[])}),u(b)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Ka,create:Ya,scope:Jc}=Q("page"),Ua=Ya(Wa(Ka));function Ga(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},yr=Ve(Ua,[["render",Ga]]),Xa=["aria-labelledby"],Za=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ja=[Za],Qa=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ja,14,Xa))}});function gn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function mn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}const el=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},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,default:""},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(a,l){const s=Fe(),i=s?kt(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:a.border,[`${y}--fixed`]:a.fixed,[`${y}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ie(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const E=Ie(a.padding??i.headerPadding);return Object.assign(y,E),f&&(i.headerHeight=f),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(E.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const E=Ie(a.padding);Object.assign(y,E)}return y}),d=r.ref(null),b=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const y=gn(d.value);i.headerAllHeight=y.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&sn(b,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const v=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),S=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),h=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),$=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),I=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),F=r.computed(()=>a.leftIcon),V=r.computed(()=>F.value||l.slots.leftIcon),k=r.computed(()=>a.titleIcon),N=r.computed(()=>a.titleIcon||l.slots.titleIcon),A=r.computed(()=>a.rightIcon),C=r.computed(()=>a.rightIcon||l.slots.rightIcon);function D(){l.emit("back")}function W(){l.emit("click-title")}function z(){l.emit("click-right")}function T(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:v,mHeaderShow:p,leftStyles:S,rightStyles:h,mLeftShow:w,mTitleShow:$,mRightShow:I,mLeftIcon:F,hasLeftIcon:V,mTitleIcon:k,hasTitleIcon:N,mRightIcon:A,hasRightIcon:C,handleLeft:D,handleCenter:W,handleRight:z,handleRightText:T}}}),{componentName:tl,create:nl,scope:rl}=Q("header-bar"),ol=nl(el(tl,rl,Qa)),al={key:1,class:"fox-header-bar__title"},ll={key:0,class:"title-text"};function il(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",al,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",ll,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const br=Ve(ol,[["render",il]]);function sl(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,a){const l=Fe(),s=l?kt(l):null,i=r.computed(()=>{const v=e;return{[v]:!0,[`${v}--${n.align}`]:!0,[`${v}--border`]:n.border,[`${v}--fixed`]:n.fixed,[`${v}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ie(n.height):null,f=r.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const S=Ie(n.padding??s.footerPadding);return Object.assign(v,S),u&&(s.footerHeight=u),v.height=s.footerHeight,v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.height=v.height+v.safeAreaBottom,v.bottom=v.safeAreaBottom+(S.bottom??0)),v}if(u&&(v.height=u),n.padding){const S=Ie(n.padding);Object.assign(v,S)}return v}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const v=gn(c.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&sn(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const b=r.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=me(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=me(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=me(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=me(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=me(f.value.bottom)),v});return{footerBarRef:c,classes:i,styles:b}}}}const{componentName:ul,create:cl,scope:Qc}=Q("footer-bar"),fl=cl(sl(ul));function dl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const wr=Ve(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Fe(),a=r.computed(()=>({[e]:!0})),l=n?kt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const v=Ie(o.padding);Object.assign(l.contentPadding,v)}const c=gt(n,l),d=mt(n,l);let b="";if(l.contentHeight?b=`${l.contentHeight}`:b=`${l.height}px`,l.contentPadding,f.height=b,l.contentPadding.top||c>0){const v=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+v}px`}if(l.contentPadding.bottom||d>0){const v=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+v}px`}return l.contentPadding.left&&(f.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(f.paddingRight=`${l.contentPadding.right}px`),f}if(o.padding){const c=Ie(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),i=r.ref(null),u=()=>{if(l&&i.value){const f=mn(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>gt(n),()=>mt(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:gl,create:ml,scope:ef}=Q("content"),pl=ml(hl(gl));function yl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Sr=Ve(pl,[["render",yl]]),et="GroupStateKey",vr=Symbol.for("GroupScopeKey");function Rt(){return r.inject(vr,!1)}function At(e=!0){r.provide(vr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];an(a)||(e[n]=a)})}function wl(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};bl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(et,l),l}function pn(e,t,o=-1,n=-1,a=!1,l,s,i){const u=e.get(et);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),l||(l=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const c=ie(l),d=ie(s);i||(i=f.type??"grid");const b=()=>{const v=t===""||t===-1,S=ie(t);let h=Se(o);const w=ie(n);if(!v){let I=(S-(h-1)*w)/h;for(;d!==-1&&I>d;)h++,I=(S-(h-1)*w)/h;for(;c!==-1&&h>1&&I<c;)h--,I=(S-(h-1)*w)/h}let p=!1;const $=u.layout;$.value.width=t,$.value.column!==h&&($.value.column=h,p=!0),$.value.gutter!==w&&($.value.gutter=w,p=!0),$.value.type!==i&&($.value.type=i,p=!0),p&&r.triggerRef($)};if(a)b();else{const v=++u.passport;setTimeout(()=>{v===u.passport&&b()},50)}}function Dt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.layout}function Bt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.order}function $r(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function Ft(e,t,o=1,n=0,a){const l={};let s=0;a?s=ie(a):s=$r(t.column,o),s>0&&(l.width=`${s}%`);const i=$r(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function qt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let a=Se(o);if(a===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(a>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const l=Se(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Tr=Symbol("RollingStateKey");function Sl(e){r.provide(Tr,e)}function vl(){return r.inject(Tr,null)}function yn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function $l(e){let t=yn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=yn(o),document.body.removeChild(o)}return t}function Tl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const xl={...he,...gr,...mr};function El(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=cn(n.name,n,pr),s=wl(l,{type:n.type}),i=Rt();At(!0);const u=n.rollingDisplay?vl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>i&&l?Dt(l,!0).value:null),b=r.getCurrentInstance(),v=O=>{const _=b?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(O,!0)};r.watch(()=>n.rules,(O,_)=>{if(!O&&!_)return;const H=r.toRaw(_),U=r.toRaw(O),Y=U?Reflect.ownKeys(U):[];(H?Reflect.ownKeys(H):[]).forEach(le=>{Y.includes(le)||(U[le]=[])}),v(U)},{deep:!0});const S=e,h=r.computed(()=>{const O={};O.height=L.value;const _=i?Bt(l,!0):null;if(d.value&&_){if(d.value.type==="grid"){const H=qt(_,d.value,n.span,n.offset);Object.assign(O,H)}else if(d.value.type==="flow"){const H=Ft(_,d.value,n.span,n.offset,n.width);Object.assign(O,H)}}else if(n.width){const H=me(n.width);O.width=H}return O}),w=r.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${S}--${O}`]:!0,[`${S}--${O}-justify-${n.justify}`]:!0,[`${S}--${O}-align-${n.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${O}`]:!0,[`${S}--gutter`]:!0}}),p=r.computed(()=>{if(s.layout.value.type==="grid"){let _="";if(n.columnWidth)_=`repeat(auto-fill, ${n.columnWidth})`;else{const H=Tl(C.value,s.layout.value.column,s.layout.value.gutter);_=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":_}}}),$=r.toRef(n,"title"),I=r.toRef(n,"gutter"),F=r.toRef(n,"column"),V=r.computed(()=>i||c.value?!0:re(n.isWrap)),k=[],N=O=>{k.push(O)},A=()=>{let O=k.length;k.splice(0,O)},C=r.ref(-1),D=O=>{const _=mn(O).width;_>0&&_!==C.value&&(C.value=_)};pn(l,C.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([C,F,I],([O,_,H])=>{s.order.index=0,pn(l,O,_,H,!1,n.minItemWidth,n.maxItemWidth,n.type)});const W=r.computed(()=>q.value?n.expandText??"":n.collapseText??""),z=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),T=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),y=r.ref(),E=r.ref(),L=r.computed(()=>B.value||me(n.height)||""),q=r.ref(!1),B=r.ref(""),x=r.ref(!1);let P=-1;const K=(O,_=!0)=>{const H=y.value;if(H&&q.value!==O){if(P=P===-1?$l(H):P,x.value=!0,_)if(H.style["will-change"]="height",H.ontransitionend=function(){H.ontransitionend=null,this.style["will-change"]="auto",O||(B.value="",x.value=!1)},O){let U=0;n.collapseHeight?U=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(U=E.value.offsetHeight),B.value=`${P}px`,r.nextTick(()=>{B.value=`${U}px`})}else B.value=`${P}px`;else if(O){let U=0;n.collapseHeight?U=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(U=E.value.offsetHeight),B.value=`${U}px`}else x.value=!1,B.value=`${P}px`;q.value=O,a.emit("update:collapse",O)}};r.watch(()=>n.collapse,O=>{K(O)});const G=()=>{J()},J=O=>{O=O??!q.value,K(O)};pe({toggleCollapse:J,doLayout:()=>{k[0]&&(D(k[0]),pn(l,C.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ne=null,ae=!0;const M=O=>{if(n.rules){const _=r.toRaw(n.rules);v(_)}if(Ze&&(O&&K(re(n.collapse),!1),n.autoLayout&&Array.isArray(k)&&k.length>0)){const _=k[0];D(_),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{D(_)}),ne.observe(_))}},X=()=>{ne?.disconnect(),ne=null},j=!c.value||u?.acquire();j&&(f.value=c.value?!0:null),r.onMounted(()=>{if(j&&(M(ae),ae=!1),c.value&&u){let O=null,_=u.initialHeight;u.observe(y.value,H=>{if(H!==f.value)if(H)f.value=!0,q.value||(B.value=""),O=setTimeout(()=>{O=null,f.value!==!1&&(M(ae),ae=!1)},100);else{if(O!==null&&clearTimeout(O),f.value=!1,!q.value)if(ae)B.value=u.initialHeight;else{let U=yn(y.value);U<=0?B.value=_:(B.value=`${U}px`,_=B.value)}ae||X()}})}}),r.onUnmounted(()=>{ne?.disconnect(),u&&u.unobserve(y.value)});const R=(O,_,H,U)=>{const Y={...w.value};return _===0&&(Y[`${S}__first`]=!0),H>=U-1&&(Y[`${S}__last`]=!0),r.h("div",{ref:N,key:`${_}`,class:Y,style:p.value},O)};return()=>{if(c.value&&f.value!==!0){const Y=n.tag||"div";return r.h(Y,{ref:y,prop:n.name,class:{[`${S}`]:!0,"is-collapse":x.value},style:h.value},[])}s.order.index=0;const O=[];let _=0;if(a.slots.header){const Y={key:`${_++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},Z=r.h("div",Y,[a.slots.header()]);O.push(Z)}else{const Y=[];if($.value){if(n.showMark){const le={class:{[`${S}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=r.h("div",le);Y.push(se)}const Z=r.h("div",{class:{[`${S}__header-title`]:!0}},[$.value]);Y.push(Z)}if(a.slots.toolbar&&Y.push(a.slots.toolbar()),n.showCollapse){const Z=[];if(W.value){const fe={class:z.value},Ce=r.h("span",fe,[W.value]);Z.push(Ce)}const le={class:T.value},se=o(n.collapseIcon,le);if(se&&Z.push(se),Z.length>0){const fe=r.h("div",{class:{[`${S}__header-collapse`]:!0},onClick:G},Z);Y.push(fe)}}if(Y.length>0){const Z={key:`${_++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},le=r.h("div",Z,Y);O.push(le)}}A();const H=a.slots.default?a.slots.default():[],U=s.layout.value.type;if(U==="grid"){const Y=R(H,_++,0,H.length);O.push(Y)}else if(U==="flow"){const Y=R(H,_++,0,H.length);O.push(Y)}else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=R([Z],_++,Y,H.length);O.push(le)}if(V.value){const Y=n.tag||"div";return r.h(Y,{ref:y,prop:n.name,class:{[`${S}`]:!0,"is-collapse":x.value},style:h.value},[O])}else return O}}}}const{componentName:Cl,create:Nl,scope:kl}=Q("group"),xr=Nl(El(Cl,kl,(e,t)=>(e=e??De.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Ol=/matrix\((.+)\)/,Er=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Vl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Ol.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(i+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function Il(e){return e===window}const bn=e=>{const t=r.unref(e);if(Il(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Rl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Al{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new Rl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const Cr=new Al,Nr={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:Dl,create:Bl}=Q("price"),Fl=Bl({props:{...Nr},setup(e){const t=r.computed(()=>({[Dl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ct(e.price)==0?"":vt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:a,decimalText:l}}}),ql=["innerHTML"],Ll=["innerHTML"];function Ml(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ql)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ll)):r.createCommentVNode("",!0)],2)}const wn=Ve(Fl,[["render",Ml]]),{componentName:Lt,create:jl}=Q("hint-text"),_l=jl({components:{Price:wn},props:{...Nr,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Lt]:!0})),b=r.ref(null),v=(A,C,D=10)=>{if(!Ze||C===!1||!A)return;l.value=!0;const W=bn(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const z=Er(e.reference),T=document.documentElement.clientWidth||document.body.clientWidth,y=b.value.offsetWidth,E=b.value.offsetHeight;z.y-E>=0?(c.value="top",s.value.y=z.y-E-10-4,i.value.y=E):(c.value="bottom",s.value.y=z.y+f.value+10,i.value.y=-10);const L=z.x+y-T;L<0?(s.value.x=z.x,i.value.x=20):(s.value.x=z.x-L,i.value.x=L+20),l.value=!1},D)},S=ht(()=>{v(e.message,e.visible)},10),h=r.computed(()=>e.visible&&w.value),w=r.ref(!0),p=ht(A=>{const C=A[0];C&&(w.value=C.isIntersecting)},10),$=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([A,C])=>{v(A,C)}),r.onMounted(()=>{v(e.message,e.visible),Cr.watch(e.reference,S),$.observe(e.reference)}),r.onBeforeMount(()=>{Cr.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const I=r.computed(()=>{const A={"min-width":me(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${s.value.x}px, ${s.value.y}px)`,A}),F=r.computed(()=>({[`${Lt}__content`]:!0})),V=r.computed(()=>({})),k=r.computed(()=>({[`${Lt}__arrow`]:!0,[`${Lt}__arrow-${e.placement}`]:!0})),N=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:h,tipRef:b,classes:d,styles:I,textClasses:F,textStyles:V,arrowClasses:k,arrowStyles:N}}}),Pl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Mt=Ve(_l,[["render",Hl]]);class kr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Sn={},zl=new kr,tt=new Map,vn=e=>{if(e){const t=document.getElementById(e);tt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of tt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}tt.clear()}},Wl=e=>{const t=document.getElementById(e.id);if(t){const o=tt.get(e.id);o?e={...Sn,...o,...e}:e={...Sn,...e};const n=r.createVNode(Mt,e);return r.render(n,t),e.id}},Kl=e=>{e.unmount=vn;let t;if(e.id){if(t=e.id,tt.has(t))return Wl(e)}else t=`hinttext_${zl.get()}`;e={...Sn,...e},e.id=t,tt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Mt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},jt={show(e,t,o={},n=!0){return n&&vn(),Yl(t),Kl({...o,message:t,reference:e})},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=jt}},{componentName:Vr,create:Ul}=Q("item"),Gl=Ul({inheritAttrs:!0,props:{...he,...$e},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ge({componentName:Vr,validate:!1},o);const n=Fe(),a=Rt();At(!1);const l=r.computed(()=>a&&n?Dt(n,!1).value:null),s=Vr,i=r.ref(null),u=r.computed(()=>{const M={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(M[e.errorMarkClass]=!!W.value,M[e.warnMarkClass]=!!C.value,M[e.infoMarkClass]=!!N.value,typeof i.value=="function"){const X=i.value(o);M[X]=!0}else if(typeof i.value=="string"){const X=i.value;M[X]=!0}return M}),f=r.computed(()=>{const M={},X=a&&n?Bt(n,!1):null;if(l.value&&X)if(l.value.type==="grid"){const j=qt(X,l.value,e.span,e.offset);Object.assign(M,j)}else if(l.value.type==="flow"){const j=Ft(X,l.value,e.span,e.offset,e.width);Object.assign(M,j)}else return e.width&&(M.width=me(e.width)),M;else e.width&&(M.width=me(e.width));return M}),c=r.ref(null),d=r.computed({get:()=>c.value??re(e.isRequired),set:M=>{c.value=M}}),b=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),v=Ee(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),S=r.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),h=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${S.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=Ee(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),$=r.computed(()=>p&&p.value?{width:me(p.value)}:{}),I=r.computed(()=>({"label--string":!0,"label--required":d.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),V=r.computed(()=>({...e.contentStyle})),k=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(M){d.value=M},setErrorTip(M){k.errorTip=M},setErrorIcon(M){k.errorIcon=M},setWarnTip(M){k.warnTip=M},setWarnIcon(M){k.warnIcon=M},setInfoTip(M){k.infoTip=M},setInfoIcon(M){k.infoIcon=M},setCustomClassName(M){i.value=M}});const N=r.computed(()=>e.infoTip||k.infoTip),A=r.computed(()=>e.infoIcon||k.infoIcon),C=r.computed(()=>e.warnTip||k.warnTip),D=r.computed(()=>e.warnIcon||k.warnIcon),W=r.computed(()=>e.errorTip||k.errorTip),z=r.computed(()=>e.errorIcon||k.errorIcon),T=r.computed(()=>W.value?"error":C.value?"warn":N.value?"info":""),y=r.computed(()=>T.value.length>0),E=r.computed(()=>T.value==="error"?W.value:T.value==="warn"?C.value:T.value==="info"?N.value:""),L=r.computed(()=>T.value==="error"?z.value:T.value==="warn"?D.value:T.value==="info"?A.value:null),q=r.computed(()=>{let M={[`${s}__tip`]:!0,[`${s}__tip--${T.value}`]:!0};return T.value==="error"&&e.errorClass?M[`${e.errorClass}`]=!0:T.value==="warn"&&e.warnClass?M[`${e.warnClass}`]=!0:T.value==="info"&&e.infoClass&&(M[`${e.infoClass}`]=!0),M}),B=r.computed(()=>{let M={};return v&&v.value==="top"||!b.value?M["padding-left"]="0px":p&&p.value&&(M["padding-left"]=me(p.value)),M}),x=()=>r.h(L.value,{width:12,height:12}),P=r.computed(()=>t.slots.fixedTip),K=r.computed(()=>({[`${s}__fixed-tip`]:!0})),G=r.ref();let J="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([M,X,j,R])=>{G.value&&(M&&!ce(X)?J?jt.show(G.value,X,{...R,id:J,type:j},!0):J=jt.show(G.value,X,{...R,type:j},!0):jt.hide(J))});let te=null;const ne=()=>{te||!G.value||(te=new IntersectionObserver(M=>{let X=!1;for(let j of M)if(j.intersectionRatio>0){X=!0,X&&t.emit("appear",j);break}X||t.emit("disappear")}),te.observe(G.value))},ae=()=>{!te||!G.value||(te.unobserve(G.value),te=null)};return r.watch(()=>re(e.appearListen),M=>{M?ne():ae()}),r.onMounted(()=>{re(e.appearListen)&&ne()}),r.onUnmounted(ae),{classes:u,styles:f,mainClasses:h,hasLabel:b,labelClasses:w,labelStyles:$,labelStringClasses:I,contentClasses:F,contentStyles:V,contentRef:G,hasTip:y,mTip:E,mIcon:L,renderIcon:x,tipClasses:q,tipStyles:B,hasFixedTip:P,fixedTipClasses:K}}}),Xl=["prop"],Zl={key:0,class:"fox-item__tip--icon"},Jl={class:"fox-item__tip--text"};function Ql(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",Zl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Jl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const ye=Ve(Gl,[["render",Ql]]);function ei(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=Fe(),l=Rt();At(!1);const s=r.computed(()=>l&&a?Dt(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Bt(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const b=qt(d,s.value,o.span,o.offset);Object.assign(c,b)}else if(s.value.type==="flow"){const b=Ft(d,s.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=me(o.width)),c;else o.width&&(c.width=me(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:ti,create:ni,scope:nf}=Q("slot-item"),Or=ni(ei(ti));function ri(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Fe(),i=Rt();At(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Dt(s,!1),d=Bt(s,!1);if(c.value&&d)if(c.value.type==="grid"){const b=qt(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=Ft(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=me(o.width))}else o.width&&(f.width=me(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const v=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(v)}f.push(d[b])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:oi,create:ai,scope:rf}=Q("row-item"),Ir=ai(ri(oi)),Rr={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function li(e,t,o){return{props:{...he,...$e,...Rr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:s.value})),S=T=>{d.value=T,i("update:modelValue",T),i("input",T)},h=T=>{i("change",T)};let w=oe(n,"hintText"),p=r.ref(!1);const $=T=>{let E=T.target.value;c.value=!0,ce(w.value)||(p.value=!0),i("focus",E,T)},I=T=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let E=T.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,T)},F=()=>{i("clear","")},V=r.ref(!1);let k=null;const N=()=>{n.showTooltip&&V.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{V.value=!0},150))},A=()=>{k&&(clearTimeout(k),V.value=!1,k=null)},C=r.computed(()=>V.value||p.value),D=r.computed(()=>V.value?d.value:w.value),W=r.computed(()=>ct(n.unit)>0),z=r.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:h,onInput:S,onFocus:$,onBlur:I,onMouseover:N,onMouseleave:A},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:W.value&&(E.suffix=()=>[n.unit]);const L=[],q=r.h(m.ElInput,y,E);L.push(q);const B={default:()=>L};a.slots.default&&(B.label=a.slots.default),a.slots.default&&(B.fixedTip=a.slots.fixedTip);const P={...ve(n,Rr),hintText:D.value,hintVisible:C.value,prop:`${n.prop}_item`};return r.h(o,P,B)}}}}const{componentName:ii,create:si,scope:ui}=Q("input-item"),Ar=si(li(ii,ui,ye));function He(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function pt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Dr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ci(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let fi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function di(){const e=r.getCurrentInstance();return new fi(e.proxy)}function Br(e,t,o){const n=He(e,t),a=He(e,o);if(n!==a)return!1;const l=pt(e,t),s=pt(e,o);return l===s}function Fr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let s of n){const i=Dr(e,s);if(Array.isArray(i)&&i.length>0){const u=Fr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=He(e,s)===l;else if(o==="item")u=Br(e,s,l);else{let f=pt(e,s);f==null&&(f=He(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function hi(e){return{text:e,value:e}}const qr={modelValue:{type:[String,Object,Boolean,Number],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function gi(e,t,o){return{props:{...he,...$e,...qr},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(R=>He(n,R)).join(" "):""),v=(j,R,O,_=!0)=>{const H=Fr(n,j,R,O);if(H===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],_&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let U=!0;if(H.length!==d.value.length)U=!1;else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=d.value[Y];if(!Br(n,Z,le)){U=!1;break}}if(!U){d.value=H;let Y=[],Z=[],le=[];H.forEach(Xe=>{const lt=pt(n,Xe),it=He(n,Xe);Y.push(lt),le.push(it),n.valueType==="text"?Z.push(it):n.valueType==="item"?Z.push(Xe):Z.push(lt)});let se,fe,Ce;n.multiple?(c.value=Y,se=r.toRaw(Z),fe=le,Ce=r.toRaw(H)):(c.value=Y[0]??"",se=r.toRaw(Z[0]??""),fe=le[0]??"",Ce=r.toRaw(H[0])),_&&(i("update:modelValue",se),i("change",se,Ce)),i("update:text",fe)}},S=r.ref(null),h=r.ref(null),w=r.computed(()=>h.value??S.value??[]),p=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,j=>re(j)),$=di(),I=async(j,R)=>{if(j){const O=await $.load("select",j,R);if(O.length>0)if(typeof O[0]=="string"){let U=O.map(Y=>hi(Y));S.value=U}else S.value=O;else S.value=null}};r.watch([()=>n.source,()=>n.params],([j,R])=>{I(j,R)},{immediate:!p.value});let F=!1;const V=()=>{F||(F=!0,I(n.source,n.params))};r.watch([()=>w.value,()=>n.modelValue],([j,R])=>{v(R,n.valueType,j,!1)});let k=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(k=async j=>{if(j==null){h.value=null;return}N.value=!0;try{const R=await n.remoteMethod(j);R&&(h.value=R)}catch(R){h.value=null,console.error(R)}N.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async j=>{if(j==null){h.value=null;return}N.value=!0;try{const R=await n.filterMethod(j,S.value);R&&(h.value=R)}catch(R){h.value=null,console.error(R)}N.value=!1});const C=r.ref(!1),D=e,W=r.computed(()=>({[D]:!0})),z=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),i("update:text",j),c.value=j):v(j,"value",w.value,!0)};let T=oe(n,"hintText"),y=r.ref(!1);const E=j=>{let O=j.target.value;C.value=!0,ce(T.value)||(y.value=!0),i("focus",O,j)},L=j=>{setTimeout(()=>{y.value&&(y.value=!1),C.value=!1},0);let O=j.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),te.value||i("blur",O,j)},q=()=>{i("clear","")},B=r.ref(!1);let x=null;const P=()=>{n.showTooltip&&B.value===!1&&(x&&clearTimeout(x),x=setTimeout(()=>{B.value=!0},150))},K=()=>{x&&(clearTimeout(x),B.value=!1,x=null)},G=r.computed(()=>B.value||y.value),J=r.computed(()=>B.value?b.value:T.value),te=r.ref(!1),ne=j=>{te.value=j,i("visible-change",j),j||i("selected")},ae=j=>{i("remove-tag",j)},M=(j,R)=>{const O=[];return j.forEach((_,H)=>{const U=Dr(n,_);if(Array.isArray(U)&&U.length>0){const Y=M(U,R),Z=He(n,_),se={key:`${Z}_${H}`,label:Z};O.push(r.h(m.ElOptionGroup,se,{default:()=>Y}))}else{const Y=pt(n,_),Z=He(n,_),le=ci(n,_),fe={key:`${Y}_${H}`,label:Z,disabled:le,value:Y};if(typeof R=="function")O.push(r.h(m.ElOption,fe,{default:()=>R(_)}));else if(n.optionType==="item"){const Ce={class:{"fox-select-item__option-left":!0}},Xe=r.h("span",Ce,[Y]),lt={class:{"fox-select-item__option-right":!0}},it=r.h("span",lt,[Z]),Rn=r.h("div",{class:{"fox-select-item__option":!0}},[Xe,it]);O.push(r.h(m.ElOption,fe,{default:()=>Rn}))}else n.optionType==="value"?O.push(r.h(m.ElOption,fe,{default:()=>[Y]})):O.push(r.h(m.ElOption,fe))}}),O},X=r.ref();return pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()}}),()=>{const R={...a.attrs,ref:X,class:W.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:q,onChange:z,onFocus:E,onBlur:L,onVisibleChange:ne,onRemoveTag:ae};typeof k=="function"&&(R["remote-method"]=k,R.loading=N.value),typeof A=="function"&&(R["filter-method"]=A,R.loading=N.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),a.slots.options?O.default=a.slots.options:O.default=()=>M(w.value,a.slots.option);const _=[],H=r.h(m.ElSelect,R,O);_.push(H);const U={default:()=>_};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const Z={...ve(n,qr),hintText:J.value,hintVisible:G.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:K};return p.value&&(Z["appear-listen"]=!0,Z.onAppear=V),r.h(o,Z,U)}}}}const{componentName:mi,create:pi,scope:yi}=Q("select-item"),Lr=pi(gi(mi,yi,ye));var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",b="quarter",v="year",S="date",h="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,$={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("_")},I=function(T,y,E){var L=String(T);return!L||L.length>=y?T:""+Array(y+1-L.length).join(E)+T},F={s:I,z:function(T){var y=-T.utcOffset(),E=Math.abs(y),L=Math.floor(E/60),q=E%60;return(y<=0?"+":"-")+I(L,2,"0")+":"+I(q,2,"0")},m:function T(y,E){if(y.date()<E.date())return-T(E,y);var L=12*(E.year()-y.year())+(E.month()-y.month()),q=y.clone().add(L,d),B=E-q<0,x=y.clone().add(L+(B?-1:1),d);return+(-(L+(E-q)/(B?q-x:x-q))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:v,w:c,d:f,D:S,h:u,m:i,s,ms:l,Q:b}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},V="en",k={};k[V]=$;var N=function(T){return T instanceof W},A=function T(y,E,L){var q;if(!y)return V;if(typeof y=="string"){var B=y.toLowerCase();k[B]&&(q=B),E&&(k[B]=E,q=B);var x=y.split("-");if(!q&&x.length>1)return T(x[0])}else{var P=y.name;k[P]=y,q=P}return!L&&q&&(V=q),q||!L&&V},C=function(T,y){if(N(T))return T.clone();var E=typeof y=="object"?y:{};return E.date=T,E.args=arguments,new W(E)},D=F;D.l=A,D.i=N,D.w=function(T,y){return C(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function T(E){this.$L=A(E.locale,null,!0),this.parse(E)}var y=T.prototype;return y.parse=function(E){this.$d=function(L){var q=L.date,B=L.utc;if(q===null)return new Date(NaN);if(D.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var x=q.match(w);if(x){var P=x[2]-1||0,K=(x[7]||"0").substring(0,3);return B?new Date(Date.UTC(x[1],P,x[3]||1,x[4]||0,x[5]||0,x[6]||0,K)):new Date(x[1],P,x[3]||1,x[4]||0,x[5]||0,x[6]||0,K)}}return new Date(q)}(E),this.$x=E.x||{},this.init()},y.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},y.$utils=function(){return D},y.isValid=function(){return this.$d.toString()!==h},y.isSame=function(E,L){var q=C(E);return this.startOf(L)<=q&&q<=this.endOf(L)},y.isAfter=function(E,L){return C(E)<this.startOf(L)},y.isBefore=function(E,L){return this.endOf(L)<C(E)},y.$g=function(E,L,q){return D.u(E)?this[L]:this.set(q,E)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(E,L){var q=this,B=!!D.u(L)||L,x=D.p(E),P=function(X,j){var R=D.w(q.$u?Date.UTC(q.$y,j,X):new Date(q.$y,j,X),q);return B?R:R.endOf(f)},K=function(X,j){return D.w(q.toDate()[X].apply(q.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(j)),q)},G=this.$W,J=this.$M,te=this.$D,ne="set"+(this.$u?"UTC":"");switch(x){case v:return B?P(1,0):P(31,11);case d:return B?P(1,J):P(0,J+1);case c:var ae=this.$locale().weekStart||0,M=(G<ae?G+7:G)-ae;return P(B?te-M:te+(6-M),J);case f:case S:return K(ne+"Hours",0);case u:return K(ne+"Minutes",1);case i:return K(ne+"Seconds",2);case s:return K(ne+"Milliseconds",3);default:return this.clone()}},y.endOf=function(E){return this.startOf(E,!1)},y.$set=function(E,L){var q,B=D.p(E),x="set"+(this.$u?"UTC":""),P=(q={},q[f]=x+"Date",q[S]=x+"Date",q[d]=x+"Month",q[v]=x+"FullYear",q[u]=x+"Hours",q[i]=x+"Minutes",q[s]=x+"Seconds",q[l]=x+"Milliseconds",q)[B],K=B===f?this.$D+(L-this.$W):L;if(B===d||B===v){var G=this.clone().set(S,1);G.$d[P](K),G.init(),this.$d=G.set(S,Math.min(this.$D,G.daysInMonth())).$d}else P&&this.$d[P](K);return this.init(),this},y.set=function(E,L){return this.clone().$set(E,L)},y.get=function(E){return this[D.p(E)]()},y.add=function(E,L){var q,B=this;E=Number(E);var x=D.p(L),P=function(J){var te=C(B);return D.w(te.date(te.date()+Math.round(J*E)),B)};if(x===d)return this.set(d,this.$M+E);if(x===v)return this.set(v,this.$y+E);if(x===f)return P(1);if(x===c)return P(7);var K=(q={},q[i]=n,q[u]=a,q[s]=o,q)[x]||1,G=this.$d.getTime()+E*K;return D.w(G,this)},y.subtract=function(E,L){return this.add(-1*E,L)},y.format=function(E){var L=this,q=this.$locale();if(!this.isValid())return q.invalidDate||h;var B=E||"YYYY-MM-DDTHH:mm:ssZ",x=D.z(this),P=this.$H,K=this.$m,G=this.$M,J=q.weekdays,te=q.months,ne=function(j,R,O,_){return j&&(j[R]||j(L,B))||O[R].slice(0,_)},ae=function(j){return D.s(P%12||12,j,"0")},M=q.meridiem||function(j,R,O){var _=j<12?"AM":"PM";return O?_.toLowerCase():_},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:D.s(G+1,2,"0"),MMM:ne(q.monthsShort,G,te,3),MMMM:ne(te,G),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:ne(q.weekdaysMin,this.$W,J,2),ddd:ne(q.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(P),HH:D.s(P,2,"0"),h:ae(1),hh:ae(2),a:M(P,K,!0),A:M(P,K,!1),m:String(K),mm:D.s(K,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:x};return B.replace(p,function(j,R){return R||X[j]||x.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(E,L,q){var B,x=D.p(L),P=C(E),K=(P.utcOffset()-this.utcOffset())*n,G=this-P,J=D.m(this,P);return J=(B={},B[v]=J/12,B[d]=J,B[b]=J/3,B[c]=(G-K)/6048e5,B[f]=(G-K)/864e5,B[u]=G/a,B[i]=G/n,B[s]=G/o,B)[x]||G,q?J:D.a(J)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return k[this.$L]},y.locale=function(E,L){if(!E)return this.$L;var q=this.clone(),B=A(E,L,!0);return B&&(q.$L=B),q},y.clone=function(){return D.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},T}(),z=W.prototype;return C.prototype=z,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",v],["$D",S]].forEach(function(T){z[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),C.extend=function(T,y){return T.$i||(T(y,W,C),T.$i=!0),C},C.locale=A,C.isDayjs=N,C.unix=function(T){return C(1e3*T)},C.en=k[V],C.Ls=k,C.p={},C})})(Mr);var bi=Mr.exports;const Ae=Le(bi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(w){this[h]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var p=w.match(/([+-]|\d\d)/g),$=60*p[1]+(+p[2]||0);return $===0?0:p[0]==="+"?-$:$}(h)}],d=function(h){var w=i[h];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(h,w){var p,$=i.meridiem;if($){for(var I=1;I<=24;I+=1)if(h.indexOf($(I,0,w))>-1){p=I>12;break}}else p=h===(w?"pm":"PM");return p},v={A:[s,function(h){this.afternoon=b(h,!1)}],a:[s,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[a,f("day")],Do:[s,function(h){var w=i.ordinal,p=h.match(/\d+/);if(this.day=p[0],w)for(var $=1;$<=31;$+=1)w($).replace(/\[|\]/g,"")===h&&(this.day=$)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(h){var w=d("months"),p=(d("monthsShort")||w.map(function($){return $.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(h){var w=d("months").indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function S(h){var w,p;w=h,p=i&&i.formats;for(var $=(h=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,D,W){var z=W&&W.toUpperCase();return D||p[W]||o[W]||p[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,y,E){return y||E.slice(1)})})).match(n),I=$.length,F=0;F<I;F+=1){var V=$[F],k=v[V],N=k&&k[0],A=k&&k[1];$[F]=A?{regex:N,parser:A}:V.replace(/^\[|\]$/g,"")}return function(C){for(var D={},W=0,z=0;W<I;W+=1){var T=$[W];if(typeof T=="string")z+=T.length;else{var y=T.regex,E=T.parser,L=C.slice(z),q=y.exec(L)[0];E.call(D,q),C=C.replace(q,"")}}return function(B){var x=B.afternoon;if(x!==void 0){var P=B.hours;x?P<12&&(B.hours+=12):P===12&&(B.hours=0),delete B.afternoon}}(D),D}}return function(h,w,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var $=w.prototype,I=$.parse;$.parse=function(F){var V=F.date,k=F.utc,N=F.args;this.$u=k;var A=N[1];if(typeof A=="string"){var C=N[2]===!0,D=N[3]===!0,W=C||D,z=N[2];D&&(z=N[2]),i=this.$locale(),!C&&z&&(i=p.Ls[z]),this.$d=function(L,q,B){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*L);var x=S(q)(L),P=x.year,K=x.month,G=x.day,J=x.hours,te=x.minutes,ne=x.seconds,ae=x.milliseconds,M=x.zone,X=new Date,j=G||(P||K?1:X.getDate()),R=P||X.getFullYear(),O=0;P&&!K||(O=K>0?K-1:X.getMonth());var _=J||0,H=te||0,U=ne||0,Y=ae||0;return M?new Date(Date.UTC(R,O,j,_,H,U,Y+60*M.offset*1e3)):B?new Date(Date.UTC(R,O,j,_,H,U,Y)):new Date(R,O,j,_,H,U,Y)}catch{return new Date("")}}(V,A,k),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),W&&V!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var T=A.length,y=1;y<=T;y+=1){N[1]=A[y-1];var E=p.apply(this,N);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}y===T&&(this.$d=new Date(""))}else I.call(this,F)}}})})(jr);var wi=jr.exports;const Si=Le(wi);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),b==="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 b}});return s.bind(this)(d)}}})})(_r);var vi=_r.exports;const $i=Le(vi);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,b,v,S,h){var w=d.name?d:d.$locale(),p=s(w[b]),$=s(w[v]),I=p||$.map(function(V){return V.slice(0,S)});if(!h)return I;var F=w.weekStart;return I.map(function(V,k){return I[(k+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,h,w){return h||w.slice(1)})}(d.formats[b.toUpperCase()])},c=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):i(d,"months")},monthsShort:function(b){return b?b.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):i(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return f(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return f(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Pr);var Ti=Pr.exports;const xi=Le(Ti);var Hr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o="week",n="year";return function(a,l,s){var i=l.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var b=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),v=this.diff(b,o,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Hr);var Ei=Hr.exports;const Ci=Le(Ei);var zr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(zr);var Ni=zr.exports;const ki=Le(Ni);var Wr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(Wr);var Vi=Wr.exports;const Oi=Le(Vi);var Kr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Kr);var Ii=Kr.exports;const Ri=Le(Ii);var Yr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(Yr);var Ai=Yr.exports;const Di=Le(Ai);Ae.extend(xi),Ae.extend($i),Ae.extend(Si),Ae.extend(Ci),Ae.extend(ki),Ae.extend(Oi),Ae.extend(Ri),Ae.extend(Di);const yt={format(e,t){return Ae(e).format(t)},parser(e,t){return Ae(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=l-(s-1)*i,f=l+(7-s)*i,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=yt.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=yt.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},Ur={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Gr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Bi(e,t,o){return{props:{...he,...$e,...Ur,...Gr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[`${b}__input`]:!0})),S=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let h=oe(n,"hintText"),w=r.ref(!1);const p=y=>{let L=y.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",L,y)},$=y=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let L=y.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,y)},I=()=>{i("clear","")},F=y=>{i("calendar-change",y)},V=(y,E,L)=>{i("panel-change",y,E,L)},k=y=>{i("visible-change",y)},N=Ee(r.computed(()=>n.longTermValue),"longTermText",ke.Near),A=Ee(r.computed(()=>n.longTermValue),"longTermValue",ke.Near);let C=null;const D=r.ref(re(n.longTerm)),W=y=>{if(D.value=y,i("update:longTerm",y),y){let E="";Array.isArray(A.value)?E=A.value.map((L,q)=>L||(Array.isArray(d.value)?d.value[q]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else i("update:modelValue",C)},z=re(n.isLongTerm);if(z){const y=()=>{if(D.value===!0){let E="";Array.isArray(A.value)?E=A.value.map((L,q)=>L||(Array.isArray(d.value)?d.value[q]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else _e(A.value,d.value)&&(D.value=!0)};y(),r.watch([()=>n.longTerm],([E])=>{D.value!==E&&y()})}const T=r.ref();return pe({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},handleOpen:()=>{T?.value.handleOpen()},handleClose:()=>{T?.value.handleClose()}}),()=>{const E={...a.attrs,ref:T,class:v.value,placeholder:f.placeholder.value,disabled:l.value||D.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$,onCalendarChange:F,onPanelChange:V,onVisibleChange:k},L={};a.slots["range-separator"]&&(L["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(L.default=a.slots.cell);const q=[],B=r.h(m.ElDatePicker,E,L);q.push(B);const x={default:()=>q};if(a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip),z){const J={label:N.value,disabled:s.value||l.value,modelValue:D.value,"onUpdate:modelValue":W},te=r.h(m.ElCheckbox,J),ne=r.h("div",{class:{[`${b}__append`]:!0}},[te]);x.append=()=>ne}const K={...ve(n,Ur,Gr),class:{[`${b}__wrapper`]:!0,"has-append":z},hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,K,x)}}}}const{componentName:Fi,create:qi,scope:Li}=Q("date-item"),Xr=qi(Bi(Fi,Li,ye)),Zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...he,...$e,...Zr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=k=>{d.value=k,i("update:modelValue",k),i("change",k)};let h=oe(n,"hintText"),w=r.ref(!1);const p=k=>{let A=k.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",A,k)},$=k=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let A=k.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,k)},I=()=>{i("clear","")},F=k=>{i("visible-change",k)},V=r.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const N={...a.attrs,ref:V,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$,onVisibleChange:F},A={},C=[],D=r.h(m.ElTimePicker,N,A);C.push(D);const W={default:()=>C};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const T={...ve(n,Zr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,T,W)}}}}const{componentName:ji,create:_i,scope:Pi}=Q("time-item"),Jr=_i(Mi(ji,Pi,ye)),Qr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hi(e,t,o){return{props:{...he,...$e,...Qr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=V=>{d.value=V,i("update:modelValue",V),i("change",V)};let h=oe(n,"hintText"),w=r.ref(!1);const p=V=>{let N=V.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",N,V)},$=V=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,V)},I=()=>{i("clear","")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const k={...a.attrs,ref:F,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$},N={},A=[],C=r.h(m.ElTimeSelect,k,N);A.push(C);const D={default:()=>A};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const z={...ve(n,Qr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,z,D)}}}}const{componentName:zi,create:Wi,scope:Ki}=Q("time-select-item"),eo=Wi(Hi(zi,Ki,ye));function to(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function no(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ln(`${e}`,`${t}`);return to(n)}else{let n=Qt(`${e}`,Mn(`${t}`),20);return to(n)}}function Yi(e,t=-1,o=!1,n=3,a=","){return vt(e,t,o,n,a)}function ro(e,t,o,n,a=!0){if(e=="")return"";if(e=jn(e),t=Se(t),t==1)return e;if(n)e=no(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(Se(o)+2,"0"):e=Qt(e,1,Se(o)));else{let l=-1*t;e=no(e,l)}return e}function oo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=en(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),a=en(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ao={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 Ui(e,t,o){return{props:{...he,...$e,...ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(!1),f=oe(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([T,y,E])=>{if(ce(T)){c.value="";return}const L=ro(T,y,E,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let T="";return u.value&&(T=c.value),T}),{t:b}=Oe.useFoxI18n(t),v=r.computed(()=>{let T=n.placeholder??"";return!u.value&&!ce(c.value)?T=Yi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):T=b(["placeholder",T]),T}),S=e,h=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__placeholder`]:c.value.length>0})),w=Ee(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const p=r.ref(""),$=r.computed(()=>{let T=p.value;return ce(T)&&(T=n.errorTip??""),T}),I=r.ref(""),F=r.ref(!1),V=(T,y)=>{if(T=`${T}`,ce(T)){c.value="",f.value="",y.forEach(E=>{i(E,"")}),re(n.showTip)&&F.value&&(F.value=!1);return}if(T.length>=2){let E=T;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){r.triggerRef(c);return}}if(T!="-"){if(!Gn(T)){r.triggerRef(c);return}if(n.integerLength!=-1&&Xn(T)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Zn(T)>Number(n.decimalLength)){r.triggerRef(c);return}let E=oo(T,n);if(E.maxValid===!1){p.value=E.message,r.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){r.triggerRef(c);return}I.value=T,re(n.showTip)&&(F.value=T.length>0),c.value=T,f.value=ro(T,n.rates,n.precision,!0),y.forEach(E=>{i(E,f.value)})},k=T=>{V(T,["update:modelValue","input"])},N=T=>{V(T,["update:modelValue","change"])},A=T=>{if(u.value=!0,re(n.showTip)){let y=c.value;ce(y)&&(y=n.hintText),ce(y)||(I.value=y,F.value=!0)}p.value="",i("focus",f.value,T)},C=T=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&F.value===!0&&(F.value=!1)},0),!ce(c.value)){let y=oo(c.value,n);if(y.minValid===!1||y.maxValid===!1){p.value=y.message;return}}i("update:modelValue",f.value,T),i("blur",f.value,T)},D=()=>{i("clear","")},W=r.computed(()=>ct(n.unit)>0),z=r.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:v.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onInput:k,onChange:N,onFocus:A,onBlur:C},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:W.value&&(E.suffix=()=>[n.unit]);const L=[],q=r.h(m.ElInput,y,E);L.push(q);const B={default:()=>L};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const P={...ve(n,ao),errorTip:$.value,hintText:I.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,P,B)}}}}const{componentName:Gi,create:Xi,scope:Zi}=Q("money-item"),lo=Xi(Ui(Gi,Zi,ye)),io={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 Ji(e,t,o){return{props:{...he,...$e,...io},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0,[`${b}__append`]:k.value})),S=r.computed(()=>({[`${b}__unit`]:!0})),h=A=>{d.value=A,i("update:modelValue",A),i("input",A)},w=A=>{i("change",A)};let p=oe(n,"hintText"),$=r.ref(!1);const I=A=>{let D=A.target.value;c.value=!0,ce(p.value)||($.value=!0),i("focus",D,A)},F=A=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let D=A.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,A)},V=()=>{i("clear","")},k=r.computed(()=>ct(n.unit)>0),N=r.ref();return pe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()}}),()=>{const C={...a.attrs,ref:N,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:w,onInput:h,onFocus:I,onBlur:F},D={},W=[],z=r.h(m.ElInputNumber,C,D);W.push(z);const T={default:()=>W};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const E={...ve(n,io),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};if(a.slots.append)T.append=a.slots.append;else if(k.value){const q={class:S.value},B=r.h("div",q,[n.unit]);T.append=()=>B}return r.h(o,E,T)}}}}const{componentName:Qi,create:es,scope:ts}=Q("input-number-item"),so=es(Ji(Qi,ts,ye));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ns(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Re(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function os(){const e=r.getCurrentInstance();return new rs(e.proxy)}function $n(e,t,o){const n=Ue(e,t),a=Ue(e,o);if(n!==a)return!1;const l=Ge(e,t),s=Ge(e,o);return l===s}function uo(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=uo(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ue(e,f)===i;else if(o==="item")u=$n(e,f,i);else{let c=Ge(e,f);c==null&&(c=Ue(e,f)),u=c===i}if(u){a.push(f),l=ns(e,f);break}}if(!u)break}}return a}function as(e){return{text:e,value:e}}const co={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1}};function ls(e,t,o){return{props:{...he,...$e,...co},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(X=>Ue(n,X)).join(" "):""),v=(M,X,j,R=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===M)return;c.value=M;const H=r.toRaw(M);if(R){const U=ae?.value.getCheckedNodes();if(U)if(n.multiple){const Y=[];U.forEach(Z=>{const se=(Z.pathNodes??[]).map(fe=>fe.data);Y.push(se)}),i("update:pathNodes",Y)}else{const Z=(U[0]?.pathNodes??[]).map(le=>le.data);i("update:pathNodes",Z)}i("update:modelValue",H),i("change",H)}}const O=uo(n,M,X,j);if(O===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,R&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let _=!0;if(O.length!==d.value.length)_=!1;else for(let H=0;H<O.length;H++){const U=O[H],Y=d.value[H];if(Array.isArray(U)){if(!Array.isArray(Y)||U.length!==Y.length)_=!1;else for(let Z=0;Z<U.length;Z++)if(!$n(n,U[Z],Y[Z])){_=!1;break}}else $n(n,U,Y)||(_=!1);if(!_)break}if(!_){d.value=O;let H=[],U=[];O.forEach(Z=>{if(Array.isArray(Z)){let le=[],se=[];for(let fe of Z)le.push(Ge(n,fe)),n.valueType==="text"?se.push(Ue(n,fe)):n.valueType==="item"?se.push(fe):se.push(Ge(n,fe));H.push(le),U.push(se)}else H.push(Ge(n,Z)),n.valueType==="text"?U.push(Ue(n,Z)):n.valueType==="item"?U.push(Z):U.push(Ge(n,Z))}),c.value=H;const Y=r.toRaw(U);R&&(i("update:pathNodes",O),i("update:modelValue",Y),i("change",Y))}},S=r.ref([]),h=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,M=>re(M)),w=os(),p=async(M,X)=>{if(M){const j=await w.load("cascader",M,X);if(j.length>0)if(typeof j[0]=="string"){let _=j.map(H=>as(H));S.value=_}else S.value=j}};r.watch([()=>n.source,()=>n.params],async([M,X])=>{p(M,X)},{immediate:!(h.value||n.lazy)});let $=!1;const I=()=>{$||($=!0,p(n.source,n.params))};r.watch([()=>S.value,()=>n.modelValue],([M,X])=>{v(X,n.valueType,M,!1)}),n.lazy&&v(n.modelValue,"value",[],!1);let F=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async M=>{if(M!=null){V.value=!0;try{const X=await n.remoteMethod(M);S.value=X}catch(X){console.error(X)}V.value=!1}});const k=r.ref(!1),N=e,A=r.computed(()=>({[N]:!0})),C=r.computed(()=>{let M={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(M.multiple=!0),n.props&&Object.assign(M,n.props),n.lazy&&(M.lazy=!0,M.lazyLoad=async(X,j)=>{const R=await w.load("cascader",n.source,X,!0);j(R)}),M}),D=M=>{n.allowCreate?(i("update:modelValue",M),i("change",M),c.value=M):v(M,"value",S.value,!0)};let W=oe(n,"hintText"),z=r.ref(!1);const T=M=>{let j=M.target.value;k.value=!0,ce(W.value)||(z.value=!0),i("focus",j,M)},y=M=>{setTimeout(()=>{z.value&&(z.value=!1),k.value=!1},0);let j=M.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),G.value||i("blur",j,M)},E=()=>{i("clear","")},L=r.ref(!1);let q=null;const B=()=>{n.showTooltip&&L.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{L.value=!0},150))},x=()=>{q&&(clearTimeout(q),L.value=!1,q=null)},P=r.computed(()=>L.value||z.value),K=r.computed(()=>L.value?b.value:W.value),G=r.ref(!1),J=M=>{G.value=M,i("visible-change",M),M||i("selected")},te=M=>{i("remove-tag",M)},ne=M=>{i("expand-change",M)},ae=r.ref();return pe({focus:()=>{ae?.value.focus()},blur:()=>{ae?.value.blur()},getCheckedNodes:()=>ae?.value.getCheckedNodes()}),()=>{const X={...a.attrs,ref:ae,class:A.value,props:C.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:S.value,modelValue:c.value,onClear:E,onChange:D,onFocus:T,onBlur:y,onVisibleChange:J,onRemoveTag:te,expandChange:ne};typeof F=="function"&&(X["remote-method"]=F,X.loading=V.value);const j={};a.slots.option&&(j.default=a.slots.option),a.slots.empty&&(j.empty=a.slots.empty);const R=[],O=r.h(m.ElCascader,X,j);R.push(O);const _={default:()=>R};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const U={...ve(n,co),hintText:K.value,hintVisible:P.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:B,onMouseleave:x};return h.value&&!n.lazy&&(U["appear-listen"]=!0,U.onAppear=I),r.h(o,U,_)}}}}const{componentName:is,create:ss,scope:us}=Q("cascader-item"),fo=ss(ls(is,us,ye)),ho={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cs(e,t,o){return{props:{...he,...$e,...ho},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=N=>{d.value=N,i("update:modelValue",N),i("input",N)},h=N=>{i("change",N)},w=N=>{i("select",N)};let p=oe(n,"hintText"),$=r.ref(!1);const I=N=>{let C=N.target.value;c.value=!0,ce(p.value)||($.value=!0),i("focus",C,N)},F=N=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let C=N.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),i("blur",C,N)},V=()=>{i("clear","")},k=r.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const A={...a.attrs,ref:k,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:V,onChange:h,onInput:S,onFocus:I,onBlur:F,onSelect:w},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix&&(C.suffix=a.slots.suffix),a.slots.option&&(C.default=a.slots.option);const D=[],W=r.h(m.ElAutocomplete,A,C);D.push(W);const z={default:()=>D};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,ho),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,y,z)}}}}const{componentName:fs,create:ds,scope:hs}=Q("autocomplete-item"),go=ds(cs(fs,hs,ye));function gs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;s.push(d[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(b=>b[n]===c);if(!d)break;s.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;s.push(d[o]),u=d[a]}}return s}let ms=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}const mo={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 ys(e,t){return{props:{...mo},setup(o,{attrs:n,slots:a}){const l=ps(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=gs(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return a.default?a.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:of,create:bs,scope:af}=Q("mapping"),_t=bs(ys());function ws(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ss(e,t){return{props:{...mo},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=ws(s.row,s.column.property);return a.default?r.h(_t,{...o,modelValue:i},{default:a.default}):r.h(_t,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:vs,scope:sf}=Q("table-mapping-column"),po=vs(Ss()),$s=Symbol.for("TableStateKey");function yo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ts(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject($s,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=yo(i.row,i.column.property),f=l?yo(l,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":c}};return r.h("label",v,[b])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:uf,create:xs,scope:cf}=Q("table-radio-column"),bo=xs(Ts()),Es={},Cs={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"},Ns=[r.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)];function ks(e,t){return r.openBlock(),r.createElementBlock("svg",Cs,Ns)}const Vs=Ve(Es,[["render",ks]]),{componentName:df,create:Os,scope:hf}=Q("table-setting"),Is={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:"不固定"}},Rs=Os({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:Vs,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...Is},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed===""||x.fixed===!0||x.fixed==="left")),s=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed==="right")),i=r.computed(()=>a.value.filter(x=>!(x.label===""||x.type||x.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=x=>x.length>1,b=x=>{const P=[];a.value=x.map((G,J)=>(!(G.label===""||G.type)&&G.visible!==!1&&P.push(G.prop),{...G,sortIndex:J})),i.value.length+l.value.length+s.value.length===P.length?$.value=!0:P.length>0&&(I.value=!0),k.value=P},v=x=>x?x.type?x.type:x.label?x.prop:"":"",S=(x,P)=>{if(x.length!==P.length)return!1;const K=x.map(G=>v(G));for(let G of P){const J=v(G);if(K.indexOf(J)===-1)return!1}return!0},h=x=>{if(!x){const P=e.tableRef.getColumnSetting(),K=P.srcColumnPropertyList;n=K.map((G,J)=>({...G,sortIndex:J})),x=P.columnPropertyList,x&&x.length>0&&S(K,x)||(x=K)}b(x)},w=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=r.ref(!1),I=r.ref(!1),F=x=>{const P=[];a.value.forEach(G=>{x&&!(G.label===""||G.type)&&P.push(G.prop),G.visible=x}),$.value=!1,I.value=!1,i.value.length+l.value.length+s.value.length===P.length?$.value=!0:P.length>0&&(I.value=!0),k.value=P,w()},V=()=>{h(n),w()},k=r.ref([]),N=x=>{a.value.forEach(K=>{if(K.label===""||K.type)return;const G=x.indexOf(K.prop)!==-1;K.visible=G}),$.value=!1,I.value=!1;const P=i.value.length+l.value.length+s.value.length;x.length===P?$.value=!0:x.length>0&&(I.value=!0),w()},A=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},D=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,D(x)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:$,isIndeterminate:I,handleCheckAllChange:F,handleReset:V,checkedValue:k,handleCheckChange:N,onShow:A,onDragStart:x=>{const P=x.currentTarget;P&&P.dataset&&(C.roleType=P.dataset.roleType,C.index=P.dataset.index)},onDragEnd:x=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},onDragOver:x=>{const P=x.currentTarget;x.relatedTarget;const K=D(P);if(!K)return;const G=K.dataset&&K.dataset.roleType;C.roleType===G&&(x.preventDefault(),C.currentRow&&C.currentRow!==K&&C.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),C.currentRow=K)},onDragLeave:x=>{x.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},onDrop:x=>{const P=x.currentTarget,K=D(P);if(!K)return;const G=K.dataset&&K.dataset.roleType;if(C.roleType!==G)return;x.preventDefault();const J=Number(C.index),te=Number(K.dataset.index);if(J!==te){if(J<te){const ne=a.value[J];a.value.splice(J,1),a.value.splice(te,0,ne)}else{const ne=a.value[J];a.value.splice(J,1),a.value.splice(te+1,0,ne)}b(a.value),w()}},toLeftFixed:x=>{const P=a.value[x];P.fixed="left",w()},toRightFixed:x=>{const P=a.value[x];P.fixed="right",w()},toUnFixed:x=>{const P=a.value[x];P.fixed=void 0,w()},checkboxLabelStyle:p}}}),As={class:"fox-table-setting"},Ds={class:"fox-table-setting__header"},Bs={class:"fox-table-setting__body"},Fs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ls=["data-index","draggable"],Ms={class:"tools-item"},js={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"},zs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ws={key:0,class:"fox-table-setting__body-title"},Ks=["data-index","draggable"],Ys={class:"tools-item"};function Us(e,t,o,n,a,l){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),v=r.resolveComponent("fox-checkbox"),S=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",As,[r.createElementVNode("div",Ds,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Bs,[r.createVNode(S,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",qs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ms,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ls))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Hs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",zs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ws,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(v,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ys,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ks))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tn=Ve(Rs,[["render",Us]]);let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){if(Array.isArray(o)){let f=(n-1)*a,c=f+a;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,s,i]);const u=Re(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(je(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function Xs(){const e=r.getCurrentInstance();return new Gs(e.proxy)}class Zs{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Js(){const e=r.getCurrentInstance();return new Zs(e.proxy)}const Qs=Symbol.for("TableStateKey");function eu(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function xn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=eu(n,a);if(l!==s)return!1}return!0})}const wo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},So={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},En={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:"不固定"}};function tu(e,t,o){return{inheritAttrs:!1,props:{...he,...$e,...wo,...So,...En},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Oe.useFoxI18n(t),{emitEvent:s}=ge({componentName:e,validateHandler:{getValue(...R){return I.value}}},n.prop??a.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,R=>{b.value=R});const v=R=>{b.value=R,s("page-index-change",R)},S=r.ref(n.pageSize);r.watch(()=>n.pageSize,R=>{S.value=R});const h=R=>{S.value=R,s("page-size-change",R)},w=r.shallowRef({}),p=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),$=r.ref(0),I=r.ref(),F=Xs();let V=!0;const k=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),N=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),A=async(R,O,_,H)=>{try{const U=await F.load("table",R,O,_,H,V,l.value);$.value=U.totalSize,I.value=U.page}catch(U){console.error("[FoxUI] Load Table Data Fail",U),$.value=0,I.value=[]}V=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([b,S],([R,O],[_,H])=>{O!==H&&(b.value=1,R=1),A(n.data,R,O,p.value)}),r.watch([()=>n.data,p],([R,O],[_,H])=>{k()&&(R!==_&&(V=!0),!(!Array.isArray(R)&&_e(R,_)&&_e(O,H))&&A(R,b.value,S.value,O))},{deep:!0});const C=(R={},O=!1)=>new Promise(_=>{w.value=r.toRaw(R??{}),r.triggerRef(w),O||(b.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,b.value,S.value,p.value),_()})}),D=()=>{$.value=0,I.value=[]};let W=!1;const z=()=>{W||(W=!0,C())};k()&&!N.value&&C();const T=r.ref(null);r.provide(Qs,{currentRow:T});const y=(R,O)=>{T.value=R,s("current-change",R,O)},E=(R,O,_)=>{s("row-click",R,O,_),re(n.rowClickSelectable)===!0&&j?.value.toggleRowSelection(R)},L=[],q=(R,O)=>{if(s("expand-change",R,O),re(n.uniqueExpansion))if(Array.isArray(O)&&O.length==0){const _=L.length;L.splice(0,_)}else{L.forEach(H=>{H!==R&&j?.value.toggleRowExpansion(H,!1)});const _=L.length;L.splice(0,_,R)}},B=a.attrs.id??n.prop??a.attrs.name,x=Js(),P=r.ref([]);let K=[];const G=()=>({srcColumnPropertyList:K.map(O=>({...O})),columnPropertyList:P.value}),J=R=>{P.value=[...R],ne()},te=async()=>{const R=await x.load(B);R&&(P.value=R)},ne=()=>{x.save(B,P.value)},ae=()=>{x.remove(B)};te();const M=R=>R?R.type?R.type:R.label?R.prop:"":"",X=r.computed(()=>{if(typeof a.slots.default=="function"){const R=a.slots.default(),O=new Map;if(K=[],R.forEach(_=>{const H=_;if(!H.props)return;const U=M(H.props);O.set(U,_);const Y={label:"",prop:""};Object.assign(Y,H.props),K.push(Y)}),P.value.length===K.length){const _=[];for(let H of P.value){const U=M(H),Y=O.get(U);if(!Y)return R;if(H.visible===!1)continue;const Z=Y;Z.props.fixed=H.fixed,_.push(Z)}return _}return R}return[]}),j=r.ref();return pe({clearSelection:()=>j?.value.clearSelection(),getSelectionRows:()=>j?.value.getSelectionRows(),toggleRowSelection:(R,O)=>{j?.value.toggleRowSelection(R,O)},toggleRowSelectionByProp:(R,O)=>{if(!I.value)return;const _=xn(I.value,R);_.length!==0&&_.forEach(H=>{j?.value.toggleRowSelection(H,O)})},toggleAllSelection:()=>{j?.value.toggleAllSelection()},toggleRowExpansion:(R,O)=>{j?.value.toggleRowExpansion(R,O)},toggleRowExpansionByProp:(R,O)=>{if(!I.value)return;const _=xn(I.value,R);_.length!==0&&_.forEach(H=>{j?.value.toggleRowExpansion(H,O)})},setCurrentRow:R=>{j?.value.setCurrentRow(R)},setCurrentRowByProp:R=>{if(!I.value)return;const O=xn(I.value,R);O.length!==0&&j?.value.setCurrentRow(O[0])},getCurrentRow:()=>T.value,clearSort:()=>{j?.value.clearSort()},clearFilter:R=>{j?.value.clearFilter(R)},doLayout:()=>{j?.value.doLayout()},sort:(R,O)=>{j?.value.sort(R,O)},scrollTo:(R,O)=>{j?.value.scrollTo(R,O)},setScrollTop:R=>{j?.value.setScrollTop(R)},setScrollLeft:R=>{j?.value.setScrollLeft(R)},loadData:C,clearData:D,getData(){return I.value},getTotalSize(){return $.value},getPageIndex(){return b.value},getPageSize(){return S.value},getColumnSetting:G,setColumnSetting:J,removeColumnSetting:ae}),()=>{const O={...a.attrs,onCurrentChange:y,onRowClick:E,onExpandChange:q,data:I.value,ref:j,class:u.value},_={};a.slots.default&&(_.default=()=>X.value),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const H=[],U=r.h(m.ElTable,O,_);H.push(U);let Y=null;if(typeof a.slots.pagination=="function")Y=a.slots.pagination();else if(n.showPagination){const Ce={class:d.value,total:$.value,pageSize:S.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":v,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};Y=r.h(m.ElPagination,Ce)}if(n.showSetting){const Ce=[];Y&&Ce.push(Y);const Xe=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(De.Setting)}),lt=Qn(n,En),it=r.h(Tn,{...lt,tableRef:{getColumnSetting:G,setColumnSetting:J,removeColumnSetting:ae}},{default:()=>Xe});Ce.push(it);const Rn=r.h("div",{class:c.value},Ce);H.push(Rn)}else Y&&H.push(Y);const Z={default:()=>H},se={...ve(n,wo,So,En),prop:`${n.prop}_item`};return se.contentClass=`${i}__wrap`,se.errorMarkClass="is-table-error",N.value&&k()&&(se["appear-listen"]=!0,se.onAppear=z),r.h(o,se,Z)}}}}const{componentName:nu,create:ru,scope:ou}=Q("table-item"),vo=ru(tu(nu,ou,ye));function nt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function iu(){const e=r.getCurrentInstance();return new lu(e.proxy)}function $o(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=nt(e,t),a=nt(e,o);if(n!==a)return!1;const l=bt(e,t),s=bt(e,o);return l===s}function su(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let s=!1;if(o==="text")s=nt(e,l)===t;else if(o==="item")s=$o(e,l,t);else{let i=bt(e,l);i==null&&(i=nt(e,l)),s=i===t}if(s){a=l;break}}return a}function uu(e){return{text:e,value:e}}function cu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const To={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"},lazyLoad:{type:[Boolean,String],default:!1}};function fu(e,t,o){return{inheritAttrs:!0,props:{...he,...$e,...To},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(N,A,C,D=!0)=>{const W=su(n,N,A,C);if(W===null){if(f.value===null)return;f.value=null,u.value=null,D&&(i("update:modelValue",null),i("change",null));return}if(!$o(n,W,f.value)){u.value=N;const T=r.toRaw(W);f.value=T;let y=null;n.valueType==="text"?y=nt(n,T):n.valueType==="item"?y=T:y=bt(n,T),D&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),b=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>re(N)),v=iu(),S=async(N,A)=>{if(N){const C=await v.load("radio",N,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>uu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([N,A])=>{S(N,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,A])=>{c(A,n.valueType,N,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=N=>{c(N,"value",d.value,!0)};let F=oe(n,"hintText"),V=oe(n,"hintVisible");const k=(N,A)=>{const C=[];return N.forEach((D,W)=>{const z=bt(n,D),T=nt(n,D);let y=au(n,D);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=cu(n,D,W)??{},L=`${z}_${W}`,q={...E,key:L,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElRadioButton,q,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElRadio,q,{default:()=>A(D)})):C.push(r.h(m.ElRadio,q,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],D={};a.slots.options?D.default=a.slots.options:D.default=()=>k(d.value,a.slots.text);const W=r.h(m.ElRadioGroup,A,D);C.push(W);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,To),hintText:F.value,hintVisible:V.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:du,create:hu,scope:gu}=Q("radio-item"),xo=hu(fu(du,gu,ye));function rt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class pu{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function yu(){const e=r.getCurrentInstance();return new pu(e.proxy)}function Eo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=rt(e,t),a=rt(e,o);if(n!==a)return!1;const l=ot(e,t),s=ot(e,o);return l===s}function bu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let s of n){let i=!1;if(o==="text")i=rt(e,s)===l;else if(o==="item")i=Eo(e,s,l);else{let u=ot(e,s);u==null&&(u=rt(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function wu(e){return{text:e,value:e}}function Su(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Co={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"},lazyLoad:{type:[Boolean,String],default:!1}};function vu(e,t,o){return{inheritAttrs:!1,props:{...he,...$e,...Co},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(N,A,C,D=!0)=>{const W=bu(n,N,A,C);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],D&&(i("update:modelValue",[]),i("change",[]));return}let z=!0;if(W.length!==f.value.length)z=!1;else for(let T=0;T<W.length;T++){const y=W[T],E=f.value[T];if(!Eo(n,y,E)){z=!1;break}}if(!z){f.value=W;let T=[],y=[];W.forEach(L=>{T.push(ot(n,L)),n.valueType==="text"?y.push(rt(n,L)):n.valueType==="item"?y.push(L):y.push(ot(n,L))}),u.value=T;const E=r.toRaw(y);D&&(i("update:modelValue",E),i("change",E))}},d=r.ref([]),b=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>re(N)),v=yu(),S=async(N,A)=>{if(N){const C=await v.load("checkbox",N,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>wu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([N,A])=>{S(N,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,A])=>{c(A,n.valueType,N,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=N=>{c(N,"value",d.value,!0)};let F=oe(n,"hintText"),V=oe(n,"hintVisible");const k=(N,A)=>{const C=[];return N.forEach((D,W)=>{const z=ot(n,D),T=rt(n,D);let y=mu(n,D);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=Su(n,D,W)??{},L=`${z}_${W}`,q={...E,key:L,class:n.itemClass,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElCheckboxButton,q,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElCheckbox,q,{default:()=>A(D)})):C.push(r.h(m.ElCheckbox,q,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:I},C=[],D={};a.slots.options?D.default=a.slots.options:D.default=()=>k(d.value,a.slots.text);const W=r.h(m.ElCheckboxGroup,A,D);C.push(W);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,Co),hintText:F.value,hintVisible:V.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:$u,create:Tu,scope:xu}=Q("checkbox-item"),No=Tu(vu($u,xu,ye)),ko={modelValue:{type:[Number,String],required:!1}};function Eu(e,t,o){return{props:{...he,...$e,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue",h=>Se(h)),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),v=r.ref(!1);const S=r.ref();return pe({}),()=>{const w={...a.attrs,ref:S,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElRate,w,p);$.push(I);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...ve(n,ko),hintText:b.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Cu,create:Nu,scope:ku}=Q("rate-item"),Vo=Nu(Eu(Cu,ku,ye)),Oo={modelValue:{type:[Boolean,String,Number],required:!1}};function Vu(e,t,o){return{props:{...he,...$e,...Oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),v=oe(n,"hintVisible");const S=r.ref();return pe({}),()=>{const w={...a.attrs,ref:S,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElSwitch,w,p);$.push(I);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...ve(n,Oo),hintText:b.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Ou,create:Iu,scope:Ru}=Q("switch-item"),Io=Iu(Vu(Ou,Ru,ye)),Ro={modelValue:{type:[String,Number,Boolean],required:!1}};function Au(e,t,o){return{props:{...he,...$e,...Ro},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=oe(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=V=>{u("update:modelValue",V),u("change",V)};let v=oe(n,"hintText"),S=r.ref(!1);const h=V=>{let N=V.target.value;i.value=!0,ce(v.value)||(S.value=!0),u("focus",N,V)},w=V=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),$.value||u("blur",N,V)},p=()=>{u("clear","")},$=r.ref(!1),I=V=>{$.value=V,u("visible-change",V),V||u("selected")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const k={...a.attrs,ref:F,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:p,onFocus:h,onBlur:w,onVisibleChange:I},N={};a.slots.option&&(N.default=a.slots.option);const A=[],C=r.h(m.ElTreeSelect,k,N);A.push(C);const D={default:()=>A};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const z={...ve(n,Ro),hintText:v.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,z,D)}}}}const{componentName:Du,create:Bu,scope:Fu}=Q("tree-select-item"),Ao=Bu(Au(Du,Fu,ye)),qu=Symbol.for("InnerPageScopeKey"),Lu=Symbol.for("PageWrapperKey");function Mu(e,t){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,n){r.provide(qu,!0);const a={};r.provide(Lu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:gf,create:ju,scope:mf}=Q("dialog-item"),Do=ju(Mu());function _u(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const a=e,l=r.computed(()=>({[a]:!0})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:s.value,style:i.value};c=r.h(o.icon??"div",h)}const d={class:u.value,style:f.value},b=n.default?n.default():[],v=r.h("div",d,b),S={class:l.value};return o.textPosition==="right"?r.h("div",S,[c,v]):r.h("div",S,[v,c])}}}}const{componentName:Pu,create:Hu,scope:pf}=Q("indicator"),Bo=Hu(_u(Pu));function zu(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const Wu={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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}};function Ku(e,t){return{props:{...Wu},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{c[b]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),i=c=>{if(c&&re(o.showOverflowTooltip)){const d=c.clientWidth;zu(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!re(o.showOverflowTooltip))return;const c=l.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const v=o.highlightFilter;if(c.indexOf(v)!==-1){const h=c.replace(new RegExp(v,"g"),`<span>${v}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const v=o.highlightFilter(c);v&&(d.innerHTML=v,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(re(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const w=h[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const p=Se(o.digits),$=Se(o.decimalLength),I=re(o.autoPadding);let F=`${h[0].children}`,V=F.split("").reverse().join("");V=vt(V,$,I,p,o.separator),F=V.split("").reverse().join("");let k=null;o.highlightFilter!==void 0&&(k=f(F,d)),k||(d.innerHTML=F,k=r.h(o.tag,d)),c.default=()=>k}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const p=w[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const $=`${w[0].children}`;h=f($,d),h||(d.innerHTML=$,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>h}const v={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,v,c)}}}}const{componentName:Yu,create:Uu,scope:yf}=Q("text"),Fo=Uu(Ku(Yu)),Gu={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:De.ArrowUp}};function Xu(e,t,o){return{props:{...Gu},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=oe(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},w=r.h("span",h,[i.value]);d.push(w)}const b={class:f.value},v=o(n.icon,b);return v&&d.push(v),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Zu,create:Ju,scope:Qu}=Q("more-button"),qo=Ju(Xu(Zu,Qu,(e,t)=>(e=e??De.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:ec,create:tc,scope:wf}=Q("tour"),nc=tc({components:{Close:De.Close,ElPopover:m.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=ec,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:S,maskWidth:h,maskHeight:w}=e,{width:p,height:$,left:I,top:F}=a.value,V=e.steps[n.active].offset??S,k=[I+p/2,F+$/2],N=Number(h||p),A=Number(w||$);return{width:`${N+ +V.left+V.right}px`,height:`${A+V.top+V.bottom}px`,top:`${k[1]-A/2-+V.top}px`,left:`${k[0]-N/2-+V.left}px`}}),i=S=>{S=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,c=()=>{const S=document.querySelector(`${e.steps[n.active].target}`),h=bn(S);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},v=(S,h=0)=>{S&&c(),e.steps,n.active=h,n.showTour=S,n.showPopup=S};return r.onMounted(()=>{v(e.modelValue,e.current)}),r.watch(()=>e.modelValue,S=>{v(S)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),rc={key:0,class:"fox-tour__content"},oc={key:0,class:"fox-tour__content-top"},ac={class:"fox-tour__content-inner"},lc={class:"fox-tour__content-bottom"},ic={class:"fox-tour__content-bottom-init"},sc={class:"fox-tour__content-bottom-operate"},uc={key:1,class:"fox-tour__content fox-tour__content-tile"},cc={class:"fox-tour__content-inner"};function fc(e,t,o,n,a,l){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",rc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",oc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",ac,r.toDisplayString(f.content),1),r.createElementVNode("div",lc,[r.createElementVNode("div",ic,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",sc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",uc,[r.createElementVNode("div",cc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Lo=Ve(nc,[["render",fc]]);function Cn(e){let t=e.offsetHeight;if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=o.offsetHeight,document.body.removeChild(o)}return t}const be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Me=e=>e==null,Mo=10;function dc(e,t){return e>t&&e>Mo?"horizontal":t>e&&t>Mo?"vertical":""}function hc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=dc(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function gc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function mc(e){e.stopPropagation()}function pc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&mc(e)}class yc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=gc()}open(t){this.el=t;const o=hc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};this.touchstart=a=>{this.moving||(o.start(a),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=a=>{this.moving&&(o.move(a),o.isHorizontal()&&pc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(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},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function bc(e,t){return new yc(e,t)}var jo;const Nn=typeof window<"u";Nn&&((jo=window?.navigator)!=null&&jo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let at=[];const _o=e=>{const t=e;t.key==="Escape"&&at.forEach(o=>o(t))},wc=e=>{r.onMounted(()=>{at.length===0&&document.addEventListener("keydown",_o),Nn&&at.push(e)}),r.onBeforeUnmount(()=>{at=at.filter(t=>t!==e),at.length===0&&Nn&&document.removeEventListener("keydown",_o)})},kn="fox-focus-trap.focus-after-trapped",Vn="fox-focus-trap.focus-after-released",Sc="fox-focus-trap.focusout-prevented",Po={cancelable:!0,bubbles:!1},vc={cancelable:!0,bubbles:!1},Ho="foxFocusAfterTrapped",zo="foxFocusAfterReleased",$c=Symbol("foxFocusTrap"),On=r.ref(),Pt=r.ref(0),In=r.ref(0);let Ht=0;const Wo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Tc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ko=(e,t)=>{for(const o of e)if(!Tc(o,t))return o},xc=e=>{const t=Wo(e),o=Ko(t,e),n=Ko(t.reverse(),e);return[o,n]},Ec=e=>e instanceof HTMLInputElement&&"select"in e,ze=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),In.value=window.performance.now(),e!==o&&Ec(e)&&t&&e.select()}};function Yo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Cc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Yo(e,n),e.unshift(n)},remove:n=>{e=Yo(e,n),e[0]?.resume?.()}}},Nc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ze(n,t),document.activeElement!==o)return},Uo=Cc(),kc=()=>Pt.value>In.value,zt=()=>{On.value="pointer",Pt.value=window.performance.now()},Go=()=>{On.value="keyboard",Pt.value=window.performance.now()},Vc=()=>(r.onMounted(()=>{Ht===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",Go)),Ht++}),r.onBeforeUnmount(()=>{Ht--,Ht<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",Go))}),{focusReason:On,lastUserFocusTimestamp:Pt,lastAutomatedFocusTimestamp:In}),Wt=e=>new CustomEvent(Sc,{...vc,detail:e}),{componentName:Sf,create:Oc,scope:vf}=Q("focus-trap"),Ic=Oc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean],required:!0},escape:{type:[Boolean],required:!0,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Ho,zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=Vc();wc(h=>{e.trapped&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:w,altKey:p,ctrlKey:$,metaKey:I,currentTarget:F,shiftKey:V}=h,{loop:k}=e,N=w==="Tab"&&!p&&!$&&!I,A=document.activeElement;if(N&&A){const C=F,[D,W]=xc(C);if(D&&W){if(!V&&A===W){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),k&&ze(D,!0))}else if(V&&[D,C].includes(A)){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),k&&ze(W,!0))}}else if(A===C){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};r.provide($c,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[w])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=h=>{o(Ho,h)},c=h=>o(zo,h),d=h=>{const w=r.unref(n);if(!w)return;const p=h.target,$=h.relatedTarget,I=p&&w.contains(p);e.trapped||$&&w.contains($)||(a=$),I&&o("focusin",h),!i.paused&&e.trapped&&(I?l=p:ze(l,!0))},b=h=>{const w=r.unref(n);if(!(i.paused||!w))if(!e.escape&&e.trapped){const p=h.relatedTarget;!an(p)&&!w.contains(p)&&setTimeout(()=>{if(!i.paused&&e.trapped){const $=Wt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||ze(l,!0)}},0)}else{const p=h.target;p&&w.contains(p)||o("focusout",h)}};async function v(){await r.nextTick();const h=r.unref(n);if(h){Uo.push(i);const w=h.contains(document.activeElement)?a:document.activeElement;if(a=w,!h.contains(w)){const $=new Event(kn,Po);h.addEventListener(kn,f),h.dispatchEvent($),$.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;_n(I)||(ze(I),document.activeElement!==I&&(I="first")),I==="first"&&Nc(Wo(h),!0),(document.activeElement===w||I==="container")&&ze(h)})}}}function S(){const h=r.unref(n);if(h){h.removeEventListener(kn,f);const w=new CustomEvent(Vn,{...Po,detail:{focusReason:s.value}});h.addEventListener(Vn,c),h.dispatchEvent(w),!w.defaultPrevented&&(s.value=="keyboard"||!kc())&&ze(a??document.body,!0),h.removeEventListener(Vn,f),Uo.remove(i)}}return r.onMounted(()=>{e.trapped&&v(),r.watch(()=>e.trapped,h=>{h?v():S()})}),r.onBeforeUnmount(()=>{e.trapped&&S()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Rc,create:Ac,scope:Tf}=Q("floating-window"),Dc=Symbol.for("InnerPageScopeKey"),Bc=Symbol.for("PageWrapperKey"),Fc={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},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},qc=Ac({inheritAttrs:!1,components:{FoxIcon:m.ElIcon,FocusTrap:Ic},props:{...Fc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Rc,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,B=>{n.value=B});const a=r.ref(e.left),l=r.ref(e.top),s=r.ref(e.right),i=r.ref(e.bottom),u=r.computed(()=>["fox-floating-window"]),f=r.computed(()=>{const B={};return Me(a.value)?B.left="auto":B.left=be(a.value),Me(l.value)?B.top="auto":B.top=be(l.value),Me(s.value)?B.right="auto":B.right=be(s.value),Me(i.value)?B.bottom="auto":B.bottom=be(i.value),Me(e.zIndex)||(B["z-index"]=be(e.zIndex)),Me(I.value)||(B.height=I.value),Me(F.value)||(B.width=F.value),B}),c=r.computed(()=>e.closeIcon??De.Close);r.provide(Dc,!0);const d={};r.provide(Bc,d);const b=()=>{typeof d.beforeClose=="function"?d.beforeClose(()=>{n.value=!1}):n.value=!1},v=r.computed(()=>e.collapseIcon??De.ArrowUp),S=r.computed(()=>V.value?e.expandText??"":e.collapseText??""),h=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),p=r.ref(),$=r.ref(),I=r.computed(()=>k.value||be(e.height)||""),F=r.computed(()=>N.value||be(e.width)||""),V=r.ref(!1),k=r.ref(""),N=r.ref(""),A=r.ref(!1);let C=-1;const D=(B,x=!0)=>{const P=p.value;if(P&&V.value!==B){if(C=C===-1?Cn(P):C,A.value=!0,x)if(P.style["will-change"]="height",P.ontransitionend=function(){P.ontransitionend=null,this.style["will-change"]="auto",B||(k.value="",A.value=!1)},B){let K=0;e.collapseHeight?K=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(K=Cn($.value)),k.value=`${C}px`,r.nextTick(()=>{k.value=`${K}px`,N.value=Me(e.collapseWidth)?"":be(e.collapseWidth)})}else k.value=`${C}px`,N.value="";else if(B){let K=0;e.collapseHeight?K=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(K=Cn($.value)),k.value=`${K}px`,N.value=Me(e.collapseWidth)?"":be(e.collapseWidth)}else A.value=!1,k.value=`${C}px`,N.value="";V.value=B,t("update:collapse",B)}};r.watch(()=>e.collapse,B=>{D(B)});const W=()=>{z()},z=B=>{B=B??!V.value,D(B)},T=()=>{a.value=null,l.value=null,s.value=null,i.value=null},y={x:0,y:0},q=bc(B=>{if(!p.value)return;const x=p.value;if(T(),e.origin==="left-top")a.value=x.offsetLeft,l.value=x.offsetTop,y.x=a.value,y.y=l.value;else if(e.origin==="left-bottom"){const P=document.documentElement.clientHeight||document.body.clientHeight;a.value=x.offsetLeft,i.value=P-(x.offsetTop+x.offsetHeight),y.x=a.value,y.y=i.value}else if(e.origin==="right-bottom"){const P=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;s.value=P-(x.offsetLeft+x.offsetWidth),i.value=K-(x.offsetTop+x.offsetHeight),y.x=s.value,y.y=i.value}else{const P=document.documentElement.clientWidth||document.body.clientWidth;s.value=P-(x.offsetLeft+x.offsetWidth),l.value=x.offsetTop,y.x=s.value,y.y=l.value}},B=>{if(!p.value)return;const x=p.value;T(),e.origin==="left-top"?(a.value=y.x+B.x,l.value=y.y+B.y,x.style.left=be(a.value),x.style.top=be(l.value)):e.origin==="left-bottom"?(a.value=y.x+B.x,i.value=y.y-B.y,x.style.left=be(a.value),x.style.bottom=be(i.value)):e.origin==="right-bottom"?(s.value=y.x-B.x,i.value=y.y-B.y,x.style.right=be(s.value),x.style.bottom=be(i.value)):(s.value=y.x-B.x,l.value=y.y+B.y,x.style.right=be(s.value),x.style.top=be(l.value))});return r.onMounted(()=>{e.draggable&&$.value&&p.value&&q.open($.value),e.collapse===!0&&D(e.collapse,!1)}),r.onBeforeUnmount(()=>{e.draggable&&$.value&&q.close()}),{classes:u,styles:f,visible:n,closeIcon:c,onClose:b,dialogRef:p,headerRef:$,onClickToggle:W,collapseIcon:v,currentCollapseText:S,collapseTextClasses:h,collapseIconClasses:w}}}),Lc={ref:"headerRef",class:"fox-floating-window__header"},Mc={class:"fox-floating-window__title"},jc={class:"fox-floating-window__tools"},_c={class:"fox-floating-window__body"};function Pc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(i,{loop:!0,escape:!0,trapped:e.visible,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Lc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Mc,r.toDisplayString(e.title),1),r.createElementVNode("div",jc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.currentCollapseText),3),r.createVNode(s,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",_c,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.visible]])]),_:3})],8,["disabled"])}const Xo=Ve(qc,[["render",Pc]]);function Hc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return sr(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:xf,create:zc,scope:Ef}=Q("domain-provider"),Zo=zc(Hc()),Wc={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 Kc(e,t){return{inheritAttrs:!1,props:Wc,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const s=(b,v)=>{if(c===null){l.set(b,{visible:null,callback:v});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:v}),c.observe(b)},i=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;Sl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(b,v,S)=>{c=new IntersectionObserver(h=>{for(let w of h){let p=!1;w.intersectionRatio>0&&(p=!0);const $=a.get(w.target);if($)try{if(o.loadPolicy==="lazy"&&!p&&$.visible!==null)return;$.visible=p,$.callback(p)}catch(I){console.error(I)}}},{root:b,rootMargin:v,threshold:S}),l.forEach((h,w)=>{a.set(w,h),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,v])=>{if(v||!b||c)return;let S=null;typeof b=="string"?S=document.querySelector(b):S=b,S&&d(S,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Cf,create:Yc,scope:Nf}=Q("rolling-provider"),Jo=Yc(Kc()),Qo=10;function Uc(e,t){return e>t&&e>Qo?"horizontal":t>e&&t>Qo?"vertical":""}function Gc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",v=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const p=w.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Uc(u.value,f.value))},start:w=>{v(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:v,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const Xc=[yr,br,wr,Sr,xr,ye,Or,Ir,Mt,Ar,Lr,Xr,Jr,eo,lo,so,fo,go,po,bo,Tn,vo,xo,No,Vo,Io,Ao,Do,_t,wn,Bo,Fo,qo,Lo,Xo,Zo,Jo],Zc=new ja(Xc,[Ha],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=go,g.Broadcast=ln,g.BroadcastKey=de,g.CascaderItem=fo,g.CheckboxItem=No,g.Content=Sr,g.DataItemsKey=Je,g.DateItem=Xr,g.DateUtils=yt,g.DialogItem=Do,g.Domain=Nt,g.DomainKey=Ne,g.DomainProvider=Zo,g.FloatingWindow=Xo,g.FooterBar=wr,g.Group=xr,g.HeaderBar=br,g.HintText=Mt,g.Indicator=Bo,g.InputItem=Ar,g.InputNumberItem=so,g.Item=ye,g.Mapping=_t,g.MoneyItem=lo,g.MoreButton=qo,g.Page=yr,g.Price=wn,g.PriorityPolicy=ke,g.RadioItem=xo,g.RateItem=Vo,g.RollingProvider=Jo,g.RowItem=Ir,g.SelectItem=Lr,g.SlotItem=Or,g.SwitchItem=Io,g.TableItem=vo,g.TableMappingColumn=po,g.TableRadioColumn=bo,g.TableSetting=Tn,g.Text=Fo,g.TimeItem=Jr,g.TimeSelectItem=eo,g.Tour=Lo,g.TreeSelectItem=Ao,g.UniqueID=kr,g.ValidateSchema=ar,g.ValidateSchemaKey=Be,g.cancelRaf=na,g.clearNonNumber=ya,g.clone=rn,g.compareTo=en,g.createBroadcast=xt,g.createValidateSchema=Ct,g.debounce=ht,g.debounceRef=Oa,g.decimalLength=Zn,g.default=Zc,g.defineBroadcast=va,g.defineConfigDomain=sr,g.defineDataItem=cr,g.defineDomain=cn,g.defineItem=ge,g.definePageState=fr,g.deleteGlobalValidator=Ea,g.disabledProperty=xe,g.divide=Qt,g.excludeProps=ve,g.extend=Ke,g.floatData=Sa,g.getGlobalValidateCheckEvents=nr,g.getGlobalValidateResetEvents=or,g.getPageContentAreaHeight=Vt,g.getPageContentAreaWidth=Ot,g.getPageFooterAreaHeight=mt,g.getPageHeaderAreaHeight=gt,g.getRootDomain=Qe,g.hasSymbol=Hn,g.includeProps=Qn,g.indexOf=ba,g.installRules=ur,g.integerLength=Xn,g.isArray=la,g.isArrayLike=Kn,g.isBrowser=Ze,g.isDate=ua,g.isESModule=da,g.isEmptyString=ce,g.isEqual=_e,g.isFunction=tn,g.isHidden=Wn,g.isInnerPage=Aa,g.isMap=ia,g.isNil=an,g.isNumberString=Gn,g.isObject=je,g.isPlainObject=nn,g.isPromise=fa,g.isRegExp=Un,g.isSet=sa,g.isString=_n,g.isSubPage=Da,g.isSymbol=ca,g.isWindow=zn,g.lastIndexOf=wa,g.makeArray=pa,g.merge=Yn,g.multiply=Ln,g.negate=Mn,g.nextTick=ga,g.numberFormat=vt,g.objectToString=Pn,g.once=Ia,g.property=Ee,g.raf=aa,g.readonlyProperty=Te,g.setGlobalValidateCheckEvents=Ca,g.setGlobalValidateHandler=Ta,g.setGlobalValidateMessages=ka,g.setGlobalValidateResetEvents=Na,g.setGlobalValidator=xa,g.throttle=ir,g.toBoolean=re,g.toNumber=Se,g.toPadding=Ie,g.toPx=ie,g.toPxDesc=me,g.toTypeString=$t,g.toValue=oe,g.tryTimes=sn,g.typeOf=Tt,g.unNumberFormat=jn,g.updatePageState=fn,g.useBroadcast=ft,g.useDomain=Fe,g.useExpose=pe,g.useInnerSize=mn,g.usePageState=kt,g.usePosition=Er,g.useRect=bn,g.useSize=gn,g.useTouch=Gc,g.valueLength=ct,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});