@fox-js/foxui-pad 4.0.1-17 → 4.0.1-19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(y=typeof globalThis<"u"?globalThis:y||self,t(y.FoxUI={},y.Vue,y.FoxValidator,y.ElementPlus,y.ElementPlusIconsVue,y.FoxI18n))})(this,function(y,t,Xe,k,ke,Ee){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Sat Dec 16 2023 10:00:50 GMT+0800 (中国标准时间)
3
- */const Ot=window,Yl=typeof window<"u";function Wl(){return typeof Ot<"u"?Ot.requestAnimationFrame||Ot.webkitRequestAnimationFrame||function(e){Ot.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ul(e){Yl?cancelAnimationFrame(e):clearTimeout(e)}const Mo=Wl();/*!
1
+ (function(w,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(w=typeof globalThis<"u"?globalThis:w||self,t(w.FoxUI={},w.Vue,w.FoxValidator,w.ElementPlus,w.ElementPlusIconsVue,w.FoxI18n))})(this,function(w,t,Ge,x,ye,De){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Tue Feb 27 2024 15:46:57 GMT+0800 (中国标准时间)
3
+ */const At=window,Ua=typeof window<"u";function Ga(){return typeof At<"u"?At.requestAnimationFrame||At.webkitRequestAnimationFrame||function(e){At.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Xa(e){Ua?cancelAnimationFrame(e):clearTimeout(e)}const qo=Ga();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Rt(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Te(e),n=Te(n),[e,n]=hn(Te(e),Te(n)),a==1&&(o==1?e=mn(e):n=mn(n));let l=Po(e,n);return a?a==2?"-"+Te(l):e.length<l.length?Te(l.substring(1)):"-"+Te(mn(l)):Te(l)}function mn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Po(n,r)}function Te(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function hn(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Po(e,n){[e,n]=hn(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var me=(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))(me||{});function ht(e,n=0,a=me.HALF_EVEN){if(a===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],i=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+i,c=ht(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,qo(l[1],r,o,a)?(o?"-":"")+gn(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");i=l[1].substring(0,n);let s=l[1].substring(n);return s&&qo(s,i,o,a)&&(i=gn(i),i.length>n)?(o?"-":"")+gn(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function qo(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===me.DOWN||!a&&o===me.FLOOR||a&&o===me.CEILING)return!1;if(o===me.UP||a&&o===me.FLOOR||!a&&o===me.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function gn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function pn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=gt(e),n=gt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=gt(e.replace(".","")),n=gt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,s=0,c=[],d=i-1,u="";for(let m=0;m<i;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let p=0;for(let E=n.length-1;E>=d&&E>=0;E--)c[E]>-1&&c[E]<e.length&&(p+=parseInt(e[c[E]--])*parseInt(n[E]));p+=s,s=Math.floor(p/10),u=p%10+u,d--}return u=gt(Gl(u,r)),a==1&&(u="-"+u),u}function Gl(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function gt(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 yn(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Te(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Te(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Te(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let u=e.length-d+l;e=Te(e.substring(0,u)+"."+e.substring(u))}else l==d&&(e=Te(e.replace(".","")))}let r=0,i=n.length,s="",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 d=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(d+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=d,s="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Rt(c,"-"+n),d++;s+=d,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+Te(ht(s,a-2))}function bn(e,n){return e=e.toString(),n=n.toString(),n=wn(n),Rt(e,n)}function wn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),jo(e),jo(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=bn(e,pn(n,ht(yn(e,n),0,me.FLOOR)));return a+o}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _o(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=hn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ae{value;static RoundingModes=me;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Te(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Te(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ae.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ae.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=0?o:"")+i;return(l?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return ae.getPrettyValue(this.value,n,a)}static round(n,a=0,o=me.HALF_EVEN){if(n=ae.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return ht(n,a,o)}round(n=0,a=me.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ae(ht(this.value,n,a))}static floor(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.FLOOR)}static ceil(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.CEILING)}static add(n,a){return n=ae.validate(n),a=ae.validate(a),Rt(n,a)}add(n){return new ae(Rt(this.value,n.getValue()))}static subtract(n,a){return n=ae.validate(n),a=ae.validate(a),bn(n,a)}subtract(n){return new ae(bn(this.value,n.getValue()))}static multiply(n,a){return n=ae.validate(n),a=ae.validate(a),pn(n,a)}multiply(n){return new ae(pn(this.value,n.getValue()))}static divide(n,a,o){return n=ae.validate(n),a=ae.validate(a),yn(n,a,o)}divide(n,a){return new ae(yn(this.value,n.getValue(),a))}static modulus(n,a){return n=ae.validate(n),a=ae.validate(a),zo(n,a)}modulus(n){return new ae(zo(this.value,n.getValue()))}static compareTo(n,a){return n=ae.validate(n),a=ae.validate(a),_o(n,a)}compareTo(n){return _o(this.value,n.getValue())}static negate(n){return n=ae.validate(n),wn(n)}negate(){return new ae(wn(this.value))}}function Ho(e,n){return ae.multiply(`${e}`,`${n}`)}function Sn(e,n,a=8){return ae.divide(`${e}`,`${n}`,a)}function vn(e,n){return e=`${e}`,n=`${n}`,ae.compareTo(e,n)}function Ko(e){return ae.negate(e)}function Ft(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",d=r.indexOf(".");d!=-1&&(s=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let u;if(o>0){let m="",p=s.split("").reverse();for(let E=0;E<p.length;E++)m+=p[E]+((E+1)%o==0&&E+1!=p.length?l:"");c.length==0?u=`${i}${m.split("").reverse().join("")}`:u=`${i}${m.split("").reverse().join("")}.${c}`}else c.length==0?u=`${i}${s}`:u=`${i}${s}.${c}`;return u}function Yo(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Wo=Mo,Xl=Array.isArray,Zl=e=>Lt(e)==="[object Map]",Jl=e=>Lt(e)==="[object Set]",Me=e=>e instanceof Date,Cn=e=>typeof e=="function",Uo=e=>typeof e=="string",Ql=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",er=e=>Ae(e)&&Cn(e.then)&&Cn(e.catch),Go=Object.prototype.toString,Lt=e=>Go.call(e),kn=e=>Lt(e)==="[object Object]",Xo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function tr(e){return e.__esModule||Xo&&e[Symbol.toStringTag]==="Module"}const nr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ze(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let s=n[i],c=r[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=Ze(l,d,c)}else c!==void 0&&(n[i]=c)}}return n}function Tn(e,n,a=!1){if(!a)Ze(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;r=Tn(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;r=Tn(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}}return e}const $n=nr?Promise.resolve():null;function or(e,...n){$n!==null?n&&n.length>0?$n.then(()=>{e(n)}):$n.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function oe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ce(e){return typeof e=="number"?e:Number(e)}const ar={"[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 nt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ar[a]||"object"}function Zo(e){return e&&typeof e=="object"&&"setInterval"in e}function Jo(e){return!e||e.offsetParent===null}function Qo(e){let n=!!e&&"length"in e&&e.length,a=nt(e);return a==="function"||Zo(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ea(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function lr(e,n=[]){let a=n;return e!=null&&(Qo(Object(e))?ea(a,typeof e=="string"?[e]:e):a.push(e)),a}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=nt(e),o=nt(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],c=e[s],d=n[s];if(!Pe(c,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Pe(r,i))return!1}return!0}return!1}const Je=typeof window<"u";function Dn(e){return e==null}function ta(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ye=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function na(e){return ye(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ye(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oa(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function aa(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function la(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function rr(e,n=!0,a=!0){n?e=la(e,".",/\./g):e=e.replace(/\./g,""),a?e=la(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ir(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Pe(e,a))return!0}):n.indexOf(e)}function sr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Pe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pt(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function ve(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const cr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e},be=Symbol.for("BroadcastKey");class En{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):ta(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(a);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[a]=="function"){const c=Reflect.apply(s[a],s,[...o]);c!=null&&r.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(n,a){this.callbacks.set(n,a)}}function Mt(e,n,a,o){const l=new En(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ur(e,n,a){const o=a;if(o[be])return o[be];const l=t.inject(be,null),r=new En(l,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[be]=r,t.provide(be,r),t.onUnmounted(()=>{r.destroy(),o[be]=void 0}),r}function yt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[be]??t.inject(be,null):t.inject(be,null)}const Qe=e=>e.default??e;class dr{error(n,a){const o=a,l=yt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=yt(o),i=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let ra=new dr;function fr(e){ra=e}function mr(e,n){Qe(Xe).setValidator(e,n)}function hr(e){Qe(Xe).deleteValidator(e)}let ia=["blur","clear"];function gr(e){ia=e}function sa(){return ia}let ca=["focus","change"];function pr(e){ca=e}function ua(){return ca}function yr(e){Qe(Xe).messages(e)}function bt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Pt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class da{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Pt(bt(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=Pt(o);const l=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=ra;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?Qe(Xe).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?Qe(Xe).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return Qe(Xe).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=bt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Pt(n):this.rules=Pt([n]);const o=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=bt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),i={[`${o}`]:r},s=Qe(Xe),c=new s(l),d=this.proxy??i;return c.validate(i,{context:d}).then(m=>{if(m.pass)this.success();else{let p="error";Array.isArray(m.errors)&&m.errors.length>0&&(p=m.errors[0].message??p,m.errors=[m.errors[0]],m.errors[0].ref=d),this.error(p)}return m}).catch(m=>{const p=m.message??`${m}`;return this.error(p),m})}}return Promise.resolve({pass:!0})}}function qt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new da(n,a,e)}const fa=Symbol.for("EventEmitterKey");class br{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function wt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function ma(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function wr(e,n){const a=wt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function Sr(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function xn(e,n,a,o=0,l=!0){let r=n,i=0;if(l){const c=e();if(i++,c||i>a)return}const s=()=>{const c=e();i++,!(c||i>a)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const Ve=Symbol("DomainKey"),ot=Symbol("DataItemsKey");class zt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const vr=new zt;function at(){return vr}function ze(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const Nn=Symbol("OriginalDateKey");function Vn(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let i=t.inject(Ve,null);i===null&&(i=at());const s=e||n.prop||n.name,c=new zt(s);c.parent=i;const d=b=>{r[Nn]||p(b),c.set("modelValue",b)},u=()=>c.getForSelf("modelValue")??null,m=()=>r[Nn]??null,p=b=>{const v={};Ze(!0,v,t.toRaw(b)),r[Nn]=v};t.isReactive(n)||typeof n=="function"?t.watch(n,b=>{c.merge(b,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&p(n.modelValue),r[Ve]=c,t.provide(Ve,c);let E=null,g=null;if(l!==null){const b=t.inject(be,null);E=Mt(r,b,s,o),c.broadcast=E,r[be]=E,t.provide(be,E),r.broadcast=(h,w,...f)=>Reflect.apply(E.emit,E,[h,w,...f]);const v=t.inject(qe,null);g=qt(r,v,{componentName:""}),c.validateSchema=g,r[qe]=g,t.provide(qe,g),r[ot]=new Map,r.validate=(h=!0)=>{const w=[];let f=null;const I={deep:!1};if(h===!0)f={name:"*"};else if(Array.isArray(h)&&h.length>0){const B=h;f={name:O=>O?B.indexOf(O)!==-1:!1}}else if(h!=null&&typeof h=="object"){const B=h;if(I.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const O=B.include;f={name:R=>R?O.indexOf(R)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const O=B.exclude;f={name:R=>R?O.indexOf(R)===-1:!1}}else f={name:"*"}}if(f){const B=E?.emitToChildren(f,"validate",I);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let O=[];return B.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(O=[...O,...R.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,w=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(h).forEach(B=>{let O=String(B);const V=pa(c,O,{componentName:"",fieldName:O,pureDataValidate:!0},E,g);r[ot].set(O,V);const $=h[O];$&&V.validateSchema.setRule($)});return}if(w){const I=Reflect.ownKeys(h),B={name:O=>I.includes(O)};E?.emitToChildren(B,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let w=null;if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const f=h;w={name:I=>I?f.indexOf(I)!==-1:!1}}else if(h!=null&&typeof h=="object"){const f=h;if(Array.isArray(f.include)&&f.include.length>0){const I=f.include;w={name:B=>B?I.indexOf(B)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const I=f.exclude;w={name:B=>B?I.indexOf(B)===-1:!1}}else w={name:"*"}}w&&E?.emitToChildren(w,"clearValidate",!1)},r.resetFields=h=>{const w=u();if(!w)return;const f={};if(Ze(!0,f,m()??{}),Array.isArray(h))h.forEach(I=>{w[I]=f[I]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(B=>{w[B]=f[B]});else if(h&&Array.isArray(h.exclude)){let I=h.exclude??[];Reflect.ownKeys(f).forEach(B=>{I.includes(B)||(w[B]=f[B])})}else Object.assign(w,f);r.clearValidate(h)},r.setModelValue=(h,w)=>{!w||w===s?d(h):E?.emitToChildren({name:w},"setModelValue",h)},r.getModelValue=()=>u()}return t.onUnmounted(()=>{c.destroy(),r[Ve]=void 0,r[ot]&&(r[ot].clear(),r[ot]=void 0),E!==null&&(E.destroy(),r[be]=void 0),g!==null&&(g.destroy(),r[qe]=void 0)}),c}function ha(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ve,null);r===null&&(r=at());const i=e||n.prop||n.name,s=new zt(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s.merge(c,a)},{immediate:!0}):s.merge(n,a),l[Ve]=s,t.provide(Ve,s),t.onUnmounted(()=>{s.destroy(),l[Ve]=void 0}),s}function ga(e,n,a){const l=ze(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(i=>{n.setRule(i)}))}function we(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(be,null),s=Mt(l,i,r,a);l[be]=s,t.provide(be,s),l.broadcast=(g,b,...v)=>Reflect.apply(s.emit,s,[g,b,...v]);const c=t.inject(qe,null);e.fieldName=e.fieldName??r;const d=qt(l,c,e);l[qe]=d,t.provide(qe,d),ga(l,d,r),l.validate=(g=null)=>{const b=[];let v=!1,h=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)h=!0,v=!0;else if(g&&typeof g=="object"){const w=g;w.ignoreHidden===!0&&Jo(l.$el)?h=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),h=!0),v=w.deep??!1}else typeof g=="boolean"&&(v=g),h=!0;if(h){const w=d?.validate();b.push(w)}if(v){let w=null;const f={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const I=g;w={name:B=>B?I.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const I=g;if(f.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const B=I.include;w={name:O=>O?B.indexOf(O)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const B=I.exclude;w={name:O=>O?B.indexOf(O)===-1:!1}}else w={name:"*"}}if(w){const I=s.emitToChildren(w,"validate",f);Reflect.apply([].push,b,I)}}return b.length==1?b[0]:b.length>1?Promise.all(b).then(w=>{let f=[];return w.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(f=[...f,...I.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>d?.setRule(g),l.setNameValidateRules=(g,b=!1)=>{const v=g[r];if(v&&d?.setRule(v),b){const h={name:w=>Reflect.ownKeys(g).includes(w)};s.emitToChildren(h,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&d?.clear();let b=null;if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;b={name:h=>h?v.indexOf(h)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const h=v.include;b={name:w=>w?h.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const h=v.exclude;b={name:w=>w?h.indexOf(w)===-1:!1}}else b={name:"*"}}b&&s.emitToChildren(b,"clearValidate",!1)};const u=new br(l);l[fa]=u;const m=wt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sa()).forEach(g=>{u.on(g,b=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ua()).forEach(g=>{u.on(g,b=>{m("reset")})}),t.onUnmounted(()=>{s.destroy(),l[be]=void 0,d.destroy(),l[qe]=void 0,u.destroy(),l[fa]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(g,...b)=>{Reflect.apply(u.emit,u,[g,...b])},onEvent:(g,b)=>{Reflect.apply(u.on,u,[b])},offEvent:(g,b)=>{Reflect.apply(u.off,u,[b])}}}function pa(e,n,a,o,l){const r={},i=n??"",s={getValue(){const u=e.getForSelf("modelValue");return u?u[i]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,i):!1}};a.fieldName=i,a.validateHandler={getValue(u){return s.getValue()}};const c=qt({},l,a);r.validate=(u=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let p=!1,E=!1;if(Array.isArray(u)&&u.indexOf(i)!==-1)E=!0,p=!0;else if(u&&typeof u=="object"){const g=u;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),E=!0,p=g.deep??!1}else typeof u=="boolean"&&(p=u),E=!0;if(E){const g=c?.validate();m.push(g)}if(p){let g=null;const b={deep:!1};if(u===!0)g={name:"*"};else if(Array.isArray(u)&&u.length>0){const v=u;g={name:h=>h?v.indexOf(h)!==-1:!1}}else if(u!=null&&typeof u=="object"){const v=u;if(Array.isArray(v.include)&&v.include.length>0){const h=v.include;g={name:w=>w?h.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const h=v.exclude;g={name:w=>w?h.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const v=d.emitToChildren(g,"validate",b);Reflect.apply([].push,m,v)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let b=[];return g.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(b=[...b,...v.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=u=>c?.setRule(u),r.setNameValidateRules=u=>{const m=u[i];m&&c?.setRule(m)};const d=Mt(null,o,i,r);return{broadcast:d,validateSchema:c}}const Se=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e,n)}px`:"";function ue(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const o=Number(e);return isNaN(o)?0:o}const Ye="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function In(e,n,a={},o=!0,l=-1,r=-1,i=0,s=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=ue(a.footerHeight??n.footerHeight),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ue(c,r):e.height=ue(r)-ue(i,r)-ue(s,r),e.width=ue(a.width??n.width??0,l)}}function ya(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ue(l.top),o.safeAreaBottom=ue(l.bottom),o.safeAreaLeft=ue(l.left),o.safeAreaRight=ue(l.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;In(o,r,n,!0,i,s,c,d);const u=t.reactive(o),m=e.getForParent(Ye);m&&(o.height=_t(e,m),o.width=Ht(e,m),t.watch([()=>m.height,()=>m.width,()=>m.contentPadding,()=>m.headerMounted,()=>m.footerMounted],()=>{u.height=_t(e,m),u.width=Ht(e,m)}));const p=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,g,b=-1,v=-1,h=0,w=0])=>{In(u,g,n,p,b,v,h,w)}),e.set(Ye,u),u}function jt(e){return e.get(Ye)}function St(e,n){if(n=n??e.get(Ye),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function vt(e,n){if(n=n??e.get(Ye),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function _t(e,n){if(n=n??e.get(Ye),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=St(e,n),o=vt(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Ht(e,n){return n=n??e.get(Ye),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Cr(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function kr(e){return!!e.getForParent(Ye)}var We=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(We||{});function Bn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,a=1,o){const l=ze();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(Bn(c,o))return c}const i=e.value;return Bn(i,o)?i:null}):t.computed(()=>{const r=e.value;return Bn(r,o)?r:l?.get(n)})}function $e(e){return Ne(e,"readonly",0,function(a){return oe(a)})}function De(e){return Ne(e,"disabled",0,function(a){return oe(a)})}function ie(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,i=>{if(typeof a=="function"){const s=a(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const ba=new Map,Kt=new Map;let An=null;function Tr(e){An=e}function wa(e,n,a){if(a){let o=Kt.get(a);o||(o=new Map,Kt.set(a,o)),o.set(e,n)}else ba.set(e,n)}function Re(e,n,a){!a&&An&&(a=An(e)??void 0);let o=null;if(a){let l=Kt.get(a);l&&(o=l.get(n))}return o||(o=ba.get(n)),o}function $r(e,n){for(let a in e){const o=e[a];wa(a,o,n)}}function Dr(e){Kt.delete(e)}function Er(){return{top:0,left:0,bottom:0,right:0}}function xr(e=0,n=0){if(Je){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ue(e,o)-ue(n,o),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Nr{packages;installers;_version;get version(){return this._version}constructor(n,a,o){this.packages=n,this.installers=a,this._version=o}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=at();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ma(()=>{const s={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=d,this.initPageLayout(s,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=Ze({},Er(),n.safeAreaInset),i=xr(o,l),s=Ze({},i.pageLayout,n.pageLayout);a=a??at(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){Tr(n)}setAPI(n,a,o){wa(n,a,o)}getAPI(n,a,o){return Re(n,a,o)}batchSetAPI(n,a){$r(n,a)}clearScopeAPI(n){Dr(n)}getRootDomain(){return at()}}const Vr=[k.ElAffix,k.ElAlert,k.ElAutocomplete,k.ElAutoResizer,k.ElAvatar,k.ElBacktop,k.ElBadge,k.ElBreadcrumb,k.ElBreadcrumbItem,k.ElButton,k.ElButtonGroup,k.ElCalendar,k.ElCard,k.ElCarousel,k.ElCarouselItem,k.ElCascader,k.ElCascaderPanel,k.ElCheckTag,k.ElCheckbox,k.ElCheckboxButton,k.ElCheckboxGroup,k.ElCol,k.ElCollapse,k.ElCollapseItem,k.ElCollapseTransition,k.ElColorPicker,k.ElConfigProvider,k.ElContainer,k.ElAside,k.ElFooter,k.ElHeader,k.ElMain,k.ElDatePicker,k.ElDescriptions,k.ElDescriptionsItem,k.ElDialog,k.ElDivider,k.ElDrawer,k.ElDropdown,k.ElDropdownItem,k.ElDropdownMenu,k.ElEmpty,k.ElForm,k.ElFormItem,k.ElIcon,k.ElImage,k.ElImageViewer,k.ElInput,k.ElInputNumber,k.ElLink,k.ElMenu,k.ElSubMenu,k.ElMenuItem,k.ElMenuItemGroup,k.ElPageHeader,k.ElPagination,k.ElPopconfirm,k.ElPopover,k.ElPopper,k.ElProgress,k.ElRadio,k.ElRadioButton,k.ElRadioGroup,k.ElRate,k.ElResult,k.ElRow,k.ElScrollbar,k.ElSelect,k.ElOption,k.ElOptionGroup,k.ElSelectV2,k.ElSkeleton,k.ElSkeletonItem,k.ElSlider,k.ElSpace,k.ElSteps,k.ElStep,k.ElSwitch,k.ElTable,k.ElTableColumn,k.ElTableV2,k.ElTabs,k.ElTabPane,k.ElTag,k.ElTimePicker,k.ElTimeSelect,k.ElTimeline,k.ElTimelineItem,k.ElTooltip,k.ElTransfer,k.ElTree,k.ElTreeSelect,k.ElTreeV2,k.ElUpload],Ir=[k.ElInfiniteScroll,k.ElLoading,k.ElMessage,k.ElMessageBox,k.ElNotification,k.ElPopoverDirective],Br=e=>{Vr.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),Ir.forEach(n=>{e.use(n)})};function te(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const ge={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},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Sa={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},va={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ca=[];for(const e in va)Ca.push(e);function he(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const Ar=Symbol.for("InnerPageScopeKey"),Or=(e,n)=>({inheritAttrs:!0,props:{...ge,...Sa,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(a,o){const l=Vn(a.name,a);if(l){const d=ya(l,a);he({getPageContentHeight:()=>_t(l,d),getPageContentWidth:()=>Ht(l,d),getPageHeaderHeight:()=>St(l,d),getPageFooterHeight:()=>vt(l,d)});const u=t.inject(Ar,!1);d&&u&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),s=t.getCurrentInstance(),c=(d,u=!1)=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([d,u],[m,p])=>{if(d&&m){const E=t.toRaw(m),g=t.toRaw(d),b=g?Reflect.ownKeys(g):[];(E?Reflect.ownKeys(E):[]).forEach(h=>{b.includes(h)||(g[h]=[])}),c(g)}if(u&&p){const E=t.toRaw(p),g=t.toRaw(u),b=g?Reflect.ownKeys(g):[];(E?Reflect.ownKeys(E):[]).forEach(h=>{b.includes(h)||(g[h]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);c(d)}if(a.pureDataRules){const d=t.toRaw(a.pureDataRules);c(d,!0)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:i}}}),{componentName:Rr,create:Fr,scope:Hm}=te("page"),Lr=Fr(Or(Rr));function Mr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const de=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},On=de(Lr,[["render",Mr]]);function Rn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-i}}const Pr=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const i=ze(),s=i?jt(i):null;s&&(s.headerMounted=!0);const c=t.computed(()=>{const C=e;return{[C]:!0,[`${C}--border`]:l.border,[`${C}--fixed`]:l.fixed,[`${C}--safe-area-inset-top`]:l.safeAreaInsetTop}}),d=l.height!==null&&l.height!==void 0?ue(l.height):null,u=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const L=Oe(l.padding??s.headerPadding);return Object.assign(C,L),d&&(s.headerHeight=d),C.height=s.headerHeight,C.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(L.top??0),C.height=C.height+C.safeAreaTop),C}if(d&&(C.height=d),l.padding){const L=Oe(l.padding);Object.assign(C,L)}return C}),m=t.ref(null),p=()=>{if(s&&m.value&&m.value.offsetParent!==null){if(!o){const C=Rn(m.value);s.headerAllHeight=C.height}return s.headerMounted=!0,!0}return!1};let E=null;t.onMounted(()=>{s&&(xn(p,50,5,50,!0),window.ResizeObserver&&m.value&&(E=new window.ResizeObserver(()=>{p()}),E.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,E&&(E.disconnect(),E=null))});const g=t.computed(()=>{const C={};return u.value.height!==null&&u.value.height!==void 0&&(C.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(C.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(C.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(C.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(C.paddingBottom=`${u.value.bottom}px`),C}),b=t.computed(()=>{const C={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(C.top=`${u.value.safeAreaTop}px`),C}),v=t.computed(()=>{const C={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(C.top=`${u.value.safeAreaTop}px`),C}),h=t.computed(()=>!!l.leftShow),w=t.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),f=t.computed(()=>l.titleShow?l.title||l.titleIcon||r.slots.titleIcon||r.slots.default:!1),I=t.computed(()=>l.rightShow?l.rightText||l.rightIcon||r.slots.rightIcon||r.slots.right:!1),B=t.computed(()=>l.leftIcon),O=t.computed(()=>B.value||r.slots.leftIcon),R=t.computed(()=>l.titleIcon),V=t.computed(()=>l.titleIcon||r.slots.titleIcon),$=t.computed(()=>l.rightIcon),D=t.computed(()=>l.rightIcon||r.slots.rightIcon);function P(){r.emit("back")}function z(){r.emit("click-title")}function S(){r.emit("click-right")}function x(){r.emit("click-right-text")}return{headerBarRef:m,classes:c,styles:g,mHeaderShow:w,leftStyles:b,rightStyles:v,mLeftShow:h,mTitleShow:f,mRightShow:I,mLeftIcon:B,hasLeftIcon:O,mTitleIcon:R,hasTitleIcon:V,mRightIcon:$,hasRightIcon:D,handleLeft:P,handleCenter:z,handleRight:S,handleRightText:x}}}),{componentName:qr,create:zr,scope:jr}=te("header-bar"),_r=zr(Pr(qr,jr,ke.ArrowLeft)),Hr={key:1,class:"fox-header-bar__title"},Kr={key:0,class:"title-text"};function Yr(e,n,a,o,l,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,ref:"headerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[1]||(n[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",Hr,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",Kr,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[3]||(n[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const Ln=de(_r,[["render",Yr]]);function Wr(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=ze(),i=r?jt(r):null,s=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${o.align}`]:!0,[`${g}--border`]:o.border,[`${g}--fixed`]:o.fixed,[`${g}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ue(o.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const b=Oe(o.padding??i.footerPadding);return Object.assign(g,b),c&&(i.footerHeight=c),g.height=i.footerHeight,g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.height=g.height+g.safeAreaBottom,g.bottom=g.safeAreaBottom+(b.bottom??0)),g}if(c&&(g.height=c),o.padding){const b=Oe(o.padding);Object.assign(g,b)}return g}),u=t.ref(null),m=()=>{if(i&&u.value&&u.value.offsetParent!==null){if(!a){const g=Rn(u.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{i&&(xn(m,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{m()}),p.observe(u.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const E=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Se(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Se(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Se(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Se(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Se(d.value.bottom)),g});return{footerBarRef:u,classes:s,styles:E}}}}const{componentName:Ur,create:Gr,scope:Km}=te("footer-bar"),Xr=Gr(Wr(Ur));function Zr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"footerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Mn=de(Xr,[["render",Zr]]);function Jr(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=ze(),l=t.computed(()=>({[e]:!0})),r=o?jt(o):null,i=t.computed(()=>{const d={};if(o&&r){if(a.padding){const E=Oe(a.padding);Object.assign(r.contentPadding,E)}const u=St(o,r),m=vt(o,r);let p="";if(r.contentHeight?p=`${r.contentHeight}`:p=`${r.height}px`,r.contentPadding,d.height=p,r.contentPadding.top||u>0){const E=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${u+E}px`}if(r.contentPadding.bottom||m>0){const E=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${m+E}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const u=Oe(a.padding);u.left&&(d.paddingLeft=`${u.left}px`),u.top&&(d.paddingTop=`${u.top}px`),u.right&&(d.paddingRight=`${u.right}px`),u.bottom&&(d.paddingBottom=`${u.bottom}px`)}return d}),s=t.ref(null),c=()=>{if(r&&s.value){const d=Fn(s.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>St(o),()=>vt(o)],([])=>{c()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:Qr,create:ei,scope:Ym}=te("content"),ti=ei(Jr(Qr));function ni(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Pn=de(ti,[["render",ni]]),lt="GroupStateKey",ka=Symbol.for("GroupScopeKey");function Yt(){return t.inject(ka,!1)}function Wt(e=!0){t.provide(ka,e)}function oi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Dn(l)||(e[o]=l)})}function ai(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};oi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(lt,r),r}function qn(e,n,a=-1,o=-1,l=!1,r,i,s){const c=e.get(lt);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const u=ue(r),m=ue(i);s||(s=d.type??"grid");const p=()=>{const E=n===""||n===-1,g=ue(n);let b=ce(a);const v=ue(o);if(!E){let f=(g-(b-1)*v)/b;for(;m!==-1&&f>m;)b++,f=(g-(b-1)*v)/b;for(;u!==-1&&b>1&&f<u;)b--,f=(g-(b-1)*v)/b}let h=!1;const w=c.layout;w.value.width=n,w.value.column!==b&&(w.value.column=b,h=!0),w.value.gutter!==v&&(w.value.gutter=v,h=!0),w.value.type!==s&&(w.value.type=s,h=!0),h&&t.triggerRef(w)};if(l)p();else{const E=++c.passport;setTimeout(()=>{E===c.passport&&p()},50)}}function Ut(e,n=!1){let a;return n?a=e.getForParent(lt):a=e.get(lt),a.layout}function Gt(e,n=!1){let a;return n?a=e.getForParent(lt):a=e.get(lt),a.order}function Ta(e,n=1){if(n==="stretch")return-1;const a=ce(n);return a===-1?100:100*a/e}function Xt(e,n,a=1,o=0,l){const r={};let i=0;l?i=ue(l):i=Ta(n.column,a),i>0&&(r.width=`${i}%`);const s=Ta(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Zt(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=ce(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=ce(o)%n.column;let i=(e.index+r)%n.column,s=i+l;return s>n.column?(i=0,s=i+l,e.index=e.index+(n.column-i)+l):e.index=e.index+r+l,r>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const $a=Symbol("RollingStateKey");function li(e){t.provide($a,e)}function ri(){return t.inject($a,null)}function zn(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function ii(e){let n=zn(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=zn(a),document.body.removeChild(a)}return n}function si(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const ci={...ge,...Sa,...va};function ui(e,n,a){return{props:ci,emits:["update:collapse"],setup(o,l){const r=Vn(o.name,o,Ca),i=ai(r,{type:o.type}),s=Yt();Wt(!0);const c=o.rollingDisplay?ri():null,d=t.ref(null),u=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>s&&r?Ut(r,!0).value:null),p=t.getCurrentInstance(),E=(A,H=!1)=>{const M=p?.proxy;M&&typeof M.setNameValidateRules=="function"&&M.setNameValidateRules(A,!0,H)};t.watch([()=>o.rules,()=>o.pureDataRules],([A,H],[M,K])=>{if(A&&M){const Y=t.toRaw(M),X=t.toRaw(A),re=X?Reflect.ownKeys(X):[];(Y?Reflect.ownKeys(Y):[]).forEach(Ie=>{re.includes(Ie)||(X[Ie]=[])}),E(X)}if(H&&K){const Y=t.toRaw(K),X=t.toRaw(H),re=X?Reflect.ownKeys(X):[];(Y?Reflect.ownKeys(Y):[]).forEach(Ie=>{re.includes(Ie)||(X[Ie]=[])}),E(X,!0)}},{deep:!0});const g=e,b=t.computed(()=>{const A={};A.height=L.value;const H=s?Gt(r,!0):null;if(m.value&&H){if(m.value.type==="grid"){const M=Zt(H,m.value,o.span,o.offset);Object.assign(A,M)}else if(m.value.type==="flow"){const M=Xt(H,m.value,o.span,o.offset,o.width);Object.assign(A,M)}}else if(o.width){const M=Se(o.width);A.width=M}return A}),v=t.computed(()=>{const A=i.layout.value.type;return A==="grid"||A==="flow"?{[`${g}--${A}`]:!0,[`${g}--${A}-justify-${o.justify}`]:!0,[`${g}--${A}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${A}`]:!0,[`${g}--gutter`]:!0}}),h=t.computed(()=>{if(i.layout.value.type==="grid"){let H="";if(o.columnWidth)H=`repeat(auto-fill, ${o.columnWidth})`;else{const M=si($.value,i.layout.value.column,i.layout.value.gutter);H=`repeat(${i.layout.value.column}, ${M})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":H}}}),w=t.toRef(o,"title"),f=t.toRef(o,"gutter"),I=t.toRef(o,"column"),B=t.computed(()=>s||u.value?!0:oe(o.isWrap)),O=[],R=A=>{O.push(A)},V=()=>{let A=O.length;O.splice(0,A)},$=t.ref(-1),D=A=>{const H=Fn(A).width;H>0&&H!==$.value&&($.value=H)};qn(r,$.value,I.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([$,I,f],([A,H,M])=>{i.order.index=0,qn(r,A,H,M,!1,o.minItemWidth,o.maxItemWidth,o.type)});const P=t.computed(()=>N.value?o.expandText??"":o.collapseText??""),z=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),S=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),x=t.ref(),C=t.ref(),L=t.computed(()=>q.value||Se(o.height)||""),N=t.ref(!1),q=t.ref(""),T=t.ref(!1);let F=-1;const _=(A,H=!0)=>{const M=x.value;if(M&&N.value!==A){if(F=F===-1?ii(M):F,T.value=!0,H)if(M.style["will-change"]="height",M.ontransitionend=function(){M.ontransitionend=null,this.style["will-change"]="auto",A||(q.value="",T.value=!1)},A){let K=0;o.collapseHeight?K=o.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(K=C.value.offsetHeight),q.value=`${F}px`,t.nextTick(()=>{q.value=`${K}px`})}else q.value=`${F}px`;else if(A){let K=0;o.collapseHeight?K=o.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(K=C.value.offsetHeight),q.value=`${K}px`}else T.value=!1,q.value=`${F}px`;N.value=A,l.emit("update:collapse",A)}};t.watch(()=>o.collapse,A=>{_(A)});const U=()=>{J()},J=A=>{A=A??!N.value,_(A)};he({toggleCollapse:J,doLayout:()=>{O[0]&&(D(O[0]),qn(r,$.value,I.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let le=null,se=!0;const Z=A=>{if(o.rules){const H=t.toRaw(o.rules);E(H)}if(o.pureDataRules){const H=t.toRaw(o.pureDataRules);E(H,!0)}if(Je&&(A&&_(oe(o.collapse),!1),o.autoLayout&&Array.isArray(O)&&O.length>0)){const H=O[0];D(H),window.ResizeObserver&&(le=new window.ResizeObserver(()=>{D(H)}),le.observe(H))}},ne=()=>{le?.disconnect(),le=null},j=!u.value||c?.acquire();j&&(d.value=u.value?!0:null),t.onMounted(()=>{if(j&&(Z(se),se=!1),u.value&&c){let A=null,H=c.initialHeight;c.observe(x.value,M=>{if(M!==d.value)if(M)d.value=!0,N.value||(q.value=""),A=setTimeout(()=>{A=null,d.value!==!1&&(Z(se),se=!1)},100);else{if(A!==null&&clearTimeout(A),d.value=!1,!N.value)if(se)q.value=c.initialHeight;else{let K=zn(x.value);K<=0?q.value=H:(q.value=`${K}px`,H=q.value)}se||ne()}})}}),t.onUnmounted(()=>{le?.disconnect(),c&&c.unobserve(x.value)});const W=(A="right")=>{const H=[];if(P.value){const Y={class:z.value},X=t.h("span",Y,[P.value]);H.push(X)}const M={class:S.value},K=a(o.collapseIcon,M);return K&&H.push(K),H.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${A}`]:!0},onClick:U},H):null},G=(A,H,M,K)=>{const Y={...v.value};return H===0&&(Y[`${g}__first`]=!0),M>=K-1&&(Y[`${g}__last`]=!0),t.h("div",{ref:R,key:`${H}`,class:Y,style:h.value},A)};return()=>{if(u.value&&d.value!==!0){const Y=o.tag||"div";return t.h(Y,{ref:x,prop:o.name,class:{[`${g}`]:!0,"is-collapse":T.value},style:b.value},[])}i.order.index=0;const A=[];let H=0;if(l.slots.header){const Y={key:`${H++}`,ref:C,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},X=t.h("div",Y,[l.slots.header()]);A.push(X)}else{const Y=[],X=o.collapsePosition==="left";if(X&&o.showCollapse){const re=W("left");re&&Y.push(re)}if(w.value){if(o.showMark){const fe={class:{[`${g}__header-mark`]:!0}};o.markColor&&(fe.style={background:o.markColor});const Ie=t.h("div",fe);Y.push(Ie)}const re=t.h("div",{class:{[`${g}__header-title`]:!0}},[w.value]);Y.push(re)}if(l.slots.toolbar&&Y.push(l.slots.toolbar()),!X&&o.showCollapse){const re=W("right");re&&Y.push(re)}if(Y.length>0){const re={key:`${H++}`,ref:C,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},fe=t.h("div",re,Y);A.push(fe)}}V();const M=l.slots.default?l.slots.default():[],K=i.layout.value.type;if(K==="grid"){const Y=G(M,H++,0,M.length);A.push(Y)}else if(K==="flow"){const Y=G(M,H++,0,M.length);A.push(Y)}else for(let Y=0;Y<M.length;Y++){const X=M[Y],re=G([X],H++,Y,M.length);A.push(re)}if(B.value){const Y=o.tag||"div";return t.h(Y,{ref:x,prop:o.name,class:{[`${g}`]:!0,"is-collapse":T.value},style:b.value},[A])}else return A}}}}const{componentName:di,create:fi,scope:mi}=te("group"),jn=fi(ui(di,mi,(e,n)=>(e=e??ke.ArrowUp,t.h(k.ElIcon,n,{default:()=>[t.h(e)]}))));function hi(e){return e===window}const gi=/matrix\((.+)\)/,Da=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(hi(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,i=0,s=0,c=0;for(l=n;l!==document;){i+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const u=gi.exec(d);if(u){let p=u[1].split(/\s*,\s*/);p.length==6&&(s+=Number(p[4]),c+=Number(p[5]))}}l=l.parentNode}return a-=r,o-=i,a+=s,o+=c,{x:a,y:o}};function pi(e){return e===window}const Ue=e=>{const n=t.unref(e);if(pi(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class yi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class bi{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new yi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Ea=new bi,xa={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:wi,create:Si}=te("price"),vi=Si({props:{...xa},setup(e){const n=t.computed(()=>({[wi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Be(e.price)==0?"":Ft(e.price,e.decimalLength,!0,ce(e.digits),e.separator)),l=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),Ci=["innerHTML"],ki=["innerHTML"];function Ti(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ci)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ki)):t.createCommentVNode("",!0)],2)}const Jt=de(vi,[["render",Ti]]),{componentName:Qt,create:$i}=te("hint-text"),Di=$i({components:{Price:Jt},props:{...xa,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.ref(!0),i=t.ref({x:0,y:0}),s=t.ref({x:0,y:0}),c=t.ref(0),d=t.ref(0),u=t.ref(e.placement),m=t.computed(()=>({[Qt]:!0})),p=t.ref(null),E=(V,$,D=10)=>{if(!Je||$===!1||!V)return;r.value=!0;const P=Ue(e.reference);c.value=P.width,d.value=P.height,setTimeout(()=>{if(!p.value||!e.reference||e.reference.offsetParent===null)return;const z=Da(e.reference),S=document.documentElement.clientWidth||document.body.clientWidth,x=p.value.offsetWidth,C=p.value.offsetHeight;z.y-C>=0?(u.value="top",i.value.y=z.y-C-10-4,s.value.y=C):(u.value="bottom",i.value.y=z.y+d.value+10,s.value.y=-10);const L=z.x+x-S;L<0?(i.value.x=z.x,s.value.x=20):(i.value.x=z.x-L,s.value.x=L+20),r.value=!1},D)},g=wt(()=>{E(e.message,e.visible)},10),b=t.computed(()=>e.visible&&v.value),v=t.ref(!0),h=wt(V=>{const $=V[0];$&&(v.value=$.isIntersecting)},10),w=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([V,$])=>{E(V,$)}),t.onMounted(()=>{E(e.message,e.visible),Ea.watch(e.reference,g),w.observe(e.reference)}),t.onBeforeMount(()=>{Ea.unwatch(e.reference,g),w.unobserve(e.reference),w.disconnect()});const f=t.computed(()=>{const V={"min-width":Se(c.value)};return r.value?V.visibility="hidden":V.transform=`translate(${i.value.x}px, ${i.value.y}px)`,V}),I=t.computed(()=>({[`${Qt}__content`]:!0})),B=t.computed(()=>({})),O=t.computed(()=>({[`${Qt}__arrow`]:!0,[`${Qt}__arrow-${e.placement}`]:!0})),R=t.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:b,tipRef:p,classes:m,styles:f,textClasses:I,textStyles:B,arrowClasses:O,arrowStyles:R}}}),Ei={key:1,class:"text"};function xi(e,n,a,o,l,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Ei,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const Ct=de(Di,[["render",xi]]);class Na{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const _n={},Ni=new Na,rt=new Map,Hn=e=>{if(e){const n=document.getElementById(e);rt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of rt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}rt.clear()}},Vi=e=>{const n=document.getElementById(e.id);if(n){const a=rt.get(e.id);a?e={..._n,...a,...e}:e={..._n,...e};const o=t.createVNode(Ct,e);return t.render(o,n),e.id}},Ii=e=>{e.unmount=Hn;let n;if(e.id){if(n=e.id,rt.has(n))return Vi(e)}else n=`hinttext_${Ni.get()}`;e={..._n,...e},e.id=n,rt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ct,e);return t.render(o,a),document.body.appendChild(a),n},Bi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},en={show(e,n,a={},o=!0){return o&&Hn(),Bi(n),Ii({...a,message:n,reference:e})},hide(e){Hn(e)},install(e){e.config.globalProperties.$hintText=en}},{componentName:Va,create:Ai}=te("item"),Oi=Ai({inheritAttrs:!0,props:{...ge,...Ce},emits:["appear","disappear"],setup(e,n){const a=e.prop??n.attrs.name;we({componentName:Va,validate:!1},a);const o=ze(),l=Yt();Wt(!1);const r=t.computed(()=>l&&o?Ut(o,!1).value:null),i=Va,s=t.ref(null),c=t.computed(()=>{const Z={[i]:!0,[`${i}__gutter`]:r.value&&r.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(Z[e.errorMarkClass]=!!P.value,Z[e.warnMarkClass]=!!$.value,Z[e.infoMarkClass]=!!R.value,typeof s.value=="function"){const ne=s.value(a);Z[ne]=!0}else if(typeof s.value=="string"){const ne=s.value;Z[ne]=!0}return Z}),d=t.computed(()=>{const Z={},ne=l&&o?Gt(o,!1):null;if(r.value&&ne)if(r.value.type==="grid"){const j=Zt(ne,r.value,e.span,e.offset);Object.assign(Z,j)}else if(r.value.type==="flow"){const j=Xt(ne,r.value,e.span,e.offset,e.width);Object.assign(Z,j)}else return e.width&&(Z.width=Se(e.width)),Z;else e.width&&(Z.width=Se(e.width));return Z}),u=t.ref(null),m=t.computed({get:()=>u.value??oe(e.isRequired),set:Z=>{u.value=Z}}),p=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),E=Ne(t.toRef(e,"labelPosition"),"labelPosition",We.Near),g=t.computed(()=>E&&E.value==="top"?"top":E&&E.value==="right"?"right":"left"),b=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),v=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),h=Ne(t.toRef(e,"labelWidth"),"labelWidth",We.Near),w=t.computed(()=>h&&h.value?{width:Se(h.value)}:{}),f=t.computed(()=>({"label--string":!0,"label--required":m.value})),I=t.computed(()=>({content:!0,[e.contentClass]:!0})),B=t.computed(()=>({...e.contentStyle})),O=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});he({setRequired(Z){m.value=Z},setErrorTip(Z){O.errorTip=Z},setErrorIcon(Z){O.errorIcon=Z},setWarnTip(Z){O.warnTip=Z},setWarnIcon(Z){O.warnIcon=Z},setInfoTip(Z){O.infoTip=Z},setInfoIcon(Z){O.infoIcon=Z},setCustomClassName(Z){s.value=Z}});const R=t.computed(()=>e.infoTip||O.infoTip),V=t.computed(()=>e.infoIcon||O.infoIcon),$=t.computed(()=>e.warnTip||O.warnTip),D=t.computed(()=>e.warnIcon||O.warnIcon),P=t.computed(()=>e.errorTip||O.errorTip),z=t.computed(()=>e.errorIcon||O.errorIcon),S=t.computed(()=>P.value?"error":$.value?"warn":R.value?"info":""),x=t.computed(()=>S.value.length>0),C=t.computed(()=>S.value==="error"?P.value:S.value==="warn"?$.value:S.value==="info"?R.value:""),L=t.computed(()=>S.value==="error"?z.value:S.value==="warn"?D.value:S.value==="info"?V.value:null),N=t.computed(()=>{let Z={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?Z[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?Z[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(Z[`${e.infoClass}`]=!0),Z}),q=t.computed(()=>{let Z={};return E&&E.value==="top"||!p.value?Z["padding-left"]="0px":h&&h.value&&(Z["padding-left"]=Se(h.value)),Z}),T=()=>t.h(L.value,{width:12,height:12}),F=t.computed(()=>n.slots.fixedTip),_=t.computed(()=>({[`${i}__fixed-tip`]:!0})),U=t.ref();let J="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([Z,ne,j,W])=>{U.value&&(Z&&!ye(ne)?J?en.show(U.value,ne,{...W,id:J,type:j},!0):J=en.show(U.value,ne,{...W,type:j},!0):en.hide(J))});let Q=null;const le=()=>{Q||!U.value||(Q=new IntersectionObserver(Z=>{let ne=!1;for(let j of Z)if(j.intersectionRatio>0){ne=!0,ne&&n.emit("appear",j);break}ne||n.emit("disappear")}),Q.observe(U.value))},se=()=>{!Q||!U.value||(Q.unobserve(U.value),Q=null)};return t.watch(()=>oe(e.appearListen),Z=>{Z?le():se()}),t.onMounted(()=>{oe(e.appearListen)&&le()}),t.onUnmounted(se),{classes:c,styles:d,mainClasses:b,hasLabel:p,labelClasses:v,labelStyles:w,labelStringClasses:f,contentClasses:I,contentStyles:B,contentRef:U,hasTip:x,mTip:C,mIcon:L,renderIcon:T,tipClasses:N,tipStyles:q,hasFixedTip:F,fixedTipClasses:_}}}),Ri=["prop"],Fi={key:0,class:"fox-item__tip--icon"},Li={class:"fox-item__tip--text"};function Mi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",Fi,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",Li,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ri)}const pe=de(Oi,[["render",Mi]]);function Pi(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=ze(),r=Yt();Wt(!1);const i=t.computed(()=>r&&l?Ut(l,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const u={},m=r&&l?Gt(l,!1):null;if(i.value&&m)if(i.value.type==="grid"){const p=Zt(m,i.value,a.span,a.offset);Object.assign(u,p)}else if(i.value.type==="flow"){const p=Xt(m,i.value,a.span,a.offset,a.width);Object.assign(u,p)}else return a.width&&(u.width=Se(a.width)),u;else a.width&&(u.width=Se(a.width));return u});return()=>{const u={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",u,o.slots.default()):t.h("div",u)}}}}const{componentName:qi,create:zi,scope:Um}=te("slot-item"),Kn=zi(Pi(qi));function ji(e,n){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(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),i=ze(),s=Yt();Wt(!1);const c=t.computed(()=>{const d={};if(s&&i){const u=Ut(i,!1),m=Gt(i,!1);if(u.value&&m)if(u.value.type==="grid"){const p=Zt(m,u.value,a.span,a.offset);Object.assign(d,p)}else if(u.value.type==="flow"){const p=Xt(m,u.value,a.span,a.offset,a.width);Object.assign(d,p)}else a.width&&(d.width=Se(a.width))}else a.width&&(d.width=Se(a.width));return d});return()=>{const d=[];if(o.slots.default){const m=o.slots.default();if(a.divide)for(let p=0;p<m.length;p++){if(p>0){const E=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(E)}d.push(m[p])}else Reflect.apply([].push,d,m)}const u={class:r.value,style:c.value};return t.h("div",u,d)}}}}const{componentName:_i,create:Hi,scope:Gm}=te("row-item"),Yn=Hi(ji(_i)),je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(o=>{typeof o=="string"&&o.indexOf("data-fox")!==0&&(n[o]=e[o])}),n},Ia={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Ki(e,n,a){return{props:{...ge,...Ce,...Ia},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__readonly`]:i.value})),g=S=>{m.value=S,s("update:modelValue",S),s("input",S)},b=S=>{s("change",S)};let v=ie(o,"hintText"),h=t.ref(!1);const w=S=>{let C=S.target.value;u.value=!0,ye(v.value)||(h.value=!0),s("focus",C,S)},f=S=>{setTimeout(()=>{h.value&&(h.value=!1),u.value=!1},0);let C=S.target.value;o.maxLength&&C.length>Number(o.maxLength)&&(C=C.slice(0,Number(o.maxLength))),s("blur",C,S)},I=()=>{s("clear","")},B=t.ref(!1);let O=null;const R=()=>{o.showTooltip&&B.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{B.value=!0},150))},V=()=>{O&&(clearTimeout(O),B.value=!1,O=null)},$=t.computed(()=>B.value||h.value),D=t.computed(()=>B.value?m.value:v.value),P=t.computed(()=>Be(o.unit)>0),z=t.ref();return he({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const x={...je(l.attrs),ref:z,class:E.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:I,onChange:b,onInput:g,onFocus:w,onBlur:f,onMouseover:R,onMouseleave: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:P.value&&(C.suffix=()=>[o.unit]);const L=[],N=t.h(k.ElInput,x,C);L.push(N);const q={default:()=>L};l.slots.default&&(q.label=l.slots.default),l.slots.default&&(q.fixedTip=l.slots.fixedTip);const F={...ve(o,Ia),hintText:D.value,hintVisible:$.value,prop:`${o.prop}_item`};return t.h(a,F,q)}}}}const{componentName:Yi,create:Wi,scope:Ui}=te("input-item"),Wn=Wi(Ki(Yi,Ui,pe)),Un={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Ba=2e3;let Aa=Ba;const Gi=(e,n)=>({components:n,props:{...Un},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),i=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==Ba&&(Aa=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++Aa,a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},u=b=>{o("click-pop",b)},m=b=>{b.stopPropagation(),o("click-close-icon",b),o("update:visible",!1)},p=b=>{o("click-overlay",b),a.closeOnClickOverlay&&o("update:visible",!1)},E=b=>{o("opend",b)},g=b=>{o("closed",b)};return t.watch(()=>a.visible,b=>{a.visible?c():d()}),t.watchEffect(()=>{l.closed=a.closeable}),{...t.toRefs(l),popStyle:i,transitionName:s,classes:r,onClick:u,onClickCloseIcon:m,onClickOverlay:p,onOpened:E,onClosed:g}}}),Oa={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}},Gn={...Un,...Oa,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},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let kt=0;const Ra="fox-overflow-hidden",Fa=()=>Je?document.body:{classList:[]},Xi=e=>[()=>{if(e())try{!kt&&Fa().classList.add(Ra),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&Fa().classList.remove(Ra)}catch{}}],Zi={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Ji,create:Qi}=te("overlay"),es=Qi({props:{...Zi},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Xi(()=>e.lockScroll),l=t.computed(()=>({[Ji]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?a():o()}),{classes:l,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ts(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Tt=de(es,[["render",ts]]),ns=["aria-labelledby"],os=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),as=[os],ls=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},as,14,ns))}}),rs=["aria-labelledby"],is=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),ss=[is],cs=t.defineComponent({__name:"JoySmile",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},ss,14,rs))}}),us=["aria-labelledby"],ds=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),fs=[ds],ms=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},fs,14,us))}}),hs=["aria-labelledby"],gs=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ps=[gs],ys=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ps,14,hs))}}),{componentName:bs,create:ws}=te("popup"),Ss=ws(Gi(bs,{[Tt.name]:Tt,Close:ms}));function vs(e,n,a,o,l,r){const i=t.resolveComponent("fox-overlay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const _e=de(Ss,[["render",vs]]),La=10;function Cs(e,n){return e>n&&e>La?"horizontal":n>e&&n>La?"vertical":""}function Xn(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),i=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(0),u=t.ref(""),m=()=>u.value==="vertical",p=()=>u.value==="horizontal",E=()=>{i.value=0,s.value=0,c.value=0,d.value=0,u.value="",a.value=0};return{move:v=>{const h=v.touches[0];i.value=h.clientX-e.value,s.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY,c.value=Math.abs(i.value),d.value=Math.abs(s.value),o.value=Date.now()-a.value,u.value||(u.value=Cs(c.value,d.value))},start:v=>{E(),e.value=v.touches[0].clientX,n.value=v.touches[0].clientY,a.value=Date.now()},reset:E,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:i,deltaY:s,offsetX:c,offsetY:d,direction:u,isVertical:m,isHorizontal:p}}let Ma=36;function ks(){return Ma}function Ts(e){Ma=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Zn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function $s(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function et(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Pa(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Ds=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Es(){const e=t.getCurrentInstance();return new Ds(e.proxy)}function qa(e,n,a){const o=Fe(e,n),l=Fe(e,a);if(o!==l)return!1;const r=et(e,n),i=et(e,a);return r===i}function xs(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const s=n[i];let d=a[i].findIndex(u=>{if(r==="text")return Fe(e,u)===s;if(r==="value"){let m=et(e,u);return m==null&&(m=Fe(e,u)),m===s}else if(r==="item")return qa(e,u,s)});if(d==-1)break;l.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){const c=n[s];let d=i.findIndex(m=>{if(r==="text")return Fe(e,m)===c;if(r==="value"){let p=et(e,m);return p==null&&(p=Fe(e,m)),p===c}else if(r==="item")return qa(e,m,c)});if(d==-1)break;l.push(d);const u=Zn(e,i[d]);if(!Array.isArray(u))break;i=u}}return l}function za(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const s=a[i];let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[c],u=Fe(e,d);if(l.texts.push(u),l.items.push(d),r==="text")l.values.push(u);else if(r==="value"){let m=et(e,d);m==null&&(m=u),l.values.push(m)}else l.values.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],u=Fe(e,d),m=Object.assign({},d);if(m.children=null,l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let p=et(e,d);p==null&&(p=u),l.values.push(p)}else l.values.push(m);if(!Array.isArray(d.children))break;i=d.children}}return l}function ja(e){return{text:e,value:e}}const Ns=15,Vs=300,Is=200,{create:Bs}=te("picker-column");function As(e){e.stopPropagation()}function Os(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&As(e)}const Rs=Bs({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},...Oa},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${ce(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=V=>V>=m.currIndex+8||V<=m.currIndex-8,s=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-m.rotation*V}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),u=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=t.toRef(e,"source"),E=V=>Fe(e,V),g=V=>et(e,V),b=Xn(),v=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},h=(V,$=!1,D=!1)=>{if(m.currIndex=V,$){const P=()=>{m.moving=!1,n("update:modelValue",V),n("change",V)};D?m.transitionEndTrigger=P:P()}},w=(V,$,D)=>{let P=V+m.startDistance;if($==="end"){const z=-(p.value.length-1)*e.itemHeight;P<z&&(P=z,(!D||D<=0)&&(D=e.swipeDuration)),P>0&&(P=0,(!D||D<=0)&&(D=e.swipeDuration));let S=Math.abs(Math.round(-P/e.itemHeight));const x=-S*e.itemHeight,C=`${(S+1)*m.rotation}deg`,L=D?D>0:!1;h(S,!0,L),f(x,$,D,C)}else{let z=(-P/e.itemHeight+1)*m.rotation;const S=(p.value.length+1)*m.rotation,x=0;if(z=Math.min(Math.max(z,x),S),e.threeDimensional&&(z<x||z>S))return;f(P,null,void 0,`${z}deg`)}},f=(V=0,$,D=Is,P)=>{$==="end"?m.scrollTime=D:m.scrollTime=0,m.deg=P,m.scrollDistance=V},I=(V,$)=>(V=Math.abs(V/$)/.003*(V<0?-1:1),V),B=V=>{if(!e.readonly){if(m.moving){const $=u.value,{transform:D}=window.getComputedStyle($);m.scrollDistance=+D.slice(7,D.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,b.start(V),m.transitionEndTrigger=null}},O=V=>{e.readonly||(m.moving=!0,b.move(V),b.isVertical()&&(m.moving=!0,Os(V,!0)),w(b.deltaY.value,"",0))},R=()=>{if(e.readonly)return;const V=b.deltaY.value,$=b.duration.value;if($<Vs&&Math.abs(V)>Ns){const P=I(V,$);w(P,"end",e.swipeDuration)}else w(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(m.currIndex!==V){m.currIndex=V;const $=-V*e.itemHeight;w($)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;w(V)}),{classes:a,styles:o,contentClasses:l,source:p,itemText:E,itemValue:g,...t.toRefs(m),roller:u,getItemText:Fe,onTouchStart:B,onTouchMove:O,onTouchEnd:R,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:d,stopMomentum:v}}}),Fs={key:1,class:"fox-picker__item-tile"};function Ls(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Fs,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const _a=de(Rs,[["render",Ls]]),{create:Ms,componentName:Ps,scope:qs}=te("picker"),zs=Ms({components:{[_a.name]:_a,[_e.name]:_e},props:{...Gn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=Ee.useFoxI18n(qs),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(ks());t.watch(()=>e.visible,D=>{D&&i.value<=0&&setTimeout(()=>{if(r.value){const P=Ue(r.value);i.value=P.height,Ts(i.value)}},50)});const s=t.computed(()=>({[Ps]:!0})),c=Es(),d=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([D,P])=>{if(D){let z=await c.load("select",D,P);if(z.length>0){let S=z[0];if(Array.isArray(S)){if(typeof S[0]=="string"){let x=z,C=[];x.forEach(L=>{let N=L.map(q=>ja(q));C.push(N)}),u.value=C}else u.value=z;d.value="multipleColumn"}else if(typeof S=="string"){let x=z,C=[],L=x.map(N=>ja(N));C.push(L),u.value=C,d.value="singleColumn"}else{const x=Zn(e,S);Array.isArray(x)?(d.value="cascade",u.value=[z]):(d.value="singleColumn",u.value=[z])}}else u.value=[]}},{immediate:!0});const m=t.ref([]),p=t.ref(e.modelValue),E=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([D,P])=>{let z=xs(e,D,P,d.value);if(!Pe(z,g.value)){g.value=z;let S=za(e,z,P,d.value);S&&(m.value=S.texts,n("update:text",m.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,D=>{b.value=D});const v=D=>{let P=Pa(e,D);return Ae(P)?P.defaultIndex??0:0},h=D=>{if(e.readonly===!0)return!0;let P=Pa(e,D);return Ae(P)?P.readonly??!1:!1},w=(D,P)=>{let z=g.value;z[D]=P;for(let x=0;x<D;x++)z[x]==null&&(z[x]=v(x));if(d.value==="cascade")for(let x=D+1;x<I.value.length;x++){let C=v(x);x<z.length?z[x]=C:z.push(C)}else for(let x=z.length;x<I.value.length;x++){let C=v(x);z.push(C)}g.value=z;let S=za(e,z,u.value,d.value);S&&(m.value=S.texts,p.value=S.values,E.value=S.items)},f=D=>D<g.value.length?g.value[D]:v(D),I=t.computed(()=>{if(u.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return u.value;let D=[],P=0,z=u.value[0],S=0;for(;;){let x=z.map(N=>{let q=Object.assign({},N);return $s(e,q,null),q});D.push(x),P>=g.value.length?S=0:S=g.value[P],(S<0||S>=z.length)&&(S=0);let C=z[S];const L=Zn(e,C);if(!Array.isArray(L))break;z=L,P++}return D}),B=t.computed(()=>ce(+e.visibleItemCount-1)/2*i.value);return{...l,pickerLineRef:r,classes:s,columns:I,dataType:d,show:b,itemHeight:i,top:B,isReadonly:h,getIndex:f,change:(D,P)=>{w(D,P)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let D=u.value.length-1;for(;D>=0&&!(g.value[D]===null||g.value[D]===void 0);D--);if(D>=0&&w(D,0),d.value==="singleColumn"){let P=p.value.length>0?p.value[0]:"",z=E.value.length>0?E.value[0]:null;e.readonly||(n("update:modelValue",P),n("update:text",m.value),n("change",P,z)),n("confirm",P)}else e.readonly||(n("update:modelValue",p.value),n("update:text",m.value),n("change",p.value,E.value)),n("confirm",p.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),js={class:"fox-picker__bar"},_s={class:"fox-picker__title"},Hs={class:"fox-picker__bar__action"},Ks={class:"fox-picker__column"};function Ys(e,n,a,o,l,r){const i=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",js,[t.createElementVNode("view",_s,t.toDisplayString(e.title),1),t.createElementVNode("view",Hs,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ks,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":u=>e.change(d,u),"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))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const it=de(zs,[["render",Ys]]),Ha={...Gn,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Ws(e,n,a){return{props:{...ge,...Ce,...Ha},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=e,p=t.computed(()=>({[m]:!0})),E=Ne(t.computed(()=>o.textAlign),"textAlign"),g=t.computed(()=>({textAlign:E.value??"right"})),b=ie(o,"modelValue"),v=t.ref([]),h=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),w=t.ref(!1),f=()=>{w.value=!0},I=C=>{w.value=C},B=C=>{b.value=C,s("update:modelValue",C)},O=C=>{v.value=C,Array.isArray(C)&&C.length===0?s("update:text",C[0]):s("update:text",C)},R=(C,L)=>{Array.isArray(L)&&L.length==1?s("change",C,L[0]):s("change",C,L)};let V=ie(o,"hintText"),$=t.ref(!1);const D=C=>{let N=C.target.value;u.value=!0,ye(V.value)||($.value=!0),s("focus",N,C)},P=C=>{setTimeout(()=>{$.value&&($.value=!1),u.value=!1},0);let N=C.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),w.value?setTimeout(()=>{s("blur",N,C)},50):s("blur",N,C)},z=()=>{s("clear","")},S=t.computed(()=>Be(o.unit)>0),x=t.ref();return he({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()}}),()=>{const C={class:p.value,style:g.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,clearable:oe(o.clearable),readonly:!0,value:h.value,onClick:f,onFocus:D,onBlur:P},L={};l.slots.prepend&&(L.prepend=l.slots.prepend),l.slots.append&&(L.append=l.slots.append),l.slots.prefix&&(L.prefix=l.slots.prefix),l.slots.suffix?L.suffix=l.slots.suffix:S.value?L.suffix=()=>[o.unit]:L.suffix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.ArrowDown)});const N=[],q=t.h(k.ElInput,C,L);N.push(q);const T={default:()=>N};l.slots.default&&(T.label=l.slots.default),l.slots.fixedTip&&(T.fixedTip=l.slots.fixedTip);const F=pt(o,Gn);F.disabled=!1,F.readonly=r.value||i.value,F.visible=w.value,F["onUpdate:visible"]=I,F.modelValue=b.value,F.onUpdateModel=B,F.text=v.value,F["onUpdate:text"]=O,F.onClear=z,F.onChange=R;const _=t.h(it,F);T.hide=()=>[_];const J={...ve(o,Ha),hintText:V.value,hintVisible:$.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,J,T)}}}}const{componentName:Us,create:Gs,scope:Xs}=te("select-item"),Jn=Gs(Ws(Us,Xs,pe));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ka={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",i="second",s="minute",c="hour",d="day",u="week",m="month",p="quarter",E="year",g="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(S,x,C){var L=String(S);return!L||L.length>=x?S:""+Array(x+1-L.length).join(C)+S},I={s:f,z:function(S){var x=-S.utcOffset(),C=Math.abs(x),L=Math.floor(C/60),N=C%60;return(x<=0?"+":"-")+f(L,2,"0")+":"+f(N,2,"0")},m:function S(x,C){if(x.date()<C.date())return-S(C,x);var L=12*(C.year()-x.year())+(C.month()-x.month()),N=x.clone().add(L,m),q=C-N<0,T=x.clone().add(L+(q?-1:1),m);return+(-(L+(C-N)/(q?N-T:T-N))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:m,y:E,w:u,d,D:g,h:c,m:s,s:i,ms:r,Q:p}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},B="en",O={};O[B]=w;var R=function(S){return S instanceof P},V=function S(x,C,L){var N;if(!x)return B;if(typeof x=="string"){var q=x.toLowerCase();O[q]&&(N=q),C&&(O[q]=C,N=q);var T=x.split("-");if(!N&&T.length>1)return S(T[0])}else{var F=x.name;O[F]=x,N=F}return!L&&N&&(B=N),N||!L&&B},$=function(S,x){if(R(S))return S.clone();var C=typeof x=="object"?x:{};return C.date=S,C.args=arguments,new P(C)},D=I;D.l=V,D.i=R,D.w=function(S,x){return $(S,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var P=function(){function S(C){this.$L=V(C.locale,null,!0),this.parse(C)}var x=S.prototype;return x.parse=function(C){this.$d=function(L){var N=L.date,q=L.utc;if(N===null)return new Date(NaN);if(D.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var T=N.match(v);if(T){var F=T[2]-1||0,_=(T[7]||"0").substring(0,3);return q?new Date(Date.UTC(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,_)):new Date(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,_)}}return new Date(N)}(C),this.$x=C.x||{},this.init()},x.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==b},x.isSame=function(C,L){var N=$(C);return this.startOf(L)<=N&&N<=this.endOf(L)},x.isAfter=function(C,L){return $(C)<this.startOf(L)},x.isBefore=function(C,L){return this.endOf(L)<$(C)},x.$g=function(C,L,N){return D.u(C)?this[L]:this.set(N,C)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(C,L){var N=this,q=!!D.u(L)||L,T=D.p(C),F=function(ne,j){var W=D.w(N.$u?Date.UTC(N.$y,j,ne):new Date(N.$y,j,ne),N);return q?W:W.endOf(d)},_=function(ne,j){return D.w(N.toDate()[ne].apply(N.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(j)),N)},U=this.$W,J=this.$M,Q=this.$D,le="set"+(this.$u?"UTC":"");switch(T){case E:return q?F(1,0):F(31,11);case m:return q?F(1,J):F(0,J+1);case u:var se=this.$locale().weekStart||0,Z=(U<se?U+7:U)-se;return F(q?Q-Z:Q+(6-Z),J);case d:case g:return _(le+"Hours",0);case c:return _(le+"Minutes",1);case s:return _(le+"Seconds",2);case i:return _(le+"Milliseconds",3);default:return this.clone()}},x.endOf=function(C){return this.startOf(C,!1)},x.$set=function(C,L){var N,q=D.p(C),T="set"+(this.$u?"UTC":""),F=(N={},N[d]=T+"Date",N[g]=T+"Date",N[m]=T+"Month",N[E]=T+"FullYear",N[c]=T+"Hours",N[s]=T+"Minutes",N[i]=T+"Seconds",N[r]=T+"Milliseconds",N)[q],_=q===d?this.$D+(L-this.$W):L;if(q===m||q===E){var U=this.clone().set(g,1);U.$d[F](_),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else F&&this.$d[F](_);return this.init(),this},x.set=function(C,L){return this.clone().$set(C,L)},x.get=function(C){return this[D.p(C)]()},x.add=function(C,L){var N,q=this;C=Number(C);var T=D.p(L),F=function(J){var Q=$(q);return D.w(Q.date(Q.date()+Math.round(J*C)),q)};if(T===m)return this.set(m,this.$M+C);if(T===E)return this.set(E,this.$y+C);if(T===d)return F(1);if(T===u)return F(7);var _=(N={},N[s]=o,N[c]=l,N[i]=a,N)[T]||1,U=this.$d.getTime()+C*_;return D.w(U,this)},x.subtract=function(C,L){return this.add(-1*C,L)},x.format=function(C){var L=this,N=this.$locale();if(!this.isValid())return N.invalidDate||b;var q=C||"YYYY-MM-DDTHH:mm:ssZ",T=D.z(this),F=this.$H,_=this.$m,U=this.$M,J=N.weekdays,Q=N.months,le=function(j,W,G,A){return j&&(j[W]||j(L,q))||G[W].slice(0,A)},se=function(j){return D.s(F%12||12,j,"0")},Z=N.meridiem||function(j,W,G){var A=j<12?"AM":"PM";return G?A.toLowerCase():A},ne={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:D.s(U+1,2,"0"),MMM:le(N.monthsShort,U,Q,3),MMMM:le(Q,U),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:le(N.weekdaysMin,this.$W,J,2),ddd:le(N.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(F),HH:D.s(F,2,"0"),h:se(1),hh:se(2),a:Z(F,_,!0),A:Z(F,_,!1),m:String(_),mm:D.s(_,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:T};return q.replace(h,function(j,W){return W||ne[j]||T.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(C,L,N){var q,T=D.p(L),F=$(C),_=(F.utcOffset()-this.utcOffset())*o,U=this-F,J=D.m(this,F);return J=(q={},q[E]=J/12,q[m]=J,q[p]=J/3,q[u]=(U-_)/6048e5,q[d]=(U-_)/864e5,q[c]=U/l,q[s]=U/o,q[i]=U/a,q)[T]||U,N?J:D.a(J)},x.daysInMonth=function(){return this.endOf(m).$D},x.$locale=function(){return O[this.$L]},x.locale=function(C,L){if(!C)return this.$L;var N=this.clone(),q=V(C,L,!0);return q&&(N.$L=q),N},x.clone=function(){return D.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},S}(),z=P.prototype;return $.prototype=z,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",d],["$M",m],["$y",E],["$D",g]].forEach(function(S){z[S[1]]=function(x){return this.$g(x,S[0],S[1])}}),$.extend=function(S,x){return S.$i||(S(x,P,$),S.$i=!0),$},$.locale=V,$.isDayjs=R,$.unix=function(S){return $(1e3*S)},$.en=O[B],$.Ls=O,$.p={},$})})(Ka);var Zs=Ka.exports;const Le=Ke(Zs);var Ya={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(v){this[b]=+v}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var h=v.match(/([+-]|\d\d)/g),w=60*h[1]+(+h[2]||0);return w===0?0:h[0]==="+"?-w:w}(b)}],m=function(b){var v=s[b];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(b,v){var h,w=s.meridiem;if(w){for(var f=1;f<=24;f+=1)if(b.indexOf(w(f,0,v))>-1){h=f>12;break}}else h=b===(v?"pm":"PM");return h},E={A:[i,function(b){this.afternoon=p(b,!1)}],a:[i,function(b){this.afternoon=p(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[i,function(b){var v=s.ordinal,h=b.match(/\d+/);if(this.day=h[0],v)for(var w=1;w<=31;w+=1)v(w).replace(/\[|\]/g,"")===b&&(this.day=w)}],M:[r,d("month")],MM:[l,d("month")],MMM:[i,function(b){var v=m("months"),h=(m("monthsShort")||v.map(function(w){return w.slice(0,3)})).indexOf(b)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[i,function(b){var v=m("months").indexOf(b)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function g(b){var v,h;v=b,h=s&&s.formats;for(var w=(b=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,D,P){var z=P&&P.toUpperCase();return D||h[P]||a[P]||h[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,x,C){return x||C.slice(1)})})).match(o),f=w.length,I=0;I<f;I+=1){var B=w[I],O=E[B],R=O&&O[0],V=O&&O[1];w[I]=V?{regex:R,parser:V}:B.replace(/^\[|\]$/g,"")}return function($){for(var D={},P=0,z=0;P<f;P+=1){var S=w[P];if(typeof S=="string")z+=S.length;else{var x=S.regex,C=S.parser,L=$.slice(z),N=x.exec(L)[0];C.call(D,N),$=$.replace(N,"")}}return function(q){var T=q.afternoon;if(T!==void 0){var F=q.hours;T?F<12&&(q.hours+=12):F===12&&(q.hours=0),delete q.afternoon}}(D),D}}return function(b,v,h){h.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var w=v.prototype,f=w.parse;w.parse=function(I){var B=I.date,O=I.utc,R=I.args;this.$u=O;var V=R[1];if(typeof V=="string"){var $=R[2]===!0,D=R[3]===!0,P=$||D,z=R[2];D&&(z=R[2]),s=this.$locale(),!$&&z&&(s=h.Ls[z]),this.$d=function(L,N,q){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*L);var T=g(N)(L),F=T.year,_=T.month,U=T.day,J=T.hours,Q=T.minutes,le=T.seconds,se=T.milliseconds,Z=T.zone,ne=new Date,j=U||(F||_?1:ne.getDate()),W=F||ne.getFullYear(),G=0;F&&!_||(G=_>0?_-1:ne.getMonth());var A=J||0,H=Q||0,M=le||0,K=se||0;return Z?new Date(Date.UTC(W,G,j,A,H,M,K+60*Z.offset*1e3)):q?new Date(Date.UTC(W,G,j,A,H,M,K)):new Date(W,G,j,A,H,M,K)}catch{return new Date("")}}(B,V,O),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),P&&B!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var S=V.length,x=1;x<=S;x+=1){R[1]=V[x-1];var C=h.apply(this,R);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}x===S&&(this.$d=new Date(""))}else f.call(this,I)}}})})(Ya);var Js=Ya.exports;const Qs=Ke(Js);var Wa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o,l){var r=o.prototype,i=r.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],d=s%100;return"["+s+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(s){var c=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return u.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(c.$H===0?24:c.$H),p==="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 p}});return i.bind(this)(m)}}})})(Wa);var ec=Wa.exports;const tc=Ke(ec);var Ua={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o,l){var r=o.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},s=function(m,p,E,g,b){var v=m.name?m:m.$locale(),h=i(v[p]),w=i(v[E]),f=h||w.map(function(B){return B.slice(0,g)});if(!b)return f;var I=v.weekStart;return f.map(function(B,O){return f[(O+(I||0))%7]})},c=function(){return l.Ls[l.locale()]},d=function(m,p){return m.formats[p]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,b,v){return b||v.slice(1)})}(m.formats[p.toUpperCase()])},u=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):s(m,"months")},monthsShort:function(p){return p?p.format("MMM"):s(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(m.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},l.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.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(p){return d(m,p)},meridiem:m.meridiem,ordinal:m.ordinal}},l.months=function(){return s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(m){return s(c(),"weekdays",null,null,m)},l.weekdaysShort=function(m){return s(c(),"weekdaysShort","weekdays",3,m)},l.weekdaysMin=function(m){return s(c(),"weekdaysMin","weekdays",2,m)}}})})(Ua);var nc=Ua.exports;const oc=Ke(nc);var Ga={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){var a="week",o="year";return function(l,r,i){var s=r.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(o).add(1,o).date(d),m=i(this).endOf(a);if(u.isBefore(m))return 1}var p=i(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),E=this.diff(p,a,!0);return E<0?i(this).startOf("week").week():Math.ceil(E)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ga);var ac=Ga.exports;const lc=Ke(ac);var Xa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),i=this.year();return r===1&&l===11?i+1:l===0&&r>=52?i-1:i}}})})(Xa);var rc=Xa.exports;const ic=Ke(rc);var Za={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(Za);var sc=Za.exports;const cc=Ke(sc);var Ja={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Ja);var uc=Ja.exports;const dc=Ke(uc);var Qa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(Qa);var fc=Qa.exports;const mc=Ke(fc);Le.extend(oc),Le.extend(tc),Le.extend(Qs),Le.extend(lc),Le.extend(ic),Le.extend(cc),Le.extend(dc),Le.extend(mc);const ee={format(e,n){return Le(e).format(n)},parser(e,n){return Le(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),i=l.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((l.valueOf()-r.valueOf())/864e5);let s=l.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let i=l.getDay();if(o===0){const c=r-i*864e5,d=r+(6-i)*864e5,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[u,m]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,d=r+(7-i)*s,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[u,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ee.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ee.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i}},el=new Date().getFullYear(),Qn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},tn=(e,n,a)=>{let o;if(Me(n)?o=n:typeof n=="string"&&Be(n)>0?o=ee.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},eo=(e,n,a)=>{Me(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ee.format(new Date(o),a)};let to={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(el-10,0,1),validator:Me},maxDate:{type:Date,default:()=>new Date(el+10,11,31),validator:Me},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:hc,scope:gc}=te("date-picker"),pc=hc({components:{[it.name]:it},props:{...to},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=Ee.useFoxI18n(gc),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,h=>{l.value=h});function r(h,w){return new Date(h,w,0).getDate()}const i=(h,w)=>{const f=e[`${h}Date`],I=f.getFullYear();let B=1,O=1,R=0,V=0;h==="max"&&(B=12,O=r(w.getFullYear(),w.getMonth()+1),R=23,V=59);const $=V;return w.getFullYear()===I&&(B=f.getMonth()+1,w.getMonth()+1===B&&(O=f.getDate(),w.getDate()===O&&(R=f.getHours(),w.getHours()===R&&(V=f.getMinutes())))),{[`${h}Year`]:I,[`${h}Month`]:B,[`${h}Date`]:O,[`${h}Hour`]:R,[`${h}Minute`]:V,[`${h}Seconds`]:$}},s=t.computed(()=>{if(!p.value)return[];const{maxYear:h,maxDate:w,maxMonth:f,maxHour:I,maxMinute:B,maxSeconds:O}=i("max",p.value),{minYear:R,minDate:V,minMonth:$,minHour:D,minMinute:P,minSeconds:z}=i("min",p.value);let S=[{type:"year",range:[R,h]},{type:"month",range:[$,f]},{type:"day",range:[V,w]},{type:"hour",range:[D,I]},{type:"minute",range:[P,B]},{type:"seconds",range:[z,O]}];switch(e.type){case"date":S=S.slice(0,3);break;case"datetime":S=S.slice(0,5);break;case"time":S=S.slice(3,6);break;case"year-month":S=S.slice(0,2);break;case"month-day":S=S.slice(1,3);break;case"datehour":S=S.slice(0,4);break;case"hour-minute":S=S.slice(3,5);break}return S}),c=(h,w,f)=>{if(!(w>h))return null;const I=[];for(;h<=w;)e.isShowChinese?I.push({text:h+o[f],value:h}):I.push({text:`${h}`,value:h}),f==="minute"?h+=e.minuteStep:h++;return I},d=t.computed(()=>{let h=[];return s.value.forEach(w=>{let f=c(w.range[0],w.range[1],w.type);f&&h.push(f)}),h}),u=(h,w)=>h==="year"?w.getFullYear():h==="month"?w.getMonth()+1:h==="day"?w.getDate():h==="hour"?w.getHours():h==="minute"?w.getMinutes():h==="seconds"?w.getSeconds():0,m=t.ref(),p=t.ref(null);t.watchEffect(()=>{let h,w=e.modelValue;if(typeof w=="string"?w.length==0?h=new Date:e.valueFormat?h=tn(e,e.modelValue,e.valueFormat):h=tn(e,w,Qn[e.type]):Me(w)?h=w:h=new Date,!!h&&(!p.value||h.getTime()!==p.value.getTime())){p.value=h;let f=[];s.value.forEach(I=>{let B=u(I.type,h);f.push(B)}),m.value=f}});const E=h=>{if(e.type==="date"){let w=h;p.value=new Date(w[0],w[1]-1,Math.min(w[2],r(w[0],w[1])))}else if(e.type==="datetime"){let w=h;p.value=new Date(w[0],w[1]-1,Math.min(w[2],r(w[0],w[1])),w[3],w[4])}else if(e.type==="time"){let w=h,f=p.value??new Date,I=new Date(f.getFullYear(),f.getMonth(),f.getDate(),w[0],w[1],w[2]);p.value=I}else if(e.type==="year-month"){let w=h,f=new Date(w[0],w[1]-1);p.value=f}else if(e.type==="month-day"){let w=h,f=p.value??new Date,I=new Date(f.getFullYear(),w[0]-1,w[1]);p.value=I}else if(e.type==="datehour"){let w=h;p.value=new Date(w[0],w[1]-1,Math.min(w[2],r(w[0],w[1])),w[3])}else if(e.type==="hour-minute"){let w=h,f=p.value??new Date,I=new Date(f.getFullYear(),f.getMonth(),f.getDate(),w[0],w[1]);p.value=I}m.value=h};return{columns:d,dateIndexs:m,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:h=>{E(h),l.value=!1;let w=p.value??new Date;if(e.valueFormat){let f=eo(e,w,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",w);n("update:visible",!1),n("confirm",h)},onClear:()=>{n("clear")}}}});function yc(e,n,a,o,l,r){const i=t.resolveComponent("fox-picker");return t.openBlock(),t.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,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.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","teleport-disable"])}const nn=de(pc,[["render",yc]]);function bc(e){let n=e.format;if(!n){let a=e.type??"date";n=Qn[a]}return n}const tl={...to,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function wc(e,n,a){return{props:{...ge,...Ce,...tl,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),p=ie(o,"modelValue",T=>T==null?null:typeof T=="string"?T.length==0?null:o.valueFormat?tn(o,T,o.valueFormat)??T:tn(o,T,Qn[o.type])??T:Me(T)?T:null),E=t.computed(()=>{if(!p.value)return"";const T=bc(o);return eo(o,p.value,T)}),g=e,b=t.computed(()=>({[`${g}__input`]:!0})),v=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:v.value??"right"}));let w=ie(o,"hintText"),f=t.ref(!1);const I=t.ref(!1),B=()=>{I.value=!0},O=()=>{I.value=!1},R=T=>{I.value=T},V=T=>{if(p.value=T,o.valueFormat){let F=eo(o,T,o.valueFormat);s("update:modelValue",F,{}),s("change",F,{})}else s("update:modelValue",T,{}),s("change",T,{})},$=T=>{let _=T.target.value;u.value=!0,s("focus",_,T)},D=T=>{setTimeout(()=>{u.value=!1},0);let _=T.target.value;o.maxLength&&_.length>Number(o.maxLength)&&(_=_.slice(0,Number(o.maxLength))),s("blur",_,T)},P=T=>{p.value="",s("update:modelValue","",T),s("change","",T),s("clear",""),O()},z=t.computed(()=>Be(o.unit)>0),S=Ne(t.computed(()=>o.longTermValue),"longTermValue",We.Near);let x=null;const C=t.ref(oe(o.longTerm)),L=T=>{if(C.value=T,s("update:longTerm",T),T){let F="";Array.isArray(S.value)?F=S.value.map((_,U)=>_||(Array.isArray(p.value)&&p.value[U]?p.value[U]:o.valueFormat?ee.format(new Date,o.valueFormat):new Date)):F=S.value,x=p.value,s("update:modelValue",F)}else s("update:modelValue",x)},N=oe(o.isLongTerm);if(N){const T=()=>{if(C.value===!0){let F="";Array.isArray(S.value)?F=S.value.map((_,U)=>_||(Array.isArray(p.value)&&p.value[U]?p.value[U]:o.valueFormat?ee.format(new Date,o.valueFormat):new Date)):F=S.value,x=p.value,s("update:modelValue",F)}else Pe(S.value,p.value)&&(C.value=!0)};T(),t.watch([()=>o.longTerm],([F])=>{C.value!==F&&T()})}const q=t.ref();return he({showPicker:B,hidePicker:O,focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const T={class:b.value,style:h.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:E.value,onClick:B,onFocus:$,onBlur:D},F={};l.slots.prepend&&(F.prepend=l.slots.prepend),l.slots.append&&(F.append=l.slots.append),l.slots.prefix?F.prefix=l.slots.prefix:F.prefix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.Calendar)}),l.slots.suffix?F.suffix=l.slots.suffix:z.value&&(F.suffix=()=>[o.unit]);const _=[],U=t.h(k.ElInput,T,F);_.push(U);const J={default:()=>_};l.slots.default&&(J.label=l.slots.default),l.slots.fixedTip&&(J.fixedTip=l.slots.fixedTip);const Q=pt(o,to);Q.valueFormat=null,Q.disabled=!1,Q.readonly=r.value||i.value||C.value,Q.visible=I.value,Q["onUpdate:visible"]=R,Q.modelValue=p.value,Q["onUpdate:modelValue"]=V,Q.onClear=P;const le={};if(l.slots.top){const W=l.slots.top();le.top=()=>W}if(l.slots.bottom){const W=l.slots.bottom();le.default=()=>W}const se=t.h(nn,Q,le);if(J.hide=()=>[se],N){const W={label:o.longTermText,modelValue:C.value,"onUpdate:modelValue":L},G=t.h(k.ElCheckbox,W),A=t.h("div",{class:{[`${g}__append`]:!0}},[G]);J.append=()=>A}const ne={...ve(o,tl),class:{[`${g}__wrapper`]:!0,"has-append":N},hintText:w.value,hintVisible:f.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,ne,J)}}}}const{componentName:Sc,create:vc,scope:Cc}=te("date-item"),no=vc(wc(Sc,Cc,pe)),kc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),oo={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},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,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},nl=39,ol=64,{create:Tc,scope:$c}=te("calendar-pane"),Dc=Tc({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},startDate:{type:String,default:ee.getDay(0)},endDate:{type:String,default:ee.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=Ee.useFoxI18n($c),r=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${nl}px`})),s=t.computed(()=>({height:`${ol}px`})),c=JSON.parse(l("weekdays")),d=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),u=t.ref(null),m=t.ref(null),p=t.ref(null),E=t.ref(null),g=t.ref(0),b=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),v=t.computed(()=>a.btn),h=t.computed(()=>a["top-info"]),w=t.computed(()=>a["bottom-info"]),f=t.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:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),I=j=>j.split("-"),B=j=>ee.isEqual(f.currDate[0],j),O=j=>ee.isEqual(f.currDate[1],j),R=j=>f.currDate?.length>0?f.currDate?.some(W=>ee.isEqual(W,j)):!1,V=(j,W)=>W.curData[0]+"-"+W.curData[1]+"-"+ee.getNumTwoBit(+j.day),$=(j,W)=>{const G=V(j,W),{type:A}=e;return j.type=="curr"?ee.isEqual(f.currDate,G)||(A=="range"||A=="week")&&(B(G)||O(G))||A=="multiple"&&R(G)?`${f.dayPrefix}--active`:f.propStartDate&&ee.compareDate(G,f.propStartDate)||f.propEndDate&&ee.compareDate(f.propEndDate,G)?`${f.dayPrefix}--disabled`:(A=="range"||A=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ee.compareDate(f.currDate[0],G)&&ee.compareDate(G,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},D=()=>{const{type:j}=e;if(j=="range"&&f.chooseData.length==2||j!="range"){let W=f.chooseData.slice(0);j=="week"&&(W={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("choose",W),e.poppable&&n("update")}},P=(j,W,G=!1)=>{if($(j,W)!=`${f.dayPrefix}--disabled`){const{type:A}=e;let[H,M]=W.curData,K=[...W.curData];if(K[2]=ee.getNumTwoBit(Number(j.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=ee.getWhatDay(+K[0],+K[1],+K[2]),A=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((X,re)=>{X==K[3]&&(Y=re)}),G?f.chooseData.push([...K]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(K[3]),f.chooseData.push([...K]))}else f.currDate=[K[3]],f.chooseData=[[...K]];else if(A=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[K[3]]:ee.compareDate(f.currDate[0],K[3])?Array.isArray(f.currDate)&&f.currDate.push(K[3]):Array.isArray(f.currDate)&&f.currDate.unshift(K[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...K]]:ee.compareDate(f.chooseData[0][3],K[3])?f.chooseData=[...f.chooseData,[...K]]:f.chooseData=[[...K],...f.chooseData]}else if(A=="week"){let Y=ee.getWeekDate(H,M,j.day,e.firstDayOfWeek);f.propStartDate&&ee.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&ee.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[ee.formatResultDate(Y[0]),ee.formatResultDate(Y[1])]}else f.currDate=K[3],f.chooseData=[...K];if(!G){let Y=f.chooseData;A=="week"&&(Y={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&D()}}},z=j=>{let[W,G,A]=j;return{date:j,monthWeekNum:ee.getMonthWeek(W,G,A,e.firstDayOfWeek),yearWeekNum:ee.getYearWeek(W,G,A,e.firstDayOfWeek)}},S=j=>{const W=j=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let G=parseInt(W.curData[0]),A=parseInt(W.curData[1].toString().replace(/^0/,""));switch(j){case"prev":A==1&&(G-=1),A=A==1?12:--A;break;case"next":A==12&&(G+=1),A=A==12?1:++A;break}return[G+"",ee.getNumTwoBit(A),ee.getMonthDays(String(G),String(A))+""]},x=(j,W,G)=>{let{year:A,month:H}=G;return W=="prev"&&j>=7&&(j-=7),Array.from(Array(j),(M,K)=>({day:String(K+1),type:W,year:A,month:H}))},C=(j,W,G,A)=>{j=j-e.firstDayOfWeek;let{year:H,month:M}=G;return W=="prev"&&j>=7&&(j-=7),Array.from(Array(A),(Y,X)=>({day:String(X+1),type:W,year:H,month:M})).slice(A-j)},L=(j,W)=>{const G=ee.getMonthPreDay(+j[0],+j[1]);let A=Number(j[1])-1,H=Number(j[0]);A<=0&&(A=12,H+=1);const M=ee.getMonthDays(String(j[0]),String(j[1])),K=ee.getMonthDays(H+"",A+""),Y={year:j[0],month:j[1]},X={curData:j,title:l("monthTitle",{year:Y.year,month:Y.month}),monthData:[...C(G,"prev",{month:String(A),year:String(H)},K),...x(M,"curr",Y)],cssHeight:0,cssScrollHeight:0},re=X.monthData.length>35?6:5;X.cssHeight=nl+ol*re;let fe=0;f.monthsData.length>0&&(fe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),X.cssScrollHeight=fe,W=="next"?(!f.endData||!ee.compareDate(`${f.endData[0]}-${f.endData[1]}-${ee.getMonthDays(f.endData[0],f.endData[1])}`,`${j[0]}-${j[1]}-${j[2]}`))&&f.monthsData.push(X):!f.startData||!ee.compareDate(`${j[0]}-${j[1]}-${j[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(X):f.unLoadPrev=!0},N=()=>{let j=e.startDate?e.startDate:ee.getDay(0),W=e.endDate?e.endDate:ee.getDay(365);f.propStartDate=j,f.propEndDate=W,f.startData=I(j),f.endData=I(W),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const G={year:Number(f.startData[0]),month:Number(f.startData[1])},A={year:Number(f.endData[0]),month:Number(f.endData[1])};let H=A.month-G.month;A.year-G.year>0&&(H=H+12*(A.year-G.year)),H<=0&&(H=1),L(f.startData,"next");let M=1;do L(S("next"),"next");while(M++<H);if(f.monthsNum=H,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(j&&ee.compareDate(f.currDate[0],j)&&f.currDate.splice(0,1,j),W&&ee.compareDate(W,f.currDate[1])&&f.currDate.splice(1,1,W),f.defaultData=[...I(f.currDate[0]),...I(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let K=[],Y={};f.currDate.forEach(X=>{j&&!ee.compareDate(X,j)&&W&&!ee.compareDate(W,X)&&(Object.hasOwnProperty.call(Y,X)||(K.push(X),Y[X]=X))}),f.currDate=[...K],f.defaultData=[...I(K[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[K,Y,X]=I(f.currDate[0]),re=ee.getWeekDate(K,Y,X,e.firstDayOfWeek);f.currDate=re,j&&ee.compareDate(f.currDate[0],j)&&f.currDate.splice(0,1,j),W&&ee.compareDate(W,f.currDate[1])&&f.currDate.splice(1,1,W),f.defaultData=[...I(f.currDate[0]),...I(f.currDate[1])]}}else f.currDate&&(j&&ee.compareDate(f.currDate,j)?f.currDate=j:W&&!ee.compareDate(f.currDate,W)&&(f.currDate=W),f.defaultData=[...I(f.currDate)])};he({scrollToDate:j=>{ee.compareDate(j,f.propStartDate)?j=f.propStartDate:ee.compareDate(j,f.propEndDate)||(j=f.propEndDate);let W=I(j);f.monthsData.forEach((G,A)=>{if(G.title==l("monthTitle",{year:W[0],month:W[1]})&&u.value){let H=f.monthsData[A].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let M=0,K=setInterval(()=>{if(M++,u.value){let Y=H/10;u.value.scrollTop=u.value.scrollTop+Y}M>=10&&(clearInterval(K),u.value&&(u.value.scrollTop=f.monthsData[A].cssScrollHeight))},40)}else u.value.scrollTop=f.monthsData[A].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let j=0,W=0;f.defaultData.length>0&&f.monthsData.forEach((H,M)=>{H.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(j=M),(e.type=="range"||e.type=="week")&&H.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(W=M)}),_(f.monthsNum,j),f.currentIndex=j,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(P({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),P({day:f.defaultData[5],type:"curr"},f.monthsData[W],!0)):e.type=="week"?P({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(H=>{let M=I(H),K=f.currentIndex;f.monthsData.forEach((Y,X)=>{Y.title==l("monthTitle",{year:M[0],month:M[1]})&&(K=X)}),P({day:M[2],type:"curr"},f.monthsData[K],!0)}):P({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let G=f.monthsData[f.monthsData.length-1],A=G.cssHeight+G.cssScrollHeight;Mo(()=>{u?.value&&m?.value&&E?.value&&(g.value=u.value.clientHeight,m.value.style.height=`${A}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(A/(f.monthsNum+1))}});const _=(j,W)=>{j>=3?W>0&&W<j?f.defaultRange=[W-1,W+3]:W==0?f.defaultRange=[W,W+4]:W==j&&(f.defaultRange=[W-2,W+2]):f.defaultRange=[0,j+2];let G=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=G},U=(j,W)=>(e.type=="range"||e.type=="week")&&j.type=="curr"&&$(j,W)=="fox-calendar__day--active",J=(j,W)=>U(j,W)&&B(V(j,W)),Q=(j,W)=>f.currDate.length>=2&&O(V(j,W))?U(j,W):!1,le=()=>{if(f.currDate.length>=2)return ee.isEqual(f.currDate[0],f.currDate[1])},se=j=>{const W=`${j.year}-${j.month}-${Number(j.day)<10?"0"+j.day:j.day}`;return ee.isEqual(W,ee.date2Str(new Date))},Z=j=>{if(f.monthsData.length<=1)return;const W=j.target.scrollTop;let G=Math.floor(W/f.avgHeight);if(G==0)W>=f.monthsData[G+1].cssScrollHeight&&(G+=1);else if(G>0&&G<f.monthsNum-1)W>=f.monthsData[G+1].cssScrollHeight&&(G+=1),W<f.monthsData[G].cssScrollHeight&&(G-=1);else{const A=Math.round(W+g.value);A<f.monthsData[G].cssScrollHeight+f.monthsData[G].cssHeight&&W>f.monthsData[G-1].cssScrollHeight&&(G-=1),G+1<=f.monthsNum&&A>=f.monthsData[G+1].cssScrollHeight+f.monthsData[G+1].cssHeight&&(G+=1),G>=1&&W<f.monthsData[G-1].cssScrollHeight&&(G-=1)}f.currentIndex!==G&&(f.currentIndex=G,_(f.monthsNum,G)),f.yearMonthTitle=f.monthsData[G].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),N()};return N(),t.watch(()=>e.defaultValue,j=>{j&&e.poppable&&ne()}),{dayTitleStyle:i,dayCellStyle:s,weeks:d,compConthsData:b,showTopBtn:v,topInfo:h,bottomInfo:w,rangeTip:le,mothsViewScroll:Z,getClass:$,isStartTip:J,isEndTip:Q,chooseDay:P,isCurrDay:se,confirm:D,months:u,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:p,viewArea:E}}}),Ec={class:"fox-calendar__header"},xc={key:0,class:"fox-calendar__header-title"},Nc={key:1,class:"fox-calendar__header-slot"},Vc={key:2,class:"fox-calendar__header-subtitle"},Ic={class:"fox-calendar__weekdays",ref:"weeksPanel"},Bc={class:"fox-calendar__panel",ref:"monthsPanel"},Ac={class:"fox-calendar__days"},Oc=["onClick"],Rc={class:"fox-calendar__day-value"},Fc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Lc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Mc={key:2,class:"fox-calendar__day-tips--curr"},Pc={key:4,class:"fox-calendar__day-tip"},qc={key:0,class:"fox-calendar__footer"};function zc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Ec,[e.showTitle?(t.openBlock(),t.createElementBlock("view",xc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Nc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Vc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Bc,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Ac,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:u=>e.chooseDay(c,i)},[t.createElementVNode("view",Rc,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Fc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Lc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Mc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,i)?(t.openBlock(),t.createElementBlock("view",Pc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Oc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",qc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const al=de(Dc,[["render",zc]]),{create:jc}=te("calendar-picker"),_c=jc({components:{[al.name]:al,[_e.name]:_e},props:{...oo},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),s=t.ref(null),c=b=>{s.value?.scrollToDate(b)},d=()=>{s.value?.initPosition()};t.watch(()=>e.visible,b=>{b&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),he({scrollToDate:c,initPosition:d});const u=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:u,close:m,select:b=>{n("select",b)},choose:b=>{m(),n("choose",b)},calendarRef:s,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:i}}});function Hc(e,n,a,o,l,r){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{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","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const on=de(_c,[["render",Hc]]),ao=(e,n)=>{let a;return Me(e)?a=e:typeof e=="string"&&Be(e)>0?a=ee.parser(e,n):a=new Date,a},st=(e,n,a)=>(Me(n)||(n=new Date),ee.format(n,a)),ct=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ee.date2Str(e),r=ee.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]},ll={...oo,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 Kc(e,n,a){return{props:{...ge,...Ce,...ll},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const p=t.ref(!1),E=t.computed(()=>o.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),b=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},v=(N,q="one",T="YYYY-MM-DD")=>{if(kc(N)){b();return}if(E.value&&Array.isArray(N)&&N.length==2){let F,_;typeof N[0]=="string"?(F=ao(N[0],T),_=ao(N[1],T)):(F=N[0],_=N[1]);let U=ct(F),J=ct(_);(g.startDate===null||g.startDate.getTime()!==F.getTime()||g.endDate?.getTime()!==_.getTime())&&(g.startDate=F,g.startArray=U,g.endDate=_,g.endArray=J)}else{let F;typeof N=="string"?F=ao(N,T):F=N;let _=ct(F);(g.startDate===null||g.startDate.getTime()!==F.getTime())&&(g.startDate=F,g.startArray=_)}};v(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,N=>{v(N,o.type,o.valueFormat)});const h=t.computed(()=>{if(g.startDate===null)return"";if(E.value){let N=st(o,g.startDate,o.format),q=st(o,g.endDate,o.format);return`${N} ${o.rangeSeparator} ${q}`}else{let N=st(o,g.startDate,o.format);return o.showWeek&&(N=`${N} ${g.startArray[4]}`),N}}),w=t.computed(()=>{if(g.startDate===null)return null;if(E.value){let N=ee.date2Str(g.startDate),q=ee.date2Str(g.endDate??new Date);return[N,q]}else return ee.date2Str(g.startDate)}),f="fox-input-item",I=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),B=Ne(t.computed(()=>o.textAlign),"textAlign"),O=t.computed(()=>({textAlign:B.value??"right"})),R=t.ref(!1),V=()=>{i.value||r.value||(R.value=!0)},$=()=>{R.value=!1},D=N=>{R.value=N},P=N=>{if(N){if(E.value&&Array.isArray(N)){let q=N[0],T=ce(q[0]),F=ce(q[1]),_=ce(q[2]),U=new Date(T,F-1,_),J=N[1];T=ce(J[0]),F=ce(J[1]),_=ce(J[2]);let Q=new Date(T,F-1,_);if(g.startDate=U,g.startArray=ct(U),g.endDate=Q,g.endArray=ct(Q),o.valueFormat){let le=st(o,U,o.valueFormat),se=st(o,Q,o.valueFormat);s("update:modelValue",[le,se],{})}else s("update:modelValue",[U,Q],{})}else{let q=N,T=ce(q[0]),F=ce(q[1]),_=ce(q[2]),U=new Date(T,F-1,_);if(g.startDate=U,g.startArray=ct(U),o.valueFormat){let J=st(o,U,o.valueFormat);s("update:modelValue",J,{})}else s("update:modelValue",U,{})}s("change",N,{})}},z=N=>{let T=N.target.value;p.value=!0,s("focus",T,N)},S=N=>{setTimeout(()=>{p.value=!1},0);let T=N.target.value;o.maxLength&&T.length>Number(o.maxLength)&&(T=T.slice(0,Number(o.maxLength))),s("blur",T,N)},x=t.computed(()=>Be(o.unit)>0),C=N=>{b(),s("update:modelValue",null,N),s("change","",N),s("clear","")},L=t.ref();return he({showPicker:V,hidePicker:$,focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const N={class:I.value,style:O.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:h.value,onClick:V,onFocus:z,onBlur:S,onClear:C},q={};l.slots.prepend&&(q.prepend=l.slots.prepend),l.slots.append&&(q.append=l.slots.append),l.slots.prefix?q.prefix=l.slots.prefix:q.prefix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.Calendar)}),l.slots.suffix?q.suffix=l.slots.suffix:x.value&&(q.suffix=()=>[o.unit]);const T=[],F=t.h(k.ElInput,N,q);T.push(F);const _={default:()=>T};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const U=pt(o,oo);U.visible=R.value,U["onUpdate:visible"]=D,U["default-value"]=w.value,U.onChoose=P;const J={};if(l.slots.btn){const ne=l.slots.btn();J.btn=()=>ne}l.slots.day&&(J.day=l.slots.day),l.slots.topInfo&&(J.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(J.bottomInfo=l.slots.bottomInfo);const Q=t.h(on,U,J);_.hide=()=>[Q];const se={...ve(o,ll),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,se,_)}}}}const{componentName:Yc,create:Wc,scope:Uc}=te("calendar-item"),lo=Wc(Kc(Yc,Uc,pe)),rl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gc(e,n,a){return{props:{...ge,...Ce,...rl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0})),g=O=>{m.value=O,s("update:modelValue",O),s("change",O)};let b=ie(o,"hintText"),v=t.ref(!1);const h=O=>{let V=O.target.value;u.value=!0,ye(b.value)||(v.value=!0),s("focus",V,O)},w=O=>{setTimeout(()=>{v.value&&(v.value=!1),u.value=!1},0);let V=O.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),s("blur",V,O)},f=()=>{s("clear","")},I=O=>{s("visible-change",O)},B=t.ref();return he({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const R={...l.attrs,ref:B,class:E.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":g,onClear:f,onFocus:h,onBlur:w,onVisibleChange:I},V={},$=[],D=t.h(k.ElTimePicker,R,V);$.push(D);const P={default:()=>$};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const S={...ve(o,rl),hintText:b.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(a,S,P)}}}}const{componentName:Xc,create:Zc,scope:Jc}=te("time-item"),ro=Zc(Gc(Xc,Jc,pe)),il={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qc(e,n,a){return{props:{...ge,...Ce,...il},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0})),g=B=>{m.value=B,s("update:modelValue",B),s("change",B)};let b=ie(o,"hintText"),v=t.ref(!1);const h=B=>{let R=B.target.value;u.value=!0,ye(b.value)||(v.value=!0),s("focus",R,B)},w=B=>{setTimeout(()=>{v.value&&(v.value=!1),u.value=!1},0);let R=B.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),s("blur",R,B)},f=()=>{s("clear","")},I=t.ref();return he({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const O={...l.attrs,ref:I,class:E.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":g,onClear:f,onFocus:h,onBlur:w},R={},V=[],$=t.h(k.ElTimeSelect,O,R);V.push($);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const z={...ve(o,il),hintText:b.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(a,z,D)}}}}const{componentName:eu,create:tu,scope:nu}=te("time-select-item"),io=tu(Qc(eu,nu,pe));function sl(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function cl(e,n,a=20){if(typeof n=="string"&&(n=ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Ho(`${e}`,`${n}`);return sl(o)}else{let o=Sn(`${e}`,Ko(`${n}`),20);return sl(o)}}function ou(e,n=-1,a=!1,o=3,l=","){return Ft(e,n,a,o,l)}function ul(e,n,a,o,l=!0){if(e=="")return"";if(e=Yo(e),n=ce(n),n==1)return e;if(o)e=cl(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(ce(a)+2,"0"):e=Sn(e,1,ce(a)));else{let r=-1*n;e=cl(e,r)}return e}function dl(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=oe(n.minInclude),l=vn(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=oe(n.maxInclude),l=vn(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const fl={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 au(e,n,a){return{props:{...ge,...Ce,...fl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=t.ref(!1),d=ie(o,"modelValue"),u=t.ref("");t.watch([()=>d.value,()=>o.rates,()=>o.precision],([S,x,C])=>{if(ye(S)){u.value="";return}const L=ul(S,x,C,!1);u.value!==L&&(u.value=L)},{immediate:!0});const m=t.computed(()=>{let S="";return c.value&&(S=u.value),S}),{t:p}=Ee.useFoxI18n(n),E=t.computed(()=>{let S=o.placeholder??"";return!c.value&&!ye(u.value)?S=ou(u.value,o.decimalLength,o.autoPadding,o.digits,o.separator):S=p(["placeholder",S]),S}),g=e,b=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__placeholder`]:u.value.length>0})),v=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:v.value??"right"});const h=t.ref(""),w=t.computed(()=>{let S=h.value;return ye(S)&&(S=o.errorTip??""),S}),f=t.ref(""),I=t.ref(!1),B=(S,x)=>{if(S=`${S}`,ye(S)){u.value="",d.value="",x.forEach(C=>{s(C,"")}),oe(o.showTip)&&I.value&&(I.value=!1);return}if(S.length>=2){let C=S;if(C.charAt(0)=="-"&&(C=C.substring(1)),C.length>=2&&C.charAt(0)=="0"&&C.charAt(1)!="."){t.triggerRef(u);return}}if(S!="-"){if(!na(S)){t.triggerRef(u);return}if(o.integerLength!=-1&&oa(S)>Number(o.integerLength)){t.triggerRef(u);return}if(o.decimalLength&&o.decimalLength!=-1&&aa(S)>Number(o.decimalLength)){t.triggerRef(u);return}let C=dl(S,o);if(C.maxValid===!1){h.value=C.message,t.triggerRef(u);return}}else if(o.min!=null&&ce(o.min)>=0){t.triggerRef(u);return}f.value=S,oe(o.showTip)&&(I.value=S.length>0),u.value=S,d.value=ul(S,o.rates,o.precision,!0),x.forEach(C=>{s(C,d.value)})},O=S=>{B(S,["update:modelValue","input"])},R=S=>{B(S,["update:modelValue","change"])},V=S=>{if(c.value=!0,oe(o.showTip)){let x=u.value;ye(x)&&(x=o.hintText),ye(x)||(f.value=x,I.value=!0)}h.value="",s("focus",d.value,S)},$=S=>{if(setTimeout(()=>{c.value=!1,oe(o.showTip)&&I.value===!0&&(I.value=!1)},0),!ye(u.value)){let x=dl(u.value,o);if(x.minValid===!1||x.maxValid===!1){h.value=x.message;return}}s("update:modelValue",d.value,S),s("blur",d.value,S)},D=()=>{s("clear","")},P=t.computed(()=>Be(o.unit)>0),z=t.ref();return he({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const x={...je(l.attrs),ref:z,class:b.value,type:"digit",maxlength:o.maxLength,placeholder:E.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:D,onInput:O,onChange:R,onFocus:V,onBlur:$},C={};l.slots.prepend&&(C.prepend=l.slots.prepend),l.slots.append&&(C.append=l.slots.append),l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.suffix?C.suffix=l.slots.suffix:P.value&&(C.suffix=()=>[o.unit]);const L=[],N=t.h(k.ElInput,x,C);L.push(N);const q={default:()=>L};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const F={...ve(o,fl),errorTip:w.value,hintText:f.value,hintVisible:I.value,hintType:"number",prop:`${o.prop}_item`};return t.h(a,F,q)}}}}const{componentName:lu,create:ru,scope:iu}=te("money-item"),so=ru(au(lu,iu,pe)),ml={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 su(e,n,a){return{props:{...ge,...Ce,...ml},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0,[`${p}__append`]:O.value})),g=t.computed(()=>({[`${p}__unit`]:!0})),b=V=>{m.value=V,s("update:modelValue",V),s("input",V)},v=V=>{s("change",V)};let h=ie(o,"hintText"),w=t.ref(!1);const f=V=>{let D=V.target.value;u.value=!0,ye(h.value)||(w.value=!0),s("focus",D,V)},I=V=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let D=V.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),s("blur",D,V)},B=()=>{s("clear","")},O=t.computed(()=>Be(o.unit)>0),R=t.ref();return he({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const $={...je(l.attrs),ref:R,class:E.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:v,onInput:b,onFocus:f,onBlur:I},D={},P=[],z=t.h(k.ElInputNumber,$,D);P.push(z);const S={default:()=>P};l.slots.default&&(S.label=l.slots.default),l.slots.fixedTip&&(S.fixedTip=l.slots.fixedTip);const C={...ve(o,ml),hintText:h.value,hintVisible:w.value,prop:`${o.prop}_item`};if(l.slots.append)S.append=l.slots.append;else if(O.value){const N={class:g.value},q=t.h("div",N,[o.unit]);S.append=()=>q}return t.h(a,C,S)}}}}const{componentName:cu,create:uu,scope:du}=te("input-number-item"),co=uu(su(cu,du,pe));function $t(e,n){const a=e.textKey??"text";return n[a]??""}function Dt(e,n){const a=e.valueKey??"value";return n[a]}function hl(e,n){const a=e.childrenKey??"children";return n[a]}function an(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=$t(e,l),i=Dt(e,l);a.texts.push(r),a.values.push(i??"")}return a}function gl(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if($t(e,n[i])===r){const c=Dt(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const u=hl(e,n[i]);Array.isArray(u)&&gl(e,u,a,o+1,l);return}}function pl(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(Dt(e,n[i])===r){const c=$t(e,n[i])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const u=hl(e,n[i]);Array.isArray(u)&&pl(e,u,a,o+1,l);return}}function uo(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=$t(e,n[o]),r=$t(e,a[o]);if(l!==r)return!1;const i=Dt(e,n[o]),s=Dt(e,a[o]);if(i!==s)return!1}return!0}let fu=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Re(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function mu(){const e=t.getCurrentInstance();return new fu(e.proxy)}const ln=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:i="children"}=a??{},{[l]:s,[r]:c,[i]:d,...u}=o,m={loading:!1,...u,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:d,_parent:n};return m.children&&m.children.length&&(m.children=ln(m.children,m,a)),m}),yl=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&yl(o.children,n)},hu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},gu=(e,n)=>{const a={...hu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:i}=a;let s=[],c={};return e.forEach(d=>{d={...d};const{[l]:u,[r]:m}=d,p=c[m]=c[m]||[];!s.length&&m===o&&(s=p),p.push(d),d.children=c[u]||(c[u]=[])}),i&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((u,m)=>u[i]-m[i])}),c=null,s},pu=/scroll|auto|overlay/i,yu=window;function bu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bl(e,n=yu){let a=e;for(;a&&a!==n&&bu(a);){const{overflowY:o}=window.getComputedStyle(a);if(pu.test(o))return a;a=a.parentNode}return n}const{create:wu}=te("sticky"),Su=wu({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),s=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!a.value&&!d)return;const u=Ue(a),m=o.value,p=Ue(m),E=Ue(d);l.height=u.height;const g=()=>{let v=!1;if(e.position==="top")v=d?r.value>u.top&&E.bottom>0:r.value>u.top;else{const h=document.documentElement.clientHeight;v=d?E.bottom>0&&h-r.value-p.height>E.top:h-r.value<u.bottom}return v},b=()=>{if(d)if(e.position==="top"){const v=E.bottom-r.value-p.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,h=E.bottom-(v-r.value);return h<0?h:0}return 0};l.transform=b(),l.fixed=g()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),bl(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{bl(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:i,stickyRef:o,stickyStyle:s}}});function vu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Et=de(Su,[["render",vu]]),Cu=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let p=await o(l,a);r.value.width=p.width||0,r.value.height=p.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=Xn();let d="";const u=(p,E)=>{let g=p;switch(e.direction=="horizontal"?(d=p>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=E>0?"bottom":"top",g=E,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,s.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,s.moving=!1);break}s.offset=g};return{touchMethods:{onTouchStart(p){e.swipeable&&c.start(p)},onTouchMove(p){e.swipeable&&(c.move(p),s.moving=!0,u(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(p.preventDefault(),p.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(p.preventDefault(),p.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,d){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:l}};class ku{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Tu}=te("ext-tabs"),$u=Tu({components:{[Et.name]:Et,JoySmile:cs},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},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=$=>{$.forEach((D,P)=>{let z=D.type;if(z=z.name||z,z=="fox-ext-tab-pane"){let S=new ku;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let x=nt(D.props?.["pane-key"]),C=x=="number"||x=="string"?String(D.props?.["pane-key"]):null,L=nt(D.props?.paneKey),N=L=="number"||L=="string"?String(D.props?.paneKey):null;S.title=D.props?.title,S.paneKey=C||N||String(P),S.disabled=D.props?.disabled}r.value.push(S)}else{if(D.children==" ")return;Array.isArray(D.children)&&i(D.children)}})},s=t.ref(e.modelValue||0),c=$=>{let D=r.value.findIndex(P=>P.paneKey==$);r.value.length==0||D==-1||(s.value=D)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),u=t.ref(),m=t.ref([]),p=$=>{const D=u.value,P=m.value;if(!D||!P||!P[s.value])return;const z=P[s.value];let S=0;e.direction==="vertical"?S=z.offsetTop-D.offsetTop+10-(D.offsetHeight-z.offsetHeight)/2:S=z.offsetLeft-(D.offsetWidth-z.offsetWidth)/2,E(D,S,$?0:.3,e.direction)},E=($,D,P,z)=>{let S=0;const x=z==="horizontal"?$.scrollLeft:$.scrollTop,C=P===0?1:Math.round(P*1e3/16);function L(){z==="horizontal"?$.scrollLeft+=(D-x)/C:$.scrollTop+=(D-x)/C,++S<C&&Wo(L)}L()},g=($=a.default?.())=>{r.value=[],$=$?.filter(D=>typeof D.children!="string"),$&&$.length&&i($),c(e.modelValue),t.nextTick(()=>{p()})},b=$=>{l=$.fixed};t.watch(()=>a.default?.(),$=>{g($)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,$=>{if(c($),p(),l){let D=Ue(o.value).top+v(),P=Math.ceil(D-e.top);window.scrollTo({top:P,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const h={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,h.updateValue(r.value[s.value])},prev:()=>{s.value-=1,h.updateValue(r.value[s.value])},updateValue:$=>{n("update:modelValue",$.paneKey),n("change",$)},tabChange:($,D)=>{n("click",$),!($.disabled||s.value==D)&&(s.value=D,h.updateValue($))},setTabItemRef:($,D)=>{m.value[D]=$}},{tabsContentRef:w,touchState:f,touchMethods:I}=Cu(e,h),B=t.computed(()=>{let $=s.value*100;f.moving&&($+=f.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${$}%, 0, 0)`:`translate3d( 0,-${$}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),O=t.computed(()=>({background:e.background})),R=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const $=Se(e.titleGutter);return e.direction==="vertical"?{marginTop:$,marginBottom:$}:{marginLeft:$,marginRight:$}});return{navRef:u,tabsContentRef:w,titles:r,contentStyle:B,tabsNavStyle:O,titleStyle:V,tabsActiveStyle:R,container:o,getScrollY:d,onStickyScroll:b,...h,...I}}}),Du=["onClick"],Eu=["onClick"];function xu(e,n,a,o,l,r){const i=t.resolveComponent("JoySmile"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Du))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:u=>e.setTabItemRef(u,d)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Eu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const xt=de($u,[["render",xu]]),{create:Nu}=te("ext-tab-pane"),Vu=Nu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Iu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Nt=de(Vu,[["render",Iu]]);class wl{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=ln(n,null,this.config)}updateChildren(n,a){a?a.children=ln(n,a,this.config):this.nodes=ln(n,null,this.config)}getNodeByValue(n){let a;return yl(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Bu,scope:Au}=te("cascader-pane"),Ou=Bu({components:{Loading:ls,Checklist:ys,[xt.name]:xt,[Nt.name]:Nt},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:n}){const a=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),l=t.ref(!1),r=t.ref(e.modelValue),i=t.ref(new wl([],{})),s=t.ref([]),c=t.computed(()=>a.value.lazy&&!!a.value.lazyLoad),d=new Map;let u;const m=async()=>{d.clear(),s.value=[],o.value=0,l.value=!1,u=null;let{options:h}=e;a.value.convertConfig&&(h=gu(h,a.value.convertConfig)),i.value=new wl(h,{value:a.value.valueKey,text:a.value.textKey,children:a.value.childrenKey}),c.value&&!i.value.nodes.length&&await E({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],p()},p=async()=>{const h=r.value;if(h===void 0||!i.value.nodes.length)return;if(h.length===0){o.value=0,s.value=[{nodes:i.value.nodes,selectedNode:null}];return}let w=h;if(c.value&&Array.isArray(h)&&h.length){w=[];let f=i.value.nodes.find(I=>I.value===h[0]);if(f){w=[f.value],l.value=!0;const I=await h.slice(1).reduce(async(B,O)=>{const R=await B;await E(R);const V=R?.children?.find($=>$.value===O);return V&&w.push(O),Promise.resolve(V)},Promise.resolve(f));await E(I),l.value=!1}}w.length&&h===e.modelValue&&i.value.getPathNodesByValue(w).map((I,B)=>{o.value=B,v.handleNode(I,!0)})},E=async h=>{if(!h)return;if(!a.value.lazyLoad){h.leaf=!0;return}if(i.value.isLeaf(h,c.value)||i.value.hasChildren(h,c.value))return;h.loading=!0;const w=h.root?null:h;let f=d.get(h);f||(f=new Promise(B=>{a.value.lazyLoad?.(h,B)}),d.set(h,f));const I=await f;Array.isArray(I)&&I.length>0?i.value.updateChildren(I,w):h.leaf=!0,h.loading=!1,d.delete(h)},g=h=>{const w=h.map(f=>f.value);r.value=w,n("change",w,h),n("update:modelValue",w,h)},{t:b}=Ee.useFoxI18n(Au),v={async handleNode(h,w){const{disabled:f,loading:I}=h;if(!(!w&&f||!s.value[o.value])){if(i.value.isLeaf(h,c.value)){if(h.leaf=!0,s.value[o.value].selectedNode=h,s.value=s.value.slice(0,h.level+1),!w){const B=s.value.map(O=>O.selectedNode);g(B),n("pathChange",B)}return}if(i.value.hasChildren(h,c.value)){const B=h.level+1;if(s.value[o.value].selectedNode=h,s.value=s.value.slice(0,B),s.value.push({nodes:h.children||[],selectedNode:null}),o.value=B,!w){const O=s.value.map(R=>R.selectedNode);n("pathChange",O)}return}u=h,!I&&(await E(h),u===h&&(s.value[o.value].selectedNode=h,v.handleNode(h,w)))}},handleTabClick(h){u=null,o.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:b("select")},isSelected(h,w){return h.selectedNode&&h.selectedNode.value===w.value}};return t.watch([a,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,h=>{h!==r.value&&(r.value=h,p())}),t.watch(()=>e.visible,h=>{h&&Array.isArray(r.value)&&r.value.length>0&&p()}),{panes:s,initLoading:l,tabsCursor:o,...v}}}),Ru={role:"menu",class:"fox-cascader__pane"},Fu=["aria-checked","aria-disabled","onClick"],Lu={class:"fox-cascader__item__title"},Mu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Pu(e,n,a,o,l,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),d=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(u),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Ru,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,p=>(t.openBlock(),t.createElementBlock("view",{key:p.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,p),disabled:p.disabled}]),"aria-checked":e.isSelected(u,p),"aria-disabled":p.disabled||void 0,role:"menuitemradio",onClick:E=>e.handleNode(p,!1)},[t.createElementVNode("view",Lu,t.toDisplayString(p.text),1),p.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Fu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Mu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Sl=de(Ou,[["render",Pu]]),{create:qu}=te("cascader-picker"),zu=qu({components:{[Sl.name]:Sl,[_e.name]:_e},props:{...Un,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),l=(i,s)=>{a.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),ju=["innerHTML"];function _u(e,n,a,o,l,r){const i=t.resolveComponent("fox-cascader-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,ju)):t.createCommentVNode("",!0),t.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-position"])):(t.openBlock(),t.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 rn=de(zu,[["render",_u]]),vl={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},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 Hu(e,n,a){return{props:{...ge,...Ce,...vl},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const p=t.ref(!1),E=mu(),g=t.ref([]);t.watch([()=>o.source,()=>o.params],async([L,N])=>{L&&(g.value=await E.load(L,N))},{immediate:!0});const b=t.ref([]),v=t.computed(()=>Array.isArray(b.value)?b.value.join(" "):b.value),h=t.ref([]),w=t.ref([]);t.watch([()=>o.modelValue,g],async([L,N])=>{if(o.lazy===!0){w.value.length==0&&(b.value=Array.isArray(L)?L:[],h.value=Array.isArray(L)?L:[]);return}if(o.valueType==="item"){let q=L;if(!uo(o,q,w.value)){w.value=q;let T=an(o,q);b.value=T.texts,h.value=T.values}}else if(o.valueType==="text"){let q=L,T=[];if(gl(o,N,q,0,T),!uo(o,T,w.value)){w.value=T;let F=an(o,T);q.value=F.texts,h.value=F.values}}else{let q=L,T=[];if(pl(o,N,q,0,T),!uo(o,T,w.value)){w.value=T;let F=an(o,T);b.value=F.texts,q.value=F.values}}});const f=e,I=t.computed(()=>({[f]:!0})),B=Ne(t.computed(()=>o.textAlign),"textAlign"),O=t.computed(()=>({textAlign:B.value??"right"})),R=t.ref(!1),V=()=>{r.value===!0||i.value===!0||(R.value=!0)},$=L=>{R.value=L},D=(L,N)=>{let q=N.map(F=>{if(F==null)return F;let _={...F};return Reflect.deleteProperty(_,"text"),_[o.textKey]=F.text??"",Reflect.deleteProperty(_,"value"),_[o.valueKey]=F.value??"",_});w.value=q;let T=an(o,q);b.value=T.texts,h.value=T.values,o.valueType==="text"?(s("change",b.value,q),s("update:modelValue",b.value)):o.valueType==="item"?(s("change",q,q),s("update:modelValue",q)):(s("change",h.value,q),s("update:modelValue",h.value)),s("update:pathNodes",q)},P=L=>{let N=L.map(q=>{if(q==null)return q;let T={...q};return Reflect.deleteProperty(T,"text"),T[o.textKey]=q.text??"",Reflect.deleteProperty(T,"value"),T[o.valueKey]=q.value??"",T});s("pathChange",N)},z=L=>{p.value=!0,s("focus",h.value,L)},S=L=>{setTimeout(()=>{p.value=!1},0),s("blur",h.value,L)},x=t.computed(()=>Be(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!i.value);const C=t.ref();return he({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()}}),()=>{const L={class:I.value,style:O.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,value:v.value,onClick:V,onFocus:z,onBlur:S},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:x.value?N.suffix=()=>[o.unit]:N.suffix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.ArrowDown)});const q=[],T=t.h(k.ElInput,L,N);q.push(T);const F={default:()=>q};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);let _={};_.visible=R.value,_["onUpdate:visible"]=$,_.modelValue=h.value,_.onChange=D,_.onPathChange=P,_.options=g.value,_.title=o.title,_.lazy=o.lazy,_.lazyLoad=o.lazyLoad,_.valueKey=o.valueKey,_.textKey=o.textKey,_.childrenKey=o.childrenKey,_.convertConfig=o.convertConfig;const U=t.h(rn,_);F.hide=()=>[U];const Q={...ve(o,vl),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,Q,F)}}}}const{componentName:Ku,create:Yu,scope:Wu}=te("cascader-item"),fo=Yu(Hu(Ku,Wu,pe)),Cl={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Uu(e,n,a){return{props:{...ge,...Ce,...Cl},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0})),g=R=>{m.value=R,s("update:modelValue",R),s("input",R)},b=R=>{s("change",R)},v=R=>{s("select",R)};let h=ie(o,"hintText"),w=t.ref(!1);const f=R=>{let $=R.target.value;u.value=!0,ye(h.value)||(w.value=!0),s("focus",$,R)},I=R=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let $=R.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),s("blur",$,R)},B=()=>{s("clear","")},O=t.ref();return he({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const V={...l.attrs,ref:O,class:E.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,onClear:B,onChange:b,onInput:g,onFocus:f,onBlur:I,onSelect:v},$={};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),l.slots.option&&($.default=l.slots.option);const D=[],P=t.h(k.ElAutocomplete,V,$);D.push(P);const z={default:()=>D};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const x={...ve(o,Cl),hintText:h.value,hintVisible:w.value,prop:`${o.prop}_item`};return t.h(a,x,z)}}}}const{componentName:Gu,create:Xu,scope:Zu}=te("autocomplete-item"),mo=Xu(Uu(Gu,Zu,pe));function Ju(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],m=c.find(p=>p[o]===u);if(!m)break;i.push(m[a])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],u=r[c];const m=d.find(p=>p[o]===u);if(!m)break;i.push(m[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],m=c.find(p=>p[o]===u);if(!m)break;i.push(m[a]),c=m[l]}}return i}let Qu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function ed(){const e=t.getCurrentInstance();return new Qu(e.proxy)}const kl={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function td(e,n){return{props:{...kl},setup(a,{attrs:o,slots:l}){const r=ed(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,u])=>{i.value=await r.load(a.sourceType,d,u)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Ju(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),c=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...o};return l.default?l.default({text:s.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===s.value?t.h(a.emptyTag??"span",{...o,class:a.emptyClass},s.value):t.h(c,d,{default:()=>s.value}):t.h(c,d,s.value)}}}}const{componentName:Xm,create:nd,scope:Zm}=te("mapping"),Vt=nd(td());function od(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let d=r.substring(s+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(i==0){let m=r.substring(0,s);o=o[m][u]}else o=o[u];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function ad(e,n){return{props:{...kl},setup(a,{attrs:o,slots:l}){return()=>{const r={default:i=>{const s=od(i.row,i.column.property);return l.default?t.h(Vt,{...a,modelValue:s},{default:l.default}):t.h(Vt,{...a,modelValue:s})}};return t.h(k.ElTableColumn,{...o},r)}}}}const{componentName:Jm,create:ld,scope:Qm}=te("table-mapping-column"),ho=ld(ad()),rd=Symbol.for("TableStateKey");function Tl(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let d=r.substring(s+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(i==0){let m=r.substring(0,s);o=o[m][u]}else o=o[u];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function id(e,n){return{props:{},setup(a,{attrs:o}){const l=t.inject(rd,{});return()=>{const r=l.currentRow?l.currentRow.value:null,i={default:s=>{const c=Tl(s.row,s.column.property),d=r?Tl(r,s.column.property):null,u=c===d,m={class:{"el-radio__input":!0,"is-checked":u}},p=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":u}};return t.h("label",E,[p])}};return t.h(k.ElTableColumn,{...o},i)}}}}const{componentName:eh,create:sd,scope:th}=te("table-radio-column"),go=sd(id()),cd={},ud={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},dd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function fd(e,n){return t.openBlock(),t.createElementBlock("svg",ud,dd)}const md=de(cd,[["render",fd]]),{componentName:oh,create:hd,scope:ah}=te("table-setting"),gd={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},pd=hd({components:{FoxPopover:k.ElPopover,FoxCheckbox:k.ElCheckbox,FoxCheckboxGroup:k.ElCheckboxGroup,FoxButton:k.ElButton,FoxIcon:k.ElIcon,DragIcon:md,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...gd},emits:["update:modelValue","change","close"],setup(e,{emit:n,attrs:a}){let o=[];const l=t.ref([]),r=t.computed(()=>l.value.filter(T=>T.label===""||T.type?!1:T.fixed===""||T.fixed===!0||T.fixed==="left")),i=t.computed(()=>l.value.filter(T=>T.label===""||T.type?!1:T.fixed==="right")),s=t.computed(()=>l.value.filter(T=>!(T.label===""||T.type||T.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||i.value.length>0)&&s.value.length>0),d=t.computed(()=>r.value.length>0),u=t.computed(()=>i.value.length>0),m=T=>T.length>1,p=T=>{const F=[];l.value=T.map((U,J)=>(!(U.label===""||U.type)&&U.visible!==!1&&F.push(U.prop),{...U,sortIndex:J})),s.value.length+r.value.length+i.value.length===F.length?w.value=!0:F.length>0&&(f.value=!0),O.value=F},E=T=>T?T.type?T.type:T.label?T.prop:"":"",g=(T,F)=>{if(T.length!==F.length)return!1;const _=T.map(U=>E(U));for(let U of F){const J=E(U);if(_.indexOf(J)===-1)return!1}return!0},b=T=>{if(!T){const F=e.tableRef.getColumnSetting(),_=F.srcColumnPropertyList;o=_.map((U,J)=>({...U,sortIndex:J})),T=F.columnPropertyList,T&&T.length>0&&g(_,T)||(T=_)}p(T)},v=()=>{e.tableRef.setColumnSetting(l.value)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=t.ref(!1),f=t.ref(!1),I=T=>{const F=[];l.value.forEach(U=>{T&&!(U.label===""||U.type)&&F.push(U.prop),U.visible=T}),w.value=!1,f.value=!1,s.value.length+r.value.length+i.value.length===F.length?w.value=!0:F.length>0&&(f.value=!0),O.value=F,v()},B=()=>{b(o),v()},O=t.ref([]),R=T=>{l.value.forEach(_=>{if(_.label===""||_.type)return;const U=T.indexOf(_.prop)!==-1;_.visible=U}),w.value=!1,f.value=!1;const F=s.value.length+r.value.length+i.value.length;T.length===F?w.value=!0:T.length>0&&(f.value=!0),v()},V=()=>{b()};t.onMounted(()=>{setTimeout(()=>{b()},50)});const $={currentRow:null,index:null,roleType:null},D=T=>T?T.dataset&&T.dataset.role==="row"?T:T.tagName.toLowerCase()!=="body"?(T=T.parentElement,D(T)):null:null;return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:c,isShowLeftFixedTitle:d,isShowRightFixedTitle:u,isDraggble:m,isCheckAll:w,isIndeterminate:f,handleCheckAllChange:I,handleReset:B,checkedValue:O,handleCheckChange:R,onShow:V,onDragStart:T=>{const F=T.currentTarget;F&&F.dataset&&($.roleType=F.dataset.roleType,$.index=F.dataset.index)},onDragEnd:T=>{$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null),$.index=null,$.roleType=null},onDragOver:T=>{const F=T.currentTarget;T.relatedTarget;const _=D(F);if(!_)return;const U=_.dataset&&_.dataset.roleType;$.roleType===U&&(T.preventDefault(),$.currentRow&&$.currentRow!==_&&$.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),$.currentRow=_)},onDragLeave:T=>{T.preventDefault(),$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null)},onDrop:T=>{const F=T.currentTarget,_=D(F);if(!_)return;const U=_.dataset&&_.dataset.roleType;if($.roleType!==U)return;T.preventDefault();const J=Number($.index),Q=Number(_.dataset.index);if(J!==Q){if(J<Q){const le=l.value[J];l.value.splice(J,1),l.value.splice(Q,0,le)}else{const le=l.value[J];l.value.splice(J,1),l.value.splice(Q+1,0,le)}p(l.value),v()}},toLeftFixed:T=>{const F=l.value[T];F.fixed="left",v()},toRightFixed:T=>{const F=l.value[T];F.fixed="right",v()},toUnFixed:T=>{const F=l.value[T];F.fixed=void 0,v()},checkboxLabelStyle:h}}}),yd={class:"fox-table-setting"},bd={class:"fox-table-setting__header"},wd={class:"fox-table-setting__body"},Sd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},vd={key:0,class:"fox-table-setting__body-title"},Cd=["data-index","draggable"],kd={class:"tools-item"},Td={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},$d={key:0,class:"fox-table-setting__body-title"},Dd=["data-index","draggable"],Ed={class:"tools-item"},xd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Nd={key:0,class:"fox-table-setting__body-title"},Vd=["data-index","draggable"],Id={class:"tools-item"};function Bd(e,n,a,o,l,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),u=t.resolveComponent("FoxIcon"),m=t.resolveComponent("fox-tooltip"),p=t.resolveComponent("Download"),E=t.resolveComponent("fox-checkbox"),g=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",yd,[t.createElementVNode("div",bd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",wd,[t.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Sd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",vd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[1]||(n[1]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[2]||(n[2]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[3]||(n[3]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[4]||(n[4]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[5]||(n[5]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",kd,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toRightFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Cd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Td,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",$d,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[6]||(n[6]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[7]||(n[7]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[8]||(n[8]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[9]||(n[9]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[10]||(n[10]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Ed,[t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toRightFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Dd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",xd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Nd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[11]||(n[11]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[12]||(n[12]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[13]||(n[13]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[14]||(n[14]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[15]||(n[15]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(E,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Vd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const sn=de(pd,[["render",Bd]]);let Ad=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,i,s){if(Array.isArray(a)){let d=(o-1)*l,u=d+l;u>a.length&&(u=a.length);const m=a.slice(d,u);return{totalSize:a.length,page:m}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,i,s]);const c=Re(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r,i,s]))}};function Od(){const e=t.getCurrentInstance();return new Ad(e.proxy)}class Rd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const o=Re(this.proxy,"tableSetting");return typeof o=="function"&&(a=await Reflect.apply(o,null,["load",n])),a}save(n,a){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,a])}remove(n){const a=Re(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Fd(){const e=t.getCurrentInstance();return new Rd(e.proxy)}const Ld=Symbol.for("TableStateKey");function Md(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let d=r.substring(s+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(i==0){let m=r.substring(0,s);o=o[m][u]}else o=o[u];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function po(e,n){return e.filter(o=>{for(let l in n){const r=n[l],i=Md(o,l);if(r!==i)return!1}return!0})}const $l={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Dl={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},yo={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Pd(e,n,a){return{inheritAttrs:!1,props:{...ge,...Ce,...$l,...Dl,...yo},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,l){const{locale:r}=Ee.useFoxI18n(n),{emitEvent:i}=we({componentName:e,validateHandler:{getValue(...M){return f.value}}},o.prop??l.attrs.name),s=e,c=t.computed(()=>({[s]:!0})),d=t.computed(()=>({[`${s}__setting`]:!0})),u=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${o.paginationAlign}`]:!0})),p=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,M=>{p.value=M});const E=M=>{p.value=M,i("page-index-change",M)},g=t.ref(o.pageSize);t.watch(()=>o.pageSize,M=>{g.value=M});const b=M=>{g.value=M,i("page-size-change",M)},v=t.shallowRef({}),h=t.computed(()=>({...v.value,...o.params??{},...o.baseParams??{}})),w=t.ref(0),f=t.ref(),I=Od();let B=!0;const O=()=>Array.isArray(o.data)||typeof o.data=="function"?!0:oe(o.autoLoad),R=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,M=>oe(M)),V=async(M,K,Y,X)=>{try{const re=await I.load("table",M,K,Y,X,B,r.value);w.value=re.totalSize,f.value=re.page}catch(re){console.error("[FoxUI] Load Table Data Fail",re),w.value=0,f.value=[]}B=!1,setTimeout(()=>{i("loaded-data")},250)};t.watch([p,g],([M,K],[Y,X])=>{K!==X&&(p.value=1,M=1),V(o.data,M,K,h.value)}),t.watch([()=>o.data,h],([M,K],[Y,X])=>{O()&&(M!==Y&&(B=!0),!(!Array.isArray(M)&&Pe(M,Y)&&Pe(K,X))&&V(M,p.value,g.value,K))},{deep:!0});const $=(M={},K=!1)=>new Promise(Y=>{v.value=t.toRaw(M??{}),t.triggerRef(v),K||(p.value=o.pageIndex??1),t.nextTick(async()=>{await V(o.data,p.value,g.value,h.value),Y()})}),D=()=>{w.value=0,f.value=[]};let P=!1;const z=()=>{P||(P=!0,$())};O()&&!R.value&&$();const S=t.ref(null);t.provide(Ld,{currentRow:S});const x=(M,K)=>{S.value=M,i("current-change",M,K)},C=(M,K,Y)=>{i("row-click",M,K,Y),oe(o.rowClickSelectable)===!0&&H?.value.toggleRowSelection(M)},L=[],N=(M,K)=>{if(i("expand-change",M,K),oe(o.uniqueExpansion))if(Array.isArray(K)&&K.length==0){const Y=L.length;L.splice(0,Y)}else{L.forEach(X=>{X!==M&&H?.value.toggleRowExpansion(X,!1)});const Y=L.length;L.splice(0,Y,M)}},q=l.attrs.id??o.prop??l.attrs.name,T=Fd(),F=t.ref([]);let _=[];const U=()=>({srcColumnPropertyList:_.map(K=>({...K})),columnPropertyList:F.value}),J=M=>{F.value=[...M],le()},Q=async()=>{const M=await T.load(q);M&&(F.value=M)},le=()=>{T.save(q,F.value)},se=()=>{T.remove(q)};Q();const Z=M=>M?M.type?M.type:M.label?M.prop:"":"",ne=t.computed(()=>{if(typeof l.slots.default=="function"){const M=l.slots.default(),K=new Map;if(_=[],M.forEach(Y=>{const X=Y;if(!X.props)return;const re=Z(X.props);K.set(re,Y);const fe={label:"",prop:""};Object.assign(fe,X.props),_.push(fe)}),F.value.length===_.length){const Y=[];for(let X of F.value){const re=Z(X),fe=K.get(re);if(!fe)return M;if(X.visible===!1)continue;const Ie=fe;Ie.props.fixed=X.fixed,Y.push(Ie)}return Y}return M}return[]}),j=t.shallowRef(new Map),W=({column:M,rowIndex:K})=>{const Y=`${K}_${M.property}`;return j.value.get(Y)??""},G=M=>typeof M=="function"?K=>{const Y=[];let X=W(K);return X&&Y.push(X),X=M(K),X&&Y.push(X),Y.length===0?"":Y.join(" ")}:W,A=(M,K,Y)=>{const X=`${M}_${K}`;Y?j.value.set(X,Y):j.value.delete(X),t.triggerRef(j)},H=t.ref();return he({clearSelection:()=>H?.value.clearSelection(),getSelectionRows:()=>H?.value.getSelectionRows(),toggleRowSelection:(M,K)=>{H?.value.toggleRowSelection(M,K)},toggleRowSelectionByProp:(M,K)=>{if(!f.value)return;const Y=po(f.value,M);Y.length!==0&&Y.forEach(X=>{H?.value.toggleRowSelection(X,K)})},toggleAllSelection:()=>{H?.value.toggleAllSelection()},toggleRowExpansion:(M,K)=>{H?.value.toggleRowExpansion(M,K)},toggleRowExpansionByProp:(M,K)=>{if(!f.value)return;const Y=po(f.value,M);Y.length!==0&&Y.forEach(X=>{H?.value.toggleRowExpansion(X,K)})},setCurrentRow:M=>{H?.value.setCurrentRow(M)},setCurrentRowByProp:M=>{if(!f.value)return;const K=po(f.value,M);K.length!==0&&H?.value.setCurrentRow(K[0])},getCurrentRow:()=>S.value,clearSort:()=>{H?.value.clearSort()},clearFilter:M=>{H?.value.clearFilter(M)},doLayout:()=>{H?.value.doLayout()},sort:(M,K)=>{H?.value.sort(M,K)},scrollTo:(M,K)=>{H?.value.scrollTo(M,K)},setScrollTop:M=>{H?.value.setScrollTop(M)},setScrollLeft:M=>{H?.value.setScrollLeft(M)},loadData:$,clearData:D,getData(){return f.value},getTotalSize(){return w.value},getPageIndex(){return p.value},getPageSize(){return g.value},getColumnSetting:U,setColumnSetting:J,removeColumnSetting:se,setCellClassName:A}),()=>{const K={...je(l.attrs),onCurrentChange:x,onRowClick:C,onExpandChange:N,data:f.value,ref:H,class:c.value,"cell-class-name":G(o.cellClassName)},Y={};l.slots.default&&(Y.default=()=>ne.value),l.slots.append&&(Y.append=l.slots.append),l.slots.empty&&(Y.empty=l.slots.empty);const X=[],re=t.h(k.ElTable,K,Y);X.push(re);let fe=null;if(typeof l.slots.pagination=="function")fe=l.slots.pagination();else if(o.showPagination){const At={class:m.value,total:w.value,pageSize:g.value,"onUpdate:pageSize":b,pageSizes:o.pageSizes,currentPage:p.value,"onUpdate:currentPage":E,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};fe=t.h(k.ElPagination,At)}if(o.showSetting){const At=[];fe&&At.push(fe);const qm=t.h(k.ElIcon,{class:d.value},{default:()=>t.h(ke.Setting)}),zm=pt(o,yo),jm=t.h(sn,{...zm,tableRef:{getColumnSetting:U,setColumnSetting:J,removeColumnSetting:se}},{default:()=>qm});At.push(jm);const _m=t.h("div",{class:u.value},At);X.push(_m)}else fe&&X.push(fe);const Ie={default:()=>X},Bt={...ve(o,$l,Dl,yo),prop:`${o.prop}_item`};return Bt.contentClass=`${s}__wrap`,Bt.errorMarkClass="is-table-error",R.value&&O()&&(Bt["appear-listen"]=!0,Bt.onAppear=z),t.h(a,Bt,Ie)}}}}const{componentName:qd,create:zd,scope:jd}=te("table-item"),bo=zd(Pd(qd,jd,pe));function ut(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function It(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _d(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Hd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Kd(){const e=t.getCurrentInstance();return new Hd(e.proxy)}function El(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=ut(e,n),l=ut(e,a);if(o!==l)return!1;const r=It(e,n),i=It(e,a);return r===i}function Yd(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;let l=null;for(let r of o){let i=!1;if(a==="text")i=ut(e,r)===n;else if(a==="item")i=El(e,r,n);else{let s=It(e,r);s==null&&(s=ut(e,r)),i=s===n}if(i){l=r;break}}return l}function Wd(e){return{text:e,value:e}}function Ud(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const xl={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Gd(e,n,a){return{inheritAttrs:!0,props:{...ge,...Ce,...xl},emits:["change","update:modelValue"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=t.ref(null),d=t.ref(null),u=(R,V,$,D=!0)=>{const P=Yd(o,R,V,$);if(P===null){if(d.value===null)return;d.value=null,c.value=null,D&&(s("update:modelValue",null),s("change",null));return}if(!El(o,P,d.value)){c.value=R;const S=t.toRaw(P);d.value=S;let x=null;o.valueType==="text"?x=ut(o,S):o.valueType==="item"?x=S:x=It(o,S),D&&(s("update:modelValue",x),s("change",x))}},m=t.ref([]),p=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,R=>oe(R)),E=Kd(),g=async(R,V)=>{if(R){const $=await E.load("radio",R,V);if($.length>0)if(typeof $[0]=="string"){let z=$.map(S=>Wd(S));m.value=z}else m.value=$}};t.watch([()=>o.source,()=>o.params],async([R,V])=>{g(R,V)},{immediate:!p.value});let b=!1;const v=()=>{b||(b=!0,g(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,V])=>{u(V,o.valueType,R,!1)});const h=e,w=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),f=R=>{u(R,"value",m.value,!0)};let I=ie(o,"hintText"),B=ie(o,"hintVisible");const O=(R,V)=>{const $=[];return R.forEach((D,P)=>{const z=It(o,D),S=ut(o,D);let x=_d(o,D);r.value===!0&&(x=r.value),i.value===!0&&(x=i.value);const C=Ud(o,D,P)??{},L=`${z}_${P}`,N={...C,key:L,label:z,size:o.size,border:oe(o.border)};x&&(N.disabled=x),o.itemType==="button"?$.push(t.h(k.ElRadioButton,N,{default:()=>[S]})):typeof V=="function"?$.push(t.h(k.ElRadio,N,{default:()=>V(D)})):$.push(t.h(k.ElRadio,N,{default:()=>[S]}))}),$};return()=>{const V={...je(l.attrs),class:w.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:f},$=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>O(m.value,l.slots.text);const P=t.h(k.ElRadioGroup,V,D);$.push(P);const z={default:()=>$};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const x={...ve(o,xl),hintText:I.value,hintVisible:B.value,prop:`${o.prop??l.attrs.name}_item`};return p.value&&(x["appear-listen"]=!0,x.onAppear=v),t.h(a,x,z)}}}}const{componentName:Xd,create:Zd,scope:Jd}=te("radio-item"),wo=Zd(Gd(Xd,Jd,pe));function dt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class ef{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function tf(){const e=t.getCurrentInstance();return new ef(e.proxy)}function Nl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=dt(e,n),l=dt(e,a);if(o!==l)return!1;const r=ft(e,n),i=ft(e,a);return r===i}function nf(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const l=[];return n.forEach(r=>{for(let i of o){let s=!1;if(a==="text")s=dt(e,i)===r;else if(a==="item")s=Nl(e,i,r);else{let c=ft(e,i);c==null&&(c=dt(e,i)),s=c===r}if(s){l.push(i);break}}}),l}function of(e){return{text:e,value:e}}function af(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Vl={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function lf(e,n,a){return{inheritAttrs:!0,props:{...ge,...Ce,...Vl},emits:["change","update:modelValue"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=t.ref([]),d=t.ref([]),u=(R,V,$,D=!0)=>{const P=nf(o,R,V,$);if(P===null){if(d.value===null||d.value.length===0)return;c.value=[],d.value=[],D&&(s("update:modelValue",[]),s("change",[]));return}let z=!0;if(P.length!==d.value.length)z=!1;else for(let S=0;S<P.length;S++){const x=P[S],C=d.value[S];if(!Nl(o,x,C)){z=!1;break}}if(!z){d.value=P;let S=[],x=[];P.forEach(L=>{S.push(ft(o,L)),o.valueType==="text"?x.push(dt(o,L)):o.valueType==="item"?x.push(L):x.push(ft(o,L))}),c.value=S;const C=t.toRaw(x);D&&(s("update:modelValue",C),s("change",C))}},m=t.ref([]),p=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,R=>oe(R)),E=tf(),g=async(R,V)=>{if(R){const $=await E.load("checkbox",R,V);if($.length>0)if(typeof $[0]=="string"){let z=$.map(S=>of(S));m.value=z}else m.value=$}};t.watch([()=>o.source,()=>o.params],async([R,V])=>{g(R,V)},{immediate:!p.value});let b=!1;const v=()=>{b||(b=!0,g(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,V])=>{u(V,o.valueType,R,!1)});const h=e,w=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),f=R=>{u(R,"value",m.value,!0)};let I=ie(o,"hintText"),B=ie(o,"hintVisible");const O=(R,V)=>{const $=[];return R.forEach((D,P)=>{const z=ft(o,D),S=dt(o,D);let x=Qd(o,D);r.value===!0&&(x=r.value),i.value===!0&&(x=i.value);const C=af(o,D,P)??{},L=`${z}_${P}`,N={...C,key:L,class:o.itemClass,label:z,size:o.size,border:oe(o.border)};x&&(N.disabled=x),o.itemType==="button"?$.push(t.h(k.ElCheckboxButton,N,{default:()=>[S]})):typeof V=="function"?$.push(t.h(k.ElCheckbox,N,{default:()=>V(D)})):$.push(t.h(k.ElCheckbox,N,{default:()=>[S]}))}),$};return()=>{const V={...je(l.attrs),class:w.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:ce(o.max),min:ce(o.min),onChange:f},$=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>O(m.value,l.slots.text);const P=t.h(k.ElCheckboxGroup,V,D);$.push(P);const z={default:()=>$};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const x={...ve(o,Vl),hintText:I.value,hintVisible:B.value,prop:`${o.prop??l.attrs.name}_item`};return p.value&&(x["appear-listen"]=!0,x.onAppear=v),t.h(a,x,z)}}}}const{componentName:rf,create:sf,scope:cf}=te("checkbox-item"),So=sf(lf(rf,cf,pe)),Il={modelValue:{type:[Number,String],required:!1}};function uf(e,n,a){return{props:{...ge,...Ce,...Il},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=ie(o,"modelValue",b=>ce(b)),d=e,u=t.computed(()=>({[d]:!0})),m=b=>{s("update:modelValue",b),s("change",b)};let p=ie(o,"hintText"),E=t.ref(!1);const g=t.ref();return he({}),()=>{const v={...je(l.attrs),ref:g,class:u.value,readonly:i.value||r.value,modelValue:c.value,onChange:m},h={},w=[],f=t.h(k.ElRate,v,h);w.push(f);const I={default:()=>w};l.slots.default&&(I.label=l.slots.default),l.slots.fixedTip&&(I.fixedTip=l.slots.fixedTip);const O={...ve(o,Il),hintText:p.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,O,I)}}}}const{componentName:df,create:ff,scope:mf}=te("rate-item"),vo=ff(uf(df,mf,pe)),Bl={modelValue:{type:[Boolean,String,Number],required:!1}};function hf(e,n,a){return{props:{...ge,...Ce,...Bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=ie(o,"modelValue"),d=e,u=t.computed(()=>({[d]:!0})),m=b=>{s("update:modelValue",b),s("change",b)};let p=ie(o,"hintText"),E=ie(o,"hintVisible");const g=t.ref();return he({}),()=>{const v={...je(l.attrs),ref:g,class:u.value,readonly:i.value,disabled:r.value,modelValue:c.value,onChange:m},h={},w=[],f=t.h(k.ElSwitch,v,h);w.push(f);const I={default:()=>w};l.slots.default&&(I.label=l.slots.default),l.slots.fixedTip&&(I.fixedTip=l.slots.fixedTip);const O={...ve(o,Bl),hintText:p.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,O,I)}}}}const{componentName:gf,create:pf,scope:yf}=te("switch-item"),Co=pf(hf(gf,yf,pe)),Al={modelValue:{type:[String,Number,Boolean],required:!1}};function bf(e,n,a){return{props:{...ge,...Ce,...Al},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:c}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),d=ie(o,"modelValue"),u=e,m=t.computed(()=>({[u]:!0})),p=B=>{c("update:modelValue",B),c("change",B)};let E=ie(o,"hintText"),g=t.ref(!1);const b=B=>{let R=B.target.value;s.value=!0,ye(E.value)||(g.value=!0),c("focus",R,B)},v=B=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let R=B.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),w.value||c("blur",R,B)},h=()=>{c("clear","")},w=t.ref(!1),f=B=>{w.value=B,c("visible-change",B),B||c("selected")},I=t.ref();return he({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const O={...je(l.attrs),ref:I,class:m.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:h,onFocus:b,onBlur:v,onVisibleChange:f},R={};l.slots.option&&(R.default=l.slots.option);const V=[],$=t.h(k.ElTreeSelect,O,R);V.push($);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const z={...ve(o,Al),hintText:E.value,hintVisible:g.value,prop:`${o.prop}_item`};return t.h(a,z,D)}}}}const{componentName:wf,create:Sf,scope:vf}=te("tree-select-item"),ko=Sf(bf(wf,vf,pe)),Cf=Symbol.for("InnerPageScopeKey"),kf=Symbol.for("PageWrapperKey");function Tf(e,n){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(a,o){t.provide(Cf,!0);const l={};t.provide(kf,l);const r=c=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=t.ref(!0),s=c=>{i.value=c};return()=>{const d={...o.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},u={};if(typeof o.slots.default=="function"){const m=o.slots.default();u.default=()=>m}return t.h(k.ElDialog,d,u)}}}}const{componentName:lh,create:$f,scope:rh}=te("dialog-item"),To=$f(Tf());function Df(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:o}){const l=e,r=t.computed(()=>({[l]:!0})),i=t.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),s=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),c=t.computed(()=>{const u={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?u["is-left"]=!0:u["is-right"]=!0,u}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let u=null;if(o.mark)u=o.mark()[0];else{const b={class:i.value,style:s.value};u=t.h(a.icon??"div",b)}const m={class:c.value,style:d.value},p=o.default?o.default():[],E=t.h("div",m,p),g={class:r.value};return a.textPosition==="right"?t.h("div",g,[u,E]):t.h("div",g,[E,u])}}}}const{componentName:Ef,create:xf,scope:ih}=te("indicator"),$o=xf(Df(Ef));function Nf(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Vf={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function If(e,n){return{props:{...Vf},setup(a,o){const l=t.ref(!0),r=t.ref(null),i=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(p=>{u[p]=!0}),a.type&&(u[`${e}__${a.type}`]=!0),a.size&&(u[`${e}__${a.size}`]=!0),u}),s=u=>{if(u&&oe(a.showOverflowTooltip)){const m=u.clientWidth;Nf(u,p=>{l.value=p<=m})}};let c=null;t.onMounted(()=>{if(!oe(a.showOverflowTooltip))return;const u=r.value;s(u),u&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{s(u)}),c.observe(u))}),t.onUnmounted(()=>{c?.disconnect()});const d=(u,m)=>{let p=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const E=a.highlightFilter;if(u.indexOf(E)!==-1){const b=u.replace(new RegExp(E,"g"),`<span>${E}</span>`);m.innerHTML=b,m.class["is-highlight"]=!0,p=t.h(a.tag,m)}}else if(typeof a.highlightFilter=="function"){const E=a.highlightFilter(u);E&&(m.innerHTML=E,m.class["is-highlight"]=!0,p=t.h(a.tag,m))}return p};return()=>{const u={},m={...o.attrs,class:{...i.value},ref:r};if(oe(a.numberFormat)&&typeof o.slots.default=="function"){const b=o.slots.default();if(Array.isArray(b)&&b.length===1){const v=b[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const h=ce(a.digits),w=ce(a.decimalLength),f=oe(a.autoPadding);let I=`${b[0].children}`,B=I.split("").reverse().join("");B=Ft(B,w,f,h,a.separator),I=B.split("").reverse().join("");let O=null;a.highlightFilter!==void 0&&(O=d(I,m)),O||(m.innerHTML=I,O=t.h(a.tag,m)),u.default=()=>O}}}else{let b=null;if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const v=o.slots.default();if(Array.isArray(v)&&v.length===1){const h=v[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const w=`${v[0].children}`;b=d(w,m),b||(m.innerHTML=w,b=t.h(a.tag,m))}}}b||(b=t.h(a.tag,m,{default:o.slots.default})),u.default=()=>b}const E={disabled:l.value};return u.content=o.slots.default,t.h(k.ElTooltip,E,u)}}}}const{componentName:Bf,create:Af,scope:sh}=te("text"),Do=Af(If(Bf)),{create:Of}=te("toast"),Rf=Of({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},i=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,E=>{E&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=ue(e.iconSize);return t.h(e.icon,{width:E,height:E,color:e.iconColor})},u=t.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]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:s,renderIcon:d,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:m,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ff={key:1,class:"fox-toast-title"},Lf=["innerHTML"];function Mf(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Ff,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Lf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Eo=de(Rf,[["render",Mf]]),Pf={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ke.ArrowUp}};function qf(e,n,a){return{props:{...Pf},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const m={[`${e}`]:!0};return o.disabled?m[`${e}__disabled`]=!0:m[`${e}__${o.type}`]=!0,m}),i=ie(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),u=()=>{l("update:modelValue",!i.value)};return()=>{const m=[];if(s.value){const b={class:c.value},v=t.h("span",b,[s.value]);m.push(v)}const p={class:d.value},E=a(o.icon,p);return E&&m.push(E),t.h("div",{class:r.value,onClick:u},m)}}}}const{componentName:zf,create:jf,scope:_f}=te("more-button"),xo=jf(qf(zf,_f,(e,n)=>(e=e??ke.ArrowUp,t.h(k.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Hf,create:Kf,scope:uh}=te("tour"),Yf=Kf({components:{Close:ke.Close,ElPopover:k.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=Hf,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=t.ref({}),r=t.computed(()=>`${a}`),i=t.computed(()=>{const{offset:g,maskWidth:b,maskHeight:v}=e,{width:h,height:w,left:f,top:I}=l.value,B=e.steps[o.active].offset??g,O=[f+h/2,I+w/2],R=Number(b||h),V=Number(v||w);return{width:`${R+ +B.left+B.right}px`,height:`${V+B.top+B.bottom}px`,top:`${O[1]-V/2-+B.top}px`,left:`${O[0]-R/2-+B.left}px`}}),s=g=>{g=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,u()}),n("change",o.active)},c=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,u=()=>{const g=document.querySelector(`${e.steps[o.active].target}`),b=Ue(g);l.value={x:b.left,y:b.top,top:b.top,left:b.left,width:b.width,height:b.height}},m=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&m()},E=(g,b=0)=>{g&&u(),e.steps,o.active=b,o.showTour=g,o.showPopup=g};return t.onMounted(()=>{E(e.modelValue,e.current)}),t.watch(()=>e.modelValue,g=>{E(g)}),{...t.toRefs(o),classes:r,maskStyle:i,changeStep:s,popoverWidth:c,popoverLocation:d,close:m,handleClickMask:p}}}),Wf={key:0,class:"fox-tour__content"},Uf={key:0,class:"fox-tour__content-top"},Gf={class:"fox-tour__content-inner"},Xf={class:"fox-tour__content-bottom"},Zf={class:"fox-tour__content-bottom-init"},Jf={class:"fox-tour__content-bottom-operate"},Qf={key:1,class:"fox-tour__content fox-tour__content-tile"},em={class:"fox-tour__content-inner"};function tm(e,n,a,o,l,r){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),c=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Wf,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Uf,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Gf,t.toDisplayString(d.content),1),t.createElementVNode("div",Xf,[t.createElementVNode("div",Zf,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Jf,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",Qf,[t.createElementVNode("div",em,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const No=de(Yf,[["render",tm]]),xe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Ol=10;function nm(e,n){return e>n&&e>Ol?"horizontal":n>e&&n>Ol?"vertical":""}function om(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=nm(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function am(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function lm(e){e.stopPropagation()}function rm(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&lm(e)}class im{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=am()}open(n){this.el=n;const a=om(),o=(l,r,i,s,c)=>{this.updateMove({x:r,y:i})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&rm(l,!0),o(n,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(n,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Rl(e,n){return new im(e,n)}var Fl;const Vo=typeof window<"u";Vo&&((Fl=window?.navigator)!=null&&Fl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const Ll=e=>{const n=e;n.key==="Escape"&&mt.forEach(a=>a(n))},sm=e=>{t.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Ll),Vo&&mt.push(e)}),t.onBeforeUnmount(()=>{mt=mt.filter(n=>n!==e),mt.length===0&&Vo&&document.removeEventListener("keydown",Ll)})},Io="fox-focus-trap.focus-after-trapped",Bo="fox-focus-trap.focus-after-released",cm="fox-focus-trap.focusout-prevented",Ml={cancelable:!0,bubbles:!1},um={cancelable:!0,bubbles:!1},Pl="foxFocusAfterTrapped",ql="foxFocusAfterReleased",dm=Symbol("foxFocusTrap"),Ao=t.ref(),cn=t.ref(0),Oo=t.ref(0);let un=0;const zl=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},fm=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},jl=(e,n)=>{for(const a of e)if(!fm(a,n))return a},mm=e=>{const n=zl(e),a=jl(n,e),o=jl(n.reverse(),e);return[a,o]},hm=e=>e instanceof HTMLInputElement&&"select"in e,Ge=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Oo.value=window.performance.now(),e!==a&&hm(e)&&n&&e.select()}};function _l(e,n){const a=[...e],o=e.indexOf(n);return o!==-1&&a.splice(o,1),a}const gm=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=_l(e,o),e.unshift(o)},remove:o=>{e=_l(e,o),e[0]?.resume?.()}}},pm=(e,n=!1)=>{const a=document.activeElement;for(const o of e)if(Ge(o,n),document.activeElement!==a)return},Hl=gm(),ym=()=>cn.value>Oo.value,dn=()=>{Ao.value="pointer",cn.value=window.performance.now()},Kl=()=>{Ao.value="keyboard",cn.value=window.performance.now()},bm=()=>(t.onMounted(()=>{un===0&&(document.addEventListener("mousedown",dn),document.addEventListener("touchstart",dn),document.addEventListener("keydown",Kl)),un++}),t.onBeforeUnmount(()=>{un--,un<=0&&(document.removeEventListener("mousedown",dn),document.removeEventListener("touchstart",dn),document.removeEventListener("keydown",Kl))}),{focusReason:Ao,lastUserFocusTimestamp:cn,lastAutomatedFocusTimestamp:Oo}),fn=e=>new CustomEvent(cm,{...um,detail:e}),{componentName:dh,create:wm,scope:fh}=te("focus-trap"),Sm=wm({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Pl,ql,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const o=t.ref();let l,r;const{focusReason:i}=bm();sm(b=>{oe(e.trapped)&&!s.paused&&a("release-requested",b)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=b=>{if(!e.loop&&!oe(e.trapped)||s.paused)return;const{key:v,altKey:h,ctrlKey:w,metaKey:f,currentTarget:I,shiftKey:B}=b,{loop:O}=e,R=v==="Tab"&&!h&&!w&&!f,V=document.activeElement;if(R&&V){const $=I,[D,P]=mm($);if(D&&P){if(!B&&V===P){const S=fn({focusReason:i.value});a("focusout-prevented",S),S.defaultPrevented||(b.preventDefault(),O&&Ge(D,!0))}else if(B&&[D,$].includes(V)){const S=fn({focusReason:i.value});a("focusout-prevented",S),S.defaultPrevented||(b.preventDefault(),O&&Ge(P,!0))}}else if(V===$){const S=fn({focusReason:i.value});a("focusout-prevented",S),S.defaultPrevented||b.preventDefault()}}};t.provide(dm,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,b=>{b&&(o.value=b)},{immediate:!0}),t.watch([o],([b],[v])=>{b&&(b.addEventListener("keydown",c),b.addEventListener("focusin",m),b.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",c),v.removeEventListener("focusin",m),v.removeEventListener("focusout",p))});const d=b=>{a(Pl,b)},u=b=>a(ql,b),m=b=>{const v=t.unref(o);if(!v)return;const h=b.target,w=b.relatedTarget,f=h&&v.contains(h);oe(e.trapped)||w&&v.contains(w)||(l=w),f&&a("focusin",b),!s.paused&&oe(e.trapped)&&(f?r=h:Ge(r,!0))},p=b=>{const v=t.unref(o);if(!(s.paused||!v))if(!e.escape&&oe(e.trapped)){const h=b.relatedTarget;!Dn(h)&&!v.contains(h)&&setTimeout(()=>{if(!s.paused&&oe(e.trapped)){const w=fn({focusReason:i.value});a("focusout-prevented",w),w.defaultPrevented||Ge(r,!0)}},0)}else{const h=b.target;h&&v.contains(h)||a("focusout",b)}};async function E(){await t.nextTick();const b=t.unref(o);if(b){Hl.push(s);const v=b.contains(document.activeElement)?l:document.activeElement;if(l=v,!b.contains(v)){const w=new Event(Io,Ml);b.addEventListener(Io,d),b.dispatchEvent(w),w.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Uo(f)||(Ge(f),document.activeElement!==f&&(f="first")),f==="first"&&pm(zl(b),!0),(document.activeElement===v||f==="container")&&Ge(b)})}}}function g(){const b=t.unref(o);if(b){b.removeEventListener(Io,d);const v=new CustomEvent(Bo,{...Ml,detail:{focusReason:i.value}});b.addEventListener(Bo,u),b.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!ym())&&Ge(l??document.body,!0),b.removeEventListener(Bo,d),Hl.remove(s)}}return t.onMounted(()=>{oe(e.trapped)&&E(),t.watch(()=>e.trapped,b=>{oe(b)?E():g()})}),t.onBeforeUnmount(()=>{oe(e.trapped)&&g()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:vm,create:Cm,scope:hh}=te("floating-window"),km=Symbol.for("InnerPageScopeKey"),Tm=Symbol.for("PageWrapperKey"),$m={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Dm=Cm({inheritAttrs:!1,components:{FoxIcon:k.ElIcon,FocusTrap:Sm},props:{...$m},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=vm,o=t.ref(e.modelValue),l=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,A=>{o.value=A});const r=t.computed(()=>o.value===!1?!1:!R.value),i=t.ref(e.left),s=t.ref(e.top),c=t.ref(e.right),d=t.ref(e.bottom),u=t.computed(()=>{const A=["fox-floating-window"];return e.customClass&&A.push(e.customClass),A}),m=t.computed(()=>{const A={};return tt(i.value)?A.left="auto":A.left=xe(i.value),tt(s.value)?A.top="auto":A.top=xe(s.value),tt(c.value)?A.right="auto":A.right=xe(c.value),tt(d.value)?A.bottom="auto":A.bottom=xe(d.value),tt(e.zIndex)||(A["z-index"]=xe(e.zIndex)),tt(B.value)||(A.height=B.value),tt(O.value)||(A.width=O.value),A}),p=t.computed(()=>e.closeIcon??ke.Close),E=t.computed(()=>e.collapseIcon??ke.ArrowUp),g=t.computed(()=>e.collapseText??""),b=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),v=t.computed(()=>e.expandText??e.title??"展开"),h=t.computed(()=>({[`${a}__collapse-text`]:!0})),w=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),f=t.ref(),I=t.ref(),B=t.computed(()=>xe(e.height)||""),O=t.computed(()=>xe(e.width)||""),R=t.ref(oe(e.collapse)),V=(A,H=!0)=>{R.value!==A&&(R.value=A,A?_():U(),n("update:collapse",A))};t.watch(()=>e.collapse,A=>{V(A)});const $=()=>{D()},D=A=>{A=A??!R.value,V(A)};t.provide(km,!0);const P={setCollapse:V,setFixedNavVisible:A=>{q.value=A}};t.provide(Tm,P);const z=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{o.value=!1}):o.value=!1},S=t.ref(null),x=t.computed(()=>!e.fixedNavTeleport),C=t.computed(()=>{const A=["fox-floating-window__fixednav"];return e.expandClass&&A.push(e.expandClass),e.collapsePosition==="left"?A.push("is-left"):e.collapsePosition==="right"&&A.push("is-right"),A}),L=t.ref(""),N=t.computed(()=>{const A={};return L.value?A.top=L.value:e.collapseTop&&(A.top=e.collapseTop),A}),q=t.ref(R.value);let T=null;const F=()=>{typeof T=="function"&&(T(),T=null)},_=()=>{S.value&&S.value.classList.add("slide-in"),q.value=!0,T=()=>{S.value&&S.value.classList.remove("slide-in")}},U=()=>{S.value&&S.value.classList.add("slide-out"),T=()=>{S.value&&S.value.classList.remove("slide-out"),q.value=!1}},J=()=>{i.value=null,s.value=null,c.value=null,d.value=null},Q={x:0,y:0},Z=Rl(A=>{if(!f.value)return;const H=f.value;if(J(),e.origin==="left-top")i.value=H.offsetLeft,s.value=H.offsetTop,Q.x=i.value,Q.y=s.value;else if(e.origin==="left-bottom"){const M=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,d.value=M-(H.offsetTop+H.offsetHeight),Q.x=i.value,Q.y=d.value}else if(e.origin==="right-bottom"){const M=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;c.value=M-(H.offsetLeft+H.offsetWidth),d.value=K-(H.offsetTop+H.offsetHeight),Q.x=c.value,Q.y=d.value}else{const M=document.documentElement.clientWidth||document.body.clientWidth;c.value=M-(H.offsetLeft+H.offsetWidth),s.value=H.offsetTop,Q.x=c.value,Q.y=s.value}},A=>{if(!f.value)return;const H=f.value;J(),e.origin==="left-top"?(i.value=Q.x+A.x,s.value=Q.y+A.y,H.style.left=xe(i.value),H.style.top=xe(s.value)):e.origin==="left-bottom"?(i.value=Q.x+A.x,d.value=Q.y-A.y,H.style.left=xe(i.value),H.style.bottom=xe(d.value)):e.origin==="right-bottom"?(c.value=Q.x-A.x,d.value=Q.y-A.y,H.style.right=xe(c.value),H.style.bottom=xe(d.value)):(c.value=Q.x-A.x,s.value=Q.y+A.y,H.style.right=xe(c.value),H.style.top=xe(s.value))}),ne={x:0,y:0},G=Rl(A=>{S.value&&(ne.x=S.value.offsetLeft,ne.y=S.value.offsetTop)},A=>{if(!S.value)return;const H=ne.y+A.y;L.value=`${H}px`});return t.onMounted(()=>{e.draggable&&I.value&&f.value&&Z.open(I.value),e.collapse===!0&&V(e.collapse,!1),S.value&&G.open(S.value)}),t.onBeforeUnmount(()=>{e.draggable&&I.value&&Z.close(),S.value&&G.close()}),{classes:u,styles:m,isShow:r,closeIcon:p,onClose:z,dialogRef:f,headerRef:I,onClickToggle:$,collapseIcon:E,collapseText:g,collapseTextClasses:h,collapseIconClasses:w,expandIcon:b,expandText:v,isShowFixedNav:q,fixedNavRef:S,fixedNavClasses:C,fixedNavStyles:N,onAnimationEnd:F,teleportDisabled:l,fixedNavTeleportDisabled:x}}}),Em={ref:"headerRef",class:"fox-floating-window__header"},xm={class:"fox-floating-window__title"},Nm={class:"fox-floating-window__tools"},Vm={class:"fox-floating-window__body"},Im={class:"fox-floating-window__fixednav__text"};function Bm(e,n,a,o,l,r){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Em,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",xm,t.toDisplayString(e.title),1),t.createElementVNode("div",Nm,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Vm,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Im,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ro=de(Dm,[["render",Bm]]);function Am(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return ha(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:gh,create:Om,scope:ph}=te("domain-provider"),Fo=Om(Am()),Rm={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Fm(e,n){return{inheritAttrs:!1,props:Rm,setup(a,{slots:o}){if(Je&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const i=(p,E)=>{if(u===null){r.set(p,{visible:null,callback:E});return}l.has(p)&&u.unobserve(p),l.set(p,{visible:null,callback:E}),u.observe(p)},s=p=>{if(u===null){r.delete(p);return}l.has(p)&&(l.delete(p),u.unobserve(p))};let c=a.initialVisibleObserverSize;li({acquire:()=>{const p=c>0;return c--,p},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let u=null;const m=(p,E,g)=>{u=new IntersectionObserver(b=>{for(let v of b){let h=!1;v.intersectionRatio>0&&(h=!0);const w=l.get(v.target);if(w)try{if(a.loadPolicy==="lazy"&&!h&&w.visible!==null)return;w.visible=h,w.callback(h)}catch(f){console.error(f)}}},{root:p,rootMargin:E,threshold:g}),r.forEach((b,v)=>{l.set(v,b),u?.observe(v)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([p,E])=>{if(E||!p||u)return;let g=null;typeof p=="string"?g=document.querySelector(p):g=p,g&&m(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:yh,create:Lm,scope:bh}=te("rolling-provider"),Lo=Lm(Fm()),Mm=[On,Ln,Mn,Pn,jn,pe,Kn,Yn,Ct,Wn,Jn,no,lo,ro,io,so,co,fo,mo,ho,go,sn,bo,wo,So,vo,Co,ko,To,Vt,Jt,$o,Do,Eo,Tt,_e,it,nn,on,Nt,xt,rn,xo,No,Et,Ro,Fo,Lo],Pm=new Nr(Mm,[Br],"4.0.0");Object.defineProperty(y,"FoxAffix",{enumerable:!0,get:()=>k.ElAffix}),Object.defineProperty(y,"FoxAlert",{enumerable:!0,get:()=>k.ElAlert}),Object.defineProperty(y,"FoxAside",{enumerable:!0,get:()=>k.ElAside}),Object.defineProperty(y,"FoxAutoResizer",{enumerable:!0,get:()=>k.ElAutoResizer}),Object.defineProperty(y,"FoxAutocomplete",{enumerable:!0,get:()=>k.ElAutocomplete}),Object.defineProperty(y,"FoxAvatar",{enumerable:!0,get:()=>k.ElAvatar}),Object.defineProperty(y,"FoxBacktop",{enumerable:!0,get:()=>k.ElBacktop}),Object.defineProperty(y,"FoxBadge",{enumerable:!0,get:()=>k.ElBadge}),Object.defineProperty(y,"FoxBreadcrumb",{enumerable:!0,get:()=>k.ElBreadcrumb}),Object.defineProperty(y,"FoxBreadcrumbItem",{enumerable:!0,get:()=>k.ElBreadcrumbItem}),Object.defineProperty(y,"FoxButton",{enumerable:!0,get:()=>k.ElButton}),Object.defineProperty(y,"FoxButtonGroup",{enumerable:!0,get:()=>k.ElButtonGroup}),Object.defineProperty(y,"FoxCalendar",{enumerable:!0,get:()=>k.ElCalendar}),Object.defineProperty(y,"FoxCard",{enumerable:!0,get:()=>k.ElCard}),Object.defineProperty(y,"FoxCarousel",{enumerable:!0,get:()=>k.ElCarousel}),Object.defineProperty(y,"FoxCarouselItem",{enumerable:!0,get:()=>k.ElCarouselItem}),Object.defineProperty(y,"FoxCascader",{enumerable:!0,get:()=>k.ElCascader}),Object.defineProperty(y,"FoxCascaderPanel",{enumerable:!0,get:()=>k.ElCascaderPanel}),Object.defineProperty(y,"FoxCheckTag",{enumerable:!0,get:()=>k.ElCheckTag}),Object.defineProperty(y,"FoxCheckbox",{enumerable:!0,get:()=>k.ElCheckbox}),Object.defineProperty(y,"FoxCheckboxButton",{enumerable:!0,get:()=>k.ElCheckboxButton}),Object.defineProperty(y,"FoxCheckboxGroup",{enumerable:!0,get:()=>k.ElCheckboxGroup}),Object.defineProperty(y,"FoxCol",{enumerable:!0,get:()=>k.ElCol}),Object.defineProperty(y,"FoxCollapse",{enumerable:!0,get:()=>k.ElCollapse}),Object.defineProperty(y,"FoxCollapseItem",{enumerable:!0,get:()=>k.ElCollapseItem}),Object.defineProperty(y,"FoxCollapseTransition",{enumerable:!0,get:()=>k.ElCollapseTransition}),Object.defineProperty(y,"FoxColorPicker",{enumerable:!0,get:()=>k.ElColorPicker}),Object.defineProperty(y,"FoxConfigProvider",{enumerable:!0,get:()=>k.ElConfigProvider}),Object.defineProperty(y,"FoxContainer",{enumerable:!0,get:()=>k.ElContainer}),Object.defineProperty(y,"FoxDescriptions",{enumerable:!0,get:()=>k.ElDescriptions}),Object.defineProperty(y,"FoxDescriptionsItem",{enumerable:!0,get:()=>k.ElDescriptionsItem}),Object.defineProperty(y,"FoxDialog",{enumerable:!0,get:()=>k.ElDialog}),Object.defineProperty(y,"FoxDivider",{enumerable:!0,get:()=>k.ElDivider}),Object.defineProperty(y,"FoxDrawer",{enumerable:!0,get:()=>k.ElDrawer}),Object.defineProperty(y,"FoxDropdown",{enumerable:!0,get:()=>k.ElDropdown}),Object.defineProperty(y,"FoxDropdownItem",{enumerable:!0,get:()=>k.ElDropdownItem}),Object.defineProperty(y,"FoxDropdownMenu",{enumerable:!0,get:()=>k.ElDropdownMenu}),Object.defineProperty(y,"FoxEmpty",{enumerable:!0,get:()=>k.ElEmpty}),Object.defineProperty(y,"FoxFooter",{enumerable:!0,get:()=>k.ElFooter}),Object.defineProperty(y,"FoxForm",{enumerable:!0,get:()=>k.ElForm}),Object.defineProperty(y,"FoxFormItem",{enumerable:!0,get:()=>k.ElFormItem}),Object.defineProperty(y,"FoxHeader",{enumerable:!0,get:()=>k.ElHeader}),Object.defineProperty(y,"FoxIcon",{enumerable:!0,get:()=>k.ElIcon}),Object.defineProperty(y,"FoxImage",{enumerable:!0,get:()=>k.ElImage}),Object.defineProperty(y,"FoxImageViewer",{enumerable:!0,get:()=>k.ElImageViewer}),Object.defineProperty(y,"FoxInput",{enumerable:!0,get:()=>k.ElInput}),Object.defineProperty(y,"FoxInputNumber",{enumerable:!0,get:()=>k.ElInputNumber}),Object.defineProperty(y,"FoxLink",{enumerable:!0,get:()=>k.ElLink}),Object.defineProperty(y,"FoxMain",{enumerable:!0,get:()=>k.ElMain}),Object.defineProperty(y,"FoxMenu",{enumerable:!0,get:()=>k.ElMenu}),Object.defineProperty(y,"FoxMenuItem",{enumerable:!0,get:()=>k.ElMenuItem}),Object.defineProperty(y,"FoxMenuItemGroup",{enumerable:!0,get:()=>k.ElMenuItemGroup}),Object.defineProperty(y,"FoxOption",{enumerable:!0,get:()=>k.ElOption}),Object.defineProperty(y,"FoxOptionGroup",{enumerable:!0,get:()=>k.ElOptionGroup}),Object.defineProperty(y,"FoxPageHeader",{enumerable:!0,get:()=>k.ElPageHeader}),Object.defineProperty(y,"FoxPagination",{enumerable:!0,get:()=>k.ElPagination}),Object.defineProperty(y,"FoxPopconfirm",{enumerable:!0,get:()=>k.ElPopconfirm}),Object.defineProperty(y,"FoxPopover",{enumerable:!0,get:()=>k.ElPopover}),Object.defineProperty(y,"FoxPopper",{enumerable:!0,get:()=>k.ElPopper}),Object.defineProperty(y,"FoxProgress",{enumerable:!0,get:()=>k.ElProgress}),Object.defineProperty(y,"FoxRadio",{enumerable:!0,get:()=>k.ElRadio}),Object.defineProperty(y,"FoxRadioButton",{enumerable:!0,get:()=>k.ElRadioButton}),Object.defineProperty(y,"FoxRadioGroup",{enumerable:!0,get:()=>k.ElRadioGroup}),Object.defineProperty(y,"FoxRate",{enumerable:!0,get:()=>k.ElRate}),Object.defineProperty(y,"FoxResult",{enumerable:!0,get:()=>k.ElResult}),Object.defineProperty(y,"FoxRow",{enumerable:!0,get:()=>k.ElRow}),Object.defineProperty(y,"FoxScrollbar",{enumerable:!0,get:()=>k.ElScrollbar}),Object.defineProperty(y,"FoxSelect",{enumerable:!0,get:()=>k.ElSelect}),Object.defineProperty(y,"FoxSelectV2",{enumerable:!0,get:()=>k.ElSelectV2}),Object.defineProperty(y,"FoxSkeleton",{enumerable:!0,get:()=>k.ElSkeleton}),Object.defineProperty(y,"FoxSkeletonItem",{enumerable:!0,get:()=>k.ElSkeletonItem}),Object.defineProperty(y,"FoxSlider",{enumerable:!0,get:()=>k.ElSlider}),Object.defineProperty(y,"FoxSpace",{enumerable:!0,get:()=>k.ElSpace}),Object.defineProperty(y,"FoxStep",{enumerable:!0,get:()=>k.ElStep}),Object.defineProperty(y,"FoxSteps",{enumerable:!0,get:()=>k.ElSteps}),Object.defineProperty(y,"FoxSubMenu",{enumerable:!0,get:()=>k.ElSubMenu}),Object.defineProperty(y,"FoxSwitch",{enumerable:!0,get:()=>k.ElSwitch}),Object.defineProperty(y,"FoxTabPane",{enumerable:!0,get:()=>k.ElTabPane}),Object.defineProperty(y,"FoxTable",{enumerable:!0,get:()=>k.ElTable}),Object.defineProperty(y,"FoxTableColumn",{enumerable:!0,get:()=>k.ElTableColumn}),Object.defineProperty(y,"FoxTableV2",{enumerable:!0,get:()=>k.ElTableV2}),Object.defineProperty(y,"FoxTabs",{enumerable:!0,get:()=>k.ElTabs}),Object.defineProperty(y,"FoxTag",{enumerable:!0,get:()=>k.ElTag}),Object.defineProperty(y,"FoxTimePicker",{enumerable:!0,get:()=>k.ElTimePicker}),Object.defineProperty(y,"FoxTimeSelect",{enumerable:!0,get:()=>k.ElTimeSelect}),Object.defineProperty(y,"FoxTimeline",{enumerable:!0,get:()=>k.ElTimeline}),Object.defineProperty(y,"FoxTimelineItem",{enumerable:!0,get:()=>k.ElTimelineItem}),Object.defineProperty(y,"FoxTooltip",{enumerable:!0,get:()=>k.ElTooltip}),Object.defineProperty(y,"FoxTransfer",{enumerable:!0,get:()=>k.ElTransfer}),Object.defineProperty(y,"FoxTree",{enumerable:!0,get:()=>k.ElTree}),Object.defineProperty(y,"FoxTreeSelect",{enumerable:!0,get:()=>k.ElTreeSelect}),Object.defineProperty(y,"FoxTreeV2",{enumerable:!0,get:()=>k.ElTreeV2}),Object.defineProperty(y,"FoxUpload",{enumerable:!0,get:()=>k.ElUpload}),y.AutocompleteItem=mo,y.Broadcast=En,y.BroadcastKey=be,y.CalendarItem=lo,y.CalendarPicker=on,y.CascaderItem=fo,y.CascaderPicker=rn,y.CheckboxItem=So,y.Content=Pn,y.DataItemsKey=ot,y.DateItem=no,y.DatePicker=nn,y.DateUtils=ee,y.DialogItem=To,y.Domain=zt,y.DomainKey=Ve,y.DomainProvider=Fo,y.ExtTabPane=Nt,y.ExtTabs=xt,y.FloatingWindow=Ro,y.FooterBar=Mn,y.FoxAutocompleteItem=mo,y.FoxCalendarItem=lo,y.FoxCalendarPicker=on,y.FoxCascaderItem=fo,y.FoxCascaderPicker=rn,y.FoxCheckboxItem=So,y.FoxContent=Pn,y.FoxDateItem=no,y.FoxDatePicker=nn,y.FoxDialogItem=To,y.FoxDomainProvider=Fo,y.FoxExtTabPane=Nt,y.FoxExtTabs=xt,y.FoxFloatingWindow=Ro,y.FoxFooterBar=Mn,y.FoxGroup=jn,y.FoxHeaderBar=Ln,y.FoxHintText=Ct,y.FoxIndicator=$o,y.FoxInputItem=Wn,y.FoxInputNumberItem=co,y.FoxItem=pe,y.FoxMapping=Vt,y.FoxMoneyItem=so,y.FoxMoreButton=xo,y.FoxOverlay=Tt,y.FoxPage=On,y.FoxPicker=it,y.FoxPopup=_e,y.FoxPrice=Jt,y.FoxRadioItem=wo,y.FoxRateItem=vo,y.FoxRollingProvider=Lo,y.FoxRowItem=Yn,y.FoxSelectItem=Jn,y.FoxSlotItem=Kn,y.FoxSwitchItem=Co,y.FoxTableItem=bo,y.FoxTableMappingColumn=ho,y.FoxTableRadioColumn=go,y.FoxTableSetting=sn,y.FoxText=Do,y.FoxTimeItem=ro,y.FoxTimeSelectItem=io,y.FoxToast=Eo,y.FoxTour=No,y.FoxTreeSelectItem=ko,y.Foxsticky=Et,y.Group=jn,y.HeaderBar=Ln,y.HintText=Ct,y.Indicator=$o,y.InputItem=Wn,y.InputNumberItem=co,y.Item=pe,y.Mapping=Vt,y.MoneyItem=so,y.MoreButton=xo,y.Overlay=Tt,y.Page=On,y.Picker=it,y.Popup=_e,y.Price=Jt,y.PriorityPolicy=We,y.RadioItem=wo,y.RateItem=vo,y.RollingProvider=Lo,y.RowItem=Yn,y.SelectItem=Jn,y.SlotItem=Kn,y.SwitchItem=Co,y.TableItem=bo,y.TableMappingColumn=ho,y.TableRadioColumn=go,y.TableSetting=sn,y.Text=Do,y.TimeItem=ro,y.TimeSelectItem=io,y.Toast=Eo,y.Tour=No,y.TreeSelectItem=ko,y.UniqueID=Na,y.ValidateSchema=da,y.ValidateSchemaKey=qe,y.cancelRaf=Ul,y.clearNonNumber=rr,y.clone=Tn,y.compareTo=vn,y.createBroadcast=Mt,y.createValidateSchema=qt,y.debounce=wt,y.debounceRef=wr,y.decimalLength=aa,y.default=Pm,y.defineBroadcast=ur,y.defineConfigDomain=ha,y.defineDataItem=pa,y.defineDomain=Vn,y.defineItem=we,y.definePageState=ya,y.deleteGlobalValidator=hr,y.disabledProperty=De,y.divide=Sn,y.excludeProps=ve,y.extend=Ze,y.floatData=cr,y.getGlobalValidateCheckEvents=sa,y.getGlobalValidateResetEvents=ua,y.getPageContentAreaHeight=_t,y.getPageContentAreaWidth=Ht,y.getPageFooterAreaHeight=vt,y.getPageHeaderAreaHeight=St,y.getRootDomain=at,y.hasSymbol=Xo,y.includeProps=pt,y.indexOf=ir,y.installRules=ga,y.integerLength=oa,y.isArray=Xl,y.isArrayLike=Qo,y.isBrowser=Je,y.isDate=Me,y.isESModule=tr,y.isEmptyString=ye,y.isEqual=Pe,y.isFunction=Cn,y.isHidden=Jo,y.isInnerPage=Cr,y.isMap=Zl,y.isNil=Dn,y.isNumberString=na,y.isObject=Ae,y.isPlainObject=kn,y.isPromise=er,y.isRegExp=ta,y.isSet=Jl,y.isString=Uo,y.isSubPage=kr,y.isSymbol=Ql,y.isWindow=Zo,y.lastIndexOf=sr,y.makeArray=lr,y.merge=ea,y.multiply=Ho,y.negate=Ko,y.nextTick=or,y.numberFormat=Ft,y.objectToString=Go,y.once=Sr,y.property=Ne,y.raf=Wo,y.readonlyProperty=$e,y.setGlobalValidateCheckEvents=gr,y.setGlobalValidateHandler=fr,y.setGlobalValidateMessages=yr,y.setGlobalValidateResetEvents=pr,y.setGlobalValidator=mr,y.sticky=Et,y.throttle=ma,y.toBoolean=oe,y.toNumber=ce,y.toPadding=Oe,y.toPx=ue,y.toPxDesc=Se,y.toTypeString=Lt,y.toValue=ie,y.tryTimes=xn,y.typeOf=nt,y.unNumberFormat=Yo,y.updatePageState=In,y.useBroadcast=yt,y.useDomain=ze,y.useExpose=he,y.useInnerSize=Fn,y.usePageState=jt,y.usePosition=Da,y.useRect=Ue,y.useSize=Rn,y.useTouch=Xn,y.valueLength=Be,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Rt(e,n="0"){let l=0,o=-1;e[0]=="-"&&(l++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,o=2,n=n.substring(1),n.length),e=$e(e),n=$e(n),[e,n]=gn($e(e),$e(n)),l==1&&(o==1?e=hn(e):n=hn(n));let a=_o(e,n);return l?l==2?"-"+$e(a):e.length<a.length?$e(a.substring(1)):"-"+$e(hn(a)):$e(a)}function hn(e){let n="",l=e.length,o=e.split(".")[1],a=o?o.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return _o(n,r)}function $e(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function gn(e,n){let l=e.split("."),o=n.split("."),a=l[0].length,r=o[0].length;return a>r?o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=o[1]?o[1].length:0,(a||r)&&(a>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function _o(e,n){[e,n]=gn(e,n);let l="",o=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(n[a])+o;l=r%10+l,o=Math.floor(r/10)}return o?o.toString()+l:l}var me=(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))(me||{});function ht(e,n=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+i,c=ht(e,0,l),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,zo(a[1],r,o,l)?(o?"-":"")+pn(r):(o?"-":"")+r;if(a[1]){if(a[1].length<n)return(o?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let s=a[1].substring(n);return s&&zo(s,i,o,l)&&(i=pn(i),i.length>n)?(o?"-":"")+pn(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function zo(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===me.DOWN||!l&&o===me.FLOOR||l&&o===me.CEILING)return!1;if(o===me.UP||l&&o===me.FLOOR||!l&&o===me.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(o){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function pn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,o="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function yn(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=gt(e),n=gt(n);let o=0,a=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=o+a;if(e=gt(e.replace(".","")),n=gt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,s=0,c=[],f=i-1,d="";for(let m=0;m<i;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let g=0;for(let V=n.length-1;V>=f&&V>=0;V--)c[V]>-1&&c[V]<e.length&&(g+=parseInt(e[c[V]--])*parseInt(n[V]));g+=s,s=Math.floor(g/10),d=g%10+d,f--}return d=gt(Ja(d,r)),l==1&&(d="-"+d),d}function Ja(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function gt(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 bn(e,n,l=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=$e(n.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=$e(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=$e(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let d=e.length-f+a;e=$e(e.substring(0,d)+"."+e.substring(d))}else a==f&&(e=$e(e.replace(".","")))}let r=0,i=n.length,s="",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 f=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(f+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=f,s="0."+new Array(f).join("0")}for(l=l+2;r<=l;){let f=0;for(;parseInt(c)>=parseInt(n);)c=Rt(c,"-"+n),f++;s+=f,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+$e(ht(s,l-2))}function wn(e,n){return e=e.toString(),n=n.toString(),n=Sn(n),Rt(e,n)}function Sn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function jo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ho(e),Ho(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=wn(e,yn(n,ht(bn(e,n),0,me.FLOOR)));return l+o}function Ho(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ko(e,n){let l=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),l=!0),[e,n]=gn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?l?-1:1:l?1:-1;return 0}class le{value;static RoundingModes=me;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[l,o]=n.split(/[eE]/);l=$e(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=a+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=a+$e(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=a+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=le.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,o){if(!(l||o))l=3,o=",";else if(!(l&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=le.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<l?(l=s,s=0):s-=l,i=n.substring(s,s+l)+(s<r-l&&s>=0?o:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,l){return le.getPrettyValue(this.value,n,l)}static round(n,l=0,o=me.HALF_EVEN){if(n=le.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return ht(n,l,o)}round(n=0,l=me.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new le(ht(this.value,n,l))}static floor(n){return n=le.validate(n),n.indexOf(".")===-1?n:le.round(n,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new le(this.value):new le(this.value).round(0,me.FLOOR)}static ceil(n){return n=le.validate(n),n.indexOf(".")===-1?n:le.round(n,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new le(this.value):new le(this.value).round(0,me.CEILING)}static add(n,l){return n=le.validate(n),l=le.validate(l),Rt(n,l)}add(n){return new le(Rt(this.value,n.getValue()))}static subtract(n,l){return n=le.validate(n),l=le.validate(l),wn(n,l)}subtract(n){return new le(wn(this.value,n.getValue()))}static multiply(n,l){return n=le.validate(n),l=le.validate(l),yn(n,l)}multiply(n){return new le(yn(this.value,n.getValue()))}static divide(n,l,o){return n=le.validate(n),l=le.validate(l),bn(n,l,o)}divide(n,l){return new le(bn(this.value,n.getValue(),l))}static modulus(n,l){return n=le.validate(n),l=le.validate(l),jo(n,l)}modulus(n){return new le(jo(this.value,n.getValue()))}static compareTo(n,l){return n=le.validate(n),l=le.validate(l),Ko(n,l)}compareTo(n){return Ko(this.value,n.getValue())}static negate(n){return n=le.validate(n),Sn(n)}negate(){return new le(Sn(this.value))}}function Yo(e,n){return le.multiply(`${e}`,`${n}`)}function vn(e,n,l=8){return le.divide(`${e}`,`${n}`,l)}function Cn(e,n){return e=`${e}`,n=`${n}`,le.compareTo(e,n)}function Wo(e){return le.negate(e)}function Ft(e,n=-1,l=!1,o=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",f=r.indexOf(".");f!=-1&&(s=r.substring(0,f),c=r.substring(f+1)),n!=-1&&(n<c.length?c=c.substring(0,n):l&&n>c.length&&(c=c.padEnd(n,"0")));let d;if(o>0){let m="",g=s.split("").reverse();for(let V=0;V<g.length;V++)m+=g[V]+((V+1)%o==0&&V+1!=g.length?a:"");c.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${c}`}else c.length==0?d=`${i}${s}`:d=`${i}${s}.${c}`;return d}function Uo(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const Go=qo,Za=Array.isArray,Qa=e=>Lt(e)==="[object Map]",er=e=>Lt(e)==="[object Set]",Me=e=>e instanceof Date,kn=e=>typeof e=="function",Xo=e=>typeof e=="string",tr=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",nr=e=>Oe(e)&&kn(e.then)&&kn(e.catch),Jo=Object.prototype.toString,Lt=e=>Jo.call(e),$n=e=>Lt(e)==="[object Object]",Zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function or(e){return e.__esModule||Zo&&e[Symbol.toStringTag]==="Module"}const lr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Xe(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,o=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let i in r){let s=n[i],c=r[i];if(s!==c)if(a===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},n[i]=Xe(a,f,c)}else c!==void 0&&(n[i]=c)}}return n}function Tn(e,n,l=!1){if(!l)Xe(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;r=Tn(r,i,l),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const o=Object.getOwnPropertySymbols(n);for(let a of o){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;r=Tn(r,i,l),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const xn=lr?Promise.resolve():null;function ar(e,...n){xn!==null?n&&n.length>0?xn.then(()=>{e(n)}):xn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function oe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function se(e){return typeof e=="number"?e:Number(e)}const rr={"[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 nt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):rr[l]||"object"}function Qo(e){return e&&typeof e=="object"&&"setInterval"in e}function Mt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function el(e){let n=!!e&&"length"in e&&e.length,l=nt(e);return l==="function"||Qo(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function tl(e,n){let l=+n.length,o=0,a=e.length;for(;o<l;o++)e[a++]=n[o];return e.length=a,e}function ir(e,n=[]){let l=n;return e!=null&&(el(Object(e))?tl(l,typeof e=="string"?[e]:e):l.push(e)),l}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=nt(e),o=nt(n);if(l!==o)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],c=e[s],f=n[s];if(!Pe(c,f))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],i=n[a];if(!Pe(r,i))return!1}return!0}return!1}const Je=typeof window<"u";function Dn(e){return e==null}function nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const be=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ol(e){return be(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),be(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ll(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const l=n.indexOf(".");return l==-1?n.length:l}function al(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function rl(e,n,l){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(l,"")}function sr(e,n=!0,l=!0){n?e=rl(e,".",/\./g):e=e.replace(/\./g,""),l?e=rl(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function cr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(Pe(e,l))return!0}):n.indexOf(e)}function ur(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(Pe(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function Be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pt(e,...n){const l={};return n.forEach(o=>{for(const a in o)l[a]=e[a]}),l}function ve(e,...n){const l=[];n.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const o={};for(const a in e)l.includes(a)||(o[a]=e[a]);return o}const fr=(e,n,l)=>{const o=Object.assign({},e),a=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(o[r]=n[a[r]]):n[r]&&(o[r]=n[r])}),o):e},we=Symbol.for("BroadcastKey");class En{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,l,o){this.parent=n,this.proxy=l,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const l=this.children.findIndex(o=>n===o);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,l,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):nl(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(l);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[l]=="function"){const c=Reflect.apply(s[l],s,[...o]);c!=null&&r.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},l,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,l,...o){const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},l,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,l){this.callbacks.set(n,l)}}function Pt(e,n,l,o){const a=new En(n,e,l);if(o&&typeof o=="object")for(const r in o)a.on(r,o[r]);return a}function dr(e,n,l){const o=l;if(o[we])return o[we];const a=t.inject(we,null),r=new En(a,l,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[we]=r,t.provide(we,r),t.onUnmounted(()=>{r.destroy(),o[we]=void 0}),r}function yt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const Ze=e=>e.default??e;class mr{error(n,l){const o=l,a=yt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,o){Array.isArray(n)||(n=[n]);const a=o,r=yt(o),i=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let il=new mr;function hr(e){il=e}function gr(e,n){Ze(Ge).setValidator(e,n)}function pr(e){Ze(Ge).deleteValidator(e)}let sl=["blur","clear"];function yr(e){sl=e}function cl(){return sl}let ul=["focus","change"];function br(e){ul=e}function fl(){return ul}function wr(e){Ze(Ge).messages(e)}function bt(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const a=n.findIndex(r=>r.type===o.type);a!==-1&&n.splice(a,1),n.push(o)})}),n}function qt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class dl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,l,o){this.parent=n,this.descriptor=l,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=qt(bt(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=qt(o);const a=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...l){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...l]);const a=il;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...l]):null}decorate(n,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,l,o=!1){o?Ze(Ge).setValidator(n,l):this.validators[n]=l}getValidator(n){let l=this.validators[n]??null;return l||(l=this.parent?.getValidator(n)??null),l}deleteValidator(n,l=!1){l?Ze(Ge).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return Ze(Ge).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const l=bt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=qt(n):this.rules=qt([n]);const o=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=bt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${o}`]:l},r=this.getValue(),i={[`${o}`]:r},s=Ze(Ge),c=new s(a),f=this.proxy??i;return c.validate(i,{context:f}).then(m=>{if(m.pass)this.success();else{let g="error";Array.isArray(m.errors)&&m.errors.length>0&&(g=m.errors[0].message??g,m.errors=[m.errors[0]],m.errors[0].ref=f),this.error(g)}return m}).catch(m=>{const g=m.message??`${m}`;return this.error(g),m})}}return Promise.resolve({pass:!0})}}function _t(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new dl(n,l,e)}const ml=Symbol.for("EventEmitterKey");class Sr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,l){let o=this.register.get(n);if(o&&Array.isArray(o)){let a=o.findIndex(r=>r===l);a!==-1&&o.splice(a,1)}}on(n,l){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(l)}emit(n,...l){const o=this.register.get(n);o&&o.forEach(a=>{try{Reflect.apply(a,null,[n,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...l])}}function wt(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function hl(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function vr(e,n){const l=wt((o,a)=>{e=o,a()},n);return t.customRef((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function Cr(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function Nn(e,n,l,o=0,a=!0){let r=n,i=0;if(a){const c=e();if(i++,c||i>l)return}const s=()=>{const c=e();i++,!(c||i>l)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const Ve=Symbol("DomainKey"),ot=Symbol("DataItemsKey");class zt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,l=[]){for(const o in n){const a=n[o];l.length>0&&l.indexOf(a)!==-1||(this._props[o]=a)}}has(n){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,l){this._props[n]=l}get(n,l){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?l:this.parent.get(n,l)}getForParent(n,l){return this.parent==null?l:this.parent.get(n,l)}getForSelf(n){return this._props[n]}getAll(n){const l=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const a=o._props[n];l.push(a)}o=o._parent}return l}}const kr=new zt;function lt(){return kr}function _e(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const Vn=Symbol("OriginalDateKey");function In(e,n,l=[],o){const a=t.getCurrentInstance(),r=a?.proxy;let i=t.inject(Ve,null);i===null&&(i=lt());const s=e||n.prop||n.name,c=new zt(s);c.parent=i;const f=y=>{r[Vn]||g(y),c.set("modelValue",y)},d=()=>c.getForSelf("modelValue")??null,m=()=>r[Vn]??null,g=y=>{const C={};Xe(!0,C,t.toRaw(y)),r[Vn]=C};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c.merge(y,l)},{immediate:!0}):c.merge(n,l),n.modelValue&&g(n.modelValue),r[Ve]=c,t.provide(Ve,c);let V=null,p=null;if(a!==null){const y=t.inject(we,null);V=Pt(r,y,s,o),c.broadcast=V,r[we]=V,t.provide(we,V),r.broadcast=(h,b,...u)=>Reflect.apply(V.emit,V,[h,b,...u]);const C=t.inject(qe,null);p=_t(r,C,{componentName:""}),c.validateSchema=p,r[qe]=p,t.provide(qe,p),r[ot]=new Map,r.validate=(h=!0)=>{const b=[];let u=null;const A={deep:!1};if(h===!0)u={name:"*"};else if(Array.isArray(h)&&h.length>0){const B=h;u={name:q=>q?B.indexOf(q)!==-1:!1}}else if(h!=null&&typeof h=="object"){const B=h;if(A.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const q=B.include;u={name:P=>P?q.indexOf(P)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;u={name:P=>P?q.indexOf(P)===-1:!1}}else u={name:"*"}}if(u){const B=V?.emitToChildren(u,"validate",A);B&&Reflect.apply([].push,b,B)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(B=>{let q=[];return B.forEach(P=>{P.pass===!1&&Array.isArray(P.errors)&&(q=[...q,...P.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,b=!0,u=!1)=>{if(u===!0){Reflect.ownKeys(h).forEach(B=>{let q=String(B);const R=yl(c,q,{componentName:"",fieldName:q,pureDataValidate:!0},V,p);r[ot].set(q,R);const N=h[q];N&&R.validateSchema.setRule(N)});return}if(b){const A=Reflect.ownKeys(h),B={name:q=>A.includes(q)};V?.emitToChildren(B,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let b=null;if(h===!0)b={name:"*"};else if(Array.isArray(h)&&h.length>0){const u=h;b={name:A=>A?u.indexOf(A)!==-1:!1}}else if(h!=null&&typeof h=="object"){const u=h;if(Array.isArray(u.include)&&u.include.length>0){const A=u.include;b={name:B=>B?A.indexOf(B)!==-1:!1}}else if(Array.isArray(u.exclude)&&u.exclude.length>0){const A=u.exclude;b={name:B=>B?A.indexOf(B)===-1:!1}}else b={name:"*"}}b&&V?.emitToChildren(b,"clearValidate",!1)},r.resetFields=h=>{const b=d();if(!b)return;const u={};if(Xe(!0,u,m()??{}),Array.isArray(h))h.forEach(A=>{b[A]=u[A]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(B=>{b[B]=u[B]});else if(h&&Array.isArray(h.exclude)){let A=h.exclude??[];Reflect.ownKeys(u).forEach(B=>{A.includes(B)||(b[B]=u[B])})}else Object.assign(b,u);r.clearValidate(h)},r.setModelValue=(h,b)=>{!b||b===s?f(h):V?.emitToChildren({name:b},"setModelValue",h)},r.getModelValue=()=>d()}return t.onUnmounted(()=>{c.destroy(),r[Ve]=void 0,r[ot]&&(r[ot].clear(),r[ot]=void 0),V!==null&&(V.destroy(),r[we]=void 0),p!==null&&(p.destroy(),r[qe]=void 0)}),c}function gl(e,n,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Ve,null);r===null&&(r=lt());const i=e||n.prop||n.name,s=new zt(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s.merge(c,l)},{immediate:!0}):s.merge(n,l),a[Ve]=s,t.provide(Ve,s),t.onUnmounted(()=>{s.destroy(),a[Ve]=void 0}),s}function pl(e,n,l){const a=_e(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),r.forEach(i=>{n.setRule(i)}))}function Se(e,n,l){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(we,null),s=Pt(a,i,r,l);a[we]=s,t.provide(we,s),a.broadcast=(p,y,...C)=>Reflect.apply(s.emit,s,[p,y,...C]);const c=t.inject(qe,null);e.fieldName=e.fieldName??r;const f=_t(a,c,e);a[qe]=f,t.provide(qe,f),pl(a,f,r),a.validate=(p=null)=>{const y=[];let C=!1,h=!1;if(Array.isArray(p)&&p.indexOf(r)!==-1)h=!0,C=!0;else if(p&&typeof p=="object"){const b=p;b.ignoreHidden===!0&&Mt(a.$el)?h=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),h=!0),C=b.deep??!1}else typeof p=="boolean"&&(C=p),h=!0;if(h){const b=f?.validate();y.push(b)}if(C){let b=null;const u={deep:!1};if(p===!0)b={name:"*"};else if(Array.isArray(p)&&p.length>0){const A=p;b={name:B=>B?A.indexOf(B)!==-1:!1}}else if(p!=null&&typeof p=="object"){const A=p;if(u.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const B=A.include;b={name:q=>q?B.indexOf(q)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const B=A.exclude;b={name:q=>q?B.indexOf(q)===-1:!1}}else b={name:"*"}}if(b){const A=s.emitToChildren(b,"validate",u);Reflect.apply([].push,y,A)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(b=>{let u=[];return b.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(u=[...u,...A.errors])}),u.length>0?{pass:!1,errors:u}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=p=>f?.setRule(p),a.setNameValidateRules=(p,y=!1)=>{const C=p[r];if(C&&f?.setRule(C),y){const h={name:b=>Reflect.ownKeys(p).includes(b)};s.emitToChildren(h,"setNameValidateRules",p,!1)}},a.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&f?.clear();let y=null;if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const C=p;y={name:h=>h?C.indexOf(h)!==-1:!1}}else if(p!=null&&typeof p=="object"){const C=p;if(Array.isArray(C.include)&&C.include.length>0){const h=C.include;y={name:b=>b?h.indexOf(b)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const h=C.exclude;y={name:b=>b?h.indexOf(b)===-1:!1}}else y={name:"*"}}y&&s.emitToChildren(y,"clearValidate",!1)};const d=new Sr(a);a[ml]=d;const m=wt((p="validate")=>{p==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:cl()).forEach(p=>{d.on(p,y=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fl()).forEach(p=>{d.on(p,y=>{m("reset")})}),t.onUnmounted(()=>{s.destroy(),a[we]=void 0,f.destroy(),a[qe]=void 0,d.destroy(),a[ml]=void 0}),{broadcast:s,validateSchema:f,emitEvent:(p,...y)=>{Reflect.apply(d.emit,d,[p,...y])},onEvent:(p,y)=>{Reflect.apply(d.on,d,[y])},offEvent:(p,y)=>{Reflect.apply(d.off,d,[y])}}}function yl(e,n,l,o,a){const r={},i=n??"",s={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};l.fieldName=i,l.validateHandler={getValue(d){return s.getValue()}};const c=_t({},a,l);r.validate=(d=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let g=!1,V=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)V=!0,g=!0;else if(d&&typeof d=="object"){const p=d;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),V=!0,g=p.deep??!1}else typeof d=="boolean"&&(g=d),V=!0;if(V){const p=c?.validate();m.push(p)}if(g){let p=null;const y={deep:!1};if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const C=d;p={name:h=>h?C.indexOf(h)!==-1:!1}}else if(d!=null&&typeof d=="object"){const C=d;if(Array.isArray(C.include)&&C.include.length>0){const h=C.include;p={name:b=>b?h.indexOf(b)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const h=C.exclude;p={name:b=>b?h.indexOf(b)===-1:!1}}else p={name:"*"}}if(p){const C=f.emitToChildren(p,"validate",y);Reflect.apply([].push,m,C)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(p=>{let y=[];return p.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(y=[...y,...C.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=d=>c?.setRule(d),r.setNameValidateRules=d=>{const m=d[i];m&&c?.setRule(m)};const f=Pt(null,o,i,r);return{broadcast:f,validateSchema:c}}const Ce=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,n)}px`:"";function ce(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*n;const o=Number(e);return isNaN(o)?0:o}const Ye="PageStateKey";function Ae(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function Bn(e,n,l={},o=!0,a=-1,r=-1,i=0,s=0){if(e.headerHeight=ce(l.headerHeight??n.headerHeight??-1),e.headerPadding=Ae(l.headerPadding??n.headerPadding),e.footerHeight=ce(l.footerHeight??n.footerHeight??-1),e.footerPadding=Ae(l.footerPadding??n.footerPadding),e.contentPadding=Ae(l.contentPadding??n.contentPadding),o){const c=l.height??n.height;c?e.height=ce(c,r):e.height=ce(r)-ce(i,r)-ce(s,r),e.width=ce(l.width??n.width??0,a)}}function bl(e,n={}){const l={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(o.safeAreaTop=ce(a.top),o.safeAreaBottom=ce(a.bottom),o.safeAreaLeft=ce(a.left),o.safeAreaRight=ce(a.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Bn(o,r,n,!0,i,s,c,f);const d=t.reactive(o),m=e.getForParent(Ye);m&&(o.height=Ht(e,m),o.width=Kt(e,m),t.watch([()=>Ht(e,m),()=>Kt(e,m)],([V,p])=>{d.height=V,d.width=p}));const g=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,p,y=-1,C=-1,h=0,b=0])=>{Bn(d,p,n,g,y,C,h,b)}),e.set(Ye,d),d}function jt(e){return e.get(Ye)}function St(e,n){if(n=n??e.get(Ye),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function vt(e,n){if(n=n??e.get(Ye),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function Ht(e,n){if(n=n??e.get(Ye),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=St(e,n),o=vt(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Kt(e,n){return n=n??e.get(Ye),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function $r(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function Tr(e){return!!e.getForParent(Ye)}var We=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(We||{});function On(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,l=1,o){const a=_e();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(On(c,o))return c}const i=e.value;return On(i,o)?i:null}):t.computed(()=>{const r=e.value;return On(r,o)?r:a?.get(n)})}function Te(e){return Ne(e,"readonly",0,function(l){return oe(l)})}function xe(e){return Ne(e,"disabled",0,function(l){return oe(l)})}function re(e,n="modelValue",l){const o=t.toRef(e,n);let a=o.value;typeof l=="function"&&(a=l(o.value));const r=t.ref(a);return t.watch(o,i=>{if(typeof l=="function"){const s=l(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const wl=new Map,Yt=new Map;let An=null;function xr(e){An=e}function Sl(e,n,l){if(l){let o=Yt.get(l);o||(o=new Map,Yt.set(l,o)),o.set(e,n)}else wl.set(e,n)}function Re(e,n,l){!l&&An&&(l=An(e)??void 0);let o=null;if(l){let a=Yt.get(l);a&&(o=a.get(n))}return o||(o=wl.get(n)),o}function Dr(e,n){for(let l in e){const o=e[l];Sl(l,o,n)}}function Er(e){Yt.delete(e)}function Nr(){return{top:0,left:0,bottom:0,right:0}}function Vr(e=0,n=0){if(Je){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:o-ce(e,o)-ce(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ir{packages;installers;_version;get version(){return this._version}constructor(n,l,o){this.packages=n,this.installers=l,this._version=o}install(n,l={}){l?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=lt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=hl(()=>{const s={...l},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=f,this.initPageLayout(s,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)o.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(n,l){const o=n.headerBarHeight??0,a=n.footerBarHeight??0,r=Xe({},Nr(),n.safeAreaInset),i=Vr(o,a),s=Xe({},i.pageLayout,n.pageLayout);l=l??lt(),l.set("safeAreaInset",r),l.set("headerBarHeight",o),l.set("footerBarHeight",a),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(n){xr(n)}setAPI(n,l,o){Sl(n,l,o)}getAPI(n,l,o){return Re(n,l,o)}batchSetAPI(n,l){Dr(n,l)}clearScopeAPI(n){Er(n)}getRootDomain(){return lt()}}const Br=[x.ElAffix,x.ElAlert,x.ElAutocomplete,x.ElAutoResizer,x.ElAvatar,x.ElBacktop,x.ElBadge,x.ElBreadcrumb,x.ElBreadcrumbItem,x.ElButton,x.ElButtonGroup,x.ElCalendar,x.ElCard,x.ElCarousel,x.ElCarouselItem,x.ElCascader,x.ElCascaderPanel,x.ElCheckTag,x.ElCheckbox,x.ElCheckboxButton,x.ElCheckboxGroup,x.ElCol,x.ElCollapse,x.ElCollapseItem,x.ElCollapseTransition,x.ElColorPicker,x.ElConfigProvider,x.ElContainer,x.ElAside,x.ElFooter,x.ElHeader,x.ElMain,x.ElDatePicker,x.ElDescriptions,x.ElDescriptionsItem,x.ElDialog,x.ElDivider,x.ElDrawer,x.ElDropdown,x.ElDropdownItem,x.ElDropdownMenu,x.ElEmpty,x.ElForm,x.ElFormItem,x.ElIcon,x.ElImage,x.ElImageViewer,x.ElInput,x.ElInputNumber,x.ElLink,x.ElMenu,x.ElSubMenu,x.ElMenuItem,x.ElMenuItemGroup,x.ElPageHeader,x.ElPagination,x.ElPopconfirm,x.ElPopover,x.ElPopper,x.ElProgress,x.ElRadio,x.ElRadioButton,x.ElRadioGroup,x.ElRate,x.ElResult,x.ElRow,x.ElScrollbar,x.ElSelect,x.ElOption,x.ElOptionGroup,x.ElSelectV2,x.ElSkeleton,x.ElSkeletonItem,x.ElSlider,x.ElSpace,x.ElSteps,x.ElStep,x.ElSwitch,x.ElTable,x.ElTableColumn,x.ElTableV2,x.ElTabs,x.ElTabPane,x.ElTag,x.ElTimePicker,x.ElTimeSelect,x.ElTimeline,x.ElTimelineItem,x.ElTooltip,x.ElTransfer,x.ElTree,x.ElTreeSelect,x.ElTreeV2,x.ElUpload],Or=[x.ElInfiniteScroll,x.ElLoading,x.ElMessage,x.ElMessageBox,x.ElNotification,x.ElPopoverDirective],Ar=e=>{Br.forEach(n=>{let l=n.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,n)):e.use(n)}),Or.forEach(n=>{e.use(n)})};function ne(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=o=>{o.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const ge={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}},ke={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},vl={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Cl={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},kl=[];for(const e in Cl)kl.push(e);function he(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const Rr=Symbol.for("InnerPageScopeKey"),Fr=(e,n)=>({inheritAttrs:!0,props:{...ge,...vl,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(l,o){const a=In(l.name,l);if(a){const f=bl(a,l);he({getPageContentHeight:()=>Ht(a,f),getPageContentWidth:()=>Kt(a,f),getPageHeaderHeight:()=>St(a,f),getPageFooterHeight:()=>vt(a,f)});const d=t.inject(Rr,!1);f&&d&&(f.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),s=t.getCurrentInstance(),c=(f,d=!1)=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(f,!0,d)};return t.watch([()=>l.rules,()=>l.pureDataRules],([f,d],[m,g])=>{if(f&&m){const V=t.toRaw(m),p=t.toRaw(f),y=p?Reflect.ownKeys(p):[];(V?Reflect.ownKeys(V):[]).forEach(h=>{y.includes(h)||(p[h]=[])}),c(p)}if(d&&g){const V=t.toRaw(g),p=t.toRaw(d),y=p?Reflect.ownKeys(p):[];(V?Reflect.ownKeys(V):[]).forEach(h=>{y.includes(h)||(p[h]=[])}),c(p,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const f=t.toRaw(l.rules);c(f)}if(l.pureDataRules){const f=t.toRaw(l.pureDataRules);c(f,!0)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:i}}}),{componentName:Lr,create:Mr,scope:Gm}=ne("page"),Pr=Mr(Fr(Lr));function qr(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const fe=(e,n)=>{const l=e.__vccOpts||e;for(const[o,a]of n)l[o]=a;return l},Rn=fe(Pr,[["render",qr]]);function Fn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Ln(e){const n=t.unref(e),l=window.getComputedStyle(n,null),o=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-a,height:n.clientHeight-r-i}}const _r=(e,n,l,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=_e(),s=i?jt(i):null;s&&(s.headerMounted=!0);const c=e,f=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),d=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),m=a.height!==null&&a.height!==void 0?ce(a.height):null,g=t.computed(()=>{const v={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const D=Ae(a.padding??s.headerPadding);return Object.assign(v,D),m&&(s.headerHeight=m),s.headerHeight>0&&(v.height=s.headerHeight),v.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,v.safeAreaTop>0&&(v.top=v.safeAreaTop+(D.top??0),v.height=(v.height??0)+v.safeAreaTop),v}if(m&&(v.height=m),a.padding){const D=Ae(a.padding);Object.assign(v,D)}return v}),V=t.ref(null),p=()=>{if(s&&V.value&&!Mt(V.value)){if(!o){const v=Fn(V.value);s.headerAllHeight=v.height}return s.headerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(Nn(p,50,5,50,!0),window.ResizeObserver&&V.value&&(y=new window.ResizeObserver(()=>{p()}),y.observe(V.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,y&&(y.disconnect(),y=null))});const C=t.computed(()=>{const v={};return g.value.height!==null&&g.value.height!==void 0&&(v.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(v.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(v.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(v.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(v.paddingBottom=`${g.value.bottom}px`),v}),h=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function b(){r.emit("back")}function u(){r.emit("click-title")}function A(){r.emit("click-right")}function B(){r.emit("click-right-text")}const q=()=>{if(!a.leftShow)return null;const v=[];if(r.slots.left)v.push(r.slots.left());else{if(r.slots.leftIcon){const D=t.h("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);v.push(D)}else if(a.leftIcon){const D=t.h("view",{class:"left-icon",onClick:b},[t.h(a.leftIcon)]);v.push(D)}if(a.leftText){const D=t.h("view",{class:"left-text",onClick:b},[a.leftText]);v.push(D)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__left"},v)},P=()=>{if(!a.rightShow)return null;const v=[];if(r.slots.right)v.push(r.slots.right());else{if(a.rightText){const D=t.h("view",{class:"right-text",onClick:B},[a.rightText]);v.push(D)}if(r.slots.rightIcon){const D=t.h("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);v.push(D)}else if(a.rightIcon){const D=t.h("view",{class:"right-icon",onClick:A},[t.h(a.rightIcon)]);v.push(D)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__right"},v)},R=()=>{if(!a.titleShow)return null;const v=[],D=r.slots.default?r.slots.default():null;if(D)v.push(D);else{if(a.title){const F=t.h("view",{class:"title-text"},[a.title]);v.push(F)}if(r.slots.titleIcon){const F=t.h("view",{class:"title-icon",onClick:u},[r.slots.titleIcon()]);v.push(F)}else if(a.titleIcon){const F=t.h("view",{class:"title-icon",onClick:u},[t.h(a.titleIcon)]);v.push(F)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__title"},v)},N=()=>{const v=[],D=r.slots.bottom?r.slots.bottom():null;return D&&v.push(D),v.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},v)};return()=>{if(!h.value)return null;const v=[];if(r.slots.all)v.push(r.slots.all());else{const F=[],T=q();T&&F.push(T);const S=R();S&&F.push(S);const $=P();if($&&F.push($),F.length>0){const E=t.h("view",{class:d.value},F);v.push(E)}const L=N();L&&v.push(L)}if(v.length===0)return null;const D={class:f.value,style:C.value,ref:V};return t.h("view",D,v)}}}),{componentName:zr,create:jr,scope:Hr}=ne("header-bar"),Mn=jr(_r(zr,Hr,ye.ArrowLeft));function Kr(e,n,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,a){const r=_e(),i=r?jt(r):null,s=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${o.align}`]:!0,[`${p}--border`]:o.border,[`${p}--fixed`]:o.fixed,[`${p}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ce(o.height):null,f=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const y=Ae(o.padding??i.footerPadding);return Object.assign(p,y),c&&(i.footerHeight=c),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.height=(p.height??0)+p.safeAreaBottom,p.bottom=p.safeAreaBottom+(y.bottom??0)),p}if(c&&(p.height=c),o.padding){const y=Ae(o.padding);Object.assign(p,y)}return p}),d=t.ref(null),m=()=>{if(i&&d.value&&!Mt(d.value)){if(!l){const p=Fn(d.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{i&&(Nn(m,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{m()}),g.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,g&&(g.disconnect(),g=null))});const V=t.computed(()=>{const p={};return f.value.height!==null&&f.value.height!==void 0&&(p.height=Ce(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(p.paddingTop=Ce(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(p.paddingLeft=Ce(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(p.paddingRight=Ce(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(p.paddingBottom=Ce(f.value.bottom)),p});return()=>{const p=a.slots.default?a.slots.default():[],y={ref:d,class:s.value,style:V.value};return t.h("view",y,p)}}}}const{componentName:Yr,create:Wr,scope:Xm}=ne("footer-bar"),Pn=Wr(Kr(Yr));function Ur(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=_e(),a=t.computed(()=>({[e]:!0})),r=o?jt(o):null,i=t.computed(()=>{const f={};if(o&&r){if(l.padding){const V=Ae(l.padding);Object.assign(r.contentPadding,V)}const d=St(o,r),m=vt(o,r);let g="";if(r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,r.contentPadding,f.height=g,r.contentPadding.top||d>0){const V=(r&&r.contentPadding&&r.contentPadding.top)??0;f.paddingTop=`${d+V}px`}if(r.contentPadding.bottom||m>0){const V=(r&&r.contentPadding&&r.contentPadding.bottom)??0;f.paddingBottom=`${m+V}px`}return r.contentPadding.left&&(f.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(f.paddingRight=`${r.contentPadding.right}px`),f}if(l.padding){const d=Ae(l.padding);d.left&&(f.paddingLeft=`${d.left}px`),d.top&&(f.paddingTop=`${d.top}px`),d.right&&(f.paddingRight=`${d.right}px`),d.bottom&&(f.paddingBottom=`${d.bottom}px`)}return f}),s=t.ref(null),c=()=>{if(r&&s.value){const f=Ln(s.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>St(o),()=>vt(o)],([])=>{c()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:Gr,create:Xr,scope:Jm}=ne("content"),Jr=Xr(Ur(Gr));function Zr(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const qn=fe(Jr,[["render",Zr]]),at="GroupStateKey",$l=Symbol.for("GroupScopeKey");function Wt(){return t.inject($l,!1)}function Ut(e=!0){t.provide($l,e)}function Qr(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const a=n[o];Dn(a)||(e[o]=a)})}function ei(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qr(o,n);const a=t.shallowRef(o),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(at,r),r}function _n(e,n,l=-1,o=-1,a=!1,r,i,s){const c=e.get(at);if(!c)return;const f=e.get("groupLayout")??{};l===-1&&(l=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const d=ce(r),m=ce(i);s||(s=f.type??"grid");const g=()=>{const V=n===""||n===-1,p=ce(n);let y=se(l);const C=ce(o);if(!V){let u=(p-(y-1)*C)/y;for(;m!==-1&&u>m;)y++,u=(p-(y-1)*C)/y;for(;d!==-1&&y>1&&u<d;)y--,u=(p-(y-1)*C)/y}let h=!1;const b=c.layout;b.value.width=n,b.value.column!==y&&(b.value.column=y,h=!0),b.value.gutter!==C&&(b.value.gutter=C,h=!0),b.value.type!==s&&(b.value.type=s,h=!0),h&&t.triggerRef(b)};if(a)g();else{const V=++c.passport;setTimeout(()=>{V===c.passport&&g()},50)}}function Gt(e,n=!1){let l;return n?l=e.getForParent(at):l=e.get(at),l.layout}function Xt(e,n=!1){let l;return n?l=e.getForParent(at):l=e.get(at),l.order}function Tl(e,n=1){if(n==="stretch")return-1;const l=se(n);return l===-1?100:100*l/e}function Jt(e,n,l=1,o=0,a){const r={};let i=0;a?i=ce(a):i=Tl(n.column,l),i>0&&(r.width=`${i}%`);const s=Tl(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Zt(e,n,l=1,o=0){if(l==="stretch"){const c=e.index%n.column,f=c+(n.column-c);return e.index=e.index+(f-c),{"grid-column":`${c+1} / -1`}}let a=se(l);if(a===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=se(o)%n.column;let i=(e.index+r)%n.column,s=i+a;return s>n.column?(i=0,s=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const xl=Symbol("RollingStateKey");function ti(e){t.provide(xl,e)}function ni(){return t.inject(xl,null)}function zn(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function oi(e){let n=zn(e);if(n<=0){const l=e.cloneNode(!0),o=e.offsetWidth;l.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=zn(l),document.body.removeChild(l)}return n}function li(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const ai={...ge,...vl,...Cl};function ri(e,n,l){return{props:ai,emits:["update:collapse"],setup(o,a){const r=In(o.name,o,kl),i=ei(r,{type:o.type}),s=Wt();Ut(!0);const c=o.rollingDisplay?ni():null,f=t.ref(null),d=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>s&&r?Gt(r,!0).value:null),g=t.getCurrentInstance(),V=(H,W=!1)=>{const I=g?.proxy;I&&typeof I.setNameValidateRules=="function"&&I.setNameValidateRules(H,!0,W)};t.watch([()=>o.rules,()=>o.pureDataRules],([H,W],[I,z])=>{if(H&&I){const Y=t.toRaw(I),X=t.toRaw(H),ae=X?Reflect.ownKeys(X):[];(Y?Reflect.ownKeys(Y):[]).forEach(Ie=>{ae.includes(Ie)||(X[Ie]=[])}),V(X)}if(W&&z){const Y=t.toRaw(z),X=t.toRaw(W),ae=X?Reflect.ownKeys(X):[];(Y?Reflect.ownKeys(Y):[]).forEach(Ie=>{ae.includes(Ie)||(X[Ie]=[])}),V(X,!0)}},{deep:!0});const p=e,y=t.computed(()=>{const H={};H.height=L.value;const W=s?Xt(r,!0):null;if(m.value&&W){if(m.value.type==="grid"){const I=Zt(W,m.value,o.span,o.offset);Object.assign(H,I)}else if(m.value.type==="flow"){const I=Jt(W,m.value,o.span,o.offset,o.width);Object.assign(H,I)}}else if(o.width){const I=Ce(o.width);H.width=I}return H}),C=t.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${p}--${H}`]:!0,[`${p}--${H}-justify-${o.justify}`]:!0,[`${p}--${H}-align-${o.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${H}`]:!0,[`${p}--gutter`]:!0}}),h=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const I=li(N.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${I})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),b=t.toRef(o,"title"),u=t.toRef(o,"gutter"),A=t.toRef(o,"column"),B=t.computed(()=>s||d.value?!0:oe(o.isWrap)),q=[],P=H=>{q.push(H)},R=()=>{let H=q.length;q.splice(0,H)},N=t.ref(-1),v=H=>{const W=Ln(H).width;W>0&&W!==N.value&&(N.value=W)};_n(r,N.value,A.value,u.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([N,A,u],([H,W,I])=>{i.order.index=0,_n(r,H,W,I,!1,o.minItemWidth,o.maxItemWidth,o.type)});const D=t.computed(()=>E.value?o.expandText??"":o.collapseText??""),F=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),T=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!E.value,"is-collapse":E.value})),S=t.ref(),$=t.ref(),L=t.computed(()=>_.value||Ce(o.height)||""),E=t.ref(!1),_=t.ref(""),k=t.ref(!1);let M=-1;const j=(H,W=!0)=>{const I=S.value;if(I&&E.value!==H){if(M=M===-1?oi(I):M,k.value=!0,W)if(I.style["will-change"]="height",I.ontransitionend=function(){I.ontransitionend=null,this.style["will-change"]="auto",H||(_.value="",k.value=!1)},H){let z=0;o.collapseHeight?z=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(z=$.value.offsetHeight),_.value=`${M}px`,t.nextTick(()=>{_.value=`${z}px`})}else _.value=`${M}px`;else if(H){let z=0;o.collapseHeight?z=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(z=$.value.offsetHeight),_.value=`${z}px`}else k.value=!1,_.value=`${M}px`;E.value=H,a.emit("update:collapse",H)}};t.watch(()=>o.collapse,H=>{j(H)});const U=()=>{J()},J=H=>{H=H??!E.value,j(H)};he({toggleCollapse:J,doLayout:()=>{q[0]&&(v(q[0]),_n(r,N.value,A.value,u.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let Z=null,Q=!0;const ie=H=>{if(o.rules){const W=t.toRaw(o.rules);V(W)}if(o.pureDataRules){const W=t.toRaw(o.pureDataRules);V(W,!0)}if(Je&&(H&&j(oe(o.collapse),!1),o.autoLayout&&Array.isArray(q)&&q.length>0)){const W=q[0];v(W),window.ResizeObserver&&(Z=new window.ResizeObserver(()=>{v(W)}),Z.observe(W))}},ue=()=>{Z?.disconnect(),Z=null},O=!d.value||c?.acquire();O&&(f.value=d.value?!0:null),t.onMounted(()=>{if(O&&(ie(Q),Q=!1),d.value&&c){let H=null,W=c.initialHeight;c.observe(S.value,I=>{if(I!==f.value)if(I)f.value=!0,E.value||(_.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(ie(Q),Q=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!E.value)if(Q)_.value=c.initialHeight;else{let z=zn(S.value);z<=0?_.value=W:(_.value=`${z}px`,W=_.value)}Q||ue()}})}}),t.onUnmounted(()=>{Z?.disconnect(),c&&c.unobserve(S.value)});const K=(H="right")=>{const W=[];if(D.value){const Y={class:F.value},X=t.h("span",Y,[D.value]);W.push(X)}const I={class:T.value},z=l(o.collapseIcon,I);return z&&W.push(z),W.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:U},W):null},G=(H,W,I,z)=>{const Y={...C.value};return W===0&&(Y[`${p}__first`]=!0),I>=z-1&&(Y[`${p}__last`]=!0),t.h("div",{ref:P,key:`${W}`,class:Y,style:h.value},H)};return()=>{if(d.value&&f.value!==!0){const Y=o.tag||"div";return t.h(Y,{ref:S,prop:o.name,class:{[`${p}`]:!0,"is-collapse":k.value},style:y.value},[])}i.order.index=0;const H=[];let W=0;if(a.slots.header){const Y={key:`${W++}`,ref:$,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},X=t.h("div",Y,[a.slots.header()]);H.push(X)}else{const Y=[],X=o.collapsePosition==="left";if(X&&o.showCollapse){const ae=K("left");ae&&Y.push(ae)}if(b.value){if(o.showMark){const de={class:{[`${p}__header-mark`]:!0}};o.markColor&&(de.style={background:o.markColor});const Ie=t.h("div",de);Y.push(Ie)}const ae=t.h("div",{class:{[`${p}__header-title`]:!0}},[b.value]);Y.push(ae)}if(a.slots.toolbar&&Y.push(a.slots.toolbar()),!X&&o.showCollapse){const ae=K("right");ae&&Y.push(ae)}if(Y.length>0){const ae={key:`${W++}`,ref:$,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},de=t.h("div",ae,Y);H.push(de)}}R();const I=a.slots.default?a.slots.default():[],z=i.layout.value.type;if(z==="grid"){const Y=G(I,W++,0,I.length);H.push(Y)}else if(z==="flow"){const Y=G(I,W++,0,I.length);H.push(Y)}else for(let Y=0;Y<I.length;Y++){const X=I[Y],ae=G([X],W++,Y,I.length);H.push(ae)}if(B.value){const Y=o.tag||"div";return t.h(Y,{ref:S,prop:o.name,class:{[`${p}`]:!0,"is-collapse":k.value},style:y.value},[H])}else return H}}}}const{componentName:ii,create:si,scope:ci}=ne("group"),jn=si(ri(ii,ci,(e,n)=>(e=e??ye.ArrowUp,t.h(x.ElIcon,n,{default:()=>[t.h(e)]}))));function ui(e){return e===window}const fi=/matrix\((.+)\)/,Dl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ui(n))return{x:0,y:0};let l=0,o=0,a=n;for(;a!==null;)l+=a.offsetLeft,o+=a.offsetTop,a=a.offsetParent;let r=0,i=0,s=0,c=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const d=fi.exec(f);if(d){let g=d[1].split(/\s*,\s*/);g.length==6&&(s+=Number(g[4]),c+=Number(g[5]))}}a=a.parentNode}return l-=r,o-=i,l+=s,o+=c,{x:l,y:o}};class di{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const l=this.watchedListeners.indexOf(n);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class mi{monitorRegister=new WeakMap;watch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r||(r=new di,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(l),o=o.parentNode}}unwatch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const El=new mi,Nl={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:hi,create:gi}=ne("price"),pi=gi({props:{...Nl},setup(e){const n=t.computed(()=>({[hi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Be(e.price)==0?"":Ft(e.price,e.decimalLength,!0,se(e.digits),e.separator)),a=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:l,intText:a,decimalText:r}}}),yi=["innerHTML"],bi=["innerHTML"];function wi(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,bi)):t.createCommentVNode("",!0)],2)}const Qt=fe(pi,[["render",wi]]),{componentName:Hn,create:Si}=ne("hint-text"),vi=Si({components:{Price:Qt},props:{...Nl,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const l=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),i=t.ref(e.placement),s=t.ref(!1),c=t.ref(null),f=(D,F,T,S,$,L)=>{const E=document.documentElement.clientWidth||document.body.clientWidth,_=document.documentElement.clientHeight||document.body.clientHeight,k=D.split("-");let M=[];k[0]==="top"?M=["top","bottom","right","left"]:k[0]==="bottom"?M=["bottom","top","right","left"]:k[0]==="left"?M=["left","top","bottom","right"]:k[0]==="right"&&(M=["right","top","bottom","left"]);const j={top:null,right:null,bottom:null,left:null},U=[];for(let J=0;J<M.length;J++){const te=M[J];if(U[0]=te,k[1]&&(U[1]=k[1]),te==="top"){const Z=F.y-L-e.arrowSize-e.offset;if(Z>=0){j.top=Z;let Q=0;k[1]==="start"?Q=F.x:k[1]==="end"?Q=F.x+T-$:Q=F.x+T/2-$/2;const ie=E-Q-$;ie<0?(Q+=ie,m.value=-ie):m.value=0,j.left=Q<0?0:Q;break}}else if(te==="bottom"){const Z=F.y+S+e.arrowSize+e.offset;if(Z+L<=_){j.top=Z;let Q=0;k[1]==="start"?Q=F.x:k[1]==="end"?Q=F.x+T-$:Q=F.x+T/2-$/2;const ie=E-Q-$;ie<0?(Q+=ie,m.value=-ie):m.value=0,j.left=Q<0?0:Q;break}}else if(te==="left"){const Z=F.x-$-e.arrowSize-e.offset;if(Z>=0){j.left=Z;let Q=0;k[1]==="start"?Q=F.y:k[1]==="end"?Q=F.y+S-L:Q=F.y+S/2-L/2,j.top=Q<0?0:Q;break}}else if(te==="right"){const Z=F.x+T+e.arrowSize+e.offset;if(Z+$<=E){j.left=Z;let Q=0;k[1]==="start"?Q=F.y:k[1]==="end"?Q=F.y+S-L:Q=F.y+S/2-L/2,j.top=Q<0?0:Q;break}}}return{bestPlacement:U.join("-"),bestInsetRect:j}},d=(D,F,T=10)=>{if(!Je||F===!1||!D)return;o.value=Dl(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const S=c.value.offsetHeight,$=c.value.offsetWidth,{bestPlacement:L,bestInsetRect:E}=f(e.placement,o.value,a.value,r.value,$,S);i.value=L,l.value=E,s.value=!0},m=t.ref(0),g=wt(()=>{d(e.message,e.visible)},10),V=t.ref(e.visible);t.watch(()=>e.visible,D=>{V.value=D});const p=t.computed(()=>V.value&&y.value),y=t.ref(!0),C=wt(D=>{const F=D[0];F&&(y.value=F.isIntersecting)},10),h=new IntersectionObserver(C);t.watch([()=>e.message,()=>e.visible],([D,F])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),El.watch(e.reference,g),h.observe(e.reference)}),t.onBeforeMount(()=>{El.unwatch(e.reference,g),h.unobserve(e.reference),h.disconnect()});const b=t.computed(()=>{const D={[Hn]:!0};return i.value.startsWith("top")?D["is-top"]=!0:i.value.startsWith("right")?D["is-right"]=!0:i.value.startsWith("bottom")?D["is-bottom"]=!0:i.value.startsWith("right")&&(D["is-right"]=!0),e.size==="small"?D["is-small"]=!0:e.size==="large"&&(D["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(D[`${e.customClass}`]=!0),D}),u=t.computed(()=>{const D={};l.value.top!==null&&(D.top=`${l.value.top}px`),l.value.right!==null&&(D.right=`${l.value.right}px`),l.value.bottom!==null&&(D.bottom=`${l.value.bottom}px`),l.value.left!==null&&(D.left=`${l.value.left}px`),e.autoFit&&(D["min-width"]=`${a.value}px`);const F=document.documentElement.clientWidth||document.body.clientWidth;return D["max-width"]=`${F}px`,s.value&&(D.opacity="1"),e.transition||(D.transition="none"),e.zIndex&&(D["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(D,e.customStyle),D}),A=t.computed(()=>{const D=[`${Hn}__content`];return e.customTextClass&&D.push(e.customTextClass),D}),B=t.computed(()=>{const D={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(D,e.customTextStyle),D}),q=t.computed(()=>({[`${Hn}__arrow`]:!0})),P=t.computed(()=>{const D={};return e.showArrow?(D.width=`${e.arrowSize}px`,D.height=`${e.arrowSize}px`,i.value==="top"?(D.left="50%",D.bottom=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):i.value==="top-start"?(D.left=`${e.arrowOffset+m.value}px`,D.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(D.right=`${e.arrowOffset-m.value}px`,D.bottom=`-${e.arrowSize}px`):i.value==="right"?(D.left=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):i.value==="right-start"?(D.left=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):i.value==="right-end"?(D.left=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(D.left="50%",D.top=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(D.left=`${e.arrowOffset+m.value}px`,D.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(D.right=`${e.arrowOffset-m.value}px`,D.top=`-${e.arrowSize}px`):i.value==="left"?(D.right=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):i.value==="left-start"?(D.right=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):i.value==="left-end"&&(D.right=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`),D):{display:"none"}}),R=t.computed(()=>p.value&&e.closeOnClick),N=t.computed(()=>{const D={};return e.zIndex&&(D["z-index"]=`${e.zIndex}`),D});return{show:p,tipRef:c,classes:b,styles:u,textClasses:A,textStyles:B,arrowClasses:q,arrowStyles:P,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{V.value=!1,n.emit("update:visible",!1)}}}});function Ci(e,n,l,o,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ct=fe(vi,[["render",Ci]]);class Vl{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Kn={},ki=new Vl,rt=new Map,en=e=>{if(e){const n=document.getElementById(e);rt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of rt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}rt.clear()}},$i=e=>{e.unmount=en;const n=document.getElementById(e.id);if(n){const l=rt.get(e.id);l?e={...Kn,...l,...e}:e={...Kn,...e},e.transition=!1;const o=t.createVNode(Ct,e);return t.render(o,n),e.id}},Ti=e=>{e.unmount=en;let n=e.id??`hinttext_${ki.get()}`;e={...Kn,...e},e.id=n,rt.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(Ct,e);return t.render(o,l),document.body.appendChild(l),n},xi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},tn={show(e,n,l={},o=!0){xi(n);const a=l.id;return a&&rt.has(a)?$i({...l,message:n,reference:e}):(o&&en(),Ti({...l,message:n,reference:e}))},hide(e){en(e)},install(e){e.config.globalProperties.$hintText=tn}},{componentName:Il,create:Di}=ne("item"),Ei=Di({inheritAttrs:!0,props:{...ge,...ke},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;Se({componentName:Il,validate:!1},l);const o=_e(),a=Wt();Ut(!1);const r=t.computed(()=>a&&o?Gt(o,!1).value:null),i=Il,s=t.ref(null),c=t.computed(()=>{const O={[i]:!0,[`${i}__gutter`]:r.value&&r.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(O[e.errorMarkClass]=!!F.value,O[e.warnMarkClass]=!!v.value,O[e.infoMarkClass]=!!R.value,typeof s.value=="function"){const K=s.value(l);O[K]=!0}else if(typeof s.value=="string"){const K=s.value;O[K]=!0}return O}),f=t.ref(null),d=t.computed(()=>{const O={},K=a&&o?Xt(o,!1):null;if(r.value&&K)if(r.value.type==="grid"){const G=Zt(K,r.value,e.span,e.offset);Object.assign(O,G)}else if(r.value.type==="flow"){const G=Jt(K,r.value,e.span,e.offset,e.width);Object.assign(O,G)}else return e.width&&(O.width=Ce(e.width)),O;else e.width&&(O.width=Ce(e.width));if(typeof f.value=="function"){const G=f.value(l);G&&Object.assign(O,G)}else if(f.value&&typeof f.value=="object"){const G=f.value;Object.assign(O,G)}return O}),m=t.ref(null),g=t.computed({get:()=>m.value??oe(e.isRequired),set:O=>{m.value=O}}),V=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),p=Ne(t.toRef(e,"labelPosition"),"labelPosition",We.Near),y=t.computed(()=>p&&p.value==="top"?"top":p&&p.value==="right"?"right":"left"),C=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${y.value}`]:!0})),h=t.computed(()=>({label:!0,[`label--${y.value}`]:!0})),b=Ne(t.toRef(e,"labelWidth"),"labelWidth",We.Near),u=t.computed(()=>b&&b.value?{width:Ce(b.value)}:{}),A=t.computed(()=>({"label--string":!0,"label--required":g.value})),B=t.computed(()=>({content:!0,[e.contentClass]:!0})),q=t.computed(()=>({...e.contentStyle})),P=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});he({setRequired(O){g.value=O},setErrorTip(O){P.errorTip=O},setErrorIcon(O){P.errorIcon=O},setWarnTip(O){P.warnTip=O},setWarnIcon(O){P.warnIcon=O},setInfoTip(O){P.infoTip=O},setInfoIcon(O){P.infoIcon=O},setCustomClassName(O){s.value=O},setCustomStyle(O){f.value=O}});const R=t.computed(()=>e.infoTip||P.infoTip),N=t.computed(()=>e.infoIcon||P.infoIcon),v=t.computed(()=>e.warnTip||P.warnTip),D=t.computed(()=>e.warnIcon||P.warnIcon),F=t.computed(()=>e.errorTip||P.errorTip),T=t.computed(()=>e.errorIcon||P.errorIcon),S=t.computed(()=>F.value?"error":v.value?"warn":R.value?"info":""),$=t.computed(()=>S.value.length>0),L=t.computed(()=>S.value==="error"?F.value:S.value==="warn"?v.value:S.value==="info"?R.value:""),E=t.computed(()=>S.value==="error"?T.value:S.value==="warn"?D.value:S.value==="info"?N.value:null),_=t.computed(()=>{let O={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),k=t.computed(()=>{let O={};return p&&p.value==="top"||!V.value?O["padding-left"]="0px":b&&b.value&&(O["padding-left"]=Ce(b.value)),O}),M=()=>{const O=E.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},j=()=>{const O=L.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},U=t.computed(()=>n.slots.fixedTip),J=t.computed(()=>({[`${i}__fixed-tip`]:!0})),te=t.ref();let Z="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,K,G,H])=>{te.value&&(O&&!be(K)?Z?tn.show(te.value,K,{...H,id:Z,type:G},!0):Z=tn.show(te.value,K,{...H,type:G},!0):tn.hide(Z))});let Q=null;const ie=()=>{Q||!te.value||(Q=new IntersectionObserver(O=>{let K=!1;for(let G of O)if(G.intersectionRatio>0){K=!0,K&&n.emit("appear",G);break}K||n.emit("disappear")}),Q.observe(te.value))},ue=()=>{!Q||!te.value||(Q.unobserve(te.value),Q=null)};return t.watch(()=>oe(e.appearListen),O=>{O?ie():ue()}),t.onMounted(()=>{oe(e.appearListen)&&ie()}),t.onUnmounted(ue),{classes:c,styles:d,mainClasses:C,hasLabel:V,labelClasses:h,labelStyles:u,labelStringClasses:A,contentClasses:B,contentStyles:q,contentRef:te,hasTip:$,mTip:L,mIcon:E,renderIcon:M,renderTip:j,tipClasses:_,tipStyles:k,hasFixedTip:U,fixedTipClasses:J}}}),Ni=["prop"];function Vi(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ni)}const pe=fe(Ei,[["render",Vi]]);function Ii(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,o){const a=_e(),r=Wt();Ut(!1);const i=t.computed(()=>r&&a?Gt(a,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),f=t.computed(()=>{const d={},m=r&&a?Xt(a,!1):null;if(i.value&&m)if(i.value.type==="grid"){const g=Zt(m,i.value,l.span,l.offset);Object.assign(d,g)}else if(i.value.type==="flow"){const g=Jt(m,i.value,l.span,l.offset,l.width);Object.assign(d,g)}else return l.width&&(d.width=Ce(l.width)),d;else l.width&&(d.width=Ce(l.width));return d});return()=>{const d={class:c.value,style:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",d,o.slots.default()):t.h("div",d)}}}}const{componentName:Bi,create:Oi,scope:Qm}=ne("slot-item"),Yn=Oi(Ii(Bi));function Ai(e,n){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(l,o){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),i=_e(),s=Wt();Ut(!1);const c=t.computed(()=>{const f={};if(s&&i){const d=Gt(i,!1),m=Xt(i,!1);if(d.value&&m)if(d.value.type==="grid"){const g=Zt(m,d.value,l.span,l.offset);Object.assign(f,g)}else if(d.value.type==="flow"){const g=Jt(m,d.value,l.span,l.offset,l.width);Object.assign(f,g)}else l.width&&(f.width=Ce(l.width))}else l.width&&(f.width=Ce(l.width));return f});return()=>{const f=[];if(o.slots.default){const m=o.slots.default();if(l.divide)for(let g=0;g<m.length;g++){if(g>0){const V=t.h("div",{class:{[`${a}__divide`]:!0}});f.push(V)}f.push(m[g])}else Reflect.apply([].push,f,m)}const d={class:r.value,style:c.value};return t.h("div",d,f)}}}}const{componentName:Ri,create:Fi,scope:eh}=ne("row-item"),Wn=Fi(Ai(Ri)),ze=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(o=>{typeof o=="string"&&o.indexOf("data-fox")!==0&&(n[o]=e[o])}),n},Bl={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Li(e,n,l){return{props:{...ge,...ke,...Bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),m=re(o,"modelValue"),g=e,V=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__readonly`]:i.value})),p=T=>{m.value=T,s("update:modelValue",T),s("input",T)},y=T=>{s("change",T)};let C=re(o,"hintText"),h=t.ref(!1);const b=T=>{let $=T.target.value;d.value=!0,be(C.value)||(h.value=!0),s("focus",$,T)},u=T=>{setTimeout(()=>{h.value&&(h.value=!1),d.value=!1},0);let $=T.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),s("blur",$,T)},A=()=>{s("clear","")},B=t.ref(!1);let q=null;const P=()=>{o.showTooltip&&B.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{B.value=!0},150))},R=()=>{q&&(clearTimeout(q),B.value=!1,q=null)},N=t.computed(()=>B.value||h.value),v=t.computed(()=>B.value?m.value:C.value),D=t.computed(()=>Be(o.unit)>0),F=t.ref();return he({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const S={...ze(a.attrs),ref:F,class:V.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:A,onChange:y,onInput:p,onFocus:b,onBlur:u,onMouseover:P,onMouseleave:R},$={};a.slots.prepend&&($.prepend=a.slots.prepend),a.slots.append&&($.append=a.slots.append),a.slots.prefix&&($.prefix=a.slots.prefix),a.slots.suffix?$.suffix=a.slots.suffix:D.value&&($.suffix=()=>[o.unit]);const L=[],E=t.h(x.ElInput,S,$);L.push(E);const _={default:()=>L};a.slots.default&&(_.label=a.slots.default),a.slots.default&&(_.fixedTip=a.slots.fixedTip);const M={...ve(o,Bl),hintText:v.value,hintVisible:N.value,prop:`${o.prop}_item`};return t.h(l,M,_)}}}}const{componentName:Mi,create:Pi,scope:qi}=ne("input-item"),Un=Pi(Li(Mi,qi,pe)),Gn={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Ol=2e3;let Al=Ol;const _i=(e,n)=>({components:n,props:{...Gn},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:o}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==Ol&&(Al=Number(l.zIndex)),o("update:visible",!0),a.zIndex=++Al,l.destroyOnClose&&(a.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},d=y=>{o("click-pop",y)},m=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),l.closeOnClickOverlay&&o("update:visible",!1)},V=y=>{o("opend",y)},p=y=>{o("closed",y)};return t.watch(()=>l.visible,y=>{l.visible?c():f()}),t.watchEffect(()=>{a.closed=l.closeable}),{...t.toRefs(a),popStyle:i,transitionName:s,classes:r,onClick:d,onClickCloseIcon:m,onClickOverlay:g,onOpened:V,onClosed:p}}}),Rl={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}},Xn={...Gn,...Rl,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},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};function zi(e){return e===window}const Qe=e=>{const n=t.unref(e);if(zi(n)){const l=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let kt=0;const Fl="fox-overflow-hidden",Ll=()=>Je?document.body:{classList:[]},ji=e=>[()=>{if(e())try{!kt&&Ll().classList.add(Fl),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&Ll().classList.remove(Fl)}catch{}}],Hi={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Ki,create:Yi}=ne("overlay"),Wi=Yi({props:{...Hi},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=ji(()=>e.lockScroll),a=t.computed(()=>({[Ki]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():o()}),{classes:a,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ui(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const $t=fe(Wi,[["render",Ui]]),Gi=["aria-labelledby"],Xi=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ji=[Xi],Zi=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,a=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=r(l.height)??r(l.size),c.width=r(l.width)??r(l.size),c.color=l.color,c});return(c,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ji,14,Gi))}}),Qi=["aria-labelledby"],es=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),ts=[es],ns=t.defineComponent({__name:"JoySmile",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,a=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=r(l.height)??r(l.size),c.width=r(l.width)??r(l.size),c.color=l.color,c});return(c,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},ts,14,Qi))}}),os=["aria-labelledby"],ls=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),as=[ls],rs=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,a=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=r(l.height)??r(l.size),c.width=r(l.width)??r(l.size),c.color=l.color,c});return(c,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},as,14,os))}}),is=["aria-labelledby"],ss=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),cs=[ss],us=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const l=e,o=n,a=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=r(l.height)??r(l.size),c.width=r(l.width)??r(l.size),c.color=l.color,c});return(c,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},cs,14,is))}}),{componentName:fs,create:ds}=ne("popup"),ms=ds(_i(fs,{[$t.name]:$t,Close:rs}));function hs(e,n,l,o,a,r){const i=t.resolveComponent("fox-overlay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const je=fe(ms,[["render",hs]]),Ml=10;function gs(e,n){return e>n&&e>Ml?"horizontal":n>e&&n>Ml?"vertical":""}function Jn(){const e=t.ref(0),n=t.ref(0),l=t.ref(0),o=t.ref(0),a=t.ref(0),r=t.ref(0),i=t.ref(0),s=t.ref(0),c=t.ref(0),f=t.ref(0),d=t.ref(""),m=()=>d.value==="vertical",g=()=>d.value==="horizontal",V=()=>{i.value=0,s.value=0,c.value=0,f.value=0,d.value="",l.value=0};return{move:C=>{const h=C.touches[0];i.value=h.clientX-e.value,s.value=h.clientY-n.value,a.value=h.clientX,r.value=h.clientY,c.value=Math.abs(i.value),f.value=Math.abs(s.value),o.value=Date.now()-l.value,d.value||(d.value=gs(c.value,f.value))},start:C=>{V(),e.value=C.touches[0].clientX,n.value=C.touches[0].clientY,l.value=Date.now()},reset:V,startX:e,startY:n,startTime:l,duration:o,moveX:a,moveY:r,deltaX:i,deltaY:s,offsetX:c,offsetY:f,direction:d,isVertical:m,isHorizontal:g}}let Pl=36;function ps(){return Pl}function ys(e){Pl=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Zn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function bs(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function et(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ql(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let ws=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Oe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Ss(){const e=t.getCurrentInstance();return new ws(e.proxy)}function _l(e,n,l){const o=Fe(e,n),a=Fe(e,l);if(o!==a)return!1;const r=et(e,n),i=et(e,l);return r===i}function vs(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<l.length;i++){const s=n[i];let f=l[i].findIndex(d=>{if(r==="text")return Fe(e,d)===s;if(r==="value"){let m=et(e,d);return m==null&&(m=Fe(e,d)),m===s}else if(r==="item")return _l(e,d,s)});if(f==-1)break;a.push(f)}else{let i=l[0];for(let s=0;s<n.length;s++){const c=n[s];let f=i.findIndex(m=>{if(r==="text")return Fe(e,m)===c;if(r==="value"){let g=et(e,m);return g==null&&(g=Fe(e,m)),g===c}else if(r==="item")return _l(e,m,c)});if(f==-1)break;a.push(f);const d=Zn(e,i[f]);if(!Array.isArray(d))break;i=d}}return a}function zl(e,n,l,o){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<l.length;i++){const s=l[i];let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],d=Fe(e,f);if(a.texts.push(d),a.items.push(f),r==="text")a.values.push(d);else if(r==="value"){let m=et(e,f);m==null&&(m=d),a.values.push(m)}else a.values.push(f)}else{let i=l[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],d=Fe(e,f),m=Object.assign({},f);if(m.children=null,a.texts.push(d),a.items.push(m),r==="text")a.values.push(d);else if(r==="value"){let g=et(e,f);g==null&&(g=d),a.values.push(g)}else a.values.push(m);if(!Array.isArray(f.children))break;i=f.children}}return a}function jl(e){return{text:e,value:e}}const Cs=15,ks=300,$s=200,{create:Ts}=ne("picker-column");function xs(e){e.stopPropagation()}function Ds(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&xs(e)}const Es=Ts({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},...Rl},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${se(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=R=>R>=m.currIndex+8||R<=m.currIndex-8,s=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=R=>`transform: rotate3d(1, 0, 0, ${-m.rotation*R}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),d=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),V=R=>Fe(e,R),p=R=>et(e,R),y=Jn(),C=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},h=(R,N=!1,v=!1)=>{if(m.currIndex=R,N){const D=()=>{m.moving=!1,n("update:modelValue",R),n("change",R)};v?m.transitionEndTrigger=D:D()}},b=(R,N,v)=>{let D=R+m.startDistance;if(N==="end"){const F=-(g.value.length-1)*e.itemHeight;D<F&&(D=F,(!v||v<=0)&&(v=e.swipeDuration)),D>0&&(D=0,(!v||v<=0)&&(v=e.swipeDuration));let T=Math.abs(Math.round(-D/e.itemHeight));const S=-T*e.itemHeight,$=`${(T+1)*m.rotation}deg`,L=v?v>0:!1;h(T,!0,L),u(S,N,v,$)}else{let F=(-D/e.itemHeight+1)*m.rotation;const T=(g.value.length+1)*m.rotation,S=0;if(F=Math.min(Math.max(F,S),T),e.threeDimensional&&(F<S||F>T))return;u(D,null,void 0,`${F}deg`)}},u=(R=0,N,v=$s,D)=>{N==="end"?m.scrollTime=v:m.scrollTime=0,m.deg=D,m.scrollDistance=R},A=(R,N)=>(R=Math.abs(R/N)/.003*(R<0?-1:1),R),B=R=>{if(!e.readonly){if(m.moving){const N=d.value,{transform:v}=window.getComputedStyle(N);m.scrollDistance=+v.slice(7,v.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,y.start(R),m.transitionEndTrigger=null}},q=R=>{e.readonly||(m.moving=!0,y.move(R),y.isVertical()&&(m.moving=!0,Ds(R,!0)),b(y.deltaY.value,"",0))},P=()=>{if(e.readonly)return;const R=y.deltaY.value,N=y.duration.value;if(N<ks&&Math.abs(R)>Cs){const D=A(R,N);b(D,"end",e.swipeDuration)}else b(R,"end",0)};return t.watch(()=>e.modelValue,R=>{if(m.currIndex!==R){m.currIndex=R;const N=-R*e.itemHeight;b(N)}}),t.onMounted(()=>{const R=-e.modelValue*e.itemHeight;b(R)}),{classes:l,styles:o,contentClasses:a,source:g,itemText:V,itemValue:p,...t.toRefs(m),roller:d,getItemText:Fe,onTouchStart:B,onTouchMove:q,onTouchEnd:P,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:f,stopMomentum:C}}}),Ns={key:1,class:"fox-picker__item-tile"};function Vs(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Ns,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Hl=fe(Es,[["render",Vs]]),{create:Is,componentName:Bs,scope:Os}=ne("picker"),As=Is({components:{[Hl.name]:Hl,[je.name]:je},props:{...Xn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=De.useFoxI18n(Os),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(ps());t.watch(()=>e.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(r.value){const D=Qe(r.value);i.value=D.height,ys(i.value)}},50)});const s=t.computed(()=>({[Bs]:!0})),c=Ss(),f=t.ref("singleColumn");let d=t.ref([]);t.watch([()=>e.source,()=>e.params],async([v,D])=>{if(v){let F=await c.load("select",v,D);if(F.length>0){let T=F[0];if(Array.isArray(T)){if(typeof T[0]=="string"){let S=F,$=[];S.forEach(L=>{let E=L.map(_=>jl(_));$.push(E)}),d.value=$}else d.value=F;f.value="multipleColumn"}else if(typeof T=="string"){let S=F,$=[],L=S.map(E=>jl(E));$.push(L),d.value=$,f.value="singleColumn"}else{const S=Zn(e,T);Array.isArray(S)?(f.value="cascade",d.value=[F]):(f.value="singleColumn",d.value=[F])}}else d.value=[]}},{immediate:!0});const m=t.ref([]),g=t.ref(e.modelValue),V=t.ref([]),p=t.ref([]);t.watch([()=>e.modelValue,()=>d.value],([v,D])=>{let F=vs(e,v,D,f.value);if(!Pe(F,p.value)){p.value=F;let T=zl(e,F,D,f.value);T&&(m.value=T.texts,n("update:text",m.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,v=>{y.value=v});const C=v=>{let D=ql(e,v);return Oe(D)?D.defaultIndex??0:0},h=v=>{if(e.readonly===!0)return!0;let D=ql(e,v);return Oe(D)?D.readonly??!1:!1},b=(v,D)=>{let F=p.value;F[v]=D;for(let S=0;S<v;S++)F[S]==null&&(F[S]=C(S));if(f.value==="cascade")for(let S=v+1;S<A.value.length;S++){let $=C(S);S<F.length?F[S]=$:F.push($)}else for(let S=F.length;S<A.value.length;S++){let $=C(S);F.push($)}p.value=F;let T=zl(e,F,d.value,f.value);T&&(m.value=T.texts,g.value=T.values,V.value=T.items)},u=v=>v<p.value.length?p.value[v]:C(v),A=t.computed(()=>{if(d.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return d.value;let v=[],D=0,F=d.value[0],T=0;for(;;){let S=F.map(E=>{let _=Object.assign({},E);return bs(e,_,null),_});v.push(S),D>=p.value.length?T=0:T=p.value[D],(T<0||T>=F.length)&&(T=0);let $=F[T];const L=Zn(e,$);if(!Array.isArray(L))break;F=L,D++}return v}),B=t.computed(()=>se(+e.visibleItemCount-1)/2*i.value);return{...a,pickerLineRef:r,classes:s,columns:A,dataType:f,show:y,itemHeight:i,top:B,isReadonly:h,getIndex:u,change:(v,D)=>{b(v,D)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let v=d.value.length-1;for(;v>=0&&!(p.value[v]===null||p.value[v]===void 0);v--);if(v>=0&&b(v,0),f.value==="singleColumn"){let D=g.value.length>0?g.value[0]:"",F=V.value.length>0?V.value[0]:null;e.readonly||(n("update:modelValue",D),n("update:text",m.value),n("change",D,F)),n("confirm",D)}else e.readonly||(n("update:modelValue",g.value),n("update:text",m.value),n("change",g.value,V.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}f.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Rs={class:"fox-picker__bar"},Fs={class:"fox-picker__title"},Ls={class:"fox-picker__bar__action"},Ms={class:"fox-picker__column"};function Ps(e,n,l,o,a,r){const i=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Rs,[t.createElementVNode("view",Fs,t.toDisplayString(e.title),1),t.createElementVNode("view",Ls,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ms,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(i,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":d=>e.change(f,d),"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))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const it=fe(As,[["render",Ps]]),Kl={...Xn,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function qs(e,n,l){return{props:{...ge,...ke,...Kl},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),m=e,g=t.computed(()=>({[m]:!0})),V=Ne(t.computed(()=>o.textAlign),"textAlign"),p=t.computed(()=>({textAlign:V.value??"right"})),y=re(o,"modelValue"),C=t.ref([]),h=t.computed(()=>Array.isArray(C.value)?C.value.join(" "):C.value),b=t.ref(!1),u=()=>{b.value=!0},A=$=>{b.value=$},B=$=>{y.value=$,s("update:modelValue",$)},q=$=>{C.value=$,Array.isArray($)&&$.length===0?s("update:text",$[0]):s("update:text",$)},P=($,L)=>{Array.isArray(L)&&L.length==1?s("change",$,L[0]):s("change",$,L)};let R=re(o,"hintText"),N=t.ref(!1);const v=$=>{let E=$.target.value;d.value=!0,be(R.value)||(N.value=!0),s("focus",E,$)},D=$=>{setTimeout(()=>{N.value&&(N.value=!1),d.value=!1},0);let E=$.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),b.value?setTimeout(()=>{s("blur",E,$)},50):s("blur",E,$)},F=()=>{s("clear","")},T=t.computed(()=>Be(o.unit)>0),S=t.ref();return he({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},select:()=>{S?.value.select()}}),()=>{const $={class:g.value,style:p.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,clearable:oe(o.clearable),readonly:!0,value:h.value,onClick:u,onFocus:v,onBlur:D},L={};a.slots.prepend&&(L.prepend=a.slots.prepend),a.slots.append&&(L.append=a.slots.append),a.slots.prefix&&(L.prefix=a.slots.prefix),a.slots.suffix?L.suffix=a.slots.suffix:T.value?L.suffix=()=>[o.unit]:L.suffix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ye.ArrowDown)});const E=[],_=t.h(x.ElInput,$,L);E.push(_);const k={default:()=>E};a.slots.default&&(k.label=a.slots.default),a.slots.fixedTip&&(k.fixedTip=a.slots.fixedTip);const M=pt(o,Xn);M.disabled=!1,M.readonly=r.value||i.value,M.visible=b.value,M["onUpdate:visible"]=A,M.modelValue=y.value,M.onUpdateModel=B,M.text=C.value,M["onUpdate:text"]=q,M.onClear=F,M.onChange=P;const j=t.h(it,M);k.hide=()=>[j];const J={...ve(o,Kl),hintText:R.value,hintVisible:N.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,J,k)}}}}const{componentName:_s,create:zs,scope:js}=ne("select-item"),Qn=zs(qs(_s,js,pe));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l=1e3,o=6e4,a=36e5,r="millisecond",i="second",s="minute",c="hour",f="day",d="week",m="month",g="quarter",V="year",p="date",y="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,b={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("_")},u=function(T,S,$){var L=String(T);return!L||L.length>=S?T:""+Array(S+1-L.length).join($)+T},A={s:u,z:function(T){var S=-T.utcOffset(),$=Math.abs(S),L=Math.floor($/60),E=$%60;return(S<=0?"+":"-")+u(L,2,"0")+":"+u(E,2,"0")},m:function T(S,$){if(S.date()<$.date())return-T($,S);var L=12*($.year()-S.year())+($.month()-S.month()),E=S.clone().add(L,m),_=$-E<0,k=S.clone().add(L+(_?-1:1),m);return+(-(L+($-E)/(_?E-k:k-E))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:m,y:V,w:d,d:f,D:p,h:c,m:s,s:i,ms:r,Q:g}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},B="en",q={};q[B]=b;var P=function(T){return T instanceof D},R=function T(S,$,L){var E;if(!S)return B;if(typeof S=="string"){var _=S.toLowerCase();q[_]&&(E=_),$&&(q[_]=$,E=_);var k=S.split("-");if(!E&&k.length>1)return T(k[0])}else{var M=S.name;q[M]=S,E=M}return!L&&E&&(B=E),E||!L&&B},N=function(T,S){if(P(T))return T.clone();var $=typeof S=="object"?S:{};return $.date=T,$.args=arguments,new D($)},v=A;v.l=R,v.i=P,v.w=function(T,S){return N(T,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var D=function(){function T($){this.$L=R($.locale,null,!0),this.parse($)}var S=T.prototype;return S.parse=function($){this.$d=function(L){var E=L.date,_=L.utc;if(E===null)return new Date(NaN);if(v.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var k=E.match(C);if(k){var M=k[2]-1||0,j=(k[7]||"0").substring(0,3);return _?new Date(Date.UTC(k[1],M,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)):new Date(k[1],M,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)}}return new Date(E)}($),this.$x=$.x||{},this.init()},S.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},S.$utils=function(){return v},S.isValid=function(){return this.$d.toString()!==y},S.isSame=function($,L){var E=N($);return this.startOf(L)<=E&&E<=this.endOf(L)},S.isAfter=function($,L){return N($)<this.startOf(L)},S.isBefore=function($,L){return this.endOf(L)<N($)},S.$g=function($,L,E){return v.u($)?this[L]:this.set(E,$)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function($,L){var E=this,_=!!v.u(L)||L,k=v.p($),M=function(ue,O){var K=v.w(E.$u?Date.UTC(E.$y,O,ue):new Date(E.$y,O,ue),E);return _?K:K.endOf(f)},j=function(ue,O){return v.w(E.toDate()[ue].apply(E.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(O)),E)},U=this.$W,J=this.$M,te=this.$D,Z="set"+(this.$u?"UTC":"");switch(k){case V:return _?M(1,0):M(31,11);case m:return _?M(1,J):M(0,J+1);case d:var Q=this.$locale().weekStart||0,ie=(U<Q?U+7:U)-Q;return M(_?te-ie:te+(6-ie),J);case f:case p:return j(Z+"Hours",0);case c:return j(Z+"Minutes",1);case s:return j(Z+"Seconds",2);case i:return j(Z+"Milliseconds",3);default:return this.clone()}},S.endOf=function($){return this.startOf($,!1)},S.$set=function($,L){var E,_=v.p($),k="set"+(this.$u?"UTC":""),M=(E={},E[f]=k+"Date",E[p]=k+"Date",E[m]=k+"Month",E[V]=k+"FullYear",E[c]=k+"Hours",E[s]=k+"Minutes",E[i]=k+"Seconds",E[r]=k+"Milliseconds",E)[_],j=_===f?this.$D+(L-this.$W):L;if(_===m||_===V){var U=this.clone().set(p,1);U.$d[M](j),U.init(),this.$d=U.set(p,Math.min(this.$D,U.daysInMonth())).$d}else M&&this.$d[M](j);return this.init(),this},S.set=function($,L){return this.clone().$set($,L)},S.get=function($){return this[v.p($)]()},S.add=function($,L){var E,_=this;$=Number($);var k=v.p(L),M=function(J){var te=N(_);return v.w(te.date(te.date()+Math.round(J*$)),_)};if(k===m)return this.set(m,this.$M+$);if(k===V)return this.set(V,this.$y+$);if(k===f)return M(1);if(k===d)return M(7);var j=(E={},E[s]=o,E[c]=a,E[i]=l,E)[k]||1,U=this.$d.getTime()+$*j;return v.w(U,this)},S.subtract=function($,L){return this.add(-1*$,L)},S.format=function($){var L=this,E=this.$locale();if(!this.isValid())return E.invalidDate||y;var _=$||"YYYY-MM-DDTHH:mm:ssZ",k=v.z(this),M=this.$H,j=this.$m,U=this.$M,J=E.weekdays,te=E.months,Z=function(O,K,G,H){return O&&(O[K]||O(L,_))||G[K].slice(0,H)},Q=function(O){return v.s(M%12||12,O,"0")},ie=E.meridiem||function(O,K,G){var H=O<12?"AM":"PM";return G?H.toLowerCase():H},ue={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:v.s(U+1,2,"0"),MMM:Z(E.monthsShort,U,te,3),MMMM:Z(te,U),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:Z(E.weekdaysMin,this.$W,J,2),ddd:Z(E.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(M),HH:v.s(M,2,"0"),h:Q(1),hh:Q(2),a:ie(M,j,!0),A:ie(M,j,!1),m:String(j),mm:v.s(j,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:k};return _.replace(h,function(O,K){return K||ue[O]||k.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function($,L,E){var _,k=v.p(L),M=N($),j=(M.utcOffset()-this.utcOffset())*o,U=this-M,J=v.m(this,M);return J=(_={},_[V]=J/12,_[m]=J,_[g]=J/3,_[d]=(U-j)/6048e5,_[f]=(U-j)/864e5,_[c]=U/a,_[s]=U/o,_[i]=U/l,_)[k]||U,E?J:v.a(J)},S.daysInMonth=function(){return this.endOf(m).$D},S.$locale=function(){return q[this.$L]},S.locale=function($,L){if(!$)return this.$L;var E=this.clone(),_=R($,L,!0);return _&&(E.$L=_),E},S.clone=function(){return v.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},T}(),F=D.prototype;return N.prototype=F,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",f],["$M",m],["$y",V],["$D",p]].forEach(function(T){F[T[1]]=function(S){return this.$g(S,T[0],T[1])}}),N.extend=function(T,S){return T.$i||(T(S,D,N),T.$i=!0),N},N.locale=R,N.isDayjs=P,N.unix=function(T){return N(1e3*T)},N.en=q[B],N.Ls=q,N.p={},N})})(Yl);var Hs=Yl.exports;const Le=Ke(Hs);var Wl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},f=function(y){return function(C){this[y]=+C}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var h=C.match(/([+-]|\d\d)/g),b=60*h[1]+(+h[2]||0);return b===0?0:h[0]==="+"?-b:b}(y)}],m=function(y){var C=s[y];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(y,C){var h,b=s.meridiem;if(b){for(var u=1;u<=24;u+=1)if(y.indexOf(b(u,0,C))>-1){h=u>12;break}}else h=y===(C?"pm":"PM");return h},V={A:[i,function(y){this.afternoon=g(y,!1)}],a:[i,function(y){this.afternoon=g(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[a,f("day")],Do:[i,function(y){var C=s.ordinal,h=y.match(/\d+/);if(this.day=h[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],M:[r,f("month")],MM:[a,f("month")],MMM:[i,function(y){var C=m("months"),h=(m("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[i,function(y){var C=m("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(y){this.year=c(y)}],YYYY:[/\d{4}/,f("year")],Z:d,ZZ:d};function p(y){var C,h;C=y,h=s&&s.formats;for(var b=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,v,D){var F=D&&D.toUpperCase();return v||h[D]||l[D]||h[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,S,$){return S||$.slice(1)})})).match(o),u=b.length,A=0;A<u;A+=1){var B=b[A],q=V[B],P=q&&q[0],R=q&&q[1];b[A]=R?{regex:P,parser:R}:B.replace(/^\[|\]$/g,"")}return function(N){for(var v={},D=0,F=0;D<u;D+=1){var T=b[D];if(typeof T=="string")F+=T.length;else{var S=T.regex,$=T.parser,L=N.slice(F),E=S.exec(L)[0];$.call(v,E),N=N.replace(E,"")}}return function(_){var k=_.afternoon;if(k!==void 0){var M=_.hours;k?M<12&&(_.hours+=12):M===12&&(_.hours=0),delete _.afternoon}}(v),v}}return function(y,C,h){h.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var b=C.prototype,u=b.parse;b.parse=function(A){var B=A.date,q=A.utc,P=A.args;this.$u=q;var R=P[1];if(typeof R=="string"){var N=P[2]===!0,v=P[3]===!0,D=N||v,F=P[2];v&&(F=P[2]),s=this.$locale(),!N&&F&&(s=h.Ls[F]),this.$d=function(L,E,_){try{if(["x","X"].indexOf(E)>-1)return new Date((E==="X"?1e3:1)*L);var k=p(E)(L),M=k.year,j=k.month,U=k.day,J=k.hours,te=k.minutes,Z=k.seconds,Q=k.milliseconds,ie=k.zone,ue=new Date,O=U||(M||j?1:ue.getDate()),K=M||ue.getFullYear(),G=0;M&&!j||(G=j>0?j-1:ue.getMonth());var H=J||0,W=te||0,I=Z||0,z=Q||0;return ie?new Date(Date.UTC(K,G,O,H,W,I,z+60*ie.offset*1e3)):_?new Date(Date.UTC(K,G,O,H,W,I,z)):new Date(K,G,O,H,W,I,z)}catch{return new Date("")}}(B,R,q),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),D&&B!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var T=R.length,S=1;S<=T;S+=1){P[1]=R[S-1];var $=h.apply(this,P);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}S===T&&(this.$d=new Date(""))}else u.call(this,A)}}})})(Wl);var Ks=Wl.exports;const Ys=Ke(Ks);var Ul={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,a){var r=o.prototype,i=r.format;a.en.ordinal=function(s){var c=["th","st","nd","rd"],f=s%100;return"["+s+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(s){var c=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var d=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),g==="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 g}});return i.bind(this)(m)}}})})(Ul);var Ws=Ul.exports;const Us=Ke(Ws);var Gl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,a){var r=o.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},s=function(m,g,V,p,y){var C=m.name?m:m.$locale(),h=i(C[g]),b=i(C[V]),u=h||b.map(function(B){return B.slice(0,p)});if(!y)return u;var A=C.weekStart;return u.map(function(B,q){return u[(q+(A||0))%7]})},c=function(){return a.Ls[a.locale()]},f=function(m,g){return m.formats[g]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,y,C){return y||C.slice(1)})}(m.formats[g.toUpperCase()])},d=function(){var m=this;return{months:function(g){return g?g.format("MMMM"):s(m,"months")},monthsShort:function(g){return g?g.format("MMM"):s(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(m,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(m,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return f(m.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return d.bind(this)()},a.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.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(g){return f(m,g)},meridiem:m.meridiem,ordinal:m.ordinal}},a.months=function(){return s(c(),"months")},a.monthsShort=function(){return s(c(),"monthsShort","months",3)},a.weekdays=function(m){return s(c(),"weekdays",null,null,m)},a.weekdaysShort=function(m){return s(c(),"weekdaysShort","weekdays",3,m)},a.weekdaysMin=function(m){return s(c(),"weekdaysMin","weekdays",2,m)}}})})(Gl);var Gs=Gl.exports;const Xs=Ke(Gs);var Xl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l="week",o="year";return function(a,r,i){var s=r.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(o).add(1,o).date(f),m=i(this).endOf(l);if(d.isBefore(m))return 1}var g=i(this).startOf(o).date(f).startOf(l).subtract(1,"millisecond"),V=this.diff(g,l,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Xl);var Js=Xl.exports;const Zs=Ke(Js);var Jl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})})(Jl);var Qs=Jl.exports;const ec=Ke(Qs);var Zl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,a){o.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(Zl);var tc=Zl.exports;const nc=Ke(tc);var Ql={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Ql);var oc=Ql.exports;const lc=Ke(oc);var ea={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(ea);var ac=ea.exports;const rc=Ke(ac);Le.extend(Xs),Le.extend(Us),Le.extend(Ys),Le.extend(Zs),Le.extend(ec),Le.extend(nc),Le.extend(lc),Le.extend(rc);const ee={format(e,n){return Le(e).format(n)},parser(e,n){return Le(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){const a=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const l=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,o,a].join(n)},getDay(e,n){e=e||0;let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),this.date2Str(l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(l>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,l==o},getMonthWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l));let r=a.getDay(),i=a.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let s=a.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=a.getTime();let i=a.getDay();if(o===0){const c=r-i*864e5,f=r+(6-i)*864e5,d=this.date2Str(new Date(c)),m=this.date2Str(new Date(f));return[d,m]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,f=r+(7-i)*s,d=this.date2Str(new Date(c)),m=this.date2Str(new Date(f));return[d,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ee.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ee.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),a=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),a=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},ta=new Date().getFullYear(),eo={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},nn=(e,n,l)=>{let o;if(Me(n)?o=n:typeof n=="string"&&Be(n)>0?o=ee.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},to=(e,n,l)=>{Me(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ee.format(new Date(o),l)};let no={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(ta-10,0,1),validator:Me},maxDate:{type:Date,default:()=>new Date(ta+10,11,31),validator:Me},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:ic,scope:sc}=ne("date-picker"),cc=ic({components:{[it.name]:it},props:{...no},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=De.useFoxI18n(sc),o={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,h=>{a.value=h});function r(h,b){return new Date(h,b,0).getDate()}const i=(h,b)=>{const u=e[`${h}Date`],A=u.getFullYear();let B=1,q=1,P=0,R=0;h==="max"&&(B=12,q=r(b.getFullYear(),b.getMonth()+1),P=23,R=59);const N=R;return b.getFullYear()===A&&(B=u.getMonth()+1,b.getMonth()+1===B&&(q=u.getDate(),b.getDate()===q&&(P=u.getHours(),b.getHours()===P&&(R=u.getMinutes())))),{[`${h}Year`]:A,[`${h}Month`]:B,[`${h}Date`]:q,[`${h}Hour`]:P,[`${h}Minute`]:R,[`${h}Seconds`]:N}},s=t.computed(()=>{if(!g.value)return[];const{maxYear:h,maxDate:b,maxMonth:u,maxHour:A,maxMinute:B,maxSeconds:q}=i("max",g.value),{minYear:P,minDate:R,minMonth:N,minHour:v,minMinute:D,minSeconds:F}=i("min",g.value);let T=[{type:"year",range:[P,h]},{type:"month",range:[N,u]},{type:"day",range:[R,b]},{type:"hour",range:[v,A]},{type:"minute",range:[D,B]},{type:"seconds",range:[F,q]}];switch(e.type){case"date":T=T.slice(0,3);break;case"datetime":T=T.slice(0,5);break;case"time":T=T.slice(3,6);break;case"year-month":T=T.slice(0,2);break;case"month-day":T=T.slice(1,3);break;case"datehour":T=T.slice(0,4);break;case"hour-minute":T=T.slice(3,5);break}return T}),c=(h,b,u)=>{if(!(b>h))return null;const A=[];for(;h<=b;)e.isShowChinese?A.push({text:h+o[u],value:h}):A.push({text:`${h}`,value:h}),u==="minute"?h+=e.minuteStep:h++;return A},f=t.computed(()=>{let h=[];return s.value.forEach(b=>{let u=c(b.range[0],b.range[1],b.type);u&&h.push(u)}),h}),d=(h,b)=>h==="year"?b.getFullYear():h==="month"?b.getMonth()+1:h==="day"?b.getDate():h==="hour"?b.getHours():h==="minute"?b.getMinutes():h==="seconds"?b.getSeconds():0,m=t.ref(),g=t.ref(null);t.watchEffect(()=>{let h,b=e.modelValue;if(typeof b=="string"?b.length==0?h=new Date:e.valueFormat?h=nn(e,e.modelValue,e.valueFormat):h=nn(e,b,eo[e.type]):Me(b)?h=b:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let u=[];s.value.forEach(A=>{let B=d(A.type,h);u.push(B)}),m.value=u}});const V=h=>{if(e.type==="date"){let b=h;g.value=new Date(b[0],b[1]-1,Math.min(b[2],r(b[0],b[1])))}else if(e.type==="datetime"){let b=h;g.value=new Date(b[0],b[1]-1,Math.min(b[2],r(b[0],b[1])),b[3],b[4])}else if(e.type==="time"){let b=h,u=g.value??new Date,A=new Date(u.getFullYear(),u.getMonth(),u.getDate(),b[0],b[1],b[2]);g.value=A}else if(e.type==="year-month"){let b=h,u=new Date(b[0],b[1]-1);g.value=u}else if(e.type==="month-day"){let b=h,u=g.value??new Date,A=new Date(u.getFullYear(),b[0]-1,b[1]);g.value=A}else if(e.type==="datehour"){let b=h;g.value=new Date(b[0],b[1]-1,Math.min(b[2],r(b[0],b[1])),b[3])}else if(e.type==="hour-minute"){let b=h,u=g.value??new Date,A=new Date(u.getFullYear(),u.getMonth(),u.getDate(),b[0],b[1]);g.value=A}m.value=h};return{columns:f,dateIndexs:m,show:a,onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:h=>{V(h),a.value=!1;let b=g.value??new Date;if(e.valueFormat){let u=to(e,b,e.valueFormat);n("update:modelValue",u)}else n("update:modelValue",b);n("update:visible",!1),n("confirm",h)},onClear:()=>{n("clear")}}}});function uc(e,n,l,o,a,r){const i=t.resolveComponent("fox-picker");return t.openBlock(),t.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,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.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","teleport-disable"])}const on=fe(cc,[["render",uc]]);function fc(e){let n=e.format;if(!n){let l=e.type??"date";n=eo[l]}return n}const na={...no,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function dc(e,n,l){return{props:{...ge,...ke,...na,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),g=re(o,"modelValue",k=>k==null?null:typeof k=="string"?k.length==0?null:o.valueFormat?nn(o,k,o.valueFormat)??k:nn(o,k,eo[o.type])??k:Me(k)?k:null),V=t.computed(()=>{if(!g.value)return"";const k=fc(o);return to(o,g.value,k)}),p=e,y=t.computed(()=>({[`${p}__input`]:!0})),C=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:C.value??"right"}));let b=re(o,"hintText"),u=t.ref(!1);const A=t.ref(!1),B=()=>{A.value=!0},q=()=>{A.value=!1},P=k=>{A.value=k},R=k=>{if(g.value=k,o.valueFormat){let M=to(o,k,o.valueFormat);s("update:modelValue",M,{}),s("change",M,{})}else s("update:modelValue",k,{}),s("change",k,{})},N=k=>{let j=k.target.value;d.value=!0,s("focus",j,k)},v=k=>{setTimeout(()=>{d.value=!1},0);let j=k.target.value;o.maxLength&&j.length>Number(o.maxLength)&&(j=j.slice(0,Number(o.maxLength))),s("blur",j,k)},D=k=>{g.value="",s("update:modelValue","",k),s("change","",k),s("clear",""),q()},F=t.computed(()=>Be(o.unit)>0),T=Ne(t.computed(()=>o.longTermValue),"longTermValue",We.Near);let S=null;const $=t.ref(oe(o.longTerm)),L=k=>{if($.value=k,s("update:longTerm",k),k){let M="";Array.isArray(T.value)?M=T.value.map((j,U)=>j||(Array.isArray(g.value)&&g.value[U]?g.value[U]:o.valueFormat?ee.format(new Date,o.valueFormat):new Date)):M=T.value,S=g.value,s("update:modelValue",M)}else s("update:modelValue",S)},E=oe(o.isLongTerm);if(E){const k=()=>{if($.value===!0){let M="";Array.isArray(T.value)?M=T.value.map((j,U)=>j||(Array.isArray(g.value)&&g.value[U]?g.value[U]:o.valueFormat?ee.format(new Date,o.valueFormat):new Date)):M=T.value,S=g.value,s("update:modelValue",M)}else Pe(T.value,g.value)&&($.value=!0)};k(),t.watch([()=>o.longTerm],([M])=>{$.value!==M&&k()})}const _=t.ref();return he({showPicker:B,hidePicker:q,focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const k={class:y.value,style:h.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,clearable:o.clearable,value:V.value,onClick:B,onFocus:N,onBlur:v},M={};a.slots.prepend&&(M.prepend=a.slots.prepend),a.slots.append&&(M.append=a.slots.append),a.slots.prefix?M.prefix=a.slots.prefix:M.prefix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ye.Calendar)}),a.slots.suffix?M.suffix=a.slots.suffix:F.value&&(M.suffix=()=>[o.unit]);const j=[],U=t.h(x.ElInput,k,M);j.push(U);const J={default:()=>j};a.slots.default&&(J.label=a.slots.default),a.slots.fixedTip&&(J.fixedTip=a.slots.fixedTip);const te=pt(o,no);te.valueFormat=null,te.disabled=!1,te.readonly=r.value||i.value||$.value,te.visible=A.value,te["onUpdate:visible"]=P,te.modelValue=g.value,te["onUpdate:modelValue"]=R,te.onClear=D;const Z={};if(a.slots.top){const K=a.slots.top();Z.top=()=>K}if(a.slots.bottom){const K=a.slots.bottom();Z.default=()=>K}const Q=t.h(on,te,Z);if(J.hide=()=>[Q],E){const K={label:o.longTermText,modelValue:$.value,"onUpdate:modelValue":L},G=t.h(x.ElCheckbox,K),H=t.h("div",{class:{[`${p}__append`]:!0}},[G]);J.append=()=>H}const ue={...ve(o,na),class:{[`${p}__wrapper`]:!0,"has-append":E},hintText:b.value,hintVisible:u.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,ue,J)}}}}const{componentName:mc,create:hc,scope:gc}=ne("date-item"),oo=hc(dc(mc,gc,pe)),pc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),lo={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},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,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},oa=39,la=64,{create:yc,scope:bc}=ne("calendar-pane"),wc=yc({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},startDate:{type:String,default:ee.getDay(0)},endDate:{type:String,default:ee.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:a}=De.useFoxI18n(bc),r=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${oa}px`})),s=t.computed(()=>({height:`${la}px`})),c=JSON.parse(a("weekdays")),f=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),d=t.ref(null),m=t.ref(null),g=t.ref(null),V=t.ref(null),p=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),C=t.computed(()=>l.btn),h=t.computed(()=>l["top-info"]),b=t.computed(()=>l["bottom-info"]),u=t.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:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),A=O=>O.split("-"),B=O=>ee.isEqual(u.currDate[0],O),q=O=>ee.isEqual(u.currDate[1],O),P=O=>u.currDate?.length>0?u.currDate?.some(K=>ee.isEqual(K,O)):!1,R=(O,K)=>K.curData[0]+"-"+K.curData[1]+"-"+ee.getNumTwoBit(+O.day),N=(O,K)=>{const G=R(O,K),{type:H}=e;return O.type=="curr"?ee.isEqual(u.currDate,G)||(H=="range"||H=="week")&&(B(G)||q(G))||H=="multiple"&&P(G)?`${u.dayPrefix}--active`:u.propStartDate&&ee.compareDate(G,u.propStartDate)||u.propEndDate&&ee.compareDate(u.propEndDate,G)?`${u.dayPrefix}--disabled`:(H=="range"||H=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ee.compareDate(u.currDate[0],G)&&ee.compareDate(G,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},v=()=>{const{type:O}=e;if(O=="range"&&u.chooseData.length==2||O!="range"){let K=u.chooseData.slice(0);O=="week"&&(K={weekDate:[F(u.chooseData[0]),F(u.chooseData[1])]}),n("choose",K),e.poppable&&n("update")}},D=(O,K,G=!1)=>{if(N(O,K)!=`${u.dayPrefix}--disabled`){const{type:H}=e;let[W,I]=K.curData,z=[...K.curData];if(z[2]=ee.getNumTwoBit(Number(O.day)),z[3]=`${z[0]}-${z[1]}-${z[2]}`,z[4]=ee.getWhatDay(+z[0],+z[1],+z[2]),H=="multiple")if(u.currDate?.length>0){let Y;u.currDate?.forEach((X,ae)=>{X==z[3]&&(Y=ae)}),G?u.chooseData.push([...z]):Y!==void 0?(u.currDate.splice(Y,1),u.chooseData.splice(Y,1)):(u.currDate.push(z[3]),u.chooseData.push([...z]))}else u.currDate=[z[3]],u.chooseData=[[...z]];else if(H=="range"){let Y=Object.values(u.currDate).length;Y==2||Y==0?u.currDate=[z[3]]:ee.compareDate(u.currDate[0],z[3])?Array.isArray(u.currDate)&&u.currDate.push(z[3]):Array.isArray(u.currDate)&&u.currDate.unshift(z[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...z]]:ee.compareDate(u.chooseData[0][3],z[3])?u.chooseData=[...u.chooseData,[...z]]:u.chooseData=[[...z],...u.chooseData]}else if(H=="week"){let Y=ee.getWeekDate(W,I,O.day,e.firstDayOfWeek);u.propStartDate&&ee.compareDate(Y[0],u.propStartDate)&&Y.splice(0,1,u.propStartDate),u.propEndDate&&ee.compareDate(u.propEndDate,Y[1])&&Y.splice(1,1,u.propEndDate),u.currDate=Y,u.chooseData=[ee.formatResultDate(Y[0]),ee.formatResultDate(Y[1])]}else u.currDate=z[3],u.chooseData=[...z];if(!G){let Y=u.chooseData;H=="week"&&(Y={weekDate:[F(u.chooseData[0]),F(u.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&v()}}},F=O=>{let[K,G,H]=O;return{date:O,monthWeekNum:ee.getMonthWeek(K,G,H,e.firstDayOfWeek),yearWeekNum:ee.getYearWeek(K,G,H,e.firstDayOfWeek)}},T=O=>{const K=O=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let G=parseInt(K.curData[0]),H=parseInt(K.curData[1].toString().replace(/^0/,""));switch(O){case"prev":H==1&&(G-=1),H=H==1?12:--H;break;case"next":H==12&&(G+=1),H=H==12?1:++H;break}return[G+"",ee.getNumTwoBit(H),ee.getMonthDays(String(G),String(H))+""]},S=(O,K,G)=>{let{year:H,month:W}=G;return K=="prev"&&O>=7&&(O-=7),Array.from(Array(O),(I,z)=>({day:String(z+1),type:K,year:H,month:W}))},$=(O,K,G,H)=>{O=O-e.firstDayOfWeek;let{year:W,month:I}=G;return K=="prev"&&O>=7&&(O-=7),Array.from(Array(H),(Y,X)=>({day:String(X+1),type:K,year:W,month:I})).slice(H-O)},L=(O,K)=>{const G=ee.getMonthPreDay(+O[0],+O[1]);let H=Number(O[1])-1,W=Number(O[0]);H<=0&&(H=12,W+=1);const I=ee.getMonthDays(String(O[0]),String(O[1])),z=ee.getMonthDays(W+"",H+""),Y={year:O[0],month:O[1]},X={curData:O,title:a("monthTitle",{year:Y.year,month:Y.month}),monthData:[...$(G,"prev",{month:String(H),year:String(W)},z),...S(I,"curr",Y)],cssHeight:0,cssScrollHeight:0},ae=X.monthData.length>35?6:5;X.cssHeight=oa+la*ae;let de=0;u.monthsData.length>0&&(de=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),X.cssScrollHeight=de,K=="next"?(!u.endData||!ee.compareDate(`${u.endData[0]}-${u.endData[1]}-${ee.getMonthDays(u.endData[0],u.endData[1])}`,`${O[0]}-${O[1]}-${O[2]}`))&&u.monthsData.push(X):!u.startData||!ee.compareDate(`${O[0]}-${O[1]}-${O[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(X):u.unLoadPrev=!0},E=()=>{let O=e.startDate?e.startDate:ee.getDay(0),K=e.endDate?e.endDate:ee.getDay(365);u.propStartDate=O,u.propEndDate=K,u.startData=A(O),u.endData=A(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const G={year:Number(u.startData[0]),month:Number(u.startData[1])},H={year:Number(u.endData[0]),month:Number(u.endData[1])};let W=H.month-G.month;H.year-G.year>0&&(W=W+12*(H.year-G.year)),W<=0&&(W=1),L(u.startData,"next");let I=1;do L(T("next"),"next");while(I++<W);if(u.monthsNum=W,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(O&&ee.compareDate(u.currDate[0],O)&&u.currDate.splice(0,1,O),K&&ee.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...A(u.currDate[0]),...A(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let z=[],Y={};u.currDate.forEach(X=>{O&&!ee.compareDate(X,O)&&K&&!ee.compareDate(K,X)&&(Object.hasOwnProperty.call(Y,X)||(z.push(X),Y[X]=X))}),u.currDate=[...z],u.defaultData=[...A(z[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[z,Y,X]=A(u.currDate[0]),ae=ee.getWeekDate(z,Y,X,e.firstDayOfWeek);u.currDate=ae,O&&ee.compareDate(u.currDate[0],O)&&u.currDate.splice(0,1,O),K&&ee.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...A(u.currDate[0]),...A(u.currDate[1])]}}else u.currDate&&(O&&ee.compareDate(u.currDate,O)?u.currDate=O:K&&!ee.compareDate(u.currDate,K)&&(u.currDate=K),u.defaultData=[...A(u.currDate)])};he({scrollToDate:O=>{ee.compareDate(O,u.propStartDate)?O=u.propStartDate:ee.compareDate(O,u.propEndDate)||(O=u.propEndDate);let K=A(O);u.monthsData.forEach((G,H)=>{if(G.title==a("monthTitle",{year:K[0],month:K[1]})&&d.value){let W=u.monthsData[H].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let I=0,z=setInterval(()=>{if(I++,d.value){let Y=W/10;d.value.scrollTop=d.value.scrollTop+Y}I>=10&&(clearInterval(z),d.value&&(d.value.scrollTop=u.monthsData[H].cssScrollHeight))},40)}else d.value.scrollTop=u.monthsData[H].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let O=0,K=0;u.defaultData.length>0&&u.monthsData.forEach((W,I)=>{W.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(O=I),(e.type=="range"||e.type=="week")&&W.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(K=I)}),j(u.monthsNum,O),u.currentIndex=O,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),D({day:u.defaultData[5],type:"curr"},u.monthsData[K],!0)):e.type=="week"?D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(W=>{let I=A(W),z=u.currentIndex;u.monthsData.forEach((Y,X)=>{Y.title==a("monthTitle",{year:I[0],month:I[1]})&&(z=X)}),D({day:I[2],type:"curr"},u.monthsData[z],!0)}):D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let G=u.monthsData[u.monthsData.length-1],H=G.cssHeight+G.cssScrollHeight;qo(()=>{d?.value&&m?.value&&V?.value&&(p.value=d.value.clientHeight,m.value.style.height=`${H}px`,d.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(H/(u.monthsNum+1))}});const j=(O,K)=>{O>=3?K>0&&K<O?u.defaultRange=[K-1,K+3]:K==0?u.defaultRange=[K,K+4]:K==O&&(u.defaultRange=[K-2,K+2]):u.defaultRange=[0,O+2];let G=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=G},U=(O,K)=>(e.type=="range"||e.type=="week")&&O.type=="curr"&&N(O,K)=="fox-calendar__day--active",J=(O,K)=>U(O,K)&&B(R(O,K)),te=(O,K)=>u.currDate.length>=2&&q(R(O,K))?U(O,K):!1,Z=()=>{if(u.currDate.length>=2)return ee.isEqual(u.currDate[0],u.currDate[1])},Q=O=>{const K=`${O.year}-${O.month}-${Number(O.day)<10?"0"+O.day:O.day}`;return ee.isEqual(K,ee.date2Str(new Date))},ie=O=>{if(u.monthsData.length<=1)return;const K=O.target.scrollTop;let G=Math.floor(K/u.avgHeight);if(G==0)K>=u.monthsData[G+1].cssScrollHeight&&(G+=1);else if(G>0&&G<u.monthsNum-1)K>=u.monthsData[G+1].cssScrollHeight&&(G+=1),K<u.monthsData[G].cssScrollHeight&&(G-=1);else{const H=Math.round(K+p.value);H<u.monthsData[G].cssScrollHeight+u.monthsData[G].cssHeight&&K>u.monthsData[G-1].cssScrollHeight&&(G-=1),G+1<=u.monthsNum&&H>=u.monthsData[G+1].cssScrollHeight+u.monthsData[G+1].cssHeight&&(G+=1),G>=1&&K<u.monthsData[G-1].cssScrollHeight&&(G-=1)}u.currentIndex!==G&&(u.currentIndex=G,j(u.monthsNum,G)),u.yearMonthTitle=u.monthsData[G].title},ue=()=>{u.chooseData.splice(0),u.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,O=>{O&&e.poppable&&ue()}),{dayTitleStyle:i,dayCellStyle:s,weeks:f,compConthsData:y,showTopBtn:C,topInfo:h,bottomInfo:b,rangeTip:Z,mothsViewScroll:ie,getClass:N,isStartTip:J,isEndTip:te,chooseDay:D,isCurrDay:Q,confirm:v,months:d,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:g,viewArea:V}}}),Sc={class:"fox-calendar__header"},vc={key:0,class:"fox-calendar__header-title"},Cc={key:1,class:"fox-calendar__header-slot"},kc={key:2,class:"fox-calendar__header-subtitle"},$c={class:"fox-calendar__weekdays",ref:"weeksPanel"},Tc={class:"fox-calendar__panel",ref:"monthsPanel"},xc={class:"fox-calendar__days"},Dc=["onClick"],Ec={class:"fox-calendar__day-value"},Nc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Vc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Ic={key:2,class:"fox-calendar__day-tips--curr"},Bc={key:4,class:"fox-calendar__day-tip"},Oc={key:0,class:"fox-calendar__footer"};function Ac(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Sc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",vc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Cc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",kc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",$c,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Tc,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",xc,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:d=>e.chooseDay(c,i)},[t.createElementVNode("view",Ec,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Nc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Vc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Ic,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,i)?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Dc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Oc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const aa=fe(wc,[["render",Ac]]),{create:Rc}=ne("calendar-picker"),Fc=Rc({components:{[aa.name]:aa,[je.name]:je},props:{...lo},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),i=t.computed(()=>l["bottom-info"]),s=t.ref(null),c=y=>{s.value?.scrollToDate(y)},f=()=>{s.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),he({scrollToDate:c,initPosition:f});const d=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:d,close:m,select:y=>{n("select",y)},choose:y=>{m(),n("choose",y)},calendarRef:s,showTopBtn:o,topInfo:a,dayInfo:r,bottomInfo:i}}});function Lc(e,n,l,o,a,r){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{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","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const ln=fe(Fc,[["render",Lc]]),ao=(e,n)=>{let l;return Me(e)?l=e:typeof e=="string"&&Be(e)>0?l=ee.parser(e,n):l=new Date,l},st=(e,n,l)=>(Me(n)||(n=new Date),ee.format(n,l)),ct=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,a=ee.date2Str(e),r=ee.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,a,r]},ra={...lo,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 Mc(e,n,l){return{props:{...ge,...ke,...ra},emits:["change","update:modelValue","blur","focus","clear"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]);let d=re(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),V=t.computed(()=>o.type==="range"),p=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),y=()=>{p.startDate!==null&&(p.startDate=null,p.endDate=null,p.startArray=[],p.endArray=[])},C=(E,_="one",k="YYYY-MM-DD")=>{if(pc(E)){y();return}if(V.value&&Array.isArray(E)&&E.length==2){let M,j;typeof E[0]=="string"?(M=ao(E[0],k),j=ao(E[1],k)):(M=E[0],j=E[1]);let U=ct(M),J=ct(j);(p.startDate===null||p.startDate.getTime()!==M.getTime()||p.endDate?.getTime()!==j.getTime())&&(p.startDate=M,p.startArray=U,p.endDate=j,p.endArray=J)}else{let M;typeof E=="string"?M=ao(E,k):M=E;let j=ct(M);(p.startDate===null||p.startDate.getTime()!==M.getTime())&&(p.startDate=M,p.startArray=j)}};C(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,E=>{C(E,o.type,o.valueFormat)});const h=t.computed(()=>{if(p.startDate===null)return"";if(V.value){let E=st(o,p.startDate,o.format),_=st(o,p.endDate,o.format);return`${E} ${o.rangeSeparator} ${_}`}else{let E=st(o,p.startDate,o.format);return o.showWeek&&(E=`${E} ${p.startArray[4]}`),E}}),b=t.computed(()=>{if(p.startDate===null)return null;if(V.value){let E=ee.date2Str(p.startDate),_=ee.date2Str(p.endDate??new Date);return[E,_]}else return ee.date2Str(p.startDate)}),u="fox-input-item",A=t.computed(()=>({[u]:!0,[`${u}__disabled`]:r.value})),B=Ne(t.computed(()=>o.textAlign),"textAlign"),q=t.computed(()=>({textAlign:B.value??"right"})),P=t.ref(!1),R=()=>{i.value||r.value||(P.value=!0)},N=()=>{P.value=!1},v=E=>{P.value=E},D=E=>{if(E){if(V.value&&Array.isArray(E)){let _=E[0],k=se(_[0]),M=se(_[1]),j=se(_[2]),U=new Date(k,M-1,j),J=E[1];k=se(J[0]),M=se(J[1]),j=se(J[2]);let te=new Date(k,M-1,j);if(p.startDate=U,p.startArray=ct(U),p.endDate=te,p.endArray=ct(te),o.valueFormat){let Z=st(o,U,o.valueFormat),Q=st(o,te,o.valueFormat);s("update:modelValue",[Z,Q],{})}else s("update:modelValue",[U,te],{})}else{let _=E,k=se(_[0]),M=se(_[1]),j=se(_[2]),U=new Date(k,M-1,j);if(p.startDate=U,p.startArray=ct(U),o.valueFormat){let J=st(o,U,o.valueFormat);s("update:modelValue",J,{})}else s("update:modelValue",U,{})}s("change",E,{})}},F=E=>{let k=E.target.value;g.value=!0,s("focus",k,E)},T=E=>{setTimeout(()=>{g.value=!1},0);let k=E.target.value;o.maxLength&&k.length>Number(o.maxLength)&&(k=k.slice(0,Number(o.maxLength))),s("blur",k,E)},S=t.computed(()=>Be(o.unit)>0),$=E=>{y(),s("update:modelValue",null,E),s("change","",E),s("clear","")},L=t.ref();return he({showPicker:R,hidePicker:N,focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const E={class:A.value,style:q.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,clearable:o.clearable,value:h.value,onClick:R,onFocus:F,onBlur:T,onClear:$},_={};a.slots.prepend&&(_.prepend=a.slots.prepend),a.slots.append&&(_.append=a.slots.append),a.slots.prefix?_.prefix=a.slots.prefix:_.prefix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ye.Calendar)}),a.slots.suffix?_.suffix=a.slots.suffix:S.value&&(_.suffix=()=>[o.unit]);const k=[],M=t.h(x.ElInput,E,_);k.push(M);const j={default:()=>k};a.slots.default&&(j.label=a.slots.default),a.slots.fixedTip&&(j.fixedTip=a.slots.fixedTip);const U=pt(o,lo);U.visible=P.value,U["onUpdate:visible"]=v,U["default-value"]=b.value,U.onChoose=D;const J={};if(a.slots.btn){const ue=a.slots.btn();J.btn=()=>ue}a.slots.day&&(J.day=a.slots.day),a.slots.topInfo&&(J.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(J.bottomInfo=a.slots.bottomInfo);const te=t.h(ln,U,J);j.hide=()=>[te];const Q={...ve(o,ra),hintText:d.value,hintVisible:m.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,Q,j)}}}}const{componentName:Pc,create:qc,scope:_c}=ne("calendar-item"),ro=qc(Mc(Pc,_c,pe)),ia={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function zc(e,n,l){return{props:{...ge,...ke,...ia},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),m=re(o,"modelValue"),g=e,V=t.computed(()=>({[g]:!0})),p=q=>{m.value=q,s("update:modelValue",q),s("change",q)};let y=re(o,"hintText"),C=t.ref(!1);const h=q=>{let R=q.target.value;d.value=!0,be(y.value)||(C.value=!0),s("focus",R,q)},b=q=>{setTimeout(()=>{C.value&&(C.value=!1),d.value=!1},0);let R=q.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),s("blur",R,q)},u=()=>{s("clear","")},A=q=>{s("visible-change",q)},B=t.ref();return he({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const P={...a.attrs,ref:B,class:V.value,placeholder:f.placeholder.value,disabled:r.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":p,onClear:u,onFocus:h,onBlur:b,onVisibleChange:A},R={},N=[],v=t.h(x.ElTimePicker,P,R);N.push(v);const D={default:()=>N};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const T={...ve(o,ia),hintText:y.value,hintVisible:C.value,prop:`${o.prop}_item`};return t.h(l,T,D)}}}}const{componentName:jc,create:Hc,scope:Kc}=ne("time-item"),io=Hc(zc(jc,Kc,pe)),sa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Yc(e,n,l){return{props:{...ge,...ke,...sa},emits:["change","update:modelValue","blur","focus","clear"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),m=re(o,"modelValue"),g=e,V=t.computed(()=>({[g]:!0})),p=B=>{m.value=B,s("update:modelValue",B),s("change",B)};let y=re(o,"hintText"),C=t.ref(!1);const h=B=>{let P=B.target.value;d.value=!0,be(y.value)||(C.value=!0),s("focus",P,B)},b=B=>{setTimeout(()=>{C.value&&(C.value=!1),d.value=!1},0);let P=B.target.value;o.maxLength&&P.length>Number(o.maxLength)&&(P=P.slice(0,Number(o.maxLength))),s("blur",P,B)},u=()=>{s("clear","")},A=t.ref();return he({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const q={...a.attrs,ref:A,class:V.value,placeholder:f.placeholder.value,disabled:r.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":p,onClear:u,onFocus:h,onBlur:b},P={},R=[],N=t.h(x.ElTimeSelect,q,P);R.push(N);const v={default:()=>R};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const F={...ve(o,sa),hintText:y.value,hintVisible:C.value,prop:`${o.prop}_item`};return t.h(l,F,v)}}}}const{componentName:Wc,create:Uc,scope:Gc}=ne("time-select-item"),so=Uc(Yc(Wc,Gc,pe));function ca(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let a=o;for(let r=l.length-1;r>=o;r--)if(l.charAt(r)!="0"){a=r;break}return a-o<n?a=o+n+1:a!=o&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function ua(e,n,l=20){if(typeof n=="string"&&(n=se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Yo(`${e}`,`${n}`);return ca(o)}else{let o=vn(`${e}`,Wo(`${n}`),20);return ca(o)}}function Xc(e,n=-1,l=!1,o=3,a=","){return Ft(e,n,l,o,a)}function fa(e,n,l,o,a=!0){if(e=="")return"";if(e=Uo(e),n=se(n),n==1)return e;if(o)e=ua(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(se(l)+2,"0"):e=vn(e,1,se(l)));else{let r=-1*n;e=ua(e,r)}return e}function da(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=oe(n.minInclude),a=Cn(e,n.min);if(o&&a==-1||!o&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let o=oe(n.maxInclude),a=Cn(e,n.max);(o&&a==1||!o&&(a==0||a==1))&&(l.maxValid=!1)}return l}const ma={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 Jc(e,n,l){return{props:{...ge,...ke,...ma},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),c=t.ref(!1),f=re(o,"modelValue"),d=t.ref("");t.watch([()=>f.value,()=>o.rates,()=>o.precision],([T,S,$])=>{if(be(T)){d.value="";return}const L=fa(T,S,$,!1);d.value!==L&&(d.value=L)},{immediate:!0});const m=t.computed(()=>{let T="";return c.value&&(T=d.value),T}),{t:g}=De.useFoxI18n(n),V=t.computed(()=>{let T=o.placeholder??"";return!c.value&&!be(d.value)?T=Xc(d.value,o.decimalLength,o.autoPadding,o.digits,o.separator):T=g(["placeholder",T]),T}),p=e,y=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__placeholder`]:d.value.length>0})),C=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:C.value??"right"});const h=t.ref(""),b=t.computed(()=>{let T=h.value;return be(T)&&(T=o.errorTip??""),T}),u=t.ref(""),A=t.ref(!1),B=(T,S)=>{if(T=`${T}`,be(T)){d.value="",f.value="",S.forEach($=>{s($,"")}),oe(o.showTip)&&A.value&&(A.value=!1);return}if(T.length>=2){let $=T;if($.charAt(0)=="-"&&($=$.substring(1)),$.length>=2&&$.charAt(0)=="0"&&$.charAt(1)!="."){t.triggerRef(d);return}}if(T!="-"){if(!ol(T)){t.triggerRef(d);return}if(o.integerLength!=-1&&ll(T)>Number(o.integerLength)){t.triggerRef(d);return}if(o.decimalLength&&o.decimalLength!=-1&&al(T)>Number(o.decimalLength)){t.triggerRef(d);return}let $=da(T,o);if($.maxValid===!1){h.value=$.message,t.triggerRef(d);return}}else if(o.min!=null&&se(o.min)>=0){t.triggerRef(d);return}u.value=T,oe(o.showTip)&&(A.value=T.length>0),d.value=T,f.value=fa(T,o.rates,o.precision,!0),S.forEach($=>{s($,f.value)})},q=T=>{B(T,["update:modelValue","input"])},P=T=>{B(T,["update:modelValue","change"])},R=T=>{if(c.value=!0,oe(o.showTip)){let S=d.value;be(S)&&(S=o.hintText),be(S)||(u.value=S,A.value=!0)}h.value="",s("focus",f.value,T)},N=T=>{if(setTimeout(()=>{c.value=!1,oe(o.showTip)&&A.value===!0&&(A.value=!1)},0),!be(d.value)){let S=da(d.value,o);if(S.minValid===!1||S.maxValid===!1){h.value=S.message;return}}s("update:modelValue",f.value,T),s("blur",f.value,T)},v=()=>{s("clear","")},D=t.computed(()=>Be(o.unit)>0),F=t.ref();return he({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const S={...ze(a.attrs),ref:F,class:y.value,type:"digit",maxlength:o.maxLength,placeholder:V.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:v,onInput:q,onChange:P,onFocus:R,onBlur:N},$={};a.slots.prepend&&($.prepend=a.slots.prepend),a.slots.append&&($.append=a.slots.append),a.slots.prefix&&($.prefix=a.slots.prefix),a.slots.suffix?$.suffix=a.slots.suffix:D.value&&($.suffix=()=>[o.unit]);const L=[],E=t.h(x.ElInput,S,$);L.push(E);const _={default:()=>L};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const M={...ve(o,ma),errorTip:b.value,hintText:u.value,hintVisible:A.value,hintType:"number",prop:`${o.prop}_item`};return t.h(l,M,_)}}}}const{componentName:Zc,create:Qc,scope:eu}=ne("money-item"),co=Qc(Jc(Zc,eu,pe)),ha={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 tu(e,n,l){return{props:{...ge,...ke,...ha},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),m=re(o,"modelValue"),g=e,V=t.computed(()=>({[g]:!0,[`${g}__append`]:q.value})),p=t.computed(()=>({[`${g}__unit`]:!0})),y=R=>{m.value=R,s("update:modelValue",R),s("input",R)},C=R=>{s("change",R)};let h=re(o,"hintText"),b=t.ref(!1);const u=R=>{let v=R.target.value;d.value=!0,be(h.value)||(b.value=!0),s("focus",v,R)},A=R=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let v=R.target.value;o.maxLength&&v.length>Number(o.maxLength)&&(v=v.slice(0,Number(o.maxLength))),s("blur",v,R)},B=()=>{s("clear","")},q=t.computed(()=>Be(o.unit)>0),P=t.ref();return he({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const N={...ze(a.attrs),ref:P,class:V.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:C,onInput:y,onFocus:u,onBlur:A},v={},D=[],F=t.h(x.ElInputNumber,N,v);D.push(F);const T={default:()=>D};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const $={...ve(o,ha),hintText:h.value,hintVisible:b.value,prop:`${o.prop}_item`};if(a.slots.append)T.append=a.slots.append;else if(q.value){const E={class:p.value},_=t.h("div",E,[o.unit]);T.append=()=>_}return t.h(l,$,T)}}}}const{componentName:nu,create:ou,scope:lu}=ne("input-number-item"),uo=ou(tu(nu,lu,pe));function Tt(e,n){const l=e.textKey??"text";return n[l]??""}function xt(e,n){const l=e.valueKey??"value";return n[l]}function ga(e,n){const l=e.childrenKey??"children";return n[l]}function an(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=Tt(e,a),i=xt(e,a);l.texts.push(r),l.values.push(i??"")}return l}function pa(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let i=0;i<n.length;i++)if(Tt(e,n[i])===r){const c=xt(e,n[i])??"",f={[e.textKey]:r,[e.valueKey]:c};a.push(f);const d=ga(e,n[i]);Array.isArray(d)&&pa(e,d,l,o+1,a);return}}function ya(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let i=0;i<n.length;i++)if(xt(e,n[i])===r){const c=Tt(e,n[i])??"",f={[e.textKey]:c,[e.valueKey]:r};a.push(f);const d=ga(e,n[i]);Array.isArray(d)&&ya(e,d,l,o+1,a);return}}function fo(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++){const a=Tt(e,n[o]),r=Tt(e,l[o]);if(a!==r)return!1;const i=xt(e,n[o]),s=xt(e,l[o]);if(i!==s)return!1}return!0}let au=class{proxy;constructor(n){this.proxy=n}async load(n,l){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const a=Re(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Oe(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(n,l))}};function ru(){const e=t.getCurrentInstance();return new au(e.proxy)}const rn=(e,n,l)=>e.map(o=>{const{value:a="value",text:r="text",children:i="children"}=l??{},{[a]:s,[r]:c,[i]:f,...d}=o,m={loading:!1,...d,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:f,_parent:n};return m.children&&m.children.length&&(m.children=rn(m.children,m,l)),m}),ba=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&ba(o.children,n)},iu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},su=(e,n)=>{const l={...iu,...n||{}},{topId:o,idKey:a,pidKey:r,sortKey:i}=l;let s=[],c={};return e.forEach(f=>{f={...f};const{[a]:d,[r]:m}=f,g=c[m]=c[m]||[];!s.length&&m===o&&(s=g),g.push(f),f.children=c[d]||(c[d]=[])}),i&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((d,m)=>d[i]-m[i])}),c=null,s},cu=/scroll|auto|overlay/i,uu=window;function fu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function wa(e,n=uu){let l=e;for(;l&&l!==n&&fu(l);){const{overflowY:o}=window.getComputedStyle(l);if(cu.test(o))return l;l=l.parentNode}return n}const{create:du}=ne("sticky"),mu=du({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const l=t.ref(),o=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),s=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const f=e.container;if(!l.value&&!f)return;const d=Qe(l),m=o.value,g=Qe(m),V=Qe(f);a.height=d.height;const p=()=>{let C=!1;if(e.position==="top")C=f?r.value>d.top&&V.bottom>0:r.value>d.top;else{const h=document.documentElement.clientHeight;C=f?V.bottom>0&&h-r.value-g.height>V.top:h-r.value<d.bottom}return C},y=()=>{if(f)if(e.position==="top"){const C=V.bottom-r.value-g.height;return C<0?C:0}else{const C=document.documentElement.clientHeight,h=V.bottom-(C-r.value);return h<0?h:0}return 0};a.transform=y(),a.fixed=p()};return t.watch(()=>a.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),wa(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{wa(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:i,stickyRef:o,stickyStyle:s}}});function hu(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Dt=fe(mu,[["render",hu]]),gu=(e,n,l,o)=>{const a=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let g=await o(a,l);r.value.width=g.width||0,r.value.height=g.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=Jn();let f="";const d=(g,V)=>{let p=g;switch(e.direction=="horizontal"?(f=g>0?"right":"left",p=Math.abs(p)/r.value.width*100):(f=V>0?"bottom":"top",p=V,p=Math.abs(p)/r.value?.height*100),p>85&&(p=85),f){case"left":case"top":n.isEnd()&&(p=0,s.moving=!1);break;case"right":case"bottom":p=-p,n.isBegin()&&(p=0,s.moving=!1);break}s.offset=p};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),s.moving=!0,d(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,f){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:a}};class pu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:yu}=ne("ext-tabs"),bu=yu({components:{[Dt.name]:Dt,JoySmile:ns},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},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:l}){const o=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=N=>{N.forEach((v,D)=>{let F=v.type;if(F=F.name||F,F=="fox-ext-tab-pane"){let T=new pu;if(v.props?.title||v.props?.["pane-key"]||v.props?.paneKey){let S=nt(v.props?.["pane-key"]),$=S=="number"||S=="string"?String(v.props?.["pane-key"]):null,L=nt(v.props?.paneKey),E=L=="number"||L=="string"?String(v.props?.paneKey):null;T.title=v.props?.title,T.paneKey=$||E||String(D),T.disabled=v.props?.disabled}r.value.push(T)}else{if(v.children==" ")return;Array.isArray(v.children)&&i(v.children)}})},s=t.ref(e.modelValue||0),c=N=>{let v=r.value.findIndex(D=>D.paneKey==N);r.value.length==0||v==-1||(s.value=v)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),d=t.ref(),m=t.ref([]),g=N=>{const v=d.value,D=m.value;if(!v||!D||!D[s.value])return;const F=D[s.value];let T=0;e.direction==="vertical"?T=F.offsetTop-v.offsetTop+10-(v.offsetHeight-F.offsetHeight)/2:T=F.offsetLeft-(v.offsetWidth-F.offsetWidth)/2,V(v,T,N?0:.3,e.direction)},V=(N,v,D,F)=>{let T=0;const S=F==="horizontal"?N.scrollLeft:N.scrollTop,$=D===0?1:Math.round(D*1e3/16);function L(){F==="horizontal"?N.scrollLeft+=(v-S)/$:N.scrollTop+=(v-S)/$,++T<$&&Go(L)}L()},p=(N=l.default?.())=>{r.value=[],N=N?.filter(v=>typeof v.children!="string"),N&&N.length&&i(N),c(e.modelValue),t.nextTick(()=>{g()})},y=N=>{a=N.fixed};t.watch(()=>l.default?.(),N=>{p(N)});const C=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,N=>{if(c(N),g(),a){let v=Qe(o.value).top+C(),D=Math.ceil(v-e.top);window.scrollTo({top:D,behavior:"smooth"})}}),t.onMounted(p),t.onActivated(p);const h={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,h.updateValue(r.value[s.value])},prev:()=>{s.value-=1,h.updateValue(r.value[s.value])},updateValue:N=>{n("update:modelValue",N.paneKey),n("change",N)},tabChange:(N,v)=>{n("click",N),!(N.disabled||s.value==v)&&(s.value=v,h.updateValue(N))},setTabItemRef:(N,v)=>{m.value[v]=N}},{tabsContentRef:b,touchState:u,touchMethods:A}=gu(e,h),B=t.computed(()=>{let N=s.value*100;u.moving&&(N+=u.offset);let v={transform:e.direction=="horizontal"?`translate3d(-${N}%, 0, 0)`:`translate3d( 0,-${N}%, 0)`,transitionDuration:u.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(v={}),v}),q=t.computed(()=>({background:e.background})),P=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),R=t.computed(()=>{if(!e.titleGutter)return{};const N=Ce(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}});return{navRef:d,tabsContentRef:b,titles:r,contentStyle:B,tabsNavStyle:q,titleStyle:R,tabsActiveStyle:P,container:o,getScrollY:f,onStickyScroll:y,...h,...A}}}),wu=["onClick"],Su=["onClick"];function vu(e,n,l,o,a,r){const i=t.resolveComponent("JoySmile"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(c,f),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,wu))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:d=>e.setTabItemRef(d,f)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Su))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Et=fe(bu,[["render",vu]]),{create:Cu}=ne("ext-tab-pane"),ku=Cu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const l=t.inject("tabsOpiton"),o=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:o}}});function $u(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Nt=fe(ku,[["render",$u]]);class Sa{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=rn(n,null,this.config)}updateChildren(n,l){l?l.children=rn(n,l,this.config):this.nodes=rn(n,null,this.config)}getNodeByValue(n){let l;return ba(this.nodes,o=>{if(o.value===n)return l=o,!0}),l}getPathNodesByValue(n){if(!n.length)return[];const l=[];let o=this.nodes;for(;o&&o.length;){const a=o.find(r=>r.value===n[r.level]);if(!a)break;l.push(a),o=a.children}return l}isLeaf(n,l){const{leaf:o,children:a}=n,r=Array.isArray(a)&&!!a.length;return o||!r&&!l}hasChildren(n,l){if(this.isLeaf(n,l))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:Tu,scope:xu}=ne("cascader-pane"),Du=Tu({components:{Loading:Zi,Checklist:us,[Et.name]:Et,[Nt.name]:Nt},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:n}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),i=t.ref(new Sa([],{})),s=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),f=new Map;let d;const m=async()=>{f.clear(),s.value=[],o.value=0,a.value=!1,d=null;let{options:h}=e;l.value.convertConfig&&(h=su(h,l.value.convertConfig)),i.value=new Sa(h,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!i.value.nodes.length&&await V({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],g()},g=async()=>{const h=r.value;if(h===void 0||!i.value.nodes.length)return;if(h.length===0){o.value=0,s.value=[{nodes:i.value.nodes,selectedNode:null}];return}let b=h;if(c.value&&Array.isArray(h)&&h.length){b=[];let u=i.value.nodes.find(A=>A.value===h[0]);if(u){b=[u.value],a.value=!0;const A=await h.slice(1).reduce(async(B,q)=>{const P=await B;await V(P);const R=P?.children?.find(N=>N.value===q);return R&&b.push(q),Promise.resolve(R)},Promise.resolve(u));await V(A),a.value=!1}}b.length&&h===e.modelValue&&i.value.getPathNodesByValue(b).map((A,B)=>{o.value=B,C.handleNode(A,!0)})},V=async h=>{if(!h)return;if(!l.value.lazyLoad){h.leaf=!0;return}if(i.value.isLeaf(h,c.value)||i.value.hasChildren(h,c.value))return;h.loading=!0;const b=h.root?null:h;let u=f.get(h);u||(u=new Promise(B=>{l.value.lazyLoad?.(h,B)}),f.set(h,u));const A=await u;Array.isArray(A)&&A.length>0?i.value.updateChildren(A,b):h.leaf=!0,h.loading=!1,f.delete(h)},p=h=>{const b=h.map(u=>u.value);r.value=b,n("change",b,h),n("update:modelValue",b,h)},{t:y}=De.useFoxI18n(xu),C={async handleNode(h,b){const{disabled:u,loading:A}=h;if(!(!b&&u||!s.value[o.value])){if(i.value.isLeaf(h,c.value)){if(h.leaf=!0,s.value[o.value].selectedNode=h,s.value=s.value.slice(0,h.level+1),!b){const B=s.value.map(q=>q.selectedNode);p(B),n("pathChange",B)}return}if(i.value.hasChildren(h,c.value)){const B=h.level+1;if(s.value[o.value].selectedNode=h,s.value=s.value.slice(0,B),s.value.push({nodes:h.children||[],selectedNode:null}),o.value=B,!b){const q=s.value.map(P=>P.selectedNode);n("pathChange",q)}return}d=h,!A&&(await V(h),d===h&&(s.value[o.value].selectedNode=h,C.handleNode(h,b)))}},handleTabClick(h){d=null,o.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:y("select")},isSelected(h,b){return h.selectedNode&&h.selectedNode.value===b.value}};return t.watch([l,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,h=>{h!==r.value&&(r.value=h,g())}),t.watch(()=>e.visible,h=>{h&&Array.isArray(r.value)&&r.value.length>0&&g()}),{panes:s,initLoading:a,tabsCursor:o,...C}}}),Eu={role:"menu",class:"fox-cascader__pane"},Nu=["aria-checked","aria-disabled","onClick"],Vu={class:"fox-cascader__item__title"},Iu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Bu(e,n,l,o,a,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),f=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(f,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(d),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Eu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,g),disabled:g.disabled}]),"aria-checked":e.isSelected(d,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:V=>e.handleNode(g,!1)},[t.createElementVNode("view",Vu,t.toDisplayString(g.text),1),g.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Nu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Iu]),_:1}))]),_:1},8,["modelValue","onClick"])}const va=fe(Du,[["render",Bu]]),{create:Ou}=ne("cascader-picker"),Au=Ou({components:{[va.name]:va,[je.name]:je},props:{...Gn,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const l=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,s)=>{l.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==l.value&&(l.value=i)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:o}}}),Ru=["innerHTML"];function Fu(e,n,l,o,a,r){const i=t.resolveComponent("fox-cascader-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Ru)):t.createCommentVNode("",!0),t.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-position"])):(t.openBlock(),t.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 sn=fe(Au,[["render",Fu]]),Ca={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},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 Lu(e,n,l){return{props:{...ge,...ke,...Ca},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]);let d=re(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),V=ru(),p=t.ref([]);t.watch([()=>o.source,()=>o.params],async([L,E])=>{L&&(p.value=await V.load(L,E))},{immediate:!0});const y=t.ref([]),C=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),h=t.ref([]),b=t.ref([]);t.watch([()=>o.modelValue,p],async([L,E])=>{if(o.lazy===!0){b.value.length==0&&(y.value=Array.isArray(L)?L:[],h.value=Array.isArray(L)?L:[]);return}if(o.valueType==="item"){let _=L;if(!fo(o,_,b.value)){b.value=_;let k=an(o,_);y.value=k.texts,h.value=k.values}}else if(o.valueType==="text"){let _=L,k=[];if(pa(o,E,_,0,k),!fo(o,k,b.value)){b.value=k;let M=an(o,k);_.value=M.texts,h.value=M.values}}else{let _=L,k=[];if(ya(o,E,_,0,k),!fo(o,k,b.value)){b.value=k;let M=an(o,k);y.value=M.texts,_.value=M.values}}});const u=e,A=t.computed(()=>({[u]:!0})),B=Ne(t.computed(()=>o.textAlign),"textAlign"),q=t.computed(()=>({textAlign:B.value??"right"})),P=t.ref(!1),R=()=>{r.value===!0||i.value===!0||(P.value=!0)},N=L=>{P.value=L},v=(L,E)=>{let _=E.map(M=>{if(M==null)return M;let j={...M};return Reflect.deleteProperty(j,"text"),j[o.textKey]=M.text??"",Reflect.deleteProperty(j,"value"),j[o.valueKey]=M.value??"",j});b.value=_;let k=an(o,_);y.value=k.texts,h.value=k.values,o.valueType==="text"?(s("change",y.value,_),s("update:modelValue",y.value)):o.valueType==="item"?(s("change",_,_),s("update:modelValue",_)):(s("change",h.value,_),s("update:modelValue",h.value)),s("update:pathNodes",_)},D=L=>{let E=L.map(_=>{if(_==null)return _;let k={..._};return Reflect.deleteProperty(k,"text"),k[o.textKey]=_.text??"",Reflect.deleteProperty(k,"value"),k[o.valueKey]=_.value??"",k});s("pathChange",E)},F=L=>{g.value=!0,s("focus",h.value,L)},T=L=>{setTimeout(()=>{g.value=!1},0),s("blur",h.value,L)},S=t.computed(()=>Be(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!i.value);const $=t.ref();return he({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const L={class:A.value,style:q.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,value:C.value,onClick:R,onFocus:F,onBlur:T},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:S.value?E.suffix=()=>[o.unit]:E.suffix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ye.ArrowDown)});const _=[],k=t.h(x.ElInput,L,E);_.push(k);const M={default:()=>_};a.slots.default&&(M.label=a.slots.default),a.slots.fixedTip&&(M.fixedTip=a.slots.fixedTip);let j={};j.visible=P.value,j["onUpdate:visible"]=N,j.modelValue=h.value,j.onChange=v,j.onPathChange=D,j.options=p.value,j.title=o.title,j.lazy=o.lazy,j.lazyLoad=o.lazyLoad,j.valueKey=o.valueKey,j.textKey=o.textKey,j.childrenKey=o.childrenKey,j.convertConfig=o.convertConfig;const U=t.h(sn,j);M.hide=()=>[U];const te={...ve(o,Ca),hintText:d.value,hintVisible:m.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,te,M)}}}}const{componentName:Mu,create:Pu,scope:qu}=ne("cascader-item"),mo=Pu(Lu(Mu,qu,pe)),ka={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function _u(e,n,l){return{props:{...ge,...ke,...ka},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),f=c(o,["placeholder"]),d=t.ref(!1),m=re(o,"modelValue"),g=e,V=t.computed(()=>({[g]:!0})),p=P=>{m.value=P,s("update:modelValue",P),s("input",P)},y=P=>{s("change",P)},C=P=>{s("select",P)};let h=re(o,"hintText"),b=t.ref(!1);const u=P=>{let N=P.target.value;d.value=!0,be(h.value)||(b.value=!0),s("focus",N,P)},A=P=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let N=P.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),s("blur",N,P)},B=()=>{s("clear","")},q=t.ref();return he({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const R={...a.attrs,ref:q,class:V.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,onClear:B,onChange:y,onInput:p,onFocus:u,onBlur:A,onSelect:C},N={};a.slots.prepend&&(N.prepend=a.slots.prepend),a.slots.append&&(N.append=a.slots.append),a.slots.prefix&&(N.prefix=a.slots.prefix),a.slots.suffix&&(N.suffix=a.slots.suffix),a.slots.option&&(N.default=a.slots.option);const v=[],D=t.h(x.ElAutocomplete,R,N);v.push(D);const F={default:()=>v};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const S={...ve(o,ka),hintText:h.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(l,S,F)}}}}const{componentName:zu,create:ju,scope:Hu}=ne("autocomplete-item"),ho=ju(_u(zu,Hu,pe));function Ku(e,n,l,o,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let c=n;for(let f=0;c&&f<r.length;f++){let d=r[f],m=c.find(g=>g[o]===d);if(!m)break;i.push(m[l])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],d=r[c];const m=f.find(g=>g[o]===d);if(!m)break;i.push(m[l])}else{let c=n;for(let f=0;c&&f<r.length;f++){let d=r[f],m=c.find(g=>g[o]===d);if(!m)break;i.push(m[l]),c=m[a]}}return i}let Yu=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Oe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Wu(){const e=t.getCurrentInstance();return new Yu(e.proxy)}const $a={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Uu(e,n){return{props:{...$a},setup(l,{attrs:o,slots:a}){const r=Wu(),i=t.ref([]);t.watch([()=>l.source,()=>l.params],async([f,d])=>{i.value=await r.load(l.sourceType,f,d)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Ku(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return f.length==0?l.emptyText??"":f.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${f[0]}`:f[0]:f.join(l.separator)}),c=l.resolveTag?t.resolveComponent(l.tag):l.tag;return()=>{const f={...o};return a.default?a.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?t.h(l.emptyTag??"span",{...o,class:l.emptyClass},s.value):t.h(c,f,{default:()=>s.value}):t.h(c,f,s.value)}}}}const{componentName:th,create:Gu,scope:nh}=ne("mapping"),Vt=Gu(Uu());function Xu(e,n){let l=n.split("."),o=e;for(let a=0;a<l.length;a++){let r=l[a],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let f=r.substring(s+1,c);if(/^\d+$/.test(f)){let d=parseInt(f);if(i==0){let m=r.substring(0,s);o=o[m][d]}else o=o[d];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function Ju(e,n){return{props:{...$a},setup(l,{attrs:o,slots:a}){return()=>{const r={default:i=>{const s=Xu(i.row,i.column.property);return a.default?t.h(Vt,{...l,modelValue:s},{default:a.default}):t.h(Vt,{...l,modelValue:s})}};return t.h(x.ElTableColumn,{...o},r)}}}}const{componentName:oh,create:Zu,scope:lh}=ne("table-mapping-column"),go=Zu(Ju()),Qu=Symbol.for("TableStateKey");function Ta(e,n){let l=n.split("."),o=e;for(let a=0;a<l.length;a++){let r=l[a],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let f=r.substring(s+1,c);if(/^\d+$/.test(f)){let d=parseInt(f);if(i==0){let m=r.substring(0,s);o=o[m][d]}else o=o[d];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function ef(e,n){return{props:{},setup(l,{attrs:o}){const a=t.inject(Qu,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:s=>{const c=Ta(s.row,s.column.property),f=r?Ta(r,s.column.property):null,d=c===f,m={class:{"el-radio__input":!0,"is-checked":d}},g=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":d}};return t.h("label",V,[g])}};return t.h(x.ElTableColumn,{...o},i)}}}}const{componentName:ah,create:tf,scope:rh}=ne("table-radio-column"),po=tf(ef()),nf={},of={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},lf=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function af(e,n){return t.openBlock(),t.createElementBlock("svg",of,lf)}const rf=fe(nf,[["render",af]]),{componentName:sh,create:sf,scope:ch}=ne("table-setting"),cf={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},uf=sf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:rf,Download:ye.Download,RefreshLeft:ye.RefreshLeft},props:{...cf},setup(e,{emit:n,attrs:l}){let o=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(k=>k.label===""||k.type?!1:k.fixed===""||k.fixed===!0||k.fixed==="left")),i=t.computed(()=>a.value.filter(k=>k.label===""||k.type?!1:k.fixed==="right")),s=t.computed(()=>a.value.filter(k=>!(k.label===""||k.type||k.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||i.value.length>0)&&s.value.length>0),f=t.computed(()=>r.value.length>0),d=t.computed(()=>i.value.length>0),m=k=>k.length>1,g=k=>{const M=[];a.value=k.map((U,J)=>(!(U.label===""||U.type)&&U.visible!==!1&&M.push(U.prop),{...U,sortIndex:J})),s.value.length+r.value.length+i.value.length===M.length?b.value=!0:M.length>0&&(u.value=!0),q.value=M},V=k=>k?k.type?k.type:k.label?k.prop:"":"",p=(k,M)=>{if(k.length!==M.length)return!1;const j=k.map(U=>V(U));for(let U of M){const J=V(U);if(j.indexOf(J)===-1)return!1}return!0},y=k=>{if(!k){const M=e.tableRef.getColumnSetting(),j=M.srcColumnPropertyList;o=j.map((U,J)=>({...U,sortIndex:J})),k=M.columnPropertyList,k&&k.length>0&&p(j,k)||(k=j)}g(k)},C=()=>{e.tableRef.setColumnSetting(a.value)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=t.ref(!1),u=t.ref(!1),A=k=>{const M=[];a.value.forEach(U=>{k&&!(U.label===""||U.type)&&M.push(U.prop),U.visible=k}),b.value=!1,u.value=!1,s.value.length+r.value.length+i.value.length===M.length?b.value=!0:M.length>0&&(u.value=!0),q.value=M,C()},B=()=>{y(o),C()},q=t.ref([]),P=k=>{a.value.forEach(j=>{if(j.label===""||j.type)return;const U=k.indexOf(j.prop)!==-1;j.visible=U}),b.value=!1,u.value=!1;const M=s.value.length+r.value.length+i.value.length;k.length===M?b.value=!0:k.length>0&&(u.value=!0),C()},R=()=>{y()};t.onMounted(()=>{setTimeout(()=>{y()},50)});const N={currentRow:null,index:null,roleType:null},v=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,v(k)):null:null;return{attrs:l,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:c,isShowLeftFixedTitle:f,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:b,isIndeterminate:u,handleCheckAllChange:A,handleReset:B,checkedValue:q,handleCheckChange:P,onShow:R,onDragStart:k=>{const M=k.currentTarget;M&&M.dataset&&(N.roleType=M.dataset.roleType,N.index=M.dataset.index)},onDragEnd:k=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},onDragOver:k=>{const M=k.currentTarget;k.relatedTarget;const j=v(M);if(!j)return;const U=j.dataset&&j.dataset.roleType;N.roleType===U&&(k.preventDefault(),N.currentRow&&N.currentRow!==j&&N.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),N.currentRow=j)},onDragLeave:k=>{k.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},onDrop:k=>{const M=k.currentTarget,j=v(M);if(!j)return;const U=j.dataset&&j.dataset.roleType;if(N.roleType!==U)return;k.preventDefault();const J=Number(N.index),te=Number(j.dataset.index);if(J!==te){if(J<te){const Z=a.value[J];a.value.splice(J,1),a.value.splice(te,0,Z)}else{const Z=a.value[J];a.value.splice(J,1),a.value.splice(te+1,0,Z)}g(a.value),C()}},toLeftFixed:k=>{const M=a.value[k];M.fixed="left",C()},toRightFixed:k=>{const M=a.value[k];M.fixed="right",C()},toUnFixed:k=>{const M=a.value[k];M.fixed=void 0,C()},checkboxLabelStyle:h}}}),ff={class:"fox-table-setting"},df={class:"fox-table-setting__header"},mf={class:"fox-table-setting__body"},hf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gf={key:0,class:"fox-table-setting__body-title"},pf=["data-index","draggable"],yf={class:"tools-item"},bf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},wf={key:0,class:"fox-table-setting__body-title"},Sf=["data-index","draggable"],vf={class:"tools-item"},Cf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},kf={key:0,class:"fox-table-setting__body-title"},$f=["data-index","draggable"],Tf={class:"tools-item"};function xf(e,n,l,o,a,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),m=t.resolveComponent("fox-tooltip"),g=t.resolveComponent("Download"),V=t.resolveComponent("fox-checkbox"),p=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",ff,[t.createElementVNode("div",df,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=C=>e.isCheckAll=C),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",mf,[t.createVNode(p,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=C=>e.checkedValue=C),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",hf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",gf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,C=>(t.openBlock(),t.createElementBlock("div",{key:C.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":C.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[1]||(n[1]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[2]||(n[2]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[3]||(n[3]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[4]||(n[4]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[5]||(n[5]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:C.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(C.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",yf,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:h=>e.toUnFixed(C.sortIndex)},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:h=>e.toRightFixed(C.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,pf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",bf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",wf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,C=>(t.openBlock(),t.createElementBlock("div",{key:C.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":C.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[6]||(n[6]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[7]||(n[7]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[8]||(n[8]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[9]||(n[9]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[10]||(n[10]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:C.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(C.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",vf,[t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:h=>e.toLeftFixed(C.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:h=>e.toRightFixed(C.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Sf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Cf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",kf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,C=>(t.openBlock(),t.createElementBlock("div",{key:C.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":C.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[11]||(n[11]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[12]||(n[12]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[13]||(n[13]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[14]||(n[14]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[15]||(n[15]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(V,{class:"checkbox-item",label:C.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(C.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Tf,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:h=>e.toUnFixed(C.sortIndex)},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:h=>e.toLeftFixed(C.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,$f))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const cn=fe(uf,[["render",xf]]);let Df=class{proxy;constructor(n){this.proxy=n}async load(n,l,o,a,r,i,s){if(Array.isArray(l)){let f=(o-1)*a,d=f+a;d>l.length&&(d=l.length);const m=l.slice(f,d);return{totalSize:l.length,page:m}}if(typeof l=="function")return await Reflect.apply(l,null,[o,a,r,i,s]);const c=Re(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Oe(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,o,a,r,i,s]))}};function Ef(){const e=t.getCurrentInstance();return new Df(e.proxy)}class Nf{proxy;constructor(n){this.proxy=n}async load(n){let l=null;const o=Re(this.proxy,"tableSetting");return typeof o=="function"&&(l=await Reflect.apply(o,null,["load",n])),l}save(n,l){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,l])}remove(n){const l=Re(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",n])}}function xa(){const e=t.getCurrentInstance();return new Nf(e.proxy)}const Vf=Symbol.for("TableStateKey");function If(e,n){let l=n.split("."),o=e;for(let a=0;a<l.length;a++){let r=l[a],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let f=r.substring(s+1,c);if(/^\d+$/.test(f)){let d=parseInt(f);if(i==0){let m=r.substring(0,s);o=o[m][d]}else o=o[d];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function yo(e,n){return e.filter(o=>{for(let a in n){const r=n[a],i=If(o,a);if(r!==i)return!1}return!0})}const Da={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Ea={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},bo={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Bf(e,n,l){return{inheritAttrs:!1,props:{...ge,...ke,...Da,...Ea,...bo},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,a){const{locale:r}=De.useFoxI18n(n),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...I){return u.value}}},o.prop??a.attrs.name),s=e,c=t.computed(()=>({[s]:!0})),f=t.computed(()=>({[`${s}__setting`]:!0})),d=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,I=>{g.value=I});const V=I=>{g.value=I,i("page-index-change",I)},p=t.ref(o.pageSize);t.watch(()=>o.pageSize,I=>{p.value=I});const y=I=>{p.value=I,i("page-size-change",I)},C=t.shallowRef({}),h=t.computed(()=>({...C.value,...o.params??{},...o.baseParams??{}})),b=t.ref(0),u=t.ref(),A=Ef();let B=!0;const q=()=>Array.isArray(o.data)?!0:oe(o.autoLoad),P=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,I=>oe(I)),R=async(I,z,Y,X)=>{try{const ae=await A.load("table",I,z,Y,X,B,r.value);b.value=ae.totalSize,u.value=ae.page}catch(ae){console.error("[FoxUI] Load Table Data Fail",ae),b.value=0,u.value=[]}B=!1,setTimeout(()=>{i("loaded-data")},250)};t.watch([g,p],([I,z],[Y,X])=>{z!==X&&(g.value=1,I=1),R(o.data,I,z,h.value)}),t.watch([()=>o.data,h],([I,z],[Y,X])=>{q()&&(I!==Y&&(B=!0),!(!Array.isArray(I)&&Pe(I,Y)&&Pe(z,X))&&R(I,g.value,p.value,z))},{deep:!0});const N=(I={},z=!1)=>new Promise(Y=>{C.value=t.toRaw(I??{}),t.triggerRef(C),z||(g.value=o.pageIndex??1),t.nextTick(async()=>{await R(o.data,g.value,p.value,h.value),Y()})}),v=()=>{b.value=0,u.value=[]};let D=!1;const F=()=>{D||(D=!0,N())};q()&&!P.value&&N();const T=t.ref(null);t.provide(Vf,{currentRow:T});const S=(I,z)=>{T.value=I,i("current-change",I,z)},$=(I,z,Y)=>{i("row-click",I,z,Y),oe(o.rowClickSelectable)===!0&&W?.value.toggleRowSelection(I)},L=[],E=(I,z)=>{if(i("expand-change",I,z),oe(o.uniqueExpansion))if(Array.isArray(z)&&z.length==0){const Y=L.length;L.splice(0,Y)}else{L.forEach(X=>{X!==I&&W?.value.toggleRowExpansion(X,!1)});const Y=L.length;L.splice(0,Y,I)}},_=a.attrs.id??o.prop??a.attrs.name,k=xa(),M=t.ref([]);let j=[];const U=()=>({srcColumnPropertyList:j.map(z=>({...z})),columnPropertyList:M.value}),J=I=>{M.value=[...I],Z()},te=async()=>{const I=await k.load(_);I&&(M.value=I)},Z=()=>{k.save(_,M.value)},Q=()=>{k.remove(_)};te();const ie=I=>I?I.type?I.type:I.label?I.prop:"":"",ue=t.computed(()=>{if(typeof a.slots.default=="function"){const I=a.slots.default(),z=new Map;if(j=[],I.forEach(Y=>{const X=Y;if(!X.props)return;const ae=ie(X.props);z.set(ae,Y);const de={label:"",prop:""};Object.assign(de,X.props),j.push(de)}),M.value.length===j.length){const Y=[];for(let X of M.value){const ae=ie(X),de=z.get(ae);if(!de)return I;if(X.visible===!1)continue;const Ie=de;Ie.props.fixed=X.fixed,Y.push(Ie)}return Y}return I}return[]}),O=t.shallowRef(new Map),K=({column:I,rowIndex:z})=>{const Y=`${z}_${I.property}`;return O.value.get(Y)??""},G=I=>typeof I=="function"?z=>{const Y=[];let X=K(z);return X&&Y.push(X),X=I(z),X&&Y.push(X),Y.length===0?"":Y.join(" ")}:K,H=(I,z,Y)=>{const X=`${I}_${z}`;Y?O.value.set(X,Y):O.value.delete(X),t.triggerRef(O)},W=t.ref();return he({clearSelection:()=>W?.value.clearSelection(),getSelectionRows:()=>W?.value.getSelectionRows(),toggleRowSelection:(I,z)=>{W?.value.toggleRowSelection(I,z)},toggleRowSelectionByProp:(I,z)=>{if(!u.value)return;const Y=yo(u.value,I);Y.length!==0&&Y.forEach(X=>{W?.value.toggleRowSelection(X,z)})},toggleAllSelection:()=>{W?.value.toggleAllSelection()},toggleRowExpansion:(I,z)=>{W?.value.toggleRowExpansion(I,z)},toggleRowExpansionByProp:(I,z)=>{if(!u.value)return;const Y=yo(u.value,I);Y.length!==0&&Y.forEach(X=>{W?.value.toggleRowExpansion(X,z)})},setCurrentRow:I=>{W?.value.setCurrentRow(I)},setCurrentRowByProp:I=>{if(!u.value)return;const z=yo(u.value,I);z.length!==0&&W?.value.setCurrentRow(z[0])},getCurrentRow:()=>T.value,clearSort:()=>{W?.value.clearSort()},clearFilter:I=>{W?.value.clearFilter(I)},doLayout:()=>{W?.value.doLayout()},sort:(I,z)=>{W?.value.sort(I,z)},scrollTo:(I,z)=>{W?.value.scrollTo(I,z)},setScrollTop:I=>{W?.value.setScrollTop(I)},setScrollLeft:I=>{W?.value.setScrollLeft(I)},loadData:N,clearData:v,getData(){return u.value},getTotalSize(){return b.value},getPageIndex(){return g.value},getPageSize(){return p.value},getColumnSetting:U,setColumnSetting:J,removeColumnSetting:Q,setCellClassName:H}),()=>{const z={...ze(a.attrs),onCurrentChange:S,onRowClick:$,onExpandChange:E,data:u.value,ref:W,class:c.value,"cell-class-name":G(o.cellClassName)},Y={};a.slots.default&&(Y.default=()=>ue.value),a.slots.append&&(Y.append=a.slots.append),a.slots.empty&&(Y.empty=a.slots.empty);const X=[],ae=t.h(x.ElTable,z,Y);X.push(ae);let de=null;if(typeof a.slots.pagination=="function")de=a.slots.pagination();else if(o.showPagination){const Ot={class:m.value,total:b.value,pageSize:p.value,"onUpdate:pageSize":y,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":V,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};de=t.h(x.ElPagination,Ot)}if(o.showSetting){const Ot=[];de&&Ot.push(de);const Km=t.h(x.ElIcon,{class:f.value},{default:()=>t.h(ye.Setting)}),Ym=pt(o,bo),Wm=t.h(cn,{...Ym,tableRef:{getColumnSetting:U,setColumnSetting:J,removeColumnSetting:Q}},{default:()=>Km});Ot.push(Wm);const Um=t.h("div",{class:d.value},Ot);X.push(Um)}else de&&X.push(de);const Ie={default:()=>X},Bt={...ve(o,Da,Ea,bo),prop:`${o.prop}_item`};return Bt.contentClass=`${s}__wrap`,Bt.errorMarkClass="is-table-error",P.value&&q()&&(Bt["appear-listen"]=!0,Bt.onAppear=F),t.h(l,Bt,Ie)}}}}const{componentName:Of,create:Af,scope:Rf}=ne("table-item"),wo=Af(Bf(Of,Rf,pe));function ut(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function It(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ff(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Lf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Oe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Mf(){const e=t.getCurrentInstance();return new Lf(e.proxy)}function Na(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ut(e,n),a=ut(e,l);if(o!==a)return!1;const r=It(e,n),i=It(e,l);return r===i}function Pf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of o){let i=!1;if(l==="text")i=ut(e,r)===n;else if(l==="item")i=Na(e,r,n);else{let s=It(e,r);s==null&&(s=ut(e,r)),i=s===n}if(i){a=r;break}}return a}function qf(e){return{text:e,value:e}}function _f(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Va={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function zf(e,n,l){return{inheritAttrs:!0,props:{...ge,...ke,...Va},emits:["change","update:modelValue"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),c=t.ref(null),f=t.ref(null),d=(P,R,N,v=!0)=>{const D=Pf(o,P,R,N);if(D===null){if(f.value===null)return;f.value=null,c.value=null,v&&(s("update:modelValue",null),s("change",null));return}if(!Na(o,D,f.value)){c.value=P;const T=t.toRaw(D);f.value=T;let S=null;o.valueType==="text"?S=ut(o,T):o.valueType==="item"?S=T:S=It(o,T),v&&(s("update:modelValue",S),s("change",S))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,P=>oe(P)),V=Mf(),p=async(P,R)=>{if(P){const N=await V.load("radio",P,R);if(N.length>0)if(typeof N[0]=="string"){let F=N.map(T=>qf(T));m.value=F}else m.value=N}};t.watch([()=>o.source,()=>o.params],async([P,R])=>{p(P,R)},{immediate:!g.value});let y=!1;const C=()=>{y||(y=!0,p(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([P,R])=>{d(R,o.valueType,P,!1)});const h=e,b=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),u=P=>{d(P,"value",m.value,!0)};let A=re(o,"hintText"),B=re(o,"hintVisible");const q=(P,R)=>{const N=[];return P.forEach((v,D)=>{const F=It(o,v),T=ut(o,v);let S=Ff(o,v);r.value===!0&&(S=r.value),i.value===!0&&(S=i.value);const $=_f(o,v,D)??{},L=`${F}_${D}`,E={...$,key:L,label:F,size:o.size,border:oe(o.border)};S&&(E.disabled=S),o.itemType==="button"?N.push(t.h(x.ElRadioButton,E,{default:()=>[T]})):typeof R=="function"?N.push(t.h(x.ElRadio,E,{default:()=>R(v)})):N.push(t.h(x.ElRadio,E,{default:()=>[T]}))}),N};return()=>{const R={...ze(a.attrs),class:b.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:u},N=[],v={};a.slots.options?v.default=a.slots.options:v.default=()=>q(m.value,a.slots.text);const D=t.h(x.ElRadioGroup,R,v);N.push(D);const F={default:()=>N};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const S={...ve(o,Va),hintText:A.value,hintVisible:B.value,prop:`${o.prop??a.attrs.name}_item`};return g.value&&(S["appear-listen"]=!0,S.onAppear=C),t.h(l,S,F)}}}}const{componentName:jf,create:Hf,scope:Kf}=ne("radio-item"),So=Hf(zf(jf,Kf,pe));function ft(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class Wf{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Oe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}}function Uf(){const e=t.getCurrentInstance();return new Wf(e.proxy)}function Ia(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ft(e,n),a=ft(e,l);if(o!==a)return!1;const r=dt(e,n),i=dt(e,l);return r===i}function Gf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of o){let s=!1;if(l==="text")s=ft(e,i)===r;else if(l==="item")s=Ia(e,i,r);else{let c=dt(e,i);c==null&&(c=ft(e,i)),s=c===r}if(s){a.push(i);break}}}),a}function Xf(e){return{text:e,value:e}}function Jf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Ba={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Zf(e,n,l){return{inheritAttrs:!0,props:{...ge,...ke,...Ba},emits:["change","update:modelValue"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),c=t.ref([]),f=t.ref([]),d=(P,R,N,v=!0)=>{const D=Gf(o,P,R,N);if(D===null){if(f.value===null||f.value.length===0)return;c.value=[],f.value=[],v&&(s("update:modelValue",[]),s("change",[]));return}let F=!0;if(D.length!==f.value.length)F=!1;else for(let T=0;T<D.length;T++){const S=D[T],$=f.value[T];if(!Ia(o,S,$)){F=!1;break}}if(!F){f.value=D;let T=[],S=[];D.forEach(L=>{T.push(dt(o,L)),o.valueType==="text"?S.push(ft(o,L)):o.valueType==="item"?S.push(L):S.push(dt(o,L))}),c.value=T;const $=t.toRaw(S);v&&(s("update:modelValue",$),s("change",$))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,P=>oe(P)),V=Uf(),p=async(P,R)=>{if(P){const N=await V.load("checkbox",P,R);if(N.length>0)if(typeof N[0]=="string"){let F=N.map(T=>Xf(T));m.value=F}else m.value=N}};t.watch([()=>o.source,()=>o.params],async([P,R])=>{p(P,R)},{immediate:!g.value});let y=!1;const C=()=>{y||(y=!0,p(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([P,R])=>{d(R,o.valueType,P,!1)});const h=e,b=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),u=P=>{d(P,"value",m.value,!0)};let A=re(o,"hintText"),B=re(o,"hintVisible");const q=(P,R)=>{const N=[];return P.forEach((v,D)=>{const F=dt(o,v),T=ft(o,v);let S=Yf(o,v);r.value===!0&&(S=r.value),i.value===!0&&(S=i.value);const $=Jf(o,v,D)??{},L=`${F}_${D}`,E={...$,key:L,class:o.itemClass,label:F,size:o.size,border:oe(o.border)};S&&(E.disabled=S),o.itemType==="button"?N.push(t.h(x.ElCheckboxButton,E,{default:()=>[T]})):typeof R=="function"?N.push(t.h(x.ElCheckbox,E,{default:()=>R(v)})):N.push(t.h(x.ElCheckbox,E,{default:()=>[T]}))}),N};return()=>{const R={...ze(a.attrs),class:b.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:se(o.max),min:se(o.min),onChange:u},N=[],v={};a.slots.options?v.default=a.slots.options:v.default=()=>q(m.value,a.slots.text);const D=t.h(x.ElCheckboxGroup,R,v);N.push(D);const F={default:()=>N};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const S={...ve(o,Ba),hintText:A.value,hintVisible:B.value,prop:`${o.prop??a.attrs.name}_item`};return g.value&&(S["appear-listen"]=!0,S.onAppear=C),t.h(l,S,F)}}}}const{componentName:Qf,create:ed,scope:td}=ne("checkbox-item"),vo=ed(Zf(Qf,td,pe)),Oa={modelValue:{type:[Number,String],required:!1}};function nd(e,n,l){return{props:{...ge,...ke,...Oa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),c=re(o,"modelValue",y=>se(y)),f=e,d=t.computed(()=>({[f]:!0})),m=y=>{s("update:modelValue",y),s("change",y)};let g=re(o,"hintText"),V=t.ref(!1);const p=t.ref();return he({}),()=>{const C={...ze(a.attrs),ref:p,class:d.value,readonly:i.value||r.value,modelValue:c.value,onChange:m},h={},b=[],u=t.h(x.ElRate,C,h);b.push(u);const A={default:()=>b};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const q={...ve(o,Oa),hintText:g.value,hintVisible:V.value,prop:`${o.prop}_item`};return t.h(l,q,A)}}}}const{componentName:od,create:ld,scope:ad}=ne("rate-item"),Co=ld(nd(od,ad,pe)),Aa={modelValue:{type:[Boolean,String,Number],required:!1}};function rd(e,n,l){return{props:{...ge,...ke,...Aa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),c=re(o,"modelValue"),f=e,d=t.computed(()=>({[f]:!0})),m=y=>{s("update:modelValue",y),s("change",y)};let g=re(o,"hintText"),V=re(o,"hintVisible");const p=t.ref();return he({}),()=>{const C={...ze(a.attrs),ref:p,class:d.value,readonly:i.value,disabled:r.value,modelValue:c.value,onChange:m},h={},b=[],u=t.h(x.ElSwitch,C,h);b.push(u);const A={default:()=>b};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const q={...ve(o,Aa),hintText:g.value,hintVisible:V.value,prop:`${o.prop}_item`};return t.h(l,q,A)}}}}const{componentName:id,create:sd,scope:cd}=ne("switch-item"),ko=sd(rd(id,cd,pe)),Ra={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function ud(e,n,l){return{props:{...ge,...ke,...Ra},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=xe(t.computed(()=>o.disabled)),i=Te(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:c}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.attrs.name),f=re(o,"modelValue"),d=e,m=t.computed(()=>({[d]:!0})),g=B=>{c("update:modelValue",B),c("change",B)};let V=re(o,"hintText"),p=t.ref(!1);const y=B=>{let P=B.target.value;s.value=!0,be(V.value)||(p.value=!0),c("focus",P,B)},C=B=>{setTimeout(()=>{p.value&&(p.value=!1),s.value=!1},0);let P=B.target.value;o.maxLength&&P.length>Number(o.maxLength)&&(P=P.slice(0,Number(o.maxLength))),b.value||c("blur",P,B)},h=()=>{c("clear","")},b=t.ref(!1),u=B=>{b.value=B,c("visible-change",B),B||c("selected")},A=t.ref();return he({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const q={...ze(a.attrs),ref:A,class:m.value,disabled:r.value||i.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:h,onFocus:y,onBlur:C,onVisibleChange:u},P={};a.slots.option&&(P.default=a.slots.option);const R=[],N=t.h(x.ElTreeSelect,q,P);R.push(N);const v={default:()=>R};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const F={...ve(o,Ra),hintText:V.value,hintVisible:p.value,prop:`${o.prop}_item`};return t.h(l,F,v)}}}}const{componentName:fd,create:dd,scope:md}=ne("tree-select-item"),$o=dd(ud(fd,md,pe)),hd={},gd={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},pd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function yd(e,n){return t.openBlock(),t.createElementBlock("svg",gd,pd)}const bd=fe(hd,[["render",yd]]),{componentName:fh,create:wd,scope:dh}=ne("group-setting"),Sd={groupProp:{type:[String]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},vd=wd({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:bd,Download:ye.Download,RefreshLeft:ye.RefreshLeft},props:{...Sd},emits:["change"],setup(e,{emit:n,attrs:l,expose:o}){let a=null;const r=t.ref([]),i=xa(),s=S=>S.length>1,c=()=>{const S=[],$=[...r.value];r.value=$.map((E,_)=>(E.visible!==!1&&S.push(E.prop),{...E,sortIndex:_})),r.value.length===S.length?p.value=!0:S.length>0&&(y.value=!0),b.value=S},f=S=>{const $=document.querySelectorAll(`.fox-group[prop="${S}"] > div > .fox-item[prop]`),L=[];return $.forEach(E=>{const _=E.querySelector(".label--string");let k="";_&&(k=_.textContent??"");const M=E.getAttribute("prop")??"",U=window.getComputedStyle(E,null).getPropertyValue("display");L.push({label:k,prop:M,sortIndex:0,visible:U!=="none"})}),L},d=async(S=!1)=>{a||(a=f(e.groupProp));const $=a.map(E=>({...E})),L=await i.load(e.groupProp);Array.isArray(L)&&L.forEach(E=>{$.some(_=>_.prop===E.prop?(Object.assign(_,E),!0):!1)}),r.value=$.sort((E,_)=>E.sortIndex-_.sortIndex),c(),S&&g(!1)},m=()=>{const S=a??[];r.value=S.map($=>({...$})),c(),g()},g=(S=!0)=>{S&&i.save(e.groupProp,r.value);const $=r.value.map(L=>({...L}));n("change",$)},V=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),y=t.ref(!1),C=S=>{const $=[];r.value.forEach(E=>{S&&$.push(E.prop),E.visible=S}),p.value=!1,y.value=!1,r.value.length===$.length?p.value=!0:$.length>0&&(y.value=!0),b.value=$,g()},h=()=>{m()},b=t.ref([]),u=S=>{r.value.forEach(L=>{const E=S.indexOf(L.prop)!==-1;L.visible=E}),p.value=!1,y.value=!1;const $=r.value.length;S.length===$?p.value=!0:S.length>0&&(y.value=!0),g()},A=()=>{d()};t.onMounted(()=>{e.initDelay>0?setTimeout(()=>{d(!0)},e.initDelay):d(!0)});const B={currentRow:null,index:null},q=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,q(S)):null:null,P=S=>{const $=S.currentTarget;$&&$.dataset&&(B.index=$.dataset.index)},R=S=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},N=S=>{const $=S.currentTarget;S.relatedTarget;const L=q($);L&&(S.preventDefault(),B.currentRow&&B.currentRow!==L&&B.currentRow.classList.remove("is-dragover"),L.classList.add("is-dragover"),B.currentRow=L)},v=S=>{S.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},D=S=>{const $=S.currentTarget,L=q($);if(!L)return;S.preventDefault();const E=Number(B.index),_=Number(L.dataset.index);if(E!==_){if(E<_){const k=r.value[E];r.value.splice(E,1),r.value.splice(_,0,k)}else{const k=r.value[E];r.value.splice(E,1),r.value.splice(_+1,0,k)}c(),g()}},F=S=>{const $=r.value[S];r.value.splice(S,1),r.value.splice(0,0,$),c(),g()},T=S=>{const $=r.value[S];r.value.splice(S,1),r.value.push($),c(),g()};return o({refresh:()=>{a=null,d(!1)}}),{attrs:l,itemPropertyList:r,isDraggble:s,isCheckAll:p,isIndeterminate:y,handleCheckAllChange:C,handleReset:h,checkedValue:b,handleCheckChange:u,onShow:A,onDragStart:P,onDragEnd:R,onDragOver:N,onDragLeave:v,onDrop:D,checkboxLabelStyle:V,toTop:F,toBottom:T}}}),Cd={class:"fox-group-setting"},kd={class:"fox-group-setting__header"},$d={class:"fox-group-setting__body"},Td={class:"fox-group-setting__body-list","data-role":"container"},xd=["data-index","draggable"],Dd={class:"tools-item"};function Ed(e,n,l,o,a,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),f=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),m=t.resolveComponent("fox-tooltip"),g=t.resolveComponent("FoxCheckboxGroup"),V=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(V,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Cd,[t.createElementVNode("div",kd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",$d,[t.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[6]||(n[6]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Td,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":p.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[1]||(n[1]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[2]||(n[2]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[3]||(n[3]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[4]||(n[4]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[5]||(n[5]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Dd,[t.createVNode(m,{content:e.toTopText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:y=>e.toTop(p.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.toBottomText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{onClick:y=>e.toBottom(p.sortIndex)},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,xd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const To=fe(vd,[["render",Ed]]),Nd=Symbol.for("InnerPageScopeKey"),Vd=Symbol.for("PageWrapperKey");function Id(e,n){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(l,o){t.provide(Nd,!0);const a={};t.provide(Vd,a);const r=c=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),s=c=>{i.value=c};return()=>{const f={...o.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":r},d={};if(typeof o.slots.default=="function"){const m=o.slots.default();d.default=()=>m}return t.h(x.ElDialog,f,d)}}}}const{componentName:mh,create:Bd,scope:hh}=ne("dialog-item"),xo=Bd(Id());function Od(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(l,{slots:o}){const a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>l.icon?{[`${a}__icon`]:!0,[`${a}__icon-${l.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${l.type}`]:!0}),s=t.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),c=t.computed(()=>{const d={[`${a}__text`]:!0,[`${a}__text-${l.type}`]:!0};return l.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),f=t.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(o.mark)d=o.mark()[0];else{const y={class:i.value,style:s.value};d=t.h(l.icon??"div",y)}const m={class:c.value,style:f.value},g=o.default?o.default():[],V=t.h("div",m,g),p={class:r.value};return l.textPosition==="right"?t.h("div",p,[d,V]):t.h("div",p,[V,d])}}}}const{componentName:Ad,create:Rd,scope:gh}=ne("indicator"),Do=Rd(Od(Ad));function Fd(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const o=l.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const Ld={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Md(e,n){return{props:{...Ld},setup(l,o){const a=t.ref(!0),r=t.ref(null),i=t.computed(()=>{const d={[`${e}`]:!0,"is-truncated":l.truncated};return typeof l.class=="string"&&l.class.length>0&&l.class.split(/\s+/).forEach(g=>{d[g]=!0}),l.type&&(d[`${e}--${l.type}`]=!0),l.size&&(d[`${e}--${l.size}`]=!0),d}),s=d=>{if(d&&oe(l.showOverflowTooltip)){const m=d.clientWidth;Fd(d,g=>{a.value=g<=m})}};let c=null;t.onMounted(()=>{if(!oe(l.showOverflowTooltip))return;const d=r.value;s(d),d&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{s(d)}),c.observe(d))}),t.onUnmounted(()=>{c?.disconnect()});const f=(d,m)=>{let g=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const V=l.highlightFilter;if(d.indexOf(V)!==-1){const y=d.replace(new RegExp(V,"g"),`<span>${V}</span>`);m.innerHTML=y,m.class["is-highlight"]=!0,g=t.h(l.tag,m)}}else if(typeof l.highlightFilter=="function"){const V=l.highlightFilter(d);V&&(m.innerHTML=V,m.class["is-highlight"]=!0,g=t.h(l.tag,m))}return g};return()=>{const d={},m={...o.attrs,class:{...i.value},ref:r};let g=null;if(oe(l.numberFormat)&&typeof o.slots.default=="function"){const C=o.slots.default();if(Array.isArray(C)&&C.length===1){const h=C[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const b=se(l.digits),u=se(l.decimalLength),A=oe(l.autoPadding);let B=`${C[0].children}`,q=B.split("").reverse().join("");q=Ft(q,u,A,b,l.separator),B=q.split("").reverse().join(""),l.highlightFilter!==void 0&&(g=f(B,m)),g||(m.innerHTML=B,g=t.h(l.tag,m))}}}else{if(l.highlightFilter!==void 0&&typeof o.slots.default=="function"){const C=o.slots.default();if(Array.isArray(C)&&C.length===1){const h=C[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const b=`${C[0].children}`;g=f(b,m),g||(m.innerHTML=b,g=t.h(l.tag,m))}}}g||(g=t.h(l.tag,m,{default:o.slots.default}))}if(!l.mark&&!l.icon&&!o.slots.mark)d.default=()=>g;else{let C=null;if(l.icon){const u={[`${e}__mark-wrap`]:!0};l.type&&(u[`${e}__mark-wrap--${l.type}`]=!0);const A={},B=l.color;B&&(A.color=B);const q={class:u,style:A};C=t.h("div",q,t.h(l.icon))}else if(o.slots.mark){const u={[`${e}__mark-wrap`]:!0};l.type&&(u[`${e}__mark-wrap--${l.type}`]=!0);const A={},B=l.color;B&&(A.color=B);const q={class:u,style:A};C=t.h("div",q,{default:o.slots.mark})}else{const u={[`${e}__mark`]:!0};l.type&&(u[`${e}__mark--${l.type??"default"}`]=!0);const A={},B=l.color;B&&(A["background-color"]=B);const q={class:u,style:A};C=t.h("div",q)}const h={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}},b=t.h("view",h,[C,g]);d.default=()=>b}const p={disabled:a.value};return d.content=o.slots.default,t.h(x.ElTooltip,p,d)}}}}const{componentName:Pd,create:qd,scope:ph}=ne("text"),Eo=qd(Md(Pd)),{create:_d}=ne("toast"),zd=_d({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let l=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{o.mounted=!1},i=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,V=>{V&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=ce(e.iconSize);return t.h(e.icon,{width:V,height:V,color:e.iconColor})},d=t.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]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:s,renderIcon:f,hasIcon:c,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),jd={key:1,class:"fox-toast-title"},Hd=["innerHTML"];function Kd(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",jd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Hd)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const No=fe(zd,[["render",Kd]]),Yd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ye.ArrowUp}};function Wd(e,n,l){return{props:{...Yd},emits:["click","update:modelValue"],setup(o,{emit:a}){const r=t.computed(()=>{const m={[`${e}`]:!0};return o.disabled?m[`${e}__disabled`]=!0:m[`${e}__${o.type}`]=!0,m}),i=re(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{a("update:modelValue",!i.value)};return()=>{const m=[];if(s.value){const y={class:c.value},C=t.h("span",y,[s.value]);m.push(C)}const g={class:f.value},V=l(o.icon,g);return V&&m.push(V),t.h("div",{class:r.value,onClick:d},m)}}}}const{componentName:Ud,create:Gd,scope:Xd}=ne("more-button"),Vo=Gd(Wd(Ud,Xd,(e,n)=>(e=e??ye.ArrowUp,t.h(x.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Jd,create:Zd,scope:bh}=ne("tour"),Qd=Zd({components:{Close:ye.Close,ElPopover:x.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const l=Jd,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${l}`),i=t.computed(()=>{const{offset:p,maskWidth:y,maskHeight:C}=e,{width:h,height:b,left:u,top:A}=a.value,B=e.steps[o.active].offset??p,q=[u+h/2,A+b/2],P=Number(y||h),R=Number(C||b);return{width:`${P+ +B.left+B.right}px`,height:`${R+B.top+B.bottom}px`,top:`${q[1]-R/2-+B.top}px`,left:`${q[0]-P/2-+B.left}px`}}),s=p=>{p=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,d()}),n("change",o.active)},c=p=>p.popoverWidth??e.width,f=p=>p.location??e.location,d=()=>{const p=document.querySelector(`${e.steps[o.active].target}`),y=Qe(p);a.value={x:y.left,y:y.top,top:y.top,left:y.left,width:y.width,height:y.height}},m=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&m()},V=(p,y=0)=>{p&&d(),e.steps,o.active=y,o.showTour=p,o.showPopup=p};return t.onMounted(()=>{V(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{V(p)}),{...t.toRefs(o),classes:r,maskStyle:i,changeStep:s,popoverWidth:c,popoverLocation:f,close:m,handleClickMask:g}}}),em={key:0,class:"fox-tour__content"},tm={key:0,class:"fox-tour__content-top"},nm={class:"fox-tour__content-inner"},om={class:"fox-tour__content-bottom"},lm={class:"fox-tour__content-bottom-init"},am={class:"fox-tour__content-bottom-operate"},rm={key:1,class:"fox-tour__content fox-tour__content-tile"},im={class:"fox-tour__content-inner"};function sm(e,n,l,o,a,r){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),c=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(f,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",em,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",tm,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",nm,t.toDisplayString(f.content),1),t.createElementVNode("div",om,[t.createElementVNode("div",lm,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",am,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",rm,[t.createElementVNode("div",im,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Io=fe(Qd,[["render",sm]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Fa=10;function cm(e,n){return e>n&&e>Fa?"horizontal":n>e&&n>Fa?"vertical":""}function um(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=cm(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:l,state:e}}function fm(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class dm{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=fm()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=um(),o=(a,r,i,s)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),o(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{o(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function La(e,n){return new dm(e,n)}var Ma;const Bo=typeof window<"u";Bo&&((Ma=window?.navigator)!=null&&Ma.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const Pa=e=>{const n=e;n.key==="Escape"&&mt.forEach(l=>l(n))},mm=e=>{t.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Pa),Bo&&mt.push(e)}),t.onBeforeUnmount(()=>{mt=mt.filter(n=>n!==e),mt.length===0&&Bo&&document.removeEventListener("keydown",Pa)})},Oo="fox-focus-trap.focus-after-trapped",Ao="fox-focus-trap.focus-after-released",hm="fox-focus-trap.focusout-prevented",qa={cancelable:!0,bubbles:!1},gm={cancelable:!0,bubbles:!1},_a="foxFocusAfterTrapped",za="foxFocusAfterReleased",pm=Symbol("foxFocusTrap"),Ro=t.ref(),un=t.ref(0),Fo=t.ref(0);let fn=0;const ja=e=>{const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)n.push(l.currentNode);return n},ym=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ha=(e,n)=>{for(const l of e)if(!ym(l,n))return l},bm=e=>{const n=ja(e),l=Ha(n,e),o=Ha(n.reverse(),e);return[l,o]},wm=e=>e instanceof HTMLInputElement&&"select"in e,Ue=(e,n)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&wm(e)&&n&&e.select()}};function Ka(e,n){const l=[...e],o=e.indexOf(n);return o!==-1&&l.splice(o,1),l}const Sm=()=>{let e=[];return{push:o=>{const a=e[0];a&&o!==a&&a.pause(),e=Ka(e,o),e.unshift(o)},remove:o=>{e=Ka(e,o),e[0]?.resume?.()}}},vm=(e,n=!1)=>{const l=document.activeElement;for(const o of e)if(Ue(o,n),document.activeElement!==l)return},Ya=Sm(),Cm=()=>un.value>Fo.value,dn=()=>{Ro.value="pointer",un.value=window.performance.now()},Wa=()=>{Ro.value="keyboard",un.value=window.performance.now()},km=()=>(t.onMounted(()=>{fn===0&&(document.addEventListener("mousedown",dn),document.addEventListener("touchstart",dn),document.addEventListener("keydown",Wa)),fn++}),t.onBeforeUnmount(()=>{fn--,fn<=0&&(document.removeEventListener("mousedown",dn),document.removeEventListener("touchstart",dn),document.removeEventListener("keydown",Wa))}),{focusReason:Ro,lastUserFocusTimestamp:un,lastAutomatedFocusTimestamp:Fo}),mn=e=>new CustomEvent(hm,{...gm,detail:e}),{componentName:wh,create:$m,scope:Sh}=ne("focus-trap"),Tm=$m({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[_a,za,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:l}){const o=t.ref();let a,r;const{focusReason:i}=km();mm(y=>{oe(e.trapped)&&!s.paused&&l("release-requested",y)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=y=>{if(!e.loop&&!oe(e.trapped)||s.paused)return;const{key:C,altKey:h,ctrlKey:b,metaKey:u,currentTarget:A,shiftKey:B}=y,{loop:q}=e,P=C==="Tab"&&!h&&!b&&!u,R=document.activeElement;if(P&&R){const N=A,[v,D]=bm(N);if(v&&D){if(!B&&R===D){const T=mn({focusReason:i.value});l("focusout-prevented",T),T.defaultPrevented||(y.preventDefault(),q&&Ue(v,!0))}else if(B&&[v,N].includes(R)){const T=mn({focusReason:i.value});l("focusout-prevented",T),T.defaultPrevented||(y.preventDefault(),q&&Ue(D,!0))}}else if(R===N){const T=mn({focusReason:i.value});l("focusout-prevented",T),T.defaultPrevented||y.preventDefault()}}};t.provide(pm,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,y=>{y&&(o.value=y)},{immediate:!0}),t.watch([o],([y],[C])=>{y&&(y.addEventListener("keydown",c),y.addEventListener("focusin",m),y.addEventListener("focusout",g)),C&&(C.removeEventListener("keydown",c),C.removeEventListener("focusin",m),C.removeEventListener("focusout",g))});const f=y=>{l(_a,y)},d=y=>l(za,y),m=y=>{const C=t.unref(o);if(!C)return;const h=y.target,b=y.relatedTarget,u=h&&C.contains(h);oe(e.trapped)||b&&C.contains(b)||(a=b),u&&l("focusin",y),!s.paused&&oe(e.trapped)&&(u?r=h:Ue(r,!0))},g=y=>{const C=t.unref(o);if(!(s.paused||!C))if(!e.escape&&oe(e.trapped)){const h=y.relatedTarget;!Dn(h)&&!C.contains(h)&&setTimeout(()=>{if(!s.paused&&oe(e.trapped)){const b=mn({focusReason:i.value});l("focusout-prevented",b),b.defaultPrevented||Ue(r,!0)}},0)}else{const h=y.target;h&&C.contains(h)||l("focusout",y)}};async function V(){await t.nextTick();const y=t.unref(o);if(y){Ya.push(s);const C=y.contains(document.activeElement)?a:document.activeElement;if(a=C,!y.contains(C)){const b=new Event(Oo,qa);y.addEventListener(Oo,f),y.dispatchEvent(b),b.defaultPrevented||t.nextTick(()=>{let u=e.focusStartEl;Xo(u)||(Ue(u),document.activeElement!==u&&(u="first")),u==="first"&&vm(ja(y),!0),(document.activeElement===C||u==="container")&&Ue(y)})}}}function p(){const y=t.unref(o);if(y){y.removeEventListener(Oo,f);const C=new CustomEvent(Ao,{...qa,detail:{focusReason:i.value}});y.addEventListener(Ao,d),y.dispatchEvent(C),!C.defaultPrevented&&(i.value=="keyboard"||!Cm())&&Ue(a??document.body,!0),y.removeEventListener(Ao,f),Ya.remove(s)}}return t.onMounted(()=>{oe(e.trapped)&&V(),t.watch(()=>e.trapped,y=>{oe(y)?V():p()})}),t.onBeforeUnmount(()=>{oe(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:xm,create:Dm,scope:Ch}=ne("floating-window"),Em=Symbol.for("InnerPageScopeKey"),Nm=Symbol.for("PageWrapperKey"),Vm={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Im=Dm({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Tm},props:{...Vm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const l=xm,o=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,I=>{o.value=I});const r=t.computed(()=>o.value===!1?!1:!R.value),i=t.ref(e.left),s=t.ref(e.top),c=t.ref(e.right),f=t.ref(e.bottom),d=t.computed(()=>{const I=["fox-floating-window"];return e.customClass&&I.push(e.customClass),I}),m=t.computed(()=>{const I={};return tt(i.value)?I.left="auto":I.left=Ee(i.value),tt(s.value)?I.top="auto":I.top=Ee(s.value),tt(c.value)?I.right="auto":I.right=Ee(c.value),tt(f.value)?I.bottom="auto":I.bottom=Ee(f.value),tt(e.zIndex)||(I["z-index"]=Ee(e.zIndex)),tt(q.value)||(I.height=q.value),tt(P.value)||(I.width=P.value),I}),g=t.computed(()=>e.closeIcon??ye.Close),V=t.computed(()=>e.collapseIcon??ye.ArrowUp),p=t.computed(()=>e.collapseText??""),y=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ye.ArrowRight:e.expandIcon??ye.ArrowLeft),C=t.computed(()=>e.expandText??e.title??"展开"),h=t.computed(()=>({[`${l}__collapse-text`]:!0})),b=t.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),u=t.ref(),A=t.ref(null),B=t.ref(null),q=t.computed(()=>Ee(e.height)||""),P=t.computed(()=>Ee(e.width)||""),R=t.ref(oe(e.collapse)),N=(I,z=!0)=>{R.value!==I&&(R.value=I,I?U():J(),n("update:collapse",I))};t.watch(()=>e.collapse,I=>{N(I)});const v=()=>{D()},D=I=>{I=I??!R.value,N(I)};t.provide(Em,!0);const F={setCollapse:N,setFixedNavVisible:I=>{k.value=I}};t.provide(Nm,F);const T=()=>{typeof F.beforeClose=="function"?F.beforeClose(()=>{o.value=!1}):o.value=!1},S=t.ref(null),$=t.computed(()=>!e.fixedNavTeleport),L=t.computed(()=>{const I=["fox-floating-window__fixednav"];return e.expandClass&&I.push(e.expandClass),e.collapsePosition==="left"?I.push("is-left"):e.collapsePosition==="right"&&I.push("is-right"),I}),E=t.ref(""),_=t.computed(()=>{const I={};return E.value?I.top=E.value:e.collapseTop&&(I.top=e.collapseTop),I}),k=t.ref(R.value);let M=null;const j=()=>{typeof M=="function"&&(M(),M=null)},U=()=>{S.value&&S.value.classList.add("slide-in"),k.value=!0,M=()=>{S.value&&S.value.classList.remove("slide-in")}},J=()=>{S.value&&S.value.classList.add("slide-out"),M=()=>{S.value&&S.value.classList.remove("slide-out"),k.value=!1}},te=()=>{i.value=null,s.value=null,c.value=null,f.value=null},Z={x:0,y:0},ue=La(I=>{if(!u.value)return;const z=u.value;if(te(),e.origin==="left-top")i.value=z.offsetLeft,s.value=z.offsetTop,Z.x=i.value,Z.y=s.value;else if(e.origin==="left-bottom"){const Y=document.documentElement.clientHeight||document.body.clientHeight;i.value=z.offsetLeft,f.value=Y-(z.offsetTop+z.offsetHeight),Z.x=i.value,Z.y=f.value}else if(e.origin==="right-bottom"){const Y=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight;c.value=Y-(z.offsetLeft+z.offsetWidth),f.value=X-(z.offsetTop+z.offsetHeight),Z.x=c.value,Z.y=f.value}else{const Y=document.documentElement.clientWidth||document.body.clientWidth;c.value=Y-(z.offsetLeft+z.offsetWidth),s.value=z.offsetTop,Z.x=c.value,Z.y=s.value}},I=>{if(!u.value)return;const z=u.value;te(),e.origin==="left-top"?(i.value=Z.x+I.x,s.value=Z.y+I.y,z.style.left=Ee(i.value),z.style.top=Ee(s.value)):e.origin==="left-bottom"?(i.value=Z.x+I.x,f.value=Z.y-I.y,z.style.left=Ee(i.value),z.style.bottom=Ee(f.value)):e.origin==="right-bottom"?(c.value=Z.x-I.x,f.value=Z.y-I.y,z.style.right=Ee(c.value),z.style.bottom=Ee(f.value)):(c.value=Z.x-I.x,s.value=Z.y+I.y,z.style.right=Ee(c.value),z.style.top=Ee(s.value))}),O={x:0,y:0},H=La(I=>{S.value&&(O.x=S.value.offsetLeft,O.y=S.value.offsetTop)},I=>{if(!S.value)return;const z=O.y+I.y;E.value=`${z}px`}),W=()=>{if(u.value){const I=u.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=I}};return t.onMounted(()=>{if(e.draggable&&u.value){const I=[];A.value&&I.push(A.value),e.footerDraggable&&(W(),B.value&&I.push(B.value)),ue.open(I)}e.collapse===!0&&N(e.collapse,!1),S.value&&H.open(S.value)}),t.onBeforeUnmount(()=>{e.draggable&&A.value&&ue.close(),S.value&&H.close()}),{classes:d,styles:m,isShow:r,closeIcon:g,onClose:T,dialogRef:u,headerRef:A,onClickToggle:v,collapseIcon:V,collapseText:p,collapseTextClasses:h,collapseIconClasses:b,expandIcon:y,expandText:C,isShowFixedNav:k,fixedNavRef:S,fixedNavClasses:L,fixedNavStyles:_,onAnimationEnd:j,teleportDisabled:a,fixedNavTeleportDisabled:$}}}),Bm={ref:"headerRef",class:"fox-floating-window__header"},Om={class:"fox-floating-window__title"},Am={class:"fox-floating-window__tools"},Rm={class:"fox-floating-window__body"},Fm={class:"fox-floating-window__fixednav__text"};function Lm(e,n,l,o,a,r){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Bm,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Om,t.toDisplayString(e.title),1),t.createElementVNode("div",Am,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Rm,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Fm,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Lo=fe(Im,[["render",Lm]]);function Mm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return gl(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:kh,create:Pm,scope:$h}=ne("domain-provider"),Mo=Pm(Mm()),qm={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function _m(e,n){return{inheritAttrs:!1,props:qm,setup(l,{slots:o}){if(Je&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(g,V)=>{if(d===null){r.set(g,{visible:null,callback:V});return}a.has(g)&&d.unobserve(g),a.set(g,{visible:null,callback:V}),d.observe(g)},s=g=>{if(d===null){r.delete(g);return}a.has(g)&&(a.delete(g),d.unobserve(g))};let c=l.initialVisibleObserverSize;ti({acquire:()=>{const g=c>0;return c--,g},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let d=null;const m=(g,V,p)=>{d=new IntersectionObserver(y=>{for(let C of y){let h=!1;C.intersectionRatio>0&&(h=!0);const b=a.get(C.target);if(b)try{if(l.loadPolicy==="lazy"&&!h&&b.visible!==null)return;b.visible=h,b.callback(h)}catch(u){console.error(u)}}},{root:g,rootMargin:V,threshold:p}),r.forEach((y,C)=>{a.set(C,y),d?.observe(C)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([g,V])=>{if(V||!g||d)return;let p=null;typeof g=="string"?p=document.querySelector(g):p=g,p&&m(p,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:Th,create:zm,scope:xh}=ne("rolling-provider"),Po=zm(_m()),jm=[Rn,Mn,Pn,qn,jn,pe,Yn,Wn,Ct,Un,Qn,oo,ro,io,so,co,uo,mo,ho,go,po,cn,wo,So,vo,Co,ko,$o,To,xo,Vt,Qt,Do,Eo,No,$t,je,it,on,ln,Nt,Et,sn,Vo,Io,Dt,Lo,Mo,Po],Hm=new Ir(jm,[Ar],"4.0.0");Object.defineProperty(w,"FoxAffix",{enumerable:!0,get:()=>x.ElAffix}),Object.defineProperty(w,"FoxAlert",{enumerable:!0,get:()=>x.ElAlert}),Object.defineProperty(w,"FoxAside",{enumerable:!0,get:()=>x.ElAside}),Object.defineProperty(w,"FoxAutoResizer",{enumerable:!0,get:()=>x.ElAutoResizer}),Object.defineProperty(w,"FoxAutocomplete",{enumerable:!0,get:()=>x.ElAutocomplete}),Object.defineProperty(w,"FoxAvatar",{enumerable:!0,get:()=>x.ElAvatar}),Object.defineProperty(w,"FoxBacktop",{enumerable:!0,get:()=>x.ElBacktop}),Object.defineProperty(w,"FoxBadge",{enumerable:!0,get:()=>x.ElBadge}),Object.defineProperty(w,"FoxBreadcrumb",{enumerable:!0,get:()=>x.ElBreadcrumb}),Object.defineProperty(w,"FoxBreadcrumbItem",{enumerable:!0,get:()=>x.ElBreadcrumbItem}),Object.defineProperty(w,"FoxButton",{enumerable:!0,get:()=>x.ElButton}),Object.defineProperty(w,"FoxButtonGroup",{enumerable:!0,get:()=>x.ElButtonGroup}),Object.defineProperty(w,"FoxCalendar",{enumerable:!0,get:()=>x.ElCalendar}),Object.defineProperty(w,"FoxCard",{enumerable:!0,get:()=>x.ElCard}),Object.defineProperty(w,"FoxCarousel",{enumerable:!0,get:()=>x.ElCarousel}),Object.defineProperty(w,"FoxCarouselItem",{enumerable:!0,get:()=>x.ElCarouselItem}),Object.defineProperty(w,"FoxCascader",{enumerable:!0,get:()=>x.ElCascader}),Object.defineProperty(w,"FoxCascaderPanel",{enumerable:!0,get:()=>x.ElCascaderPanel}),Object.defineProperty(w,"FoxCheckTag",{enumerable:!0,get:()=>x.ElCheckTag}),Object.defineProperty(w,"FoxCheckbox",{enumerable:!0,get:()=>x.ElCheckbox}),Object.defineProperty(w,"FoxCheckboxButton",{enumerable:!0,get:()=>x.ElCheckboxButton}),Object.defineProperty(w,"FoxCheckboxGroup",{enumerable:!0,get:()=>x.ElCheckboxGroup}),Object.defineProperty(w,"FoxCol",{enumerable:!0,get:()=>x.ElCol}),Object.defineProperty(w,"FoxCollapse",{enumerable:!0,get:()=>x.ElCollapse}),Object.defineProperty(w,"FoxCollapseItem",{enumerable:!0,get:()=>x.ElCollapseItem}),Object.defineProperty(w,"FoxCollapseTransition",{enumerable:!0,get:()=>x.ElCollapseTransition}),Object.defineProperty(w,"FoxColorPicker",{enumerable:!0,get:()=>x.ElColorPicker}),Object.defineProperty(w,"FoxConfigProvider",{enumerable:!0,get:()=>x.ElConfigProvider}),Object.defineProperty(w,"FoxContainer",{enumerable:!0,get:()=>x.ElContainer}),Object.defineProperty(w,"FoxDescriptions",{enumerable:!0,get:()=>x.ElDescriptions}),Object.defineProperty(w,"FoxDescriptionsItem",{enumerable:!0,get:()=>x.ElDescriptionsItem}),Object.defineProperty(w,"FoxDialog",{enumerable:!0,get:()=>x.ElDialog}),Object.defineProperty(w,"FoxDivider",{enumerable:!0,get:()=>x.ElDivider}),Object.defineProperty(w,"FoxDrawer",{enumerable:!0,get:()=>x.ElDrawer}),Object.defineProperty(w,"FoxDropdown",{enumerable:!0,get:()=>x.ElDropdown}),Object.defineProperty(w,"FoxDropdownItem",{enumerable:!0,get:()=>x.ElDropdownItem}),Object.defineProperty(w,"FoxDropdownMenu",{enumerable:!0,get:()=>x.ElDropdownMenu}),Object.defineProperty(w,"FoxEmpty",{enumerable:!0,get:()=>x.ElEmpty}),Object.defineProperty(w,"FoxFooter",{enumerable:!0,get:()=>x.ElFooter}),Object.defineProperty(w,"FoxForm",{enumerable:!0,get:()=>x.ElForm}),Object.defineProperty(w,"FoxFormItem",{enumerable:!0,get:()=>x.ElFormItem}),Object.defineProperty(w,"FoxHeader",{enumerable:!0,get:()=>x.ElHeader}),Object.defineProperty(w,"FoxIcon",{enumerable:!0,get:()=>x.ElIcon}),Object.defineProperty(w,"FoxImage",{enumerable:!0,get:()=>x.ElImage}),Object.defineProperty(w,"FoxImageViewer",{enumerable:!0,get:()=>x.ElImageViewer}),Object.defineProperty(w,"FoxInput",{enumerable:!0,get:()=>x.ElInput}),Object.defineProperty(w,"FoxInputNumber",{enumerable:!0,get:()=>x.ElInputNumber}),Object.defineProperty(w,"FoxLink",{enumerable:!0,get:()=>x.ElLink}),Object.defineProperty(w,"FoxMain",{enumerable:!0,get:()=>x.ElMain}),Object.defineProperty(w,"FoxMenu",{enumerable:!0,get:()=>x.ElMenu}),Object.defineProperty(w,"FoxMenuItem",{enumerable:!0,get:()=>x.ElMenuItem}),Object.defineProperty(w,"FoxMenuItemGroup",{enumerable:!0,get:()=>x.ElMenuItemGroup}),Object.defineProperty(w,"FoxOption",{enumerable:!0,get:()=>x.ElOption}),Object.defineProperty(w,"FoxOptionGroup",{enumerable:!0,get:()=>x.ElOptionGroup}),Object.defineProperty(w,"FoxPageHeader",{enumerable:!0,get:()=>x.ElPageHeader}),Object.defineProperty(w,"FoxPagination",{enumerable:!0,get:()=>x.ElPagination}),Object.defineProperty(w,"FoxPopconfirm",{enumerable:!0,get:()=>x.ElPopconfirm}),Object.defineProperty(w,"FoxPopover",{enumerable:!0,get:()=>x.ElPopover}),Object.defineProperty(w,"FoxPopper",{enumerable:!0,get:()=>x.ElPopper}),Object.defineProperty(w,"FoxProgress",{enumerable:!0,get:()=>x.ElProgress}),Object.defineProperty(w,"FoxRadio",{enumerable:!0,get:()=>x.ElRadio}),Object.defineProperty(w,"FoxRadioButton",{enumerable:!0,get:()=>x.ElRadioButton}),Object.defineProperty(w,"FoxRadioGroup",{enumerable:!0,get:()=>x.ElRadioGroup}),Object.defineProperty(w,"FoxRate",{enumerable:!0,get:()=>x.ElRate}),Object.defineProperty(w,"FoxResult",{enumerable:!0,get:()=>x.ElResult}),Object.defineProperty(w,"FoxRow",{enumerable:!0,get:()=>x.ElRow}),Object.defineProperty(w,"FoxScrollbar",{enumerable:!0,get:()=>x.ElScrollbar}),Object.defineProperty(w,"FoxSelect",{enumerable:!0,get:()=>x.ElSelect}),Object.defineProperty(w,"FoxSelectV2",{enumerable:!0,get:()=>x.ElSelectV2}),Object.defineProperty(w,"FoxSkeleton",{enumerable:!0,get:()=>x.ElSkeleton}),Object.defineProperty(w,"FoxSkeletonItem",{enumerable:!0,get:()=>x.ElSkeletonItem}),Object.defineProperty(w,"FoxSlider",{enumerable:!0,get:()=>x.ElSlider}),Object.defineProperty(w,"FoxSpace",{enumerable:!0,get:()=>x.ElSpace}),Object.defineProperty(w,"FoxStep",{enumerable:!0,get:()=>x.ElStep}),Object.defineProperty(w,"FoxSteps",{enumerable:!0,get:()=>x.ElSteps}),Object.defineProperty(w,"FoxSubMenu",{enumerable:!0,get:()=>x.ElSubMenu}),Object.defineProperty(w,"FoxSwitch",{enumerable:!0,get:()=>x.ElSwitch}),Object.defineProperty(w,"FoxTabPane",{enumerable:!0,get:()=>x.ElTabPane}),Object.defineProperty(w,"FoxTable",{enumerable:!0,get:()=>x.ElTable}),Object.defineProperty(w,"FoxTableColumn",{enumerable:!0,get:()=>x.ElTableColumn}),Object.defineProperty(w,"FoxTableV2",{enumerable:!0,get:()=>x.ElTableV2}),Object.defineProperty(w,"FoxTabs",{enumerable:!0,get:()=>x.ElTabs}),Object.defineProperty(w,"FoxTag",{enumerable:!0,get:()=>x.ElTag}),Object.defineProperty(w,"FoxTimePicker",{enumerable:!0,get:()=>x.ElTimePicker}),Object.defineProperty(w,"FoxTimeSelect",{enumerable:!0,get:()=>x.ElTimeSelect}),Object.defineProperty(w,"FoxTimeline",{enumerable:!0,get:()=>x.ElTimeline}),Object.defineProperty(w,"FoxTimelineItem",{enumerable:!0,get:()=>x.ElTimelineItem}),Object.defineProperty(w,"FoxTooltip",{enumerable:!0,get:()=>x.ElTooltip}),Object.defineProperty(w,"FoxTransfer",{enumerable:!0,get:()=>x.ElTransfer}),Object.defineProperty(w,"FoxTree",{enumerable:!0,get:()=>x.ElTree}),Object.defineProperty(w,"FoxTreeSelect",{enumerable:!0,get:()=>x.ElTreeSelect}),Object.defineProperty(w,"FoxTreeV2",{enumerable:!0,get:()=>x.ElTreeV2}),Object.defineProperty(w,"FoxUpload",{enumerable:!0,get:()=>x.ElUpload}),w.AutocompleteItem=ho,w.Broadcast=En,w.BroadcastKey=we,w.CalendarItem=ro,w.CalendarPicker=ln,w.CascaderItem=mo,w.CascaderPicker=sn,w.CheckboxItem=vo,w.Content=qn,w.DataItemsKey=ot,w.DateItem=oo,w.DatePicker=on,w.DateUtils=ee,w.DialogItem=xo,w.Domain=zt,w.DomainKey=Ve,w.DomainProvider=Mo,w.ExtTabPane=Nt,w.ExtTabs=Et,w.FloatingWindow=Lo,w.FooterBar=Pn,w.FoxAutocompleteItem=ho,w.FoxCalendarItem=ro,w.FoxCalendarPicker=ln,w.FoxCascaderItem=mo,w.FoxCascaderPicker=sn,w.FoxCheckboxItem=vo,w.FoxContent=qn,w.FoxDateItem=oo,w.FoxDatePicker=on,w.FoxDialogItem=xo,w.FoxDomainProvider=Mo,w.FoxExtTabPane=Nt,w.FoxExtTabs=Et,w.FoxFloatingWindow=Lo,w.FoxFooterBar=Pn,w.FoxGroup=jn,w.FoxGroupSetting=To,w.FoxHeaderBar=Mn,w.FoxHintText=Ct,w.FoxIndicator=Do,w.FoxInputItem=Un,w.FoxInputNumberItem=uo,w.FoxItem=pe,w.FoxMapping=Vt,w.FoxMoneyItem=co,w.FoxMoreButton=Vo,w.FoxOverlay=$t,w.FoxPage=Rn,w.FoxPicker=it,w.FoxPopup=je,w.FoxPrice=Qt,w.FoxRadioItem=So,w.FoxRateItem=Co,w.FoxRollingProvider=Po,w.FoxRowItem=Wn,w.FoxSelectItem=Qn,w.FoxSlotItem=Yn,w.FoxSwitchItem=ko,w.FoxTableItem=wo,w.FoxTableMappingColumn=go,w.FoxTableRadioColumn=po,w.FoxTableSetting=cn,w.FoxText=Eo,w.FoxTimeItem=io,w.FoxTimeSelectItem=so,w.FoxToast=No,w.FoxTour=Io,w.FoxTreeSelectItem=$o,w.Foxsticky=Dt,w.Group=jn,w.GroupSetting=To,w.HeaderBar=Mn,w.HintText=Ct,w.Indicator=Do,w.InputItem=Un,w.InputNumberItem=uo,w.Item=pe,w.Mapping=Vt,w.MoneyItem=co,w.MoreButton=Vo,w.Overlay=$t,w.Page=Rn,w.Picker=it,w.Popup=je,w.Price=Qt,w.PriorityPolicy=We,w.RadioItem=So,w.RateItem=Co,w.RollingProvider=Po,w.RowItem=Wn,w.SelectItem=Qn,w.SlotItem=Yn,w.SwitchItem=ko,w.TableItem=wo,w.TableMappingColumn=go,w.TableRadioColumn=po,w.TableSetting=cn,w.Text=Eo,w.TimeItem=io,w.TimeSelectItem=so,w.Toast=No,w.Tour=Io,w.TreeSelectItem=$o,w.UniqueID=Vl,w.ValidateSchema=dl,w.ValidateSchemaKey=qe,w.cancelRaf=Xa,w.clearNonNumber=sr,w.clone=Tn,w.compareTo=Cn,w.createBroadcast=Pt,w.createValidateSchema=_t,w.debounce=wt,w.debounceRef=vr,w.decimalLength=al,w.default=Hm,w.defineBroadcast=dr,w.defineConfigDomain=gl,w.defineDataItem=yl,w.defineDomain=In,w.defineItem=Se,w.definePageState=bl,w.deleteGlobalValidator=pr,w.disabledProperty=xe,w.divide=vn,w.excludeProps=ve,w.extend=Xe,w.floatData=fr,w.getGlobalValidateCheckEvents=cl,w.getGlobalValidateResetEvents=fl,w.getPageContentAreaHeight=Ht,w.getPageContentAreaWidth=Kt,w.getPageFooterAreaHeight=vt,w.getPageHeaderAreaHeight=St,w.getRootDomain=lt,w.hasSymbol=Zo,w.includeProps=pt,w.indexOf=cr,w.installRules=pl,w.integerLength=ll,w.isArray=Za,w.isArrayLike=el,w.isBrowser=Je,w.isDate=Me,w.isESModule=or,w.isEmptyString=be,w.isEqual=Pe,w.isFunction=kn,w.isHidden=Mt,w.isInnerPage=$r,w.isMap=Qa,w.isNil=Dn,w.isNumberString=ol,w.isObject=Oe,w.isPlainObject=$n,w.isPromise=nr,w.isRegExp=nl,w.isSet=er,w.isString=Xo,w.isSubPage=Tr,w.isSymbol=tr,w.isWindow=Qo,w.lastIndexOf=ur,w.makeArray=ir,w.merge=tl,w.multiply=Yo,w.negate=Wo,w.nextTick=ar,w.numberFormat=Ft,w.objectToString=Jo,w.once=Cr,w.property=Ne,w.raf=Go,w.readonlyProperty=Te,w.setGlobalValidateCheckEvents=yr,w.setGlobalValidateHandler=hr,w.setGlobalValidateMessages=wr,w.setGlobalValidateResetEvents=br,w.setGlobalValidator=gr,w.sticky=Dt,w.throttle=hl,w.toBoolean=oe,w.toNumber=se,w.toPadding=Ae,w.toPx=ce,w.toPxDesc=Ce,w.toTypeString=Lt,w.toValue=re,w.tryTimes=Nn,w.typeOf=nt,w.unNumberFormat=Uo,w.updatePageState=Bn,w.useBroadcast=yt,w.useDomain=_e,w.useExpose=he,w.useInnerSize=Ln,w.usePageState=jt,w.usePosition=Dl,w.useRect=Qe,w.useSize=Fn,w.useTouch=Jn,w.valueLength=Be,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});