@fox-js/foxui-pc 4.0.1-13 → 4.0.1-130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +12172 -7309
- package/dist/index.umd.js +3 -5
- package/dist/locale/index.d.ts +470 -0
- package/dist/locale/index.esm.js +458 -0
- package/dist/locale/index.umd.js +1 -0
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/style.js +3 -0
- package/dist/types/index.d.ts +648 -306
- package/package.json +14 -8
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/dist/types/src/api/index.d.ts +0 -35
- package/dist/types/src/base/component.d.ts +0 -70
- package/dist/types/src/base/index.d.ts +0 -4
- package/dist/types/src/base/plugin.d.ts +0 -2
- package/dist/types/src/components/autocompleteitem/common.d.ts +0 -152
- package/dist/types/src/components/autocompleteitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/cascaderitem/common.d.ts +0 -223
- package/dist/types/src/components/cascaderitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/cascaderitem/model.d.ts +0 -70
- package/dist/types/src/components/cascaderitem/types.d.ts +0 -26
- package/dist/types/src/components/checkboxitem/common.d.ts +0 -181
- package/dist/types/src/components/checkboxitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/checkboxitem/model.d.ts +0 -63
- package/dist/types/src/components/checkboxitem/types.d.ts +0 -33
- package/dist/types/src/components/content/common.d.ts +0 -16
- package/dist/types/src/components/content/index.vue.d.ts +0 -3
- package/dist/types/src/components/dateitem/common.d.ts +0 -152
- package/dist/types/src/components/dateitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/dialogitem/common.d.ts +0 -27
- package/dist/types/src/components/dialogitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/exticon/index.vue.d.ts +0 -3
- package/dist/types/src/components/footerbar/common.d.ts +0 -26
- package/dist/types/src/components/footerbar/index.vue.d.ts +0 -3
- package/dist/types/src/components/footerbar/type.d.ts +0 -1
- package/dist/types/src/components/group/commons.d.ts +0 -122
- package/dist/types/src/components/group/group-props.d.ts +0 -97
- package/dist/types/src/components/group/index.vue.d.ts +0 -3
- package/dist/types/src/components/headerbar/common.d.ts +0 -80
- package/dist/types/src/components/headerbar/index.vue.d.ts +0 -3
- package/dist/types/src/components/headerbar/types.d.ts +0 -5
- package/dist/types/src/components/hinttext/index.d.ts +0 -27
- package/dist/types/src/components/hinttext/index.vue.d.ts +0 -3
- package/dist/types/src/components/indicator/common.d.ts +0 -19
- package/dist/types/src/components/indicator/index.vue.d.ts +0 -3
- package/dist/types/src/components/indicator/types.d.ts +0 -1
- package/dist/types/src/components/inputitem/common.d.ts +0 -176
- package/dist/types/src/components/inputitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/inputnumberitem/common.d.ts +0 -176
- package/dist/types/src/components/inputnumberitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/item/common.d.ts +0 -137
- package/dist/types/src/components/item/index.vue.d.ts +0 -3
- package/dist/types/src/components/mapping/common.d.ts +0 -105
- package/dist/types/src/components/mapping/index.vue.d.ts +0 -3
- package/dist/types/src/components/mapping/model.d.ts +0 -28
- package/dist/types/src/components/mapping/types.d.ts +0 -17
- package/dist/types/src/components/moneyitem/common.d.ts +0 -300
- package/dist/types/src/components/moneyitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/moneyitem/util.d.ts +0 -51
- package/dist/types/src/components/page/common.d.ts +0 -120
- package/dist/types/src/components/page/index.vue.d.ts +0 -3
- package/dist/types/src/components/price/index.vue.d.ts +0 -3
- package/dist/types/src/components/price/price-props.d.ts +0 -37
- package/dist/types/src/components/radioitem/common.d.ts +0 -173
- package/dist/types/src/components/radioitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/radioitem/model.d.ts +0 -63
- package/dist/types/src/components/radioitem/types.d.ts +0 -33
- package/dist/types/src/components/rateitem/common.d.ts +0 -136
- package/dist/types/src/components/rateitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/rowitem/common.d.ts +0 -38
- package/dist/types/src/components/rowitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/selectitem/common.d.ts +0 -239
- package/dist/types/src/components/selectitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/selectitem/model.d.ts +0 -70
- package/dist/types/src/components/selectitem/types.d.ts +0 -26
- package/dist/types/src/components/slotitem/common.d.ts +0 -21
- package/dist/types/src/components/slotitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/switchitem/common.d.ts +0 -136
- package/dist/types/src/components/switchitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/tableitem/common.d.ts +0 -230
- package/dist/types/src/components/tableitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/tableitem/model.d.ts +0 -27
- package/dist/types/src/components/tableitem/types.d.ts +0 -19
- package/dist/types/src/components/tablemappingcolumn/common.d.ts +0 -56
- package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +0 -3
- package/dist/types/src/components/timeitem/common.d.ts +0 -152
- package/dist/types/src/components/timeitem/index.vue.d.ts +0 -3
- package/dist/types/src/components/timeselectitem/common.d.ts +0 -152
- package/dist/types/src/components/timeselectitem/index.vue.d.ts +0 -3
- package/dist/types/src/foxui.vue.build.d.ts +0 -137
- package/dist/types/src/interface.d.ts +0 -83
- package/dist/types/src/main.d.ts +0 -81
- package/dist/types/src/utils/commons.d.ts +0 -220
- package/dist/types/src/utils/create/component.d.ts +0 -18
- package/dist/types/src/utils/create/index.d.ts +0 -1
- package/dist/types/src/utils/date.d.ts +0 -76
- package/dist/types/src/utils/domain/broadcast.d.ts +0 -116
- package/dist/types/src/utils/domain/domain.d.ts +0 -146
- package/dist/types/src/utils/domain/events.d.ts +0 -51
- package/dist/types/src/utils/domain/group.d.ts +0 -61
- package/dist/types/src/utils/domain/index.d.ts +0 -5
- package/dist/types/src/utils/domain/item.d.ts +0 -45
- package/dist/types/src/utils/domain/page.d.ts +0 -113
- package/dist/types/src/utils/domain/types.d.ts +0 -5
- package/dist/types/src/utils/domain/validator.d.ts +0 -230
- package/dist/types/src/utils/functions.d.ts +0 -20
- package/dist/types/src/utils/px.d.ts +0 -13
- package/dist/types/src/utils/unique-id.d.ts +0 -16
- package/dist/types/src/utils/use-expose/index.d.ts +0 -6
- package/dist/types/src/utils/use-position/index.d.ts +0 -14
- package/dist/types/src/utils/use-rect/index.d.ts +0 -20
- package/dist/types/src/utils/use-touch/index.d.ts +0 -21
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*//*!
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function ct(e,t="0"){let r=0,a=-1;e[0]=="-"&&(r++,a=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,a=2,t=t.substring(1),t.length),e=fe(e),t=fe(t),[e,t]=Bt(fe(e),fe(t)),r==1&&(a==1?e=Ot(e):t=Ot(t));let l=Nn(e,t);return r?r==2?"-"+fe(l):e.length<l.length?fe(l.substring(1)):"-"+fe(Ot(l)):fe(l)}function Ot(e){let t="",r=e.length,a=e.split(".")[1],l=a?a.length:0;for(let i=0;i<r;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return Nn(t,o)}function fe(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 Bt(e,t){let r=e.split("."),a=t.split("."),l=r[0].length,o=a[0].length;return l>o?a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=a[1]?a[1].length:0,(l||o)&&(l>o?a[1]=(a[1]?a[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=a[0]+(a[1]?"."+a[1]:""),[e,t]}function Nn(e,t){[e,t]=Bt(e,t);let r="",a=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+a;r=o%10+r,a=Math.floor(o/10)}return a?a.toString()+r:r}var ne=(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))(ne||{});function Ue(e,t=0,r=ne.HALF_EVEN){if(r===ne.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let a=!1;e[0]==="-"&&(a=!0,e=e.substring(1));let l=e.split("."),o=l[0],i=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let c=o.substr(0,o.length-t);return e=c+"."+o.substr(o.length-t)+i,c=Ue(e,0,r),(a?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return o.length,In(l[1],o,a,r)?(a?"-":"")+Rt(o):(a?"-":"")+o;if(l[1]){if(l[1].length<t)return(a?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(a?"-":"")+o+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let u=l[1].substring(t);return u&&In(u,i,a,r)&&(i=Rt(i),i.length>t)?(a?"-":"")+Rt(o,parseInt(i[0]))+"."+i.substring(1):(a?"-":"")+o+"."+i}function In(e,t,r,a){if(!e||e===new Array(e.length+1).join("0")||a===ne.DOWN||!r&&a===ne.FLOOR||r&&a===ne.CEILING)return!1;if(a===ne.UP||r&&a===ne.FLOOR||!r&&a===ne.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(a){case ne.HALF_DOWN:return!1;case ne.HALF_UP:return!0;case ne.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,a="";for(let l=r;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,a+=o}return t&&(a+=t),a.split("").reverse().join("")}function Mt(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=Xe(e),t=Xe(t);let a=0,l=0;e.indexOf(".")!=-1&&(a=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=a+l;if(e=Xe(e.replace(".","")),t=Xe(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,u=0,c=[],h=i-1,f="";for(let d=0;d<i;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let S=0;for(let R=t.length-1;R>=h&&R>=0;R--)c[R]>-1&&c[R]<e.length&&(S+=parseInt(e[c[R]--])*parseInt(t[R]));S+=u,u=Math.floor(S/10),f=S%10+f,h--}return f=Xe(jr(f,o)),r==1&&(f="-"+f),f}function jr(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 Xe(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 jt(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 a=0;t[0]=="-"&&(t=t.substring(1),a++),e[0]=="-"&&(e=e.substring(1),a++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=fe(t.replace(".","")),l>=0){let h=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(h==-1)e=fe(e+new Array(l+1).join("0"));else if(l>h)e=e.replace(".",""),e=fe(e+new Array(l-h+1).join("0"));else if(l<h){e=e.replace(".","");let f=e.length-h+l;e=fe(e.substring(0,f)+"."+e.substring(f))}else l==h&&(e=fe(e.replace(".","")))}let o=0,i=t.length,u="",c=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),c.indexOf(".")>-1){let h=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(h+=i-c.length,c=c+new Array(i-c.length+1).join("0")),o=h,u="0."+new Array(h).join("0")}for(r=r+2;o<=r;){let h=0;for(;parseInt(c)>=parseInt(t);)c=ct(c,"-"+t),h++;u+=h,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,c=c+"0")}return(a==1?"-":"")+fe(Ue(u,r-2))}function Pt(e,t){return e=e.toString(),t=t.toString(),t=Ft(t),ct(e,t)}function Ft(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function An(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),On(e),On(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let a=Pt(e,Mt(t,Ue(jt(e,t),0,ne.FLOOR)));return r+a}function On(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Bn(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]=Bt(e,t),e.localeCompare(t)==0)return 0;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return e[a]>t[a]?r?-1:1:r?1:-1;return 0}class G{value;static RoundingModes=ne;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,a]=t.split(/[eE]/);r=fe(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(a=parseInt(a)+r.indexOf("."),r=r.replace(".","")):a=parseInt(a)+r.length,r.length<a?t=l+r+new Array(a-r.length+1).join("0"):r.length>=a&&a>0?t=l+fe(r.substring(0,a))+(r.length>a?"."+r.substring(a):""):t=l+"0."+new Array(-a+1).join("0")+r}return t}constructor(t="0"){this.value=G.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,a){if(!(r||a))r=3,a=",";else if(!(r&&a))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=G.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var i="",u=o;u>0;)u<r?(r=u,u=0):u-=r,i=t.substring(u,u+r)+(u<o-r&&u>=0?a:"")+i;return(l?"-":"")+i+t.substring(o)}getPrettyValue(t,r){return G.getPrettyValue(this.value,t,r)}static round(t,r=0,a=ne.HALF_EVEN){if(t=G.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Ue(t,r,a)}round(t=0,r=ne.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new G(Ue(this.value,t,r))}static floor(t){return t=G.validate(t),t.indexOf(".")===-1?t:G.round(t,0,ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new G(this.value):new G(this.value).round(0,ne.FLOOR)}static ceil(t){return t=G.validate(t),t.indexOf(".")===-1?t:G.round(t,0,ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new G(this.value):new G(this.value).round(0,ne.CEILING)}static add(t,r){return t=G.validate(t),r=G.validate(r),ct(t,r)}add(t){return new G(ct(this.value,t.getValue()))}static subtract(t,r){return t=G.validate(t),r=G.validate(r),Pt(t,r)}subtract(t){return new G(Pt(this.value,t.getValue()))}static multiply(t,r){return t=G.validate(t),r=G.validate(r),Mt(t,r)}multiply(t){return new G(Mt(this.value,t.getValue()))}static divide(t,r,a){return t=G.validate(t),r=G.validate(r),jt(t,r,a)}divide(t,r){return new G(jt(this.value,t.getValue(),r))}static modulus(t,r){return t=G.validate(t),r=G.validate(r),An(t,r)}modulus(t){return new G(An(this.value,t.getValue()))}static compareTo(t,r){return t=G.validate(t),r=G.validate(r),Bn(t,r)}compareTo(t){return Bn(this.value,t.getValue())}static negate(t){return t=G.validate(t),Ft(t)}negate(){return new G(Ft(this.value))}}function Rn(e,t){return G.multiply(`${e}`,`${t}`)}function Lt(e,t,r=8){return G.divide(`${e}`,`${t}`,r)}function qt(e,t){return e=`${e}`,t=`${t}`,G.compareTo(e,t)}function Mn(e){return G.negate(e)}function Ht(e,t=-1,r=!1,a=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let u=o,c="",h=o.indexOf(".");h!=-1&&(u=o.substring(0,h),c=o.substring(h+1)),t!=-1&&(t<c.length?c=c.substring(0,t):r&&t>c.length&&(c=c.padEnd(t,"0")));let f;if(a>0){let d="",S=u.split("").reverse();for(let R=0;R<S.length;R++)d+=S[R]+((R+1)%a==0&&R+1!=S.length?l:"");c.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${c}`}else c.length==0?f=`${i}${u}`:f=`${i}${u}.${c}`;return f}function jn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let a=t.replace(/[^\d\.-]/g,"");return`${r}${a}`}const Pr=Array.isArray,Fr=e=>ut(e)==="[object Map]",Lr=e=>ut(e)==="[object Set]",Ce=e=>e instanceof Date,zt=e=>typeof e=="function",qr=e=>typeof e=="string",Hr=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",zr=e=>ve(e)&&zt(e.then)&&zt(e.catch),Pn=Object.prototype.toString,ut=e=>Pn.call(e),_t=e=>ut(e)==="[object Object]",Fn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function _r(e){return e.__esModule||Fn&&e[Symbol.toStringTag]==="Module"}const Kr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Me(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,a=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<a;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let i in o){let u=t[i],c=o[i];if(u!==c)if(l===!0&&c&&typeof c=="object"){let h;Array.isArray(c)?h=u&&Array.isArray(u)?u:[]:h=u&&typeof u=="object"?u:{},t[i]=Me(l,h,c)}else c!==void 0&&(t[i]=c)}}return t}function Kt(e,t,r=!1){if(!r)Me(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!_t(i))continue;o=Kt(o,i,r),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}const a=Object.getOwnPropertySymbols(t);for(let l of a){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!_t(i))continue;o=Kt(o,i,r),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}}return e}const Yt=Kr?Promise.resolve():null;function Yr(e,...t){Yt!==null?t&&t.length>0?Yt.then(()=>{e(t)}):Yt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ie(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function X(e){return typeof e=="number"?e:Number(e)}const Wr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function ft(e){let r=Object.prototype.toString.call(e);return e==null?String(e):Wr[r]||"object"}function Ln(e){return e&&typeof e=="object"&&"setInterval"in e}function qn(e){let t=!!e&&"length"in e&&e.length,r=ft(e);return r==="function"||Ln(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Hn(e,t){let r=+t.length,a=0,l=e.length;for(;a<r;a++)e[l++]=t[a];return e.length=l,e}function Gr(e,t=[]){let r=t;return e!=null&&(qn(Object(e))?Hn(r,typeof e=="string"?[e]:e):r.push(e)),r}function Ne(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=ft(e),a=ft(t);if(r!==a)return!1;if(r==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let i=0;i<l.length;i++){let u=l[i],c=e[u],h=t[u];if(!Ne(c,h))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],i=t[l];if(!Ne(o,i))return!1}return!0}return!1}const Ze=typeof window<"u",zn=Ze&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function _n(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const se=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Kn(e){return se(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),se(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Yn(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 Wn(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 Gn(e,t,r){const a=e.indexOf(t);return a===-1?e:t==="-"&&a!==0?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(r,"")}function Ur(e,t=!0,r=!0){t?e=Gn(e,".",/\./g):e=e.replace(/\./g,""),r?e=Gn(e,"-",/-/g):e=e.replace(/-/,"");const a=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(a,"")}function Xr(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ne(e,r))return!0}):t.indexOf(e)}function Zr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(a=>{if(Ne(e,a))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function dt(e,...t){const r={};return t.forEach(a=>{for(const l in a)r[l]=e[l]}),r}function de(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const a={};for(const l in e)r.includes(l)||(a[l]=e[l]);return a}const Jr=(e,t,r)=>{const a=Object.assign({},e),l=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(a).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(a[o]=t[l[o]]):t[o]&&(a[o]=t[o])}),a):e},le=Symbol("BroadcastKey");class Wt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,a){this.parent=t,this.proxy=r,this.name=a,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(a=>t===a);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...a){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="*"):_n(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 i=this.callbacks.get(r);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...a]);c!=null&&o.push(c)}const u=this.proxy??{};if(typeof u[r]=="function"){const c=Reflect.apply(u[r],u,[...a]);c!=null&&o.push(c)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},r,...a]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),o}emitToChildren(t,r,...a){const l=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},r,...a]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,r){this.callbacks.set(t,r)}}function ht(e,t,r,a){const l=new Wt(t,e,r);if(a&&typeof a=="object")for(const o in a)l.on(o,a[o]);return l}function Qr(e,t,r){const a=r;if(a[le])return a[le];const l=n.inject(le,null),o=new Wt(l,r,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return a[le]=o,n.provide(le,o),n.onUnmounted(()=>{o.destroy(),a[le]=void 0}),o}function Je(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[le]??n.inject(le,null):n.inject(le,null)}class el{error(t,r){const a=r,l=Je(r);l?l.emit({name:"*"},"setErrorTip",t):typeof a.setErrorTip=="function"&&a.setErrorTip(t)}reset(t){const r=t,a=Je(t);a?a.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,a=Je(t);a?a.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,a){Array.isArray(t)||(t=[t]);const l=a,o=Je(a),i=r.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),u=t.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&u?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(a))}getValue(t){return t.modelValue}}let Un=new el;function tl(e){Un=e}function nl(e,t){Re.setValidator(e,t)}function al(e){Re.deleteValidator(e)}let Xn=["blur","clear"];function rl(e){Xn=e}function Zn(){return Xn}let Jn=["focus","change"];function ll(e){Jn=e}function Qn(){return Jn}function ol(e){Re.messages(e)}function Qe(...e){const t=[];return e.forEach(r=>{r.forEach(a=>{const l=t.findIndex(o=>o.type===a.type);l!==-1&&t.splice(l,1),t.push(a)})}),t}function mt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const xe=Symbol("ValidateSchemaKey");class ea{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,a){this.parent=t,this.descriptor=r,this.proxy=a,(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=n.effectScope(),this.scope.run(()=>{n.watchEffect(()=>{const r=mt(Qe(this.attrRules,this.rules)),a=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let c={type:o};i!==null&&typeof i=="object"&&Object.assign(c,i),a.push(c);continue}let u=this.getValidator(o);if(u!==null){let c={type:o,validator:u};a.push(c)}}this.attrRules=mt(a);const l=Qe(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const a=this.descriptor.validateHandler;if(a&&typeof a[t]=="function")return Reflect.apply(a[t],a,[...r]);const l=Un;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,a=!1){a?Re.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?Re.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Re.hasValidator(t);{let a=Reflect.has(this.validators,t);return!a&&this.parent!==null&&(a=this.parent.hasValidator(t,!1)),a}}setRule(t){const r=Qe(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=mt(t):this.rules=mt([t]);const a=Qe(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(a,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Qe(this.attrRules,this.rules);const a=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${a}`]:r},o=this.getValue(),i={[`${a}`]:o},u=new Re(l),c=this.proxy??i;return u.validate(i,{context:c}).then(f=>{if(f.pass)this.success();else{let d="error";Array.isArray(f.errors)&&f.errors.length>0&&(d=f.errors[0].message??d,f.errors=[f.errors[0]],f.errors[0].ref=c),this.error(d)}return f}).catch(f=>{const d=f.message??`${f}`;return this.error(d),f})}}return Promise.resolve({pass:!0})}}function gt(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 ea(t,r,e)}const ta=Symbol("EventEmitterKey");class il{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let a=this.register.get(t);if(a&&Array.isArray(a)){let l=a.findIndex(o=>o===r);l!==-1&&a.splice(l,1)}}on(t,r){let a=this.register.get(t);a||(a=new Array,this.register.set(t,a)),a.push(r)}emit(t,...r){const a=this.register.get(t);a&&a.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 sl(e,t){let r=0;return function(...a){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...a]),r=l)}}function Gt(e,t){let r,a=null;return function(...l){a=l,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...a??[]])},t))}}const Ie=Symbol("DomainKey"),Le=Symbol("DataItemsKey");class Ut{_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=n.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const a in t){const l=t[a];r.length>0&&r.indexOf(l)!==-1||(this._props[a]=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 a=this._props[t];if(a!=null)return a}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 a=this;for(;a!=null;){if(Reflect.has(a._props,t)){const l=a._props[t];r.push(l)}a=a._parent}return r}}const cl=new Ut;function et(){return cl}function Ae(e=null){e||(e=n.getCurrentInstance());const t=e?.proxy;return t?t[Ie]??n.inject(Ie,null):n.inject(Ie,null)}const Xt=Symbol("OriginalDateKey");function Zt(e,t,r=[],a){const l=n.getCurrentInstance(),o=l?.proxy;let i=n.inject(Ie,null);i===null&&(i=et());const u=e||t.prop||t.name,c=new Ut(u);c.parent=i;const h=p=>{o[Xt]||S(p),c.set("modelValue",p)},f=()=>c.getForSelf("modelValue")??null,d=()=>o[Xt]??null,S=p=>{const O={};Me(!0,O,n.toRaw(p)),o[Xt]=O};n.isReactive(t)?n.watchEffect(()=>{c.merge(t,r)}):c.merge(t,r),t.modelValue&&S(t.modelValue),o[Ie]=c,n.provide(Ie,c);let R=null,T=null;if(l!==null){const p=n.inject(le,null);R=ht(o,p,u,a),c.broadcast=R,o[le]=R,n.provide(le,R),o.broadcast=(s,g,...v)=>Reflect.apply(R.emit,R,[s,g,...v]);const O=n.inject(xe,null);T=gt(o,O,{componentName:""}),c.validateSchema=T,o[xe]=T,n.provide(xe,T),o[Le]=new Map,o.validate=(s=!0)=>{const g=[];let v=null;if(s===!0)v={name:"*"};else if(Array.isArray(s)&&s.length>0){const x=s;v={name:w=>w?x.indexOf(w)!==-1:!1}}else if(s!=null&&typeof s=="object"){const x=s;if(Array.isArray(x.include)&&x.include.length>0){const w=x.include;v={name:D=>D?w.indexOf(D)!==-1:!1}}else if(Array.isArray(x.exclude)&&x.exclude.length>0){const w=x.exclude;v={name:D=>D?w.indexOf(D)===-1:!1}}}if(v){const x=R?.emitToChildren(v,"validate",!1);x&&Reflect.apply([].push,g,x)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(x=>{let w=[];return x.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(w=[...w,...D.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(s,g=!0)=>{if(g){const v=Reflect.ownKeys(s),x=[...v],w={name:D=>{const b=v.includes(D);if(b){const C=x.findIndex(B=>D===B);C!==-1&&x.splice(C,1)}return b}};R?.emitToChildren(w,"setNameValidateRules",s,!1),x.length>0&&x.forEach(D=>{let b=String(D);const B=na(c,b,{componentName:"",fieldName:b,pureDataValidate:!0},R,T);o[Le].set(b,B);const N=s[b];N&&B.validateSchema.setRule(N)})}},o.clearValidate=(s=!0)=>{let g=null;if(s===!0)g={name:"*"};else if(Array.isArray(s)&&s.length>0){const v=s;g={name:x=>x?v.indexOf(x)!==-1:!1}}else if(s!=null&&typeof s=="object"){const v=s;if(Array.isArray(v.include)&&v.include.length>0){const x=v.include;g={name:w=>w?x.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const x=v.exclude;g={name:w=>w?x.indexOf(w)===-1:!1}}}g&&R?.emitToChildren(g,"clearValidate",!1)},o.resetFields=s=>{const g=f();if(!g)return;const v={};if(Me(!0,v,d()??{}),Array.isArray(s))s.forEach(x=>{g[x]=v[x]});else if(s&&Array.isArray(s.include))(s.include??[]).forEach(w=>{g[w]=v[w]});else if(s&&Array.isArray(s.exclude)){let x=s.exclude??[];Reflect.ownKeys(v).forEach(w=>{x.includes(w)||(g[w]=v[w])})}else Object.assign(g,v);o.clearValidate(s)},o.setModelValue=(s,g)=>{!g||g===u?h(s):R?.emitToChildren({name:g},"setModelValue",s)},o.getModelValue=()=>f()}return n.onUnmounted(()=>{c.destroy(),o[Ie]=void 0,o[Le]&&(o[Le].clear(),o[Le]=void 0),R!==null&&(R.destroy(),o[le]=void 0),T!==null&&(T.destroy(),o[xe]=void 0)}),c}function ce(e,t,r){const l=n.getCurrentInstance()?.proxy,o=t??"",i=n.inject(le,null),u=ht(l,i,o,r);l[le]=u,n.provide(le,u),l.broadcast=(T,p,...O)=>Reflect.apply(u.emit,u,[T,p,...O]);const c=n.inject(xe,null);e.fieldName=e.fieldName??o;const h=gt(l,c,e);l[xe]=h,n.provide(xe,h),l.validate=(T=null)=>{const p=[];if(!Array.isArray(T)||T.indexOf(o)!==-1){const s=h?.validate();p.push(s)}let O=null;if(T===!0)O={name:"*"};else if(Array.isArray(T)&&T.length>0){const s=T;O={name:g=>g?s.indexOf(g)!==-1:!1}}else if(T!=null&&typeof T=="object"){const s=T;if(Array.isArray(s.include)&&s.include.length>0){const g=s.include;O={name:v=>v?g.indexOf(v)!==-1:!1}}else if(Array.isArray(s.exclude)&&s.exclude.length>0){const g=s.exclude;O={name:v=>v?g.indexOf(v)===-1:!1}}}if(O){const s=u.emitToChildren(O,"validate",!1);Reflect.apply([].push,p,s)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(s=>{let g=[];return s.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(g=[...g,...v.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=T=>h?.setRule(T),l.setNameValidateRules=(T,p=!1)=>{const O=T[o];if(O&&h?.setRule(O),p){const s={name:g=>Reflect.ownKeys(T).includes(g)};u.emitToChildren(s,"setNameValidateRules",T,!1)}},l.clearValidate=(T=null)=>{(!Array.isArray(T)||T.indexOf(t??"")!==-1)&&h?.clear();let p=null;if(T===!0)p={name:"*"};else if(Array.isArray(T)&&T.length>0){const O=T;p={name:s=>s?O.indexOf(s)!==-1:!1}}else if(T!=null&&typeof T=="object"){const O=T;if(Array.isArray(O.include)&&O.include.length>0){const s=O.include;p={name:g=>g?s.indexOf(g)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const s=O.exclude;p={name:g=>g?s.indexOf(g)===-1:!1}}}p&&u.emitToChildren(p,"clearValidate",!1)};const f=new il(l);l[ta]=f;const d=Gt((T="validate")=>{T==="reset"?h.clear():h.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Zn()).forEach(T=>{f.on(T,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Qn()).forEach(T=>{f.on(T,p=>{d("reset")})}),n.onUnmounted(()=>{u.destroy(),l[le]=void 0,h.destroy(),l[xe]=void 0,f.destroy(),l[ta]=void 0}),{broadcast:u,validateSchema:h,emitEvent:(T,...p)=>{Reflect.apply(f.emit,f,[T,...p])},onEvent:(T,p)=>{Reflect.apply(f.on,f,[p])},offEvent:(T,p)=>{Reflect.apply(f.off,f,[p])}}}function na(e,t,r,a,l){const o={},i=t??"";r.fieldName=i,r.validateHandler={getValue(h){const f=e.getForSelf("modelValue");return f?f[i]:null}};const u=gt({},l,r);o.validate=(h=null)=>{const f=[];if(!Array.isArray(h)||h.indexOf(i)!==-1){const S=u?.validate();f.push(S)}let d=null;if(h===!0)d={name:"*"};else if(Array.isArray(h)&&h.length>0){const S=h;d={name:R=>R?S.indexOf(R)!==-1:!1}}else if(h!=null&&typeof h=="object"){const S=h;if(Array.isArray(S.include)&&S.include.length>0){const R=S.include;d={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const R=S.exclude;d={name:T=>T?R.indexOf(T)===-1:!1}}}if(d){const S=c.emitToChildren(d,"validate",!1);Reflect.apply([].push,f,S)}return f.length==1?f[0]:f.length>1?Promise.all(f).then(S=>{let R=[];return S.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(R=[...R,...T.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=h=>u?.setRule(h),o.setNameValidateRules=h=>{const f=h[i];f&&u?.setRule(f)};const c=ht(null,a,i,o);return{broadcast:c,validateSchema:u}}const U=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ee(e,t)}px`:"";function ee(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let l=Number(e.substring(0,r)),o=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(o=Number(i.substring(0,u)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const a=Number(e);return isNaN(a)?0:a}const Oe="PageStateKey";function ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ee(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ee(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ee(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ee(e.right))),t}function Jt(e,t,r={},a=!0,l=-1,o=-1,i=0,u=0){if(e.headerHeight=ee(r.headerHeight??t.headerHeight),e.headerPadding=ke(r.headerPadding??t.headerPadding),e.footerHeight=ee(r.footerHeight??t.footerHeight),e.footerPadding=ke(r.footerPadding??t.footerPadding),e.contentPadding=ke(r.contentPadding??t.contentPadding),a){const c=r.height??t.height;c?e.height=ee(c,o):e.height=ee(o)-ee(i,o)-ee(u,o),e.width=ee(r.width??t.width,l)}}function aa(e,t={}){const r={top:null,left:null,bottom:null,right:null},a={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&&(a.safeAreaTop=ee(l.top),a.safeAreaBottom=ee(l.bottom),a.safeAreaLeft=ee(l.left),a.safeAreaRight=ee(l.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,h=e.get("footerBarHeight")??0;Jt(a,o,t,!0,i,u,c,h);const f=n.reactive(a),d=e.getForParent(Oe);d&&(a.height=St(e,d),a.width=wt(e,d),n.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{f.height=St(e,d),f.width=wt(e,d)}));const S=!d;return n.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([R,T,p=-1,O=-1,s=0,g=0])=>{Jt(f,T,t,S,p,O,s,g)}),e.set(Oe,f),f}function yt(e){return e.get(Oe)}function pt(e,t){return t=t??e.get(Oe),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function bt(e,t){return t=t??e.get(Oe),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function St(e,t){if(t=t??e.get(Oe),t){const r=pt(e,t),a=bt(e,t);return t.height-r-a-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function wt(e,t){return t=t??e.get(Oe),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ul(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function fl(e){return!!e.getForParent(Oe)}var $t=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))($t||{});function Qt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,r=1,a){const l=Ae();return l==null?e:r===0?n.computed(()=>{const o=l.getAll(t);for(let u=o.length-1;u>=0;u--){const c=o[u];if(Qt(c,a))return c}const i=e.value;return Qt(i,a)?i:null}):n.computed(()=>{const o=e.value;return Qt(o,a)?o:l?.get(t)})}function ye(e){return De(e,"readonly",0,function(r){return ie(r)})}function pe(e){return De(e,"disabled",0,function(r){return ie(r)})}function J(e,t="modelValue",r){const a=n.toRef(e,t);let l=a.value;typeof r=="function"&&(l=r(a.value));const o=n.ref(l);return n.watch(a,i=>{if(typeof r=="function"){const u=r(i);u!==o.value&&(o.value=u)}else i!==o.value&&(o.value=i)}),o}const ra=new Map,Ct=new Map;let en=null;function dl(e){en=e}function la(e,t,r){if(r){let a=Ct.get(r);a||(a=new Map,Ct.set(r,a)),a.set(e,t)}else ra.set(e,t)}function je(e,t,r){!r&&en&&(r=en(e)??void 0);let a=null;if(r){let l=Ct.get(r);l&&(a=l.get(t))}return a||(a=ra.get(t)),a}function hl(e,t){for(let r in e){const a=e[r];la(r,a,t)}}function ml(e){Ct.delete(e)}function gl(){return{top:0,left:0,bottom:0,right:0}}function yl(e=0,t=0){if(Ze){const r=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:a-ee(e,a)-ee(t,a),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:a,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class pl{packages;installers;_version;get version(){return this._version}constructor(t,r,a){this.packages=t,this.installers=r,this._version=a}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 a=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=et();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Gt(()=>{const u={...r},c=document.documentElement.clientWidth||document.body.clientWidth,h=document.documentElement.clientHeight||document.body.clientHeight;u.width=c,u.height=h,this.initPageLayout(u,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)a.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const a=t.headerBarHeight??0,l=t.footerBarHeight??0,o=Me({},gl(),t.safeAreaInset),i=yl(a,l),u=Me({},i.pageLayout,t.pageLayout);r=r??et(),r.set("safeAreaInset",o),r.set("headerBarHeight",a),r.set("footerBarHeight",l),r.set("pageLayout",u),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight)}setScopeGetter(t){dl(t)}setAPI(t,r,a){la(t,r,a)}getAPI(t,r,a){return je(t,r,a)}batchSetAPI(t,r){hl(t,r)}clearScopeAPI(t){ml(t)}getRootDomain(){return et()}}const bl=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Sl=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],wl=e=>{bl.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Sl.forEach(t=>{e.use(t)})};function W(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=a=>{a.component(r.name,r)},n.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,n.defineComponent(r)}}}const oe={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}},he={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}},oa={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},ia={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,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1}},sa=[];for(const e in ia)sa.push(e);function me(e,t=null){if(t||(t=n.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const $l=Symbol.for("InnerPageScopeKey"),Cl=(e,t)=>({inheritAttrs:!0,props:{...oe,...oa,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,a){const l=Zt(r.name,r);if(l){const h=aa(l,r);me({getPageContentHeight:()=>St(l,h),getPageContentWidth:()=>wt(l,h),getPageHeaderHeight:()=>pt(l,h),getPageFooterHeight:()=>bt(l,h)});const f=n.inject($l,!1);h&&f&&(h.contentHeight="100%")}const o=n.computed(()=>({[e]:!0})),i=n.computed(()=>({})),u=n.getCurrentInstance(),c=h=>{const f=u?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(h,!0)};return n.watch(()=>r.rules,(h,f)=>{if(!h&&!f)return;const d=n.toRaw(f),S=n.toRaw(h),R=S?Reflect.ownKeys(S):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{R.includes(p)||(S[p]=[])}),c(S)},{deep:!0}),n.onMounted(()=>{if(r.rules){const h=n.toRaw(r.rules);c(h)}}),{classes:o,styles:i}}}),{componentName:vl,create:kl,scope:pu}=W("page"),Dl=kl(Cl(vl));function Tl(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const re=(e,t)=>{const r=e.__vccOpts||e;for(const[a,l]of t)r[a]=l;return r},ca=re(Dl,[["render",Tl]]),El=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const l=Ae(),o=l?yt(l):null;o&&(o.headerMounted=!0);const i=n.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?ee(r.height):null,c=n.computed(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const C=ke(r.padding??o.footerPadding);return Object.assign(b,C),u&&(o.headerHeight=u),b.height=o.headerHeight,b.safeAreaTop=o.safeAreaTop,b.safeAreaTop&&(b.top=b.safeAreaTop+(C.top??0),b.height=b.height+o.safeAreaTop),b.height,b.safeAreaTop,b}if(u&&(b.height=u),r.padding){const C=ke(r.padding);Object.assign(b,C)}return b});n.onUnmounted(()=>{o&&(o.headerMounted=!1)});const h=n.computed(()=>{const b={};return c.value.height!==null&&c.value.height!==void 0&&(b.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(b.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(b.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(b.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(b.paddingBottom=`${c.value.bottom}px`),b}),f=n.computed(()=>{const b={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(b.top=`${c.value.safeAreaTop}px`),b}),d=n.computed(()=>{const b={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(b.top=`${c.value.safeAreaTop}px`),b}),S=n.computed(()=>r.leftShow?r.leftIcon||r.leftText||a.slots.left:!1),R=n.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),T=n.computed(()=>r.titleShow?r.title||r.titleIcon||a.slots.default:!1),p=n.computed(()=>r.rightShow?r.rightIcon||r.rightText||a.slots.right:!1),O=n.computed(()=>{let b={};return typeof r.leftIcon=="object"?Object.assign(b,r.leftIcon):b.name=r.leftIcon,b}),s=n.computed(()=>{let b={};return typeof r.titleIcon=="object"?Object.assign(b,r.titleIcon):b.name=r.titleIcon,b}),g=n.computed(()=>{let b={};return typeof r.rightIcon=="object"?Object.assign(b,r.rightIcon):b.name=r.rightIcon,b});function v(){a.emit("back")}function x(){a.emit("click-title")}function w(){a.emit("click-right")}function D(){a.emit("click-right-text")}return{classes:i,styles:h,mHeaderShow:R,leftStyles:f,rightStyles:d,mLeftShow:S,mTitleShow:T,mRightShow:p,mLeftIcon:O,mTitleIcon:s,mRightIcon:g,handleLeft:v,handleCenter:x,handleRight:w,handleRightText:D}}}),{componentName:xl,create:Vl,scope:bu}=W("header-bar"),Nl=Vl(El(xl)),Il={key:1,class:"fox-header-bar__title"};function Al(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon");return e.mHeaderShow?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:n.normalizeStyle(e.leftStyles)},[n.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(n.openBlock(),n.createBlock(i,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):n.createCommentVNode("",!0),e.leftText?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},n.toDisplayString(e.leftText),1)):n.createCommentVNode("",!0)])],4)):n.createCommentVNode("",!0),e.mTitleShow?(n.openBlock(),n.createElementBlock("view",Il,[n.renderSlot(e.$slots,"default",{},()=>[e.title?(n.openBlock(),n.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),e.titleIcon?(n.openBlock(),n.createBlock(i,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),e.mRightShow?(n.openBlock(),n.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:n.normalizeStyle(e.rightStyles)},[n.renderSlot(e.$slots,"right",{},()=>[e.rightText?(n.openBlock(),n.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},n.toDisplayString(e.rightText),1)):n.createCommentVNode("",!0),e.rightIcon?(n.openBlock(),n.createBlock(i,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):n.createCommentVNode("",!0)])],4)):n.createCommentVNode("",!0)])],6)):n.createCommentVNode("",!0)}const ua=re(Nl,[["render",Al]]);function Ol(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,a){const l=Ae(),o=l?yt(l):null;o&&(o.footerMounted=!0);const i=n.computed(()=>{const f=e;let d=e;return r.align==="left"?d=`${d}__left`:r.align==="right"?d=`${d}__right`:d=`${d}__center`,{[f]:!0,[d]:!0}}),u=r.height!==null&&r.height!==void 0?ee(r.height):null,c=n.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const d=ke(r.padding??o.footerPadding);return Object.assign(f,d),u&&(o.footerHeight=u),f.height=o.footerHeight,f.safeAreaBottom=o.safeAreaBottom,f.safeAreaBottom&&(f.height=f.height+o.safeAreaBottom,f.bottom=f.safeAreaBottom+(d.bottom??0)),f}if(u&&(f.height=u),r.padding){const d=ke(r.padding);Object.assign(f,d)}return f});n.onUnmounted(()=>{o&&(o.footerMounted=!1)});const h=n.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=U(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=U(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=U(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=U(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=U(c.value.bottom)),f});return{classes:i,styles:h}}}}const{componentName:Bl,create:Rl,scope:Su}=W("footer-bar"),Ml=Rl(Ol(Bl));function jl(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const fa=re(Ml,[["render",jl]]);function Pl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const a=Ae(),l=n.computed(()=>({[e]:!0})),o=n.computed(()=>{const i={};if(a){const u=yt(a);if(u){if(r.padding){const d=ke(r.padding);Object.assign(u.contentPadding,d)}const c=pt(a,u),h=bt(a,u);let f="";if(u.contentHeight?f=`${u.contentHeight}`:f=`${u.height}px`,u.contentPadding,i.height=f,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||c>0){const d=(u&&u.contentPadding&&u.contentPadding.top)??0;i.paddingTop=`${c+d}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||h>0){const d=(u&&u.contentPadding&&u.contentPadding.bottom)??0;i.paddingBottom=`${h+d}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(i.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(i.paddingRight=`${u.contentPadding.right}px`),i}}if(r.padding){const u=ke(r.padding);u.left!==null&&u.left!==void 0&&(i.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(i.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(i.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(i.paddingBottom=`${u.bottom}px`)}return i});return{classes:l,styles:o}}}}const{componentName:Fl,create:Ll,scope:wu}=W("content"),ql=Ll(Pl(Fl));function Hl(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const da=re(ql,[["render",Hl]]),qe="GroupStateKey",ha=Symbol.for("GroupScopeKey");function vt(){return n.inject(ha,!1)}function kt(e=!0){n.provide(ha,e)}function zl(e,t={}){const a={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(a,t);const l=n.shallowRef(a),o=n.markRaw({layout:l,passport:0,order:{index:0}});return e.set(qe,o),o}function ma(e,t,r=-1,a=-1,l=!1,o=-1){const i=e.get(qe);if(!i)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),a===-1&&(a=u.gutter??0),o||(o=u.minItemWidth??-1);const c=()=>{const h=t===""||t===-1,f=ee(t);let d=X(r);const S=ee(a);if(!h){let p=(f-(d-1)*S)/d;for(;o!==-1&&d>1&&p<o;)d--,p=(f-(d-1)*S)/d}let R=!1;const T=i.layout;T.value.width=t,T.value.column!==d&&(T.value.column=d,R=!0),T.value.gutter!==S&&(T.value.gutter=S,R=!0),R&&n.triggerRef(T)};if(l)c();else{const h=++i.passport;setTimeout(()=>{h===i.passport&&c()},50)}}function tt(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.layout}function tn(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.order}function be(e,t=1){return t==="stretch"?-1:(t=X(t),t===-1?100:100*t/e)}function _l(e){return e===window}const nt=e=>{const t=n.unref(e);if(_l(t)){const r=t.innerWidth,a=t.innerHeight;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Be=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Kl=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},Yl=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,a=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof a=="function"?a():a}const t=X(e.props.offset);return t<0?0:t},Wl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},Gl=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,a=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof a=="function"?a():a}const t=X(e.props.foxSubItemCount);return t<0?1:t};function Ul(e,t){return{props:{...oe,...oa,...ia},setup(r,a){const l=Zt(r.name,r,sa),o=zl(l,{type:r.type}),i=vt();kt(!0);const u=n.computed(()=>i&&l?tt(l,!0).value:null),c=n.getCurrentInstance(),h=w=>{const D=c?.proxy;D&&typeof D.setNameValidateRules=="function"&&D.setNameValidateRules(w,!0)};n.watch(()=>r.rules,(w,D)=>{if(!w&&!D)return;const b=n.toRaw(D),C=n.toRaw(w),B=C?Reflect.ownKeys(C):[];(b?Reflect.ownKeys(b):[]).forEach(E=>{B.includes(E)||(C[E]=[])}),h(C)},{deep:!0}),n.onMounted(()=>{if(r.rules){const w=n.toRaw(r.rules);h(w)}});const f=e,d=n.computed(()=>{const w={};if(u.value){const D=tt(l,!0);if(D.value.type==="flex"){if(r.width){const B=U(r.width);w.width=B}else{const B=be(D.value.column,r.span);B>0&&(w.width=`${B}%`)}if(r.height){const B=U(r.height);w.height=B}const b=be(D.value.column,r.offset);b>0&&(w["margin-left"]=`${b}%`);const C=D.value.gutter/2;C>0&&(w["padding-left"]=`${C}px`,w["padding-right"]=`${C}px`)}else if(D.value.type==="flow"){if(r.width){const B=U(r.width);w.width=B}else{const B=be(D.value.column,r.span);B>0&&(w.width=`${B}%`)}if(r.height){const B=U(r.height);w.height=B}const b=be(D.value.column,r.offset);b>0&&(w["margin-left"]=`${b}%`);const C=D.value.gutter/2;if(C>0){const B=l?tn(l,!0):null;if(B){let N=X(r.offset)+X(r.span);(N===-1||N>D.value.column)&&(N=D.value.column);const E=Math.ceil((B.index+1)/D.value.column),F=Math.ceil((B.index+N)/D.value.column);if(E===F){const k=(B.index+1)%D.value.column,$=(B.index+N)%D.value.column,V=k===1?0:C,P=$===0?0:C;w["padding-left"]=`${V}px`,w["padding-right"]=`${P}px`}else{const k=N%D.value.column,$=0,V=k===0?0:C;w["padding-left"]=`${$}px`,w["padding-right"]=`${V}px`}B.index+=N}else w["padding-left"]=`${C}px`,w["padding-right"]=`${C}px`}}}else{if(r.width){const D=U(r.width);w.width=D}if(r.height){const D=U(r.height);w.height=D}}return w}),S=n.computed(()=>r.type==="flex"?{[`${Be("",r.type)}`]:!0,[`${Be("justify",r.justify)}`]:!0,[`${Be("align",r.align)}`]:!0,[`${Be("flex",r.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:r.type==="flow"?{[`${Be("",r.type)}`]:!0,[`${Be("justify",r.justify)}`]:!0,[`${Be("align",r.align)}`]:!0}:{[`${Be("",r.type)}`]:!0,[`${f}__gutter`]:!0}),R=n.toRef(r,"title"),T=n.toRef(r,"gutter"),p=n.toRef(r,"column"),O=n.computed(()=>i?!0:ie(r.isWrap)),s=n.ref([]),g=w=>{s.value.push(w)},v=n.ref(-1);if(ma(l,v.value,p.value,T.value,!0,r.minItemWidth),r.autoLayout){n.watch([v,p,T],([D,b,C])=>{o.order.index=0,ma(l,D,b,C,!1,r.minItemWidth)});let w=null;n.onMounted(()=>{if(Ze&&s.value&&s.value.length>0){const D=s.value[0];v.value=nt(D).width,window.ResizeObserver&&(w=new window.ResizeObserver(()=>{const b=nt(D).width;b>0&&b!==v.value&&(v.value=b)}),w.observe(D))}}),n.onUnmounted(()=>{w?.disconnect()})}const x=(w,D,b,C)=>{const B={...S.value};return D===0&&(B[`${f}__first`]=!0),b>=C-1&&(B[`${f}__last`]=!0),n.h("div",{ref:g,key:`${D}`,class:B},w)};return()=>{o.order.index=0;const w=[];let D=0;if(a.slots.title){const N={key:`${D++}`,class:{[`${f}__title`]:!0,[`${f}__first`]:!0}},E=n.h("div",N,[a.slots.title()]);w.push(E)}else if(R.value){const N={key:`${D++}`,class:{[`${f}__title`]:!0,[`${f}__first`]:!0}},E=[];if(r.showMark){const $={class:{[`${f}__title-mark`]:!0}};r.markColor&&($.style={background:r.markColor});const V=n.h("div",$);E.push(V)}const F=n.h("div",{class:{[`${f}__title-text`]:!0}},[R.value]);E.push(F);const k=n.h("div",N,E);w.push(k)}const b=a.slots.default?a.slots.default():[];let C=[],B=0;if(r.type==="flex"){for(let N=0;N<b.length;N++){const E=String(b[N].type);if(E==="Symbol(Comment)")continue;if(E==="Symbol(Fragment)")if(Array.isArray(b[N].children)){const M=b[N].children;if(Reflect.apply([].splice,b,[N,1,...M]),M.length===0){N-=1;continue}}else{b.splice(N,1),N-=1;continue}const F=b[N];if(Wl(F)==="fragment"){let M=Gl(F);M>o.layout.value.column?M=o.layout.value.column:M<=0&&(M=1);const I=B+M;if(I>o.layout.value.column){const q=x([...C],D++,N-1,b.length);w.push(q),B=M,C=[F]}else C.push(F),B=I;continue}const $=Kl(F),V=Yl(F);if($==="stretch"){if(B<o.layout.value.column){C.push(F);const M=x([...C],D++,N,b.length);w.push(M)}else{const M=x([...C],D++,N-1,b.length);w.push(M);const I=x([F],D++,N,b.length);w.push(I)}B=0,C=[];continue}let P=X($);if(P===-1){if(C.length>0){const I=x([...C],D++,N-1,b.length);w.push(I)}const M=x([F],D++,N,b.length);w.push(M),B=0,C=[];continue}P>o.layout.value.column?P=o.layout.value.column:P<=0&&(P=1);const A=B+P+V;if(A>o.layout.value.column){const M=x([...C],D++,N-1,b.length);w.push(M),B=P+V,C=[F]}else C.push(F),B=A}if(C.length>0){const N=x([...C],D++,b.length,b.length);w.push(N)}}else if(r.type==="flow"){const N=x(b,D++,0,b.length);w.push(N)}else for(let N=0;N<b.length;N++){const E=b[N],F=x([E],D++,N,b.length);w.push(F)}return O.value?n.h("div",{class:{[`${f}`]:!0},style:d.value},[w]):w}}}}const{componentName:Xl,create:Zl,scope:$u}=W("group"),ga=Zl(Ul(Xl)),ya={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Jl,create:Ql}=W("price"),eo=Ql({props:{...ya},setup(e){const t=n.computed(()=>({[Jl]:!0})),r=n.computed(()=>e.needSymbol?e.symbol:""),a=n.computed(()=>we(e.price)==0?"":Ht(e.price,e.decimalLength,!0,X(e.digits),e.separator)),l=n.computed(()=>{let i=a.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),o=n.computed(()=>{let i=a.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),to=["innerHTML"],no=["innerHTML"];function ao(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,to)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--${e.size}`)},n.toDisplayString(e.intText),3),e.decimalText.length!=0?(n.openBlock(),n.createElementBlock("view",{key:1,class:n.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--decimal-${e.size}`)},n.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(n.openBlock(),n.createElementBlock("view",{key:2,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,no)):n.createCommentVNode("",!0)],2)}const Dt=re(eo,[["render",ao]]),{componentName:nn,create:ro}=W("hint-text"),lo=ro({components:{[Dt.name]:Dt},props:{...ya,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=n.computed(()=>({[nn]:!0})),o=n.computed(()=>({left:U(e.startPoint.x),top:U(e.startPoint.y-e.height-10-4),height:U(e.height),width:U(e.width)})),i=n.computed(()=>({[`${nn}__content`]:!0})),u=n.computed(()=>({})),c=n.computed(()=>({[`${nn}__arrow`]:!0})),h=n.computed(()=>({top:U(e.height)}));return{classes:l,styles:o,textClasses:i,textStyles:u,arrowClasses:c,arrowStyles:h}}}),oo={key:1,class:"text"};function io(e,t,r,a,l,o){const i=n.resolveComponent("fox-price");return n.openBlock(),n.createBlock(n.Transition,{name:"hint-text-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.textClasses),style:n.normalizeStyle(e.textStyles)},[e.type=="number"?(n.openBlock(),n.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(n.openBlock(),n.createElementBlock("span",oo,n.toDisplayString(e.message),1))],6),n.createElementVNode("div",{class:n.normalizeClass(e.arrowClasses),style:n.normalizeStyle(e.arrowStyles)},null,6)],6),[[n.vShow,e.visible]])]),_:1})}const Tt=re(lo,[["render",io]]);class pa{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 so(e){return e===window}const ba=e=>{const t=n.unref(e);if(!t)return{x:0,y:0};if(so(t))return{x:0,y:0};let r=0,a=0,l=t;for(;l!==null;)r+=l.offsetLeft,a+=l.offsetTop,l=l.offsetParent;let o=0,i=0;for(l=t;l!==document;)i+=l.scrollTop,o+=l.scrollLeft,l=l.parentNode;return r-=o,a-=i,{x:r,y:a}},an={},co=new pa,He=new Map,rn=e=>{if(e){const t=document.getElementById(e);He.delete(e),t&&document.body.removeChild(t)}else{for(const t of He.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}He.clear()}},uo=e=>{const t=document.getElementById(e.id);if(t){const r=He.get(e.id);r?e={...an,...r,...e}:e={...an,...e};const a=n.createVNode(Tt,e);return n.render(a,t),e.id}},fo=e=>{e.unmount=rn;let t;if(e.id){if(t=e.id,He.has(t))return uo(e)}else t=`hinttext_${co.get()}`;e={...an,...e},e.id=t,He.set(t,e);const r=document.createElement("div");r.id=e.id;const a=n.createVNode(Tt,e);return n.render(a,r),document.body.appendChild(r),t},ho=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Et={show(e,t,r={},a=!0){a&&rn(),ho(t);const l=ba(e),o={x:l.x,y:l.y},i=r.width??nt(e).width;return fo({...r,message:t,startPoint:o,width:i})},hide(e){rn(e)},install(e){e.config.globalProperties.$hintText=Et}},{componentName:Sa,create:mo}=W("item"),go=mo({inheritAttrs:!0,props:{...oe,...he},setup(e,t){ce({componentName:Sa,validate:!1},e.prop??t.attrs.name);const r=Ae(),a=vt();kt(!1);const l=n.computed(()=>a&&r?tt(r,!1).value:null),o=Sa,i=n.computed(()=>({[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!B.value,"is-warn":!!b.value,"is-info":!!w.value})),u=n.computed(()=>{const I={};if(l.value)if(l.value.type==="flex"){if(e.width)I.width=U(e.width);else{const j=be(l.value.column,e.span);j>0&&(I.width=`${j}%`)}const q=be(l.value.column,e.offset);q>0&&(I["margin-left"]=`${q}%`);const H=l.value.gutter/2;H>0&&(I["padding-left"]=`${H}px`,I["padding-right"]=`${H}px`)}else if(l.value.type==="flow"){if(e.width)I.width=U(e.width);else{const j=be(l.value.column,e.span);j>0&&(I.width=`${j}%`)}const q=be(l.value.column,e.offset);q>0&&(I["margin-left"]=`${q}%`);const H=l.value.gutter/2;if(H>0){const j=r?tn(r,!1):null;if(j){let L=X(e.offset)+X(e.span);(L===-1||L>l.value.column)&&(L=l.value.column);const z=Math.ceil((j.index+1)/l.value.column),_=Math.ceil((j.index+L)/l.value.column);if(z===_){const K=(j.index+1)%l.value.column,ae=(j.index+L)%l.value.column,Q=K===1?0:H,Z=ae===0?0:H;I["padding-left"]=`${Q}px`,I["padding-right"]=`${Z}px`}else{const K=L%l.value.column,ae=0,Q=K===0?0:H;I["padding-left"]=`${ae}px`,I["padding-right"]=`${Q}px`}j.index+=L}else I["padding-left"]=`${H}px`,I["padding-right"]=`${H}px`}}else return e.width&&(I.width=U(e.width)),I;else e.width&&(I.width=U(e.width));return I}),c=n.ref(null),h=n.computed({get:()=>c.value??ie(e.isRequired),set:I=>{c.value=I}}),f=n.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),d=De(n.toRef(e,"labelPosition"),"labelPosition",$t.Near),S=n.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),R=n.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${S.value}`]:!0})),T=n.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=De(n.toRef(e,"labelWidth"),"labelWidth",$t.Near),O=n.computed(()=>p&&p.value?{width:U(p.value)}:{}),s=n.computed(()=>({["label--string"]:!0,["label--required"]:h.value})),g=n.computed(()=>({content:!0,[e.contentClass]:!0})),v=n.computed(()=>({...e.contentStyle})),x=n.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired(I){h.value=I},setErrorTip(I){x.errorTip=I},setErrorIcon(I){x.errorIcon=I},setWarnTip(I){x.warnTip=I},setWarnIcon(I){x.warnIcon=I},setInfoTip(I){x.infoTip=I},setInfoIcon(I){x.infoIcon=I}});const w=n.computed(()=>e.infoTip||x.infoTip),D=n.computed(()=>e.infoIcon||x.infoIcon),b=n.computed(()=>e.warnTip||x.warnTip),C=n.computed(()=>e.warnIcon||x.warnIcon),B=n.computed(()=>e.errorTip||x.errorTip),N=n.computed(()=>e.errorIcon||x.errorIcon),E=n.computed(()=>B.value?"error":b.value?"warn":w.value?"info":""),F=n.computed(()=>E.value.length>0),k=n.computed(()=>E.value==="error"?B.value:E.value==="warn"?b.value:E.value==="info"?w.value:""),$=n.computed(()=>E.value==="error"?N.value:E.value==="warn"?C.value:E.value==="info"?D.value:null),V=n.computed(()=>{let I={[`${o}__tip`]:!0,[`${o}__tip--${E.value}`]:!0};return E.value==="error"&&e.errorClass?I[`${e.errorClass}`]=!0:E.value==="warn"&&e.warnClass?I[`${e.warnClass}`]=!0:E.value==="info"&&e.infoClass&&(I[`${e.infoClass}`]=!0),I}),P=n.computed(()=>{let I={};return d&&d.value==="top"?I["padding-left"]="0px":p&&p.value&&(I["padding-left"]=U(p.value)),I}),A=n.ref();let M="";return n.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([I,q,H,j])=>{A.value&&(I&&!se(q)?M?Et.show(A.value,q,{...j,id:M,type:H}):M=Et.show(A.value,q,{...j,type:H}):Et.hide(M))}),{classes:i,styles:u,mainClasses:R,hasLabel:f,labelClasses:T,labelStyles:O,labelStringClasses:s,contentClasses:g,contentStyles:v,contentRef:A,hasTip:F,mTip:k,mIcon:$,tipClasses:V,tipStyles:P}}}),yo={key:0,class:"fox-item__tip-icon"},po={class:"fox-item__tip-text"};function bo(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.mainClasses)},[e.hasLabel?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.labelClasses),style:n.normalizeStyle(e.labelStyles)},[n.createElementVNode("div",{class:n.normalizeClass(e.labelStringClasses)},[n.renderSlot(e.$slots,"label",{},()=>[n.createTextVNode(n.toDisplayString(e.label),1)])],2)],6)):n.createCommentVNode("",!0),n.createElementVNode("div",{ref:"contentRef",class:n.normalizeClass(e.contentClasses),style:n.normalizeStyle(e.contentStyles)},[n.renderSlot(e.$slots,"prepend"),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"append")],6)],2),n.createVNode(n.Transition,{name:"fox-item__animate"},{default:n.withCtx(()=>[e.hasTip?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.tipClasses),style:n.normalizeStyle(e.tipStyles)},[e.mIcon?(n.openBlock(),n.createElementBlock("div",yo,n.toDisplayString(e.mIcon),1)):n.createCommentVNode("",!0),n.createElementVNode("div",po,n.toDisplayString(e.mTip),1)],6)):n.createCommentVNode("",!0)]),_:1}),n.renderSlot(e.$slots,"hide")],6)}const ue=re(go,[["render",bo]]);function So(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,a){const l=Ae(),o=vt();kt(!1);const i=n.computed(()=>o&&l?tt(l,!1).value:null),u=e,c=n.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),h=n.computed(()=>{const f={};if(i.value)if(i.value.type==="flex"){if(r.width)f.width=U(r.width);else{const R=be(i.value.column,r.span);R>0&&(f.width=`${R}%`)}const d=be(i.value.column,r.offset);d>0&&(f["margin-left"]=`${d}%`);const S=i.value.gutter/2;S>0&&(f["padding-left"]=`${S}px`,f["padding-right"]=`${S}px`)}else if(i.value.type==="flow"){if(r.width)f.width=U(r.width);else{const R=be(i.value.column,r.span);R>0&&(f.width=`${R}%`)}const d=be(i.value.column,r.offset);d>0&&(f["margin-left"]=`${d}%`);const S=i.value.gutter/2;if(S>0){const R=l?tn(l,!1):null;if(R){let T=X(r.offset)+X(r.span);(T===-1||T>i.value.column)&&(T=i.value.column);const p=Math.ceil((R.index+1)/i.value.column),O=Math.ceil((R.index+T)/i.value.column);if(p===O){const s=(R.index+1)%i.value.column,g=(R.index+T)%i.value.column,v=s===1?0:S,x=g===0?0:S;f["padding-left"]=`${v}px`,f["padding-right"]=`${x}px`}else{const s=T%i.value.column,g=0,v=s===0?0:S;f["padding-left"]=`${g}px`,f["padding-right"]=`${v}px`}R.index+=T}else f["padding-left"]=`${S}px`,f["padding-right"]=`${S}px`}}else return r.width&&(f.width=U(r.width)),f;else r.width&&(f.width=U(r.width));return f});return()=>{const f={class:c.value,style:h.value};return a.slots&&typeof a.slots.default=="function"?n.h("div",f,a.slots.default()):n.h("div",f)}}}}const{componentName:wo,create:$o,scope:Cu}=W("slot-item"),wa=$o(So(wo));function Co(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,a){const l=e,o=n.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),i=Ae(),u=vt();kt(!1);const c=n.computed(()=>{const f={};if(u&&i){const d=tt(i,!1);if(d.value.type!=="flex")return r.width&&(f.width=U(r.width)),f;if(r.width)f.width=U(r.width);else{const T=be(d.value.column,r.span);T>0&&(f.width=`${T}%`)}const S=be(d.value.column,r.offset);S>0&&(f["margin-left"]=`${S}%`);const R=d.value.gutter/2;R>0&&(f["padding-left"]=`${R}px`,f["padding-right"]=`${R}px`)}else r.width&&(f.width=U(r.width));return f}),h=n.computed(()=>({[`${l}__content`]:!0}));return()=>{const f=[];if(a.slots.default){const T=a.slots.default();if(r.divide)for(let p=0;p<T.length;p++){if(p>0){const O=n.h("div",{class:{[`${l}__divide`]:!0}});f.push(O)}f.push(T[p])}else Reflect.apply([].push,f,T)}const d={class:h.value},S=n.h("div",d,f),R={class:o.value,style:c.value};return n.h("div",R,[S])}}}}const{componentName:vo,create:ko,scope:vu}=W("row-item"),$a=ko(Co(vo)),Ca={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Do(e,t,r){return{props:{...oe,...he,...Ca},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),d=J(a,"modelValue"),S=e,R=n.computed(()=>({[S]:!0})),T=b=>{d.value=b,o("update:modelValue",b),o("input",b)},p=b=>{o("change",b)};let O=J(a,"hintText"),s=n.ref(!1);const g=b=>{let B=b.target.value;c.value=!0,se(O.value)||(s.value=!0),o("focus",B,b)},v=b=>{setTimeout(()=>{s.value&&(s.value=!1),c.value=!1},0);let B=b.target.value;a.maxLength&&B.length>Number(a.maxLength)&&(B=B.slice(0,Number(a.maxLength))),o("blur",B,b)},x=()=>{o("clear","")},w=n.computed(()=>we(a.unit)>0),D=n.ref();return me({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const C={...l.attrs,ref:D,class:R.value,placeholder:u.placeholder.value,clearable:a.clearable,disabled:h.value,readonly:f.value,modelValue:d.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onClear:x,onChange:p,onInput:T,onFocus:g,onBlur:v},B={};l.slots.prepend&&(B.prepend=l.slots.prepend),l.slots.append&&(B.append=l.slots.append),l.slots.prefix&&(B.prefix=l.slots.prefix),l.slots.suffix?B.suffix=l.slots.suffix:w.value&&(B.suffix=()=>[a.unit]);const N=[],E=n.h(y.ElInput,C,B);N.push(E);const F={default:()=>N};if(l.slots.default){const P=l.slots.default();F.label=()=>P}const $={...de(a,Ca),hintText:O.value,hintVisible:s.value,prop:`${a.prop}_item`};return n.h(r,$,F)}}}}const{componentName:To,create:Eo,scope:xo}=W("input-item"),va=Eo(Do(To,xo,ue)),ka={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!1},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},ln={...ka,position:{type:String,default:"center"},transition:String,style:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},isWrapTeleport:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1}},Da={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},on={...ln,...Da,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:[Object,String],required:!1},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let at=0;const Ta="fox-overflow-hidden",Vo=e=>[()=>{e()&&(!at&&document.body.classList.add(Ta),at++)},()=>{e()&&at&&(at--,!at&&document.body.classList.remove(Ta))}],{componentName:No,create:Io}=W("overlay"),Ao=Io({props:ka,emits:["click","update:visible"],setup(e,{emit:t}){const r=n.computed(()=>({[No]:!0,[e.overlayClass]:!0}));n.watch(()=>e.visible,c=>{c?a():l()});const a=()=>{e.lockScroll&&e.visible&&document.body.classList.add("fox-overflow-hidden")},l=()=>{document.body.classList.remove("fox-overflow-hidden")};n.onDeactivated(l),n.onBeforeUnmount(l),n.onMounted(a),n.onActivated(a);const o=n.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:r,style:o,touchmove:c=>{e.lockScroll&&c.preventDefault()},onClick:c=>{t("click",c),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Oo(e,t,r,a,l,o){return n.openBlock(),n.createBlock(n.Transition,{name:"overlay-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),onTouchmove:t[0]||(t[0]=n.withModifiers((...i)=>e.touchmove&&e.touchmove(...i),["stop"])),onClick:t[1]||(t[1]=(...i)=>e.onClick&&e.onClick(...i)),style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default")],38),[[n.vShow,e.visible]])]),_:3})}const xt=re(Ao,[["render",Oo]]),{componentName:Bo,create:Ro}=W("popup");let Ea=2e3;const Mo=Ro({components:{[xt.name]:xt},props:{...ln},emits:["click","click-close-icon","open","close","opened","closed","update:visible","click-overlay"],setup(e,{emit:t}){const r=n.ref(),a=n.reactive({zIndex:e.zIndex,showSlot:!0,transitionName:`popup-fade-${e.position}`,overLayCount:1,keepAlive:!1,closed:e.closeable}),[l,o]=Vo(()=>e.lockScroll),i=n.computed(()=>({[Bo]:!0,round:e.round,[`popup-${e.position}`]:!0,[`popup-${e.position}--safebottom`]:e.position==="bottom"&&e.safeAreaInsetBottom,[e.popClass]:!0})),u=n.computed(()=>({zIndex:a.zIndex,animationDuration:e.duration?`${e.duration}s`:"initial",...e.style})),c=()=>{e.zIndex!=2e3&&(Ea=Number(e.zIndex)),t("update:visible",!0),l(),a.zIndex=++Ea,e.destroyOnClose&&(a.showSlot=!0),t("open")},h=()=>{o(),t("update:visible",!1),t("close"),e.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+e.duration*1e3)},f=p=>{t("click",p)},d=p=>{t("click-close-icon",p),h()},S=p=>{e.closeOnClickOverlay&&(t("click-overlay",p),h())},R=p=>{t("opened",p)},T=p=>{t("closed",p)};return n.onMounted(()=>{e.transition?a.transitionName=e.transition:a.transitionName=`popup-slide-${e.position}`,e.visible&&c()}),n.onBeforeUnmount(()=>{e.visible&&h()}),n.onBeforeMount(()=>{e.visible&&o()}),n.onActivated(()=>{a.keepAlive&&(t("update:visible",!0),a.keepAlive=!1)}),n.onDeactivated(()=>{e.visible&&(h(),a.keepAlive=!0)}),n.watch(()=>e.visible,p=>{p?c():h()}),n.watch(()=>e.position,p=>{p==="center"?a.transitionName="popup-fade":a.transitionName=`popup-slide-${p}`}),n.watch(()=>e.closeable,p=>{a.closed=p}),{...n.toRefs(a),popStyle:u,classes:i,onClick:f,onClickCloseIcon:d,onClickOverlay:S,onOpened:R,onClosed:T,popupRef:r}}});function jo(e,t,r,a,l,o){const i=n.resolveComponent("fox-overlay"),u=n.resolveComponent("fox-ext-icon");return n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:!e.isWrapTeleport},[e.overlay?(n.openBlock(),n.createBlock(i,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:n.normalizeClass(e.overlayClass),style:n.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):n.createCommentVNode("",!0),n.createVNode(n.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...c)=>e.onClick&&e.onClick(...c)),ref:"popupRef"},[e.showSlot?n.renderSlot(e.$slots,"default",{key:0}):n.createCommentVNode("",!0),e.closed?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:n.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[n.createVNode(u,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):n.createCommentVNode("",!0)],6),[[n.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Vt=re(Mo,[["render",jo]]),xa=10;function Po(e,t){return e>t&&e>xa?"horizontal":t>e&&t>xa?"vertical":""}function Va(){const e=n.ref(0),t=n.ref(0),r=n.ref(0),a=n.ref(0),l=n.ref(0),o=n.ref(0),i=n.ref(0),u=n.ref(0),c=n.ref(0),h=n.ref(0),f=n.ref(""),d=()=>f.value==="vertical",S=()=>f.value==="horizontal",R=()=>{i.value=0,u.value=0,c.value=0,h.value=0,f.value="",r.value=0};return{move:O=>{const s=O.touches[0];i.value=s.clientX-e.value,u.value=s.clientY-t.value,l.value=s.clientX,o.value=s.clientY,c.value=Math.abs(i.value),h.value=Math.abs(u.value),a.value=Date.now()-r.value,f.value||(f.value=Po(c.value,h.value))},start:O=>{R(),e.value=O.touches[0].clientX,t.value=O.touches[0].clientY,r.value=Date.now()},reset:R,startX:e,startY:t,startTime:r,duration:a,moveX:l,moveY:o,deltaX:i,deltaY:u,offsetX:c,offsetY:h,direction:f,isVertical:d,isHorizontal:S}}let Na=36;function Fo(){return Na}function Lo(e){Na=e}function Te(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function sn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]:t.children??null}function qo(e,t,r){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(t[e.childrenKey]=r),t.children=r}function Pe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ia(e,t){return typeof e.itemOptions=="function"?e.columnOptions(t):e.columnOptions}let Ho=class{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=je(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ve(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}};function zo(){const e=n.getCurrentInstance();return new Ho(e.proxy)}function Aa(e,t,r){const a=Te(e,t),l=Te(e,r);if(a!==l)return!1;const o=Pe(e,t),i=Pe(e,r);return o===i}function _o(e,t,r,a){if(r.length==0)return[];Array.isArray(t)||(t=[t]);const l=[],o=e.valueType??"value";if(a==="singleColumn"||a==="multipleColumn")for(let i=0;i<t.length&&i<r.length;i++){const u=t[i];let h=r[i].findIndex(f=>{if(o==="text")return Te(e,f)===u;if(o==="value"){let d=Pe(e,f);return d==null&&(d=Te(e,f)),d===u}else if(o==="item")return Aa(e,f,u)});if(h==-1)break;l.push(h)}else{let i=r[0];for(let u=0;u<t.length;u++){const c=t[u];let h=i.findIndex(d=>{if(o==="text")return Te(e,d)===c;if(o==="value"){let S=Pe(e,d);return S==null&&(S=Te(e,d)),S===c}else if(o==="item")return Aa(e,d,c)});if(h==-1)break;l.push(h);const f=sn(e,i[h]);if(!Array.isArray(f))break;i=f}}return l}function Oa(e,t,r,a){if(r.length==0)return null;const l={texts:[],values:[]},o=e.valueType??"value";if(a==="singleColumn"||a==="multipleColumn")for(let i=0;i<t.length&&i<r.length;i++){const u=r[i];let c=t[i];c<0&&c>=u.length&&(c=0);const h=u[c],f=Te(e,h);if(l.texts.push(f),o==="text")l.values.push(f);else if(o==="value"){let d=Pe(e,h);d==null&&(d=f),l.values.push(d)}else l.values.push(h)}else{let i=r[0];for(let u=0;u<t.length;u++){let c=t[u];c<0&&c>=i.length&&(c=0);const h=i[c],f=Te(e,h);if(l.texts.push(f),o==="text")l.values.push(f);else if(o==="value"){let d=Pe(e,h);d==null&&(d=f),l.values.push(d)}else{const d=Object.assign({},h);d.children=null,l.values.push(d)}if(!Array.isArray(h.children))break;i=h.children}}return l}function Ba(e){return{text:e,value:e}}const Ko=15,Yo=300,Wo=200,{create:Go}=W("picker-column");function Uo(e){e.stopPropagation()}function Xo(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Uo(e)}const Zo=Go({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...Da},emits:["click","change","update:modelValue"],setup(e,{emit:t}){const r=n.computed(()=>({"fox-picker__list":!0})),a=n.computed(()=>({height:`${X(e.visibleItemCount)*+e.itemHeight}px`})),l=n.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),o=n.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=C=>C>=d.currIndex+8||C<=d.currIndex-8,u=n.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${o.value}px`})),c=C=>`transform: rotate3d(1, 0, 0, ${-d.rotation*C}deg) translate3d(0px, 0px, 104px)`,h=n.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+o.value}px, 0)`})),f=n.ref(null),d=n.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),S=n.toRef(e,"source"),R=C=>Te(e,C),T=C=>Pe(e,C),p=Va(),O=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},s=(C,B=!1,N=!1)=>{if(d.currIndex=C,B){const E=()=>{d.moving=!1,t("update:modelValue",C),t("change",C)};N?d.transitionEndTrigger=E:E()}},g=(C,B,N)=>{let E=C+d.startDistance;if(B==="end"){const F=-(S.value.length-1)*e.itemHeight;E<F&&(E=F,(!N||N<=0)&&(N=e.swipeDuration)),E>0&&(E=0,(!N||N<=0)&&(N=e.swipeDuration));let k=Math.abs(Math.round(-E/e.itemHeight));const $=-k*e.itemHeight,V=`${(k+1)*d.rotation}deg`,P=N?N>0:!1;s(k,!0,P),v($,B,N,V)}else{let F=(-E/e.itemHeight+1)*d.rotation;const k=(S.value.length+1)*d.rotation,$=0;if(F=Math.min(Math.max(F,$),k),e.threeDimensional&&(F<$||F>k))return;v(E,null,void 0,`${F}deg`)}},v=(C=0,B,N=Wo,E)=>{B==="end"?d.scrollTime=N:d.scrollTime=0,d.deg=E,d.scrollDistance=C},x=(C,B)=>(C=Math.abs(C/B)/.003*(C<0?-1:1),C),w=C=>{if(!e.readonly){if(d.moving){const B=f.value,{transform:N}=window.getComputedStyle(B);d.scrollDistance=+N.slice(7,N.length-1).split(", ")[5]}d.startDistance=d.scrollDistance,p.start(C),d.transitionEndTrigger=null}},D=C=>{e.readonly||(d.moving=!0,p.move(C),p.isVertical()&&(d.moving=!0,Xo(C,!0)),g(p.deltaY.value,"",0))},b=()=>{if(e.readonly)return;const C=p.deltaY.value,B=p.duration.value;if(B<Yo&&Math.abs(C)>Ko){const E=x(C,B);g(E,"end",e.swipeDuration)}else g(C,"end",0)};return n.watch(()=>e.modelValue,C=>{if(d.currIndex!==C){d.currIndex=C;const B=-C*e.itemHeight;g(B)}}),n.onMounted(()=>{const C=-e.modelValue*e.itemHeight;g(C)}),{classes:r,styles:a,contentClasses:l,source:S,itemText:R,itemValue:T,...n.toRefs(d),roller:f,getItemText:Te,onTouchStart:w,onTouchMove:D,onTouchEnd:b,isHidden:i,setRollerStyle:c,touchRollerStyle:u,touchTileStyle:h,stopMomentum:O}}}),Jo={key:1,class:"fox-picker__item-tile"};function Qo(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles),onTouchstart:t[0]||(t[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:t[1]||(t[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:t[2]||(t[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:t[3]||(t[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:t[4]||(t[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[n.createElementVNode("view",{ref:"roller",class:n.normalizeClass(e.contentClasses),style:n.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.source,(i,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:n.normalizeStyle(e.setRollerStyle(u+1))},n.toDisplayString(e.itemText(i)),7)):(n.openBlock(),n.createElementBlock("view",Jo,n.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Ra=re(Zo,[["render",Qo]]),{create:ei,componentName:ti,scope:ni}=W("picker"),ai=ei({components:{[Ra.name]:Ra,[Vt.name]:Vt},props:{...on},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:t}){const{toLocaleRefs:r,t:a}=ge.useFoxI18n(ni),l=r(e,["title","cancelText","clearText","confirmText"]),o=n.ref(null),i=n.ref(Fo());n.watch(()=>e.visible,E=>{E&&i.value<=0&&setTimeout(()=>{if(o.value){const F=nt(o.value);i.value=F.height,Lo(i.value)}},50)});const u=n.computed(()=>({[ti]:!0})),c=zo(),h=n.ref("singleColumn");let f=n.ref([]);n.watchEffect(async()=>{if(e.source){let E=await c.load("select",e.source,e.params);if(E.length>0){let F=E[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let k=E,$=[];k.forEach(V=>{let P=V.map(A=>Ba(A));$.push(P)}),f.value=$}else f.value=E;h.value="multipleColumn"}else if(typeof F=="string"){let k=E,$=[],V=k.map(P=>Ba(P));$.push(V),f.value=$,h.value="singleColumn"}else{const k=sn(e,F);Array.isArray(k)?(h.value="cascade",f.value=[E]):(h.value="singleColumn",f.value=[E])}}}});const d=n.ref([]),S=n.ref(e.modelValue),R=n.ref([]);n.watch([()=>e.modelValue,()=>f.value],([E,F])=>{let k=_o(e,E,F,h.value);if(!Ne(k,R.value)){R.value=k;let $=Oa(e,k,F,h.value);$&&(d.value=$.texts,t("update:text",d.value))}});const T=n.ref(e.visible);n.watch(()=>e.visible,E=>{T.value=E});const p=E=>{let F=Ia(e,E);return ve(F)?F.getDefaultIndex??0:0},O=E=>{if(e.readonly===!0)return!0;let F=Ia(e,E);return ve(F)?F.readonly??!1:!1},s=(E,F,k=!1)=>{let $=R.value;$[E]=F;for(let P=0;P<E;P++)$[P]==null&&($[P]=p(P));if(h.value==="cascade")for(let P=E+1;P<v.value.length;P++){let A=p(P);P<$.length?$[P]=A:$.push(A)}else for(let P=$.length;P<v.value.length;P++){let A=p(P);$.push(A)}R.value=$;let V=Oa(e,$,f.value,h.value);if(V&&(d.value=V.texts,S.value=V.values),k)if(h.value==="singleColumn"){let P=V&&V.values.length>0?V.values[0]:"";t("change",P)}else t("change",V?.values)},g=E=>E<R.value.length?R.value[E]:p(E),v=n.computed(()=>{if(f.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return f.value;let E=[],F=0,k=f.value[0],$=0;for(;;){let V=k.map(M=>{let I=Object.assign({},M);return qo(e,I,null),I});E.push(V),F>=R.value.length?$=0:$=R.value[F],($<0||$>=k.length)&&($=0);let P=k[$];const A=sn(e,P);if(!Array.isArray(A))break;k=A,F++}return E}),x=n.computed(()=>X(+e.visibleItemCount-1)/2*i.value),w=n.computed(()=>X(e.visibleItemCount)*i.value),D=n.computed(()=>({height:`${w.value+56}px`}));return{...l,pickerLineRef:o,classes:u,popupStyles:D,columns:v,dataType:h,show:T,itemHeight:i,top:x,height:w,isReadonly:O,getIndex:g,change:(E,F)=>{s(E,F,!0)},close:()=>{t("close"),t("update:visible",!1)},confirm:()=>{if(e.readonly===!0){t("update:visible",!1);return}let E=f.value.length-1;for(;E>=0&&!(R.value[E]===null||R.value[E]===void 0);E--);if(E>=0&&s(E,0,!1),h.value==="singleColumn"){let F=S.value.length>0?S.value[0]:"";e.readonly||(t("update:modelValue",F),t("update:text",d.value)),t("confirm",F)}else e.readonly||(t("update:modelValue",S.value),t("update:text",d.value)),t("confirm",S.value);t("update:visible",!1)},clear:()=>{if(e.readonly===!0){t("update:visible",!1);return}h.value==="singleColumn"?(t("update:modelValue",""),t("change","")):(t("update:modelValue",[]),t("change",[])),t("clear",""),t("update:visible",!1)}}}}),ri={class:"fox-picker__bar"},li={class:"fox-picker__title"},oi={class:"fox-picker__bar__action"},ii={class:"fox-picker__column"};function si(e,t,r,a,l,o){const i=n.resolveComponent("fox-picker-column"),u=n.resolveComponent("fox-popup");return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[n.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":t[3]||(t[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,isWrapTeleport:e.isWrapTeleport},{default:n.withCtx(()=>[n.createElementVNode("view",ri,[n.createElementVNode("view",li,n.toDisplayString(e.title),1),n.createElementVNode("view",oi,[n.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:t[0]||(t[0]=(...c)=>e.close&&e.close(...c))},n.toDisplayString(e.cancelText),1),n.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:t[1]||(t[1]=(...c)=>e.confirm&&e.confirm(...c))},n.toDisplayString(e.confirmText),1),e.clearText?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:t[2]||(t[2]=(...c)=>e.clear&&e.clear(...c))},n.toDisplayString(e.clearText),1)):n.createCommentVNode("",!0)])]),n.renderSlot(e.$slots,"top"),n.createElementVNode("view",ii,[n.createElementVNode("view",{class:"fox-picker__mask",style:n.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),n.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:n.normalizeStyle({top:` ${e.top}px`})},null,4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columns,(c,h)=>(n.openBlock(),n.createElementBlock("view",{key:h,class:"fox-picker__columnitem"},[n.createVNode(i,{source:c,readonly:e.isReadonly(h),"column-index":h,modelValue:e.getIndex(h),"onUpdate:modelValue":f=>e.change(h,f),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),n.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","isWrapTeleport"])],2)}const rt=re(ai,[["render",si]]);/*! Element Plus Icons Vue v2.0.10 */var Ma=(e,t)=>{let r=e.__vccOpts||e;for(let[a,l]of t)r[a]=l;return r},ci={name:"ArrowDown"},ui={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fi=n.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),di=[fi];function hi(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("svg",ui,di)}var ja=Ma(ci,[["render",hi],["__file","arrow-down.vue"]]),mi={name:"Calendar"},gi={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yi=n.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),pi=[yi];function bi(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("svg",gi,pi)}var Pa=Ma(mi,[["render",bi],["__file","calendar.vue"]]);const Fa={...on,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}};function Si(e,t,r){return{props:{...oe,...he,...Fa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),d=e,S=n.computed(()=>({[d]:!0})),R=De(n.computed(()=>a.textAlign),"textAlign"),T=n.computed(()=>({textAlign:R.value??"right"})),p=J(a,"modelValue"),O=n.ref([]),s=n.computed(()=>Array.isArray(O.value)?O.value.join(" "):O.value),g=n.ref(!1),v=()=>{g.value=!0},x=k=>{g.value=k},w=k=>{p.value=k,o("update:modelValue",k,{}),o("change",k,{})};let D=J(a,"hintText"),b=n.ref(!1);const C=k=>{let V=k.target.value;c.value=!0,se(D.value)||(b.value=!0),o("focus",V,k)},B=k=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let V=k.target.value;a.maxLength&&V.length>Number(a.maxLength)&&(V=V.slice(0,Number(a.maxLength))),g.value?setTimeout(()=>{o("blur",V,k)},50):o("blur",V,k)},N=()=>{o("clear","")},E=n.computed(()=>we(a.unit)>0),F=n.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const k={class:S.value,style:T.value,type:"text",maxlength:a.maxLength,placeholder:u.placeholder.value,clearable:ie(a.clearable),readonly:!0,value:s.value,onClick:v,onFocus:C,onBlur:B},$={};l.slots.prepend&&($.prepend=l.slots.prepend),l.slots.append&&($.append=l.slots.append),l.slots.prefix&&($.prefix=l.slots.prefix),l.slots.suffix?$.suffix=l.slots.suffix:E.value?$.suffix=()=>[a.unit]:$.suffix=()=>n.h(y.ElIcon,{},{default:()=>n.h(ja)});const V=[],P=n.h(y.ElInput,k,$);V.push(P);const A={default:()=>V};if(l.slots.default){const L=l.slots.default();A.label=()=>L}const M=dt(a,on);M.disabled=!1,M.readonly=h.value||f.value,M.visible=g.value,M["onUpdate:visible"]=x,M.modelValue=p.value,M["onUpdate:modelValue"]=w,M.text=O.value,M["onUpdate:text"]=L=>{O.value=L},M.onClear=N;const I=n.h(rt,M);A.hide=()=>[I];const H={...de(a,Fa),hintText:D.value,hintVisible:b.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,H,A)}}}}const{componentName:wi,create:$i,scope:Ci}=W("select-item"),La=$i(Si(wi,Ci,ue));var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cn={},vi={get exports(){return cn},set exports(e){cn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){var r=1e3,a=6e4,l=36e5,o="millisecond",i="second",u="minute",c="hour",h="day",f="week",d="month",S="quarter",R="year",T="date",p="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(k,$,V){var P=String(k);return!P||P.length>=$?k:""+Array($+1-P.length).join(V)+k},x={s:v,z:function(k){var $=-k.utcOffset(),V=Math.abs($),P=Math.floor(V/60),A=V%60;return($<=0?"+":"-")+v(P,2,"0")+":"+v(A,2,"0")},m:function k($,V){if($.date()<V.date())return-k(V,$);var P=12*(V.year()-$.year())+(V.month()-$.month()),A=$.clone().add(P,d),M=V-A<0,I=$.clone().add(P+(M?-1:1),d);return+(-(P+(V-A)/(M?A-I:I-A))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:R,w:f,d:h,D:T,h:c,m:u,s:i,ms:o,Q:S}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},w="en",D={};D[w]=g;var b=function(k){return k instanceof E},C=function k($,V,P){var A;if(!$)return w;if(typeof $=="string"){var M=$.toLowerCase();D[M]&&(A=M),V&&(D[M]=V,A=M);var I=$.split("-");if(!A&&I.length>1)return k(I[0])}else{var q=$.name;D[q]=$,A=q}return!P&&A&&(w=A),A||!P&&w},B=function(k,$){if(b(k))return k.clone();var V=typeof $=="object"?$:{};return V.date=k,V.args=arguments,new E(V)},N=x;N.l=C,N.i=b,N.w=function(k,$){return B(k,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var E=function(){function k(V){this.$L=C(V.locale,null,!0),this.parse(V)}var $=k.prototype;return $.parse=function(V){this.$d=function(P){var A=P.date,M=P.utc;if(A===null)return new Date(NaN);if(N.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var I=A.match(O);if(I){var q=I[2]-1||0,H=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,H)):new Date(I[1],q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,H)}}return new Date(A)}(V),this.$x=V.x||{},this.init()},$.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},$.$utils=function(){return N},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(V,P){var A=B(V);return this.startOf(P)<=A&&A<=this.endOf(P)},$.isAfter=function(V,P){return B(V)<this.startOf(P)},$.isBefore=function(V,P){return this.endOf(P)<B(V)},$.$g=function(V,P,A){return N.u(V)?this[P]:this.set(A,V)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(V,P){var A=this,M=!!N.u(P)||P,I=N.p(V),q=function(Q,Z){var te=N.w(A.$u?Date.UTC(A.$y,Z,Q):new Date(A.$y,Z,Q),A);return M?te:te.endOf(h)},H=function(Q,Z){return N.w(A.toDate()[Q].apply(A.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(Z)),A)},j=this.$W,L=this.$M,z=this.$D,_="set"+(this.$u?"UTC":"");switch(I){case R:return M?q(1,0):q(31,11);case d:return M?q(1,L):q(0,L+1);case f:var K=this.$locale().weekStart||0,ae=(j<K?j+7:j)-K;return q(M?z-ae:z+(6-ae),L);case h:case T:return H(_+"Hours",0);case c:return H(_+"Minutes",1);case u:return H(_+"Seconds",2);case i:return H(_+"Milliseconds",3);default:return this.clone()}},$.endOf=function(V){return this.startOf(V,!1)},$.$set=function(V,P){var A,M=N.p(V),I="set"+(this.$u?"UTC":""),q=(A={},A[h]=I+"Date",A[T]=I+"Date",A[d]=I+"Month",A[R]=I+"FullYear",A[c]=I+"Hours",A[u]=I+"Minutes",A[i]=I+"Seconds",A[o]=I+"Milliseconds",A)[M],H=M===h?this.$D+(P-this.$W):P;if(M===d||M===R){var j=this.clone().set(T,1);j.$d[q](H),j.init(),this.$d=j.set(T,Math.min(this.$D,j.daysInMonth())).$d}else q&&this.$d[q](H);return this.init(),this},$.set=function(V,P){return this.clone().$set(V,P)},$.get=function(V){return this[N.p(V)]()},$.add=function(V,P){var A,M=this;V=Number(V);var I=N.p(P),q=function(L){var z=B(M);return N.w(z.date(z.date()+Math.round(L*V)),M)};if(I===d)return this.set(d,this.$M+V);if(I===R)return this.set(R,this.$y+V);if(I===h)return q(1);if(I===f)return q(7);var H=(A={},A[u]=a,A[c]=l,A[i]=r,A)[I]||1,j=this.$d.getTime()+V*H;return N.w(j,this)},$.subtract=function(V,P){return this.add(-1*V,P)},$.format=function(V){var P=this,A=this.$locale();if(!this.isValid())return A.invalidDate||p;var M=V||"YYYY-MM-DDTHH:mm:ssZ",I=N.z(this),q=this.$H,H=this.$m,j=this.$M,L=A.weekdays,z=A.months,_=function(Z,te,Se,$e){return Z&&(Z[te]||Z(P,M))||Se[te].slice(0,$e)},K=function(Z){return N.s(q%12||12,Z,"0")},ae=A.meridiem||function(Z,te,Se){var $e=Z<12?"AM":"PM";return Se?$e.toLowerCase():$e},Q={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:N.s(j+1,2,"0"),MMM:_(A.monthsShort,j,z,3),MMMM:_(z,j),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:_(A.weekdaysMin,this.$W,L,2),ddd:_(A.weekdaysShort,this.$W,L,3),dddd:L[this.$W],H:String(q),HH:N.s(q,2,"0"),h:K(1),hh:K(2),a:ae(q,H,!0),A:ae(q,H,!1),m:String(H),mm:N.s(H,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:I};return M.replace(s,function(Z,te){return te||Q[Z]||I.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(V,P,A){var M,I=N.p(P),q=B(V),H=(q.utcOffset()-this.utcOffset())*a,j=this-q,L=N.m(this,q);return L=(M={},M[R]=L/12,M[d]=L,M[S]=L/3,M[f]=(j-H)/6048e5,M[h]=(j-H)/864e5,M[c]=j/l,M[u]=j/a,M[i]=j/r,M)[I]||j,A?L:N.a(L)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return D[this.$L]},$.locale=function(V,P){if(!V)return this.$L;var A=this.clone(),M=C(V,P,!0);return M&&(A.$L=M),A},$.clone=function(){return N.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},k}(),F=E.prototype;return B.prototype=F,[["$ms",o],["$s",i],["$m",u],["$H",c],["$W",h],["$M",d],["$y",R],["$D",T]].forEach(function(k){F[k[1]]=function($){return this.$g($,k[0],k[1])}}),B.extend=function(k,$){return k.$i||(k($,E,B),k.$i=!0),B},B.locale=C,B.isDayjs=b,B.unix=function(k){return B(1e3*k)},B.en=D[w],B.Ls=D,B.p={},B})})(vi);const Ee=cn;var un={},ki={get exports(){return un},set exports(e){un=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,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"},a=/(\[[^[]*\])|([-_:/.,()\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?/,i=/\d*[^-_:/,()\s\d]+/,u={},c=function(p){return(p=+p)+(p>68?1900:2e3)},h=function(p){return function(O){this[p]=+O}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(O){if(!O||O==="Z")return 0;var s=O.match(/([+-]|\d\d)/g),g=60*s[1]+(+s[2]||0);return g===0?0:s[0]==="+"?-g:g}(p)}],d=function(p){var O=u[p];return O&&(O.indexOf?O:O.s.concat(O.f))},S=function(p,O){var s,g=u.meridiem;if(g){for(var v=1;v<=24;v+=1)if(p.indexOf(g(v,0,O))>-1){s=v>12;break}}else s=p===(O?"pm":"PM");return s},R={A:[i,function(p){this.afternoon=S(p,!1)}],a:[i,function(p){this.afternoon=S(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,h("seconds")],ss:[o,h("seconds")],m:[o,h("minutes")],mm:[o,h("minutes")],H:[o,h("hours")],h:[o,h("hours")],HH:[o,h("hours")],hh:[o,h("hours")],D:[o,h("day")],DD:[l,h("day")],Do:[i,function(p){var O=u.ordinal,s=p.match(/\d+/);if(this.day=s[0],O)for(var g=1;g<=31;g+=1)O(g).replace(/\[|\]/g,"")===p&&(this.day=g)}],M:[o,h("month")],MM:[l,h("month")],MMM:[i,function(p){var O=d("months"),s=(d("monthsShort")||O.map(function(g){return g.slice(0,3)})).indexOf(p)+1;if(s<1)throw new Error;this.month=s%12||s}],MMMM:[i,function(p){var O=d("months").indexOf(p)+1;if(O<1)throw new Error;this.month=O%12||O}],Y:[/[+-]?\d+/,h("year")],YY:[l,function(p){this.year=c(p)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function T(p){var O,s;O=p,s=u&&u.formats;for(var g=(p=O.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,N,E){var F=E&&E.toUpperCase();return N||s[E]||r[E]||s[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,$,V){return $||V.slice(1)})})).match(a),v=g.length,x=0;x<v;x+=1){var w=g[x],D=R[w],b=D&&D[0],C=D&&D[1];g[x]=C?{regex:b,parser:C}:w.replace(/^\[|\]$/g,"")}return function(B){for(var N={},E=0,F=0;E<v;E+=1){var k=g[E];if(typeof k=="string")F+=k.length;else{var $=k.regex,V=k.parser,P=B.slice(F),A=$.exec(P)[0];V.call(N,A),B=B.replace(A,"")}}return function(M){var I=M.afternoon;if(I!==void 0){var q=M.hours;I?q<12&&(M.hours+=12):q===12&&(M.hours=0),delete M.afternoon}}(N),N}}return function(p,O,s){s.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var g=O.prototype,v=g.parse;g.parse=function(x){var w=x.date,D=x.utc,b=x.args;this.$u=D;var C=b[1];if(typeof C=="string"){var B=b[2]===!0,N=b[3]===!0,E=B||N,F=b[2];N&&(F=b[2]),u=this.$locale(),!B&&F&&(u=s.Ls[F]),this.$d=function(P,A,M){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*P);var I=T(A)(P),q=I.year,H=I.month,j=I.day,L=I.hours,z=I.minutes,_=I.seconds,K=I.milliseconds,ae=I.zone,Q=new Date,Z=j||(q||H?1:Q.getDate()),te=q||Q.getFullYear(),Se=0;q&&!H||(Se=H>0?H-1:Q.getMonth());var $e=L||0,Ge=z||0,Fe=_||0,Vn=K||0;return ae?new Date(Date.UTC(te,Se,Z,$e,Ge,Fe,Vn+60*ae.offset*1e3)):M?new Date(Date.UTC(te,Se,Z,$e,Ge,Fe,Vn)):new Date(te,Se,Z,$e,Ge,Fe,Vn)}catch{return new Date("")}}(w,C,D),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),E&&w!=this.format(C)&&(this.$d=new Date("")),u={}}else if(C instanceof Array)for(var k=C.length,$=1;$<=k;$+=1){b[1]=C[$-1];var V=s.apply(this,b);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}$===k&&(this.$d=new Date(""))}else v.call(this,x)}}})})(ki);const Di=un;var fn={},Ti={get exports(){return fn},set exports(e){fn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){return function(r,a,l){var o=a.prototype,i=o.format;l.en.ordinal=function(u){var c=["th","st","nd","rd"],h=u%100;return"["+u+(c[(h-20)%10]||c[h]||c[0])+"]"},o.format=function(u){var c=this,h=this.$locale();if(!this.isValid())return i.bind(this)(u);var f=this.$utils(),d=(u||"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 h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return f.s(c.week(),S==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return f.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 i.bind(this)(d)}}})})(Ti);const Ei=fn;var dn={},xi={get exports(){return dn},set exports(e){dn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){return function(r,a,l){var o=a.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},u=function(d,S,R,T,p){var O=d.name?d:d.$locale(),s=i(O[S]),g=i(O[R]),v=s||g.map(function(w){return w.slice(0,T)});if(!p)return v;var x=O.weekStart;return v.map(function(w,D){return v[(D+(x||0))%7]})},c=function(){return l.Ls[l.locale()]},h=function(d,S){return d.formats[S]||function(R){return R.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,p,O){return p||O.slice(1)})}(d.formats[S.toUpperCase()])},f=function(){var d=this;return{months:function(S){return S?S.format("MMMM"):u(d,"months")},monthsShort:function(S){return S?S.format("MMM"):u(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):u(d,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):u(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):u(d,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return h(d.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(S){return h(d,S)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return u(c(),"months")},l.monthsShort=function(){return u(c(),"monthsShort","months",3)},l.weekdays=function(d){return u(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return u(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return u(c(),"weekdaysMin","weekdays",2,d)}}})})(xi);const Vi=dn;var hn={},Ni={get exports(){return hn},set exports(e){hn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){var r="week",a="year";return function(l,o,i){var u=o.prototype;u.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(a).add(1,a).date(h),d=i(this).endOf(r);if(f.isBefore(d))return 1}var S=i(this).startOf(a).date(h).startOf(r).subtract(1,"millisecond"),R=this.diff(S,r,!0);return R<0?i(this).startOf("week").week():Math.ceil(R)},u.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ni);const Ii=hn;var mn={},Ai={get exports(){return mn},set exports(e){mn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){return function(r,a){a.prototype.weekYear=function(){var l=this.month(),o=this.week(),i=this.year();return o===1&&l===11?i+1:l===0&&o>=52?i-1:i}}})})(Ai);const Oi=mn;var gn={},Bi={get exports(){return gn},set exports(e){gn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){return function(r,a,l){a.prototype.dayOfYear=function(o){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Bi);const Ri=gn;var yn={},Mi={get exports(){return yn},set exports(e){yn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){return function(r,a){a.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Mi);const ji=yn;var pn={},Pi={get exports(){return pn},set exports(e){pn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ve,function(){return function(r,a){a.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Pi);const Fi=pn;Ee.extend(Vi),Ee.extend(Ei),Ee.extend(Di),Ee.extend(Ii),Ee.extend(Oi),Ee.extend(Ri),Ee.extend(ji),Ee.extend(Fi);const Y={format(e,t){return Ee(e).format(t)},parser(e,t){return Ee(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,r){const l=new Date(e+"/"+t+"/"+r).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let a=new Date(e+"/"+t+"/01").getDay();return a==0&&(a=7),a},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const r=e.getFullYear(),a=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[r,a,l].join(t)},getDay(e){e=e||0;let t=new Date;const r=e*(1e3*60*60*24);return t=new Date(t.getTime()+r),this.date2Str(t)},compareDate(e,t){let r;typeof e=="string"?r=new Date(e.replace("-","/").replace("-","/")):r=e;let a;return typeof t=="string"?a=new Date(t.replace("-","/").replace("-","/")):a=t,!(r>=a)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let r;typeof e=="string"?r=new Date(e).getTime():r=e.getTime();let a;return typeof t=="string"?a=new Date(t).getTime():a=t,r==a},inScope4Day(e,t,r){const a=new Date(new Date(t).setDate(t.getDate()+r)),l=e.getTime(),o=a.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i},inScope4Month(e,t,r){const a=new Date(new Date(t).setMonth(t.getMonth()+r)),l=e.getTime(),o=a.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i}},qa=new Date().getFullYear(),bn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},Nt=(e,t,r)=>{let a;if(Ce(t)?a=t:typeof t=="string"&&we(t)>0?a=Y.parser(t,r):a=new Date,a.toString()==="Invalid Date")return null;let l=Math.max(a.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Sn=(e,t,r)=>{Ce(t)||(t=e.minDate);let a=Math.max(t.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),Y.format(new Date(a),r)};let wn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(qa-10,0,1),validator:Ce},maxDate:{type:Date,default:()=>new Date(qa+10,11,31),validator:Ce},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},isWrapTeleport:{type:Boolean,default:!0}};const{create:Li,scope:qi}=W("date-picker"),Hi=Li({components:{[rt.name]:rt},props:{...wn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:t}){const{t:r}=ge.useFoxI18n(qi),a={day:r("day"),year:r("year"),month:r("month"),hour:r("hour"),minute:r("minute"),seconds:r("seconds")},l=n.ref(!1);n.watch(()=>e.visible,s=>{l.value=s});function o(s,g){return new Date(s,g,0).getDate()}const i=(s,g)=>{const v=e[`${s}Date`],x=v.getFullYear();let w=1,D=1,b=0,C=0;s==="max"&&(w=12,D=o(g.getFullYear(),g.getMonth()+1),b=23,C=59);const B=C;return g.getFullYear()===x&&(w=v.getMonth()+1,g.getMonth()+1===w&&(D=v.getDate(),g.getDate()===D&&(b=v.getHours(),g.getHours()===b&&(C=v.getMinutes())))),{[`${s}Year`]:x,[`${s}Month`]:w,[`${s}Date`]:D,[`${s}Hour`]:b,[`${s}Minute`]:C,[`${s}Seconds`]:B}},u=n.computed(()=>{if(!S.value)return[];const{maxYear:s,maxDate:g,maxMonth:v,maxHour:x,maxMinute:w,maxSeconds:D}=i("max",S.value),{minYear:b,minDate:C,minMonth:B,minHour:N,minMinute:E,minSeconds:F}=i("min",S.value);let k=[{type:"year",range:[b,s]},{type:"month",range:[B,v]},{type:"day",range:[C,g]},{type:"hour",range:[N,x]},{type:"minute",range:[E,w]},{type:"seconds",range:[F,D]}];switch(e.type){case"date":k=k.slice(0,3);break;case"datetime":k=k.slice(0,5);break;case"time":k=k.slice(3,6);break;case"month-day":k=k.slice(1,3);break;case"datehour":k=k.slice(0,4);break}return k}),c=(s,g,v)=>{if(!(g>s))return null;const x=[];for(;s<=g;)e.isShowChinese?x.push({text:s+a[v],value:s}):x.push({text:`${s}`,value:s}),v==="minute"?s+=e.minuteStep:s++;return x},h=n.computed(()=>{let s=[];return u.value.forEach(g=>{let v=c(g.range[0],g.range[1],g.type);v&&s.push(v)}),s}),f=(s,g)=>s==="year"?g.getFullYear():s==="month"?g.getMonth()+1:s==="day"?g.getDate():s==="hour"?g.getHours():s==="minute"?g.getMinutes():s==="seconds"?g.getSeconds():0,d=n.ref(),S=n.ref(null);n.watchEffect(()=>{let s,g=e.modelValue;if(typeof g=="string"?g.length==0?s=new Date:e.valueFormat?s=Nt(e,e.modelValue,e.valueFormat):s=Nt(e,g,bn[e.type]):Ce(g)?s=g:s=new Date,!!s&&(!S.value||s.getTime()!==S.value.getTime())){S.value=s;let v=[];u.value.forEach(x=>{let w=f(x.type,s);v.push(w)}),d.value=v}});const R=s=>{if(e.type==="date"){let g=s;S.value=new Date(g[0],g[1]-1,Math.min(g[2],o(g[0],g[1])))}else if(e.type==="datetime"){let g=s;S.value=new Date(g[0],g[1]-1,Math.min(g[2],o(g[0],g[1])),g[3],g[4])}else if(e.type==="datehour"){let g=s;S.value=new Date(g[0],g[1]-1,Math.min(g[2],o(g[0],g[1])),g[3])}else if(e.type==="time"){let g=s,v=S.value??new Date,x=new Date(v.getFullYear(),v.getMonth(),v.getDate(),g[0],g[1],g[2]);S.value=x}else if(e.type==="month-day"){let g=s,v=S.value??new Date,x=new Date(v.getFullYear(),g[0]-1,g[1]);S.value=x}d.value=s};return{columns:h,dateIndexs:d,show:l,onClose:()=>{l.value=!1,t("update:visible",!1),t("update:close",!1)},onConfirm:s=>{R(s),l.value=!1;let g=S.value??new Date;if(e.valueFormat){let v=Sn(e,g,e.valueFormat);t("update:modelValue",v)}else t("update:modelValue",g);t("update:visible",!1),t("confirm",s)},onClear:()=>{t("clear")}}}});function zi(e,t,r,a,l,o){const i=n.resolveComponent("fox-picker");return n.openBlock(),n.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,isWrapTeleport:e.isWrapTeleport},{top:n.withCtx(()=>[n.renderSlot(e.$slots,"top")]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","isWrapTeleport"])}const $n=re(Hi,[["render",zi]]);function _i(e){let t=e.format;if(!t){let r=e.type??"date";t=bn[r]}return t}const Ha={...wn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Ki(e,t,r){return{props:{...oe,...he,...Ha},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),S=J(a,"modelValue",$=>$==null?null:typeof $=="string"?$.length==0?null:a.valueFormat?Nt(a,$,a.valueFormat)??$:Nt(a,$,bn[a.type])??$:Ce($)?$:null),R=n.computed(()=>{if(!S.value)return"";const $=_i(a);return Sn(a,S.value,$)}),T=e,p=n.computed(()=>({[T]:!0})),O=De(n.computed(()=>a.textAlign),"textAlign"),s=n.computed(()=>({textAlign:O.value??"right"}));let g=J(a,"hintText"),v=n.ref(!1);const x=n.ref(!1),w=()=>{x.value=!0},D=()=>{x.value=!1},b=$=>{x.value=$},C=$=>{if(S.value=$,a.valueFormat){let V=Sn(a,$,a.valueFormat);o("update:modelValue",V,{}),o("change",V,{})}else o("update:modelValue",$,{}),o("change",$,{})},B=$=>{let P=$.target.value;c.value=!0,o("focus",P,$)},N=$=>{setTimeout(()=>{c.value=!1},0);let P=$.target.value;a.maxLength&&P.length>Number(a.maxLength)&&(P=P.slice(0,Number(a.maxLength))),o("blur",P,$)},E=$=>{S.value="",o("update:modelValue","",$),o("change","",$),o("clear",""),D()},F=n.computed(()=>we(a.unit)>0),k=n.ref();return me({showPicker:w,hidePicker:D,focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const $={class:p.value,style:s.value,type:"text",maxlength:a.maxLength,placeholder:u.placeholder.value,readonly:!0,clearable:a.clearable,value:R.value,onClick:w,onFocus:B,onBlur:N},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix?V.prefix=l.slots.prefix:V.prefix=()=>n.h(y.ElIcon,{},{default:()=>n.h(Pa)}),l.slots.suffix?V.suffix=l.slots.suffix:F.value&&(V.suffix=()=>[a.unit]);const P=[],A=n.h(y.ElInput,$,V);P.push(A);const M={default:()=>P};if(l.slots.default){const _=l.slots.default();M.label=()=>_}const I=dt(a,wn);I.valueFormat=null,I.disabled=!1,I.readonly=h.value||f.value,I.visible=x.value,I["onUpdate:visible"]=b,I.modelValue=S.value,I["onUpdate:modelValue"]=C,I.onClear=E;const q={};if(l.slots.top){const _=l.slots.top();q.top=()=>_}if(l.slots.bottom){const _=l.slots.bottom();q.default=()=>_}const H=n.h($n,I,q);M.hide=()=>[H];const L={...de(a,Ha),hintText:g.value,hintVisible:v.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,L,M)}}}}const{componentName:Yi,create:Wi,scope:Gi}=W("date-item"),za=Wi(Ki(Yi,Gi,ue)),lt=e=>typeof e=="string"?e:Ce(e)?Y.date2Str(e):"",_a=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Cn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},popupStyle:{type:[Object]},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Date,Array],default:null},startDate:{type:[String,Date],default:Y.getDay(0)},endDate:{type:[String,Date],default:Y.getDay(365)}},{create:Ui,scope:Xi}=W("calendar-pane"),Zi=Ui({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:null},startDate:{type:String,default:Y.getDay(0)},endDate:{type:String,default:Y.getDay(365)}},emits:["choose","update","close","select"],setup(e,{emit:t,slots:r}){const{localeArrayRef:a,toLocaleRefs:l,t:o}=ge.useFoxI18n(Xi),i=a("weekdays"),u=l(e,["title","confirmText","startText","endText"]),c=n.ref(null),h=n.ref(null),f=n.ref(null),d=n.ref(null),S=n.ref(0),R=n.computed(()=>s.monthsData.slice(s.defaultRange[0],s.defaultRange[1])),T=n.computed(()=>r.btn),p=n.computed(()=>r.topInfo),O=n.computed(()=>r.bottomInfo),s=n.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"calendar-month-day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),g=j=>j.split("-"),v=j=>Y.isEqual(s.currDate[0],j),x=j=>Y.isEqual(s.currDate[1],j),w=(j,L,z)=>L.curData[0]+"-"+L.curData[1]+"-"+Y.getNumTwoBit(+j.day),D=(j,L,z)=>{const _=w(j,L);return j.type=="curr"?!s.isRange&&Y.isEqual(s.currDate,_)||s.isRange&&(v(_)||x(_))?`${s.dayPrefix}-active`:s.propStartDate&&Y.compareDate(_,s.propStartDate)||s.propEndDate&&Y.compareDate(s.propEndDate,_)?`${s.dayPrefix}-disabled`:s.isRange&&Array.isArray(s.currDate)&&Object.values(s.currDate).length==2&&Y.compareDate(s.currDate[0],_)&&Y.compareDate(_,s.currDate[1])?`${s.dayPrefix}-choose`:null:`${s.dayPrefix}-disabled`},b=()=>{(s.isRange&&s.chooseData.length==2||!s.isRange)&&(t("choose",s.chooseData),e.poppable&&t("update"))},C=(j,L,z,_)=>{if(D(j,L)!=`${s.dayPrefix}-disabled`){let K=[...L.curData];K[2]=typeof j.day=="number"?Y.getNumTwoBit(j.day):j.day,K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=Y.getWhatDay(+K[0],+K[1],+K[2]),s.isRange?(Object.values(s.currDate).length==2?s.currDate=[K[3]]:Y.compareDate(s.currDate[0],K[3])?Array.isArray(s.currDate)&&s.currDate.push(K[3]):Array.isArray(s.currDate)&&s.currDate.unshift(K[3]),s.chooseData.length==2||!s.chooseData.length?s.chooseData=[...K]:Y.compareDate(s.chooseData[3],K[3])?s.chooseData=[[...s.chooseData],[...K]]:s.chooseData=[[...K],[...s.chooseData]]):(s.currDate=K[3],s.chooseData=[...K]),z||(t("select",s.chooseData),e.isAutoBackFill&&b())}},B=j=>{const L=j=="prev"?s.monthsData[0]:s.monthsData[s.monthsData.length-1];let z=parseInt(L.curData[0]),_=parseInt(L.curData[1].toString().replace(/^0/,""));switch(j){case"prev":_==1&&(z-=1),_=_==1?12:--_;break;case"next":_==12&&(z+=1),_=_==12?1:++_;break}return[z,Y.getNumTwoBit(_),Y.getMonthDays(String(z),String(_))]},N=(j,L,z)=>{let{year:_,month:K}=z;return L=="prev"&&j>=7&&(j-=7),Array.from(Array(j),(ae,Q)=>({day:Q+1,type:L,year:_,month:K}))},E=(j,L,z,_)=>{let{year:K,month:ae}=z;return L=="prev"&&j>=7&&(j-=7),Array.from(Array(_),(Z,te)=>({day:te+1,type:L,year:K,month:ae})).slice(_-j)},F=(j,L)=>{const z=Y.getMonthPreDay(+j[0],+j[1]);let _=j[1]-1,K=j[0];_<=0&&(_=12,K+=1);const ae=Y.getMonthDays(j[0],j[1]),Q=Y.getMonthDays(K+"",_+""),Z={year:j[0],month:j[1]},te={curData:j,title:o("monthTitle",{year:Z.year,month:Z.month}),monthData:[...E(z,"prev",{month:_,year:K},Q),...N(ae,"curr",Z)]};te.cssHeight=39+(te.monthData.length>35?384:320);let Se=0;s.monthsData.length>0&&(Se=s.monthsData[s.monthsData.length-1].cssScrollHeight+s.monthsData[s.monthsData.length-1].cssHeight),te.cssScrollHeight=Se,L=="next"?(!s.endData||!Y.compareDate(`${s.endData[0]}-${s.endData[1]}-${Y.getMonthDays(s.endData[0],s.endData[1])}`,`${j[0]}-${j[1]}-${j[2]}`))&&s.monthsData.push(te):!s.startData||!Y.compareDate(`${j[0]}-${j[1]}-${j[2]}`,`${s.startData[0]}-${s.startData[1]}-01`)?s.monthsData.unshift(te):s.unLoadPrev=!0},k=()=>{let j=e.startDate?e.startDate:Y.getDay(0),L=e.endDate?e.endDate:Y.getDay(365);s.propStartDate=j,s.propEndDate=L,s.startData=g(j),s.endData=g(L),!e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length<=0?s.currDate=s.isRange?[Y.date2Str(new Date),Y.getDay(1)]:Y.date2Str(new Date):s.currDate=s.isRange?[...e.defaultValue]:e.defaultValue;const z={year:Number(s.startData[0]),month:Number(s.startData[1])},_={year:Number(s.endData[0]),month:Number(s.endData[1])};let K=_.month-z.month;_.year-z.year>0&&(K=K+12*(_.year-z.year)),F(s.startData,"next");let ae=1;do F(B("next"),"next");while(ae++<K);s.monthsNum=K,s.isRange&&Array.isArray(s.currDate)?(j&&Y.compareDate(s.currDate[0],j)&&s.currDate.splice(0,1,j),L&&Y.compareDate(L,s.currDate[1])&&s.currDate.splice(1,1,L),s.defaultData=[...g(s.currDate[0]),...g(s.currDate[1])]):(j&&Y.compareDate(s.currDate,j)?s.currDate=j:L&&!Y.compareDate(s.currDate,L)&&(s.currDate=L),s.defaultData=[...g(s.currDate)]);let Q=0,Z=0;s.monthsData.forEach(($e,Ge)=>{let Fe=o("monthTitle",{year:s.defaultData[0],month:s.defaultData[1]});$e.title==Fe&&(Q=Ge),s.isRange&&(Fe=o("monthTitle",{year:s.defaultData[3],month:s.defaultData[4]}),$e.title==Fe&&(Z=Ge))}),$(K,Q),s.currentIndex=Q,s.yearMonthTitle=s.monthsData[s.currentIndex].title,s.isRange?(C({day:s.defaultData[2],type:"curr"},s.monthsData[s.currentIndex],!0),C({day:s.defaultData[5],type:"curr"},s.monthsData[Z],!0)):C({day:s.defaultData[2],type:"curr"},s.monthsData[s.currentIndex],!0);let te=s.monthsData[s.monthsData.length-1],Se=te.cssHeight+te.cssScrollHeight;zn(()=>{c?.value&&h?.value&&d?.value&&(S.value=c.value.clientHeight,h.value.style.height=`${Se}px`,c.value.scrollTop=s.monthsData[s.currentIndex].cssScrollHeight)}),s.avgHeight=Math.floor(Se/(K+1))},$=(j,L)=>{j>=3?L>0&&L<j?s.defaultRange=[L-1,L+3]:L==0?s.defaultRange=[L,L+4]:L==j&&(s.defaultRange=[L-2,L+2]):s.defaultRange=[0,j+2];let z=s.monthsData[s.defaultRange[0]].cssScrollHeight;s.translateY=z},V=(j,L)=>s.isRange&&j.type=="curr"&&D(j,L)=="calendar-month-day-active",P=(j,L)=>V(j,L)&&v(w(j,L)),A=(j,L)=>s.currDate.length>=2&&x(w(j,L))?V(j,L):!1,M=(j,L)=>{if(s.currDate.length>=2)return Y.isEqual(s.currDate[0],s.currDate[1])},I=j=>{const L=`${j.year}-${j.month}-${j.day<10?"0"+j.day:j.day}`;return Y.isEqual(L,Y.date2Str(new Date))},q=j=>{const L=j.target.scrollTop;let z=Math.floor(L/s.avgHeight);if(z==0)L>=s.monthsData[z+1].cssScrollHeight&&(z+=1);else if(z>0&&z<s.monthsNum-1)L>=s.monthsData[z+1].cssScrollHeight&&(z+=1),L<s.monthsData[z].cssScrollHeight&&(z-=1);else{const _=Math.round(L+S.value);_<s.monthsData[z].cssScrollHeight+s.monthsData[z].cssHeight&&L>s.monthsData[z-1].cssScrollHeight&&(z-=1),z+1<=s.monthsNum&&_>=s.monthsData[z+1].cssScrollHeight+s.monthsData[z+1].cssHeight&&(z+=1),L<s.monthsData[z-1].cssScrollHeight&&(z-=1)}s.currentIndex!==z&&(s.currentIndex=z,$(s.monthsNum,z)),s.yearMonthTitle=s.monthsData[z].title},H=()=>{s.chooseData.splice(0),s.monthsData.splice(0),k()};return k(),n.watch(()=>e.defaultValue,j=>{j&&e.poppable&&H()}),{weeks:i,compConthsData:R,showTopBtn:T,topInfo:p,bottomInfo:O,rangeTip:M,mothsViewScroll:q,getClass:D,isStartTip:P,isEndTip:A,chooseDay:C,isCurrDay:I,confirm:b,monthsPanel:h,months:c,weeksPanel:f,viewArea:d,...n.toRefs(s),...n.toRefs(e),...u}}}),Ji={key:0,class:"calendar-title"},Qi={key:1,class:"calendar-top-slot"},es={key:2,class:"calendar-curr-month"},ts={class:"calendar-weeks",ref:"weeksPanel"},ns={class:"calendar-months-panel",ref:"monthsPanel"},as={class:"calendar-month-title"},rs={class:"calendar-month-con"},ls=["onClick"],os={class:"calendar-day"},is={key:0,class:"calendar-curr-tips calendar-curr-tips-top"},ss={key:1,class:"calendar-curr-tips calendar-curr-tips-bottom"},cs={key:2,class:"calendar-curr-tip-curr"},us={key:4,class:"calendar-day-tip"},fs={key:0,class:"fox-calendar-footer"};function ds(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(["fox-calendar fox-calendar-taro",{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}])},[n.createElementVNode("view",{class:n.normalizeClass(["fox-calendar-header",{"fox-calendar-header-tile":!e.poppable}])},[e.showTitle?(n.openBlock(),n.createElementBlock("view",Ji,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),e.showTopBtn?(n.openBlock(),n.createElementBlock("view",Qi,[n.renderSlot(e.$slots,"btn")])):n.createCommentVNode("",!0),e.showSubTitle?(n.openBlock(),n.createElementBlock("view",es,n.toDisplayString(e.yearMonthTitle),1)):n.createCommentVNode("",!0),n.createElementVNode("view",ts,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.weeks,(i,u)=>(n.openBlock(),n.createElementBlock("view",{class:"calendar-week-item",key:u},n.toDisplayString(i),1))),128))],512)],2),n.createElementVNode("view",{class:"fox-calendar-content",ref:"months",onScroll:t[0]||(t[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[n.createElementVNode("view",ns,[n.createElementVNode("view",{class:"viewArea",ref:"viewArea",style:n.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.compConthsData,(i,u)=>(n.openBlock(),n.createElementBlock("view",{class:"calendar-month",key:u},[n.createElementVNode("view",as,n.toDisplayString(i.title),1),n.createElementVNode("view",rs,[n.createElementVNode("view",{class:n.normalizeClass(["calendar-month-item",e.type==="range"?"month-item-range":""])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.monthData,(c,h)=>(n.openBlock(),n.createElementBlock("view",{key:h,class:n.normalizeClass(["calendar-month-day",e.getClass(c,i)]),onClick:f=>e.chooseDay(c,i)},[n.createElementVNode("view",os,[n.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[n.createTextVNode(n.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(n.openBlock(),n.createElementBlock("view",is,[n.renderSlot(e.$slots,"topInfo",{date:c.type=="curr"?c:""})])):n.createCommentVNode("",!0),e.bottomInfo?(n.openBlock(),n.createElementBlock("view",ss,[n.renderSlot(e.$slots,"bottomInfo",{date:c.type=="curr"?c:""})])):n.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(n.openBlock(),n.createElementBlock("view",cs," 今天 ")):n.createCommentVNode("",!0),e.isStartTip(c,i)?(n.openBlock(),n.createElementBlock("view",{key:3,class:n.normalizeClass(["calendar-day-tip",{"calendar-curr-tips-top":e.rangeTip(c,i)}])},n.toDisplayString(e.startText),3)):n.createCommentVNode("",!0),e.isEndTip(c,i)?(n.openBlock(),n.createElementBlock("view",us,n.toDisplayString(e.endText),1)):n.createCommentVNode("",!0)],10,ls))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(n.openBlock(),n.createElementBlock("view",fs,[n.createElementVNode("view",{class:"calendar-confirm-btn",onClick:t[1]||(t[1]=(...i)=>e.confirm&&e.confirm(...i))},n.toDisplayString(e.confirmText),1)])):n.createCommentVNode("",!0)],2)}const Ka=re(Zi,[["render",ds]]),{create:hs}=W("calendar-picker"),ms=hs({components:{[Ka.name]:Ka},props:{...Cn},emits:["choose","close","update:visible","select"],setup(e,{emit:t,slots:r}){const a=e.popupStyle??n.ref({height:"80%",width:"40%",left:"30%"}),l=n.computed(()=>e.type==="range"),o=n.computed(()=>{let v;if(_a(e.defaultValue))v=l.value?[Y.date2Str(new Date),Y.getDay(1)]:Y.date2Str(new Date);else if(l.value)if(Array.isArray(e.defaultValue)&&e.defaultValue.length==2){let x=lt(e.defaultValue[0]),w=lt(e.defaultValue[1]);v=[x,w]}else v=[Y.date2Str(new Date),Y.getDay(1)];else{let x=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue;v=lt(x??new Date)}return v}),i=n.computed(()=>lt(e.startDate)),u=n.computed(()=>lt(e.endDate)),c=n.computed(()=>r.btn),h=n.computed(()=>r.topInfo),f=n.computed(()=>r.day),d=n.computed(()=>r.bottomInfo);let S=n.ref(e.visible);const R=n.ref(null),T=()=>{S.value=!1,t("update:visible",!1)},p=()=>{S.value=!1,t("close"),t("update:visible",!1)},O=v=>{p(),t("choose",v)},s=()=>{p()},g=v=>{t("select",v)};return n.watch(()=>e.visible,v=>{S.value=v}),{popupStyle:a,defaultValue:o,startDateStr:i,endDateStr:u,closePopup:s,update:T,close:p,choose:O,select:g,calendarRef:R,showTopBtn:c,topInfo:h,dayInfo:f,bottomInfo:d}}});function gs(e,t,r,a,l,o){const i=n.resolveComponent("fox-calendar-pane"),u=n.resolveComponent("fox-popup");return e.poppable?(n.openBlock(),n.createBlock(u,{key:0,visible:e.visible,position:"bottom",round:"",closeable:!0,onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"destroy-on-close":!0,style:n.normalizeStyle(e.popupStyle)},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createBlock(i,{key:0,props:"",ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},n.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"topInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"topInfo",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottomInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"bottomInfo",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","show-today","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title"])):n.createCommentVNode("",!0)]),_:3},8,["visible","onClickOverlay","onClickCloseIcon","style"])):(n.openBlock(),n.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDateStr,"end-date":e.endDateStr,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},n.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"topInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"topInfo",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottomInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"bottomInfo",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onClose","onChoose","onSelect","show-title","show-sub-title"]))}const vn=re(ms,[["render",gs]]),kn=(e,t)=>{let r;return Ce(e)?r=e:typeof e=="string"&&we(e)>0?r=Y.parser(e,t):r=new Date,r},ze=(e,t,r)=>(Ce(t)||(t=new Date),Y.format(t,r)),_e=e=>{let t=`${e.getFullYear()}`,r=`${e.getMonth()+1}`,a=`${e.getDate()}`,l=Y.date2Str(e),o=Y.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[t,r,a,l,o]},Ya={...Cn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function ys(e,t,r){return{props:{...oe,...he,...Ya},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]);let c=J(a,"hintText"),h=n.ref(!1);const f=n.ref(!1),d=pe(n.computed(()=>a.disabled)),S=ye(n.computed(()=>a.readonly)),R=n.computed(()=>a.type==="range"),T=n.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{T.startDate!==null&&(T.startDate=null,T.endDate=null,T.startArray=[],T.endArray=[])},O=(A,M="one",I="YYYY-MM-DD")=>{if(_a(A)){p();return}if(R.value&&Array.isArray(A)&&A.length==2){let q,H;typeof A[0]=="string"?(q=kn(A[0],I),H=kn(A[1],I)):(q=A[0],H=A[1]);let j=_e(q),L=_e(H);(T.startDate===null||T.startDate.getTime()!==q.getTime()||T.endDate?.getTime()!==H.getTime())&&(T.startDate=q,T.startArray=j,T.endDate=H,T.endArray=L)}else{let q;typeof A=="string"?q=kn(A,I):q=A;let H=_e(q);(T.startDate===null||T.startDate.getTime()!==q.getTime())&&(T.startDate=q,T.startArray=H)}};O(a.modelValue,a.type,a.valueFormat),n.watch(()=>a.modelValue,A=>{O(A,a.type,a.valueFormat)});const s=n.computed(()=>{if(T.startDate===null)return"";if(R.value){let A=ze(a,T.startDate,a.format),M=ze(a,T.endDate,a.format);return`${A} ${a.rangeSeparator} ${M}`}else{let A=ze(a,T.startDate,a.format);return a.showWeek&&(A=`${A} ${T.startArray[4]}`),A}}),g=n.computed(()=>{if(T.startDate===null)return null;if(R.value){let A=Y.date2Str(T.startDate),M=Y.date2Str(T.endDate??new Date);return[A,M]}else return Y.date2Str(T.startDate)}),v="fox-input-item",x=n.computed(()=>({[v]:!0,[`${v}__disabled`]:d.value})),w=De(n.computed(()=>a.textAlign),"textAlign"),D=n.computed(()=>({textAlign:w.value??"right"})),b=n.ref(!1),C=()=>{S.value||d.value||(b.value=!0)},B=()=>{b.value=!1},N=A=>{b.value=A},E=A=>{if(A){if(R.value&&Array.isArray(A)){let M=A[0],I=X(M[0]),q=X(M[1]),H=X(M[2]),j=new Date(I,q-1,H),L=A[1];I=X(L[0]),q=X(L[1]),H=X(L[2]);let z=new Date(I,q-1,H);if(T.startDate=j,T.startArray=_e(j),T.endDate=z,T.endArray=_e(z),a.valueFormat){let _=ze(a,j,a.valueFormat),K=ze(a,z,a.valueFormat);o("update:modelValue",[_,K],{})}else o("update:modelValue",[j,z],{})}else{let M=A,I=X(M[0]),q=X(M[1]),H=X(M[2]),j=new Date(I,q-1,H);if(T.startDate=j,T.startArray=_e(j),a.valueFormat){let L=ze(a,j,a.valueFormat);o("update:modelValue",L,{})}else o("update:modelValue",j,{})}o("change",A,{})}},F=A=>{let I=A.target.value;f.value=!0,o("focus",I,A)},k=A=>{setTimeout(()=>{f.value=!1},0);let I=A.target.value;a.maxLength&&I.length>Number(a.maxLength)&&(I=I.slice(0,Number(a.maxLength))),o("blur",I,A)},$=n.computed(()=>we(a.unit)>0),V=A=>{p(),o("update:modelValue",null,A),o("change","",A),o("clear","")},P=n.ref();return me({showPicker:C,hidePicker:B,focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const A={class:x.value,style:D.value,type:"text",maxlength:a.maxLength,placeholder:u.placeholder.value,readonly:!0,clearable:a.clearable,value:s.value,onClick:C,onFocus:F,onBlur:k,onClear:V},M={};l.slots.prepend&&(M.prepend=l.slots.prepend),l.slots.append&&(M.append=l.slots.append),l.slots.prefix?M.prefix=l.slots.prefix:M.prefix=()=>n.h(y.ElIcon,{},{default:()=>n.h(Pa)}),l.slots.suffix?M.suffix=l.slots.suffix:$.value&&(M.suffix=()=>[a.unit]);const I=[],q=n.h(y.ElInput,A,M);I.push(q);const H={default:()=>I};if(l.slots.default){const Q=l.slots.default();H.label=()=>Q}const j=dt(a,Cn);j.visible=b.value,j["onUpdate:visible"]=N,j["default-value"]=g.value,j.onChoose=E;const L={};if(l.slots.btn){const Q=l.slots.btn();L.btn=()=>Q}l.slots.day&&(L.day=l.slots.day),l.slots.topInfo&&(L.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(L.bottomInfo=l.slots.bottomInfo);const z=n.h(vn,j,L);H.hide=()=>[z];const K={...de(a,Ya),hintText:c.value,hintVisible:h.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,K,H)}}}}const{componentName:ps,create:bs,scope:Ss}=W("calendar-item"),Wa=bs(ys(ps,Ss,ue)),Ga={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,t,r){return{props:{...oe,...he,...Ga},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),d=J(a,"modelValue"),S=e,R=n.computed(()=>({[S]:!0})),T=D=>{d.value=D,o("update:modelValue",D),o("change",D)};let p=J(a,"hintText"),O=n.ref(!1);const s=D=>{let C=D.target.value;c.value=!0,se(p.value)||(O.value=!0),o("focus",C,D)},g=D=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let C=D.target.value;a.maxLength&&C.length>Number(a.maxLength)&&(C=C.slice(0,Number(a.maxLength))),o("blur",C,D)},v=()=>{o("clear","")},x=D=>{o("visible-change",D)},w=n.ref();return me({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},handleOpen:()=>{w?.value.handleOpen()},handleClose:()=>{w?.value.handleClose()}}),()=>{const b={...l.attrs,ref:w,class:R.value,placeholder:u.placeholder.value,disabled:h.value,readonly:f.value,modelValue:d.value,["onUpdate:modelValue"]:T,onClear:v,onFocus:s,onBlur:g,onVisibleChange:x},C={},B=[],N=n.h(y.ElTimePicker,b,C);B.push(N);const E={default:()=>B};if(l.slots.default){const V=l.slots.default();E.label=()=>V}const k={...de(a,Ga),hintText:p.value,hintVisible:O.value,prop:`${a.prop}_item`};return n.h(r,k,E)}}}}const{componentName:$s,create:Cs,scope:vs}=W("time-item"),Ua=Cs(ws($s,vs,ue)),Xa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ks(e,t,r){return{props:{...oe,...he,...Xa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),d=J(a,"modelValue"),S=e,R=n.computed(()=>({[S]:!0})),T=w=>{d.value=w,o("update:modelValue",w),o("change",w)};let p=J(a,"hintText"),O=n.ref(!1);const s=w=>{let b=w.target.value;c.value=!0,se(p.value)||(O.value=!0),o("focus",b,w)},g=w=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let b=w.target.value;a.maxLength&&b.length>Number(a.maxLength)&&(b=b.slice(0,Number(a.maxLength))),o("blur",b,w)},v=()=>{o("clear","")},x=n.ref();return me({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},handleOpen:()=>{x?.value.handleOpen()},handleClose:()=>{x?.value.handleClose()}}),()=>{const D={...l.attrs,ref:x,class:R.value,placeholder:u.placeholder.value,disabled:h.value,readonly:f.value,modelValue:d.value,["onUpdate:modelValue"]:T,onClear:v,onFocus:s,onBlur:g},b={},C=[],B=n.h(y.ElTimeSelect,D,b);C.push(B);const N={default:()=>C};if(l.slots.default){const $=l.slots.default();N.label=()=>$}const F={...de(a,Xa),hintText:p.value,hintVisible:O.value,prop:`${a.prop}_item`};return n.h(r,F,N)}}}}const{componentName:Ds,create:Ts,scope:Es}=W("time-select-item"),Za=Ts(ks(Ds,Es,ue));function Ja(e,t=0){let r=`${e}`,a=r.indexOf(".");if(a==-1)return r;let l=a;for(let o=r.length-1;o>=a;o--)if(r.charAt(o)!="0"){l=o;break}return l-a<t?l=a+t+1:l!=a&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function Qa(e,t,r=20){if(typeof t=="string"&&(t=X(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let a=Rn(`${e}`,`${t}`);return Ja(a)}else{let a=Lt(`${e}`,Mn(`${t}`),20);return Ja(a)}}function xs(e,t=-1,r=!1,a=3,l=","){return Ht(e,t,r,a,l)}function er(e,t,r,a,l=!0){if(e=="")return"";if(e=jn(e),t=X(t),t==1)return e;if(a)e=Qa(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(X(r)+2,"0"):e=Lt(e,1,X(r)));else{let o=-1*t;e=Qa(e,o)}return e}function tr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let a=ie(t.minInclude),l=qt(e,t.min);if(a&&l==-1||!a&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let a=ie(t.maxInclude),l=qt(e,t.max);(a&&l==1||!a&&(l==0||l==1))&&(r.maxValid=!1)}return r}const nr={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Vs(e,t,r){return{props:{...oe,...he,...nr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),i=n.ref(!1),u=pe(n.computed(()=>a.disabled)),c=ye(n.computed(()=>a.readonly)),h=J(a,"modelValue"),f=n.ref("");n.watch([()=>h.value,()=>a.rates,()=>a.precision],([k,$,V])=>{if(se(k))return"";const P=er(k,$,V,!1);f.value!==P&&(f.value=P)},{immediate:!0});const d=n.computed(()=>{let k="";return i.value&&(k=f.value),k}),{t:S}=ge.useFoxI18n(t),R=n.computed(()=>{let k=a.placeholder??"";return!i.value&&!se(f.value)?k=xs(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):k=S(["placeholder",k]),k}),T=e,p=n.computed(()=>({[T]:!0,[`${T}__disabled`]:u.value,[`${T}__placeholder`]:f.value.length>0})),O=De(n.computed(()=>a.textAlign),"textAlign");n.computed(()=>i.value?{textAlign:"left"}:{textAlign:O.value??"right"});const s=n.ref(""),g=n.computed(()=>{let k=s.value;return se(k)&&(k=a.errorTip??""),k}),v=n.ref(""),x=n.ref(!1),w=(k,$)=>{if(k=`${k}`,se(k)){f.value="",h.value="",$.forEach(V=>{o(V,"")}),ie(a.showTip)&&x.value&&(x.value=!1);return}if(k.length>=2){let V=k;if(V.charAt(0)=="-"&&(V=V.substring(1)),V.length>=2&&V.charAt(0)=="0"&&V.charAt(1)!="."){n.triggerRef(f);return}}if(k!="-"){if(!Kn(k)){n.triggerRef(f);return}if(a.integerLength!=-1&&Yn(k)>Number(a.integerLength)){n.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Wn(k)>Number(a.decimalLength)){n.triggerRef(f);return}let V=tr(k,a);if(V.maxValid===!1){s.value=V.message,n.triggerRef(f);return}}else if(a.min!=null&&X(a.min)>=0){n.triggerRef(f);return}v.value=k,ie(a.showTip)&&(x.value=k.length>0),f.value=k,h.value=er(k,a.rates,a.precision,!0),$.forEach(V=>{o(V,h.value)})},D=k=>{w(k,["update:modelValue","input"])},b=k=>{w(k,["update:modelValue","change"])},C=k=>{if(i.value=!0,ie(a.showTip)){let $=f.value;se($)&&($=a.hintText),se($)||(v.value=$,x.value=!0)}s.value="",o("focus",h.value,k)},B=k=>{if(setTimeout(()=>{i.value=!1,ie(a.showTip)&&x.value===!0&&(x.value=!1)},0),!se(f.value)){let $=tr(f.value,a);if($.minValid===!1||$.maxValid){s.value=$.message;return}}o("update:modelValue",h.value,k),o("blur",h.value,k)},N=()=>{o("clear","")},E=n.computed(()=>we(a.unit)>0),F=n.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const $={...l.attrs,ref:F,class:p.value,type:"digit",maxlength:a.maxLength,placeholder:R.value,clearable:a.clearable,disabled:u.value,readonly:c.value,modelValue:d.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onClear:N,onInput:D,onChange:b,onFocus:C,onBlur:B},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix?V.suffix=l.slots.suffix:E.value&&(V.suffix=()=>[a.unit]);const P=[],A=n.h(y.ElInput,$,V);P.push(A);const M={default:()=>P};if(l.slots.default){const j=l.slots.default();M.label=()=>j}const q={...de(a,nr),errorTip:g.value,hintText:v.value,hintVisible:x.value,hintType:"number",prop:`${a.prop}_item`};return n.h(r,q,M)}}}}const{componentName:Ns,create:Is,scope:As}=W("money-item"),ar=Is(Vs(Ns,As,ue)),rr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Os(e,t,r){return{props:{...oe,...he,...rr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),d=J(a,"modelValue"),S=e,R=n.computed(()=>({[S]:!0,[`${S}__append`]:D.value})),T=n.computed(()=>({[`${S}__unit`]:!0})),p=C=>{d.value=C,o("update:modelValue",C),o("input",C)},O=C=>{o("change",C)};let s=J(a,"hintText"),g=n.ref(!1);const v=C=>{let N=C.target.value;c.value=!0,se(s.value)||(g.value=!0),o("focus",N,C)},x=C=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let N=C.target.value;a.maxLength&&N.length>Number(a.maxLength)&&(N=N.slice(0,Number(a.maxLength))),o("blur",N,C)},w=()=>{o("clear","")},D=n.computed(()=>we(a.unit)>0),b=n.ref();return me({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()}}),()=>{const B={...l.attrs,ref:b,class:R.value,placeholder:u.placeholder.value,clearable:a.clearable,disabled:h.value,readonly:f.value,modelValue:d.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onClear:w,onChange:O,onInput:p,onFocus:v,onBlur:x},N={},E=[],F=n.h(y.ElInputNumber,B,N);E.push(F);const k={default:()=>E};if(l.slots.default){const A=l.slots.default();k.label=()=>A}const V={...de(a,rr),hintText:s.value,hintVisible:g.value,prop:`${a.prop}_item`};if(l.slots.append)k.append=l.slots.append;else if(D.value){const A={class:T.value},M=n.h("div",A,[a.unit]);k.append=()=>M}return n.h(r,V,k)}}}}const{componentName:Bs,create:Rs,scope:Ms}=W("input-number-item"),lr=Rs(Os(Bs,Ms,ue));function ot(e,t){const r=e.textKey??"text";return t[r]??""}function it(e,t){const r=e.valueKey??"value";return t[r]}function or(e,t){const r=e.childrenKey??"children";return t[r]}function It(e,t=[]){const r={texts:[],values:[]};for(let a=0;a<t.length;a++){const l=t[a],o=ot(e,l),i=it(e,l);r.texts.push(o),r.values.push(i??"")}return r}function ir(e,t,r,a,l=[]){const o=r[a];for(let i=0;i<t.length;i++)if(ot(e,t[i])===o){const c=it(e,t[i])??"",h={[e.textKey]:o,[e.valueKey]:c};l.push(h);const f=or(e,t[i]);Array.isArray(f)&&ir(e,f,r,a+1,l);return}}function sr(e,t,r,a,l=[]){const o=r[a];for(let i=0;i<t.length;i++)if(it(e,t[i])===o){const c=ot(e,t[i])??"",h={[e.textKey]:c,[e.valueKey]:o};l.push(h);const f=or(e,t[i]);Array.isArray(f)&&sr(e,f,r,a+1,l);return}}function Dn(e,t,r){if(t===r)return!0;if(t.length!==r.length)return!1;for(let a=0;a<t.length;a++){const l=ot(e,t[a]),o=ot(e,r[a]);if(l!==o)return!1;const i=it(e,t[a]),u=it(e,r[a]);if(i!==u)return!1}return!0}let js=class{proxy;constructor(t){this.proxy=t}async load(t,r){const a="cascader";if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const l=je(this.proxy,a);return l===null?(console.error(`${a} component not found api function`),[]):(ve(r)&&n.isReactive(r)&&(r=n.toRaw(r)),await l(t,r))}};function Ps(){const e=n.getCurrentInstance();return new js(e.proxy)}let Fs={...ln,modelValue:{type:[Array,String],required:!0},visible:{type:Boolean,required:!0},title:{type:String,required:!1},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:{type:Object,required:!1}};const At=(e,t,r)=>e.map(a=>{const{value:l="value",text:o="text",children:i="children"}=r??{},{[l]:u,[o]:c,[i]:h,...f}=a,d={loading:!1,...f,level:t?(t&&t.level||0)+1:0,value:u,text:c,children:h,_parent:t};return d.children&&d.children.length&&(d.children=At(d.children,d,r)),d}),cr=(e,t)=>{let r=0,a;for(;(a=e[r++])&&t(a)!==!0;)a.children&&a.children.length&&cr(a.children,t)},Ls={topId:null,idKey:"id",pidKey:"pid",sortKey:""},qs=(e,t)=>{const r={...Ls,...t||{}},{topId:a,idKey:l,pidKey:o,sortKey:i}=r;let u=[],c={};return e.forEach(h=>{h={...h};const{[l]:f,[o]:d}=h,S=c[d]=c[d]||[];!u.length&&d===a&&(u=S),S.push(h),h.children=c[f]||(c[f]=[])}),i&&Object.keys(c).forEach(h=>{c[h].length>1&&c[h].sort((f,d)=>f[i]-d[i])}),c=null,u};class ur{nodes;config;constructor(t,r){this.config={value:"value",text:"text",children:"children",...r||{}},this.nodes=At(t,null,this.config)}updateChildren(t,r){r?r.children=At(t,r,this.config):this.nodes=At(t,null,this.config)}getNodeByValue(t){let r;return cr(this.nodes,a=>{if(a.value===t)return r=a,!0}),r}getPathNodesByValue(t){if(!t.length)return[];const r=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(o=>o.value===t[o.level]);if(!l)break;r.push(l),a=l.children}return r}isLeaf(t,r){const{leaf:a,children:l}=t,o=Array.isArray(l)&&Boolean(l.length);return a||!o&&!r}hasChildren(t,r){if(this.isLeaf(t,r))return!1;const{children:l}=t;return Array.isArray(l)&&Boolean(l.length)}}const{create:Hs,scope:zs}=W("cascaderpane"),_s=Hs({props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:t}){const r=n.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=n.ref(0),l=n.ref(!1),o=n.ref(e.modelValue),i=n.ref(new ur([],{})),u=n.ref([]),c=n.computed(()=>r.value.lazy&&Boolean(r.value.lazyLoad)),h=new Map;let f;const d=async()=>{h.clear(),u.value=[],a.value=0,l.value=!1,f=null;let{options:s}=e;r.value.convertConfig&&(s=qs(s,r.value.convertConfig)),i.value=new ur(s,{value:r.value.valueKey,text:r.value.textKey,children:r.value.childrenKey}),c.value&&!i.value.nodes.length&&await R({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:i.value.nodes,selectedNode:null}],S()},S=async()=>{const s=o.value;if(s===void 0||!i.value.nodes.length)return;if(s.length===0){a.value=0,u.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=s;if(c.value&&Array.isArray(s)&&s.length){g=[];let v=i.value.nodes.find(x=>x.value===s[0]);if(v){g=[v.value],l.value=!0;const x=await s.slice(1).reduce(async(w,D)=>{const b=await w;await R(b);const C=b?.children?.find(B=>B.value===D);return C&&g.push(D),Promise.resolve(C)},Promise.resolve(v));await R(x),l.value=!1}}g.length&&s===e.modelValue&&i.value.getPathNodesByValue(g).map((x,w)=>{a.value=w,O.handleNode(x,!0)})},R=async s=>{if(!s)return;if(!r.value.lazyLoad){s.leaf=!0;return}if(i.value.isLeaf(s,c.value)||i.value.hasChildren(s,c.value))return;s.loading=!0;const g=s.root?null:s;let v=h.get(s);v||(v=new Promise(w=>{r.value.lazyLoad?.(s,w)}),h.set(s,v));const x=await v;Array.isArray(x)&&x.length>0?i.value.updateChildren(x,g):s.leaf=!0,s.loading=!1,h.delete(s)},T=s=>{const g=s.map(v=>v.value);o.value=g,t("change",g,s),t("update:modelValue",g,s)},{t:p}=ge.useFoxI18n(zs),O={async handleNode(s,g){const{disabled:v,loading:x}=s;if(!(!g&&v||!u.value[a.value])){if(i.value.isLeaf(s,c.value)){if(s.leaf=!0,u.value[a.value].selectedNode=s,u.value=u.value.slice(0,s.level+1),!g){const w=u.value.map(D=>D.selectedNode);T(w),t("pathChange",w)}return}if(i.value.hasChildren(s,c.value)){const w=s.level+1;if(u.value[a.value].selectedNode=s,u.value=u.value.slice(0,w),u.value.push({nodes:s.children||[],selectedNode:null}),a.value=w,!g){const D=u.value.map(b=>b.selectedNode);t("pathChange",D)}return}f=s,!x&&(await R(s),f===s&&(u.value[a.value].selectedNode=s,O.handleNode(s,g)))}},handleTabClick(s){f=null,a.value=Number(s.paneKey)},formatTabTitle(s){return s.selectedNode?s.selectedNode.text:p("select")},isSelected(s,g){return s.selectedNode&&s.selectedNode.value===g.value}};return n.watch([r,()=>e.options],()=>{d()},{deep:!0,immediate:!0}),n.watch(()=>e.modelValue,s=>{s!==o.value&&(o.value=s,S())}),n.watch(()=>e.visible,s=>{s&&Array.isArray(o.value)&&o.value.length>0&&S()}),{panes:u,initLoading:l,tabsCursor:a,...O}}}),Ks={role:"menu",class:"fox-cascader__pane"},Ys=["aria-checked","aria-disabled","onClick"],Ws={class:"fox-cascader__item__title"},Gs=n.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Us(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon"),u=n.resolveComponent("fox-ext-tabpane"),c=n.resolveComponent("fox-ext-tabs");return n.openBlock(),n.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":t[0]||(t[0]=h=>e.tabsCursor=h),onClick:e.handleTabClick,"title-scroll":""},{default:n.withCtx(()=>[!e.initLoading&&e.panes.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.panes,(h,f)=>(n.openBlock(),n.createBlock(u,{title:e.formatTabTitle(h),key:f},{default:n.withCtx(()=>[n.createElementVNode("view",Ks,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.nodes,d=>(n.openBlock(),n.createElementBlock("view",{key:d.value,class:n.normalizeClass(["fox-cascader__item",{active:e.isSelected(h,d),disabled:d.disabled}]),"aria-checked":e.isSelected(h,d),"aria-disabled":d.disabled||void 0,role:"menuitemradio",onClick:S=>e.handleNode(d,!1)},[n.createElementVNode("view",Ws,n.toDisplayString(d.text),1),d.loading?(n.openBlock(),n.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(n.openBlock(),n.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Ys))),128))])]),_:2},1032,["title"]))),128)):(n.openBlock(),n.createBlock(u,{key:1,title:"Loading..."},{default:n.withCtx(()=>[Gs]),_:1}))]),_:1},8,["modelValue","onClick"])}const fr=re(_s,[["render",Us]]),{create:Xs}=W("cascader-picker"),Zs=Xs({components:{[fr.name]:fr},props:{...Fs},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:t}){const r=n.ref(e.modelValue?e.modelValue:[]),a=n.computed({get(){return e.visible},set(i){t("update:visible",i)}}),l=(i,u)=>{r.value=i,a.value=!1,t("change",i,u),t("update:modelValue",i)},o=i=>{t("pathChange",i)};return n.watch(()=>e.modelValue,i=>{i!==r.value&&(i?r.value=i:r.value=[])}),{onChange:l,onPathChange:o,innerValue:r,innerVisible:a}}}),Js=["innerHTML"];function Qs(e,t,r,a,l,o){const i=n.resolveComponent("fox-cascaderpane"),u=n.resolveComponent("fox-popup");return e.poppable?(n.openBlock(),n.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":t[0]||(t[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:n.withCtx(()=>[e.title?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Js)):n.createCommentVNode("",!0),n.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon","close-icon-position"])):(n.openBlock(),n.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Tn=re(Zs,[["render",Qs]]),dr={modelValue:{type:[Array,String]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function ec(e,t,r){return{props:{...oe,...he,...dr},emits:["change","update:modelValue","blur","focus","clear","pathChange"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]);let c=J(a,"hintText"),h=n.ref(!1);const f=n.ref(!1),d=pe(n.computed(()=>a.disabled)),S=ye(n.computed(()=>a.readonly)),R=Ps(),T=n.ref([]);n.watch([()=>a.source,()=>a.params],async([P,A])=>{P&&(T.value=await R.load(P,A))},{immediate:!0});const p=n.ref([]),O=n.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),s=n.ref([]),g=n.ref([]);n.watch([()=>a.modelValue,T],async([P,A])=>{if(a.lazy===!0){g.value.length==0&&(p.value=Array.isArray(P)?P:[],s.value=Array.isArray(P)?P:[]);return}if(a.valueType==="item"){let M=P;if(!Dn(a,M,g.value)){g.value=M;let I=It(a,M);p.value=I.texts,s.value=I.values}}else if(a.valueType==="text"){let M=P,I=[];if(ir(a,A,M,0,I),!Dn(a,I,g.value)){g.value=I;let q=It(a,I);M.value=q.texts,s.value=q.values}}else{let M=P,I=[];if(sr(a,A,M,0,I),!Dn(a,I,g.value)){g.value=I;let q=It(a,I);p.value=q.texts,M.value=q.values}}});const v=e,x=n.computed(()=>({[v]:!0})),w=De(n.computed(()=>a.textAlign),"textAlign"),D=n.computed(()=>({textAlign:w.value??"right"})),b=n.ref(!1),C=()=>{d.value===!0||S.value===!0||(b.value=!0)},B=P=>{b.value=P},N=(P,A)=>{let M=A.map(q=>{if(q==null)return q;let H={...q};return Reflect.deleteProperty(H,"text"),H[a.textKey]=q.text??"",Reflect.deleteProperty(H,"value"),H[a.valueKey]=q.value??"",H});g.value=M;let I=It(a,M);p.value=I.texts,s.value=I.values,a.valueType==="text"?(o("change",p.value,M),o("update:modelValue",p.value)):a.valueType==="item"?(o("change",M,M),o("update:modelValue",M)):(o("change",s.value,M),o("update:modelValue",s.value))},E=P=>{let A=P.map(M=>{if(M==null)return M;let I={...M};return Reflect.deleteProperty(I,"text"),I[a.textKey]=M.text??"",Reflect.deleteProperty(I,"value"),I[a.valueKey]=M.value??"",I});o("pathChange",A)},F=P=>{f.value=!0,o("focus",s.value,P)},k=P=>{setTimeout(()=>{f.value=!1},0),o("blur",s.value,P)},$=n.computed(()=>we(a.unit)>0);n.computed(()=>a.clearable&&!d.value&&!S.value);const V=n.ref();return me({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const P={class:x.value,style:D.value,type:"text",maxlength:a.maxLength,placeholder:u.placeholder.value,readonly:!0,value:O.value,onClick:C,onFocus:F,onBlur:k},A={};l.slots.prepend&&(A.prepend=l.slots.prepend),l.slots.append&&(A.append=l.slots.append),l.slots.prefix&&(A.prefix=l.slots.prefix),l.slots.suffix?A.suffix=l.slots.suffix:$.value?A.suffix=()=>[a.unit]:A.suffix=()=>n.h(y.ElIcon,{},{default:()=>n.h(ja)});const M=[],I=n.h(y.ElInput,P,A);M.push(I);const q={default:()=>M};if(l.slots.default){const K=l.slots.default();q.label=()=>K}let H={};H.visible=b.value,H["onUpdate:visible"]=B,H.modelValue=s.value,H.onChange=N,H.onPathChange=E,H.options=T.value,H.title=a.title,H.lazy=a.lazy,H.lazyLoad=a.lazyLoad,H.valueKey=a.valueKey,H.textKey=a.textKey,H.childrenKey=a.childrenKey,H.convertConfig=a.convertConfig;const j=n.h(Tn,H);q.hide=()=>[j];const z={...de(a,dr),hintText:c.value,hintVisible:h.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,z,q)}}}}const{componentName:tc,create:nc,scope:ac}=W("cascader-item"),hr=nc(ec(tc,ac,ue)),mr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function rc(e,t,r){return{props:{...oe,...he,...mr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),{toLocaleRefs:i}=ge.useFoxI18n(t),u=i(a,["placeholder"]),c=n.ref(!1),h=pe(n.computed(()=>a.disabled)),f=ye(n.computed(()=>a.readonly)),d=J(a,"modelValue"),S=e,R=n.computed(()=>({[S]:!0})),T=D=>{d.value=D,o("update:modelValue",D),o("input",D)},p=D=>{o("change",D)};let O=J(a,"hintText"),s=n.ref(!1);const g=D=>{let C=D.target.value;c.value=!0,se(O.value)||(s.value=!0),o("focus",C,D)},v=D=>{setTimeout(()=>{s.value&&(s.value=!1),c.value=!1},0);let C=D.target.value;a.maxLength&&C.length>Number(a.maxLength)&&(C=C.slice(0,Number(a.maxLength))),o("blur",C,D)},x=()=>{o("clear","")},w=n.ref();return me({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},select:()=>{w?.value.select()}}),()=>{const b={...l.attrs,ref:w,class:R.value,placeholder:u.placeholder.value,clearable:a.clearable,disabled:h.value,readonly:f.value,modelValue:d.value,onClear:x,onChange:p,onInput:T,onFocus:g,onBlur:v},C={};l.slots.prepend&&(C.prepend=l.slots.prepend),l.slots.append&&(C.append=l.slots.append),l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.suffix&&(C.suffix=l.slots.suffix),l.slots.option&&(C.default=l.slots.option);const B=[],N=n.h(y.ElAutocomplete,b,C);B.push(N);const E={default:()=>B};if(l.slots.default){const V=l.slots.default();E.label=()=>V}const k={...de(a,mr),hintText:O.value,hintVisible:s.value,prop:`${a.prop}_item`};return n.h(r,k,E)}}}}const{componentName:lc,create:oc,scope:ic}=W("autocomplete-item"),gr=oc(rc(lc,ic,ue));function sc(e,t,r,a,l){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],u=t[0];if(Array.isArray(u))for(let c=0;c<t.length&&c<o.length;c++){let h=t[c],f=o[c];const d=h.find(S=>S[a]===f);if(!d)break;i.push(d[r])}else{let c=t;for(let h=0;c&&h<o.length;h++){let f=o[h],d=c.find(S=>S[a]===f);if(!d)break;i.push(d[r]),c=d[l]}}return i}let cc=class{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=je(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ve(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}};function uc(){const e=n.getCurrentInstance();return new cc(e.proxy)}const yr={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 fc(e,t){return{props:{...yr},setup(r,{attrs:a}){const l=uc(),o=n.ref([]);n.watch([()=>r.source,()=>r.params],async([c,h])=>{o.value=await l.load(r.sourceType,c,h)},{immediate:!0});const i=n.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let c=sc(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return c.length==0?"":c.length===1?c[0]:c.join(r.separator)}),u=r.resolveTag?n.resolveComponent(r.tag):r.tag;return()=>{const c={...a};return r.resolveTag?n.h(u,c,{default:()=>i.value}):n.h(u,c,i.value)}}}}const{componentName:ku,create:dc,scope:Du}=W("mapping"),En=dc(fc());function hc(e,t){let r=t.split("."),a=e;for(let l=0;l<r.length;l++){let o=r[l],i=0,u=o.indexOf("["),c=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&c!==-1;){let h=o.substring(u+1,c);if(/^\d+$/.test(h)){let f=parseInt(h);if(i==0){let d=o.substring(0,u);a=a[d][f]}else a=a[f];i++}u=o.indexOf("[",c),c=u==-1?-1:o.indexOf("]",u)}i===0&&(a=a[o])}return a}function mc(e,t){return{props:{...yr},setup(r,{attrs:a}){return()=>{const l={default:o=>{const i=hc(o.row,o.column.property);return n.h(En,{...r,modelValue:i})}};return n.h(y.ElTableColumn,{...a},l)}}}}const{componentName:Tu,create:gc,scope:Eu}=W("table-mapping-column"),pr=gc(mc());let yc=class{proxy;constructor(t){this.proxy=t}async load(t,r,a,l,o,i,u){if(Array.isArray(r)){let h=(a-1)*l,f=h+l;f>r.length&&(f=r.length);const d=r.slice(h,f);return{totalSize:r.length,page:d}}if(typeof r=="function")return await Reflect.apply(r,null,[a,l,o,i,u]);const c=je(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ve(o)&&n.isReactive(o)&&(o=n.toRaw(o)),await await Reflect.apply(c,null,[r,a,l,o,i,u]))}};function pc(){const e=n.getCurrentInstance();return new yc(e.proxy)}function bc(e,t){let r=t.split("."),a=e;for(let l=0;l<r.length;l++){let o=r[l],i=0,u=o.indexOf("["),c=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&c!==-1;){let h=o.substring(u+1,c);if(/^\d+$/.test(h)){let f=parseInt(h);if(i==0){let d=o.substring(0,u);a=a[d][f]}else a=a[f];i++}u=o.indexOf("[",c),c=u==-1?-1:o.indexOf("]",u)}i===0&&(a=a[o])}return a}function xn(e,t){return e.filter(a=>{for(let l in t){const o=t[l],i=bc(a,l);if(o!==i)return!1}return!0})}const br={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Sr={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 Sc(e,t,r){return{inheritAttrs:!1,props:{...oe,...he,...br,...Sr},emits:["change","page-size-change","page-index-change","current-change"],setup(a,l){const{locale:o}=ge.useFoxI18n(t),{emitEvent:i}=ce({componentName:e},a.prop??l.attrs.name),u=e,c=n.computed(()=>({[u]:!0})),h=n.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${a.paginationAlign}`]:!0})),f=n.ref(a.pageIndex);n.watch(()=>a.pageIndex,E=>{f.value=E});const d=E=>{f.value=E,i("page-index-change",E)},S=n.ref(a.pageSize);n.watch(()=>a.pageSize,E=>{S.value=E});const R=E=>{S.value=E,i("page-size-change",E)},T=n.shallowRef({}),p=n.computed(()=>({...T.value,...a.params??{},...a.baseParams??{}})),O=n.ref(0),s=n.ref(),g=pc();let v=!0;const x=()=>Array.isArray(a.data)||typeof a.data=="function"?!0:ie(a.autoLoad),w=async(E,F,k,$)=>{try{const V=await g.load("table",E,F,k,$,v,o.value);O.value=V.totalSize,s.value=V.page}catch(V){console.error("[FoxUI] Load Table Data Fail",V),O.value=0,s.value=[]}v=!1};n.watch([f,S],([E,F],[k,$])=>{F!==$&&(f.value=1,E=1),w(a.data,E,F,p.value)}),n.watch([()=>a.data,p],([E,F],[k,$])=>{x()&&(E!==k&&(v=!0),!(Ne(E,k)&&Ne(F,$))&&w(E,f.value,S.value,F))});const D=(E={})=>{T.value=n.toRaw(E??{}),n.triggerRef(T),n.nextTick(()=>{w(a.data,f.value,S.value,p.value)})},b=()=>{O.value=0,s.value=[]};x()&&D();let C=null;const B=(E,F)=>{C=E,i("current-change",E,F)},N=n.ref();return me({clearSelection:()=>N?.value.clearSelection(),getSelectionRows:()=>N?.value.getSelectionRows(),toggleRowSelection:(E,F)=>{N?.value.toggleRowSelection(E,F)},toggleRowSelectionByProp:(E,F)=>{if(!s.value)return;const k=xn(s.value,E);k.length!==0&&k.forEach($=>{N?.value.toggleRowSelection($,F)})},toggleAllSelection:()=>{N?.value.toggleAllSelection()},toggleRowExpansion:(E,F)=>{N?.value.toggleRowExpansion(E,F)},toggleRowExpansionByProp:(E,F)=>{if(!s.value)return;const k=xn(s.value,E);k.length!==0&&k.forEach($=>{N?.value.toggleRowExpansion($,F)})},setCurrentRow:E=>{N?.value.setCurrentRow(E)},setCurrentRowByProp:E=>{if(!s.value)return;const F=xn(s.value,E);F.length!==0&&N?.value.setCurrentRow(F[0])},getCurrentRow:()=>C,clearSort:()=>{N?.value.clearSort()},clearFilter:E=>{N?.value.clearFilter(E)},doLayout:()=>{N?.value.doLayout()},sort:(E,F)=>{N?.value.sort(E,F)},scrollTo:(E,F)=>{N?.value.scrollTo(E,F)},setScrollTop:E=>{N?.value.setScrollTop(E)},setScrollLeft:E=>{N?.value.setScrollLeft(E)},loadData:D,clearData:b,getData(){return s.value},getTotalSize(){return O.value},getPageIndex(){return f.value},getPageSize(){return S.value}}),()=>{const F={...l.attrs,onCurrentChange:B,data:s.value,ref:N,class:c.value},k={};l.slots.default&&(k.default=l.slots.default),l.slots.append&&(k.append=l.slots.append),l.slots.empty&&(k.empty=l.slots.empty);const $=[],V=n.h(y.ElTable,F,k);if($.push(V),typeof l.slots.pagination=="function"){const q=l.slots.pagination();$.push(q)}else if(a.paginationVisible){const q={class:h.value,total:O.value,pageSize:S.value,["onUpdate:pageSize"]:R,pageSizes:a.pageSizes,currentPage:f.value,["onUpdate:currentPage"]:d,hideOnSinglePage:a.hideOnSinglePage,layout:a.paginationLayout,small:!0},H=n.h(y.ElPagination,q);$.push(H)}const P={default:()=>$},M={...de(a,br,Sr),prop:`${a.prop}_item`};return M.contentClass=`${u}__wrap`,n.h(r,M,P)}}}}const{componentName:wc,create:$c,scope:Cc}=W("table-item"),wr=$c(Sc(wc,Cc,ue));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function st(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let vc=class{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=je(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ve(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}};function kc(){const e=n.getCurrentInstance();return new vc(e.proxy)}function $r(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const a=Ke(e,t),l=Ke(e,r);if(a!==l)return!1;const o=st(e,t),i=st(e,r);return o===i}function Dc(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of a){let i=!1;if(r==="text")i=Ke(e,o)===t;else if(r==="item")i=$r(e,o,t);else{let u=st(e,o);u==null&&(u=Ke(e,o)),i=u===t}if(i){l=o;break}}return l}function Tc(e){return{text:e,value:e}}const Cr={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 Ec(e,t,r){return{inheritAttrs:!0,props:{...oe,...he,...Cr},emits:["change","update:modelValue"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),i=n.ref(null),u=n.ref(null),c=(v,x,w,D=!0)=>{const b=Dc(a,v,x,w);if(b===null){if(u.value===null)return;u.value=null,i.value=null,D&&(o("update:modelValue",null),o("change",null));return}if(!$r(a,b,u.value)){i.value=v;const B=n.toRaw(b);u.value=B;let N=null;a.valueType==="text"?N=Ke(a,B):a.valueType==="item"?N=B:N=st(a,B),D&&(o("update:modelValue",N),o("change",N))}},h=n.ref([]),f=kc();n.watch([()=>a.source,()=>a.params],async([v,x])=>{if(v){const w=await f.load("radio",v,x);if(w.length>0)if(typeof w[0]=="string"){let C=w.map(B=>Tc(B));h.value=C}else h.value=w}},{immediate:!0}),n.watch([()=>h.value,()=>a.modelValue],([v,x])=>{c(x,a.valueType,v,!1)});const d=pe(n.computed(()=>a.disabled)),S=ye(n.computed(()=>a.readonly)),R=e,T=n.computed(()=>({[R]:!0})),p=v=>{c(v,"value",h.value,!0)};let O=J(a,"hintText"),s=J(a,"hintVisible");const g=v=>{const x=[];return v.forEach((w,D)=>{const b=st(a,w),C=Ke(a,w),B=ie(w.disabled),E={key:`${b}_${D}`,class:a.itemClass,label:b,disabled:B,size:a.size,border:ie(a.border)};a.itemType==="button"?x.push(n.h(y.ElRadioButton,E,{default:()=>[C]})):x.push(n.h(y.ElRadio,E,{default:()=>[C]}))}),x};return()=>{const x={...l.attrs,class:T.value,disabled:d.value||S.value,modelValue:i.value,["text-color"]:a.textColor,fill:a.fill,onChange:p},w=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>g(h.value);const b=n.h(y.ElRadioGroup,x,D);w.push(b);const C={default:()=>w};if(l.slots.default){const F=l.slots.default();C.label=()=>F}const N={...de(a,Cr),hintText:O.value,hintVisible:s.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,N,C)}}}}const{componentName:xc,create:Vc,scope:Nc}=W("radio-item"),vr=Vc(Ec(xc,Nc,ue));function Ye(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function We(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Ic{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=je(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ve(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}}function Ac(){const e=n.getCurrentInstance();return new Ic(e.proxy)}function kr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const a=Ye(e,t),l=Ye(e,r);if(a!==l)return!1;const o=We(e,t),i=We(e,r);return o===i}function Oc(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let i of a){let u=!1;if(r==="text")u=Ye(e,i)===o;else if(r==="item")u=kr(e,i,o);else{let c=We(e,i);c==null&&(c=Ye(e,i)),u=c===o}if(u){l.push(i);break}}}),l}function Bc(e){return{text:e,value:e}}const Dr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemClass:{type:[String],required:!1}};function Rc(e,t,r){return{inheritAttrs:!1,props:{...oe,...he,...Dr},emits:["change","update:modelValue"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),i=n.ref([]),u=n.ref([]),c=(v,x,w,D=!0)=>{const b=Oc(a,v,x,w);if(b===null){if(u.value===null||u.value.length===0)return;i.value=[],u.value=[],D&&(o("update:modelValue",[]),o("change",[]));return}let C=!0;if(b.length!==u.value.length)C=!1;else for(let B=0;B<b.length;B++){const N=b[B],E=u.value[B];if(!kr(a,N,E)){C=!1;break}}if(!C){u.value=b;let B=[],N=[];b.forEach(F=>{B.push(We(a,F)),a.valueType==="text"?N.push(Ye(a,F)):a.valueType==="item"?N.push(F):N.push(We(a,F))}),i.value=B;const E=n.toRaw(N);D&&(o("update:modelValue",E),o("change",E))}},h=n.ref([]),f=Ac();n.watch([()=>a.source,()=>a.params],async([v,x])=>{if(v){const w=await f.load("checkbox",v,x);if(w.length>0)if(typeof w[0]=="string"){let C=w.map(B=>Bc(B));h.value=C}else h.value=w}},{immediate:!0}),n.watch([()=>h.value,()=>a.modelValue],([v,x])=>{c(x,a.valueType,v,!1)});const d=pe(n.computed(()=>a.disabled)),S=ye(n.computed(()=>a.readonly)),R=e,T=n.computed(()=>({[R]:!0})),p=v=>{c(v,"value",h.value,!0)};let O=J(a,"hintText"),s=J(a,"hintVisible");const g=v=>{const x=[];return v.forEach((w,D)=>{const b=We(a,w),C=Ye(a,w),B=ie(w.disabled),E={key:`${b}_${D}`,class:a.itemClass,label:b,disabled:B,size:a.size,border:ie(a.border)};a.itemType==="button"?x.push(n.h(y.ElCheckboxButton,E,{default:()=>[C]})):x.push(n.h(y.ElCheckbox,E,{default:()=>[C]}))}),x};return()=>{const x={...l.attrs,class:T.value,disabled:d.value||S.value,modelValue:i.value,["text-color"]:a.textColor,fill:a.fill,max:X(a.max),min:X(a.min),onChange:p},w=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>g(h.value);const b=n.h(y.ElCheckboxGroup,x,D);w.push(b);const C={default:()=>w};if(l.slots.default){const F=l.slots.default();C.label=()=>F}const N={...de(a,Dr),hintText:O.value,hintVisible:s.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,N,C)}}}}const{componentName:Mc,create:jc,scope:Pc}=W("checkbox-item"),Tr=jc(Rc(Mc,Pc,ue)),Er={modelValue:{type:[Number,String],required:!1}};function Fc(e,t,r){return{props:{...oe,...he,...Er},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),i=pe(n.computed(()=>a.disabled)),u=ye(n.computed(()=>a.readonly)),c=J(a,"modelValue",p=>X(p)),h=e,f=n.computed(()=>({[h]:!0})),d=p=>{o("update:modelValue",p),o("change",p)};let S=J(a,"hintText"),R=n.ref(!1);const T=n.ref();return me({}),()=>{const O={...l.attrs,ref:T,class:f.value,readonly:u.value||i.value,modelValue:c.value,onChange:d},s={},g=[],v=n.h(y.ElRate,O,s);g.push(v);const x={default:()=>g};if(l.slots.default){const C=l.slots.default();x.label=()=>C}const D={...de(a,Er),hintText:S.value,hintVisible:R.value,prop:`${a.prop}_item`};return n.h(r,D,x)}}}}const{componentName:Lc,create:qc,scope:Hc}=W("rate-item"),xr=qc(Fc(Lc,Hc,ue)),Vr={modelValue:{type:[Boolean,String,Number],required:!1}};function zc(e,t,r){return{props:{...oe,...he,...Vr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const{emitEvent:o}=ce({componentName:e},a.prop??l.attrs.name),i=pe(n.computed(()=>a.disabled)),u=ye(n.computed(()=>a.readonly)),c=J(a,"modelValue"),h=e,f=n.computed(()=>({[h]:!0})),d=p=>{o("update:modelValue",p),o("change",p)};let S=J(a,"hintText"),R=J(a,"hintVisible");const T=n.ref();return me({}),()=>{const O={...l.attrs,ref:T,class:f.value,readonly:u.value,disabled:i.value,modelValue:c.value,onChange:d},s={},g=[],v=n.h(y.ElSwitch,O,s);g.push(v);const x={default:()=>g};if(l.slots.default){const C=l.slots.default();x.label=()=>C}const D={...de(a,Vr),hintText:S.value,hintVisible:R.value,prop:`${a.prop}_item`};return n.h(r,D,x)}}}}const{componentName:_c,create:Kc,scope:Yc}=W("switch-item"),Nr=Kc(zc(_c,Yc,ue)),Wc=Symbol.for("InnerPageScopeKey"),Gc=Symbol.for("DialogItemStateKey");function Uc(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,a){n.provide(Wc,!0);const l={};n.provide(Gc,l);const o=c=>{typeof l.beforeClose=="function"&&l.beforeClose(c)},i=n.ref(!0),u=c=>{i.value=c};return()=>{const h={...a.attrs,title:r.title,draggable:r.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},f={};if(typeof a.slots.default=="function"){const d=a.slots.default();f.default=()=>d}return n.h(y.ElDialog,h,f)}}}}const{componentName:xu,create:Xc,scope:Vu}=W("dialog-item"),Ir=Xc(Uc()),{componentName:Nu,create:Zc}=W("ext-icon"),Ar=Zc({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const a=i=>{t("click",i)},l=n.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const i=l.value;return n.h(i?"img":e.tag,{class:i?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:U(e.size),width:U(e.size),height:U(e.size)},onClick:a,src:i?e.name:""},r.default?.())}}});function Jc(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:a}){const l=e,o=n.computed(()=>({[l]:!0})),i=n.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),u=n.computed(()=>r.color?{background:r.color}:null),c=n.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),h=n.computed(()=>r.color?{color:r.color}:null);return()=>{let f=null;if(a.mark)f=a.mark()[0];else{const p={class:i.value,style:u.value};f=n.h("div",p)}const d={class:c.value,style:h.value},S=a.default?a.default():[],R=n.h("div",d,S),T={class:o.value};return n.h("div",T,[f,R])}}}}const{componentName:Qc,create:eu,scope:Iu}=W("indicator"),Or=eu(Jc(Qc)),{create:tu}=W("toast"),nu=tu({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:String,default:"20"},icon:{type:String,required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let r;const a=n.reactive({mounted:!1});n.onMounted(()=>{a.mounted=!0});const l=()=>{r&&(clearTimeout(r),r=null)},o=()=>{a.mounted=!1},i=()=>{l(),e.duration&&(r=setTimeout(()=>{o()},e.duration))},u=()=>{e.closeOnClickOverlay&&(o(),t("close"))};e.duration&&i(),n.watch(()=>e.duration,S=>{S&&i()});const c=n.computed(()=>e.type!=="text"?!0:!!e.icon),h=n.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=n.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:a,hide:o,clickCover:u,hasIcon:c,toastBodyClass:h,toastIconWrapperClass:f,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),au={key:1,class:"fox-toast-title"},ru=["innerHTML"];function lu(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon");return n.openBlock(),n.createBlock(n.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.toastBodyClass),style:n.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...u)=>e.clickCover&&e.clickCover(...u))},[n.createElementVNode("view",{class:"fox-toast-inner",style:n.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.toastIconWrapperClass)},[n.createVNode(i,{size:e.iconSize,color:e.iconColor,name:e.icon},null,8,["size","color","name"])],2)):n.createCommentVNode("",!0),e.title?(n.openBlock(),n.createElementBlock("div",au,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,ru)],4)],6),[[n.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Br=re(nu,[["render",lu]]),{create:ou}=W("ext-tabpane"),iu=ou({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const r=n.inject("activeKey"),a=n.inject("autoHeight");return{classes:n.computed(()=>({["fox-tabpane"]:!0,inactive:e.paneKey!=r.activeKey.value&&a.autoHeight.value}))}}});function su(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[n.renderSlot(e.$slots,"default")],2)}const Rr=re(iu,[["render",su]]);class cu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const uu={props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0}},components:{},emits:["update:modelValue","click","change"],setup(e,{emit:t,slots:r}){const a=n.ref(null);n.provide("activeKey",{activeKey:n.computed(()=>e.modelValue)}),n.provide("autoHeight",{autoHeight:n.computed(()=>e.autoHeight)});const l=n.ref([]),o=p=>{let O=p["pane-key"];return typeof O=="string"||typeof O=="number"||(O=p.paneKey,typeof O=="string"||typeof O=="number")?String(O):null},i=p=>{p.forEach((O,s)=>{let g=O.type;if(g=g.name||g,g=="fox-ext-tabpane"){let v=new cu;(O.props?.title||O.props?.["pane-key"]||O.props?.paneKey)&&(v.title=O.props?.title,v.paneKey=o(O.props)||String(s),v.disabled=O.props?.disabled),l.value.push(v)}else{if(O.children==" ")return;i(O.children)}})},u=n.ref(e.modelValue||0),c=p=>{let O=l.value.findIndex(s=>s.paneKey==p);if(l.value.length!=0){if(O==-1)return;u.value=O}},h=(p=r.default?.())=>{l.value=[],p=p?.filter(O=>typeof O.children!="string"),p&&p.length&&i(p),c(e.modelValue)};n.watch(()=>r.default?.(),p=>{h(p)}),n.watch(()=>e.modelValue,p=>{c(p)}),n.onMounted(h),n.onActivated(h);const f=n.computed(()=>({transform:e.direction=="horizontal"?`translate3d(-${u.value*100}%, 0, 0)`:`translate3d( 0,-${u.value*100}%, 0)`,transitionDuration:`${e.animatedTime}ms`})),d=n.computed(()=>({background:e.background})),S=n.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),R=n.computed(()=>({marginLeft:U(e.titleGutter),marginRight:U(e.titleGutter)}));return{titles:l,contentStyle:f,tabsNavStyle:d,titleStyle:R,tabsActiveStyle:S,container:a,...{tabChange:(p,O)=>{t("click",p),!p.disabled&&(u.value=O,t("update:modelValue",p.paneKey),t("change",p))}}}}},{create:fu}=W("ext-tabs"),du=fu(uu),hu=["onClick"];function mu(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon");return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(["fox-tabs",[e.direction]]),ref:"container",id:"container"},[n.createElementVNode("view",{class:n.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:n.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?n.renderSlot(e.$slots,"titles",{key:0}):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.titles,(u,c)=>(n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:n.normalizeStyle(e.titleStyle),onClick:h=>e.tabChange(u,c),key:u.paneKey},[e.type=="line"?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:n.normalizeStyle(e.tabsActiveStyle)},null,4)):n.createCommentVNode("",!0),e.type=="smile"?(n.openBlock(),n.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:n.normalizeStyle(e.tabsActiveStyle)},[n.createVNode(i,{color:e.color,name:"joy-smile"},null,8,["color"])],4)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},n.toDisplayString(u.title),3)],14,hu))),128))],6),n.createElementVNode("view",{class:"fox-tabs__content",style:n.normalizeStyle(e.contentStyle)},[n.renderSlot(e.$slots,"default")],4)],2)}const Mr=re(du,[["render",mu]]),gu=[ca,ua,fa,da,ga,ue,wa,$a,Tt,va,La,za,Wa,Ua,Za,ar,lr,hr,gr,pr,wr,vr,Tr,xr,Nr,Ir,En,Dt,Ar,Or,Br,xt,Vt,rt,$n,vn,Rr,Mr,Tn],yu=new pl(gu,[wl],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),m.AutocompleteItem=gr,m.Broadcast=Wt,m.BroadcastKey=le,m.CalendarItem=Wa,m.CalendarPicker=vn,m.CascaderItem=hr,m.CascaderPicker=Tn,m.CheckboxItem=Tr,m.Content=da,m.DataItemsKey=Le,m.DateItem=za,m.DatePicker=$n,m.DialogItem=Ir,m.Domain=Ut,m.DomainKey=Ie,m.ExtIcon=Ar,m.ExtTabPane=Rr,m.ExtTabs=Mr,m.FooterBar=fa,m.Group=ga,m.HeaderBar=ua,m.HintText=Tt,m.Indicator=Or,m.InputItem=va,m.InputNumberItem=lr,m.Item=ue,m.Mapping=En,m.MoneyItem=ar,m.Overlay=xt,m.Page=ca,m.Picker=rt,m.Popup=Vt,m.Price=Dt,m.PriorityPolicy=$t,m.RadioItem=vr,m.RateItem=xr,m.RowItem=$a,m.SelectItem=La,m.SlotItem=wa,m.SwitchItem=Nr,m.TableItem=wr,m.TableMappingColumn=pr,m.TimeItem=Ua,m.TimeSelectItem=Za,m.Toast=Br,m.UniqueID=pa,m.ValidateSchema=ea,m.ValidateSchemaKey=xe,m.clearNonNumber=Ur,m.clone=Kt,m.compareTo=qt,m.createBroadcast=ht,m.createValidateSchema=gt,m.debounce=sl,m.decimalLength=Wn,m.default=yu,m.defineBroadcast=Qr,m.defineDataItem=na,m.defineDomain=Zt,m.defineItem=ce,m.definePageState=aa,m.deleteGlobalValidator=al,m.disabledProperty=pe,m.divide=Lt,m.excludeProps=de,m.extend=Me,m.floatData=Jr,m.getGlobalValidateCheckEvents=Zn,m.getGlobalValidateResetEvents=Qn,m.getPageContentAreaHeight=St,m.getPageContentAreaWidth=wt,m.getPageFooterAreaHeight=bt,m.getPageHeaderAreaHeight=pt,m.getRootDomain=et,m.hasSymbol=Fn,m.includeProps=dt,m.indexOf=Xr,m.integerLength=Yn,m.isArray=Pr,m.isArrayLike=qn,m.isBrowser=Ze,m.isDate=Ce,m.isESModule=_r,m.isEmptyString=se,m.isEqual=Ne,m.isFunction=zt,m.isInnerPage=ul,m.isMap=Fr,m.isNumberString=Kn,m.isObject=ve,m.isPlainObject=_t,m.isPromise=zr,m.isRegExp=_n,m.isSet=Lr,m.isString=qr,m.isSubPage=fl,m.isSymbol=Hr,m.isWindow=Ln,m.lastIndexOf=Zr,m.makeArray=Gr,m.merge=Hn,m.multiply=Rn,m.negate=Mn,m.nextTick=Yr,m.numberFormat=Ht,m.objectToString=Pn,m.property=De,m.raf=zn,m.readonlyProperty=ye,m.setGlobalValidateCheckEvents=rl,m.setGlobalValidateHandler=tl,m.setGlobalValidateMessages=ol,m.setGlobalValidateResetEvents=ll,m.setGlobalValidator=nl,m.throttle=Gt,m.toBoolean=ie,m.toNumber=X,m.toPadding=ke,m.toPx=ee,m.toPxDesc=U,m.toTypeString=ut,m.toValue=J,m.typeOf=ft,m.unNumberFormat=jn,m.updatePageState=Jt,m.useBroadcast=Je,m.useDomain=Ae,m.useExpose=me,m.usePageState=yt,m.usePosition=ba,m.useRect=nt,m.useTouch=Va,m.valueLength=we,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,st,b,Ne,Be){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Sun Aug 23 2026 11:01:17 GMT+0800 (China Standard Time)
|
|
3
|
+
*/const qt=window,Jr=typeof window<"u";function ea(){return typeof qt<"u"?qt.requestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ta(e){Jr?cancelAnimationFrame(e):clearTimeout(e)}const Yl=ea();function Pt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ee(e),t=Ee(t),[e,t]=Sn(Ee(e),Ee(t)),o==1&&(n==1?e=wn(e):t=wn(t));let r=Ul(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(wn(r)):Ee(r)}function wn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Ul(t,a)}function Ee(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 Sn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ul(e,t){[e,t]=Sn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ve=function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e}({});function Tt(e,t=0,o=ve.HALF_EVEN){if(o===ve.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 r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=Tt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Gl(r[1],a,n,o)?(n?"-":"")+xn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Gl(s,i,n,o)&&(i=xn(i),i.length>t)?(n?"-":"")+xn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Gl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!o&&n===ve.FLOOR||o&&n===ve.CEILING)return!1;if(n===ve.UP||o&&n===ve.FLOOR||!o&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function xn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Tn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],c=i-1,f="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let O=t.length-1;O>=c&&O>=0;O--)u[O]>-1&&u[O]<e.length&&(v+=parseInt(e[u[O]--])*parseInt(t[O]));v+=s,s=Math.floor(v/10),f=v%10+f,c--}return f=Ct(na(f,a)),o==1&&(f="-"+f),f}function na(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 Ct(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 Cn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ee(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=Ee(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=Ee(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(u)>=parseInt(t);)u=Pt(u,"-"+t),c++;s+=c,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(Tt(s,o-2))}function $n(e,t){return e=e.toString(),t=t.toString(),t=Nn(t),Pt(e,t)}function Nn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Xl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Zl(e),Zl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=$n(e,Tn(t,Tt(Cn(e,t),0,ve.FLOOR)));return o+n}function Zl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ql(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Sn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}var jt=class fe{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=fe.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ve.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Tt(t,o,n)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(Tt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ve.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ve.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),Pt(t,o)}add(t){return new fe(Pt(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),$n(t,o)}subtract(t){return new fe($n(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),Tn(t,o)}multiply(t){return new fe(Tn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),Cn(t,o,n)}divide(t,o){return new fe(Cn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),Xl(t,o)}modulus(t){return new fe(Xl(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),Ql(t,o)}compareTo(t){return Ql(this.value,t.getValue())}static negate(t){return t=fe.validate(t),Nn(t)}negate(){return new fe(Nn(this.value))}};function Jl(e,t){return jt.multiply(`${e}`,`${t}`)}function En(e,t,o=8){return jt.divide(`${e}`,`${t}`,o)}function kn(e,t){return e=`${e}`,t=`${t}`,jt.compareTo(e,t)}function eo(e){return jt.negate(e)}function zt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let d="",v=s.split("").reverse();for(let O=0;O<v.length;O++)d+=v[O]+((O+1)%n==0&&O+1!=v.length?r:"");u.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function to(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const In=Yl,la=Array.isArray,oa=e=>Ht(e)==="[object Map]",ra=e=>Ht(e)==="[object Set]",aa=e=>e instanceof Date,On=e=>typeof e=="function",no=e=>typeof e=="string",ia=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",lo=e=>Ge(e)&&On(e.then)&&On(e.catch),oo=Object.prototype.toString,Ht=e=>oo.call(e),Vn=e=>Ht(e)==="[object Object]",ro=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function sa(e){return e.__esModule||ro&&e[Symbol.toStringTag]==="Module"}const ua=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ut(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},t[i]=ut(r,c,u)}else u!==void 0&&(t[i]=u)}}return t}function Fn(e,t,o=!1){if(!o)ut(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Vn(i))continue;a=Fn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Vn(i))continue;a=Fn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Dn=ua?Promise.resolve():null;function ca(e,...t){Dn!==null?t&&t.length>0?Dn.then(()=>{e(t)}):Dn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const fa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):fa[o]||"object"}function ao(e){return e&&typeof e=="object"&&"setInterval"in e}function Wt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function io(e){let t=!!e&&"length"in e&&e.length,o=Kt(e);return o==="function"||ao(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function so(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function da(e,t=[]){let o=t;return e!=null&&(io(Object(e))?so(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Kt(e),n=Kt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],c=t[s];if(!Xe(u,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const Ze=typeof window<"u";function Rn(e){return e==null}function An(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function uo(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function co(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function fo(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function ho(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ha(e,t=!0,o=!0){t?e=ho(e,".",/\./g):e=e.replace(/\./g,""),o?e=ho(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ga(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function ma(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function $t(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function go(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const pa=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Mn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){const t=[...this.children];this.children=[],t.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||An(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,s=t.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};t.resolve=u}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):An(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};t.resolve=s}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Yt(e,t,o,n){const r=new Mn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ya(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new Mn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function Nt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}const ct=e=>e.default??e;class ba{error(t,o){const n=o,r=o||l.hasInjectionContext()?Nt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Nt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Et=new ba;function va(e){Et=e}function wa(e){Et?Object.assign(Et,e):Et=e}function Sa(e,t){ct(st).setValidator(e,t)}function xa(e){ct(st).deleteValidator(e)}let mo=["blur","clear"];function Ta(e){mo=e}function po(){return mo}let yo=["focus","change","setValue"];function Ca(e){yo=e}function bo(){return yo}function $a(e){ct(st).messages(e)}function kt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Ut(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 je=Symbol("ValidateSchemaKey");class vo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,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=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Ut(kt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Ut(n);const r=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Et;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ct(st).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ct(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ct(st).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=kt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ut(t):this.rules=Ut([t]);const n=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=kt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ct(st),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function Gt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new vo(t,o,e)}const Xt=Symbol.for("EventEmitterKey");class wo{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function It(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function So(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Na(e,t){const o=It((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Ea(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Zt(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class Qt{_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=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const ka=new Qt;function mt(){return ka}function nt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Jt=Symbol("OriginalDateKey");function Ln(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=mt());const s=e||t.prop||t.name;let u=new Qt(s);u.parent=i;const c=O=>{a[Jt]||v(O),u?.set("modelValue",O)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[Jt]??null,v=O=>{const m={};ut(!0,m,l.toRaw(O)),a[Jt]=m};if(l.isReactive(t)||typeof t=="function"?l.watch(t,O=>{u?.merge(O,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Le]=u,l.provide(Le,u),r!==null){const O=l.inject(be,null),m=Yt(a,O,s,n);u.broadcast=m,a[be]=m,l.provide(be,m),a.broadcast=(T,w,...N)=>Reflect.apply(m.emit,m,[T,w,...N]);const h=l.inject(je,null),g=Gt(a,h,{componentName:""});u.validateSchema=g,a[je]=g,l.provide(je,g),a[gt]=new Map,a.validate=(T=!0)=>{const w=[];let N=null;const z={deep:!1};if(T===!0)N={name:"*"};else if(Array.isArray(T)&&T.length>0){const B=T;N={name:_=>_?B.indexOf(_)!==-1:!1}}else if(T!=null&&typeof T=="object"){const B=T;if(Object.assign(z,B),Array.isArray(B.include)&&B.include.length>0){const _=B.include;N={name:D=>D?_.indexOf(D)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const _=B.exclude;N={name:D=>D?_.indexOf(D)===-1:!1}}else N={name:"*"}}if(N){const B=m?.emitToChildren(N,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let _=[];return B.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(_=[..._,...D.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(T).forEach(B=>{let _=String(B);const D={componentName:"",fieldName:_,pureDataValidate:!0};if(u){const L=To(u,_,D,m,g);a[gt].set(_,L);const E=T[_];E&&L.validateSchema.setRule(E)}});return}if(w){const z=Reflect.ownKeys(T),B={name:_=>z.includes(_),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(B,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;w={name:z=>z?N.indexOf(z)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Array.isArray(N.include)&&N.include.length>0){const z=N.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const z=N.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&m?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=f();if(!w)return;const N={};if(ut(!0,N,d()??{}),Array.isArray(T))T.forEach(z=>{w[z]=N[z]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(B=>{w[B]=N[B]});else if(T&&Array.isArray(T.exclude)){let z=T.exclude??[];Reflect.ownKeys(N).forEach(B=>{z.includes(B)||(w[B]=N[B])})}else Object.assign(w,N);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?c(T):m?.emitToChildren({name:w,messagingPolicy:"Once"},"setModelValue",T)},a.getModelValue=()=>f(),setTimeout(function(){m?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[je]=void 0,l.provide(je,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[be]=void 0,l.provide(be,null)),u?.destroy(),a[Le]=void 0,l.provide(Le,null),a[gt]&&(a[gt].clear(),a[gt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a[Jt]=null,u=null,a=null}),u}function xo(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=mt());const i=e||t.prop||t.name;let s=new Qt(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Le]=s,l.provide(Le,s),l.onUnmounted(()=>{s?.destroy(),r[Le]=void 0,l.provide(Le,null),s=null,r=null}),s}function Ce(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let s=Yt(r,i,a,o);r[be]=s,l.provide(be,s),r.broadcast=(m,h,...g)=>s?Reflect.apply(s.emit,s,[m,h,...g]):null;const u=l.inject(je,null);e.fieldName=e.fieldName??a;let c=Gt(r,u,e);r[je]=c,l.provide(je,c),r.validate=(m=null)=>{if(!c)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const w=m,N=w.ignoreDisabled??!0,z=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;N===!0&&e.disabled===!0||z===!0&&e.readonly===!0||B===!0&&Wt(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const w=c?.validate();h.push(w)}if(g){let w=null;const N={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const z=m;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const z=m;if(Object.assign(N,z),Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:_=>_?B.indexOf(_)===-1:!1}}else w={name:"*"}}if(w&&s){const z=s.emitToChildren(w,"validate",N);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let N=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(N=[...N,...z.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&c?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&c?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let f=new wo(r);r[Xt]=f;const d=It((m="validate")=>{c&&(m==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:po()).forEach(m=>{f&&f.on(m,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:bo()).forEach(m=>{f&&f.on(m,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[be]=void 0,l.provide(be,null),s=null,c?.destroy(),r[je]=void 0,l.provide(je,null),c=null,f?.destroy(),r[Xt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:c,emitEvent:(m,...h)=>{f&&Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function To(e,t,o,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};let u=Gt({},r,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,O=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)O=!0,v=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),O=!0,v=m.deep??!1}else typeof f=="boolean"&&(v=f),O=!0;if(O&&u){const m=u.validate();d.push(m)}if(v){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:w=>w?T.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&c){const g=c.emitToChildren(m,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};let c=Yt(null,n,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function Co(){let t=l.getCurrentInstance()?.proxy,o=new wo(t);return t[Xt]=o,l.onUnmounted(()=>{o?.destroy(),t[Xt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ie=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const lt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function Bn(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??t.width??0,r)}}function $o(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Bn(n,a,t,!0,i,s,u,c);const f=l.reactive(n),d=e.getForParent(lt);d&&(n.height=tn(e,d),n.width=nn(e,d),l.watch([()=>tn(e,d),()=>nn(e,d)],([O,m])=>{f.height=O,f.width=m}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([O,m,h=-1,g=-1,T=0,w=0])=>{Bn(f,m,t,v,h,g,T,w)}),e.set(lt,f),f}function en(e){return e.get(lt)}function Ot(e,t){if(t=t??e.get(lt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(lt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function tn(e,t){if(t=t??e.get(lt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Vt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function nn(e,t){return t=t??e.get(lt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ia(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Oa(e){return!!e.getForParent(lt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function _n(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ve(e,t,o=1,n){const r=nt();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(_n(u,n))return u}const i=e.value;return _n(i,n)?i:null}):l.computed(()=>{const a=e.value;return _n(a,n)?a:r?.get(t)})}function Fe(e){return Ve(e,"readonly",0,function(o){return se(o)})}function De(e){return Ve(e,"disabled",0,function(o){return se(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const No=new Map,ln=new Map;let qn=null;function Va(e){qn=e}function Eo(e,t,o){if(o){let n=ln.get(o);n||(n=new Map,ln.set(o,n)),n.set(e,t)}else No.set(e,t)}function ze(e,t,o){!o&&qn&&(o=qn(e)??void 0);let n=null;if(o){let r=ln.get(o);r&&(n=r.get(t))}return n||(n=No.get(t)),n}function Fa(e,t){for(let o in e){const n=e[o];Eo(o,n,t)}}function Da(e){ln.delete(e)}function Ra(){return{top:0,left:0,bottom:0,right:0}}function Aa(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ma(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class La{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ma(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=mt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=So(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ut({},Ra(),t.safeAreaInset),i=Aa(n,r),s=ut({},i.pageLayout,t.pageLayout);o=o??mt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Va(t)}setAPI(t,o,n){Eo(t,o,n)}getAPI(t,o,n){return ze(t,o,n)}batchSetAPI(t,o){Fa(t,o)}clearScopeAPI(t){Da(t)}getRootDomain(){return mt()}}const Ba=[b.ElAffix,b.ElAlert,b.ElAutocomplete,b.ElAutoResizer,b.ElAvatar,b.ElBacktop,b.ElBadge,b.ElBreadcrumb,b.ElBreadcrumbItem,b.ElButton,b.ElButtonGroup,b.ElCalendar,b.ElCard,b.ElCarousel,b.ElCarouselItem,b.ElCascader,b.ElCascaderPanel,b.ElCheckTag,b.ElCheckbox,b.ElCheckboxButton,b.ElCheckboxGroup,b.ElCol,b.ElCollapse,b.ElCollapseItem,b.ElCollapseTransition,b.ElColorPicker,b.ElConfigProvider,b.ElContainer,b.ElAside,b.ElFooter,b.ElHeader,b.ElMain,b.ElDatePicker,b.ElDescriptions,b.ElDescriptionsItem,b.ElDialog,b.ElDivider,b.ElDrawer,b.ElDropdown,b.ElDropdownItem,b.ElDropdownMenu,b.ElEmpty,b.ElForm,b.ElFormItem,b.ElIcon,b.ElImage,b.ElImageViewer,b.ElInput,b.ElInputNumber,b.ElLink,b.ElMenu,b.ElSubMenu,b.ElMenuItem,b.ElMenuItemGroup,b.ElPageHeader,b.ElPagination,b.ElPopconfirm,b.ElPopover,b.ElPopper,b.ElProgress,b.ElRadio,b.ElRadioButton,b.ElRadioGroup,b.ElRate,b.ElResult,b.ElRow,b.ElScrollbar,b.ElSelect,b.ElOption,b.ElOptionGroup,b.ElSelectV2,b.ElSkeleton,b.ElSkeletonItem,b.ElSlider,b.ElSpace,b.ElSteps,b.ElStep,b.ElSwitch,b.ElTable,b.ElTableColumn,b.ElTableV2,b.ElTabs,b.ElTabPane,b.ElTag,b.ElTimePicker,b.ElTimeSelect,b.ElTimeline,b.ElTimelineItem,b.ElTooltip,b.ElTransfer,b.ElTree,b.ElTreeSelect,b.ElTreeV2,b.ElUpload],_a=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],qa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Ba.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),_a.forEach(r=>{e.use(r)})};function ue(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},ko={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Io={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Oo=[];for(const e in Io)Oo.push(e);const Pa=Symbol.for("InnerPageScopeKey"),ja={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},za=(e,t)=>({inheritAttrs:!0,props:{...xe,...ko,...ja},setup(o,{slots:n}){const r=Ln(o.name,o),a=l.inject(Pa,!1);if(r){const f=$o(r,o);$e({getPageContentHeight:()=>tn(r,f),getPageContentWidth:()=>nn(r,f),getPageHeaderHeight:()=>Ot(r,f),getPageFooterHeight:()=>Vt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[v,O])=>{if(f&&v){const m=l.toRaw(v),h=l.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),c(h)}if(d&&O){const m=l.toRaw(O),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),c(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);c(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:s.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ha,create:Ka,scope:ph}=ue("page"),Pn=Ka(za(Ha));function on(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function jn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Wa=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=nt(),s=i?en(i):null;s&&(s.headerMounted=!0);const u=e,c=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?he(r.height):null,v=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(k,x),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(x.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),r.padding){const x=Ke(r.padding);Object.assign(k,x)}return k}),O=l.ref(null),m=()=>{if(s&&O.value&&!Wt(O.value)){if(!n){const k=on(O.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(Zt(m,50,5,50,!0),window.ResizeObserver&&O.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(O.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const k={};return v.value.height!==null&&v.value.height!==void 0&&(k.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(k.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(k.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(k.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(k.paddingBottom=`${v.value.bottom}px`),k}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function N(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const _=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},D=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},L=()=>{if(!r.titleShow)return null;const k=[],x=a.slots.default?a.slots.default():null;if(x)k.push(x);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},E=()=>{const k=[],x=a.slots.bottom?a.slots.bottom():null;return x&&k.push(x),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!T.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],$=_();$&&j.push($);const I=L();I&&j.push(I);const R=D();if(R&&j.push(R),j.length>0){const Y=l.h("view",{class:f.value},j);k.push(Y)}const U=E();U&&k.push(U)}if(k.length===0)return null;const x={class:c.value,style:g.value,ref:O};return l.h("view",x,k)}}}),{componentName:Ya,create:Ua,scope:Ga}=ue("header-bar"),zn=Ua(Wa(Ya,Ga,Ne.ArrowLeft));function Xa(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=nt(),i=a?en(a):null,s=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,c=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=Ke(n.padding);Object.assign(m,h)}return m}),f=l.ref(null),d=()=>{if(i&&f.value&&!Wt(f.value)){if(!o){const m=on(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(Zt(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const O=l.computed(()=>{const m={};return c.value.height!==null&&c.value.height!==void 0&&(m.height=Ie(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(m.paddingTop=Ie(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(m.paddingLeft=Ie(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(m.paddingRight=Ie(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(m.paddingBottom=Ie(c.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:O.value};return l.h("view",h,m)}}}}const{componentName:Za,create:Qa,scope:yh}=ue("footer-bar"),Hn=Qa(Xa(Za));function Ja(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=nt(),r=l.computed(()=>({[e]:!0})),a=n?en(n):null,i=l.computed(()=>{const c={};if(n&&a){if(o.padding){const O=Ke(o.padding);Object.assign(a.contentPadding,O)}const f=Ot(n,a),d=Vt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,c.height=v,a.contentPadding.top||f>0){const O=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+O}px`}if(a.contentPadding.bottom||d>0){const O=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+O}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const f=Ke(o.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),s=l.ref(null),u=()=>{if(a&&s.value){const c=jn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Vt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ei,create:ti,scope:bh}=ue("content"),ni=ti(Ja(ei));function li(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Pe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Kn=Pe(ni,[["render",li]]),pt="GroupStateKey",Vo=Symbol.for("GroupScopeKey");function rn(){return l.inject(Vo,!1)}function an(e=!0){l.provide(Vo,e)}function oi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Rn(r)||(e[n]=r)})}function ri(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};oi(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(pt,a),a}function Wn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(pt);if(!u)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=he(a),d=he(i);s||(s=c.type??"grid");const v=()=>{const O=t===""||t===-1,m=he(t);let h=Se(o);const g=he(n);if(!O){let N=(m-(h-1)*g)/h;for(;d!==-1&&N>d;)h++,N=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&N<f;)h--,N=(m-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const O=++u.passport;setTimeout(()=>{O===u.passport&&v()},50)}}function sn(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.layout}function un(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.order}function Fo(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function cn(e,t,o=1,n=0,r){const a={};let i=0;r?i=he(r):i=Fo(t.column,o),i>0&&(a.width=`${i}%`);const s=Fo(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function fn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,c=u+(t.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let r=Se(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=Se(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Do=Symbol("RollingStateKey");function ai(e){l.provide(Do,e)}function ii(){return l.inject(Do,null)}function Yn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function si(e){let t=Yn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Yn(o),document.body.removeChild(o)}return t}function ui(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ci={...xe,...ko,...Io};function fi(e,t,o){return{props:ci,emits:["update:collapse","header-click"],setup(n,r){const a=Ln(n.name,n,Oo),i=ri(a,{type:n.type}),s=rn();an(!0);const u=n.rollingDisplay?ii():null,c=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?sn(a,!0).value:null),v=l.getCurrentInstance(),O=(H,J=!1)=>{const ne=v?.proxy;ne&&typeof ne.setNameValidateRules=="function"&&ne.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[ne,C])=>{if(H&&ne){const W=l.toRaw(ne),ee=l.toRaw(H),oe=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(ce=>{oe.includes(ce)||(ee[ce]=[])}),O(ee)}if(J&&C){const W=l.toRaw(C),ee=l.toRaw(J),oe=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(ce=>{oe.includes(ce)||(ee[ce]=[])}),O(ee,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const H={};H.height=R.value;const J=s?un(a,!0):null;if(d.value&&J){if(d.value.type==="grid"){const ne=fn(J,d.value,n.span,n.offset);Object.assign(H,ne)}else if(d.value.type==="flow"){const ne=cn(J,d.value,n.span,n.offset,n.width);Object.assign(H,ne)}}else if(n.width){const ne=Ie(n.width);H.width=ne}return H}),g=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${m}--${H}`]:!0,[`${m}--${H}-justify-${n.justify}`]:!0,[`${m}--${H}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${H}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const ne=ui(L.value,i.layout.value.column,i.layout.value.gutter);J=`repeat(${i.layout.value.column}, ${ne})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),N=l.toRef(n,"column"),z=l.computed(()=>s||f.value?!0:se(n.isWrap)),B=[],_=H=>{B.push(H)},D=()=>{let H=B.length;B.splice(0,H)},L=l.ref(-1),E=H=>{const J=jn(H).width;J>0&&J!==L.value&&(L.value=J)};Wn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([L,N,w],([H,J,ne])=>{i.order.index=0,Wn(a,H,J,ne,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>U.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),$=l.ref(),I=l.ref(),R=l.computed(()=>Y.value||Ie(n.height)||""),U=l.ref(!1),Y=l.ref(""),Q=l.ref(!1);let X=-1;const te=(H,J=!0)=>{const ne=$.value;if(ne&&U.value!==H){if(X=X===-1?si(ne):X,Q.value=!0,J)if(ne.style["will-change"]="height",ne.ontransitionend=function(){ne.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",Q.value=!1)},H){let C=0;n.collapseHeight?C=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(C=I.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${C}px`})}else Y.value=`${X}px`;else if(H){let C=0;n.collapseHeight?C=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(C=I.value.offsetHeight),Y.value=`${C}px`}else Q.value=!1,Y.value=`${X}px`;U.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{te(H)});const ae=H=>{r.emit("header-click",H)},V=()=>{S()},S=H=>{H=H??!U.value,te(H)};$e({toggleCollapse:S,doLayout:()=>{B[0]&&(E(B[0]),Wn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let F=null,y=!0;const K=H=>{if(n.rules){const J=l.toRaw(n.rules);O(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);O(J,!0)}if(Ze&&(H&&te(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];E(J),window.ResizeObserver&&(F=new window.ResizeObserver(()=>{E(J)}),F.observe(J))}},P=()=>{F?.disconnect(),F=null},q=!f.value||u?.acquire();q&&(c.value=f.value?!0:null),l.onMounted(()=>{if(q&&(K(y),y=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe($.value,ne=>{if(ne!==c.value)if(ne)c.value=!0,U.value||(Y.value=""),H=setTimeout(()=>{H=null,c.value!==!1&&(K(y),y=!1)},100);else{if(H!==null&&clearTimeout(H),c.value=!1,!U.value)if(y)Y.value=u.initialHeight;else{let C=Yn($.value);C<=0?Y.value=J:(Y.value=`${C}px`,J=Y.value)}y||P()}})}}),l.onUnmounted(()=>{F?.disconnect(),u&&u.unobserve($.value)});const M=(H="right")=>{const J=[];if(k.value){const W={class:x.value},ee=l.h("span",W,[k.value]);J.push(ee)}const ne={class:j.value},C=o(n.collapseIcon,ne);return C&&J.push(C),J.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:V},J):null},G=(H,J,ne,C)=>{const W={...g.value};return J===0&&(W[`${m}__first`]=!0),ne>=C-1&&(W[`${m}__last`]=!0),l.h("div",{ref:_,key:`${J}`,class:W,style:T.value},H)};return()=>{if(f.value&&c.value!==!0){const W=n.tag||"div";return l.h(W,{ref:$,prop:n.name,class:{[`${m}`]:!0,"is-collapse":Q.value},style:h.value},[])}i.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:I,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},ee=l.h("div",W,[r.slots.header()]);H.push(ee)}else{const W=[],ee=n.collapsePosition==="left";if(ee&&n.showCollapse){const oe=M("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${m}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ee&&n.showCollapse){const oe=M("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:I,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},de=l.h("div",oe,W);H.push(de)}}D();const ne=r.slots.default?r.slots.default():[],C=i.layout.value.type;if(C==="grid"){const W=G(ne,J++,0,ne.length);H.push(W)}else if(C==="flow"){const W=G(ne,J++,0,ne.length);H.push(W)}else for(let W=0;W<ne.length;W++){const ee=ne[W],oe=G([ee],J++,W,ne.length);H.push(oe)}if(z.value){const W=n.tag||"div";return l.h(W,{ref:$,prop:n.name,class:{[`${m}`]:!0,"is-collapse":Q.value},style:h.value},[H])}else return H}}}}const{componentName:di,create:hi,scope:gi}=ue("group"),Un=hi(fi(di,gi,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function mi(e){return e===window}const pi=/matrix\((.+)\)/,Ro=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(mi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=pi.exec(c);if(f){let v=f[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class yi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class bi{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new yi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Ao=new bi,Mo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:vi,create:wi}=ue("price"),Si=wi({props:{...Mo},setup(e){const t=l.computed(()=>({[vi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>$t(e.price)==0?"":zt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),xi=["innerHTML"],Ti=["innerHTML"];function Ci(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,xi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ti)):l.createCommentVNode("",!0)],2)}const dn=Pe(Si,[["render",Ci]]),{componentName:Gn,create:$i}=ue("hint-text"),Ni=$i({components:{Price:dn},props:{...Mo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),c=(x,j,$,I,R,U)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,X=x.split("-");let te=[];X[0]==="top"?te=["top","bottom","right","left"]:X[0]==="bottom"?te=["bottom","top","right","left"]:X[0]==="left"?te=["left","top","bottom","right"]:X[0]==="right"&&(te=["right","top","bottom","left"]);const ae={top:null,right:null,bottom:null,left:null},V=[];for(let S=0;S<te.length;S++){const A=te[S];if(V[0]=A,X[1]&&(V[1]=X[1]),A==="top"){const F=j.y-U-e.arrowSize-e.offset;if(F>=0){ae.top=F;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+$-R:y=j.x+$/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,ae.left=y<0?0:y;break}}else if(A==="bottom"){const F=j.y+I+e.arrowSize+e.offset;if(F+U<=Q){ae.top=F;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+$-R:y=j.x+$/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,ae.left=y<0?0:y;break}}else if(A==="left"){const F=j.x-R-e.arrowSize-e.offset;if(F>=0){ae.left=F;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-U:y=j.y+I/2-U/2,ae.top=y<0?0:y;break}}else if(A==="right"){const F=j.x+$+e.arrowSize+e.offset;if(F+R<=Y){ae.left=F;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-U:y=j.y+I/2-U/2,ae.top=y<0?0:y;break}}}return{bestPlacement:V.join("-"),bestInsetRect:ae}},f=(x,j,$=10)=>{if(Ze&&!(j===!1||!x)&&e.reference){n.value=Ro(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const I=u.value?.offsetHeight??0,R=u.value?.offsetWidth??0,{bestPlacement:U,bestInsetRect:Y}=c(e.placement,n.value,r.value,a.value,R,I);i.value=U,o.value=Y,s.value=!0}},d=l.ref(0),v=It(()=>{f(e.message,e.visible)},10),O=l.ref(e.visible);l.watch(()=>e.visible,x=>{O.value=x});const m=l.computed(()=>O.value&&h.value),h=l.ref(!0),g=It(x=>{const j=x[0];j&&(h.value=j.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([x,j])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Ao.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeUnmount(()=>{Ao.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const x={[Gn]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),N=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${j}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),z=l.computed(()=>{const x=[`${Gn}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),B=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),_=l.computed(()=>({[`${Gn}__arrow`]:!0})),D=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),L=l.computed(()=>m.value&&e.closeOnClick),E=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:m,tipRef:u,classes:w,styles:N,textClasses:z,textStyles:B,arrowClasses:_,arrowStyles:D,overlayShow:L,overlayStyle:E,onClickOverlay:()=>{O.value=!1,t.emit("update:visible",!1)}}}}),Ei=["innerHTML"];function ki(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ei))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Ft=Pe(Ni,[["render",ki]]);class Lo{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Xn={},Ii=new Lo,yt=new Map,hn=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&(l.render(null,t),t.parentNode?.removeChild(t))}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&(l.render(null,o),o.parentNode?.removeChild(o))}yt.clear()}},Oi=e=>{e.unmount=hn;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...Xn,...o,...e}:e={...Xn,...e},e.transition=!1;const n=l.createVNode(Ft,e);return l.render(n,t),e.id}},Vi=e=>{e.unmount=hn;let t=e.id??`hinttext_${Ii.get()}`;e={...Xn,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Ft,e);return l.render(n,o),document.body.appendChild(o),t},Fi=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Re={show(e,t,o={},n=!0){Fi(t);const r=o.id;return r&&yt.has(r)?Oi({...o,message:t,reference:e}):(n&&hn(),Vi({...o,message:t,reference:e}))},hide(e){hn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Di(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ce({componentName:e,validate:!1},i);const s=nt(),u=rn();an(!1);const c=l.computed(()=>u&&s?sn(s,!1).value:null),f=e,d=l.ref(null),v=l.computed(()=>{const C={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(C[r.errorMarkClass]=!!U.value,C[r.warnMarkClass]=!!I.value,C[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const W=d.value(i);C[W]=!0}else if(typeof d.value=="string"){const W=d.value;C[W]=!0}return C}),O=l.ref(null),m=l.computed(()=>{const C={};if(r.width)r.width!=="auto"&&(C.width=Ie(r.width));else{const W=u&&s?un(s,!1):null;if(c.value&&W){if(c.value.type==="grid"){const ee=fn(W,c.value,r.span,r.offset);Object.assign(C,ee)}else if(c.value.type==="flow"){const ee=cn(W,c.value,r.span,r.offset,r.width);Object.assign(C,ee)}}}if(typeof O.value=="function"){const W=O.value(i);W&&Object.assign(C,W)}else if(O.value&&typeof O.value=="object"){const W=O.value;Object.assign(C,W)}return C}),h=l.ref(null),g=l.computed({get:()=>h.value??se(r.isRequired),set:C=>{h.value=C}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ve(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),N=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${N.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${N.value}`]:!0})),_=Ve(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),D=l.computed(()=>_&&_.value?{width:Ie(_.value)}:{}),L=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(C){g.value=C},setErrorTip(C){x.errorTip=C},setErrorIcon(C){x.errorIcon=C},setWarnTip(C){x.warnTip=C},setWarnIcon(C){x.warnIcon=C},setInfoTip(C){x.infoTip=C},setInfoIcon(C){x.infoIcon=C},setCustomClassName(C){d.value=C},setCustomStyle(C){O.value=C}});const j=l.computed(()=>r.infoTip||x.infoTip),$=l.computed(()=>r.infoIcon||x.infoIcon),I=l.computed(()=>r.warnTip||x.warnTip),R=l.computed(()=>r.warnIcon||x.warnIcon),U=l.computed(()=>r.errorTip||x.errorTip),Y=l.computed(()=>r.errorIcon||x.errorIcon),Q=l.computed(()=>U.value?"error":I.value?"warn":j.value?"info":""),X=()=>Q.value.length>0,te=l.computed(()=>Q.value==="error"?U.value:Q.value==="warn"?I.value:Q.value==="info"?j.value:""),ae=l.computed(()=>Q.value==="error"?Y.value:Q.value==="warn"?R.value:Q.value==="info"?$.value:null),V=l.computed(()=>{const C={[`${f}__tip`]:!0,[`${f}__tip--${Q.value}`]:!0,[`${f}--animate`]:!0};return Q.value==="error"&&r.errorClass?C[`${r.errorClass}`]=!0:Q.value==="warn"&&r.warnClass?C[`${r.warnClass}`]=!0:Q.value==="info"&&r.infoClass&&(C[`${r.infoClass}`]=!0),C}),S=l.computed(()=>{const C={};return w&&w.value==="top"||!T()?C["padding-left"]="0px":_&&_.value&&(C["padding-left"]=Ie(_.value)),C}),A=l.ref();let F="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([C,W,ee,oe])=>{A.value&&(C&&!pe(W)?F?o.show(A.value,W,{...oe,id:F,type:ee},!0):F=o.show(A.value,W,{...oe,type:ee},!0):o.hide(F))});let y=null;const K=()=>{y||!A.value||(y=new IntersectionObserver(C=>{let W=!1;for(let ee of C)if(ee.intersectionRatio>0){W=!0,W&&a.emit("appear",ee);break}W||a.emit("disappear")}),y.observe(A.value))},P=()=>{y&&(A.value&&y.unobserve(A.value),y.disconnect(),y=null)};l.watch(()=>se(r.appearListen),C=>{C?K():P()}),l.onMounted(()=>{se(r.appearListen)&&K()}),l.onUnmounted(()=>{P(),F&&o.hide(F)});const q=()=>{if(!T())return null;const C=[],W=a.slots?.label?.()??r.label,ee={class:L.value},oe=l.h("div",ee,[W]);if(C.push(oe),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();C.push(ce)}const de={class:B.value,style:D.value};return l.h("div",de,C)},M=()=>{const C=[];if(a.slots.prepend){const ee=a.slots.prepend();C.push(ee)}if(a.slots.default){const ee=a.slots.default();C.push(ee)}if(a.slots.append){const ee=a.slots.append();C.push(ee)}if(a.slots.fixedTip){const ee={class:[`${f}__fixed-tip`]},oe=l.h("div",ee,[a.slots.fixedTip()]);C.push(oe)}const W={ref:A,class:E.value,style:k.value};return l.h("div",W,C)},G=()=>{const C=ae.value;return C?typeof C=="function"?l.h("div",{class:"fox-item__tip--icon"},[C()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(C)]):null},H=()=>{const C=te.value;return C?typeof C=="function"?l.h("div",{class:"fox-item__tip--text"},[C()]):l.h("div",{class:"fox-item__tip--text"},[C]):null},J=()=>{if(!X())return null;const C=[],W=G();W&&C.push(W);const ee=H();ee&&C.push(ee);const oe={class:V.value,style:S.value};return l.h("div",oe,C)},ne=()=>a.slots?.hide?.()??null;return()=>{const C=[],W=[],ee=q();ee&&W.push(ee);const oe=M();oe&&W.push(oe);const de={class:z.value},ce=l.h("div",de,W);C.push(ce);const ye=J();ye&&C.push(ye);const Ue=ne();Ue&&C.push(Ue);const at={class:v.value,style:m.value,prop:r.prop};return l.h("div",at,C)}}}}const{componentName:Ri,create:Ai,scope:Mi}=ue("item"),Te=Ai(Di(Ri,Mi,Re,!1));function Li(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=nt(),a=rn();an(!1);const i=l.computed(()=>a&&r?sn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const f={},d=a&&r?un(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=fn(d,i.value,o.span,o.offset);Object.assign(f,v)}else if(i.value.type==="flow"){const v=cn(d,i.value,o.span,o.offset,o.width);Object.assign(f,v)}else return o.width&&(f.width=Ie(o.width)),f;else o.width&&(f.width=Ie(o.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Bi,create:_i,scope:wh}=ue("slot-item"),Zn=_i(Li(Bi));function qi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=nt(),s=rn();an(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=sn(i,!1),d=un(i,!1);if(f.value&&d)if(f.value.type==="grid"){const v=fn(d,f.value,o.span,o.offset);Object.assign(c,v)}else if(f.value.type==="flow"){const v=cn(d,f.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Ie(o.width))}else o.width&&(c.width=Ie(o.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const O=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(O)}c.push(d[v])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Pi,create:ji,scope:Sh}=ue("row-item"),Qn=ji(qi(Pi)),We=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Bo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:[Boolean,String],default:!1}};function zi(e,t,o){return{props:{...xe,...Oe,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,O=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),m=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let g=ge(n,"hintText"),T=l.ref(!1);const w=$=>{let R=$.target.value;f.value=!0,pe(g.value)||(T.value=!0),s("focus",R,$)},N=$=>{setTimeout(()=>{T.value&&(T.value=!1),f.value=!1},0);let R=$.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,$)},z=()=>{s("clear","")},B=l.ref(!1);let _=null;const D=()=>{se(n.showTooltip)&&B.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{B.value=!0},150))},L=()=>{_&&(clearTimeout(_),B.value=!1,_=null)},E=l.computed(()=>B.value||T.value),k=l.computed(()=>B.value?d.value:g.value),x=l.computed(()=>$t(n.unit)>0),j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...We(r.attrs),ref:j,class:O.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:m,onFocus:w,onBlur:N,onMouseover:D,onMouseleave:L},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const U=[],Y=l.h(b.ElInput,I,R);U.push(Y);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.default&&(Q.fixedTip=r.slots.fixedTip);const te={...ke(n,Bo),hintText:k.value,hintVisible:E.value,prop:`${n.prop}_item`};return l.h(o,te,Q)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ue("input-item"),Jn=Ki(zi(Hi,Wi,Te));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _o(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Yi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ui=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Gi(){const e=l.getCurrentInstance();return new Ui(e.proxy)}function qo(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function Po(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=_o(e,i);if(Array.isArray(s)&&s.length>0){const u=Po(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ot(e,i)===a;else if(o==="item")u=qo(e,i,a);else{let c=Dt(e,i);c==null&&(c=ot(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function Xi(e){return{text:e,value:e}}const jo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean,String],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:[Boolean,String],default:!1}};function Zi(e,t,o){return{props:{...xe,...Oe,...jo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(G=>ot(n,G)).join(" "):""),O=(M,G,H,J=!0)=>{if(H.length==0){J&&(s("update:modelValue",M),s("change",M)),f.value=M;return}const ne=Po(n,M,G,H);if(ne===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let C=!0;if(ne.length!==d.value.length)C=!1;else for(let W=0;W<ne.length;W++){const ee=ne[W],oe=d.value[W];if(!qo(n,ee,oe)){C=!1;break}}if(!C){d.value=ne;let W=[],ee=[],oe=[];ne.forEach(Ue=>{const at=Dt(n,Ue),xt=ot(n,Ue);W.push(at),oe.push(xt),n.valueType==="text"?ee.push(xt):n.valueType==="item"?ee.push(Ue):ee.push(at)});let de,ce,ye;se(n.multiple)?(f.value=W,de=l.toRaw(ee),ce=oe,ye=l.toRaw(ne)):(f.value=W[0]??"",de=l.toRaw(ee[0]??""),ce=oe[0]??"",ye=l.toRaw(ne[0])),J&&(s("update:modelValue",de),s("change",de,ye)),s("update:text",ce)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,M=>se(M)),w=Gi(),N=async(M,G)=>{if(M){const H=await w.load("select",M,G);if(H.length>0)if(typeof H[0]=="string"){let C=H.map(W=>Xi(W));m.value=C}else m.value=H;else m.value=null}};l.watch([()=>n.source,()=>n.params],([M,G])=>{h.value=null,N(M,G)},{immediate:!T.value});let z=!1;const B=()=>{z||(z=!0,N(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([M,G])=>{if(E()&&se(n.multiple)){Xe(G,f.value)||(f.value=G);return}O(G,n.valueType,g.value,!1),s("setValue",G)}),n.source||(f.value=n.modelValue);let _=null,D=l.ref(!1);typeof n.remoteMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}D.value=!0;try{const G=await n.remoteMethod(M);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}D.value=!1});let L=null;typeof n.filterMethod=="function"&&(L=async M=>{if(M==null){h.value=null;return}D.value=!0;try{const G=await n.filterMethod(M,m.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}D.value=!1});const E=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),x=e,j=l.computed(()=>({[x]:!0})),$=M=>{n.allowCreate||E()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):O(M,"value",g.value,!0)};let I=ge(n,"hintText"),R=l.ref(!1);const U=M=>{let H=M.target.value;k.value=!0,pe(I.value)||(R.value=!0),s("focus",H,M)},Y=M=>{setTimeout(()=>{R.value&&(R.value=!1),k.value=!1},0);let H=M.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),F.value||s("blur",H,M)},Q=()=>{s("clear","")},X=l.ref(!1);let te=null;const ae=()=>{se(n.showTooltip)&&X.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{X.value=!0},150))},V=()=>{te&&(clearTimeout(te),X.value=!1,te=null)},S=l.computed(()=>X.value||R.value),A=l.computed(()=>X.value?v.value:I.value),F=l.ref(!1),y=M=>{F.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},P=(M,G)=>{const H=[];return M.forEach((J,ne)=>{const C=_o(n,J);if(Array.isArray(C)&&C.length>0){const W=P(C,G),ee=ot(n,J),de={key:`${ee}_${ne}`,label:ee};H.push(l.h(b.ElOptionGroup,de,{default:()=>W}))}else{const W=Dt(n,J),ee=ot(n,J),oe=Yi(n,J),ce={key:`${W}_${ne}`,label:ee,disabled:oe,value:W};if(typeof G=="function")H.push(l.h(b.ElOption,ce,{default:()=>G(J)}));else if(n.optionType==="item"){const ye={class:{"fox-select-item__option-left":!0}},Ue=l.h("span",ye,[W]),at={class:{"fox-select-item__option-right":!0}},xt=l.h("span",at,[ee]),it=l.h("div",{class:{"fox-select-item__option":!0}},[Ue,xt]);H.push(l.h(b.ElOption,ce,{default:()=>it}))}else n.optionType==="value"?H.push(l.h(b.ElOption,ce,{default:()=>[W]})):H.push(l.h(b.ElOption,ce))}}),H},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const G={...We(r.attrs),ref:q,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:Q,onChange:$,onFocus:U,onBlur:Y,onVisibleChange:y,onRemoveTag:K};typeof _=="function"&&(G["remote-method"]=_,G.loading=D.value),typeof L=="function"&&(G["filter-method"]=L,G.loading=D.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(g.value,r.slots.option);const J=[],ne=l.h(b.ElSelect,G,H);J.push(ne);const C={default:()=>J};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const ee={...ke(n,jo),hintText:A.value,hintVisible:S.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:ae,onMouseleave:V};return T.value&&(ee["appear-listen"]=!0,ee.onAppear=B),l.h(o,ee,C)}}}}const{componentName:Qi,create:Ji,scope:es}=ue("select-item"),el=Ji(Zi(Qi,es,Te));var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",v="quarter",O="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},N=function($,I,R){var U=String($);return!U||U.length>=I?$:""+Array(I+1-U.length).join(R)+$},z={s:N,z:function($){var I=-$.utcOffset(),R=Math.abs(I),U=Math.floor(R/60),Y=R%60;return(I<=0?"+":"-")+N(U,2,"0")+":"+N(Y,2,"0")},m:function $(I,R){if(I.date()<R.date())return-$(R,I);var U=12*(R.year()-I.year())+(R.month()-I.month()),Y=I.clone().add(U,d),Q=R-Y<0,X=I.clone().add(U+(Q?-1:1),d);return+(-(U+(R-Y)/(Q?Y-X:X-Y))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:O,w:f,d:c,D:m,h:u,m:s,s:i,ms:a,Q:v}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},B="en",_={};_[B]=w;var D=function($){return $ instanceof x},L=function $(I,R,U){var Y;if(!I)return B;if(typeof I=="string"){var Q=I.toLowerCase();_[Q]&&(Y=Q),R&&(_[Q]=R,Y=Q);var X=I.split("-");if(!Y&&X.length>1)return $(X[0])}else{var te=I.name;_[te]=I,Y=te}return!U&&Y&&(B=Y),Y||!U&&B},E=function($,I){if(D($))return $.clone();var R=typeof I=="object"?I:{};return R.date=$,R.args=arguments,new x(R)},k=z;k.l=L,k.i=D,k.w=function($,I){return E($,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var x=function(){function $(R){this.$L=L(R.locale,null,!0),this.parse(R)}var I=$.prototype;return I.parse=function(R){this.$d=function(U){var Y=U.date,Q=U.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var X=Y.match(g);if(X){var te=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return Q?new Date(Date.UTC(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(Y)}(R),this.$x=R.x||{},this.init()},I.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},I.$utils=function(){return k},I.isValid=function(){return this.$d.toString()!==h},I.isSame=function(R,U){var Y=E(R);return this.startOf(U)<=Y&&Y<=this.endOf(U)},I.isAfter=function(R,U){return E(R)<this.startOf(U)},I.isBefore=function(R,U){return this.endOf(U)<E(R)},I.$g=function(R,U,Y){return k.u(R)?this[U]:this.set(Y,R)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(R,U){var Y=this,Q=!!k.u(U)||U,X=k.p(R),te=function(P,q){var M=k.w(Y.$u?Date.UTC(Y.$y,q,P):new Date(Y.$y,q,P),Y);return Q?M:M.endOf(c)},ae=function(P,q){return k.w(Y.toDate()[P].apply(Y.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(q)),Y)},V=this.$W,S=this.$M,A=this.$D,F="set"+(this.$u?"UTC":"");switch(X){case O:return Q?te(1,0):te(31,11);case d:return Q?te(1,S):te(0,S+1);case f:var y=this.$locale().weekStart||0,K=(V<y?V+7:V)-y;return te(Q?A-K:A+(6-K),S);case c:case m:return ae(F+"Hours",0);case u:return ae(F+"Minutes",1);case s:return ae(F+"Seconds",2);case i:return ae(F+"Milliseconds",3);default:return this.clone()}},I.endOf=function(R){return this.startOf(R,!1)},I.$set=function(R,U){var Y,Q=k.p(R),X="set"+(this.$u?"UTC":""),te=(Y={},Y[c]=X+"Date",Y[m]=X+"Date",Y[d]=X+"Month",Y[O]=X+"FullYear",Y[u]=X+"Hours",Y[s]=X+"Minutes",Y[i]=X+"Seconds",Y[a]=X+"Milliseconds",Y)[Q],ae=Q===c?this.$D+(U-this.$W):U;if(Q===d||Q===O){var V=this.clone().set(m,1);V.$d[te](ae),V.init(),this.$d=V.set(m,Math.min(this.$D,V.daysInMonth())).$d}else te&&this.$d[te](ae);return this.init(),this},I.set=function(R,U){return this.clone().$set(R,U)},I.get=function(R){return this[k.p(R)]()},I.add=function(R,U){var Y,Q=this;R=Number(R);var X=k.p(U),te=function(S){var A=E(Q);return k.w(A.date(A.date()+Math.round(S*R)),Q)};if(X===d)return this.set(d,this.$M+R);if(X===O)return this.set(O,this.$y+R);if(X===c)return te(1);if(X===f)return te(7);var ae=(Y={},Y[s]=n,Y[u]=r,Y[i]=o,Y)[X]||1,V=this.$d.getTime()+R*ae;return k.w(V,this)},I.subtract=function(R,U){return this.add(-1*R,U)},I.format=function(R){var U=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var Q=R||"YYYY-MM-DDTHH:mm:ssZ",X=k.z(this),te=this.$H,ae=this.$m,V=this.$M,S=Y.weekdays,A=Y.months,F=function(q,M,G,H){return q&&(q[M]||q(U,Q))||G[M].slice(0,H)},y=function(q){return k.s(te%12||12,q,"0")},K=Y.meridiem||function(q,M,G){var H=q<12?"AM":"PM";return G?H.toLowerCase():H},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:k.s(V+1,2,"0"),MMM:F(Y.monthsShort,V,A,3),MMMM:F(A,V),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:F(Y.weekdaysMin,this.$W,S,2),ddd:F(Y.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(te),HH:k.s(te,2,"0"),h:y(1),hh:y(2),a:K(te,ae,!0),A:K(te,ae,!1),m:String(ae),mm:k.s(ae,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:X};return Q.replace(T,function(q,M){return M||P[q]||X.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(R,U,Y){var Q,X=k.p(U),te=E(R),ae=(te.utcOffset()-this.utcOffset())*n,V=this-te,S=k.m(this,te);return S=(Q={},Q[O]=S/12,Q[d]=S,Q[v]=S/3,Q[f]=(V-ae)/6048e5,Q[c]=(V-ae)/864e5,Q[u]=V/r,Q[s]=V/n,Q[i]=V/o,Q)[X]||V,Y?S:k.a(S)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(R,U){if(!R)return this.$L;var Y=this.clone(),Q=L(R,U,!0);return Q&&(Y.$L=Q),Y},I.clone=function(){return k.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()},$}(),j=x.prototype;return E.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",O],["$D",m]].forEach(function($){j[$[1]]=function(I){return this.$g(I,$[0],$[1])}}),E.extend=function($,I){return $.$i||($(I,x,E),$.$i=!0),E},E.locale=L,E.isDayjs=D,E.unix=function($){return E(1e3*$)},E.en=_[B],E.Ls=_,E.p={},E})})(zo);var ts=zo.exports;const Ye=Je(ts);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var N=1;N<=24;N+=1)if(h.indexOf(w(N,0,g))>-1){T=N>12;break}}else T=h===(g?"pm":"PM");return T},O={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function m(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,k,x){var j=x&&x.toUpperCase();return k||T[x]||o[x]||T[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,I,R){return I||R.slice(1)})})).match(n),N=w.length,z=0;z<N;z+=1){var B=w[z],_=O[B],D=_&&_[0],L=_&&_[1];w[z]=L?{regex:D,parser:L}:B.replace(/^\[|\]$/g,"")}return function(E){for(var k={},x=0,j=0;x<N;x+=1){var $=w[x];if(typeof $=="string")j+=$.length;else{var I=$.regex,R=$.parser,U=E.slice(j),Y=I.exec(U)[0];R.call(k,Y),E=E.replace(Y,"")}}return function(Q){var X=Q.afternoon;if(X!==void 0){var te=Q.hours;X?te<12&&(Q.hours+=12):te===12&&(Q.hours=0),delete Q.afternoon}}(k),k}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,N=w.parse;w.parse=function(z){var B=z.date,_=z.utc,D=z.args;this.$u=_;var L=D[1];if(typeof L=="string"){var E=D[2]===!0,k=D[3]===!0,x=E||k,j=D[2];k&&(j=D[2]),s=this.$locale(),!E&&j&&(s=T.Ls[j]),this.$d=function(U,Y,Q){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*U);var X=m(Y)(U),te=X.year,ae=X.month,V=X.day,S=X.hours,A=X.minutes,F=X.seconds,y=X.milliseconds,K=X.zone,P=new Date,q=V||(te||ae?1:P.getDate()),M=te||P.getFullYear(),G=0;te&&!ae||(G=ae>0?ae-1:P.getMonth());var H=S||0,J=A||0,ne=F||0,C=y||0;return K?new Date(Date.UTC(M,G,q,H,J,ne,C+60*K.offset*1e3)):Q?new Date(Date.UTC(M,G,q,H,J,ne,C)):new Date(M,G,q,H,J,ne,C)}catch{return new Date("")}}(B,L,_),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&B!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var $=L.length,I=1;I<=$;I+=1){D[1]=L[I-1];var R=T.apply(this,D);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}I===$&&(this.$d=new Date(""))}else N.call(this,z)}}})})(Ho);var ns=Ho.exports;const ls=Je(ns);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),v==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return v}});return i.bind(this)(d)}}})})(Ko);var os=Ko.exports;const rs=Je(os);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,O,m,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[O]),N=T||w.map(function(B){return B.slice(0,m)});if(!h)return N;var z=g.weekStart;return N.map(function(B,_){return N[(_+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,v){return d.formats[v]||function(O){return O.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},f=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return c(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Wo);var as=Wo.exports;const is=Je(as);var Yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var v=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),O=this.diff(v,o,!0);return O<0?i(this).startOf("week").week():Math.ceil(O)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Yo);var ss=Yo.exports;const us=Je(ss);var Uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Uo);var cs=Uo.exports;const fs=Je(cs);var Go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Go);var ds=Go.exports;const hs=Je(ds);var Xo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Xo);var gs=Xo.exports;const ms=Je(gs);var Zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Zo);var ps=Zo.exports;const ys=Je(ps);Ye.extend(is),Ye.extend(rs),Ye.extend(ls),Ye.extend(us),Ye.extend(fs),Ye.extend(hs),Ye.extend(ms),Ye.extend(ys);const qe={format(e,t){return Ye(e).format(t)},parser(e,t){return Ye(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=qe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=qe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Qo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Jo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function bs(e,t,o){return{props:{...xe,...Oe,...Qo,...Jo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=ge(n,"modelValue",null,s),v=l.computed(()=>R.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),O=l.computed(()=>R.value?"longTermKey":"normalKey"),m=q=>{if(R.value&&n.type==="daterange"){const M=[...d.value];M[0]=q,d.value=M}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=ge(n,"hintText"),N=l.ref(!1);const z=q=>{let G=q.target.value;f.value=!0,pe(w.value)||(N.value=!0),s("focus",G,q)},B=q=>{setTimeout(()=>{N.value&&(N.value=!1),f.value=!1},0);let G=q.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,q)},_=()=>{s("clear","")},D=q=>{s("calendar-change",q)},L=(q,M,G)=>{s("panel-change",q,M,G)},E=q=>{s("visible-change",q)},k=Ve(l.computed(()=>n.longTermText),"longTermText",_e.Near),x=Ve(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),j=Ve(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),$=Ve(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let I=null;const R=l.ref(se(n.longTerm)),U=q=>{if(R.value=q,s("update:longTerm",q),q){if(I=d.value,n.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(I)?M[1]=I[1]:M[1]=I,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=I;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=se(n.isLongTerm);if(Y){const q=()=>{if(R.value===!0){if(I=d.value,n.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else Xe(j.value,d.value)&&(R.value=!0)};q(),l.watch([()=>n.longTerm],([M])=>{R.value!==M&&q()}),l.watch([()=>d.value],([M])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(M))try{let H=M[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=qe.format(H,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray($.value)&&$.value.findIndex(C=>H==C)!==-1)&&(G=!0)}catch(H){console.error(H)}R.value!==G&&(R.value=G)},{immediate:!0})}const Q=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),X=l.ref(),te=l.ref(),ae=/^\d+$/,V=(q,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(q,M):ae.test(q)&&q.length===n.flashFillThreshold,S=(q,M)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(q,M);else{const J=n.flashFillFormat??"YYYYMMDD";G=qe.parser(q,J)}const H=n.valueFormat??"YYYY-MM-DD";return qe.format(G,H)},A=q=>q?q.endsWith("range"):!1,F=q=>{if(!q.target)return;const M=q.target.value??"";if(V(M,n.type)){const G=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=G,m(H)}else m(G)}},y=q=>{if(!q.target)return;const M=q.target.value??"";if(V(M,n.type)){const G=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=G,m(H)}else m(G)}},K=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].addEventListener("input",F),q[1]&&q[1].addEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.addEventListener("input",F)}},P=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].removeEventListener("input",F),q[1]&&q[1].removeEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.removeEventListener("input",F)}};return l.onMounted(K),l.onBeforeUnmount(P),$e({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const M={...r.attrs,key:O.value,type:h.value,ref:te,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:_,onFocus:z,onBlur:B,onCalendarChange:D,onPanelChange:L,onVisibleChange:E},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const H=[],J=l.h(b.ElDatePicker,M,G);H.push(J);const ne={default:()=>H};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),Y){if(R.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),ce={class:Q.value},ye=l.h("div",ce,{default:()=>[oe,de]});H.push(ye)}if(!i.value&&!a.value){const oe={label:x.value||k.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},de=l.h(b.ElCheckbox,oe),ce=l.h("div",{class:{[`${g}__append`]:!0}},[de]);ne.append=()=>ce}}const W={...ke(n,Qo,Jo),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:w.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,W,ne)}}}}const{componentName:vs,create:ws,scope:Ss}=ue("date-item"),tl=ws(bs(vs,Ss,Te)),er={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function xs(e,t,o){return{props:{...xe,...Oe,...er},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,O=l.computed(()=>({[v]:!0})),m=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=ge(n,"hintText"),g=l.ref(!1);const T=_=>{let L=_.target.value;f.value=!0,pe(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},N=()=>{s("clear","")},z=_=>{s("visible-change",_)},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const D={...r.attrs,ref:B,class:O.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:N,onFocus:T,onBlur:w,onVisibleChange:z},L={},E=[],k=l.h(b.ElTimePicker,D,L);E.push(k);const x={default:()=>E};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const $={...ke(n,er),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,$,x)}}}}const{componentName:Ts,create:Cs,scope:$s}=ue("time-item"),nl=Cs(xs(Ts,$s,Te)),tr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ns(e,t,o){return{props:{...xe,...Oe,...tr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,O=l.computed(()=>({[v]:!0})),m=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=ge(n,"hintText"),g=l.ref(!1);const T=B=>{let D=B.target.value;f.value=!0,pe(h.value)||(g.value=!0),s("focus",D,B)},w=B=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let D=B.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,B)},N=()=>{s("clear","")},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const _={...r.attrs,ref:z,class:O.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:N,onFocus:T,onBlur:w},D={},L=[],E=l.h(b.ElTimeSelect,_,D);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,tr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:Es,create:ks,scope:Is}=ue("time-select-item"),ll=ks(Ns(Es,Is,Te));function nr(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function lr(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Jl(`${e}`,`${t}`);return nr(n)}else{let n=En(`${e}`,eo(`${t}`),20);return nr(n)}}function Os(e,t=-1,o=!1,n=3,r=","){return zt(e,t,o,n,r)}function or(e,t,o,n,r=!0){if(e==="")return"";if(e=to(e),t=Se(t),t==1)return e;if(n)e=lr(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=En(e,1,Se(o)));else{let a=-1*t;e=lr(e,a)}return e}function rr(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=kn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=kn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const ar={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Vs(e,t,o){return{props:{...xe,...Oe,...ar},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),c=ge(n,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>n.rates,()=>n.precision],([$,I,R])=>{if(pe($)){f.value="";return}const U=or($,I,R,!1);f.value!==U&&(f.value=U)},{immediate:!0});const d=l.computed(()=>{let $="";return u.value&&($=f.value),$}),{t:v}=Be.useFoxI18n(t),O=l.computed(()=>{let $=n.placeholder??"";return!u.value&&!pe(f.value)?$=Os(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=v(["placeholder",$]),$}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=Ve(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let $=T.value;return pe($)&&($=n.errorTip??""),$}),N=l.ref(""),z=l.ref(!1),B=($,I)=>{if($=`${$}`,pe($)){f.value="",c.value="",I.forEach(R=>{s(R,"")}),se(n.showTip)&&z.value&&(z.value=!1);return}if($.length>=2){let R=$;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){l.triggerRef(f);return}}if($!="-"){if(!uo($)){l.triggerRef(f);return}if(n.integerLength!=-1&&co($)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&fo($)>Number(n.decimalLength)){l.triggerRef(f);return}let R=rr($,n);if(R.maxValid===!1){T.value=R.message,l.triggerRef(f);return}}else if(n.min!=null&&Se(n.min)>=0){l.triggerRef(f);return}N.value=$,se(n.showTip)&&(z.value=$.length>0),f.value=$,c.value=or($,n.rates,n.precision,!0),I.forEach(R=>{s(R,c.value)})},_=$=>{B($,["update:modelValue","input"])},D=$=>{B($,["update:modelValue","change"])},L=$=>{if(u.value=!0,se(n.showTip)){let I=f.value;pe(I)&&(I=n.hintText),pe(I)||(N.value=I,z.value=!0)}T.value="",s("focus",c.value,$)},E=$=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&z.value===!0&&(z.value=!1)},0),!pe(f.value)){let I=rr(f.value,n);if(I.minValid===!1||I.maxValid===!1){T.value=I.message;return}}s("update:modelValue",c.value,$),s("blur",c.value,$)},k=()=>{s("clear","")},x=l.computed(()=>$t(n.unit)>0),j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...We(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:O.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:_,onChange:D,onFocus:L,onBlur:E},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const U=[],Y=l.h(b.ElInput,I,R);U.push(Y);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const te={...ke(n,ar),errorTip:w.value,hintText:N.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,te,Q)}}}}const{componentName:Fs,create:Ds,scope:Rs}=ue("money-item"),ol=Ds(Vs(Fs,Rs,Te)),ir={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function As(e,t,o){return{props:{...xe,...Oe,...ir},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,O=l.computed(()=>({[v]:!0,[`${v}__append`]:_.value})),m=l.computed(()=>({[`${v}__unit`]:!0})),h=L=>{d.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)};let T=ge(n,"hintText"),w=l.ref(!1);const N=L=>{let k=L.target.value;f.value=!0,pe(T.value)||(w.value=!0),s("focus",k,L)},z=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=L.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,L)},B=()=>{s("clear","")},_=l.computed(()=>$t(n.unit)>0),D=l.ref();return $e({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const E={...We(r.attrs),ref:D,class:O.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:g,onInput:h,onFocus:N,onBlur:z},k={},x=[],j=l.h(b.ElInputNumber,E,k);x.push(j);const $={default:()=>x};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const R={...ke(n,ir),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)$.append=r.slots.append;else if(_.value){const Y={class:m.value},Q=l.h("div",Y,[n.unit]);$.append=()=>Q}return l.h(o,R,$)}}}}const{componentName:Ms,create:Ls,scope:Bs}=ue("input-number-item"),rl=Ls(As(Ms,Bs,Te));function et(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _s(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let qs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ps(){const e=l.getCurrentInstance();return new qs(e.proxy)}function al(e,t,o){const n=et(e,t),r=et(e,o);if(n!==r)return!1;const a=ft(e,t),i=ft(e,o);return a===i}function sr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=sr(e,s,o,n);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=et(e,c)===s;else if(o==="item")u=al(e,c,s);else{let f=ft(e,c);f==null&&(f=et(e,c)),u=f===s}if(u){r.push(c),a=_s(e,c);break}}if(!u)break}}return r}function js(e){return{text:e,value:e}}const ur={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:[Boolean,String],default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function zs(e,t,o){return{props:{...xe,...Oe,...ur},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(q=>Array.isArray(q)?q.map(G=>et(n,G)).join(" "):et(n,q)).join(" "):""),O=(P,q,M,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===P)return;f.value=P;const C=l.toRaw(P);if(G){const W=K?.value.getCheckedNodes();if(W)if(n.multiple){const ee=[];W.forEach(oe=>{const ce=(oe.pathNodes??[]).map(ye=>ye.data);ee.push(ce)}),s("update:pathNodes",ee)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);s("update:pathNodes",oe)}s("update:modelValue",C),s("change",C)}return}const H=sr(n,P,q,M);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const C=[];H.forEach(W=>{const ee=`${et(n,W)}`;C.push(ee)}),C.length>0&&(L.value=C.join(n.separator))}else L.value=null;let ne=!0;if(H.length!==d.value.length)ne=!1;else for(let C=0;C<H.length;C++){const W=H[C],ee=d.value[C];if(Array.isArray(W)){if(!Array.isArray(ee)||W.length!==ee.length)ne=!1;else for(let oe=0;oe<W.length;oe++)if(!al(n,W[oe],ee[oe])){ne=!1;break}}else al(n,W,ee)||(ne=!1);if(!ne)break}if(!ne){d.value=H;let C=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],ce=[];for(let ye of oe)de.push(ft(n,ye)),n.valueType==="text"?ce.push(et(n,ye)):n.valueType==="item"?ce.push(ye):ce.push(ft(n,ye));C.push(de),W.push(ce)}else C.push(ft(n,oe)),n.valueType==="text"?W.push(et(n,oe)):n.valueType==="item"?W.push(oe):W.push(ft(n,oe))}),f.value=C;const ee=l.toRaw(W);G&&(s("update:pathNodes",H),s("update:modelValue",ee),s("change",ee))}},m=l.ref([]),h=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,P=>se(P)),g=Ps(),T=async(P,q)=>{if(P){const M=await g.load("cascader",P,q);if(M.length>0)if(typeof M[0]=="string"){let J=M.map(ne=>js(ne));m.value=J}else m.value=M}};l.watch([()=>n.source,()=>n.params],async([P,q])=>{T(P,q)},{immediate:!(h.value||n.lazy)});let w=!1;const N=()=>{w||(w=!0,T(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([P,q])=>{O(q,n.valueType,P,!1),s("setValue",q)}),n.lazy&&O(n.modelValue,"value",[],!1);let z=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const q=await n.remoteMethod(P);m.value=q}catch(q){console.error(q)}B.value=!1}});const _=l.ref(!1),D=e,L=l.ref(null),E=l.computed(()=>({[D]:!0,"is-incomplete":L.value&&L.value.length>0})),k=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(q,M)=>{const G=await g.load("cascader",n.source,q,!0);if(q?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===q.level){const H=q.pathLabels??[];let J=[];H.forEach(ne=>{ne&&J.push(ne)}),J.length>0&&(L.value=J.join(n.separator))}else L.value=null;M(G)}),P}),x=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),f.value=P):O(P,"value",m.value,!0)};let j=ge(n,"hintText"),$=l.ref(!1);const I=P=>{let M=P.target.value;_.value=!0,pe(j.value)||($.value=!0),s("focus",M,P)},R=P=>{setTimeout(()=>{$.value&&($.value=!1),_.value=!1},0);let M=P.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),S.value||s("blur",M,P)},U=()=>{s("clear","")},Y=l.ref(!1);let Q=null;const X=()=>{se(n.showTooltip)&&Y.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{Y.value=!0},150))},te=()=>{Q&&(clearTimeout(Q),Y.value=!1,Q=null)},ae=l.computed(()=>Y.value||$.value),V=l.computed(()=>Y.value?v.value:j.value),S=l.ref(!1),A=P=>{S.value=P,s("visible-change",P),P||s("selected")},F=P=>{s("remove-tag",P)},y=P=>{s("expand-change",P)},K=l.ref();return $e({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const q={...r.attrs,ref:K,class:E.value,props:k.value,clearable:n.clearable,placeholder:L.value||c.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:x,onFocus:I,onBlur:R,onVisibleChange:A,onRemoveTag:F,expandChange:y};typeof z=="function"&&(q["remote-method"]=z,q.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const G=[],H=l.h(b.ElCascader,q,M);G.push(H);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const C={...ke(n,ur),hintText:V.value,hintVisible:ae.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:te};return h.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=N),l.h(o,C,J)}}}}const{componentName:Hs,create:Ks,scope:Ws}=ue("cascader-item"),il=Ks(zs(Hs,Ws,Te)),cr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ys(e,t,o){return{props:{...xe,...Oe,...cr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,O=l.computed(()=>({[v]:!0})),m=D=>{d.value=D,s("update:modelValue",D),s("input",D)},h=D=>{s("change",D)},g=D=>{s("select",D)};let T=ge(n,"hintText"),w=l.ref(!1);const N=D=>{let E=D.target.value;f.value=!0,pe(T.value)||(w.value=!0),s("focus",E,D)},z=D=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=D.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,D)},B=()=>{s("clear","")},_=l.ref();return $e({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const L={...r.attrs,ref:_,class:O.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:h,onInput:m,onFocus:N,onBlur:z,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const k=[],x=l.h(b.ElAutocomplete,L,E);k.push(x);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,cr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,I,j)}}}}const{componentName:Us,create:Gs,scope:Xs}=ue("autocomplete-item"),sl=Gs(Ys(Us,Xs,Te));function Zs(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[n]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let c=t[u],f=a[u];const d=c.find(v=>v[n]===f);if(!d)break;i.push(d[o])}else{let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[n]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let Qs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Js(){const e=l.getCurrentInstance();return new Qs(e.proxy)}const fr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function eu(e,t){return{props:{...fr},setup(o,{attrs:n,slots:r}){const a=Js(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Zs(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:xh,create:tu,scope:Th}=ue("mapping"),Rt=tu(eu());function nu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function lu(e,t){return{props:{...fr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=nu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(b.ElTableColumn,{...n},a)}}}}const{componentName:Ch,create:ou,scope:$h}=ue("table-mapping-column"),ul=ou(lu()),ru=Symbol.for("TableStateKey");function dr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function au(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(ru,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=dr(s.row,s.column.property),c=a?dr(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),O={class:{"el-radio":!0,"is-checked":f}};return l.h("label",O,[v])}};return l.h(b.ElTableColumn,{...n},i)}}}}const{componentName:Nh,create:iu,scope:Eh}=ue("table-radio-column"),cl=iu(au()),su={},uu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function cu(e,t){return l.openBlock(),l.createElementBlock("svg",uu,t[0]||(t[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const fu=Pe(su,[["render",cu]]),{componentName:kh,create:du,scope:Ih}=ue("table-setting"),hu={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},gu=du({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:fu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...hu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),i=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),s=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=y=>y.length>1,v=(y,K)=>{Array.isArray(y)&&Array.isArray(K)&&y.forEach(M=>{K.some(G=>G.prop===M.prop?(M.label=G.label,!0):!1)});const P=[];r.value=y.map((M,G)=>(!(M.label===""||M.type)&&M.visible!==!1&&P.push(M.prop),{...M,sortIndex:G})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(N.value=!0),_.value=P},O=y=>y?y.type?y.type:y.label?y.prop:"":"",m=(y,K)=>{if(y.length!==K.length)return!1;const P=y.map(q=>O(q));for(let q of K){const M=O(q);if(P.indexOf(M)===-1)return!1}return!0},h=y=>{if(!y){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((q,M)=>({...q,sortIndex:M})),y=K.columnPropertyList,y&&y.length>0&&m(P,y)||(y=P)}v(y,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),N=l.ref(!1),z=y=>{const K=[];r.value.forEach(q=>{y&&!(q.label===""||q.type)&&K.push(q.prop),q.visible=y}),w.value=!1,N.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(N.value=!0),_.value=K,g()},B=()=>{h(n),g()},_=l.ref([]),D=y=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const q=y.indexOf(P.prop)!==-1;P.visible=q}),w.value=!1,N.value=!1;const K=s.value.length+a.value.length+i.value.length;y.length===K?w.value=!0:y.length>0&&(N.value=!0),g()},L=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},k=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,k(y)):null:null,x=y=>{const K=y.currentTarget;K&&K.dataset&&(E.roleType=K.dataset.roleType,E.index=K.dataset.index)},j=y=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},$=y=>{const K=y.currentTarget;y.relatedTarget;const P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;E.roleType===q&&(y.preventDefault(),E.currentRow&&E.currentRow!==P&&E.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),E.currentRow=P)},I=y=>{y.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},R=y=>{const K=y.currentTarget,P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;if(E.roleType!==q)return;y.preventDefault();const M=Number(E.index),G=Number(P.dataset.index);if(M!==G){if(M<G){const H=r.value[M];r.value.splice(M,1),r.value.splice(G,0,H)}else{const H=r.value[M];r.value.splice(M,1),r.value.splice(G+1,0,H)}v(r.value,n),g()}},U=y=>{const K=r.value[y];K.fixed="left",g()},Y=y=>{const K=r.value[y];K.fixed="right",g()},Q=y=>{const K=r.value[y];K.fixed=void 0,g()},X=new Map;let te=null;function ae(y){const K=document.createRange();return K.setStart(y,0),K.setEnd(y,y.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:w,isIndeterminate:N,handleCheckAllChange:z,handleReset:B,checkedValue:_,handleCheckChange:D,onShow:L,onDragStart:x,onDragEnd:j,onDragOver:$,onDragLeave:I,onDrop:R,toLeftFixed:U,toRightFixed:Y,toUnFixed:Q,checkboxLabelStyle:T,onMouseOverForOverflowText:(y,K,P)=>{const q=y.currentTarget;if(q){const M=Math.floor(q.offsetWidth);if(Math.floor(ae(q))>M){let H=X.get(K);if(H){if(H===te)return;Re.hide(H)}H=Re.show(q,P,{type:"text",placement:"top",closeOnClick:!1}),X.set(K,H),te=H}}},onMouseLeaveForOverflowText:(y,K)=>{const P=X.get(K);P&&(Re.hide(P),P===te&&(te=null))},onMouseOverForTip:(y,K)=>{const P=y.currentTarget;P&&(te&&Re.hide(te),te=Re.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{te&&(Re.hide(te),te=null)}}}}),mu={class:"fox-table-setting"},pu={class:"fox-table-setting__header"},yu={class:"fox-table-setting__body"},bu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},vu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],xu={class:"tools-item"},Tu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Cu={key:0,class:"fox-table-setting__body-title"},$u=["data-index","draggable"],Nu=["onMouseover","onMouseleave"],Eu={class:"tools-item"},ku={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Iu={key:0,class:"fox-table-setting__body-title"},Ou=["data-index","draggable"],Vu=["onMouseover","onMouseleave"],Fu={class:"tools-item"};function Du(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),O=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",mu,[l.createElementVNode("div",pu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",yu,[l.createVNode(O,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",bu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",vu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Su)]),_:2},1032,["label"]),l.createElementVNode("div",xu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,wu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Cu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Nu)]),_:2},1032,["label"]),l.createElementVNode("div",Eu,[l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,$u))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",ku,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Iu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Vu)]),_:2},1032,["label"]),l.createElementVNode("div",Fu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ou))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const gn=Pe(gu,[["render",Du]]);let Ru=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let c=(n-1)*r,f=c+r;f>o.length&&(f=o.length);const d=o.slice(c,f);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=ze(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function Au(){const e=l.getCurrentInstance();return new Ru(e.proxy)}class Mu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=ze(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=ze(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function hr(){const e=l.getCurrentInstance();return new Mu(e.proxy)}const Lu=Symbol.for("TableStateKey"),gr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},mr={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},fl={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},Bu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function _u(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function dl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=_u(n,r);if(a!==i)return!1}return!0})}function qu(e,t,o){return{inheritAttrs:!1,props:{...xe,...Oe,...gr,...mr,...fl,...Bu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Ce({componentName:e,validateHandler:{getValue(...Z){return D.value}}},n.prop??r.attrs.name),u=e,c=l.computed(()=>({[u]:!0})),f=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),O=l.shallowRef({}),m=l.computed(()=>({...O.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),g=l.ref(n.pageSize),T=se(n.infiniteLoad);T||(l.watch(()=>n.pageIndex,Z=>{h.value=Z}),l.watch(()=>n.pageSize,Z=>{g.value=Z}),l.watch([h,g],([Z,le],[re,ie])=>{le!==ie&&(h.value=1,Z=1),x(n.data,Z,le,m.value)}));const w=()=>Array.isArray(n.data)?!0:se(n.autoLoad);w()&&l.watch([()=>n.data,m],async([Z,le],[re,ie])=>{w()&&(Z!==re&&(E=!0),!(!Array.isArray(Z)&&Xe(Z,re)&&Xe(le,ie))&&(T?(h.value=0,B.value=!0,D.value=[],$()):h.value===1?x(Z,h.value,g.value,le):h.value=1))},{deep:!0});const N=Z=>{h.value=Z,i("page-index-change",Z)},z=Z=>{g.value=Z,i("page-size-change",Z)},B=l.ref(!0),_=l.ref(0),D=l.ref(),L=Au();let E=!0;const k=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Z=>se(Z)),x=async(Z,le,re,ie,Me)=>{E=!1;try{if(Me===!0){if(!B.value)return!1;const me=await L.load("table",Z,le,re,ie,E,a.value);return _.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,D.value,me.page),setTimeout(()=>{i("loaded-data")},250),(D.value?.length??0)>=_.value)||me.page.length<re?(B.value=!1,!1):!0}else{const me=await L.load("table",Z,le,re,ie,E,a.value);return _.value=me.totalSize,D.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),_.value=0,D.value=[]}return!1};let j=!1;const $=async()=>{if(!j){if(j=!0,!B.value){j=!1;return}h.value+=1,await x(n.data,h.value,g.value,m.value,!0),j=!1}},I=(Z={},le=!1)=>new Promise(async re=>{O.value={...l.toRaw(Z??{})},le||(h.value=n.pageIndex??1),T===!0?(h.value=0,D.value=[],B.value=!0,await $()):await x(n.data,h.value,g.value,m.value),re()}),R=()=>{_.value=0,D.value=[],T===!0&&(h.value=0,B.value=!0)};let U=!1;const Y=()=>{U||(U=!0,I())},Q=l.ref(null);if(T===!0){let Z=null;const le=()=>{Q.value&&(Z=new IntersectionObserver(ie=>{let Me=!1;for(let me of ie)if(me.intersectionRatio>0){Me=!0;break}Me&&$()}),Z.observe(Q.value))},re=()=>{!Z||!Q.value||(Z.unobserve(Q.value),Z=null)};l.onMounted(le),l.onBeforeUnmount(re)}w()&&!k.value&&I();const X=l.ref(null);l.provide(Lu,{currentRow:X});const te=(Z,le)=>{X.value=Z,i("current-change",Z,le)},ae=(Z,le,re)=>{i("row-click",Z,le,re),se(n.rowClickSelectable)===!0&&we?.value.toggleRowSelection(Z)},V=[],S=(Z,le)=>{if(i("expand-change",Z,le),se(n.uniqueExpansion))if(Array.isArray(le)&&le.length==0){const re=V.length;V.splice(0,re)}else{V.forEach(ie=>{ie!==Z&&we?.value.toggleRowExpansion(ie,!1)});const re=V.length;V.splice(0,re,Z)}},A=r.attrs.id??n.prop??r.attrs.name,F=hr(),y=l.ref([]);let K=[];const P=()=>({srcColumnPropertyList:K.map(le=>({...le})),columnPropertyList:y.value}),q=Z=>{y.value=[...Z],G()},M=async()=>{const Z=await F.load(A);Z&&(y.value=Z)},G=()=>{F.save(A,y.value)},H=()=>{F.remove(A)};M();const J=Z=>Z?Z.type?Z.type:Z.label?Z.prop:"":"",ne=()=>typeof r.slots.default=="function"?r.slots.default():[],C=(Z,le)=>{for(let re in le){const ie=le[re];typeof ie!="function"&&(Z[re]=ie)}},W=l.computed(()=>{const Z=ne(),le=new Map;if(K=[],Z.forEach(re=>{const ie=re;if(!ie.props)return;const Me=J(ie.props);le.set(Me,re);const me={label:"",prop:""};C(me,ie.props),K.push(me)}),y.value.length===K.length){const re=[];for(let ie of y.value){const Me=J(ie),me=le.get(Me);if(!me)return Z;if(ie.visible===!1)continue;const tt=me;tt.props.fixed=ie.fixed,re.push(tt)}return re}return Z}),ee=l.shallowRef(new Map),oe=({row:Z,column:le,rowIndex:re,columnIndex:ie})=>{const Me=`${re}_${le.property}`,me=`${re}_${ie}`;let tt=ee.value.get(Me);return tt||(tt=ee.value.get(me)),typeof tt=="string"?tt:""},de=Z=>Z?le=>{const re=[];let ie=oe(le);return ie&&re.push(ie),ie=typeof Z=="function"?Z(le):Z,ie&&re.push(ie),re.length===0?"":re.join(" ")}:oe,ce=(Z=!1)=>{ee.value.forEach((le,re)=>{ye(re,le,Z)})},ye=(Z,le,re=!1)=>{const ie=`${Z}_item`;re?(s.clearPersistantMessage(),Array.isArray(le)?s.emitToChildren({name:Z},"setCellClassNames",[]):s.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(le)?s.emitToChildren({name:Z,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",le):s.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",le)},Ue=(Z,le,re)=>{const ie=`${Z}_${le}`;re?(ee.value.set(ie,re),ye(ie,re)):(ee.value.delete(ie),ye(ie,"",!0)),l.triggerRef(ee)},at=Z=>{ce(!0),ee.value.clear(),Z.forEach(le=>{const re=`${le.rowIndex}_${le.column}`;Array.isArray(le.children)?ee.value.set(re,le.children):typeof le.cellClassName=="string"&&ee.value.set(re,le.cellClassName)}),ce(),l.triggerRef(ee)},xt=()=>{ce(),ee.value.clear(),l.triggerRef(ee)},it=l.shallowRef(new Map),Qr=({rowIndex:Z})=>{const le=`${Z}`;return it.value.get(le)??""},dh=Z=>Z?le=>{const re=[];let ie=Qr(le);return ie&&re.push(ie),ie=typeof Z=="function"?Z(le):Z,ie&&re.push(ie),re.length===0?"":re.join(" ")}:Qr,hh=(Z,le)=>{const re=`${Z}`;le?it.value.set(re,le):it.value.delete(re),l.triggerRef(it)},gh=()=>{it.value.clear(),l.triggerRef(it)},we=l.ref();return $e({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(Z,le)=>{we?.value.toggleRowSelection(Z,le)},toggleRowSelectionByProp:(Z,le)=>{if(!D.value)return;const re=dl(D.value,Z);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowSelection(ie,le)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(Z,le)=>{we?.value.toggleRowExpansion(Z,le)},toggleRowExpansionByProp:(Z,le)=>{if(!D.value)return;const re=dl(D.value,Z);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowExpansion(ie,le)})},setCurrentRow:Z=>{we?.value.setCurrentRow(Z)},setCurrentRowByProp:Z=>{if(!D.value)return;const le=dl(D.value,Z);le.length!==0&&we?.value.setCurrentRow(le[0])},getCurrentRow:()=>X.value,clearSort:()=>{we?.value.clearSort()},clearFilter:Z=>{we?.value.clearFilter(Z)},doLayout:()=>{we?.value.doLayout()},sort:(Z,le)=>{we?.value.sort(Z,le)},scrollTo:(Z,le)=>{we?.value.scrollTo(Z,le)},setScrollTop:Z=>{we?.value.setScrollTop(Z)},setScrollLeft:Z=>{we?.value.setScrollLeft(Z)},loadData:I,clearData:R,getData(){return D.value},getTotalSize(){return _.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H,setCellClassName:Ue,setCellClassNames:at,clearCellClassName:xt,setRowClassName:hh,clearRowClassName:gh}),()=>{const le={...We(r.attrs),onCurrentChange:te,onRowClick:ae,onExpandChange:S,data:D.value,ref:we,class:c.value,"cell-class-name":de(n.cellClassName),"row-class-name":dh(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>W.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),T===!0){const He=[];if(B.value){const _t=l.h(Ne.Loading,{class:`${u}__infinite-icon`});He.push(_t);const Wl=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);He.push(Wl)}else{const _t=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);He.push(_t)}const ht={ref:Q,class:`${u}__infinite`},Kl=l.h("div",ht,He);re.append=()=>Kl}const ie=l.h(b.ElTable,le,re),Me=[];if(Me.push(ie),!T){let He=null;if(typeof r.slots.pagination=="function")He=r.slots.pagination();else if(n.showPagination){const ht={class:v.value,total:_.value,pageSize:g.value,"onUpdate:pageSize":z,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};He=l.h(b.ElPagination,ht)}if(n.showSetting){const ht=[];He&&ht.push(He);const Kl=l.h(b.ElIcon,{class:f.value},{default:()=>l.h(Ne.Setting)}),_t=go(n,fl),Wl=l.h(gn,{..._t,tableRef:{getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H}},{default:()=>Kl});ht.push(Wl);const mh=l.h("div",{class:d.value},ht);Me.push(mh)}else He&&Me.push(He)}const me={default:()=>Me},Bt={...ke(n,gr,mr,fl),prop:`${n.prop}_item`};return Bt.contentClass=`${u}__wrap`,Bt.errorMarkClass="is-table-error",k.value&&w()&&(Bt["appear-listen"]=!0,Bt.onAppear=Y),l.h(o,Bt,me)}}}}const{componentName:Pu,create:ju,scope:zu}=ue("table-item"),hl=ju(qu(Pu,zu,Te));function bt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Hu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ku=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Wu(){const e=l.getCurrentInstance();return new Ku(e.proxy)}function pr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function Yu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=bt(e,a)===t;else if(o==="item")i=pr(e,a,t);else{let s=At(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function Uu(e){return{text:e,value:e}}function Gu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Xu(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...yr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(D,L,E,k=!0)=>{const x=Yu(n,D,L,E);if(x===null){if(c.value===null)return;c.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!pr(n,x,c.value)){u.value=D;const $=l.toRaw(x);c.value=$;let I=null;n.valueType==="text"?I=bt(n,$):n.valueType==="item"?I=$:I=At(n,$),k&&(s("update:modelValue",I),s("change",I))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,D=>se(D)),O=Wu(),m=async(D,L)=>{if(D){const E=await O.load("radio",D,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map($=>Uu($));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([D,L])=>{m(D,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([D,L])=>{f(L,n.valueType,D,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=D=>{f(D,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(D,L)=>{const E=[];return D.forEach((k,x)=>{const j=At(n,k),$=bt(n,k);let I=Hu(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=Gu(n,k,x)??{},U=`${j}_${x}`,Y={...R,key:U,label:j,size:n.size,border:se(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElRadioButton,Y,{default:()=>[$]})):typeof L=="function"?E.push(l.h(b.ElRadio,Y,{default:()=>L(k)})):E.push(l.h(b.ElRadio,Y,{default:()=>[$]}))}),E};return()=>{const L={...We(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElRadioGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,yr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:Zu,create:Qu,scope:Ju}=ue("radio-item"),gl=Qu(Xu(Zu,Ju,Te));function vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ec(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let tc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function nc(){const e=l.getCurrentInstance();return new tc(e.proxy)}function br(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=vt(e,t),r=vt(e,o);if(n!==r)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function lc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=vt(e,i)===a;else if(o==="item")s=br(e,i,a);else{let u=wt(e,i);u==null&&(u=vt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function oc(e){return{text:e,value:e}}function rc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const vr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function ac(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...vr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(D,L,E,k=!0)=>{const x=lc(n,D,L,E);if(x===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(x.length!==c.value.length)j=!1;else for(let $=0;$<x.length;$++){const I=x[$],R=c.value[$];if(!br(n,I,R)){j=!1;break}}if(!j){c.value=x;let $=[],I=[];x.forEach(U=>{$.push(wt(n,U)),n.valueType==="text"?I.push(vt(n,U)):n.valueType==="item"?I.push(U):I.push(wt(n,U))}),u.value=$;const R=l.toRaw(I);k&&(s("update:modelValue",R),s("change",R))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,D=>se(D)),O=nc(),m=async(D,L)=>{if(D){const E=await O.load("checkbox",D,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map($=>oc($));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([D,L])=>{m(D,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([D,L])=>{f(L,n.valueType,D,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=D=>{f(D,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(D,L)=>{const E=[];return D.forEach((k,x)=>{const j=wt(n,k),$=vt(n,k);let I=ec(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=rc(n,k,x)??{},U=`${j}_${x}`,Y={...R,key:U,class:n.itemClass,label:j,size:n.size,border:se(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElCheckboxButton,Y,{default:()=>[$]})):typeof L=="function"?E.push(l.h(b.ElCheckbox,Y,{default:()=>L(k)})):E.push(l.h(b.ElCheckbox,Y,{default:()=>[$]}))}),E};return()=>{const L={...We(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElCheckboxGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,vr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:ic,create:sc,scope:uc}=ue("checkbox-item"),ml=sc(ac(ic,uc,Te)),wr={modelValue:{type:[Number,String],required:!1}};function cc(e,t,o){return{props:{...xe,...Oe,...wr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>Se(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),O=l.ref(!1);const m=l.ref();return $e({}),()=>{const g={...We(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElRate,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,wr),hintText:v.value,hintVisible:O.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:fc,create:dc,scope:hc}=ue("rate-item"),pl=dc(cc(fc,hc,Te)),Sr={modelValue:{type:[Boolean,String,Number],required:!1}};function gc(e,t,o){return{props:{...xe,...Oe,...Sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),O=ge(n,"hintVisible");const m=l.ref();return $e({}),()=>{const g={...We(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElSwitch,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,Sr),hintText:v.value,hintVisible:O.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:mc,create:pc,scope:yc}=ue("switch-item"),yl=pc(gc(mc,yc,Te)),xr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function bc(e,t,o){return{props:{...xe,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),c=ge(n,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),v=B=>{u("update:modelValue",B),u("change",B)};let O=ge(n,"hintText"),m=l.ref(!1);const h=B=>{let D=B.target.value;s.value=!0,pe(O.value)||(m.value=!0),u("focus",D,B)},g=B=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let D=B.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),w.value||u("blur",D,B)},T=()=>{u("clear","")},w=l.ref(!1),N=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const _={...We(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:N},D={};r.slots.option&&(D.default=r.slots.option);const L=[],E=l.h(b.ElTreeSelect,_,D);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,xr),hintText:O.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:vc,create:wc,scope:Sc}=ue("tree-select-item"),bl=wc(bc(vc,Sc,Te)),xc={},Tc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Cc(e,t){return l.openBlock(),l.createElementBlock("svg",Tc,t[0]||(t[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const $c=Pe(xc,[["render",Cc]]),{componentName:Oh,create:Nc,scope:Vh}=ue("group-setting"),Ec={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},kc=Nc({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:$c,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Ec},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=hr(),s=V=>V.length>1,u=()=>{const V=[],S=[...a.value];a.value=S.map((F,y)=>(F.visible!==!1&&V.push(F.prop),{...F,sortIndex:y})),a.value.length===V.length?h.value=!0:V.length>0&&(g.value=!0),N.value=V},c=V=>{let S=null;if(typeof V=="string")S=document.querySelectorAll(`.fox-group[prop="${V}"] > div > .fox-item[prop]`);else if(V&&typeof V=="object"){const F=V.$el??V;typeof F.querySelectorAll=="function"&&(S=F.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const A=[];return S.forEach(F=>{const y=F.querySelector(".label--string");let K="";y&&(K=y.textContent??"");const P=F.getAttribute("prop")??"",M=window.getComputedStyle(F,null).getPropertyValue("display");A.push({label:K,prop:P,sortIndex:0,visible:M!=="none"})}),A},f=()=>{if(!r){const V=c(e.groupRef??e.groupProp);if(V.length===0)return!1;r=V}return!0},d=async(V=!1)=>{const S=await i.load(e.groupProp),A=F=>{if(!F||!r)return;const y=r.map(K=>({...K}));Array.isArray(S)&&S.forEach(K=>{y.some(P=>{if(P.prop===K.prop){const q=P.label;return Object.assign(P,K),P.label=q,!0}return!1})}),a.value=y.sort((K,P)=>K.sortIndex-P.sortIndex),u(),V&&O(!1)};r?A(!0):Zt(f,e.initDelay,5,50,!1,A)},v=()=>{const V=r??[];a.value=V.map(S=>({...S})),u(),O()},O=(V=!0)=>{V&&i.save(e.groupProp,a.value);const S=a.value.map(A=>({...A}));t("change",S)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=V=>{const S=[];a.value.forEach(F=>{V&&S.push(F.prop),F.visible=V}),h.value=!1,g.value=!1,a.value.length===S.length?h.value=!0:S.length>0&&(g.value=!0),N.value=S,O()},w=()=>{v()},N=l.ref([]),z=V=>{a.value.forEach(A=>{const F=V.indexOf(A.prop)!==-1;A.visible=F}),h.value=!1,g.value=!1;const S=a.value.length;V.length===S?h.value=!0:V.length>0&&(g.value=!0),O()},B=()=>{d()};l.onMounted(()=>{d(!0)});const _={currentRow:null,index:null},D=V=>V?V.dataset&&V.dataset.role==="row"?V:V.tagName.toLowerCase()!=="body"?(V=V.parentElement,D(V)):null:null,L=V=>{const S=V.currentTarget;S&&S.dataset&&(_.index=S.dataset.index)},E=V=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},k=V=>{const S=V.currentTarget;V.relatedTarget;const A=D(S);A&&(V.preventDefault(),_.currentRow&&_.currentRow!==A&&_.currentRow.classList.remove("is-dragover"),A.classList.add("is-dragover"),_.currentRow=A)},x=V=>{V.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},j=V=>{const S=V.currentTarget,A=D(S);if(!A)return;V.preventDefault();const F=Number(_.index),y=Number(A.dataset.index);if(F!==y){if(F<y){const K=a.value[F];a.value.splice(F,1),a.value.splice(y,0,K)}else{const K=a.value[F];a.value.splice(F,1),a.value.splice(y+1,0,K)}u(),O()}},$=V=>{const S=a.value[V];a.value.splice(V,1),a.value.splice(0,0,S),u(),O()},I=V=>{const S=a.value[V];a.value.splice(V,1),a.value.push(S),u(),O()};n({refresh:()=>{r=null,d(!1)}});const R=new Map;let U=null;function Y(V){const S=document.createRange();return S.setStart(V,0),S.setEnd(V,V.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:N,handleCheckChange:z,onShow:B,onDragStart:L,onDragEnd:E,onDragOver:k,onDragLeave:x,onDrop:j,checkboxLabelStyle:m,toTop:$,toBottom:I,onMouseOverForOverflowText:(V,S,A)=>{const F=V.currentTarget;if(F){const y=Math.floor(F.offsetWidth);if(Math.floor(Y(F))>y){let P=R.get(S);if(P){if(P===U)return;Re.hide(P)}P=Re.show(F,A,{type:"text",placement:"top",closeOnClick:!1}),R.set(S,P),U=P}}},onMouseLeaveForOverflowText:(V,S)=>{const A=R.get(S);A&&(Re.hide(A),A===U&&(U=null))},onMouseOverForTip:(V,S)=>{const A=V.currentTarget;A&&(U&&Re.hide(U),U=Re.show(A,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:V=>{U&&(Re.hide(U),U=null)}}}}),Ic={class:"fox-group-setting"},Oc={class:"fox-group-setting__header"},Vc={class:"fox-group-setting__body"},Fc={class:"fox-group-setting__body-list","data-role":"container"},Dc=["data-index","draggable"],Rc=["onMouseover","onMouseleave"],Ac={class:"tools-item"};function Mc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Ic,[l.createElementVNode("div",Oc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=O=>e.isCheckAll=O),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Vc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=O=>e.checkedValue=O),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Fc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,O=>(l.openBlock(),l.createElementBlock("div",{key:O.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":O.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:O.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,O.prop,O.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,O.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(O.label),45,Rc)]),_:2},1032,["label"]),l.createElementVNode("div",Ac,[l.createVNode(f,{onClick:m=>e.toTop(O.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toBottom(O.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Dc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const vl=Pe(kc,[["render",Mc]]);var Lc=["aria-labelledby"],Bc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Lc))}}),_c=["aria-labelledby"],wl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8M550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16s-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4M473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8M985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,_c))}}),qc=["aria-labelledby"],Pc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,qc))}}),jc=["aria-labelledby"],zc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,jc))}}),Hc=["aria-labelledby"],Kc=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Hc))}});const Wc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Tr=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],Yc=(e,t)=>t[e.visibleKey],Cr=(e,t)=>t[e.disabledKey],Uc=(e,t)=>{const o=t[e.doitKey];return se(o)},Gc=(e,t)=>{const o=t[e.numKey];return o==null?null:Se(t[o])},$r=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function Xc(e,t,o,n=!1){return{props:{...Wc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const V={};return V[`${e}`]=!0,V}),u=l.computed(()=>{const V={};return V[`${e}__titles`]=!0,V[`${r.direction}`]=!0,r.align==="left"&&(V.left=!0),r.scroll===!0&&(V.scrollable=!0),r.shape&&(V[`${r.shape}`]=!0),V}),c=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const V=he(r.gutter);return V<=0?0:V}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,V=>{d.value!==V&&(d.value=V,Y(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),O=l.computed(()=>{const V={};return h.value||(V.display="none"),V}),m=l.ref(),h=l.ref(!1),g=()=>{const V=!h.value;T(V)},T=V=>{const S=V;S?(h.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),N=l.ref([]),z=(V,S)=>{N.value[S]=V},B=V=>S=>{z(S,V)},_=(V,S)=>{const A=w.value,F=N.value;if(!A||!F||!F[V])return;const y=F[V];let K=0;r.direction==="vertical"?K=y.offsetTop-(A.offsetHeight-y.offsetHeight)/2:K=y.offsetLeft-(A.offsetWidth-y.offsetWidth)/2,D(A,K,S?0:.3,r.direction)},D=(V,S,A,F)=>{let y=0;const K=F==="horizontal"?V.scrollLeft:V.scrollTop,P=A===0?1:Math.round(A*1e3/16);function q(){F==="horizontal"?V.scrollLeft+=(S-K)/P:V.scrollTop+=(S-K)/P,++y<P&&In(q)}q()},L=(V,S)=>{const A=Mt(r,V),F={};return F[`${e}__titles-item`]=!0,F.disabled=Cr(r,V),F.active=A===d.value,r.shape&&(F[`${r.shape}`]=!0),r.ellipsis&&(F.ellipsis=!0),S&&(S.class&&(F[`${S.class}`]=!0),S.disabled===!0&&(F.disabled=S.disabled)),F},E=(V,S)=>{const A={};if(f.value>0){const F=Math.abs(f.value/2);r.direction==="vertical"?(A["margin-top"]=`${F}px`,A["margin-bottom"]=`${F}px`):(A["margin-left"]=`${F}px`,A["margin-right"]=`${F}px`)}return S&&S.style&&Object.assign(A,S.style),A},k=(V,S)=>`${Mt(r,V)??S}`,x=(V,S)=>{const A=Mt(r,V),F={};F[`${e}__popup-item`]=!0,F.disabled=Cr(r,V),F.active=A===d.value,r.shape&&(F[`${r.shape}`]=!0);const y=$r(r,V,S);return y&&y.disabled===!0&&(F.disabled=y.disabled),F},j=l.computed(()=>(r.data??[]).filter(S=>Yc(r,S)!==!1)),$=(V,S)=>{const A=Mt(r,V);if(d.value==A)return;const F=()=>{d.value=A,r.scroll&&_(S,!1),i("update:modelValue",A),i("change",V,S)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(V,S);lo(y)?y.then(K=>{K!==!1&&F()}).catch(()=>{F()}):y!==!1&&F()}else F()},I=(V,S)=>function(){$(V,S)},R=(V,S)=>{$(V,S),T(!1)},U=(V,S)=>function(){R(V,S)},Y=V=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(A=>Mt(r,A)===d.value);S!==-1&&_(S,V)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const Q=(V,S)=>{if(a.item)return a.item({item:V,index:S});const A=$r(r,V,S),F=[];if(a.text){const q=a.text({item:V,index:S});F.push(q)}else{const q=[];if(A?.doit===!0||Uc(r,V)){const J={class:[`${e}__titles-item-tip`,"doit"]},ne=l.h("view",J);q.push(ne)}const M=A?.num??Gc(r,V);if(M){let J="";const ne=Se(M);ne>=100?J="99+":J=`${ne}`;const C={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",C,[J]);q.push(W)}const G={class:`${e}__titles-item-text`};q.push(Tr(r,V));const H=l.h("view",G,q);F.push(H)}const y={class:`${e}__titles-item-line`},K=l.h("view",y);F.push(K);const P={ref:B(S),class:L(V,A),style:E(V,A),key:k(V,S),onClick:I(V,S)};return l.h("view",P,F)},X=()=>{const V=a.default?a.default():[];if(V.length===0)for(let A=0;A<j.value.length;A++){const F=j.value[A],y=Q(F,A);V.push(y)}const S={ref:w,class:u.value,style:c.value};return l.h("view",S,V)},te=()=>{let V=null;a.navigation?V=a.navigation():V=l.h(o);const S={class:`${e}__navigation`,onClick:g};return l.h("view",S,[V])},ae=()=>{const V=[];for(let A=0;A<j.value.length;A++){const F=j.value[A];let y=null;a.popupItem?y=a.popupItem({item:F,index:A}):y=Tr(r,F);const K={class:x(F,A),key:k(F,A),onClick:U(F,A)},P=l.h("view",K,[y]);V.push(P)}const S={class:v.value,style:O.value};return l.h("view",S,V)};return()=>{const V=[],S=X();if(V.push(S),r.showQuickNavigation){const F=te();V.push(F);const y=ae();V.push(y)}const A={class:s.value};return l.h("view",A,V)}}}}const{create:Zc,componentName:Qc,scope:Jc}=ue("tabs-bar"),Sl=Zc(Xc(Qc,Jc,Bc,!1)),Nr=Symbol("TabsStatesKey"),ef={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function tf(e,t,o=!1){return{props:{...ef},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(Nr,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const c=l.ref(null),f=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const O=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const g=on(c.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(c.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:O.value,ref:f},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:c};return l.h("view",T,[g])}}}}const{create:nf,componentName:lf,scope:of}=ue("tabs-container"),xl=nf(tf(lf,of,!1)),rf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function af(e,t,o){return{props:{...rf},setup(n,{emit:r,slots:a}){const i=l.inject(Nr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,O=l.h(v,d),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},w=l.h("view",T,[O,g]);c.push(w)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:sf,componentName:uf,scope:cf}=ue("tabs-pane"),Tl=sf(af(uf,cf,wl)),ff={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function df(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Er(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function kr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function hf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Cl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Ir(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Or(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function $l(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class gf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function mf(){const e=l.getCurrentInstance();return new gf(e.proxy)}function pf(e,t,o,n){return{props:{...ff},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=mf(),c=l.ref([]),f=l.computed(()=>c.value.filter(S=>hf(r,S)!==!1)),d=l.ref(-1),v=()=>{const S=r.modelValue,A=f.value.findIndex(F=>Er(r,F)===S);d.value!==A&&(d.value=A,r.scroll&&ae(A,!1))};l.watch([()=>r.modelValue,f],()=>{v()});const O=S=>d.value===S,m=S=>{if(S<0&&S>=f.value.length)return!1;const A=f.value[S],y=($l(r,A,S)??{}).status??Cl(r,A);return O(S)||y},h=l.computed(()=>{const S={[s]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),g=l.computed(()=>({})),T=(S,A,F,y,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,y&&(P["is-doit"]=!0),S===d.value?P["is-active"]=!0:A==="done"?P["is-done"]=!0:A==="error"?P["is-error"]=!0:A==="half"?P["is-half"]=!0:F?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),N=(S,A={})=>{const F={...A};return w.value==="start"&&S===f.value.length-1?F.flex="0 0 auto":r.step?r.direction==="vertical"?F.height=r.step:F.width=r.step:F.flex="1 1 100%",F},z=(S,A)=>{let F={};if(A<f.value.length-1){const y=A+1;m(A)&&m(y)?r.direction==="vertical"?F.height="100%":F.width="100%":F.opacity="0"}return F},B=S=>f.value.length-1===S,_=(S,A)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&A>d.value||d.value===A)return;const F=d.value,y=A;d.value=A,r.scroll&&ae(A,!1);const K=Er(r,S);i("update:modelValue",K);const P={fromIndex:F,currentIndex:y,item:S,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},D=l.ref(!0),L=async(S,A)=>{try{const F=await u.load("stesbar",S,A);Array.isArray(F)&&(c.value=F),D.value=!1}catch(F){console.error("[FoxUI] Load StepsBar Data Fail",F),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,A])=>{S&&L(S,A)},{immediate:!0});const E=(S,A,F,y,K)=>{let P=null;if(a.icon)P=a.icon({item:S,index:A,status:y});else if(y==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const G=r.icon??o;P=l.h(G,M)}else{const M=F??`${A+1}`;P=l.h("span",{},[M])}const q={class:"fox-steps-bar__icon",onClick:()=>{K||_(S,A)}};return l.h("view",q,[P])},k=(S,A,F)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:z(S,A)});return l.h("view",{class:"fox-steps-bar__line"},[y])},x=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const F={};r.iconSize&&(F.width=r.markIconSize,F.height=r.markIconSize);const y=r.markIcon??n;S=l.h(y,F)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},j=(S,A,F,y,K)=>{const P=[];if(!B(A)){const G=k(S,A);P.push(G)}const q=E(S,A,F,y,K);P.push(q);const M={class:"fox-steps-bar__head"};return l.h("view",M,P)},$=(S,A,F,y)=>{let K=null;a.main?K=a.main({item:S,index:A,status:F}):K=df(r,S);const P={class:"fox-steps-bar__main",onClick:()=>{y||_(S,A)}};return l.h("view",P,[K])},I=(S,A,F)=>{let y=null;if(a.sub){y=a.sub({item:S,index:A,status:F});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[y])}return null},R=(S,A)=>{const F=$l(r,S,A)??{},y=F.status??Cl(r,S);let K=kr(r,S);F.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=F.label??Or(r,S),q=[],M=E(S,A,P,y,K);M&&q.push(M);const G=$(S,A,y,K);if(G&&q.push(G),!B(A)){const ee=k(S,A);ee&&q.push(ee)}const H=l.h("view",{class:"fox-steps-bar__head"},q),J=F.class,ne=F.style??{};let C=Ir(r,S);F.doit===!0&&(C=!0);const W={ref:te(A),class:T(A,y,K,C,J),style:N(A,ne)};return l.h("view",W,[H])},U=(S,A)=>{const F=$l(r,S,A)??{},y=F.status??Cl(r,S);let K=kr(r,S);F.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=F.label??Or(r,S),q=[],M=r.layout;for(let C of M)if(C==="head"){const W=j(S,A,P,y,K);q.push(W)}else if(C==="main"){const W=$(S,A,y,K);q.push(W)}else if(C==="sub"){const W=I(S,A,y);q.push(W)}else if(C==="mark"){const W=x();q.push(W)}const G=F.class,H=F.style??{};let J=Ir(r,S);F.doit===!0&&(J=!0);const ne={ref:te(A),class:T(A,y,K,J,G),style:N(A,H)};return l.h("view",ne,q)},Y=l.ref(),Q=l.ref([]),X=(S,A)=>{Q.value[A]=S},te=S=>A=>{X(A,S)},ae=(S,A)=>{const F=Y.value,y=Q.value;if(!F||!y||!y[S])return;const K=y[S];let P=0;r.direction==="vertical"?P=K.offsetTop-(F.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(F.offsetWidth-K.offsetWidth)/2,V(F,P,A?0:.3,r.direction)},V=(S,A,F,y)=>{let K=0;const P=y==="horizontal"?S.scrollLeft:S.scrollTop,q=F===0?1:Math.round(F*1e3/16);function M(){y==="horizontal"?S.scrollLeft+=(A-P)/q:S.scrollTop+=(A-P)/q,++K<q&&In(M)}M()};return()=>{const S=[];if(r.mode==="simple")for(let F=0;F<f.value.length;F++){const y=f.value[F],K=R(y,F);S.push(K)}else for(let F=0;F<f.value.length;F++){const y=f.value[F],K=U(y,F);S.push(K)}const A={ref:Y,class:h.value,style:g.value};return l.h("view",A,S)}}}}const{componentName:yf,create:bf,scope:vf}=ue("steps-bar"),Nl=bf(pf(yf,vf,zc,Kc)),wf=Symbol.for("InnerPageScopeKey"),Sf=Symbol.for("PageWrapperKey");function xf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(wf,!0);const r={};l.provide(Sf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const c={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const d=n.slots.default();f.default=()=>d}return l.h(b.ElDialog,c,f)}}}}const{componentName:Fh,create:Tf,scope:Dh}=ue("dialog-item"),El=Tf(xf());let Lt=0;const Vr="fox-overflow-hidden",Fr=()=>Ze?document.body:{classList:[]},Cf=e=>[()=>{if(e())try{!Lt&&Fr().classList.add(Vr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Fr().classList.remove(Vr)}catch{}}],$f={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Nf,create:Ef}=ue("overlay"),kf=Ef({props:{...$f},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Cf(()=>e.lockScroll),r=l.computed(()=>({[Nf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function If(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const mn=Pe(kf,[["render",If]]),Of={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Dr=2e3;let Rr=Dr;const Vf=(e,t)=>({components:t,props:{...Of},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Dr&&(Rr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Rr,o.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},O=h=>{n("opend",h)},m=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():c()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:d,onClickOverlay:v,onOpened:O,onClosed:m}}}),{componentName:Ff,create:Df}=ue("popup"),Rf=Df(Vf(Ff,{FoxOverLay:mn,Close:Pc}));function Af(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const kl=Pe(Rf,[["render",Af]]),{create:Mf}=ue("toast"),Lf=Mf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,O=>{O&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const O=he(e.iconSize);return l.h(e.icon,{width:O,height:O,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Bf={key:1,class:"fox-toast-title"},_f=["innerHTML"];function qf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Bf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,_f)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Il=Pe(Lf,[["render",qf]]),Pf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},jf=(e,t,o)=>({props:{...Pf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=Co(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),d=E=>{let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,E),a("change",x,E)},v=l.ref({}),O=E=>{let x=E.target.value;u.active=!0,v.value=n.focusStyle,a("focus",x,E)},m=E=>{setTimeout(()=>{u.active=!1},0);let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),v.value={},a("blur",x,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",n.modelValue)},N=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},z=E=>{a("click-input",E)},B=E=>{a("click-left-icon",n.modelValue,E)},_=l.computed(()=>({textAlign:n.inputAlign})),D=l.ref(null);l.onMounted(()=>{n.autofocus&&D.value.focus()});const L=()=>{const E=[];if(r.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},R=l.h("view",I,[r.leftin()]);E.push(R)}const k={ref:D,class:[`${e}__input-inner`],style:_.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:d,onFocus:O,onBlur:m,onkeyup:N},x=l.h("input",k);E.push(x);const j=[];if(n.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},R=r?.clear?.()??n.clearIcon??o,U=l.h("view",I,[l.h(R)]);j.push(U)}if(r.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=l.h("view",I,[r.rightin()]);j.push(R)}if(j.length>0){const I={class:`${e}__input-inner-right`},R=l.h("view",I,j);E.push(R)}const $={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...v.value}};return l.h("view",$,E)};return()=>{const E=[];if(n.label){const j={class:`${e}__search-label`},$=l.h("span",j,[n.label]);E.push($)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=l.h("view",j,[r.leftout()]);E.push($)}const k=L();if(E.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=l.h("view",j,[r.rightout()]);E.push($)}const x={class:`${e}`,style:c.value};return l.h("view",x,E)}}}),{componentName:zf,create:Hf,scope:Kf}=ue("searchbar"),Ol=Hf(jf(zf,Kf,Ne.CircleClose)),Wf=/scroll|auto|overlay/i,Ar=window;function Yf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Uf(e,t=Ar){let o=e;for(;o&&o!==t&&Yf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Wf.test(n))return o;o=o.parentNode}return t}function Mr(e,t=Ar){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Uf(e.value,t))}),o}const Lr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Gf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Xf(e,t,o){return{props:{...Gf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Mr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,O=()=>{let w=0,N=0,z="down";if(c.value==window){const B=Lr();u.value&&(w=v(u.value)+u.value.offsetHeight-B-window.innerHeight),N=B}else{const{scrollHeight:B,clientHeight:_,scrollTop:D}=c.value;w=B-_-D,N=D}return f.beforeScrollTop>N?z="up":z="down",f.beforeScrollTop=N,r("scroll-change",N),w<=n.threshold&&z=="down"},m=()=>{Yl(()=>{if(!O()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{c.value&&c.value.addEventListener("scroll",m,n.useCapture)},g=()=>{c.value&&c.value.removeEventListener("scroll",m,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},N=l.h("view",w,[a?.default?.()]),z=[];if(f.isInfiniting){let L=a?.loading?.()??null;if(!L){let x=a?.loadingIcon?.()??null;if(!x){const I={class:["fox-infinite__bottom-box__img"]};x=l.h(o,I)}const j={class:"fox-infinite__bottom-box__text"},$=l.h("view",j,[s.loadText.value]);L=[x,$]}const E={class:"fox-infinite__bottom-box"},k=l.h("view",E,L);z.push(k)}else if(!n.hasMore){let L=a?.finished?.()??null;if(!L){const E={class:"fox-infinite__bottom-tips"};L=l.h("view",E,[s.loadMoreText.value]),z.push(L)}}const B={class:"fox-infinite__bottom"},_=l.h("view",B,z),D={class:d.value,ref:u};return l.h("view",D,[N,_])}}}}const{componentName:Zf,create:Qf,scope:Jf}=ue("infinite-loading"),Vl=Qf(Xf(Zf,Jf,wl)),Br=10;function _r(e,t){return e>t&&e>Br?"horizontal":t>e&&t>Br?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Dl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=_r(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ed(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(""),d=()=>f.value==="vertical",v=()=>f.value==="horizontal",O=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const N=g.touches[0];i.value=N.clientX-e.value,s.value=N.clientY-t.value,r.value=N.clientX,a.value=N.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=_r(u.value,c.value))},start:g=>{if(O(),g.touches){const N=g.touches[0];e.value=N.clientX,t.value=N.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:O,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:v}}const td={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},nd=(e,t,o)=>({props:{...td},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Dl(),c=l.ref(),f=Mr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),O=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const D={};return n.headHeight!=50&&(D.height=Ie(n.headHeight)),D}),g=D=>{const L=+(n.pullDistance||n.headHeight);let E=D;return D>L&&(D<L*2?E=(D+L)/2:E=L+D/4),Math.round(E)},T=(D,L)=>{const E=+(n.pullDistance||n.headHeight);d.distance=D,L?d.status="loading":D===0?d.status="normal":D<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:D})},w=()=>d.status!=="loading"&&d.status!=="complete",N=()=>f.value==window?Lr()==0:f.value&&f.value.scrollTop==0,z=D=>{w()&&(N()?(u.start(D),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=D=>{w()&&d.moving&&(u.move(D),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(D.cancelable&&D.preventDefault(),T(g(u.state.deltaY))))},_=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,D=>{D?T(+n.headHeight,!0):T(0)}),()=>{const D=[];let L=null;if(d.status==="loading"){if(L=a?.loading?.()??null,!L){const U={class:["fox-pull-refresh-container-topbox-icon"]};L=l.h(o,U)}}else d.status==="pulling"?L=a?.pulling?.()??null:d.status==="loosing"&&(L=a?.loosing?.()??null);L&&D.push(L);const E={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",E,[O.value]);D.push(k);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",x,D),$={class:"fox-pull-refresh-container",style:m.value},I=l.h("div",$,[j,a?.default?.()]),R={ref:c,class:v.value};return Fl()?Object.assign(R,{onTouchstart:z,onTouchmove:B,onTouchend:_}):Object.assign(R,{onMousedown:z,onMousemove:B,onMouseup:_}),l.h("div",R,[I])}}}),{componentName:ld,create:od,scope:rd}=ue("pull-refresh"),Rl=od(nd(ld,rd,wl));function ad(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=l.h(o.icon??"div",h)}const d={class:u.value,style:c.value},v=n.default?n.default():[],O=l.h("div",d,v),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[f,O]):l.h("div",m,[O,f])}}}}const{componentName:id,create:sd,scope:Rh}=ue("indicator"),Al=sd(ad(id));function ud(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const cd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function fd(e,t,o,n=!1){return{props:{...cd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const N={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(N[`${e}--${r.type??"default"}`]=!0),r.size&&(N[`${e}--${r.size}`]=!0),N}),u=l.computed(()=>{const N={},z=r.textColor??r.color;return z&&(N.color=z),N}),c=(N,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const _=r.highlightFilter;if(N.indexOf(_)!==-1){const L=N.replace(new RegExp(_,"g"),`<span>${_}</span>`);z.innerHTML=L,z.class["is-highlight"]=!0,B=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const _=r.highlightFilter(N);_&&(z.innerHTML=_,z.class["is-highlight"]=!0,B=l.h(r.tag,z))}return B},f=N=>{a.emit("click",N)};let d="";const v=()=>{const N=i.value;if(!N)return;const z=N.clientWidth;ud(N,B=>{const _=N.innerHTML??"";pe(_)||B<z||(d?o?.show(N,_,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(N,_,{type:"text",showArrow:r.showArrow},!0)??"")})},O=()=>{d&&o?.hide(d)};let m=null;const h=N=>{m||(m=setTimeout(()=>{v(),m=null},r.showAfter??0))},g=N=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{O()},r.hideAfter??0)},T=()=>{const N=i.value;N&&(N.addEventListener("mouseover",h),N.addEventListener("mouseleave",g))},w=()=>{const N=i.value;N&&(N.removeEventListener("mouseover",h),N.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||(w(),O())}),()=>{const N={onClick:f,class:s.value,style:u.value,ref:i};let z=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=Se(r.digits),x=Se(r.decimalLength),j=se(r.autoPadding);let $=`${L[0].children}`,I=$.split("").reverse().join("");I=zt(I,x,j,k,r.separator),$=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=c($,N)),z||(N.innerHTML=$,z=l.h(r.tag,N))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=`${L[0].children}`;z=c(k,N),z||(N.innerHTML=k,z=l.h(r.tag,N))}}}z||(z=l.h(r.tag,N,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let _=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const E={},k=r.color;k&&(E["background-color"]=k);const x={class:L,style:E};_=l.h("view",x)}const D={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",D,[_,z])}}}}const{componentName:dd,create:hd,scope:gd}=ue("text"),Ml=hd(fd(dd,gd,Re,!1)),md={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function pd(e,t,o){return{props:{...md},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ge(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:c.value},O=o(n.icon,v);return O&&d.push(O),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:yd,create:bd,scope:vd}=ue("more-button"),Ll=bd(pd(yd,vd,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function wd(e){return e===window}const qr=e=>{const t=l.unref(e);if(wd(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Sd,create:xd,scope:Mh}=ue("tour"),Td=xd({components:{Close:Ne.Close,ElPopover:b.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Sd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:N,top:z}=r.value,B=e.steps[n.active].offset??m,_=[N+T/2,z+w/2],D=Number(h||T),L=Number(g||w);return{width:`${D+ +B.left+B.right}px`,height:`${L+B.top+B.bottom}px`,top:`${_[1]-L/2-+B.top}px`,left:`${_[0]-D/2-+B.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,c=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=qr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},O=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return l.onMounted(()=>{O(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{O(m)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:v}}}),Cd={key:0,class:"fox-tour__content"},$d={key:0,class:"fox-tour__content-top"},Nd={class:"fox-tour__content-inner"},Ed={class:"fox-tour__content-bottom"},kd={class:"fox-tour__content-bottom-init"},Id={class:"fox-tour__content-bottom-operate"},Od={key:1,class:"fox-tour__content fox-tour__content-tile"},Vd={class:"fox-tour__content-inner"};function Fd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Cd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",$d,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Nd,l.toDisplayString(c.content),1),l.createElementVNode("div",Ed,[l.createElementVNode("div",kd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Id,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Od,[l.createElementVNode("div",Vd,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Bl=Pe(Td,[["render",Fd]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Dd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Dl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Pr(e,t){return new Dd(e,t)}let St=[];const jr=e=>{const t=e;t.key==="Escape"&&St.forEach(o=>o(t))},Rd=e=>{l.onMounted(()=>{St.length===0&&document.addEventListener("keydown",jr),Ze&&St.push(e)}),l.onBeforeUnmount(()=>{St=St.filter(t=>t!==e),St.length===0&&Ze&&document.removeEventListener("keydown",jr)})},_l="fox-focus-trap.focus-after-trapped",zr="fox-focus-trap.focus-after-released",Ad="fox-focus-trap.focusout-prevented",Hr={cancelable:!0,bubbles:!1},Md={cancelable:!0,bubbles:!1},Kr="foxFocusAfterTrapped",Wr="foxFocusAfterReleased",Ld=Symbol("foxFocusTrap"),ql=l.ref(),pn=l.ref(0),Pl=l.ref(0);let yn=0;const Yr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Bd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ur=(e,t)=>{for(const o of e)if(!Bd(o,t))return o},_d=e=>{const t=Yr(e),o=Ur(t,e),n=Ur(t.reverse(),e);return[o,n]},qd=e=>e instanceof HTMLInputElement&&"select"in e,rt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Pl.value=window.performance.now(),e!==o&&qd(e)&&t&&e.select()}};function Gr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Pd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Gr(e,n),e.unshift(n)},remove:n=>{e=Gr(e,n),e[0]?.resume?.()}}},jd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(rt(n,t),document.activeElement!==o)return},Xr=Pd(),zd=()=>pn.value>Pl.value,bn=()=>{ql.value="pointer",pn.value=window.performance.now()},Zr=()=>{ql.value="keyboard",pn.value=window.performance.now()},Hd=()=>(l.onMounted(()=>{yn===0&&(document.addEventListener("mousedown",bn),document.addEventListener("touchstart",bn),document.addEventListener("keydown",Zr)),yn++}),l.onBeforeUnmount(()=>{yn--,yn<=0&&(document.removeEventListener("mousedown",bn),document.removeEventListener("touchstart",bn),document.removeEventListener("keydown",Zr))}),{focusReason:ql,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:Pl}),vn=e=>new CustomEvent(Ad,{...Md,detail:e}),{componentName:Lh,create:Kd,scope:Bh}=ue("focus-trap"),Wd=Kd({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Kr,Wr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Hd();Rd(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:N,currentTarget:z,shiftKey:B}=h,{loop:_}=e,D=g==="Tab"&&!T&&!w&&!N,L=document.activeElement;if(D&&L){const E=z,[k,x]=_d(E);if(k&&x){if(!B&&L===x){const $=vn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),_&&rt(k,!0))}else if(B&&[k,E].includes(L)){const $=vn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),_&&rt(x,!0))}}else if(L===E){const $=vn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};l.provide(Ld,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const c=h=>{o(Kr,h)},f=h=>o(Wr,h),d=h=>{const g=l.unref(n);if(!g)return;const T=h.target,w=h.relatedTarget,N=T&&g.contains(T);se(e.trapped)||w&&g.contains(w)||(r=w),N&&o("focusin",h),!s.paused&&se(e.trapped)&&(N?a=T:rt(a,!0))},v=h=>{const g=l.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const T=h.relatedTarget;!Rn(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=vn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||rt(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function O(){await l.nextTick();const h=l.unref(n);if(h){Xr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(_l,Hr);h.addEventListener(_l,c),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let N=e.focusStartEl;no(N)||(rt(N),document.activeElement!==N&&(N="first")),N==="first"&&jd(Yr(h),!0),(document.activeElement===g||N==="container")&&rt(h)})}}}function m(){const h=l.unref(n);if(h){h.removeEventListener(_l,c);const g=new CustomEvent(zr,{...Hr,detail:{focusReason:i.value}});h.addEventListener(zr,f,{once:!0}),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!zd())&&rt(r??document.body,!0),Xr.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&O(),l.watch(()=>e.trapped,h=>{se(h)?O():m()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&m(),n.value&&(n.value.removeEventListener("keydown",u),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",v))}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Yd,create:Ud,scope:qh}=ue("floating-window"),Gd=Symbol.for("InnerPageScopeKey"),Xd=Symbol.for("PageWrapperKey"),Zd={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Qd=Ud({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:Wd},props:{...Zd},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Yd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,C=>{n.value=C});const a=l.computed(()=>n.value===!1?!1:!L.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),c=l.ref(e.bottom),f=l.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=l.computed(()=>{const C={};return dt(i.value)?C.left="auto":C.left=Ae(i.value),dt(s.value)?C.top="auto":C.top=Ae(s.value),dt(u.value)?C.right="auto":C.right=Ae(u.value),dt(c.value)?C.bottom="auto":C.bottom=Ae(c.value),dt(e.zIndex)||(C["z-index"]=Ae(e.zIndex)),dt(_.value)||(C.height=_.value),dt(D.value)||(C.width=D.value),C}),v=l.computed(()=>e.closeIcon??Ne.Close),O=l.computed(()=>e.collapseIcon??Ne.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),N=l.ref(),z=l.ref(null),B=l.ref(null),_=l.computed(()=>Ae(e.height)||""),D=l.computed(()=>Ae(e.width)||""),L=l.ref(se(e.collapse)),E=(C,W=!0)=>{L.value!==C&&(L.value=C,C?S():A(),t("update:collapse",C),C&&typeof j.onHide=="function"?j.onHide():!C&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,C=>{E(C)});const k=()=>{x()},x=C=>{C=C??!L.value,E(C)};l.provide(Gd,!0);const j={setCollapse:E,setFixedNavVisible:C=>{te.value=C}};l.provide(Xd,j);const $=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},I=l.ref(null),R=l.computed(()=>!e.fixedNavTeleport),U=l.computed(()=>{const C=["fox-floating-window__fixednav"];return e.expandClass&&C.push(e.expandClass),e.collapsePosition==="left"?C.push("is-left"):e.collapsePosition==="right"&&C.push("is-right"),C}),Y=l.ref(""),Q=l.computed(()=>{const C={};return Y.value?C.top=Y.value:e.collapseTop&&(C.top=e.collapseTop),C}),X=l.ref(L.value),te=l.computed({set:C=>{X.value=C},get:()=>n.value===!1?!1:X.value});let ae=null;const V=()=>{typeof ae=="function"&&(ae(),ae=null)},S=()=>{I.value&&I.value.classList.add("slide-in"),te.value=!0,ae=()=>{I.value&&I.value.classList.remove("slide-in")}},A=()=>{I.value&&I.value.classList.add("slide-out"),ae=()=>{I.value&&I.value.classList.remove("slide-out"),te.value=!1}},F=()=>{i.value=null,s.value=null,u.value=null,c.value=null},y={x:0,y:0},q=Pr(C=>{if(!N.value)return;const W=N.value;if(F(),e.origin==="left-top")i.value=W.offsetLeft,s.value=W.offsetTop,y.x=i.value,y.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,c.value=ee-(W.offsetTop+W.offsetHeight),y.x=i.value,y.y=c.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ee-(W.offsetLeft+W.offsetWidth),c.value=oe-(W.offsetTop+W.offsetHeight),y.x=u.value,y.y=c.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;u.value=ee-(W.offsetLeft+W.offsetWidth),s.value=W.offsetTop,y.x=u.value,y.y=s.value}},C=>{if(!N.value)return;const W=N.value;F(),e.origin==="left-top"?(i.value=y.x+C.x,s.value=y.y+C.y,W.style.left=Ae(i.value),W.style.top=Ae(s.value)):e.origin==="left-bottom"?(i.value=y.x+C.x,c.value=y.y-C.y,W.style.left=Ae(i.value),W.style.bottom=Ae(c.value)):e.origin==="right-bottom"?(u.value=y.x-C.x,c.value=y.y-C.y,W.style.right=Ae(u.value),W.style.bottom=Ae(c.value)):(u.value=y.x-C.x,s.value=y.y+C.y,W.style.right=Ae(u.value),W.style.top=Ae(s.value))}),M={x:0,y:0},J=Pr(C=>{I.value&&(M.x=I.value.offsetLeft,M.y=I.value.offsetTop)},C=>{if(!I.value)return;const W=M.y+C.y;Y.value=`${W}px`}),ne=()=>{if(N.value){const C=N.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=C}};return l.onMounted(()=>{if(e.draggable&&N.value){const C=[];z.value&&C.push(z.value),e.footerDraggable&&(ne(),B.value&&C.push(B.value)),q.open(C)}e.collapse===!0&&E(e.collapse,!1),I.value&&J.open(I.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&q.close(),I.value&&J.close()}),{classes:f,styles:d,isShow:a,closeIcon:v,onClose:$,dialogRef:N,headerRef:z,onClickToggle:k,collapseIcon:O,collapseText:m,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:te,fixedNavRef:I,fixedNavClasses:U,fixedNavStyles:Q,onAnimationEnd:V,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),Jd={ref:"headerRef",class:"fox-floating-window__header"},eh={class:"fox-floating-window__title"},th={class:"fox-floating-window__tools"},nh={class:"fox-floating-window__body"},lh={class:"fox-floating-window__fixednav__text"};function oh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",Jd,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",eh,l.toDisplayString(e.title),1),l.createElementVNode("div",th,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",nh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",lh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const jl=Pe(Qd,[["render",oh]]);function rh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return xo(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Ph,create:ah,scope:jh}=ue("domain-provider"),zl=ah(rh()),ih={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function sh(e,t){return{inheritAttrs:!1,props:ih,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,O)=>{if(f===null){a.set(v,{visible:null,callback:O});return}r.has(v)&&f.unobserve(v),r.set(v,{visible:null,callback:O}),f.observe(v)},s=v=>{if(f===null){a.delete(v);return}r.has(v)&&(r.delete(v),f.unobserve(v))};let u=o.initialVisibleObserverSize;ai({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(v,O,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(N){console.error(N)}}},{root:v,rootMargin:O,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,O])=>{if(O||!v||f)return;let m=null;typeof v=="string"?m=document.querySelector(v):m=v,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:zh,create:uh,scope:Hh}=ue("rolling-provider"),Hl=uh(sh()),ch=[Pn,zn,Hn,Kn,Un,Te,Zn,Qn,Ft,Jn,el,tl,nl,ll,ol,rl,il,sl,ul,cl,gn,hl,gl,ml,pl,yl,bl,vl,Sl,xl,Tl,Nl,El,mn,kl,Il,Ol,Vl,Rl,Rt,dn,Al,Ml,Ll,Bl,jl,zl,Hl],fh=new La(ch,[qa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>b.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>b.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>b.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>b.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>b.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>b.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>b.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>b.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>b.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>b.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>b.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>b.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>b.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>b.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>b.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>b.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>b.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload}),p.AutocompleteItem=sl,p.Broadcast=Mn,p.BroadcastKey=be,p.CascaderItem=il,p.CheckboxItem=ml,p.Content=Kn,p.DataItemsKey=gt,p.DateItem=tl,p.DateUtils=qe,p.DialogItem=El,p.Domain=Qt,p.DomainKey=Le,p.DomainProvider=zl,p.FloatingWindow=jl,p.FooterBar=Hn,p.FoxAutocompleteItem=sl,p.FoxCascaderItem=il,p.FoxCheckboxItem=ml,p.FoxContent=Kn,p.FoxDateItem=tl,p.FoxDialogItem=El,p.FoxDomainProvider=zl,p.FoxFloatingWindow=jl,p.FoxFooterBar=Hn,p.FoxGroup=Un,p.FoxGroupSetting=vl,p.FoxHeaderBar=zn,p.FoxHintText=Ft,p.FoxIndicator=Al,p.FoxInfiniteLoading=Vl,p.FoxInputItem=Jn,p.FoxInputNumberItem=rl,p.FoxItem=Te,p.FoxMapping=Rt,p.FoxMoneyItem=ol,p.FoxMoreButton=Ll,p.FoxOverLay=mn,p.FoxPage=Pn,p.FoxPopup=kl,p.FoxPrice=dn,p.FoxPullRefresh=Rl,p.FoxRadioItem=gl,p.FoxRateItem=pl,p.FoxRollingProvider=Hl,p.FoxRowItem=Qn,p.FoxSearchBar=Ol,p.FoxSelectItem=el,p.FoxSlotItem=Zn,p.FoxStepsBar=Nl,p.FoxSwitchItem=yl,p.FoxTableItem=hl,p.FoxTableMappingColumn=ul,p.FoxTableRadioColumn=cl,p.FoxTableSetting=gn,p.FoxTabsBar=Sl,p.FoxTabsContainer=xl,p.FoxTabsPane=Tl,p.FoxText=Ml,p.FoxTimeItem=nl,p.FoxTimeSelectItem=ll,p.FoxToast=Il,p.FoxTour=Bl,p.FoxTreeSelectItem=bl,p.Group=Un,p.GroupSetting=vl,p.HeaderBar=zn,p.HintText=Ft,p.Indicator=Al,p.InfiniteLoading=Vl,p.InputItem=Jn,p.InputNumberItem=rl,p.Item=Te,p.Mapping=Rt,p.MoneyItem=ol,p.MoreButton=Ll,p.OverLay=mn,p.Page=Pn,p.Popup=kl,p.Price=dn,p.PriorityPolicy=_e,p.PullRefresh=Rl,p.RadioItem=gl,p.RateItem=pl,p.RollingProvider=Hl,p.RowItem=Qn,p.SearchBar=Ol,p.SelectItem=el,p.SlotItem=Zn,p.StepsBar=Nl,p.SwitchItem=yl,p.TableItem=hl,p.TableMappingColumn=ul,p.TableRadioColumn=cl,p.TableSetting=gn,p.TabsBar=Sl,p.TabsContainer=xl,p.TabsPane=Tl,p.Text=Ml,p.TimeItem=nl,p.TimeSelectItem=ll,p.Toast=Il,p.Tour=Bl,p.TreeSelectItem=bl,p.UniqueID=Lo,p.ValidateSchema=vo,p.ValidateSchemaKey=je,p.cancelRaf=ta,p.clearNonNumber=ha,p.clone=Fn,p.compareTo=kn,p.createBroadcast=Yt,p.createValidateSchema=Gt,p.debounce=It,p.debounceRef=Na,p.decimalLength=fo,p.default=fh,p.defineBroadcast=ya,p.defineConfigDomain=xo,p.defineDataItem=To,p.defineDomain=Ln,p.defineItem=Ce,p.definePageState=$o,p.defineSimpleItem=Co,p.deleteGlobalValidator=xa,p.disabledProperty=De,p.divide=En,p.excludeProps=ke,p.extend=ut,p.floatData=pa,p.getGlobalValidateCheckEvents=po,p.getGlobalValidateResetEvents=bo,p.getPageContentAreaHeight=tn,p.getPageContentAreaWidth=nn,p.getPageFooterAreaHeight=Vt,p.getPageHeaderAreaHeight=Ot,p.getRootDomain=mt,p.hasSymbol=ro,p.includeProps=go,p.indexOf=ga,p.integerLength=co,p.isArray=la,p.isArrayLike=io,p.isBrowser=Ze,p.isDate=aa,p.isESModule=sa,p.isEmptyString=pe,p.isEqual=Xe,p.isFunction=On,p.isHidden=Wt,p.isInnerPage=Ia,p.isMap=oa,p.isNil=Rn,p.isNumberString=uo,p.isObject=Ge,p.isPlainObject=Vn,p.isPromise=lo,p.isRegExp=An,p.isSet=ra,p.isString=no,p.isSubPage=Oa,p.isSymbol=ia,p.isTouch=Fl,p.isWindow=ao,p.lastIndexOf=ma,p.makeArray=da,p.merge=so,p.multiply=Jl,p.negate=eo,p.nextTick=ca,p.numberFormat=zt,p.objectToString=oo,p.once=Ea,p.overrideGlobalValidateHandler=wa,p.property=Ve,p.raf=In,p.readonlyProperty=Fe,p.setGlobalValidateCheckEvents=Ta,p.setGlobalValidateHandler=va,p.setGlobalValidateMessages=$a,p.setGlobalValidateResetEvents=Ca,p.setGlobalValidator=Sa,p.throttle=So,p.toBoolean=se,p.toNumber=Se,p.toPadding=Ke,p.toPx=he,p.toPxDesc=Ie,p.toTypeString=Ht,p.toValue=ge,p.tryTimes=Zt,p.typeOf=Kt,p.unNumberFormat=to,p.updatePageState=Bn,p.useBroadcast=Nt,p.useDomain=nt,p.useExpose=$e,p.useInnerSize=jn,p.usePageState=en,p.usePosition=Ro,p.useRawTouch=Dl,p.useRect=qr,p.useSize=on,p.useTouch=ed,p.valueLength=$t,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|