@fox-js/foxui-pc 4.0.1-42 → 4.0.1-43

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
1
  (function(h,a){typeof exports=="object"&&typeof module<"u"?a(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"],a):(h=typeof globalThis<"u"?globalThis:h||self,a(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,a,Me,g,st,ve){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon May 22 2023 18:26:19 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-desktop v4.0.0 Wed May 24 2023 14:10:52 GMT+0800 (中国标准时间)
3
3
  *//*!
4
4
  * @fox-js/big-decimal v4.0.1-5 Mon Jan 30 2023 14:39:30 GMT+0800 (中国标准时间)
5
- */function ut(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Nt(he(e),he(t)),r==1&&(n==1?e=Vt(e):t=Vt(t));let l=nn(e,t);return r?r==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Vt(l)):he(l)}function Vt(e){let t="",r=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return nn(t,o)}function he(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 Nt(e,t){let r=e.split("."),n=t.split("."),l=r[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function nn(e,t){[e,t]=Nt(e,t);let r="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var le=(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))(le||{});function Qe(e,t=0,r=le.HALF_EVEN){if(r===le.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 l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=Qe(e,0,r),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,rn(l[1],o,n,r)?(n?"-":"")+kt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&rn(i,s,n,r)&&(s=kt(s),s.length>t)?(n?"-":"")+kt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function rn(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===le.DOWN||!r&&n===le.FLOOR||r&&n===le.CEILING)return!1;if(n===le.UP||r&&n===le.FLOOR||!r&&n===le.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case le.HALF_DOWN:return!1;case le.HALF_UP:return!0;case le.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function kt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let l=r;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function It(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=et(e),t=et(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=et(e.replace(".","")),t=et(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,c="";for(let f=0;f<s;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let S=0;for(let x=t.length-1;x>=d&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(S+=parseInt(e[u[x]--])*parseInt(t[x]));S+=i,i=Math.floor(S/10),c=S%10+c,d--}return c=et(ia(c,o)),r==1&&(c="-"+c),c}function ia(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 et(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 At(e,t,r=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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=he(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=he(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let c=e.length-d+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==d&&(e=he(e.replace(".","")))}let o=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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=d,i="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(u)>=parseInt(t);)u=ut(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Qe(i,r-2))}function Rt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ut(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function an(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),ln(e),ln(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Rt(e,It(t,Qe(At(e,t),0,le.FLOOR)));return r+n}function ln(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function on(e,t){let r=!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),r=!0),[e,t]=Nt(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]?r?-1:1:r?1:-1;return 0}class X{value;static RoundingModes=le;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[r,n]=t.split(/[eE]/);r=he(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=l+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=l+he(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=X.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=X.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<r?(r=i,i=0):i-=r,s=t.substring(i,i+r)+(i<o-r&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return X.getPrettyValue(this.value,t,r)}static round(t,r=0,n=le.HALF_EVEN){if(t=X.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Qe(t,r,n)}round(t=0,r=le.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new X(Qe(this.value,t,r))}static floor(t){return t=X.validate(t),t.indexOf(".")===-1?t:X.round(t,0,le.FLOOR)}floor(){return this.value.indexOf(".")===-1?new X(this.value):new X(this.value).round(0,le.FLOOR)}static ceil(t){return t=X.validate(t),t.indexOf(".")===-1?t:X.round(t,0,le.CEILING)}ceil(){return this.value.indexOf(".")===-1?new X(this.value):new X(this.value).round(0,le.CEILING)}static add(t,r){return t=X.validate(t),r=X.validate(r),ut(t,r)}add(t){return new X(ut(this.value,t.getValue()))}static subtract(t,r){return t=X.validate(t),r=X.validate(r),Rt(t,r)}subtract(t){return new X(Rt(this.value,t.getValue()))}static multiply(t,r){return t=X.validate(t),r=X.validate(r),It(t,r)}multiply(t){return new X(It(this.value,t.getValue()))}static divide(t,r,n){return t=X.validate(t),r=X.validate(r),At(t,r,n)}divide(t,r){return new X(At(this.value,t.getValue(),r))}static modulus(t,r){return t=X.validate(t),r=X.validate(r),an(t,r)}modulus(t){return new X(an(this.value,t.getValue()))}static compareTo(t,r){return t=X.validate(t),r=X.validate(r),on(t,r)}compareTo(t){return on(this.value,t.getValue())}static negate(t){return t=X.validate(t),jt(t)}negate(){return new X(jt(this.value))}}function sn(e,t){return X.multiply(`${e}`,`${t}`)}function qt(e,t,r=8){return X.divide(`${e}`,`${t}`,r)}function Bt(e,t){return e=`${e}`,t=`${t}`,X.compareTo(e,t)}function un(e){return X.negate(e)}function ct(e,t=-1,r=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",d=o.indexOf(".");d!=-1&&(i=o.substring(0,d),u=o.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):r&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let f="",S=i.split("").reverse();for(let x=0;x<S.length;x++)f+=S[x]+((x+1)%n==0&&x+1!=S.length?l:"");u.length==0?c=`${s}${f.split("").reverse().join("")}`:c=`${s}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function cn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const sa=Array.isArray,ua=e=>ft(e)==="[object Map]",ca=e=>ft(e)==="[object Set]",fa=e=>e instanceof Date,Mt=e=>typeof e=="function",da=e=>typeof e=="string",ha=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",ga=e=>ke(e)&&Mt(e.then)&&Mt(e.catch),fn=Object.prototype.toString,ft=e=>fn.call(e),Dt=e=>ft(e)==="[object Object]",dn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ma(e){return e.__esModule||dn&&e[Symbol.toStringTag]==="Module"}const pa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function De(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<n;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=De(l,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Lt(e,t,r=!1){if(!r)De(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Dt(s))continue;o=Lt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Dt(s))continue;o=Lt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const _t=pa?Promise.resolve():null;function ya(e,...t){_t!==null?t&&t.length>0?_t.then(()=>{e(t)}):_t.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function Q(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function ae(e){return typeof e=="number"?e:Number(e)}const ba={"[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 dt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):ba[r]||"object"}function hn(e){return e&&typeof e=="object"&&"setInterval"in e}function gn(e){return!e||e.offsetParent===null}function mn(e){let t=!!e&&"length"in e&&e.length,r=dt(e);return r==="function"||hn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function pn(e,t){let r=+t.length,n=0,l=e.length;for(;n<r;n++)e[l++]=t[n];return e.length=l,e}function wa(e,t=[]){let r=t;return e!=null&&(mn(Object(e))?pn(r,typeof e=="string"?[e]:e):r.push(e)),r}function Ie(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=dt(e),n=dt(t);if(r!==n)return!1;if(r==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],d=t[i];if(!Ie(u,d))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!Ie(o,s))return!1}return!0}return!1}const He=typeof window<"u",Sa=He&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function yn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const oe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function bn(e){return oe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),oe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wn(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 r=t.indexOf(".");return r==-1?t.length:r}function Sn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function $n(e,t,r){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(r,"")}function $a(e,t=!0,r=!0){t?e=$n(e,".",/\./g):e=e.replace(/\./g,""),r?e=$n(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ie(e,r))return!0}):t.indexOf(e)}function Ea(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(Ie(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function tt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function xa(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function ge(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const n={};for(const l in e)r.includes(l)||(n[l]=e[l]);return n}const Ca=(e,t,r)=>{const n=Object.assign({},e),l=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},se=Symbol.for("BroadcastKey");class Ft{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):yn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(r);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[r]=="function"){const u=Reflect.apply(i[r],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},r,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,r,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,r){this.callbacks.set(t,r)}}function ht(e,t,r,n){const l=new Ft(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Ta(e,t,r){const n=r;if(n[se])return n[se];const l=a.inject(se,null),o=new Ft(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[se]=o,a.provide(se,o),a.onUnmounted(()=>{o.destroy(),n[se]=void 0}),o}function nt(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[se]??a.inject(se,null):a.inject(se,null)}const Le=e=>e.default??e;class Oa{error(t,r){const n=r,l=nt(r);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=nt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=nt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=nt(n),s=r.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?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let vn=new Oa;function Va(e){vn=e}function Na(e,t){Le(Me).setValidator(e,t)}function ka(e){Le(Me).deleteValidator(e)}let En=["blur","clear"];function Ia(e){En=e}function xn(){return En}let Cn=["focus","change"];function Aa(e){Cn=e}function Tn(){return Cn}function Ra(e){Le(Me).messages(e)}function rt(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function gt(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 Ce=Symbol("ValidateSchemaKey");class On{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,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=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=gt(rt(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=gt(n);const l=rt(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const l=vn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,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,r,n=!1){n?Le(Me).setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Le(Me).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Le(Me).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=rt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=gt(t):this.rules=gt([t]);const n=rt(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},i=Le(Me),u=new i(l),d=this.proxy??s;return u.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let S="error";Array.isArray(f.errors)&&f.errors.length>0&&(S=f.errors[0].message??S,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(S)}return f}).catch(f=>{const S=f.message??`${f}`;return this.error(S),f})}}return Promise.resolve({pass:!0})}}function mt(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(o){return o[l]}}}return new On(t,r,e)}const Vn=Symbol.for("EventEmitterKey");class ja{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===r);l!==-1&&n.splice(l,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function at(e,t){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...n])},t)}}function Nn(e,t){let r=0;return function(...n){const l=new Date().getTime();l-r<t||(r=l,Reflect.apply(e,null,[...n]))}}function qa(e,t){const r=at((n,l)=>{e=n,l()},t);return a.customRef((n,l)=>({get(){return n(),e},set(o){r(o,l)}}))}const Se=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class pt{_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=a.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const l=t[n];r.length>0&&r.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];r.push(l)}n=n._parent}return r}}const Ba=new pt;function Ke(){return Ba}function Te(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[Se]??a.inject(Se,null):a.inject(Se,null)}const Pt=Symbol("OriginalDateKey");function Ht(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(Se,null);s===null&&(s=Ke());const i=e||t.prop||t.name,u=new pt(i);u.parent=s;const d=p=>{o[Pt]||S(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,f=()=>o[Pt]??null,S=p=>{const T={};De(!0,T,a.toRaw(p)),o[Pt]=T};a.isReactive(t)?a.watchEffect(()=>{u.merge(t,r)}):u.merge(t,r),t.modelValue&&S(t.modelValue),o[Se]=u,a.provide(Se,u);let x=null,y=null;if(l!==null){const p=a.inject(se,null);x=ht(o,p,i,n),u.broadcast=x,o[se]=x,a.provide(se,x),o.broadcast=(v,O,...B)=>Reflect.apply(x.emit,x,[v,O,...B]);const T=a.inject(Ce,null);y=mt(o,T,{componentName:""}),u.validateSchema=y,o[Ce]=y,a.provide(Ce,y),o[ze]=new Map,o.validate=(v=!0)=>{const O=[];let B=null;const I={deep:!1};if(v===!0)B={name:"*"};else if(Array.isArray(v)&&v.length>0){const V=v;B={name:N=>N?V.indexOf(N)!==-1:!1}}else if(v!=null&&typeof v=="object"){const V=v;if(I.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const N=V.include;B={name:b=>b?N.indexOf(b)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const N=V.exclude;B={name:b=>b?N.indexOf(b)===-1:!1}}else B={name:"*"}}if(B){const V=x?.emitToChildren(B,"validate",I);V&&Reflect.apply([].push,O,V)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(V=>{let N=[];return V.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(N=[...N,...b.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(v,O=!0)=>{if(O){const B=Reflect.ownKeys(v),I=[...B],V={name:N=>{const b=B.includes(N);if(b){const A=I.findIndex(_=>N===_);A!==-1&&I.splice(A,1)}return b}};x?.emitToChildren(V,"setNameValidateRules",v,!1),I.length>0&&I.forEach(N=>{let b=String(N);const _=An(u,b,{componentName:"",fieldName:b,pureDataValidate:!0},x,y);o[ze].set(b,_);const q=v[b];q&&_.validateSchema.setRule(q)})}},o.clearValidate=(v=!0)=>{let O=null;if(v===!0)O={name:"*"};else if(Array.isArray(v)&&v.length>0){const B=v;O={name:I=>I?B.indexOf(I)!==-1:!1}}else if(v!=null&&typeof v=="object"){const B=v;if(Array.isArray(B.include)&&B.include.length>0){const I=B.include;O={name:V=>V?I.indexOf(V)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const I=B.exclude;O={name:V=>V?I.indexOf(V)===-1:!1}}else O={name:"*"}}O&&x?.emitToChildren(O,"clearValidate",!1)},o.resetFields=v=>{const O=c();if(!O)return;const B={};if(De(!0,B,f()??{}),Array.isArray(v))v.forEach(I=>{O[I]=B[I]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(V=>{O[V]=B[V]});else if(v&&Array.isArray(v.exclude)){let I=v.exclude??[];Reflect.ownKeys(B).forEach(V=>{I.includes(V)||(O[V]=B[V])})}else Object.assign(O,B);o.clearValidate(v)},o.setModelValue=(v,O)=>{!O||O===i?d(v):x?.emitToChildren({name:O},"setModelValue",v)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{u.destroy(),o[Se]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),x!==null&&(x.destroy(),o[se]=void 0),y!==null&&(y.destroy(),o[Ce]=void 0)}),u}function kn(e,t,r=[]){const l=a.getCurrentInstance()?.proxy;let o=a.inject(Se,null);o===null&&(o=Ke());const s=e||t.prop||t.name,i=new pt(s);return i.parent=o,a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),l[Se]=i,a.provide(Se,i),a.onUnmounted(()=>{i.destroy(),l[Se]=void 0}),i}function In(e,t,r){const l=Te(e)?.get("rules");if(!l)return;let o=l[r];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ce(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(se,null),i=ht(l,s,o,r);l[se]=i,a.provide(se,i),l.broadcast=(y,p,...T)=>Reflect.apply(i.emit,i,[y,p,...T]);const u=a.inject(Ce,null);e.fieldName=e.fieldName??o;const d=mt(l,u,e);l[Ce]=d,a.provide(Ce,d),In(l,d,o),l.validate=(y=null)=>{const p=[];let T=!1,v=!1;if(Array.isArray(y)&&y.indexOf(o)!==-1)v=!0,T=!0;else if(y&&typeof y=="object"){const O=y;O.ignoreHidden===!0&&gn(l.$el)?v=!1:(Array.isArray(O.include)&&O.include.indexOf(o)!==-1||Array.isArray(O.exclude)&&O.exclude.indexOf(o),v=!0),T=O.deep??!1}else typeof y=="boolean"&&(T=y),v=!0;if(v){const O=d?.validate();p.push(O)}if(T){let O=null;const B={deep:!1};if(y===!0)O={name:"*"};else if(Array.isArray(y)&&y.length>0){const I=y;O={name:V=>V?I.indexOf(V)!==-1:!1}}else if(y!=null&&typeof y=="object"){const I=y;if(B.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const V=I.include;O={name:N=>N?V.indexOf(N)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const V=I.exclude;O={name:N=>N?V.indexOf(N)===-1:!1}}else O={name:"*"}}if(O){const I=i.emitToChildren(O,"validate",B);Reflect.apply([].push,p,I)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(O=>{let B=[];return O.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(B=[...B,...I.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>d?.setRule(y),l.setNameValidateRules=(y,p=!1)=>{const T=y[o];if(T&&d?.setRule(T),p){const v={name:O=>Reflect.ownKeys(y).includes(O)};i.emitToChildren(v,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(t??"")!==-1)&&d?.clear();let p=null;if(y===!0)p={name:"*"};else if(Array.isArray(y)&&y.length>0){const T=y;p={name:v=>v?T.indexOf(v)!==-1:!1}}else if(y!=null&&typeof y=="object"){const T=y;if(Array.isArray(T.include)&&T.include.length>0){const v=T.include;p={name:O=>O?v.indexOf(O)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const v=T.exclude;p={name:O=>O?v.indexOf(O)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new ja(l);l[Vn]=c;const f=at((y="validate")=>{y==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xn()).forEach(y=>{c.on(y,p=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Tn()).forEach(y=>{c.on(y,p=>{f("reset")})}),a.onUnmounted(()=>{i.destroy(),l[se]=void 0,d.destroy(),l[Ce]=void 0,c.destroy(),l[Vn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(y,...p)=>{Reflect.apply(c.emit,c,[y,...p])},onEvent:(y,p)=>{Reflect.apply(c.on,c,[p])},offEvent:(y,p)=>{Reflect.apply(c.off,c,[p])}}}function An(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=mt({},l,r);o.validate=(d=null)=>{const c=[];let f=!1,S=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)S=!0,f=!0;else if(d&&typeof d=="object"){const x=d;Array.isArray(x.include)&&x.include.indexOf(s)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(s),S=!0,f=x.deep??!1}else typeof d=="boolean"&&(f=d),S=!0;if(S){const x=i?.validate();c.push(x)}if(f){let x=null;const y={deep:!1};if(d===!0)x={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;x={name:T=>T?p.indexOf(T)!==-1:!1}}else if(d!=null&&typeof d=="object"){const p=d;if(Array.isArray(p.include)&&p.include.length>0){const T=p.include;x={name:v=>v?T.indexOf(v)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const T=p.exclude;x={name:v=>v?T.indexOf(v)===-1:!1}}else x={name:"*"}}if(x){const p=u.emitToChildren(x,"validate",y);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(x=>{let y=[];return x.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(y=[...y,...p.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>i?.setRule(d),o.setNameValidateRules=d=>{const c=d[s];c&&i?.setRule(c)};const u=ht(null,n,s,o);return{broadcast:u,validateSchema:i}}const ee=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ne(e,t)}px`:"";function ne(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 r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let l=Number(e.substring(0,r)),o=1;if(He){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ae="PageStateKey";function Ee(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ne(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ne(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ne(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ne(e.right))),t}function zt(e,t,r={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=ne(r.headerHeight??t.headerHeight),e.headerPadding=Ee(r.headerPadding??t.headerPadding),e.footerHeight=ne(r.footerHeight??t.footerHeight),e.footerPadding=Ee(r.footerPadding??t.footerPadding),e.contentPadding=Ee(r.contentPadding??t.contentPadding),n){const u=r.height??t.height;u?e.height=ne(u,o):e.height=ne(o)-ne(s,o)-ne(i,o),e.width=ne(r.width??t.width??0,l)}}function Rn(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=ne(l.top),n.safeAreaBottom=ne(l.bottom),n.safeAreaLeft=ne(l.left),n.safeAreaRight=ne(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;zt(n,o,t,!0,s,i,u,d);const c=a.reactive(n),f=e.getForParent(Ae);f&&(n.height=St(e,f),n.width=$t(e,f),a.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=St(e,f),c.width=$t(e,f)}));const S=!f;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,y,p=-1,T=-1,v=0,O=0])=>{zt(c,y,t,S,p,T,v,O)}),e.set(Ae,c),c}function yt(e){return e.get(Ae)}function bt(e,t){return t=t??e.get(Ae),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function wt(e,t){return t=t??e.get(Ae),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function St(e,t){if(t=t??e.get(Ae),t){const r=bt(e,t),n=wt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(Ae),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ma(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Da(e){return!!e.getForParent(Ae)}var xe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(xe||{});function Kt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,r=1,n){const l=Te();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Kt(u,n))return u}const s=e.value;return Kt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Kt(o,n)?o:l?.get(t)})}function pe(e){return $e(e,"readonly",0,function(r){return Q(r)})}function ye(e){return $e(e,"disabled",0,function(r){return Q(r)})}function re(e,t="modelValue",r){const n=a.toRef(e,t);let l=n.value;typeof r=="function"&&(l=r(n.value));const o=a.ref(l);return a.watch(n,s=>{if(typeof r=="function"){const i=r(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const jn=new Map,vt=new Map;let Wt=null;function La(e){Wt=e}function qn(e,t,r){if(r){let n=vt.get(r);n||(n=new Map,vt.set(r,n)),n.set(e,t)}else jn.set(e,t)}function _e(e,t,r){!r&&Wt&&(r=Wt(e)??void 0);let n=null;if(r){let l=vt.get(r);l&&(n=l.get(t))}return n||(n=jn.get(t)),n}function _a(e,t){for(let r in e){const n=e[r];qn(r,n,t)}}function Fa(e){vt.delete(e)}function Pa(){return{top:0,left:0,bottom:0,right:0}}function Ha(e=0,t=0){if(He){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:n-ne(e,n)-ne(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class za{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){r?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=Ke();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Nn(()=>{const i={...r},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=De({},Pa(),t.safeAreaInset),s=Ha(n,l),i=De({},s.pageLayout,t.pageLayout);r=r??Ke(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",l),r.set("pageLayout",i),r.set("rootWidth",s.rootWidth),r.set("rootHeight",s.rootHeight)}setScopeGetter(t){La(t)}setAPI(t,r,n){qn(t,r,n)}getAPI(t,r,n){return _e(t,r,n)}batchSetAPI(t,r){_a(t,r)}clearScopeAPI(t){Fa(t)}getRootDomain(){return Ke()}}const Ka=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],Wa=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],Ga=e=>{Ka.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Wa.forEach(t=>{e.use(t)})};function J(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},a.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,a.defineComponent(r)}}}const ue={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}},me={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}},Bn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Mn={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,default:"flex"},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}},Dn=[];for(const e in Mn)Dn.push(e);function fe(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ya=Symbol.for("InnerPageScopeKey"),Ua=(e,t)=>({inheritAttrs:!0,props:{...ue,...Bn,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(r,n){const l=Ht(r.name,r);if(l){const d=Rn(l,r);fe({getPageContentHeight:()=>St(l,d),getPageContentWidth:()=>$t(l,d),getPageHeaderHeight:()=>bt(l,d),getPageFooterHeight:()=>wt(l,d)});const c=a.inject(Ya,!1);d&&c&&(d.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),i=a.getCurrentInstance(),u=d=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return a.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const f=a.toRaw(c),S=a.toRaw(d),x=S?Reflect.ownKeys(S):[];(f?Reflect.ownKeys(f):[]).forEach(p=>{x.includes(p)||(S[p]=[])}),u(S)},{deep:!0}),a.onMounted(()=>{if(r.rules){const d=a.toRaw(r.rules);u(d)}}),a.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:Xa,create:Za,scope:_s}=J("page"),Ja=Za(Ua(Xa));function Qa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles),title:""},[a.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},Ln=Re(Ja,[["render",Qa]]),el=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const l=Te(),o=l?yt(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),i=r.height!==null&&r.height!==void 0?ne(r.height):null,u=a.computed(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const A=Ee(r.padding??o.footerPadding);return Object.assign(b,A),i&&(o.headerHeight=i),b.height=o.headerHeight,b.safeAreaTop=o.safeAreaTop,b.safeAreaTop&&(b.top=b.safeAreaTop+(A.top??0),b.height=b.height+o.safeAreaTop),b.height,b.safeAreaTop,b}if(i&&(b.height=i),r.padding){const A=Ee(r.padding);Object.assign(b,A)}return b});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=a.computed(()=>{const b={};return u.value.height!==null&&u.value.height!==void 0&&(b.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(b.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(b.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(b.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(b.paddingBottom=`${u.value.bottom}px`),b}),c=a.computed(()=>{const b={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(b.top=`${u.value.safeAreaTop}px`),b}),f=a.computed(()=>{const b={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(b.top=`${u.value.safeAreaTop}px`),b}),S=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),x=a.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),y=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),p=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),T=a.computed(()=>{let b={};return typeof r.leftIcon=="object"?Object.assign(b,r.leftIcon):b.name=r.leftIcon,b}),v=a.computed(()=>{let b={};return typeof r.titleIcon=="object"?Object.assign(b,r.titleIcon):b.name=r.titleIcon,b}),O=a.computed(()=>{let b={};return typeof r.rightIcon=="object"?Object.assign(b,r.rightIcon):b.name=r.rightIcon,b});function B(){n.emit("back")}function I(){n.emit("click-title")}function V(){n.emit("click-right")}function N(){n.emit("click-right-text")}return{classes:s,styles:d,mHeaderShow:x,leftStyles:c,rightStyles:f,mLeftShow:S,mTitleShow:y,mRightShow:p,mLeftIcon:T,mTitleIcon:v,mRightIcon:O,handleLeft:B,handleCenter:I,handleRight:V,handleRightText:N}}}),{componentName:tl,create:nl,scope:Fs}=J("header-bar"),rl=nl(el(tl)),al={key:1,class:"fox-header-bar__title"};function ll(e,t,r,n,l,o){const s=a.resolveComponent("fox-ext-icon");return e.mHeaderShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:a.normalizeStyle(e.leftStyles)},[a.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(a.openBlock(),a.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):a.createCommentVNode("",!0),e.leftText?(a.openBlock(),a.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",al,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...i)=>e.handleTitle&&e.handleTitle(...i))},a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.titleIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),e.mRightShow?(a.openBlock(),a.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:a.normalizeStyle(e.rightStyles)},[a.renderSlot(e.$slots,"right",{},()=>[e.rightText?(a.openBlock(),a.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...i)=>e.handleRightText&&e.handleRightText(...i))},a.toDisplayString(e.rightText),1)):a.createCommentVNode("",!0),e.rightIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0)])],6)):a.createCommentVNode("",!0)}const _n=Re(rl,[["render",ll]]);function ol(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const l=Te(),o=l?yt(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const c=e;let f=e;return r.align==="left"?f=`${f}__left`:r.align==="right"?f=`${f}__right`:f=`${f}__center`,{[c]:!0,[f]:!0}}),i=r.height!==null&&r.height!==void 0?ne(r.height):null,u=a.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const f=Ee(r.padding??o.footerPadding);return Object.assign(c,f),i&&(o.footerHeight=i),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(f.bottom??0)),c}if(i&&(c.height=i),r.padding){const f=Ee(r.padding);Object.assign(c,f)}return c});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=a.computed(()=>{const c={};return u.value.height!==null&&u.value.height!==void 0&&(c.height=ee(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(c.paddingTop=ee(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(c.paddingLeft=ee(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(c.paddingRight=ee(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(c.paddingBottom=ee(u.value.bottom)),c});return{classes:s,styles:d}}}}const{componentName:il,create:sl,scope:Ps}=J("footer-bar"),ul=sl(ol(il));function cl(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Fn=Re(ul,[["render",cl]]);function fl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Te(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const i=yt(n);if(i){if(r.padding){const f=Ee(r.padding);Object.assign(i.contentPadding,f)}const u=bt(n,i),d=wt(n,i);let c="";if(i.contentHeight?c=`${i.contentHeight}`:c=`${i.height}px`,i.contentPadding,s.height=c,i.contentPadding.top!==null&&i.contentPadding.top!==void 0||u>0){const f=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${u+f}px`}if(i.contentPadding.bottom!==null&&i.contentPadding.bottom!==void 0||d>0){const f=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${d+f}px`}return i.contentPadding.left!==null&&i.contentPadding.left!==void 0&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right!==null&&i.contentPadding.right!==void 0&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(r.padding){const i=Ee(r.padding);i.left!==null&&i.left!==void 0&&(s.paddingLeft=`${i.left}px`),i.top!==null&&i.top!==void 0&&(s.paddingTop=`${i.top}px`),i.right!==null&&i.right!==void 0&&(s.paddingRight=`${i.right}px`),i.bottom!==null&&i.bottom!==void 0&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:dl,create:hl,scope:Hs}=J("content"),gl=hl(fl(dl));function ml(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Pn=Re(gl,[["render",ml]]),We="GroupStateKey",Hn=Symbol.for("GroupScopeKey");function Et(){return a.inject(Hn,!1)}function xt(e=!0){a.provide(Hn,e)}function pl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0,order:{index:0}});return e.set(We,o),o}function zn(e,t,r=-1,n=-1,l=!1,o){const s=e.get(We);if(!s)return;const i=e.get("groupLayout")??{};r===-1&&(r=i.column??1),n===-1&&(n=i.gutter??0),o||(o=i.minItemWidth??-1),o=ne(o);const u=()=>{const d=t===""||t===-1,c=ne(t);let f=ae(r);const S=ne(n);if(!d){let p=(c-(f-1)*S)/f;for(;o!==-1&&f>1&&p<o;)f--,p=(c-(f-1)*S)/f}let x=!1;const y=s.layout;y.value.width=t,y.value.column!==f&&(y.value.column=f,x=!0),y.value.gutter!==S&&(y.value.gutter=S,x=!0),x&&a.triggerRef(y)};if(l)u();else{const d=++s.passport;setTimeout(()=>{d===s.passport&&u()},50)}}function lt(e,t=!1){let r;return t?r=e.getForParent(We):r=e.get(We),r.layout}function Gt(e,t=!1){let r;return t?r=e.getForParent(We):r=e.get(We),r.order}function we(e,t=1){return t==="stretch"?-1:(t=ae(t),t===-1?100:100*t/e)}function yl(e){return e===window}const ot=e=>{const t=a.unref(e);if(yl(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},je=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,bl=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},wl=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=ae(e.props.offset);return t<0?0:t},Sl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},$l=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=ae(e.props.foxSubItemCount);return t<0?1:t};function Yt(e){let t=e.offsetHeight;if(t<=0){const r=e.cloneNode(!0),n=e.offsetWidth;r.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),t=r.offsetHeight,document.body.removeChild(r)}return t}function vl(e,t,r){return{props:{...ue,...Bn,...Mn},emits:["update:collapse"],setup(n,l){const o=Ht(n.name,n,Dn),s=pl(o,{type:n.type}),i=Et();xt(!0);const u=a.computed(()=>i&&o?lt(o,!0).value:null),d=a.getCurrentInstance(),c=m=>{const k=d?.proxy;k&&typeof k.setNameValidateRules=="function"&&k.setNameValidateRules(m,!0)};a.watch(()=>n.rules,(m,k)=>{if(!m&&!k)return;const j=a.toRaw(k),F=a.toRaw(m),z=F?Reflect.ownKeys(F):[];(j?Reflect.ownKeys(j):[]).forEach(Y=>{z.includes(Y)||(F[Y]=[])}),c(F)},{deep:!0});const f=e,S=a.computed(()=>{const m={};if(m.height=H.value,u.value){const k=lt(o,!0);if(k.value.type==="flex"){if(n.width){const z=ee(n.width);m.width=z}else{const z=we(k.value.column,n.span);z>0&&(m.width=`${z}%`)}const j=we(k.value.column,n.offset);j>0&&(m["margin-left"]=`${j}%`);const F=k.value.gutter/2;F>0&&(m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`)}else if(k.value.type==="flow"){if(n.width){const z=ee(n.width);m.width=z}else{const z=we(k.value.column,n.span);z>0&&(m.width=`${z}%`)}const j=we(k.value.column,n.offset);j>0&&(m["margin-left"]=`${j}%`);const F=k.value.gutter/2;if(F>0){const z=o?Gt(o,!0):null;if(z){let K=ae(n.offset)+ae(n.span);(K===-1||K>k.value.column)&&(K=k.value.column);const Y=Math.ceil((z.index+1)/k.value.column),W=Math.ceil((z.index+K)/k.value.column);if(Y===W){const U=(z.index+1)%k.value.column,Z=(z.index+K)%k.value.column,te=U===1?0:F,be=Z===0?0:F;m["padding-left"]=`${te}px`,m["padding-right"]=`${be}px`}else{const U=K%k.value.column,Z=0,te=U===0?0:F;m["padding-left"]=`${Z}px`,m["padding-right"]=`${te}px`}z.index+=K}else m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`}}}else if(n.width){const k=ee(n.width);m.width=k}return m}),x=a.computed(()=>n.type==="flex"?{[`${je("",n.type)}`]:!0,[`${je("justify",n.justify)}`]:!0,[`${je("align",n.align)}`]:!0,[`${je("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${je("",n.type)}`]:!0,[`${je("justify",n.justify)}`]:!0,[`${je("align",n.align)}`]:!0}:{[`${je("",n.type)}`]:!0,[`${f}__gutter`]:!0}),y=a.toRef(n,"title"),p=a.toRef(n,"gutter"),T=a.toRef(n,"column"),v=a.computed(()=>i?!0:Q(n.isWrap)),O=[],B=m=>{O.push(m)},I=()=>{let m=O.length;O.splice(0,m)},V=a.ref(-1);zn(o,V.value,T.value,p.value,!0,n.minItemWidth),n.autoLayout&&a.watch([V,T,p],([m,k,j])=>{s.order.index=0,zn(o,m,k,j,!1,n.minItemWidth)});const N=a.computed(()=>E.value?n.expandText??"":n.collapseText??""),b=a.computed(()=>({[`${e}__header-collapse-text`]:!0})),A=a.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!E.value,["is-collapse"]:E.value})),_=a.ref(),q=a.ref(),H=a.computed(()=>w.value||ee(n.height)||""),P=a.ref(!1),w=a.ref(""),E=a.ref(!1);let C=-1;const D=(m,k=!0)=>{const j=_.value;if(j&&P.value!==m){if(C=C===-1?Yt(j):C,E.value=!0,k)if(j.style["will-change"]="height",j.ontransitionend=function(){j.ontransitionend=null,this.style["will-change"]="auto",m||(w.value="",E.value=!1)},m){let F=0;q.value&&q.value.classList.contains(`${e}__header`)&&(F=Yt(q.value)),w.value=`${C}px`,a.nextTick(()=>{w.value=`${F}px`})}else w.value=`${C}px`;else if(m){let F=0;q.value&&q.value.classList.contains(`${e}__header`)&&(F=Yt(q.value)),w.value=`${F}px`}else E.value=!1,w.value=`${C}px`;P.value=m,l.emit("update:collapse",m)}};a.watch(()=>n.collapse,m=>{D(m)});const $=()=>{M()},M=m=>{m=m??!P.value,D(m)};fe({toggleCollapse:M});let L=null;a.onMounted(()=>{if(n.rules){const m=a.toRaw(n.rules);c(m)}if(He&&(D(Q(n.collapse),!1),n.autoLayout&&Array.isArray(O)&&O.length>0)){const m=O[0];V.value=ot(m).width,window.ResizeObserver&&(L=new window.ResizeObserver(()=>{const k=ot(m).width;k>0&&k!==V.value&&(V.value=k)}),L.observe(m))}}),a.onUnmounted(()=>{L?.disconnect()});const R=(m,k,j,F)=>{const z={...x.value};return k===0&&(z[`${f}__first`]=!0),j>=F-1&&(z[`${f}__last`]=!0),a.h("div",{ref:B,key:`${k}`,class:z},m)},G=m=>{if(typeof m.type=="symbol"){if(Array.isArray(m.children)){const k=[...m.children];for(let j=k.length-1;j>=0;j--){const F=k[j],z=G(F);z===null?k.splice(j,1):z.length>0&&Reflect.apply([].splice,k,[j,1,...z])}return k}return null}return[]};return()=>{s.order.index=0;const m=[];let k=0;if(l.slots.header){const K={key:`${k++}`,ref:q,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},Y=a.h("div",K,[l.slots.header()]);m.push(Y)}else{const K=[];if(y.value){if(n.showMark){const W={class:{[`${f}__header-mark`]:!0}};n.markColor&&(W.style={background:n.markColor});const U=a.h("div",W);K.push(U)}const Y=a.h("div",{class:{[`${f}__header-title`]:!0}},[y.value]);K.push(Y)}if(l.slots.toolbar&&K.push(l.slots.toolbar()),n.showCollapse){const Y=[];if(N.value){const Z={class:b.value},te=a.h("span",Z,[N.value]);Y.push(te)}const W={class:A.value},U=r(n.collapseIcon,W);if(U&&Y.push(U),Y.length>0){const Z=a.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:$},Y);K.push(Z)}}if(K.length>0){const Y={key:`${k++}`,ref:q,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},W=a.h("div",Y,K);m.push(W)}}I();const j=l.slots.default?l.slots.default():[];let F=[],z=0;if(n.type==="flex"){for(let K=0;K<j.length;K++){const Y=G(j[K]);if(Y===null)continue;Y.length>0&&Reflect.apply([].splice,j,[K,1,...Y]);const W=j[K];if(Sl(W)==="fragment"){let ie=$l(W);ie>s.layout.value.column?ie=s.layout.value.column:ie<=0&&(ie=1);const Ne=z+ie;if(Ne>s.layout.value.column){const tn=R([...F],k++,K-1,j.length);m.push(tn),z=ie,F=[W]}else F.push(W),z=Ne;continue}const Z=bl(W),te=wl(W);if(Z==="stretch"){if(z<s.layout.value.column){F.push(W);const ie=R([...F],k++,K,j.length);m.push(ie)}else{const ie=R([...F],k++,K-1,j.length);m.push(ie);const Ne=R([W],k++,K,j.length);m.push(Ne)}z=0,F=[];continue}let be=ae(Z);if(be===-1){if(F.length>0){const Ne=R([...F],k++,K-1,j.length);m.push(Ne)}const ie=R([W],k++,K,j.length);m.push(ie),z=0,F=[];continue}be>s.layout.value.column?be=s.layout.value.column:be<=0&&(be=1);const Be=z+be+te;if(Be>s.layout.value.column){const ie=R([...F],k++,K-1,j.length);m.push(ie),z=be+te,F=[W]}else F.push(W),z=Be}if(F.length>0){const K=R([...F],k++,j.length,j.length);m.push(K)}}else if(n.type==="flow"){const K=R(j,k++,0,j.length);m.push(K)}else for(let K=0;K<j.length;K++){const Y=j[K],W=R([Y],k++,K,j.length);m.push(W)}if(v.value){const K=n.tag||"div";return a.h(K,{ref:_,class:{[`${f}`]:!0,"is-collapse":E.value},style:S.value},[m])}else return m}}}}const{componentName:El,create:xl,scope:Cl}=J("group"),Kn=xl(vl(El,Cl,(e,t)=>(e=e??st.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function Tl(e){return e===window}const Ol=/matrix\((.+)\)/,Wn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Tl(t))return{x:0,y:0};let r=0,n=0,l=t;for(;l!==null;)r+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const c=Ol.exec(d);if(c){let S=c[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}l=l.parentNode}return r-=o,n-=s,r+=i,n+=u,{x:r,y:n}};class Vl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const r=this.watchedListeners.indexOf(t);r!==-1&&this.watchedListeners.splice(r,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Nl{monitorRegister=new WeakMap;watch(t,r){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Vl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(r),n=n.parentNode}}unwatch(t,r){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(r),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const Gn=new Nl,Yn={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:kl,create:Il}=J("price"),Al=Il({props:{...Yn},setup(e){const t=a.computed(()=>({[kl]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>tt(e.price)==0?"":ct(e.price,e.decimalLength,!0,ae(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),Rl=["innerHTML"],jl=["innerHTML"];function ql(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("view",{class:a.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Rl)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--${e.size}`)},a.toDisplayString(e.intText),3),e.decimalText.length!=0?(a.openBlock(),a.createElementBlock("view",{key:1,class:a.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--decimal-${e.size}`)},a.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(a.openBlock(),a.createElementBlock("view",{key:2,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,jl)):a.createCommentVNode("",!0)],2)}const Ut=Re(Al,[["render",ql]]),{componentName:Ct,create:Bl}=J("hint-text"),Ml=Bl({components:{Price:Ut},props:{...Yn,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Boolean,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const r=a.ref({x:0,y:0}),n=a.ref(0),l=a.ref(0),o=a.ref(e.placement),s=10,i=4,u=a.ref(0),d=a.computed(()=>({[Ct]:!0})),c=a.ref(null),f=(N,b,A=10)=>{if(!He||!e.autoFit||b===!1||!N)return;const _=Wn(e.reference);r.value=_,_.y<e.reference.offsetHeight&&(o.value="bottom");const q=ot(e.reference);n.value=q.width,l.value=q.height,setTimeout(()=>{if(!c.value)return;const H=document.documentElement.clientWidth||document.body.clientWidth,P=c.value.offsetWidth;let w=H-(P+ne(r.value.x));w<0?u.value=w:u.value=0},A)},S=at(()=>{f(e.message,e.visible)},10),x=a.computed(()=>e.visible&&y.value),y=a.ref(!0),p=at(N=>{const b=N[0];b&&(y.value=b.isIntersecting)},10),T=new IntersectionObserver(p);a.watch([()=>e.message,()=>e.visible],([N,b])=>{f(N,b)}),a.onMounted(()=>{f(e.message,e.visible),Gn.watch(e.reference,S),T.observe(e.reference)}),a.onBeforeMount(()=>{Gn.unwatch(e.reference,S),T.unobserve(e.reference),T.disconnect()});const v=a.computed(()=>{const N={left:`${ne(r.value.x)+u.value}px`,height:ee(e.popupHeight)};return e.placement==="bottom"?N.top=ee(r.value.y+l.value+s):N.top=ee(r.value.y-e.popupHeight-s-i),e.autoFit?N["min-width"]=ee(n.value):N.width=ee(n.value),N}),O=a.computed(()=>({[`${Ct}__content`]:!0})),B=a.computed(()=>({})),I=a.computed(()=>({[`${Ct}__arrow`]:!0,[`${Ct}__arrow-${e.placement}`]:!0})),V=a.computed(()=>e.placement==="bottom"?{top:`${-s}px`,left:`${ne(-u.value+20)}px`}:{top:"100%",left:`${ne(-u.value+20)}px`});return{show:x,tipRef:c,classes:d,styles:v,textClasses:O,textStyles:B,arrowClasses:I,arrowStyles:V}}}),Dl={key:1,class:"text"};function Ll(e,t,r,n,l,o){const s=a.resolveComponent("Price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{ref:"tipRef",class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.textClasses),style:a.normalizeStyle(e.textStyles)},[e.type=="number"?(a.openBlock(),a.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(a.openBlock(),a.createElementBlock("span",Dl,a.toDisplayString(e.message),1))],6),a.createElementVNode("div",{class:a.normalizeClass(e.arrowClasses),style:a.normalizeStyle(e.arrowStyles)},null,6)],6),[[a.vShow,e.show]])]),_:1})}const Tt=Re(Ml,[["render",Ll]]);class Un{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 Xt={},_l=new Un,Ge=new Map,Zt=e=>{if(e){const t=document.getElementById(e);Ge.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ge.keys()){const r=document.getElementById(t);r&&r.parentNode?.removeChild(r)}Ge.clear()}},Fl=e=>{const t=document.getElementById(e.id);if(t){const r=Ge.get(e.id);r?e={...Xt,...r,...e}:e={...Xt,...e};const n=a.createVNode(Tt,e);return a.render(n,t),e.id}},Pl=e=>{e.unmount=Zt;let t;if(e.id){if(t=e.id,Ge.has(t))return Fl(e)}else t=`hinttext_${_l.get()}`;e={...Xt,...e},e.id=t,Ge.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(Tt,e);return a.render(n,r),document.body.appendChild(r),t},Hl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ot={show(e,t,r={},n=!0){return n&&Zt(),Hl(t),Pl({...r,message:t,reference:e})},hide(e){Zt(e)},install(e){e.config.globalProperties.$hintText=Ot}},{componentName:Xn,create:zl}=J("item"),Kl=zl({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,t){ce({componentName:Xn,validate:!1},e.prop??t.attrs.name);const r=Te(),n=Et();xt(!1);const l=a.computed(()=>n&&r?lt(r,!1).value:null),o=Xn,s=a.computed(()=>{const m={[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder};return m[e.errorMarkClass]=!!_.value,m[e.warnMarkClass]=!!b.value,m[e.infoMarkClass]=!!V.value,m}),i=a.computed(()=>{const m={};if(l.value)if(l.value.type==="flex"){if(e.width)m.width=ee(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const k=we(l.value.column,e.offset);k>0&&(m["margin-left"]=`${k}%`);const j=l.value.gutter/2;j>0&&(m["padding-left"]=`${j}px`,m["padding-right"]=`${j}px`)}else if(l.value.type==="flow"){if(e.width)m.width=ee(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const k=we(l.value.column,e.offset);k>0&&(m["margin-left"]=`${k}%`);const j=l.value.gutter/2;if(j>0){const F=r?Gt(r,!1):null;if(F){let z=ae(e.offset)+ae(e.span);(z===-1||z>l.value.column)&&(z=l.value.column);const K=Math.ceil((F.index+1)/l.value.column),Y=Math.ceil((F.index+z)/l.value.column);if(K===Y){const W=(F.index+1)%l.value.column,U=(F.index+z)%l.value.column,Z=W===1?0:j,te=U===0?0:j;m["padding-left"]=`${Z}px`,m["padding-right"]=`${te}px`}else{const W=z%l.value.column,U=0,Z=W===0?0:j;m["padding-left"]=`${U}px`,m["padding-right"]=`${Z}px`}F.index+=z}else m["padding-left"]=`${j}px`,m["padding-right"]=`${j}px`}}else return e.width&&(m.width=ee(e.width)),m;else e.width&&(m.width=ee(e.width));return m}),u=a.ref(null),d=a.computed({get:()=>u.value??Q(e.isRequired),set:m=>{u.value=m}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=$e(a.toRef(e,"labelPosition"),"labelPosition",xe.Near),S=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),x=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${S.value}`]:!0})),y=a.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=$e(a.toRef(e,"labelWidth"),"labelWidth",xe.Near),T=a.computed(()=>p&&p.value?{width:ee(p.value)}:{}),v=a.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),O=a.computed(()=>({content:!0,[e.contentClass]:!0})),B=a.computed(()=>({...e.contentStyle})),I=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(m){d.value=m},setErrorTip(m){I.errorTip=m},setErrorIcon(m){I.errorIcon=m},setWarnTip(m){I.warnTip=m},setWarnIcon(m){I.warnIcon=m},setInfoTip(m){I.infoTip=m},setInfoIcon(m){I.infoIcon=m}});const V=a.computed(()=>e.infoTip||I.infoTip),N=a.computed(()=>e.infoIcon||I.infoIcon),b=a.computed(()=>e.warnTip||I.warnTip),A=a.computed(()=>e.warnIcon||I.warnIcon),_=a.computed(()=>e.errorTip||I.errorTip),q=a.computed(()=>e.errorIcon||I.errorIcon),H=a.computed(()=>_.value?"error":b.value?"warn":V.value?"info":""),P=a.computed(()=>H.value.length>0),w=a.computed(()=>H.value==="error"?_.value:H.value==="warn"?b.value:H.value==="info"?V.value:""),E=a.computed(()=>H.value==="error"?q.value:H.value==="warn"?A.value:H.value==="info"?N.value:null),C=a.computed(()=>{let m={[`${o}__tip`]:!0,[`${o}__tip--${H.value}`]:!0};return H.value==="error"&&e.errorClass?m[`${e.errorClass}`]=!0:H.value==="warn"&&e.warnClass?m[`${e.warnClass}`]=!0:H.value==="info"&&e.infoClass&&(m[`${e.infoClass}`]=!0),m}),D=a.computed(()=>{let m={};return f&&f.value==="top"||!c.value?m["padding-left"]="0px":p&&p.value&&(m["padding-left"]=ee(p.value)),m}),$=a.ref();let M="";a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([m,k,j,F])=>{$.value&&(m&&!oe(k)?M?Ot.show($.value,k,{...F,id:M,type:j},!0):M=Ot.show($.value,k,{...F,type:j},!0):Ot.hide(M))});let L=null;const R=()=>{L||!$.value||(L=new IntersectionObserver(m=>{let k=!1;for(let j of m)if(j.intersectionRatio>0){k=!0,k&&t.emit("appear",j);break}k||t.emit("disappear")}),L.observe($.value))},G=()=>{!L||!$.value||(L.unobserve($.value),L=null)};return a.watch(()=>Q(e.appearListen),m=>{m?R():G()}),a.onMounted(()=>{Q(e.appearListen)&&R()}),a.onUnmounted(G),{classes:s,styles:i,mainClasses:x,hasLabel:c,labelClasses:y,labelStyles:T,labelStringClasses:v,contentClasses:O,contentStyles:B,contentRef:$,hasTip:P,mTip:w,mIcon:E,tipClasses:C,tipStyles:D}}}),Wl={key:0,class:"fox-item__tip--icon"},Gl={class:"fox-item__tip--text"};function Yl(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.mainClasses)},[e.hasLabel?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.labelClasses),style:a.normalizeStyle(e.labelStyles)},[a.createElementVNode("div",{class:a.normalizeClass(e.labelStringClasses)},[a.renderSlot(e.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(e.label),1)])],2)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref:"contentRef",class:a.normalizeClass(e.contentClasses),style:a.normalizeStyle(e.contentStyles)},[a.renderSlot(e.$slots,"prepend"),a.renderSlot(e.$slots,"default"),a.renderSlot(e.$slots,"append")],6)],2),a.createVNode(a.Transition,{name:"fox-item__animate"},{default:a.withCtx(()=>[e.hasTip?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.tipClasses),style:a.normalizeStyle(e.tipStyles)},[e.mIcon?(a.openBlock(),a.createElementBlock("div",Wl,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Gl,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const de=Re(Kl,[["render",Yl]]);function Ul(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const l=Te(),o=Et();xt(!1);const s=a.computed(()=>o&&l?lt(l,!1).value:null),i=e,u=a.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:r.span==="stretch"})),d=a.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(r.width)c.width=ee(r.width);else{const x=we(s.value.column,r.span);x>0&&(c.width=`${x}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const S=s.value.gutter/2;S>0&&(c["padding-left"]=`${S}px`,c["padding-right"]=`${S}px`)}else if(s.value.type==="flow"){if(r.width)c.width=ee(r.width);else{const x=we(s.value.column,r.span);x>0&&(c.width=`${x}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const S=s.value.gutter/2;if(S>0){const x=l?Gt(l,!1):null;if(x){let y=ae(r.offset)+ae(r.span);(y===-1||y>s.value.column)&&(y=s.value.column);const p=Math.ceil((x.index+1)/s.value.column),T=Math.ceil((x.index+y)/s.value.column);if(p===T){const v=(x.index+1)%s.value.column,O=(x.index+y)%s.value.column,B=v===1?0:S,I=O===0?0:S;c["padding-left"]=`${B}px`,c["padding-right"]=`${I}px`}else{const v=y%s.value.column,O=0,B=v===0?0:S;c["padding-left"]=`${O}px`,c["padding-right"]=`${B}px`}x.index+=y}else c["padding-left"]=`${S}px`,c["padding-right"]=`${S}px`}}else return r.width&&(c.width=ee(r.width)),c;else r.width&&(c.width=ee(r.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:Xl,create:Zl,scope:Ks}=J("slot-item"),Zn=Zl(Ul(Xl));function Jl(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(r,n){const l=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),s=Te(),i=Et();xt(!1);const u=a.computed(()=>{const c={};if(i&&s){const f=lt(s,!1);if(f.value.type!=="flex")return r.width&&(c.width=ee(r.width)),c;if(r.width)c.width=ee(r.width);else{const y=we(f.value.column,r.span);y>0&&(c.width=`${y}%`)}const S=we(f.value.column,r.offset);S>0&&(c["margin-left"]=`${S}%`);const x=f.value.gutter/2;x>0&&(c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`)}else r.width&&(c.width=ee(r.width));return c}),d=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const y=n.slots.default();if(r.divide)for(let p=0;p<y.length;p++){if(p>0){const T=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(T)}c.push(y[p])}else Reflect.apply([].push,c,y)}const f={class:d.value},S=a.h("div",f,c),x={class:o.value,style:u.value};return a.h("div",x,[S])}}}}const{componentName:Ql,create:eo,scope:Ws}=J("row-item"),Jn=eo(Jl(Ql)),Qn={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 to(e,t,r){return{props:{...ue,...me,...Qn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),S=e,x=a.computed(()=>({[S]:!0,[`${S}__disabled`]:o.value,[`${S}__readonly`]:s.value})),y=w=>{f.value=w,i("update:modelValue",w),i("input",w)},p=w=>{i("change",w)};let T=re(n,"hintText"),v=a.ref(!1);const O=w=>{let C=w.target.value;c.value=!0,oe(T.value)||(v.value=!0),i("focus",C,w)},B=w=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let C=w.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),i("blur",C,w)},I=()=>{i("clear","")},V=a.ref(!1);let N=null;const b=()=>{n.showTooltip&&V.value===!1&&(N=setTimeout(()=>{V.value=!0},150))},A=()=>{N&&(clearTimeout(N),V.value=!1,N=null)},_=a.computed(()=>V.value||v.value),q=a.computed(()=>V.value?f.value:T.value),H=a.computed(()=>tt(n.unit)>0),P=a.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const E={...l.attrs,ref:P,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:p,onInput:y,onFocus:O,onBlur:B,onMouseover:b,onMouseleave:A},C={};l.slots.prepend&&(C.prepend=l.slots.prepend),l.slots.append&&(C.append=l.slots.append),l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.suffix?C.suffix=l.slots.suffix:H.value&&(C.suffix=()=>[n.unit]);const D=[],$=a.h(g.ElInput,E,C);D.push($);const M={default:()=>D};l.slots.default&&(M.label=l.slots.default);const R={...ge(n,Qn),hintText:q.value,hintVisible:_.value,prop:`${n.prop}_item`};return a.h(r,R,M)}}}}const{componentName:no,create:ro,scope:ao}=J("input-item"),er=ro(to(no,ao,de));function Fe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ye(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function tr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let lo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function oo(){const e=a.getCurrentInstance();return new lo(e.proxy)}function nr(e,t,r){const n=Fe(e,t),l=Fe(e,r);if(n!==l)return!1;const o=Ye(e,t),s=Ye(e,r);return o===s}function rr(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=tr(e,s);if(Array.isArray(i)&&i.length>0){const u=rr(e,o,r,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(r==="text")u=Fe(e,s)===o;else if(r==="item")u=nr(e,s,o);else{let d=Ye(e,s);d==null&&(d=Fe(e,s)),u=d===o}if(u){l.push(s);break}}}}),l}function io(e){return{text:e,value:e}}const ar={modelValue:{type:[String,Object,Boolean,Number],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"},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 so(e,t,r){return{props:{...ue,...me,...ar},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),S=(m,k,j,F=!0)=>{const z=rr(n,m,k,j);if(z===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],F&&(i("update:modelValue",null),i("change",null));return}let K=!0;if(z.length!==f.value.length)K=!1;else for(let Y=0;Y<z.length;Y++){const W=z[Y],U=f.value[Y];if(!nr(n,W,U)){K=!1;break}}if(!K){f.value=z;let Y=[],W=[];z.forEach(Z=>{Y.push(Ye(n,Z)),n.valueType==="text"?W.push(Fe(n,Z)):n.valueType==="item"?W.push(Z):W.push(Ye(n,Z))});let U;n.multiple?(c.value=Y,U=a.toRaw(W)):(c.value=Y[0]??"",U=a.toRaw(W[0]??"")),F&&(i("update:modelValue",U),i("change",U))}},x=a.ref(null),y=a.ref(null),p=a.computed(()=>y.value??x.value??[]),T=$e(a.computed(()=>n.lazyLoad),"lazyLoad",xe.Near,m=>Q(m)),v=oo(),O=async(m,k)=>{if(m){const j=await v.load("select",m,k);if(j.length>0)if(typeof j[0]=="string"){let K=j.map(Y=>io(Y));x.value=K}else x.value=j;else x.value=null}};a.watch([()=>n.source,()=>n.params],([m,k])=>{O(m,k)},{immediate:!T.value});let B=!1;const I=()=>{B||(B=!0,O(n.source,n.params))};a.watch([()=>p.value,()=>n.modelValue],([m,k])=>{S(k,n.valueType,m,!1)});let V=null,N=a.ref(!1);typeof n.remoteMethod=="function"&&(V=async m=>{if(m==null){y.value=null;return}N.value=!0;try{const k=await n.remoteMethod(m);y.value=k}catch(k){y.value=null,console.error(k)}N.value=!1});let b=null;typeof n.filterMethod=="function"&&(b=async m=>{if(m==null){y.value=null;return}N.value=!0;try{const k=await n.filterMethod(m,x.value);y.value=k}catch(k){y.value=null,console.error(k)}N.value=!1});const A=a.ref(!1),_=e,q=a.computed(()=>({[_]:!0})),H=m=>{n.allowCreate?(i("update:modelValue",m),i("change",m),c.value=m):S(m,"value",p.value,!0)};let P=re(n,"hintText"),w=a.ref(!1);const E=m=>{let j=m.target.value;A.value=!0,oe(P.value)||(w.value=!0),i("focus",j,m)},C=m=>{setTimeout(()=>{w.value&&(w.value=!1),A.value=!1},0);let j=m.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),$.value||i("blur",j,m)},D=()=>{i("clear","")},$=a.ref(!1),M=m=>{$.value=m,i("visible-change",m),m||i("selected")},L=m=>{i("remove-tag",m)},R=(m,k)=>{const j=[];return m.forEach((F,z)=>{const K=tr(n,F);if(Array.isArray(K)&&K.length>0){const Y=R(K,k),W=Fe(n,F),Z={key:`${W}_${z}`,label:W};j.push(a.h(g.ElOptionGroup,Z,{default:()=>Y}))}else{const Y=Ye(n,F),W=Fe(n,F),U=Q(F.disabled),te={key:`${Y}_${z}`,label:W,disabled:U,value:Y};if(typeof k=="function")j.push(a.h(g.ElOption,te,{default:()=>k(F)}));else if(n.optionType==="item"){const be={class:{"fox-select-item__option-left":!0}},Be=a.h("span",be,[Y]),ie={class:{"fox-select-item__option-right":!0}},Ne=a.h("span",ie,[W]),tn=a.h("div",{class:{"fox-select-item__option":!0}},[Be,Ne]);j.push(a.h(g.ElOption,te,{default:()=>tn}))}else n.optionType==="value"?j.push(a.h(g.ElOption,te,{default:()=>[Y]})):j.push(a.h(g.ElOption,te))}}),j},G=a.ref();return fe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()}}),()=>{const k={...l.attrs,ref:G,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:o.value||s.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:D,onChange:H,onFocus:E,onBlur:C,onVisibleChange:M,onRemoveTag:L};typeof V=="function"&&(k["remote-method"]=V,k.loading=N.value),typeof b=="function"&&(k["filter-method"]=b,k.loading=N.value);const j={};l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.empty&&(j.empty=l.slots.empty),l.slots.options?j.default=l.slots.options:j.default=()=>R(p.value,l.slots.option);const F=[],z=a.h(g.ElSelect,k,j);F.push(z);const K={default:()=>F};l.slots.default&&(K.label=l.slots.default);const W={...ge(n,ar),hintText:P.value,hintVisible:w.value,prop:`${n.prop??l.attrs.name}_item`};return T.value&&(W["appear-listen"]=!0,W.onAppear=I),a.h(r,W,K)}}}}const{componentName:uo,create:co,scope:fo}=J("select-item"),lr=co(so(uo,fo,de)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ho(e,t,r){return{props:{...ue,...me,...or,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:["1949-01-01","2999-01-01"]}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),S=e,x=a.computed(()=>({[`${S}__input`]:!0})),y=P=>{f.value=P,i("update:modelValue",P),i("change",P)};let p=re(n,"hintText"),T=a.ref(!1);const v=P=>{let E=P.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",E,P)},O=P=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let E=P.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,P)},B=()=>{i("clear","")},I=P=>{i("calendar-change",P)},V=(P,w,E)=>{i("panel-change",P,w,E)},N=P=>{i("visible-change",P)},b=$e(a.computed(()=>n.longTermValue),"longTermValue",xe.Near),A=a.ref(Q(n.longTerm)),_=P=>{A.value=P,i("update:longTerm",P),P&&i("update:modelValue",b.value)},q=Q(n.isLongTerm);if(q){const P=()=>{A.value===!0?i("update:modelValue",b.value):Ie(b.value,f.value)&&(A.value=!0)};P(),a.watch([()=>n.longTerm],([w])=>{A.value!==w&&P()})}const H=a.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},handleOpen:()=>{H?.value.handleOpen()},handleClose:()=>{H?.value.handleClose()}}),()=>{const w={...l.attrs,ref:H,class:x.value,placeholder:d.placeholder.value,disabled:o.value||A.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:O,onCalendarChange:I,onPanelChange:V,onVisibleChange:N},E={};l.slots["range-separator"]&&(E["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(E.default=l.slots.cell);const C=[],D=a.h(g.ElDatePicker,w,E);C.push(D);const $={default:()=>C};if(l.slots.default){const G=l.slots.default();$.label=()=>G}if(q){const G={label:n.longTermText,modelValue:A.value,["onUpdate:modelValue"]:_},m=a.h(g.ElCheckbox,G),k=a.h("div",{class:{[`${S}__append`]:!0}},[m]);$.append=()=>k}const L={...ge(n,or),class:{[`${S}__wrapper`]:!0,["has-append"]:q},hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,L,$)}}}}const{componentName:go,create:mo,scope:po}=J("date-item"),ir=mo(ho(go,po,de)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yo(e,t,r){return{props:{...ue,...me,...sr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),S=e,x=a.computed(()=>({[S]:!0})),y=N=>{f.value=N,i("update:modelValue",N),i("change",N)};let p=re(n,"hintText"),T=a.ref(!1);const v=N=>{let A=N.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",A,N)},O=N=>{setTimeout(()=>{T.value&&(T.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)},B=()=>{i("clear","")},I=N=>{i("visible-change",N)},V=a.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const b={...l.attrs,ref:V,class:x.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:O,onVisibleChange:I},A={},_=[],q=a.h(g.ElTimePicker,b,A);_.push(q);const H={default:()=>_};if(l.slots.default){const C=l.slots.default();H.label=()=>C}const w={...ge(n,sr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,w,H)}}}}const{componentName:bo,create:wo,scope:So}=J("time-item"),ur=wo(yo(bo,So,de)),cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $o(e,t,r){return{props:{...ue,...me,...cr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),S=e,x=a.computed(()=>({[S]:!0})),y=V=>{f.value=V,i("update:modelValue",V),i("change",V)};let p=re(n,"hintText"),T=a.ref(!1);const v=V=>{let b=V.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",b,V)},O=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),i("blur",b,V)},B=()=>{i("clear","")},I=a.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const N={...l.attrs,ref:I,class:x.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:O},b={},A=[],_=a.h(g.ElTimeSelect,N,b);A.push(_);const q={default:()=>A};if(l.slots.default){const E=l.slots.default();q.label=()=>E}const P={...ge(n,cr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,P,q)}}}}const{componentName:vo,create:Eo,scope:xo}=J("time-select-item"),fr=Eo($o(vo,xo,de));function dr(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let l=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function hr(e,t,r=20){if(typeof t=="string"&&(t=ae(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=sn(`${e}`,`${t}`);return dr(n)}else{let n=qt(`${e}`,un(`${t}`),20);return dr(n)}}function Co(e,t=-1,r=!1,n=3,l=","){return ct(e,t,r,n,l)}function gr(e,t,r,n,l=!0){if(e=="")return"";if(e=cn(e),t=ae(t),t==1)return e;if(n)e=hr(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(ae(r)+2,"0"):e=qt(e,1,ae(r)));else{let o=-1*t;e=hr(e,o)}return e}function mr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=Q(t.minInclude),l=Bt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=Q(t.maxInclude),l=Bt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const pr={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 To(e,t,r){return{props:{...ue,...me,...pr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref(!1),d=re(n,"modelValue"),c=a.ref("");a.watch([()=>d.value,()=>n.rates,()=>n.precision],([w,E,C])=>{if(oe(w)){c.value="";return}const D=gr(w,E,C,!1);c.value!==D&&(c.value=D)},{immediate:!0});const f=a.computed(()=>{let w="";return u.value&&(w=c.value),w}),{t:S}=ve.useFoxI18n(t),x=a.computed(()=>{let w=n.placeholder??"";return!u.value&&!oe(c.value)?w=Co(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):w=S(["placeholder",w]),w}),y=e,p=a.computed(()=>({[y]:!0,[`${y}__disabled`]:o.value,[`${y}__placeholder`]:c.value.length>0})),T=$e(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>u.value?{textAlign:"left"}:{textAlign:T.value??"right"});const v=a.ref(""),O=a.computed(()=>{let w=v.value;return oe(w)&&(w=n.errorTip??""),w}),B=a.ref(""),I=a.ref(!1),V=(w,E)=>{if(w=`${w}`,oe(w)){c.value="",d.value="",E.forEach(C=>{i(C,"")}),Q(n.showTip)&&I.value&&(I.value=!1);return}if(w.length>=2){let C=w;if(C.charAt(0)=="-"&&(C=C.substring(1)),C.length>=2&&C.charAt(0)=="0"&&C.charAt(1)!="."){a.triggerRef(c);return}}if(w!="-"){if(!bn(w)){a.triggerRef(c);return}if(n.integerLength!=-1&&wn(w)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Sn(w)>Number(n.decimalLength)){a.triggerRef(c);return}let C=mr(w,n);if(C.maxValid===!1){v.value=C.message,a.triggerRef(c);return}}else if(n.min!=null&&ae(n.min)>=0){a.triggerRef(c);return}B.value=w,Q(n.showTip)&&(I.value=w.length>0),c.value=w,d.value=gr(w,n.rates,n.precision,!0),E.forEach(C=>{i(C,d.value)})},N=w=>{V(w,["update:modelValue","input"])},b=w=>{V(w,["update:modelValue","change"])},A=w=>{if(u.value=!0,Q(n.showTip)){let E=c.value;oe(E)&&(E=n.hintText),oe(E)||(B.value=E,I.value=!0)}v.value="",i("focus",d.value,w)},_=w=>{if(setTimeout(()=>{u.value=!1,Q(n.showTip)&&I.value===!0&&(I.value=!1)},0),!oe(c.value)){let E=mr(c.value,n);if(E.minValid===!1||E.maxValid){v.value=E.message;return}}i("update:modelValue",d.value,w),i("blur",d.value,w)},q=()=>{i("clear","")},H=a.computed(()=>tt(n.unit)>0),P=a.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const E={...l.attrs,ref:P,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onInput:N,onChange:b,onFocus:A,onBlur:_},C={};l.slots.prepend&&(C.prepend=l.slots.prepend),l.slots.append&&(C.append=l.slots.append),l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.suffix?C.suffix=l.slots.suffix:H.value&&(C.suffix=()=>[n.unit]);const D=[],$=a.h(g.ElInput,E,C);D.push($);const M={default:()=>D};if(l.slots.default){const m=l.slots.default();M.label=()=>m}const R={...ge(n,pr),errorTip:O.value,hintText:B.value,hintVisible:I.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,R,M)}}}}const{componentName:Oo,create:Vo,scope:No}=J("money-item"),yr=Vo(To(Oo,No,de)),br={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 ko(e,t,r){return{props:{...ue,...me,...br},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),S=e,x=a.computed(()=>({[S]:!0,[`${S}__append`]:N.value})),y=a.computed(()=>({[`${S}__unit`]:!0})),p=A=>{f.value=A,i("update:modelValue",A),i("input",A)},T=A=>{i("change",A)};let v=re(n,"hintText"),O=a.ref(!1);const B=A=>{let q=A.target.value;c.value=!0,oe(v.value)||(O.value=!0),i("focus",q,A)},I=A=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let q=A.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),i("blur",q,A)},V=()=>{i("clear","")},N=a.computed(()=>tt(n.unit)>0),b=a.ref();return fe({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()}}),()=>{const _={...l.attrs,ref:b,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:T,onInput:p,onFocus:B,onBlur:I},q={},H=[],P=a.h(g.ElInputNumber,_,q);H.push(P);const w={default:()=>H};if(l.slots.default){const $=l.slots.default();w.label=()=>$}const C={...ge(n,br),hintText:v.value,hintVisible:O.value,prop:`${n.prop}_item`};if(l.slots.append)w.append=l.slots.append;else if(N.value){const $={class:y.value},M=a.h("div",$,[n.unit]);w.append=()=>M}return a.h(r,C,w)}}}}const{componentName:Io,create:Ao,scope:Ro}=J("input-number-item"),wr=Ao(ko(Io,Ro,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Pe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function jo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let qo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Bo(){const e=a.getCurrentInstance();return new qo(e.proxy)}function Jt(e,t,r){const n=Ue(e,t),l=Ue(e,r);if(n!==l)return!1;const o=Pe(e,t),s=Pe(e,r);return o===s}function Sr(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Sr(e,i,r,n);l.push(u)}else{let u=!1;for(let d of o){if(r==="text")u=Ue(e,d)===i;else if(r==="item")u=Jt(e,d,i);else{let c=Pe(e,d);c==null&&(c=Ue(e,d)),u=c===i}if(u){l.push(d),o=jo(e,d);break}}if(!u)break}}return l}function Mo(e){return{text:e,value:e}}const $r={modelValue:{type:[Array,String],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}};function Do(e,t,r){return{props:{...ue,...me,...$r},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),S=(R,G,m,k=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===R)return;c.value=R;const z=a.toRaw(R);k&&(i("update:modelValue",z),i("change",z))}const j=Sr(n,R,G,m);if(j===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,k&&(i("update:modelValue",null),i("change",null));return}let F=!0;if(j.length!==f.value.length)F=!1;else for(let z=0;z<j.length;z++){const K=j[z],Y=f.value[z];if(Array.isArray(K)){if(!Array.isArray(Y)||K.length!==Y.length)F=!1;else for(let W=0;W<K.length;W++)if(!Jt(n,K[W],Y[W])){F=!1;break}}else Jt(n,K,Y)||(F=!1);if(!F)break}if(!F){f.value=j;let z=[],K=[];j.forEach(W=>{if(Array.isArray(W)){let U=[],Z=[];for(let te of W)U.push(Pe(n,te)),n.valueType==="text"?Z.push(Ue(n,te)):n.valueType==="item"?Z.push(te):Z.push(Pe(n,te));z.push(U),K.push(Z)}else z.push(Pe(n,W)),n.valueType==="text"?K.push(Ue(n,W)):n.valueType==="item"?K.push(W):K.push(Pe(n,W))}),c.value=z;const Y=a.toRaw(K);k&&(i("update:modelValue",Y),i("change",Y))}},x=a.ref([]),y=$e(a.computed(()=>n.lazyLoad),"lazyLoad",xe.Near,R=>Q(R)),p=Bo(),T=async(R,G)=>{if(R){const m=await p.load("cascader",R,G);if(m.length>0)if(typeof m[0]=="string"){let F=m.map(z=>Mo(z));x.value=F}else x.value=m}};a.watch([()=>n.source,()=>n.params],async([R,G])=>{T(R,G)},{immediate:!y.value});let v=!1;const O=()=>{v||(v=!0,T(n.source,n.params))};a.watch([()=>x.value,()=>n.modelValue],([R,G])=>{S(G,n.valueType,R,!1)});let B=null,I=a.ref(!1);typeof n.remoteMethod=="function"&&(B=async R=>{if(R!=null){I.value=!0;try{const G=await n.remoteMethod(R);x.value=G}catch(G){console.error(G)}I.value=!1}});const V=a.ref(!1),N=e,b=a.computed(()=>({[N]:!0})),A=a.computed(()=>{let R={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(R.multiple=!0),n.props&&Object.assign(R,n.props),R}),_=R=>{n.allowCreate?(i("update:modelValue",R),i("change",R),c.value=R):S(R,"value",x.value,!0)};let q=re(n,"hintText"),H=a.ref(!1);const P=R=>{let m=R.target.value;V.value=!0,oe(q.value)||(H.value=!0),i("focus",m,R)},w=R=>{setTimeout(()=>{H.value&&(H.value=!1),V.value=!1},0);let m=R.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),C.value||i("blur",m,R)},E=()=>{i("clear","")},C=a.ref(!1),D=R=>{C.value=R,i("visible-change",R),R||i("selected")},$=R=>{i("remove-tag",R)},M=R=>{i("expand-change",R)},L=a.ref();return fe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},getCheckedNodes:()=>L?.value.getCheckedNodes()}),()=>{const G={...l.attrs,ref:L,class:b.value,props:A.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:o.value||s.value,options:x.value,modelValue:c.value,onClear:E,onChange:_,onFocus:P,onBlur:w,onVisibleChange:D,onRemoveTag:$,expandChange:M};typeof B=="function"&&(G["remote-method"]=B,G.loading=I.value);const m={};l.slots.option&&(m.default=l.slots.option),l.slots.empty&&(m.empty=l.slots.empty);const k=[],j=a.h(g.ElCascader,G,m);k.push(j);const F={default:()=>k};l.slots.default&&(F.label=l.slots.default);const K={...ge(n,$r),hintText:q.value,hintVisible:H.value,prop:`${n.prop??l.attrs.name}_item`};return y.value&&(K["appear-listen"]=!0,K.onAppear=O),a.h(r,K,F)}}}}const{componentName:Lo,create:_o,scope:Fo}=J("cascader-item"),vr=_o(Do(Lo,Fo,de)),Er={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Po(e,t,r){return{props:{...ue,...me,...Er},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),S=e,x=a.computed(()=>({[S]:!0})),y=N=>{f.value=N,i("update:modelValue",N),i("input",N)},p=N=>{i("change",N)};let T=re(n,"hintText"),v=a.ref(!1);const O=N=>{let A=N.target.value;c.value=!0,oe(T.value)||(v.value=!0),i("focus",A,N)},B=N=>{setTimeout(()=>{v.value&&(v.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","")},V=a.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const b={...l.attrs,ref:V,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,onClear:I,onChange:p,onInput:y,onFocus:O,onBlur:B},A={};l.slots.prepend&&(A.prepend=l.slots.prepend),l.slots.append&&(A.append=l.slots.append),l.slots.prefix&&(A.prefix=l.slots.prefix),l.slots.suffix&&(A.suffix=l.slots.suffix),l.slots.option&&(A.default=l.slots.option);const _=[],q=a.h(g.ElAutocomplete,b,A);_.push(q);const H={default:()=>_};if(l.slots.default){const C=l.slots.default();H.label=()=>C}const w={...ge(n,Er),hintText:T.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,w,H)}}}}const{componentName:Ho,create:zo,scope:Ko}=J("autocomplete-item"),xr=zo(Po(Ho,Ko,de));function Wo(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let d=t[u],c=o[u];const f=d.find(S=>S[n]===c);if(!f)break;s.push(f[r])}else{let u=t;for(let d=0;u&&d<o.length;d++){let c=o[d],f=u.find(S=>S[n]===c);if(!f)break;s.push(f[r]),u=f[l]}}return s}let Go=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Yo(){const e=a.getCurrentInstance();return new Go(e.proxy)}const Cr={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:"/"},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 Uo(e,t){return{props:{...Cr},setup(r,{attrs:n}){const l=Yo(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([u,d])=>{o.value=await l.load(r.sourceType,u,d)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let u=Wo(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return u.length==0?r.emptyText??"":u.length===1?u[0]:u.join(r.separator)}),i=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const u={...n};return r.resolveTag?r.emptyText!==void 0&&r.emptyText===s.value?a.h(r.emptyTag??"span",{...n,class:r.emptyClass},s.value):a.h(i,u,{default:()=>s.value}):a.h(i,u,s.value)}}}}const{componentName:Gs,create:Xo,scope:Ys}=J("mapping"),Qt=Xo(Uo());function Zo(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Jo(e,t){return{props:{...Cr},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=Zo(o.row,o.column.property);return a.h(Qt,{...r,modelValue:s})}};return a.h(g.ElTableColumn,{...n},l)}}}}const{componentName:Us,create:Qo,scope:Xs}=J("table-mapping-column"),Tr=Qo(Jo()),ei=Symbol.for("TableStateKey");function Or(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function ti(e,t){return{props:{},setup(r,{attrs:n}){const l=a.inject(ei,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Or(i.row,i.column.property),d=o?Or(o,i.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},S=a.h("span",f,[a.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":c}};return a.h("label",x,[S])}};return a.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Zs,create:ni,scope:Js}=J("table-radio-column"),Vr=ni(ti());let ri=class{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,i){if(Array.isArray(r)){let d=(n-1)*l,c=d+l;c>r.length&&(c=r.length);const f=r.slice(d,c);return{totalSize:r.length,page:f}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,i]);const u=_e(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ke(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await Reflect.apply(u,null,[r,n,l,o,s,i]))}};function ai(){const e=a.getCurrentInstance();return new ri(e.proxy)}const li=Symbol.for("TableStateKey");function oi(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function en(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=oi(n,l);if(o!==s)return!1}return!0})}const Nr={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}},kr={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"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function ii(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Nr,...kr},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=ve.useFoxI18n(t),{emitEvent:s}=ce({componentName:e,validateHandler:{getValue(...$){return v.value}}},n.prop??l.attrs.name),i=e,u=a.computed(()=>({[i]:!0})),d=a.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),c=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,$=>{c.value=$});const f=$=>{c.value=$,s("page-index-change",$)},S=a.ref(n.pageSize);a.watch(()=>n.pageSize,$=>{S.value=$});const x=$=>{S.value=$,s("page-size-change",$)},y=a.shallowRef({}),p=a.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),T=a.ref(0),v=a.ref(),O=ai();let B=!0;const I=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:Q(n.autoLoad),V=$e(a.computed(()=>n.lazyLoad),"lazyLoad",xe.Near,$=>Q($)),N=async($,M,L,R)=>{try{const G=await O.load("table",$,M,L,R,B,o.value);T.value=G.totalSize,v.value=G.page}catch(G){console.error("[FoxUI] Load Table Data Fail",G),T.value=0,v.value=[]}B=!1,setTimeout(()=>{s("loaded-data")},250)};a.watch([c,S],([$,M],[L,R])=>{M!==R&&(c.value=1,$=1),N(n.data,$,M,p.value)}),a.watch([()=>n.data,p],([$,M],[L,R])=>{I()&&($!==L&&(B=!0),!(!Array.isArray($)&&Ie($,L)&&Ie(M,R))&&N($,c.value,S.value,M))},{deep:!0});const b=($={},M=!1)=>new Promise(L=>{y.value=a.toRaw($??{}),a.triggerRef(y),M||(c.value=n.pageIndex??1),a.nextTick(async()=>{await N(n.data,c.value,S.value,p.value),L()})}),A=()=>{T.value=0,v.value=[]};let _=!1;const q=()=>{_||(_=!0,b())};I()&&!V.value&&b();const H=a.ref(null);a.provide(li,{currentRow:H});const P=($,M)=>{H.value=$,s("current-change",$,M)},w=($,M,L)=>{s("row-click",$,M,L),Q(n.rowClickSelectable)===!0&&D?.value.toggleRowSelection($)},E=[],C=($,M)=>{if(s("expand-change",$,M),Q(n.uniqueExpansion))if(Array.isArray(M)&&M.length==0){const L=E.length;E.splice(0,L)}else{E.forEach(R=>{R!==$&&D?.value.toggleRowExpansion(R,!1)});const L=E.length;E.splice(0,L,$)}},D=a.ref();return fe({clearSelection:()=>D?.value.clearSelection(),getSelectionRows:()=>D?.value.getSelectionRows(),toggleRowSelection:($,M)=>{D?.value.toggleRowSelection($,M)},toggleRowSelectionByProp:($,M)=>{if(!v.value)return;const L=en(v.value,$);L.length!==0&&L.forEach(R=>{D?.value.toggleRowSelection(R,M)})},toggleAllSelection:()=>{D?.value.toggleAllSelection()},toggleRowExpansion:($,M)=>{D?.value.toggleRowExpansion($,M)},toggleRowExpansionByProp:($,M)=>{if(!v.value)return;const L=en(v.value,$);L.length!==0&&L.forEach(R=>{D?.value.toggleRowExpansion(R,M)})},setCurrentRow:$=>{D?.value.setCurrentRow($)},setCurrentRowByProp:$=>{if(!v.value)return;const M=en(v.value,$);M.length!==0&&D?.value.setCurrentRow(M[0])},getCurrentRow:()=>H.value,clearSort:()=>{D?.value.clearSort()},clearFilter:$=>{D?.value.clearFilter($)},doLayout:()=>{D?.value.doLayout()},sort:($,M)=>{D?.value.sort($,M)},scrollTo:($,M)=>{D?.value.scrollTo($,M)},setScrollTop:$=>{D?.value.setScrollTop($)},setScrollLeft:$=>{D?.value.setScrollLeft($)},loadData:b,clearData:A,getData(){return v.value},getTotalSize(){return T.value},getPageIndex(){return c.value},getPageSize(){return S.value}}),()=>{const M={...l.attrs,onCurrentChange:P,onRowClick:w,onExpandChange:C,data:v.value,ref:D,class:u.value},L={};l.slots.default&&(L.default=l.slots.default),l.slots.append&&(L.append=l.slots.append),l.slots.empty&&(L.empty=l.slots.empty);const R=[],G=a.h(g.ElTable,M,L);if(R.push(G),typeof l.slots.pagination=="function"){const z=l.slots.pagination();R.push(z)}else if(n.paginationVisible){const z={class:d.value,total:T.value,pageSize:S.value,["onUpdate:pageSize"]:x,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:f,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},K=a.h(g.ElPagination,z);R.push(K)}const m={default:()=>R},j={...ge(n,Nr,kr),prop:`${n.prop}_item`};return j.contentClass=`${i}__wrap`,j.errorMarkClass="is-table-error",V.value&&I()&&(j["appear-listen"]=!0,j.onAppear=q),a.h(r,j,m)}}}}const{componentName:si,create:ui,scope:ci}=J("table-item"),Ir=ui(ii(si,ci,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let fi=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function di(){const e=a.getCurrentInstance();return new fi(e.proxy)}function Ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Xe(e,t),l=Xe(e,r);if(n!==l)return!1;const o=it(e,t),s=it(e,r);return o===s}function hi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(r==="text")s=Xe(e,o)===t;else if(r==="item")s=Ar(e,o,t);else{let i=it(e,o);i==null&&(i=Xe(e,o)),s=i===t}if(s){l=o;break}}return l}function gi(e){return{text:e,value:e}}function mi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Rr={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function pi(e,t,r){return{inheritAttrs:!0,props:{...ue,...me,...Rr},emits:["change","update:modelValue"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref(null),d=a.ref(null),c=(b,A,_,q=!0)=>{const H=hi(n,b,A,_);if(H===null){if(d.value===null)return;d.value=null,u.value=null,q&&(i("update:modelValue",null),i("change",null));return}if(!Ar(n,H,d.value)){u.value=b;const w=a.toRaw(H);d.value=w;let E=null;n.valueType==="text"?E=Xe(n,w):n.valueType==="item"?E=w:E=it(n,w),q&&(i("update:modelValue",E),i("change",E))}},f=a.ref([]),S=$e(a.computed(()=>n.lazyLoad),"lazyLoad",xe.Near,b=>Q(b)),x=di(),y=async(b,A)=>{if(b){const _=await x.load("radio",b,A);if(_.length>0)if(typeof _[0]=="string"){let P=_.map(w=>gi(w));f.value=P}else f.value=_}};a.watch([()=>n.source,()=>n.params],async([b,A])=>{y(b,A)},{immediate:!S.value});let p=!1;const T=()=>{p||(p=!0,y(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([b,A])=>{c(A,n.valueType,b,!1)});const v=e,O=a.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),B=b=>{c(b,"value",f.value,!0)};let I=re(n,"hintText"),V=re(n,"hintVisible");const N=(b,A)=>{const _=[];return b.forEach((q,H)=>{const P=it(n,q),w=Xe(n,q),E=mi(n,q,H)??{};let C=E.disabled;o.value===!0&&(C=o.value);const D=`${P}_${H}`,$={...E,key:D,label:P,disabled:C,size:n.size,border:Q(n.border)};n.itemType==="button"?_.push(a.h(g.ElRadioButton,$,{default:()=>[w]})):typeof A=="function"?_.push(a.h(g.ElRadio,$,{default:()=>A(q)})):_.push(a.h(g.ElRadio,$,{default:()=>[w]}))}),_};return()=>{const A={...l.attrs,class:O.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:B},_=[],q={};l.slots.options?q.default=l.slots.options:q.default=()=>N(f.value,l.slots.text);const H=a.h(g.ElRadioGroup,A,q);_.push(H);const P={default:()=>_};l.slots.default&&(P.label=l.slots.default);const E={...ge(n,Rr),hintText:I.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(E["appear-listen"]=!0,E.onAppear=T),a.h(r,E,P)}}}}const{componentName:yi,create:bi,scope:wi}=J("radio-item"),jr=bi(pi(yi,wi,de));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Si{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function $i(){const e=a.getCurrentInstance();return new Si(e.proxy)}function qr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Ze(e,t),l=Ze(e,r);if(n!==l)return!1;const o=Je(e,t),s=Je(e,r);return o===s}function vi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(r==="text")i=Ze(e,s)===o;else if(r==="item")i=qr(e,s,o);else{let u=Je(e,s);u==null&&(u=Ze(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function Ei(e){return{text:e,value:e}}function xi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Br={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Ci(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Br},emits:["change","update:modelValue"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref([]),d=a.ref([]),c=(b,A,_,q=!0)=>{const H=vi(n,b,A,_);if(H===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],q&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(H.length!==d.value.length)P=!1;else for(let w=0;w<H.length;w++){const E=H[w],C=d.value[w];if(!qr(n,E,C)){P=!1;break}}if(!P){d.value=H;let w=[],E=[];H.forEach(D=>{w.push(Je(n,D)),n.valueType==="text"?E.push(Ze(n,D)):n.valueType==="item"?E.push(D):E.push(Je(n,D))}),u.value=w;const C=a.toRaw(E);q&&(i("update:modelValue",C),i("change",C))}},f=a.ref([]),S=$e(a.computed(()=>n.lazyLoad),"lazyLoad",xe.Near,b=>Q(b)),x=$i(),y=async(b,A)=>{if(b){const _=await x.load("checkbox",b,A);if(_.length>0)if(typeof _[0]=="string"){let P=_.map(w=>Ei(w));f.value=P}else f.value=_}};a.watch([()=>n.source,()=>n.params],async([b,A])=>{y(b,A)},{immediate:!S.value});let p=!1;const T=()=>{p||(p=!0,y(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([b,A])=>{c(A,n.valueType,b,!1)});const v=e,O=a.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),B=b=>{c(b,"value",f.value,!0)};let I=re(n,"hintText"),V=re(n,"hintVisible");const N=(b,A)=>{const _=[];return b.forEach((q,H)=>{const P=Je(n,q),w=Ze(n,q),E=xi(n,q,H)??{};let C=E.disabled;o.value===!0&&(C=o.value);const D=`${P}_${H}`,$={...E,key:D,class:n.itemClass,label:P,disabled:C,size:n.size,border:Q(n.border)};n.itemType==="button"?_.push(a.h(g.ElCheckboxButton,$,{default:()=>[w]})):typeof A=="function"?_.push(a.h(g.ElCheckbox,$,{default:()=>A(q)})):_.push(a.h(g.ElCheckbox,$,{default:()=>[w]}))}),_};return()=>{const A={...l.attrs,class:O.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:ae(n.max),min:ae(n.min),onChange:B},_=[],q={};l.slots.options?q.default=l.slots.options:q.default=()=>N(f.value,l.slots.text);const H=a.h(g.ElCheckboxGroup,A,q);_.push(H);const P={default:()=>_};l.slots.default&&(P.label=l.slots.default);const E={...ge(n,Br),hintText:I.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(E["appear-listen"]=!0,E.onAppear=T),a.h(r,E,P)}}}}const{componentName:Ti,create:Oi,scope:Vi}=J("checkbox-item"),Mr=Oi(Ci(Ti,Vi,de)),Dr={modelValue:{type:[Number,String],required:!1}};function Ni(e,t,r){return{props:{...ue,...me,...Dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=re(n,"modelValue",p=>ae(p)),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let S=re(n,"hintText"),x=a.ref(!1);const y=a.ref();return fe({}),()=>{const T={...l.attrs,ref:y,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:f},v={},O=[],B=a.h(g.ElRate,T,v);O.push(B);const I={default:()=>O};if(l.slots.default){const A=l.slots.default();I.label=()=>A}const N={...ge(n,Dr),hintText:S.value,hintVisible:x.value,prop:`${n.prop}_item`};return a.h(r,N,I)}}}}const{componentName:ki,create:Ii,scope:Ai}=J("rate-item"),Lr=Ii(Ni(ki,Ai,de)),_r={modelValue:{type:[Boolean,String,Number],required:!1}};function Ri(e,t,r){return{props:{...ue,...me,..._r},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=re(n,"modelValue"),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let S=re(n,"hintText"),x=re(n,"hintVisible");const y=a.ref();return fe({}),()=>{const T={...l.attrs,ref:y,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:f},v={},O=[],B=a.h(g.ElSwitch,T,v);O.push(B);const I={default:()=>O};if(l.slots.default){const A=l.slots.default();I.label=()=>A}const N={...ge(n,_r),hintText:S.value,hintVisible:x.value,prop:`${n.prop}_item`};return a.h(r,N,I)}}}}const{componentName:ji,create:qi,scope:Bi}=J("switch-item"),Fr=qi(Ri(ji,Bi,de)),Pr={modelValue:{type:[String,Number,Boolean],required:!1}};function Mi(e,t,r){return{props:{...ue,...me,...Pr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),i=a.ref(!1),{emitEvent:u}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),d=re(n,"modelValue"),c=e,f=a.computed(()=>({[c]:!0})),S=V=>{u("update:modelValue",V),u("change",V)};let x=re(n,"hintText"),y=a.ref(!1);const p=V=>{let b=V.target.value;i.value=!0,oe(x.value)||(y.value=!0),u("focus",b,V)},T=V=>{setTimeout(()=>{y.value&&(y.value=!1),i.value=!1},0);let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),O.value||u("blur",b,V)},v=()=>{u("clear","")},O=a.ref(!1),B=V=>{O.value=V,u("visible-change",V),V||u("selected")},I=a.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const N={...l.attrs,ref:I,class:f.value,disabled:o.value||s.value,modelValue:d.value,["onUpdate:modelValue"]:S,onClear:v,onFocus:p,onBlur:T,onVisibleChange:B},b={};l.slots.option&&(b.default=l.slots.option);const A=[],_=a.h(g.ElTreeSelect,N,b);A.push(_);const q={default:()=>A};if(l.slots.default){const E=l.slots.default();q.label=()=>E}const P={...ge(n,Pr),hintText:x.value,hintVisible:y.value,prop:`${n.prop}_item`};return a.h(r,P,q)}}}}const{componentName:Di,create:Li,scope:_i}=J("tree-select-item"),Hr=Li(Mi(Di,_i,de)),Fi=Symbol.for("InnerPageScopeKey"),Pi=Symbol.for("PageWrapperKey");function Hi(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(r,n){a.provide(Fi,!0);const l={};a.provide(Pi,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=a.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return a.h(g.ElDialog,d,c)}}}}const{componentName:Qs,create:zi,scope:eu}=J("dialog-item"),zr=zi(Hi()),{componentName:tu,create:Ki}=J("ext-icon"),Kr=Ki({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=s=>{t("click",s)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const s=l.value;return a.h(s?"img":e.tag,{class:s?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:ee(e.size),width:ee(e.size),height:ee(e.size)},onClick:n,src:s?e.name:""},r.default?.())}}});function Wi(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const l=e,o=a.computed(()=>({[l]:!0})),s=a.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),i=a.computed(()=>r.color?{background:r.color}:null),u=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),d=a.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:s.value,style:i.value};c=a.h("div",p)}const f={class:u.value,style:d.value},S=n.default?n.default():[],x=a.h("div",f,S),y={class:o.value};return a.h("div",y,[c,x])}}}}const{componentName:Gi,create:Yi,scope:nu}=J("indicator"),Wr=Yi(Wi(Gi));function Ui(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const Xi={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:" "}};function Zi(e,t){return{props:{...Xi},setup(r,n){const l=a.ref(!0),o=a.ref(null),s=a.computed(()=>{const d={[`${e}`]:!0,["is-truncated"]:r.truncated};return r.type&&(d[`${e}__${r.type}`]=!0),r.size&&(d[`${e}__${r.size}`]=!0),d}),i=d=>{if(d&&Q(r.showOverflowTooltip)){const c=d.clientWidth,f=Ui(d);l.value=f<=c}};let u=null;return a.onMounted(()=>{if(!Q(r.showOverflowTooltip))return;const d=o.value;i(d),d&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(d)}),u.observe(d))}),a.onUnmounted(()=>{u?.disconnect()}),()=>{const d={},c={class:s.value,ref:o,...n.attrs};if(Q(r.numberFormat)&&typeof n.slots.default=="function"){const y=n.slots.default();if(Array.isArray(y)&&y.length===1&&y[0].type.toString()==="Symbol(Text)"){const T=ae(r.digits),v=ae(r.decimalLength),O=Q(r.autoPadding);let B=`${y[0].children}`,I=B.split("").reverse().join("");I=ct(I,v,O,T,r.separator),B=I.split("").reverse().join("");const V=a.h(r.tag,c,{default:()=>[B]});d.default=()=>V}}else{const y=a.h(r.tag,c,{default:n.slots.default});d.default=()=>y}const S={disabled:l.value};return d.content=n.slots.default,a.h(g.ElTooltip,S,d)}}}}const{componentName:Ji,create:Qi,scope:ru}=J("text"),Gr=Qi(Zi(Ji)),es={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:st.ArrowUp}};function ts(e,t,r){return{props:{...es},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=a.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),s=re(n,"modelValue"),i=a.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=a.computed(()=>({[`${e}__text`]:!0})),d=a.computed(()=>({[`${e}__icon`]:!0,["is-expand"]:!s.value,["is-collapse"]:s.value})),c=()=>{l("update:modelValue",!s.value)};return()=>{const f=[];if(i.value){const p={class:u.value},T=a.h("span",p,[i.value]);f.push(T)}const S={class:d.value},x=r(n.icon,S);return x&&f.push(x),a.h("div",{class:o.value,onClick:c},f)}}}}const{componentName:ns,create:rs,scope:as}=J("more-button"),Yr=rs(ts(ns,as,(e,t)=>(e=e??st.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]})))),{componentName:ls,create:os,scope:lu}=J("tour"),is=os({components:{Close:st.Close,ElPopover:g.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 r=ls,n=a.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=a.ref({}),o=a.computed(()=>`${r}`),s=a.computed(()=>{const{offset:y,maskWidth:p,maskHeight:T}=e,{width:v,height:O,left:B,top:I}=l.value,V=e.steps[n.active].offset??y,N=[B+v/2,I+O/2],b=Number(p||v),A=Number(T||O);return{width:`${b+ +V.left+V.right}px`,height:`${A+V.top+V.bottom}px`,top:`${N[1]-A/2-+V.top}px`,left:`${N[0]-b/2-+V.left}px`}}),i=y=>{y=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,a.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=y=>y.popoverWidth??e.width,d=y=>y.location??e.location,c=()=>{const y=document.querySelector(`${e.steps[n.active].target}`),p=ot(y);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&f()},x=(y,p=0)=>{y&&c(),e.steps,n.active=p,n.showTour=y,n.showPopup=y};return a.onMounted(()=>{x(e.modelValue,e.current)}),a.watch(()=>e.modelValue,y=>{x(y)}),{...a.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:S}}}),ss={key:0,class:"fox-tour__content"},us={key:0,class:"fox-tour__content-top"},cs={class:"fox-tour__content-inner"},fs={class:"fox-tour__content-bottom"},ds={class:"fox-tour__content-bottom-init"},hs={class:"fox-tour__content-bottom-operate"},gs={key:1,class:"fox-tour__content fox-tour__content-tile"},ms={class:"fox-tour__content-inner"};function ps(e,t,r,n,l,o){const s=a.resolveComponent("Close"),i=a.resolveComponent("fox-button"),u=a.resolveComponent("ElPopover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes)},[a.withDirectives(a.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[a.vShow,e.showTour]]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.steps,(d,c)=>(a.openBlock(),a.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(a.openBlock(),a.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:a.withCtx(()=>[e.showTour?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:a.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(a.openBlock(),a.createElementBlock("div",ss,[e.showTitleBar?(a.openBlock(),a.createElementBlock("div",us,[a.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[a.createVNode(s,{class:"fox-tour__content-top-close"})])])):a.createCommentVNode("",!0),a.createElementVNode("div",cs,a.toDisplayString(d.content),1),a.createElementVNode("div",fs,[a.createElementVNode("div",ds,a.toDisplayString(e.active+1)+"/"+a.toDisplayString(e.steps.length),1),a.createElementVNode("div",hs,[a.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(a.openBlock(),a.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.prevStepText),1)]),_:1})):a.createCommentVNode("",!0)]),e.steps.length-1==e.active?(a.openBlock(),a.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(a.openBlock(),a.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>e.changeStep("next"))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.nextStepText),1)]),_:1})):a.createCommentVNode("",!0)])])])])):a.createCommentVNode("",!0),e.type=="tile"?(a.openBlock(),a.createElementBlock("div",gs,[a.createElementVNode("div",ms,a.toDisplayString(d.content),1)])):a.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):a.createCommentVNode("",!0)]))),128))],2)}const Ur=Re(is,[["render",ps]]);function ys(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:n}){return kn(r.name,r.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ou,create:bs,scope:iu}=J("domain-provider"),Xr=bs(ys());var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",d="day",c="week",f="month",S="quarter",x="year",y="date",p="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,O={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("_")},B=function(w,E,C){var D=String(w);return!D||D.length>=E?w:""+Array(E+1-D.length).join(C)+w},I={s:B,z:function(w){var E=-w.utcOffset(),C=Math.abs(E),D=Math.floor(C/60),$=C%60;return(E<=0?"+":"-")+B(D,2,"0")+":"+B($,2,"0")},m:function w(E,C){if(E.date()<C.date())return-w(C,E);var D=12*(C.year()-E.year())+(C.month()-E.month()),$=E.clone().add(D,f),M=C-$<0,L=E.clone().add(D+(M?-1:1),f);return+(-(D+(C-$)/(M?$-L:L-$))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:f,y:x,w:c,d,D:y,h:u,m:i,s,ms:o,Q:S}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},V="en",N={};N[V]=O;var b=function(w){return w instanceof H},A=function w(E,C,D){var $;if(!E)return V;if(typeof E=="string"){var M=E.toLowerCase();N[M]&&($=M),C&&(N[M]=C,$=M);var L=E.split("-");if(!$&&L.length>1)return w(L[0])}else{var R=E.name;N[R]=E,$=R}return!D&&$&&(V=$),$||!D&&V},_=function(w,E){if(b(w))return w.clone();var C=typeof E=="object"?E:{};return C.date=w,C.args=arguments,new H(C)},q=I;q.l=A,q.i=b,q.w=function(w,E){return _(w,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var H=function(){function w(C){this.$L=A(C.locale,null,!0),this.parse(C)}var E=w.prototype;return E.parse=function(C){this.$d=function(D){var $=D.date,M=D.utc;if($===null)return new Date(NaN);if(q.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var L=$.match(T);if(L){var R=L[2]-1||0,G=(L[7]||"0").substring(0,3);return M?new Date(Date.UTC(L[1],R,L[3]||1,L[4]||0,L[5]||0,L[6]||0,G)):new Date(L[1],R,L[3]||1,L[4]||0,L[5]||0,L[6]||0,G)}}return new Date($)}(C),this.$x=C.x||{},this.init()},E.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},E.$utils=function(){return q},E.isValid=function(){return this.$d.toString()!==p},E.isSame=function(C,D){var $=_(C);return this.startOf(D)<=$&&$<=this.endOf(D)},E.isAfter=function(C,D){return _(C)<this.startOf(D)},E.isBefore=function(C,D){return this.endOf(D)<_(C)},E.$g=function(C,D,$){return q.u(C)?this[D]:this.set($,C)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(C,D){var $=this,M=!!q.u(D)||D,L=q.p(C),R=function(Y,W){var U=q.w($.$u?Date.UTC($.$y,W,Y):new Date($.$y,W,Y),$);return M?U:U.endOf(d)},G=function(Y,W){return q.w($.toDate()[Y].apply($.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(W)),$)},m=this.$W,k=this.$M,j=this.$D,F="set"+(this.$u?"UTC":"");switch(L){case x:return M?R(1,0):R(31,11);case f:return M?R(1,k):R(0,k+1);case c:var z=this.$locale().weekStart||0,K=(m<z?m+7:m)-z;return R(M?j-K:j+(6-K),k);case d:case y:return G(F+"Hours",0);case u:return G(F+"Minutes",1);case i:return G(F+"Seconds",2);case s:return G(F+"Milliseconds",3);default:return this.clone()}},E.endOf=function(C){return this.startOf(C,!1)},E.$set=function(C,D){var $,M=q.p(C),L="set"+(this.$u?"UTC":""),R=($={},$[d]=L+"Date",$[y]=L+"Date",$[f]=L+"Month",$[x]=L+"FullYear",$[u]=L+"Hours",$[i]=L+"Minutes",$[s]=L+"Seconds",$[o]=L+"Milliseconds",$)[M],G=M===d?this.$D+(D-this.$W):D;if(M===f||M===x){var m=this.clone().set(y,1);m.$d[R](G),m.init(),this.$d=m.set(y,Math.min(this.$D,m.daysInMonth())).$d}else R&&this.$d[R](G);return this.init(),this},E.set=function(C,D){return this.clone().$set(C,D)},E.get=function(C){return this[q.p(C)]()},E.add=function(C,D){var $,M=this;C=Number(C);var L=q.p(D),R=function(k){var j=_(M);return q.w(j.date(j.date()+Math.round(k*C)),M)};if(L===f)return this.set(f,this.$M+C);if(L===x)return this.set(x,this.$y+C);if(L===d)return R(1);if(L===c)return R(7);var G=($={},$[i]=n,$[u]=l,$[s]=r,$)[L]||1,m=this.$d.getTime()+C*G;return q.w(m,this)},E.subtract=function(C,D){return this.add(-1*C,D)},E.format=function(C){var D=this,$=this.$locale();if(!this.isValid())return $.invalidDate||p;var M=C||"YYYY-MM-DDTHH:mm:ssZ",L=q.z(this),R=this.$H,G=this.$m,m=this.$M,k=$.weekdays,j=$.months,F=function(W,U,Z,te){return W&&(W[U]||W(D,M))||Z[U].slice(0,te)},z=function(W){return q.s(R%12||12,W,"0")},K=$.meridiem||function(W,U,Z){var te=W<12?"AM":"PM";return Z?te.toLowerCase():te},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:m+1,MM:q.s(m+1,2,"0"),MMM:F($.monthsShort,m,j,3),MMMM:F(j,m),D:this.$D,DD:q.s(this.$D,2,"0"),d:String(this.$W),dd:F($.weekdaysMin,this.$W,k,2),ddd:F($.weekdaysShort,this.$W,k,3),dddd:k[this.$W],H:String(R),HH:q.s(R,2,"0"),h:z(1),hh:z(2),a:K(R,G,!0),A:K(R,G,!1),m:String(G),mm:q.s(G,2,"0"),s:String(this.$s),ss:q.s(this.$s,2,"0"),SSS:q.s(this.$ms,3,"0"),Z:L};return M.replace(v,function(W,U){return U||Y[W]||L.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(C,D,$){var M,L=q.p(D),R=_(C),G=(R.utcOffset()-this.utcOffset())*n,m=this-R,k=q.m(this,R);return k=(M={},M[x]=k/12,M[f]=k,M[S]=k/3,M[c]=(m-G)/6048e5,M[d]=(m-G)/864e5,M[u]=m/l,M[i]=m/n,M[s]=m/r,M)[L]||m,$?k:q.a(k)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return N[this.$L]},E.locale=function(C,D){if(!C)return this.$L;var $=this.clone(),M=A(C,D,!0);return M&&($.$L=M),$},E.clone=function(){return q.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},w}(),P=H.prototype;return _.prototype=P,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",d],["$M",f],["$y",x],["$D",y]].forEach(function(w){P[w[1]]=function(E){return this.$g(E,w[0],w[1])}}),_.extend=function(w,E){return w.$i||(w(E,H,_),w.$i=!0),_},_.locale=A,_.isDayjs=b,_.unix=function(w){return _(1e3*w)},_.en=N[V],_.Ls=N,_.p={},_})})(Zr);var ws=Zr.exports;const qe=Ve(ws);var Jr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r={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,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(T){this[p]=+T}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(T){if(!T||T==="Z")return 0;var v=T.match(/([+-]|\d\d)/g),O=60*v[1]+(+v[2]||0);return O===0?0:v[0]==="+"?-O:O}(p)}],f=function(p){var T=i[p];return T&&(T.indexOf?T:T.s.concat(T.f))},S=function(p,T){var v,O=i.meridiem;if(O){for(var B=1;B<=24;B+=1)if(p.indexOf(O(B,0,T))>-1){v=B>12;break}}else v=p===(T?"pm":"PM");return v},x={A:[s,function(p){this.afternoon=S(p,!1)}],a:[s,function(p){this.afternoon=S(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[l,d("day")],Do:[s,function(p){var T=i.ordinal,v=p.match(/\d+/);if(this.day=v[0],T)for(var O=1;O<=31;O+=1)T(O).replace(/\[|\]/g,"")===p&&(this.day=O)}],M:[o,d("month")],MM:[l,d("month")],MMM:[s,function(p){var T=f("months"),v=(f("monthsShort")||T.map(function(O){return O.slice(0,3)})).indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(p){var T=f("months").indexOf(p)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function y(p){var T,v;T=p,v=i&&i.formats;for(var O=(p=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,q,H){var P=H&&H.toUpperCase();return q||v[H]||r[H]||v[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,E,C){return E||C.slice(1)})})).match(n),B=O.length,I=0;I<B;I+=1){var V=O[I],N=x[V],b=N&&N[0],A=N&&N[1];O[I]=A?{regex:b,parser:A}:V.replace(/^\[|\]$/g,"")}return function(_){for(var q={},H=0,P=0;H<B;H+=1){var w=O[H];if(typeof w=="string")P+=w.length;else{var E=w.regex,C=w.parser,D=_.slice(P),$=E.exec(D)[0];C.call(q,$),_=_.replace($,"")}}return function(M){var L=M.afternoon;if(L!==void 0){var R=M.hours;L?R<12&&(M.hours+=12):R===12&&(M.hours=0),delete M.afternoon}}(q),q}}return function(p,T,v){v.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var O=T.prototype,B=O.parse;O.parse=function(I){var V=I.date,N=I.utc,b=I.args;this.$u=N;var A=b[1];if(typeof A=="string"){var _=b[2]===!0,q=b[3]===!0,H=_||q,P=b[2];q&&(P=b[2]),i=this.$locale(),!_&&P&&(i=v.Ls[P]),this.$d=function(D,$,M){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*D);var L=y($)(D),R=L.year,G=L.month,m=L.day,k=L.hours,j=L.minutes,F=L.seconds,z=L.milliseconds,K=L.zone,Y=new Date,W=m||(R||G?1:Y.getDate()),U=R||Y.getFullYear(),Z=0;R&&!G||(Z=G>0?G-1:Y.getMonth());var te=k||0,be=j||0,Be=F||0,ie=z||0;return K?new Date(Date.UTC(U,Z,W,te,be,Be,ie+60*K.offset*1e3)):M?new Date(Date.UTC(U,Z,W,te,be,Be,ie)):new Date(U,Z,W,te,be,Be,ie)}catch{return new Date("")}}(V,A,N),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),H&&V!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var w=A.length,E=1;E<=w;E+=1){b[1]=A[E-1];var C=v.apply(this,b);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}E===w&&(this.$d=new Date(""))}else B.call(this,I)}}})})(Jr);var Ss=Jr.exports;const $s=Ve(Ss);var Qr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],d=i%100;return"["+i+(u[(d-20)%10]||u[d]||u[0])+"]"},o.format=function(i){var u=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),f=(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(S){switch(S){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),S==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),S==="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 S}});return s.bind(this)(f)}}})})(Qr);var vs=Qr.exports;const Es=Ve(vs);var ea={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){var o=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,S,x,y,p){var T=f.name?f:f.$locale(),v=s(T[S]),O=s(T[x]),B=v||O.map(function(V){return V.slice(0,y)});if(!p)return B;var I=T.weekStart;return B.map(function(V,N){return B[(N+(I||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,S){return f.formats[S]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,p,T){return p||T.slice(1)})}(f.formats[S.toUpperCase()])},c=function(){var f=this;return{months:function(S){return S?S.format("MMMM"):i(f,"months")},monthsShort:function(S){return S?S.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(f,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(f.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(S){return d(f,S)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(f){return i(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return i(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return i(u(),"weekdaysMin","weekdays",2,f)}}})})(ea);var xs=ea.exports;const Cs=Ve(xs);var ta={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(r);if(c.isBefore(f))return 1}var S=s(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),x=this.diff(S,r,!0);return x<0?s(this).startOf("week").week():Math.ceil(x)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ta);var Ts=ta.exports;const Os=Ve(Ts);var na={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})(na);var Vs=na.exports;const Ns=Ve(Vs);var ra={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(ra);var ks=ra.exports;const Is=Ve(ks);var aa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(aa);var As=aa.exports;const Rs=Ve(As);var la={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(la);var js=la.exports;const qs=Ve(js);qe.extend(Cs),qe.extend(Es),qe.extend($s),qe.extend(Os),qe.extend(Ns),qe.extend(Is),qe.extend(Rs),qe.extend(qs);const oa=10;function Bs(e,t){return e>t&&e>oa?"horizontal":t>e&&t>oa?"vertical":""}function Ms(){const e=a.ref(0),t=a.ref(0),r=a.ref(0),n=a.ref(0),l=a.ref(0),o=a.ref(0),s=a.ref(0),i=a.ref(0),u=a.ref(0),d=a.ref(0),c=a.ref(""),f=()=>c.value==="vertical",S=()=>c.value==="horizontal",x=()=>{s.value=0,i.value=0,u.value=0,d.value=0,c.value="",r.value=0};return{move:T=>{const v=T.touches[0];s.value=v.clientX-e.value,i.value=v.clientY-t.value,l.value=v.clientX,o.value=v.clientY,u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-r.value,c.value||(c.value=Bs(u.value,d.value))},start:T=>{x(),e.value=T.touches[0].clientX,t.value=T.touches[0].clientY,r.value=Date.now()},reset:x,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:S}}const Ds=[Ln,_n,Fn,Pn,Kn,de,Zn,Jn,Tt,er,lr,ir,ur,fr,yr,wr,vr,xr,Tr,Vr,Ir,jr,Mr,Lr,Fr,Hr,zr,Qt,Ut,Kr,Wr,Gr,Yr,Ur,Xr],Ls=new za(Ds,[Ga],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=xr,h.Broadcast=Ft,h.BroadcastKey=se,h.CascaderItem=vr,h.CheckboxItem=Mr,h.Content=Pn,h.DataItemsKey=ze,h.DateItem=ir,h.DialogItem=zr,h.Domain=pt,h.DomainKey=Se,h.DomainProvider=Xr,h.ExtIcon=Kr,h.FooterBar=Fn,h.Group=Kn,h.HeaderBar=_n,h.HintText=Tt,h.Indicator=Wr,h.InputItem=er,h.InputNumberItem=wr,h.Item=de,h.Mapping=Qt,h.MoneyItem=yr,h.MoreButton=Yr,h.Page=Ln,h.Price=Ut,h.PriorityPolicy=xe,h.RadioItem=jr,h.RateItem=Lr,h.RowItem=Jn,h.SelectItem=lr,h.SlotItem=Zn,h.SwitchItem=Fr,h.TableItem=Ir,h.TableMappingColumn=Tr,h.TableRadioColumn=Vr,h.Text=Gr,h.TimeItem=ur,h.TimeSelectItem=fr,h.Tour=Ur,h.TreeSelectItem=Hr,h.UniqueID=Un,h.ValidateSchema=On,h.ValidateSchemaKey=Ce,h.clearNonNumber=$a,h.clone=Lt,h.compareTo=Bt,h.createBroadcast=ht,h.createValidateSchema=mt,h.debounce=at,h.debounceRef=qa,h.decimalLength=Sn,h.default=Ls,h.defineBroadcast=Ta,h.defineConfigDomain=kn,h.defineDataItem=An,h.defineDomain=Ht,h.defineItem=ce,h.definePageState=Rn,h.deleteGlobalValidator=ka,h.disabledProperty=ye,h.divide=qt,h.excludeProps=ge,h.extend=De,h.floatData=Ca,h.getGlobalValidateCheckEvents=xn,h.getGlobalValidateResetEvents=Tn,h.getPageContentAreaHeight=St,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=wt,h.getPageHeaderAreaHeight=bt,h.getRootDomain=Ke,h.hasSymbol=dn,h.includeProps=xa,h.indexOf=va,h.installRules=In,h.integerLength=wn,h.isArray=sa,h.isArrayLike=mn,h.isBrowser=He,h.isDate=fa,h.isESModule=ma,h.isEmptyString=oe,h.isEqual=Ie,h.isFunction=Mt,h.isHidden=gn,h.isInnerPage=Ma,h.isMap=ua,h.isNumberString=bn,h.isObject=ke,h.isPlainObject=Dt,h.isPromise=ga,h.isRegExp=yn,h.isSet=ca,h.isString=da,h.isSubPage=Da,h.isSymbol=ha,h.isWindow=hn,h.lastIndexOf=Ea,h.makeArray=wa,h.merge=pn,h.multiply=sn,h.negate=un,h.nextTick=ya,h.numberFormat=ct,h.objectToString=fn,h.property=$e,h.raf=Sa,h.readonlyProperty=pe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Va,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Aa,h.setGlobalValidator=Na,h.throttle=Nn,h.toBoolean=Q,h.toNumber=ae,h.toPadding=Ee,h.toPx=ne,h.toPxDesc=ee,h.toTypeString=ft,h.toValue=re,h.typeOf=dt,h.unNumberFormat=cn,h.updatePageState=zt,h.useBroadcast=nt,h.useDomain=Te,h.useExpose=fe,h.usePageState=yt,h.usePosition=Wn,h.useRect=ot,h.useTouch=Ms,h.valueLength=tt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function ut(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Nt(he(e),he(t)),r==1&&(n==1?e=Vt(e):t=Vt(t));let l=nn(e,t);return r?r==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Vt(l)):he(l)}function Vt(e){let t="",r=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return nn(t,o)}function he(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 Nt(e,t){let r=e.split("."),n=t.split("."),l=r[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function nn(e,t){[e,t]=Nt(e,t);let r="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var le=(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))(le||{});function Qe(e,t=0,r=le.HALF_EVEN){if(r===le.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 l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=Qe(e,0,r),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,rn(l[1],o,n,r)?(n?"-":"")+kt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&rn(i,s,n,r)&&(s=kt(s),s.length>t)?(n?"-":"")+kt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function rn(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===le.DOWN||!r&&n===le.FLOOR||r&&n===le.CEILING)return!1;if(n===le.UP||r&&n===le.FLOOR||!r&&n===le.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case le.HALF_DOWN:return!1;case le.HALF_UP:return!0;case le.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function kt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let l=r;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function It(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=et(e),t=et(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=et(e.replace(".","")),t=et(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,c="";for(let f=0;f<s;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let b=0;for(let C=t.length-1;C>=d&&C>=0;C--)u[C]>-1&&u[C]<e.length&&(b+=parseInt(e[u[C]--])*parseInt(t[C]));b+=i,i=Math.floor(b/10),c=b%10+c,d--}return c=et(ia(c,o)),r==1&&(c="-"+c),c}function ia(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 et(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 At(e,t,r=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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=he(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=he(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let c=e.length-d+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==d&&(e=he(e.replace(".","")))}let o=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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=d,i="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(u)>=parseInt(t);)u=ut(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Qe(i,r-2))}function Rt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ut(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function an(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),ln(e),ln(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Rt(e,It(t,Qe(At(e,t),0,le.FLOOR)));return r+n}function ln(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function on(e,t){let r=!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),r=!0),[e,t]=Nt(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]?r?-1:1:r?1:-1;return 0}class X{value;static RoundingModes=le;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[r,n]=t.split(/[eE]/);r=he(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=l+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=l+he(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=X.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=X.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<r?(r=i,i=0):i-=r,s=t.substring(i,i+r)+(i<o-r&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return X.getPrettyValue(this.value,t,r)}static round(t,r=0,n=le.HALF_EVEN){if(t=X.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Qe(t,r,n)}round(t=0,r=le.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new X(Qe(this.value,t,r))}static floor(t){return t=X.validate(t),t.indexOf(".")===-1?t:X.round(t,0,le.FLOOR)}floor(){return this.value.indexOf(".")===-1?new X(this.value):new X(this.value).round(0,le.FLOOR)}static ceil(t){return t=X.validate(t),t.indexOf(".")===-1?t:X.round(t,0,le.CEILING)}ceil(){return this.value.indexOf(".")===-1?new X(this.value):new X(this.value).round(0,le.CEILING)}static add(t,r){return t=X.validate(t),r=X.validate(r),ut(t,r)}add(t){return new X(ut(this.value,t.getValue()))}static subtract(t,r){return t=X.validate(t),r=X.validate(r),Rt(t,r)}subtract(t){return new X(Rt(this.value,t.getValue()))}static multiply(t,r){return t=X.validate(t),r=X.validate(r),It(t,r)}multiply(t){return new X(It(this.value,t.getValue()))}static divide(t,r,n){return t=X.validate(t),r=X.validate(r),At(t,r,n)}divide(t,r){return new X(At(this.value,t.getValue(),r))}static modulus(t,r){return t=X.validate(t),r=X.validate(r),an(t,r)}modulus(t){return new X(an(this.value,t.getValue()))}static compareTo(t,r){return t=X.validate(t),r=X.validate(r),on(t,r)}compareTo(t){return on(this.value,t.getValue())}static negate(t){return t=X.validate(t),jt(t)}negate(){return new X(jt(this.value))}}function sn(e,t){return X.multiply(`${e}`,`${t}`)}function qt(e,t,r=8){return X.divide(`${e}`,`${t}`,r)}function Bt(e,t){return e=`${e}`,t=`${t}`,X.compareTo(e,t)}function un(e){return X.negate(e)}function ct(e,t=-1,r=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",d=o.indexOf(".");d!=-1&&(i=o.substring(0,d),u=o.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):r&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let f="",b=i.split("").reverse();for(let C=0;C<b.length;C++)f+=b[C]+((C+1)%n==0&&C+1!=b.length?l:"");u.length==0?c=`${s}${f.split("").reverse().join("")}`:c=`${s}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function cn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const sa=Array.isArray,ua=e=>ft(e)==="[object Map]",ca=e=>ft(e)==="[object Set]",fa=e=>e instanceof Date,Mt=e=>typeof e=="function",da=e=>typeof e=="string",ha=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",ga=e=>ke(e)&&Mt(e.then)&&Mt(e.catch),fn=Object.prototype.toString,ft=e=>fn.call(e),Dt=e=>ft(e)==="[object Object]",dn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ma(e){return e.__esModule||dn&&e[Symbol.toStringTag]==="Module"}const pa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function De(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<n;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=De(l,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Lt(e,t,r=!1){if(!r)De(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Dt(s))continue;o=Lt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Dt(s))continue;o=Lt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const _t=pa?Promise.resolve():null;function ya(e,...t){_t!==null?t&&t.length>0?_t.then(()=>{e(t)}):_t.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function Q(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function ae(e){return typeof e=="number"?e:Number(e)}const ba={"[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 dt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):ba[r]||"object"}function hn(e){return e&&typeof e=="object"&&"setInterval"in e}function gn(e){return!e||e.offsetParent===null}function mn(e){let t=!!e&&"length"in e&&e.length,r=dt(e);return r==="function"||hn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function pn(e,t){let r=+t.length,n=0,l=e.length;for(;n<r;n++)e[l++]=t[n];return e.length=l,e}function wa(e,t=[]){let r=t;return e!=null&&(mn(Object(e))?pn(r,typeof e=="string"?[e]:e):r.push(e)),r}function Ie(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=dt(e),n=dt(t);if(r!==n)return!1;if(r==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],d=t[i];if(!Ie(u,d))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!Ie(o,s))return!1}return!0}return!1}const He=typeof window<"u",Sa=He&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function yn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const oe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function bn(e){return oe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),oe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wn(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 r=t.indexOf(".");return r==-1?t.length:r}function Sn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function $n(e,t,r){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(r,"")}function $a(e,t=!0,r=!0){t?e=$n(e,".",/\./g):e=e.replace(/\./g,""),r?e=$n(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ie(e,r))return!0}):t.indexOf(e)}function xa(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(Ie(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function tt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Ea(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function ge(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const n={};for(const l in e)r.includes(l)||(n[l]=e[l]);return n}const Ca=(e,t,r)=>{const n=Object.assign({},e),l=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},se=Symbol.for("BroadcastKey");class Ft{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):yn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(r);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[r]=="function"){const u=Reflect.apply(i[r],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},r,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,r,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,r){this.callbacks.set(t,r)}}function ht(e,t,r,n){const l=new Ft(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Ta(e,t,r){const n=r;if(n[se])return n[se];const l=a.inject(se,null),o=new Ft(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[se]=o,a.provide(se,o),a.onUnmounted(()=>{o.destroy(),n[se]=void 0}),o}function nt(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[se]??a.inject(se,null):a.inject(se,null)}const Le=e=>e.default??e;class Oa{error(t,r){const n=r,l=nt(r);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=nt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=nt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=nt(n),s=r.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?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let vn=new Oa;function Va(e){vn=e}function Na(e,t){Le(Me).setValidator(e,t)}function ka(e){Le(Me).deleteValidator(e)}let xn=["blur","clear"];function Ia(e){xn=e}function En(){return xn}let Cn=["focus","change"];function Aa(e){Cn=e}function Tn(){return Cn}function Ra(e){Le(Me).messages(e)}function rt(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function gt(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 Ce=Symbol("ValidateSchemaKey");class On{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,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=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=gt(rt(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=gt(n);const l=rt(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const l=vn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,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,r,n=!1){n?Le(Me).setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Le(Me).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Le(Me).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=rt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=gt(t):this.rules=gt([t]);const n=rt(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},i=Le(Me),u=new i(l),d=this.proxy??s;return u.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let b="error";Array.isArray(f.errors)&&f.errors.length>0&&(b=f.errors[0].message??b,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(b)}return f}).catch(f=>{const b=f.message??`${f}`;return this.error(b),f})}}return Promise.resolve({pass:!0})}}function mt(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(o){return o[l]}}}return new On(t,r,e)}const Vn=Symbol.for("EventEmitterKey");class ja{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===r);l!==-1&&n.splice(l,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function at(e,t){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...n])},t)}}function Nn(e,t){let r=0;return function(...n){const l=new Date().getTime();l-r<t||(r=l,Reflect.apply(e,null,[...n]))}}function qa(e,t){const r=at((n,l)=>{e=n,l()},t);return a.customRef((n,l)=>({get(){return n(),e},set(o){r(o,l)}}))}const Se=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class pt{_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=a.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const l=t[n];r.length>0&&r.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];r.push(l)}n=n._parent}return r}}const Ba=new pt;function Ke(){return Ba}function Te(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[Se]??a.inject(Se,null):a.inject(Se,null)}const Pt=Symbol("OriginalDateKey");function Ht(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(Se,null);s===null&&(s=Ke());const i=e||t.prop||t.name,u=new pt(i);u.parent=s;const d=p=>{o[Pt]||b(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,f=()=>o[Pt]??null,b=p=>{const O={};De(!0,O,a.toRaw(p)),o[Pt]=O};a.isReactive(t)?a.watchEffect(()=>{u.merge(t,r)}):u.merge(t,r),t.modelValue&&b(t.modelValue),o[Se]=u,a.provide(Se,u);let C=null,y=null;if(l!==null){const p=a.inject(se,null);C=ht(o,p,i,n),u.broadcast=C,o[se]=C,a.provide(se,C),o.broadcast=(v,T,...B)=>Reflect.apply(C.emit,C,[v,T,...B]);const O=a.inject(Ce,null);y=mt(o,O,{componentName:""}),u.validateSchema=y,o[Ce]=y,a.provide(Ce,y),o[ze]=new Map,o.validate=(v=!0)=>{const T=[];let B=null;const I={deep:!1};if(v===!0)B={name:"*"};else if(Array.isArray(v)&&v.length>0){const V=v;B={name:A=>A?V.indexOf(A)!==-1:!1}}else if(v!=null&&typeof v=="object"){const V=v;if(I.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const A=V.include;B={name:S=>S?A.indexOf(S)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const A=V.exclude;B={name:S=>S?A.indexOf(S)===-1:!1}}else B={name:"*"}}if(B){const V=C?.emitToChildren(B,"validate",I);V&&Reflect.apply([].push,T,V)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(V=>{let A=[];return V.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(A=[...A,...S.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(v,T=!0)=>{if(T){const B=Reflect.ownKeys(v),I=[...B],V={name:A=>{const S=B.includes(A);if(S){const N=I.findIndex(L=>A===L);N!==-1&&I.splice(N,1)}return S}};C?.emitToChildren(V,"setNameValidateRules",v,!1),I.length>0&&I.forEach(A=>{let S=String(A);const L=An(u,S,{componentName:"",fieldName:S,pureDataValidate:!0},C,y);o[ze].set(S,L);const q=v[S];q&&L.validateSchema.setRule(q)})}},o.clearValidate=(v=!0)=>{let T=null;if(v===!0)T={name:"*"};else if(Array.isArray(v)&&v.length>0){const B=v;T={name:I=>I?B.indexOf(I)!==-1:!1}}else if(v!=null&&typeof v=="object"){const B=v;if(Array.isArray(B.include)&&B.include.length>0){const I=B.include;T={name:V=>V?I.indexOf(V)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const I=B.exclude;T={name:V=>V?I.indexOf(V)===-1:!1}}else T={name:"*"}}T&&C?.emitToChildren(T,"clearValidate",!1)},o.resetFields=v=>{const T=c();if(!T)return;const B={};if(De(!0,B,f()??{}),Array.isArray(v))v.forEach(I=>{T[I]=B[I]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(V=>{T[V]=B[V]});else if(v&&Array.isArray(v.exclude)){let I=v.exclude??[];Reflect.ownKeys(B).forEach(V=>{I.includes(V)||(T[V]=B[V])})}else Object.assign(T,B);o.clearValidate(v)},o.setModelValue=(v,T)=>{!T||T===i?d(v):C?.emitToChildren({name:T},"setModelValue",v)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{u.destroy(),o[Se]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),C!==null&&(C.destroy(),o[se]=void 0),y!==null&&(y.destroy(),o[Ce]=void 0)}),u}function kn(e,t,r=[]){const l=a.getCurrentInstance()?.proxy;let o=a.inject(Se,null);o===null&&(o=Ke());const s=e||t.prop||t.name,i=new pt(s);return i.parent=o,a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),l[Se]=i,a.provide(Se,i),a.onUnmounted(()=>{i.destroy(),l[Se]=void 0}),i}function In(e,t,r){const l=Te(e)?.get("rules");if(!l)return;let o=l[r];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ce(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(se,null),i=ht(l,s,o,r);l[se]=i,a.provide(se,i),l.broadcast=(y,p,...O)=>Reflect.apply(i.emit,i,[y,p,...O]);const u=a.inject(Ce,null);e.fieldName=e.fieldName??o;const d=mt(l,u,e);l[Ce]=d,a.provide(Ce,d),In(l,d,o),l.validate=(y=null)=>{const p=[];let O=!1,v=!1;if(Array.isArray(y)&&y.indexOf(o)!==-1)v=!0,O=!0;else if(y&&typeof y=="object"){const T=y;T.ignoreHidden===!0&&gn(l.$el)?v=!1:(Array.isArray(T.include)&&T.include.indexOf(o)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(o),v=!0),O=T.deep??!1}else typeof y=="boolean"&&(O=y),v=!0;if(v){const T=d?.validate();p.push(T)}if(O){let T=null;const B={deep:!1};if(y===!0)T={name:"*"};else if(Array.isArray(y)&&y.length>0){const I=y;T={name:V=>V?I.indexOf(V)!==-1:!1}}else if(y!=null&&typeof y=="object"){const I=y;if(B.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const V=I.include;T={name:A=>A?V.indexOf(A)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const V=I.exclude;T={name:A=>A?V.indexOf(A)===-1:!1}}else T={name:"*"}}if(T){const I=i.emitToChildren(T,"validate",B);Reflect.apply([].push,p,I)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(T=>{let B=[];return T.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(B=[...B,...I.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>d?.setRule(y),l.setNameValidateRules=(y,p=!1)=>{const O=y[o];if(O&&d?.setRule(O),p){const v={name:T=>Reflect.ownKeys(y).includes(T)};i.emitToChildren(v,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(t??"")!==-1)&&d?.clear();let p=null;if(y===!0)p={name:"*"};else if(Array.isArray(y)&&y.length>0){const O=y;p={name:v=>v?O.indexOf(v)!==-1:!1}}else if(y!=null&&typeof y=="object"){const O=y;if(Array.isArray(O.include)&&O.include.length>0){const v=O.include;p={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const v=O.exclude;p={name:T=>T?v.indexOf(T)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new ja(l);l[Vn]=c;const f=at((y="validate")=>{y==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:En()).forEach(y=>{c.on(y,p=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Tn()).forEach(y=>{c.on(y,p=>{f("reset")})}),a.onUnmounted(()=>{i.destroy(),l[se]=void 0,d.destroy(),l[Ce]=void 0,c.destroy(),l[Vn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(y,...p)=>{Reflect.apply(c.emit,c,[y,...p])},onEvent:(y,p)=>{Reflect.apply(c.on,c,[p])},offEvent:(y,p)=>{Reflect.apply(c.off,c,[p])}}}function An(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=mt({},l,r);o.validate=(d=null)=>{const c=[];let f=!1,b=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)b=!0,f=!0;else if(d&&typeof d=="object"){const C=d;Array.isArray(C.include)&&C.include.indexOf(s)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(s),b=!0,f=C.deep??!1}else typeof d=="boolean"&&(f=d),b=!0;if(b){const C=i?.validate();c.push(C)}if(f){let C=null;const y={deep:!1};if(d===!0)C={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;C={name:O=>O?p.indexOf(O)!==-1:!1}}else if(d!=null&&typeof d=="object"){const p=d;if(Array.isArray(p.include)&&p.include.length>0){const O=p.include;C={name:v=>v?O.indexOf(v)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const O=p.exclude;C={name:v=>v?O.indexOf(v)===-1:!1}}else C={name:"*"}}if(C){const p=u.emitToChildren(C,"validate",y);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(C=>{let y=[];return C.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(y=[...y,...p.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>i?.setRule(d),o.setNameValidateRules=d=>{const c=d[s];c&&i?.setRule(c)};const u=ht(null,n,s,o);return{broadcast:u,validateSchema:i}}const ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(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 r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let l=Number(e.substring(0,r)),o=1;if(He){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ae="PageStateKey";function xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function zt(e,t,r={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=re(r.headerHeight??t.headerHeight),e.headerPadding=xe(r.headerPadding??t.headerPadding),e.footerHeight=re(r.footerHeight??t.footerHeight),e.footerPadding=xe(r.footerPadding??t.footerPadding),e.contentPadding=xe(r.contentPadding??t.contentPadding),n){const u=r.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(s,o)-re(i,o),e.width=re(r.width??t.width??0,l)}}function Rn(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;zt(n,o,t,!0,s,i,u,d);const c=a.reactive(n),f=e.getForParent(Ae);f&&(n.height=St(e,f),n.width=$t(e,f),a.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=St(e,f),c.width=$t(e,f)}));const b=!f;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,y,p=-1,O=-1,v=0,T=0])=>{zt(c,y,t,b,p,O,v,T)}),e.set(Ae,c),c}function yt(e){return e.get(Ae)}function bt(e,t){return t=t??e.get(Ae),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function wt(e,t){return t=t??e.get(Ae),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function St(e,t){if(t=t??e.get(Ae),t){const r=bt(e,t),n=wt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(Ae),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ma(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Da(e){return!!e.getForParent(Ae)}var Ee=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ee||{});function Kt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,r=1,n){const l=Te();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Kt(u,n))return u}const s=e.value;return Kt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Kt(o,n)?o:l?.get(t)})}function pe(e){return $e(e,"readonly",0,function(r){return Q(r)})}function ye(e){return $e(e,"disabled",0,function(r){return Q(r)})}function te(e,t="modelValue",r){const n=a.toRef(e,t);let l=n.value;typeof r=="function"&&(l=r(n.value));const o=a.ref(l);return a.watch(n,s=>{if(typeof r=="function"){const i=r(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const jn=new Map,vt=new Map;let Wt=null;function La(e){Wt=e}function qn(e,t,r){if(r){let n=vt.get(r);n||(n=new Map,vt.set(r,n)),n.set(e,t)}else jn.set(e,t)}function _e(e,t,r){!r&&Wt&&(r=Wt(e)??void 0);let n=null;if(r){let l=vt.get(r);l&&(n=l.get(t))}return n||(n=jn.get(t)),n}function _a(e,t){for(let r in e){const n=e[r];qn(r,n,t)}}function Fa(e){vt.delete(e)}function Pa(){return{top:0,left:0,bottom:0,right:0}}function Ha(e=0,t=0){if(He){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class za{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){r?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=Ke();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Nn(()=>{const i={...r},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=De({},Pa(),t.safeAreaInset),s=Ha(n,l),i=De({},s.pageLayout,t.pageLayout);r=r??Ke(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",l),r.set("pageLayout",i),r.set("rootWidth",s.rootWidth),r.set("rootHeight",s.rootHeight)}setScopeGetter(t){La(t)}setAPI(t,r,n){qn(t,r,n)}getAPI(t,r,n){return _e(t,r,n)}batchSetAPI(t,r){_a(t,r)}clearScopeAPI(t){Fa(t)}getRootDomain(){return Ke()}}const Ka=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],Wa=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],Ga=e=>{Ka.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Wa.forEach(t=>{e.use(t)})};function J(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},a.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,a.defineComponent(r)}}}const ue={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}},me={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}},Bn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Mn={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,default:"flex"},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}},Dn=[];for(const e in Mn)Dn.push(e);function fe(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ya=Symbol.for("InnerPageScopeKey"),Ua=(e,t)=>({inheritAttrs:!0,props:{...ue,...Bn,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(r,n){const l=Ht(r.name,r);if(l){const d=Rn(l,r);fe({getPageContentHeight:()=>St(l,d),getPageContentWidth:()=>$t(l,d),getPageHeaderHeight:()=>bt(l,d),getPageFooterHeight:()=>wt(l,d)});const c=a.inject(Ya,!1);d&&c&&(d.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),i=a.getCurrentInstance(),u=d=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return a.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const f=a.toRaw(c),b=a.toRaw(d),C=b?Reflect.ownKeys(b):[];(f?Reflect.ownKeys(f):[]).forEach(p=>{C.includes(p)||(b[p]=[])}),u(b)},{deep:!0}),a.onMounted(()=>{if(r.rules){const d=a.toRaw(r.rules);u(d)}}),a.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:Xa,create:Za,scope:_s}=J("page"),Ja=Za(Ua(Xa));function Qa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles),title:""},[a.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},Ln=Re(Ja,[["render",Qa]]),el=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const l=Te(),o=l?yt(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),i=r.height!==null&&r.height!==void 0?re(r.height):null,u=a.computed(()=>{const S={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const N=xe(r.padding??o.footerPadding);return Object.assign(S,N),i&&(o.headerHeight=i),S.height=o.headerHeight,S.safeAreaTop=o.safeAreaTop,S.safeAreaTop&&(S.top=S.safeAreaTop+(N.top??0),S.height=S.height+o.safeAreaTop),S.height,S.safeAreaTop,S}if(i&&(S.height=i),r.padding){const N=xe(r.padding);Object.assign(S,N)}return S});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=a.computed(()=>{const S={};return u.value.height!==null&&u.value.height!==void 0&&(S.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(S.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(S.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(S.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(S.paddingBottom=`${u.value.bottom}px`),S}),c=a.computed(()=>{const S={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(S.top=`${u.value.safeAreaTop}px`),S}),f=a.computed(()=>{const S={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(S.top=`${u.value.safeAreaTop}px`),S}),b=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),C=a.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),y=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),p=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),O=a.computed(()=>{let S={};return typeof r.leftIcon=="object"?Object.assign(S,r.leftIcon):S.name=r.leftIcon,S}),v=a.computed(()=>{let S={};return typeof r.titleIcon=="object"?Object.assign(S,r.titleIcon):S.name=r.titleIcon,S}),T=a.computed(()=>{let S={};return typeof r.rightIcon=="object"?Object.assign(S,r.rightIcon):S.name=r.rightIcon,S});function B(){n.emit("back")}function I(){n.emit("click-title")}function V(){n.emit("click-right")}function A(){n.emit("click-right-text")}return{classes:s,styles:d,mHeaderShow:C,leftStyles:c,rightStyles:f,mLeftShow:b,mTitleShow:y,mRightShow:p,mLeftIcon:O,mTitleIcon:v,mRightIcon:T,handleLeft:B,handleCenter:I,handleRight:V,handleRightText:A}}}),{componentName:tl,create:nl,scope:Fs}=J("header-bar"),rl=nl(el(tl)),al={key:1,class:"fox-header-bar__title"};function ll(e,t,r,n,l,o){const s=a.resolveComponent("fox-ext-icon");return e.mHeaderShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:a.normalizeStyle(e.leftStyles)},[a.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(a.openBlock(),a.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):a.createCommentVNode("",!0),e.leftText?(a.openBlock(),a.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",al,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...i)=>e.handleTitle&&e.handleTitle(...i))},a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.titleIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),e.mRightShow?(a.openBlock(),a.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:a.normalizeStyle(e.rightStyles)},[a.renderSlot(e.$slots,"right",{},()=>[e.rightText?(a.openBlock(),a.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...i)=>e.handleRightText&&e.handleRightText(...i))},a.toDisplayString(e.rightText),1)):a.createCommentVNode("",!0),e.rightIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0)])],6)):a.createCommentVNode("",!0)}const _n=Re(rl,[["render",ll]]);function ol(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const l=Te(),o=l?yt(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const c=e;let f=e;return r.align==="left"?f=`${f}__left`:r.align==="right"?f=`${f}__right`:f=`${f}__center`,{[c]:!0,[f]:!0}}),i=r.height!==null&&r.height!==void 0?re(r.height):null,u=a.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const f=xe(r.padding??o.footerPadding);return Object.assign(c,f),i&&(o.footerHeight=i),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(f.bottom??0)),c}if(i&&(c.height=i),r.padding){const f=xe(r.padding);Object.assign(c,f)}return c});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=a.computed(()=>{const c={};return u.value.height!==null&&u.value.height!==void 0&&(c.height=ne(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(c.paddingTop=ne(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(c.paddingLeft=ne(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(c.paddingRight=ne(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(c.paddingBottom=ne(u.value.bottom)),c});return{classes:s,styles:d}}}}const{componentName:il,create:sl,scope:Ps}=J("footer-bar"),ul=sl(ol(il));function cl(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Fn=Re(ul,[["render",cl]]);function fl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Te(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const i=yt(n);if(i){if(r.padding){const f=xe(r.padding);Object.assign(i.contentPadding,f)}const u=bt(n,i),d=wt(n,i);let c="";if(i.contentHeight?c=`${i.contentHeight}`:c=`${i.height}px`,i.contentPadding,s.height=c,i.contentPadding.top!==null&&i.contentPadding.top!==void 0||u>0){const f=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${u+f}px`}if(i.contentPadding.bottom!==null&&i.contentPadding.bottom!==void 0||d>0){const f=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${d+f}px`}return i.contentPadding.left!==null&&i.contentPadding.left!==void 0&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right!==null&&i.contentPadding.right!==void 0&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(r.padding){const i=xe(r.padding);i.left!==null&&i.left!==void 0&&(s.paddingLeft=`${i.left}px`),i.top!==null&&i.top!==void 0&&(s.paddingTop=`${i.top}px`),i.right!==null&&i.right!==void 0&&(s.paddingRight=`${i.right}px`),i.bottom!==null&&i.bottom!==void 0&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:dl,create:hl,scope:Hs}=J("content"),gl=hl(fl(dl));function ml(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Pn=Re(gl,[["render",ml]]),We="GroupStateKey",Hn=Symbol.for("GroupScopeKey");function xt(){return a.inject(Hn,!1)}function Et(e=!0){a.provide(Hn,e)}function pl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0,order:{index:0}});return e.set(We,o),o}function zn(e,t,r=-1,n=-1,l=!1,o){const s=e.get(We);if(!s)return;const i=e.get("groupLayout")??{};r===-1&&(r=i.column??1),n===-1&&(n=i.gutter??0),o||(o=i.minItemWidth??-1),o=re(o);const u=()=>{const d=t===""||t===-1,c=re(t);let f=ae(r);const b=re(n);if(!d){let p=(c-(f-1)*b)/f;for(;o!==-1&&f>1&&p<o;)f--,p=(c-(f-1)*b)/f}let C=!1;const y=s.layout;y.value.width=t,y.value.column!==f&&(y.value.column=f,C=!0),y.value.gutter!==b&&(y.value.gutter=b,C=!0),C&&a.triggerRef(y)};if(l)u();else{const d=++s.passport;setTimeout(()=>{d===s.passport&&u()},50)}}function lt(e,t=!1){let r;return t?r=e.getForParent(We):r=e.get(We),r.layout}function Gt(e,t=!1){let r;return t?r=e.getForParent(We):r=e.get(We),r.order}function we(e,t=1){return t==="stretch"?-1:(t=ae(t),t===-1?100:100*t/e)}function yl(e){return e===window}const ot=e=>{const t=a.unref(e);if(yl(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},je=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,bl=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},wl=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=ae(e.props.offset);return t<0?0:t},Sl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},$l=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=ae(e.props.foxSubItemCount);return t<0?1:t};function Yt(e){let t=e.offsetHeight;if(t<=0){const r=e.cloneNode(!0),n=e.offsetWidth;r.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),t=r.offsetHeight,document.body.removeChild(r)}return t}function vl(e,t,r){return{props:{...ue,...Bn,...Mn},emits:["update:collapse"],setup(n,l){const o=Ht(n.name,n,Dn),s=pl(o,{type:n.type}),i=xt();Et(!0);const u=a.computed(()=>i&&o?lt(o,!0).value:null),d=a.getCurrentInstance(),c=m=>{const k=d?.proxy;k&&typeof k.setNameValidateRules=="function"&&k.setNameValidateRules(m,!0)};a.watch(()=>n.rules,(m,k)=>{if(!m&&!k)return;const j=a.toRaw(k),P=a.toRaw(m),z=P?Reflect.ownKeys(P):[];(j?Reflect.ownKeys(j):[]).forEach(Y=>{z.includes(Y)||(P[Y]=[])}),c(P)},{deep:!0});const f=e,b=a.computed(()=>{const m={};if(m.height=H.value,u.value){const k=lt(o,!0);if(k.value.type==="flex"){if(n.width){const z=ne(n.width);m.width=z}else{const z=we(k.value.column,n.span);z>0&&(m.width=`${z}%`)}const j=we(k.value.column,n.offset);j>0&&(m["margin-left"]=`${j}%`);const P=k.value.gutter/2;P>0&&(m["padding-left"]=`${P}px`,m["padding-right"]=`${P}px`)}else if(k.value.type==="flow"){if(n.width){const z=ne(n.width);m.width=z}else{const z=we(k.value.column,n.span);z>0&&(m.width=`${z}%`)}const j=we(k.value.column,n.offset);j>0&&(m["margin-left"]=`${j}%`);const P=k.value.gutter/2;if(P>0){const z=o?Gt(o,!0):null;if(z){let K=ae(n.offset)+ae(n.span);(K===-1||K>k.value.column)&&(K=k.value.column);const Y=Math.ceil((z.index+1)/k.value.column),W=Math.ceil((z.index+K)/k.value.column);if(Y===W){const U=(z.index+1)%k.value.column,Z=(z.index+K)%k.value.column,ee=U===1?0:P,be=Z===0?0:P;m["padding-left"]=`${ee}px`,m["padding-right"]=`${be}px`}else{const U=K%k.value.column,Z=0,ee=U===0?0:P;m["padding-left"]=`${Z}px`,m["padding-right"]=`${ee}px`}z.index+=K}else m["padding-left"]=`${P}px`,m["padding-right"]=`${P}px`}}}else if(n.width){const k=ne(n.width);m.width=k}return m}),C=a.computed(()=>n.type==="flex"?{[`${je("",n.type)}`]:!0,[`${je("justify",n.justify)}`]:!0,[`${je("align",n.align)}`]:!0,[`${je("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${je("",n.type)}`]:!0,[`${je("justify",n.justify)}`]:!0,[`${je("align",n.align)}`]:!0}:{[`${je("",n.type)}`]:!0,[`${f}__gutter`]:!0}),y=a.toRef(n,"title"),p=a.toRef(n,"gutter"),O=a.toRef(n,"column"),v=a.computed(()=>i?!0:Q(n.isWrap)),T=[],B=m=>{T.push(m)},I=()=>{let m=T.length;T.splice(0,m)},V=a.ref(-1);zn(o,V.value,O.value,p.value,!0,n.minItemWidth),n.autoLayout&&a.watch([V,O,p],([m,k,j])=>{s.order.index=0,zn(o,m,k,j,!1,n.minItemWidth)});const A=a.computed(()=>x.value?n.expandText??"":n.collapseText??""),S=a.computed(()=>({[`${e}__header-collapse-text`]:!0})),N=a.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!x.value,["is-collapse"]:x.value})),L=a.ref(),q=a.ref(),H=a.computed(()=>w.value||ne(n.height)||""),F=a.ref(!1),w=a.ref(""),x=a.ref(!1);let E=-1;const M=(m,k=!0)=>{const j=L.value;if(j&&F.value!==m){if(E=E===-1?Yt(j):E,x.value=!0,k)if(j.style["will-change"]="height",j.ontransitionend=function(){j.ontransitionend=null,this.style["will-change"]="auto",m||(w.value="",x.value=!1)},m){let P=0;q.value&&q.value.classList.contains(`${e}__header`)&&(P=Yt(q.value)),w.value=`${E}px`,a.nextTick(()=>{w.value=`${P}px`})}else w.value=`${E}px`;else if(m){let P=0;q.value&&q.value.classList.contains(`${e}__header`)&&(P=Yt(q.value)),w.value=`${P}px`}else x.value=!1,w.value=`${E}px`;F.value=m,l.emit("update:collapse",m)}};a.watch(()=>n.collapse,m=>{M(m)});const $=()=>{D()},D=m=>{m=m??!F.value,M(m)};fe({toggleCollapse:D});let _=null;a.onMounted(()=>{if(n.rules){const m=a.toRaw(n.rules);c(m)}if(He&&(M(Q(n.collapse),!1),n.autoLayout&&Array.isArray(T)&&T.length>0)){const m=T[0];V.value=ot(m).width,window.ResizeObserver&&(_=new window.ResizeObserver(()=>{const k=ot(m).width;k>0&&k!==V.value&&(V.value=k)}),_.observe(m))}}),a.onUnmounted(()=>{_?.disconnect()});const R=(m,k,j,P)=>{const z={...C.value};return k===0&&(z[`${f}__first`]=!0),j>=P-1&&(z[`${f}__last`]=!0),a.h("div",{ref:B,key:`${k}`,class:z},m)},G=m=>{if(typeof m.type=="symbol"){if(Array.isArray(m.children)){const k=[...m.children];for(let j=k.length-1;j>=0;j--){const P=k[j],z=G(P);z===null?k.splice(j,1):z.length>0&&Reflect.apply([].splice,k,[j,1,...z])}return k}return null}return[]};return()=>{s.order.index=0;const m=[];let k=0;if(l.slots.header){const K={key:`${k++}`,ref:q,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},Y=a.h("div",K,[l.slots.header()]);m.push(Y)}else{const K=[];if(y.value){if(n.showMark){const W={class:{[`${f}__header-mark`]:!0}};n.markColor&&(W.style={background:n.markColor});const U=a.h("div",W);K.push(U)}const Y=a.h("div",{class:{[`${f}__header-title`]:!0}},[y.value]);K.push(Y)}if(l.slots.toolbar&&K.push(l.slots.toolbar()),n.showCollapse){const Y=[];if(A.value){const Z={class:S.value},ee=a.h("span",Z,[A.value]);Y.push(ee)}const W={class:N.value},U=r(n.collapseIcon,W);if(U&&Y.push(U),Y.length>0){const Z=a.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:$},Y);K.push(Z)}}if(K.length>0){const Y={key:`${k++}`,ref:q,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},W=a.h("div",Y,K);m.push(W)}}I();const j=l.slots.default?l.slots.default():[];let P=[],z=0;if(n.type==="flex"){for(let K=0;K<j.length;K++){const Y=G(j[K]);if(Y===null)continue;Y.length>0&&Reflect.apply([].splice,j,[K,1,...Y]);const W=j[K];if(Sl(W)==="fragment"){let ie=$l(W);ie>s.layout.value.column?ie=s.layout.value.column:ie<=0&&(ie=1);const Ne=z+ie;if(Ne>s.layout.value.column){const tn=R([...P],k++,K-1,j.length);m.push(tn),z=ie,P=[W]}else P.push(W),z=Ne;continue}const Z=bl(W),ee=wl(W);if(Z==="stretch"){if(z<s.layout.value.column){P.push(W);const ie=R([...P],k++,K,j.length);m.push(ie)}else{const ie=R([...P],k++,K-1,j.length);m.push(ie);const Ne=R([W],k++,K,j.length);m.push(Ne)}z=0,P=[];continue}let be=ae(Z);if(be===-1){if(P.length>0){const Ne=R([...P],k++,K-1,j.length);m.push(Ne)}const ie=R([W],k++,K,j.length);m.push(ie),z=0,P=[];continue}be>s.layout.value.column?be=s.layout.value.column:be<=0&&(be=1);const Be=z+be+ee;if(Be>s.layout.value.column){const ie=R([...P],k++,K-1,j.length);m.push(ie),z=be+ee,P=[W]}else P.push(W),z=Be}if(P.length>0){const K=R([...P],k++,j.length,j.length);m.push(K)}}else if(n.type==="flow"){const K=R(j,k++,0,j.length);m.push(K)}else for(let K=0;K<j.length;K++){const Y=j[K],W=R([Y],k++,K,j.length);m.push(W)}if(v.value){const K=n.tag||"div";return a.h(K,{ref:L,class:{[`${f}`]:!0,"is-collapse":x.value},style:b.value},[m])}else return m}}}}const{componentName:xl,create:El,scope:Cl}=J("group"),Kn=El(vl(xl,Cl,(e,t)=>(e=e??st.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function Tl(e){return e===window}const Ol=/matrix\((.+)\)/,Wn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Tl(t))return{x:0,y:0};let r=0,n=0,l=t;for(;l!==null;)r+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const c=Ol.exec(d);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(i+=Number(b[4]),u+=Number(b[5]))}}l=l.parentNode}return r-=o,n-=s,r+=i,n+=u,{x:r,y:n}};class Vl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const r=this.watchedListeners.indexOf(t);r!==-1&&this.watchedListeners.splice(r,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Nl{monitorRegister=new WeakMap;watch(t,r){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Vl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(r),n=n.parentNode}}unwatch(t,r){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(r),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const Gn=new Nl,Yn={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:kl,create:Il}=J("price"),Al=Il({props:{...Yn},setup(e){const t=a.computed(()=>({[kl]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>tt(e.price)==0?"":ct(e.price,e.decimalLength,!0,ae(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),Rl=["innerHTML"],jl=["innerHTML"];function ql(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("view",{class:a.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Rl)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--${e.size}`)},a.toDisplayString(e.intText),3),e.decimalText.length!=0?(a.openBlock(),a.createElementBlock("view",{key:1,class:a.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--decimal-${e.size}`)},a.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(a.openBlock(),a.createElementBlock("view",{key:2,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,jl)):a.createCommentVNode("",!0)],2)}const Ut=Re(Al,[["render",ql]]),{componentName:Ct,create:Bl}=J("hint-text"),Ml=Bl({components:{Price:Ut},props:{...Yn,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 o=a.ref(!0),s=a.ref({x:0,y:0}),i=a.ref({x:0,y:0}),u=a.ref(0),d=a.ref(0),c=a.ref(e.placement),f=a.computed(()=>({[Ct]:!0})),b=a.ref(null),C=(N,L,q=10)=>{if(!He||L===!1||!N)return;o.value=!0;const H=ot(e.reference);u.value=H.width,d.value=H.height,setTimeout(()=>{if(!b.value)return;const F=Wn(e.reference),w=document.documentElement.clientWidth||document.body.clientWidth,x=b.value.offsetWidth,E=b.value.offsetHeight;F.y-E>=0?(c.value="top",s.value.y=F.y-E-10-4,i.value.y=E):(c.value="bottom",s.value.y=F.y+d.value+10,i.value.y=-10);const M=F.x+x-w;M<0?(s.value.x=F.x,i.value.x=20):(s.value.x=F.x-M,i.value.x=M+20),o.value=!1},q)},y=at(()=>{C(e.message,e.visible)},10),p=a.computed(()=>e.visible&&O.value),O=a.ref(!0),v=at(N=>{const L=N[0];L&&(O.value=L.isIntersecting)},10),T=new IntersectionObserver(v);a.watch([()=>e.message,()=>e.visible],([N,L])=>{C(N,L)}),a.onMounted(()=>{C(e.message,e.visible),Gn.watch(e.reference,y),T.observe(e.reference)}),a.onBeforeMount(()=>{Gn.unwatch(e.reference,y),T.unobserve(e.reference),T.disconnect()});const B=a.computed(()=>{const N={["min-width"]:ne(u.value)};return o.value?N.visibility="hidden":N.transform=`translate(${s.value.x}px, ${s.value.y}px)`,N}),I=a.computed(()=>({[`${Ct}__content`]:!0})),V=a.computed(()=>({})),A=a.computed(()=>({[`${Ct}__arrow`]:!0,[`${Ct}__arrow-${e.placement}`]:!0})),S=a.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:b,classes:f,styles:B,textClasses:I,textStyles:V,arrowClasses:A,arrowStyles:S}}}),Dl={key:1,class:"text"};function Ll(e,t,r,n,l,o){const s=a.resolveComponent("Price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{ref:"tipRef",class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.textClasses),style:a.normalizeStyle(e.textStyles)},[e.type=="number"?(a.openBlock(),a.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(a.openBlock(),a.createElementBlock("span",Dl,a.toDisplayString(e.message),1))],6),a.createElementVNode("div",{class:a.normalizeClass(e.arrowClasses),style:a.normalizeStyle(e.arrowStyles)},null,6)],6),[[a.vShow,e.show]])]),_:1})}const Tt=Re(Ml,[["render",Ll]]);class Un{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 Xt={},_l=new Un,Ge=new Map,Zt=e=>{if(e){const t=document.getElementById(e);Ge.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ge.keys()){const r=document.getElementById(t);r&&r.parentNode?.removeChild(r)}Ge.clear()}},Fl=e=>{const t=document.getElementById(e.id);if(t){const r=Ge.get(e.id);r?e={...Xt,...r,...e}:e={...Xt,...e};const n=a.createVNode(Tt,e);return a.render(n,t),e.id}},Pl=e=>{e.unmount=Zt;let t;if(e.id){if(t=e.id,Ge.has(t))return Fl(e)}else t=`hinttext_${_l.get()}`;e={...Xt,...e},e.id=t,Ge.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(Tt,e);return a.render(n,r),document.body.appendChild(r),t},Hl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ot={show(e,t,r={},n=!0){return n&&Zt(),Hl(t),Pl({...r,message:t,reference:e})},hide(e){Zt(e)},install(e){e.config.globalProperties.$hintText=Ot}},{componentName:Xn,create:zl}=J("item"),Kl=zl({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,t){ce({componentName:Xn,validate:!1},e.prop??t.attrs.name);const r=Te(),n=xt();Et(!1);const l=a.computed(()=>n&&r?lt(r,!1).value:null),o=Xn,s=a.computed(()=>{const m={[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder};return m[e.errorMarkClass]=!!L.value,m[e.warnMarkClass]=!!S.value,m[e.infoMarkClass]=!!V.value,m}),i=a.computed(()=>{const m={};if(l.value)if(l.value.type==="flex"){if(e.width)m.width=ne(e.width);else{const P=we(l.value.column,e.span);P>0&&(m.width=`${P}%`)}const k=we(l.value.column,e.offset);k>0&&(m["margin-left"]=`${k}%`);const j=l.value.gutter/2;j>0&&(m["padding-left"]=`${j}px`,m["padding-right"]=`${j}px`)}else if(l.value.type==="flow"){if(e.width)m.width=ne(e.width);else{const P=we(l.value.column,e.span);P>0&&(m.width=`${P}%`)}const k=we(l.value.column,e.offset);k>0&&(m["margin-left"]=`${k}%`);const j=l.value.gutter/2;if(j>0){const P=r?Gt(r,!1):null;if(P){let z=ae(e.offset)+ae(e.span);(z===-1||z>l.value.column)&&(z=l.value.column);const K=Math.ceil((P.index+1)/l.value.column),Y=Math.ceil((P.index+z)/l.value.column);if(K===Y){const W=(P.index+1)%l.value.column,U=(P.index+z)%l.value.column,Z=W===1?0:j,ee=U===0?0:j;m["padding-left"]=`${Z}px`,m["padding-right"]=`${ee}px`}else{const W=z%l.value.column,U=0,Z=W===0?0:j;m["padding-left"]=`${U}px`,m["padding-right"]=`${Z}px`}P.index+=z}else m["padding-left"]=`${j}px`,m["padding-right"]=`${j}px`}}else return e.width&&(m.width=ne(e.width)),m;else e.width&&(m.width=ne(e.width));return m}),u=a.ref(null),d=a.computed({get:()=>u.value??Q(e.isRequired),set:m=>{u.value=m}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=$e(a.toRef(e,"labelPosition"),"labelPosition",Ee.Near),b=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),C=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${b.value}`]:!0})),y=a.computed(()=>({label:!0,[`label--${b.value}`]:!0})),p=$e(a.toRef(e,"labelWidth"),"labelWidth",Ee.Near),O=a.computed(()=>p&&p.value?{width:ne(p.value)}:{}),v=a.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),T=a.computed(()=>({content:!0,[e.contentClass]:!0})),B=a.computed(()=>({...e.contentStyle})),I=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(m){d.value=m},setErrorTip(m){I.errorTip=m},setErrorIcon(m){I.errorIcon=m},setWarnTip(m){I.warnTip=m},setWarnIcon(m){I.warnIcon=m},setInfoTip(m){I.infoTip=m},setInfoIcon(m){I.infoIcon=m}});const V=a.computed(()=>e.infoTip||I.infoTip),A=a.computed(()=>e.infoIcon||I.infoIcon),S=a.computed(()=>e.warnTip||I.warnTip),N=a.computed(()=>e.warnIcon||I.warnIcon),L=a.computed(()=>e.errorTip||I.errorTip),q=a.computed(()=>e.errorIcon||I.errorIcon),H=a.computed(()=>L.value?"error":S.value?"warn":V.value?"info":""),F=a.computed(()=>H.value.length>0),w=a.computed(()=>H.value==="error"?L.value:H.value==="warn"?S.value:H.value==="info"?V.value:""),x=a.computed(()=>H.value==="error"?q.value:H.value==="warn"?N.value:H.value==="info"?A.value:null),E=a.computed(()=>{let m={[`${o}__tip`]:!0,[`${o}__tip--${H.value}`]:!0};return H.value==="error"&&e.errorClass?m[`${e.errorClass}`]=!0:H.value==="warn"&&e.warnClass?m[`${e.warnClass}`]=!0:H.value==="info"&&e.infoClass&&(m[`${e.infoClass}`]=!0),m}),M=a.computed(()=>{let m={};return f&&f.value==="top"||!c.value?m["padding-left"]="0px":p&&p.value&&(m["padding-left"]=ne(p.value)),m}),$=a.ref();let D="";a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([m,k,j,P])=>{$.value&&(m&&!oe(k)?D?Ot.show($.value,k,{...P,id:D,type:j},!0):D=Ot.show($.value,k,{...P,type:j},!0):Ot.hide(D))});let _=null;const R=()=>{_||!$.value||(_=new IntersectionObserver(m=>{let k=!1;for(let j of m)if(j.intersectionRatio>0){k=!0,k&&t.emit("appear",j);break}k||t.emit("disappear")}),_.observe($.value))},G=()=>{!_||!$.value||(_.unobserve($.value),_=null)};return a.watch(()=>Q(e.appearListen),m=>{m?R():G()}),a.onMounted(()=>{Q(e.appearListen)&&R()}),a.onUnmounted(G),{classes:s,styles:i,mainClasses:C,hasLabel:c,labelClasses:y,labelStyles:O,labelStringClasses:v,contentClasses:T,contentStyles:B,contentRef:$,hasTip:F,mTip:w,mIcon:x,tipClasses:E,tipStyles:M}}}),Wl={key:0,class:"fox-item__tip--icon"},Gl={class:"fox-item__tip--text"};function Yl(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.mainClasses)},[e.hasLabel?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.labelClasses),style:a.normalizeStyle(e.labelStyles)},[a.createElementVNode("div",{class:a.normalizeClass(e.labelStringClasses)},[a.renderSlot(e.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(e.label),1)])],2)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref:"contentRef",class:a.normalizeClass(e.contentClasses),style:a.normalizeStyle(e.contentStyles)},[a.renderSlot(e.$slots,"prepend"),a.renderSlot(e.$slots,"default"),a.renderSlot(e.$slots,"append")],6)],2),a.createVNode(a.Transition,{name:"fox-item__animate"},{default:a.withCtx(()=>[e.hasTip?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.tipClasses),style:a.normalizeStyle(e.tipStyles)},[e.mIcon?(a.openBlock(),a.createElementBlock("div",Wl,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Gl,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const de=Re(Kl,[["render",Yl]]);function Ul(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const l=Te(),o=xt();Et(!1);const s=a.computed(()=>o&&l?lt(l,!1).value:null),i=e,u=a.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:r.span==="stretch"})),d=a.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(r.width)c.width=ne(r.width);else{const C=we(s.value.column,r.span);C>0&&(c.width=`${C}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const b=s.value.gutter/2;b>0&&(c["padding-left"]=`${b}px`,c["padding-right"]=`${b}px`)}else if(s.value.type==="flow"){if(r.width)c.width=ne(r.width);else{const C=we(s.value.column,r.span);C>0&&(c.width=`${C}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const b=s.value.gutter/2;if(b>0){const C=l?Gt(l,!1):null;if(C){let y=ae(r.offset)+ae(r.span);(y===-1||y>s.value.column)&&(y=s.value.column);const p=Math.ceil((C.index+1)/s.value.column),O=Math.ceil((C.index+y)/s.value.column);if(p===O){const v=(C.index+1)%s.value.column,T=(C.index+y)%s.value.column,B=v===1?0:b,I=T===0?0:b;c["padding-left"]=`${B}px`,c["padding-right"]=`${I}px`}else{const v=y%s.value.column,T=0,B=v===0?0:b;c["padding-left"]=`${T}px`,c["padding-right"]=`${B}px`}C.index+=y}else c["padding-left"]=`${b}px`,c["padding-right"]=`${b}px`}}else return r.width&&(c.width=ne(r.width)),c;else r.width&&(c.width=ne(r.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:Xl,create:Zl,scope:Ks}=J("slot-item"),Zn=Zl(Ul(Xl));function Jl(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(r,n){const l=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),s=Te(),i=xt();Et(!1);const u=a.computed(()=>{const c={};if(i&&s){const f=lt(s,!1);if(f.value.type!=="flex")return r.width&&(c.width=ne(r.width)),c;if(r.width)c.width=ne(r.width);else{const y=we(f.value.column,r.span);y>0&&(c.width=`${y}%`)}const b=we(f.value.column,r.offset);b>0&&(c["margin-left"]=`${b}%`);const C=f.value.gutter/2;C>0&&(c["padding-left"]=`${C}px`,c["padding-right"]=`${C}px`)}else r.width&&(c.width=ne(r.width));return c}),d=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const y=n.slots.default();if(r.divide)for(let p=0;p<y.length;p++){if(p>0){const O=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(O)}c.push(y[p])}else Reflect.apply([].push,c,y)}const f={class:d.value},b=a.h("div",f,c),C={class:o.value,style:u.value};return a.h("div",C,[b])}}}}const{componentName:Ql,create:eo,scope:Ws}=J("row-item"),Jn=eo(Jl(Ql)),Qn={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 to(e,t,r){return{props:{...ue,...me,...Qn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=te(n,"modelValue"),b=e,C=a.computed(()=>({[b]:!0,[`${b}__disabled`]:o.value,[`${b}__readonly`]:s.value})),y=w=>{f.value=w,i("update:modelValue",w),i("input",w)},p=w=>{i("change",w)};let O=te(n,"hintText"),v=a.ref(!1);const T=w=>{let E=w.target.value;c.value=!0,oe(O.value)||(v.value=!0),i("focus",E,w)},B=w=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let E=w.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,w)},I=()=>{i("clear","")},V=a.ref(!1);let A=null;const S=()=>{n.showTooltip&&V.value===!1&&(A=setTimeout(()=>{V.value=!0},150))},N=()=>{A&&(clearTimeout(A),V.value=!1,A=null)},L=a.computed(()=>V.value||v.value),q=a.computed(()=>V.value?f.value:O.value),H=a.computed(()=>tt(n.unit)>0),F=a.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const x={...l.attrs,ref:F,class:C.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:p,onInput:y,onFocus:T,onBlur:B,onMouseover:S,onMouseleave:N},E={};l.slots.prepend&&(E.prepend=l.slots.prepend),l.slots.append&&(E.append=l.slots.append),l.slots.prefix&&(E.prefix=l.slots.prefix),l.slots.suffix?E.suffix=l.slots.suffix:H.value&&(E.suffix=()=>[n.unit]);const M=[],$=a.h(g.ElInput,x,E);M.push($);const D={default:()=>M};l.slots.default&&(D.label=l.slots.default);const R={...ge(n,Qn),hintText:q.value,hintVisible:L.value,prop:`${n.prop}_item`};return a.h(r,R,D)}}}}const{componentName:no,create:ro,scope:ao}=J("input-item"),er=ro(to(no,ao,de));function Fe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ye(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function tr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let lo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function oo(){const e=a.getCurrentInstance();return new lo(e.proxy)}function nr(e,t,r){const n=Fe(e,t),l=Fe(e,r);if(n!==l)return!1;const o=Ye(e,t),s=Ye(e,r);return o===s}function rr(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=tr(e,s);if(Array.isArray(i)&&i.length>0){const u=rr(e,o,r,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(r==="text")u=Fe(e,s)===o;else if(r==="item")u=nr(e,s,o);else{let d=Ye(e,s);d==null&&(d=Fe(e,s)),u=d===o}if(u){l.push(s);break}}}}),l}function io(e){return{text:e,value:e}}const ar={modelValue:{type:[String,Object,Boolean,Number],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"},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 so(e,t,r){return{props:{...ue,...me,...ar},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),b=(m,k,j,P=!0)=>{const z=rr(n,m,k,j);if(z===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],P&&(i("update:modelValue",null),i("change",null));return}let K=!0;if(z.length!==f.value.length)K=!1;else for(let Y=0;Y<z.length;Y++){const W=z[Y],U=f.value[Y];if(!nr(n,W,U)){K=!1;break}}if(!K){f.value=z;let Y=[],W=[];z.forEach(Z=>{Y.push(Ye(n,Z)),n.valueType==="text"?W.push(Fe(n,Z)):n.valueType==="item"?W.push(Z):W.push(Ye(n,Z))});let U;n.multiple?(c.value=Y,U=a.toRaw(W)):(c.value=Y[0]??"",U=a.toRaw(W[0]??"")),P&&(i("update:modelValue",U),i("change",U))}},C=a.ref(null),y=a.ref(null),p=a.computed(()=>y.value??C.value??[]),O=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,m=>Q(m)),v=oo(),T=async(m,k)=>{if(m){const j=await v.load("select",m,k);if(j.length>0)if(typeof j[0]=="string"){let K=j.map(Y=>io(Y));C.value=K}else C.value=j;else C.value=null}};a.watch([()=>n.source,()=>n.params],([m,k])=>{T(m,k)},{immediate:!O.value});let B=!1;const I=()=>{B||(B=!0,T(n.source,n.params))};a.watch([()=>p.value,()=>n.modelValue],([m,k])=>{b(k,n.valueType,m,!1)});let V=null,A=a.ref(!1);typeof n.remoteMethod=="function"&&(V=async m=>{if(m==null){y.value=null;return}A.value=!0;try{const k=await n.remoteMethod(m);y.value=k}catch(k){y.value=null,console.error(k)}A.value=!1});let S=null;typeof n.filterMethod=="function"&&(S=async m=>{if(m==null){y.value=null;return}A.value=!0;try{const k=await n.filterMethod(m,C.value);y.value=k}catch(k){y.value=null,console.error(k)}A.value=!1});const N=a.ref(!1),L=e,q=a.computed(()=>({[L]:!0})),H=m=>{n.allowCreate?(i("update:modelValue",m),i("change",m),c.value=m):b(m,"value",p.value,!0)};let F=te(n,"hintText"),w=a.ref(!1);const x=m=>{let j=m.target.value;N.value=!0,oe(F.value)||(w.value=!0),i("focus",j,m)},E=m=>{setTimeout(()=>{w.value&&(w.value=!1),N.value=!1},0);let j=m.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),$.value||i("blur",j,m)},M=()=>{i("clear","")},$=a.ref(!1),D=m=>{$.value=m,i("visible-change",m),m||i("selected")},_=m=>{i("remove-tag",m)},R=(m,k)=>{const j=[];return m.forEach((P,z)=>{const K=tr(n,P);if(Array.isArray(K)&&K.length>0){const Y=R(K,k),W=Fe(n,P),Z={key:`${W}_${z}`,label:W};j.push(a.h(g.ElOptionGroup,Z,{default:()=>Y}))}else{const Y=Ye(n,P),W=Fe(n,P),U=Q(P.disabled),ee={key:`${Y}_${z}`,label:W,disabled:U,value:Y};if(typeof k=="function")j.push(a.h(g.ElOption,ee,{default:()=>k(P)}));else if(n.optionType==="item"){const be={class:{"fox-select-item__option-left":!0}},Be=a.h("span",be,[Y]),ie={class:{"fox-select-item__option-right":!0}},Ne=a.h("span",ie,[W]),tn=a.h("div",{class:{"fox-select-item__option":!0}},[Be,Ne]);j.push(a.h(g.ElOption,ee,{default:()=>tn}))}else n.optionType==="value"?j.push(a.h(g.ElOption,ee,{default:()=>[Y]})):j.push(a.h(g.ElOption,ee))}}),j},G=a.ref();return fe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()}}),()=>{const k={...l.attrs,ref:G,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:o.value||s.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:M,onChange:H,onFocus:x,onBlur:E,onVisibleChange:D,onRemoveTag:_};typeof V=="function"&&(k["remote-method"]=V,k.loading=A.value),typeof S=="function"&&(k["filter-method"]=S,k.loading=A.value);const j={};l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.empty&&(j.empty=l.slots.empty),l.slots.options?j.default=l.slots.options:j.default=()=>R(p.value,l.slots.option);const P=[],z=a.h(g.ElSelect,k,j);P.push(z);const K={default:()=>P};l.slots.default&&(K.label=l.slots.default);const W={...ge(n,ar),hintText:F.value,hintVisible:w.value,prop:`${n.prop??l.attrs.name}_item`};return O.value&&(W["appear-listen"]=!0,W.onAppear=I),a.h(r,W,K)}}}}const{componentName:uo,create:co,scope:fo}=J("select-item"),lr=co(so(uo,fo,de)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ho(e,t,r){return{props:{...ue,...me,...or,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:["1949-01-01","2999-01-01"]}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=te(n,"modelValue"),b=e,C=a.computed(()=>({[`${b}__input`]:!0})),y=F=>{f.value=F,i("update:modelValue",F),i("change",F)};let p=te(n,"hintText"),O=a.ref(!1);const v=F=>{let x=F.target.value;c.value=!0,oe(p.value)||(O.value=!0),i("focus",x,F)},T=F=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let x=F.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),i("blur",x,F)},B=()=>{i("clear","")},I=F=>{i("calendar-change",F)},V=(F,w,x)=>{i("panel-change",F,w,x)},A=F=>{i("visible-change",F)},S=$e(a.computed(()=>n.longTermValue),"longTermValue",Ee.Near),N=a.ref(Q(n.longTerm)),L=F=>{N.value=F,i("update:longTerm",F),F&&i("update:modelValue",S.value)},q=Q(n.isLongTerm);if(q){const F=()=>{N.value===!0?i("update:modelValue",S.value):Ie(S.value,f.value)&&(N.value=!0)};F(),a.watch([()=>n.longTerm],([w])=>{N.value!==w&&F()})}const H=a.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},handleOpen:()=>{H?.value.handleOpen()},handleClose:()=>{H?.value.handleClose()}}),()=>{const w={...l.attrs,ref:H,class:C.value,placeholder:d.placeholder.value,disabled:o.value||N.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:T,onCalendarChange:I,onPanelChange:V,onVisibleChange:A},x={};l.slots["range-separator"]&&(x["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(x.default=l.slots.cell);const E=[],M=a.h(g.ElDatePicker,w,x);E.push(M);const $={default:()=>E};if(l.slots.default){const G=l.slots.default();$.label=()=>G}if(q){const G={label:n.longTermText,modelValue:N.value,["onUpdate:modelValue"]:L},m=a.h(g.ElCheckbox,G),k=a.h("div",{class:{[`${b}__append`]:!0}},[m]);$.append=()=>k}const _={...ge(n,or),class:{[`${b}__wrapper`]:!0,["has-append"]:q},hintText:p.value,hintVisible:O.value,prop:`${n.prop}_item`};return a.h(r,_,$)}}}}const{componentName:go,create:mo,scope:po}=J("date-item"),ir=mo(ho(go,po,de)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yo(e,t,r){return{props:{...ue,...me,...sr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=te(n,"modelValue"),b=e,C=a.computed(()=>({[b]:!0})),y=A=>{f.value=A,i("update:modelValue",A),i("change",A)};let p=te(n,"hintText"),O=a.ref(!1);const v=A=>{let N=A.target.value;c.value=!0,oe(p.value)||(O.value=!0),i("focus",N,A)},T=A=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let N=A.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,A)},B=()=>{i("clear","")},I=A=>{i("visible-change",A)},V=a.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const S={...l.attrs,ref:V,class:C.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:T,onVisibleChange:I},N={},L=[],q=a.h(g.ElTimePicker,S,N);L.push(q);const H={default:()=>L};if(l.slots.default){const E=l.slots.default();H.label=()=>E}const w={...ge(n,sr),hintText:p.value,hintVisible:O.value,prop:`${n.prop}_item`};return a.h(r,w,H)}}}}const{componentName:bo,create:wo,scope:So}=J("time-item"),ur=wo(yo(bo,So,de)),cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $o(e,t,r){return{props:{...ue,...me,...cr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=te(n,"modelValue"),b=e,C=a.computed(()=>({[b]:!0})),y=V=>{f.value=V,i("update:modelValue",V),i("change",V)};let p=te(n,"hintText"),O=a.ref(!1);const v=V=>{let S=V.target.value;c.value=!0,oe(p.value)||(O.value=!0),i("focus",S,V)},T=V=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let S=V.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),i("blur",S,V)},B=()=>{i("clear","")},I=a.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const A={...l.attrs,ref:I,class:C.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:T},S={},N=[],L=a.h(g.ElTimeSelect,A,S);N.push(L);const q={default:()=>N};if(l.slots.default){const x=l.slots.default();q.label=()=>x}const F={...ge(n,cr),hintText:p.value,hintVisible:O.value,prop:`${n.prop}_item`};return a.h(r,F,q)}}}}const{componentName:vo,create:xo,scope:Eo}=J("time-select-item"),fr=xo($o(vo,Eo,de));function dr(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let l=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function hr(e,t,r=20){if(typeof t=="string"&&(t=ae(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=sn(`${e}`,`${t}`);return dr(n)}else{let n=qt(`${e}`,un(`${t}`),20);return dr(n)}}function Co(e,t=-1,r=!1,n=3,l=","){return ct(e,t,r,n,l)}function gr(e,t,r,n,l=!0){if(e=="")return"";if(e=cn(e),t=ae(t),t==1)return e;if(n)e=hr(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(ae(r)+2,"0"):e=qt(e,1,ae(r)));else{let o=-1*t;e=hr(e,o)}return e}function mr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=Q(t.minInclude),l=Bt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=Q(t.maxInclude),l=Bt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const pr={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 To(e,t,r){return{props:{...ue,...me,...pr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref(!1),d=te(n,"modelValue"),c=a.ref("");a.watch([()=>d.value,()=>n.rates,()=>n.precision],([w,x,E])=>{if(oe(w)){c.value="";return}const M=gr(w,x,E,!1);c.value!==M&&(c.value=M)},{immediate:!0});const f=a.computed(()=>{let w="";return u.value&&(w=c.value),w}),{t:b}=ve.useFoxI18n(t),C=a.computed(()=>{let w=n.placeholder??"";return!u.value&&!oe(c.value)?w=Co(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):w=b(["placeholder",w]),w}),y=e,p=a.computed(()=>({[y]:!0,[`${y}__disabled`]:o.value,[`${y}__placeholder`]:c.value.length>0})),O=$e(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>u.value?{textAlign:"left"}:{textAlign:O.value??"right"});const v=a.ref(""),T=a.computed(()=>{let w=v.value;return oe(w)&&(w=n.errorTip??""),w}),B=a.ref(""),I=a.ref(!1),V=(w,x)=>{if(w=`${w}`,oe(w)){c.value="",d.value="",x.forEach(E=>{i(E,"")}),Q(n.showTip)&&I.value&&(I.value=!1);return}if(w.length>=2){let E=w;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){a.triggerRef(c);return}}if(w!="-"){if(!bn(w)){a.triggerRef(c);return}if(n.integerLength!=-1&&wn(w)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Sn(w)>Number(n.decimalLength)){a.triggerRef(c);return}let E=mr(w,n);if(E.maxValid===!1){v.value=E.message,a.triggerRef(c);return}}else if(n.min!=null&&ae(n.min)>=0){a.triggerRef(c);return}B.value=w,Q(n.showTip)&&(I.value=w.length>0),c.value=w,d.value=gr(w,n.rates,n.precision,!0),x.forEach(E=>{i(E,d.value)})},A=w=>{V(w,["update:modelValue","input"])},S=w=>{V(w,["update:modelValue","change"])},N=w=>{if(u.value=!0,Q(n.showTip)){let x=c.value;oe(x)&&(x=n.hintText),oe(x)||(B.value=x,I.value=!0)}v.value="",i("focus",d.value,w)},L=w=>{if(setTimeout(()=>{u.value=!1,Q(n.showTip)&&I.value===!0&&(I.value=!1)},0),!oe(c.value)){let x=mr(c.value,n);if(x.minValid===!1||x.maxValid){v.value=x.message;return}}i("update:modelValue",d.value,w),i("blur",d.value,w)},q=()=>{i("clear","")},H=a.computed(()=>tt(n.unit)>0),F=a.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const x={...l.attrs,ref:F,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:C.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onInput:A,onChange:S,onFocus:N,onBlur:L},E={};l.slots.prepend&&(E.prepend=l.slots.prepend),l.slots.append&&(E.append=l.slots.append),l.slots.prefix&&(E.prefix=l.slots.prefix),l.slots.suffix?E.suffix=l.slots.suffix:H.value&&(E.suffix=()=>[n.unit]);const M=[],$=a.h(g.ElInput,x,E);M.push($);const D={default:()=>M};if(l.slots.default){const m=l.slots.default();D.label=()=>m}const R={...ge(n,pr),errorTip:T.value,hintText:B.value,hintVisible:I.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,R,D)}}}}const{componentName:Oo,create:Vo,scope:No}=J("money-item"),yr=Vo(To(Oo,No,de)),br={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 ko(e,t,r){return{props:{...ue,...me,...br},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=te(n,"modelValue"),b=e,C=a.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),y=a.computed(()=>({[`${b}__unit`]:!0})),p=N=>{f.value=N,i("update:modelValue",N),i("input",N)},O=N=>{i("change",N)};let v=te(n,"hintText"),T=a.ref(!1);const B=N=>{let q=N.target.value;c.value=!0,oe(v.value)||(T.value=!0),i("focus",q,N)},I=N=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let q=N.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),i("blur",q,N)},V=()=>{i("clear","")},A=a.computed(()=>tt(n.unit)>0),S=a.ref();return fe({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()}}),()=>{const L={...l.attrs,ref:S,class:C.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:O,onInput:p,onFocus:B,onBlur:I},q={},H=[],F=a.h(g.ElInputNumber,L,q);H.push(F);const w={default:()=>H};if(l.slots.default){const $=l.slots.default();w.label=()=>$}const E={...ge(n,br),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};if(l.slots.append)w.append=l.slots.append;else if(A.value){const $={class:y.value},D=a.h("div",$,[n.unit]);w.append=()=>D}return a.h(r,E,w)}}}}const{componentName:Io,create:Ao,scope:Ro}=J("input-number-item"),wr=Ao(ko(Io,Ro,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Pe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function jo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let qo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Bo(){const e=a.getCurrentInstance();return new qo(e.proxy)}function Jt(e,t,r){const n=Ue(e,t),l=Ue(e,r);if(n!==l)return!1;const o=Pe(e,t),s=Pe(e,r);return o===s}function Sr(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Sr(e,i,r,n);l.push(u)}else{let u=!1;for(let d of o){if(r==="text")u=Ue(e,d)===i;else if(r==="item")u=Jt(e,d,i);else{let c=Pe(e,d);c==null&&(c=Ue(e,d)),u=c===i}if(u){l.push(d),o=jo(e,d);break}}if(!u)break}}return l}function Mo(e){return{text:e,value:e}}const $r={modelValue:{type:[Array,String],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}};function Do(e,t,r){return{props:{...ue,...me,...$r},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),b=(R,G,m,k=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===R)return;c.value=R;const z=a.toRaw(R);k&&(i("update:modelValue",z),i("change",z))}const j=Sr(n,R,G,m);if(j===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,k&&(i("update:modelValue",null),i("change",null));return}let P=!0;if(j.length!==f.value.length)P=!1;else for(let z=0;z<j.length;z++){const K=j[z],Y=f.value[z];if(Array.isArray(K)){if(!Array.isArray(Y)||K.length!==Y.length)P=!1;else for(let W=0;W<K.length;W++)if(!Jt(n,K[W],Y[W])){P=!1;break}}else Jt(n,K,Y)||(P=!1);if(!P)break}if(!P){f.value=j;let z=[],K=[];j.forEach(W=>{if(Array.isArray(W)){let U=[],Z=[];for(let ee of W)U.push(Pe(n,ee)),n.valueType==="text"?Z.push(Ue(n,ee)):n.valueType==="item"?Z.push(ee):Z.push(Pe(n,ee));z.push(U),K.push(Z)}else z.push(Pe(n,W)),n.valueType==="text"?K.push(Ue(n,W)):n.valueType==="item"?K.push(W):K.push(Pe(n,W))}),c.value=z;const Y=a.toRaw(K);k&&(i("update:modelValue",Y),i("change",Y))}},C=a.ref([]),y=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,R=>Q(R)),p=Bo(),O=async(R,G)=>{if(R){const m=await p.load("cascader",R,G);if(m.length>0)if(typeof m[0]=="string"){let P=m.map(z=>Mo(z));C.value=P}else C.value=m}};a.watch([()=>n.source,()=>n.params],async([R,G])=>{O(R,G)},{immediate:!y.value});let v=!1;const T=()=>{v||(v=!0,O(n.source,n.params))};a.watch([()=>C.value,()=>n.modelValue],([R,G])=>{b(G,n.valueType,R,!1)});let B=null,I=a.ref(!1);typeof n.remoteMethod=="function"&&(B=async R=>{if(R!=null){I.value=!0;try{const G=await n.remoteMethod(R);C.value=G}catch(G){console.error(G)}I.value=!1}});const V=a.ref(!1),A=e,S=a.computed(()=>({[A]:!0})),N=a.computed(()=>{let R={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(R.multiple=!0),n.props&&Object.assign(R,n.props),R}),L=R=>{n.allowCreate?(i("update:modelValue",R),i("change",R),c.value=R):b(R,"value",C.value,!0)};let q=te(n,"hintText"),H=a.ref(!1);const F=R=>{let m=R.target.value;V.value=!0,oe(q.value)||(H.value=!0),i("focus",m,R)},w=R=>{setTimeout(()=>{H.value&&(H.value=!1),V.value=!1},0);let m=R.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),E.value||i("blur",m,R)},x=()=>{i("clear","")},E=a.ref(!1),M=R=>{E.value=R,i("visible-change",R),R||i("selected")},$=R=>{i("remove-tag",R)},D=R=>{i("expand-change",R)},_=a.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},getCheckedNodes:()=>_?.value.getCheckedNodes()}),()=>{const G={...l.attrs,ref:_,class:S.value,props:N.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:o.value||s.value,options:C.value,modelValue:c.value,onClear:x,onChange:L,onFocus:F,onBlur:w,onVisibleChange:M,onRemoveTag:$,expandChange:D};typeof B=="function"&&(G["remote-method"]=B,G.loading=I.value);const m={};l.slots.option&&(m.default=l.slots.option),l.slots.empty&&(m.empty=l.slots.empty);const k=[],j=a.h(g.ElCascader,G,m);k.push(j);const P={default:()=>k};l.slots.default&&(P.label=l.slots.default);const K={...ge(n,$r),hintText:q.value,hintVisible:H.value,prop:`${n.prop??l.attrs.name}_item`};return y.value&&(K["appear-listen"]=!0,K.onAppear=T),a.h(r,K,P)}}}}const{componentName:Lo,create:_o,scope:Fo}=J("cascader-item"),vr=_o(Do(Lo,Fo,de)),xr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Po(e,t,r){return{props:{...ue,...me,...xr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=te(n,"modelValue"),b=e,C=a.computed(()=>({[b]:!0})),y=A=>{f.value=A,i("update:modelValue",A),i("input",A)},p=A=>{i("change",A)};let O=te(n,"hintText"),v=a.ref(!1);const T=A=>{let N=A.target.value;c.value=!0,oe(O.value)||(v.value=!0),i("focus",N,A)},B=A=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let N=A.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,A)},I=()=>{i("clear","")},V=a.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const S={...l.attrs,ref:V,class:C.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,onClear:I,onChange:p,onInput:y,onFocus:T,onBlur:B},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix&&(N.suffix=l.slots.suffix),l.slots.option&&(N.default=l.slots.option);const L=[],q=a.h(g.ElAutocomplete,S,N);L.push(q);const H={default:()=>L};if(l.slots.default){const E=l.slots.default();H.label=()=>E}const w={...ge(n,xr),hintText:O.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,w,H)}}}}const{componentName:Ho,create:zo,scope:Ko}=J("autocomplete-item"),Er=zo(Po(Ho,Ko,de));function Wo(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let d=t[u],c=o[u];const f=d.find(b=>b[n]===c);if(!f)break;s.push(f[r])}else{let u=t;for(let d=0;u&&d<o.length;d++){let c=o[d],f=u.find(b=>b[n]===c);if(!f)break;s.push(f[r]),u=f[l]}}return s}let Go=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Yo(){const e=a.getCurrentInstance();return new Go(e.proxy)}const Cr={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:"/"},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 Uo(e,t){return{props:{...Cr},setup(r,{attrs:n}){const l=Yo(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([u,d])=>{o.value=await l.load(r.sourceType,u,d)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let u=Wo(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return u.length==0?r.emptyText??"":u.length===1?u[0]:u.join(r.separator)}),i=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const u={...n};return r.resolveTag?r.emptyText!==void 0&&r.emptyText===s.value?a.h(r.emptyTag??"span",{...n,class:r.emptyClass},s.value):a.h(i,u,{default:()=>s.value}):a.h(i,u,s.value)}}}}const{componentName:Gs,create:Xo,scope:Ys}=J("mapping"),Qt=Xo(Uo());function Zo(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Jo(e,t){return{props:{...Cr},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=Zo(o.row,o.column.property);return a.h(Qt,{...r,modelValue:s})}};return a.h(g.ElTableColumn,{...n},l)}}}}const{componentName:Us,create:Qo,scope:Xs}=J("table-mapping-column"),Tr=Qo(Jo()),ei=Symbol.for("TableStateKey");function Or(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function ti(e,t){return{props:{},setup(r,{attrs:n}){const l=a.inject(ei,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Or(i.row,i.column.property),d=o?Or(o,i.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},b=a.h("span",f,[a.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":c}};return a.h("label",C,[b])}};return a.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Zs,create:ni,scope:Js}=J("table-radio-column"),Vr=ni(ti());let ri=class{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,i){if(Array.isArray(r)){let d=(n-1)*l,c=d+l;c>r.length&&(c=r.length);const f=r.slice(d,c);return{totalSize:r.length,page:f}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,i]);const u=_e(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ke(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await Reflect.apply(u,null,[r,n,l,o,s,i]))}};function ai(){const e=a.getCurrentInstance();return new ri(e.proxy)}const li=Symbol.for("TableStateKey");function oi(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function en(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=oi(n,l);if(o!==s)return!1}return!0})}const Nr={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}},kr={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"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function ii(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Nr,...kr},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=ve.useFoxI18n(t),{emitEvent:s}=ce({componentName:e,validateHandler:{getValue(...$){return v.value}}},n.prop??l.attrs.name),i=e,u=a.computed(()=>({[i]:!0})),d=a.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),c=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,$=>{c.value=$});const f=$=>{c.value=$,s("page-index-change",$)},b=a.ref(n.pageSize);a.watch(()=>n.pageSize,$=>{b.value=$});const C=$=>{b.value=$,s("page-size-change",$)},y=a.shallowRef({}),p=a.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),O=a.ref(0),v=a.ref(),T=ai();let B=!0;const I=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:Q(n.autoLoad),V=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,$=>Q($)),A=async($,D,_,R)=>{try{const G=await T.load("table",$,D,_,R,B,o.value);O.value=G.totalSize,v.value=G.page}catch(G){console.error("[FoxUI] Load Table Data Fail",G),O.value=0,v.value=[]}B=!1,setTimeout(()=>{s("loaded-data")},250)};a.watch([c,b],([$,D],[_,R])=>{D!==R&&(c.value=1,$=1),A(n.data,$,D,p.value)}),a.watch([()=>n.data,p],([$,D],[_,R])=>{I()&&($!==_&&(B=!0),!(!Array.isArray($)&&Ie($,_)&&Ie(D,R))&&A($,c.value,b.value,D))},{deep:!0});const S=($={},D=!1)=>new Promise(_=>{y.value=a.toRaw($??{}),a.triggerRef(y),D||(c.value=n.pageIndex??1),a.nextTick(async()=>{await A(n.data,c.value,b.value,p.value),_()})}),N=()=>{O.value=0,v.value=[]};let L=!1;const q=()=>{L||(L=!0,S())};I()&&!V.value&&S();const H=a.ref(null);a.provide(li,{currentRow:H});const F=($,D)=>{H.value=$,s("current-change",$,D)},w=($,D,_)=>{s("row-click",$,D,_),Q(n.rowClickSelectable)===!0&&M?.value.toggleRowSelection($)},x=[],E=($,D)=>{if(s("expand-change",$,D),Q(n.uniqueExpansion))if(Array.isArray(D)&&D.length==0){const _=x.length;x.splice(0,_)}else{x.forEach(R=>{R!==$&&M?.value.toggleRowExpansion(R,!1)});const _=x.length;x.splice(0,_,$)}},M=a.ref();return fe({clearSelection:()=>M?.value.clearSelection(),getSelectionRows:()=>M?.value.getSelectionRows(),toggleRowSelection:($,D)=>{M?.value.toggleRowSelection($,D)},toggleRowSelectionByProp:($,D)=>{if(!v.value)return;const _=en(v.value,$);_.length!==0&&_.forEach(R=>{M?.value.toggleRowSelection(R,D)})},toggleAllSelection:()=>{M?.value.toggleAllSelection()},toggleRowExpansion:($,D)=>{M?.value.toggleRowExpansion($,D)},toggleRowExpansionByProp:($,D)=>{if(!v.value)return;const _=en(v.value,$);_.length!==0&&_.forEach(R=>{M?.value.toggleRowExpansion(R,D)})},setCurrentRow:$=>{M?.value.setCurrentRow($)},setCurrentRowByProp:$=>{if(!v.value)return;const D=en(v.value,$);D.length!==0&&M?.value.setCurrentRow(D[0])},getCurrentRow:()=>H.value,clearSort:()=>{M?.value.clearSort()},clearFilter:$=>{M?.value.clearFilter($)},doLayout:()=>{M?.value.doLayout()},sort:($,D)=>{M?.value.sort($,D)},scrollTo:($,D)=>{M?.value.scrollTo($,D)},setScrollTop:$=>{M?.value.setScrollTop($)},setScrollLeft:$=>{M?.value.setScrollLeft($)},loadData:S,clearData:N,getData(){return v.value},getTotalSize(){return O.value},getPageIndex(){return c.value},getPageSize(){return b.value}}),()=>{const D={...l.attrs,onCurrentChange:F,onRowClick:w,onExpandChange:E,data:v.value,ref:M,class:u.value},_={};l.slots.default&&(_.default=l.slots.default),l.slots.append&&(_.append=l.slots.append),l.slots.empty&&(_.empty=l.slots.empty);const R=[],G=a.h(g.ElTable,D,_);if(R.push(G),typeof l.slots.pagination=="function"){const z=l.slots.pagination();R.push(z)}else if(n.paginationVisible){const z={class:d.value,total:O.value,pageSize:b.value,["onUpdate:pageSize"]:C,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:f,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},K=a.h(g.ElPagination,z);R.push(K)}const m={default:()=>R},j={...ge(n,Nr,kr),prop:`${n.prop}_item`};return j.contentClass=`${i}__wrap`,j.errorMarkClass="is-table-error",V.value&&I()&&(j["appear-listen"]=!0,j.onAppear=q),a.h(r,j,m)}}}}const{componentName:si,create:ui,scope:ci}=J("table-item"),Ir=ui(ii(si,ci,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let fi=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function di(){const e=a.getCurrentInstance();return new fi(e.proxy)}function Ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Xe(e,t),l=Xe(e,r);if(n!==l)return!1;const o=it(e,t),s=it(e,r);return o===s}function hi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(r==="text")s=Xe(e,o)===t;else if(r==="item")s=Ar(e,o,t);else{let i=it(e,o);i==null&&(i=Xe(e,o)),s=i===t}if(s){l=o;break}}return l}function gi(e){return{text:e,value:e}}function mi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Rr={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function pi(e,t,r){return{inheritAttrs:!0,props:{...ue,...me,...Rr},emits:["change","update:modelValue"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref(null),d=a.ref(null),c=(S,N,L,q=!0)=>{const H=hi(n,S,N,L);if(H===null){if(d.value===null)return;d.value=null,u.value=null,q&&(i("update:modelValue",null),i("change",null));return}if(!Ar(n,H,d.value)){u.value=S;const w=a.toRaw(H);d.value=w;let x=null;n.valueType==="text"?x=Xe(n,w):n.valueType==="item"?x=w:x=it(n,w),q&&(i("update:modelValue",x),i("change",x))}},f=a.ref([]),b=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,S=>Q(S)),C=di(),y=async(S,N)=>{if(S){const L=await C.load("radio",S,N);if(L.length>0)if(typeof L[0]=="string"){let F=L.map(w=>gi(w));f.value=F}else f.value=L}};a.watch([()=>n.source,()=>n.params],async([S,N])=>{y(S,N)},{immediate:!b.value});let p=!1;const O=()=>{p||(p=!0,y(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([S,N])=>{c(N,n.valueType,S,!1)});const v=e,T=a.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),B=S=>{c(S,"value",f.value,!0)};let I=te(n,"hintText"),V=te(n,"hintVisible");const A=(S,N)=>{const L=[];return S.forEach((q,H)=>{const F=it(n,q),w=Xe(n,q),x=mi(n,q,H)??{};let E=x.disabled;o.value===!0&&(E=o.value);const M=`${F}_${H}`,$={...x,key:M,label:F,disabled:E,size:n.size,border:Q(n.border)};n.itemType==="button"?L.push(a.h(g.ElRadioButton,$,{default:()=>[w]})):typeof N=="function"?L.push(a.h(g.ElRadio,$,{default:()=>N(q)})):L.push(a.h(g.ElRadio,$,{default:()=>[w]}))}),L};return()=>{const N={...l.attrs,class:T.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:B},L=[],q={};l.slots.options?q.default=l.slots.options:q.default=()=>A(f.value,l.slots.text);const H=a.h(g.ElRadioGroup,N,q);L.push(H);const F={default:()=>L};l.slots.default&&(F.label=l.slots.default);const x={...ge(n,Rr),hintText:I.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(x["appear-listen"]=!0,x.onAppear=O),a.h(r,x,F)}}}}const{componentName:yi,create:bi,scope:wi}=J("radio-item"),jr=bi(pi(yi,wi,de));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Si{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function $i(){const e=a.getCurrentInstance();return new Si(e.proxy)}function qr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Ze(e,t),l=Ze(e,r);if(n!==l)return!1;const o=Je(e,t),s=Je(e,r);return o===s}function vi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(r==="text")i=Ze(e,s)===o;else if(r==="item")i=qr(e,s,o);else{let u=Je(e,s);u==null&&(u=Ze(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function xi(e){return{text:e,value:e}}function Ei(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Br={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Ci(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Br},emits:["change","update:modelValue"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref([]),d=a.ref([]),c=(S,N,L,q=!0)=>{const H=vi(n,S,N,L);if(H===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],q&&(i("update:modelValue",[]),i("change",[]));return}let F=!0;if(H.length!==d.value.length)F=!1;else for(let w=0;w<H.length;w++){const x=H[w],E=d.value[w];if(!qr(n,x,E)){F=!1;break}}if(!F){d.value=H;let w=[],x=[];H.forEach(M=>{w.push(Je(n,M)),n.valueType==="text"?x.push(Ze(n,M)):n.valueType==="item"?x.push(M):x.push(Je(n,M))}),u.value=w;const E=a.toRaw(x);q&&(i("update:modelValue",E),i("change",E))}},f=a.ref([]),b=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Ee.Near,S=>Q(S)),C=$i(),y=async(S,N)=>{if(S){const L=await C.load("checkbox",S,N);if(L.length>0)if(typeof L[0]=="string"){let F=L.map(w=>xi(w));f.value=F}else f.value=L}};a.watch([()=>n.source,()=>n.params],async([S,N])=>{y(S,N)},{immediate:!b.value});let p=!1;const O=()=>{p||(p=!0,y(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([S,N])=>{c(N,n.valueType,S,!1)});const v=e,T=a.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),B=S=>{c(S,"value",f.value,!0)};let I=te(n,"hintText"),V=te(n,"hintVisible");const A=(S,N)=>{const L=[];return S.forEach((q,H)=>{const F=Je(n,q),w=Ze(n,q),x=Ei(n,q,H)??{};let E=x.disabled;o.value===!0&&(E=o.value);const M=`${F}_${H}`,$={...x,key:M,class:n.itemClass,label:F,disabled:E,size:n.size,border:Q(n.border)};n.itemType==="button"?L.push(a.h(g.ElCheckboxButton,$,{default:()=>[w]})):typeof N=="function"?L.push(a.h(g.ElCheckbox,$,{default:()=>N(q)})):L.push(a.h(g.ElCheckbox,$,{default:()=>[w]}))}),L};return()=>{const N={...l.attrs,class:T.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:ae(n.max),min:ae(n.min),onChange:B},L=[],q={};l.slots.options?q.default=l.slots.options:q.default=()=>A(f.value,l.slots.text);const H=a.h(g.ElCheckboxGroup,N,q);L.push(H);const F={default:()=>L};l.slots.default&&(F.label=l.slots.default);const x={...ge(n,Br),hintText:I.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(x["appear-listen"]=!0,x.onAppear=O),a.h(r,x,F)}}}}const{componentName:Ti,create:Oi,scope:Vi}=J("checkbox-item"),Mr=Oi(Ci(Ti,Vi,de)),Dr={modelValue:{type:[Number,String],required:!1}};function Ni(e,t,r){return{props:{...ue,...me,...Dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=te(n,"modelValue",p=>ae(p)),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let b=te(n,"hintText"),C=a.ref(!1);const y=a.ref();return fe({}),()=>{const O={...l.attrs,ref:y,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:f},v={},T=[],B=a.h(g.ElRate,O,v);T.push(B);const I={default:()=>T};if(l.slots.default){const N=l.slots.default();I.label=()=>N}const A={...ge(n,Dr),hintText:b.value,hintVisible:C.value,prop:`${n.prop}_item`};return a.h(r,A,I)}}}}const{componentName:ki,create:Ii,scope:Ai}=J("rate-item"),Lr=Ii(Ni(ki,Ai,de)),_r={modelValue:{type:[Boolean,String,Number],required:!1}};function Ri(e,t,r){return{props:{...ue,...me,..._r},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=te(n,"modelValue"),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let b=te(n,"hintText"),C=te(n,"hintVisible");const y=a.ref();return fe({}),()=>{const O={...l.attrs,ref:y,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:f},v={},T=[],B=a.h(g.ElSwitch,O,v);T.push(B);const I={default:()=>T};if(l.slots.default){const N=l.slots.default();I.label=()=>N}const A={...ge(n,_r),hintText:b.value,hintVisible:C.value,prop:`${n.prop}_item`};return a.h(r,A,I)}}}}const{componentName:ji,create:qi,scope:Bi}=J("switch-item"),Fr=qi(Ri(ji,Bi,de)),Pr={modelValue:{type:[String,Number,Boolean],required:!1}};function Mi(e,t,r){return{props:{...ue,...me,...Pr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),i=a.ref(!1),{emitEvent:u}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),d=te(n,"modelValue"),c=e,f=a.computed(()=>({[c]:!0})),b=V=>{u("update:modelValue",V),u("change",V)};let C=te(n,"hintText"),y=a.ref(!1);const p=V=>{let S=V.target.value;i.value=!0,oe(C.value)||(y.value=!0),u("focus",S,V)},O=V=>{setTimeout(()=>{y.value&&(y.value=!1),i.value=!1},0);let S=V.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),T.value||u("blur",S,V)},v=()=>{u("clear","")},T=a.ref(!1),B=V=>{T.value=V,u("visible-change",V),V||u("selected")},I=a.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const A={...l.attrs,ref:I,class:f.value,disabled:o.value||s.value,modelValue:d.value,["onUpdate:modelValue"]:b,onClear:v,onFocus:p,onBlur:O,onVisibleChange:B},S={};l.slots.option&&(S.default=l.slots.option);const N=[],L=a.h(g.ElTreeSelect,A,S);N.push(L);const q={default:()=>N};if(l.slots.default){const x=l.slots.default();q.label=()=>x}const F={...ge(n,Pr),hintText:C.value,hintVisible:y.value,prop:`${n.prop}_item`};return a.h(r,F,q)}}}}const{componentName:Di,create:Li,scope:_i}=J("tree-select-item"),Hr=Li(Mi(Di,_i,de)),Fi=Symbol.for("InnerPageScopeKey"),Pi=Symbol.for("PageWrapperKey");function Hi(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(r,n){a.provide(Fi,!0);const l={};a.provide(Pi,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=a.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return a.h(g.ElDialog,d,c)}}}}const{componentName:Qs,create:zi,scope:eu}=J("dialog-item"),zr=zi(Hi()),{componentName:tu,create:Ki}=J("ext-icon"),Kr=Ki({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=s=>{t("click",s)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const s=l.value;return a.h(s?"img":e.tag,{class:s?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:ne(e.size),width:ne(e.size),height:ne(e.size)},onClick:n,src:s?e.name:""},r.default?.())}}});function Wi(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const l=e,o=a.computed(()=>({[l]:!0})),s=a.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),i=a.computed(()=>r.color?{background:r.color}:null),u=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),d=a.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:s.value,style:i.value};c=a.h("div",p)}const f={class:u.value,style:d.value},b=n.default?n.default():[],C=a.h("div",f,b),y={class:o.value};return a.h("div",y,[c,C])}}}}const{componentName:Gi,create:Yi,scope:nu}=J("indicator"),Wr=Yi(Wi(Gi));function Ui(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const Xi={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:" "}};function Zi(e,t){return{props:{...Xi},setup(r,n){const l=a.ref(!0),o=a.ref(null),s=a.computed(()=>{const d={[`${e}`]:!0,["is-truncated"]:r.truncated};return r.type&&(d[`${e}__${r.type}`]=!0),r.size&&(d[`${e}__${r.size}`]=!0),d}),i=d=>{if(d&&Q(r.showOverflowTooltip)){const c=d.clientWidth,f=Ui(d);l.value=f<=c}};let u=null;return a.onMounted(()=>{if(!Q(r.showOverflowTooltip))return;const d=o.value;i(d),d&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(d)}),u.observe(d))}),a.onUnmounted(()=>{u?.disconnect()}),()=>{const d={},c={class:s.value,ref:o,...n.attrs};if(Q(r.numberFormat)&&typeof n.slots.default=="function"){const y=n.slots.default();if(Array.isArray(y)&&y.length===1&&y[0].type.toString()==="Symbol(Text)"){const O=ae(r.digits),v=ae(r.decimalLength),T=Q(r.autoPadding);let B=`${y[0].children}`,I=B.split("").reverse().join("");I=ct(I,v,T,O,r.separator),B=I.split("").reverse().join("");const V=a.h(r.tag,c,{default:()=>[B]});d.default=()=>V}}else{const y=a.h(r.tag,c,{default:n.slots.default});d.default=()=>y}const b={disabled:l.value};return d.content=n.slots.default,a.h(g.ElTooltip,b,d)}}}}const{componentName:Ji,create:Qi,scope:ru}=J("text"),Gr=Qi(Zi(Ji)),es={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:st.ArrowUp}};function ts(e,t,r){return{props:{...es},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=a.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),s=te(n,"modelValue"),i=a.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=a.computed(()=>({[`${e}__text`]:!0})),d=a.computed(()=>({[`${e}__icon`]:!0,["is-expand"]:!s.value,["is-collapse"]:s.value})),c=()=>{l("update:modelValue",!s.value)};return()=>{const f=[];if(i.value){const p={class:u.value},O=a.h("span",p,[i.value]);f.push(O)}const b={class:d.value},C=r(n.icon,b);return C&&f.push(C),a.h("div",{class:o.value,onClick:c},f)}}}}const{componentName:ns,create:rs,scope:as}=J("more-button"),Yr=rs(ts(ns,as,(e,t)=>(e=e??st.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]})))),{componentName:ls,create:os,scope:lu}=J("tour"),is=os({components:{Close:st.Close,ElPopover:g.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 r=ls,n=a.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=a.ref({}),o=a.computed(()=>`${r}`),s=a.computed(()=>{const{offset:y,maskWidth:p,maskHeight:O}=e,{width:v,height:T,left:B,top:I}=l.value,V=e.steps[n.active].offset??y,A=[B+v/2,I+T/2],S=Number(p||v),N=Number(O||T);return{width:`${S+ +V.left+V.right}px`,height:`${N+V.top+V.bottom}px`,top:`${A[1]-N/2-+V.top}px`,left:`${A[0]-S/2-+V.left}px`}}),i=y=>{y=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,a.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=y=>y.popoverWidth??e.width,d=y=>y.location??e.location,c=()=>{const y=document.querySelector(`${e.steps[n.active].target}`),p=ot(y);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&f()},C=(y,p=0)=>{y&&c(),e.steps,n.active=p,n.showTour=y,n.showPopup=y};return a.onMounted(()=>{C(e.modelValue,e.current)}),a.watch(()=>e.modelValue,y=>{C(y)}),{...a.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:b}}}),ss={key:0,class:"fox-tour__content"},us={key:0,class:"fox-tour__content-top"},cs={class:"fox-tour__content-inner"},fs={class:"fox-tour__content-bottom"},ds={class:"fox-tour__content-bottom-init"},hs={class:"fox-tour__content-bottom-operate"},gs={key:1,class:"fox-tour__content fox-tour__content-tile"},ms={class:"fox-tour__content-inner"};function ps(e,t,r,n,l,o){const s=a.resolveComponent("Close"),i=a.resolveComponent("fox-button"),u=a.resolveComponent("ElPopover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes)},[a.withDirectives(a.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[a.vShow,e.showTour]]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.steps,(d,c)=>(a.openBlock(),a.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(a.openBlock(),a.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:a.withCtx(()=>[e.showTour?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:a.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(a.openBlock(),a.createElementBlock("div",ss,[e.showTitleBar?(a.openBlock(),a.createElementBlock("div",us,[a.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[a.createVNode(s,{class:"fox-tour__content-top-close"})])])):a.createCommentVNode("",!0),a.createElementVNode("div",cs,a.toDisplayString(d.content),1),a.createElementVNode("div",fs,[a.createElementVNode("div",ds,a.toDisplayString(e.active+1)+"/"+a.toDisplayString(e.steps.length),1),a.createElementVNode("div",hs,[a.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(a.openBlock(),a.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.prevStepText),1)]),_:1})):a.createCommentVNode("",!0)]),e.steps.length-1==e.active?(a.openBlock(),a.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(a.openBlock(),a.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>e.changeStep("next"))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.nextStepText),1)]),_:1})):a.createCommentVNode("",!0)])])])])):a.createCommentVNode("",!0),e.type=="tile"?(a.openBlock(),a.createElementBlock("div",gs,[a.createElementVNode("div",ms,a.toDisplayString(d.content),1)])):a.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):a.createCommentVNode("",!0)]))),128))],2)}const Ur=Re(is,[["render",ps]]);function ys(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:n}){return kn(r.name,r.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ou,create:bs,scope:iu}=J("domain-provider"),Xr=bs(ys());var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",d="day",c="week",f="month",b="quarter",C="year",y="date",p="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},B=function(w,x,E){var M=String(w);return!M||M.length>=x?w:""+Array(x+1-M.length).join(E)+w},I={s:B,z:function(w){var x=-w.utcOffset(),E=Math.abs(x),M=Math.floor(E/60),$=E%60;return(x<=0?"+":"-")+B(M,2,"0")+":"+B($,2,"0")},m:function w(x,E){if(x.date()<E.date())return-w(E,x);var M=12*(E.year()-x.year())+(E.month()-x.month()),$=x.clone().add(M,f),D=E-$<0,_=x.clone().add(M+(D?-1:1),f);return+(-(M+(E-$)/(D?$-_:_-$))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:f,y:C,w:c,d,D:y,h:u,m:i,s,ms:o,Q:b}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},V="en",A={};A[V]=T;var S=function(w){return w instanceof H},N=function w(x,E,M){var $;if(!x)return V;if(typeof x=="string"){var D=x.toLowerCase();A[D]&&($=D),E&&(A[D]=E,$=D);var _=x.split("-");if(!$&&_.length>1)return w(_[0])}else{var R=x.name;A[R]=x,$=R}return!M&&$&&(V=$),$||!M&&V},L=function(w,x){if(S(w))return w.clone();var E=typeof x=="object"?x:{};return E.date=w,E.args=arguments,new H(E)},q=I;q.l=N,q.i=S,q.w=function(w,x){return L(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var H=function(){function w(E){this.$L=N(E.locale,null,!0),this.parse(E)}var x=w.prototype;return x.parse=function(E){this.$d=function(M){var $=M.date,D=M.utc;if($===null)return new Date(NaN);if(q.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var _=$.match(O);if(_){var R=_[2]-1||0,G=(_[7]||"0").substring(0,3);return D?new Date(Date.UTC(_[1],R,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)):new Date(_[1],R,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)}}return new Date($)}(E),this.$x=E.x||{},this.init()},x.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()},x.$utils=function(){return q},x.isValid=function(){return this.$d.toString()!==p},x.isSame=function(E,M){var $=L(E);return this.startOf(M)<=$&&$<=this.endOf(M)},x.isAfter=function(E,M){return L(E)<this.startOf(M)},x.isBefore=function(E,M){return this.endOf(M)<L(E)},x.$g=function(E,M,$){return q.u(E)?this[M]:this.set($,E)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(E,M){var $=this,D=!!q.u(M)||M,_=q.p(E),R=function(Y,W){var U=q.w($.$u?Date.UTC($.$y,W,Y):new Date($.$y,W,Y),$);return D?U:U.endOf(d)},G=function(Y,W){return q.w($.toDate()[Y].apply($.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(W)),$)},m=this.$W,k=this.$M,j=this.$D,P="set"+(this.$u?"UTC":"");switch(_){case C:return D?R(1,0):R(31,11);case f:return D?R(1,k):R(0,k+1);case c:var z=this.$locale().weekStart||0,K=(m<z?m+7:m)-z;return R(D?j-K:j+(6-K),k);case d:case y:return G(P+"Hours",0);case u:return G(P+"Minutes",1);case i:return G(P+"Seconds",2);case s:return G(P+"Milliseconds",3);default:return this.clone()}},x.endOf=function(E){return this.startOf(E,!1)},x.$set=function(E,M){var $,D=q.p(E),_="set"+(this.$u?"UTC":""),R=($={},$[d]=_+"Date",$[y]=_+"Date",$[f]=_+"Month",$[C]=_+"FullYear",$[u]=_+"Hours",$[i]=_+"Minutes",$[s]=_+"Seconds",$[o]=_+"Milliseconds",$)[D],G=D===d?this.$D+(M-this.$W):M;if(D===f||D===C){var m=this.clone().set(y,1);m.$d[R](G),m.init(),this.$d=m.set(y,Math.min(this.$D,m.daysInMonth())).$d}else R&&this.$d[R](G);return this.init(),this},x.set=function(E,M){return this.clone().$set(E,M)},x.get=function(E){return this[q.p(E)]()},x.add=function(E,M){var $,D=this;E=Number(E);var _=q.p(M),R=function(k){var j=L(D);return q.w(j.date(j.date()+Math.round(k*E)),D)};if(_===f)return this.set(f,this.$M+E);if(_===C)return this.set(C,this.$y+E);if(_===d)return R(1);if(_===c)return R(7);var G=($={},$[i]=n,$[u]=l,$[s]=r,$)[_]||1,m=this.$d.getTime()+E*G;return q.w(m,this)},x.subtract=function(E,M){return this.add(-1*E,M)},x.format=function(E){var M=this,$=this.$locale();if(!this.isValid())return $.invalidDate||p;var D=E||"YYYY-MM-DDTHH:mm:ssZ",_=q.z(this),R=this.$H,G=this.$m,m=this.$M,k=$.weekdays,j=$.months,P=function(W,U,Z,ee){return W&&(W[U]||W(M,D))||Z[U].slice(0,ee)},z=function(W){return q.s(R%12||12,W,"0")},K=$.meridiem||function(W,U,Z){var ee=W<12?"AM":"PM";return Z?ee.toLowerCase():ee},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:m+1,MM:q.s(m+1,2,"0"),MMM:P($.monthsShort,m,j,3),MMMM:P(j,m),D:this.$D,DD:q.s(this.$D,2,"0"),d:String(this.$W),dd:P($.weekdaysMin,this.$W,k,2),ddd:P($.weekdaysShort,this.$W,k,3),dddd:k[this.$W],H:String(R),HH:q.s(R,2,"0"),h:z(1),hh:z(2),a:K(R,G,!0),A:K(R,G,!1),m:String(G),mm:q.s(G,2,"0"),s:String(this.$s),ss:q.s(this.$s,2,"0"),SSS:q.s(this.$ms,3,"0"),Z:_};return D.replace(v,function(W,U){return U||Y[W]||_.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(E,M,$){var D,_=q.p(M),R=L(E),G=(R.utcOffset()-this.utcOffset())*n,m=this-R,k=q.m(this,R);return k=(D={},D[C]=k/12,D[f]=k,D[b]=k/3,D[c]=(m-G)/6048e5,D[d]=(m-G)/864e5,D[u]=m/l,D[i]=m/n,D[s]=m/r,D)[_]||m,$?k:q.a(k)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return A[this.$L]},x.locale=function(E,M){if(!E)return this.$L;var $=this.clone(),D=N(E,M,!0);return D&&($.$L=D),$},x.clone=function(){return q.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},w}(),F=H.prototype;return L.prototype=F,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",d],["$M",f],["$y",C],["$D",y]].forEach(function(w){F[w[1]]=function(x){return this.$g(x,w[0],w[1])}}),L.extend=function(w,x){return w.$i||(w(x,H,L),w.$i=!0),L},L.locale=N,L.isDayjs=S,L.unix=function(w){return L(1e3*w)},L.en=A[V],L.Ls=A,L.p={},L})})(Zr);var ws=Zr.exports;const qe=Ve(ws);var Jr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r={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,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(O){this[p]=+O}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(O){if(!O||O==="Z")return 0;var v=O.match(/([+-]|\d\d)/g),T=60*v[1]+(+v[2]||0);return T===0?0:v[0]==="+"?-T:T}(p)}],f=function(p){var O=i[p];return O&&(O.indexOf?O:O.s.concat(O.f))},b=function(p,O){var v,T=i.meridiem;if(T){for(var B=1;B<=24;B+=1)if(p.indexOf(T(B,0,O))>-1){v=B>12;break}}else v=p===(O?"pm":"PM");return v},C={A:[s,function(p){this.afternoon=b(p,!1)}],a:[s,function(p){this.afternoon=b(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[l,d("day")],Do:[s,function(p){var O=i.ordinal,v=p.match(/\d+/);if(this.day=v[0],O)for(var T=1;T<=31;T+=1)O(T).replace(/\[|\]/g,"")===p&&(this.day=T)}],M:[o,d("month")],MM:[l,d("month")],MMM:[s,function(p){var O=f("months"),v=(f("monthsShort")||O.map(function(T){return T.slice(0,3)})).indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(p){var O=f("months").indexOf(p)+1;if(O<1)throw new Error;this.month=O%12||O}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function y(p){var O,v;O=p,v=i&&i.formats;for(var T=(p=O.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,q,H){var F=H&&H.toUpperCase();return q||v[H]||r[H]||v[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,x,E){return x||E.slice(1)})})).match(n),B=T.length,I=0;I<B;I+=1){var V=T[I],A=C[V],S=A&&A[0],N=A&&A[1];T[I]=N?{regex:S,parser:N}:V.replace(/^\[|\]$/g,"")}return function(L){for(var q={},H=0,F=0;H<B;H+=1){var w=T[H];if(typeof w=="string")F+=w.length;else{var x=w.regex,E=w.parser,M=L.slice(F),$=x.exec(M)[0];E.call(q,$),L=L.replace($,"")}}return function(D){var _=D.afternoon;if(_!==void 0){var R=D.hours;_?R<12&&(D.hours+=12):R===12&&(D.hours=0),delete D.afternoon}}(q),q}}return function(p,O,v){v.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var T=O.prototype,B=T.parse;T.parse=function(I){var V=I.date,A=I.utc,S=I.args;this.$u=A;var N=S[1];if(typeof N=="string"){var L=S[2]===!0,q=S[3]===!0,H=L||q,F=S[2];q&&(F=S[2]),i=this.$locale(),!L&&F&&(i=v.Ls[F]),this.$d=function(M,$,D){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*M);var _=y($)(M),R=_.year,G=_.month,m=_.day,k=_.hours,j=_.minutes,P=_.seconds,z=_.milliseconds,K=_.zone,Y=new Date,W=m||(R||G?1:Y.getDate()),U=R||Y.getFullYear(),Z=0;R&&!G||(Z=G>0?G-1:Y.getMonth());var ee=k||0,be=j||0,Be=P||0,ie=z||0;return K?new Date(Date.UTC(U,Z,W,ee,be,Be,ie+60*K.offset*1e3)):D?new Date(Date.UTC(U,Z,W,ee,be,Be,ie)):new Date(U,Z,W,ee,be,Be,ie)}catch{return new Date("")}}(V,N,A),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),H&&V!=this.format(N)&&(this.$d=new Date("")),i={}}else if(N instanceof Array)for(var w=N.length,x=1;x<=w;x+=1){S[1]=N[x-1];var E=v.apply(this,S);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}x===w&&(this.$d=new Date(""))}else B.call(this,I)}}})})(Jr);var Ss=Jr.exports;const $s=Ve(Ss);var Qr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],d=i%100;return"["+i+(u[(d-20)%10]||u[d]||u[0])+"]"},o.format=function(i){var u=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),f=(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 d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.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)(f)}}})})(Qr);var vs=Qr.exports;const xs=Ve(vs);var ea={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){var o=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,b,C,y,p){var O=f.name?f:f.$locale(),v=s(O[b]),T=s(O[C]),B=v||T.map(function(V){return V.slice(0,y)});if(!p)return B;var I=O.weekStart;return B.map(function(V,A){return B[(A+(I||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,b){return f.formats[b]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,p,O){return p||O.slice(1)})}(f.formats[b.toUpperCase()])},c=function(){var f=this;return{months:function(b){return b?b.format("MMMM"):i(f,"months")},monthsShort:function(b){return b?b.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):i(f,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(f.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(b){return d(f,b)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(f){return i(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return i(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return i(u(),"weekdaysMin","weekdays",2,f)}}})})(ea);var Es=ea.exports;const Cs=Ve(Es);var ta={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(r);if(c.isBefore(f))return 1}var b=s(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),C=this.diff(b,r,!0);return C<0?s(this).startOf("week").week():Math.ceil(C)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ta);var Ts=ta.exports;const Os=Ve(Ts);var na={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})(na);var Vs=na.exports;const Ns=Ve(Vs);var ra={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(ra);var ks=ra.exports;const Is=Ve(ks);var aa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(aa);var As=aa.exports;const Rs=Ve(As);var la={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(la);var js=la.exports;const qs=Ve(js);qe.extend(Cs),qe.extend(xs),qe.extend($s),qe.extend(Os),qe.extend(Ns),qe.extend(Is),qe.extend(Rs),qe.extend(qs);const oa=10;function Bs(e,t){return e>t&&e>oa?"horizontal":t>e&&t>oa?"vertical":""}function Ms(){const e=a.ref(0),t=a.ref(0),r=a.ref(0),n=a.ref(0),l=a.ref(0),o=a.ref(0),s=a.ref(0),i=a.ref(0),u=a.ref(0),d=a.ref(0),c=a.ref(""),f=()=>c.value==="vertical",b=()=>c.value==="horizontal",C=()=>{s.value=0,i.value=0,u.value=0,d.value=0,c.value="",r.value=0};return{move:O=>{const v=O.touches[0];s.value=v.clientX-e.value,i.value=v.clientY-t.value,l.value=v.clientX,o.value=v.clientY,u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-r.value,c.value||(c.value=Bs(u.value,d.value))},start:O=>{C(),e.value=O.touches[0].clientX,t.value=O.touches[0].clientY,r.value=Date.now()},reset:C,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:b}}const Ds=[Ln,_n,Fn,Pn,Kn,de,Zn,Jn,Tt,er,lr,ir,ur,fr,yr,wr,vr,Er,Tr,Vr,Ir,jr,Mr,Lr,Fr,Hr,zr,Qt,Ut,Kr,Wr,Gr,Yr,Ur,Xr],Ls=new za(Ds,[Ga],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=Er,h.Broadcast=Ft,h.BroadcastKey=se,h.CascaderItem=vr,h.CheckboxItem=Mr,h.Content=Pn,h.DataItemsKey=ze,h.DateItem=ir,h.DialogItem=zr,h.Domain=pt,h.DomainKey=Se,h.DomainProvider=Xr,h.ExtIcon=Kr,h.FooterBar=Fn,h.Group=Kn,h.HeaderBar=_n,h.HintText=Tt,h.Indicator=Wr,h.InputItem=er,h.InputNumberItem=wr,h.Item=de,h.Mapping=Qt,h.MoneyItem=yr,h.MoreButton=Yr,h.Page=Ln,h.Price=Ut,h.PriorityPolicy=Ee,h.RadioItem=jr,h.RateItem=Lr,h.RowItem=Jn,h.SelectItem=lr,h.SlotItem=Zn,h.SwitchItem=Fr,h.TableItem=Ir,h.TableMappingColumn=Tr,h.TableRadioColumn=Vr,h.Text=Gr,h.TimeItem=ur,h.TimeSelectItem=fr,h.Tour=Ur,h.TreeSelectItem=Hr,h.UniqueID=Un,h.ValidateSchema=On,h.ValidateSchemaKey=Ce,h.clearNonNumber=$a,h.clone=Lt,h.compareTo=Bt,h.createBroadcast=ht,h.createValidateSchema=mt,h.debounce=at,h.debounceRef=qa,h.decimalLength=Sn,h.default=Ls,h.defineBroadcast=Ta,h.defineConfigDomain=kn,h.defineDataItem=An,h.defineDomain=Ht,h.defineItem=ce,h.definePageState=Rn,h.deleteGlobalValidator=ka,h.disabledProperty=ye,h.divide=qt,h.excludeProps=ge,h.extend=De,h.floatData=Ca,h.getGlobalValidateCheckEvents=En,h.getGlobalValidateResetEvents=Tn,h.getPageContentAreaHeight=St,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=wt,h.getPageHeaderAreaHeight=bt,h.getRootDomain=Ke,h.hasSymbol=dn,h.includeProps=Ea,h.indexOf=va,h.installRules=In,h.integerLength=wn,h.isArray=sa,h.isArrayLike=mn,h.isBrowser=He,h.isDate=fa,h.isESModule=ma,h.isEmptyString=oe,h.isEqual=Ie,h.isFunction=Mt,h.isHidden=gn,h.isInnerPage=Ma,h.isMap=ua,h.isNumberString=bn,h.isObject=ke,h.isPlainObject=Dt,h.isPromise=ga,h.isRegExp=yn,h.isSet=ca,h.isString=da,h.isSubPage=Da,h.isSymbol=ha,h.isWindow=hn,h.lastIndexOf=xa,h.makeArray=wa,h.merge=pn,h.multiply=sn,h.negate=un,h.nextTick=ya,h.numberFormat=ct,h.objectToString=fn,h.property=$e,h.raf=Sa,h.readonlyProperty=pe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Va,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Aa,h.setGlobalValidator=Na,h.throttle=Nn,h.toBoolean=Q,h.toNumber=ae,h.toPadding=xe,h.toPx=re,h.toPxDesc=ne,h.toTypeString=ft,h.toValue=te,h.typeOf=dt,h.unNumberFormat=cn,h.updatePageState=zt,h.useBroadcast=nt,h.useDomain=Te,h.useExpose=fe,h.usePageState=yt,h.usePosition=Wn,h.useRect=ot,h.useTouch=Ms,h.valueLength=tt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});