@fox-js/foxui-pc 4.0.1-39 → 4.0.1-40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2011 -1922
- package/dist/index.umd.js +2 -2
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
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,Tt,$e){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Fri May 12 2023 20:35:38 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 it(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]=Vt(he(e),he(t)),r==1&&(n==1?e=Ot(e):t=Ot(t));let l=nn(e,t);return r?r==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Ot(l)):he(l)}function Ot(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 Vt(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]=Vt(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?"-":"")+It(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=It(s),s.length>t)?(n?"-":"")+It(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 It(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 Nt(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 v=0;for(let x=t.length-1;x>=d&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(v+=parseInt(e[u[x]--])*parseInt(t[x]));v+=i,i=Math.floor(v/10),c=v%10+c,d--}return c=et(aa(c,o)),r==1&&(c="-"+c),c}function aa(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=it(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=kt(t),it(e,t)}function kt(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,Nt(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]=Vt(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),it(t,r)}add(t){return new X(it(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),Nt(t,r)}multiply(t){return new X(Nt(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),kt(t)}negate(){return new X(kt(this.value))}}function sn(e,t){return X.multiply(`${e}`,`${t}`)}function jt(e,t,r=8){return X.divide(`${e}`,`${t}`,r)}function Mt(e,t){return e=`${e}`,t=`${t}`,X.compareTo(e,t)}function un(e){return X.negate(e)}function qt(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="",v=i.split("").reverse();for(let x=0;x<v.length;x++)f+=v[x]+((x+1)%n==0&&x+1!=v.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 la=Array.isArray,oa=e=>st(e)==="[object Map]",ia=e=>st(e)==="[object Set]",sa=e=>e instanceof Date,Dt=e=>typeof e=="function",ua=e=>typeof e=="string",ca=e=>typeof e=="symbol",Ne=e=>e!==null&&typeof e=="object",fa=e=>Ne(e)&&Dt(e.then)&&Dt(e.catch),fn=Object.prototype.toString,st=e=>fn.call(e),Lt=e=>st(e)==="[object Object]",dn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||dn&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function qe(...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]=qe(l,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Bt(e,t,r=!1){if(!r)qe(!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)&&!Lt(s))continue;o=Bt(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)&&!Lt(s))continue;o=Bt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const _t=ha?Promise.resolve():null;function ga(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 re(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 ma={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function ut(e){let r=Object.prototype.toString.call(e);return e==null?String(e):ma[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=ut(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 pa(e,t=[]){let r=t;return e!=null&&(mn(Object(e))?pn(r,typeof e=="string"?[e]:e):r.push(e)),r}function De(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=ut(e),n=ut(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(!De(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(!De(o,s))return!1}return!0}return!1}const He=typeof window<"u",ya=He&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function yn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ie=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function bn(e){return ie(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ie(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 vn(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 Sn(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 ba(e,t=!0,r=!0){t?e=Sn(e,".",/\./g):e=e.replace(/\./g,""),r?e=Sn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function wa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(De(e,r))return!0}):t.indexOf(e)}function va(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(De(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 Sa(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 $a=(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 ct(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 Ea(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 xa{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 $n=new xa;function Ca(e){$n=e}function Ta(e,t){Le(Me).setValidator(e,t)}function Oa(e){Le(Me).deleteValidator(e)}let En=["blur","clear"];function Va(e){En=e}function xn(){return En}let Cn=["focus","change"];function Ia(e){Cn=e}function Tn(){return Cn}function Na(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 ft(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 xe=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=ft(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=ft(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=$n;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=ft(t):this.rules=ft([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 v="error";Array.isArray(f.errors)&&f.errors.length>0&&(v=f.errors[0].message??v,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(v)}return f}).catch(f=>{const v=f.message??`${f}`;return this.error(v),f})}}return Promise.resolve({pass:!0})}}function dt(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 Aa{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 In(e,t){let r=0;return function(...n){const l=new Date().getTime();l-r<t||(r=l,Reflect.apply(e,null,[...n]))}}function Ra(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 ve=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class ht{_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 ka=new ht;function Ke(){return ka}function Ce(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[ve]??a.inject(ve,null):a.inject(ve,null)}const Pt=Symbol("OriginalDateKey");function Ht(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(ve,null);s===null&&(s=Ke());const i=e||t.prop||t.name,u=new ht(i);u.parent=s;const d=p=>{o[Pt]||v(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,f=()=>o[Pt]??null,v=p=>{const T={};qe(!0,T,a.toRaw(p)),o[Pt]=T};a.isReactive(t)?a.watchEffect(()=>{u.merge(t,r)}):u.merge(t,r),t.modelValue&&v(t.modelValue),o[ve]=u,a.provide(ve,u);let x=null,$=null;if(l!==null){const p=a.inject(se,null);x=ct(o,p,i,n),u.broadcast=x,o[se]=x,a.provide(se,x),o.broadcast=(S,O,...q)=>Reflect.apply(x.emit,x,[S,O,...q]);const T=a.inject(xe,null);$=dt(o,T,{componentName:""}),u.validateSchema=$,o[xe]=$,a.provide(xe,$),o[ze]=new Map,o.validate=(S=!0)=>{const O=[];let q=null;const R={deep:!1};if(S===!0)q={name:"*"};else if(Array.isArray(S)&&S.length>0){const k=S;q={name:I=>I?k.indexOf(I)!==-1:!1}}else if(S!=null&&typeof S=="object"){const k=S;if(R.ignoreHidden=k.ignoreHidden,Array.isArray(k.include)&&k.include.length>0){const I=k.include;q={name:w=>w?I.indexOf(w)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const I=k.exclude;q={name:w=>w?I.indexOf(w)===-1:!1}}else q={name:"*"}}if(q){const k=x?.emitToChildren(q,"validate",R);k&&Reflect.apply([].push,O,k)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(k=>{let I=[];return k.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(I=[...I,...w.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(S,O=!0)=>{if(O){const q=Reflect.ownKeys(S),R=[...q],k={name:I=>{const w=q.includes(I);if(w){const V=R.findIndex(L=>I===L);V!==-1&&R.splice(V,1)}return w}};x?.emitToChildren(k,"setNameValidateRules",S,!1),R.length>0&&R.forEach(I=>{let w=String(I);const L=Rn(u,w,{componentName:"",fieldName:w,pureDataValidate:!0},x,$);o[ze].set(w,L);const A=S[w];A&&L.validateSchema.setRule(A)})}},o.clearValidate=(S=!0)=>{let O=null;if(S===!0)O={name:"*"};else if(Array.isArray(S)&&S.length>0){const q=S;O={name:R=>R?q.indexOf(R)!==-1:!1}}else if(S!=null&&typeof S=="object"){const q=S;if(Array.isArray(q.include)&&q.include.length>0){const R=q.include;O={name:k=>k?R.indexOf(k)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const R=q.exclude;O={name:k=>k?R.indexOf(k)===-1:!1}}else O={name:"*"}}O&&x?.emitToChildren(O,"clearValidate",!1)},o.resetFields=S=>{const O=c();if(!O)return;const q={};if(qe(!0,q,f()??{}),Array.isArray(S))S.forEach(R=>{O[R]=q[R]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(k=>{O[k]=q[k]});else if(S&&Array.isArray(S.exclude)){let R=S.exclude??[];Reflect.ownKeys(q).forEach(k=>{R.includes(k)||(O[k]=q[k])})}else Object.assign(O,q);o.clearValidate(S)},o.setModelValue=(S,O)=>{!O||O===i?d(S):x?.emitToChildren({name:O},"setModelValue",S)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{u.destroy(),o[ve]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),x!==null&&(x.destroy(),o[se]=void 0),$!==null&&($.destroy(),o[xe]=void 0)}),u}function Nn(e,t,r=[]){const l=a.getCurrentInstance()?.proxy;let o=a.inject(ve,null);o===null&&(o=Ke());const s=e||t.prop||t.name,i=new ht(s);return i.parent=o,a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),l[ve]=i,a.provide(ve,i),a.onUnmounted(()=>{i.destroy(),l[ve]=void 0}),i}function An(e,t,r){const l=Ce(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=ct(l,s,o,r);l[se]=i,a.provide(se,i),l.broadcast=($,p,...T)=>Reflect.apply(i.emit,i,[$,p,...T]);const u=a.inject(xe,null);e.fieldName=e.fieldName??o;const d=dt(l,u,e);l[xe]=d,a.provide(xe,d),An(l,d,o),l.validate=($=null)=>{const p=[];let T=!1,S=!1;if(Array.isArray($)&&$.indexOf(o)!==-1)S=!0,T=!0;else if($&&typeof $=="object"){const O=$;O.ignoreHidden===!0&&gn(l.$el)?S=!1:(Array.isArray(O.include)&&O.include.indexOf(o)!==-1||Array.isArray(O.exclude)&&O.exclude.indexOf(o),S=!0),T=O.deep??!1}else typeof $=="boolean"&&(T=$),S=!0;if(S){const O=d?.validate();p.push(O)}if(T){let O=null;const q={deep:!1};if($===!0)O={name:"*"};else if(Array.isArray($)&&$.length>0){const R=$;O={name:k=>k?R.indexOf(k)!==-1:!1}}else if($!=null&&typeof $=="object"){const R=$;if(q.ignoreHidden=R.ignoreHidden,Array.isArray(R.include)&&R.include.length>0){const k=R.include;O={name:I=>I?k.indexOf(I)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const k=R.exclude;O={name:I=>I?k.indexOf(I)===-1:!1}}else O={name:"*"}}if(O){const R=i.emitToChildren(O,"validate",q);Reflect.apply([].push,p,R)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(O=>{let q=[];return O.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(q=[...q,...R.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=$=>d?.setRule($),l.setNameValidateRules=($,p=!1)=>{const T=$[o];if(T&&d?.setRule(T),p){const S={name:O=>Reflect.ownKeys($).includes(O)};i.emitToChildren(S,"setNameValidateRules",$,!1)}},l.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&d?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const T=$;p={name:S=>S?T.indexOf(S)!==-1:!1}}else if($!=null&&typeof $=="object"){const T=$;if(Array.isArray(T.include)&&T.include.length>0){const S=T.include;p={name:O=>O?S.indexOf(O)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const S=T.exclude;p={name:O=>O?S.indexOf(O)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new Aa(l);l[Vn]=c;const f=at(($="validate")=>{$==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xn()).forEach($=>{c.on($,p=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Tn()).forEach($=>{c.on($,p=>{f("reset")})}),a.onUnmounted(()=>{i.destroy(),l[se]=void 0,d.destroy(),l[xe]=void 0,c.destroy(),l[Vn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:($,...p)=>{Reflect.apply(c.emit,c,[$,...p])},onEvent:($,p)=>{Reflect.apply(c.on,c,[p])},offEvent:($,p)=>{Reflect.apply(c.off,c,[p])}}}function Rn(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=dt({},l,r);o.validate=(d=null)=>{const c=[];let f=!1,v=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)v=!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),v=!0,f=x.deep??!1}else typeof d=="boolean"&&(f=d),v=!0;if(v){const x=i?.validate();c.push(x)}if(f){let x=null;const $={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:S=>S?T.indexOf(S)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const T=p.exclude;x={name:S=>S?T.indexOf(S)===-1:!1}}else x={name:"*"}}if(x){const p=u.emitToChildren(x,"validate",$);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(x=>{let $=[];return x.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&($=[...$,...p.errors])}),$.length>0?{pass:!1,errors:$}:{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=ct(null,n,s,o);return{broadcast:u,validateSchema:i}}const Q=(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 kn(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=yt(e,f),n.width=bt(e,f),a.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=yt(e,f),c.width=bt(e,f)}));const v=!f;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,$,p=-1,T=-1,S=0,O=0])=>{zt(c,$,t,v,p,T,S,O)}),e.set(Ae,c),c}function gt(e){return e.get(Ae)}function mt(e,t){return t=t??e.get(Ae),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function pt(e,t){return t=t??e.get(Ae),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function yt(e,t){if(t=t??e.get(Ae),t){const r=mt(e,t),n=pt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function bt(e,t){return t=t??e.get(Ae),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ja(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Ma(e){return!!e.getForParent(Ae)}var Te=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Te||{});function Kt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Se(e,t,r=1,n){const l=Ce();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 Se(e,"readonly",0,function(r){return re(r)})}function ye(e){return Se(e,"disabled",0,function(r){return re(r)})}function ee(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,wt=new Map;let Wt=null;function qa(e){Wt=e}function Mn(e,t,r){if(r){let n=wt.get(r);n||(n=new Map,wt.set(r,n)),n.set(e,t)}else jn.set(e,t)}function Be(e,t,r){!r&&Wt&&(r=Wt(e)??void 0);let n=null;if(r){let l=wt.get(r);l&&(n=l.get(t))}return n||(n=jn.get(t)),n}function Da(e,t){for(let r in e){const n=e[r];Mn(r,n,t)}}function La(e){wt.delete(e)}function Ba(){return{top:0,left:0,bottom:0,right:0}}function _a(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 Fa{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=In(()=>{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=qe({},Ba(),t.safeAreaInset),s=_a(n,l),i=qe({},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){qa(t)}setAPI(t,r,n){Mn(t,r,n)}getAPI(t,r,n){return Be(t,r,n)}batchSetAPI(t,r){Da(t,r)}clearScopeAPI(t){La(t)}getRootDomain(){return Ke()}}const Pa=[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],Ha=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],za=e=>{Pa.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Ha.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}},qn={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"}},Dn={name:{type:String,required:!1},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}},Ln=[];for(const e in Dn)Ln.push(e);function fe(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ka=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...ue,...qn,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=kn(l,r);fe({getPageContentHeight:()=>yt(l,d),getPageContentWidth:()=>bt(l,d),getPageHeaderHeight:()=>mt(l,d),getPageFooterHeight:()=>pt(l,d)});const c=a.inject(Ka,!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),v=a.toRaw(d),x=v?Reflect.ownKeys(v):[];(f?Reflect.ownKeys(f):[]).forEach(p=>{x.includes(p)||(v[p]=[])}),u(v)},{deep:!0}),a.onMounted(()=>{if(r.rules){const d=a.toRaw(r.rules);u(d)}}),a.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:Ga,create:Ya,scope:Ss}=J("page"),Ua=Ya(Wa(Ga));function Xa(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 _e=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},Bn=_e(Ua,[["render",Xa]]),Za=(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=Ce(),o=l?gt(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 w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const V=Ee(r.padding??o.footerPadding);return Object.assign(w,V),i&&(o.headerHeight=i),w.height=o.headerHeight,w.safeAreaTop=o.safeAreaTop,w.safeAreaTop&&(w.top=w.safeAreaTop+(V.top??0),w.height=w.height+o.safeAreaTop),w.height,w.safeAreaTop,w}if(i&&(w.height=i),r.padding){const V=Ee(r.padding);Object.assign(w,V)}return w});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=a.computed(()=>{const w={};return u.value.height!==null&&u.value.height!==void 0&&(w.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(w.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(w.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(w.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(w.paddingBottom=`${u.value.bottom}px`),w}),c=a.computed(()=>{const w={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(w.top=`${u.value.safeAreaTop}px`),w}),f=a.computed(()=>{const w={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(w.top=`${u.value.safeAreaTop}px`),w}),v=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)),$=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 w={};return typeof r.leftIcon=="object"?Object.assign(w,r.leftIcon):w.name=r.leftIcon,w}),S=a.computed(()=>{let w={};return typeof r.titleIcon=="object"?Object.assign(w,r.titleIcon):w.name=r.titleIcon,w}),O=a.computed(()=>{let w={};return typeof r.rightIcon=="object"?Object.assign(w,r.rightIcon):w.name=r.rightIcon,w});function q(){n.emit("back")}function R(){n.emit("click-title")}function k(){n.emit("click-right")}function I(){n.emit("click-right-text")}return{classes:s,styles:d,mHeaderShow:x,leftStyles:c,rightStyles:f,mLeftShow:v,mTitleShow:$,mRightShow:p,mLeftIcon:T,mTitleIcon:S,mRightIcon:O,handleLeft:q,handleCenter:R,handleRight:k,handleRightText:I}}}),{componentName:Ja,create:Qa,scope:$s}=J("header-bar"),el=Qa(Za(Ja)),tl={key:1,class:"fox-header-bar__title"};function nl(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",tl,[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=_e(el,[["render",nl]]);function rl(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=Ce(),o=l?gt(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=Q(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(c.paddingTop=Q(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(c.paddingLeft=Q(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(c.paddingRight=Q(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(c.paddingBottom=Q(u.value.bottom)),c});return{classes:s,styles:d}}}}const{componentName:al,create:ll,scope:Es}=J("footer-bar"),ol=ll(rl(al));function il(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=_e(ol,[["render",il]]);function sl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Ce(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const i=gt(n);if(i){if(r.padding){const f=Ee(r.padding);Object.assign(i.contentPadding,f)}const u=mt(n,i),d=pt(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:ul,create:cl,scope:xs}=J("content"),fl=cl(sl(ul));function dl(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=_e(fl,[["render",dl]]),We="GroupStateKey",Hn=Symbol.for("GroupScopeKey");function vt(){return a.inject(Hn,!1)}function St(e=!0){a.provide(Hn,e)}function hl(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 v=ne(n);if(!d){let p=(c-(f-1)*v)/f;for(;o!==-1&&f>1&&p<o;)f--,p=(c-(f-1)*v)/f}let x=!1;const $=s.layout;$.value.width=t,$.value.column!==f&&($.value.column=f,x=!0),$.value.gutter!==v&&($.value.gutter=v,x=!0),x&&a.triggerRef($)};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 gl(e){return e===window}const $t=e=>{const t=a.unref(e);if(gl(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}},Re=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,ml=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},pl=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},yl=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"},bl=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 wl(e,t,r){return{props:{...ue,...qn,...Dn},emits:["update:collapse"],setup(n,l){const o=Ht(n.name,n,Ln),s=hl(o,{type:n.type}),i=vt();St(!0);const u=a.computed(()=>i&&o?lt(o,!0).value:null),d=a.getCurrentInstance(),c=m=>{const N=d?.proxy;N&&typeof N.setNameValidateRules=="function"&&N.setNameValidateRules(m,!0)};a.watch(()=>n.rules,(m,N)=>{if(!m&&!N)return;const M=a.toRaw(N),F=a.toRaw(m),P=F?Reflect.ownKeys(F):[];(M?Reflect.ownKeys(M):[]).forEach(Y=>{P.includes(Y)||(F[Y]=[])}),c(F)},{deep:!0});const f=e,v=a.computed(()=>{const m={};if(m.height=H.value,u.value){const N=lt(o,!0);if(N.value.type==="flex"){if(n.width){const P=Q(n.width);m.width=P}else{const P=we(N.value.column,n.span);P>0&&(m.width=`${P}%`)}const M=we(N.value.column,n.offset);M>0&&(m["margin-left"]=`${M}%`);const F=N.value.gutter/2;F>0&&(m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`)}else if(N.value.type==="flow"){if(n.width){const P=Q(n.width);m.width=P}else{const P=we(N.value.column,n.span);P>0&&(m.width=`${P}%`)}const M=we(N.value.column,n.offset);M>0&&(m["margin-left"]=`${M}%`);const F=N.value.gutter/2;if(F>0){const P=o?Gt(o,!0):null;if(P){let z=ae(n.offset)+ae(n.span);(z===-1||z>N.value.column)&&(z=N.value.column);const Y=Math.ceil((P.index+1)/N.value.column),K=Math.ceil((P.index+z)/N.value.column);if(Y===K){const U=(P.index+1)%N.value.column,Z=(P.index+z)%N.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=z%N.value.column,Z=0,te=U===0?0:F;m["padding-left"]=`${Z}px`,m["padding-right"]=`${te}px`}P.index+=z}else m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`}}}else if(n.width){const N=Q(n.width);m.width=N}return m}),x=a.computed(()=>n.type==="flex"?{[`${Re("",n.type)}`]:!0,[`${Re("justify",n.justify)}`]:!0,[`${Re("align",n.align)}`]:!0,[`${Re("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${Re("",n.type)}`]:!0,[`${Re("justify",n.justify)}`]:!0,[`${Re("align",n.align)}`]:!0}:{[`${Re("",n.type)}`]:!0,[`${f}__gutter`]:!0}),$=a.toRef(n,"title"),p=a.toRef(n,"gutter"),T=a.toRef(n,"column"),S=a.computed(()=>i?!0:re(n.isWrap)),O=[],q=m=>{O.push(m)},R=()=>{let m=O.length;O.splice(0,m)},k=a.ref(-1);zn(o,k.value,T.value,p.value,!0,n.minItemWidth),n.autoLayout&&a.watch([k,T,p],([m,N,M])=>{s.order.index=0,zn(o,m,N,M,!1,n.minItemWidth)});const I=a.computed(()=>C.value?n.expandText??"":n.collapseText??""),w=a.computed(()=>({[`${e}__header-collapse-text`]:!0})),V=a.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!C.value,["is-collapse"]:C.value})),L=a.ref(),A=a.ref(),H=a.computed(()=>b.value||Q(n.height)||""),W=a.ref(!1),b=a.ref(""),C=a.ref(!1);let E=-1;const B=(m,N=!0)=>{const M=L.value;if(M&&W.value!==m){if(E=E===-1?Yt(M):E,C.value=!0,N)if(M.style["will-change"]="height",M.ontransitionend=function(){M.ontransitionend=null,this.style["will-change"]="auto",m||(b.value="",C.value=!1)},m){let F=0;A.value&&A.value.classList.contains(`${e}__header`)&&(F=Yt(A.value)),b.value=`${E}px`,a.nextTick(()=>{b.value=`${F}px`})}else b.value=`${E}px`;else if(m){let F=0;A.value&&A.value.classList.contains(`${e}__header`)&&(F=Yt(A.value)),b.value=`${F}px`}else C.value=!1,b.value=`${E}px`;W.value=m,l.emit("update:collapse",m)}};a.watch(()=>n.collapse,m=>{B(m)});const y=()=>{D()},D=m=>{m=m??!W.value,B(m)};fe({toggleCollapse:D});let _=null;a.onMounted(()=>{if(n.rules){const m=a.toRaw(n.rules);c(m)}if(He&&(B(re(n.collapse),!1),n.autoLayout&&Array.isArray(O)&&O.length>0)){const m=O[0];k.value=$t(m).width,window.ResizeObserver&&(_=new window.ResizeObserver(()=>{const N=$t(m).width;N>0&&N!==k.value&&(k.value=N)}),_.observe(m))}}),a.onUnmounted(()=>{_?.disconnect()});const j=(m,N,M,F)=>{const P={...x.value};return N===0&&(P[`${f}__first`]=!0),M>=F-1&&(P[`${f}__last`]=!0),a.h("div",{ref:q,key:`${N}`,class:P},m)},G=m=>{if(typeof m.type=="symbol"){if(Array.isArray(m.children)){const N=[...m.children];for(let M=N.length-1;M>=0;M--){const F=N[M],P=G(F);P===null?N.splice(M,1):P.length>0&&Reflect.apply([].splice,N,[M,1,...P])}return N}return null}return[]};return()=>{s.order.index=0;const m=[];let N=0;if(l.slots.header){const z={key:`${N++}`,ref:A,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},Y=a.h("div",z,[l.slots.header()]);m.push(Y)}else{const z=[];if($.value){if(n.showMark){const K={class:{[`${f}__header-mark`]:!0}};n.markColor&&(K.style={background:n.markColor});const U=a.h("div",K);z.push(U)}const Y=a.h("div",{class:{[`${f}__header-title`]:!0}},[$.value]);z.push(Y)}if(l.slots.toolbar&&z.push(l.slots.toolbar()),n.showCollapse){const Y=[];if(I.value){const Z={class:w.value},te=a.h("span",Z,[I.value]);Y.push(te)}const K={class:V.value},U=r(n.collapseIcon,K);if(U&&Y.push(U),Y.length>0){const Z=a.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:y},Y);z.push(Z)}}if(z.length>0){const Y={key:`${N++}`,ref:A,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},K=a.h("div",Y,z);m.push(K)}}R();const M=l.slots.default?l.slots.default():[];let F=[],P=0;if(n.type==="flex"){for(let z=0;z<M.length;z++){const Y=G(M[z]);if(Y===null)continue;Y.length>0&&Reflect.apply([].splice,M,[z,1,...Y]);const K=M[z];if(yl(K)==="fragment"){let oe=bl(K);oe>s.layout.value.column?oe=s.layout.value.column:oe<=0&&(oe=1);const Ie=P+oe;if(Ie>s.layout.value.column){const tn=j([...F],N++,z-1,M.length);m.push(tn),P=oe,F=[K]}else F.push(K),P=Ie;continue}const Z=ml(K),te=pl(K);if(Z==="stretch"){if(P<s.layout.value.column){F.push(K);const oe=j([...F],N++,z,M.length);m.push(oe)}else{const oe=j([...F],N++,z-1,M.length);m.push(oe);const Ie=j([K],N++,z,M.length);m.push(Ie)}P=0,F=[];continue}let be=ae(Z);if(be===-1){if(F.length>0){const Ie=j([...F],N++,z-1,M.length);m.push(Ie)}const oe=j([K],N++,z,M.length);m.push(oe),P=0,F=[];continue}be>s.layout.value.column?be=s.layout.value.column:be<=0&&(be=1);const je=P+be+te;if(je>s.layout.value.column){const oe=j([...F],N++,z-1,M.length);m.push(oe),P=be+te,F=[K]}else F.push(K),P=je}if(F.length>0){const z=j([...F],N++,M.length,M.length);m.push(z)}}else if(n.type==="flow"){const z=j(M,N++,0,M.length);m.push(z)}else for(let z=0;z<M.length;z++){const Y=M[z],K=j([Y],N++,z,M.length);m.push(K)}return S.value?a.h("div",{ref:L,class:{[`${f}`]:!0,"is-collapse":C.value},style:v.value},[m]):m}}}}const{componentName:vl,create:Sl,scope:$l}=J("group"),Kn=Sl(wl(vl,$l,(e,t)=>(e=e??Tt.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function El(e){return e===window}const xl=/matrix\((.+)\)/,Wn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(El(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=xl.exec(d);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(i+=Number(v[4]),u+=Number(v[5]))}}l=l.parentNode}return r-=o,n-=s,r+=i,n+=u,{x:r,y:n}};class Cl{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 Tl{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 Cl,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 Tl,Yn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ol,create:Vl}=J("price"),Il=Vl({props:{...Yn},setup(e){const t=a.computed(()=>({[Ol]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>tt(e.price)==0?"":qt(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}}}),Nl=["innerHTML"],Al=["innerHTML"];function Rl(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,Nl)):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,Al)):a.createCommentVNode("",!0)],2)}const Ut=_e(Il,[["render",Rl]]),{componentName:Et,create:kl}=J("hint-text"),jl=kl({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(()=>({[Et]:!0})),c=a.ref(null),f=(I,w,V=10)=>{if(!He||!e.autoFit||w===!1||!I)return;const L=Wn(e.reference);r.value=L,L.y<e.reference.offsetHeight&&(o.value="bottom");const A=$t(e.reference);n.value=A.width,l.value=A.height,setTimeout(()=>{if(!c.value)return;const H=document.documentElement.clientWidth||document.body.clientWidth,W=c.value.offsetWidth;let b=H-(W+ne(r.value.x));b<0?u.value=b:u.value=0},V)},v=at(()=>{f(e.message,e.visible)},10),x=a.computed(()=>e.visible&&$.value),$=a.ref(!0),p=at(I=>{const w=I[0];w&&($.value=w.isIntersecting)},10),T=new IntersectionObserver(p);a.watch([()=>e.message,()=>e.visible],([I,w])=>{f(I,w)}),a.onMounted(()=>{f(e.message,e.visible),Gn.watch(e.reference,v),T.observe(e.reference)}),a.onBeforeMount(()=>{Gn.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const S=a.computed(()=>{const I={left:`${ne(r.value.x)+u.value}px`,height:Q(e.popupHeight)};return e.placement==="bottom"?I.top=Q(r.value.y+l.value+s):I.top=Q(r.value.y-e.popupHeight-s-i),e.autoFit?I["min-width"]=Q(n.value):I.width=Q(n.value),I}),O=a.computed(()=>({[`${Et}__content`]:!0})),q=a.computed(()=>({})),R=a.computed(()=>({[`${Et}__arrow`]:!0,[`${Et}__arrow-${e.placement}`]:!0})),k=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:S,textClasses:O,textStyles:q,arrowClasses:R,arrowStyles:k}}}),Ml={key:1,class:"text"};function ql(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",Ml,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 xt=_e(jl,[["render",ql]]);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={},Dl=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()}},Ll=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(xt,e);return a.render(n,t),e.id}},Bl=e=>{e.unmount=Zt;let t;if(e.id){if(t=e.id,Ge.has(t))return Ll(e)}else t=`hinttext_${Dl.get()}`;e={...Xt,...e},e.id=t,Ge.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(xt,e);return a.render(n,r),document.body.appendChild(r),t},_l=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ct={show(e,t,r={},n=!0){return n&&Zt(),_l(t),Bl({...r,message:t,reference:e})},hide(e){Zt(e)},install(e){e.config.globalProperties.$hintText=Ct}},{componentName:Xn,create:Fl}=J("item"),Pl=Fl({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,t){ce({componentName:Xn,validate:!1},e.prop??t.attrs.name);const r=Ce(),n=vt();St(!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]=!!w.value,m[e.infoMarkClass]=!!k.value,m}),i=a.computed(()=>{const m={};if(l.value)if(l.value.type==="flex"){if(e.width)m.width=Q(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const N=we(l.value.column,e.offset);N>0&&(m["margin-left"]=`${N}%`);const M=l.value.gutter/2;M>0&&(m["padding-left"]=`${M}px`,m["padding-right"]=`${M}px`)}else if(l.value.type==="flow"){if(e.width)m.width=Q(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const N=we(l.value.column,e.offset);N>0&&(m["margin-left"]=`${N}%`);const M=l.value.gutter/2;if(M>0){const F=r?Gt(r,!1):null;if(F){let P=ae(e.offset)+ae(e.span);(P===-1||P>l.value.column)&&(P=l.value.column);const z=Math.ceil((F.index+1)/l.value.column),Y=Math.ceil((F.index+P)/l.value.column);if(z===Y){const K=(F.index+1)%l.value.column,U=(F.index+P)%l.value.column,Z=K===1?0:M,te=U===0?0:M;m["padding-left"]=`${Z}px`,m["padding-right"]=`${te}px`}else{const K=P%l.value.column,U=0,Z=K===0?0:M;m["padding-left"]=`${U}px`,m["padding-right"]=`${Z}px`}F.index+=P}else m["padding-left"]=`${M}px`,m["padding-right"]=`${M}px`}}else return e.width&&(m.width=Q(e.width)),m;else e.width&&(m.width=Q(e.width));return m}),u=a.ref(null),d=a.computed({get:()=>u.value??re(e.isRequired),set:m=>{u.value=m}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=Se(a.toRef(e,"labelPosition"),"labelPosition",Te.Near),v=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),x=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${v.value}`]:!0})),$=a.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Se(a.toRef(e,"labelWidth"),"labelWidth",Te.Near),T=a.computed(()=>p&&p.value?{width:Q(p.value)}:{}),S=a.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),O=a.computed(()=>({content:!0,[e.contentClass]:!0})),q=a.computed(()=>({...e.contentStyle})),R=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(m){d.value=m},setErrorTip(m){R.errorTip=m},setErrorIcon(m){R.errorIcon=m},setWarnTip(m){R.warnTip=m},setWarnIcon(m){R.warnIcon=m},setInfoTip(m){R.infoTip=m},setInfoIcon(m){R.infoIcon=m}});const k=a.computed(()=>e.infoTip||R.infoTip),I=a.computed(()=>e.infoIcon||R.infoIcon),w=a.computed(()=>e.warnTip||R.warnTip),V=a.computed(()=>e.warnIcon||R.warnIcon),L=a.computed(()=>e.errorTip||R.errorTip),A=a.computed(()=>e.errorIcon||R.errorIcon),H=a.computed(()=>L.value?"error":w.value?"warn":k.value?"info":""),W=a.computed(()=>H.value.length>0),b=a.computed(()=>H.value==="error"?L.value:H.value==="warn"?w.value:H.value==="info"?k.value:""),C=a.computed(()=>H.value==="error"?A.value:H.value==="warn"?V.value:H.value==="info"?I.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}),B=a.computed(()=>{let m={};return f&&f.value==="top"||!c.value?m["padding-left"]="0px":p&&p.value&&(m["padding-left"]=Q(p.value)),m}),y=a.ref();let D="";a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([m,N,M,F])=>{y.value&&(m&&!ie(N)?D?Ct.show(y.value,N,{...F,id:D,type:M},!0):D=Ct.show(y.value,N,{...F,type:M},!0):Ct.hide(D))});let _=null;const j=()=>{_||!y.value||(_=new IntersectionObserver(m=>{let N=!1;for(let M of m)if(M.intersectionRatio>0){N=!0,N&&t.emit("appear",M);break}N||t.emit("disappear")}),_.observe(y.value))},G=()=>{!_||!y.value||(_.unobserve(y.value),_=null)};return a.watch(()=>re(e.appearListen),m=>{m?j():G()}),a.onMounted(()=>{re(e.appearListen)&&j()}),a.onUnmounted(G),{classes:s,styles:i,mainClasses:x,hasLabel:c,labelClasses:$,labelStyles:T,labelStringClasses:S,contentClasses:O,contentStyles:q,contentRef:y,hasTip:W,mTip:b,mIcon:C,tipClasses:E,tipStyles:B}}}),Hl={key:0,class:"fox-item__tip--icon"},zl={class:"fox-item__tip--text"};function Kl(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",Hl,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",zl,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const de=_e(Pl,[["render",Kl]]);function Wl(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=Ce(),o=vt();St(!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=Q(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 v=s.value.gutter/2;v>0&&(c["padding-left"]=`${v}px`,c["padding-right"]=`${v}px`)}else if(s.value.type==="flow"){if(r.width)c.width=Q(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 v=s.value.gutter/2;if(v>0){const x=l?Gt(l,!1):null;if(x){let $=ae(r.offset)+ae(r.span);($===-1||$>s.value.column)&&($=s.value.column);const p=Math.ceil((x.index+1)/s.value.column),T=Math.ceil((x.index+$)/s.value.column);if(p===T){const S=(x.index+1)%s.value.column,O=(x.index+$)%s.value.column,q=S===1?0:v,R=O===0?0:v;c["padding-left"]=`${q}px`,c["padding-right"]=`${R}px`}else{const S=$%s.value.column,O=0,q=S===0?0:v;c["padding-left"]=`${O}px`,c["padding-right"]=`${q}px`}x.index+=$}else c["padding-left"]=`${v}px`,c["padding-right"]=`${v}px`}}else return r.width&&(c.width=Q(r.width)),c;else r.width&&(c.width=Q(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:Gl,create:Yl,scope:Ts}=J("slot-item"),Zn=Yl(Wl(Gl));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},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=Ce(),i=vt();St(!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=Q(r.width)),c;if(r.width)c.width=Q(r.width);else{const $=we(f.value.column,r.span);$>0&&(c.width=`${$}%`)}const v=we(f.value.column,r.offset);v>0&&(c["margin-left"]=`${v}%`);const x=f.value.gutter/2;x>0&&(c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`)}else r.width&&(c.width=Q(r.width));return c}),d=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const $=n.slots.default();if(r.divide)for(let p=0;p<$.length;p++){if(p>0){const T=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(T)}c.push($[p])}else Reflect.apply([].push,c,$)}const f={class:d.value},v=a.h("div",f,c),x={class:o.value,style:u.value};return a.h("div",x,[v])}}}}const{componentName:Xl,create:Zl,scope:Os}=J("row-item"),Jn=Zl(Ul(Xl)),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 Jl(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ee(n,"modelValue"),v=e,x=a.computed(()=>({[v]:!0,[`${v}__disabled`]:o.value,[`${v}__readonly`]:s.value})),$=b=>{f.value=b,i("update:modelValue",b),i("input",b)},p=b=>{i("change",b)};let T=ee(n,"hintText"),S=a.ref(!1);const O=b=>{let E=b.target.value;c.value=!0,ie(T.value)||(S.value=!0),i("focus",E,b)},q=b=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let E=b.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,b)},R=()=>{i("clear","")},k=a.ref(!1);let I=null;const w=()=>{n.showTooltip&&k.value===!1&&(I=setTimeout(()=>{k.value=!0},150))},V=()=>{I&&(clearTimeout(I),k.value=!1,I=null)},L=a.computed(()=>k.value||S.value),A=a.computed(()=>k.value?f.value:T.value),H=a.computed(()=>tt(n.unit)>0),W=a.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const C={...l.attrs,ref:W,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:R,onChange:p,onInput:$,onFocus:O,onBlur:q,onMouseover:w,onMouseleave:V},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 B=[],y=a.h(g.ElInput,C,E);B.push(y);const D={default:()=>B};l.slots.default&&(D.label=l.slots.default);const j={...ge(n,Qn),hintText:A.value,hintVisible:L.value,prop:`${n.prop}_item`};return a.h(r,j,D)}}}}const{componentName:Ql,create:eo,scope:to}=J("input-item"),er=eo(Jl(Ql,to,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 no=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ne(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function ro(){const e=a.getCurrentInstance();return new no(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 ao(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 lo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),v=(m,N,M,F=!0)=>{const P=rr(n,m,N,M);if(P===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 z=!0;if(P.length!==f.value.length)z=!1;else for(let Y=0;Y<P.length;Y++){const K=P[Y],U=f.value[Y];if(!nr(n,K,U)){z=!1;break}}if(!z){f.value=P;let Y=[],K=[];P.forEach(Z=>{Y.push(Ye(n,Z)),n.valueType==="text"?K.push(Fe(n,Z)):n.valueType==="item"?K.push(Z):K.push(Ye(n,Z))});let U;n.multiple?(c.value=Y,U=a.toRaw(K)):(c.value=Y[0]??"",U=a.toRaw(K[0]??"")),F&&(i("update:modelValue",U),i("change",U))}},x=a.ref(null),$=a.ref(null),p=a.computed(()=>$.value??x.value??[]),T=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,m=>re(m)),S=ro(),O=async(m,N)=>{if(m){const M=await S.load("select",m,N);if(M.length>0)if(typeof M[0]=="string"){let z=M.map(Y=>ao(Y));x.value=z}else x.value=M;else x.value=null}};a.watch([()=>n.source,()=>n.params],([m,N])=>{O(m,N)},{immediate:!T.value});let q=!1;const R=()=>{q||(q=!0,O(n.source,n.params))};a.watch([()=>p.value,()=>n.modelValue],([m,N])=>{v(N,n.valueType,m,!1)});let k=null,I=a.ref(!1);typeof n.remoteMethod=="function"&&(k=async m=>{if(m==null){$.value=null;return}I.value=!0;try{const N=await n.remoteMethod(m);$.value=N}catch(N){$.value=null,console.error(N)}I.value=!1});let w=null;typeof n.filterMethod=="function"&&(w=async m=>{if(m==null){$.value=null;return}I.value=!0;try{const N=await n.filterMethod(m,x.value);$.value=N}catch(N){$.value=null,console.error(N)}I.value=!1});const V=a.ref(!1),L=e,A=a.computed(()=>({[L]:!0})),H=m=>{n.allowCreate?(i("update:modelValue",m),i("change",m),c.value=m):v(m,"value",p.value,!0)};let W=ee(n,"hintText"),b=a.ref(!1);const C=m=>{let M=m.target.value;V.value=!0,ie(W.value)||(b.value=!0),i("focus",M,m)},E=m=>{setTimeout(()=>{b.value&&(b.value=!1),V.value=!1},0);let M=m.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),y.value||i("blur",M,m)},B=()=>{i("clear","")},y=a.ref(!1),D=m=>{y.value=m,i("visible-change",m),m||i("selected")},_=m=>{i("remove-tag",m)},j=(m,N)=>{const M=[];return m.forEach((F,P)=>{const z=tr(n,F);if(Array.isArray(z)&&z.length>0){const Y=j(z,N),K=Fe(n,F),Z={key:`${K}_${P}`,label:K};M.push(a.h(g.ElOptionGroup,Z,{default:()=>Y}))}else{const Y=Ye(n,F),K=Fe(n,F),U=re(F.disabled),te={key:`${Y}_${P}`,label:K,disabled:U,value:Y};if(typeof N=="function")M.push(a.h(g.ElOption,te,{default:()=>N(F)}));else if(n.optionType==="item"){const be={class:{"fox-select-item__option-left":!0}},je=a.h("span",be,[Y]),oe={class:{"fox-select-item__option-right":!0}},Ie=a.h("span",oe,[K]),tn=a.h("div",{class:{"fox-select-item__option":!0}},[je,Ie]);M.push(a.h(g.ElOption,te,{default:()=>tn}))}else n.optionType==="value"?M.push(a.h(g.ElOption,te,{default:()=>[Y]})):M.push(a.h(g.ElOption,te))}}),M},G=a.ref();return fe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()}}),()=>{const N={...l.attrs,ref:G,class:A.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:B,onChange:H,onFocus:C,onBlur:E,onVisibleChange:D,onRemoveTag:_};typeof k=="function"&&(N["remote-method"]=k,N.loading=I.value),typeof w=="function"&&(N["filter-method"]=w,N.loading=I.value);const M={};l.slots.prefix&&(M.prefix=l.slots.prefix),l.slots.empty&&(M.empty=l.slots.empty),M.default=()=>j(p.value,l.slots.option);const F=[],P=a.h(g.ElSelect,N,M);F.push(P);const z={default:()=>F};l.slots.default&&(z.label=l.slots.default);const K={...ge(n,ar),hintText:W.value,hintVisible:b.value,prop:`${n.prop??l.attrs.name}_item`};return T.value&&(K["appear-listen"]=!0,K.onAppear=R),a.h(r,K,z)}}}}const{componentName:oo,create:io,scope:so}=J("select-item"),lr=io(lo(oo,so,de)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function uo(e,t,r){return{props:{...ue,...me,...or},emits:["change","update:modelValue","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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ee(n,"modelValue"),v=e,x=a.computed(()=>({[v]:!0})),$=V=>{f.value=V,i("update:modelValue",V),i("change",V)};let p=ee(n,"hintText"),T=a.ref(!1);const S=V=>{let A=V.target.value;c.value=!0,ie(p.value)||(T.value=!0),i("focus",A,V)},O=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let A=V.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,V)},q=()=>{i("clear","")},R=V=>{i("calendar-change",V)},k=(V,L,A)=>{i("panel-change",V,L,A)},I=V=>{i("visible-change",V)},w=a.ref();return fe({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},handleOpen:()=>{w?.value.handleOpen()},handleClose:()=>{w?.value.handleClose()}}),()=>{const L={...l.attrs,ref:w,class:x.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:$,onClear:q,onFocus:S,onBlur:O,onCalendarChange:R,onPanelChange:k,onVisibleChange:I},A={};l.slots["range-separator"]&&(A["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(A.default=l.slots.cell);const H=[],W=a.h(g.ElDatePicker,L,A);H.push(W);const b={default:()=>H};if(l.slots.default){const y=l.slots.default();b.label=()=>y}const E={...ge(n,or),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,E,b)}}}}const{componentName:co,create:fo,scope:ho}=J("date-item"),ir=fo(uo(co,ho,de)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function go(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ee(n,"modelValue"),v=e,x=a.computed(()=>({[v]:!0})),$=I=>{f.value=I,i("update:modelValue",I),i("change",I)};let p=ee(n,"hintText"),T=a.ref(!1);const S=I=>{let V=I.target.value;c.value=!0,ie(p.value)||(T.value=!0),i("focus",V,I)},O=I=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let V=I.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,I)},q=()=>{i("clear","")},R=I=>{i("visible-change",I)},k=a.ref();return fe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()}}),()=>{const w={...l.attrs,ref:k,class:x.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:$,onClear:q,onFocus:S,onBlur:O,onVisibleChange:R},V={},L=[],A=a.h(g.ElTimePicker,w,V);L.push(A);const H={default:()=>L};if(l.slots.default){const E=l.slots.default();H.label=()=>E}const b={...ge(n,sr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,b,H)}}}}const{componentName:mo,create:po,scope:yo}=J("time-item"),ur=po(go(mo,yo,de)),cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function bo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ee(n,"modelValue"),v=e,x=a.computed(()=>({[v]:!0})),$=k=>{f.value=k,i("update:modelValue",k),i("change",k)};let p=ee(n,"hintText"),T=a.ref(!1);const S=k=>{let w=k.target.value;c.value=!0,ie(p.value)||(T.value=!0),i("focus",w,k)},O=k=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let w=k.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),i("blur",w,k)},q=()=>{i("clear","")},R=a.ref();return fe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const I={...l.attrs,ref:R,class:x.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:$,onClear:q,onFocus:S,onBlur:O},w={},V=[],L=a.h(g.ElTimeSelect,I,w);V.push(L);const A={default:()=>V};if(l.slots.default){const C=l.slots.default();A.label=()=>C}const W={...ge(n,cr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,W,A)}}}}const{componentName:wo,create:vo,scope:So}=J("time-select-item"),fr=vo(bo(wo,So,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=jt(`${e}`,un(`${t}`),20);return dr(n)}}function $o(e,t=-1,r=!1,n=3,l=","){return qt(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=jt(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=re(t.minInclude),l=Mt(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=re(t.maxInclude),l=Mt(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 Eo(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=ee(n,"modelValue"),c=a.ref("");a.watch([()=>d.value,()=>n.rates,()=>n.precision],([b,C,E])=>{if(ie(b)){c.value="";return}const B=gr(b,C,E,!1);c.value!==B&&(c.value=B)},{immediate:!0});const f=a.computed(()=>{let b="";return u.value&&(b=c.value),b}),{t:v}=$e.useFoxI18n(t),x=a.computed(()=>{let b=n.placeholder??"";return!u.value&&!ie(c.value)?b=$o(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):b=v(["placeholder",b]),b}),$=e,p=a.computed(()=>({[$]:!0,[`${$}__disabled`]:o.value,[`${$}__placeholder`]:c.value.length>0})),T=Se(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>u.value?{textAlign:"left"}:{textAlign:T.value??"right"});const S=a.ref(""),O=a.computed(()=>{let b=S.value;return ie(b)&&(b=n.errorTip??""),b}),q=a.ref(""),R=a.ref(!1),k=(b,C)=>{if(b=`${b}`,ie(b)){c.value="",d.value="",C.forEach(E=>{i(E,"")}),re(n.showTip)&&R.value&&(R.value=!1);return}if(b.length>=2){let E=b;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){a.triggerRef(c);return}}if(b!="-"){if(!bn(b)){a.triggerRef(c);return}if(n.integerLength!=-1&&wn(b)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&vn(b)>Number(n.decimalLength)){a.triggerRef(c);return}let E=mr(b,n);if(E.maxValid===!1){S.value=E.message,a.triggerRef(c);return}}else if(n.min!=null&&ae(n.min)>=0){a.triggerRef(c);return}q.value=b,re(n.showTip)&&(R.value=b.length>0),c.value=b,d.value=gr(b,n.rates,n.precision,!0),C.forEach(E=>{i(E,d.value)})},I=b=>{k(b,["update:modelValue","input"])},w=b=>{k(b,["update:modelValue","change"])},V=b=>{if(u.value=!0,re(n.showTip)){let C=c.value;ie(C)&&(C=n.hintText),ie(C)||(q.value=C,R.value=!0)}S.value="",i("focus",d.value,b)},L=b=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&R.value===!0&&(R.value=!1)},0),!ie(c.value)){let C=mr(c.value,n);if(C.minValid===!1||C.maxValid){S.value=C.message;return}}i("update:modelValue",d.value,b),i("blur",d.value,b)},A=()=>{i("clear","")},H=a.computed(()=>tt(n.unit)>0),W=a.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const C={...l.attrs,ref:W,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:A,onInput:I,onChange:w,onFocus:V,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 B=[],y=a.h(g.ElInput,C,E);B.push(y);const D={default:()=>B};if(l.slots.default){const m=l.slots.default();D.label=()=>m}const j={...ge(n,pr),errorTip:O.value,hintText:q.value,hintVisible:R.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,j,D)}}}}const{componentName:xo,create:Co,scope:To}=J("money-item"),yr=Co(Eo(xo,To,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 Oo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ee(n,"modelValue"),v=e,x=a.computed(()=>({[v]:!0,[`${v}__append`]:I.value})),$=a.computed(()=>({[`${v}__unit`]:!0})),p=V=>{f.value=V,i("update:modelValue",V),i("input",V)},T=V=>{i("change",V)};let S=ee(n,"hintText"),O=a.ref(!1);const q=V=>{let A=V.target.value;c.value=!0,ie(S.value)||(O.value=!0),i("focus",A,V)},R=V=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let A=V.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,V)},k=()=>{i("clear","")},I=a.computed(()=>tt(n.unit)>0),w=a.ref();return fe({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()}}),()=>{const L={...l.attrs,ref:w,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:k,onChange:T,onInput:p,onFocus:q,onBlur:R},A={},H=[],W=a.h(g.ElInputNumber,L,A);H.push(W);const b={default:()=>H};if(l.slots.default){const y=l.slots.default();b.label=()=>y}const E={...ge(n,br),hintText:S.value,hintVisible:O.value,prop:`${n.prop}_item`};if(l.slots.append)b.append=l.slots.append;else if(I.value){const y={class:$.value},D=a.h("div",y,[n.unit]);b.append=()=>D}return a.h(r,E,b)}}}}const{componentName:Vo,create:Io,scope:No}=J("input-number-item"),wr=Io(Oo(Vo,No,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 Ao(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ro=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ne(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function ko(){const e=a.getCurrentInstance();return new Ro(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 vr(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=vr(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=Ao(e,d);break}}if(!u)break}}return l}function jo(e){return{text:e,value:e}}const Sr={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 Mo(e,t,r){return{props:{...ue,...me,...Sr},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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),v=(j,G,m,N=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===j)return;c.value=j;const P=a.toRaw(j);N&&(i("update:modelValue",P),i("change",P))}const M=vr(n,j,G,m);if(M===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,N&&(i("update:modelValue",null),i("change",null));return}let F=!0;if(M.length!==f.value.length)F=!1;else for(let P=0;P<M.length;P++){const z=M[P],Y=f.value[P];if(Array.isArray(z)){if(!Array.isArray(Y)||z.length!==Y.length)F=!1;else for(let K=0;K<z.length;K++)if(!Jt(n,z[K],Y[K])){F=!1;break}}else Jt(n,z,Y)||(F=!1);if(!F)break}if(!F){f.value=M;let P=[],z=[];M.forEach(K=>{if(Array.isArray(K)){let U=[],Z=[];for(let te of K)U.push(Pe(n,te)),n.valueType==="text"?Z.push(Ue(n,te)):n.valueType==="item"?Z.push(te):Z.push(Pe(n,te));P.push(U),z.push(Z)}else P.push(Pe(n,K)),n.valueType==="text"?z.push(Ue(n,K)):n.valueType==="item"?z.push(K):z.push(Pe(n,K))}),c.value=P;const Y=a.toRaw(z);N&&(i("update:modelValue",Y),i("change",Y))}},x=a.ref([]),$=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,j=>re(j)),p=ko(),T=async(j,G)=>{if(j){const m=await p.load("cascader",j,G);if(m.length>0)if(typeof m[0]=="string"){let F=m.map(P=>jo(P));x.value=F}else x.value=m}};a.watch([()=>n.source,()=>n.params],async([j,G])=>{T(j,G)},{immediate:!$.value});let S=!1;const O=()=>{S||(S=!0,T(n.source,n.params))};a.watch([()=>x.value,()=>n.modelValue],([j,G])=>{v(G,n.valueType,j,!1)});let q=null,R=a.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){R.value=!0;try{const G=await n.remoteMethod(j);x.value=G}catch(G){console.error(G)}R.value=!1}});const k=a.ref(!1),I=e,w=a.computed(()=>({[I]:!0})),V=a.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),j}),L=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),c.value=j):v(j,"value",x.value,!0)};let A=ee(n,"hintText"),H=a.ref(!1);const W=j=>{let m=j.target.value;k.value=!0,ie(A.value)||(H.value=!0),i("focus",m,j)},b=j=>{setTimeout(()=>{H.value&&(H.value=!1),k.value=!1},0);let m=j.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),E.value||i("blur",m,j)},C=()=>{i("clear","")},E=a.ref(!1),B=j=>{E.value=j,i("visible-change",j),j||i("selected")},y=j=>{i("remove-tag",j)},D=j=>{i("expand-change",j)},_=a.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},getCheckedNodes:()=>_?.value.getCheckedNodes()}),()=>{const G={...l.attrs,ref:_,class:w.value,props:V.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:o.value||s.value,options:x.value,modelValue:c.value,onClear:C,onChange:L,onFocus:W,onBlur:b,onVisibleChange:B,onRemoveTag:y,expandChange:D};typeof q=="function"&&(G["remote-method"]=q,G.loading=R.value);const m={};l.slots.option&&(m.default=l.slots.option),l.slots.empty&&(m.empty=l.slots.empty);const N=[],M=a.h(g.ElCascader,G,m);N.push(M);const F={default:()=>N};l.slots.default&&(F.label=l.slots.default);const z={...ge(n,Sr),hintText:A.value,hintVisible:H.value,prop:`${n.prop??l.attrs.name}_item`};return $.value&&(z["appear-listen"]=!0,z.onAppear=O),a.h(r,z,F)}}}}const{componentName:qo,create:Do,scope:Lo}=J("cascader-item"),$r=Do(Mo(qo,Lo,de)),Er={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Bo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ee(n,"modelValue"),v=e,x=a.computed(()=>({[v]:!0})),$=I=>{f.value=I,i("update:modelValue",I),i("input",I)},p=I=>{i("change",I)};let T=ee(n,"hintText"),S=a.ref(!1);const O=I=>{let V=I.target.value;c.value=!0,ie(T.value)||(S.value=!0),i("focus",V,I)},q=I=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let V=I.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,I)},R=()=>{i("clear","")},k=a.ref();return fe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const w={...l.attrs,ref:k,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,onClear:R,onChange:p,onInput:$,onFocus:O,onBlur:q},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix&&(V.suffix=l.slots.suffix),l.slots.option&&(V.default=l.slots.option);const L=[],A=a.h(g.ElAutocomplete,w,V);L.push(A);const H={default:()=>L};if(l.slots.default){const E=l.slots.default();H.label=()=>E}const b={...ge(n,Er),hintText:T.value,hintVisible:S.value,prop:`${n.prop}_item`};return a.h(r,b,H)}}}}const{componentName:_o,create:Fo,scope:Po}=J("autocomplete-item"),xr=Fo(Bo(_o,Po,de));function Ho(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(v=>v[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(v=>v[n]===c);if(!f)break;s.push(f[r]),u=f[l]}}return s}let zo=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ne(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Ko(){const e=a.getCurrentInstance();return new zo(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 Wo(e,t){return{props:{...Cr},setup(r,{attrs:n}){const l=Ko(),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=Ho(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:Vs,create:Go,scope:Is}=J("mapping"),Qt=Go(Wo());function Yo(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 Uo(e,t){return{props:{...Cr},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=Yo(o.row,o.column.property);return a.h(Qt,{...r,modelValue:s})}};return a.h(g.ElTableColumn,{...n},l)}}}}const{componentName:Ns,create:Xo,scope:As}=J("table-mapping-column"),Tr=Xo(Uo());let Zo=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=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ne(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(u,null,[r,n,l,o,s,i]))}};function Jo(){const e=a.getCurrentInstance();return new Zo(e.proxy)}function Qo(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=Qo(n,l);if(o!==s)return!1}return!0})}const Or={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}},Vr={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 ei(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Or,...Vr},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change"],setup(n,l){const{locale:o}=$e.useFoxI18n(t),{emitEvent:s}=ce({componentName:e,validateHandler:{getValue(...y){return S.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,y=>{c.value=y});const f=y=>{c.value=y,s("page-index-change",y)},v=a.ref(n.pageSize);a.watch(()=>n.pageSize,y=>{v.value=y});const x=y=>{v.value=y,s("page-size-change",y)},$=a.shallowRef({}),p=a.computed(()=>({...$.value,...n.params??{},...n.baseParams??{}})),T=a.ref(0),S=a.ref(),O=Jo();let q=!0;const R=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),k=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,y=>re(y)),I=async(y,D,_,j)=>{try{const G=await O.load("table",y,D,_,j,q,o.value);T.value=G.totalSize,S.value=G.page}catch(G){console.error("[FoxUI] Load Table Data Fail",G),T.value=0,S.value=[]}q=!1,setTimeout(()=>{s("loaded-data")},250)};a.watch([c,v],([y,D],[_,j])=>{D!==j&&(c.value=1,y=1),I(n.data,y,D,p.value)}),a.watch([()=>n.data,p],([y,D],[_,j])=>{R()&&(y!==_&&(q=!0),!(De(y,_)&&De(D,j))&&I(y,c.value,v.value,D))});const w=(y={},D=!1)=>new Promise(_=>{$.value=a.toRaw(y??{}),a.triggerRef($),D||(c.value=n.pageIndex??1),a.nextTick(async()=>{await I(n.data,c.value,v.value,p.value),_()})}),V=()=>{T.value=0,S.value=[]};let L=!1;const A=()=>{L||(L=!0,w())};R()&&!k.value&&w();let H=null;const W=(y,D)=>{H=y,s("current-change",y,D)},b=(y,D,_)=>{s("row-click",y,D,_),re(n.rowClickSelectable)===!0&&B?.value.toggleRowSelection(y)},C=[],E=(y,D)=>{if(s("expand-change",y,D),re(n.uniqueExpansion))if(Array.isArray(D)&&D.length==0){const _=C.length;C.splice(0,_)}else{C.forEach(j=>{j!==y&&B?.value.toggleRowExpansion(j,!1)});const _=C.length;C.splice(0,_,y)}},B=a.ref();return fe({clearSelection:()=>B?.value.clearSelection(),getSelectionRows:()=>B?.value.getSelectionRows(),toggleRowSelection:(y,D)=>{B?.value.toggleRowSelection(y,D)},toggleRowSelectionByProp:(y,D)=>{if(!S.value)return;const _=en(S.value,y);_.length!==0&&_.forEach(j=>{B?.value.toggleRowSelection(j,D)})},toggleAllSelection:()=>{B?.value.toggleAllSelection()},toggleRowExpansion:(y,D)=>{B?.value.toggleRowExpansion(y,D)},toggleRowExpansionByProp:(y,D)=>{if(!S.value)return;const _=en(S.value,y);_.length!==0&&_.forEach(j=>{B?.value.toggleRowExpansion(j,D)})},setCurrentRow:y=>{B?.value.setCurrentRow(y)},setCurrentRowByProp:y=>{if(!S.value)return;const D=en(S.value,y);D.length!==0&&B?.value.setCurrentRow(D[0])},getCurrentRow:()=>H,clearSort:()=>{B?.value.clearSort()},clearFilter:y=>{B?.value.clearFilter(y)},doLayout:()=>{B?.value.doLayout()},sort:(y,D)=>{B?.value.sort(y,D)},scrollTo:(y,D)=>{B?.value.scrollTo(y,D)},setScrollTop:y=>{B?.value.setScrollTop(y)},setScrollLeft:y=>{B?.value.setScrollLeft(y)},loadData:w,clearData:V,getData(){return S.value},getTotalSize(){return T.value},getPageIndex(){return c.value},getPageSize(){return v.value}}),()=>{const D={...l.attrs,onCurrentChange:W,onRowClick:b,onExpandChange:E,data:S.value,ref:B,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 j=[],G=a.h(g.ElTable,D,_);if(j.push(G),typeof l.slots.pagination=="function"){const P=l.slots.pagination();j.push(P)}else if(n.paginationVisible){const P={class:d.value,total:T.value,pageSize:v.value,["onUpdate:pageSize"]:x,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:f,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},z=a.h(g.ElPagination,P);j.push(z)}const m={default:()=>j},M={...ge(n,Or,Vr),prop:`${n.prop}_item`};return M.contentClass=`${i}__wrap`,M.errorMarkClass="is-table-error",k.value&&R()&&(M["appear-listen"]=!0,M.onAppear=A),a.h(r,M,m)}}}}const{componentName:ti,create:ni,scope:ri}=J("table-item"),Ir=ni(ei(ti,ri,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let ai=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ne(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function li(){const e=a.getCurrentInstance();return new ai(e.proxy)}function Nr(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=ot(e,t),s=ot(e,r);return o===s}function oi(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=Nr(e,o,t);else{let i=ot(e,o);i==null&&(i=Xe(e,o)),s=i===t}if(s){l=o;break}}return l}function ii(e){return{text:e,value:e}}function si(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Ar={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 ui(e,t,r){return{inheritAttrs:!0,props:{...ue,...me,...Ar},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=(w,V,L,A=!0)=>{const H=oi(n,w,V,L);if(H===null){if(d.value===null)return;d.value=null,u.value=null,A&&(i("update:modelValue",null),i("change",null));return}if(!Nr(n,H,d.value)){u.value=w;const b=a.toRaw(H);d.value=b;let C=null;n.valueType==="text"?C=Xe(n,b):n.valueType==="item"?C=b:C=ot(n,b),A&&(i("update:modelValue",C),i("change",C))}},f=a.ref([]),v=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,w=>re(w)),x=li(),$=async(w,V)=>{if(w){const L=await x.load("radio",w,V);if(L.length>0)if(typeof L[0]=="string"){let W=L.map(b=>ii(b));f.value=W}else f.value=L}};a.watch([()=>n.source,()=>n.params],async([w,V])=>{$(w,V)},{immediate:!v.value});let p=!1;const T=()=>{p||(p=!0,$(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([w,V])=>{c(V,n.valueType,w,!1)});const S=e,O=a.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{c(w,"value",f.value,!0)};let R=ee(n,"hintText"),k=ee(n,"hintVisible");const I=(w,V)=>{const L=[];return w.forEach((A,H)=>{const W=ot(n,A),b=Xe(n,A),C=si(n,A,H)??{};let E=C.disabled;o.value===!0&&(E=o.value);const B=`${W}_${H}`,y={...C,key:B,label:W,disabled:E,size:n.size,border:re(n.border)};n.itemType==="button"?L.push(a.h(g.ElRadioButton,y,{default:()=>[b]})):typeof V=="function"?L.push(a.h(g.ElRadio,y,{default:()=>V(A)})):L.push(a.h(g.ElRadio,y,{default:()=>[b]}))}),L};return()=>{const V={...l.attrs,class:O.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:q},L=[],A={};l.slots.options?A.default=l.slots.options:A.default=()=>I(f.value,l.slots.text);const H=a.h(g.ElRadioGroup,V,A);L.push(H);const W={default:()=>L};l.slots.default&&(W.label=l.slots.default);const C={...ge(n,Ar),hintText:R.value,hintVisible:k.value,prop:`${n.prop??l.attrs.name}_item`};return v.value&&(C["appear-listen"]=!0,C.onAppear=T),a.h(r,C,W)}}}}const{componentName:ci,create:fi,scope:di}=J("radio-item"),Rr=fi(ui(ci,di,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 hi{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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ne(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function gi(){const e=a.getCurrentInstance();return new hi(e.proxy)}function kr(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 mi(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=kr(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 pi(e){return{text:e,value:e}}function yi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const jr={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 bi(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...jr},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=(w,V,L,A=!0)=>{const H=mi(n,w,V,L);if(H===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],A&&(i("update:modelValue",[]),i("change",[]));return}let W=!0;if(H.length!==d.value.length)W=!1;else for(let b=0;b<H.length;b++){const C=H[b],E=d.value[b];if(!kr(n,C,E)){W=!1;break}}if(!W){d.value=H;let b=[],C=[];H.forEach(B=>{b.push(Je(n,B)),n.valueType==="text"?C.push(Ze(n,B)):n.valueType==="item"?C.push(B):C.push(Je(n,B))}),u.value=b;const E=a.toRaw(C);A&&(i("update:modelValue",E),i("change",E))}},f=a.ref([]),v=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,w=>re(w)),x=gi(),$=async(w,V)=>{if(w){const L=await x.load("checkbox",w,V);if(L.length>0)if(typeof L[0]=="string"){let W=L.map(b=>pi(b));f.value=W}else f.value=L}};a.watch([()=>n.source,()=>n.params],async([w,V])=>{$(w,V)},{immediate:!v.value});let p=!1;const T=()=>{p||(p=!0,$(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([w,V])=>{c(V,n.valueType,w,!1)});const S=e,O=a.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),q=w=>{c(w,"value",f.value,!0)};let R=ee(n,"hintText"),k=ee(n,"hintVisible");const I=(w,V)=>{const L=[];return w.forEach((A,H)=>{const W=Je(n,A),b=Ze(n,A),C=yi(n,A,H)??{};let E=C.disabled;o.value===!0&&(E=o.value);const B=`${W}_${H}`,y={...C,key:B,class:n.itemClass,label:W,disabled:E,size:n.size,border:re(n.border)};n.itemType==="button"?L.push(a.h(g.ElCheckboxButton,y,{default:()=>[b]})):typeof V=="function"?L.push(a.h(g.ElCheckbox,y,{default:()=>V(A)})):L.push(a.h(g.ElCheckbox,y,{default:()=>[b]}))}),L};return()=>{const V={...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:q},L=[],A={};l.slots.options?A.default=l.slots.options:A.default=()=>I(f.value,l.slots.text);const H=a.h(g.ElCheckboxGroup,V,A);L.push(H);const W={default:()=>L};l.slots.default&&(W.label=l.slots.default);const C={...ge(n,jr),hintText:R.value,hintVisible:k.value,prop:`${n.prop??l.attrs.name}_item`};return v.value&&(C["appear-listen"]=!0,C.onAppear=T),a.h(r,C,W)}}}}const{componentName:wi,create:vi,scope:Si}=J("checkbox-item"),Mr=vi(bi(wi,Si,de)),qr={modelValue:{type:[Number,String],required:!1}};function $i(e,t,r){return{props:{...ue,...me,...qr},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=ee(n,"modelValue",p=>ae(p)),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let v=ee(n,"hintText"),x=a.ref(!1);const $=a.ref();return fe({}),()=>{const T={...l.attrs,ref:$,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:f},S={},O=[],q=a.h(g.ElRate,T,S);O.push(q);const R={default:()=>O};if(l.slots.default){const V=l.slots.default();R.label=()=>V}const I={...ge(n,qr),hintText:v.value,hintVisible:x.value,prop:`${n.prop}_item`};return a.h(r,I,R)}}}}const{componentName:Ei,create:xi,scope:Ci}=J("rate-item"),Dr=xi($i(Ei,Ci,de)),Lr={modelValue:{type:[Boolean,String,Number],required:!1}};function Ti(e,t,r){return{props:{...ue,...me,...Lr},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=ee(n,"modelValue"),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let v=ee(n,"hintText"),x=ee(n,"hintVisible");const $=a.ref();return fe({}),()=>{const T={...l.attrs,ref:$,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:f},S={},O=[],q=a.h(g.ElSwitch,T,S);O.push(q);const R={default:()=>O};if(l.slots.default){const V=l.slots.default();R.label=()=>V}const I={...ge(n,Lr),hintText:v.value,hintVisible:x.value,prop:`${n.prop}_item`};return a.h(r,I,R)}}}}const{componentName:Oi,create:Vi,scope:Ii}=J("switch-item"),Br=Vi(Ti(Oi,Ii,de)),_r={modelValue:{type:[Boolean,String,Number],required:!1}};function Ni(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=ee(n,"modelValue"),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let v=ee(n,"hintText"),x=ee(n,"hintVisible");const $=a.ref();return fe({}),()=>{const T={...l.attrs,ref:$,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,["onUpdate:modelValue"]:f},S={};l.slots.option&&(S.default=l.slots.option);const O=[],q=a.h(g.ElTreeSelect,T,S);O.push(q);const R={default:()=>O};if(l.slots.default){const V=l.slots.default();R.label=()=>V}const I={...ge(n,_r),hintText:v.value,hintVisible:x.value,prop:`${n.prop}_item`};return a.h(r,I,R)}}}}const{componentName:Ai,create:Ri,scope:ki}=J("tree-select-item"),Fr=Ri(Ni(Ai,ki,de)),ji=Symbol.for("InnerPageScopeKey"),Mi=Symbol.for("PageWrapperKey");function qi(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(ji,!0);const l={};a.provide(Mi,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:Rs,create:Di,scope:ks}=J("dialog-item"),Pr=Di(qi()),{componentName:js,create:Li}=J("ext-icon"),Hr=Li({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:Q(e.size),width:Q(e.size),height:Q(e.size)},onClick:n,src:s?e.name:""},r.default?.())}}});function Bi(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},v=n.default?n.default():[],x=a.h("div",f,v),$={class:o.value};return a.h("div",$,[c,x])}}}}const{componentName:_i,create:Fi,scope:Ms}=J("indicator"),zr=Fi(Bi(_i));function Pi(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const Hi={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}};function zi(e,t){return{props:{...Hi},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&&re(r.showOverflowTooltip)){const c=d.clientWidth,f=Pi(d);l.value=f<=c}};let u=null;return a.onMounted(()=>{if(!re(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={class:s.value,ref:o,...n.attrs},c=a.h(r.tag,d,{default:n.slots.default}),f={disabled:l.value};return a.h(g.ElTooltip,f,{default:()=>c,content:n.slots.default})}}}}const{componentName:Ki,create:Wi,scope:qs}=J("text"),Kr=Wi(zi(Ki)),Gi={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:Tt.ArrowUp}};function Yi(e,t,r){return{props:{...Gi},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=ee(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 v={class:d.value},x=r(n.icon,v);return x&&f.push(x),a.h("div",{class:o.value,onClick:c},f)}}}}const{componentName:Ui,create:Xi,scope:Zi}=J("more-button"),Wr=Xi(Yi(Ui,Zi,(e,t)=>(e=e??Tt.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function Ji(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:n}){return Nn(r.name,r.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Ls,create:Qi,scope:Bs}=J("domain-provider"),Gr=Qi(Ji());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 Yr={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",v="quarter",x="year",$="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+)?$/,S=/\[([^\]]+)]|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("_")},q=function(b,C,E){var B=String(b);return!B||B.length>=C?b:""+Array(C+1-B.length).join(E)+b},R={s:q,z:function(b){var C=-b.utcOffset(),E=Math.abs(C),B=Math.floor(E/60),y=E%60;return(C<=0?"+":"-")+q(B,2,"0")+":"+q(y,2,"0")},m:function b(C,E){if(C.date()<E.date())return-b(E,C);var B=12*(E.year()-C.year())+(E.month()-C.month()),y=C.clone().add(B,f),D=E-y<0,_=C.clone().add(B+(D?-1:1),f);return+(-(B+(E-y)/(D?y-_:_-y))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:f,y:x,w:c,d,D:$,h:u,m:i,s,ms:o,Q:v}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},k="en",I={};I[k]=O;var w=function(b){return b instanceof H},V=function b(C,E,B){var y;if(!C)return k;if(typeof C=="string"){var D=C.toLowerCase();I[D]&&(y=D),E&&(I[D]=E,y=D);var _=C.split("-");if(!y&&_.length>1)return b(_[0])}else{var j=C.name;I[j]=C,y=j}return!B&&y&&(k=y),y||!B&&k},L=function(b,C){if(w(b))return b.clone();var E=typeof C=="object"?C:{};return E.date=b,E.args=arguments,new H(E)},A=R;A.l=V,A.i=w,A.w=function(b,C){return L(b,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var H=function(){function b(E){this.$L=V(E.locale,null,!0),this.parse(E)}var C=b.prototype;return C.parse=function(E){this.$d=function(B){var y=B.date,D=B.utc;if(y===null)return new Date(NaN);if(A.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var _=y.match(T);if(_){var j=_[2]-1||0,G=(_[7]||"0").substring(0,3);return D?new Date(Date.UTC(_[1],j,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)):new Date(_[1],j,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)}}return new Date(y)}(E),this.$x=E.x||{},this.init()},C.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()},C.$utils=function(){return A},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(E,B){var y=L(E);return this.startOf(B)<=y&&y<=this.endOf(B)},C.isAfter=function(E,B){return L(E)<this.startOf(B)},C.isBefore=function(E,B){return this.endOf(B)<L(E)},C.$g=function(E,B,y){return A.u(E)?this[B]:this.set(y,E)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(E,B){var y=this,D=!!A.u(B)||B,_=A.p(E),j=function(Y,K){var U=A.w(y.$u?Date.UTC(y.$y,K,Y):new Date(y.$y,K,Y),y);return D?U:U.endOf(d)},G=function(Y,K){return A.w(y.toDate()[Y].apply(y.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(K)),y)},m=this.$W,N=this.$M,M=this.$D,F="set"+(this.$u?"UTC":"");switch(_){case x:return D?j(1,0):j(31,11);case f:return D?j(1,N):j(0,N+1);case c:var P=this.$locale().weekStart||0,z=(m<P?m+7:m)-P;return j(D?M-z:M+(6-z),N);case d:case $: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()}},C.endOf=function(E){return this.startOf(E,!1)},C.$set=function(E,B){var y,D=A.p(E),_="set"+(this.$u?"UTC":""),j=(y={},y[d]=_+"Date",y[$]=_+"Date",y[f]=_+"Month",y[x]=_+"FullYear",y[u]=_+"Hours",y[i]=_+"Minutes",y[s]=_+"Seconds",y[o]=_+"Milliseconds",y)[D],G=D===d?this.$D+(B-this.$W):B;if(D===f||D===x){var m=this.clone().set($,1);m.$d[j](G),m.init(),this.$d=m.set($,Math.min(this.$D,m.daysInMonth())).$d}else j&&this.$d[j](G);return this.init(),this},C.set=function(E,B){return this.clone().$set(E,B)},C.get=function(E){return this[A.p(E)]()},C.add=function(E,B){var y,D=this;E=Number(E);var _=A.p(B),j=function(N){var M=L(D);return A.w(M.date(M.date()+Math.round(N*E)),D)};if(_===f)return this.set(f,this.$M+E);if(_===x)return this.set(x,this.$y+E);if(_===d)return j(1);if(_===c)return j(7);var G=(y={},y[i]=n,y[u]=l,y[s]=r,y)[_]||1,m=this.$d.getTime()+E*G;return A.w(m,this)},C.subtract=function(E,B){return this.add(-1*E,B)},C.format=function(E){var B=this,y=this.$locale();if(!this.isValid())return y.invalidDate||p;var D=E||"YYYY-MM-DDTHH:mm:ssZ",_=A.z(this),j=this.$H,G=this.$m,m=this.$M,N=y.weekdays,M=y.months,F=function(K,U,Z,te){return K&&(K[U]||K(B,D))||Z[U].slice(0,te)},P=function(K){return A.s(j%12||12,K,"0")},z=y.meridiem||function(K,U,Z){var te=K<12?"AM":"PM";return Z?te.toLowerCase():te},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:m+1,MM:A.s(m+1,2,"0"),MMM:F(y.monthsShort,m,M,3),MMMM:F(M,m),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:F(y.weekdaysMin,this.$W,N,2),ddd:F(y.weekdaysShort,this.$W,N,3),dddd:N[this.$W],H:String(j),HH:A.s(j,2,"0"),h:P(1),hh:P(2),a:z(j,G,!0),A:z(j,G,!1),m:String(G),mm:A.s(G,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:_};return D.replace(S,function(K,U){return U||Y[K]||_.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(E,B,y){var D,_=A.p(B),j=L(E),G=(j.utcOffset()-this.utcOffset())*n,m=this-j,N=A.m(this,j);return N=(D={},D[x]=N/12,D[f]=N,D[v]=N/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,y?N:A.a(N)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return I[this.$L]},C.locale=function(E,B){if(!E)return this.$L;var y=this.clone(),D=V(E,B,!0);return D&&(y.$L=D),y},C.clone=function(){return A.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},b}(),W=H.prototype;return L.prototype=W,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",d],["$M",f],["$y",x],["$D",$]].forEach(function(b){W[b[1]]=function(C){return this.$g(C,b[0],b[1])}}),L.extend=function(b,C){return b.$i||(b(C,H,L),b.$i=!0),L},L.locale=V,L.isDayjs=w,L.unix=function(b){return L(1e3*b)},L.en=I[k],L.Ls=I,L.p={},L})})(Yr);var es=Yr.exports;const ke=Ve(es);var Ur={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 S=T.match(/([+-]|\d\d)/g),O=60*S[1]+(+S[2]||0);return O===0?0:S[0]==="+"?-O:O}(p)}],f=function(p){var T=i[p];return T&&(T.indexOf?T:T.s.concat(T.f))},v=function(p,T){var S,O=i.meridiem;if(O){for(var q=1;q<=24;q+=1)if(p.indexOf(O(q,0,T))>-1){S=q>12;break}}else S=p===(T?"pm":"PM");return S},x={A:[s,function(p){this.afternoon=v(p,!1)}],a:[s,function(p){this.afternoon=v(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,S=p.match(/\d+/);if(this.day=S[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"),S=(f("monthsShort")||T.map(function(O){return O.slice(0,3)})).indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],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 $(p){var T,S;T=p,S=i&&i.formats;for(var O=(p=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,A,H){var W=H&&H.toUpperCase();return A||S[H]||r[H]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,C,E){return C||E.slice(1)})})).match(n),q=O.length,R=0;R<q;R+=1){var k=O[R],I=x[k],w=I&&I[0],V=I&&I[1];O[R]=V?{regex:w,parser:V}:k.replace(/^\[|\]$/g,"")}return function(L){for(var A={},H=0,W=0;H<q;H+=1){var b=O[H];if(typeof b=="string")W+=b.length;else{var C=b.regex,E=b.parser,B=L.slice(W),y=C.exec(B)[0];E.call(A,y),L=L.replace(y,"")}}return function(D){var _=D.afternoon;if(_!==void 0){var j=D.hours;_?j<12&&(D.hours+=12):j===12&&(D.hours=0),delete D.afternoon}}(A),A}}return function(p,T,S){S.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var O=T.prototype,q=O.parse;O.parse=function(R){var k=R.date,I=R.utc,w=R.args;this.$u=I;var V=w[1];if(typeof V=="string"){var L=w[2]===!0,A=w[3]===!0,H=L||A,W=w[2];A&&(W=w[2]),i=this.$locale(),!L&&W&&(i=S.Ls[W]),this.$d=function(B,y,D){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*B);var _=$(y)(B),j=_.year,G=_.month,m=_.day,N=_.hours,M=_.minutes,F=_.seconds,P=_.milliseconds,z=_.zone,Y=new Date,K=m||(j||G?1:Y.getDate()),U=j||Y.getFullYear(),Z=0;j&&!G||(Z=G>0?G-1:Y.getMonth());var te=N||0,be=M||0,je=F||0,oe=P||0;return z?new Date(Date.UTC(U,Z,K,te,be,je,oe+60*z.offset*1e3)):D?new Date(Date.UTC(U,Z,K,te,be,je,oe)):new Date(U,Z,K,te,be,je,oe)}catch{return new Date("")}}(k,V,I),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),H&&k!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var b=V.length,C=1;C<=b;C+=1){w[1]=V[C-1];var E=S.apply(this,w);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}C===b&&(this.$d=new Date(""))}else q.call(this,R)}}})})(Ur);var ts=Ur.exports;const ns=Ve(ts);var Xr={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(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return v}});return s.bind(this)(f)}}})})(Xr);var rs=Xr.exports;const as=Ve(rs);var Zr={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,v,x,$,p){var T=f.name?f:f.$locale(),S=s(T[v]),O=s(T[x]),q=S||O.map(function(k){return k.slice(0,$)});if(!p)return q;var R=T.weekStart;return q.map(function(k,I){return q[(I+(R||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,v){return f.formats[v]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,p,T){return p||T.slice(1)})}(f.formats[v.toUpperCase()])},c=function(){var f=this;return{months:function(v){return v?v.format("MMMM"):i(f,"months")},monthsShort:function(v){return v?v.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(f,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(f.$locale(),v)},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(v){return d(f,v)},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)}}})})(Zr);var ls=Zr.exports;const os=Ve(ls);var Jr={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 v=s(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),x=this.diff(v,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)}}})})(Jr);var is=Jr.exports;const ss=Ve(is);var Qr={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}}})})(Qr);var us=Qr.exports;const cs=Ve(us);var ea={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")}}})})(ea);var fs=ea.exports;const ds=Ve(fs);var ta={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)}}})})(ta);var hs=ta.exports;const gs=Ve(hs);var na={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)}}})})(na);var ms=na.exports;const ps=Ve(ms);ke.extend(os),ke.extend(as),ke.extend(ns),ke.extend(ss),ke.extend(cs),ke.extend(ds),ke.extend(gs),ke.extend(ps);const ra=10;function ys(e,t){return e>t&&e>ra?"horizontal":t>e&&t>ra?"vertical":""}function bs(){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",v=()=>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 S=T.touches[0];s.value=S.clientX-e.value,i.value=S.clientY-t.value,l.value=S.clientX,o.value=S.clientY,u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-r.value,c.value||(c.value=ys(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:v}}const ws=[Bn,_n,Fn,Pn,Kn,de,Zn,Jn,xt,er,lr,ir,ur,fr,yr,wr,$r,xr,Tr,Ir,Rr,Mr,Dr,Br,Fr,Pr,Qt,Ut,Hr,zr,Kr,Wr,Gr],vs=new Fa(ws,[za],"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=$r,h.CheckboxItem=Mr,h.Content=Pn,h.DataItemsKey=ze,h.DateItem=ir,h.DialogItem=Pr,h.Domain=ht,h.DomainKey=ve,h.DomainProvider=Gr,h.ExtIcon=Hr,h.FooterBar=Fn,h.Group=Kn,h.HeaderBar=_n,h.HintText=xt,h.Indicator=zr,h.InputItem=er,h.InputNumberItem=wr,h.Item=de,h.Mapping=Qt,h.MoneyItem=yr,h.MoreButton=Wr,h.Page=Bn,h.Price=Ut,h.PriorityPolicy=Te,h.RadioItem=Rr,h.RateItem=Dr,h.RowItem=Jn,h.SelectItem=lr,h.SlotItem=Zn,h.SwitchItem=Br,h.TableItem=Ir,h.TableMappingColumn=Tr,h.Text=Kr,h.TimeItem=ur,h.TimeSelectItem=fr,h.TreeSelectItem=Fr,h.UniqueID=Un,h.ValidateSchema=On,h.ValidateSchemaKey=xe,h.clearNonNumber=ba,h.clone=Bt,h.compareTo=Mt,h.createBroadcast=ct,h.createValidateSchema=dt,h.debounce=at,h.debounceRef=Ra,h.decimalLength=vn,h.default=vs,h.defineBroadcast=Ea,h.defineConfigDomain=Nn,h.defineDataItem=Rn,h.defineDomain=Ht,h.defineItem=ce,h.definePageState=kn,h.deleteGlobalValidator=Oa,h.disabledProperty=ye,h.divide=jt,h.excludeProps=ge,h.extend=qe,h.floatData=$a,h.getGlobalValidateCheckEvents=xn,h.getGlobalValidateResetEvents=Tn,h.getPageContentAreaHeight=yt,h.getPageContentAreaWidth=bt,h.getPageFooterAreaHeight=pt,h.getPageHeaderAreaHeight=mt,h.getRootDomain=Ke,h.hasSymbol=dn,h.includeProps=Sa,h.indexOf=wa,h.installRules=An,h.integerLength=wn,h.isArray=la,h.isArrayLike=mn,h.isBrowser=He,h.isDate=sa,h.isESModule=da,h.isEmptyString=ie,h.isEqual=De,h.isFunction=Dt,h.isHidden=gn,h.isInnerPage=ja,h.isMap=oa,h.isNumberString=bn,h.isObject=Ne,h.isPlainObject=Lt,h.isPromise=fa,h.isRegExp=yn,h.isSet=ia,h.isString=ua,h.isSubPage=Ma,h.isSymbol=ca,h.isWindow=hn,h.lastIndexOf=va,h.makeArray=pa,h.merge=pn,h.multiply=sn,h.negate=un,h.nextTick=ga,h.numberFormat=qt,h.objectToString=fn,h.property=Se,h.raf=ya,h.readonlyProperty=pe,h.setGlobalValidateCheckEvents=Va,h.setGlobalValidateHandler=Ca,h.setGlobalValidateMessages=Na,h.setGlobalValidateResetEvents=Ia,h.setGlobalValidator=Ta,h.throttle=In,h.toBoolean=re,h.toNumber=ae,h.toPadding=Ee,h.toPx=ne,h.toPxDesc=Q,h.toTypeString=st,h.toValue=ee,h.typeOf=ut,h.unNumberFormat=cn,h.updatePageState=zt,h.useBroadcast=nt,h.useDomain=Ce,h.useExpose=fe,h.usePageState=gt,h.usePosition=Wn,h.useRect=$t,h.useTouch=bs,h.valueLength=tt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function it(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]=Vt(he(e),he(t)),r==1&&(n==1?e=Ot(e):t=Ot(t));let l=nn(e,t);return r?r==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Ot(l)):he(l)}function Ot(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 Vt(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]=Vt(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?"-":"")+Nt(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=Nt(s),s.length>t)?(n?"-":"")+Nt(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 Nt(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 v=0;for(let E=t.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(v+=parseInt(e[u[E]--])*parseInt(t[E]));v+=i,i=Math.floor(v/10),c=v%10+c,d--}return c=et(oa(c,o)),r==1&&(c="-"+c),c}function oa(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function 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=it(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=kt(t),it(e,t)}function kt(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]=Vt(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),it(t,r)}add(t){return new X(it(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),kt(t)}negate(){return new X(kt(this.value))}}function sn(e,t){return X.multiply(`${e}`,`${t}`)}function jt(e,t,r=8){return X.divide(`${e}`,`${t}`,r)}function Mt(e,t){return e=`${e}`,t=`${t}`,X.compareTo(e,t)}function un(e){return X.negate(e)}function qt(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="",v=i.split("").reverse();for(let E=0;E<v.length;E++)f+=v[E]+((E+1)%n==0&&E+1!=v.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 ia=Array.isArray,sa=e=>st(e)==="[object Map]",ua=e=>st(e)==="[object Set]",ca=e=>e instanceof Date,Dt=e=>typeof e=="function",fa=e=>typeof e=="string",da=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",ha=e=>Ie(e)&&Dt(e.then)&&Dt(e.catch),fn=Object.prototype.toString,st=e=>fn.call(e),Lt=e=>st(e)==="[object Object]",dn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ga(e){return e.__esModule||dn&&e[Symbol.toStringTag]==="Module"}const ma=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function qe(...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]=qe(l,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Bt(e,t,r=!1){if(!r)qe(!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)&&!Lt(s))continue;o=Bt(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)&&!Lt(s))continue;o=Bt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const _t=ma?Promise.resolve():null;function pa(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 re(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 ya={"[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 ut(e){let r=Object.prototype.toString.call(e);return e==null?String(e):ya[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=ut(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 ba(e,t=[]){let r=t;return e!=null&&(mn(Object(e))?pn(r,typeof e=="string"?[e]:e):r.push(e)),r}function De(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=ut(e),n=ut(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(!De(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(!De(o,s))return!1}return!0}return!1}const He=typeof window<"u",wa=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 vn(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 Sn(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 va(e,t=!0,r=!0){t?e=Sn(e,".",/\./g):e=e.replace(/\./g,""),r?e=Sn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(De(e,r))return!0}):t.indexOf(e)}function $a(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(De(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 Ea=(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 ct(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 Ca(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 Ta{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 $n=new Ta;function Oa(e){$n=e}function Va(e,t){Le(Me).setValidator(e,t)}function Na(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 ft(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 Ee=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=ft(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=ft(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=$n;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=ft(t):this.rules=ft([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 v="error";Array.isArray(f.errors)&&f.errors.length>0&&(v=f.errors[0].message??v,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(v)}return f}).catch(f=>{const v=f.message??`${f}`;return this.error(v),f})}}return Promise.resolve({pass:!0})}}function dt(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 ka{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 ja(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 ve=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class ht{_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 Ma=new ht;function Ke(){return Ma}function Ce(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[ve]??a.inject(ve,null):a.inject(ve,null)}const Pt=Symbol("OriginalDateKey");function Ht(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(ve,null);s===null&&(s=Ke());const i=e||t.prop||t.name,u=new ht(i);u.parent=s;const d=p=>{o[Pt]||v(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,f=()=>o[Pt]??null,v=p=>{const T={};qe(!0,T,a.toRaw(p)),o[Pt]=T};a.isReactive(t)?a.watchEffect(()=>{u.merge(t,r)}):u.merge(t,r),t.modelValue&&v(t.modelValue),o[ve]=u,a.provide(ve,u);let E=null,S=null;if(l!==null){const p=a.inject(se,null);E=ct(o,p,i,n),u.broadcast=E,o[se]=E,a.provide(se,E),o.broadcast=($,O,...q)=>Reflect.apply(E.emit,E,[$,O,...q]);const T=a.inject(Ee,null);S=dt(o,T,{componentName:""}),u.validateSchema=S,o[Ee]=S,a.provide(Ee,S),o[ze]=new Map,o.validate=($=!0)=>{const O=[];let q=null;const k={deep:!1};if($===!0)q={name:"*"};else if(Array.isArray($)&&$.length>0){const V=$;q={name:I=>I?V.indexOf(I)!==-1:!1}}else if($!=null&&typeof $=="object"){const V=$;if(k.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const I=V.include;q={name:y=>y?I.indexOf(y)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const I=V.exclude;q={name:y=>y?I.indexOf(y)===-1:!1}}else q={name:"*"}}if(q){const V=E?.emitToChildren(q,"validate",k);V&&Reflect.apply([].push,O,V)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(V=>{let I=[];return V.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(I=[...I,...y.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=($,O=!0)=>{if(O){const q=Reflect.ownKeys($),k=[...q],V={name:I=>{const y=q.includes(I);if(y){const N=k.findIndex(L=>I===L);N!==-1&&k.splice(N,1)}return y}};E?.emitToChildren(V,"setNameValidateRules",$,!1),k.length>0&&k.forEach(I=>{let y=String(I);const L=Rn(u,y,{componentName:"",fieldName:y,pureDataValidate:!0},E,S);o[ze].set(y,L);const R=$[y];R&&L.validateSchema.setRule(R)})}},o.clearValidate=($=!0)=>{let O=null;if($===!0)O={name:"*"};else if(Array.isArray($)&&$.length>0){const q=$;O={name:k=>k?q.indexOf(k)!==-1:!1}}else if($!=null&&typeof $=="object"){const q=$;if(Array.isArray(q.include)&&q.include.length>0){const k=q.include;O={name:V=>V?k.indexOf(V)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const k=q.exclude;O={name:V=>V?k.indexOf(V)===-1:!1}}else O={name:"*"}}O&&E?.emitToChildren(O,"clearValidate",!1)},o.resetFields=$=>{const O=c();if(!O)return;const q={};if(qe(!0,q,f()??{}),Array.isArray($))$.forEach(k=>{O[k]=q[k]});else if($&&Array.isArray($.include))($.include??[]).forEach(V=>{O[V]=q[V]});else if($&&Array.isArray($.exclude)){let k=$.exclude??[];Reflect.ownKeys(q).forEach(V=>{k.includes(V)||(O[V]=q[V])})}else Object.assign(O,q);o.clearValidate($)},o.setModelValue=($,O)=>{!O||O===i?d($):E?.emitToChildren({name:O},"setModelValue",$)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{u.destroy(),o[ve]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),E!==null&&(E.destroy(),o[se]=void 0),S!==null&&(S.destroy(),o[Ee]=void 0)}),u}function In(e,t,r=[]){const l=a.getCurrentInstance()?.proxy;let o=a.inject(ve,null);o===null&&(o=Ke());const s=e||t.prop||t.name,i=new ht(s);return i.parent=o,a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),l[ve]=i,a.provide(ve,i),a.onUnmounted(()=>{i.destroy(),l[ve]=void 0}),i}function An(e,t,r){const l=Ce(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=ct(l,s,o,r);l[se]=i,a.provide(se,i),l.broadcast=(S,p,...T)=>Reflect.apply(i.emit,i,[S,p,...T]);const u=a.inject(Ee,null);e.fieldName=e.fieldName??o;const d=dt(l,u,e);l[Ee]=d,a.provide(Ee,d),An(l,d,o),l.validate=(S=null)=>{const p=[];let T=!1,$=!1;if(Array.isArray(S)&&S.indexOf(o)!==-1)$=!0,T=!0;else if(S&&typeof S=="object"){const O=S;O.ignoreHidden===!0&&gn(l.$el)?$=!1:(Array.isArray(O.include)&&O.include.indexOf(o)!==-1||Array.isArray(O.exclude)&&O.exclude.indexOf(o),$=!0),T=O.deep??!1}else typeof S=="boolean"&&(T=S),$=!0;if($){const O=d?.validate();p.push(O)}if(T){let O=null;const q={deep:!1};if(S===!0)O={name:"*"};else if(Array.isArray(S)&&S.length>0){const k=S;O={name:V=>V?k.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const k=S;if(q.ignoreHidden=k.ignoreHidden,Array.isArray(k.include)&&k.include.length>0){const V=k.include;O={name:I=>I?V.indexOf(I)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const V=k.exclude;O={name:I=>I?V.indexOf(I)===-1:!1}}else O={name:"*"}}if(O){const k=i.emitToChildren(O,"validate",q);Reflect.apply([].push,p,k)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(O=>{let q=[];return O.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(q=[...q,...k.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=S=>d?.setRule(S),l.setNameValidateRules=(S,p=!1)=>{const T=S[o];if(T&&d?.setRule(T),p){const $={name:O=>Reflect.ownKeys(S).includes(O)};i.emitToChildren($,"setNameValidateRules",S,!1)}},l.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(t??"")!==-1)&&d?.clear();let p=null;if(S===!0)p={name:"*"};else if(Array.isArray(S)&&S.length>0){const T=S;p={name:$=>$?T.indexOf($)!==-1:!1}}else if(S!=null&&typeof S=="object"){const T=S;if(Array.isArray(T.include)&&T.include.length>0){const $=T.include;p={name:O=>O?$.indexOf(O)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const $=T.exclude;p={name:O=>O?$.indexOf(O)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new ka(l);l[Vn]=c;const f=at((S="validate")=>{S==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:En()).forEach(S=>{c.on(S,p=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Tn()).forEach(S=>{c.on(S,p=>{f("reset")})}),a.onUnmounted(()=>{i.destroy(),l[se]=void 0,d.destroy(),l[Ee]=void 0,c.destroy(),l[Vn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(S,...p)=>{Reflect.apply(c.emit,c,[S,...p])},onEvent:(S,p)=>{Reflect.apply(c.on,c,[p])},offEvent:(S,p)=>{Reflect.apply(c.off,c,[p])}}}function Rn(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=dt({},l,r);o.validate=(d=null)=>{const c=[];let f=!1,v=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)v=!0,f=!0;else if(d&&typeof d=="object"){const E=d;Array.isArray(E.include)&&E.include.indexOf(s)!==-1||Array.isArray(E.exclude)&&E.exclude.indexOf(s),v=!0,f=E.deep??!1}else typeof d=="boolean"&&(f=d),v=!0;if(v){const E=i?.validate();c.push(E)}if(f){let E=null;const S={deep:!1};if(d===!0)E={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;E={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;E={name:$=>$?T.indexOf($)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const T=p.exclude;E={name:$=>$?T.indexOf($)===-1:!1}}else E={name:"*"}}if(E){const p=u.emitToChildren(E,"validate",S);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(E=>{let S=[];return E.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(S=[...S,...p.errors])}),S.length>0?{pass:!1,errors:S}:{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=ct(null,n,s,o);return{broadcast:u,validateSchema:i}}const Q=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${te(e,t)}px`:"";function te(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=te(e.top)),e.left!==null&&e.left!==void 0&&(t.left=te(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=te(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=te(e.right))),t}function zt(e,t,r={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=te(r.headerHeight??t.headerHeight),e.headerPadding=xe(r.headerPadding??t.headerPadding),e.footerHeight=te(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=te(u,o):e.height=te(o)-te(s,o)-te(i,o),e.width=te(r.width??t.width??0,l)}}function kn(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=te(l.top),n.safeAreaBottom=te(l.bottom),n.safeAreaLeft=te(l.left),n.safeAreaRight=te(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=yt(e,f),n.width=bt(e,f),a.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=yt(e,f),c.width=bt(e,f)}));const v=!f;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,S,p=-1,T=-1,$=0,O=0])=>{zt(c,S,t,v,p,T,$,O)}),e.set(Ae,c),c}function gt(e){return e.get(Ae)}function mt(e,t){return t=t??e.get(Ae),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function pt(e,t){return t=t??e.get(Ae),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function yt(e,t){if(t=t??e.get(Ae),t){const r=mt(e,t),n=pt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function bt(e,t){return t=t??e.get(Ae),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function qa(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 Te=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Te||{});function Kt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Se(e,t,r=1,n){const l=Ce();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 Se(e,"readonly",0,function(r){return re(r)})}function ye(e){return Se(e,"disabled",0,function(r){return re(r)})}function ne(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,wt=new Map;let Wt=null;function La(e){Wt=e}function Mn(e,t,r){if(r){let n=wt.get(r);n||(n=new Map,wt.set(r,n)),n.set(e,t)}else jn.set(e,t)}function Be(e,t,r){!r&&Wt&&(r=Wt(e)??void 0);let n=null;if(r){let l=wt.get(r);l&&(n=l.get(t))}return n||(n=jn.get(t)),n}function Ba(e,t){for(let r in e){const n=e[r];Mn(r,n,t)}}function _a(e){wt.delete(e)}function Fa(){return{top:0,left:0,bottom:0,right:0}}function Pa(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-te(e,n)-te(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 Ha{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=qe({},Fa(),t.safeAreaInset),s=Pa(n,l),i=qe({},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){Mn(t,r,n)}getAPI(t,r,n){return Be(t,r,n)}batchSetAPI(t,r){Ba(t,r)}clearScopeAPI(t){_a(t)}getRootDomain(){return Ke()}}const za=[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],Ka=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],Wa=e=>{za.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Ka.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}},qn={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"}},Dn={name:{type:String,required:!1},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}},Ln=[];for(const e in Dn)Ln.push(e);function fe(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ga=Symbol.for("InnerPageScopeKey"),Ya=(e,t)=>({inheritAttrs:!0,props:{...ue,...qn,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=kn(l,r);fe({getPageContentHeight:()=>yt(l,d),getPageContentWidth:()=>bt(l,d),getPageHeaderHeight:()=>mt(l,d),getPageFooterHeight:()=>pt(l,d)});const c=a.inject(Ga,!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),v=a.toRaw(d),E=v?Reflect.ownKeys(v):[];(f?Reflect.ownKeys(f):[]).forEach(p=>{E.includes(p)||(v[p]=[])}),u(v)},{deep:!0}),a.onMounted(()=>{if(r.rules){const d=a.toRaw(r.rules);u(d)}}),a.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:Ua,create:Xa,scope:Os}=J("page"),Za=Xa(Ya(Ua));function Ja(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 _e=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},Bn=_e(Za,[["render",Ja]]),Qa=(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=Ce(),o=l?gt(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),i=r.height!==null&&r.height!==void 0?te(r.height):null,u=a.computed(()=>{const y={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(y,N),i&&(o.headerHeight=i),y.height=o.headerHeight,y.safeAreaTop=o.safeAreaTop,y.safeAreaTop&&(y.top=y.safeAreaTop+(N.top??0),y.height=y.height+o.safeAreaTop),y.height,y.safeAreaTop,y}if(i&&(y.height=i),r.padding){const N=xe(r.padding);Object.assign(y,N)}return y});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=a.computed(()=>{const y={};return u.value.height!==null&&u.value.height!==void 0&&(y.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(y.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(y.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(y.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(y.paddingBottom=`${u.value.bottom}px`),y}),c=a.computed(()=>{const y={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(y.top=`${u.value.safeAreaTop}px`),y}),f=a.computed(()=>{const y={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(y.top=`${u.value.safeAreaTop}px`),y}),v=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),E=a.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),S=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 y={};return typeof r.leftIcon=="object"?Object.assign(y,r.leftIcon):y.name=r.leftIcon,y}),$=a.computed(()=>{let y={};return typeof r.titleIcon=="object"?Object.assign(y,r.titleIcon):y.name=r.titleIcon,y}),O=a.computed(()=>{let y={};return typeof r.rightIcon=="object"?Object.assign(y,r.rightIcon):y.name=r.rightIcon,y});function q(){n.emit("back")}function k(){n.emit("click-title")}function V(){n.emit("click-right")}function I(){n.emit("click-right-text")}return{classes:s,styles:d,mHeaderShow:E,leftStyles:c,rightStyles:f,mLeftShow:v,mTitleShow:S,mRightShow:p,mLeftIcon:T,mTitleIcon:$,mRightIcon:O,handleLeft:q,handleCenter:k,handleRight:V,handleRightText:I}}}),{componentName:el,create:tl,scope:Vs}=J("header-bar"),nl=tl(Qa(el)),rl={key:1,class:"fox-header-bar__title"};function al(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",rl,[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=_e(nl,[["render",al]]);function ll(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=Ce(),o=l?gt(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?te(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=Q(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(c.paddingTop=Q(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(c.paddingLeft=Q(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(c.paddingRight=Q(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(c.paddingBottom=Q(u.value.bottom)),c});return{classes:s,styles:d}}}}const{componentName:ol,create:il,scope:Ns}=J("footer-bar"),sl=il(ll(ol));function ul(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=_e(sl,[["render",ul]]);function cl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Ce(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const i=gt(n);if(i){if(r.padding){const f=xe(r.padding);Object.assign(i.contentPadding,f)}const u=mt(n,i),d=pt(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:fl,create:dl,scope:Is}=J("content"),hl=dl(cl(fl));function gl(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=_e(hl,[["render",gl]]),We="GroupStateKey",Hn=Symbol.for("GroupScopeKey");function vt(){return a.inject(Hn,!1)}function St(e=!0){a.provide(Hn,e)}function ml(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=te(o);const u=()=>{const d=t===""||t===-1,c=te(t);let f=ae(r);const v=te(n);if(!d){let p=(c-(f-1)*v)/f;for(;o!==-1&&f>1&&p<o;)f--,p=(c-(f-1)*v)/f}let E=!1;const S=s.layout;S.value.width=t,S.value.column!==f&&(S.value.column=f,E=!0),S.value.gutter!==v&&(S.value.gutter=v,E=!0),E&&a.triggerRef(S)};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 pl(e){return e===window}const $t=e=>{const t=a.unref(e);if(pl(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}},Re=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,yl=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},bl=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},wl=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"},vl=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 Sl(e,t,r){return{props:{...ue,...qn,...Dn},emits:["update:collapse"],setup(n,l){const o=Ht(n.name,n,Ln),s=ml(o,{type:n.type}),i=vt();St(!0);const u=a.computed(()=>i&&o?lt(o,!0).value:null),d=a.getCurrentInstance(),c=m=>{const A=d?.proxy;A&&typeof A.setNameValidateRules=="function"&&A.setNameValidateRules(m,!0)};a.watch(()=>n.rules,(m,A)=>{if(!m&&!A)return;const M=a.toRaw(A),F=a.toRaw(m),P=F?Reflect.ownKeys(F):[];(M?Reflect.ownKeys(M):[]).forEach(Y=>{P.includes(Y)||(F[Y]=[])}),c(F)},{deep:!0});const f=e,v=a.computed(()=>{const m={};if(m.height=H.value,u.value){const A=lt(o,!0);if(A.value.type==="flex"){if(n.width){const P=Q(n.width);m.width=P}else{const P=we(A.value.column,n.span);P>0&&(m.width=`${P}%`)}const M=we(A.value.column,n.offset);M>0&&(m["margin-left"]=`${M}%`);const F=A.value.gutter/2;F>0&&(m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`)}else if(A.value.type==="flow"){if(n.width){const P=Q(n.width);m.width=P}else{const P=we(A.value.column,n.span);P>0&&(m.width=`${P}%`)}const M=we(A.value.column,n.offset);M>0&&(m["margin-left"]=`${M}%`);const F=A.value.gutter/2;if(F>0){const P=o?Gt(o,!0):null;if(P){let z=ae(n.offset)+ae(n.span);(z===-1||z>A.value.column)&&(z=A.value.column);const Y=Math.ceil((P.index+1)/A.value.column),K=Math.ceil((P.index+z)/A.value.column);if(Y===K){const U=(P.index+1)%A.value.column,Z=(P.index+z)%A.value.column,ee=U===1?0:F,be=Z===0?0:F;m["padding-left"]=`${ee}px`,m["padding-right"]=`${be}px`}else{const U=z%A.value.column,Z=0,ee=U===0?0:F;m["padding-left"]=`${Z}px`,m["padding-right"]=`${ee}px`}P.index+=z}else m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`}}}else if(n.width){const A=Q(n.width);m.width=A}return m}),E=a.computed(()=>n.type==="flex"?{[`${Re("",n.type)}`]:!0,[`${Re("justify",n.justify)}`]:!0,[`${Re("align",n.align)}`]:!0,[`${Re("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${Re("",n.type)}`]:!0,[`${Re("justify",n.justify)}`]:!0,[`${Re("align",n.align)}`]:!0}:{[`${Re("",n.type)}`]:!0,[`${f}__gutter`]:!0}),S=a.toRef(n,"title"),p=a.toRef(n,"gutter"),T=a.toRef(n,"column"),$=a.computed(()=>i?!0:re(n.isWrap)),O=[],q=m=>{O.push(m)},k=()=>{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,A,M])=>{s.order.index=0,zn(o,m,A,M,!1,n.minItemWidth)});const I=a.computed(()=>C.value?n.expandText??"":n.collapseText??""),y=a.computed(()=>({[`${e}__header-collapse-text`]:!0})),N=a.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!C.value,["is-collapse"]:C.value})),L=a.ref(),R=a.ref(),H=a.computed(()=>b.value||Q(n.height)||""),W=a.ref(!1),b=a.ref(""),C=a.ref(!1);let x=-1;const B=(m,A=!0)=>{const M=L.value;if(M&&W.value!==m){if(x=x===-1?Yt(M):x,C.value=!0,A)if(M.style["will-change"]="height",M.ontransitionend=function(){M.ontransitionend=null,this.style["will-change"]="auto",m||(b.value="",C.value=!1)},m){let F=0;R.value&&R.value.classList.contains(`${e}__header`)&&(F=Yt(R.value)),b.value=`${x}px`,a.nextTick(()=>{b.value=`${F}px`})}else b.value=`${x}px`;else if(m){let F=0;R.value&&R.value.classList.contains(`${e}__header`)&&(F=Yt(R.value)),b.value=`${F}px`}else C.value=!1,b.value=`${x}px`;W.value=m,l.emit("update:collapse",m)}};a.watch(()=>n.collapse,m=>{B(m)});const w=()=>{D()},D=m=>{m=m??!W.value,B(m)};fe({toggleCollapse:D});let _=null;a.onMounted(()=>{if(n.rules){const m=a.toRaw(n.rules);c(m)}if(He&&(B(re(n.collapse),!1),n.autoLayout&&Array.isArray(O)&&O.length>0)){const m=O[0];V.value=$t(m).width,window.ResizeObserver&&(_=new window.ResizeObserver(()=>{const A=$t(m).width;A>0&&A!==V.value&&(V.value=A)}),_.observe(m))}}),a.onUnmounted(()=>{_?.disconnect()});const j=(m,A,M,F)=>{const P={...E.value};return A===0&&(P[`${f}__first`]=!0),M>=F-1&&(P[`${f}__last`]=!0),a.h("div",{ref:q,key:`${A}`,class:P},m)},G=m=>{if(typeof m.type=="symbol"){if(Array.isArray(m.children)){const A=[...m.children];for(let M=A.length-1;M>=0;M--){const F=A[M],P=G(F);P===null?A.splice(M,1):P.length>0&&Reflect.apply([].splice,A,[M,1,...P])}return A}return null}return[]};return()=>{s.order.index=0;const m=[];let A=0;if(l.slots.header){const z={key:`${A++}`,ref:R,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},Y=a.h("div",z,[l.slots.header()]);m.push(Y)}else{const z=[];if(S.value){if(n.showMark){const K={class:{[`${f}__header-mark`]:!0}};n.markColor&&(K.style={background:n.markColor});const U=a.h("div",K);z.push(U)}const Y=a.h("div",{class:{[`${f}__header-title`]:!0}},[S.value]);z.push(Y)}if(l.slots.toolbar&&z.push(l.slots.toolbar()),n.showCollapse){const Y=[];if(I.value){const Z={class:y.value},ee=a.h("span",Z,[I.value]);Y.push(ee)}const K={class:N.value},U=r(n.collapseIcon,K);if(U&&Y.push(U),Y.length>0){const Z=a.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:w},Y);z.push(Z)}}if(z.length>0){const Y={key:`${A++}`,ref:R,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},K=a.h("div",Y,z);m.push(K)}}k();const M=l.slots.default?l.slots.default():[];let F=[],P=0;if(n.type==="flex"){for(let z=0;z<M.length;z++){const Y=G(M[z]);if(Y===null)continue;Y.length>0&&Reflect.apply([].splice,M,[z,1,...Y]);const K=M[z];if(wl(K)==="fragment"){let ie=vl(K);ie>s.layout.value.column?ie=s.layout.value.column:ie<=0&&(ie=1);const Ne=P+ie;if(Ne>s.layout.value.column){const tn=j([...F],A++,z-1,M.length);m.push(tn),P=ie,F=[K]}else F.push(K),P=Ne;continue}const Z=yl(K),ee=bl(K);if(Z==="stretch"){if(P<s.layout.value.column){F.push(K);const ie=j([...F],A++,z,M.length);m.push(ie)}else{const ie=j([...F],A++,z-1,M.length);m.push(ie);const Ne=j([K],A++,z,M.length);m.push(Ne)}P=0,F=[];continue}let be=ae(Z);if(be===-1){if(F.length>0){const Ne=j([...F],A++,z-1,M.length);m.push(Ne)}const ie=j([K],A++,z,M.length);m.push(ie),P=0,F=[];continue}be>s.layout.value.column?be=s.layout.value.column:be<=0&&(be=1);const je=P+be+ee;if(je>s.layout.value.column){const ie=j([...F],A++,z-1,M.length);m.push(ie),P=be+ee,F=[K]}else F.push(K),P=je}if(F.length>0){const z=j([...F],A++,M.length,M.length);m.push(z)}}else if(n.type==="flow"){const z=j(M,A++,0,M.length);m.push(z)}else for(let z=0;z<M.length;z++){const Y=M[z],K=j([Y],A++,z,M.length);m.push(K)}return $.value?a.h("div",{ref:L,class:{[`${f}`]:!0,"is-collapse":C.value},style:v.value},[m]):m}}}}const{componentName:$l,create:xl,scope:El}=J("group"),Kn=xl(Sl($l,El,(e,t)=>(e=e??Tt.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function Cl(e){return e===window}const Tl=/matrix\((.+)\)/,Wn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Cl(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=Tl.exec(d);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(i+=Number(v[4]),u+=Number(v[5]))}}l=l.parentNode}return r-=o,n-=s,r+=i,n+=u,{x:r,y:n}};class Ol{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 Vl{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 Ol,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 Vl,Yn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:Nl,create:Il}=J("price"),Al=Il({props:{...Yn},setup(e){const t=a.computed(()=>({[Nl]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>tt(e.price)==0?"":qt(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"],kl=["innerHTML"];function jl(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,kl)):a.createCommentVNode("",!0)],2)}const Ut=_e(Al,[["render",jl]]),{componentName:xt,create:Ml}=J("hint-text"),ql=Ml({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(()=>({[xt]:!0})),c=a.ref(null),f=(I,y,N=10)=>{if(!He||!e.autoFit||y===!1||!I)return;const L=Wn(e.reference);r.value=L,L.y<e.reference.offsetHeight&&(o.value="bottom");const R=$t(e.reference);n.value=R.width,l.value=R.height,setTimeout(()=>{if(!c.value)return;const H=document.documentElement.clientWidth||document.body.clientWidth,W=c.value.offsetWidth;let b=H-(W+te(r.value.x));b<0?u.value=b:u.value=0},N)},v=at(()=>{f(e.message,e.visible)},10),E=a.computed(()=>e.visible&&S.value),S=a.ref(!0),p=at(I=>{const y=I[0];y&&(S.value=y.isIntersecting)},10),T=new IntersectionObserver(p);a.watch([()=>e.message,()=>e.visible],([I,y])=>{f(I,y)}),a.onMounted(()=>{f(e.message,e.visible),Gn.watch(e.reference,v),T.observe(e.reference)}),a.onBeforeMount(()=>{Gn.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const $=a.computed(()=>{const I={left:`${te(r.value.x)+u.value}px`,height:Q(e.popupHeight)};return e.placement==="bottom"?I.top=Q(r.value.y+l.value+s):I.top=Q(r.value.y-e.popupHeight-s-i),e.autoFit?I["min-width"]=Q(n.value):I.width=Q(n.value),I}),O=a.computed(()=>({[`${xt}__content`]:!0})),q=a.computed(()=>({})),k=a.computed(()=>({[`${xt}__arrow`]:!0,[`${xt}__arrow-${e.placement}`]:!0})),V=a.computed(()=>e.placement==="bottom"?{top:`${-s}px`,left:`${te(-u.value+20)}px`}:{top:"100%",left:`${te(-u.value+20)}px`});return{show:E,tipRef:c,classes:d,styles:$,textClasses:O,textStyles:q,arrowClasses:k,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 Et=_e(ql,[["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={},Bl=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()}},_l=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(Et,e);return a.render(n,t),e.id}},Fl=e=>{e.unmount=Zt;let t;if(e.id){if(t=e.id,Ge.has(t))return _l(e)}else t=`hinttext_${Bl.get()}`;e={...Xt,...e},e.id=t,Ge.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(Et,e);return a.render(n,r),document.body.appendChild(r),t},Pl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ct={show(e,t,r={},n=!0){return n&&Zt(),Pl(t),Fl({...r,message:t,reference:e})},hide(e){Zt(e)},install(e){e.config.globalProperties.$hintText=Ct}},{componentName:Xn,create:Hl}=J("item"),zl=Hl({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,t){ce({componentName:Xn,validate:!1},e.prop??t.attrs.name);const r=Ce(),n=vt();St(!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]=!!y.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=Q(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const A=we(l.value.column,e.offset);A>0&&(m["margin-left"]=`${A}%`);const M=l.value.gutter/2;M>0&&(m["padding-left"]=`${M}px`,m["padding-right"]=`${M}px`)}else if(l.value.type==="flow"){if(e.width)m.width=Q(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const A=we(l.value.column,e.offset);A>0&&(m["margin-left"]=`${A}%`);const M=l.value.gutter/2;if(M>0){const F=r?Gt(r,!1):null;if(F){let P=ae(e.offset)+ae(e.span);(P===-1||P>l.value.column)&&(P=l.value.column);const z=Math.ceil((F.index+1)/l.value.column),Y=Math.ceil((F.index+P)/l.value.column);if(z===Y){const K=(F.index+1)%l.value.column,U=(F.index+P)%l.value.column,Z=K===1?0:M,ee=U===0?0:M;m["padding-left"]=`${Z}px`,m["padding-right"]=`${ee}px`}else{const K=P%l.value.column,U=0,Z=K===0?0:M;m["padding-left"]=`${U}px`,m["padding-right"]=`${Z}px`}F.index+=P}else m["padding-left"]=`${M}px`,m["padding-right"]=`${M}px`}}else return e.width&&(m.width=Q(e.width)),m;else e.width&&(m.width=Q(e.width));return m}),u=a.ref(null),d=a.computed({get:()=>u.value??re(e.isRequired),set:m=>{u.value=m}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=Se(a.toRef(e,"labelPosition"),"labelPosition",Te.Near),v=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),E=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${v.value}`]:!0})),S=a.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Se(a.toRef(e,"labelWidth"),"labelWidth",Te.Near),T=a.computed(()=>p&&p.value?{width:Q(p.value)}:{}),$=a.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),O=a.computed(()=>({content:!0,[e.contentClass]:!0})),q=a.computed(()=>({...e.contentStyle})),k=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(m){d.value=m},setErrorTip(m){k.errorTip=m},setErrorIcon(m){k.errorIcon=m},setWarnTip(m){k.warnTip=m},setWarnIcon(m){k.warnIcon=m},setInfoTip(m){k.infoTip=m},setInfoIcon(m){k.infoIcon=m}});const V=a.computed(()=>e.infoTip||k.infoTip),I=a.computed(()=>e.infoIcon||k.infoIcon),y=a.computed(()=>e.warnTip||k.warnTip),N=a.computed(()=>e.warnIcon||k.warnIcon),L=a.computed(()=>e.errorTip||k.errorTip),R=a.computed(()=>e.errorIcon||k.errorIcon),H=a.computed(()=>L.value?"error":y.value?"warn":V.value?"info":""),W=a.computed(()=>H.value.length>0),b=a.computed(()=>H.value==="error"?L.value:H.value==="warn"?y.value:H.value==="info"?V.value:""),C=a.computed(()=>H.value==="error"?R.value:H.value==="warn"?N.value:H.value==="info"?I.value:null),x=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}),B=a.computed(()=>{let m={};return f&&f.value==="top"||!c.value?m["padding-left"]="0px":p&&p.value&&(m["padding-left"]=Q(p.value)),m}),w=a.ref();let D="";a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([m,A,M,F])=>{w.value&&(m&&!oe(A)?D?Ct.show(w.value,A,{...F,id:D,type:M},!0):D=Ct.show(w.value,A,{...F,type:M},!0):Ct.hide(D))});let _=null;const j=()=>{_||!w.value||(_=new IntersectionObserver(m=>{let A=!1;for(let M of m)if(M.intersectionRatio>0){A=!0,A&&t.emit("appear",M);break}A||t.emit("disappear")}),_.observe(w.value))},G=()=>{!_||!w.value||(_.unobserve(w.value),_=null)};return a.watch(()=>re(e.appearListen),m=>{m?j():G()}),a.onMounted(()=>{re(e.appearListen)&&j()}),a.onUnmounted(G),{classes:s,styles:i,mainClasses:E,hasLabel:c,labelClasses:S,labelStyles:T,labelStringClasses:$,contentClasses:O,contentStyles:q,contentRef:w,hasTip:W,mTip:b,mIcon:C,tipClasses:x,tipStyles:B}}}),Kl={key:0,class:"fox-item__tip--icon"},Wl={class:"fox-item__tip--text"};function Gl(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",Kl,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Wl,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const de=_e(zl,[["render",Gl]]);function Yl(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=Ce(),o=vt();St(!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=Q(r.width);else{const E=we(s.value.column,r.span);E>0&&(c.width=`${E}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const v=s.value.gutter/2;v>0&&(c["padding-left"]=`${v}px`,c["padding-right"]=`${v}px`)}else if(s.value.type==="flow"){if(r.width)c.width=Q(r.width);else{const E=we(s.value.column,r.span);E>0&&(c.width=`${E}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const v=s.value.gutter/2;if(v>0){const E=l?Gt(l,!1):null;if(E){let S=ae(r.offset)+ae(r.span);(S===-1||S>s.value.column)&&(S=s.value.column);const p=Math.ceil((E.index+1)/s.value.column),T=Math.ceil((E.index+S)/s.value.column);if(p===T){const $=(E.index+1)%s.value.column,O=(E.index+S)%s.value.column,q=$===1?0:v,k=O===0?0:v;c["padding-left"]=`${q}px`,c["padding-right"]=`${k}px`}else{const $=S%s.value.column,O=0,q=$===0?0:v;c["padding-left"]=`${O}px`,c["padding-right"]=`${q}px`}E.index+=S}else c["padding-left"]=`${v}px`,c["padding-right"]=`${v}px`}}else return r.width&&(c.width=Q(r.width)),c;else r.width&&(c.width=Q(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:Ul,create:Xl,scope:Rs}=J("slot-item"),Zn=Xl(Yl(Ul));function Zl(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=Ce(),i=vt();St(!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=Q(r.width)),c;if(r.width)c.width=Q(r.width);else{const S=we(f.value.column,r.span);S>0&&(c.width=`${S}%`)}const v=we(f.value.column,r.offset);v>0&&(c["margin-left"]=`${v}%`);const E=f.value.gutter/2;E>0&&(c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`)}else r.width&&(c.width=Q(r.width));return c}),d=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const S=n.slots.default();if(r.divide)for(let p=0;p<S.length;p++){if(p>0){const T=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(T)}c.push(S[p])}else Reflect.apply([].push,c,S)}const f={class:d.value},v=a.h("div",f,c),E={class:o.value,style:u.value};return a.h("div",E,[v])}}}}const{componentName:Jl,create:Ql,scope:ks}=J("row-item"),Jn=Ql(Zl(Jl)),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 eo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ne(n,"modelValue"),v=e,E=a.computed(()=>({[v]:!0,[`${v}__disabled`]:o.value,[`${v}__readonly`]:s.value})),S=b=>{f.value=b,i("update:modelValue",b),i("input",b)},p=b=>{i("change",b)};let T=ne(n,"hintText"),$=a.ref(!1);const O=b=>{let x=b.target.value;c.value=!0,oe(T.value)||($.value=!0),i("focus",x,b)},q=b=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let x=b.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),i("blur",x,b)},k=()=>{i("clear","")},V=a.ref(!1);let I=null;const y=()=>{n.showTooltip&&V.value===!1&&(I=setTimeout(()=>{V.value=!0},150))},N=()=>{I&&(clearTimeout(I),V.value=!1,I=null)},L=a.computed(()=>V.value||$.value),R=a.computed(()=>V.value?f.value:T.value),H=a.computed(()=>tt(n.unit)>0),W=a.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const C={...l.attrs,ref:W,class:E.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:k,onChange:p,onInput:S,onFocus:O,onBlur:q,onMouseover:y,onMouseleave:N},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:H.value&&(x.suffix=()=>[n.unit]);const B=[],w=a.h(g.ElInput,C,x);B.push(w);const D={default:()=>B};l.slots.default&&(D.label=l.slots.default);const j={...ge(n,Qn),hintText:R.value,hintVisible:L.value,prop:`${n.prop}_item`};return a.h(r,j,D)}}}}const{componentName:to,create:no,scope:ro}=J("input-item"),er=no(eo(to,ro,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 ao=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ie(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function lo(){const e=a.getCurrentInstance();return new ao(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 oo(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 io(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),v=(m,A,M,F=!0)=>{const P=rr(n,m,A,M);if(P===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 z=!0;if(P.length!==f.value.length)z=!1;else for(let Y=0;Y<P.length;Y++){const K=P[Y],U=f.value[Y];if(!nr(n,K,U)){z=!1;break}}if(!z){f.value=P;let Y=[],K=[];P.forEach(Z=>{Y.push(Ye(n,Z)),n.valueType==="text"?K.push(Fe(n,Z)):n.valueType==="item"?K.push(Z):K.push(Ye(n,Z))});let U;n.multiple?(c.value=Y,U=a.toRaw(K)):(c.value=Y[0]??"",U=a.toRaw(K[0]??"")),F&&(i("update:modelValue",U),i("change",U))}},E=a.ref(null),S=a.ref(null),p=a.computed(()=>S.value??E.value??[]),T=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,m=>re(m)),$=lo(),O=async(m,A)=>{if(m){const M=await $.load("select",m,A);if(M.length>0)if(typeof M[0]=="string"){let z=M.map(Y=>oo(Y));E.value=z}else E.value=M;else E.value=null}};a.watch([()=>n.source,()=>n.params],([m,A])=>{O(m,A)},{immediate:!T.value});let q=!1;const k=()=>{q||(q=!0,O(n.source,n.params))};a.watch([()=>p.value,()=>n.modelValue],([m,A])=>{v(A,n.valueType,m,!1)});let V=null,I=a.ref(!1);typeof n.remoteMethod=="function"&&(V=async m=>{if(m==null){S.value=null;return}I.value=!0;try{const A=await n.remoteMethod(m);S.value=A}catch(A){S.value=null,console.error(A)}I.value=!1});let y=null;typeof n.filterMethod=="function"&&(y=async m=>{if(m==null){S.value=null;return}I.value=!0;try{const A=await n.filterMethod(m,E.value);S.value=A}catch(A){S.value=null,console.error(A)}I.value=!1});const N=a.ref(!1),L=e,R=a.computed(()=>({[L]:!0})),H=m=>{n.allowCreate?(i("update:modelValue",m),i("change",m),c.value=m):v(m,"value",p.value,!0)};let W=ne(n,"hintText"),b=a.ref(!1);const C=m=>{let M=m.target.value;N.value=!0,oe(W.value)||(b.value=!0),i("focus",M,m)},x=m=>{setTimeout(()=>{b.value&&(b.value=!1),N.value=!1},0);let M=m.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),w.value||i("blur",M,m)},B=()=>{i("clear","")},w=a.ref(!1),D=m=>{w.value=m,i("visible-change",m),m||i("selected")},_=m=>{i("remove-tag",m)},j=(m,A)=>{const M=[];return m.forEach((F,P)=>{const z=tr(n,F);if(Array.isArray(z)&&z.length>0){const Y=j(z,A),K=Fe(n,F),Z={key:`${K}_${P}`,label:K};M.push(a.h(g.ElOptionGroup,Z,{default:()=>Y}))}else{const Y=Ye(n,F),K=Fe(n,F),U=re(F.disabled),ee={key:`${Y}_${P}`,label:K,disabled:U,value:Y};if(typeof A=="function")M.push(a.h(g.ElOption,ee,{default:()=>A(F)}));else if(n.optionType==="item"){const be={class:{"fox-select-item__option-left":!0}},je=a.h("span",be,[Y]),ie={class:{"fox-select-item__option-right":!0}},Ne=a.h("span",ie,[K]),tn=a.h("div",{class:{"fox-select-item__option":!0}},[je,Ne]);M.push(a.h(g.ElOption,ee,{default:()=>tn}))}else n.optionType==="value"?M.push(a.h(g.ElOption,ee,{default:()=>[Y]})):M.push(a.h(g.ElOption,ee))}}),M},G=a.ref();return fe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()}}),()=>{const A={...l.attrs,ref:G,class:R.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:B,onChange:H,onFocus:C,onBlur:x,onVisibleChange:D,onRemoveTag:_};typeof V=="function"&&(A["remote-method"]=V,A.loading=I.value),typeof y=="function"&&(A["filter-method"]=y,A.loading=I.value);const M={};l.slots.prefix&&(M.prefix=l.slots.prefix),l.slots.empty&&(M.empty=l.slots.empty),l.slots.options?M.default=l.slots.options:M.default=()=>j(p.value,l.slots.option);const F=[],P=a.h(g.ElSelect,A,M);F.push(P);const z={default:()=>F};l.slots.default&&(z.label=l.slots.default);const K={...ge(n,ar),hintText:W.value,hintVisible:b.value,prop:`${n.prop??l.attrs.name}_item`};return T.value&&(K["appear-listen"]=!0,K.onAppear=k),a.h(r,K,z)}}}}const{componentName:so,create:uo,scope:co}=J("select-item"),lr=uo(io(so,co,de)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function fo(e,t,r){return{props:{...ue,...me,...or},emits:["change","update:modelValue","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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ne(n,"modelValue"),v=e,E=a.computed(()=>({[v]:!0})),S=N=>{f.value=N,i("update:modelValue",N),i("change",N)};let p=ne(n,"hintText"),T=a.ref(!1);const $=N=>{let R=N.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",R,N)},O=N=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=N.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,N)},q=()=>{i("clear","")},k=N=>{i("calendar-change",N)},V=(N,L,R)=>{i("panel-change",N,L,R)},I=N=>{i("visible-change",N)},y=a.ref();return fe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},handleOpen:()=>{y?.value.handleOpen()},handleClose:()=>{y?.value.handleClose()}}),()=>{const L={...l.attrs,ref:y,class:E.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:S,onClear:q,onFocus:$,onBlur:O,onCalendarChange:k,onPanelChange:V,onVisibleChange:I},R={};l.slots["range-separator"]&&(R["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(R.default=l.slots.cell);const H=[],W=a.h(g.ElDatePicker,L,R);H.push(W);const b={default:()=>H};if(l.slots.default){const w=l.slots.default();b.label=()=>w}const x={...ge(n,or),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,x,b)}}}}const{componentName:ho,create:go,scope:mo}=J("date-item"),ir=go(fo(ho,mo,de)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function po(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ne(n,"modelValue"),v=e,E=a.computed(()=>({[v]:!0})),S=I=>{f.value=I,i("update:modelValue",I),i("change",I)};let p=ne(n,"hintText"),T=a.ref(!1);const $=I=>{let N=I.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",N,I)},O=I=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let N=I.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,I)},q=()=>{i("clear","")},k=I=>{i("visible-change",I)},V=a.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const y={...l.attrs,ref:V,class:E.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:S,onClear:q,onFocus:$,onBlur:O,onVisibleChange:k},N={},L=[],R=a.h(g.ElTimePicker,y,N);L.push(R);const H={default:()=>L};if(l.slots.default){const x=l.slots.default();H.label=()=>x}const b={...ge(n,sr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,b,H)}}}}const{componentName:yo,create:bo,scope:wo}=J("time-item"),ur=bo(po(yo,wo,de)),cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ne(n,"modelValue"),v=e,E=a.computed(()=>({[v]:!0})),S=V=>{f.value=V,i("update:modelValue",V),i("change",V)};let p=ne(n,"hintText"),T=a.ref(!1);const $=V=>{let y=V.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",y,V)},O=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),i("blur",y,V)},q=()=>{i("clear","")},k=a.ref();return fe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()}}),()=>{const I={...l.attrs,ref:k,class:E.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:S,onClear:q,onFocus:$,onBlur:O},y={},N=[],L=a.h(g.ElTimeSelect,I,y);N.push(L);const R={default:()=>N};if(l.slots.default){const C=l.slots.default();R.label=()=>C}const W={...ge(n,cr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,W,R)}}}}const{componentName:So,create:$o,scope:xo}=J("time-select-item"),fr=$o(vo(So,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=jt(`${e}`,un(`${t}`),20);return dr(n)}}function Eo(e,t=-1,r=!1,n=3,l=","){return qt(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=jt(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=re(t.minInclude),l=Mt(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=re(t.maxInclude),l=Mt(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 Co(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=ne(n,"modelValue"),c=a.ref("");a.watch([()=>d.value,()=>n.rates,()=>n.precision],([b,C,x])=>{if(oe(b)){c.value="";return}const B=gr(b,C,x,!1);c.value!==B&&(c.value=B)},{immediate:!0});const f=a.computed(()=>{let b="";return u.value&&(b=c.value),b}),{t:v}=$e.useFoxI18n(t),E=a.computed(()=>{let b=n.placeholder??"";return!u.value&&!oe(c.value)?b=Eo(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):b=v(["placeholder",b]),b}),S=e,p=a.computed(()=>({[S]:!0,[`${S}__disabled`]:o.value,[`${S}__placeholder`]:c.value.length>0})),T=Se(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>u.value?{textAlign:"left"}:{textAlign:T.value??"right"});const $=a.ref(""),O=a.computed(()=>{let b=$.value;return oe(b)&&(b=n.errorTip??""),b}),q=a.ref(""),k=a.ref(!1),V=(b,C)=>{if(b=`${b}`,oe(b)){c.value="",d.value="",C.forEach(x=>{i(x,"")}),re(n.showTip)&&k.value&&(k.value=!1);return}if(b.length>=2){let x=b;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){a.triggerRef(c);return}}if(b!="-"){if(!bn(b)){a.triggerRef(c);return}if(n.integerLength!=-1&&wn(b)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&vn(b)>Number(n.decimalLength)){a.triggerRef(c);return}let x=mr(b,n);if(x.maxValid===!1){$.value=x.message,a.triggerRef(c);return}}else if(n.min!=null&&ae(n.min)>=0){a.triggerRef(c);return}q.value=b,re(n.showTip)&&(k.value=b.length>0),c.value=b,d.value=gr(b,n.rates,n.precision,!0),C.forEach(x=>{i(x,d.value)})},I=b=>{V(b,["update:modelValue","input"])},y=b=>{V(b,["update:modelValue","change"])},N=b=>{if(u.value=!0,re(n.showTip)){let C=c.value;oe(C)&&(C=n.hintText),oe(C)||(q.value=C,k.value=!0)}$.value="",i("focus",d.value,b)},L=b=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&k.value===!0&&(k.value=!1)},0),!oe(c.value)){let C=mr(c.value,n);if(C.minValid===!1||C.maxValid){$.value=C.message;return}}i("update:modelValue",d.value,b),i("blur",d.value,b)},R=()=>{i("clear","")},H=a.computed(()=>tt(n.unit)>0),W=a.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const C={...l.attrs,ref:W,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:E.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onInput:I,onChange:y,onFocus:N,onBlur:L},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:H.value&&(x.suffix=()=>[n.unit]);const B=[],w=a.h(g.ElInput,C,x);B.push(w);const D={default:()=>B};if(l.slots.default){const m=l.slots.default();D.label=()=>m}const j={...ge(n,pr),errorTip:O.value,hintText:q.value,hintVisible:k.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,j,D)}}}}const{componentName:To,create:Oo,scope:Vo}=J("money-item"),yr=Oo(Co(To,Vo,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 No(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ne(n,"modelValue"),v=e,E=a.computed(()=>({[v]:!0,[`${v}__append`]:I.value})),S=a.computed(()=>({[`${v}__unit`]:!0})),p=N=>{f.value=N,i("update:modelValue",N),i("input",N)},T=N=>{i("change",N)};let $=ne(n,"hintText"),O=a.ref(!1);const q=N=>{let R=N.target.value;c.value=!0,oe($.value)||(O.value=!0),i("focus",R,N)},k=N=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let R=N.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,N)},V=()=>{i("clear","")},I=a.computed(()=>tt(n.unit)>0),y=a.ref();return fe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()}}),()=>{const L={...l.attrs,ref:y,class:E.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:q,onBlur:k},R={},H=[],W=a.h(g.ElInputNumber,L,R);H.push(W);const b={default:()=>H};if(l.slots.default){const w=l.slots.default();b.label=()=>w}const x={...ge(n,br),hintText:$.value,hintVisible:O.value,prop:`${n.prop}_item`};if(l.slots.append)b.append=l.slots.append;else if(I.value){const w={class:S.value},D=a.h("div",w,[n.unit]);b.append=()=>D}return a.h(r,x,b)}}}}const{componentName:Io,create:Ao,scope:Ro}=J("input-number-item"),wr=Ao(No(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 ko(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let jo=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ie(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Mo(){const e=a.getCurrentInstance();return new jo(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 vr(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=vr(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=ko(e,d);break}}if(!u)break}}return l}function qo(e){return{text:e,value:e}}const Sr={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,...Sr},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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),v=(j,G,m,A=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===j)return;c.value=j;const P=a.toRaw(j);A&&(i("update:modelValue",P),i("change",P))}const M=vr(n,j,G,m);if(M===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,A&&(i("update:modelValue",null),i("change",null));return}let F=!0;if(M.length!==f.value.length)F=!1;else for(let P=0;P<M.length;P++){const z=M[P],Y=f.value[P];if(Array.isArray(z)){if(!Array.isArray(Y)||z.length!==Y.length)F=!1;else for(let K=0;K<z.length;K++)if(!Jt(n,z[K],Y[K])){F=!1;break}}else Jt(n,z,Y)||(F=!1);if(!F)break}if(!F){f.value=M;let P=[],z=[];M.forEach(K=>{if(Array.isArray(K)){let U=[],Z=[];for(let ee of K)U.push(Pe(n,ee)),n.valueType==="text"?Z.push(Ue(n,ee)):n.valueType==="item"?Z.push(ee):Z.push(Pe(n,ee));P.push(U),z.push(Z)}else P.push(Pe(n,K)),n.valueType==="text"?z.push(Ue(n,K)):n.valueType==="item"?z.push(K):z.push(Pe(n,K))}),c.value=P;const Y=a.toRaw(z);A&&(i("update:modelValue",Y),i("change",Y))}},E=a.ref([]),S=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,j=>re(j)),p=Mo(),T=async(j,G)=>{if(j){const m=await p.load("cascader",j,G);if(m.length>0)if(typeof m[0]=="string"){let F=m.map(P=>qo(P));E.value=F}else E.value=m}};a.watch([()=>n.source,()=>n.params],async([j,G])=>{T(j,G)},{immediate:!S.value});let $=!1;const O=()=>{$||($=!0,T(n.source,n.params))};a.watch([()=>E.value,()=>n.modelValue],([j,G])=>{v(G,n.valueType,j,!1)});let q=null,k=a.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){k.value=!0;try{const G=await n.remoteMethod(j);E.value=G}catch(G){console.error(G)}k.value=!1}});const V=a.ref(!1),I=e,y=a.computed(()=>({[I]:!0})),N=a.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),j}),L=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),c.value=j):v(j,"value",E.value,!0)};let R=ne(n,"hintText"),H=a.ref(!1);const W=j=>{let m=j.target.value;V.value=!0,oe(R.value)||(H.value=!0),i("focus",m,j)},b=j=>{setTimeout(()=>{H.value&&(H.value=!1),V.value=!1},0);let m=j.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),x.value||i("blur",m,j)},C=()=>{i("clear","")},x=a.ref(!1),B=j=>{x.value=j,i("visible-change",j),j||i("selected")},w=j=>{i("remove-tag",j)},D=j=>{i("expand-change",j)},_=a.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},getCheckedNodes:()=>_?.value.getCheckedNodes()}),()=>{const G={...l.attrs,ref:_,class:y.value,props:N.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:o.value||s.value,options:E.value,modelValue:c.value,onClear:C,onChange:L,onFocus:W,onBlur:b,onVisibleChange:B,onRemoveTag:w,expandChange:D};typeof q=="function"&&(G["remote-method"]=q,G.loading=k.value);const m={};l.slots.option&&(m.default=l.slots.option),l.slots.empty&&(m.empty=l.slots.empty);const A=[],M=a.h(g.ElCascader,G,m);A.push(M);const F={default:()=>A};l.slots.default&&(F.label=l.slots.default);const z={...ge(n,Sr),hintText:R.value,hintVisible:H.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(z["appear-listen"]=!0,z.onAppear=O),a.h(r,z,F)}}}}const{componentName:Lo,create:Bo,scope:_o}=J("cascader-item"),$r=Bo(Do(Lo,_o,de)),xr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Fo(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}=$e.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=ne(n,"modelValue"),v=e,E=a.computed(()=>({[v]:!0})),S=I=>{f.value=I,i("update:modelValue",I),i("input",I)},p=I=>{i("change",I)};let T=ne(n,"hintText"),$=a.ref(!1);const O=I=>{let N=I.target.value;c.value=!0,oe(T.value)||($.value=!0),i("focus",N,I)},q=I=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let N=I.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,I)},k=()=>{i("clear","")},V=a.ref();return fe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const y={...l.attrs,ref:V,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,onClear:k,onChange:p,onInput:S,onFocus:O,onBlur:q},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=[],R=a.h(g.ElAutocomplete,y,N);L.push(R);const H={default:()=>L};if(l.slots.default){const x=l.slots.default();H.label=()=>x}const b={...ge(n,xr),hintText:T.value,hintVisible:$.value,prop:`${n.prop}_item`};return a.h(r,b,H)}}}}const{componentName:Po,create:Ho,scope:zo}=J("autocomplete-item"),Er=Ho(Fo(Po,zo,de));function Ko(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(v=>v[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(v=>v[n]===c);if(!f)break;s.push(f[r]),u=f[l]}}return s}let Wo=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ie(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Go(){const e=a.getCurrentInstance();return new Wo(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 Yo(e,t){return{props:{...Cr},setup(r,{attrs:n}){const l=Go(),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=Ko(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:js,create:Uo,scope:Ms}=J("mapping"),Qt=Uo(Yo());function Xo(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 Zo(e,t){return{props:{...Cr},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=Xo(o.row,o.column.property);return a.h(Qt,{...r,modelValue:s})}};return a.h(g.ElTableColumn,{...n},l)}}}}const{componentName:qs,create:Jo,scope:Ds}=J("table-mapping-column"),Tr=Jo(Zo()),Qo=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 ei(e,t){return{props:{},setup(r,{attrs:n}){const l=a.inject(Qo,{});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}},v=a.h("span",f,[a.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":c}};return a.h("label",E,[v])}};return a.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Ls,create:ti,scope:Bs}=J("table-radio-column"),Vr=ti(ei());let ni=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=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ie(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(u,null,[r,n,l,o,s,i]))}};function ri(){const e=a.getCurrentInstance();return new ni(e.proxy)}const ai=Symbol.for("TableStateKey");function li(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=li(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}},Ir={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 oi(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Nr,...Ir},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=$e.useFoxI18n(t),{emitEvent:s}=ce({componentName:e,validateHandler:{getValue(...w){return $.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,w=>{c.value=w});const f=w=>{c.value=w,s("page-index-change",w)},v=a.ref(n.pageSize);a.watch(()=>n.pageSize,w=>{v.value=w});const E=w=>{v.value=w,s("page-size-change",w)},S=a.shallowRef({}),p=a.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),T=a.ref(0),$=a.ref(),O=ri();let q=!0;const k=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),V=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,w=>re(w)),I=async(w,D,_,j)=>{try{const G=await O.load("table",w,D,_,j,q,o.value);T.value=G.totalSize,$.value=G.page}catch(G){console.error("[FoxUI] Load Table Data Fail",G),T.value=0,$.value=[]}q=!1,setTimeout(()=>{s("loaded-data")},250)};a.watch([c,v],([w,D],[_,j])=>{D!==j&&(c.value=1,w=1),I(n.data,w,D,p.value)}),a.watch([()=>n.data,p],([w,D],[_,j])=>{k()&&(w!==_&&(q=!0),!(De(w,_)&&De(D,j))&&I(w,c.value,v.value,D))});const y=(w={},D=!1)=>new Promise(_=>{S.value=a.toRaw(w??{}),a.triggerRef(S),D||(c.value=n.pageIndex??1),a.nextTick(async()=>{await I(n.data,c.value,v.value,p.value),_()})}),N=()=>{T.value=0,$.value=[]};let L=!1;const R=()=>{L||(L=!0,y())};k()&&!V.value&&y();const H=a.ref(null);a.provide(ai,{currentRow:H});const W=(w,D)=>{H.value=w,s("current-change",w,D)},b=(w,D,_)=>{s("row-click",w,D,_),re(n.rowClickSelectable)===!0&&B?.value.toggleRowSelection(w)},C=[],x=(w,D)=>{if(s("expand-change",w,D),re(n.uniqueExpansion))if(Array.isArray(D)&&D.length==0){const _=C.length;C.splice(0,_)}else{C.forEach(j=>{j!==w&&B?.value.toggleRowExpansion(j,!1)});const _=C.length;C.splice(0,_,w)}},B=a.ref();return fe({clearSelection:()=>B?.value.clearSelection(),getSelectionRows:()=>B?.value.getSelectionRows(),toggleRowSelection:(w,D)=>{B?.value.toggleRowSelection(w,D)},toggleRowSelectionByProp:(w,D)=>{if(!$.value)return;const _=en($.value,w);_.length!==0&&_.forEach(j=>{B?.value.toggleRowSelection(j,D)})},toggleAllSelection:()=>{B?.value.toggleAllSelection()},toggleRowExpansion:(w,D)=>{B?.value.toggleRowExpansion(w,D)},toggleRowExpansionByProp:(w,D)=>{if(!$.value)return;const _=en($.value,w);_.length!==0&&_.forEach(j=>{B?.value.toggleRowExpansion(j,D)})},setCurrentRow:w=>{B?.value.setCurrentRow(w)},setCurrentRowByProp:w=>{if(!$.value)return;const D=en($.value,w);D.length!==0&&B?.value.setCurrentRow(D[0])},getCurrentRow:()=>H.value,clearSort:()=>{B?.value.clearSort()},clearFilter:w=>{B?.value.clearFilter(w)},doLayout:()=>{B?.value.doLayout()},sort:(w,D)=>{B?.value.sort(w,D)},scrollTo:(w,D)=>{B?.value.scrollTo(w,D)},setScrollTop:w=>{B?.value.setScrollTop(w)},setScrollLeft:w=>{B?.value.setScrollLeft(w)},loadData:y,clearData:N,getData(){return $.value},getTotalSize(){return T.value},getPageIndex(){return c.value},getPageSize(){return v.value}}),()=>{const D={...l.attrs,onCurrentChange:W,onRowClick:b,onExpandChange:x,data:$.value,ref:B,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 j=[],G=a.h(g.ElTable,D,_);if(j.push(G),typeof l.slots.pagination=="function"){const P=l.slots.pagination();j.push(P)}else if(n.paginationVisible){const P={class:d.value,total:T.value,pageSize:v.value,["onUpdate:pageSize"]:E,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:f,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},z=a.h(g.ElPagination,P);j.push(z)}const m={default:()=>j},M={...ge(n,Nr,Ir),prop:`${n.prop}_item`};return M.contentClass=`${i}__wrap`,M.errorMarkClass="is-table-error",V.value&&k()&&(M["appear-listen"]=!0,M.onAppear=R),a.h(r,M,m)}}}}const{componentName:ii,create:si,scope:ui}=J("table-item"),Ar=si(oi(ii,ui,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let ci=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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ie(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function fi(){const e=a.getCurrentInstance();return new ci(e.proxy)}function Rr(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=ot(e,t),s=ot(e,r);return o===s}function di(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=Rr(e,o,t);else{let i=ot(e,o);i==null&&(i=Xe(e,o)),s=i===t}if(s){l=o;break}}return l}function hi(e){return{text:e,value:e}}function gi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const kr={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 mi(e,t,r){return{inheritAttrs:!0,props:{...ue,...me,...kr},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=(y,N,L,R=!0)=>{const H=di(n,y,N,L);if(H===null){if(d.value===null)return;d.value=null,u.value=null,R&&(i("update:modelValue",null),i("change",null));return}if(!Rr(n,H,d.value)){u.value=y;const b=a.toRaw(H);d.value=b;let C=null;n.valueType==="text"?C=Xe(n,b):n.valueType==="item"?C=b:C=ot(n,b),R&&(i("update:modelValue",C),i("change",C))}},f=a.ref([]),v=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,y=>re(y)),E=fi(),S=async(y,N)=>{if(y){const L=await E.load("radio",y,N);if(L.length>0)if(typeof L[0]=="string"){let W=L.map(b=>hi(b));f.value=W}else f.value=L}};a.watch([()=>n.source,()=>n.params],async([y,N])=>{S(y,N)},{immediate:!v.value});let p=!1;const T=()=>{p||(p=!0,S(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([y,N])=>{c(N,n.valueType,y,!1)});const $=e,O=a.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),q=y=>{c(y,"value",f.value,!0)};let k=ne(n,"hintText"),V=ne(n,"hintVisible");const I=(y,N)=>{const L=[];return y.forEach((R,H)=>{const W=ot(n,R),b=Xe(n,R),C=gi(n,R,H)??{};let x=C.disabled;o.value===!0&&(x=o.value);const B=`${W}_${H}`,w={...C,key:B,label:W,disabled:x,size:n.size,border:re(n.border)};n.itemType==="button"?L.push(a.h(g.ElRadioButton,w,{default:()=>[b]})):typeof N=="function"?L.push(a.h(g.ElRadio,w,{default:()=>N(R)})):L.push(a.h(g.ElRadio,w,{default:()=>[b]}))}),L};return()=>{const N={...l.attrs,class:O.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:q},L=[],R={};l.slots.options?R.default=l.slots.options:R.default=()=>I(f.value,l.slots.text);const H=a.h(g.ElRadioGroup,N,R);L.push(H);const W={default:()=>L};l.slots.default&&(W.label=l.slots.default);const C={...ge(n,kr),hintText:k.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return v.value&&(C["appear-listen"]=!0,C.onAppear=T),a.h(r,C,W)}}}}const{componentName:pi,create:yi,scope:bi}=J("radio-item"),jr=yi(mi(pi,bi,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 wi{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=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ie(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function vi(){const e=a.getCurrentInstance();return new wi(e.proxy)}function Mr(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 Si(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=Mr(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 $i(e){return{text:e,value:e}}function xi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const qr={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 Ei(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...qr},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=(y,N,L,R=!0)=>{const H=Si(n,y,N,L);if(H===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],R&&(i("update:modelValue",[]),i("change",[]));return}let W=!0;if(H.length!==d.value.length)W=!1;else for(let b=0;b<H.length;b++){const C=H[b],x=d.value[b];if(!Mr(n,C,x)){W=!1;break}}if(!W){d.value=H;let b=[],C=[];H.forEach(B=>{b.push(Je(n,B)),n.valueType==="text"?C.push(Ze(n,B)):n.valueType==="item"?C.push(B):C.push(Je(n,B))}),u.value=b;const x=a.toRaw(C);R&&(i("update:modelValue",x),i("change",x))}},f=a.ref([]),v=Se(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,y=>re(y)),E=vi(),S=async(y,N)=>{if(y){const L=await E.load("checkbox",y,N);if(L.length>0)if(typeof L[0]=="string"){let W=L.map(b=>$i(b));f.value=W}else f.value=L}};a.watch([()=>n.source,()=>n.params],async([y,N])=>{S(y,N)},{immediate:!v.value});let p=!1;const T=()=>{p||(p=!0,S(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([y,N])=>{c(N,n.valueType,y,!1)});const $=e,O=a.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),q=y=>{c(y,"value",f.value,!0)};let k=ne(n,"hintText"),V=ne(n,"hintVisible");const I=(y,N)=>{const L=[];return y.forEach((R,H)=>{const W=Je(n,R),b=Ze(n,R),C=xi(n,R,H)??{};let x=C.disabled;o.value===!0&&(x=o.value);const B=`${W}_${H}`,w={...C,key:B,class:n.itemClass,label:W,disabled:x,size:n.size,border:re(n.border)};n.itemType==="button"?L.push(a.h(g.ElCheckboxButton,w,{default:()=>[b]})):typeof N=="function"?L.push(a.h(g.ElCheckbox,w,{default:()=>N(R)})):L.push(a.h(g.ElCheckbox,w,{default:()=>[b]}))}),L};return()=>{const N={...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:q},L=[],R={};l.slots.options?R.default=l.slots.options:R.default=()=>I(f.value,l.slots.text);const H=a.h(g.ElCheckboxGroup,N,R);L.push(H);const W={default:()=>L};l.slots.default&&(W.label=l.slots.default);const C={...ge(n,qr),hintText:k.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return v.value&&(C["appear-listen"]=!0,C.onAppear=T),a.h(r,C,W)}}}}const{componentName:Ci,create:Ti,scope:Oi}=J("checkbox-item"),Dr=Ti(Ei(Ci,Oi,de)),Lr={modelValue:{type:[Number,String],required:!1}};function Vi(e,t,r){return{props:{...ue,...me,...Lr},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=ne(n,"modelValue",p=>ae(p)),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let v=ne(n,"hintText"),E=a.ref(!1);const S=a.ref();return fe({}),()=>{const T={...l.attrs,ref:S,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:f},$={},O=[],q=a.h(g.ElRate,T,$);O.push(q);const k={default:()=>O};if(l.slots.default){const N=l.slots.default();k.label=()=>N}const I={...ge(n,Lr),hintText:v.value,hintVisible:E.value,prop:`${n.prop}_item`};return a.h(r,I,k)}}}}const{componentName:Ni,create:Ii,scope:Ai}=J("rate-item"),Br=Ii(Vi(Ni,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=ne(n,"modelValue"),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let v=ne(n,"hintText"),E=ne(n,"hintVisible");const S=a.ref();return fe({}),()=>{const T={...l.attrs,ref:S,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:f},$={},O=[],q=a.h(g.ElSwitch,T,$);O.push(q);const k={default:()=>O};if(l.slots.default){const N=l.slots.default();k.label=()=>N}const I={...ge(n,_r),hintText:v.value,hintVisible:E.value,prop:`${n.prop}_item`};return a.h(r,I,k)}}}}const{componentName:ki,create:ji,scope:Mi}=J("switch-item"),Fr=ji(Ri(ki,Mi,de)),Pr={modelValue:{type:[String,Number,Boolean],required:!1}};function qi(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=ne(n,"modelValue"),c=e,f=a.computed(()=>({[c]:!0})),v=V=>{u("update:modelValue",V),u("change",V)};let E=ne(n,"hintText"),S=a.ref(!1);const p=V=>{let y=V.target.value;i.value=!0,oe(E.value)||(S.value=!0),u("focus",y,V)},T=V=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),O.value||u("blur",y,V)},$=()=>{u("clear","")},O=a.ref(!1),q=V=>{O.value=V,u("visible-change",V),V||u("selected")},k=a.ref();return fe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const I={...l.attrs,ref:k,class:f.value,disabled:o.value||s.value,modelValue:d.value,["onUpdate:modelValue"]:v,onClear:$,onFocus:p,onBlur:T,onVisibleChange:q},y={};l.slots.option&&(y.default=l.slots.option);const N=[],L=a.h(g.ElTreeSelect,I,y);N.push(L);const R={default:()=>N};if(l.slots.default){const C=l.slots.default();R.label=()=>C}const W={...ge(n,Pr),hintText:E.value,hintVisible:S.value,prop:`${n.prop}_item`};return a.h(r,W,R)}}}}const{componentName:Di,create:Li,scope:Bi}=J("tree-select-item"),Hr=Li(qi(Di,Bi,de)),_i=Symbol.for("InnerPageScopeKey"),Fi=Symbol.for("PageWrapperKey");function Pi(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(_i,!0);const l={};a.provide(Fi,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:_s,create:Hi,scope:Fs}=J("dialog-item"),zr=Hi(Pi()),{componentName:Ps,create:zi}=J("ext-icon"),Kr=zi({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:Q(e.size),width:Q(e.size),height:Q(e.size)},onClick:n,src:s?e.name:""},r.default?.())}}});function Ki(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},v=n.default?n.default():[],E=a.h("div",f,v),S={class:o.value};return a.h("div",S,[c,E])}}}}const{componentName:Wi,create:Gi,scope:Hs}=J("indicator"),Wr=Gi(Ki(Wi));function Yi(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const Ui={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}};function Xi(e,t){return{props:{...Ui},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&&re(r.showOverflowTooltip)){const c=d.clientWidth,f=Yi(d);l.value=f<=c}};let u=null;return a.onMounted(()=>{if(!re(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={class:s.value,ref:o,...n.attrs},c=a.h(r.tag,d,{default:n.slots.default}),f={disabled:l.value};return a.h(g.ElTooltip,f,{default:()=>c,content:n.slots.default})}}}}const{componentName:Zi,create:Ji,scope:zs}=J("text"),Gr=Ji(Xi(Zi)),Qi={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:Tt.ArrowUp}};function es(e,t,r){return{props:{...Qi},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=ne(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 v={class:d.value},E=r(n.icon,v);return E&&f.push(E),a.h("div",{class:o.value,onClick:c},f)}}}}const{componentName:ts,create:ns,scope:rs}=J("more-button"),Yr=ns(es(ts,rs,(e,t)=>(e=e??Tt.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function as(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:n}){return In(r.name,r.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Ws,create:ls,scope:Gs}=J("domain-provider"),Ur=ls(as());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 Xr={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",v="quarter",E="year",S="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+)?$/,$=/\[([^\]]+)]|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("_")},q=function(b,C,x){var B=String(b);return!B||B.length>=C?b:""+Array(C+1-B.length).join(x)+b},k={s:q,z:function(b){var C=-b.utcOffset(),x=Math.abs(C),B=Math.floor(x/60),w=x%60;return(C<=0?"+":"-")+q(B,2,"0")+":"+q(w,2,"0")},m:function b(C,x){if(C.date()<x.date())return-b(x,C);var B=12*(x.year()-C.year())+(x.month()-C.month()),w=C.clone().add(B,f),D=x-w<0,_=C.clone().add(B+(D?-1:1),f);return+(-(B+(x-w)/(D?w-_:_-w))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:f,y:E,w:c,d,D:S,h:u,m:i,s,ms:o,Q:v}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},V="en",I={};I[V]=O;var y=function(b){return b instanceof H},N=function b(C,x,B){var w;if(!C)return V;if(typeof C=="string"){var D=C.toLowerCase();I[D]&&(w=D),x&&(I[D]=x,w=D);var _=C.split("-");if(!w&&_.length>1)return b(_[0])}else{var j=C.name;I[j]=C,w=j}return!B&&w&&(V=w),w||!B&&V},L=function(b,C){if(y(b))return b.clone();var x=typeof C=="object"?C:{};return x.date=b,x.args=arguments,new H(x)},R=k;R.l=N,R.i=y,R.w=function(b,C){return L(b,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var H=function(){function b(x){this.$L=N(x.locale,null,!0),this.parse(x)}var C=b.prototype;return C.parse=function(x){this.$d=function(B){var w=B.date,D=B.utc;if(w===null)return new Date(NaN);if(R.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var _=w.match(T);if(_){var j=_[2]-1||0,G=(_[7]||"0").substring(0,3);return D?new Date(Date.UTC(_[1],j,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)):new Date(_[1],j,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)}}return new Date(w)}(x),this.$x=x.x||{},this.init()},C.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},C.$utils=function(){return R},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(x,B){var w=L(x);return this.startOf(B)<=w&&w<=this.endOf(B)},C.isAfter=function(x,B){return L(x)<this.startOf(B)},C.isBefore=function(x,B){return this.endOf(B)<L(x)},C.$g=function(x,B,w){return R.u(x)?this[B]:this.set(w,x)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(x,B){var w=this,D=!!R.u(B)||B,_=R.p(x),j=function(Y,K){var U=R.w(w.$u?Date.UTC(w.$y,K,Y):new Date(w.$y,K,Y),w);return D?U:U.endOf(d)},G=function(Y,K){return R.w(w.toDate()[Y].apply(w.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(K)),w)},m=this.$W,A=this.$M,M=this.$D,F="set"+(this.$u?"UTC":"");switch(_){case E:return D?j(1,0):j(31,11);case f:return D?j(1,A):j(0,A+1);case c:var P=this.$locale().weekStart||0,z=(m<P?m+7:m)-P;return j(D?M-z:M+(6-z),A);case d:case S: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()}},C.endOf=function(x){return this.startOf(x,!1)},C.$set=function(x,B){var w,D=R.p(x),_="set"+(this.$u?"UTC":""),j=(w={},w[d]=_+"Date",w[S]=_+"Date",w[f]=_+"Month",w[E]=_+"FullYear",w[u]=_+"Hours",w[i]=_+"Minutes",w[s]=_+"Seconds",w[o]=_+"Milliseconds",w)[D],G=D===d?this.$D+(B-this.$W):B;if(D===f||D===E){var m=this.clone().set(S,1);m.$d[j](G),m.init(),this.$d=m.set(S,Math.min(this.$D,m.daysInMonth())).$d}else j&&this.$d[j](G);return this.init(),this},C.set=function(x,B){return this.clone().$set(x,B)},C.get=function(x){return this[R.p(x)]()},C.add=function(x,B){var w,D=this;x=Number(x);var _=R.p(B),j=function(A){var M=L(D);return R.w(M.date(M.date()+Math.round(A*x)),D)};if(_===f)return this.set(f,this.$M+x);if(_===E)return this.set(E,this.$y+x);if(_===d)return j(1);if(_===c)return j(7);var G=(w={},w[i]=n,w[u]=l,w[s]=r,w)[_]||1,m=this.$d.getTime()+x*G;return R.w(m,this)},C.subtract=function(x,B){return this.add(-1*x,B)},C.format=function(x){var B=this,w=this.$locale();if(!this.isValid())return w.invalidDate||p;var D=x||"YYYY-MM-DDTHH:mm:ssZ",_=R.z(this),j=this.$H,G=this.$m,m=this.$M,A=w.weekdays,M=w.months,F=function(K,U,Z,ee){return K&&(K[U]||K(B,D))||Z[U].slice(0,ee)},P=function(K){return R.s(j%12||12,K,"0")},z=w.meridiem||function(K,U,Z){var ee=K<12?"AM":"PM";return Z?ee.toLowerCase():ee},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:m+1,MM:R.s(m+1,2,"0"),MMM:F(w.monthsShort,m,M,3),MMMM:F(M,m),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:F(w.weekdaysMin,this.$W,A,2),ddd:F(w.weekdaysShort,this.$W,A,3),dddd:A[this.$W],H:String(j),HH:R.s(j,2,"0"),h:P(1),hh:P(2),a:z(j,G,!0),A:z(j,G,!1),m:String(G),mm:R.s(G,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:_};return D.replace($,function(K,U){return U||Y[K]||_.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(x,B,w){var D,_=R.p(B),j=L(x),G=(j.utcOffset()-this.utcOffset())*n,m=this-j,A=R.m(this,j);return A=(D={},D[E]=A/12,D[f]=A,D[v]=A/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,w?A:R.a(A)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return I[this.$L]},C.locale=function(x,B){if(!x)return this.$L;var w=this.clone(),D=N(x,B,!0);return D&&(w.$L=D),w},C.clone=function(){return R.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},b}(),W=H.prototype;return L.prototype=W,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",d],["$M",f],["$y",E],["$D",S]].forEach(function(b){W[b[1]]=function(C){return this.$g(C,b[0],b[1])}}),L.extend=function(b,C){return b.$i||(b(C,H,L),b.$i=!0),L},L.locale=N,L.isDayjs=y,L.unix=function(b){return L(1e3*b)},L.en=I[V],L.Ls=I,L.p={},L})})(Xr);var os=Xr.exports;const ke=Ve(os);var Zr={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 $=T.match(/([+-]|\d\d)/g),O=60*$[1]+(+$[2]||0);return O===0?0:$[0]==="+"?-O:O}(p)}],f=function(p){var T=i[p];return T&&(T.indexOf?T:T.s.concat(T.f))},v=function(p,T){var $,O=i.meridiem;if(O){for(var q=1;q<=24;q+=1)if(p.indexOf(O(q,0,T))>-1){$=q>12;break}}else $=p===(T?"pm":"PM");return $},E={A:[s,function(p){this.afternoon=v(p,!1)}],a:[s,function(p){this.afternoon=v(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,$=p.match(/\d+/);if(this.day=$[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"),$=(f("monthsShort")||T.map(function(O){return O.slice(0,3)})).indexOf(p)+1;if($<1)throw new Error;this.month=$%12||$}],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 S(p){var T,$;T=p,$=i&&i.formats;for(var O=(p=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,R,H){var W=H&&H.toUpperCase();return R||$[H]||r[H]||$[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,C,x){return C||x.slice(1)})})).match(n),q=O.length,k=0;k<q;k+=1){var V=O[k],I=E[V],y=I&&I[0],N=I&&I[1];O[k]=N?{regex:y,parser:N}:V.replace(/^\[|\]$/g,"")}return function(L){for(var R={},H=0,W=0;H<q;H+=1){var b=O[H];if(typeof b=="string")W+=b.length;else{var C=b.regex,x=b.parser,B=L.slice(W),w=C.exec(B)[0];x.call(R,w),L=L.replace(w,"")}}return function(D){var _=D.afternoon;if(_!==void 0){var j=D.hours;_?j<12&&(D.hours+=12):j===12&&(D.hours=0),delete D.afternoon}}(R),R}}return function(p,T,$){$.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var O=T.prototype,q=O.parse;O.parse=function(k){var V=k.date,I=k.utc,y=k.args;this.$u=I;var N=y[1];if(typeof N=="string"){var L=y[2]===!0,R=y[3]===!0,H=L||R,W=y[2];R&&(W=y[2]),i=this.$locale(),!L&&W&&(i=$.Ls[W]),this.$d=function(B,w,D){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*B);var _=S(w)(B),j=_.year,G=_.month,m=_.day,A=_.hours,M=_.minutes,F=_.seconds,P=_.milliseconds,z=_.zone,Y=new Date,K=m||(j||G?1:Y.getDate()),U=j||Y.getFullYear(),Z=0;j&&!G||(Z=G>0?G-1:Y.getMonth());var ee=A||0,be=M||0,je=F||0,ie=P||0;return z?new Date(Date.UTC(U,Z,K,ee,be,je,ie+60*z.offset*1e3)):D?new Date(Date.UTC(U,Z,K,ee,be,je,ie)):new Date(U,Z,K,ee,be,je,ie)}catch{return new Date("")}}(V,N,I),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),H&&V!=this.format(N)&&(this.$d=new Date("")),i={}}else if(N instanceof Array)for(var b=N.length,C=1;C<=b;C+=1){y[1]=N[C-1];var x=$.apply(this,y);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}C===b&&(this.$d=new Date(""))}else q.call(this,k)}}})})(Zr);var is=Zr.exports;const ss=Ve(is);var Jr={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(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return v}});return s.bind(this)(f)}}})})(Jr);var us=Jr.exports;const cs=Ve(us);var Qr={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,v,E,S,p){var T=f.name?f:f.$locale(),$=s(T[v]),O=s(T[E]),q=$||O.map(function(V){return V.slice(0,S)});if(!p)return q;var k=T.weekStart;return q.map(function(V,I){return q[(I+(k||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,v){return f.formats[v]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,p,T){return p||T.slice(1)})}(f.formats[v.toUpperCase()])},c=function(){var f=this;return{months:function(v){return v?v.format("MMMM"):i(f,"months")},monthsShort:function(v){return v?v.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(f,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(f.$locale(),v)},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(v){return d(f,v)},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)}}})})(Qr);var fs=Qr.exports;const ds=Ve(fs);var ea={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 v=s(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),E=this.diff(v,r,!0);return E<0?s(this).startOf("week").week():Math.ceil(E)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ea);var hs=ea.exports;const gs=Ve(hs);var ta={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}}})})(ta);var ms=ta.exports;const ps=Ve(ms);var na={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")}}})})(na);var ys=na.exports;const bs=Ve(ys);var ra={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)}}})})(ra);var ws=ra.exports;const vs=Ve(ws);var aa={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)}}})})(aa);var Ss=aa.exports;const $s=Ve(Ss);ke.extend(ds),ke.extend(cs),ke.extend(ss),ke.extend(gs),ke.extend(ps),ke.extend(bs),ke.extend(vs),ke.extend($s);const la=10;function xs(e,t){return e>t&&e>la?"horizontal":t>e&&t>la?"vertical":""}function Es(){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",v=()=>c.value==="horizontal",E=()=>{s.value=0,i.value=0,u.value=0,d.value=0,c.value="",r.value=0};return{move:T=>{const $=T.touches[0];s.value=$.clientX-e.value,i.value=$.clientY-t.value,l.value=$.clientX,o.value=$.clientY,u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-r.value,c.value||(c.value=xs(u.value,d.value))},start:T=>{E(),e.value=T.touches[0].clientX,t.value=T.touches[0].clientY,r.value=Date.now()},reset:E,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:v}}const Cs=[Bn,_n,Fn,Pn,Kn,de,Zn,Jn,Et,er,lr,ir,ur,fr,yr,wr,$r,Er,Tr,Vr,Ar,jr,Dr,Br,Fr,Hr,zr,Qt,Ut,Kr,Wr,Gr,Yr,Ur],Ts=new Ha(Cs,[Wa],"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=$r,h.CheckboxItem=Dr,h.Content=Pn,h.DataItemsKey=ze,h.DateItem=ir,h.DialogItem=zr,h.Domain=ht,h.DomainKey=ve,h.DomainProvider=Ur,h.ExtIcon=Kr,h.FooterBar=Fn,h.Group=Kn,h.HeaderBar=_n,h.HintText=Et,h.Indicator=Wr,h.InputItem=er,h.InputNumberItem=wr,h.Item=de,h.Mapping=Qt,h.MoneyItem=yr,h.MoreButton=Yr,h.Page=Bn,h.Price=Ut,h.PriorityPolicy=Te,h.RadioItem=jr,h.RateItem=Br,h.RowItem=Jn,h.SelectItem=lr,h.SlotItem=Zn,h.SwitchItem=Fr,h.TableItem=Ar,h.TableMappingColumn=Tr,h.TableRadioColumn=Vr,h.Text=Gr,h.TimeItem=ur,h.TimeSelectItem=fr,h.TreeSelectItem=Hr,h.UniqueID=Un,h.ValidateSchema=On,h.ValidateSchemaKey=Ee,h.clearNonNumber=va,h.clone=Bt,h.compareTo=Mt,h.createBroadcast=ct,h.createValidateSchema=dt,h.debounce=at,h.debounceRef=ja,h.decimalLength=vn,h.default=Ts,h.defineBroadcast=Ca,h.defineConfigDomain=In,h.defineDataItem=Rn,h.defineDomain=Ht,h.defineItem=ce,h.definePageState=kn,h.deleteGlobalValidator=Na,h.disabledProperty=ye,h.divide=jt,h.excludeProps=ge,h.extend=qe,h.floatData=Ea,h.getGlobalValidateCheckEvents=En,h.getGlobalValidateResetEvents=Tn,h.getPageContentAreaHeight=yt,h.getPageContentAreaWidth=bt,h.getPageFooterAreaHeight=pt,h.getPageHeaderAreaHeight=mt,h.getRootDomain=Ke,h.hasSymbol=dn,h.includeProps=xa,h.indexOf=Sa,h.installRules=An,h.integerLength=wn,h.isArray=ia,h.isArrayLike=mn,h.isBrowser=He,h.isDate=ca,h.isESModule=ga,h.isEmptyString=oe,h.isEqual=De,h.isFunction=Dt,h.isHidden=gn,h.isInnerPage=qa,h.isMap=sa,h.isNumberString=bn,h.isObject=Ie,h.isPlainObject=Lt,h.isPromise=ha,h.isRegExp=yn,h.isSet=ua,h.isString=fa,h.isSubPage=Da,h.isSymbol=da,h.isWindow=hn,h.lastIndexOf=$a,h.makeArray=ba,h.merge=pn,h.multiply=sn,h.negate=un,h.nextTick=pa,h.numberFormat=qt,h.objectToString=fn,h.property=Se,h.raf=wa,h.readonlyProperty=pe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Oa,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Aa,h.setGlobalValidator=Va,h.throttle=Nn,h.toBoolean=re,h.toNumber=ae,h.toPadding=xe,h.toPx=te,h.toPxDesc=Q,h.toTypeString=st,h.toValue=ne,h.typeOf=ut,h.unNumberFormat=cn,h.updatePageState=zt,h.useBroadcast=nt,h.useDomain=Ce,h.useExpose=fe,h.usePageState=gt,h.usePosition=Wn,h.useRect=$t,h.useTouch=Es,h.valueLength=tt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|