@fox-js/foxui-pc 4.0.1-1 → 4.0.1-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon Nov 07 2022 08:49:34 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),H=require("@fox-js/fox"),Dn=require("@fox-js/validator"),v=require("element-plus"),Ae=require("@fox-js/i18n"),Bn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},be=Bn(Dn);/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Tue Nov 15 2022 19:01:21 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),_=require("@fox-js/fox"),vr=require("@fox-js/validator"),f=require("element-plus"),ge=require("@fox-js/i18n"),xr=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Ee=xr(vr);/*!
4
4
  * @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
5
- */function Le(e,t="0"){let n=0,r=-1;e[0]=="-"&&(n++,r=1,e=e.substring(1),e.length),t[0]=="-"&&(n++,r=2,t=t.substring(1),t.length),e=Z(e),t=Z(t),[e,t]=mt(Z(e),Z(t)),n==1&&(r==1?e=at(e):t=at(t));let a=_t(e,t);return n?n==2?"-"+Z(a):e.length<a.length?Z(a.substring(1)):"-"+Z(at(a)):Z(a)}function at(e){let t="",n=e.length,r=e.split(".")[1],a=r?r.length:0;for(let u=0;u<n;u++)e[u]>="0"&&e[u]<="9"?t+=9-parseInt(e[u]):t+=e[u];let s=a>0?"0."+new Array(a).join("0")+"1":"1";return _t(t,s)}function Z(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 mt(e,t){let n=e.split("."),r=t.split("."),a=n[0].length,s=r[0].length;return a>s?r[0]=new Array(Math.abs(a-s)+1).join("0")+(r[0]?r[0]:""):n[0]=new Array(Math.abs(a-s)+1).join("0")+(n[0]?n[0]:""),a=n[1]?n[1].length:0,s=r[1]?r[1].length:0,(a||s)&&(a>s?r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-s)+1).join("0"):n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-s)+1).join("0")),e=n[0]+(n[1]?"."+n[1]:""),t=r[0]+(r[1]?"."+r[1]:""),[e,t]}function _t(e,t){[e,t]=mt(e,t);let n="",r=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){n="."+n;continue}let s=parseInt(e[a])+parseInt(t[a])+r;n=s%10+n,r=Math.floor(s/10)}return r?r.toString()+n:n}var W=(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))(W||{});function Me(e,t=0,n=W.HALF_EVEN){if(n===W.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let r=!1;e[0]==="-"&&(r=!0,e=e.substring(1));let a=e.split("."),s=a[0],u=a[1];if(t<0){if(t=-t,s.length<=t)return"0";{let c=s.substr(0,s.length-t);return e=c+"."+s.substr(s.length-t)+u,c=Me(e,0,n),(r?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return s.length,Et(a[1],s,r,n)?(r?"-":"")+ot(s):(r?"-":"")+s;if(a[1]){if(a[1].length<t)return(r?"-":"")+s+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(r?"-":"")+s+"."+new Array(t+1).join("0");u=a[1].substring(0,t);let i=a[1].substring(t);return i&&Et(i,u,r,n)&&(u=ot(u),u.length>t)?(r?"-":"")+ot(s,parseInt(u[0]))+"."+u.substring(1):(r?"-":"")+s+"."+u}function Et(e,t,n,r){if(!e||e===new Array(e.length+1).join("0")||r===W.DOWN||!n&&r===W.FLOOR||n&&r===W.CEILING)return!1;if(r===W.UP||n&&r===W.FLOOR||!n&&r===W.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(r){case W.HALF_DOWN:return!1;case W.HALF_UP:return!0;case W.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function ot(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let n=e.length-1,r="";for(let a=n;a>=0;a--){let s=parseInt(e[a])+t;s==10?(t=1,s=0):t=0,r+=s}return t&&(r+=t),r.split("").reverse().join("")}function it(e,t){e=e.toString(),t=t.toString();let n=0;e[0]=="-"&&(n++,e=e.substr(1)),t[0]=="-"&&(n++,t=t.substr(1)),e=Ce(e),t=Ce(t);let r=0,a=0;e.indexOf(".")!=-1&&(r=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let s=r+a;if(e=Ce(e.replace(".","")),t=Ce(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let u=t.length,i=0,c=[],l=u-1,d="";for(let f=0;f<u;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let S=0;for(let D=t.length-1;D>=l&&D>=0;D--)c[D]>-1&&c[D]<e.length&&(S+=parseInt(e[c[D]--])*parseInt(t[D]));S+=i,i=Math.floor(S/10),d=S%10+d,l--}return d=Ce(kn(d,s)),n==1&&(d="-"+d),d}function kn(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 Ce(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 ut(e,t,n=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 r=0;t[0]=="-"&&(t=t.substring(1),r++),e[0]=="-"&&(e=e.substring(1),r++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Z(t.replace(".","")),a>=0){let l=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(l==-1)e=Z(e+new Array(a+1).join("0"));else if(a>l)e=e.replace(".",""),e=Z(e+new Array(a-l+1).join("0"));else if(a<l){e=e.replace(".","");let d=e.length-l+a;e=Z(e.substring(0,d)+"."+e.substring(d))}else a==l&&(e=Z(e.replace(".","")))}let s=0,u=t.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(0,u+1):e.substring(0,u);if(e=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(u+1):e.substring(u),c.indexOf(".")>-1){let l=c.length-c.indexOf(".")-1;c=c.replace(".",""),u>c.length&&(l+=u-c.length,c=c+new Array(u-c.length+1).join("0")),s=l,i="0."+new Array(l).join("0")}for(n=n+2;s<=n;){let l=0;for(;parseInt(c)>=parseInt(t);)c=Le(c,"-"+t),l++;i+=l,e?(e[0]=="."&&(i+=".",s++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(s||(i+="."),s++,c=c+"0")}return(r==1?"-":"")+Z(Me(i,n-2))}function ct(e,t){return e=e.toString(),t=t.toString(),t=ft(t),Le(e,t)}function ft(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),At(e),At(t);let n="";e[0]=="-"&&(n="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let r=ct(e,it(t,Me(ut(e,t),0,W.FLOOR)));return n+r}function At(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Nt(e,t){let n=!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),n=!0),[e,t]=mt(e,t),e.localeCompare(t)==0)return 0;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return e[r]>t[r]?n?-1:1:n?1:-1;return 0}class _{value;static RoundingModes=W;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[n,r]=t.split(/[eE]/);n=Z(n);let a="";n[0]=="-"&&(a="-",n=n.substring(1)),n.indexOf(".")>=0?(r=parseInt(r)+n.indexOf("."),n=n.replace(".","")):r=parseInt(r)+n.length,n.length<r?t=a+n+new Array(r-n.length+1).join("0"):n.length>=r&&r>0?t=a+Z(n.substring(0,r))+(n.length>r?"."+n.substring(r):""):t=a+"0."+new Array(-r+1).join("0")+n}return t}constructor(t="0"){this.value=_.validate(t)}getValue(){return this.value}static getPrettyValue(t,n,r){if(!(n||r))n=3,r=",";else if(!(n&&r))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=_.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var s=t.indexOf(".");s=s>0?s:t.length;for(var u="",i=s;i>0;)i<n?(n=i,i=0):i-=n,u=t.substring(i,i+n)+(i<s-n&&i>=0?r:"")+u;return(a?"-":"")+u+t.substring(s)}getPrettyValue(t,n){return _.getPrettyValue(this.value,t,n)}static round(t,n=0,r=W.HALF_EVEN){if(t=_.validate(t),isNaN(n))throw Error("Precision is not a number: "+n);return Me(t,n,r)}round(t=0,n=W.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new _(Me(this.value,t,n))}static floor(t){return t=_.validate(t),t.indexOf(".")===-1?t:_.round(t,0,W.FLOOR)}floor(){return this.value.indexOf(".")===-1?new _(this.value):new _(this.value).round(0,W.FLOOR)}static ceil(t){return t=_.validate(t),t.indexOf(".")===-1?t:_.round(t,0,W.CEILING)}ceil(){return this.value.indexOf(".")===-1?new _(this.value):new _(this.value).round(0,W.CEILING)}static add(t,n){return t=_.validate(t),n=_.validate(n),Le(t,n)}add(t){return new _(Le(this.value,t.getValue()))}static subtract(t,n){return t=_.validate(t),n=_.validate(n),ct(t,n)}subtract(t){return new _(ct(this.value,t.getValue()))}static multiply(t,n){return t=_.validate(t),n=_.validate(n),it(t,n)}multiply(t){return new _(it(this.value,t.getValue()))}static divide(t,n,r){return t=_.validate(t),n=_.validate(n),ut(t,n,r)}divide(t,n){return new _(ut(this.value,t.getValue(),n))}static modulus(t,n){return t=_.validate(t),n=_.validate(n),Pt(t,n)}modulus(t){return new _(Pt(this.value,t.getValue()))}static compareTo(t,n){return t=_.validate(t),n=_.validate(n),Nt(t,n)}compareTo(t){return Nt(this.value,t.getValue())}static negate(t){return t=_.validate(t),ft(t)}negate(){return new _(ft(this.value))}}function qn(e,t){return _.multiply(`${e}`,`${t}`)}function Ln(e,t,n=8){return _.divide(`${e}`,`${t}`,n)}function _n(e,t){return e=`${e}`,t=`${t}`,_.compareTo(e,t)}function jn(e){return _.negate(e)}function jt(e,t=-1,n=!1,r=3,a=","){let s=`${e}`;if(s.length==0||s==="-")return"";let u=s.charAt(0);u=="-"?s=s.substring(1):u="";let i=s,c="",l=s.indexOf(".");l!=-1&&(i=s.substring(0,l),c=s.substring(l+1)),t!=-1&&(t<c.length?c=c.substring(0,t):n&&t>c.length&&(c=c.padEnd(t,"0")));let d;if(r>0){let f="",S=i.split("").reverse();for(let D=0;D<S.length;D++)f+=S[D]+((D+1)%r==0&&D+1!=S.length?a:"");c.length==0?d=`${u}${f.split("").reverse().join("")}`:d=`${u}${f.split("").reverse().join("")}.${c}`}else c.length==0?d=`${u}${i}`:d=`${u}${i}.${c}`;return d}function Hn(e){let t=`${e}`,n=t.charAt(0);n=="-"?t=t.substring(1):n="";let r=t.replace(/[^\d\.-]/g,"");return`${n}${r}`}const Be=typeof window<"u",Fn=Be&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Ht(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function zn(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(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 n=t.indexOf(".");return n==-1?t.length:n}function Yn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const n=t.indexOf(".");return n==-1?0:t.length-(n+1)}function Ot(e,t,n){const r=e.indexOf(t);return r===-1?e:t==="-"&&r!==0?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(n,"")}function Kn(e,t=!0,n=!0){t?e=Ot(e,".",/\./g):e=e.replace(/\./g,""),n?e=Ot(e,"-",/-/g):e=e.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}function Gn(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(n=>{if(H.isEqual(e,n))return!0}):t.indexOf(e)}function Un(e,t){if(typeof e=="object"||Array.isArray(e)){let n=t.reverse().findIndex(r=>{if(H.isEqual(e,r))return!0});return n!==-1&&(n=t.length-1-n),n}return t.lastIndexOf(e)}function Ft(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Zn(e,...t){const n={};return t.forEach(r=>{for(const a in r)n[a]=e[a]}),n}function Se(e,...t){const n=[];t.forEach(a=>{Reflect.apply([].push,n,Reflect.ownKeys(a))});const r={};for(const a in e)n.includes(a)||(r[a]=e[a]);return r}const Xn=(e,t,n)=>{const r=Object.assign({},e),a=Object.assign({},n);return Object.keys(t).length>0?(Object.keys(r).forEach(s=>{a.hasOwnProperty(s)?(typeof a[s]=="function"&&(r[s]=a[s](t)),typeof a[s]=="string"&&(r[s]=t[a[s]])):t[s]&&(r[s]=t[s])}),r):e},G=Symbol("BroadcastKey");class yt{parent;children=[];callbacks=new Map;instance=null;name;constructor(t,n,r){this.parent=t,this.instance=n,this.name=r,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const n=this.children.findIndex(r=>t===r);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.instance=null}emit(t,n,...r){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Ht(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const s=[];if(a){const u=this.callbacks.get(n);if(typeof u=="function"){const l=Reflect.apply(u,this.instance?.proxy,[...r]);l!=null&&s.push(l)}const i=this.instance?.exposed??{};if(typeof i[n]=="function"){const l=Reflect.apply(i[n],i,[...r]);l!=null&&s.push(l)}const c=this.instance?.proxy??{};if(typeof c[n]=="function"){const l=Reflect.apply(c[n],c,[...r]);l!=null&&s.push(l)}}return this.children.forEach(u=>{const i=Reflect.apply(u.emit,u,[{...t},n,...r]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,s,[...i])}),s}emitToChildren(t,n,...r){const a=[];return this.children.forEach(s=>{const u=Reflect.apply(s.emit,s,[{...t},n,...r]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}on(t,n){this.callbacks.set(t,n)}}function vt(e,t,n,r){const a=new yt(t,e,n);if(r&&typeof r=="object")for(const s in r)a.on(s,r[s]);return a}function Jn(e,t){const n=o.getCurrentInstance();if(n===null)return null;const r=n.proxy;if(r[G])return r[G];const a=o.inject(G,null),s=new yt(a,n,e);if(t&&typeof t=="object")for(const u in t)s.on(u,t[u]);return r[G]=s,o.provide(G,s),o.onUnmounted(()=>{s.destroy(),r[G]=void 0}),s}function Ve(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[G]??o.inject(G,null):o.inject(G,null)}class Qn{error(t,n,r){const a=n,s=Ve(n);s?s.emit({name:"*"},"setErrorTip",t):typeof a.setErrorTip=="function"&&a.setErrorTip(t)}reset(t,n){const r=t,a=Ve(t);a?a.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t,n){const r=t,a=Ve(t);a?a.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,n,r,a){Array.isArray(t)||(t=[t]);const s=r,u=Ve(r),i=n.find(l=>l.required===!0||l.type==="required"&&l.required!==!1),c=t.find(l=>l.required===!0||l.type==="required"&&l.required!==!1);!i&&c?u?u.emit({name:"*"},"setRequired",!0):typeof s.setRequired=="function"&&s.setRequired(!0):i&&!c&&(u?u.emit({name:"*"},"setRequired",!1):typeof s.setRequired=="function"&&s.setRequired(!1),this.reset(r,a))}getValue(t,n){return t.modelValue}}let zt=new Qn;function er(e){zt=e}function tr(e,t){be.default.setValidator(e,t)}function nr(e){be.default.deleteValidator(e)}let Wt=["blur","clear"];function rr(e){Wt=e}function Yt(){return Wt}let Kt=["focus","change"];function ar(e){Kt=e}function Gt(){return Kt}function or(e){be.default.messages(e)}function Re(...e){const t=[];return e.forEach(n=>{n.forEach(r=>{const a=t.findIndex(s=>s.type===r.type);a!==-1&&t.splice(a,1),t.push(r)})}),t}function ke(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 re=Symbol("ValidateSchemaKey");class Ut{parent=null;validators={};attrRules=[];rules=[];descriptor;instance;scope=null;constructor(t,n,r){this.parent=t,this.descriptor=n,this.instance=r,(this.descriptor.validate??!0)&&this.init()}init(){if(!this.descriptor.valueName)return;let t=this.instance.proxy;if(!t)return;let n=t.$attrs;!n||(this.scope=o.effectScope(),this.scope.run(()=>{o.watchEffect(()=>{const r=ke(Re(this.attrRules,this.rules)),a=[];for(let u in n){let i=n[u];if(this.hasValidator(u,!0)){if(i===!1)continue;let l={type:u};i!==null&&typeof i=="object"&&Object.assign(l,i),a.push(l);continue}let c=this.getValidator(u);if(c!==null){let l={type:u,validator:c};a.push(l)}}this.attrRules=ke(a);const s=Re(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(s,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...n){const r=this.descriptor.validateHandler;if(r&&typeof r[t]=="function")return Reflect.apply(r[t],r,[...n]);const a=zt;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...n]):null}decorate(t,n){let r=this.instance.proxy;r!==null&&this.execHandler("decorate",t,n,r,this.instance)}success(){let t=this.instance.proxy;t!==null&&this.execHandler("success",t,this.instance)}error(t){let n=this.instance.proxy;n!==null&&this.execHandler("error",t,n,this.instance)}getValue(){let t=this.instance.proxy;return t===null?null:this.execHandler("getValue",t,this.instance)}setValidator(t,n,r=!1){r?be.default.setValidator(t,n):this.validators[t]=n}getValidator(t){let n=this.validators[t]??null;return n||(n=this.parent?.getValidator(t)??null),n}deleteValidator(t,n=!1){n?be.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,n=!1){if(n)return be.default.hasValidator(t);{let r=Reflect.has(this.validators,t);return!r&&this.parent!==null&&(r=this.parent.hasValidator(t,!1)),r}}setRule(t){const n=Re(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=ke(t):this.rules=ke([t]);const r=Re(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,n)})}clear(){let t=this.instance.proxy;t!==null&&this.execHandler("reset",t,this.instance)}validate(){if(this.descriptor.validate??!0){let n=Re(this.attrRules,this.rules);const r=this.descriptor.fieldName??"value";if(n.length>0){const a={[`${r}`]:n};if(!this.instance.proxy)return Promise.resolve({pass:!0});const u=this.getValue(),i={[`${r}`]:u},c=new be.default(a),l=this.instance?.proxy??i;return c.validate(i,{context:l}).then(f=>{if(f.pass)this.success();else{let S="error";Array.isArray(f.errors)&&f.errors.length>0&&(S=f.errors[0].message??S,f.errors=[f.errors[0]],f.errors[0].ref=l),this.error(S)}return f}).catch(f=>{const S=f.message??`${f}`;return this.error(S),f})}}return Promise.resolve({pass:!0})}}function bt(e,t,n){if(n.valueName=n.valueName??"modelValue",n.valueType=n.valueType??"string",!n.validateHandler&&n.valueName!=="modelValue"){const a=n.valueName;n.validateHandler={getValue(s,u){return s[a]}}}return new Ut(t,n,e)}const Ct=Symbol("EventEmitterKey");class sr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,n){let r=this.register.get(t);if(r&&Array.isArray(r)){let a=r.findIndex(s=>s===n);a!==-1&&r.splice(a,1)}}on(t,n){let r=this.register.get(t);r||(r=new Array,this.register.set(t,r)),r.push(n)}emit(t,...n){const r=this.register.get(t);r&&r.forEach(a=>{try{Reflect.apply(a,null,[t,...n])}catch(s){console.error(s.message,s)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...n])}}function lr(e,t){let n=0;return function(...r){const a=Date.now();a-n>t&&(Reflect.apply(e,{},[...r]),n=a)}}function $t(e,t){let n,r=null;return function(...a){r=a,n||(n=setTimeout(()=>{n=null,Reflect.apply(e,{},[...r??[]])},t))}}const ce=Symbol("DomainKey");class wt{_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=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,n=[]){for(const r in t){const a=t[r];n.length>0&&n.indexOf(a)!==-1||(this._props[r]=a)}}has(t){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,n){this._props[t]=n}get(t,n){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return r}return this.parent==null?n:this.parent.get(t,n)}getForParent(t,n){return this.parent==null?n:this.parent.get(t,n)}getForSelf(t){return this._props[t]}getAll(t){const n=[];let r=this;for(;r!=null;){if(Reflect.has(r._props,t)){const a=r._props[t];n.push(a)}r=r._parent}return n}}const ir=new wt;function Ie(){return ir}function pe(e=null){e||(e=o.getCurrentInstance());const t=e?.proxy;return t?t[ce]??o.inject(ce,null):o.inject(ce,null)}const Rt=Symbol("OriginalDateKey");function St(e,t,n=[],r){const a=o.getCurrentInstance();let s=o.inject(ce,null);s===null&&(s=Ie());const u=e||t.prop||t.name,i=new wt(u);i.parent=s,o.isReactive(t)?o.watchEffect(()=>{i.merge(t,n)}):i.merge(t,n);const c=a?.proxy;c[ce]=i,o.provide(ce,i);let l=null,d=null;if(a!==null){const f=o.inject(G,null);l=vt(a,f,u,r),i.broadcast=l,c[G]=l,o.provide(G,l),c.broadcast=(m,p,...y)=>Reflect.apply(l.emit,l,[m,p,...y]);const S=o.inject(re,null);d=bt(a,S,{componentName:""}),i.validateSchema=d,c[re]=d,o.provide(re,d),c.validate=(m=!0)=>{const p=[];let y=null;if(m===!0)y={name:"*"};else if(Array.isArray(m)&&m.length>0){const $=m;y={name:A=>A?$.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const $=m;if(Array.isArray($.include)&&$.include.length>0){const A=$.include;y={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const A=$.exclude;y={name:V=>V?A.indexOf(V)===-1:!1}}}if(y){const $=l?.emitToChildren(y,"validate",!1);$&&Reflect.apply([].push,p,$)}return p.length==1?p[0]:p.length>1?Promise.all(p).then($=>{let A=[];return $.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(A=[...A,...V.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},c.setNameValidateRules=(m,p=!0)=>{if(p){const y={name:$=>Reflect.ownKeys(m).includes($)};l?.emitToChildren(y,"setNameValidateRules",m,!1)}},c.clearValidate=(m=!0)=>{let p=null;if(m===!0)p={name:"*"};else if(Array.isArray(m)&&m.length>0){const y=m;p={name:$=>$?y.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const y=m;if(Array.isArray(y.include)&&y.include.length>0){const $=y.include;p={name:A=>A?$.indexOf(A)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const $=y.exclude;p={name:A=>A?$.indexOf(A)===-1:!1}}}p&&l?.emitToChildren(p,"clearValidate",!1)};const D={};t.modelValue&&H.extend(!0,D,o.toRaw(t.modelValue)),c[Rt]=D,c.resetFields=m=>{if(!t.modelValue)return;debugger;const p={};if(H.extend(!0,p,c[Rt]??{}),Array.isArray(m))m.forEach(y=>{t.modelValue[y]=p[y]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach($=>{t.modelValue[$]=p[$]});else if(m&&Array.isArray(m.exclude)){let y=m.exclude??[];Reflect.ownKeys(p).forEach($=>{y.includes($)||(t.modelValue[$]=p[$])})}else Object.assign(t.modelValue,p);c.clearValidate(m)}}return o.onUnmounted(()=>{i.destroy(),c[ce]=void 0,l!==null&&(l.destroy(),c[G]=void 0),d!==null&&(d.destroy(),c[re]=void 0)}),i}function ge(e,t,n){const r=o.getCurrentInstance(),a=t??"",s=o.inject(G,null),u=vt(r,s,a,n),i=r?.proxy;i[G]=u,o.provide(G,u),i.broadcast=(m,p,...y)=>Reflect.apply(u.emit,u,[m,p,...y]);const c=o.inject(re,null);e.fieldName=e.fieldName??a;const l=bt(r,c,e);i[re]=l,o.provide(re,l),i.validate=(m=null)=>{const p=[];if(!Array.isArray(m)||m.indexOf(a)!==-1){const $=l?.validate();p.push($)}let y=null;if(m===!0)y={name:"*"};else if(Array.isArray(m)&&m.length>0){const $=m;y={name:A=>A?$.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const $=m;if(Array.isArray($.include)&&$.include.length>0){const A=$.include;y={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const A=$.exclude;y={name:V=>V?A.indexOf(V)===-1:!1}}}if(y){const $=u.emitToChildren(y,"validate",!1);Reflect.apply([].push,p,$)}return p.length==1?p[0]:p.length>1?Promise.all(p).then($=>{let A=[];return $.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(A=[...A,...V.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=m=>l?.setRule(m),i.setNameValidateRules=(m,p=!1)=>{const y=m[a];if(y&&l?.setRule(y),p){const $={name:A=>Reflect.ownKeys(m).includes(A)};u.emitToChildren($,"setNameValidateRules",m,!1)}},i.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&l?.clear();let p=null;if(m===!0)p={name:"*"};else if(Array.isArray(m)&&m.length>0){const y=m;p={name:$=>$?y.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const y=m;if(Array.isArray(y.include)&&y.include.length>0){const $=y.include;p={name:A=>A?$.indexOf(A)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const $=y.exclude;p={name:A=>A?$.indexOf(A)===-1:!1}}}p&&u.emitToChildren(p,"clearValidate",!1)};const d=new sr(i);i[Ct]=d;const f=$t((m="validate")=>{m==="reset"?l.clear():l.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Yt()).forEach(m=>{d.on(m,p=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Gt()).forEach(m=>{d.on(m,p=>{f("reset")})}),o.onUnmounted(()=>{u.destroy(),i[G]=void 0,l.destroy(),i[re]=void 0,d.destroy(),i[Ct]=void 0}),{broadcast:u,validateSchema:l,emitEvent:(m,...p)=>{Reflect.apply(d.emit,d,[m,...p])},onEvent:(m,p)=>{Reflect.apply(d.on,d,[p])},offEvent:(m,p)=>{Reflect.apply(d.off,d,[p])}}}const Q=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${U(e,t)}px`:"";function U(e,t=-1){if(typeof e=="number")return e<1?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let n=e.indexOf("px");if(n!==-1)return Number(e.substring(0,n));if(n=e.indexOf("rem"),n!==-1){let a=Number(e.substring(0,n)),s=1;if(Be){const{fontSize:u}=window.getComputedStyle(document.documentElement,null),i=u.indexOf("px");i>0&&(s=Number(u.substring(0,i)))}return a*=s,a}if(n=e.indexOf("%"),n!==-1)return Number(e.substring(0,n))*t;const r=Number(e);return isNaN(r)?0:r}const de="PageStateKey";function te(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=U(e.top)),e.left!==null&&e.left!==void 0&&(t.left=U(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=U(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=U(e.right))),t}function dt(e,t,n={},r=!0,a=-1,s=-1,u=0,i=0){e.headerHeight=U(n.headerHeight??t.headerHeight),e.headerPadding=te(n.headerPadding??t.headerPadding),e.footerHeight=U(n.footerHeight??t.footerHeight),e.footerPadding=te(n.footerPadding??t.footerPadding),e.contentPadding=te(n.contentPadding??t.contentPadding),r&&(e.height=U(n.height??t.height,s)-U(u,s)-U(i,s),e.width=U(n.width??t.width,a))}function Zt(e,t={}){const n={top:null,left:null,bottom:null,right:null},r={width:0,height:0,headerHeight:0,headerPadding:{...n},footerHeight:0,footerPadding:{...n},contentPadding:{...n},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(r.safeAreaTop=U(a.top),r.safeAreaBottom=U(a.bottom),r.safeAreaLeft=U(a.left),r.safeAreaRight=U(a.right));const s=e.get("pageLayout");if(!s)return null;const u=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,l=e.get("footerBarHeight")??0;dt(r,s,t,!0,u,i,c,l);const d=o.reactive(r),f=e.getForParent(de);f&&(r.height=_e(e,f),r.width=je(e,f),o.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{d.height=_e(e,f),d.width=je(e,f)}));const S=!f;return o.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([D,m=-1,p=-1,y=0,$=0])=>{dt(d,D,t,S,m,p,y,$)}),e.set(de,d),d}function Ke(e){return e.get(de)}function Ge(e,t){return t=t??e.get(de),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function Ue(e,t){return t=t??e.get(de),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function _e(e,t){if(t=t??e.get(de),t){const n=Ge(e,t),r=Ue(e,t);return t.height-n-r-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function je(e,t){return t=t??e.get(de),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ur(e,t){const n=e.get("isInnerPage");return typeof n=="function"?Reflect.apply(n,{},[t,e]):!1}function cr(e){return!!e.getForParent(de)}var He=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(He||{});function st(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,n=1,r){const a=pe();return a==null?e:n===0?o.computed(()=>{const s=a.getAll(t);for(let i=s.length-1;i>=0;i--){const c=s[i];if(st(c,r))return c}const u=e.value;return st(u,r)?u:null}):o.computed(()=>{const s=e.value;return st(s,r)?s:a?.get(t)})}function Ne(e){return De(e,"readonly",0,function(n){return H.toBoolean(n)})}function Oe(e){return De(e,"disabled",0,function(n){return H.toBoolean(n)})}function ne(e,t="modelValue",n){const r=o.toRef(e,t);let a=r.value;typeof n=="function"&&(a=n(r.value));const s=o.ref(a);return o.watch(r,u=>{if(typeof n=="function"){const i=n(u);i!==s.value&&(s.value=i)}else u!==s.value&&(s.value=u)}),s}const Xt=new Map,Fe=new Map;let ht=null;function fr(e){ht=e}function Jt(e,t,n){if(n){let r=Fe.get(n);r||(r=new Map,Fe.set(n,r)),r.set(e,t)}else Xt.set(e,t)}function Ze(e,t,n){!n&&ht&&(n=ht(e)??void 0);let r=null;if(n){let a=Fe.get(n);a&&(r=a.get(t))}return r||(r=Xt.get(t)),r}function dr(e,t){for(let n in e){const r=e[n];Jt(n,r,t)}}function hr(e){Fe.delete(e)}function pr(){return{top:0,left:0,bottom:0,right:0}}function gr(){if(Be){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class mr{packages;installers;_version;get version(){return this._version}constructor(t,n,r){this.packages=t,this.installers=n,this._version=r}install(t,n={}){this.packages.forEach(s=>{s.install?t.use(s):s.name&&t.component(s.name,s)}),this.installers.forEach(s=>{s(t)});const r=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Ie();if(this.initPageLayout(n,a),n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const s=$t(()=>{const i={...n},c=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=l,this.initPageLayout(i,a)},150);new window.ResizeObserver(s).observe(window.document.body)}for(const s in n)r.indexOf(s)===-1&&a.set(s,n[s])}initPageLayout(t,n){const r=H.extend({},pr(),t.safeAreaInset),a=H.extend({},gr(),t.pageLayout);n=n??Ie(),n.set("safeAreaInset",r),n.set("headerBarHeight",t.headerBarHeight??0),n.set("footerBarHeight",t.footerBarHeight??0),n.set("pageLayout",a),n.set("rootWidth",a.width),n.set("rootHeight",a.height)}setScopeGetter(t){fr(t)}setAPI(t,n,r){Jt(t,n,r)}getAPI(t,n,r){return Ze(t,n,r)}batchSetAPI(t,n){dr(t,n)}clearScopeAPI(t){hr(t)}getRootDomain(){return Ie()}}const yr=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],vr=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],br=e=>{yr.forEach(t=>{let n=t.name;typeof n=="string"?(n=`Fox${n.slice(2)}`,e.component(n,t)):e.use(t)}),vr.forEach(t=>{e.use(t)})};function Y(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(n){return n.baseName=e,n.name=t,n.install=r=>{r.component(n.name,n)},o.defineComponent(n)},createDemo(n){return n.baseName=e,n.name="demo-"+e,o.defineComponent(n)}}}const ae={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,default:!0}},xe={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],default:0},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:!1},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},Qt={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},en={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1}},tn=[];for(const e in en)tn.push(e);function oe(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let n=t.proxy;Object.assign(n,e)}}const $r=Symbol.for("InnerPageScopeKey"),wr=(e,t)=>({inheritAttrs:!1,props:{...ae,...Qt,name:{type:String,required:!1,default:""},modelValue:{type:String,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(n,r){const a=St(n.name,n);if(a){const l=Zt(a,n);oe({getPageContentHeight:()=>_e(a,l),getPageContentWidth:()=>je(a,l),getPageHeaderHeight:()=>Ge(a,l),getPageFooterHeight:()=>Ue(a,l)});const d=o.inject($r,!1);l&&d&&(l.contentHeight="100%")}const s=o.computed(()=>({[e]:!0})),u=o.computed(()=>({})),i=o.getCurrentInstance(),c=l=>{const d=i?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(l,!0)};return o.watch(()=>n.rules,(l,d)=>{if(!l&&!d)return;const f=o.toRaw(d),S=o.toRaw(l),D=S?Reflect.ownKeys(S):[];(f?Reflect.ownKeys(f):[]).forEach(p=>{D.includes(p)||(S[p]=[])}),c(S)},{deep:!0}),o.onMounted(()=>{if(n.rules){const l=o.toRaw(n.rules);c(l)}}),{classes:s,styles:u}}}),{componentName:Sr,create:xr,scope:mo}=Y("page"),Er=xr(wr(Sr));function Pr(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},nn=Ee(Er,[["render",Pr]]),Ar=(e,t)=>({props:{padding:{type:[Object],required:!1}},emits:[],setup(n,r){const a=pe(),s=a?Ke(a):null;s&&(s.headerMounted=!0);const u=o.computed(()=>({[e]:!0})),i=o.computed(()=>{const l={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const d=te(n.padding??s.footerPadding);return Object.assign(l,d),l.height=s.headerHeight,l.safeAreaTop=s.safeAreaTop,l.safeAreaTop&&(l.top=l.safeAreaTop+(d.top??0),l.height=l.height+s.safeAreaTop),l.height,l.safeAreaTop,l}if(n.padding){const d=te(n.padding);Object.assign(l,d)}return l});o.onUnmounted(()=>{s&&(s.headerMounted=!1)});const c=o.computed(()=>{const l={};return i.value.height&&(l.height=`${i.value.height}px`),i.value.top&&(l.paddingTop=`${i.value.top}px`),i.value.left&&(l.paddingLeft=`${i.value.left}px`),i.value.right&&(l.paddingRight=`${i.value.right}px`),i.value.bottom&&(l.paddingBottom=`${i.value.bottom}px`),l});return{classes:u,styles:c}}}),{componentName:Nr,create:Or,scope:yo}=Y("header-bar"),Cr=Or(Ar(Nr));function Rr(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const rn=Ee(Cr,[["render",Rr]]);function Tr(e,t){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=pe(),s=a?Ke(a):null;s&&(s.footerMounted=!0);const u=o.computed(()=>{const l=e;let d=e;return n.align==="left"?d=`${d}__left`:n.align==="right"?d=`${d}__right`:d=`${d}__center`,{[l]:!0,[d]:!0}}),i=o.computed(()=>{const l={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const d=te(n.padding??s.footerPadding);return Object.assign(l,d),l.safeAreaBottom=s.safeAreaBottom,l.safeAreaBottom&&(l.height=s.footerHeight+s.safeAreaBottom,l.bottom=l.safeAreaBottom+(d.bottom??0)),l.height,l.safeAreaBottom,l}if(n.padding){const d=te(n.padding);Object.assign(l,d)}return l});o.onUnmounted(()=>{s&&(s.footerMounted=!1)});const c=o.computed(()=>{const l={};return i.value&&(l.height=`${i.value.height}px`),i.value&&(l.paddingTop=`${i.value.top}px`),i.value&&(l.paddingLeft=`${i.value.left}px`),i.value&&(l.paddingRight=`${i.value.right}px`),i.value&&(l.paddingBottom=`${i.value.bottom}px`),l});return{classes:u,styles:c}}}}const{componentName:Vr,create:Ir,scope:vo}=Y("footer-bar"),Mr=Ir(Tr(Vr));function Dr(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const an=Ee(Mr,[["render",Dr]]);function Br(e,t){return{props:{padding:{type:[Object],required:!1}},setup(n){const r=pe(),a=o.computed(()=>({[e]:!0})),s=o.computed(()=>{const u={};if(r){const i=Ke(r);if(i){if(n.padding){const f=te(n.padding);Object.assign(i.contentPadding,f)}const c=Ge(r,i),l=Ue(r,i);let d="";if(i.contentHeight?d=`${i.contentHeight}`:d=`${i.height}px`,i.contentPadding,u.height=d,i.contentPadding.top||c>0){const f=(i&&i.contentPadding&&i.contentPadding.top)??0;u.paddingTop=`${c+f}px`}if(i.contentPadding.bottom||l>0){const f=(i&&i.contentPadding&&i.contentPadding.bottom)??0;u.paddingBottom=`${l+f}px`}return i.contentPadding.left&&(u.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right&&(u.paddingRight=`${i.contentPadding.right}px`),u}}if(n.padding){const i=te(n.padding);i.left&&(u.paddingLeft=`${i.left}px`),i.top&&(u.paddingTop=`${i.top}px`),i.right&&(u.paddingRight=`${i.right}px`),i.bottom&&(u.paddingBottom=`${i.bottom}px`)}return u});return{classes:a,styles:s}}}}const{componentName:kr,create:qr,scope:bo}=Y("content"),Lr=qr(Br(kr));function _r(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const on=Ee(Lr,[["render",_r]]),ze="GroupStateKey",sn=Symbol.for("GroupScopeKey");function Xe(){return o.inject(sn,!1)}function Je(e=!0){o.provide(sn,e)}function jr(e,t={}){const n=e.get("width",-1),r={type:"form",width:n,column:-1,gutter:-1};Object.assign(r,t);const a=o.shallowRef(r),s=o.markRaw({layout:a,passport:0});return e.set(ze,s),s}function Tt(e,t,n=-1,r=-1,a=!1){const s=e.get(ze);if(!s)return;const u=e.get("groupLayout")??{};n===-1&&(n=u.column??1),r===-1&&(r=u.gutter??0);const i=u.minItemWidth??-1,c=()=>{const l=t===""||t===-1,d=U(t);let f=H.toNumber(n);const S=U(r);if(!l){let p=(d-(f-1)*S)/f;for(;i!==-1&&f>1&&p<i;)f--,p=(d-(f-1)*S)/f}let D=!1;const m=s.layout;m.value.width=t,m.value.column!==f&&(m.value.column=f,D=!0),m.value.gutter!==S&&(m.value.gutter=S,D=!0),D&&o.triggerRef(m)};if(a)c();else{const l=++s.passport;setTimeout(()=>{l===s.passport&&c()},50)}}function Qe(e,t=!1){let n;return t?n=e.getForParent(ze):n=e.get(ze),n.layout}function he(e,t=1){return t==="stretch"?-1:t===-1?100:100*t/e}function Hr(e){return e===window}const We=e=>{const t=o.unref(e);if(Hr(t)){const n=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Te=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Fr=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,n=(t.props&&t.props.span&&t.props.span.default)??1;return typeof n=="function"?n():n}return e.props.span},zr=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const n=e.type,r=(n.props&&n.props.offset&&n.props.offset.default)??0;return typeof r=="function"?r():r}const t=H.toNumber(e.props.offset);return t<0?0:t};function Wr(e,t){return{props:{...ae,...Qt,...en},setup(n,r){const a=St(n.name,n,tn),s=jr(a,{type:n.type}),u=Xe();Je(!0);const i=o.getCurrentInstance(),c=I=>{const N=i?.proxy;N&&typeof N.setNameValidateRules=="function"&&N.setNameValidateRules(I,!0)};o.watch(()=>n.rules,(I,N)=>{if(!I&&!N)return;const E=o.toRaw(N),C=o.toRaw(I),g=C?Reflect.ownKeys(C):[];(E?Reflect.ownKeys(E):[]).forEach(w=>{g.includes(w)||(C[w]=[])}),c(C)},{deep:!0}),o.onMounted(()=>{if(n.rules){const I=o.toRaw(n.rules);c(I)}});const l=e,d=o.computed(()=>{const I={};if(u&&a){const N=Qe(a,!0);if(N.value.type!=="flex")return{};if(n.width){const g=Q(n.width);I.width=g}else{const g=he(N.value.column,n.span);g>0&&(I.width=`${g}%`)}if(n.height){const g=Q(n.height);I.height=g}const E=he(N.value.column,n.offset);E>0&&(I["margin-left"]=`${E}%`);const C=N.value.gutter/2;C>0&&(I["padding-left"]=`${C}px`,I["padding-right"]=`${C}px`)}else{if(n.width){const N=Q(n.width);I.width=N}if(n.height){const N=Q(n.height);I.height=N}}return I}),f=o.computed(()=>n.type==="flex"?{[`${Te("",n.type)}`]:!0,[`${Te("justify",n.justify)}`]:!0,[`${Te("align",n.align)}`]:!0,[`${Te("flex",n.flexWrap)}`]:!0,[`${l}__gutter`]:!0}:{[`${Te("",n.type)}`]:!0,[`${l}__gutter`]:!0}),S=o.toRef(n,"title"),D=o.toRef(n,"gutter"),m=o.toRef(n,"column"),p=o.computed(()=>u?!0:n.isWrap),y=o.ref([]),$=I=>{y.value.push(I)},A=o.ref(-1);if(Tt(a,A.value,m.value,D.value,!0),n.autoLayout){o.watch([A,m,D],([N,E,C])=>{Tt(a,N,E,C,!1)});let I=null;o.onMounted(()=>{if(Be&&y.value&&y.value.length>0){const N=y.value[0];A.value=We(N).width,window.ResizeObserver&&(I=new window.ResizeObserver(()=>{const E=We(N).width;E>0&&E!==A.value&&(A.value=E)}),I.observe(N))}}),o.onUnmounted(()=>{I?.disconnect()})}const V=(I,N,E,C)=>{const g={...f.value};return N===0&&(g[`${l}__first`]=!0),E>=C-1&&(g[`${l}__last`]=!0),o.h("div",{ref:$,key:`${N}`,class:g},I)};return()=>{const I=[];let N=0;if(r.slots.title){const O={key:`${N++}`,class:{[`${l}__title`]:!0,[`${l}__first`]:!0}},w=o.h("div",O,[r.slots.title()]);I.push(w)}else if(S.value){const O={key:`${N++}`,class:{[`${l}__title`]:!0,[`${l}__first`]:!0}},w=o.h("div",{class:{[`${l}__title-mark`]:!0}}),k=o.h("div",{class:{[`${l}__title-text`]:!0}},[S.value]),j=o.h("div",O,[w,k]);I.push(j)}const E=r.slots.default?r.slots.default():[];let C=[],g=0;if(n.type==="flex"){for(let O=0;O<E.length;O++){const w=E[O],k=Fr(w),j=zr(w);if(k==="stretch"){if(g<s.layout.value.column){C.push(w);const h=V([...C],N++,O,E.length);I.push(h)}else{const h=V([...C],N++,O-1,E.length);I.push(h);const R=V([w],N++,O,E.length);I.push(R)}g=0,C=[];continue}let M=H.toNumber(k);if(M===-1){if(C.length>0){const R=V([...C],N++,O-1,E.length);I.push(R)}const h=V([w],N++,O,E.length);I.push(h),g=0,C=[];continue}M>s.layout.value.column?M=s.layout.value.column:M<=0&&(M=1);const P=g+M+j;if(P>s.layout.value.column){const h=V([...C],N++,O-1,E.length);I.push(h),g=M+j,C=[w]}else C.push(w),g=P}if(C.length>0){const O=V([...C],N++,E.length,E.length);I.push(O)}}else for(let O=0;O<E.length;O++){const w=E[O],k=V([w],N++,O,E.length);I.push(k)}return p.value?o.h("div",{class:{[`${l}`]:!0},style:d.value},[I]):I}}}}const{componentName:Yr,create:Kr,scope:$o}=Y("group"),ln=Kr(Wr(Yr)),un={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Gr,create:Ur}=Y("price"),Zr=Ur({props:{...un},setup(e){const t=o.computed(()=>({[Gr]:!0})),n=o.computed(()=>e.needSymbol?e.symbol:""),r=o.computed(()=>Ft(e.price)==0?"":jt(e.price,e.decimalLength,!0,e.digits,e.separator)),a=o.computed(()=>{let u=r.value;if(u.length==0)return"";let i=u.indexOf(".");return u.substring(0,i)}),s=o.computed(()=>{let u=r.value;if(u.length==0)return"";let i=u.indexOf(".");return u.substring(i+1)});return{classes:t,showSymbol:n,intText:a,decimalText:s}}}),Xr=["innerHTML"],Jr=["innerHTML"];function Qr(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Xr)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Jr)):o.createCommentVNode("",!0)],2)}const Ye=Ee(Zr,[["render",Qr]]),{componentName:lt,create:ea}=Y("hint-text"),ta=ea({components:{[Ye.name]:Ye},props:{...un,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=o.computed(()=>({[lt]:!0})),s=o.computed(()=>({left:Q(e.startPoint.x),top:Q(e.startPoint.y-e.height-10-4),height:Q(e.height),width:Q(e.width)})),u=o.computed(()=>({[`${lt}__content`]:!0})),i=o.computed(()=>({})),c=o.computed(()=>({[`${lt}__arrow`]:!0})),l=o.computed(()=>({top:Q(e.height)}));return{classes:a,styles:s,textClasses:u,textStyles:i,arrowClasses:c,arrowStyles:l}}}),na={key:1,class:"text"};function ra(e,t,n,r,a,s){const u=o.resolveComponent("fox-price");return o.openBlock(),o.createBlock(o.Transition,{name:"hint-text-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(u,{key:0,price:e.message,position:"before"},null,8,["price"])):(o.openBlock(),o.createElementBlock("span",na,o.toDisplayString(e.message),1))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.visible]])]),_:1})}const et=Ee(ta,[["render",ra]]);class cn{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}}function aa(e){return e===window}const fn=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(aa(t))return{x:0,y:0};let n=0,r=0,a=t;for(;a!==null;)r+=a.scrollTop,n+=a.scrollLeft,a=a.parentElement;const s=t.getBoundingClientRect(),u=s.x+n,i=s.y+r;return{x:u,y:i}},pt={},oa=new cn,Pe=new Map,gt=e=>{if(e){const t=document.getElementById(e);Pe.delete(e),t&&document.body.removeChild(t)}else{for(const t of Pe.keys()){const n=document.getElementById(t);n&&document.body.removeChild(n)}Pe.clear()}},sa=e=>{const t=document.getElementById(e.id);if(t){const n=Pe.get(e.id);n?e={...pt,...n,...e}:e={...pt,...e};const r=o.createVNode(et,e);return o.render(r,t),e.id}},la=e=>{e.unmount=gt;let t;if(e.id){if(t=e.id,Pe.has(t))return sa(e)}else t=`hinttext_${oa.get()}`;e={...pt,...e},e.id=t,Pe.set(t,e);const n=document.createElement("div");n.id=e.id;const r=o.createVNode(et,e);return o.render(r,n),document.body.appendChild(n),t},ia=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},qe={show(e,t,n={},r=!0){r&&gt(),ia(t);const a=fn(e),s={x:a.x,y:a.y},i=We(e).width;return la({...n,message:t,startPoint:s,width:i})},hide(e){gt(e)},install(e){e.config.globalProperties.$hintText=qe}},{componentName:Vt,create:ua}=Y("item"),ca=ua({inheritAttrs:!0,props:{...ae,...xe},setup(e,t){ge({componentName:Vt,validate:!1},e.prop??e.name);const n=pe(),r=Xe();Je(!1);const a=Vt,s=o.computed(()=>({[a]:!0,[`${a}__gutter`]:!0,[`${a}__stretch`]:e.span==="stretch",[`${a}__input--border`]:e.hasBorder,"is-error":!!g.value,"is-warn":!!E.value,"is-info":!!I.value})),u=o.computed(()=>{if(r&&n){const x=Qe(n,!1);if(x.value.type!=="flex")return{};const T={},B=he(x.value.column,e.span);B>0&&(T.width=`${B}%`);const q=he(x.value.column,e.offset);q>0&&(T["margin-left"]=`${q}%`);const L=x.value.gutter/2;return L>0&&(T["padding-left"]=`${L}px`,T["padding-right"]=`${L}px`),T}return{}}),i=o.ref(null),c=o.computed({get:()=>i.value??H.toBoolean(e.isRequired),set:x=>{i.value=x}}),l=o.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),d=De(o.toRef(e,"labelPosition"),"labelPosition",He.Near),f=o.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),S=o.computed(()=>({[`${a}__main`]:!0,[`${a}__main--${f.value}`]:!0})),D=o.computed(()=>({label:!0,[`label-${f.value}`]:!0})),m=De(o.toRef(e,"labelWidth"),"labelWidth",He.Near),p=o.computed(()=>m&&m.value?{width:`${Q(m.value)}`}:{}),y=o.computed(()=>({["label--string"]:!0,["label--required"]:c.value})),$=o.computed(()=>({content:!0,[e.contentClass]:!0})),A=o.computed(()=>({...e.contentStyle})),V=o.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});oe({setRequired(x){c.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x}});const I=o.computed(()=>e.infoTip||V.infoTip),N=o.computed(()=>e.infoIcon||V.infoIcon),E=o.computed(()=>e.warnTip||V.warnTip),C=o.computed(()=>e.warnIcon||V.warnIcon),g=o.computed(()=>e.errorTip||V.errorTip),O=o.computed(()=>e.errorIcon||V.errorIcon),w=o.computed(()=>g.value?"error":E.value?"warn":I.value?"info":""),k=o.computed(()=>w.value.length>0),j=o.computed(()=>w.value==="error"?g.value:w.value==="warn"?E.value:w.value==="info"?I.value:""),M=o.computed(()=>w.value==="error"?O.value:w.value==="warn"?C.value:w.value==="info"?N.value:null),P=o.computed(()=>{let x={[`${a}__tip`]:!0,[`${a}__tip--${w.value}`]:!0};return w.value==="error"&&e.errorClass?x[`${e.errorClass}`]=!0:w.value==="warn"&&e.warnClass?x[`${e.warnClass}`]=!0:w.value==="info"&&e.infoClass&&(x[`${e.infoClass}`]=!0),x}),h=o.computed(()=>{let x={};return d&&d.value==="top"?x["padding-left"]="0px":m&&m.value&&(x["padding-left"]=Q(m.value)),x}),R=o.ref();let b="";return o.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([x,T,B,q])=>{!R.value||(x?b?qe.show(R.value,T,{...q,id:b,type:B}):b=qe.show(R.value,T,{...q,type:B}):qe.hide(b))}),{classes:s,styles:u,mainClasses:S,hasLabel:l,labelClasses:D,labelStyles:p,labelStringClasses:y,contentClasses:$,contentStyles:A,contentRef:R,hasTip:k,mTip:j,mIcon:M,tipClasses:P,tipStyles:h}}}),fa={key:0,class:"fox-item__tip-icon"},da={class:"fox-item__tip-text"};function ha(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.mainClasses)},[e.hasLabel?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.labelClasses),style:o.normalizeStyle(e.labelStyles)},[o.createElementVNode("div",{class:o.normalizeClass(e.labelStringClasses)},[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(e.label),1)])],2)],6)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref:"contentRef",class:o.normalizeClass(e.contentClasses),style:o.normalizeStyle(e.contentStyles)},[o.renderSlot(e.$slots,"prepend"),o.renderSlot(e.$slots,"default"),o.renderSlot(e.$slots,"append")],6)],2),o.createVNode(o.Transition,{name:"fox-item__animate"},{default:o.withCtx(()=>[e.hasTip?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.tipClasses),style:o.normalizeStyle(e.tipStyles)},[e.mIcon?(o.openBlock(),o.createElementBlock("div",fa,o.toDisplayString(e.mIcon),1)):o.createCommentVNode("",!0),o.createElementVNode("div",da,o.toDisplayString(e.mTip),1)],6)):o.createCommentVNode("",!0)]),_:1}),o.renderSlot(e.$slots,"hide")],6)}const me=Ee(ca,[["render",ha]]),{componentName:pa,create:ga}=Y("slot-item"),dn=ga({props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0}},setup(e,t){const n=pa,r=o.computed(()=>({[n]:!0,[`${n}__stretch`]:e.span==="stretch"})),a=pe(),s=Xe();Je(!1);const u=o.computed(()=>{if(s&&a){const i=Qe(a,!1);if(i.value.type!=="flex")return{};const c={},l=he(i.value.column,e.span);l>0&&(c.width=`${l}%`);const d=he(i.value.column,e.offset);d>0&&(c["margin-left"]=`${d}%`);const f=i.value.gutter/2;return f>0&&(c["padding-left"]=`${f}px`,c["padding-right"]=`${f}px`),c}return{}});return()=>{const i={class:r.value,style:u.value};return t.slots&&typeof t.slots.default=="function"?o.h("div",i,t.slots.default()):o.h("div",i)}}}),{componentName:ma,create:ya}=Y("row-item"),hn=ya({props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]}},setup(e,t){const n=ma,r=o.computed(()=>({[n]:!0,[`${n}__stretch`]:e.span==="stretch",[`${n}__${e.align}`]:!0})),a=pe(),s=Xe();Je(!1);const u=o.computed(()=>{if(s&&a){const c=Qe(a,!1);if(c.value.type!=="flex")return{};const l={},d=he(c.value.column,e.span);d>0&&(l.width=`${d}%`);const f=he(c.value.column,e.offset);f>0&&(l["margin-left"]=`${f}%`);const S=c.value.gutter/2;return S>0&&(l["padding-left"]=`${S}px`,l["padding-right"]=`${S}px`),l}return{}}),i=o.computed(()=>({[`${n}__content`]:!0}));return()=>{const c=[];t.slots.default&&c.push(t.slots.default());const l={class:i.value},d=o.h("div",l,c),f={class:r.value,style:u.value};return o.h("div",f,[d])}}}),It={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function va(e,t,n){return{props:{...ae,...xe,...It},emits:["change","update:modelValue","blur","focus","clear","input"],setup(r,a){const{emitEvent:s}=ge({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),i=u(r,["placeholder"]),c=o.ref(!1),l=Oe(o.computed(()=>r.disabled)),d=Ne(o.computed(()=>r.readonly)),f=ne(r,"modelValue"),S=e,D=o.computed(()=>({[S]:!0})),m=E=>{f.value=E,s("update:modelValue",E),s("input",E)},p=E=>{s("change",E)};let y=ne(r,"hintText"),$=o.ref(!1);const A=E=>{let g=E.target.value;c.value=!0,fe(y.value)||($.value=!0),s("focus",g,E)},V=E=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let g=E.target.value;r.maxLength&&g.length>Number(r.maxLength)&&(g=g.slice(0,Number(r.maxLength))),s("blur",g,E)},I=()=>{s("clear","")},N=o.ref();return oe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const C={...a.attrs,ref:N,class:D.value,placeholder:i.placeholder.value,clearable:r.clearable,disabled:l.value,readonly:d.value,modelValue:f.value,onClear:I,onChange:p,onInput:m,onFocus:A,onBlur:V},g={};a.slots.prepend&&(g.prepend=a.slots.prepend),a.slots.append&&(g.append=a.slots.append),a.slots.prefix&&(g.prefix=a.slots.prefix),a.slots.suffix&&(g.suffix=a.slots.suffix);const O=[],w=o.h(v.ElInput,C,g);O.push(w);const k={default:()=>O};if(a.slots.default){const h=a.slots.default();k.label=()=>h}const M={...Se(r,It),hintText:y.value,hintVisible:$.value,prop:`${r.prop}_item`};return o.h(n,M,k)}}}}const{componentName:ba,create:$a,scope:wa}=Y("input-item"),pn=$a(va(ba,wa,me));function we(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function $e(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function gn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Sa{proxy;constructor(t){this.proxy=t}async load(t,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const a=Ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(H.isObject(r)&&o.isReactive(r)&&(r=o.toRaw(r)),await a(n,r))}}function xa(){const e=o.getCurrentInstance();return new Sa(e.proxy)}function mn(e,t,n){const r=we(e,t),a=we(e,n);if(r!==a)return!1;const s=$e(e,t),u=$e(e,n);return s===u}function yn(e,t,n,r){if(r.length==0)return[];if(t===""||t===null||t===void 0)return[];Array.isArray(t)||(t=[t]);const a=[];return t.forEach(s=>{for(let u of r){const i=gn(e,u);if(Array.isArray(i)&&i.length>0){const c=yn(e,s,n,i);Reflect.apply([].push,a,c)}else{let c=!1;if(n==="text")c=we(e,u)===s;else if(n==="item")c=mn(e,u,s);else{let l=$e(e,u);l==null&&(l=we(e,u)),c=l===s}if(c){a.push(u);break}}}}),a}function Ea(e){return{text:e,value:e}}const Mt={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"},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},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1}};function Pa(e,t,n){return{props:{...ae,...xe,...Mt},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(r,a){const{emitEvent:s}=ge({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),i=u(r,["placeholder"]),c=o.ref(),l=o.ref([]),d=(h,R,b,x=!0)=>{const T=yn(r,h,R,b);let B=!0;if(T.length!==l.value.length)B=!1;else for(let q=0;q<T.length;q++){const L=T[q],F=l.value[q];if(!mn(r,L,F)){B=!1;break}}if(!B){l.value=T;let q=[],L=[];T.forEach(z=>(q.push($e(r,z)),r.valueType==="text"?L.push(we(r,z)):r.valueType==="item"?L.push(z):L.push($e(r,z)),$e(r,z)));let F;r.multiple?(c.value=q,F=o.toRaw(L)):(c.value=q[0]??"",F=o.toRaw(L[0]??"")),x&&(s("update:modelValue",F),s("change",F))}},f=o.ref([]),S=xa();o.watchEffect(async()=>{if(r.source){let h=await S.load("select",r.source,r.params);if(h.length>0)if(typeof h[0]=="string"){let x=h.map(T=>Ea(T));f.value=x}else f.value=h}}),o.watch([()=>f.value,()=>r.modelValue],([h,R])=>{d(R,r.valueType,h,!1)});let D=null,m=o.ref(!1);typeof r.remoteMethod=="function"&&(D=async h=>{if(h!=null){m.value=!0;try{const R=await r.remoteMethod(h);f.value=R}catch(R){console.error(R)}m.value=!1}});const p=o.ref(!1),y=Oe(o.computed(()=>r.disabled)),$=Ne(o.computed(()=>r.readonly)),A=e,V=o.computed(()=>({[A]:!0})),I=h=>{r.allowCreate?(s("update:modelValue",h),s("change",h),c.value=h):d(h,"value",f.value,!0)};let N=ne(r,"hintText"),E=o.ref(!1);const C=h=>{let b=h.target.value;p.value=!0,fe(N.value)||(E.value=!0),s("focus",b,h)},g=h=>{setTimeout(()=>{E.value&&(E.value=!1),p.value=!1},0);let b=h.target.value;r.maxLength&&b.length>Number(r.maxLength)&&(b=b.slice(0,Number(r.maxLength))),w.value?setTimeout(()=>{s("blur",b,h)},50):s("blur",b,h)},O=()=>{s("clear","")},w=o.ref(!1),k=h=>{w.value=h,s("visible-change",h)},j=h=>{s("remove-tag",h)},M=(h,R)=>{const b=[];return h.forEach((x,T)=>{const B=gn(r,x);if(Array.isArray(B)&&B.length>0){const q=M(B,R),L=we(r,x),z={key:`${L}_${T}`,label:L};b.push(o.h(v.ElOptionGroup,z,{default:()=>q}))}else{const q=$e(r,x),L=we(r,x),F=H.toBoolean(x.disabled),X={key:`${q}_${T}`,label:L,disabled:F,value:q};typeof R=="function"||b.push(o.h(v.ElOption,X))}}),b},P=o.ref();return oe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const R={...a.attrs,ref:P,class:V.value,clearable:r.clearable,multiple:r.multiple,placeholder:i.placeholder.value,disabled:y.value||$.value,modelValue:c.value,["value-key"]:r.valueKey,["allow-create"]:r.allowCreate,onClear:O,onChange:I,onFocus:C,onBlur:g,onVisibleChange:k,onRemoveTag:j};typeof D=="function"&&(R["remote-method"]=D,R.loading=m.value);const b={};a.slots.prefix&&(b.prefix=a.slots.prefix),a.slots.empty&&(b.empty=a.slots.empty),b.default=()=>M(f.value,a.slots.option);const x=[],T=o.h(v.ElSelect,R,b);x.push(T);const B={default:()=>x};if(a.slots.default){const z=a.slots.default();B.label=()=>z}const L={...Se(r,Mt),hintText:N.value,hintVisible:E.value,prop:`${r.prop}_item`};return o.h(n,L,B)}}}}const{componentName:Aa,create:Na,scope:Oa}=Y("select-item"),vn=Na(Pa(Aa,Oa,me)),Dt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function Ca(e,t,n){return{props:{...ae,...xe,...Dt},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(r,a){const{emitEvent:s}=ge({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),i=u(r,["placeholder"]),c=o.ref(!1),l=Oe(o.computed(()=>r.disabled)),d=Ne(o.computed(()=>r.readonly)),f=ne(r,"modelValue"),S=e,D=o.computed(()=>({[S]:!0})),m=g=>{f.value=g,s("update:modelValue",g),s("change",g)};let p=ne(r,"hintText"),y=o.ref(!1);const $=g=>{let w=g.target.value;c.value=!0,fe(p.value)||(y.value=!0),s("focus",w,g)},A=g=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let w=g.target.value;r.maxLength&&w.length>Number(r.maxLength)&&(w=w.slice(0,Number(r.maxLength))),s("blur",w,g)},V=()=>{s("clear","")},I=g=>{s("calendar-change",g)},N=(g,O,w)=>{s("panel-change",g,O,w)},E=g=>{s("visible-change",g)},C=o.ref();return oe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()}}),()=>{const O={...a.attrs,ref:C,class:D.value,placeholder:i.placeholder.value,disabled:l.value,readonly:d.value,modelValue:f.value,["onUpdate:modelValue"]:m,onClear:V,onFocus:$,onBlur:A,onCalendarChange:I,onPanelChange:N,onVisibleChange:E},w={};a.slots["range-separator"]&&(w["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(w.default=a.slots.cell);const k=[],j=o.h(v.ElDatePicker,O,w);k.push(j);const M={default:()=>k};if(a.slots.default){const b=a.slots.default();M.label=()=>b}const h={...Se(r,Dt),hintText:p.value,hintVisible:y.value,prop:`${r.prop}_item`};return o.h(n,h,M)}}}}const{componentName:Ra,create:Ta,scope:Va}=Y("date-item"),bn=Ta(Ca(Ra,Va,me)),Bt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function Ia(e,t,n){return{props:{...ae,...xe,...Bt},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(r,a){const{emitEvent:s}=ge({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),i=u(r,["placeholder"]),c=o.ref(!1),l=Oe(o.computed(()=>r.disabled)),d=Ne(o.computed(()=>r.readonly)),f=ne(r,"modelValue"),S=e,D=o.computed(()=>({[S]:!0})),m=E=>{f.value=E,s("update:modelValue",E),s("change",E)};let p=ne(r,"hintText"),y=o.ref(!1);const $=E=>{let g=E.target.value;c.value=!0,fe(p.value)||(y.value=!0),s("focus",g,E)},A=E=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let g=E.target.value;r.maxLength&&g.length>Number(r.maxLength)&&(g=g.slice(0,Number(r.maxLength))),s("blur",g,E)},V=()=>{s("clear","")},I=E=>{s("visible-change",E)},N=o.ref();return oe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const C={...a.attrs,ref:N,class:D.value,placeholder:i.placeholder.value,disabled:l.value,readonly:d.value,modelValue:f.value,["onUpdate:modelValue"]:m,onClear:V,onFocus:$,onBlur:A,onVisibleChange:I},g={},O=[],w=o.h(v.ElTimePicker,C,g);O.push(w);const k={default:()=>O};if(a.slots.default){const h=a.slots.default();k.label=()=>h}const M={...Se(r,Bt),hintText:p.value,hintVisible:y.value,prop:`${r.prop}_item`};return o.h(n,M,k)}}}}const{componentName:Ma,create:Da,scope:Ba}=Y("time-item"),$n=Da(Ia(Ma,Ba,me)),kt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function ka(e,t,n){return{props:{...ae,...xe,...kt},emits:["change","update:modelValue","blur","focus","clear"],setup(r,a){const{emitEvent:s}=ge({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),i=u(r,["placeholder"]),c=o.ref(!1),l=Oe(o.computed(()=>r.disabled)),d=Ne(o.computed(()=>r.readonly)),f=ne(r,"modelValue"),S=e,D=o.computed(()=>({[S]:!0})),m=N=>{f.value=N,s("update:modelValue",N),s("change",N)};let p=ne(r,"hintText"),y=o.ref(!1);const $=N=>{let C=N.target.value;c.value=!0,fe(p.value)||(y.value=!0),s("focus",C,N)},A=N=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let C=N.target.value;r.maxLength&&C.length>Number(r.maxLength)&&(C=C.slice(0,Number(r.maxLength))),s("blur",C,N)},V=()=>{s("clear","")},I=o.ref();return oe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const E={...a.attrs,ref:I,class:D.value,placeholder:i.placeholder.value,disabled:l.value,readonly:d.value,modelValue:f.value,["onUpdate:modelValue"]:m,onClear:V,onFocus:$,onBlur:A},C={},g=[],O=o.h(v.ElTimeSelect,E,C);g.push(O);const w={default:()=>g};if(a.slots.default){const P=a.slots.default();w.label=()=>P}const j={...Se(r,kt),hintText:p.value,hintVisible:y.value,prop:`${r.prop}_item`};return o.h(n,j,w)}}}}const{componentName:qa,create:La,scope:_a}=Y("time-select-item"),wn=La(ka(qa,_a,me));function ja(e,t,n,r,a){let s=[];Array.isArray(e)?s=e:s=[e];const u=[],i=t[0];if(Array.isArray(i))for(let c=0;c<t.length&&c<s.length;c++){let l=t[c],d=s[c];const f=l.find(S=>S[r]===d);if(!f)break;u.push(f[n])}else{let c=t;for(let l=0;c&&l<s.length;l++){let d=s[l],f=c.find(S=>S[r]===d);if(!f)break;u.push(f[n]),c=f[a]}}return u}class Ha{proxy;constructor(t){this.proxy=t}async load(t,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const a=Ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(H.isObject(r)&&o.isReactive(r)&&(r=o.toRaw(r)),await a(n,r))}}function Fa(){const e=o.getCurrentInstance();return new Ha(e.proxy)}const Sn={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"}};function za(e,t){return{props:{...Sn},setup(n,{attrs:r}){const a=Fa(),s=o.ref([]);o.watch([()=>n.source,()=>n.params],async([c,l])=>{s.value=await a.load(n.sourceType,c,l)},{immediate:!0});const u=o.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let c=ja(n.modelValue,s.value,n.textKey,n.valueKey,n.childrenKey);return c.length==0?"":c.length===1?c[0]:c.join(n.separator)}),i=n.resolveTag?o.resolveComponent(n.tag):n.tag;return()=>{const c={...r};return n.resolveTag?o.h(i,c,{default:()=>u.value}):o.h(i,c,u.value)}}}}const{componentName:wo,create:Wa,scope:So}=Y("mapping"),xt=Wa(za());function Ya(e,t){return{props:{...Sn},setup(n,{attrs:r}){return()=>{const a={default:s=>{const u=s.row[s.column.property];return o.h(xt,{...n,modelValue:u})}};return o.h(v.ElTableColumn,{...r},a)}}}}const{componentName:xo,create:Ka,scope:Eo}=Y("table-mapping-column"),xn=Ka(Ya());class Ga{proxy;constructor(t){this.proxy=t}async load(t,n,r,a,s,u,i){if(Array.isArray(n)){let l=(r-1)*a,d=l+a;d>n.length&&(d=n.length);const f=n.slice(l,d);return{totalSize:n.length,page:f}}if(typeof n=="function")return await Reflect.apply(n,null,[r,a,s,u,i]);const c=Ze(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(H.isObject(s)&&o.isReactive(s)&&(s=o.toRaw(s)),await await Reflect.apply(c,null,[n,r,a,s,u,i]))}}function Ua(){const e=o.getCurrentInstance();return new Ga(e.proxy)}const qt={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Lt={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 Za(e,t,n){return{inheritAttrs:!1,props:{...ae,...xe,...qt,...Lt},emits:["change","page-size-change","page-index-change"],setup(r,a){const{locale:s}=Ae.useFoxI18n(t),{emitEvent:u}=ge({componentName:e},r.prop??r.name),i=e,c=o.computed(()=>({[i]:!0})),l=o.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${r.paginationAlign}`]:!0})),d=o.ref(r.pageIndex);o.watch(()=>r.pageIndex,g=>{d.value=g});const f=g=>{d.value=g,u("page-index-change",g)},S=o.ref(r.pageSize);o.watch(()=>r.pageSize,g=>{S.value=g});const D=g=>{S.value=g,u("page-size-change",g)},m=o.shallowRef({}),p=o.computed(()=>({...m.value,...r.params??{},...r.baseParams??{}})),y=o.ref(0),$=o.ref(),A=Ua();let V=!0;const I=()=>Array.isArray(r.data)||typeof r.data=="function"?!0:H.toBoolean(r.autoLoad),N=async(g,O,w,k)=>{try{const j=await A.load("table",g,O,w,k,V,s.value);y.value=j.totalSize,$.value=j.page}catch(j){console.error("[FoxUI] Load Table Data Fail",j),y.value=0,$.value=[]}V=!1};o.watch([d,S],([g,O],[w,k])=>{O!==k&&(d.value=1,g=1),N(r.data,g,O,p.value)}),o.watch([()=>r.data,p],([g,O],[w,k])=>{!I()||(g!==w&&(V=!0),N(g,d.value,S.value,O))});const E=(g={})=>{m.value=o.toRaw(g??{}),o.triggerRef(m),o.nextTick(()=>{N(r.data,d.value,S.value,p.value)})};I()&&E();const C=o.ref();return oe({clearSelection:()=>C?.value.clearSelection(),getSelectionRows:()=>C?.value.getSelectionRows(),toggleRowSelection:(g,O)=>{C?.value.toggleRowSelection(g,O)},toggleAllSelection:()=>{C?.value.toggleAllSelection()},toggleRowExpansion:(g,O)=>{C?.value.toggleRowExpansion(g,O)},setCurrentRow:g=>{C?.value.setCurrentRow(g)},clearSort:()=>{C?.value.clearSort()},clearFilter:g=>{C?.value.clearFilter(g)},doLayout:()=>{C?.value.doLayout()},sort:(g,O)=>{C?.value.sort(g,O)},scrollTo:(g,O)=>{C?.value.scrollTo(g,O)},setScrollTop:g=>{C?.value.setScrollTop(g)},setScrollLeft:g=>{C?.value.setScrollLeft(g)},loadData:E}),()=>{const O={...a.attrs,data:$.value,ref:C,class:c.value},w={};a.slots.default&&(w.default=a.slots.default),a.slots.append&&(w.append=a.slots.append),a.slots.empty&&(w.empty=a.slots.empty);const k=[],j=o.h(v.ElTable,O,w);if(k.push(j),typeof a.slots.pagination=="function"){const b=a.slots.pagination();k.push(b)}else if(r.paginationVisible){const b={class:l.value,total:y.value,pageSize:S.value,["onUpdate:pageSize"]:D,pageSizes:r.pageSizes,currentPage:d.value,["onUpdate:currentPage"]:f,hideOnSinglePage:r.hideOnSinglePage,layout:r.paginationLayout,small:!0},x=o.h(v.ElPagination,b);k.push(x)}const M={default:()=>k},h={...Se(r,qt,Lt),prop:`${r.prop}_item`};return h.contentClass=`${i}__wrap`,o.h(n,h,M)}}}}const{componentName:Xa,create:Ja,scope:Qa}=Y("table-item"),En=Ja(Za(Xa,Qa,me)),eo=Symbol.for("InnerPageScopeKey"),to=Symbol.for("DialogItemStateKey");function no(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(n,r){o.provide(eo,!0);const a={};o.provide(to,a);const s=c=>{typeof a.beforeClose=="function"&&a.beforeClose(c)},u=o.ref(!0),i=c=>{u.value=c};return()=>{const l={...r.attrs,title:n.title,draggable:n.draggable,modelValue:u.value,"onUpdate:modelValue":i,"append-to-body":n.appendToBody,"close-on-click-modal":n.closeOnClickModal,"close-on-press-escape":n.closeOnPressEscape,"before-close":s},d={};if(typeof r.slots.default=="function"){const f=r.slots.default();d.default=()=>f}return o.h(v.ElDialog,l,d)}}}}const{componentName:Po,create:ro,scope:Ao}=Y("dialog-item"),Pn=ro(no());var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},An={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){var n=1e3,r=6e4,a=36e5,s="millisecond",u="second",i="minute",c="hour",l="day",d="week",f="month",S="quarter",D="year",m="date",p="Invalid Date",y=/^(\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,A={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("_")},V=function(M,P,h){var R=String(M);return!R||R.length>=P?M:""+Array(P+1-R.length).join(h)+M},I={s:V,z:function(M){var P=-M.utcOffset(),h=Math.abs(P),R=Math.floor(h/60),b=h%60;return(P<=0?"+":"-")+V(R,2,"0")+":"+V(b,2,"0")},m:function M(P,h){if(P.date()<h.date())return-M(h,P);var R=12*(h.year()-P.year())+(h.month()-P.month()),b=P.clone().add(R,f),x=h-b<0,T=P.clone().add(R+(x?-1:1),f);return+(-(R+(h-b)/(x?b-T:T-b))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:D,w:d,d:l,D:m,h:c,m:i,s:u,ms:s,Q:S}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},N="en",E={};E[N]=A;var C=function(M){return M instanceof k},g=function M(P,h,R){var b;if(!P)return N;if(typeof P=="string"){var x=P.toLowerCase();E[x]&&(b=x),h&&(E[x]=h,b=x);var T=P.split("-");if(!b&&T.length>1)return M(T[0])}else{var B=P.name;E[B]=P,b=B}return!R&&b&&(N=b),b||!R&&N},O=function(M,P){if(C(M))return M.clone();var h=typeof P=="object"?P:{};return h.date=M,h.args=arguments,new k(h)},w=I;w.l=g,w.i=C,w.w=function(M,P){return O(M,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var k=function(){function M(h){this.$L=g(h.locale,null,!0),this.parse(h)}var P=M.prototype;return P.parse=function(h){this.$d=function(R){var b=R.date,x=R.utc;if(b===null)return new Date(NaN);if(w.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var T=b.match(y);if(T){var B=T[2]-1||0,q=(T[7]||"0").substring(0,3);return x?new Date(Date.UTC(T[1],B,T[3]||1,T[4]||0,T[5]||0,T[6]||0,q)):new Date(T[1],B,T[3]||1,T[4]||0,T[5]||0,T[6]||0,q)}}return new Date(b)}(h),this.$x=h.x||{},this.init()},P.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},P.$utils=function(){return w},P.isValid=function(){return this.$d.toString()!==p},P.isSame=function(h,R){var b=O(h);return this.startOf(R)<=b&&b<=this.endOf(R)},P.isAfter=function(h,R){return O(h)<this.startOf(R)},P.isBefore=function(h,R){return this.endOf(R)<O(h)},P.$g=function(h,R,b){return w.u(h)?this[R]:this.set(b,h)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(h,R){var b=this,x=!!w.u(R)||R,T=w.p(h),B=function(ee,K){var J=w.w(b.$u?Date.UTC(b.$y,K,ee):new Date(b.$y,K,ee),b);return x?J:J.endOf(l)},q=function(ee,K){return w.w(b.toDate()[ee].apply(b.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(K)),b)},L=this.$W,F=this.$M,z=this.$D,X="set"+(this.$u?"UTC":"");switch(T){case D:return x?B(1,0):B(31,11);case f:return x?B(1,F):B(0,F+1);case d:var ve=this.$locale().weekStart||0,le=(L<ve?L+7:L)-ve;return B(x?z-le:z+(6-le),F);case l:case m:return q(X+"Hours",0);case c:return q(X+"Minutes",1);case i:return q(X+"Seconds",2);case u:return q(X+"Milliseconds",3);default:return this.clone()}},P.endOf=function(h){return this.startOf(h,!1)},P.$set=function(h,R){var b,x=w.p(h),T="set"+(this.$u?"UTC":""),B=(b={},b[l]=T+"Date",b[m]=T+"Date",b[f]=T+"Month",b[D]=T+"FullYear",b[c]=T+"Hours",b[i]=T+"Minutes",b[u]=T+"Seconds",b[s]=T+"Milliseconds",b)[x],q=x===l?this.$D+(R-this.$W):R;if(x===f||x===D){var L=this.clone().set(m,1);L.$d[B](q),L.init(),this.$d=L.set(m,Math.min(this.$D,L.daysInMonth())).$d}else B&&this.$d[B](q);return this.init(),this},P.set=function(h,R){return this.clone().$set(h,R)},P.get=function(h){return this[w.p(h)]()},P.add=function(h,R){var b,x=this;h=Number(h);var T=w.p(R),B=function(F){var z=O(x);return w.w(z.date(z.date()+Math.round(F*h)),x)};if(T===f)return this.set(f,this.$M+h);if(T===D)return this.set(D,this.$y+h);if(T===l)return B(1);if(T===d)return B(7);var q=(b={},b[i]=r,b[c]=a,b[u]=n,b)[T]||1,L=this.$d.getTime()+h*q;return w.w(L,this)},P.subtract=function(h,R){return this.add(-1*h,R)},P.format=function(h){var R=this,b=this.$locale();if(!this.isValid())return b.invalidDate||p;var x=h||"YYYY-MM-DDTHH:mm:ssZ",T=w.z(this),B=this.$H,q=this.$m,L=this.$M,F=b.weekdays,z=b.months,X=function(K,J,ie,ue){return K&&(K[J]||K(R,x))||ie[J].slice(0,ue)},ve=function(K){return w.s(B%12||12,K,"0")},le=b.meridiem||function(K,J,ie){var ue=K<12?"AM":"PM";return ie?ue.toLowerCase():ue},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:w.s(L+1,2,"0"),MMM:X(b.monthsShort,L,z,3),MMMM:X(z,L),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:X(b.weekdaysMin,this.$W,F,2),ddd:X(b.weekdaysShort,this.$W,F,3),dddd:F[this.$W],H:String(B),HH:w.s(B,2,"0"),h:ve(1),hh:ve(2),a:le(B,q,!0),A:le(B,q,!1),m:String(q),mm:w.s(q,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:T};return x.replace($,function(K,J){return J||ee[K]||T.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(h,R,b){var x,T=w.p(R),B=O(h),q=(B.utcOffset()-this.utcOffset())*r,L=this-B,F=w.m(this,B);return F=(x={},x[D]=F/12,x[f]=F,x[S]=F/3,x[d]=(L-q)/6048e5,x[l]=(L-q)/864e5,x[c]=L/a,x[i]=L/r,x[u]=L/n,x)[T]||L,b?F:w.a(F)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return E[this.$L]},P.locale=function(h,R){if(!h)return this.$L;var b=this.clone(),x=g(h,R,!0);return x&&(b.$L=x),b},P.clone=function(){return w.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},M}(),j=k.prototype;return O.prototype=j,[["$ms",s],["$s",u],["$m",i],["$H",c],["$W",l],["$M",f],["$y",D],["$D",m]].forEach(function(M){j[M[1]]=function(P){return this.$g(P,M[0],M[1])}}),O.extend=function(M,P){return M.$i||(M(P,k,O),M.$i=!0),O},O.locale=g,O.isDayjs=C,O.unix=function(M){return O(1e3*M)},O.en=E[N],O.Ls=E,O.p={},O})})(An);const ye=An.exports;var Nn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},c=function(p){return(p=+p)+(p>68?1900:2e3)},l=function(p){return function(y){this[p]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var $=y.match(/([+-]|\d\d)/g),A=60*$[1]+(+$[2]||0);return A===0?0:$[0]==="+"?-A:A}(p)}],f=function(p){var y=i[p];return y&&(y.indexOf?y:y.s.concat(y.f))},S=function(p,y){var $,A=i.meridiem;if(A){for(var V=1;V<=24;V+=1)if(p.indexOf(A(V,0,y))>-1){$=V>12;break}}else $=p===(y?"pm":"PM");return $},D={A:[u,function(p){this.afternoon=S(p,!1)}],a:[u,function(p){this.afternoon=S(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[s,l("seconds")],ss:[s,l("seconds")],m:[s,l("minutes")],mm:[s,l("minutes")],H:[s,l("hours")],h:[s,l("hours")],HH:[s,l("hours")],hh:[s,l("hours")],D:[s,l("day")],DD:[a,l("day")],Do:[u,function(p){var y=i.ordinal,$=p.match(/\d+/);if(this.day=$[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===p&&(this.day=A)}],M:[s,l("month")],MM:[a,l("month")],MMM:[u,function(p){var y=f("months"),$=(f("monthsShort")||y.map(function(A){return A.slice(0,3)})).indexOf(p)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[u,function(p){var y=f("months").indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(p){this.year=c(p)}],YYYY:[/\d{4}/,l("year")],Z:d,ZZ:d};function m(p){var y,$;y=p,$=i&&i.formats;for(var A=(p=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,w,k){var j=k&&k.toUpperCase();return w||$[k]||n[k]||$[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,P,h){return P||h.slice(1)})})).match(r),V=A.length,I=0;I<V;I+=1){var N=A[I],E=D[N],C=E&&E[0],g=E&&E[1];A[I]=g?{regex:C,parser:g}:N.replace(/^\[|\]$/g,"")}return function(O){for(var w={},k=0,j=0;k<V;k+=1){var M=A[k];if(typeof M=="string")j+=M.length;else{var P=M.regex,h=M.parser,R=O.slice(j),b=P.exec(R)[0];h.call(w,b),O=O.replace(b,"")}}return function(x){var T=x.afternoon;if(T!==void 0){var B=x.hours;T?B<12&&(x.hours+=12):B===12&&(x.hours=0),delete x.afternoon}}(w),w}}return function(p,y,$){$.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var A=y.prototype,V=A.parse;A.parse=function(I){var N=I.date,E=I.utc,C=I.args;this.$u=E;var g=C[1];if(typeof g=="string"){var O=C[2]===!0,w=C[3]===!0,k=O||w,j=C[2];w&&(j=C[2]),i=this.$locale(),!O&&j&&(i=$.Ls[j]),this.$d=function(R,b,x){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*R);var T=m(b)(R),B=T.year,q=T.month,L=T.day,F=T.hours,z=T.minutes,X=T.seconds,ve=T.milliseconds,le=T.zone,ee=new Date,K=L||(B||q?1:ee.getDate()),J=B||ee.getFullYear(),ie=0;B&&!q||(ie=q>0?q-1:ee.getMonth());var ue=F||0,tt=z||0,nt=X||0,rt=ve||0;return le?new Date(Date.UTC(J,ie,K,ue,tt,nt,rt+60*le.offset*1e3)):x?new Date(Date.UTC(J,ie,K,ue,tt,nt,rt)):new Date(J,ie,K,ue,tt,nt,rt)}catch{return new Date("")}}(N,g,E),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),k&&N!=this.format(g)&&(this.$d=new Date("")),i={}}else if(g instanceof Array)for(var M=g.length,P=1;P<=M;P+=1){C[1]=g[P-1];var h=$.apply(this,C);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}P===M&&(this.$d=new Date(""))}else V.call(this,I)}}})})(Nn);const ao=Nn.exports;var On={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r,a){var s=r.prototype,u=s.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],l=i%100;return"["+i+(c[(l-20)%10]||c[l]||c[0])+"]"},s.format=function(i){var c=this,l=this.$locale();if(!this.isValid())return u.bind(this)(i);var d=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(S){switch(S){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return l.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return l.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),S==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),S==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return S}});return u.bind(this)(f)}}})})(On);const oo=On.exports;var Cn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r,a){var s=r.prototype,u=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,S,D,m,p){var y=f.name?f:f.$locale(),$=u(y[S]),A=u(y[D]),V=$||A.map(function(N){return N.slice(0,m)});if(!p)return V;var I=y.weekStart;return V.map(function(N,E){return V[(E+(I||0))%7]})},c=function(){return a.Ls[a.locale()]},l=function(f,S){return f.formats[S]||function(D){return D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,p,y){return p||y.slice(1)})}(f.formats[S.toUpperCase()])},d=function(){var f=this;return{months:function(S){return S?S.format("MMMM"):i(f,"months")},monthsShort:function(S){return S?S.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(f,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return l(f.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return d.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(S){return l(f,S)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(Cn);const so=Cn.exports;var Rn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){var n="week",r="year";return function(a,s,u){var i=s.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var l=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=u(this).startOf(r).add(1,r).date(l),f=u(this).endOf(n);if(d.isBefore(f))return 1}var S=u(this).startOf(r).date(l).startOf(n).subtract(1,"millisecond"),D=this.diff(S,n,!0);return D<0?u(this).startOf("week").week():Math.ceil(D)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Rn);const lo=Rn.exports;var Tn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),s=this.week(),u=this.year();return s===1&&a===11?u+1:a===0&&s>=52?u-1:u}}})})(Tn);const io=Tn.exports;var Vn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r,a){r.prototype.dayOfYear=function(s){var u=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return s==null?u:this.add(s-u,"day")}}})})(Vn);const uo=Vn.exports;var In={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,s){return this.isSame(a,s)||this.isAfter(a,s)}}})})(In);const co=In.exports;var Mn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(Mn);const fo=Mn.exports;ye.extend(so);ye.extend(oo);ye.extend(ao);ye.extend(lo);ye.extend(io);ye.extend(uo);ye.extend(co);ye.extend(fo);const ho=[nn,rn,an,on,ln,me,dn,hn,et,pn,vn,bn,$n,wn,xn,En,Pn,Ye,xt],po=new mr(ho,[br],"4.0.0");Object.defineProperty(exports,"clone",{enumerable:!0,get:()=>H.clone});Object.defineProperty(exports,"extend",{enumerable:!0,get:()=>H.extend});Object.defineProperty(exports,"isArray",{enumerable:!0,get:()=>H.isArray});Object.defineProperty(exports,"isDate",{enumerable:!0,get:()=>H.isDate});Object.defineProperty(exports,"isESModule",{enumerable:!0,get:()=>H.isESModule});Object.defineProperty(exports,"isEqual",{enumerable:!0,get:()=>H.isEqual});Object.defineProperty(exports,"isFunction",{enumerable:!0,get:()=>H.isFunction});Object.defineProperty(exports,"isMap",{enumerable:!0,get:()=>H.isMap});Object.defineProperty(exports,"isObject",{enumerable:!0,get:()=>H.isObject});Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:()=>H.isPlainObject});Object.defineProperty(exports,"isPromise",{enumerable:!0,get:()=>H.isPromise});Object.defineProperty(exports,"isSet",{enumerable:!0,get:()=>H.isSet});Object.defineProperty(exports,"isString",{enumerable:!0,get:()=>H.isString});Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:()=>H.isSymbol});Object.defineProperty(exports,"toBoolean",{enumerable:!0,get:()=>H.toBoolean});Object.defineProperty(exports,"toNumber",{enumerable:!0,get:()=>H.toNumber});Object.defineProperty(exports,"toTypeString",{enumerable:!0,get:()=>H.toTypeString});exports.Broadcast=yt;exports.BroadcastKey=G;exports.Content=on;exports.DateItem=bn;exports.DialogItem=Pn;exports.Domain=wt;exports.DomainKey=ce;exports.FooterBar=an;exports.Group=ln;exports.HeaderBar=rn;exports.HintText=et;exports.InputItem=pn;exports.Item=me;exports.Mapping=xt;exports.Page=nn;exports.Price=Ye;exports.PriorityPolicy=He;exports.RowItem=hn;exports.SelectItem=vn;exports.SlotItem=dn;exports.TableItem=En;exports.TableMappingColumn=xn;exports.TimeItem=$n;exports.TimeSelectItem=wn;exports.UniqueID=cn;exports.ValidateSchema=Ut;exports.ValidateSchemaKey=re;exports.clearNonNumber=Kn;exports.compareTo=_n;exports.createBroadcast=vt;exports.createValidateSchema=bt;exports.debounce=lr;exports.decimalLength=Yn;exports.default=po;exports.defineBroadcast=Jn;exports.defineDomain=St;exports.defineItem=ge;exports.definePageState=Zt;exports.deleteGlobalValidator=nr;exports.disabledProperty=Oe;exports.divide=Ln;exports.excludeProps=Se;exports.floatData=Xn;exports.getGlobalValidateCheckEvents=Yt;exports.getGlobalValidateResetEvents=Gt;exports.getPageContentAreaHeight=_e;exports.getPageContentAreaWidth=je;exports.getPageFooterAreaHeight=Ue;exports.getPageHeaderAreaHeight=Ge;exports.getRootDomain=Ie;exports.includeProps=Zn;exports.indexOf=Gn;exports.integerLength=Wn;exports.isBrowser=Be;exports.isEmptyString=fe;exports.isInnerPage=ur;exports.isNumberString=zn;exports.isRegExp=Ht;exports.isSubPage=cr;exports.lastIndexOf=Un;exports.multiply=qn;exports.negate=jn;exports.numberFormat=jt;exports.property=De;exports.raf=Fn;exports.readonlyProperty=Ne;exports.setGlobalValidateCheckEvents=rr;exports.setGlobalValidateHandler=er;exports.setGlobalValidateMessages=or;exports.setGlobalValidateResetEvents=ar;exports.setGlobalValidator=tr;exports.throttle=$t;exports.toPadding=te;exports.toPx=U;exports.toPxDesc=Q;exports.toValue=ne;exports.unNumberFormat=Hn;exports.updatePageState=dt;exports.useBroadcast=Ve;exports.useDomain=pe;exports.useExpose=oe;exports.usePageState=Ke;exports.usePosition=fn;exports.useRect=We;exports.valueLength=Ft;
5
+ */function We(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=Q(e),t=Q(t),[e,t]=Nt(Q(e),Q(t)),r==1&&(n==1?e=mt(e):t=mt(t));let l=cn(e,t);return r?r==2?"-"+Q(l):e.length<l.length?Q(l.substring(1)):"-"+Q(mt(l)):Q(l)}function mt(e){let t="",r=e.length,n=e.split(".")[1],l=n?n.length:0;for(let c=0;c<r;c++)e[c]>="0"&&e[c]<="9"?t+=9-parseInt(e[c]):t+=e[c];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return cn(t,o)}function Q(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Nt(e,t){let r=e.split("."),n=t.split("."),l=r[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function cn(e,t){[e,t]=Nt(e,t);let r="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var Y=(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))(Y||{});function Le(e,t=0,r=Y.HALF_EVEN){if(r===Y.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],c=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)+c,u=Le(e,0,r),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,Ft(l[1],o,n,r)?(n?"-":"")+gt(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");c=l[1].substring(0,t);let i=l[1].substring(t);return i&&Ft(i,c,n,r)&&(c=gt(c),c.length>t)?(n?"-":"")+gt(o,parseInt(c[0]))+"."+c.substring(1):(n?"-":"")+o+"."+c}function Ft(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===Y.DOWN||!r&&n===Y.FLOOR||r&&n===Y.CEILING)return!1;if(n===Y.UP||r&&n===Y.FLOOR||!r&&n===Y.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 Y.HALF_DOWN:return!1;case Y.HALF_UP:return!0;case Y.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gt(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 vt(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=Fe(e),t=Fe(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=Fe(e.replace(".","")),t=Fe(t.replace(".","")),e.length<t.length){let h=e;e=t,t=h}if(t=="0")return"0";let c=t.length,i=0,u=[],s=c-1,d="";for(let h=0;h<c;h++)u[h]=e.length-1;for(let h=0;h<2*e.length;h++){let v=0;for(let j=t.length-1;j>=s&&j>=0;j--)u[j]>-1&&u[j]<e.length&&(v+=parseInt(e[u[j]--])*parseInt(t[j]));v+=i,i=Math.floor(v/10),d=v%10+d,s--}return d=Fe($r(d,o)),r==1&&(d="-"+d),d}function $r(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 Fe(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function xt(e,t,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=Q(t.replace(".","")),l>=0){let s=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(s==-1)e=Q(e+new Array(l+1).join("0"));else if(l>s)e=e.replace(".",""),e=Q(e+new Array(l-s+1).join("0"));else if(l<s){e=e.replace(".","");let d=e.length-s+l;e=Q(e.substring(0,d)+"."+e.substring(d))}else l==s&&(e=Q(e.replace(".","")))}let o=0,c=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<c?e.substring(0,c+1):e.substring(0,c);if(e=e.indexOf(".")>-1&&e.indexOf(".")<c?e.substring(c+1):e.substring(c),u.indexOf(".")>-1){let s=u.length-u.indexOf(".")-1;u=u.replace(".",""),c>u.length&&(s+=c-u.length,u=u+new Array(c-u.length+1).join("0")),o=s,i="0."+new Array(s).join("0")}for(r=r+2;o<=r;){let s=0;for(;parseInt(u)>=parseInt(t);)u=We(u,"-"+t),s++;i+=s,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?"-":"")+Q(Le(i,r-2))}function $t(e,t){return e=e.toString(),t=t.toString(),t=St(t),We(e,t)}function St(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function kt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),qt(e),qt(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=$t(e,vt(t,Le(xt(e,t),0,Y.FLOOR)));return r+n}function qt(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Bt(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=Nt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class H{value;static RoundingModes=Y;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=Q(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+Q(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=H.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=H.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var c="",i=o;i>0;)i<r?(r=i,i=0):i-=r,c=t.substring(i,i+r)+(i<o-r&&i>=0?n:"")+c;return(l?"-":"")+c+t.substring(o)}getPrettyValue(t,r){return H.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Y.HALF_EVEN){if(t=H.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Le(t,r,n)}round(t=0,r=Y.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new H(Le(this.value,t,r))}static floor(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Y.FLOOR)}floor(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Y.FLOOR)}static ceil(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Y.CEILING)}ceil(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Y.CEILING)}static add(t,r){return t=H.validate(t),r=H.validate(r),We(t,r)}add(t){return new H(We(this.value,t.getValue()))}static subtract(t,r){return t=H.validate(t),r=H.validate(r),$t(t,r)}subtract(t){return new H($t(this.value,t.getValue()))}static multiply(t,r){return t=H.validate(t),r=H.validate(r),vt(t,r)}multiply(t){return new H(vt(this.value,t.getValue()))}static divide(t,r,n){return t=H.validate(t),r=H.validate(r),xt(t,r,n)}divide(t,r){return new H(xt(this.value,t.getValue(),r))}static modulus(t,r){return t=H.validate(t),r=H.validate(r),kt(t,r)}modulus(t){return new H(kt(this.value,t.getValue()))}static compareTo(t,r){return t=H.validate(t),r=H.validate(r),Bt(t,r)}compareTo(t){return Bt(this.value,t.getValue())}static negate(t){return t=H.validate(t),St(t)}negate(){return new H(St(this.value))}}function fn(e,t){return H.multiply(`${e}`,`${t}`)}function Tt(e,t,r=8){return H.divide(`${e}`,`${t}`,r)}function wt(e,t){return e=`${e}`,t=`${t}`,H.compareTo(e,t)}function dn(e){return H.negate(e)}function At(e,t=-1,r=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let c=o.charAt(0);c=="-"?o=o.substring(1):c="";let i=o,u="",s=o.indexOf(".");s!=-1&&(i=o.substring(0,s),u=o.substring(s+1)),t!=-1&&(t<u.length?u=u.substring(0,t):r&&t>u.length&&(u=u.padEnd(t,"0")));let d;if(n>0){let h="",v=i.split("").reverse();for(let j=0;j<v.length;j++)h+=v[j]+((j+1)%n==0&&j+1!=v.length?l:"");u.length==0?d=`${c}${h.split("").reverse().join("")}`:d=`${c}${h.split("").reverse().join("")}.${u}`}else u.length==0?d=`${c}${i}`:d=`${c}${i}.${u}`;return d}function hn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Ke=typeof window<"u",Sr=Ke&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function mn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Z=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function gn(e){return Z(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Z(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function pn(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 yn(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 _t(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 wr(e,t=!0,r=!0){t?e=_t(e,".",/\./g):e=e.replace(/\./g,""),r?e=_t(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Er(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(_.isEqual(e,r))return!0}):t.indexOf(e)}function Pr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(_.isEqual(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 Or(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function ae(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 Cr=(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]=="function"&&(n[o]=l[o](t)),typeof l[o]=="string"&&(n[o]=t[l[o]])):t[o]&&(n[o]=t[o])}),n):e},X=Symbol("BroadcastKey");class It{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="*"):mn(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 c=this.callbacks.get(r);if(typeof c=="function"){const u=Reflect.apply(c,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(c=>{const i=Reflect.apply(c.emit,c,[{...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 c=Reflect.apply(o.emit,o,[{...t},r,...n]);c!=null&&Array.isArray(c)&&Reflect.apply([].push,l,[...c])}),l}on(t,r){this.callbacks.set(t,r)}}function nt(e,t,r,n){const l=new It(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Vr(e,t,r){const n=r;if(n[X])return n[X];const l=a.inject(X,null),o=new It(l,r,e);if(t&&typeof t=="object")for(const c in t)o.on(c,t[c]);return n[X]=o,a.provide(X,o),a.onUnmounted(()=>{o.destroy(),n[X]=void 0}),o}function Be(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[X]??a.inject(X,null):a.inject(X,null)}class Nr{error(t,r){const n=r,l=Be(r);l?l.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=Be(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=Be(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=Be(n),c=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);!c&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):c&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let bn=new Nr;function Tr(e){bn=e}function Ar(e,t){Ee.default.setValidator(e,t)}function Ir(e){Ee.default.deleteValidator(e)}let vn=["blur","clear"];function Rr(e){vn=e}function xn(){return vn}let $n=["focus","change"];function jr(e){$n=e}function Sn(){return $n}function Mr(e){Ee.default.messages(e)}function ke(...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 ze(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 me=Symbol("ValidateSchemaKey");class wn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&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=ze(ke(this.attrRules,this.rules)),n=[];for(let o in t){let c=t[o];if(this.hasValidator(o,!0)){if(c===!1)continue;let u={type:o};c!==null&&typeof c=="object"&&Object.assign(u,c),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=ze(n);const l=ke(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=bn;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?Ee.default.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?Ee.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ee.default.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=ke(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=ze(t):this.rules=ze([t]);const n=ke(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=ke(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),c={[`${n}`]:o},i=new Ee.default(l),u=this.proxy??c;return i.validate(c,{context:u}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=u),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}return Promise.resolve({pass:!0})}}function rt(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 wn(t,r,e)}const Lt=Symbol("EventEmitterKey");class Dr{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 Fr(e,t){let r=0;return function(...n){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...n]),r=l)}}function Rt(e,t){let r,n=null;return function(...l){n=l,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const ve=Symbol("DomainKey"),Ne=Symbol("DataItemsKey");class jt{_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 kr=new jt;function _e(){return kr}function Se(e=null){e||(e=a.getCurrentInstance());const t=e?.proxy;return t?t[ve]??a.inject(ve,null):a.inject(ve,null)}const pt=Symbol("OriginalDateKey");function Mt(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let c=a.inject(ve,null);c===null&&(c=_e());const i=e||t.prop||t.name,u=new jt(i);u.parent=c;const s=A=>{if(!o[pt]){const E={};_.extend(!0,E,a.toRaw(t.modelValue)),o[pt]=E}u.set("modelValue",A)},d=()=>u.getForSelf("modelValue")??null,h=()=>o[pt]??null;a.isReactive(t)?a.watchEffect(()=>{u.merge(t,r)}):u.merge(t,r),o[ve]=u,a.provide(ve,u);let v=null,j=null;if(l!==null){const A=a.inject(X,null);v=nt(o,A,i,n),u.broadcast=v,o[X]=v,a.provide(X,v),o.broadcast=(y,N,...R)=>Reflect.apply(v.emit,v,[y,N,...R]);const E=a.inject(me,null);j=rt(o,E,{componentName:""}),u.validateSchema=j,o[me]=j,a.provide(me,j),o[Ne]=new Map,o.validate=(y=!0)=>{const N=[];let R=null;if(y===!0)R={name:"*"};else if(Array.isArray(y)&&y.length>0){const x=y;R={name:p=>p?x.indexOf(p)!==-1:!1}}else if(y!=null&&typeof y=="object"){const x=y;if(Array.isArray(x.include)&&x.include.length>0){const p=x.include;R={name:b=>b?p.indexOf(b)!==-1:!1}}else if(Array.isArray(x.exclude)&&x.exclude.length>0){const p=x.exclude;R={name:b=>b?p.indexOf(b)===-1:!1}}}if(R){const x=v?.emitToChildren(R,"validate",!1);x&&Reflect.apply([].push,N,x)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(x=>{let p=[];return x.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(p=[...p,...b.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(y,N=!0)=>{if(N){const R=Reflect.ownKeys(y),x=[...R],p={name:b=>{const $=R.includes(b);if($){const T=x.findIndex(O=>b===O);T!==-1&&x.splice(T,1)}return $}};v?.emitToChildren(p,"setNameValidateRules",y,!1),x.length>0&&x.forEach(b=>{let $=String(b);const O=En(u,$,{componentName:"",fieldName:$,pureDataValidate:!0},v,j);o[Ne].set($,O);const P=y[$];P&&O.validateSchema.setRule(P)})}},o.clearValidate=(y=!0)=>{let N=null;if(y===!0)N={name:"*"};else if(Array.isArray(y)&&y.length>0){const R=y;N={name:x=>x?R.indexOf(x)!==-1:!1}}else if(y!=null&&typeof y=="object"){const R=y;if(Array.isArray(R.include)&&R.include.length>0){const x=R.include;N={name:p=>p?x.indexOf(p)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const x=R.exclude;N={name:p=>p?x.indexOf(p)===-1:!1}}}N&&v?.emitToChildren(N,"clearValidate",!1)},o.resetFields=y=>{const N=d();if(!N)return;const R={};if(_.extend(!0,R,h()??{}),Array.isArray(y))y.forEach(x=>{N[x]=R[x]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(p=>{N[p]=R[p]});else if(y&&Array.isArray(y.exclude)){let x=y.exclude??[];Reflect.ownKeys(R).forEach(p=>{x.includes(p)||(N[p]=R[p])})}else Object.assign(N,R);o.clearValidate(y)},o.setModelValue=(y,N)=>{!N||N===i?s(y):v?.emitToChildren({name:N},"setModelValue",y)},o.getModelValue=()=>d()}return a.onUnmounted(()=>{u.destroy(),o[ve]=void 0,o[Ne]&&(o[Ne].clear(),o[Ne]=void 0),v!==null&&(v.destroy(),o[X]=void 0),j!==null&&(j.destroy(),o[me]=void 0)}),u}function re(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",c=a.inject(X,null),i=nt(l,c,o,r);l[X]=i,a.provide(X,i),l.broadcast=(A,E,...y)=>Reflect.apply(i.emit,i,[A,E,...y]);const u=a.inject(me,null);e.fieldName=e.fieldName??o;const s=rt(l,u,e);l[me]=s,a.provide(me,s),l.validate=(A=null)=>{const E=[];if(!Array.isArray(A)||A.indexOf(o)!==-1){const N=s?.validate();E.push(N)}let y=null;if(A===!0)y={name:"*"};else if(Array.isArray(A)&&A.length>0){const N=A;y={name:R=>R?N.indexOf(R)!==-1:!1}}else if(A!=null&&typeof A=="object"){const N=A;if(Array.isArray(N.include)&&N.include.length>0){const R=N.include;y={name:x=>x?R.indexOf(x)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const R=N.exclude;y={name:x=>x?R.indexOf(x)===-1:!1}}}if(y){const N=i.emitToChildren(y,"validate",!1);Reflect.apply([].push,E,N)}return E.length==1?E[0]:E.length>1?Promise.all(E).then(N=>{let R=[];return N.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(R=[...R,...x.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=A=>s?.setRule(A),l.setNameValidateRules=(A,E=!1)=>{const y=A[o];if(y&&s?.setRule(y),E){const N={name:R=>Reflect.ownKeys(A).includes(R)};i.emitToChildren(N,"setNameValidateRules",A,!1)}},l.clearValidate=(A=null)=>{(!Array.isArray(A)||A.indexOf(t??"")!==-1)&&s?.clear();let E=null;if(A===!0)E={name:"*"};else if(Array.isArray(A)&&A.length>0){const y=A;E={name:N=>N?y.indexOf(N)!==-1:!1}}else if(A!=null&&typeof A=="object"){const y=A;if(Array.isArray(y.include)&&y.include.length>0){const N=y.include;E={name:R=>R?N.indexOf(R)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const N=y.exclude;E={name:R=>R?N.indexOf(R)===-1:!1}}}E&&i.emitToChildren(E,"clearValidate",!1)};const d=new Dr(l);l[Lt]=d;const h=Rt((A="validate")=>{A==="reset"?s.clear():s.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xn()).forEach(A=>{d.on(A,E=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Sn()).forEach(A=>{d.on(A,E=>{h("reset")})}),a.onUnmounted(()=>{i.destroy(),l[X]=void 0,s.destroy(),l[me]=void 0,d.destroy(),l[Lt]=void 0}),{broadcast:i,validateSchema:s,emitEvent:(A,...E)=>{Reflect.apply(d.emit,d,[A,...E])},onEvent:(A,E)=>{Reflect.apply(d.on,d,[E])},offEvent:(A,E)=>{Reflect.apply(d.off,d,[E])}}}function En(e,t,r,n,l){const o={},c=t??"";r.fieldName=c,r.validateHandler={getValue(s){const d=e.getForSelf("modelValue");return d?d[c]:null}};const i=rt({},l,r);o.validate=(s=null)=>{const d=[];if(!Array.isArray(s)||s.indexOf(c)!==-1){const v=i?.validate();d.push(v)}let h=null;if(s===!0)h={name:"*"};else if(Array.isArray(s)&&s.length>0){const v=s;h={name:j=>j?v.indexOf(j)!==-1:!1}}else if(s!=null&&typeof s=="object"){const v=s;if(Array.isArray(v.include)&&v.include.length>0){const j=v.include;h={name:A=>A?j.indexOf(A)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const j=v.exclude;h={name:A=>A?j.indexOf(A)===-1:!1}}}if(h){const v=u.emitToChildren(h,"validate",!1);Reflect.apply([].push,d,v)}return d.length==1?d[0]:d.length>1?Promise.all(d).then(v=>{let j=[];return v.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(j=[...j,...A.errors])}),j.length>0?{pass:!1,errors:j}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=s=>i?.setRule(s),o.setNameValidateRules=s=>{const d=s[c];d&&i?.setRule(d)};const u=nt(null,n,c,o);return{broadcast:u,validateSchema:i}}const ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${J(e,t)}px`:"";function J(e,t=-1){if(typeof e=="number")return e<1?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(Ke){const{fontSize:c}=window.getComputedStyle(document.documentElement,null),i=c.indexOf("px");i>0&&(o=Number(c.substring(0,i)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))*t;const n=Number(e);return isNaN(n)?0:n}const xe="PageStateKey";function he(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=J(e.top)),e.left!==null&&e.left!==void 0&&(t.left=J(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=J(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=J(e.right))),t}function Et(e,t,r={},n=!0,l=-1,o=-1,c=0,i=0){e.headerHeight=J(r.headerHeight??t.headerHeight),e.headerPadding=he(r.headerPadding??t.headerPadding),e.footerHeight=J(r.footerHeight??t.footerHeight),e.footerPadding=he(r.footerPadding??t.footerPadding),e.contentPadding=he(r.contentPadding??t.contentPadding),n&&(e.height=J(r.height??t.height,o)-J(c,o)-J(i,o),e.width=J(r.width??t.width,l))}function Pn(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=J(l.top),n.safeAreaBottom=J(l.bottom),n.safeAreaLeft=J(l.left),n.safeAreaRight=J(l.right));const o=e.get("pageLayout");if(!o)return null;const c=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,s=e.get("footerBarHeight")??0;Et(n,o,t,!0,c,i,u,s);const d=a.reactive(n),h=e.getForParent(xe);h&&(n.height=Ye(e,h),n.width=Ue(e,h),a.watch([()=>h.height,()=>h.width,()=>h.contentPadding,()=>h.headerMounted,()=>h.footerMounted],()=>{d.height=Ye(e,h),d.width=Ue(e,h)}));const v=!h;return a.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([j,A=-1,E=-1,y=0,N=0])=>{Et(d,j,t,v,A,E,y,N)}),e.set(xe,d),d}function lt(e){return e.get(xe)}function at(e,t){return t=t??e.get(xe),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function ot(e,t){return t=t??e.get(xe),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function Ye(e,t){if(t=t??e.get(xe),t){const r=at(e,t),n=ot(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ue(e,t){return t=t??e.get(xe),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function qr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Br(e){return!!e.getForParent(xe)}var Ze=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ze||{});function yt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Re(e,t,r=1,n){const l=Se();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(yt(u,n))return u}const c=e.value;return yt(c,n)?c:null}):a.computed(()=>{const o=e.value;return yt(o,n)?o:l?.get(t)})}function ue(e){return Re(e,"readonly",0,function(r){return _.toBoolean(r)})}function ce(e){return Re(e,"disabled",0,function(r){return _.toBoolean(r)})}function W(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,c=>{if(typeof r=="function"){const i=r(c);i!==o.value&&(o.value=i)}else c!==o.value&&(o.value=c)}),o}const On=new Map,Xe=new Map;let Pt=null;function _r(e){Pt=e}function Cn(e,t,r){if(r){let n=Xe.get(r);n||(n=new Map,Xe.set(r,n)),n.set(e,t)}else On.set(e,t)}function Ce(e,t,r){!r&&Pt&&(r=Pt(e)??void 0);let n=null;if(r){let l=Xe.get(r);l&&(n=l.get(t))}return n||(n=On.get(t)),n}function Lr(e,t){for(let r in e){const n=e[r];Cn(r,n,t)}}function Hr(e){Xe.delete(e)}function Kr(){return{top:0,left:0,bottom:0,right:0}}function zr(){if(Ke){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class Gr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){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=_e();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Rt(()=>{const i={...r},u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=s,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=_.extend({},Kr(),t.safeAreaInset),l=_.extend({},zr(),t.pageLayout);r=r??_e(),r.set("safeAreaInset",n),r.set("headerBarHeight",t.headerBarHeight??0),r.set("footerBarHeight",t.footerBarHeight??0),r.set("pageLayout",l),r.set("rootWidth",l.width),r.set("rootHeight",l.height)}setScopeGetter(t){_r(t)}setAPI(t,r,n){Cn(t,r,n)}getAPI(t,r,n){return Ce(t,r,n)}batchSetAPI(t,r){Lr(t,r)}clearScopeAPI(t){Hr(t)}getRootDomain(){return _e()}}const Wr=[f.ElAffix,f.ElAlert,f.ElAutocomplete,f.ElAutoResizer,f.ElAvatar,f.ElBacktop,f.ElBadge,f.ElBreadcrumb,f.ElBreadcrumbItem,f.ElButton,f.ElButtonGroup,f.ElCalendar,f.ElCard,f.ElCarousel,f.ElCarouselItem,f.ElCascader,f.ElCascaderPanel,f.ElCheckTag,f.ElCheckbox,f.ElCheckboxButton,f.ElCheckboxGroup,f.ElCol,f.ElCollapse,f.ElCollapseItem,f.ElCollapseTransition,f.ElColorPicker,f.ElConfigProvider,f.ElContainer,f.ElAside,f.ElFooter,f.ElHeader,f.ElMain,f.ElDatePicker,f.ElDescriptions,f.ElDescriptionsItem,f.ElDialog,f.ElDivider,f.ElDrawer,f.ElDropdown,f.ElDropdownItem,f.ElDropdownMenu,f.ElEmpty,f.ElForm,f.ElFormItem,f.ElIcon,f.ElImage,f.ElImageViewer,f.ElInput,f.ElInputNumber,f.ElLink,f.ElMenu,f.ElSubMenu,f.ElMenuItem,f.ElMenuItemGroup,f.ElPageHeader,f.ElPagination,f.ElPopconfirm,f.ElPopover,f.ElPopper,f.ElProgress,f.ElRadio,f.ElRadioButton,f.ElRadioGroup,f.ElRate,f.ElResult,f.ElRow,f.ElScrollbar,f.ElSelect,f.ElOption,f.ElOptionGroup,f.ElSelectV2,f.ElSkeleton,f.ElSkeletonItem,f.ElSlider,f.ElSpace,f.ElSteps,f.ElStep,f.ElSwitch,f.ElTable,f.ElTableColumn,f.ElTableV2,f.ElTabs,f.ElTabPane,f.ElTag,f.ElTimePicker,f.ElTimeSelect,f.ElTimeline,f.ElTimelineItem,f.ElTooltip,f.ElTransfer,f.ElTree,f.ElTreeSelect,f.ElTreeV2,f.ElUpload],Yr=[f.ElInfiniteScroll,f.ElLoading,f.ElMessage,f.ElMessageBox,f.ElNotification,f.ElPopoverDirective],Ur=e=>{Wr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Yr.forEach(t=>{e.use(t)})};function G(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 ee={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}},oe={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},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:{}},hasBorder:{type:Boolean,default:!0}},Vn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Nn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1}},Tn=[];for(const e in Nn)Tn.push(e);function ie(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Zr=Symbol.for("InnerPageScopeKey"),Xr=(e,t)=>({inheritAttrs:!1,props:{...ee,...Vn,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=Mt(r.name,r);if(l){const s=Pn(l,r);ie({getPageContentHeight:()=>Ye(l,s),getPageContentWidth:()=>Ue(l,s),getPageHeaderHeight:()=>at(l,s),getPageFooterHeight:()=>ot(l,s)});const d=a.inject(Zr,!1);s&&d&&(s.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),c=a.computed(()=>({})),i=a.getCurrentInstance(),u=s=>{const d=i?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(s,!0)};return a.watch(()=>r.rules,(s,d)=>{if(!s&&!d)return;const h=a.toRaw(d),v=a.toRaw(s),j=v?Reflect.ownKeys(v):[];(h?Reflect.ownKeys(h):[]).forEach(E=>{j.includes(E)||(v[E]=[])}),u(v)},{deep:!0}),a.onMounted(()=>{if(r.rules){const s=a.toRaw(r.rules);u(s)}}),{classes:o,styles:c}}}),{componentName:Jr,create:Qr,scope:Ro}=G("page"),el=Qr(Xr(Jr));function tl(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 Ve=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},An=Ve(el,[["render",tl]]),nl=(e,t)=>({props:{padding:{type:[Object],required:!1}},emits:[],setup(r,n){const l=Se(),o=l?lt(l):null;o&&(o.headerMounted=!0);const c=a.computed(()=>({[e]:!0})),i=a.computed(()=>{const s={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const d=he(r.padding??o.footerPadding);return Object.assign(s,d),s.height=o.headerHeight,s.safeAreaTop=o.safeAreaTop,s.safeAreaTop&&(s.top=s.safeAreaTop+(d.top??0),s.height=s.height+o.safeAreaTop),s.height,s.safeAreaTop,s}if(r.padding){const d=he(r.padding);Object.assign(s,d)}return s});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const u=a.computed(()=>{const s={};return i.value.height&&(s.height=`${i.value.height}px`),i.value.top&&(s.paddingTop=`${i.value.top}px`),i.value.left&&(s.paddingLeft=`${i.value.left}px`),i.value.right&&(s.paddingRight=`${i.value.right}px`),i.value.bottom&&(s.paddingBottom=`${i.value.bottom}px`),s});return{classes:c,styles:u}}}),{componentName:rl,create:ll,scope:jo}=G("header-bar"),al=ll(nl(rl));function ol(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 In=Ve(al,[["render",ol]]);function il(e,t){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const l=Se(),o=l?lt(l):null;o&&(o.footerMounted=!0);const c=a.computed(()=>{const s=e;let d=e;return r.align==="left"?d=`${d}__left`:r.align==="right"?d=`${d}__right`:d=`${d}__center`,{[s]:!0,[d]:!0}}),i=a.computed(()=>{const s={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const d=he(r.padding??o.footerPadding);return Object.assign(s,d),s.safeAreaBottom=o.safeAreaBottom,s.safeAreaBottom&&(s.height=o.footerHeight+o.safeAreaBottom,s.bottom=s.safeAreaBottom+(d.bottom??0)),s.height,s.safeAreaBottom,s}if(r.padding){const d=he(r.padding);Object.assign(s,d)}return s});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const u=a.computed(()=>{const s={};return i.value&&(s.height=`${i.value.height}px`),i.value&&(s.paddingTop=`${i.value.top}px`),i.value&&(s.paddingLeft=`${i.value.left}px`),i.value&&(s.paddingRight=`${i.value.right}px`),i.value&&(s.paddingBottom=`${i.value.bottom}px`),s});return{classes:c,styles:u}}}}const{componentName:sl,create:ul,scope:Mo}=G("footer-bar"),cl=ul(il(sl));function fl(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 Rn=Ve(cl,[["render",fl]]);function dl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Se(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const c={};if(n){const i=lt(n);if(i){if(r.padding){const h=he(r.padding);Object.assign(i.contentPadding,h)}const u=at(n,i),s=ot(n,i);let d="";if(i.contentHeight?d=`${i.contentHeight}`:d=`${i.height}px`,i.contentPadding,c.height=d,i.contentPadding.top||u>0){const h=(i&&i.contentPadding&&i.contentPadding.top)??0;c.paddingTop=`${u+h}px`}if(i.contentPadding.bottom||s>0){const h=(i&&i.contentPadding&&i.contentPadding.bottom)??0;c.paddingBottom=`${s+h}px`}return i.contentPadding.left&&(c.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right&&(c.paddingRight=`${i.contentPadding.right}px`),c}}if(r.padding){const i=he(r.padding);i.left&&(c.paddingLeft=`${i.left}px`),i.top&&(c.paddingTop=`${i.top}px`),i.right&&(c.paddingRight=`${i.right}px`),i.bottom&&(c.paddingBottom=`${i.bottom}px`)}return c});return{classes:l,styles:o}}}}const{componentName:hl,create:ml,scope:Do}=G("content"),gl=ml(dl(hl));function pl(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 jn=Ve(gl,[["render",pl]]),Je="GroupStateKey",Mn=Symbol.for("GroupScopeKey");function it(){return a.inject(Mn,!1)}function st(e=!0){a.provide(Mn,e)}function yl(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0});return e.set(Je,o),o}function Ht(e,t,r=-1,n=-1,l=!1){const o=e.get(Je);if(!o)return;const c=e.get("groupLayout")??{};r===-1&&(r=c.column??1),n===-1&&(n=c.gutter??0);const i=c.minItemWidth??-1,u=()=>{const s=t===""||t===-1,d=J(t);let h=_.toNumber(r);const v=J(n);if(!s){let E=(d-(h-1)*v)/h;for(;i!==-1&&h>1&&E<i;)h--,E=(d-(h-1)*v)/h}let j=!1;const A=o.layout;A.value.width=t,A.value.column!==h&&(A.value.column=h,j=!0),A.value.gutter!==v&&(A.value.gutter=v,j=!0),j&&a.triggerRef(A)};if(l)u();else{const s=++o.passport;setTimeout(()=>{s===o.passport&&u()},50)}}function ut(e,t=!1){let r;return t?r=e.getForParent(Je):r=e.get(Je),r.layout}function $e(e,t=1){return t==="stretch"?-1:(t=_.toNumber(t),t===-1?100:100*t/e)}function bl(e){return e===window}const Qe=e=>{const t=a.unref(e);if(bl(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}},qe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,vl=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},xl=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=_.toNumber(e.props.offset);return t<0?0:t};function $l(e,t){return{props:{...ee,...Vn,...Nn},setup(r,n){const l=Mt(r.name,r,Tn),o=yl(l,{type:r.type}),c=it();st(!0);const i=a.getCurrentInstance(),u=p=>{const b=i?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(p,!0)};a.watch(()=>r.rules,(p,b)=>{if(!p&&!b)return;const $=a.toRaw(b),T=a.toRaw(p),O=T?Reflect.ownKeys(T):[];($?Reflect.ownKeys($):[]).forEach(m=>{O.includes(m)||(T[m]=[])}),u(T)},{deep:!0}),a.onMounted(()=>{if(r.rules){const p=a.toRaw(r.rules);u(p)}});const s=e,d=a.computed(()=>{const p={};if(c&&l){const b=ut(l,!0);if(b.value.type!=="flex")return{};if(r.width){const O=ne(r.width);p.width=O}else{const O=$e(b.value.column,r.span);O>0&&(p.width=`${O}%`)}if(r.height){const O=ne(r.height);p.height=O}const $=$e(b.value.column,r.offset);$>0&&(p["margin-left"]=`${$}%`);const T=b.value.gutter/2;T>0&&(p["padding-left"]=`${T}px`,p["padding-right"]=`${T}px`)}else{if(r.width){const b=ne(r.width);p.width=b}if(r.height){const b=ne(r.height);p.height=b}}return p}),h=a.computed(()=>r.type==="flex"?{[`${qe("",r.type)}`]:!0,[`${qe("justify",r.justify)}`]:!0,[`${qe("align",r.align)}`]:!0,[`${qe("flex",r.flexWrap)}`]:!0,[`${s}__gutter`]:!0}:{[`${qe("",r.type)}`]:!0,[`${s}__gutter`]:!0}),v=a.toRef(r,"title"),j=a.toRef(r,"gutter"),A=a.toRef(r,"column"),E=a.computed(()=>c?!0:r.isWrap),y=a.ref([]),N=p=>{y.value.push(p)},R=a.ref(-1);if(Ht(l,R.value,A.value,j.value,!0),r.autoLayout){a.watch([R,A,j],([b,$,T])=>{Ht(l,b,$,T,!1)});let p=null;a.onMounted(()=>{if(Ke&&y.value&&y.value.length>0){const b=y.value[0];R.value=Qe(b).width,window.ResizeObserver&&(p=new window.ResizeObserver(()=>{const $=Qe(b).width;$>0&&$!==R.value&&(R.value=$)}),p.observe(b))}}),a.onUnmounted(()=>{p?.disconnect()})}const x=(p,b,$,T)=>{const O={...h.value};return b===0&&(O[`${s}__first`]=!0),$>=T-1&&(O[`${s}__last`]=!0),a.h("div",{ref:N,key:`${b}`,class:O},p)};return()=>{const p=[];let b=0;if(n.slots.title){const P={key:`${b++}`,class:{[`${s}__title`]:!0,[`${s}__first`]:!0}},m=a.h("div",P,[n.slots.title()]);p.push(m)}else if(v.value){const P={key:`${b++}`,class:{[`${s}__title`]:!0,[`${s}__first`]:!0}},m=a.h("div",{class:{[`${s}__title-mark`]:!0}}),D=a.h("div",{class:{[`${s}__title-text`]:!0}},[v.value]),B=a.h("div",P,[m,D]);p.push(B)}const $=n.slots.default?n.slots.default():[];let T=[],O=0;if(r.type==="flex"){for(let P=0;P<$.length;P++){const m=$[P],D=vl(m),B=xl(m);if(D==="stretch"){if(O<o.layout.value.column){T.push(m);const g=x([...T],b++,P,$.length);p.push(g)}else{const g=x([...T],b++,P-1,$.length);p.push(g);const S=x([m],b++,P,$.length);p.push(S)}O=0,T=[];continue}let C=_.toNumber(D);if(C===-1){if(T.length>0){const S=x([...T],b++,P-1,$.length);p.push(S)}const g=x([m],b++,P,$.length);p.push(g),O=0,T=[];continue}C>o.layout.value.column?C=o.layout.value.column:C<=0&&(C=1);const I=O+C+B;if(I>o.layout.value.column){const g=x([...T],b++,P-1,$.length);p.push(g),O=C+B,T=[m]}else T.push(m),O=I}if(T.length>0){const P=x([...T],b++,$.length,$.length);p.push(P)}}else for(let P=0;P<$.length;P++){const m=$[P],D=x([m],b++,P,$.length);p.push(D)}return E.value?a.h("div",{class:{[`${s}`]:!0},style:d.value},[p]):p}}}}const{componentName:Sl,create:wl,scope:Fo}=G("group"),Dn=wl($l(Sl)),Fn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:El,create:Pl}=G("price"),Ol=Pl({props:{...Fn},setup(e){const t=a.computed(()=>({[El]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>tt(e.price)==0?"":At(e.price,e.decimalLength,!0,e.digits,e.separator)),l=a.computed(()=>{let c=n.value;if(c.length==0)return"";let i=c.indexOf(".");return c.substring(0,i)}),o=a.computed(()=>{let c=n.value;if(c.length==0)return"";let i=c.indexOf(".");return c.substring(i+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),Cl=["innerHTML"],Vl=["innerHTML"];function Nl(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,Cl)):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,Vl)):a.createCommentVNode("",!0)],2)}const et=Ve(Ol,[["render",Nl]]),{componentName:bt,create:Tl}=G("hint-text"),Al=Tl({components:{[et.name]:et},props:{...Fn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=a.computed(()=>({[bt]:!0})),o=a.computed(()=>({left:ne(e.startPoint.x),top:ne(e.startPoint.y-e.height-10-4),height:ne(e.height),width:ne(e.width)})),c=a.computed(()=>({[`${bt}__content`]:!0})),i=a.computed(()=>({})),u=a.computed(()=>({[`${bt}__arrow`]:!0})),s=a.computed(()=>({top:ne(e.height)}));return{classes:l,styles:o,textClasses:c,textStyles:i,arrowClasses:u,arrowStyles:s}}}),Il={key:1,class:"text"};function Rl(e,t,r,n,l,o){const c=a.resolveComponent("fox-price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{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(c,{key:0,price:e.message,position:"before"},null,8,["price"])):(a.openBlock(),a.createElementBlock("span",Il,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.visible]])]),_:1})}const ct=Ve(Al,[["render",Rl]]);class kn{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}}function jl(e){return e===window}const qn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(jl(t))return{x:0,y:0};let r=0,n=0,l=t;for(;l!==null;)n+=l.scrollTop,r+=l.scrollLeft,l=l.parentElement;const o=t.getBoundingClientRect(),c=o.x+r,i=o.y+n;return{x:c,y:i}},Ot={},Ml=new kn,Te=new Map,Ct=e=>{if(e){const t=document.getElementById(e);Te.delete(e),t&&document.body.removeChild(t)}else{for(const t of Te.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Te.clear()}},Dl=e=>{const t=document.getElementById(e.id);if(t){const r=Te.get(e.id);r?e={...Ot,...r,...e}:e={...Ot,...e};const n=a.createVNode(ct,e);return a.render(n,t),e.id}},Fl=e=>{e.unmount=Ct;let t;if(e.id){if(t=e.id,Te.has(t))return Dl(e)}else t=`hinttext_${Ml.get()}`;e={...Ot,...e},e.id=t,Te.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(ct,e);return a.render(n,r),document.body.appendChild(r),t},kl=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Ge={show(e,t,r={},n=!0){n&&Ct(),kl(t);const l=qn(e),o={x:l.x,y:l.y},i=Qe(e).width;return Fl({...r,message:t,startPoint:o,width:i})},hide(e){Ct(e)},install(e){e.config.globalProperties.$hintText=Ge}},{componentName:Kt,create:ql}=G("item"),Bl=ql({inheritAttrs:!0,props:{...ee,...oe},setup(e,t){re({componentName:Kt,validate:!1},e.prop??e.name);const r=Se(),n=it();st(!1);const l=Kt,o=a.computed(()=>({[l]:!0,[`${l}__gutter`]:!0,[`${l}__stretch`]:e.span==="stretch",[`${l}__input--border`]:e.hasBorder,"is-error":!!O.value,"is-warn":!!$.value,"is-info":!!p.value})),c=a.computed(()=>{const V={};if(n&&r){const M=ut(r,!1);if(M.value.type!=="flex")return e.width&&(V.width=ne(e.width)),V;if(e.width)V.width=ne(e.width);else{const q=$e(M.value.column,e.span);q>0&&(V.width=`${q}%`)}const F=$e(M.value.column,e.offset);F>0&&(V["margin-left"]=`${F}%`);const k=M.value.gutter/2;return k>0&&(V["padding-left"]=`${k}px`,V["padding-right"]=`${k}px`),V}else e.width&&(V.width=ne(e.width));return V}),i=a.ref(null),u=a.computed({get:()=>i.value??_.toBoolean(e.isRequired),set:V=>{i.value=V}}),s=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),d=Re(a.toRef(e,"labelPosition"),"labelPosition",Ze.Near),h=a.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),v=a.computed(()=>({[`${l}__main`]:!0,[`${l}__main--${h.value}`]:!0})),j=a.computed(()=>({label:!0,[`label--${h.value}`]:!0})),A=Re(a.toRef(e,"labelWidth"),"labelWidth",Ze.Near),E=a.computed(()=>A&&A.value?{width:`${ne(A.value)}`}:{}),y=a.computed(()=>({["label--string"]:!0,["label--required"]:u.value})),N=a.computed(()=>({content:!0,[e.contentClass]:!0})),R=a.computed(()=>({...e.contentStyle})),x=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ie({setRequired(V){u.value=V},setErrorTip(V){x.errorTip=V},setErrorIcon(V){x.errorIcon=V},setWarnTip(V){x.warnTip=V},setWarnIcon(V){x.warnIcon=V},setInfoTip(V){x.infoTip=V},setInfoIcon(V){x.infoIcon=V}});const p=a.computed(()=>e.infoTip||x.infoTip),b=a.computed(()=>e.infoIcon||x.infoIcon),$=a.computed(()=>e.warnTip||x.warnTip),T=a.computed(()=>e.warnIcon||x.warnIcon),O=a.computed(()=>e.errorTip||x.errorTip),P=a.computed(()=>e.errorIcon||x.errorIcon),m=a.computed(()=>O.value?"error":$.value?"warn":p.value?"info":""),D=a.computed(()=>m.value.length>0),B=a.computed(()=>m.value==="error"?O.value:m.value==="warn"?$.value:m.value==="info"?p.value:""),C=a.computed(()=>m.value==="error"?P.value:m.value==="warn"?T.value:m.value==="info"?b.value:null),I=a.computed(()=>{let V={[`${l}__tip`]:!0,[`${l}__tip--${m.value}`]:!0};return m.value==="error"&&e.errorClass?V[`${e.errorClass}`]=!0:m.value==="warn"&&e.warnClass?V[`${e.warnClass}`]=!0:m.value==="info"&&e.infoClass&&(V[`${e.infoClass}`]=!0),V}),g=a.computed(()=>{let V={};return d&&d.value==="top"?V["padding-left"]="0px":A&&A.value&&(V["padding-left"]=ne(A.value)),V}),S=a.ref();let w="";return a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([V,M,F,k])=>{!S.value||(V&&!Z(M)?w?Ge.show(S.value,M,{...k,id:w,type:F}):w=Ge.show(S.value,M,{...k,type:F}):Ge.hide(w))}),{classes:o,styles:c,mainClasses:v,hasLabel:s,labelClasses:j,labelStyles:E,labelStringClasses:y,contentClasses:N,contentStyles:R,contentRef:S,hasTip:D,mTip:B,mIcon:C,tipClasses:I,tipStyles:g}}}),_l={key:0,class:"fox-item__tip-icon"},Ll={class:"fox-item__tip-text"};function Hl(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",_l,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Ll,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const le=Ve(Bl,[["render",Hl]]),{componentName:Kl,create:zl}=G("slot-item"),Bn=zl({props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0}},setup(e,t){const r=Kl,n=a.computed(()=>({[r]:!0,[`${r}__stretch`]:e.span==="stretch"})),l=Se(),o=it();st(!1);const c=a.computed(()=>{if(o&&l){const i=ut(l,!1);if(i.value.type!=="flex")return{};const u={},s=$e(i.value.column,e.span);s>0&&(u.width=`${s}%`);const d=$e(i.value.column,e.offset);d>0&&(u["margin-left"]=`${d}%`);const h=i.value.gutter/2;return h>0&&(u["padding-left"]=`${h}px`,u["padding-right"]=`${h}px`),u}return{}});return()=>{const i={class:n.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?a.h("div",i,t.slots.default()):a.h("div",i)}}}),{componentName:Gl,create:Wl}=G("row-item"),_n=Wl({props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]}},setup(e,t){const r=Gl,n=a.computed(()=>({[r]:!0,[`${r}__stretch`]:e.span==="stretch",[`${r}__${e.align}`]:!0})),l=Se(),o=it();st(!1);const c=a.computed(()=>{if(o&&l){const u=ut(l,!1);if(u.value.type!=="flex")return{};const s={},d=$e(u.value.column,e.span);d>0&&(s.width=`${d}%`);const h=$e(u.value.column,e.offset);h>0&&(s["margin-left"]=`${h}%`);const v=u.value.gutter/2;return v>0&&(s["padding-left"]=`${v}px`,s["padding-right"]=`${v}px`),s}return{}}),i=a.computed(()=>({[`${r}__content`]:!0}));return()=>{const u=[];t.slots.default&&u.push(t.slots.default());const s={class:i.value},d=a.h("div",s,u),h={class:n.value,style:c.value};return a.h("div",h,[d])}}}),zt={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Yl(e,t,r){return{props:{...ee,...oe,...zt},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(!1),s=ce(a.computed(()=>n.disabled)),d=ue(a.computed(()=>n.readonly)),h=W(n,"modelValue"),v=e,j=a.computed(()=>({[v]:!0})),A=T=>{h.value=T,o("update:modelValue",T),o("input",T)},E=T=>{o("change",T)};let y=W(n,"hintText"),N=a.ref(!1);const R=T=>{let P=T.target.value;u.value=!0,Z(y.value)||(N.value=!0),o("focus",P,T)},x=T=>{setTimeout(()=>{N.value&&(N.value=!1),u.value=!1},0);let P=T.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),o("blur",P,T)},p=()=>{o("clear","")},b=a.computed(()=>tt(n.unit)>0),$=a.ref();return ie({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const O={...l.attrs,ref:$,class:j.value,placeholder:i.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:d.value,modelValue:h.value,onClear:p,onChange:E,onInput:A,onFocus:R,onBlur:x},P={};l.slots.prepend&&(P.prepend=l.slots.prepend),l.slots.append&&(P.append=l.slots.append),l.slots.prefix&&(P.prefix=l.slots.prefix),l.slots.suffix?P.suffix=l.slots.suffix:b.value&&(P.suffix=()=>[n.unit]);const m=[],D=a.h(f.ElInput,O,P);m.push(D);const B={default:()=>m};if(l.slots.default){const S=l.slots.default();B.label=()=>S}const I={...ae(n,zt),hintText:y.value,hintVisible:N.value,prop:`${n.prop}_item`};return a.h(r,I,B)}}}}const{componentName:Ul,create:Zl,scope:Xl}=G("input-item"),Ln=Zl(Yl(Ul,Xl,le));function Oe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ae(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Hn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Jl{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=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Ql(){const e=a.getCurrentInstance();return new Jl(e.proxy)}function Kn(e,t,r){const n=Oe(e,t),l=Oe(e,r);if(n!==l)return!1;const o=Ae(e,t),c=Ae(e,r);return o===c}function zn(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 c of n){const i=Hn(e,c);if(Array.isArray(i)&&i.length>0){const u=zn(e,o,r,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(r==="text")u=Oe(e,c)===o;else if(r==="item")u=Kn(e,c,o);else{let s=Ae(e,c);s==null&&(s=Oe(e,c)),u=s===o}if(u){l.push(c);break}}}}),l}function ea(e){return{text:e,value:e}}const Gt={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"},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},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1}};function ta(e,t,r){return{props:{...ee,...oe,...Gt},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(null),s=a.ref([]),d=(g,S,w,V=!0)=>{const M=zn(n,g,S,w);if(M===null){if(s.value===null||s.value.length===0)return;u.value=null,s.value=[],V&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(M.length!==s.value.length)F=!1;else for(let k=0;k<M.length;k++){const q=M[k],L=s.value[k];if(!Kn(n,q,L)){F=!1;break}}if(!F){s.value=M;let k=[],q=[];M.forEach(K=>{k.push(Ae(n,K)),n.valueType==="text"?q.push(Oe(n,K)):n.valueType==="item"?q.push(K):q.push(Ae(n,K))});let L;n.multiple?(u.value=k,L=a.toRaw(q)):(u.value=k[0]??"",L=a.toRaw(q[0]??"")),V&&(o("update:modelValue",L),o("change",L))}},h=a.ref([]),v=Ql();a.watch([()=>n.source,()=>n.params],async([g,S])=>{if(g){const w=await v.load("select",g,S);if(w.length>0)if(typeof w[0]=="string"){let F=w.map(k=>ea(k));h.value=F}else h.value=w}},{immediate:!0}),a.watch([()=>h.value,()=>n.modelValue],([g,S])=>{d(S,n.valueType,g,!1)});let j=null,A=a.ref(!1);typeof n.remoteMethod=="function"&&(j=async g=>{if(g!=null){A.value=!0;try{const S=await n.remoteMethod(g);h.value=S}catch(S){console.error(S)}A.value=!1}});const E=a.ref(!1),y=ce(a.computed(()=>n.disabled)),N=ue(a.computed(()=>n.readonly)),R=e,x=a.computed(()=>({[R]:!0})),p=g=>{n.allowCreate?(o("update:modelValue",g),o("change",g),u.value=g):d(g,"value",h.value,!0)};let b=W(n,"hintText"),$=a.ref(!1);const T=g=>{let w=g.target.value;E.value=!0,Z(b.value)||($.value=!0),o("focus",w,g)},O=g=>{setTimeout(()=>{$.value&&($.value=!1),E.value=!1},0);let w=g.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),m.value?setTimeout(()=>{o("blur",w,g)},50):o("blur",w,g)},P=()=>{o("clear","")},m=a.ref(!1),D=g=>{m.value=g,o("visible-change",g)},B=g=>{o("remove-tag",g)},C=(g,S)=>{const w=[];return g.forEach((V,M)=>{const F=Hn(n,V);if(Array.isArray(F)&&F.length>0){const k=C(F,S),q=Oe(n,V),K={key:`${q}_${M}`,label:q};w.push(a.h(f.ElOptionGroup,K,{default:()=>k}))}else{const k=Ae(n,V),q=Oe(n,V),L=_.toBoolean(V.disabled),z={key:`${k}_${M}`,label:q,disabled:L,value:k};typeof S=="function"?w.push(a.h(f.ElOption,z,{default:S})):w.push(a.h(f.ElOption,z))}}),w},I=a.ref();return ie({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const S={...l.attrs,ref:I,class:x.value,clearable:n.clearable,multiple:n.multiple,placeholder:i.placeholder.value,disabled:y.value||N.value,modelValue:u.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:P,onChange:p,onFocus:T,onBlur:O,onVisibleChange:D,onRemoveTag:B};typeof j=="function"&&(S["remote-method"]=j,S.loading=A.value);const w={};l.slots.prefix&&(w.prefix=l.slots.prefix),l.slots.empty&&(w.empty=l.slots.empty),w.default=()=>C(h.value,l.slots.option);const V=[],M=a.h(f.ElSelect,S,w);V.push(M);const F={default:()=>V};if(l.slots.default){const K=l.slots.default();F.label=()=>K}const q={...ae(n,Gt),hintText:b.value,hintVisible:$.value,prop:`${n.prop??n.name}_item`};return a.h(r,q,F)}}}}const{componentName:na,create:ra,scope:la}=G("select-item"),Gn=ra(ta(na,la,le)),Wt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function aa(e,t,r){return{props:{...ee,...oe,...Wt},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(!1),s=ce(a.computed(()=>n.disabled)),d=ue(a.computed(()=>n.readonly)),h=W(n,"modelValue"),v=e,j=a.computed(()=>({[v]:!0})),A=O=>{h.value=O,o("update:modelValue",O),o("change",O)};let E=W(n,"hintText"),y=a.ref(!1);const N=O=>{let m=O.target.value;u.value=!0,Z(E.value)||(y.value=!0),o("focus",m,O)},R=O=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let m=O.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,O)},x=()=>{o("clear","")},p=O=>{o("calendar-change",O)},b=(O,P,m)=>{o("panel-change",O,P,m)},$=O=>{o("visible-change",O)},T=a.ref();return ie({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},handleOpen:()=>{T?.value.handleOpen()},handleClose:()=>{T?.value.handleClose()}}),()=>{const P={...l.attrs,ref:T,class:j.value,placeholder:i.placeholder.value,disabled:s.value,readonly:d.value,modelValue:h.value,["onUpdate:modelValue"]:A,onClear:x,onFocus:N,onBlur:R,onCalendarChange:p,onPanelChange:b,onVisibleChange:$},m={};l.slots["range-separator"]&&(m["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(m.default=l.slots.cell);const D=[],B=a.h(f.ElDatePicker,P,m);D.push(B);const C={default:()=>D};if(l.slots.default){const w=l.slots.default();C.label=()=>w}const g={...ae(n,Wt),hintText:E.value,hintVisible:y.value,prop:`${n.prop}_item`};return a.h(r,g,C)}}}}const{componentName:oa,create:ia,scope:sa}=G("date-item"),Wn=ia(aa(oa,sa,le)),Yt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function ua(e,t,r){return{props:{...ee,...oe,...Yt},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(!1),s=ce(a.computed(()=>n.disabled)),d=ue(a.computed(()=>n.readonly)),h=W(n,"modelValue"),v=e,j=a.computed(()=>({[v]:!0})),A=$=>{h.value=$,o("update:modelValue",$),o("change",$)};let E=W(n,"hintText"),y=a.ref(!1);const N=$=>{let O=$.target.value;u.value=!0,Z(E.value)||(y.value=!0),o("focus",O,$)},R=$=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let O=$.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),o("blur",O,$)},x=()=>{o("clear","")},p=$=>{o("visible-change",$)},b=a.ref();return ie({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()}}),()=>{const T={...l.attrs,ref:b,class:j.value,placeholder:i.placeholder.value,disabled:s.value,readonly:d.value,modelValue:h.value,["onUpdate:modelValue"]:A,onClear:x,onFocus:N,onBlur:R,onVisibleChange:p},O={},P=[],m=a.h(f.ElTimePicker,T,O);P.push(m);const D={default:()=>P};if(l.slots.default){const g=l.slots.default();D.label=()=>g}const C={...ae(n,Yt),hintText:E.value,hintVisible:y.value,prop:`${n.prop}_item`};return a.h(r,C,D)}}}}const{componentName:ca,create:fa,scope:da}=G("time-item"),Yn=fa(ua(ca,da,le)),Ut={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function ha(e,t,r){return{props:{...ee,...oe,...Ut},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(!1),s=ce(a.computed(()=>n.disabled)),d=ue(a.computed(()=>n.readonly)),h=W(n,"modelValue"),v=e,j=a.computed(()=>({[v]:!0})),A=b=>{h.value=b,o("update:modelValue",b),o("change",b)};let E=W(n,"hintText"),y=a.ref(!1);const N=b=>{let T=b.target.value;u.value=!0,Z(E.value)||(y.value=!0),o("focus",T,b)},R=b=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let T=b.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),o("blur",T,b)},x=()=>{o("clear","")},p=a.ref();return ie({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},handleOpen:()=>{p?.value.handleOpen()},handleClose:()=>{p?.value.handleClose()}}),()=>{const $={...l.attrs,ref:p,class:j.value,placeholder:i.placeholder.value,disabled:s.value,readonly:d.value,modelValue:h.value,["onUpdate:modelValue"]:A,onClear:x,onFocus:N,onBlur:R},T={},O=[],P=a.h(f.ElTimeSelect,$,T);O.push(P);const m={default:()=>O};if(l.slots.default){const I=l.slots.default();m.label=()=>I}const B={...ae(n,Ut),hintText:E.value,hintVisible:y.value,prop:`${n.prop}_item`};return a.h(r,B,m)}}}}const{componentName:ma,create:ga,scope:pa}=G("time-select-item"),Un=ga(ha(ma,pa,le));function Zt(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 Xt(e,t,r=20){if(typeof t=="string"&&(t=_.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=fn(`${e}`,`${t}`);return Zt(n)}else{let n=Tt(`${e}`,dn(`${t}`),20);return Zt(n)}}function ya(e,t=-1,r=!1,n=3,l=","){return At(e,t,r,n,l)}function Jt(e,t,r,n,l=!0){if(e=="")return"";if(e=hn(e),t=_.toNumber(t),t==1)return e;if(n)e=Xt(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(_.toNumber(r)+2,"0"):e=Tt(e,1,_.toNumber(r)));else{let o=-1*t;e=Xt(e,o)}return e}function Qt(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=_.toBoolean(t.minInclude),l=wt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=_.toBoolean(t.maxInclude),l=wt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const en={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}};function ba(e,t,r){return{props:{...ee,...oe,...en},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),c=a.ref(!1),i=ce(a.computed(()=>n.disabled)),u=ue(a.computed(()=>n.readonly)),s=W(n,"modelValue"),d=a.ref("");a.watch([()=>s.value,()=>n.rates,()=>n.precision],([C,I,g])=>{if(Z(C))return"";const S=Jt(C,I,g,!1);d.value!==S&&(d.value=S)},{immediate:!0});const h=a.computed(()=>{let C="";return c.value&&(C=d.value),C}),{t:v}=ge.useFoxI18n(t),j=a.computed(()=>{let C=n.placeholder??"";return!c.value&&!Z(d.value)?C=ya(d.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=v(["placeholder",C]),C}),A=e,E=a.computed(()=>({[A]:!0,[`${A}__disabled`]:i.value,[`${A}__placeholder`]:d.value.length>0})),y=Re(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>c.value?{textAlign:"left"}:{textAlign:y.value??"right"});const N=a.ref(""),R=a.computed(()=>{let C=N.value;return Z(C)&&(C=n.errorTip??""),C}),x=a.ref(""),p=a.ref(!1),b=(C,I)=>{if(C=`${C}`,Z(C)){d.value="",s.value="",I.forEach(g=>{o(g,"")}),_.toBoolean(n.showTip)&&p.value&&(p.value=!1);return}if(C.length>=2){let g=C;if(g.charAt(0)=="-"&&(g=g.substring(1)),g.length>=2&&g.charAt(0)=="0"&&g.charAt(1)!="."){a.triggerRef(d);return}}if(C!="-"){if(!gn(C)){a.triggerRef(d);return}if(n.integerLength!=-1&&pn(C)>Number(n.integerLength)){a.triggerRef(d);return}if(n.decimalLength&&n.decimalLength!=-1&&yn(C)>Number(n.decimalLength)){a.triggerRef(d);return}let g=Qt(C,n);if(g.maxValid===!1){N.value=g.message,a.triggerRef(d);return}}else if(n.min!=null&&_.toNumber(n.min)>=0){a.triggerRef(d);return}x.value=C,_.toBoolean(n.showTip)&&(p.value=C.length>0),d.value=C,s.value=Jt(C,n.rates,n.precision,!0),I.forEach(g=>{o(g,s.value)})},$=C=>{b(C,["update:modelValue","input"])},T=C=>{b(C,["update:modelValue","change"])},O=C=>{if(c.value=!0,_.toBoolean(n.showTip)){let I=d.value;Z(I)&&(I=n.hintText),Z(I)||(x.value=I,p.value=!0)}N.value="",o("focus",s.value,C)},P=C=>{if(setTimeout(()=>{c.value=!1,_.toBoolean(n.showTip)&&p.value===!0&&(p.value=!1)},0),!Z(d.value)){let I=Qt(d.value,n);if(I.minValid===!1||I.maxValid){N.value=I.message;return}}o("update:modelValue",s.value,C),o("blur",s.value,C)},m=()=>{o("clear","")},D=a.computed(()=>tt(n.unit)>0),B=a.ref();return ie({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const I={...l.attrs,ref:B,class:E.value,type:"digit",maxlength:n.maxLength,placeholder:j.value,clearable:n.clearable,disabled:i.value,readonly:u.value,modelValue:h.value,onClear:m,onInput:$,onChange:T,onFocus:O,onBlur:P},g={};l.slots.prepend&&(g.prepend=l.slots.prepend),l.slots.append&&(g.append=l.slots.append),l.slots.prefix&&(g.prefix=l.slots.prefix),l.slots.suffix?g.suffix=l.slots.suffix:D.value&&(g.suffix=()=>[n.unit]);const S=[],w=a.h(f.ElInput,I,g);S.push(w);const V={default:()=>S};if(l.slots.default){const q=l.slots.default();V.label=()=>q}const F={...ae(n,en),errorTip:R.value,hintText:x.value,hintVisible:p.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,F,V)}}}}const{componentName:va,create:xa,scope:$a}=G("money-item"),Zn=xa(ba(va,$a,le));function je(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 Sa(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class wa{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=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Ea(){const e=a.getCurrentInstance();return new wa(e.proxy)}function Vt(e,t,r){const n=je(e,t),l=je(e,r);if(n!==l)return!1;const o=Pe(e,t),c=Pe(e,r);return o===c}function Xn(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 c=0;Array.isArray(o)&&c<t.length;c++){const i=t[c];if(Array.isArray(i)){const u=Xn(e,i,r,n);l.push(u)}else{let u=!1;for(let s of o){if(r==="text")u=je(e,s)===i;else if(r==="item")u=Vt(e,s,i);else{let d=Pe(e,s);d==null&&(d=je(e,s)),u=d===i}if(u){l.push(s),o=Sa(e,s);break}}if(!u)break}}return l}function Pa(e){return{text:e,value:e}}const tn={modelValue:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1}};function Oa(e,t,r){return{props:{...ee,...oe,...tn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(null),s=a.ref([]),d=(S,w,V,M=!0)=>{if(n.props&&n.props.lazy===!0){if(u.value===S)return;u.value=S;const q=a.toRaw(S);M&&(o("update:modelValue",q),o("change",q))}const F=Xn(n,S,w,V);if(F===null){if(s.value.length===0||s.value===null)return;s.value=[],u.value=null,M&&(o("update:modelValue",null),o("change",null));return}let k=!0;if(F.length!==s.value.length)k=!1;else for(let q=0;q<F.length;q++){const L=F[q],K=s.value[q];if(Array.isArray(L)){if(!Array.isArray(K)||L.length!==K.length)k=!1;else for(let z=0;z<L.length;z++)if(!Vt(n,L[z],K[z])){k=!1;break}}else Vt(n,L,K)||(k=!1);if(!k)break}if(!k){s.value=F;let q=[],L=[];F.forEach(z=>{if(Array.isArray(z)){let de=[],se=[];for(let te of z)de.push(Pe(n,te)),n.valueType==="text"?se.push(je(n,te)):n.valueType==="item"?se.push(te):se.push(Pe(n,te));q.push(de),L.push(se)}else q.push(Pe(n,z)),n.valueType==="text"?L.push(je(n,z)):n.valueType==="item"?L.push(z):L.push(Pe(n,z))}),u.value=q;const K=a.toRaw(L);M&&(o("update:modelValue",K),o("change",K))}},h=a.ref([]),v=Ea();a.watch([()=>n.source,()=>n.params],async([S,w])=>{if(S){const V=await v.load("cascader",S,w);if(V.length>0)if(typeof V[0]=="string"){let k=V.map(q=>Pa(q));h.value=k}else h.value=V}},{immediate:!0}),a.watch([()=>h.value,()=>n.modelValue],([S,w])=>{d(w,n.valueType,S,!1)});let j=null,A=a.ref(!1);typeof n.remoteMethod=="function"&&(j=async S=>{if(S!=null){A.value=!0;try{const w=await n.remoteMethod(S);h.value=w}catch(w){console.error(w)}A.value=!1}});const E=a.ref(!1),y=ce(a.computed(()=>n.disabled)),N=ue(a.computed(()=>n.readonly)),R=e,x=a.computed(()=>({[R]:!0})),p=a.computed(()=>{let S={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(S.multiple=!0),n.props&&Object.assign(S,n.props),S}),b=S=>{n.allowCreate?(o("update:modelValue",S),o("change",S),u.value=S):d(S,"value",h.value,!0)};let $=W(n,"hintText"),T=a.ref(!1);const O=S=>{let V=S.target.value;E.value=!0,Z($.value)||(T.value=!0),o("focus",V,S)},P=S=>{setTimeout(()=>{T.value&&(T.value=!1),E.value=!1},0);let V=S.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),D.value?setTimeout(()=>{o("blur",V,S)},50):o("blur",V,S)},m=()=>{o("clear","")},D=a.ref(!1),B=S=>{D.value=S,o("visible-change",S)},C=S=>{o("remove-tag",S)},I=S=>{o("expand-change",S)},g=a.ref();return ie({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},getCheckedNodes:()=>g?.value.getCheckedNodes()}),()=>{const w={...l.attrs,ref:g,class:x.value,props:p.value,clearable:n.clearable,placeholder:i.placeholder.value,disabled:y.value||N.value,options:h.value,modelValue:u.value,onClear:m,onChange:b,onFocus:O,onBlur:P,onVisibleChange:B,onRemoveTag:C,expandChange:I};typeof j=="function"&&(w["remote-method"]=j,w.loading=A.value);const V={};l.slots.option&&(V.default=l.slots.option),l.slots.empty&&(V.empty=l.slots.empty);const M=[],F=a.h(f.ElCascader,w,V);M.push(F);const k={default:()=>M};if(l.slots.default){const z=l.slots.default();k.label=()=>z}const L={...ae(n,tn),hintText:$.value,hintVisible:T.value,prop:`${n.prop??n.name}_item`};return a.h(r,L,k)}}}}const{componentName:Ca,create:Va,scope:Na}=G("cascader-item"),Jn=Va(Oa(Ca,Na,le)),nn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ta(e,t,r){return{props:{...ee,...oe,...nn},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:c}=ge.useFoxI18n(t),i=c(n,["placeholder"]),u=a.ref(!1),s=ce(a.computed(()=>n.disabled)),d=ue(a.computed(()=>n.readonly)),h=W(n,"modelValue"),v=e,j=a.computed(()=>({[v]:!0})),A=$=>{h.value=$,o("update:modelValue",$),o("input",$)},E=$=>{o("change",$)};let y=W(n,"hintText"),N=a.ref(!1);const R=$=>{let O=$.target.value;u.value=!0,Z(y.value)||(N.value=!0),o("focus",O,$)},x=$=>{setTimeout(()=>{N.value&&(N.value=!1),u.value=!1},0);let O=$.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),o("blur",O,$)},p=()=>{o("clear","")},b=a.ref();return ie({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},select:()=>{b?.value.select()}}),()=>{const T={...l.attrs,ref:b,class:j.value,placeholder:i.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:d.value,modelValue:h.value,onClear:p,onChange:E,onInput:A,onFocus:R,onBlur:x},O={};l.slots.prepend&&(O.prepend=l.slots.prepend),l.slots.append&&(O.append=l.slots.append),l.slots.prefix&&(O.prefix=l.slots.prefix),l.slots.suffix&&(O.suffix=l.slots.suffix),l.slots.option&&(O.default=l.slots.option);const P=[],m=a.h(f.ElAutocomplete,T,O);P.push(m);const D={default:()=>P};if(l.slots.default){const g=l.slots.default();D.label=()=>g}const C={...ae(n,nn),hintText:y.value,hintVisible:N.value,prop:`${n.prop}_item`};return a.h(r,C,D)}}}}const{componentName:Aa,create:Ia,scope:Ra}=G("autocomplete-item"),Qn=Ia(Ta(Aa,Ra,le));function ja(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const c=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let s=t[u],d=o[u];const h=s.find(v=>v[n]===d);if(!h)break;c.push(h[r])}else{let u=t;for(let s=0;u&&s<o.length;s++){let d=o[s],h=u.find(v=>v[n]===d);if(!h)break;c.push(h[r]),u=h[l]}}return c}class Ma{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=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Da(){const e=a.getCurrentInstance();return new Ma(e.proxy)}const er={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"}};function Fa(e,t){return{props:{...er},setup(r,{attrs:n}){const l=Da(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([u,s])=>{o.value=await l.load(r.sourceType,u,s)},{immediate:!0});const c=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let u=ja(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return u.length==0?"":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?a.h(i,u,{default:()=>c.value}):a.h(i,u,c.value)}}}}const{componentName:ko,create:ka,scope:qo}=G("mapping"),Dt=ka(Fa());function qa(e,t){return{props:{...er},setup(r,{attrs:n}){return()=>{const l={default:o=>{const c=o.row[o.column.property];return a.h(Dt,{...r,modelValue:c})}};return a.h(f.ElTableColumn,{...n},l)}}}}const{componentName:Bo,create:Ba,scope:_o}=G("table-mapping-column"),tr=Ba(qa());class _a{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,c,i){if(Array.isArray(r)){let s=(n-1)*l,d=s+l;d>r.length&&(d=r.length);const h=r.slice(s,d);return{totalSize:r.length,page:h}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,c,i]);const u=Ce(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(_.isObject(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(u,null,[r,n,l,o,c,i]))}}function La(){const e=a.getCurrentInstance();return new _a(e.proxy)}const rn={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},ln={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 Ha(e,t,r){return{inheritAttrs:!1,props:{...ee,...oe,...rn,...ln},emits:["change","page-size-change","page-index-change","current-change"],setup(n,l){const{locale:o}=ge.useFoxI18n(t),{emitEvent:c}=re({componentName:e},n.prop??n.name),i=e,u=a.computed(()=>({[i]:!0})),s=a.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),d=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,m=>{d.value=m});const h=m=>{d.value=m,c("page-index-change",m)},v=a.ref(n.pageSize);a.watch(()=>n.pageSize,m=>{v.value=m});const j=m=>{v.value=m,c("page-size-change",m)},A=a.shallowRef({}),E=a.computed(()=>({...A.value,...n.params??{},...n.baseParams??{}})),y=a.ref(0),N=a.ref(),R=La();let x=!0;const p=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:_.toBoolean(n.autoLoad),b=async(m,D,B,C)=>{try{const I=await R.load("table",m,D,B,C,x,o.value);y.value=I.totalSize,N.value=I.page}catch(I){console.error("[FoxUI] Load Table Data Fail",I),y.value=0,N.value=[]}x=!1};a.watch([d,v],([m,D],[B,C])=>{D!==C&&(d.value=1,m=1),b(n.data,m,D,E.value)}),a.watch([()=>n.data,E],([m,D],[B,C])=>{!p()||(m!==B&&(x=!0),b(m,d.value,v.value,D))});const $=(m={})=>{A.value=a.toRaw(m??{}),a.triggerRef(A),a.nextTick(()=>{b(n.data,d.value,v.value,E.value)})};p()&&$();let T=null;const O=(m,D)=>{T=m,c("current-change",m,D)},P=a.ref();return ie({clearSelection:()=>P?.value.clearSelection(),getSelectionRows:()=>P?.value.getSelectionRows(),toggleRowSelection:(m,D)=>{P?.value.toggleRowSelection(m,D)},toggleAllSelection:()=>{P?.value.toggleAllSelection()},toggleRowExpansion:(m,D)=>{P?.value.toggleRowExpansion(m,D)},setCurrentRow:m=>{P?.value.setCurrentRow(m)},getCurrentRow:()=>T,clearSort:()=>{P?.value.clearSort()},clearFilter:m=>{P?.value.clearFilter(m)},doLayout:()=>{P?.value.doLayout()},sort:(m,D)=>{P?.value.sort(m,D)},scrollTo:(m,D)=>{P?.value.scrollTo(m,D)},setScrollTop:m=>{P?.value.setScrollTop(m)},setScrollLeft:m=>{P?.value.setScrollLeft(m)},loadData:$}),()=>{const D={...l.attrs,onCurrentChange:O,data:N.value,ref:P,class:u.value},B={};l.slots.default&&(B.default=l.slots.default),l.slots.append&&(B.append=l.slots.append),l.slots.empty&&(B.empty=l.slots.empty);const C=[],I=a.h(f.ElTable,D,B);if(C.push(I),typeof l.slots.pagination=="function"){const M=l.slots.pagination();C.push(M)}else if(n.paginationVisible){const M={class:s.value,total:y.value,pageSize:v.value,["onUpdate:pageSize"]:j,pageSizes:n.pageSizes,currentPage:d.value,["onUpdate:currentPage"]:h,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},F=a.h(f.ElPagination,M);C.push(F)}const g={default:()=>C},w={...ae(n,rn,ln),prop:`${n.prop}_item`};return w.contentClass=`${i}__wrap`,a.h(r,w,g)}}}}const{componentName:Ka,create:za,scope:Ga}=G("table-item"),nr=za(Ha(Ka,Ga,le));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Wa{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=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Ya(){const e=a.getCurrentInstance();return new Wa(e.proxy)}function rr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Me(e,t),l=Me(e,r);if(n!==l)return!1;const o=He(e,t),c=He(e,r);return o===c}function Ua(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 c=!1;if(r==="text")c=Me(e,o)===t;else if(r==="item")c=rr(e,o,t);else{let i=He(e,o);i==null&&(i=Me(e,o)),c=i===t}if(c){l=o;break}}return l}function Za(e){return{text:e,value:e}}const an={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"},itemClass:{type:[String],required:!1}};function Xa(e,t,r){return{inheritAttrs:!0,props:{...ee,...oe,...an},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),c=a.ref(null),i=a.ref(null),u=(x,p,b,$=!0)=>{const T=Ua(n,x,p,b);if(T===null){if(i.value===null)return;i.value=null,c.value=null,$&&(o("update:modelValue",null),o("change",null));return}if(!rr(n,T,i.value)){c.value=x;const P=a.toRaw(T);i.value=P;let m=null;n.valueType==="text"?m=Me(n,P):n.valueType==="item"?m=P:m=He(n,P),$&&(o("update:modelValue",m),o("change",m))}},s=a.ref([]),d=Ya();a.watch([()=>n.source,()=>n.params],async([x,p])=>{if(x){const b=await d.load("radio",x,p);if(b.length>0)if(typeof b[0]=="string"){let O=b.map(P=>Za(P));s.value=O}else s.value=b}},{immediate:!0}),a.watch([()=>s.value,()=>n.modelValue],([x,p])=>{u(p,n.valueType,x,!1)});const h=ce(a.computed(()=>n.disabled)),v=ue(a.computed(()=>n.readonly)),j=e,A=a.computed(()=>({[j]:!0})),E=x=>{u(x,"value",s.value,!0)};let y=W(n,"hintText"),N=W(n,"hintVisible");const R=x=>{const p=[];return x.forEach((b,$)=>{const T=He(n,b),O=Me(n,b),P=_.toBoolean(b.disabled),D={key:`${T}_${$}`,class:n.itemClass,label:T,disabled:P,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?p.push(a.h(f.ElRadioButton,D,{default:()=>[O]})):p.push(a.h(f.ElRadio,D,{default:()=>[O]}))}),p};return()=>{const p={...l.attrs,class:A.value,disabled:h.value||v.value,modelValue:c.value,["text-color"]:n.textColor,fill:n.fill,onChange:E},b=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>R(s.value);const T=a.h(f.ElRadioGroup,p,$);b.push(T);const O={default:()=>b};if(l.slots.default){const B=l.slots.default();O.label=()=>B}const m={...ae(n,an),hintText:y.value,hintVisible:N.value,prop:`${n.prop??n.name}_item`};return a.h(r,m,O)}}}}const{componentName:Ja,create:Qa,scope:eo}=G("radio-item"),lr=Qa(Xa(Ja,eo,le));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ie(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class to{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=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function no(){const e=a.getCurrentInstance();return new to(e.proxy)}function ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=De(e,t),l=De(e,r);if(n!==l)return!1;const o=Ie(e,t),c=Ie(e,r);return o===c}function ro(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 c of n){let i=!1;if(r==="text")i=De(e,c)===o;else if(r==="item")i=ar(e,c,o);else{let u=Ie(e,c);u==null&&(u=De(e,c)),i=u===o}if(i){l.push(c);break}}}),l}function lo(e){return{text:e,value:e}}const on={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},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemClass:{type:[String],required:!1}};function ao(e,t,r){return{inheritAttrs:!1,props:{...ee,...oe,...on},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),c=a.ref([]),i=a.ref([]),u=(x,p,b,$=!0)=>{const T=ro(n,x,p,b);if(T===null){if(i.value===null||i.value.length===0)return;c.value=[],i.value=[],$&&(o("update:modelValue",[]),o("change",[]));return}let O=!0;if(T.length!==i.value.length)O=!1;else for(let P=0;P<T.length;P++){const m=T[P],D=i.value[P];if(!ar(n,m,D)){O=!1;break}}if(!O){i.value=T;let P=[],m=[];T.forEach(B=>{P.push(Ie(n,B)),n.valueType==="text"?m.push(De(n,B)):n.valueType==="item"?m.push(B):m.push(Ie(n,B))}),c.value=P;const D=a.toRaw(m);$&&(o("update:modelValue",D),o("change",D))}},s=a.ref([]),d=no();a.watch([()=>n.source,()=>n.params],async([x,p])=>{if(x){const b=await d.load("checkbox",x,p);if(b.length>0)if(typeof b[0]=="string"){let O=b.map(P=>lo(P));s.value=O}else s.value=b}},{immediate:!0}),a.watch([()=>s.value,()=>n.modelValue],([x,p])=>{u(p,n.valueType,x,!1)});const h=ce(a.computed(()=>n.disabled)),v=ue(a.computed(()=>n.readonly)),j=e,A=a.computed(()=>({[j]:!0})),E=x=>{u(x,"value",s.value,!0)};let y=W(n,"hintText"),N=W(n,"hintVisible");const R=x=>{const p=[];return x.forEach((b,$)=>{const T=Ie(n,b),O=De(n,b),P=_.toBoolean(b.disabled),D={key:`${T}_${$}`,class:n.itemClass,label:T,disabled:P,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?p.push(a.h(f.ElCheckboxButton,D,{default:()=>[O]})):p.push(a.h(f.ElCheckbox,D,{default:()=>[O]}))}),p};return()=>{const p={...l.attrs,class:A.value,disabled:h.value||v.value,modelValue:c.value,["text-color"]:n.textColor,fill:n.fill,max:_.toNumber(n.max),min:_.toNumber(n.min),onChange:E},b=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>R(s.value);const T=a.h(f.ElCheckboxGroup,p,$);b.push(T);const O={default:()=>b};if(l.slots.default){const B=l.slots.default();O.label=()=>B}const m={...ae(n,on),hintText:y.value,hintVisible:N.value,prop:`${n.prop??n.name}_item`};return a.h(r,m,O)}}}}const{componentName:oo,create:io,scope:so}=G("checkbox-item"),or=io(ao(oo,so,le)),sn={modelValue:{type:[Number,String],required:!1}};function uo(e,t,r){return{props:{...ee,...oe,...sn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),c=ce(a.computed(()=>n.disabled)),i=ue(a.computed(()=>n.readonly)),u=W(n,"modelValue"),s=e,d=a.computed(()=>({[s]:!0})),h=E=>{o("update:modelValue",E),o("change",E)};let v=W(n,"hintText"),j=a.ref(!1);const A=a.ref();return ie({}),()=>{const y={...l.attrs,ref:A,class:d.value,readonly:i.value||c.value,modelValue:u.value,onChange:h},N={},R=[],x=a.h(f.ElRate,y,N);R.push(x);const p={default:()=>R};if(l.slots.default){const O=l.slots.default();p.label=()=>O}const $={...ae(n,sn),hintText:v.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,$,p)}}}}const{componentName:co,create:fo,scope:ho}=G("rate-item"),ir=fo(uo(co,ho,le)),un={modelValue:{type:[Boolean,String,Number],required:!1}};function mo(e,t,r){return{props:{...ee,...oe,...un},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),c=ce(a.computed(()=>n.disabled)),i=ue(a.computed(()=>n.readonly)),u=W(n,"modelValue"),s=e,d=a.computed(()=>({[s]:!0})),h=E=>{o("update:modelValue",E),o("change",E)};let v=W(n,"hintText"),j=W(n,"hintVisible");const A=a.ref();return ie({}),()=>{const y={...l.attrs,ref:A,class:d.value,readonly:i.value,disabled:c.value,modelValue:u.value,onChange:h},N={},R=[],x=a.h(f.ElSwitch,y,N);R.push(x);const p={default:()=>R};if(l.slots.default){const O=l.slots.default();p.label=()=>O}const $={...ae(n,un),hintText:v.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,$,p)}}}}const{componentName:go,create:po,scope:yo}=G("switch-item"),sr=po(mo(go,yo,le)),bo=Symbol.for("InnerPageScopeKey"),vo=Symbol.for("DialogItemStateKey");function xo(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(bo,!0);const l={};a.provide(vo,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose(u)},c=a.ref(!0),i=u=>{c.value=u};return()=>{const s={...n.attrs,title:r.title,draggable:r.draggable,modelValue:c.value,"onUpdate:modelValue":i,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},d={};if(typeof n.slots.default=="function"){const h=n.slots.default();d.default=()=>h}return a.h(f.ElDialog,s,d)}}}}const{componentName:Lo,create:$o,scope:Ho}=G("dialog-item"),ur=$o(xo());var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",c="second",i="minute",u="hour",s="day",d="week",h="month",v="quarter",j="year",A="date",E="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|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,R={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("_")},x=function(C,I,g){var S=String(C);return!S||S.length>=I?C:""+Array(I+1-S.length).join(g)+C},p={s:x,z:function(C){var I=-C.utcOffset(),g=Math.abs(I),S=Math.floor(g/60),w=g%60;return(I<=0?"+":"-")+x(S,2,"0")+":"+x(w,2,"0")},m:function C(I,g){if(I.date()<g.date())return-C(g,I);var S=12*(g.year()-I.year())+(g.month()-I.month()),w=I.clone().add(S,h),V=g-w<0,M=I.clone().add(S+(V?-1:1),h);return+(-(S+(g-w)/(V?w-M:M-w))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:h,y:j,w:d,d:s,D:A,h:u,m:i,s:c,ms:o,Q:v}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},b="en",$={};$[b]=R;var T=function(C){return C instanceof D},O=function C(I,g,S){var w;if(!I)return b;if(typeof I=="string"){var V=I.toLowerCase();$[V]&&(w=V),g&&($[V]=g,w=V);var M=I.split("-");if(!w&&M.length>1)return C(M[0])}else{var F=I.name;$[F]=I,w=F}return!S&&w&&(b=w),w||!S&&b},P=function(C,I){if(T(C))return C.clone();var g=typeof I=="object"?I:{};return g.date=C,g.args=arguments,new D(g)},m=p;m.l=O,m.i=T,m.w=function(C,I){return P(C,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var D=function(){function C(g){this.$L=O(g.locale,null,!0),this.parse(g)}var I=C.prototype;return I.parse=function(g){this.$d=function(S){var w=S.date,V=S.utc;if(w===null)return new Date(NaN);if(m.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var M=w.match(y);if(M){var F=M[2]-1||0,k=(M[7]||"0").substring(0,3);return V?new Date(Date.UTC(M[1],F,M[3]||1,M[4]||0,M[5]||0,M[6]||0,k)):new Date(M[1],F,M[3]||1,M[4]||0,M[5]||0,M[6]||0,k)}}return new Date(w)}(g),this.$x=g.x||{},this.init()},I.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},I.$utils=function(){return m},I.isValid=function(){return this.$d.toString()!==E},I.isSame=function(g,S){var w=P(g);return this.startOf(S)<=w&&w<=this.endOf(S)},I.isAfter=function(g,S){return P(g)<this.startOf(S)},I.isBefore=function(g,S){return this.endOf(S)<P(g)},I.$g=function(g,S,w){return m.u(g)?this[S]:this.set(w,g)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(g,S){var w=this,V=!!m.u(S)||S,M=m.p(g),F=function(te,U){var fe=m.w(w.$u?Date.UTC(w.$y,U,te):new Date(w.$y,U,te),w);return V?fe:fe.endOf(s)},k=function(te,U){return m.w(w.toDate()[te].apply(w.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(U)),w)},q=this.$W,L=this.$M,K=this.$D,z="set"+(this.$u?"UTC":"");switch(M){case j:return V?F(1,0):F(31,11);case h:return V?F(1,L):F(0,L+1);case d:var de=this.$locale().weekStart||0,se=(q<de?q+7:q)-de;return F(V?K-se:K+(6-se),L);case s:case A:return k(z+"Hours",0);case u:return k(z+"Minutes",1);case i:return k(z+"Seconds",2);case c:return k(z+"Milliseconds",3);default:return this.clone()}},I.endOf=function(g){return this.startOf(g,!1)},I.$set=function(g,S){var w,V=m.p(g),M="set"+(this.$u?"UTC":""),F=(w={},w[s]=M+"Date",w[A]=M+"Date",w[h]=M+"Month",w[j]=M+"FullYear",w[u]=M+"Hours",w[i]=M+"Minutes",w[c]=M+"Seconds",w[o]=M+"Milliseconds",w)[V],k=V===s?this.$D+(S-this.$W):S;if(V===h||V===j){var q=this.clone().set(A,1);q.$d[F](k),q.init(),this.$d=q.set(A,Math.min(this.$D,q.daysInMonth())).$d}else F&&this.$d[F](k);return this.init(),this},I.set=function(g,S){return this.clone().$set(g,S)},I.get=function(g){return this[m.p(g)]()},I.add=function(g,S){var w,V=this;g=Number(g);var M=m.p(S),F=function(L){var K=P(V);return m.w(K.date(K.date()+Math.round(L*g)),V)};if(M===h)return this.set(h,this.$M+g);if(M===j)return this.set(j,this.$y+g);if(M===s)return F(1);if(M===d)return F(7);var k=(w={},w[i]=n,w[u]=l,w[c]=r,w)[M]||1,q=this.$d.getTime()+g*k;return m.w(q,this)},I.subtract=function(g,S){return this.add(-1*g,S)},I.format=function(g){var S=this,w=this.$locale();if(!this.isValid())return w.invalidDate||E;var V=g||"YYYY-MM-DDTHH:mm:ssZ",M=m.z(this),F=this.$H,k=this.$m,q=this.$M,L=w.weekdays,K=w.months,z=function(U,fe,ye,be){return U&&(U[fe]||U(S,V))||ye[fe].slice(0,be)},de=function(U){return m.s(F%12||12,U,"0")},se=w.meridiem||function(U,fe,ye){var be=U<12?"AM":"PM";return ye?be.toLowerCase():be},te={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:m.s(q+1,2,"0"),MMM:z(w.monthsShort,q,K,3),MMMM:z(K,q),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:z(w.weekdaysMin,this.$W,L,2),ddd:z(w.weekdaysShort,this.$W,L,3),dddd:L[this.$W],H:String(F),HH:m.s(F,2,"0"),h:de(1),hh:de(2),a:se(F,k,!0),A:se(F,k,!1),m:String(k),mm:m.s(k,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:M};return V.replace(N,function(U,fe){return fe||te[U]||M.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(g,S,w){var V,M=m.p(S),F=P(g),k=(F.utcOffset()-this.utcOffset())*n,q=this-F,L=m.m(this,F);return L=(V={},V[j]=L/12,V[h]=L,V[v]=L/3,V[d]=(q-k)/6048e5,V[s]=(q-k)/864e5,V[u]=q/l,V[i]=q/n,V[c]=q/r,V)[M]||q,w?L:m.a(L)},I.daysInMonth=function(){return this.endOf(h).$D},I.$locale=function(){return $[this.$L]},I.locale=function(g,S){if(!g)return this.$L;var w=this.clone(),V=O(g,S,!0);return V&&(w.$L=V),w},I.clone=function(){return m.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},C}(),B=D.prototype;return P.prototype=B,[["$ms",o],["$s",c],["$m",i],["$H",u],["$W",s],["$M",h],["$y",j],["$D",A]].forEach(function(C){B[C[1]]=function(I){return this.$g(I,C[0],C[1])}}),P.extend=function(C,I){return C.$i||(C(I,D,P),C.$i=!0),P},P.locale=O,P.isDayjs=T,P.unix=function(C){return P(1e3*C)},P.en=$[b],P.Ls=$,P.p={},P})})(cr);const we=cr.exports;var fr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,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?/,c=/\d*[^-_:/,()\s\d]+/,i={},u=function(E){return(E=+E)+(E>68?1900:2e3)},s=function(E){return function(y){this[E]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var N=y.match(/([+-]|\d\d)/g),R=60*N[1]+(+N[2]||0);return R===0?0:N[0]==="+"?-R:R}(E)}],h=function(E){var y=i[E];return y&&(y.indexOf?y:y.s.concat(y.f))},v=function(E,y){var N,R=i.meridiem;if(R){for(var x=1;x<=24;x+=1)if(E.indexOf(R(x,0,y))>-1){N=x>12;break}}else N=E===(y?"pm":"PM");return N},j={A:[c,function(E){this.afternoon=v(E,!1)}],a:[c,function(E){this.afternoon=v(E,!0)}],S:[/\d/,function(E){this.milliseconds=100*+E}],SS:[l,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[l,s("day")],Do:[c,function(E){var y=i.ordinal,N=E.match(/\d+/);if(this.day=N[0],y)for(var R=1;R<=31;R+=1)y(R).replace(/\[|\]/g,"")===E&&(this.day=R)}],M:[o,s("month")],MM:[l,s("month")],MMM:[c,function(E){var y=h("months"),N=(h("monthsShort")||y.map(function(R){return R.slice(0,3)})).indexOf(E)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[c,function(E){var y=h("months").indexOf(E)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,s("year")],YY:[l,function(E){this.year=u(E)}],YYYY:[/\d{4}/,s("year")],Z:d,ZZ:d};function A(E){var y,N;y=E,N=i&&i.formats;for(var R=(E=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,m,D){var B=D&&D.toUpperCase();return m||N[D]||r[D]||N[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,I,g){return I||g.slice(1)})})).match(n),x=R.length,p=0;p<x;p+=1){var b=R[p],$=j[b],T=$&&$[0],O=$&&$[1];R[p]=O?{regex:T,parser:O}:b.replace(/^\[|\]$/g,"")}return function(P){for(var m={},D=0,B=0;D<x;D+=1){var C=R[D];if(typeof C=="string")B+=C.length;else{var I=C.regex,g=C.parser,S=P.slice(B),w=I.exec(S)[0];g.call(m,w),P=P.replace(w,"")}}return function(V){var M=V.afternoon;if(M!==void 0){var F=V.hours;M?F<12&&(V.hours+=12):F===12&&(V.hours=0),delete V.afternoon}}(m),m}}return function(E,y,N){N.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(u=E.parseTwoDigitYear);var R=y.prototype,x=R.parse;R.parse=function(p){var b=p.date,$=p.utc,T=p.args;this.$u=$;var O=T[1];if(typeof O=="string"){var P=T[2]===!0,m=T[3]===!0,D=P||m,B=T[2];m&&(B=T[2]),i=this.$locale(),!P&&B&&(i=N.Ls[B]),this.$d=function(S,w,V){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*S);var M=A(w)(S),F=M.year,k=M.month,q=M.day,L=M.hours,K=M.minutes,z=M.seconds,de=M.milliseconds,se=M.zone,te=new Date,U=q||(F||k?1:te.getDate()),fe=F||te.getFullYear(),ye=0;F&&!k||(ye=k>0?k-1:te.getMonth());var be=L||0,ft=K||0,dt=z||0,ht=de||0;return se?new Date(Date.UTC(fe,ye,U,be,ft,dt,ht+60*se.offset*1e3)):V?new Date(Date.UTC(fe,ye,U,be,ft,dt,ht)):new Date(fe,ye,U,be,ft,dt,ht)}catch{return new Date("")}}(b,O,$),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),D&&b!=this.format(O)&&(this.$d=new Date("")),i={}}else if(O instanceof Array)for(var C=O.length,I=1;I<=C;I+=1){T[1]=O[I-1];var g=N.apply(this,T);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}I===C&&(this.$d=new Date(""))}else x.call(this,p)}}})})(fr);const So=fr.exports;var dr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){var o=n.prototype,c=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],s=i%100;return"["+i+(u[(s-20)%10]||u[s]||u[0])+"]"},o.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return c.bind(this)(i);var d=this.$utils(),h=(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 s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return d.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 c.bind(this)(h)}}})})(dr);const wo=dr.exports;var hr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){var o=n.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},i=function(h,v,j,A,E){var y=h.name?h:h.$locale(),N=c(y[v]),R=c(y[j]),x=N||R.map(function(b){return b.slice(0,A)});if(!E)return x;var p=y.weekStart;return x.map(function(b,$){return x[($+(p||0))%7]})},u=function(){return l.Ls[l.locale()]},s=function(h,v){return h.formats[v]||function(j){return j.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,E,y){return E||y.slice(1)})}(h.formats[v.toUpperCase()])},d=function(){var h=this;return{months:function(v){return v?v.format("MMMM"):i(h,"months")},monthsShort:function(v){return v?v.format("MMM"):i(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(h,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(h,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return s(h.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return d.bind(this)()},l.localeData=function(){var h=u();return{firstDayOfWeek:function(){return h.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 s(h,v)},meridiem:h.meridiem,ordinal:h.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(h){return i(u(),"weekdays",null,null,h)},l.weekdaysShort=function(h){return i(u(),"weekdaysShort","weekdays",3,h)},l.weekdaysMin=function(h){return i(u(),"weekdaysMin","weekdays",2,h)}}})})(hr);const Eo=hr.exports;var mr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r="week",n="year";return function(l,o,c){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 s=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=c(this).startOf(n).add(1,n).date(s),h=c(this).endOf(r);if(d.isBefore(h))return 1}var v=c(this).startOf(n).date(s).startOf(r).subtract(1,"millisecond"),j=this.diff(v,r,!0);return j<0?c(this).startOf("week").week():Math.ceil(j)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(mr);const Po=mr.exports;var gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),c=this.year();return o===1&&l===11?c+1:l===0&&o>=52?c-1:c}}})})(gr);const Oo=gr.exports;var pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){n.prototype.dayOfYear=function(o){var c=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?c:this.add(o-c,"day")}}})})(pr);const Co=pr.exports;var yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(yr);const Vo=yr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(br);const No=br.exports;we.extend(Eo);we.extend(wo);we.extend(So);we.extend(Po);we.extend(Oo);we.extend(Co);we.extend(Vo);we.extend(No);const To=[An,In,Rn,jn,Dn,le,Bn,_n,ct,Ln,Gn,Wn,Yn,Un,Zn,Jn,Qn,tr,nr,lr,or,ir,sr,ur,et,Dt],Ao=new Gr(To,[Ur],"4.0.0");Object.defineProperty(exports,"clone",{enumerable:!0,get:()=>_.clone});Object.defineProperty(exports,"extend",{enumerable:!0,get:()=>_.extend});Object.defineProperty(exports,"isArray",{enumerable:!0,get:()=>_.isArray});Object.defineProperty(exports,"isDate",{enumerable:!0,get:()=>_.isDate});Object.defineProperty(exports,"isESModule",{enumerable:!0,get:()=>_.isESModule});Object.defineProperty(exports,"isEqual",{enumerable:!0,get:()=>_.isEqual});Object.defineProperty(exports,"isFunction",{enumerable:!0,get:()=>_.isFunction});Object.defineProperty(exports,"isMap",{enumerable:!0,get:()=>_.isMap});Object.defineProperty(exports,"isObject",{enumerable:!0,get:()=>_.isObject});Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:()=>_.isPlainObject});Object.defineProperty(exports,"isPromise",{enumerable:!0,get:()=>_.isPromise});Object.defineProperty(exports,"isSet",{enumerable:!0,get:()=>_.isSet});Object.defineProperty(exports,"isString",{enumerable:!0,get:()=>_.isString});Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:()=>_.isSymbol});Object.defineProperty(exports,"toBoolean",{enumerable:!0,get:()=>_.toBoolean});Object.defineProperty(exports,"toNumber",{enumerable:!0,get:()=>_.toNumber});Object.defineProperty(exports,"toTypeString",{enumerable:!0,get:()=>_.toTypeString});Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>f.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>f.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>f.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>f.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>f.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>f.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>f.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>f.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>f.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>f.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>f.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>f.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>f.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>f.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>f.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>f.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>f.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>f.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>f.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>f.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>f.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>f.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>f.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>f.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>f.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>f.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>f.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>f.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>f.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>f.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>f.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>f.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>f.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>f.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>f.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>f.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>f.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>f.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>f.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>f.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>f.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>f.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>f.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>f.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>f.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>f.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>f.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>f.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>f.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>f.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>f.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>f.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>f.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>f.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>f.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>f.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>f.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>f.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>f.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>f.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>f.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>f.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>f.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>f.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>f.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>f.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>f.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>f.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>f.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>f.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>f.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>f.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>f.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>f.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>f.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>f.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>f.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>f.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>f.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>f.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>f.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>f.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>f.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>f.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>f.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>f.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>f.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>f.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>f.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>f.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>f.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>f.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>f.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>f.ElUpload});exports.AutocompleteItem=Qn;exports.Broadcast=It;exports.BroadcastKey=X;exports.CascaderItem=Jn;exports.CheckboxItem=or;exports.Content=jn;exports.DataItemsKey=Ne;exports.DateItem=Wn;exports.DialogItem=ur;exports.Domain=jt;exports.DomainKey=ve;exports.FooterBar=Rn;exports.Group=Dn;exports.HeaderBar=In;exports.HintText=ct;exports.InputItem=Ln;exports.Item=le;exports.Mapping=Dt;exports.MoneyItem=Zn;exports.Page=An;exports.Price=et;exports.PriorityPolicy=Ze;exports.RadioItem=lr;exports.RateItem=ir;exports.RowItem=_n;exports.SelectItem=Gn;exports.SlotItem=Bn;exports.SwitchItem=sr;exports.TableItem=nr;exports.TableMappingColumn=tr;exports.TimeItem=Yn;exports.TimeSelectItem=Un;exports.UniqueID=kn;exports.ValidateSchema=wn;exports.ValidateSchemaKey=me;exports.clearNonNumber=wr;exports.compareTo=wt;exports.createBroadcast=nt;exports.createValidateSchema=rt;exports.debounce=Fr;exports.decimalLength=yn;exports.default=Ao;exports.defineBroadcast=Vr;exports.defineDataItem=En;exports.defineDomain=Mt;exports.defineItem=re;exports.definePageState=Pn;exports.deleteGlobalValidator=Ir;exports.disabledProperty=ce;exports.divide=Tt;exports.excludeProps=ae;exports.floatData=Cr;exports.getGlobalValidateCheckEvents=xn;exports.getGlobalValidateResetEvents=Sn;exports.getPageContentAreaHeight=Ye;exports.getPageContentAreaWidth=Ue;exports.getPageFooterAreaHeight=ot;exports.getPageHeaderAreaHeight=at;exports.getRootDomain=_e;exports.includeProps=Or;exports.indexOf=Er;exports.integerLength=pn;exports.isBrowser=Ke;exports.isEmptyString=Z;exports.isInnerPage=qr;exports.isNumberString=gn;exports.isRegExp=mn;exports.isSubPage=Br;exports.lastIndexOf=Pr;exports.multiply=fn;exports.negate=dn;exports.numberFormat=At;exports.property=Re;exports.raf=Sr;exports.readonlyProperty=ue;exports.setGlobalValidateCheckEvents=Rr;exports.setGlobalValidateHandler=Tr;exports.setGlobalValidateMessages=Mr;exports.setGlobalValidateResetEvents=jr;exports.setGlobalValidator=Ar;exports.throttle=Rt;exports.toPadding=he;exports.toPx=J;exports.toPxDesc=ne;exports.toValue=W;exports.unNumberFormat=hn;exports.updatePageState=Et;exports.useBroadcast=Be;exports.useDomain=Se;exports.useExpose=ie;exports.usePageState=lt;exports.usePosition=qn;exports.useRect=Qe;exports.valueLength=tt;