@fox-js/foxui-pc 4.0.1-13 → 4.0.1-15

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.
Files changed (112) hide show
  1. package/dist/index.cjs.js +3 -3
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.esm.js +4760 -7431
  4. package/dist/index.umd.js +3 -3
  5. package/dist/style.css +1 -1
  6. package/dist/style.esm.js +1 -1
  7. package/dist/types/index.d.ts +0 -20
  8. package/package.json +1 -1
  9. package/dist/index.cjs.js.map +0 -1
  10. package/dist/index.esm.js.map +0 -1
  11. package/dist/index.umd.js.map +0 -1
  12. package/dist/types/src/api/index.d.ts +0 -35
  13. package/dist/types/src/base/component.d.ts +0 -70
  14. package/dist/types/src/base/index.d.ts +0 -4
  15. package/dist/types/src/base/plugin.d.ts +0 -2
  16. package/dist/types/src/components/autocompleteitem/common.d.ts +0 -152
  17. package/dist/types/src/components/autocompleteitem/index.vue.d.ts +0 -3
  18. package/dist/types/src/components/cascaderitem/common.d.ts +0 -223
  19. package/dist/types/src/components/cascaderitem/index.vue.d.ts +0 -3
  20. package/dist/types/src/components/cascaderitem/model.d.ts +0 -70
  21. package/dist/types/src/components/cascaderitem/types.d.ts +0 -26
  22. package/dist/types/src/components/checkboxitem/common.d.ts +0 -181
  23. package/dist/types/src/components/checkboxitem/index.vue.d.ts +0 -3
  24. package/dist/types/src/components/checkboxitem/model.d.ts +0 -63
  25. package/dist/types/src/components/checkboxitem/types.d.ts +0 -33
  26. package/dist/types/src/components/content/common.d.ts +0 -16
  27. package/dist/types/src/components/content/index.vue.d.ts +0 -3
  28. package/dist/types/src/components/dateitem/common.d.ts +0 -152
  29. package/dist/types/src/components/dateitem/index.vue.d.ts +0 -3
  30. package/dist/types/src/components/dialogitem/common.d.ts +0 -27
  31. package/dist/types/src/components/dialogitem/index.vue.d.ts +0 -3
  32. package/dist/types/src/components/exticon/index.vue.d.ts +0 -3
  33. package/dist/types/src/components/footerbar/common.d.ts +0 -26
  34. package/dist/types/src/components/footerbar/index.vue.d.ts +0 -3
  35. package/dist/types/src/components/footerbar/type.d.ts +0 -1
  36. package/dist/types/src/components/group/commons.d.ts +0 -122
  37. package/dist/types/src/components/group/group-props.d.ts +0 -97
  38. package/dist/types/src/components/group/index.vue.d.ts +0 -3
  39. package/dist/types/src/components/headerbar/common.d.ts +0 -80
  40. package/dist/types/src/components/headerbar/index.vue.d.ts +0 -3
  41. package/dist/types/src/components/headerbar/types.d.ts +0 -5
  42. package/dist/types/src/components/hinttext/index.d.ts +0 -27
  43. package/dist/types/src/components/hinttext/index.vue.d.ts +0 -3
  44. package/dist/types/src/components/indicator/common.d.ts +0 -19
  45. package/dist/types/src/components/indicator/index.vue.d.ts +0 -3
  46. package/dist/types/src/components/indicator/types.d.ts +0 -1
  47. package/dist/types/src/components/inputitem/common.d.ts +0 -176
  48. package/dist/types/src/components/inputitem/index.vue.d.ts +0 -3
  49. package/dist/types/src/components/inputnumberitem/common.d.ts +0 -176
  50. package/dist/types/src/components/inputnumberitem/index.vue.d.ts +0 -3
  51. package/dist/types/src/components/item/common.d.ts +0 -137
  52. package/dist/types/src/components/item/index.vue.d.ts +0 -3
  53. package/dist/types/src/components/mapping/common.d.ts +0 -105
  54. package/dist/types/src/components/mapping/index.vue.d.ts +0 -3
  55. package/dist/types/src/components/mapping/model.d.ts +0 -28
  56. package/dist/types/src/components/mapping/types.d.ts +0 -17
  57. package/dist/types/src/components/moneyitem/common.d.ts +0 -300
  58. package/dist/types/src/components/moneyitem/index.vue.d.ts +0 -3
  59. package/dist/types/src/components/moneyitem/util.d.ts +0 -51
  60. package/dist/types/src/components/page/common.d.ts +0 -120
  61. package/dist/types/src/components/page/index.vue.d.ts +0 -3
  62. package/dist/types/src/components/price/index.vue.d.ts +0 -3
  63. package/dist/types/src/components/price/price-props.d.ts +0 -37
  64. package/dist/types/src/components/radioitem/common.d.ts +0 -173
  65. package/dist/types/src/components/radioitem/index.vue.d.ts +0 -3
  66. package/dist/types/src/components/radioitem/model.d.ts +0 -63
  67. package/dist/types/src/components/radioitem/types.d.ts +0 -33
  68. package/dist/types/src/components/rateitem/common.d.ts +0 -136
  69. package/dist/types/src/components/rateitem/index.vue.d.ts +0 -3
  70. package/dist/types/src/components/rowitem/common.d.ts +0 -38
  71. package/dist/types/src/components/rowitem/index.vue.d.ts +0 -3
  72. package/dist/types/src/components/selectitem/common.d.ts +0 -239
  73. package/dist/types/src/components/selectitem/index.vue.d.ts +0 -3
  74. package/dist/types/src/components/selectitem/model.d.ts +0 -70
  75. package/dist/types/src/components/selectitem/types.d.ts +0 -26
  76. package/dist/types/src/components/slotitem/common.d.ts +0 -21
  77. package/dist/types/src/components/slotitem/index.vue.d.ts +0 -3
  78. package/dist/types/src/components/switchitem/common.d.ts +0 -136
  79. package/dist/types/src/components/switchitem/index.vue.d.ts +0 -3
  80. package/dist/types/src/components/tableitem/common.d.ts +0 -230
  81. package/dist/types/src/components/tableitem/index.vue.d.ts +0 -3
  82. package/dist/types/src/components/tableitem/model.d.ts +0 -27
  83. package/dist/types/src/components/tableitem/types.d.ts +0 -19
  84. package/dist/types/src/components/tablemappingcolumn/common.d.ts +0 -56
  85. package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +0 -3
  86. package/dist/types/src/components/timeitem/common.d.ts +0 -152
  87. package/dist/types/src/components/timeitem/index.vue.d.ts +0 -3
  88. package/dist/types/src/components/timeselectitem/common.d.ts +0 -152
  89. package/dist/types/src/components/timeselectitem/index.vue.d.ts +0 -3
  90. package/dist/types/src/foxui.vue.build.d.ts +0 -137
  91. package/dist/types/src/interface.d.ts +0 -83
  92. package/dist/types/src/main.d.ts +0 -81
  93. package/dist/types/src/utils/commons.d.ts +0 -220
  94. package/dist/types/src/utils/create/component.d.ts +0 -18
  95. package/dist/types/src/utils/create/index.d.ts +0 -1
  96. package/dist/types/src/utils/date.d.ts +0 -76
  97. package/dist/types/src/utils/domain/broadcast.d.ts +0 -116
  98. package/dist/types/src/utils/domain/domain.d.ts +0 -146
  99. package/dist/types/src/utils/domain/events.d.ts +0 -51
  100. package/dist/types/src/utils/domain/group.d.ts +0 -61
  101. package/dist/types/src/utils/domain/index.d.ts +0 -5
  102. package/dist/types/src/utils/domain/item.d.ts +0 -45
  103. package/dist/types/src/utils/domain/page.d.ts +0 -113
  104. package/dist/types/src/utils/domain/types.d.ts +0 -5
  105. package/dist/types/src/utils/domain/validator.d.ts +0 -230
  106. package/dist/types/src/utils/functions.d.ts +0 -20
  107. package/dist/types/src/utils/px.d.ts +0 -13
  108. package/dist/types/src/utils/unique-id.d.ts +0 -16
  109. package/dist/types/src/utils/use-expose/index.d.ts +0 -6
  110. package/dist/types/src/utils/use-position/index.d.ts +0 -14
  111. package/dist/types/src/utils/use-rect/index.d.ts +0 -20
  112. package/dist/types/src/utils/use-touch/index.d.ts +0 -21
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(m,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@fox-js/i18n"],n):(m=typeof globalThis<"u"?globalThis:m||self,n(m.FoxUI={},m.Vue,m.Schema,m.elementPlus,m.i18n))})(this,function(m,n,Re,y,ge){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Sat Dec 31 2022 23:14:41 GMT+0800 (中国标准时间)
1
+ (function(f,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@fox-js/i18n"],l):(f=typeof globalThis<"u"?globalThis:f||self,l(f.FoxUI={},f.Vue,f.Schema,f.elementPlus,f.i18n))})(this,function(f,l,Ve,h,ye){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Jan 09 2023 17:55:21 GMT+0800 (中国标准时间)
3
3
  *//*!
4
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:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName: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"}})});
5
+ */function Qe(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=le(e),t=le(t),[e,t]=wt(le(e),le(t)),r==1&&(n==1?e=bt(e):t=bt(t));let a=ln(e,t);return r?r==2?"-"+le(a):e.length<a.length?le(a.substring(1)):"-"+le(bt(a)):le(a)}function bt(e){let t="",r=e.length,n=e.split(".")[1],a=n?n.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=a>0?"0."+new Array(a).join("0")+"1":"1";return ln(t,o)}function le(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 wt(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,o=n[0].length;return a>o?n[0]=new Array(Math.abs(a-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-o)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(a||o)&&(a>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ln(e,t){[e,t]=wt(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let o=parseInt(e[a])+parseInt(t[a])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var Q=(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))(Q||{});function Ke(e,t=0,r=Q.HALF_EVEN){if(r===Q.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),o=a[0],i=a[1];if(t<0){if(t=-t,o.length<=t)return"0";{let s=o.substr(0,o.length-t);return e=s+"."+o.substr(o.length-t)+i,s=Ke(e,0,r),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return o.length,on(a[1],o,n,r)?(n?"-":"")+St(o):(n?"-":"")+o;if(a[1]){if(a[1].length<t)return(n?"-":"")+o+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let u=a[1].substring(t);return u&&on(u,i,n,r)&&(i=St(i),i.length>t)?(n?"-":"")+St(o,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+o+"."+i}function on(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===Q.DOWN||!r&&n===Q.FLOOR||r&&n===Q.CEILING)return!1;if(n===Q.UP||r&&n===Q.FLOOR||!r&&n===Q.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case Q.HALF_DOWN:return!1;case Q.HALF_UP:return!0;case Q.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function St(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let a=r;a>=0;a--){let o=parseInt(e[a])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function $t(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=ze(e),t=ze(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let o=n+a;if(e=ze(e.replace(".","")),t=ze(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let i=t.length,u=0,s=[],d=i-1,c="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let x=0;for(let A=t.length-1;A>=d&&A>=0;A--)s[A]>-1&&s[A]<e.length&&(x+=parseInt(e[s[A]--])*parseInt(t[A]));x+=u,u=Math.floor(x/10),c=x%10+c,d--}return c=ze(_r(c,o)),r==1&&(c="-"+c),c}function _r(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ze(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 vt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=le(t.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=le(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=le(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let c=e.length-d+a;e=le(e.substring(0,c)+"."+e.substring(c))}else a==d&&(e=le(e.replace(".","")))}let o=0,i=t.length,u="",s=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),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),o=d,u="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(s)>=parseInt(t);)s=Qe(s,"-"+t),d++;u+=d,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,s=s+"0")}return(n==1?"-":"")+le(Ke(u,r-2))}function Et(e,t){return e=e.toString(),t=t.toString(),t=xt(t),Qe(e,t)}function xt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function sn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),un(e),un(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Et(e,$t(t,Ke(vt(e,t),0,Q.FLOOR)));return r+n}function un(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function cn(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]=wt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class H{value;static RoundingModes=Q;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=le(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=a+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=a+le(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=H.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=H.validate(t);let a=t.charAt(0)=="-";a&&(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?n:"")+i;return(a?"-":"")+i+t.substring(o)}getPrettyValue(t,r){return H.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Q.HALF_EVEN){if(t=H.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Ke(t,r,n)}round(t=0,r=Q.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new H(Ke(this.value,t,r))}static floor(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Q.FLOOR)}floor(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Q.FLOOR)}static ceil(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Q.CEILING)}ceil(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Q.CEILING)}static add(t,r){return t=H.validate(t),r=H.validate(r),Qe(t,r)}add(t){return new H(Qe(this.value,t.getValue()))}static subtract(t,r){return t=H.validate(t),r=H.validate(r),Et(t,r)}subtract(t){return new H(Et(this.value,t.getValue()))}static multiply(t,r){return t=H.validate(t),r=H.validate(r),$t(t,r)}multiply(t){return new H($t(this.value,t.getValue()))}static divide(t,r,n){return t=H.validate(t),r=H.validate(r),vt(t,r,n)}divide(t,r){return new H(vt(this.value,t.getValue(),r))}static modulus(t,r){return t=H.validate(t),r=H.validate(r),sn(t,r)}modulus(t){return new H(sn(this.value,t.getValue()))}static compareTo(t,r){return t=H.validate(t),r=H.validate(r),cn(t,r)}compareTo(t){return cn(this.value,t.getValue())}static negate(t){return t=H.validate(t),xt(t)}negate(){return new H(xt(this.value))}}function fn(e,t){return H.multiply(`${e}`,`${t}`)}function Ct(e,t,r=8){return H.divide(`${e}`,`${t}`,r)}function Ot(e,t){return e=`${e}`,t=`${t}`,H.compareTo(e,t)}function dn(e){return H.negate(e)}function Tt(e,t=-1,r=!1,n=3,a=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let u=o,s="",d=o.indexOf(".");d!=-1&&(u=o.substring(0,d),s=o.substring(d+1)),t!=-1&&(t<s.length?s=s.substring(0,t):r&&t>s.length&&(s=s.padEnd(t,"0")));let c;if(n>0){let g="",x=u.split("").reverse();for(let A=0;A<x.length;A++)g+=x[A]+((A+1)%n==0&&A+1!=x.length?a:"");s.length==0?c=`${i}${g.split("").reverse().join("")}`:c=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?c=`${i}${u}`:c=`${i}${u}.${s}`;return c}function hn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Hr=Array.isArray,Kr=e=>et(e)==="[object Map]",zr=e=>et(e)==="[object Set]",Gr=e=>e instanceof Date,Vt=e=>typeof e=="function",Yr=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",Ur=e=>Se(e)&&Vt(e.then)&&Vt(e.catch),gn=Object.prototype.toString,et=e=>gn.call(e),It=e=>et(e)==="[object Object]",mn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Xr(e){return e.__esModule||mn&&e[Symbol.toStringTag]==="Module"}const Zr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ie(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<n;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let i in o){let u=t[i],s=o[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},t[i]=Ie(a,d,s)}else s!==void 0&&(t[i]=s)}}return t}function Nt(e,t,r=!1){if(!r)Ie(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let o=e[a],i=t[a];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!It(i))continue;o=Nt(o,i,r),e[a]=o}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let o=e[a],i=t[a];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!It(i))continue;o=Nt(o,i,r),e[a]=o}else{if(typeof i=="function")continue;e[a]=i}}}return e}const At=Zr?Promise.resolve():null;function Jr(e,...t){At!==null?t&&t.length>0?At.then(()=>{e(t)}):At.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function Z(e){return typeof e=="number"?e:Number(e)}const Qr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function tt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):Qr[r]||"object"}function yn(e){return e&&typeof e=="object"&&"setInterval"in e}function pn(e){let t=!!e&&"length"in e&&e.length,r=tt(e);return r==="function"||yn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function bn(e,t){let r=+t.length,n=0,a=e.length;for(;n<r;n++)e[a++]=t[n];return e.length=a,e}function ea(e,t=[]){let r=t;return e!=null&&(pn(Object(e))?bn(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=tt(e),n=tt(t);if(r!==n)return!1;if(r==="object"){let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let i=0;i<a.length;i++){let u=a[i],s=e[u],d=t[u];if(!Ne(s,d))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let o=e[a],i=t[a];if(!Ne(o,i))return!1}return!0}return!1}const Ge=typeof window<"u",ta=Ge&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function wn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ee=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Sn(e){return ee(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ee(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function $n(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function vn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function En(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function na(e,t=!0,r=!0){t?e=En(e,".",/\./g):e=e.replace(/\./g,""),r?e=En(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ne(e,r))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(Ne(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function la(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function ue(e,...t){const r=[];t.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const n={};for(const a in e)r.includes(a)||(n[a]=e[a]);return n}const oa=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{a.hasOwnProperty(o)?typeof a[o]=="string"&&(n[o]=t[a[o]]):t[o]&&(n[o]=t[o])}),n):e},ne=Symbol("BroadcastKey");class Rt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):wn(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const o=[];if(a){const i=this.callbacks.get(r);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&o.push(s)}const u=this.proxy??{};if(typeof u[r]=="function"){const s=Reflect.apply(u[r],u,[...n]);s!=null&&o.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),o}emitToChildren(t,r,...n){const a=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},r,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,r){this.callbacks.set(t,r)}}function nt(e,t,r,n){const a=new Rt(t,e,r);if(n&&typeof n=="object")for(const o in n)a.on(o,n[o]);return a}function ia(e,t,r){const n=r;if(n[ne])return n[ne];const a=l.inject(ne,null),o=new Rt(a,r,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return n[ne]=o,l.provide(ne,o),l.onUnmounted(()=>{o.destroy(),n[ne]=void 0}),o}function We(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ne]??l.inject(ne,null):l.inject(ne,null)}class sa{error(t,r){const n=r,a=We(r);a?a.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=We(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=We(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const a=n,o=We(n),i=r.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?o?o.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let xn=new sa;function ua(e){xn=e}function ca(e,t){Ve.setValidator(e,t)}function fa(e){Ve.deleteValidator(e)}let Cn=["blur","clear"];function da(e){Cn=e}function On(){return Cn}let Tn=["focus","change"];function ha(e){Tn=e}function Vn(){return Tn}function ga(e){Ve.messages(e)}function Ue(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(o=>o.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function rt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const be=Symbol("ValidateSchemaKey");class In{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(),this.scope.run(()=>{l.watchEffect(()=>{const r=rt(Ue(this.attrRules,this.rules)),n=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let s={type:o};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(o);if(u!==null){let s={type:o,validator:u};n.push(s)}}this.attrRules=rt(n);const a=Ue(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(a,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const a=xn;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?Ve.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?Ve.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ve.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=Ue(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=rt(t):this.rules=rt([t]);const n=Ue(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Ue(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},o=this.getValue(),i={[`${n}`]:o},u=new Ve(a),s=this.proxy??i;return u.validate(i,{context:s}).then(c=>{if(c.pass)this.success();else{let g="error";Array.isArray(c.errors)&&c.errors.length>0&&(g=c.errors[0].message??g,c.errors=[c.errors[0]],c.errors[0].ref=s),this.error(g)}return c}).catch(c=>{const g=c.message??`${c}`;return this.error(g),c})}}return Promise.resolve({pass:!0})}}function at(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(o){return o[a]}}}return new In(t,r,e)}const Nn=Symbol("EventEmitterKey");class ma{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(o=>o===r);a!==-1&&n.splice(a,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function ya(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function kt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const $e=Symbol("DomainKey"),Me=Symbol("DataItemsKey");class jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const a=t[n];r.length>0&&r.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];r.push(a)}n=n._parent}return r}}const pa=new jt;function Xe(){return pa}function ve(e=null){e||(e=l.getCurrentInstance());const t=e?.proxy;return t?t[$e]??l.inject($e,null):l.inject($e,null)}const Mt=Symbol("OriginalDateKey");function Dt(e,t,r=[],n){const a=l.getCurrentInstance(),o=a?.proxy;let i=l.inject($e,null);i===null&&(i=Xe());const u=e||t.prop||t.name,s=new jt(u);s.parent=i;const d=$=>{o[Mt]||x($),s.set("modelValue",$)},c=()=>s.getForSelf("modelValue")??null,g=()=>o[Mt]??null,x=$=>{const R={};Ie(!0,R,l.toRaw($)),o[Mt]=R};l.isReactive(t)?l.watchEffect(()=>{s.merge(t,r)}):s.merge(t,r),t.modelValue&&x(t.modelValue),o[$e]=s,l.provide($e,s);let A=null,V=null;if(a!==null){const $=l.inject(ne,null);A=nt(o,$,u,n),s.broadcast=A,o[ne]=A,l.provide(ne,A),o.broadcast=(S,D,...k)=>Reflect.apply(A.emit,A,[S,D,...k]);const R=l.inject(be,null);V=at(o,R,{componentName:""}),s.validateSchema=V,o[be]=V,l.provide(be,V),o[Me]=new Map,o.validate=(S=!0)=>{const D=[];let k=null;if(S===!0)k={name:"*"};else if(Array.isArray(S)&&S.length>0){const I=S;k={name:M=>M?I.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const I=S;if(Array.isArray(I.include)&&I.include.length>0){const M=I.include;k={name:y=>y?M.indexOf(y)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const M=I.exclude;k={name:y=>y?M.indexOf(y)===-1:!1}}else k={name:"*"}}if(k){const I=A?.emitToChildren(k,"validate",!1);I&&Reflect.apply([].push,D,I)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(I=>{let M=[];return I.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(M=[...M,...y.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(S,D=!0)=>{if(D){const k=Reflect.ownKeys(S),I=[...k],M={name:y=>{const m=k.includes(y);if(m){const b=I.findIndex(C=>y===C);b!==-1&&I.splice(b,1)}return m}};A?.emitToChildren(M,"setNameValidateRules",S,!1),I.length>0&&I.forEach(y=>{let m=String(y);const C=An(s,m,{componentName:"",fieldName:m,pureDataValidate:!0},A,V);o[Me].set(m,C);const w=S[m];w&&C.validateSchema.setRule(w)})}},o.clearValidate=(S=!0)=>{let D=null;if(S===!0)D={name:"*"};else if(Array.isArray(S)&&S.length>0){const k=S;D={name:I=>I?k.indexOf(I)!==-1:!1}}else if(S!=null&&typeof S=="object"){const k=S;if(Array.isArray(k.include)&&k.include.length>0){const I=k.include;D={name:M=>M?I.indexOf(M)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const I=k.exclude;D={name:M=>M?I.indexOf(M)===-1:!1}}else D={name:"*"}}D&&A?.emitToChildren(D,"clearValidate",!1)},o.resetFields=S=>{const D=c();if(!D)return;const k={};if(Ie(!0,k,g()??{}),Array.isArray(S))S.forEach(I=>{D[I]=k[I]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(M=>{D[M]=k[M]});else if(S&&Array.isArray(S.exclude)){let I=S.exclude??[];Reflect.ownKeys(k).forEach(M=>{I.includes(M)||(D[M]=k[M])})}else Object.assign(D,k);o.clearValidate(S)},o.setModelValue=(S,D)=>{!D||D===u?d(S):A?.emitToChildren({name:D},"setModelValue",S)},o.getModelValue=()=>c()}return l.onUnmounted(()=>{s.destroy(),o[$e]=void 0,o[Me]&&(o[Me].clear(),o[Me]=void 0),A!==null&&(A.destroy(),o[ne]=void 0),V!==null&&(V.destroy(),o[be]=void 0)}),s}function oe(e,t,r){const a=l.getCurrentInstance()?.proxy,o=t??"",i=l.inject(ne,null),u=nt(a,i,o,r);a[ne]=u,l.provide(ne,u),a.broadcast=(V,$,...R)=>Reflect.apply(u.emit,u,[V,$,...R]);const s=l.inject(be,null);e.fieldName=e.fieldName??o;const d=at(a,s,e);a[be]=d,l.provide(be,d),a.validate=(V=null)=>{const $=[];if(!Array.isArray(V)||V.indexOf(o)!==-1){const S=d?.validate();$.push(S)}let R=null;if(V===!0)R={name:"*"};else if(Array.isArray(V)&&V.length>0){const S=V;R={name:D=>D?S.indexOf(D)!==-1:!1}}else if(V!=null&&typeof V=="object"){const S=V;if(Array.isArray(S.include)&&S.include.length>0){const D=S.include;R={name:k=>k?D.indexOf(k)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const D=S.exclude;R={name:k=>k?D.indexOf(k)===-1:!1}}else R={name:"*"}}if(R){const S=u.emitToChildren(R,"validate",!1);Reflect.apply([].push,$,S)}return $.length==1?$[0]:$.length>1?Promise.all($).then(S=>{let D=[];return S.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(D=[...D,...k.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=V=>d?.setRule(V),a.setNameValidateRules=(V,$=!1)=>{const R=V[o];if(R&&d?.setRule(R),$){const S={name:D=>Reflect.ownKeys(V).includes(D)};u.emitToChildren(S,"setNameValidateRules",V,!1)}},a.clearValidate=(V=null)=>{(!Array.isArray(V)||V.indexOf(t??"")!==-1)&&d?.clear();let $=null;if(V===!0)$={name:"*"};else if(Array.isArray(V)&&V.length>0){const R=V;$={name:S=>S?R.indexOf(S)!==-1:!1}}else if(V!=null&&typeof V=="object"){const R=V;if(Array.isArray(R.include)&&R.include.length>0){const S=R.include;$={name:D=>D?S.indexOf(D)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const S=R.exclude;$={name:D=>D?S.indexOf(D)===-1:!1}}else $={name:"*"}}$&&u.emitToChildren($,"clearValidate",!1)};const c=new ma(a);a[Nn]=c;const g=kt((V="validate")=>{V==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:On()).forEach(V=>{c.on(V,$=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Vn()).forEach(V=>{c.on(V,$=>{g("reset")})}),l.onUnmounted(()=>{u.destroy(),a[ne]=void 0,d.destroy(),a[be]=void 0,c.destroy(),a[Nn]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(V,...$)=>{Reflect.apply(c.emit,c,[V,...$])},onEvent:(V,$)=>{Reflect.apply(c.on,c,[$])},offEvent:(V,$)=>{Reflect.apply(c.off,c,[$])}}}function An(e,t,r,n,a){const o={},i=t??"";r.fieldName=i,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[i]:null}};const u=at({},a,r);o.validate=(d=null)=>{const c=[];if(!Array.isArray(d)||d.indexOf(i)!==-1){const x=u?.validate();c.push(x)}let g=null;if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const x=d;g={name:A=>A?x.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const x=d;if(Array.isArray(x.include)&&x.include.length>0){const A=x.include;g={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray(x.exclude)&&x.exclude.length>0){const A=x.exclude;g={name:V=>V?A.indexOf(V)===-1:!1}}else g={name:"*"}}if(g){const x=s.emitToChildren(g,"validate",!1);Reflect.apply([].push,c,x)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(x=>{let A=[];return x.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(A=[...A,...V.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>u?.setRule(d),o.setNameValidateRules=d=>{const c=d[i];c&&u?.setRule(c)};const s=nt(null,n,i,o);return{broadcast:s,validateSchema:u}}const K=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${U(e,t)}px`:"";function U(e,t=-1){if(typeof e=="number")return e>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 a=Number(e.substring(0,r)),o=1;if(Ge){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(o=Number(i.substring(0,u)))}return a*=o,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ee="PageStateKey";function pe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=U(e.top)),e.left!==null&&e.left!==void 0&&(t.left=U(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=U(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=U(e.right))),t}function qt(e,t,r={},n=!0,a=-1,o=-1,i=0,u=0){if(e.headerHeight=U(r.headerHeight??t.headerHeight),e.headerPadding=pe(r.headerPadding??t.headerPadding),e.footerHeight=U(r.footerHeight??t.footerHeight),e.footerPadding=pe(r.footerPadding??t.footerPadding),e.contentPadding=pe(r.contentPadding??t.contentPadding),n){const s=r.height??t.height;s?e.height=U(s,o):e.height=U(o)-U(i,o)-U(u,o),e.width=U(r.width??t.width,a)}}function Rn(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=U(a.top),n.safeAreaBottom=U(a.bottom),n.safeAreaLeft=U(a.left),n.safeAreaRight=U(a.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;qt(n,o,t,!0,i,u,s,d);const c=l.reactive(n),g=e.getForParent(Ee);g&&(n.height=st(e,g),n.width=ut(e,g),l.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{c.height=st(e,g),c.width=ut(e,g)}));const x=!g;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([A,V,$=-1,R=-1,S=0,D=0])=>{qt(c,V,t,x,$,R,S,D)}),e.set(Ee,c),c}function lt(e){return e.get(Ee)}function ot(e,t){return t=t??e.get(Ee),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function it(e,t){return t=t??e.get(Ee),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function st(e,t){if(t=t??e.get(Ee),t){const r=ot(e,t),n=it(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function ut(e,t){return t=t??e.get(Ee),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ba(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function wa(e){return!!e.getForParent(Ee)}var ct=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ct||{});function Bt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,r=1,n){const a=ve();return a==null?e:r===0?l.computed(()=>{const o=a.getAll(t);for(let u=o.length-1;u>=0;u--){const s=o[u];if(Bt(s,n))return s}const i=e.value;return Bt(i,n)?i:null}):l.computed(()=>{const o=e.value;return Bt(o,n)?o:a?.get(t)})}function de(e){return De(e,"readonly",0,function(r){return re(r)})}function he(e){return De(e,"disabled",0,function(r){return re(r)})}function W(e,t="modelValue",r){const n=l.toRef(e,t);let a=n.value;typeof r=="function"&&(a=r(n.value));const o=l.ref(a);return l.watch(n,i=>{if(typeof r=="function"){const u=r(i);u!==o.value&&(o.value=u)}else i!==o.value&&(o.value=i)}),o}const kn=new Map,ft=new Map;let Ft=null;function Sa(e){Ft=e}function jn(e,t,r){if(r){let n=ft.get(r);n||(n=new Map,ft.set(r,n)),n.set(e,t)}else kn.set(e,t)}function Ae(e,t,r){!r&&Ft&&(r=Ft(e)??void 0);let n=null;if(r){let a=ft.get(r);a&&(n=a.get(t))}return n||(n=kn.get(t)),n}function $a(e,t){for(let r in e){const n=e[r];jn(r,n,t)}}function va(e){ft.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function xa(e=0,t=0){if(Ge){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:r,height:n-U(e,n)-U(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ca{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Xe();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=kt(()=>{const u={...r},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,a)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&a.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,o=Ie({},Ea(),t.safeAreaInset),i=xa(n,a),u=Ie({},i.pageLayout,t.pageLayout);r=r??Xe(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",a),r.set("pageLayout",u),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight)}setScopeGetter(t){Sa(t)}setAPI(t,r,n){jn(t,r,n)}getAPI(t,r,n){return Ae(t,r,n)}batchSetAPI(t,r){$a(t,r)}clearScopeAPI(t){va(t)}getRootDomain(){return Xe()}}const Oa=[h.ElAffix,h.ElAlert,h.ElAutocomplete,h.ElAutoResizer,h.ElAvatar,h.ElBacktop,h.ElBadge,h.ElBreadcrumb,h.ElBreadcrumbItem,h.ElButton,h.ElButtonGroup,h.ElCalendar,h.ElCard,h.ElCarousel,h.ElCarouselItem,h.ElCascader,h.ElCascaderPanel,h.ElCheckTag,h.ElCheckbox,h.ElCheckboxButton,h.ElCheckboxGroup,h.ElCol,h.ElCollapse,h.ElCollapseItem,h.ElCollapseTransition,h.ElColorPicker,h.ElConfigProvider,h.ElContainer,h.ElAside,h.ElFooter,h.ElHeader,h.ElMain,h.ElDatePicker,h.ElDescriptions,h.ElDescriptionsItem,h.ElDialog,h.ElDivider,h.ElDrawer,h.ElDropdown,h.ElDropdownItem,h.ElDropdownMenu,h.ElEmpty,h.ElForm,h.ElFormItem,h.ElIcon,h.ElImage,h.ElImageViewer,h.ElInput,h.ElInputNumber,h.ElLink,h.ElMenu,h.ElSubMenu,h.ElMenuItem,h.ElMenuItemGroup,h.ElPageHeader,h.ElPagination,h.ElPopconfirm,h.ElPopover,h.ElPopper,h.ElProgress,h.ElRadio,h.ElRadioButton,h.ElRadioGroup,h.ElRate,h.ElResult,h.ElRow,h.ElScrollbar,h.ElSelect,h.ElOption,h.ElOptionGroup,h.ElSelectV2,h.ElSkeleton,h.ElSkeletonItem,h.ElSlider,h.ElSpace,h.ElSteps,h.ElStep,h.ElSwitch,h.ElTable,h.ElTableColumn,h.ElTableV2,h.ElTabs,h.ElTabPane,h.ElTag,h.ElTimePicker,h.ElTimeSelect,h.ElTimeline,h.ElTimelineItem,h.ElTooltip,h.ElTransfer,h.ElTree,h.ElTreeSelect,h.ElTreeV2,h.ElUpload],Ta=[h.ElInfiniteScroll,h.ElLoading,h.ElMessage,h.ElMessageBox,h.ElNotification,h.ElPopoverDirective],Va=e=>{Oa.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Ta.forEach(t=>{e.use(t)})};function Y(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},l.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,l.defineComponent(r)}}}const ae={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ce={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}},Mn={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"}},Dn={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}},qn=[];for(const e in Dn)qn.push(e);function fe(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ia=Symbol.for("InnerPageScopeKey"),Na=(e,t)=>({inheritAttrs:!0,props:{...ae,...Mn,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(r,n){const a=Dt(r.name,r);if(a){const d=Rn(a,r);fe({getPageContentHeight:()=>st(a,d),getPageContentWidth:()=>ut(a,d),getPageHeaderHeight:()=>ot(a,d),getPageFooterHeight:()=>it(a,d)});const c=l.inject(Ia,!1);d&&c&&(d.contentHeight="100%")}const o=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),s=d=>{const c=u?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return l.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const g=l.toRaw(c),x=l.toRaw(d),A=x?Reflect.ownKeys(x):[];(g?Reflect.ownKeys(g):[]).forEach($=>{A.includes($)||(x[$]=[])}),s(x)},{deep:!0}),l.onMounted(()=>{if(r.rules){const d=l.toRaw(r.rules);s(d)}}),{classes:o,styles:i}}}),{componentName:Aa,create:Ra,scope:qi}=Y("page"),ka=Ra(Na(Aa));function ja(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},Bn=Re(ka,[["render",ja]]),Ma=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const a=ve(),o=a?lt(a):null;o&&(o.headerMounted=!0);const i=l.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?U(r.height):null,s=l.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const b=pe(r.padding??o.footerPadding);return Object.assign(m,b),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(b.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const b=pe(r.padding);Object.assign(m,b)}return m});l.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=l.computed(()=>{const m={};return s.value.height!==null&&s.value.height!==void 0&&(m.height=`${s.value.height}px`),s.value.top!==null&&s.value.top!==void 0&&(m.paddingTop=`${s.value.top}px`),s.value.left!==null&&s.value.left!==void 0&&(m.paddingLeft=`${s.value.left}px`),s.value.right!==null&&s.value.right!==void 0&&(m.paddingRight=`${s.value.right}px`),s.value.bottom!==null&&s.value.bottom!==void 0&&(m.paddingBottom=`${s.value.bottom}px`),m}),c=l.computed(()=>{const m={};return s.value.safeAreaTop!==null&&s.value.safeAreaTop!==void 0&&(m.top=`${s.value.safeAreaTop}px`),m}),g=l.computed(()=>{const m={};return s.value.safeAreaTop!==null&&s.value.safeAreaTop!==void 0&&(m.top=`${s.value.safeAreaTop}px`),m}),x=l.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),A=l.computed(()=>!(s.value.height!==null&&s.value.height!==void 0&&s.value.height<=0)),V=l.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),$=l.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),R=l.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),S=l.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=l.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function k(){n.emit("back")}function I(){n.emit("click-title")}function M(){n.emit("click-right")}function y(){n.emit("click-right-text")}return{classes:i,styles:d,mHeaderShow:A,leftStyles:c,rightStyles:g,mLeftShow:x,mTitleShow:V,mRightShow:$,mLeftIcon:R,mTitleIcon:S,mRightIcon:D,handleLeft:k,handleCenter:I,handleRight:M,handleRightText:y}}}),{componentName:Da,create:qa,scope:Bi}=Y("header-bar"),Ba=qa(Ma(Da)),Fa={key:1,class:"fox-header-bar__title"};function La(e,t,r,n,a,o){const i=l.resolveComponent("fox-ext-icon");return e.mHeaderShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:l.normalizeStyle(e.leftStyles)},[l.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(l.openBlock(),l.createBlock(i,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):l.createCommentVNode("",!0),e.leftText?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},l.toDisplayString(e.leftText),1)):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0),e.mTitleShow?(l.openBlock(),l.createElementBlock("view",Fa,[l.renderSlot(e.$slots,"default",{},()=>[e.title?(l.openBlock(),l.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),e.titleIcon?(l.openBlock(),l.createBlock(i,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),e.mRightShow?(l.openBlock(),l.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:l.normalizeStyle(e.rightStyles)},[l.renderSlot(e.$slots,"right",{},()=>[e.rightText?(l.openBlock(),l.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},l.toDisplayString(e.rightText),1)):l.createCommentVNode("",!0),e.rightIcon?(l.openBlock(),l.createBlock(i,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0)])],6)):l.createCommentVNode("",!0)}const Fn=Re(Ba,[["render",La]]);function Pa(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const a=ve(),o=a?lt(a):null;o&&(o.footerMounted=!0);const i=l.computed(()=>{const c=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[c]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?U(r.height):null,s=l.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const g=pe(r.padding??o.footerPadding);return Object.assign(c,g),u&&(o.footerHeight=u),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(g.bottom??0)),c}if(u&&(c.height=u),r.padding){const g=pe(r.padding);Object.assign(c,g)}return c});l.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=l.computed(()=>{const c={};return s.value.height!==null&&s.value.height!==void 0&&(c.height=K(s.value.height)),s.value.top!==null&&s.value.top!==void 0&&(c.paddingTop=K(s.value.top)),s.value.left!==null&&s.value.left!==void 0&&(c.paddingLeft=K(s.value.left)),s.value.right!==null&&s.value.right!==void 0&&(c.paddingRight=K(s.value.right)),s.value.bottom!==null&&s.value.bottom!==void 0&&(c.paddingBottom=K(s.value.bottom)),c});return{classes:i,styles:d}}}}const{componentName:_a,create:Ha,scope:Fi}=Y("footer-bar"),Ka=Ha(Pa(_a));function za(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Ln=Re(Ka,[["render",za]]);function Ga(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=ve(),a=l.computed(()=>({[e]:!0})),o=l.computed(()=>{const i={};if(n){const u=lt(n);if(u){if(r.padding){const g=pe(r.padding);Object.assign(u.contentPadding,g)}const s=ot(n,u),d=it(n,u);let c="";if(u.contentHeight?c=`${u.contentHeight}`:c=`${u.height}px`,u.contentPadding,i.height=c,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||s>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;i.paddingTop=`${s+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||d>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;i.paddingBottom=`${d+g}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=pe(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:a,styles:o}}}}const{componentName:Ya,create:Wa,scope:Li}=Y("content"),Ua=Wa(Ga(Ya));function Xa(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Pn=Re(Ua,[["render",Xa]]),qe="GroupStateKey",_n=Symbol.for("GroupScopeKey");function dt(){return l.inject(_n,!1)}function ht(e=!0){l.provide(_n,e)}function Za(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const a=l.shallowRef(n),o=l.markRaw({layout:a,passport:0,order:{index:0}});return e.set(qe,o),o}function Hn(e,t,r=-1,n=-1,a=!1,o=-1){const i=e.get(qe);if(!i)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1);const s=()=>{const d=t===""||t===-1,c=U(t);let g=Z(r);const x=U(n);if(!d){let $=(c-(g-1)*x)/g;for(;o!==-1&&g>1&&$<o;)g--,$=(c-(g-1)*x)/g}let A=!1;const V=i.layout;V.value.width=t,V.value.column!==g&&(V.value.column=g,A=!0),V.value.gutter!==x&&(V.value.gutter=x,A=!0),A&&l.triggerRef(V)};if(a)s();else{const d=++i.passport;setTimeout(()=>{d===i.passport&&s()},50)}}function Ze(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.layout}function Lt(e,t=!1){let r;return t?r=e.getForParent(qe):r=e.get(qe),r.order}function ge(e,t=1){return t==="stretch"?-1:(t=Z(t),t===-1?100:100*t/e)}function Ja(e){return e===window}const gt=e=>{const t=l.unref(e);if(Ja(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},xe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Qa=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},el=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=Z(e.props.offset);return t<0?0:t},tl=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"},nl=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=Z(e.props.foxSubItemCount);return t<0?1:t};function rl(e,t){return{props:{...ae,...Mn,...Dn},setup(r,n){const a=Dt(r.name,r,qn),o=Za(a,{type:r.type}),i=dt();ht(!0);const u=l.computed(()=>i&&a?Ze(a,!0).value:null),s=l.getCurrentInstance(),d=y=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(y,!0)};l.watch(()=>r.rules,(y,m)=>{if(!y&&!m)return;const b=l.toRaw(m),C=l.toRaw(y),w=C?Reflect.ownKeys(C):[];(b?Reflect.ownKeys(b):[]).forEach(q=>{w.includes(q)||(C[q]=[])}),d(C)},{deep:!0}),l.onMounted(()=>{if(r.rules){const y=l.toRaw(r.rules);d(y)}});const c=e,g=l.computed(()=>{const y={};if(u.value){const m=Ze(a,!0);if(m.value.type==="flex"){if(r.width){const w=K(r.width);y.width=w}else{const w=ge(m.value.column,r.span);w>0&&(y.width=`${w}%`)}if(r.height){const w=K(r.height);y.height=w}const b=ge(m.value.column,r.offset);b>0&&(y["margin-left"]=`${b}%`);const C=m.value.gutter/2;C>0&&(y["padding-left"]=`${C}px`,y["padding-right"]=`${C}px`)}else if(m.value.type==="flow"){if(r.width){const w=K(r.width);y.width=w}else{const w=ge(m.value.column,r.span);w>0&&(y.width=`${w}%`)}if(r.height){const w=K(r.height);y.height=w}const b=ge(m.value.column,r.offset);b>0&&(y["margin-left"]=`${b}%`);const C=m.value.gutter/2;if(C>0){const w=a?Lt(a,!0):null;if(w){let v=Z(r.offset)+Z(r.span);(v===-1||v>m.value.column)&&(v=m.value.column);const q=Math.ceil((w.index+1)/m.value.column),E=Math.ceil((w.index+v)/m.value.column);if(q===E){const j=(w.index+1)%m.value.column,p=(w.index+v)%m.value.column,N=j===1?0:C,O=p===0?0:C;y["padding-left"]=`${N}px`,y["padding-right"]=`${O}px`}else{const j=v%m.value.column,p=0,N=j===0?0:C;y["padding-left"]=`${p}px`,y["padding-right"]=`${N}px`}w.index+=v}else y["padding-left"]=`${C}px`,y["padding-right"]=`${C}px`}}}else{if(r.width){const m=K(r.width);y.width=m}if(r.height){const m=K(r.height);y.height=m}}return y}),x=l.computed(()=>r.type==="flex"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0,[`${xe("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:r.type==="flow"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0}:{[`${xe("",r.type)}`]:!0,[`${c}__gutter`]:!0}),A=l.toRef(r,"title"),V=l.toRef(r,"gutter"),$=l.toRef(r,"column"),R=l.computed(()=>i?!0:re(r.isWrap)),S=l.ref([]),D=y=>{S.value.push(y)},k=l.ref(-1);if(Hn(a,k.value,$.value,V.value,!0,r.minItemWidth),r.autoLayout){l.watch([k,$,V],([m,b,C])=>{o.order.index=0,Hn(a,m,b,C,!1,r.minItemWidth)});let y=null;l.onMounted(()=>{if(Ge&&S.value&&S.value.length>0){const m=S.value[0];k.value=gt(m).width,window.ResizeObserver&&(y=new window.ResizeObserver(()=>{const b=gt(m).width;b>0&&b!==k.value&&(k.value=b)}),y.observe(m))}}),l.onUnmounted(()=>{y?.disconnect()})}const I=(y,m,b,C)=>{const w={...x.value};return m===0&&(w[`${c}__first`]=!0),b>=C-1&&(w[`${c}__last`]=!0),l.h("div",{ref:D,key:`${m}`,class:w},y)},M=y=>{const m=String(y.type);if(m==="Symbol(Comment)")return null;if(m==="Symbol(Fragment)"){if(Array.isArray(y.children)){const b=[...y.children];for(let C=b.length-1;C>=0;C--){const w=b[C],v=M(w);v===null?b.splice(C,1):v.length>0&&Reflect.apply([].splice,b,[C,1,...v])}return b}return null}return[]};return()=>{o.order.index=0;const y=[];let m=0;if(n.slots.title){const v={key:`${m++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},q=l.h("div",v,[n.slots.title()]);y.push(q)}else if(A.value){const v={key:`${m++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},q=[];if(r.showMark){const p={class:{[`${c}__title-mark`]:!0}};r.markColor&&(p.style={background:r.markColor});const N=l.h("div",p);q.push(N)}const E=l.h("div",{class:{[`${c}__title-text`]:!0}},[A.value]);q.push(E);const j=l.h("div",v,q);y.push(j)}const b=n.slots.default?n.slots.default():[];let C=[],w=0;if(r.type==="flex"){for(let v=0;v<b.length;v++){const q=M(b[v]);if(q===null)continue;q.length>0&&Reflect.apply([].splice,b,[v,1,...q]);const E=b[v];if(tl(E)==="fragment"){let T=nl(E);T>o.layout.value.column?T=o.layout.value.column:T<=0&&(T=1);const F=w+T;if(F>o.layout.value.column){const L=I([...C],m++,v-1,b.length);y.push(L),w=T,C=[E]}else C.push(E),w=F;continue}const p=Qa(E),N=el(E);if(p==="stretch"){if(w<o.layout.value.column){C.push(E);const T=I([...C],m++,v,b.length);y.push(T)}else{const T=I([...C],m++,v-1,b.length);y.push(T);const F=I([E],m++,v,b.length);y.push(F)}w=0,C=[];continue}let O=Z(p);if(O===-1){if(C.length>0){const F=I([...C],m++,v-1,b.length);y.push(F)}const T=I([E],m++,v,b.length);y.push(T),w=0,C=[];continue}O>o.layout.value.column?O=o.layout.value.column:O<=0&&(O=1);const B=w+O+N;if(B>o.layout.value.column){const T=I([...C],m++,v-1,b.length);y.push(T),w=O+N,C=[E]}else C.push(E),w=B}if(C.length>0){const v=I([...C],m++,b.length,b.length);y.push(v)}}else if(r.type==="flow"){const v=I(b,m++,0,b.length);y.push(v)}else for(let v=0;v<b.length;v++){const q=b[v],E=I([q],m++,v,b.length);y.push(E)}return R.value?l.h("div",{class:{[`${c}`]:!0},style:g.value},[y]):y}}}}const{componentName:al,create:ll,scope:Pi}=Y("group"),Kn=ll(rl(al)),zn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ol,create:il}=Y("price"),sl=il({props:{...zn},setup(e){const t=l.computed(()=>({[ol]:!0})),r=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Ye(e.price)==0?"":Tt(e.price,e.decimalLength,!0,Z(e.digits),e.separator)),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),o=l.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:r,intText:a,decimalText:o}}}),ul=["innerHTML"],cl=["innerHTML"];function fl(e,t,r,n,a,o){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,ul)):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,cl)):l.createCommentVNode("",!0)],2)}const mt=Re(sl,[["render",fl]]),{componentName:Pt,create:dl}=Y("hint-text"),hl=dl({components:{[mt.name]:mt},props:{...zn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=l.computed(()=>({[Pt]:!0})),o=l.computed(()=>({left:K(e.startPoint.x),top:K(e.startPoint.y-e.height-10-4),height:K(e.height),width:K(e.width)})),i=l.computed(()=>({[`${Pt}__content`]:!0})),u=l.computed(()=>({})),s=l.computed(()=>({[`${Pt}__arrow`]:!0})),d=l.computed(()=>({top:K(e.height)}));return{classes:a,styles:o,textClasses:i,textStyles:u,arrowClasses:s,arrowStyles:d}}}),gl={key:1,class:"text"};function ml(e,t,r,n,a,o){const i=l.resolveComponent("fox-price");return l.openBlock(),l.createBlock(l.Transition,{name:"hint-text-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{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"},null,8,["price"])):(l.openBlock(),l.createElementBlock("span",gl,l.toDisplayString(e.message),1))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.visible]])]),_:1})}const yt=Re(hl,[["render",ml]]);class Gn{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 yl(e){return e===window}const Yn=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(yl(t))return{x:0,y:0};let r=0,n=0,a=t;for(;a!==null;)r+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let o=0,i=0;for(a=t;a!==document;)i+=a.scrollTop,o+=a.scrollLeft,a=a.parentNode;return r-=o,n-=i,{x:r,y:n}},_t={},pl=new Gn,Be=new Map,Ht=e=>{if(e){const t=document.getElementById(e);Be.delete(e),t&&document.body.removeChild(t)}else{for(const t of Be.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Be.clear()}},bl=e=>{const t=document.getElementById(e.id);if(t){const r=Be.get(e.id);r?e={..._t,...r,...e}:e={..._t,...e};const n=l.createVNode(yt,e);return l.render(n,t),e.id}},wl=e=>{e.unmount=Ht;let t;if(e.id){if(t=e.id,Be.has(t))return bl(e)}else t=`hinttext_${pl.get()}`;e={..._t,...e},e.id=t,Be.set(t,e);const r=document.createElement("div");r.id=e.id;const n=l.createVNode(yt,e);return l.render(n,r),document.body.appendChild(r),t},Sl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},pt={show(e,t,r={},n=!0){n&&Ht(),Sl(t);const a=Yn(e),o={x:a.x,y:a.y},i=r.width??gt(e).width;return wl({...r,message:t,startPoint:o,width:i})},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=pt}},{componentName:Wn,create:$l}=Y("item"),vl=$l({inheritAttrs:!0,props:{...ae,...ce},setup(e,t){oe({componentName:Wn,validate:!1},e.prop??t.attrs.name);const r=ve(),n=dt();ht(!1);const a=l.computed(()=>n&&r?Ze(r,!1).value:null),o=Wn,i=l.computed(()=>({[o]:!0,[`${o}__gutter`]:a.value&&a.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!C.value,"is-warn":!!m.value,"is-info":!!M.value})),u=l.computed(()=>{const T={};if(a.value)if(a.value.type==="flex"){if(e.width)T.width=K(e.width);else{const P=ge(a.value.column,e.span);P>0&&(T.width=`${P}%`)}const F=ge(a.value.column,e.offset);F>0&&(T["margin-left"]=`${F}%`);const L=a.value.gutter/2;L>0&&(T["padding-left"]=`${L}px`,T["padding-right"]=`${L}px`)}else if(a.value.type==="flow"){if(e.width)T.width=K(e.width);else{const P=ge(a.value.column,e.span);P>0&&(T.width=`${P}%`)}const F=ge(a.value.column,e.offset);F>0&&(T["margin-left"]=`${F}%`);const L=a.value.gutter/2;if(L>0){const P=r?Lt(r,!1):null;if(P){let _=Z(e.offset)+Z(e.span);(_===-1||_>a.value.column)&&(_=a.value.column);const G=Math.ceil((P.index+1)/a.value.column),z=Math.ceil((P.index+_)/a.value.column);if(G===z){const se=(P.index+1)%a.value.column,te=(P.index+_)%a.value.column,J=se===1?0:L,X=te===0?0:L;T["padding-left"]=`${J}px`,T["padding-right"]=`${X}px`}else{const se=_%a.value.column,te=0,J=se===0?0:L;T["padding-left"]=`${te}px`,T["padding-right"]=`${J}px`}P.index+=_}else T["padding-left"]=`${L}px`,T["padding-right"]=`${L}px`}}else return e.width&&(T.width=K(e.width)),T;else e.width&&(T.width=K(e.width));return T}),s=l.ref(null),d=l.computed({get:()=>s.value??re(e.isRequired),set:T=>{s.value=T}}),c=l.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=De(l.toRef(e,"labelPosition"),"labelPosition",ct.Near),x=l.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),A=l.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${x.value}`]:!0})),V=l.computed(()=>({label:!0,[`label--${x.value}`]:!0})),$=De(l.toRef(e,"labelWidth"),"labelWidth",ct.Near),R=l.computed(()=>$&&$.value?{width:K($.value)}:{}),S=l.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),D=l.computed(()=>({content:!0,[e.contentClass]:!0})),k=l.computed(()=>({...e.contentStyle})),I=l.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(T){d.value=T},setErrorTip(T){I.errorTip=T},setErrorIcon(T){I.errorIcon=T},setWarnTip(T){I.warnTip=T},setWarnIcon(T){I.warnIcon=T},setInfoTip(T){I.infoTip=T},setInfoIcon(T){I.infoIcon=T}});const M=l.computed(()=>e.infoTip||I.infoTip),y=l.computed(()=>e.infoIcon||I.infoIcon),m=l.computed(()=>e.warnTip||I.warnTip),b=l.computed(()=>e.warnIcon||I.warnIcon),C=l.computed(()=>e.errorTip||I.errorTip),w=l.computed(()=>e.errorIcon||I.errorIcon),v=l.computed(()=>C.value?"error":m.value?"warn":M.value?"info":""),q=l.computed(()=>v.value.length>0),E=l.computed(()=>v.value==="error"?C.value:v.value==="warn"?m.value:v.value==="info"?M.value:""),j=l.computed(()=>v.value==="error"?w.value:v.value==="warn"?b.value:v.value==="info"?y.value:null),p=l.computed(()=>{let T={[`${o}__tip`]:!0,[`${o}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?T[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?T[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(T[`${e.infoClass}`]=!0),T}),N=l.computed(()=>{let T={};return g&&g.value==="top"?T["padding-left"]="0px":$&&$.value&&(T["padding-left"]=K($.value)),T}),O=l.ref();let B="";return l.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([T,F,L,P])=>{O.value&&(T&&!ee(F)?B?pt.show(O.value,F,{...P,id:B,type:L}):B=pt.show(O.value,F,{...P,type:L}):pt.hide(B))}),{classes:i,styles:u,mainClasses:A,hasLabel:c,labelClasses:V,labelStyles:R,labelStringClasses:S,contentClasses:D,contentStyles:k,contentRef:O,hasTip:q,mTip:E,mIcon:j,tipClasses:p,tipStyles:N}}}),El={key:0,class:"fox-item__tip-icon"},xl={class:"fox-item__tip-text"};function Cl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.mainClasses)},[e.hasLabel?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.labelClasses),style:l.normalizeStyle(e.labelStyles)},[l.createElementVNode("div",{class:l.normalizeClass(e.labelStringClasses)},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(e.label),1)])],2)],6)):l.createCommentVNode("",!0),l.createElementVNode("div",{ref:"contentRef",class:l.normalizeClass(e.contentClasses),style:l.normalizeStyle(e.contentStyles)},[l.renderSlot(e.$slots,"prepend"),l.renderSlot(e.$slots,"default"),l.renderSlot(e.$slots,"append")],6)],2),l.createVNode(l.Transition,{name:"fox-item__animate"},{default:l.withCtx(()=>[e.hasTip?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.tipClasses),style:l.normalizeStyle(e.tipStyles)},[e.mIcon?(l.openBlock(),l.createElementBlock("div",El,l.toDisplayString(e.mIcon),1)):l.createCommentVNode("",!0),l.createElementVNode("div",xl,l.toDisplayString(e.mTip),1)],6)):l.createCommentVNode("",!0)]),_:1}),l.renderSlot(e.$slots,"hide")],6)}const ie=Re(vl,[["render",Cl]]);function Ol(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const a=ve(),o=dt();ht(!1);const i=l.computed(()=>o&&a?Ze(a,!1).value:null),u=e,s=l.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),d=l.computed(()=>{const c={};if(i.value)if(i.value.type==="flex"){if(r.width)c.width=K(r.width);else{const A=ge(i.value.column,r.span);A>0&&(c.width=`${A}%`)}const g=ge(i.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const x=i.value.gutter/2;x>0&&(c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`)}else if(i.value.type==="flow"){if(r.width)c.width=K(r.width);else{const A=ge(i.value.column,r.span);A>0&&(c.width=`${A}%`)}const g=ge(i.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const x=i.value.gutter/2;if(x>0){const A=a?Lt(a,!1):null;if(A){let V=Z(r.offset)+Z(r.span);(V===-1||V>i.value.column)&&(V=i.value.column);const $=Math.ceil((A.index+1)/i.value.column),R=Math.ceil((A.index+V)/i.value.column);if($===R){const S=(A.index+1)%i.value.column,D=(A.index+V)%i.value.column,k=S===1?0:x,I=D===0?0:x;c["padding-left"]=`${k}px`,c["padding-right"]=`${I}px`}else{const S=V%i.value.column,D=0,k=S===0?0:x;c["padding-left"]=`${D}px`,c["padding-right"]=`${k}px`}A.index+=V}else c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`}}else return r.width&&(c.width=K(r.width)),c;else r.width&&(c.width=K(r.width));return c});return()=>{const c={class:s.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:Tl,create:Vl,scope:_i}=Y("slot-item"),Un=Vl(Ol(Tl));function Il(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,n){const a=e,o=l.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),i=ve(),u=dt();ht(!1);const s=l.computed(()=>{const c={};if(u&&i){const g=Ze(i,!1);if(g.value.type!=="flex")return r.width&&(c.width=K(r.width)),c;if(r.width)c.width=K(r.width);else{const V=ge(g.value.column,r.span);V>0&&(c.width=`${V}%`)}const x=ge(g.value.column,r.offset);x>0&&(c["margin-left"]=`${x}%`);const A=g.value.gutter/2;A>0&&(c["padding-left"]=`${A}px`,c["padding-right"]=`${A}px`)}else r.width&&(c.width=K(r.width));return c}),d=l.computed(()=>({[`${a}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const V=n.slots.default();if(r.divide)for(let $=0;$<V.length;$++){if($>0){const R=l.h("div",{class:{[`${a}__divide`]:!0}});c.push(R)}c.push(V[$])}else Reflect.apply([].push,c,V)}const g={class:d.value},x=l.h("div",g,c),A={class:o.value,style:s.value};return l.h("div",A,[x])}}}}const{componentName:Nl,create:Al,scope:Hi}=Y("row-item"),Xn=Al(Il(Nl)),Zn={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 Rl(e,t,r){return{props:{...ae,...ce,...Zn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=m=>{g.value=m,o("update:modelValue",m),o("input",m)},$=m=>{o("change",m)};let R=W(n,"hintText"),S=l.ref(!1);const D=m=>{let C=m.target.value;s.value=!0,ee(R.value)||(S.value=!0),o("focus",C,m)},k=m=>{setTimeout(()=>{S.value&&(S.value=!1),s.value=!1},0);let C=m.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),o("blur",C,m)},I=()=>{o("clear","")},M=l.computed(()=>Ye(n.unit)>0),y=l.ref();return fe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},select:()=>{y?.value.select()}}),()=>{const b={...a.attrs,ref:y,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:$,onInput:V,onFocus:D,onBlur:k},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:M.value&&(C.suffix=()=>[n.unit]);const w=[],v=l.h(h.ElInput,b,C);w.push(v);const q={default:()=>w};if(a.slots.default){const N=a.slots.default();q.label=()=>N}const j={...ue(n,Zn),hintText:R.value,hintVisible:S.value,prop:`${n.prop}_item`};return l.h(r,j,q)}}}}const{componentName:kl,create:jl,scope:Ml}=Y("input-item"),Jn=jl(Rl(kl,Ml,ie));function ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Fe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Qn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Dl=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function ql(){const e=l.getCurrentInstance();return new Dl(e.proxy)}function er(e,t,r){const n=ke(e,t),a=ke(e,r);if(n!==a)return!1;const o=Fe(e,t),i=Fe(e,r);return o===i}function tr(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let i of n){const u=Qn(e,i);if(Array.isArray(u)&&u.length>0){const s=tr(e,o,r,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(r==="text")s=ke(e,i)===o;else if(r==="item")s=er(e,i,o);else{let d=Fe(e,i);d==null&&(d=ke(e,i)),s=d===o}if(s){a.push(i);break}}}}),a}function Bl(e){return{text:e,value:e}}const nr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Fl(e,t,r){return{props:{...ae,...ce,...nr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(null),d=l.ref([]),c=(p,N,O,B=!0)=>{const T=tr(n,p,N,O);if(T===null){if(d.value===null||d.value.length===0)return;s.value=null,d.value=[],B&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(T.length!==d.value.length)F=!1;else for(let L=0;L<T.length;L++){const P=T[L],_=d.value[L];if(!er(n,P,_)){F=!1;break}}if(!F){d.value=T;let L=[],P=[];T.forEach(G=>{L.push(Fe(n,G)),n.valueType==="text"?P.push(ke(n,G)):n.valueType==="item"?P.push(G):P.push(Fe(n,G))});let _;n.multiple?(s.value=L,_=l.toRaw(P)):(s.value=L[0]??"",_=l.toRaw(P[0]??"")),B&&(o("update:modelValue",_),o("change",_))}},g=l.ref([]),x=ql();l.watch([()=>n.source,()=>n.params],async([p,N])=>{if(p){const O=await x.load("select",p,N);if(O.length>0)if(typeof O[0]=="string"){let F=O.map(L=>Bl(L));g.value=F}else g.value=O}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([p,N])=>{c(N,n.valueType,p,!1)});let A=null,V=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async p=>{if(p!=null){V.value=!0;try{const N=await n.remoteMethod(p);g.value=N}catch(N){console.error(N)}V.value=!1}});const $=l.ref(!1),R=he(l.computed(()=>n.disabled)),S=de(l.computed(()=>n.readonly)),D=e,k=l.computed(()=>({[D]:!0})),I=p=>{n.allowCreate?(o("update:modelValue",p),o("change",p),s.value=p):c(p,"value",g.value,!0)};let M=W(n,"hintText"),y=l.ref(!1);const m=p=>{let O=p.target.value;$.value=!0,ee(M.value)||(y.value=!0),o("focus",O,p)},b=p=>{setTimeout(()=>{y.value&&(y.value=!1),$.value=!1},0);let O=p.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),w.value?setTimeout(()=>{o("blur",O,p)},50):o("blur",O,p)},C=()=>{o("clear","")},w=l.ref(!1),v=p=>{w.value=p,o("visible-change",p)},q=p=>{o("remove-tag",p)},E=(p,N)=>{const O=[];return p.forEach((B,T)=>{const F=Qn(n,B);if(Array.isArray(F)&&F.length>0){const L=E(F,N),P=ke(n,B),G={key:`${P}_${T}`,label:P};O.push(l.h(h.ElOptionGroup,G,{default:()=>L}))}else{const L=Fe(n,B),P=ke(n,B),_=re(B.disabled),z={key:`${L}_${T}`,label:P,disabled:_,value:L};if(typeof N=="function")O.push(l.h(h.ElOption,z,{default:()=>N(B)}));else if(n.optionType==="item"){const se={class:{"fox-select-item__option-left":!0}},te=l.h("span",se,[L]),J={class:{"fox-select-item__option-right":!0}},X=l.h("span",J,[P]),me=l.h("div",{class:{"fox-select-item__option":!0}},[te,X]);O.push(l.h(h.ElOption,z,{default:()=>me}))}else n.optionType==="value"?O.push(l.h(h.ElOption,z,{default:()=>[L]})):O.push(l.h(h.ElOption,z))}}),O},j=l.ref();return fe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const N={...a.attrs,ref:j,class:k.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:R.value||S.value,modelValue:s.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:C,onChange:I,onFocus:m,onBlur:b,onVisibleChange:v,onRemoveTag:q};typeof A=="function"&&(N["remote-method"]=A,N.loading=V.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),O.default=()=>E(g.value,a.slots.option);const B=[],T=l.h(h.ElSelect,N,O);B.push(T);const F={default:()=>B};if(a.slots.default){const G=a.slots.default();F.label=()=>G}const P={...ue(n,nr),hintText:M.value,hintVisible:y.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,P,F)}}}}const{componentName:Ll,create:Pl,scope:_l}=Y("select-item"),rr=Pl(Fl(Ll,_l,ie)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hl(e,t,r){return{props:{...ae,...ce,...ar},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=b=>{g.value=b,o("update:modelValue",b),o("change",b)};let $=W(n,"hintText"),R=l.ref(!1);const S=b=>{let w=b.target.value;s.value=!0,ee($.value)||(R.value=!0),o("focus",w,b)},D=b=>{setTimeout(()=>{R.value&&(R.value=!1),s.value=!1},0);let w=b.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,b)},k=()=>{o("clear","")},I=b=>{o("calendar-change",b)},M=(b,C,w)=>{o("panel-change",b,C,w)},y=b=>{o("visible-change",b)},m=l.ref();return fe({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const C={...a.attrs,ref:m,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:V,onClear:k,onFocus:S,onBlur:D,onCalendarChange:I,onPanelChange:M,onVisibleChange:y},w={};a.slots["range-separator"]&&(w["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(w.default=a.slots.cell);const v=[],q=l.h(h.ElDatePicker,C,w);v.push(q);const E={default:()=>v};if(a.slots.default){const O=a.slots.default();E.label=()=>O}const p={...ue(n,ar),hintText:$.value,hintVisible:R.value,prop:`${n.prop}_item`};return l.h(r,p,E)}}}}const{componentName:Kl,create:zl,scope:Gl}=Y("date-item"),lr=zl(Hl(Kl,Gl,ie)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Yl(e,t,r){return{props:{...ae,...ce,...or},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=y=>{g.value=y,o("update:modelValue",y),o("change",y)};let $=W(n,"hintText"),R=l.ref(!1);const S=y=>{let b=y.target.value;s.value=!0,ee($.value)||(R.value=!0),o("focus",b,y)},D=y=>{setTimeout(()=>{R.value&&(R.value=!1),s.value=!1},0);let b=y.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),o("blur",b,y)},k=()=>{o("clear","")},I=y=>{o("visible-change",y)},M=l.ref();return fe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const m={...a.attrs,ref:M,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:V,onClear:k,onFocus:S,onBlur:D,onVisibleChange:I},b={},C=[],w=l.h(h.ElTimePicker,m,b);C.push(w);const v={default:()=>C};if(a.slots.default){const p=a.slots.default();v.label=()=>p}const E={...ue(n,or),hintText:$.value,hintVisible:R.value,prop:`${n.prop}_item`};return l.h(r,E,v)}}}}const{componentName:Wl,create:Ul,scope:Xl}=Y("time-item"),ir=Ul(Yl(Wl,Xl,ie)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zl(e,t,r){return{props:{...ae,...ce,...sr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=M=>{g.value=M,o("update:modelValue",M),o("change",M)};let $=W(n,"hintText"),R=l.ref(!1);const S=M=>{let m=M.target.value;s.value=!0,ee($.value)||(R.value=!0),o("focus",m,M)},D=M=>{setTimeout(()=>{R.value&&(R.value=!1),s.value=!1},0);let m=M.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,M)},k=()=>{o("clear","")},I=l.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const y={...a.attrs,ref:I,class:A.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:V,onClear:k,onFocus:S,onBlur:D},m={},b=[],C=l.h(h.ElTimeSelect,y,m);b.push(C);const w={default:()=>b};if(a.slots.default){const j=a.slots.default();w.label=()=>j}const q={...ue(n,sr),hintText:$.value,hintVisible:R.value,prop:`${n.prop}_item`};return l.h(r,q,w)}}}}const{componentName:Jl,create:Ql,scope:eo}=Y("time-select-item"),ur=Ql(Zl(Jl,eo,ie));function cr(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){a=o;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function fr(e,t,r=20){if(typeof t=="string"&&(t=Z(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=fn(`${e}`,`${t}`);return cr(n)}else{let n=Ct(`${e}`,dn(`${t}`),20);return cr(n)}}function to(e,t=-1,r=!1,n=3,a=","){return Tt(e,t,r,n,a)}function dr(e,t,r,n,a=!0){if(e=="")return"";if(e=hn(e),t=Z(t),t==1)return e;if(n)e=fr(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(Z(r)+2,"0"):e=Ct(e,1,Z(r)));else{let o=-1*t;e=fr(e,o)}return e}function hr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=Ot(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),a=Ot(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(r.maxValid=!1)}return r}const gr={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 no(e,t,r){return{props:{...ae,...ce,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref(!1),u=he(l.computed(()=>n.disabled)),s=de(l.computed(()=>n.readonly)),d=W(n,"modelValue"),c=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([E,j,p])=>{if(ee(E))return"";const N=dr(E,j,p,!1);c.value!==N&&(c.value=N)},{immediate:!0});const g=l.computed(()=>{let E="";return i.value&&(E=c.value),E}),{t:x}=ye.useFoxI18n(t),A=l.computed(()=>{let E=n.placeholder??"";return!i.value&&!ee(c.value)?E=to(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):E=x(["placeholder",E]),E}),V=e,$=l.computed(()=>({[V]:!0,[`${V}__disabled`]:u.value,[`${V}__placeholder`]:c.value.length>0})),R=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>i.value?{textAlign:"left"}:{textAlign:R.value??"right"});const S=l.ref(""),D=l.computed(()=>{let E=S.value;return ee(E)&&(E=n.errorTip??""),E}),k=l.ref(""),I=l.ref(!1),M=(E,j)=>{if(E=`${E}`,ee(E)){c.value="",d.value="",j.forEach(p=>{o(p,"")}),re(n.showTip)&&I.value&&(I.value=!1);return}if(E.length>=2){let p=E;if(p.charAt(0)=="-"&&(p=p.substring(1)),p.length>=2&&p.charAt(0)=="0"&&p.charAt(1)!="."){l.triggerRef(c);return}}if(E!="-"){if(!Sn(E)){l.triggerRef(c);return}if(n.integerLength!=-1&&$n(E)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&vn(E)>Number(n.decimalLength)){l.triggerRef(c);return}let p=hr(E,n);if(p.maxValid===!1){S.value=p.message,l.triggerRef(c);return}}else if(n.min!=null&&Z(n.min)>=0){l.triggerRef(c);return}k.value=E,re(n.showTip)&&(I.value=E.length>0),c.value=E,d.value=dr(E,n.rates,n.precision,!0),j.forEach(p=>{o(p,d.value)})},y=E=>{M(E,["update:modelValue","input"])},m=E=>{M(E,["update:modelValue","change"])},b=E=>{if(i.value=!0,re(n.showTip)){let j=c.value;ee(j)&&(j=n.hintText),ee(j)||(k.value=j,I.value=!0)}S.value="",o("focus",d.value,E)},C=E=>{if(setTimeout(()=>{i.value=!1,re(n.showTip)&&I.value===!0&&(I.value=!1)},0),!ee(c.value)){let j=hr(c.value,n);if(j.minValid===!1||j.maxValid){S.value=j.message;return}}o("update:modelValue",d.value,E),o("blur",d.value,E)},w=()=>{o("clear","")},v=l.computed(()=>Ye(n.unit)>0),q=l.ref();return fe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const j={...a.attrs,ref:q,class:$.value,type:"digit",maxlength:n.maxLength,placeholder:A.value,clearable:n.clearable,disabled:u.value,readonly:s.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:w,onInput:y,onChange:m,onFocus:b,onBlur:C},p={};a.slots.prepend&&(p.prepend=a.slots.prepend),a.slots.append&&(p.append=a.slots.append),a.slots.prefix&&(p.prefix=a.slots.prefix),a.slots.suffix?p.suffix=a.slots.suffix:v.value&&(p.suffix=()=>[n.unit]);const N=[],O=l.h(h.ElInput,j,p);N.push(O);const B={default:()=>N};if(a.slots.default){const P=a.slots.default();B.label=()=>P}const F={...ue(n,gr),errorTip:D.value,hintText:k.value,hintVisible:I.value,hintType:"number",prop:`${n.prop}_item`};return l.h(r,F,B)}}}}const{componentName:ro,create:ao,scope:lo}=Y("money-item"),mr=ao(no(ro,lo,ie)),yr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function oo(e,t,r){return{props:{...ae,...ce,...yr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0,[`${x}__append`]:y.value})),V=l.computed(()=>({[`${x}__unit`]:!0})),$=b=>{g.value=b,o("update:modelValue",b),o("input",b)},R=b=>{o("change",b)};let S=W(n,"hintText"),D=l.ref(!1);const k=b=>{let w=b.target.value;s.value=!0,ee(S.value)||(D.value=!0),o("focus",w,b)},I=b=>{setTimeout(()=>{D.value&&(D.value=!1),s.value=!1},0);let w=b.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,b)},M=()=>{o("clear","")},y=l.computed(()=>Ye(n.unit)>0),m=l.ref();return fe({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const C={...a.attrs,ref:m,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:M,onChange:R,onInput:$,onFocus:k,onBlur:I},w={},v=[],q=l.h(h.ElInputNumber,C,w);v.push(q);const E={default:()=>v};if(a.slots.default){const O=a.slots.default();E.label=()=>O}const p={...ue(n,yr),hintText:S.value,hintVisible:D.value,prop:`${n.prop}_item`};if(a.slots.append)E.append=a.slots.append;else if(y.value){const O={class:V.value},B=l.h("div",O,[n.unit]);E.append=()=>B}return l.h(r,p,E)}}}}const{componentName:io,create:so,scope:uo}=Y("input-number-item"),pr=so(oo(io,uo,ie));function Le(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function co(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let fo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function ho(){const e=l.getCurrentInstance();return new fo(e.proxy)}function Kt(e,t,r){const n=Le(e,t),a=Le(e,r);if(n!==a)return!1;const o=je(e,t),i=je(e,r);return o===i}function br(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let o=n;for(let i=0;Array.isArray(o)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=br(e,u,r,n);a.push(s)}else{let s=!1;for(let d of o){if(r==="text")s=Le(e,d)===u;else if(r==="item")s=Kt(e,d,u);else{let c=je(e,d);c==null&&(c=Le(e,d)),s=c===u}if(s){a.push(d),o=co(e,d);break}}if(!s)break}}return a}function go(e){return{text:e,value:e}}const wr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1}};function mo(e,t,r){return{props:{...ae,...ce,...wr},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(null),d=l.ref([]),c=(N,O,B,T=!0)=>{if(n.props&&n.props.lazy===!0){if(s.value===N)return;s.value=N;const P=l.toRaw(N);T&&(o("update:modelValue",P),o("change",P))}const F=br(n,N,O,B);if(F===null){if(d.value.length===0||d.value===null)return;d.value=[],s.value=null,T&&(o("update:modelValue",null),o("change",null));return}let L=!0;if(F.length!==d.value.length)L=!1;else for(let P=0;P<F.length;P++){const _=F[P],G=d.value[P];if(Array.isArray(_)){if(!Array.isArray(G)||_.length!==G.length)L=!1;else for(let z=0;z<_.length;z++)if(!Kt(n,_[z],G[z])){L=!1;break}}else Kt(n,_,G)||(L=!1);if(!L)break}if(!L){d.value=F;let P=[],_=[];F.forEach(z=>{if(Array.isArray(z)){let se=[],te=[];for(let J of z)se.push(je(n,J)),n.valueType==="text"?te.push(Le(n,J)):n.valueType==="item"?te.push(J):te.push(je(n,J));P.push(se),_.push(te)}else P.push(je(n,z)),n.valueType==="text"?_.push(Le(n,z)):n.valueType==="item"?_.push(z):_.push(je(n,z))}),s.value=P;const G=l.toRaw(_);T&&(o("update:modelValue",G),o("change",G))}},g=l.ref([]),x=ho();l.watch([()=>n.source,()=>n.params],async([N,O])=>{if(N){const B=await x.load("cascader",N,O);if(B.length>0)if(typeof B[0]=="string"){let L=B.map(P=>go(P));g.value=L}else g.value=B}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([N,O])=>{c(O,n.valueType,N,!1)});let A=null,V=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async N=>{if(N!=null){V.value=!0;try{const O=await n.remoteMethod(N);g.value=O}catch(O){console.error(O)}V.value=!1}});const $=l.ref(!1),R=he(l.computed(()=>n.disabled)),S=de(l.computed(()=>n.readonly)),D=e,k=l.computed(()=>({[D]:!0})),I=l.computed(()=>{let N={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(N.multiple=!0),n.props&&Object.assign(N,n.props),N}),M=N=>{n.allowCreate?(o("update:modelValue",N),o("change",N),s.value=N):c(N,"value",g.value,!0)};let y=W(n,"hintText"),m=l.ref(!1);const b=N=>{let B=N.target.value;$.value=!0,ee(y.value)||(m.value=!0),o("focus",B,N)},C=N=>{setTimeout(()=>{m.value&&(m.value=!1),$.value=!1},0);let B=N.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),v.value?setTimeout(()=>{o("blur",B,N)},50):o("blur",B,N)},w=()=>{o("clear","")},v=l.ref(!1),q=N=>{v.value=N,o("visible-change",N)},E=N=>{o("remove-tag",N)},j=N=>{o("expand-change",N)},p=l.ref();return fe({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},getCheckedNodes:()=>p?.value.getCheckedNodes()}),()=>{const O={...a.attrs,ref:p,class:k.value,props:I.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:R.value||S.value,options:g.value,modelValue:s.value,onClear:w,onChange:M,onFocus:b,onBlur:C,onVisibleChange:q,onRemoveTag:E,expandChange:j};typeof A=="function"&&(O["remote-method"]=A,O.loading=V.value);const B={};a.slots.option&&(B.default=a.slots.option),a.slots.empty&&(B.empty=a.slots.empty);const T=[],F=l.h(h.ElCascader,O,B);T.push(F);const L={default:()=>T};if(a.slots.default){const z=a.slots.default();L.label=()=>z}const _={...ue(n,wr),hintText:y.value,hintVisible:m.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,_,L)}}}}const{componentName:yo,create:po,scope:bo}=Y("cascader-item"),Sr=po(mo(yo,bo,ie)),$r={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function wo(e,t,r){return{props:{...ae,...ce,...$r},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),{toLocaleRefs:i}=ye.useFoxI18n(t),u=i(n,["placeholder"]),s=l.ref(!1),d=he(l.computed(()=>n.disabled)),c=de(l.computed(()=>n.readonly)),g=W(n,"modelValue"),x=e,A=l.computed(()=>({[x]:!0})),V=y=>{g.value=y,o("update:modelValue",y),o("input",y)},$=y=>{o("change",y)};let R=W(n,"hintText"),S=l.ref(!1);const D=y=>{let b=y.target.value;s.value=!0,ee(R.value)||(S.value=!0),o("focus",b,y)},k=y=>{setTimeout(()=>{S.value&&(S.value=!1),s.value=!1},0);let b=y.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),o("blur",b,y)},I=()=>{o("clear","")},M=l.ref();return fe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const m={...a.attrs,ref:M,class:A.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:g.value,onClear:I,onChange:$,onInput:V,onFocus:D,onBlur:k},b={};a.slots.prepend&&(b.prepend=a.slots.prepend),a.slots.append&&(b.append=a.slots.append),a.slots.prefix&&(b.prefix=a.slots.prefix),a.slots.suffix&&(b.suffix=a.slots.suffix),a.slots.option&&(b.default=a.slots.option);const C=[],w=l.h(h.ElAutocomplete,m,b);C.push(w);const v={default:()=>C};if(a.slots.default){const p=a.slots.default();v.label=()=>p}const E={...ue(n,$r),hintText:R.value,hintVisible:S.value,prop:`${n.prop}_item`};return l.h(r,E,v)}}}}const{componentName:So,create:$o,scope:vo}=Y("autocomplete-item"),vr=$o(wo(So,vo,ie));function Eo(e,t,r,n,a){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],u=t[0];if(Array.isArray(u))for(let s=0;s<t.length&&s<o.length;s++){let d=t[s],c=o[s];const g=d.find(x=>x[n]===c);if(!g)break;i.push(g[r])}else{let s=t;for(let d=0;s&&d<o.length;d++){let c=o[d],g=s.find(x=>x[n]===c);if(!g)break;i.push(g[r]),s=g[a]}}return i}let xo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function Co(){const e=l.getCurrentInstance();return new xo(e.proxy)}const Er={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Oo(e,t){return{props:{...Er},setup(r,{attrs:n}){const a=Co(),o=l.ref([]);l.watch([()=>r.source,()=>r.params],async([s,d])=>{o.value=await a.load(r.sourceType,s,d)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let s=Eo(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return s.length==0?"":s.length===1?s[0]:s.join(r.separator)}),u=r.resolveTag?l.resolveComponent(r.tag):r.tag;return()=>{const s={...n};return r.resolveTag?l.h(u,s,{default:()=>i.value}):l.h(u,s,i.value)}}}}const{componentName:Ki,create:To,scope:zi}=Y("mapping"),zt=To(Oo());function Vo(e,t){let r=t.split("."),n=e;for(let a=0;a<r.length;a++){let o=r[a],i=0,u=o.indexOf("["),s=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=o.substring(u+1,s);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let g=o.substring(0,u);n=n[g][c]}else n=n[c];i++}u=o.indexOf("[",s),s=u==-1?-1:o.indexOf("]",u)}i===0&&(n=n[o])}return n}function Io(e,t){return{props:{...Er},setup(r,{attrs:n}){return()=>{const a={default:o=>{const i=Vo(o.row,o.column.property);return l.h(zt,{...r,modelValue:i})}};return l.h(h.ElTableColumn,{...n},a)}}}}const{componentName:Gi,create:No,scope:Yi}=Y("table-mapping-column"),xr=No(Io());let Ao=class{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,o,i,u){if(Array.isArray(r)){let d=(n-1)*a,c=d+a;c>r.length&&(c=r.length);const g=r.slice(d,c);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,o,i,u]);const s=Ae(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Se(o)&&l.isReactive(o)&&(o=l.toRaw(o)),await await Reflect.apply(s,null,[r,n,a,o,i,u]))}};function Ro(){const e=l.getCurrentInstance();return new Ao(e.proxy)}function ko(e,t){let r=t.split("."),n=e;for(let a=0;a<r.length;a++){let o=r[a],i=0,u=o.indexOf("["),s=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=o.substring(u+1,s);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let g=o.substring(0,u);n=n[g][c]}else n=n[c];i++}u=o.indexOf("[",s),s=u==-1?-1:o.indexOf("]",u)}i===0&&(n=n[o])}return n}function Gt(e,t){return e.filter(n=>{for(let a in t){const o=t[a],i=ko(n,a);if(o!==i)return!1}return!0})}const Cr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Or={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 jo(e,t,r){return{inheritAttrs:!1,props:{...ae,...ce,...Cr,...Or},emits:["change","page-size-change","page-index-change","current-change","loaded-data"],setup(n,a){const{locale:o}=ye.useFoxI18n(t),{emitEvent:i}=oe({componentName:e,validateHandler:{getValue(...v){return S.value}}},n.prop??a.attrs.name),u=e,s=l.computed(()=>({[u]:!0})),d=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),c=l.ref(n.pageIndex);l.watch(()=>n.pageIndex,v=>{c.value=v});const g=v=>{c.value=v,i("page-index-change",v)},x=l.ref(n.pageSize);l.watch(()=>n.pageSize,v=>{x.value=v});const A=v=>{x.value=v,i("page-size-change",v)},V=l.shallowRef({}),$=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),R=l.ref(0),S=l.ref(),D=Ro();let k=!0;const I=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),M=async(v,q,E,j)=>{try{const p=await D.load("table",v,q,E,j,k,o.value);R.value=p.totalSize,S.value=p.page}catch(p){console.error("[FoxUI] Load Table Data Fail",p),R.value=0,S.value=[]}k=!1,setTimeout(()=>{i("loaded-data")},250)};l.watch([c,x],([v,q],[E,j])=>{q!==j&&(c.value=1,v=1),M(n.data,v,q,$.value)}),l.watch([()=>n.data,$],([v,q],[E,j])=>{I()&&(v!==E&&(k=!0),!(Ne(v,E)&&Ne(q,j))&&M(v,c.value,x.value,q))});const y=(v={})=>new Promise(q=>{V.value=l.toRaw(v??{}),l.triggerRef(V),l.nextTick(async()=>{await M(n.data,c.value,x.value,$.value),q()})}),m=()=>{R.value=0,S.value=[]};I()&&y();let b=null;const C=(v,q)=>{b=v,i("current-change",v,q)},w=l.ref();return fe({clearSelection:()=>w?.value.clearSelection(),getSelectionRows:()=>w?.value.getSelectionRows(),toggleRowSelection:(v,q)=>{w?.value.toggleRowSelection(v,q)},toggleRowSelectionByProp:(v,q)=>{if(!S.value)return;const E=Gt(S.value,v);E.length!==0&&E.forEach(j=>{w?.value.toggleRowSelection(j,q)})},toggleAllSelection:()=>{w?.value.toggleAllSelection()},toggleRowExpansion:(v,q)=>{w?.value.toggleRowExpansion(v,q)},toggleRowExpansionByProp:(v,q)=>{if(!S.value)return;const E=Gt(S.value,v);E.length!==0&&E.forEach(j=>{w?.value.toggleRowExpansion(j,q)})},setCurrentRow:v=>{w?.value.setCurrentRow(v)},setCurrentRowByProp:v=>{if(!S.value)return;const q=Gt(S.value,v);q.length!==0&&w?.value.setCurrentRow(q[0])},getCurrentRow:()=>b,clearSort:()=>{w?.value.clearSort()},clearFilter:v=>{w?.value.clearFilter(v)},doLayout:()=>{w?.value.doLayout()},sort:(v,q)=>{w?.value.sort(v,q)},scrollTo:(v,q)=>{w?.value.scrollTo(v,q)},setScrollTop:v=>{w?.value.setScrollTop(v)},setScrollLeft:v=>{w?.value.setScrollLeft(v)},loadData:y,clearData:m,getData(){return S.value},getTotalSize(){return R.value},getPageIndex(){return c.value},getPageSize(){return x.value}}),()=>{const q={...a.attrs,onCurrentChange:C,data:S.value,ref:w,class:s.value},E={};a.slots.default&&(E.default=a.slots.default),a.slots.append&&(E.append=a.slots.append),a.slots.empty&&(E.empty=a.slots.empty);const j=[],p=l.h(h.ElTable,q,E);if(j.push(p),typeof a.slots.pagination=="function"){const F=a.slots.pagination();j.push(F)}else if(n.paginationVisible){const F={class:d.value,total:R.value,pageSize:x.value,["onUpdate:pageSize"]:A,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},L=l.h(h.ElPagination,F);j.push(L)}const N={default:()=>j},B={...ue(n,Cr,Or),prop:`${n.prop}_item`};return B.contentClass=`${u}__wrap`,l.h(r,B,N)}}}}const{componentName:Mo,create:Do,scope:qo}=Y("table-item"),Tr=Do(jo(Mo,qo,ie));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let Bo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}};function Fo(){const e=l.getCurrentInstance();return new Bo(e.proxy)}function Vr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Pe(e,t),a=Pe(e,r);if(n!==a)return!1;const o=Je(e,t),i=Je(e,r);return o===i}function Lo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let o of n){let i=!1;if(r==="text")i=Pe(e,o)===t;else if(r==="item")i=Vr(e,o,t);else{let u=Je(e,o);u==null&&(u=Pe(e,o)),i=u===t}if(i){a=o;break}}return a}function Po(e){return{text:e,value:e}}const Ir={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 _o(e,t,r){return{inheritAttrs:!0,props:{...ae,...ce,...Ir},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref(null),u=l.ref(null),s=(k,I,M,y=!0)=>{const m=Lo(n,k,I,M);if(m===null){if(u.value===null)return;u.value=null,i.value=null,y&&(o("update:modelValue",null),o("change",null));return}if(!Vr(n,m,u.value)){i.value=k;const C=l.toRaw(m);u.value=C;let w=null;n.valueType==="text"?w=Pe(n,C):n.valueType==="item"?w=C:w=Je(n,C),y&&(o("update:modelValue",w),o("change",w))}},d=l.ref([]),c=Fo();l.watch([()=>n.source,()=>n.params],async([k,I])=>{if(k){const M=await c.load("radio",k,I);if(M.length>0)if(typeof M[0]=="string"){let b=M.map(C=>Po(C));d.value=b}else d.value=M}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([k,I])=>{s(I,n.valueType,k,!1)});const g=he(l.computed(()=>n.disabled)),x=de(l.computed(()=>n.readonly)),A=e,V=l.computed(()=>({[A]:!0})),$=k=>{s(k,"value",d.value,!0)};let R=W(n,"hintText"),S=W(n,"hintVisible");const D=(k,I)=>{const M=[];return k.forEach((y,m)=>{const b=Je(n,y),C=Pe(n,y),w=re(y.disabled),q={key:`${b}_${m}`,class:n.itemClass,label:b,disabled:w,size:n.size,border:re(n.border)};n.itemType==="button"?M.push(l.h(h.ElRadioButton,q,{default:()=>[C]})):typeof I=="function"?M.push(l.h(h.ElRadio,q,{default:()=>I(y)})):M.push(l.h(h.ElRadio,q,{default:()=>[C]}))}),M};return()=>{const I={...a.attrs,class:V.value,disabled:g.value||x.value,modelValue:i.value,["text-color"]:n.textColor,fill:n.fill,onChange:$},M=[],y={};a.slots.options?y.default=a.slots.options:y.default=()=>D(d.value,a.slots.text);const m=l.h(h.ElRadioGroup,I,y);M.push(m);const b={default:()=>M};if(a.slots.default){const q=a.slots.default();b.label=()=>q}const w={...ue(n,Ir),hintText:R.value,hintVisible:S.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,w,b)}}}}const{componentName:Ho,create:Ko,scope:zo}=Y("radio-item"),Nr=Ko(_o(Ho,zo,ie));function _e(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Go{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Se(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function Yo(){const e=l.getCurrentInstance();return new Go(e.proxy)}function Ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=_e(e,t),a=_e(e,r);if(n!==a)return!1;const o=He(e,t),i=He(e,r);return o===i}function Wo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let i of n){let u=!1;if(r==="text")u=_e(e,i)===o;else if(r==="item")u=Ar(e,i,o);else{let s=He(e,i);s==null&&(s=_e(e,i)),u=s===o}if(u){a.push(i);break}}}),a}function Uo(e){return{text:e,value:e}}const Rr={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 Xo(e,t,r){return{inheritAttrs:!1,props:{...ae,...ce,...Rr},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=l.ref([]),u=l.ref([]),s=(k,I,M,y=!0)=>{const m=Wo(n,k,I,M);if(m===null){if(u.value===null||u.value.length===0)return;i.value=[],u.value=[],y&&(o("update:modelValue",[]),o("change",[]));return}let b=!0;if(m.length!==u.value.length)b=!1;else for(let C=0;C<m.length;C++){const w=m[C],v=u.value[C];if(!Ar(n,w,v)){b=!1;break}}if(!b){u.value=m;let C=[],w=[];m.forEach(q=>{C.push(He(n,q)),n.valueType==="text"?w.push(_e(n,q)):n.valueType==="item"?w.push(q):w.push(He(n,q))}),i.value=C;const v=l.toRaw(w);y&&(o("update:modelValue",v),o("change",v))}},d=l.ref([]),c=Yo();l.watch([()=>n.source,()=>n.params],async([k,I])=>{if(k){const M=await c.load("checkbox",k,I);if(M.length>0)if(typeof M[0]=="string"){let b=M.map(C=>Uo(C));d.value=b}else d.value=M}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([k,I])=>{s(I,n.valueType,k,!1)});const g=he(l.computed(()=>n.disabled)),x=de(l.computed(()=>n.readonly)),A=e,V=l.computed(()=>({[A]:!0})),$=k=>{s(k,"value",d.value,!0)};let R=W(n,"hintText"),S=W(n,"hintVisible");const D=(k,I)=>{const M=[];return k.forEach((y,m)=>{const b=He(n,y),C=_e(n,y),w=re(y.disabled),q={key:`${b}_${m}`,class:n.itemClass,label:b,disabled:w,size:n.size,border:re(n.border)};n.itemType==="button"?M.push(l.h(h.ElCheckboxButton,q,{default:()=>[C]})):typeof I=="function"?M.push(l.h(h.ElCheckbox,q,{default:()=>I(y)})):M.push(l.h(h.ElCheckbox,q,{default:()=>[C]}))}),M};return()=>{const I={...a.attrs,class:V.value,disabled:g.value||x.value,modelValue:i.value,["text-color"]:n.textColor,fill:n.fill,max:Z(n.max),min:Z(n.min),onChange:$},M=[],y={};a.slots.options?y.default=a.slots.options:y.default=()=>D(d.value,a.slots.text);const m=l.h(h.ElCheckboxGroup,I,y);M.push(m);const b={default:()=>M};if(a.slots.default){const q=a.slots.default();b.label=()=>q}const w={...ue(n,Rr),hintText:R.value,hintVisible:S.value,prop:`${n.prop??a.attrs.name}_item`};return l.h(r,w,b)}}}}const{componentName:Zo,create:Jo,scope:Qo}=Y("checkbox-item"),kr=Jo(Xo(Zo,Qo,ie)),jr={modelValue:{type:[Number,String],required:!1}};function ei(e,t,r){return{props:{...ae,...ce,...jr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=he(l.computed(()=>n.disabled)),u=de(l.computed(()=>n.readonly)),s=W(n,"modelValue",$=>Z($)),d=e,c=l.computed(()=>({[d]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let x=W(n,"hintText"),A=l.ref(!1);const V=l.ref();return fe({}),()=>{const R={...a.attrs,ref:V,class:c.value,readonly:u.value||i.value,modelValue:s.value,onChange:g},S={},D=[],k=l.h(h.ElRate,R,S);D.push(k);const I={default:()=>D};if(a.slots.default){const b=a.slots.default();I.label=()=>b}const y={...ue(n,jr),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,y,I)}}}}const{componentName:ti,create:ni,scope:ri}=Y("rate-item"),Mr=ni(ei(ti,ri,ie)),Dr={modelValue:{type:[Boolean,String,Number],required:!1}};function ai(e,t,r){return{props:{...ae,...ce,...Dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=oe({componentName:e},n.prop??a.attrs.name),i=he(l.computed(()=>n.disabled)),u=de(l.computed(()=>n.readonly)),s=W(n,"modelValue"),d=e,c=l.computed(()=>({[d]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let x=W(n,"hintText"),A=W(n,"hintVisible");const V=l.ref();return fe({}),()=>{const R={...a.attrs,ref:V,class:c.value,readonly:u.value,disabled:i.value,modelValue:s.value,onChange:g},S={},D=[],k=l.h(h.ElSwitch,R,S);D.push(k);const I={default:()=>D};if(a.slots.default){const b=a.slots.default();I.label=()=>b}const y={...ue(n,Dr),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,y,I)}}}}const{componentName:li,create:oi,scope:ii}=Y("switch-item"),qr=oi(ai(li,ii,ie)),si=Symbol.for("InnerPageScopeKey"),ui=Symbol.for("DialogItemStateKey");function ci(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,n){l.provide(si,!0);const a={};l.provide(ui,a);const o=s=>{typeof a.beforeClose=="function"&&a.beforeClose(s)},i=l.ref(!0),u=s=>{i.value=s};return()=>{const d={...n.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},c={};if(typeof n.slots.default=="function"){const g=n.slots.default();c.default=()=>g}return l.h(h.ElDialog,d,c)}}}}const{componentName:Wi,create:fi,scope:Ui}=Y("dialog-item"),Br=fi(ci()),{componentName:Xi,create:di}=Y("ext-icon"),Fr=di({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=i=>{t("click",i)},a=l.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const i=a.value;return l.h(i?"img":e.tag,{class:i?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:K(e.size),width:K(e.size),height:K(e.size)},onClick:n,src:i?e.name:""},r.default?.())}}});function hi(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const a=e,o=l.computed(()=>({[a]:!0})),i=l.computed(()=>({[`${a}__mark`]:!0,[`${a}__mark-${r.type}`]:!0})),u=l.computed(()=>r.color?{background:r.color}:null),s=l.computed(()=>({[`${a}__text`]:!0,[`${a}__text-${r.type}`]:!0})),d=l.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const $={class:i.value,style:u.value};c=l.h("div",$)}const g={class:s.value,style:d.value},x=n.default?n.default():[],A=l.h("div",g,x),V={class:o.value};return l.h("div",V,[c,A])}}}}const{componentName:gi,create:mi,scope:Zi}=Y("indicator"),Lr=mi(hi(gi));var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yt={},yi={get exports(){return Yt},set exports(e){Yt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r=1e3,n=6e4,a=36e5,o="millisecond",i="second",u="minute",s="hour",d="day",c="week",g="month",x="quarter",A="year",V="date",$="Invalid Date",R=/^(\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,D={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("_")},k=function(E,j,p){var N=String(E);return!N||N.length>=j?E:""+Array(j+1-N.length).join(p)+E},I={s:k,z:function(E){var j=-E.utcOffset(),p=Math.abs(j),N=Math.floor(p/60),O=p%60;return(j<=0?"+":"-")+k(N,2,"0")+":"+k(O,2,"0")},m:function E(j,p){if(j.date()<p.date())return-E(p,j);var N=12*(p.year()-j.year())+(p.month()-j.month()),O=j.clone().add(N,g),B=p-O<0,T=j.clone().add(N+(B?-1:1),g);return+(-(N+(p-O)/(B?O-T:T-O))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:g,y:A,w:c,d,D:V,h:s,m:u,s:i,ms:o,Q:x}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},M="en",y={};y[M]=D;var m=function(E){return E instanceof v},b=function E(j,p,N){var O;if(!j)return M;if(typeof j=="string"){var B=j.toLowerCase();y[B]&&(O=B),p&&(y[B]=p,O=B);var T=j.split("-");if(!O&&T.length>1)return E(T[0])}else{var F=j.name;y[F]=j,O=F}return!N&&O&&(M=O),O||!N&&M},C=function(E,j){if(m(E))return E.clone();var p=typeof j=="object"?j:{};return p.date=E,p.args=arguments,new v(p)},w=I;w.l=b,w.i=m,w.w=function(E,j){return C(E,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var v=function(){function E(p){this.$L=b(p.locale,null,!0),this.parse(p)}var j=E.prototype;return j.parse=function(p){this.$d=function(N){var O=N.date,B=N.utc;if(O===null)return new Date(NaN);if(w.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var T=O.match(R);if(T){var F=T[2]-1||0,L=(T[7]||"0").substring(0,3);return B?new Date(Date.UTC(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,L)):new Date(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,L)}}return new Date(O)}(p),this.$x=p.x||{},this.init()},j.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},j.$utils=function(){return w},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(p,N){var O=C(p);return this.startOf(N)<=O&&O<=this.endOf(N)},j.isAfter=function(p,N){return C(p)<this.startOf(N)},j.isBefore=function(p,N){return this.endOf(N)<C(p)},j.$g=function(p,N,O){return w.u(p)?this[N]:this.set(O,p)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(p,N){var O=this,B=!!w.u(N)||N,T=w.p(p),F=function(J,X){var me=w.w(O.$u?Date.UTC(O.$y,X,J):new Date(O.$y,X,J),O);return B?me:me.endOf(d)},L=function(J,X){return w.w(O.toDate()[J].apply(O.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(X)),O)},P=this.$W,_=this.$M,G=this.$D,z="set"+(this.$u?"UTC":"");switch(T){case A:return B?F(1,0):F(31,11);case g:return B?F(1,_):F(0,_+1);case c:var se=this.$locale().weekStart||0,te=(P<se?P+7:P)-se;return F(B?G-te:G+(6-te),_);case d:case V:return L(z+"Hours",0);case s:return L(z+"Minutes",1);case u:return L(z+"Seconds",2);case i:return L(z+"Milliseconds",3);default:return this.clone()}},j.endOf=function(p){return this.startOf(p,!1)},j.$set=function(p,N){var O,B=w.p(p),T="set"+(this.$u?"UTC":""),F=(O={},O[d]=T+"Date",O[V]=T+"Date",O[g]=T+"Month",O[A]=T+"FullYear",O[s]=T+"Hours",O[u]=T+"Minutes",O[i]=T+"Seconds",O[o]=T+"Milliseconds",O)[B],L=B===d?this.$D+(N-this.$W):N;if(B===g||B===A){var P=this.clone().set(V,1);P.$d[F](L),P.init(),this.$d=P.set(V,Math.min(this.$D,P.daysInMonth())).$d}else F&&this.$d[F](L);return this.init(),this},j.set=function(p,N){return this.clone().$set(p,N)},j.get=function(p){return this[w.p(p)]()},j.add=function(p,N){var O,B=this;p=Number(p);var T=w.p(N),F=function(_){var G=C(B);return w.w(G.date(G.date()+Math.round(_*p)),B)};if(T===g)return this.set(g,this.$M+p);if(T===A)return this.set(A,this.$y+p);if(T===d)return F(1);if(T===c)return F(7);var L=(O={},O[u]=n,O[s]=a,O[i]=r,O)[T]||1,P=this.$d.getTime()+p*L;return w.w(P,this)},j.subtract=function(p,N){return this.add(-1*p,N)},j.format=function(p){var N=this,O=this.$locale();if(!this.isValid())return O.invalidDate||$;var B=p||"YYYY-MM-DDTHH:mm:ssZ",T=w.z(this),F=this.$H,L=this.$m,P=this.$M,_=O.weekdays,G=O.months,z=function(X,me,Oe,Te){return X&&(X[me]||X(N,B))||Oe[me].slice(0,Te)},se=function(X){return w.s(F%12||12,X,"0")},te=O.meridiem||function(X,me,Oe){var Te=X<12?"AM":"PM";return Oe?Te.toLowerCase():Te},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:w.s(P+1,2,"0"),MMM:z(O.monthsShort,P,G,3),MMMM:z(G,P),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:z(O.weekdaysMin,this.$W,_,2),ddd:z(O.weekdaysShort,this.$W,_,3),dddd:_[this.$W],H:String(F),HH:w.s(F,2,"0"),h:se(1),hh:se(2),a:te(F,L,!0),A:te(F,L,!1),m:String(L),mm:w.s(L,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:T};return B.replace(S,function(X,me){return me||J[X]||T.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(p,N,O){var B,T=w.p(N),F=C(p),L=(F.utcOffset()-this.utcOffset())*n,P=this-F,_=w.m(this,F);return _=(B={},B[A]=_/12,B[g]=_,B[x]=_/3,B[c]=(P-L)/6048e5,B[d]=(P-L)/864e5,B[s]=P/a,B[u]=P/n,B[i]=P/r,B)[T]||P,O?_:w.a(_)},j.daysInMonth=function(){return this.endOf(g).$D},j.$locale=function(){return y[this.$L]},j.locale=function(p,N){if(!p)return this.$L;var O=this.clone(),B=b(p,N,!0);return B&&(O.$L=B),O},j.clone=function(){return w.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},E}(),q=v.prototype;return C.prototype=q,[["$ms",o],["$s",i],["$m",u],["$H",s],["$W",d],["$M",g],["$y",A],["$D",V]].forEach(function(E){q[E[1]]=function(j){return this.$g(j,E[0],E[1])}}),C.extend=function(E,j){return E.$i||(E(j,v,C),E.$i=!0),C},C.locale=b,C.isDayjs=m,C.unix=function(E){return C(1e3*E)},C.en=y[M],C.Ls=y,C.p={},C})})(yi);const Ce=Yt;var Wt={},pi={get exports(){return Wt},set exports(e){Wt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function($){return($=+$)+($>68?1900:2e3)},d=function($){return function(R){this[$]=+R}},c=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(R){if(!R||R==="Z")return 0;var S=R.match(/([+-]|\d\d)/g),D=60*S[1]+(+S[2]||0);return D===0?0:S[0]==="+"?-D:D}($)}],g=function($){var R=u[$];return R&&(R.indexOf?R:R.s.concat(R.f))},x=function($,R){var S,D=u.meridiem;if(D){for(var k=1;k<=24;k+=1)if($.indexOf(D(k,0,R))>-1){S=k>12;break}}else S=$===(R?"pm":"PM");return S},A={A:[i,function($){this.afternoon=x($,!1)}],a:[i,function($){this.afternoon=x($,!0)}],S:[/\d/,function($){this.milliseconds=100*+$}],SS:[a,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[i,function($){var R=u.ordinal,S=$.match(/\d+/);if(this.day=S[0],R)for(var D=1;D<=31;D+=1)R(D).replace(/\[|\]/g,"")===$&&(this.day=D)}],M:[o,d("month")],MM:[a,d("month")],MMM:[i,function($){var R=g("months"),S=(g("monthsShort")||R.map(function(D){return D.slice(0,3)})).indexOf($)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function($){var R=g("months").indexOf($)+1;if(R<1)throw new Error;this.month=R%12||R}],Y:[/[+-]?\d+/,d("year")],YY:[a,function($){this.year=s($)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function V($){var R,S;R=$,S=u&&u.formats;for(var D=($=R.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,w,v){var q=v&&v.toUpperCase();return w||S[v]||r[v]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,j,p){return j||p.slice(1)})})).match(n),k=D.length,I=0;I<k;I+=1){var M=D[I],y=A[M],m=y&&y[0],b=y&&y[1];D[I]=b?{regex:m,parser:b}:M.replace(/^\[|\]$/g,"")}return function(C){for(var w={},v=0,q=0;v<k;v+=1){var E=D[v];if(typeof E=="string")q+=E.length;else{var j=E.regex,p=E.parser,N=C.slice(q),O=j.exec(N)[0];p.call(w,O),C=C.replace(O,"")}}return function(B){var T=B.afternoon;if(T!==void 0){var F=B.hours;T?F<12&&(B.hours+=12):F===12&&(B.hours=0),delete B.afternoon}}(w),w}}return function($,R,S){S.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(s=$.parseTwoDigitYear);var D=R.prototype,k=D.parse;D.parse=function(I){var M=I.date,y=I.utc,m=I.args;this.$u=y;var b=m[1];if(typeof b=="string"){var C=m[2]===!0,w=m[3]===!0,v=C||w,q=m[2];w&&(q=m[2]),u=this.$locale(),!C&&q&&(u=S.Ls[q]),this.$d=function(N,O,B){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*N);var T=V(O)(N),F=T.year,L=T.month,P=T.day,_=T.hours,G=T.minutes,z=T.seconds,se=T.milliseconds,te=T.zone,J=new Date,X=P||(F||L?1:J.getDate()),me=F||J.getFullYear(),Oe=0;F&&!L||(Oe=L>0?L-1:J.getMonth());var Te=_||0,nn=G||0,rn=z||0,an=se||0;return te?new Date(Date.UTC(me,Oe,X,Te,nn,rn,an+60*te.offset*1e3)):B?new Date(Date.UTC(me,Oe,X,Te,nn,rn,an)):new Date(me,Oe,X,Te,nn,rn,an)}catch{return new Date("")}}(M,b,y),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),v&&M!=this.format(b)&&(this.$d=new Date("")),u={}}else if(b instanceof Array)for(var E=b.length,j=1;j<=E;j+=1){m[1]=b[j-1];var p=S.apply(this,m);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}j===E&&(this.$d=new Date(""))}else k.call(this,I)}}})})(pi);const bi=Wt;var Ut={},wi={get exports(){return Ut},set exports(e){Ut=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){var o=n.prototype,i=o.format;a.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},o.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var c=this.$utils(),g=(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(x){switch(x){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),x==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),x==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),x==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return x}});return i.bind(this)(g)}}})})(wi);const Si=Ut;var Xt={},$i={get exports(){return Xt},set exports(e){Xt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){var o=n.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,x,A,V,$){var R=g.name?g:g.$locale(),S=i(R[x]),D=i(R[A]),k=S||D.map(function(M){return M.slice(0,V)});if(!$)return k;var I=R.weekStart;return k.map(function(M,y){return k[(y+(I||0))%7]})},s=function(){return a.Ls[a.locale()]},d=function(g,x){return g.formats[x]||function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(V,$,R){return $||R.slice(1)})}(g.formats[x.toUpperCase()])},c=function(){var g=this;return{months:function(x){return x?x.format("MMMM"):u(g,"months")},monthsShort:function(x){return x?x.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):u(g,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return d(g.$locale(),x)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},a.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(x){return d(g,x)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(g){return u(s(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})})($i);const vi=Xt;var Zt={},Ei={get exports(){return Zt},set exports(e){Zt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){var r="week",n="year";return function(a,o,i){var u=o.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(d),g=i(this).endOf(r);if(c.isBefore(g))return 1}var x=i(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),A=this.diff(x,r,!0);return A<0?i(this).startOf("week").week():Math.ceil(A)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(Ei);const xi=Zt;var Jt={},Ci={get exports(){return Jt},set exports(e){Jt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(Ci);const Oi=Jt;var Qt={},Ti={get exports(){return Qt},set exports(e){Qt=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n,a){n.prototype.dayOfYear=function(o){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Ti);const Vi=Qt;var en={},Ii={get exports(){return en},set exports(e){en=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(Ii);const Ni=en;var tn={},Ai={get exports(){return tn},set exports(e){tn=e}};(function(e,t){(function(r,n){e.exports=n()})(we,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(Ai);const Ri=tn;Ce.extend(vi),Ce.extend(Si),Ce.extend(bi),Ce.extend(xi),Ce.extend(Oi),Ce.extend(Vi),Ce.extend(Ni),Ce.extend(Ri);const Pr=10;function ki(e,t){return e>t&&e>Pr?"horizontal":t>e&&t>Pr?"vertical":""}function ji(){const e=l.ref(0),t=l.ref(0),r=l.ref(0),n=l.ref(0),a=l.ref(0),o=l.ref(0),i=l.ref(0),u=l.ref(0),s=l.ref(0),d=l.ref(0),c=l.ref(""),g=()=>c.value==="vertical",x=()=>c.value==="horizontal",A=()=>{i.value=0,u.value=0,s.value=0,d.value=0,c.value="",r.value=0};return{move:R=>{const S=R.touches[0];i.value=S.clientX-e.value,u.value=S.clientY-t.value,a.value=S.clientX,o.value=S.clientY,s.value=Math.abs(i.value),d.value=Math.abs(u.value),n.value=Date.now()-r.value,c.value||(c.value=ki(s.value,d.value))},start:R=>{A(),e.value=R.touches[0].clientX,t.value=R.touches[0].clientY,r.value=Date.now()},reset:A,startX:e,startY:t,startTime:r,duration:n,moveX:a,moveY:o,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:c,isVertical:g,isHorizontal:x}}const Mi=[Bn,Fn,Ln,Pn,Kn,ie,Un,Xn,yt,Jn,rr,lr,ir,ur,mr,pr,Sr,vr,xr,Tr,Nr,kr,Mr,qr,Br,zt,mt,Fr,Lr],Di=new Ca(Mi,[Va],"4.0.0");Object.defineProperty(f,"FoxAffix",{enumerable:!0,get:()=>h.ElAffix}),Object.defineProperty(f,"FoxAlert",{enumerable:!0,get:()=>h.ElAlert}),Object.defineProperty(f,"FoxAside",{enumerable:!0,get:()=>h.ElAside}),Object.defineProperty(f,"FoxAutoResizer",{enumerable:!0,get:()=>h.ElAutoResizer}),Object.defineProperty(f,"FoxAutocomplete",{enumerable:!0,get:()=>h.ElAutocomplete}),Object.defineProperty(f,"FoxAvatar",{enumerable:!0,get:()=>h.ElAvatar}),Object.defineProperty(f,"FoxBacktop",{enumerable:!0,get:()=>h.ElBacktop}),Object.defineProperty(f,"FoxBadge",{enumerable:!0,get:()=>h.ElBadge}),Object.defineProperty(f,"FoxBreadcrumb",{enumerable:!0,get:()=>h.ElBreadcrumb}),Object.defineProperty(f,"FoxBreadcrumbItem",{enumerable:!0,get:()=>h.ElBreadcrumbItem}),Object.defineProperty(f,"FoxButton",{enumerable:!0,get:()=>h.ElButton}),Object.defineProperty(f,"FoxButtonGroup",{enumerable:!0,get:()=>h.ElButtonGroup}),Object.defineProperty(f,"FoxCalendar",{enumerable:!0,get:()=>h.ElCalendar}),Object.defineProperty(f,"FoxCard",{enumerable:!0,get:()=>h.ElCard}),Object.defineProperty(f,"FoxCarousel",{enumerable:!0,get:()=>h.ElCarousel}),Object.defineProperty(f,"FoxCarouselItem",{enumerable:!0,get:()=>h.ElCarouselItem}),Object.defineProperty(f,"FoxCascader",{enumerable:!0,get:()=>h.ElCascader}),Object.defineProperty(f,"FoxCascaderPanel",{enumerable:!0,get:()=>h.ElCascaderPanel}),Object.defineProperty(f,"FoxCheckTag",{enumerable:!0,get:()=>h.ElCheckTag}),Object.defineProperty(f,"FoxCheckbox",{enumerable:!0,get:()=>h.ElCheckbox}),Object.defineProperty(f,"FoxCheckboxButton",{enumerable:!0,get:()=>h.ElCheckboxButton}),Object.defineProperty(f,"FoxCheckboxGroup",{enumerable:!0,get:()=>h.ElCheckboxGroup}),Object.defineProperty(f,"FoxCol",{enumerable:!0,get:()=>h.ElCol}),Object.defineProperty(f,"FoxCollapse",{enumerable:!0,get:()=>h.ElCollapse}),Object.defineProperty(f,"FoxCollapseItem",{enumerable:!0,get:()=>h.ElCollapseItem}),Object.defineProperty(f,"FoxCollapseTransition",{enumerable:!0,get:()=>h.ElCollapseTransition}),Object.defineProperty(f,"FoxColorPicker",{enumerable:!0,get:()=>h.ElColorPicker}),Object.defineProperty(f,"FoxConfigProvider",{enumerable:!0,get:()=>h.ElConfigProvider}),Object.defineProperty(f,"FoxContainer",{enumerable:!0,get:()=>h.ElContainer}),Object.defineProperty(f,"FoxDatePicker",{enumerable:!0,get:()=>h.ElDatePicker}),Object.defineProperty(f,"FoxDescriptions",{enumerable:!0,get:()=>h.ElDescriptions}),Object.defineProperty(f,"FoxDescriptionsItem",{enumerable:!0,get:()=>h.ElDescriptionsItem}),Object.defineProperty(f,"FoxDialog",{enumerable:!0,get:()=>h.ElDialog}),Object.defineProperty(f,"FoxDivider",{enumerable:!0,get:()=>h.ElDivider}),Object.defineProperty(f,"FoxDrawer",{enumerable:!0,get:()=>h.ElDrawer}),Object.defineProperty(f,"FoxDropdown",{enumerable:!0,get:()=>h.ElDropdown}),Object.defineProperty(f,"FoxDropdownItem",{enumerable:!0,get:()=>h.ElDropdownItem}),Object.defineProperty(f,"FoxDropdownMenu",{enumerable:!0,get:()=>h.ElDropdownMenu}),Object.defineProperty(f,"FoxEmpty",{enumerable:!0,get:()=>h.ElEmpty}),Object.defineProperty(f,"FoxFooter",{enumerable:!0,get:()=>h.ElFooter}),Object.defineProperty(f,"FoxForm",{enumerable:!0,get:()=>h.ElForm}),Object.defineProperty(f,"FoxFormItem",{enumerable:!0,get:()=>h.ElFormItem}),Object.defineProperty(f,"FoxHeader",{enumerable:!0,get:()=>h.ElHeader}),Object.defineProperty(f,"FoxIcon",{enumerable:!0,get:()=>h.ElIcon}),Object.defineProperty(f,"FoxImage",{enumerable:!0,get:()=>h.ElImage}),Object.defineProperty(f,"FoxImageViewer",{enumerable:!0,get:()=>h.ElImageViewer}),Object.defineProperty(f,"FoxInput",{enumerable:!0,get:()=>h.ElInput}),Object.defineProperty(f,"FoxInputNumber",{enumerable:!0,get:()=>h.ElInputNumber}),Object.defineProperty(f,"FoxLink",{enumerable:!0,get:()=>h.ElLink}),Object.defineProperty(f,"FoxMain",{enumerable:!0,get:()=>h.ElMain}),Object.defineProperty(f,"FoxMenu",{enumerable:!0,get:()=>h.ElMenu}),Object.defineProperty(f,"FoxMenuItem",{enumerable:!0,get:()=>h.ElMenuItem}),Object.defineProperty(f,"FoxMenuItemGroup",{enumerable:!0,get:()=>h.ElMenuItemGroup}),Object.defineProperty(f,"FoxOption",{enumerable:!0,get:()=>h.ElOption}),Object.defineProperty(f,"FoxOptionGroup",{enumerable:!0,get:()=>h.ElOptionGroup}),Object.defineProperty(f,"FoxPageHeader",{enumerable:!0,get:()=>h.ElPageHeader}),Object.defineProperty(f,"FoxPagination",{enumerable:!0,get:()=>h.ElPagination}),Object.defineProperty(f,"FoxPopconfirm",{enumerable:!0,get:()=>h.ElPopconfirm}),Object.defineProperty(f,"FoxPopover",{enumerable:!0,get:()=>h.ElPopover}),Object.defineProperty(f,"FoxPopper",{enumerable:!0,get:()=>h.ElPopper}),Object.defineProperty(f,"FoxProgress",{enumerable:!0,get:()=>h.ElProgress}),Object.defineProperty(f,"FoxRadio",{enumerable:!0,get:()=>h.ElRadio}),Object.defineProperty(f,"FoxRadioButton",{enumerable:!0,get:()=>h.ElRadioButton}),Object.defineProperty(f,"FoxRadioGroup",{enumerable:!0,get:()=>h.ElRadioGroup}),Object.defineProperty(f,"FoxRate",{enumerable:!0,get:()=>h.ElRate}),Object.defineProperty(f,"FoxResult",{enumerable:!0,get:()=>h.ElResult}),Object.defineProperty(f,"FoxRow",{enumerable:!0,get:()=>h.ElRow}),Object.defineProperty(f,"FoxScrollbar",{enumerable:!0,get:()=>h.ElScrollbar}),Object.defineProperty(f,"FoxSelect",{enumerable:!0,get:()=>h.ElSelect}),Object.defineProperty(f,"FoxSelectV2",{enumerable:!0,get:()=>h.ElSelectV2}),Object.defineProperty(f,"FoxSkeleton",{enumerable:!0,get:()=>h.ElSkeleton}),Object.defineProperty(f,"FoxSkeletonItem",{enumerable:!0,get:()=>h.ElSkeletonItem}),Object.defineProperty(f,"FoxSlider",{enumerable:!0,get:()=>h.ElSlider}),Object.defineProperty(f,"FoxSpace",{enumerable:!0,get:()=>h.ElSpace}),Object.defineProperty(f,"FoxStep",{enumerable:!0,get:()=>h.ElStep}),Object.defineProperty(f,"FoxSteps",{enumerable:!0,get:()=>h.ElSteps}),Object.defineProperty(f,"FoxSubMenu",{enumerable:!0,get:()=>h.ElSubMenu}),Object.defineProperty(f,"FoxSwitch",{enumerable:!0,get:()=>h.ElSwitch}),Object.defineProperty(f,"FoxTabPane",{enumerable:!0,get:()=>h.ElTabPane}),Object.defineProperty(f,"FoxTable",{enumerable:!0,get:()=>h.ElTable}),Object.defineProperty(f,"FoxTableColumn",{enumerable:!0,get:()=>h.ElTableColumn}),Object.defineProperty(f,"FoxTableV2",{enumerable:!0,get:()=>h.ElTableV2}),Object.defineProperty(f,"FoxTabs",{enumerable:!0,get:()=>h.ElTabs}),Object.defineProperty(f,"FoxTag",{enumerable:!0,get:()=>h.ElTag}),Object.defineProperty(f,"FoxTimePicker",{enumerable:!0,get:()=>h.ElTimePicker}),Object.defineProperty(f,"FoxTimeSelect",{enumerable:!0,get:()=>h.ElTimeSelect}),Object.defineProperty(f,"FoxTimeline",{enumerable:!0,get:()=>h.ElTimeline}),Object.defineProperty(f,"FoxTimelineItem",{enumerable:!0,get:()=>h.ElTimelineItem}),Object.defineProperty(f,"FoxTooltip",{enumerable:!0,get:()=>h.ElTooltip}),Object.defineProperty(f,"FoxTransfer",{enumerable:!0,get:()=>h.ElTransfer}),Object.defineProperty(f,"FoxTree",{enumerable:!0,get:()=>h.ElTree}),Object.defineProperty(f,"FoxTreeSelect",{enumerable:!0,get:()=>h.ElTreeSelect}),Object.defineProperty(f,"FoxTreeV2",{enumerable:!0,get:()=>h.ElTreeV2}),Object.defineProperty(f,"FoxUpload",{enumerable:!0,get:()=>h.ElUpload}),f.AutocompleteItem=vr,f.Broadcast=Rt,f.BroadcastKey=ne,f.CascaderItem=Sr,f.CheckboxItem=kr,f.Content=Pn,f.DataItemsKey=Me,f.DateItem=lr,f.DialogItem=Br,f.Domain=jt,f.DomainKey=$e,f.ExtIcon=Fr,f.FooterBar=Ln,f.Group=Kn,f.HeaderBar=Fn,f.HintText=yt,f.Indicator=Lr,f.InputItem=Jn,f.InputNumberItem=pr,f.Item=ie,f.Mapping=zt,f.MoneyItem=mr,f.Page=Bn,f.Price=mt,f.PriorityPolicy=ct,f.RadioItem=Nr,f.RateItem=Mr,f.RowItem=Xn,f.SelectItem=rr,f.SlotItem=Un,f.SwitchItem=qr,f.TableItem=Tr,f.TableMappingColumn=xr,f.TimeItem=ir,f.TimeSelectItem=ur,f.UniqueID=Gn,f.ValidateSchema=In,f.ValidateSchemaKey=be,f.clearNonNumber=na,f.clone=Nt,f.compareTo=Ot,f.createBroadcast=nt,f.createValidateSchema=at,f.debounce=ya,f.decimalLength=vn,f.default=Di,f.defineBroadcast=ia,f.defineDataItem=An,f.defineDomain=Dt,f.defineItem=oe,f.definePageState=Rn,f.deleteGlobalValidator=fa,f.disabledProperty=he,f.divide=Ct,f.excludeProps=ue,f.extend=Ie,f.floatData=oa,f.getGlobalValidateCheckEvents=On,f.getGlobalValidateResetEvents=Vn,f.getPageContentAreaHeight=st,f.getPageContentAreaWidth=ut,f.getPageFooterAreaHeight=it,f.getPageHeaderAreaHeight=ot,f.getRootDomain=Xe,f.hasSymbol=mn,f.includeProps=la,f.indexOf=ra,f.integerLength=$n,f.isArray=Hr,f.isArrayLike=pn,f.isBrowser=Ge,f.isDate=Gr,f.isESModule=Xr,f.isEmptyString=ee,f.isEqual=Ne,f.isFunction=Vt,f.isInnerPage=ba,f.isMap=Kr,f.isNumberString=Sn,f.isObject=Se,f.isPlainObject=It,f.isPromise=Ur,f.isRegExp=wn,f.isSet=zr,f.isString=Yr,f.isSubPage=wa,f.isSymbol=Wr,f.isWindow=yn,f.lastIndexOf=aa,f.makeArray=ea,f.merge=bn,f.multiply=fn,f.negate=dn,f.nextTick=Jr,f.numberFormat=Tt,f.objectToString=gn,f.property=De,f.raf=ta,f.readonlyProperty=de,f.setGlobalValidateCheckEvents=da,f.setGlobalValidateHandler=ua,f.setGlobalValidateMessages=ga,f.setGlobalValidateResetEvents=ha,f.setGlobalValidator=ca,f.throttle=kt,f.toBoolean=re,f.toNumber=Z,f.toPadding=pe,f.toPx=U,f.toPxDesc=K,f.toTypeString=et,f.toValue=W,f.typeOf=tt,f.unNumberFormat=hn,f.updatePageState=qt,f.useBroadcast=We,f.useDomain=ve,f.useExpose=fe,f.usePageState=lt,f.usePosition=Yn,f.useRect=gt,f.useTouch=ji,f.valueLength=Ye,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});