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

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(S,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):(S=typeof globalThis<"u"?globalThis:S||self,t(S.FoxUI={},S.Vue,S.FoxValidator,S.ElementPlus,S.ElementPlusIconsVue,S.FoxI18n))})(this,function(S,t,Ue,v,De,Ee){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon Sep 25 2023 11:07:24 GMT+0800 (中国标准时间)
3
- */const Et=window,Kl=typeof window<"u";function Yl(){return typeof Et<"u"?Et.requestAnimationFrame||Et.webkitRequestAnimationFrame||function(e){Et.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Wl(e){Kl?cancelAnimationFrame(e):clearTimeout(e)}const no=Yl();/*!
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();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function xt(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=ke(e),n=ke(n),[e,n]=sn(ke(e),ke(n)),a==1&&(o==1?e=rn(e):n=rn(n));let l=oo(e,n);return a?a==2?"-"+ke(l):e.length<l.length?ke(l.substring(1)):"-"+ke(rn(l)):ke(l)}function rn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return oo(n,r)}function ke(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 sn(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 oo(e,n){[e,n]=sn(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 fe=(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))(fe||{});function ft(e,n=0,a=fe.HALF_EVEN){if(a===fe.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],s=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)+s,c=ft(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,ao(l[1],r,o,a)?(o?"-":"")+cn(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");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&ao(i,s,o,a)&&(s=cn(s),s.length>n)?(o?"-":"")+cn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function ao(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===fe.DOWN||!a&&o===fe.FLOOR||a&&o===fe.CEILING)return!1;if(o===fe.UP||a&&o===fe.FLOOR||!a&&o===fe.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 fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function cn(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 un(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=mt(e),n=mt(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=mt(e.replace(".","")),n=mt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let s=n.length,i=0,c=[],f=s-1,u="";for(let m=0;m<s;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let g=0;for(let T=n.length-1;T>=f&&T>=0;T--)c[T]>-1&&c[T]<e.length&&(g+=parseInt(e[c[T]--])*parseInt(n[T]));g+=i,i=Math.floor(g/10),u=g%10+u,f--}return u=mt(Ul(u,r)),a==1&&(u="-"+u),u}function Ul(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 mt(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 dn(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=ke(n.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=ke(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=ke(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let u=e.length-f+l;e=ke(e.substring(0,u)+"."+e.substring(u))}else l==f&&(e=ke(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(c)>=parseInt(n);)c=xt(c,"-"+n),f++;i+=f,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+ke(ft(i,a-2))}function fn(e,n){return e=e.toString(),n=n.toString(),n=mn(n),xt(e,n)}function mn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function lo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ro(e),ro(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=fn(e,un(n,ft(dn(e,n),0,fe.FLOOR)));return a+o}function ro(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function io(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]=sn(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=fe;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=ke(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+ke(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 s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ae.getPrettyValue(this.value,n,a)}static round(n,a=0,o=fe.HALF_EVEN){if(n=ae.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return ft(n,a,o)}round(n=0,a=fe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ae(ft(this.value,n,a))}static floor(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.FLOOR)}static ceil(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.CEILING)}static add(n,a){return n=ae.validate(n),a=ae.validate(a),xt(n,a)}add(n){return new ae(xt(this.value,n.getValue()))}static subtract(n,a){return n=ae.validate(n),a=ae.validate(a),fn(n,a)}subtract(n){return new ae(fn(this.value,n.getValue()))}static multiply(n,a){return n=ae.validate(n),a=ae.validate(a),un(n,a)}multiply(n){return new ae(un(this.value,n.getValue()))}static divide(n,a,o){return n=ae.validate(n),a=ae.validate(a),dn(n,a,o)}divide(n,a){return new ae(dn(this.value,n.getValue(),a))}static modulus(n,a){return n=ae.validate(n),a=ae.validate(a),lo(n,a)}modulus(n){return new ae(lo(this.value,n.getValue()))}static compareTo(n,a){return n=ae.validate(n),a=ae.validate(a),io(n,a)}compareTo(n){return io(this.value,n.getValue())}static negate(n){return n=ae.validate(n),mn(n)}negate(){return new ae(mn(this.value))}}function so(e,n){return ae.multiply(`${e}`,`${n}`)}function hn(e,n,a=8){return ae.divide(`${e}`,`${n}`,a)}function gn(e,n){return e=`${e}`,n=`${n}`,ae.compareTo(e,n)}function co(e){return ae.negate(e)}function Nt(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+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="",g=i.split("").reverse();for(let T=0;T<g.length;T++)m+=g[T]+((T+1)%o==0&&T+1!=g.length?l:"");c.length==0?u=`${s}${m.split("").reverse().join("")}`:u=`${s}${m.split("").reverse().join("")}.${c}`}else c.length==0?u=`${s}${i}`:u=`${s}${i}.${c}`;return u}function uo(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const fo=no,Gl=Array.isArray,Xl=e=>Vt(e)==="[object Map]",Zl=e=>Vt(e)==="[object Set]",Le=e=>e instanceof Date,pn=e=>typeof e=="function",mo=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",Ql=e=>Ie(e)&&pn(e.then)&&pn(e.catch),ho=Object.prototype.toString,Vt=e=>ho.call(e),yn=e=>Vt(e)==="[object Object]",go=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function er(e){return e.__esModule||go&&e[Symbol.toStringTag]==="Module"}const tr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ge(...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 s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},n[s]=Ge(l,f,c)}else c!==void 0&&(n[s]=c)}}return n}function bn(e,n,a=!1){if(!a)Ge(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!yn(s))continue;r=bn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!yn(s))continue;r=bn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const Sn=tr?Promise.resolve():null;function nr(e,...n){Sn!==null?n&&n.length>0?Sn.then(()=>{e(n)}):Sn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ne(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 or={"[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 et(e){let a=Object.prototype.toString.call(e);return e==null?String(e):or[a]||"object"}function po(e){return e&&typeof e=="object"&&"setInterval"in e}function yo(e){return!e||e.offsetParent===null}function bo(e){let n=!!e&&"length"in e&&e.length,a=et(e);return a==="function"||po(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function So(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 ar(e,n=[]){let a=n;return e!=null&&(bo(Object(e))?So(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=et(e),o=et(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 s=0;s<l.length;s++){let i=l[s],c=e[i],f=n[i];if(!Me(c,f))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],s=n[l];if(!Me(r,s))return!1}return!0}return!1}const Xe=typeof window<"u";function wn(e){return e==null}function wo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Co(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function vo(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 ko(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 To(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 lr(e,n=!0,a=!0){n?e=To(e,".",/\./g):e=e.replace(/\./g,""),a?e=To(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function rr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function ir(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(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 ht(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Ce(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 sr=(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},ye=Symbol.for("BroadcastKey");class Cn{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="*"):wo(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 s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Bt(e,n,a,o){const l=new Cn(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function cr(e,n,a){const o=a;if(o[ye])return o[ye];const l=t.inject(ye,null),r=new Cn(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ye]=r,t.provide(ye,r),t.onUnmounted(()=>{r.destroy(),o[ye]=void 0}),r}function gt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ye]??t.inject(ye,null):t.inject(ye,null)}const Ze=e=>e.default??e;class ur{error(n,a){const o=a,l=gt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=gt(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=gt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let $o=new ur;function dr(e){$o=e}function fr(e,n){Ze(Ue).setValidator(e,n)}function mr(e){Ze(Ue).deleteValidator(e)}let Do=["blur","clear"];function hr(e){Do=e}function Eo(){return Do}let xo=["focus","change"];function gr(e){xo=e}function No(){return xo}function pr(e){Ze(Ue).messages(e)}function pt(...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 It(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 Pe=Symbol("ValidateSchemaKey");class Vo{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=It(pt(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=It(o);const l=pt(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=$o;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?Ze(Ue).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?Ze(Ue).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return Ze(Ue).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=pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=It(n):this.rules=It([n]);const o=pt(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=pt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=Ze(Ue),c=new i(l),f=this.proxy??s;return c.validate(s,{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 At(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 Vo(n,a,e)}const Bo=Symbol.for("EventEmitterKey");class yr{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 yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Io(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function br(e,n){const a=yt((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 vn(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ve=Symbol("DomainKey"),tt=Symbol("DataItemsKey");class Ot{_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 wr=new Ot;function nt(){return wr}function qe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const kn=Symbol("OriginalDateKey");function Tn(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ve,null);s===null&&(s=nt());const i=e||n.prop||n.name,c=new Ot(i);c.parent=s;const f=y=>{r[kn]||g(y),c.set("modelValue",y)},u=()=>c.getForSelf("modelValue")??null,m=()=>r[kn]??null,g=y=>{const w={};Ge(!0,w,t.toRaw(y)),r[kn]=w};t.isReactive(n)?t.watchEffect(()=>{c.merge(n,a)}):c.merge(n,a),n.modelValue&&g(n.modelValue),r[Ve]=c,t.provide(Ve,c);let T=null,b=null;if(l!==null){const y=t.inject(ye,null);T=Bt(r,y,i,o),c.broadcast=T,r[ye]=T,t.provide(ye,T),r.broadcast=(h,p,...d)=>Reflect.apply(T.emit,T,[h,p,...d]);const w=t.inject(Pe,null);b=At(r,w,{componentName:""}),c.validateSchema=b,r[Pe]=b,t.provide(Pe,b),r[tt]=new Map,r.validate=(h=!0)=>{const p=[];let d=null;const B={deep:!1};if(h===!0)d={name:"*"};else if(Array.isArray(h)&&h.length>0){const I=h;d={name:A=>A?I.indexOf(A)!==-1:!1}}else if(h!=null&&typeof h=="object"){const I=h;if(B.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const A=I.include;d={name:O=>O?A.indexOf(O)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const A=I.exclude;d={name:O=>O?A.indexOf(O)===-1:!1}}else d={name:"*"}}if(d){const I=T?.emitToChildren(d,"validate",B);I&&Reflect.apply([].push,p,I)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(I=>{let A=[];return I.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(A=[...A,...O.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,p=!0)=>{if(p){const d=Reflect.ownKeys(h),B=[...d],I={name:A=>{const O=d.includes(A);if(O){const V=B.findIndex(E=>A===E);V!==-1&&B.splice(V,1)}return O}};T?.emitToChildren(I,"setNameValidateRules",h,!1),B.length>0&&B.forEach(A=>{let O=String(A);const E=Ro(c,O,{componentName:"",fieldName:O,pureDataValidate:!0},T,b);r[tt].set(O,E);const D=h[O];D&&E.validateSchema.setRule(D)})}},r.clearValidate=(h=!0)=>{let p=null;if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const d=h;p={name:B=>B?d.indexOf(B)!==-1:!1}}else if(h!=null&&typeof h=="object"){const d=h;if(Array.isArray(d.include)&&d.include.length>0){const B=d.include;p={name:I=>I?B.indexOf(I)!==-1:!1}}else if(Array.isArray(d.exclude)&&d.exclude.length>0){const B=d.exclude;p={name:I=>I?B.indexOf(I)===-1:!1}}else p={name:"*"}}p&&T?.emitToChildren(p,"clearValidate",!1)},r.resetFields=h=>{const p=u();if(!p)return;const d={};if(Ge(!0,d,m()??{}),Array.isArray(h))h.forEach(B=>{p[B]=d[B]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(I=>{p[I]=d[I]});else if(h&&Array.isArray(h.exclude)){let B=h.exclude??[];Reflect.ownKeys(d).forEach(I=>{B.includes(I)||(p[I]=d[I])})}else Object.assign(p,d);r.clearValidate(h)},r.setModelValue=(h,p)=>{!p||p===i?f(h):T?.emitToChildren({name:p},"setModelValue",h)},r.getModelValue=()=>u()}return t.onUnmounted(()=>{c.destroy(),r[Ve]=void 0,r[tt]&&(r[tt].clear(),r[tt]=void 0),T!==null&&(T.destroy(),r[ye]=void 0),b!==null&&(b.destroy(),r[Pe]=void 0)}),c}function Ao(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ve,null);r===null&&(r=nt());const s=e||n.prop||n.name,i=new Ot(s);return i.parent=r,t.isReactive(n)?t.watchEffect(()=>{i.merge(n,a)}):i.merge(n,a),l[Ve]=i,t.provide(Ve,i),t.onUnmounted(()=>{i.destroy(),l[Ve]=void 0}),i}function Oo(e,n,a){const l=qe(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{n.setRule(s)}))}function be(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ye,null),i=Bt(l,s,r,a);l[ye]=i,t.provide(ye,i),l.broadcast=(b,y,...w)=>Reflect.apply(i.emit,i,[b,y,...w]);const c=t.inject(Pe,null);e.fieldName=e.fieldName??r;const f=At(l,c,e);l[Pe]=f,t.provide(Pe,f),Oo(l,f,r),l.validate=(b=null)=>{const y=[];let w=!1,h=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)h=!0,w=!0;else if(b&&typeof b=="object"){const p=b;p.ignoreHidden===!0&&yo(l.$el)?h=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),h=!0),w=p.deep??!1}else typeof b=="boolean"&&(w=b),h=!0;if(h){const p=f?.validate();y.push(p)}if(w){let p=null;const d={deep:!1};if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const B=b;p={name:I=>I?B.indexOf(I)!==-1:!1}}else if(b!=null&&typeof b=="object"){const B=b;if(d.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const I=B.include;p={name:A=>A?I.indexOf(A)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const I=B.exclude;p={name:A=>A?I.indexOf(A)===-1:!1}}else p={name:"*"}}if(p){const B=i.emitToChildren(p,"validate",d);Reflect.apply([].push,y,B)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(p=>{let d=[];return p.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(d=[...d,...B.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>f?.setRule(b),l.setNameValidateRules=(b,y=!1)=>{const w=b[r];if(w&&f?.setRule(w),y){const h={name:p=>Reflect.ownKeys(b).includes(p)};i.emitToChildren(h,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&f?.clear();let y=null;if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const w=b;y={name:h=>h?w.indexOf(h)!==-1:!1}}else if(b!=null&&typeof b=="object"){const w=b;if(Array.isArray(w.include)&&w.include.length>0){const h=w.include;y={name:p=>p?h.indexOf(p)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const h=w.exclude;y={name:p=>p?h.indexOf(p)===-1:!1}}else y={name:"*"}}y&&i.emitToChildren(y,"clearValidate",!1)};const u=new yr(l);l[Bo]=u;const m=yt((b="validate")=>{b==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Eo()).forEach(b=>{u.on(b,y=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:No()).forEach(b=>{u.on(b,y=>{m("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ye]=void 0,f.destroy(),l[Pe]=void 0,u.destroy(),l[Bo]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(b,...y)=>{Reflect.apply(u.emit,u,[b,...y])},onEvent:(b,y)=>{Reflect.apply(u.on,u,[y])},offEvent:(b,y)=>{Reflect.apply(u.off,u,[y])}}}function Ro(e,n,a,o,l){const r={},s=n??"",i={getValue(){const u=e.getForSelf("modelValue");return u?u[s]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,s):!1}};a.fieldName=s,a.validateHandler={getValue(u){return i.getValue()}};const c=At({},l,a);r.validate=(u=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const m=[];let g=!1,T=!1;if(Array.isArray(u)&&u.indexOf(s)!==-1)T=!0,g=!0;else if(u&&typeof u=="object"){const b=u;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),T=!0,g=b.deep??!1}else typeof u=="boolean"&&(g=u),T=!0;if(T){const b=c?.validate();m.push(b)}if(g){let b=null;const y={deep:!1};if(u===!0)b={name:"*"};else if(Array.isArray(u)&&u.length>0){const w=u;b={name:h=>h?w.indexOf(h)!==-1:!1}}else if(u!=null&&typeof u=="object"){const w=u;if(Array.isArray(w.include)&&w.include.length>0){const h=w.include;b={name:p=>p?h.indexOf(p)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const h=w.exclude;b={name:p=>p?h.indexOf(p)===-1:!1}}else b={name:"*"}}if(b){const w=f.emitToChildren(b,"validate",y);Reflect.apply([].push,m,w)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(b=>{let y=[];return b.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(y=[...y,...w.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=u=>c?.setRule(u),r.setNameValidateRules=u=>{const m=u[s];m&&c?.setRule(m)};const f=Bt(null,o,s,r);return{broadcast:f,validateSchema:c}}const Se=(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 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(Xe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}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 je="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 $n(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight),e.headerPadding=Ae(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight),e.footerPadding=Ae(a.footerPadding??n.footerPadding),e.contentPadding=Ae(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function Fo(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=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;$n(o,r,n,!0,s,i,c,f);const u=t.reactive(o),m=e.getForParent(je);m&&(o.height=Ft(e,m),o.width=Lt(e,m),t.watch([()=>m.height,()=>m.width,()=>m.contentPadding,()=>m.headerMounted,()=>m.footerMounted],()=>{u.height=Ft(e,m),u.width=Lt(e,m)}));const g=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,b,y=-1,w=-1,h=0,p=0])=>{$n(u,b,n,g,y,w,h,p)}),e.set(je,u),u}function Rt(e){return e.get(je)}function bt(e,n){if(n=n??e.get(je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function St(e,n){if(n=n??e.get(je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Ft(e,n){if(n=n??e.get(je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=bt(e,n),o=St(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Lt(e,n){return n=n??e.get(je),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 vr(e){return!!e.getForParent(je)}var He=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(He||{});function Dn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,a=1,o){const l=qe();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Dn(c,o))return c}const s=e.value;return Dn(s,o)?s:null}):t.computed(()=>{const r=e.value;return Dn(r,o)?r:l?.get(n)})}function Te(e){return Ne(e,"readonly",0,function(a){return ne(a)})}function $e(e){return Ne(e,"disabled",0,function(a){return ne(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,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Lo=new Map,Mt=new Map;let En=null;function kr(e){En=e}function Mo(e,n,a){if(a){let o=Mt.get(a);o||(o=new Map,Mt.set(a,o)),o.set(e,n)}else Lo.set(e,n)}function Oe(e,n,a){!a&&En&&(a=En(e)??void 0);let o=null;if(a){let l=Mt.get(a);l&&(o=l.get(n))}return o||(o=Lo.get(n)),o}function Tr(e,n){for(let a in e){const o=e[a];Mo(a,o,n)}}function $r(e){Mt.delete(e)}function Dr(){return{top:0,left:0,bottom:0,right:0}}function Er(e=0,n=0){if(Xe){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(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 xr{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=nt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Io(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,this.initPageLayout(i,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=Ge({},Dr(),n.safeAreaInset),s=Er(o,l),i=Ge({},s.pageLayout,n.pageLayout);a=a??nt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){kr(n)}setAPI(n,a,o){Mo(n,a,o)}getAPI(n,a,o){return Oe(n,a,o)}batchSetAPI(n,a){Tr(n,a)}clearScopeAPI(n){$r(n)}getRootDomain(){return nt()}}const Nr=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],Vr=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Br=e=>{Nr.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),Vr.forEach(n=>{e.use(n)})};function ee(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 he={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}},ve={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}},Po={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}},qo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{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},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}},zo=[];for(const e in qo)zo.push(e);function me(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const Ir=Symbol.for("InnerPageScopeKey"),Ar=(e,n)=>({inheritAttrs:!0,props:{...he,...Po,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(a,o){const l=Tn(a.name,a);if(l){const f=Fo(l,a);me({getPageContentHeight:()=>Ft(l,f),getPageContentWidth:()=>Lt(l,f),getPageHeaderHeight:()=>bt(l,f),getPageFooterHeight:()=>St(l,f)});const u=t.inject(Ir,!1);f&&u&&(f.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=f=>{const u=i?.proxy;u&&typeof u.setNameValidateRules=="function"&&u.setNameValidateRules(f,!0)};return t.watch(()=>a.rules,(f,u)=>{if(!f&&!u)return;const m=t.toRaw(u),g=t.toRaw(f),T=g?Reflect.ownKeys(g):[];(m?Reflect.ownKeys(m):[]).forEach(y=>{T.includes(y)||(g[y]=[])}),c(g)},{deep:!0}),t.onMounted(()=>{if(a.rules){const f=t.toRaw(a.rules);c(f)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:s}}}),{componentName:Or,create:Rr,scope:Wm}=ee("page"),Fr=Rr(Ar(Or));function Lr(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 ue=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},_o=ue(Fr,[["render",Lr]]),Mr=["aria-labelledby"],Pr=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),qr=[Pr],zr=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=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},qr,14,Mr))}}),_r=["aria-labelledby"],jr=t.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Hr=[jr],Kr=t.defineComponent({__name:"Left",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=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hr,14,_r))}}),Yr=["aria-labelledby"],Wr=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),Ur=[Wr],Gr=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=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},Ur,14,Yr))}}),Xr=["aria-labelledby"],Zr=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),Jr=[Zr],Qr=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=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Jr,14,Xr))}}),ei=["aria-labelledby"],ti=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),ni=[ti],oi=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=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ni,14,ei))}});function xn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Nn(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")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const ai=(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 s=qe(),i=s?Rt(s):null;i&&(i.headerMounted=!0);const c=t.computed(()=>{const $=e;return{[$]:!0,[`${$}--border`]:l.border,[`${$}--fixed`]:l.fixed,[`${$}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?ce(l.height):null,u=t.computed(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const x=Ae(l.padding??i.headerPadding);return Object.assign($,x),f&&(i.headerHeight=f),$.height=i.headerHeight,$.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,$.safeAreaTop>0&&($.top=$.safeAreaTop+(x.top??0),$.height=$.height+$.safeAreaTop),$}if(f&&($.height=f),l.padding){const x=Ae(l.padding);Object.assign($,x)}return $}),m=t.ref(null),g=()=>{if(i&&m.value&&m.value.offsetParent!==null){if(!o){const $=xn(m.value);i.headerAllHeight=$.height}return i.headerMounted=!0,!0}return!1};t.onMounted(()=>{i&&vn(g,50,5,50,!0)}),t.onUnmounted(()=>{i&&(i.headerMounted=!1)});const T=t.computed(()=>{const $={};return u.value.height!==null&&u.value.height!==void 0&&($.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&($.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&($.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&($.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&($.paddingBottom=`${u.value.bottom}px`),$}),b=t.computed(()=>{const $={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&($.top=`${u.value.safeAreaTop}px`),$}),y=t.computed(()=>{const $={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&($.top=`${u.value.safeAreaTop}px`),$}),w=t.computed(()=>!!l.leftShow),h=t.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),p=t.computed(()=>l.titleShow?l.title||l.titleIcon||r.slots.titleIcon||r.slots.default:!1),d=t.computed(()=>l.rightShow?l.rightText||l.rightIcon||r.slots.rightIcon||r.slots.right:!1),B=t.computed(()=>l.leftIcon),I=t.computed(()=>B.value||r.slots.leftIcon),A=t.computed(()=>l.titleIcon),O=t.computed(()=>l.titleIcon||r.slots.titleIcon),V=t.computed(()=>l.rightIcon),E=t.computed(()=>l.rightIcon||r.slots.rightIcon);function D(){r.emit("back")}function q(){r.emit("click-title")}function F(){r.emit("click-right")}function C(){r.emit("click-right-text")}return{headerBarRef:m,classes:c,styles:T,mHeaderShow:h,leftStyles:b,rightStyles:y,mLeftShow:w,mTitleShow:p,mRightShow:d,mLeftIcon:B,hasLeftIcon:I,mTitleIcon:A,hasTitleIcon:O,mRightIcon:V,hasRightIcon:E,handleLeft:D,handleCenter:q,handleRight:F,handleRightText:C}}}),{componentName:li,create:ri,scope:ii}=ee("header-bar"),si=ri(ai(li,ii,Kr)),ci={key:1,class:"fox-header-bar__title"},ui={key:0,class:"title-text"};function di(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]=(...s)=>e.handleLeft&&e.handleLeft(...s)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",ci,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",ui,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),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]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s)),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 jo=ue(si,[["render",di]]);function fi(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=qe(),s=r?Rt(r):null,i=t.computed(()=>{const T=e;return{[T]:!0,[`${T}--${o.align}`]:!0,[`${T}--border`]:o.border,[`${T}--fixed`]:o.fixed,[`${T}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ce(o.height):null,f=t.computed(()=>{const T={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const b=Ae(o.padding??s.footerPadding);return Object.assign(T,b),c&&(s.footerHeight=c),T.height=s.footerHeight,T.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,T.safeAreaBottom>0&&(T.height=T.height+T.safeAreaBottom,T.bottom=T.safeAreaBottom+(b.bottom??0)),T}if(c&&(T.height=c),o.padding){const b=Ae(o.padding);Object.assign(T,b)}return T}),u=t.ref(null),m=()=>{if(s&&u.value&&u.value.offsetParent!==null){if(!a){const T=xn(u.value);s.footerAllHeight=T.height}return s.footerMounted=!0,!0}return!1};t.onMounted(()=>{s&&vn(m,50,5,50,!0)}),t.onUnmounted(()=>{s&&(s.footerMounted=!1)});const g=t.computed(()=>{const T={};return f.value.height!==null&&f.value.height!==void 0&&(T.height=Se(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(T.paddingTop=Se(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(T.paddingLeft=Se(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(T.paddingRight=Se(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(T.paddingBottom=Se(f.value.bottom)),T});return{footerBarRef:u,classes:i,styles:g}}}}const{componentName:mi,create:hi,scope:Um}=ee("footer-bar"),gi=hi(fi(mi));function pi(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 Ho=ue(gi,[["render",pi]]);function yi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=qe(),l=t.computed(()=>({[e]:!0})),r=o?Rt(o):null,s=t.computed(()=>{const f={};if(o&&r){if(a.padding){const T=Ae(a.padding);Object.assign(r.contentPadding,T)}const u=bt(o,r),m=St(o,r);let g="";if(r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,r.contentPadding,f.height=g,r.contentPadding.top||u>0){const T=(r&&r.contentPadding&&r.contentPadding.top)??0;f.paddingTop=`${u+T}px`}if(r.contentPadding.bottom||m>0){const T=(r&&r.contentPadding&&r.contentPadding.bottom)??0;f.paddingBottom=`${m+T}px`}return r.contentPadding.left&&(f.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(f.paddingRight=`${r.contentPadding.right}px`),f}if(a.padding){const u=Ae(a.padding);u.left&&(f.paddingLeft=`${u.left}px`),u.top&&(f.paddingTop=`${u.top}px`),u.right&&(f.paddingRight=`${u.right}px`),u.bottom&&(f.paddingBottom=`${u.bottom}px`)}return f}),i=t.ref(null),c=()=>{if(r&&i.value){const f=Nn(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>bt(o),()=>St(o)],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:bi,create:Si,scope:Gm}=ee("content"),wi=Si(yi(bi));function Ci(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 Ko=ue(wi,[["render",Ci]]),ot="GroupStateKey",Yo=Symbol.for("GroupScopeKey");function Pt(){return t.inject(Yo,!1)}function qt(e=!0){t.provide(Yo,e)}function vi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];wn(l)||(e[o]=l)})}function ki(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};vi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ot,r),r}function Vn(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(ot);if(!c)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const u=ce(r),m=ce(s);i||(i=f.type??"grid");const g=()=>{const T=n===""||n===-1,b=ce(n);let y=se(a);const w=ce(o);if(!T){let d=(b-(y-1)*w)/y;for(;m!==-1&&d>m;)y++,d=(b-(y-1)*w)/y;for(;u!==-1&&y>1&&d<u;)y--,d=(b-(y-1)*w)/y}let h=!1;const p=c.layout;p.value.width=n,p.value.column!==y&&(p.value.column=y,h=!0),p.value.gutter!==w&&(p.value.gutter=w,h=!0),p.value.type!==i&&(p.value.type=i,h=!0),h&&t.triggerRef(p)};if(l)g();else{const T=++c.passport;setTimeout(()=>{T===c.passport&&g()},50)}}function zt(e,n=!1){let a;return n?a=e.getForParent(ot):a=e.get(ot),a.layout}function _t(e,n=!1){let a;return n?a=e.getForParent(ot):a=e.get(ot),a.order}function Wo(e,n=1){if(n==="stretch")return-1;const a=se(n);return a===-1?100:100*a/e}function jt(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=Wo(n.column,a),s>0&&(r.width=`${s}%`);const i=Wo(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Ht(e,n,a=1,o=0){if(a==="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 l=se(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=se(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Uo=Symbol("RollingStateKey");function Ti(e){t.provide(Uo,e)}function $i(){return t.inject(Uo,null)}function Bn(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 Di(e){let n=Bn(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=Bn(a),document.body.removeChild(a)}return n}function Ei(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const xi={...he,...Po,...qo};function Ni(e,n,a){return{props:xi,emits:["update:collapse"],setup(o,l){const r=Tn(o.name,o,zo),s=ki(r,{type:o.type}),i=Pt();qt(!0);const c=o.rollingDisplay?$i():null,f=t.ref(null),u=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>i&&r?zt(r,!0).value:null),g=t.getCurrentInstance(),T=L=>{const W=g?.proxy;W&&typeof W.setNameValidateRules=="function"&&W.setNameValidateRules(L,!0)};t.watch(()=>o.rules,(L,W)=>{if(!L&&!W)return;const G=t.toRaw(W),H=t.toRaw(L),K=H?Reflect.ownKeys(H):[];(G?Reflect.ownKeys(G):[]).forEach(J=>{K.includes(J)||(H[J]=[])}),T(H)},{deep:!0});const b=e,y=t.computed(()=>{const L={};L.height=P.value;const W=i?_t(r,!0):null;if(m.value&&W){if(m.value.type==="grid"){const G=Ht(W,m.value,o.span,o.offset);Object.assign(L,G)}else if(m.value.type==="flow"){const G=jt(W,m.value,o.span,o.offset,o.width);Object.assign(L,G)}}else if(o.width){const G=Se(o.width);L.width=G}return L}),w=t.computed(()=>{const L=s.layout.value.type;return L==="grid"||L==="flow"?{[`${b}--${L}`]:!0,[`${b}--${L}-justify-${o.justify}`]:!0,[`${b}--${L}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${L}`]:!0,[`${b}--gutter`]:!0}}),h=t.computed(()=>{if(s.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const G=Ei(E.value,s.layout.value.column,s.layout.value.gutter);W=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":W}}}),p=t.toRef(o,"title"),d=t.toRef(o,"gutter"),B=t.toRef(o,"column"),I=t.computed(()=>i||u.value?!0:ne(o.isWrap)),A=[],O=L=>{A.push(L)},V=()=>{let L=A.length;A.splice(0,L)},E=t.ref(-1),D=L=>{const W=Nn(L).width;W>0&&W!==E.value&&(E.value=W)};Vn(r,E.value,B.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([E,B,d],([L,W,G])=>{s.order.index=0,Vn(r,L,W,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const q=t.computed(()=>N.value?o.expandText??"":o.collapseText??""),F=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),C=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),$=t.ref(),x=t.ref(),P=t.computed(()=>z.value||Se(o.height)||""),N=t.ref(!1),z=t.ref(""),k=t.ref(!1);let R=-1;const j=(L,W=!0)=>{const G=$.value;if(G&&N.value!==L){if(R=R===-1?Di(G):R,k.value=!0,W)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",L||(z.value="",k.value=!1)},L){let H=0;o.collapseHeight?H=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(H=x.value.offsetHeight),z.value=`${R}px`,t.nextTick(()=>{z.value=`${H}px`})}else z.value=`${R}px`;else if(L){let H=0;o.collapseHeight?H=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(H=x.value.offsetHeight),z.value=`${H}px`}else k.value=!1,z.value=`${R}px`;N.value=L,l.emit("update:collapse",L)}};t.watch(()=>o.collapse,L=>{j(L)});const Y=()=>{Z()},Z=L=>{L=L??!N.value,j(L)};me({toggleCollapse:Z,doLayout:()=>{A[0]&&(D(A[0]),Vn(r,E.value,B.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let oe=null,re=!0;const X=L=>{if(o.rules){const W=t.toRaw(o.rules);T(W)}if(Xe&&(L&&j(ne(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const W=A[0];D(W),window.ResizeObserver&&(oe=new window.ResizeObserver(()=>{D(W)}),oe.observe(W))}},le=()=>{oe?.disconnect(),oe=null},_=!u.value||c?.acquire();_&&(f.value=u.value?!0:null),t.onMounted(()=>{if(_&&(X(re),re=!1),u.value&&c){let L=null,W=c.initialHeight;c.observe($.value,G=>{if(G!==f.value)if(G)f.value=!0,N.value||(z.value=""),L=setTimeout(()=>{L=null,f.value!==!1&&(X(re),re=!1)},100);else{if(L!==null&&clearTimeout(L),f.value=!1,!N.value)if(re)z.value=c.initialHeight;else{let H=Bn($.value);H<=0?z.value=W:(z.value=`${H}px`,W=z.value)}re||le()}})}}),t.onUnmounted(()=>{oe?.disconnect(),c&&c.unobserve($.value)});const M=(L,W,G,H)=>{const K={...w.value};return W===0&&(K[`${b}__first`]=!0),G>=H-1&&(K[`${b}__last`]=!0),t.h("div",{ref:O,key:`${W}`,class:K,style:h.value},L)};return()=>{if(u.value&&f.value!==!0){const K=o.tag||"div";return t.h(K,{ref:$,prop:o.name,class:{[`${b}`]:!0,"is-collapse":k.value},style:y.value},[])}s.order.index=0;const L=[];let W=0;if(l.slots.header){const K={key:`${W++}`,ref:x,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},U=t.h("div",K,[l.slots.header()]);L.push(U)}else{const K=[];if(p.value){if(o.showMark){const J={class:{[`${b}__header-mark`]:!0}};o.markColor&&(J.style={background:o.markColor});const de=t.h("div",J);K.push(de)}const U=t.h("div",{class:{[`${b}__header-title`]:!0}},[p.value]);K.push(U)}if(l.slots.toolbar&&K.push(l.slots.toolbar()),o.showCollapse){const U=[];if(q.value){const ge={class:F.value},dt=t.h("span",ge,[q.value]);U.push(dt)}const J={class:C.value},de=a(o.collapseIcon,J);if(de&&U.push(de),U.length>0){const ge=t.h("div",{class:{[`${b}__header-collapse`]:!0},onClick:Y},U);K.push(ge)}}if(K.length>0){const U={key:`${W++}`,ref:x,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},J=t.h("div",U,K);L.push(J)}}V();const G=l.slots.default?l.slots.default():[],H=s.layout.value.type;if(H==="grid"){const K=M(G,W++,0,G.length);L.push(K)}else if(H==="flow"){const K=M(G,W++,0,G.length);L.push(K)}else for(let K=0;K<G.length;K++){const U=G[K],J=M([U],W++,K,G.length);L.push(J)}if(I.value){const K=o.tag||"div";return t.h(K,{ref:$,prop:o.name,class:{[`${b}`]:!0,"is-collapse":k.value},style:y.value},[L])}else return L}}}}const{componentName:Vi,create:Bi,scope:Ii}=ee("group"),Go=Bi(Ni(Vi,Ii,(e,n)=>(e=e??De.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function Ai(e){return e===window}const Oi=/matrix\((.+)\)/,Xo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Ai(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,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const u=Oi.exec(f);if(u){let g=u[1].split(/\s*,\s*/);g.length==6&&(i+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};function Ri(e){return e===window}const Ke=e=>{const n=t.unref(e);if(Ri(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 Fi{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 Li{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 Fi,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 Zo=new Li,Jo={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:Mi,create:Pi}=ee("price"),qi=Pi({props:{...Jo},setup(e){const n=t.computed(()=>({[Mi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Be(e.price)==0?"":Nt(e.price,e.decimalLength,!0,se(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),zi=["innerHTML"],_i=["innerHTML"];function ji(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,zi)):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,_i)):t.createCommentVNode("",!0)],2)}const In=ue(qi,[["render",ji]]),{componentName:Kt,create:Hi}=ee("hint-text"),Ki=Hi({components:{Price:In},props:{...Jo,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),s=t.ref({x:0,y:0}),i=t.ref({x:0,y:0}),c=t.ref(0),f=t.ref(0),u=t.ref(e.placement),m=t.computed(()=>({[Kt]:!0})),g=t.ref(null),T=(V,E,D=10)=>{if(!Xe||E===!1||!V)return;r.value=!0;const q=Ke(e.reference);c.value=q.width,f.value=q.height,setTimeout(()=>{if(!g.value||!e.reference||e.reference.offsetParent===null)return;const F=Xo(e.reference),C=document.documentElement.clientWidth||document.body.clientWidth,$=g.value.offsetWidth,x=g.value.offsetHeight;F.y-x>=0?(u.value="top",s.value.y=F.y-x-10-4,i.value.y=x):(u.value="bottom",s.value.y=F.y+f.value+10,i.value.y=-10);const P=F.x+$-C;P<0?(s.value.x=F.x,i.value.x=20):(s.value.x=F.x-P,i.value.x=P+20),r.value=!1},D)},b=yt(()=>{T(e.message,e.visible)},10),y=t.computed(()=>e.visible&&w.value),w=t.ref(!0),h=yt(V=>{const E=V[0];E&&(w.value=E.isIntersecting)},10),p=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([V,E])=>{T(V,E)}),t.onMounted(()=>{T(e.message,e.visible),Zo.watch(e.reference,b),p.observe(e.reference)}),t.onBeforeMount(()=>{Zo.unwatch(e.reference,b),p.unobserve(e.reference),p.disconnect()});const d=t.computed(()=>{const V={"min-width":Se(c.value)};return r.value?V.visibility="hidden":V.transform=`translate(${s.value.x}px, ${s.value.y}px)`,V}),B=t.computed(()=>({[`${Kt}__content`]:!0})),I=t.computed(()=>({})),A=t.computed(()=>({[`${Kt}__arrow`]:!0,[`${Kt}__arrow-${e.placement}`]:!0})),O=t.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:y,tipRef:g,classes:m,styles:d,textClasses:B,textStyles:I,arrowClasses:A,arrowStyles:O}}}),Yi={key:1,class:"text"};function Wi(e,n,a,o,l,r){const s=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(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Yi,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 Yt=ue(Ki,[["render",Wi]]);class Qo{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 An={},Ui=new Qo,at=new Map,On=e=>{if(e){const n=document.getElementById(e);at.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of at.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}at.clear()}},Gi=e=>{const n=document.getElementById(e.id);if(n){const a=at.get(e.id);a?e={...An,...a,...e}:e={...An,...e};const o=t.createVNode(Yt,e);return t.render(o,n),e.id}},Xi=e=>{e.unmount=On;let n;if(e.id){if(n=e.id,at.has(n))return Gi(e)}else n=`hinttext_${Ui.get()}`;e={...An,...e},e.id=n,at.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Yt,e);return t.render(o,a),document.body.appendChild(a),n},Zi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Wt={show(e,n,a={},o=!0){return o&&On(),Zi(n),Xi({...a,message:n,reference:e})},hide(e){On(e)},install(e){e.config.globalProperties.$hintText=Wt}},{componentName:ea,create:Ji}=ee("item"),Qi=Ji({inheritAttrs:!0,props:{...he,...ve},emits:["appear","disappear"],setup(e,n){const a=e.prop??n.attrs.name;be({componentName:ea,validate:!1},a);const o=qe(),l=Pt();qt(!1);const r=t.computed(()=>l&&o?zt(o,!1).value:null),s=ea,i=t.ref(null),c=t.computed(()=>{const X={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(X[e.errorMarkClass]=!!q.value,X[e.warnMarkClass]=!!E.value,X[e.infoMarkClass]=!!O.value,typeof i.value=="function"){const le=i.value(a);X[le]=!0}else if(typeof i.value=="string"){const le=i.value;X[le]=!0}return X}),f=t.computed(()=>{const X={},le=l&&o?_t(o,!1):null;if(r.value&&le)if(r.value.type==="grid"){const _=Ht(le,r.value,e.span,e.offset);Object.assign(X,_)}else if(r.value.type==="flow"){const _=jt(le,r.value,e.span,e.offset,e.width);Object.assign(X,_)}else return e.width&&(X.width=Se(e.width)),X;else e.width&&(X.width=Se(e.width));return X}),u=t.ref(null),m=t.computed({get:()=>u.value??ne(e.isRequired),set:X=>{u.value=X}}),g=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),T=Ne(t.toRef(e,"labelPosition"),"labelPosition",He.Near),b=t.computed(()=>T&&T.value==="top"?"top":T&&T.value==="right"?"right":"left"),y=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),w=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),h=Ne(t.toRef(e,"labelWidth"),"labelWidth",He.Near),p=t.computed(()=>h&&h.value?{width:Se(h.value)}:{}),d=t.computed(()=>({"label--string":!0,"label--required":m.value})),B=t.computed(()=>({content:!0,[e.contentClass]:!0})),I=t.computed(()=>({...e.contentStyle})),A=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired(X){m.value=X},setErrorTip(X){A.errorTip=X},setErrorIcon(X){A.errorIcon=X},setWarnTip(X){A.warnTip=X},setWarnIcon(X){A.warnIcon=X},setInfoTip(X){A.infoTip=X},setInfoIcon(X){A.infoIcon=X},setCustomClassName(X){i.value=X}});const O=t.computed(()=>e.infoTip||A.infoTip),V=t.computed(()=>e.infoIcon||A.infoIcon),E=t.computed(()=>e.warnTip||A.warnTip),D=t.computed(()=>e.warnIcon||A.warnIcon),q=t.computed(()=>e.errorTip||A.errorTip),F=t.computed(()=>e.errorIcon||A.errorIcon),C=t.computed(()=>q.value?"error":E.value?"warn":O.value?"info":""),$=t.computed(()=>C.value.length>0),x=t.computed(()=>C.value==="error"?q.value:C.value==="warn"?E.value:C.value==="info"?O.value:""),P=t.computed(()=>C.value==="error"?F.value:C.value==="warn"?D.value:C.value==="info"?V.value:null),N=t.computed(()=>{let X={[`${s}__tip`]:!0,[`${s}__tip--${C.value}`]:!0};return C.value==="error"&&e.errorClass?X[`${e.errorClass}`]=!0:C.value==="warn"&&e.warnClass?X[`${e.warnClass}`]=!0:C.value==="info"&&e.infoClass&&(X[`${e.infoClass}`]=!0),X}),z=t.computed(()=>{let X={};return T&&T.value==="top"||!g.value?X["padding-left"]="0px":h&&h.value&&(X["padding-left"]=Se(h.value)),X}),k=()=>t.h(P.value,{width:12,height:12}),R=t.computed(()=>n.slots.fixedTip),j=t.computed(()=>({[`${s}__fixed-tip`]:!0})),Y=t.ref();let Z="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([X,le,_,M])=>{Y.value&&(X&&!pe(le)?Z?Wt.show(Y.value,le,{...M,id:Z,type:_},!0):Z=Wt.show(Y.value,le,{...M,type:_},!0):Wt.hide(Z))});let te=null;const oe=()=>{te||!Y.value||(te=new IntersectionObserver(X=>{let le=!1;for(let _ of X)if(_.intersectionRatio>0){le=!0,le&&n.emit("appear",_);break}le||n.emit("disappear")}),te.observe(Y.value))},re=()=>{!te||!Y.value||(te.unobserve(Y.value),te=null)};return t.watch(()=>ne(e.appearListen),X=>{X?oe():re()}),t.onMounted(()=>{ne(e.appearListen)&&oe()}),t.onUnmounted(re),{classes:c,styles:f,mainClasses:y,hasLabel:g,labelClasses:w,labelStyles:p,labelStringClasses:d,contentClasses:B,contentStyles:I,contentRef:Y,hasTip:$,mTip:x,mIcon:P,renderIcon:k,tipClasses:N,tipStyles:z,hasFixedTip:R,fixedTipClasses:j}}}),es=["prop"],ts={key:0,class:"fox-item__tip--icon"},ns={class:"fox-item__tip--text"};function os(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",ts,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",ns,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,es)}const we=ue(Qi,[["render",os]]);function as(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=qe(),r=Pt();qt(!1);const s=t.computed(()=>r&&l?zt(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const u={},m=r&&l?_t(l,!1):null;if(s.value&&m)if(s.value.type==="grid"){const g=Ht(m,s.value,a.span,a.offset);Object.assign(u,g)}else if(s.value.type==="flow"){const g=jt(m,s.value,a.span,a.offset,a.width);Object.assign(u,g)}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:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",u,o.slots.default()):t.h("div",u)}}}}const{componentName:ls,create:rs,scope:Zm}=ee("slot-item"),ta=rs(as(ls));function is(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})),s=qe(),i=Pt();qt(!1);const c=t.computed(()=>{const f={};if(i&&s){const u=zt(s,!1),m=_t(s,!1);if(u.value&&m)if(u.value.type==="grid"){const g=Ht(m,u.value,a.span,a.offset);Object.assign(f,g)}else if(u.value.type==="flow"){const g=jt(m,u.value,a.span,a.offset,a.width);Object.assign(f,g)}else a.width&&(f.width=Se(a.width))}else a.width&&(f.width=Se(a.width));return f});return()=>{const f=[];if(o.slots.default){const m=o.slots.default();if(a.divide)for(let g=0;g<m.length;g++){if(g>0){const T=t.h("div",{class:{[`${l}__divide`]:!0}});f.push(T)}f.push(m[g])}else Reflect.apply([].push,f,m)}const u={class:r.value,style:c.value};return t.h("div",u,f)}}}}const{componentName:ss,create:cs,scope:Jm}=ee("row-item"),na=cs(is(ss)),oa={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 us(e,n,a){return{props:{...he,...ve,...oa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__readonly`]:s.value})),b=C=>{m.value=C,i("update:modelValue",C),i("input",C)},y=C=>{i("change",C)};let w=ie(o,"hintText"),h=t.ref(!1);const p=C=>{let x=C.target.value;u.value=!0,pe(w.value)||(h.value=!0),i("focus",x,C)},d=C=>{setTimeout(()=>{h.value&&(h.value=!1),u.value=!1},0);let x=C.target.value;o.maxLength&&x.length>Number(o.maxLength)&&(x=x.slice(0,Number(o.maxLength))),i("blur",x,C)},B=()=>{i("clear","")},I=t.ref(!1);let A=null;const O=()=>{o.showTooltip&&I.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{I.value=!0},150))},V=()=>{A&&(clearTimeout(A),I.value=!1,A=null)},E=t.computed(()=>I.value||h.value),D=t.computed(()=>I.value?m.value:w.value),q=t.computed(()=>Be(o.unit)>0),F=t.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const $={...l.attrs,ref:F,class:T.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:y,onInput:b,onFocus:p,onBlur:d,onMouseover:O,onMouseleave:V},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:q.value&&(x.suffix=()=>[o.unit]);const P=[],N=t.h(v.ElInput,$,x);P.push(N);const z={default:()=>P};l.slots.default&&(z.label=l.slots.default),l.slots.default&&(z.fixedTip=l.slots.fixedTip);const R={...Ce(o,oa),hintText:D.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,R,z)}}}}const{componentName:ds,create:fs,scope:ms}=ee("input-item"),aa=fs(us(ds,ms,we)),Rn={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:{}}},la=2e3;let ra=la;const hs=(e,n)=>({components:n,props:{...Rn},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})),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==la&&(ra=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++ra,a.destroyOnClose&&(l.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},u=y=>{o("click-pop",y)},m=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},T=y=>{o("opend",y)},b=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():f()}),t.watchEffect(()=>{l.closed=a.closeable}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:u,onClickCloseIcon:m,onClickOverlay:g,onOpened:T,onClosed:b}}}),ia={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}},Fn={...Rn,...ia,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 wt=0;const sa="fox-overflow-hidden",ca=()=>Xe?document.body:{classList:[]},gs=e=>[()=>{if(e())try{!wt&&ca().classList.add(sa),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&ca().classList.remove(sa)}catch{}}],ps={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:ys,create:bs}=ee("overlay"),Ss=bs({props:{...ps},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=gs(()=>e.lockScroll),l=t.computed(()=>({[ys]:!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:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ws(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((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Ut=ue(Ss,[["render",ws]]),{componentName:Cs,create:vs}=ee("popup"),ks=vs(hs(Cs,{[Ut.name]:Ut,Close:Qr}));function Ts(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,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(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Ye=ue(ks,[["render",Ts]]),ua=10;function $s(e,n){return e>n&&e>ua?"horizontal":n>e&&n>ua?"vertical":""}function Ln(){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),s=t.ref(0),i=t.ref(0),c=t.ref(0),f=t.ref(0),u=t.ref(""),m=()=>u.value==="vertical",g=()=>u.value==="horizontal",T=()=>{s.value=0,i.value=0,c.value=0,f.value=0,u.value="",a.value=0};return{move:w=>{const h=w.touches[0];s.value=h.clientX-e.value,i.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY,c.value=Math.abs(s.value),f.value=Math.abs(i.value),o.value=Date.now()-a.value,u.value||(u.value=$s(c.value,f.value))},start:w=>{T(),e.value=w.touches[0].clientX,n.value=w.touches[0].clientY,a.value=Date.now()},reset:T,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:f,direction:u,isVertical:m,isHorizontal:g}}let da=36;function Ds(){return da}function Es(e){da=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function xs(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function Je(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function fa(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Ns=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=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Vs(){const e=t.getCurrentInstance();return new Ns(e.proxy)}function ma(e,n,a){const o=Re(e,n),l=Re(e,a);if(o!==l)return!1;const r=Je(e,n),s=Je(e,a);return r===s}function Bs(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 s=0;s<n.length&&s<a.length;s++){const i=n[s];let f=a[s].findIndex(u=>{if(r==="text")return Re(e,u)===i;if(r==="value"){let m=Je(e,u);return m==null&&(m=Re(e,u)),m===i}else if(r==="item")return ma(e,u,i)});if(f==-1)break;l.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let f=s.findIndex(m=>{if(r==="text")return Re(e,m)===c;if(r==="value"){let g=Je(e,m);return g==null&&(g=Re(e,m)),g===c}else if(r==="item")return ma(e,m,c)});if(f==-1)break;l.push(f);const u=Mn(e,s[f]);if(!Array.isArray(u))break;s=u}}return l}function ha(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 s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],u=Re(e,f);if(l.texts.push(u),l.items.push(f),r==="text")l.values.push(u);else if(r==="value"){let m=Je(e,f);m==null&&(m=u),l.values.push(m)}else l.values.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],u=Re(e,f),m=Object.assign({},f);if(m.children=null,l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let g=Je(e,f);g==null&&(g=u),l.values.push(g)}else l.values.push(m);if(!Array.isArray(f.children))break;s=f.children}}return l}function ga(e){return{text:e,value:e}}const Is=15,As=300,Os=200,{create:Rs}=ee("picker-column");function Fs(e){e.stopPropagation()}function Ls(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Fs(e)}const Ms=Rs({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},...ia},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${se(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)),s=V=>V>=m.currIndex+8||V<=m.currIndex-8,i=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)`,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)`})),u=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"),T=V=>Re(e,V),b=V=>Je(e,V),y=Ln(),w=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},h=(V,E=!1,D=!1)=>{if(m.currIndex=V,E){const q=()=>{m.moving=!1,n("update:modelValue",V),n("change",V)};D?m.transitionEndTrigger=q:q()}},p=(V,E,D)=>{let q=V+m.startDistance;if(E==="end"){const F=-(g.value.length-1)*e.itemHeight;q<F&&(q=F,(!D||D<=0)&&(D=e.swipeDuration)),q>0&&(q=0,(!D||D<=0)&&(D=e.swipeDuration));let C=Math.abs(Math.round(-q/e.itemHeight));const $=-C*e.itemHeight,x=`${(C+1)*m.rotation}deg`,P=D?D>0:!1;h(C,!0,P),d($,E,D,x)}else{let F=(-q/e.itemHeight+1)*m.rotation;const C=(g.value.length+1)*m.rotation,$=0;if(F=Math.min(Math.max(F,$),C),e.threeDimensional&&(F<$||F>C))return;d(q,null,void 0,`${F}deg`)}},d=(V=0,E,D=Os,q)=>{E==="end"?m.scrollTime=D:m.scrollTime=0,m.deg=q,m.scrollDistance=V},B=(V,E)=>(V=Math.abs(V/E)/.003*(V<0?-1:1),V),I=V=>{if(!e.readonly){if(m.moving){const E=u.value,{transform:D}=window.getComputedStyle(E);m.scrollDistance=+D.slice(7,D.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,y.start(V),m.transitionEndTrigger=null}},A=V=>{e.readonly||(m.moving=!0,y.move(V),y.isVertical()&&(m.moving=!0,Ls(V,!0)),p(y.deltaY.value,"",0))},O=()=>{if(e.readonly)return;const V=y.deltaY.value,E=y.duration.value;if(E<As&&Math.abs(V)>Is){const q=B(V,E);p(q,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(m.currIndex!==V){m.currIndex=V;const E=-V*e.itemHeight;p(E)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:a,styles:o,contentClasses:l,source:g,itemText:T,itemValue:b,...t.toRefs(m),roller:u,getItemText:Re,onTouchStart:I,onTouchMove:A,onTouchEnd:O,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:w}}}),Ps={key:1,class:"fox-picker__item-tile"};function qs(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]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[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,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Ps,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const pa=ue(Ms,[["render",qs]]),{create:zs,componentName:_s,scope:js}=ee("picker"),Hs=zs({components:{[pa.name]:pa,[Ye.name]:Ye},props:{...Fn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=Ee.useFoxI18n(js),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Ds());t.watch(()=>e.visible,D=>{D&&s.value<=0&&setTimeout(()=>{if(r.value){const q=Ke(r.value);s.value=q.height,Es(s.value)}},50)});const i=t.computed(()=>({[_s]:!0})),c=Vs(),f=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([D,q])=>{if(D){let F=await c.load("select",D,q);if(F.length>0){let C=F[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let $=F,x=[];$.forEach(P=>{let N=P.map(z=>ga(z));x.push(N)}),u.value=x}else u.value=F;f.value="multipleColumn"}else if(typeof C=="string"){let $=F,x=[],P=$.map(N=>ga(N));x.push(P),u.value=x,f.value="singleColumn"}else{const $=Mn(e,C);Array.isArray($)?(f.value="cascade",u.value=[F]):(f.value="singleColumn",u.value=[F])}}else u.value=[]}},{immediate:!0});const m=t.ref([]),g=t.ref(e.modelValue),T=t.ref([]),b=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([D,q])=>{let F=Bs(e,D,q,f.value);if(!Me(F,b.value)){b.value=F;let C=ha(e,F,q,f.value);C&&(m.value=C.texts,n("update:text",m.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,D=>{y.value=D});const w=D=>{let q=fa(e,D);return Ie(q)?q.defaultIndex??0:0},h=D=>{if(e.readonly===!0)return!0;let q=fa(e,D);return Ie(q)?q.readonly??!1:!1},p=(D,q)=>{let F=b.value;F[D]=q;for(let $=0;$<D;$++)F[$]==null&&(F[$]=w($));if(f.value==="cascade")for(let $=D+1;$<B.value.length;$++){let x=w($);$<F.length?F[$]=x:F.push(x)}else for(let $=F.length;$<B.value.length;$++){let x=w($);F.push(x)}b.value=F;let C=ha(e,F,u.value,f.value);C&&(m.value=C.texts,g.value=C.values,T.value=C.items)},d=D=>D<b.value.length?b.value[D]:w(D),B=t.computed(()=>{if(u.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return u.value;let D=[],q=0,F=u.value[0],C=0;for(;;){let $=F.map(N=>{let z=Object.assign({},N);return xs(e,z,null),z});D.push($),q>=b.value.length?C=0:C=b.value[q],(C<0||C>=F.length)&&(C=0);let x=F[C];const P=Mn(e,x);if(!Array.isArray(P))break;F=P,q++}return D}),I=t.computed(()=>se(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:B,dataType:f,show:y,itemHeight:s,top:I,isReadonly:h,getIndex:d,change:(D,q)=>{p(D,q)},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&&!(b.value[D]===null||b.value[D]===void 0);D--);if(D>=0&&p(D,0),f.value==="singleColumn"){let q=g.value.length>0?g.value[0]:"",F=T.value.length>0?T.value[0]:null;e.readonly||(n("update:modelValue",q),n("update:text",m.value),n("change",q,F)),n("confirm",q)}else e.readonly||(n("update:modelValue",g.value),n("update:text",m.value),n("change",g.value,T.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)}}}}),Ks={class:"fox-picker__bar"},Ys={class:"fox-picker__title"},Ws={class:"fox-picker__bar__action"},Us={class:"fox-picker__column"};function Gs(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{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",Ks,[t.createElementVNode("view",Ys,t.toDisplayString(e.title),1),t.createElementVNode("view",Ws,[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",Us,[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(s,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":u=>e.change(f,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 Ct=ue(Hs,[["render",Gs]]),ya={...Fn,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 Xs(e,n,a){return{props:{...he,...ve,...ya},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=e,g=t.computed(()=>({[m]:!0})),T=Ne(t.computed(()=>o.textAlign),"textAlign"),b=t.computed(()=>({textAlign:T.value??"right"})),y=ie(o,"modelValue"),w=t.ref([]),h=t.computed(()=>Array.isArray(w.value)?w.value.join(" "):w.value),p=t.ref(!1),d=()=>{p.value=!0},B=x=>{p.value=x},I=x=>{y.value=x,i("update:modelValue",x)},A=x=>{w.value=x,Array.isArray(x)&&x.length===0?i("update:text",x[0]):i("update:text",x)},O=(x,P)=>{Array.isArray(P)&&P.length==1?i("change",x,P[0]):i("change",x,P)};let V=ie(o,"hintText"),E=t.ref(!1);const D=x=>{let N=x.target.value;u.value=!0,pe(V.value)||(E.value=!0),i("focus",N,x)},q=x=>{setTimeout(()=>{E.value&&(E.value=!1),u.value=!1},0);let N=x.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),p.value?setTimeout(()=>{i("blur",N,x)},50):i("blur",N,x)},F=()=>{i("clear","")},C=t.computed(()=>Be(o.unit)>0),$=t.ref();return me({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const x={class:g.value,style:b.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,clearable:ne(o.clearable),readonly:!0,value:h.value,onClick:d,onFocus:D,onBlur:q},P={};l.slots.prepend&&(P.prepend=l.slots.prepend),l.slots.append&&(P.append=l.slots.append),l.slots.prefix&&(P.prefix=l.slots.prefix),l.slots.suffix?P.suffix=l.slots.suffix:C.value?P.suffix=()=>[o.unit]:P.suffix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.ArrowDown)});const N=[],z=t.h(v.ElInput,x,P);N.push(z);const k={default:()=>N};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const R=ht(o,Fn);R.disabled=!1,R.readonly=r.value||s.value,R.visible=p.value,R["onUpdate:visible"]=B,R.modelValue=y.value,R.onUpdateModel=I,R.text=w.value,R["onUpdate:text"]=A,R.onClear=F,R.onChange=O;const j=t.h(Ct,R);k.hide=()=>[j];const Z={...Ce(o,ya),hintText:V.value,hintVisible:E.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,Z,k)}}}}const{componentName:Zs,create:Js,scope:Qs}=ee("select-item"),ba=Js(Xs(Zs,Qs,we));var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",f="day",u="week",m="month",g="quarter",T="year",b="date",y="Invalid Date",w=/^(\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,p={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("_")},d=function(C,$,x){var P=String(C);return!P||P.length>=$?C:""+Array($+1-P.length).join(x)+C},B={s:d,z:function(C){var $=-C.utcOffset(),x=Math.abs($),P=Math.floor(x/60),N=x%60;return($<=0?"+":"-")+d(P,2,"0")+":"+d(N,2,"0")},m:function C($,x){if($.date()<x.date())return-C(x,$);var P=12*(x.year()-$.year())+(x.month()-$.month()),N=$.clone().add(P,m),z=x-N<0,k=$.clone().add(P+(z?-1:1),m);return+(-(P+(x-N)/(z?N-k:k-N))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:m,y:T,w:u,d:f,D:b,h:c,m:i,s,ms:r,Q:g}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},I="en",A={};A[I]=p;var O=function(C){return C instanceof q},V=function C($,x,P){var N;if(!$)return I;if(typeof $=="string"){var z=$.toLowerCase();A[z]&&(N=z),x&&(A[z]=x,N=z);var k=$.split("-");if(!N&&k.length>1)return C(k[0])}else{var R=$.name;A[R]=$,N=R}return!P&&N&&(I=N),N||!P&&I},E=function(C,$){if(O(C))return C.clone();var x=typeof $=="object"?$:{};return x.date=C,x.args=arguments,new q(x)},D=B;D.l=V,D.i=O,D.w=function(C,$){return E(C,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var q=function(){function C(x){this.$L=V(x.locale,null,!0),this.parse(x)}var $=C.prototype;return $.parse=function(x){this.$d=function(P){var N=P.date,z=P.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 k=N.match(w);if(k){var R=k[2]-1||0,j=(k[7]||"0").substring(0,3);return z?new Date(Date.UTC(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)):new Date(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)}}return new Date(N)}(x),this.$x=x.x||{},this.init()},$.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},$.$utils=function(){return D},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(x,P){var N=E(x);return this.startOf(P)<=N&&N<=this.endOf(P)},$.isAfter=function(x,P){return E(x)<this.startOf(P)},$.isBefore=function(x,P){return this.endOf(P)<E(x)},$.$g=function(x,P,N){return D.u(x)?this[P]:this.set(N,x)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(x,P){var N=this,z=!!D.u(P)||P,k=D.p(x),R=function(le,_){var M=D.w(N.$u?Date.UTC(N.$y,_,le):new Date(N.$y,_,le),N);return z?M:M.endOf(f)},j=function(le,_){return D.w(N.toDate()[le].apply(N.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(_)),N)},Y=this.$W,Z=this.$M,te=this.$D,oe="set"+(this.$u?"UTC":"");switch(k){case T:return z?R(1,0):R(31,11);case m:return z?R(1,Z):R(0,Z+1);case u:var re=this.$locale().weekStart||0,X=(Y<re?Y+7:Y)-re;return R(z?te-X:te+(6-X),Z);case f:case b:return j(oe+"Hours",0);case c:return j(oe+"Minutes",1);case i:return j(oe+"Seconds",2);case s:return j(oe+"Milliseconds",3);default:return this.clone()}},$.endOf=function(x){return this.startOf(x,!1)},$.$set=function(x,P){var N,z=D.p(x),k="set"+(this.$u?"UTC":""),R=(N={},N[f]=k+"Date",N[b]=k+"Date",N[m]=k+"Month",N[T]=k+"FullYear",N[c]=k+"Hours",N[i]=k+"Minutes",N[s]=k+"Seconds",N[r]=k+"Milliseconds",N)[z],j=z===f?this.$D+(P-this.$W):P;if(z===m||z===T){var Y=this.clone().set(b,1);Y.$d[R](j),Y.init(),this.$d=Y.set(b,Math.min(this.$D,Y.daysInMonth())).$d}else R&&this.$d[R](j);return this.init(),this},$.set=function(x,P){return this.clone().$set(x,P)},$.get=function(x){return this[D.p(x)]()},$.add=function(x,P){var N,z=this;x=Number(x);var k=D.p(P),R=function(Z){var te=E(z);return D.w(te.date(te.date()+Math.round(Z*x)),z)};if(k===m)return this.set(m,this.$M+x);if(k===T)return this.set(T,this.$y+x);if(k===f)return R(1);if(k===u)return R(7);var j=(N={},N[i]=o,N[c]=l,N[s]=a,N)[k]||1,Y=this.$d.getTime()+x*j;return D.w(Y,this)},$.subtract=function(x,P){return this.add(-1*x,P)},$.format=function(x){var P=this,N=this.$locale();if(!this.isValid())return N.invalidDate||y;var z=x||"YYYY-MM-DDTHH:mm:ssZ",k=D.z(this),R=this.$H,j=this.$m,Y=this.$M,Z=N.weekdays,te=N.months,oe=function(_,M,L,W){return _&&(_[M]||_(P,z))||L[M].slice(0,W)},re=function(_){return D.s(R%12||12,_,"0")},X=N.meridiem||function(_,M,L){var W=_<12?"AM":"PM";return L?W.toLowerCase():W},le={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Y+1,MM:D.s(Y+1,2,"0"),MMM:oe(N.monthsShort,Y,te,3),MMMM:oe(te,Y),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:oe(N.weekdaysMin,this.$W,Z,2),ddd:oe(N.weekdaysShort,this.$W,Z,3),dddd:Z[this.$W],H:String(R),HH:D.s(R,2,"0"),h:re(1),hh:re(2),a:X(R,j,!0),A:X(R,j,!1),m:String(j),mm:D.s(j,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:k};return z.replace(h,function(_,M){return M||le[_]||k.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(x,P,N){var z,k=D.p(P),R=E(x),j=(R.utcOffset()-this.utcOffset())*o,Y=this-R,Z=D.m(this,R);return Z=(z={},z[T]=Z/12,z[m]=Z,z[g]=Z/3,z[u]=(Y-j)/6048e5,z[f]=(Y-j)/864e5,z[c]=Y/l,z[i]=Y/o,z[s]=Y/a,z)[k]||Y,N?Z:D.a(Z)},$.daysInMonth=function(){return this.endOf(m).$D},$.$locale=function(){return A[this.$L]},$.locale=function(x,P){if(!x)return this.$L;var N=this.clone(),z=V(x,P,!0);return z&&(N.$L=z),N},$.clone=function(){return D.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},C}(),F=q.prototype;return E.prototype=F,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",m],["$y",T],["$D",b]].forEach(function(C){F[C[1]]=function($){return this.$g($,C[0],C[1])}}),E.extend=function(C,$){return C.$i||(C($,q,E),C.$i=!0),E},E.locale=V,E.isDayjs=O,E.unix=function(C){return E(1e3*C)},E.en=A[I],E.Ls=A,E.p={},E})})(Sa);var ec=Sa.exports;const Fe=_e(ec);var wa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,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?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(y){return(y=+y)+(y>68?1900:2e3)},f=function(y){return function(w){this[y]=+w}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var h=w.match(/([+-]|\d\d)/g),p=60*h[1]+(+h[2]||0);return p===0?0:h[0]==="+"?-p:p}(y)}],m=function(y){var w=i[y];return w&&(w.indexOf?w:w.s.concat(w.f))},g=function(y,w){var h,p=i.meridiem;if(p){for(var d=1;d<=24;d+=1)if(y.indexOf(p(d,0,w))>-1){h=d>12;break}}else h=y===(w?"pm":"PM");return h},T={A:[s,function(y){this.afternoon=g(y,!1)}],a:[s,function(y){this.afternoon=g(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,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:[l,f("day")],Do:[s,function(y){var w=i.ordinal,h=y.match(/\d+/);if(this.day=h[0],w)for(var p=1;p<=31;p+=1)w(p).replace(/\[|\]/g,"")===y&&(this.day=p)}],M:[r,f("month")],MM:[l,f("month")],MMM:[s,function(y){var w=m("months"),h=(m("monthsShort")||w.map(function(p){return p.slice(0,3)})).indexOf(y)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[s,function(y){var w=m("months").indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,f("year")],Z:u,ZZ:u};function b(y){var w,h;w=y,h=i&&i.formats;for(var p=(y=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,D,q){var F=q&&q.toUpperCase();return D||h[q]||a[q]||h[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,$,x){return $||x.slice(1)})})).match(o),d=p.length,B=0;B<d;B+=1){var I=p[B],A=T[I],O=A&&A[0],V=A&&A[1];p[B]=V?{regex:O,parser:V}:I.replace(/^\[|\]$/g,"")}return function(E){for(var D={},q=0,F=0;q<d;q+=1){var C=p[q];if(typeof C=="string")F+=C.length;else{var $=C.regex,x=C.parser,P=E.slice(F),N=$.exec(P)[0];x.call(D,N),E=E.replace(N,"")}}return function(z){var k=z.afternoon;if(k!==void 0){var R=z.hours;k?R<12&&(z.hours+=12):R===12&&(z.hours=0),delete z.afternoon}}(D),D}}return function(y,w,h){h.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var p=w.prototype,d=p.parse;p.parse=function(B){var I=B.date,A=B.utc,O=B.args;this.$u=A;var V=O[1];if(typeof V=="string"){var E=O[2]===!0,D=O[3]===!0,q=E||D,F=O[2];D&&(F=O[2]),i=this.$locale(),!E&&F&&(i=h.Ls[F]),this.$d=function(P,N,z){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*P);var k=b(N)(P),R=k.year,j=k.month,Y=k.day,Z=k.hours,te=k.minutes,oe=k.seconds,re=k.milliseconds,X=k.zone,le=new Date,_=Y||(R||j?1:le.getDate()),M=R||le.getFullYear(),L=0;R&&!j||(L=j>0?j-1:le.getMonth());var W=Z||0,G=te||0,H=oe||0,K=re||0;return X?new Date(Date.UTC(M,L,_,W,G,H,K+60*X.offset*1e3)):z?new Date(Date.UTC(M,L,_,W,G,H,K)):new Date(M,L,_,W,G,H,K)}catch{return new Date("")}}(I,V,A),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),q&&I!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var C=V.length,$=1;$<=C;$+=1){O[1]=V[$-1];var x=h.apply(this,O);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}$===C&&(this.$d=new Date(""))}else d.call(this,B)}}})})(wa);var tc=wa.exports;const nc=_e(tc);var Ca={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(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 u.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return u.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 s.bind(this)(m)}}})})(Ca);var oc=Ca.exports;const ac=_e(oc);var va={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o,l){var r=o.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,g,T,b,y){var w=m.name?m:m.$locale(),h=s(w[g]),p=s(w[T]),d=h||p.map(function(I){return I.slice(0,b)});if(!y)return d;var B=w.weekStart;return d.map(function(I,A){return d[(A+(B||0))%7]})},c=function(){return l.Ls[l.locale()]},f=function(m,g){return m.formats[g]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,w){return y||w.slice(1)})}(m.formats[g.toUpperCase()])},u=function(){var m=this;return{months:function(g){return g?g.format("MMMM"):i(m,"months")},monthsShort:function(g){return g?g.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):i(m,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return f(m.$locale(),g)},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(g){return f(m,g)},meridiem:m.meridiem,ordinal:m.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(m){return i(c(),"weekdays",null,null,m)},l.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},l.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(va);var lc=va.exports;const rc=_e(lc);var ka={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.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 u=s(this).startOf(o).add(1,o).date(f),m=s(this).endOf(a);if(u.isBefore(m))return 1}var g=s(this).startOf(o).date(f).startOf(a).subtract(1,"millisecond"),T=this.diff(g,a,!0);return T<0?s(this).startOf("week").week():Math.ceil(T)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ka);var ic=ka.exports;const sc=_e(ic);var Ta={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(Ta);var cc=Ta.exports;const uc=_e(cc);var $a={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})($a);var dc=$a.exports;const fc=_e(dc);var Da={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Da);var mc=Da.exports;const hc=_e(mc);var Ea={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(Ea);var gc=Ea.exports;const pc=_e(gc);Fe.extend(rc),Fe.extend(ac),Fe.extend(nc),Fe.extend(sc),Fe.extend(uc),Fe.extend(fc),Fe.extend(hc),Fe.extend(pc);const Q={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(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(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/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),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,f=r+(6-s)*864e5,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(f));return[u,m]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(f));return[u,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=Q.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Q.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(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},xa=new Date().getFullYear(),Pn={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"},Gt=(e,n,a)=>{let o;if(Le(n)?o=n:typeof n=="string"&&Be(n)>0?o=Q.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)},qn=(e,n,a)=>{Le(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),Q.format(new Date(o),a)};let zn={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(xa-10,0,1),validator:Le},maxDate:{type:Date,default:()=>new Date(xa+10,11,31),validator:Le},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:yc,scope:bc}=ee("date-picker"),Sc=yc({components:{[Ct.name]:Ct},props:{...zn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=Ee.useFoxI18n(bc),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,p){return new Date(h,p,0).getDate()}const s=(h,p)=>{const d=e[`${h}Date`],B=d.getFullYear();let I=1,A=1,O=0,V=0;h==="max"&&(I=12,A=r(p.getFullYear(),p.getMonth()+1),O=23,V=59);const E=V;return p.getFullYear()===B&&(I=d.getMonth()+1,p.getMonth()+1===I&&(A=d.getDate(),p.getDate()===A&&(O=d.getHours(),p.getHours()===O&&(V=d.getMinutes())))),{[`${h}Year`]:B,[`${h}Month`]:I,[`${h}Date`]:A,[`${h}Hour`]:O,[`${h}Minute`]:V,[`${h}Seconds`]:E}},i=t.computed(()=>{if(!g.value)return[];const{maxYear:h,maxDate:p,maxMonth:d,maxHour:B,maxMinute:I,maxSeconds:A}=s("max",g.value),{minYear:O,minDate:V,minMonth:E,minHour:D,minMinute:q,minSeconds:F}=s("min",g.value);let C=[{type:"year",range:[O,h]},{type:"month",range:[E,d]},{type:"day",range:[V,p]},{type:"hour",range:[D,B]},{type:"minute",range:[q,I]},{type:"seconds",range:[F,A]}];switch(e.type){case"date":C=C.slice(0,3);break;case"datetime":C=C.slice(0,5);break;case"time":C=C.slice(3,6);break;case"year-month":C=C.slice(0,2);break;case"month-day":C=C.slice(1,3);break;case"datehour":C=C.slice(0,4);break;case"hour-minute":C=C.slice(3,5);break}return C}),c=(h,p,d)=>{if(!(p>h))return null;const B=[];for(;h<=p;)e.isShowChinese?B.push({text:h+o[d],value:h}):B.push({text:`${h}`,value:h}),d==="minute"?h+=e.minuteStep:h++;return B},f=t.computed(()=>{let h=[];return i.value.forEach(p=>{let d=c(p.range[0],p.range[1],p.type);d&&h.push(d)}),h}),u=(h,p)=>h==="year"?p.getFullYear():h==="month"?p.getMonth()+1:h==="day"?p.getDate():h==="hour"?p.getHours():h==="minute"?p.getMinutes():h==="seconds"?p.getSeconds():0,m=t.ref(),g=t.ref(null);t.watchEffect(()=>{let h,p=e.modelValue;if(typeof p=="string"?p.length==0?h=new Date:e.valueFormat?h=Gt(e,e.modelValue,e.valueFormat):h=Gt(e,p,Pn[e.type]):Le(p)?h=p:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let d=[];i.value.forEach(B=>{let I=u(B.type,h);d.push(I)}),m.value=d}});const T=h=>{if(e.type==="date"){let p=h;g.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=h;g.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=h,d=g.value??new Date,B=new Date(d.getFullYear(),d.getMonth(),d.getDate(),p[0],p[1],p[2]);g.value=B}else if(e.type==="year-month"){let p=h,d=new Date(p[0],p[1]-1);g.value=d}else if(e.type==="month-day"){let p=h,d=g.value??new Date,B=new Date(d.getFullYear(),p[0]-1,p[1]);g.value=B}else if(e.type==="datehour"){let p=h;g.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=h,d=g.value??new Date,B=new Date(d.getFullYear(),d.getMonth(),d.getDate(),p[0],p[1]);g.value=B}m.value=h};return{columns:f,dateIndexs:m,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:h=>{T(h),l.value=!1;let p=g.value??new Date;if(e.valueFormat){let d=qn(e,p,e.valueFormat);n("update:modelValue",d)}else n("update:modelValue",p);n("update:visible",!1),n("confirm",h)},onClear:()=>{n("clear")}}}});function wc(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{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 _n=ue(Sc,[["render",wc]]);function Cc(e){let n=e.format;if(!n){let a=e.type??"date";n=Pn[a]}return n}const Na={...zn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function vc(e,n,a){return{props:{...he,...ve,...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,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),g=ie(o,"modelValue",k=>k==null?null:typeof k=="string"?k.length==0?null:o.valueFormat?Gt(o,k,o.valueFormat)??k:Gt(o,k,Pn[o.type])??k:Le(k)?k:null),T=t.computed(()=>{if(!g.value)return"";const k=Cc(o);return qn(o,g.value,k)}),b=e,y=t.computed(()=>({[`${b}__input`]:!0})),w=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:w.value??"right"}));let p=ie(o,"hintText"),d=t.ref(!1);const B=t.ref(!1),I=()=>{B.value=!0},A=()=>{B.value=!1},O=k=>{B.value=k},V=k=>{if(g.value=k,o.valueFormat){let R=qn(o,k,o.valueFormat);i("update:modelValue",R,{}),i("change",R,{})}else i("update:modelValue",k,{}),i("change",k,{})},E=k=>{let j=k.target.value;u.value=!0,i("focus",j,k)},D=k=>{setTimeout(()=>{u.value=!1},0);let j=k.target.value;o.maxLength&&j.length>Number(o.maxLength)&&(j=j.slice(0,Number(o.maxLength))),i("blur",j,k)},q=k=>{g.value="",i("update:modelValue","",k),i("change","",k),i("clear",""),A()},F=t.computed(()=>Be(o.unit)>0),C=Ne(t.computed(()=>o.longTermValue),"longTermValue",He.Near);let $=null;const x=t.ref(ne(o.longTerm)),P=k=>{if(x.value=k,i("update:longTerm",k),k){let R="";Array.isArray(C.value)?R=C.value.map((j,Y)=>j||(Array.isArray(g.value)&&g.value[Y]?g.value[Y]:o.valueFormat?Q.format(new Date,o.valueFormat):new Date)):R=C.value,$=g.value,i("update:modelValue",R)}else i("update:modelValue",$)},N=ne(o.isLongTerm);if(N){const k=()=>{if(x.value===!0){let R="";Array.isArray(C.value)?R=C.value.map((j,Y)=>j||(Array.isArray(g.value)&&g.value[Y]?g.value[Y]:o.valueFormat?Q.format(new Date,o.valueFormat):new Date)):R=C.value,$=g.value,i("update:modelValue",R)}else Me(C.value,g.value)&&(x.value=!0)};k(),t.watch([()=>o.longTerm],([R])=>{x.value!==R&&k()})}const z=t.ref();return me({showPicker:I,hidePicker:A,focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.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:T.value,onClick:I,onFocus:E,onBlur:D},R={};l.slots.prepend&&(R.prepend=l.slots.prepend),l.slots.append&&(R.append=l.slots.append),l.slots.prefix?R.prefix=l.slots.prefix:R.prefix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.Calendar)}),l.slots.suffix?R.suffix=l.slots.suffix:F.value&&(R.suffix=()=>[o.unit]);const j=[],Y=t.h(v.ElInput,k,R);j.push(Y);const Z={default:()=>j};l.slots.default&&(Z.label=l.slots.default),l.slots.fixedTip&&(Z.fixedTip=l.slots.fixedTip);const te=ht(o,zn);te.valueFormat=null,te.disabled=!1,te.readonly=r.value||s.value||x.value,te.visible=B.value,te["onUpdate:visible"]=O,te.modelValue=g.value,te["onUpdate:modelValue"]=V,te.onClear=q;const oe={};if(l.slots.top){const M=l.slots.top();oe.top=()=>M}if(l.slots.bottom){const M=l.slots.bottom();oe.default=()=>M}const re=t.h(_n,te,oe);if(Z.hide=()=>[re],N){const M={label:o.longTermText,modelValue:x.value,"onUpdate:modelValue":P},L=t.h(v.ElCheckbox,M),W=t.h("div",{class:{[`${b}__append`]:!0}},[L]);Z.append=()=>W}const le={...Ce(o,Na),class:{[`${b}__wrapper`]:!0,"has-append":N},hintText:p.value,hintVisible:d.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,le,Z)}}}}const{componentName:kc,create:Tc,scope:$c}=ee("date-item"),Va=Tc(vc(kc,$c,we)),Dc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),jn={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"}}},Ba=39,Ia=64,{create:Ec,scope:xc}=ee("calendar-pane"),Nc=Ec({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:Q.getDay(0)},endDate:{type:String,default:Q.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(xc),r=o(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${Ba}px`})),i=t.computed(()=>({height:`${Ia}px`})),c=JSON.parse(l("weekdays")),f=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),u=t.ref(null),m=t.ref(null),g=t.ref(null),T=t.ref(null),b=t.ref(0),y=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),w=t.computed(()=>a.btn),h=t.computed(()=>a["top-info"]),p=t.computed(()=>a["bottom-info"]),d=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}),B=_=>_.split("-"),I=_=>Q.isEqual(d.currDate[0],_),A=_=>Q.isEqual(d.currDate[1],_),O=_=>d.currDate?.length>0?d.currDate?.some(M=>Q.isEqual(M,_)):!1,V=(_,M)=>M.curData[0]+"-"+M.curData[1]+"-"+Q.getNumTwoBit(+_.day),E=(_,M)=>{const L=V(_,M),{type:W}=e;return _.type=="curr"?Q.isEqual(d.currDate,L)||(W=="range"||W=="week")&&(I(L)||A(L))||W=="multiple"&&O(L)?`${d.dayPrefix}--active`:d.propStartDate&&Q.compareDate(L,d.propStartDate)||d.propEndDate&&Q.compareDate(d.propEndDate,L)?`${d.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&Q.compareDate(d.currDate[0],L)&&Q.compareDate(L,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},D=()=>{const{type:_}=e;if(_=="range"&&d.chooseData.length==2||_!="range"){let M=d.chooseData.slice(0);_=="week"&&(M={weekDate:[F(d.chooseData[0]),F(d.chooseData[1])]}),n("choose",M),e.poppable&&n("update")}},q=(_,M,L=!1)=>{if(E(_,M)!=`${d.dayPrefix}--disabled`){const{type:W}=e;let[G,H]=M.curData,K=[...M.curData];if(K[2]=Q.getNumTwoBit(Number(_.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=Q.getWhatDay(+K[0],+K[1],+K[2]),W=="multiple")if(d.currDate?.length>0){let U;d.currDate?.forEach((J,de)=>{J==K[3]&&(U=de)}),L?d.chooseData.push([...K]):U!==void 0?(d.currDate.splice(U,1),d.chooseData.splice(U,1)):(d.currDate.push(K[3]),d.chooseData.push([...K]))}else d.currDate=[K[3]],d.chooseData=[[...K]];else if(W=="range"){let U=Object.values(d.currDate).length;U==2||U==0?d.currDate=[K[3]]:Q.compareDate(d.currDate[0],K[3])?Array.isArray(d.currDate)&&d.currDate.push(K[3]):Array.isArray(d.currDate)&&d.currDate.unshift(K[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...K]]:Q.compareDate(d.chooseData[0][3],K[3])?d.chooseData=[...d.chooseData,[...K]]:d.chooseData=[[...K],...d.chooseData]}else if(W=="week"){let U=Q.getWeekDate(G,H,_.day,e.firstDayOfWeek);d.propStartDate&&Q.compareDate(U[0],d.propStartDate)&&U.splice(0,1,d.propStartDate),d.propEndDate&&Q.compareDate(d.propEndDate,U[1])&&U.splice(1,1,d.propEndDate),d.currDate=U,d.chooseData=[Q.formatResultDate(U[0]),Q.formatResultDate(U[1])]}else d.currDate=K[3],d.chooseData=[...K];if(!L){let U=d.chooseData;W=="week"&&(U={weekDate:[F(d.chooseData[0]),F(d.chooseData[1])]}),n("select",U),(e.isAutoBackFill||!e.poppable)&&D()}}},F=_=>{let[M,L,W]=_;return{date:_,monthWeekNum:Q.getMonthWeek(M,L,W,e.firstDayOfWeek),yearWeekNum:Q.getYearWeek(M,L,W,e.firstDayOfWeek)}},C=_=>{const M=_=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let L=parseInt(M.curData[0]),W=parseInt(M.curData[1].toString().replace(/^0/,""));switch(_){case"prev":W==1&&(L-=1),W=W==1?12:--W;break;case"next":W==12&&(L+=1),W=W==12?1:++W;break}return[L+"",Q.getNumTwoBit(W),Q.getMonthDays(String(L),String(W))+""]},$=(_,M,L)=>{let{year:W,month:G}=L;return M=="prev"&&_>=7&&(_-=7),Array.from(Array(_),(H,K)=>({day:String(K+1),type:M,year:W,month:G}))},x=(_,M,L,W)=>{_=_-e.firstDayOfWeek;let{year:G,month:H}=L;return M=="prev"&&_>=7&&(_-=7),Array.from(Array(W),(U,J)=>({day:String(J+1),type:M,year:G,month:H})).slice(W-_)},P=(_,M)=>{const L=Q.getMonthPreDay(+_[0],+_[1]);let W=Number(_[1])-1,G=Number(_[0]);W<=0&&(W=12,G+=1);const H=Q.getMonthDays(String(_[0]),String(_[1])),K=Q.getMonthDays(G+"",W+""),U={year:_[0],month:_[1]},J={curData:_,title:l("monthTitle",{year:U.year,month:U.month}),monthData:[...x(L,"prev",{month:String(W),year:String(G)},K),...$(H,"curr",U)],cssHeight:0,cssScrollHeight:0},de=J.monthData.length>35?6:5;J.cssHeight=Ba+Ia*de;let ge=0;d.monthsData.length>0&&(ge=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),J.cssScrollHeight=ge,M=="next"?(!d.endData||!Q.compareDate(`${d.endData[0]}-${d.endData[1]}-${Q.getMonthDays(d.endData[0],d.endData[1])}`,`${_[0]}-${_[1]}-${_[2]}`))&&d.monthsData.push(J):!d.startData||!Q.compareDate(`${_[0]}-${_[1]}-${_[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(J):d.unLoadPrev=!0},N=()=>{let _=e.startDate?e.startDate:Q.getDay(0),M=e.endDate?e.endDate:Q.getDay(365);d.propStartDate=_,d.propEndDate=M,d.startData=B(_),d.endData=B(M),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(d.startData[0]),month:Number(d.startData[1])},W={year:Number(d.endData[0]),month:Number(d.endData[1])};let G=W.month-L.month;W.year-L.year>0&&(G=G+12*(W.year-L.year)),G<=0&&(G=1),P(d.startData,"next");let H=1;do P(C("next"),"next");while(H++<G);if(d.monthsNum=G,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(_&&Q.compareDate(d.currDate[0],_)&&d.currDate.splice(0,1,_),M&&Q.compareDate(M,d.currDate[1])&&d.currDate.splice(1,1,M),d.defaultData=[...B(d.currDate[0]),...B(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let K=[],U={};d.currDate.forEach(J=>{_&&!Q.compareDate(J,_)&&M&&!Q.compareDate(M,J)&&(Object.hasOwnProperty.call(U,J)||(K.push(J),U[J]=J))}),d.currDate=[...K],d.defaultData=[...B(K[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[K,U,J]=B(d.currDate[0]),de=Q.getWeekDate(K,U,J,e.firstDayOfWeek);d.currDate=de,_&&Q.compareDate(d.currDate[0],_)&&d.currDate.splice(0,1,_),M&&Q.compareDate(M,d.currDate[1])&&d.currDate.splice(1,1,M),d.defaultData=[...B(d.currDate[0]),...B(d.currDate[1])]}}else d.currDate&&(_&&Q.compareDate(d.currDate,_)?d.currDate=_:M&&!Q.compareDate(d.currDate,M)&&(d.currDate=M),d.defaultData=[...B(d.currDate)])};me({scrollToDate:_=>{Q.compareDate(_,d.propStartDate)?_=d.propStartDate:Q.compareDate(_,d.propEndDate)||(_=d.propEndDate);let M=B(_);d.monthsData.forEach((L,W)=>{if(L.title==l("monthTitle",{year:M[0],month:M[1]})&&u.value){let G=d.monthsData[W].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let H=0,K=setInterval(()=>{if(H++,u.value){let U=G/10;u.value.scrollTop=u.value.scrollTop+U}H>=10&&(clearInterval(K),u.value&&(u.value.scrollTop=d.monthsData[W].cssScrollHeight))},40)}else u.value.scrollTop=d.monthsData[W].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let _=0,M=0;d.defaultData.length>0&&d.monthsData.forEach((G,H)=>{G.title==l("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(_=H),(e.type=="range"||e.type=="week")&&G.title==l("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(M=H)}),j(d.monthsNum,_),d.currentIndex=_,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),q({day:d.defaultData[5],type:"curr"},d.monthsData[M],!0)):e.type=="week"?q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(G=>{let H=B(G),K=d.currentIndex;d.monthsData.forEach((U,J)=>{U.title==l("monthTitle",{year:H[0],month:H[1]})&&(K=J)}),q({day:H[2],type:"curr"},d.monthsData[K],!0)}):q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let L=d.monthsData[d.monthsData.length-1],W=L.cssHeight+L.cssScrollHeight;no(()=>{u?.value&&m?.value&&T?.value&&(b.value=u.value.clientHeight,m.value.style.height=`${W}px`,u.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(W/(d.monthsNum+1))}});const j=(_,M)=>{_>=3?M>0&&M<_?d.defaultRange=[M-1,M+3]:M==0?d.defaultRange=[M,M+4]:M==_&&(d.defaultRange=[M-2,M+2]):d.defaultRange=[0,_+2];let L=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=L},Y=(_,M)=>(e.type=="range"||e.type=="week")&&_.type=="curr"&&E(_,M)=="fox-calendar__day--active",Z=(_,M)=>Y(_,M)&&I(V(_,M)),te=(_,M)=>d.currDate.length>=2&&A(V(_,M))?Y(_,M):!1,oe=()=>{if(d.currDate.length>=2)return Q.isEqual(d.currDate[0],d.currDate[1])},re=_=>{const M=`${_.year}-${_.month}-${Number(_.day)<10?"0"+_.day:_.day}`;return Q.isEqual(M,Q.date2Str(new Date))},X=_=>{if(d.monthsData.length<=1)return;const M=_.target.scrollTop;let L=Math.floor(M/d.avgHeight);if(L==0)M>=d.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<d.monthsNum-1)M>=d.monthsData[L+1].cssScrollHeight&&(L+=1),M<d.monthsData[L].cssScrollHeight&&(L-=1);else{const W=Math.round(M+b.value);W<d.monthsData[L].cssScrollHeight+d.monthsData[L].cssHeight&&M>d.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=d.monthsNum&&W>=d.monthsData[L+1].cssScrollHeight+d.monthsData[L+1].cssHeight&&(L+=1),L>=1&&M<d.monthsData[L-1].cssScrollHeight&&(L-=1)}d.currentIndex!==L&&(d.currentIndex=L,j(d.monthsNum,L)),d.yearMonthTitle=d.monthsData[L].title},le=()=>{d.chooseData.splice(0),d.monthsData.splice(0),N()};return N(),t.watch(()=>e.defaultValue,_=>{_&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:i,weeks:f,compConthsData:y,showTopBtn:w,topInfo:h,bottomInfo:p,rangeTip:oe,mothsViewScroll:X,getClass:E,isStartTip:Z,isEndTip:te,chooseDay:q,isCurrDay:re,confirm:D,months:u,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:g,viewArea:T}}}),Vc={class:"fox-calendar__header"},Bc={key:0,class:"fox-calendar__header-title"},Ic={key:1,class:"fox-calendar__header-slot"},Ac={key:2,class:"fox-calendar__header-subtitle"},Oc={class:"fox-calendar__weekdays",ref:"weeksPanel"},Rc={class:"fox-calendar__panel",ref:"monthsPanel"},Fc={class:"fox-calendar__days"},Lc=["onClick"],Mc={class:"fox-calendar__day-value"},Pc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},qc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},zc={key:2,class:"fox-calendar__day-tips--curr"},_c={key:4,class:"fox-calendar__day-tip"},jc={key:0,class:"fox-calendar__footer"};function Hc(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",Vc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ic,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ac,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Oc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Rc,[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,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(s.title),5),t.createElementVNode("view",Fc,[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(s.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),style:t.normalizeStyle(e.dayCellStyle),onClick:u=>e.chooseDay(c,s)},[t.createElementVNode("view",Mc,[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",Pc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",qc,[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",zc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(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,s)?(t.openBlock(),t.createElementBlock("view",_c,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Lc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",jc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Aa=ue(Nc,[["render",Hc]]),{create:Kc}=ee("calendar-picker"),Yc=Kc({components:{[Aa.name]:Aa,[Ye.name]:Ye},props:{...jn},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),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=y=>{i.value?.scrollToDate(y)},f=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),me({scrollToDate:c,initPosition:f});const u=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:u,close:m,select:y=>{n("select",y)},choose:y=>{m(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Wc(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,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(s,{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(s,{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 Hn=ue(Yc,[["render",Wc]]),Kn=(e,n)=>{let a;return Le(e)?a=e:typeof e=="string"&&Be(e)>0?a=Q.parser(e,n):a=new Date,a},lt=(e,n,a)=>(Le(n)||(n=new Date),Q.format(n,a)),rt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=Q.date2Str(e),r=Q.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]},Oa={...jn,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 Uc(e,n,a){return{props:{...he,...ve,...Oa},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=t.computed(()=>o.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),y=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},w=(N,z="one",k="YYYY-MM-DD")=>{if(Dc(N)){y();return}if(T.value&&Array.isArray(N)&&N.length==2){let R,j;typeof N[0]=="string"?(R=Kn(N[0],k),j=Kn(N[1],k)):(R=N[0],j=N[1]);let Y=rt(R),Z=rt(j);(b.startDate===null||b.startDate.getTime()!==R.getTime()||b.endDate?.getTime()!==j.getTime())&&(b.startDate=R,b.startArray=Y,b.endDate=j,b.endArray=Z)}else{let R;typeof N=="string"?R=Kn(N,k):R=N;let j=rt(R);(b.startDate===null||b.startDate.getTime()!==R.getTime())&&(b.startDate=R,b.startArray=j)}};w(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,N=>{w(N,o.type,o.valueFormat)});const h=t.computed(()=>{if(b.startDate===null)return"";if(T.value){let N=lt(o,b.startDate,o.format),z=lt(o,b.endDate,o.format);return`${N} ${o.rangeSeparator} ${z}`}else{let N=lt(o,b.startDate,o.format);return o.showWeek&&(N=`${N} ${b.startArray[4]}`),N}}),p=t.computed(()=>{if(b.startDate===null)return null;if(T.value){let N=Q.date2Str(b.startDate),z=Q.date2Str(b.endDate??new Date);return[N,z]}else return Q.date2Str(b.startDate)}),d="fox-input-item",B=t.computed(()=>({[d]:!0,[`${d}__disabled`]:r.value})),I=Ne(t.computed(()=>o.textAlign),"textAlign"),A=t.computed(()=>({textAlign:I.value??"right"})),O=t.ref(!1),V=()=>{s.value||r.value||(O.value=!0)},E=()=>{O.value=!1},D=N=>{O.value=N},q=N=>{if(N){if(T.value&&Array.isArray(N)){let z=N[0],k=se(z[0]),R=se(z[1]),j=se(z[2]),Y=new Date(k,R-1,j),Z=N[1];k=se(Z[0]),R=se(Z[1]),j=se(Z[2]);let te=new Date(k,R-1,j);if(b.startDate=Y,b.startArray=rt(Y),b.endDate=te,b.endArray=rt(te),o.valueFormat){let oe=lt(o,Y,o.valueFormat),re=lt(o,te,o.valueFormat);i("update:modelValue",[oe,re],{})}else i("update:modelValue",[Y,te],{})}else{let z=N,k=se(z[0]),R=se(z[1]),j=se(z[2]),Y=new Date(k,R-1,j);if(b.startDate=Y,b.startArray=rt(Y),o.valueFormat){let Z=lt(o,Y,o.valueFormat);i("update:modelValue",Z,{})}else i("update:modelValue",Y,{})}i("change",N,{})}},F=N=>{let k=N.target.value;g.value=!0,i("focus",k,N)},C=N=>{setTimeout(()=>{g.value=!1},0);let k=N.target.value;o.maxLength&&k.length>Number(o.maxLength)&&(k=k.slice(0,Number(o.maxLength))),i("blur",k,N)},$=t.computed(()=>Be(o.unit)>0),x=N=>{y(),i("update:modelValue",null,N),i("change","",N),i("clear","")},P=t.ref();return me({showPicker:V,hidePicker:E,focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const N={class:B.value,style:A.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,clearable:o.clearable,value:h.value,onClick:V,onFocus:F,onBlur:C,onClear:x},z={};l.slots.prepend&&(z.prepend=l.slots.prepend),l.slots.append&&(z.append=l.slots.append),l.slots.prefix?z.prefix=l.slots.prefix:z.prefix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.Calendar)}),l.slots.suffix?z.suffix=l.slots.suffix:$.value&&(z.suffix=()=>[o.unit]);const k=[],R=t.h(v.ElInput,N,z);k.push(R);const j={default:()=>k};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const Y=ht(o,jn);Y.visible=O.value,Y["onUpdate:visible"]=D,Y["default-value"]=p.value,Y.onChoose=q;const Z={};if(l.slots.btn){const le=l.slots.btn();Z.btn=()=>le}l.slots.day&&(Z.day=l.slots.day),l.slots.topInfo&&(Z.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(Z.bottomInfo=l.slots.bottomInfo);const te=t.h(Hn,Y,Z);j.hide=()=>[te];const re={...Ce(o,Oa),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,re,j)}}}}const{componentName:Gc,create:Xc,scope:Zc}=ee("calendar-item"),Ra=Xc(Uc(Gc,Zc,we)),Fa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Jc(e,n,a){return{props:{...he,...ve,...Fa},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),b=A=>{m.value=A,i("update:modelValue",A),i("change",A)};let y=ie(o,"hintText"),w=t.ref(!1);const h=A=>{let V=A.target.value;u.value=!0,pe(y.value)||(w.value=!0),i("focus",V,A)},p=A=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let V=A.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),i("blur",V,A)},d=()=>{i("clear","")},B=A=>{i("visible-change",A)},I=t.ref();return me({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const O={...l.attrs,ref:I,class:T.value,placeholder:f.placeholder.value,disabled:r.value,readonly:s.value,modelValue:m.value,"onUpdate:modelValue":b,onClear:d,onFocus:h,onBlur:p,onVisibleChange:B},V={},E=[],D=t.h(v.ElTimePicker,O,V);E.push(D);const q={default:()=>E};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const C={...Ce(o,Fa),hintText:y.value,hintVisible:w.value,prop:`${o.prop}_item`};return t.h(a,C,q)}}}}const{componentName:Qc,create:eu,scope:tu}=ee("time-item"),La=eu(Jc(Qc,tu,we)),Ma={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function nu(e,n,a){return{props:{...he,...ve,...Ma},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),b=I=>{m.value=I,i("update:modelValue",I),i("change",I)};let y=ie(o,"hintText"),w=t.ref(!1);const h=I=>{let O=I.target.value;u.value=!0,pe(y.value)||(w.value=!0),i("focus",O,I)},p=I=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let O=I.target.value;o.maxLength&&O.length>Number(o.maxLength)&&(O=O.slice(0,Number(o.maxLength))),i("blur",O,I)},d=()=>{i("clear","")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const A={...l.attrs,ref:B,class:T.value,placeholder:f.placeholder.value,disabled:r.value,readonly:s.value,modelValue:m.value,"onUpdate:modelValue":b,onClear:d,onFocus:h,onBlur:p},O={},V=[],E=t.h(v.ElTimeSelect,A,O);V.push(E);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const F={...Ce(o,Ma),hintText:y.value,hintVisible:w.value,prop:`${o.prop}_item`};return t.h(a,F,D)}}}}const{componentName:ou,create:au,scope:lu}=ee("time-select-item"),Pa=au(nu(ou,lu,we));function qa(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 za(e,n,a=20){if(typeof n=="string"&&(n=se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=so(`${e}`,`${n}`);return qa(o)}else{let o=hn(`${e}`,co(`${n}`),20);return qa(o)}}function ru(e,n=-1,a=!1,o=3,l=","){return Nt(e,n,a,o,l)}function _a(e,n,a,o,l=!0){if(e=="")return"";if(e=uo(e),n=se(n),n==1)return e;if(o)e=za(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(se(a)+2,"0"):e=hn(e,1,se(a)));else{let r=-1*n;e=za(e,r)}return e}function ja(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ne(n.minInclude),l=gn(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=ne(n.maxInclude),l=gn(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ha={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 iu(e,n,a){return{props:{...he,...ve,...Ha},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(!1),f=ie(o,"modelValue"),u=t.ref("");t.watch([()=>f.value,()=>o.rates,()=>o.precision],([C,$,x])=>{if(pe(C)){u.value="";return}const P=_a(C,$,x,!1);u.value!==P&&(u.value=P)},{immediate:!0});const m=t.computed(()=>{let C="";return c.value&&(C=u.value),C}),{t:g}=Ee.useFoxI18n(n),T=t.computed(()=>{let C=o.placeholder??"";return!c.value&&!pe(u.value)?C=ru(u.value,o.decimalLength,o.autoPadding,o.digits,o.separator):C=g(["placeholder",C]),C}),b=e,y=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__placeholder`]:u.value.length>0})),w=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:w.value??"right"});const h=t.ref(""),p=t.computed(()=>{let C=h.value;return pe(C)&&(C=o.errorTip??""),C}),d=t.ref(""),B=t.ref(!1),I=(C,$)=>{if(C=`${C}`,pe(C)){u.value="",f.value="",$.forEach(x=>{i(x,"")}),ne(o.showTip)&&B.value&&(B.value=!1);return}if(C.length>=2){let x=C;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){t.triggerRef(u);return}}if(C!="-"){if(!Co(C)){t.triggerRef(u);return}if(o.integerLength!=-1&&vo(C)>Number(o.integerLength)){t.triggerRef(u);return}if(o.decimalLength&&o.decimalLength!=-1&&ko(C)>Number(o.decimalLength)){t.triggerRef(u);return}let x=ja(C,o);if(x.maxValid===!1){h.value=x.message,t.triggerRef(u);return}}else if(o.min!=null&&se(o.min)>=0){t.triggerRef(u);return}d.value=C,ne(o.showTip)&&(B.value=C.length>0),u.value=C,f.value=_a(C,o.rates,o.precision,!0),$.forEach(x=>{i(x,f.value)})},A=C=>{I(C,["update:modelValue","input"])},O=C=>{I(C,["update:modelValue","change"])},V=C=>{if(c.value=!0,ne(o.showTip)){let $=u.value;pe($)&&($=o.hintText),pe($)||(d.value=$,B.value=!0)}h.value="",i("focus",f.value,C)},E=C=>{if(setTimeout(()=>{c.value=!1,ne(o.showTip)&&B.value===!0&&(B.value=!1)},0),!pe(u.value)){let $=ja(u.value,o);if($.minValid===!1||$.maxValid===!1){h.value=$.message;return}}i("update:modelValue",f.value,C),i("blur",f.value,C)},D=()=>{i("clear","")},q=t.computed(()=>Be(o.unit)>0),F=t.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const $={...l.attrs,ref:F,class:y.value,type:"digit",maxlength:o.maxLength,placeholder:T.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:D,onInput:A,onChange:O,onFocus:V,onBlur:E},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:q.value&&(x.suffix=()=>[o.unit]);const P=[],N=t.h(v.ElInput,$,x);P.push(N);const z={default:()=>P};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const R={...Ce(o,Ha),errorTip:p.value,hintText:d.value,hintVisible:B.value,hintType:"number",prop:`${o.prop}_item`};return t.h(a,R,z)}}}}const{componentName:su,create:cu,scope:uu}=ee("money-item"),Ka=cu(iu(su,uu,we)),Ya={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 du(e,n,a){return{props:{...he,...ve,...Ya},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__append`]:A.value})),b=t.computed(()=>({[`${g}__unit`]:!0})),y=V=>{m.value=V,i("update:modelValue",V),i("input",V)},w=V=>{i("change",V)};let h=ie(o,"hintText"),p=t.ref(!1);const d=V=>{let D=V.target.value;u.value=!0,pe(h.value)||(p.value=!0),i("focus",D,V)},B=V=>{setTimeout(()=>{p.value&&(p.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))),i("blur",D,V)},I=()=>{i("clear","")},A=t.computed(()=>Be(o.unit)>0),O=t.ref();return me({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const E={...l.attrs,ref:O,class:T.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:I,onChange:w,onInput:y,onFocus:d,onBlur:B},D={},q=[],F=t.h(v.ElInputNumber,E,D);q.push(F);const C={default:()=>q};l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip);const x={...Ce(o,Ya),hintText:h.value,hintVisible:p.value,prop:`${o.prop}_item`};if(l.slots.append)C.append=l.slots.append;else if(A.value){const N={class:b.value},z=t.h("div",N,[o.unit]);C.append=()=>z}return t.h(a,x,C)}}}}const{componentName:fu,create:mu,scope:hu}=ee("input-number-item"),Wa=mu(du(fu,hu,we));function vt(e,n){const a=e.textKey??"text";return n[a]??""}function kt(e,n){const a=e.valueKey??"value";return n[a]}function Ua(e,n){const a=e.childrenKey??"children";return n[a]}function Xt(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=vt(e,l),s=kt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Ga(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(vt(e,n[s])===r){const c=kt(e,n[s])??"",f={[e.textKey]:r,[e.valueKey]:c};l.push(f);const u=Ua(e,n[s]);Array.isArray(u)&&Ga(e,u,a,o+1,l);return}}function Xa(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(kt(e,n[s])===r){const c=vt(e,n[s])??"",f={[e.textKey]:c,[e.valueKey]:r};l.push(f);const u=Ua(e,n[s]);Array.isArray(u)&&Xa(e,u,a,o+1,l);return}}function Yn(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=vt(e,n[o]),r=vt(e,a[o]);if(l!==r)return!1;const s=kt(e,n[o]),i=kt(e,a[o]);if(s!==i)return!1}return!0}let gu=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=Oe(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ie(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function pu(){const e=t.getCurrentInstance();return new gu(e.proxy)}const Zt=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:f,...u}=o,m={loading:!1,...u,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:f,_parent:n};return m.children&&m.children.length&&(m.children=Zt(m.children,m,a)),m}),Za=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Za(o.children,n)},yu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},bu=(e,n)=>{const a={...yu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(f=>{f={...f};const{[l]:u,[r]:m}=f,g=c[m]=c[m]||[];!i.length&&m===o&&(i=g),g.push(f),f.children=c[u]||(c[u]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((u,m)=>u[s]-m[s])}),c=null,i},Su=/scroll|auto|overlay/i,wu=window;function Cu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ja(e,n=wu){let a=e;for(;a&&a!==n&&Cu(a);){const{overflowY:o}=window.getComputedStyle(a);if(Su.test(o))return a;a=a.parentNode}return n}const{create:vu}=ee("sticky"),ku=vu({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)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=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 f=e.container;if(!a.value&&!f)return;const u=Ke(a),m=o.value,g=Ke(m),T=Ke(f);l.height=u.height;const b=()=>{let w=!1;if(e.position==="top")w=f?r.value>u.top&&T.bottom>0:r.value>u.top;else{const h=document.documentElement.clientHeight;w=f?T.bottom>0&&h-r.value-g.height>T.top:h-r.value<u.bottom}return w},y=()=>{if(f)if(e.position==="top"){const w=T.bottom-r.value-g.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,h=T.bottom-(w-r.value);return h<0?h:0}return 0};l.transform=y(),l.fixed=b()};return t.watch(()=>l.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),Ja(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Ja(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function Tu(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 Jt=ue(ku,[["render",Tu]]),$u=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let g=await o(l,a);r.value.width=g.width||0,r.value.height=g.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ln();let f="";const u=(g,T)=>{let b=g;switch(e.direction=="horizontal"?(f=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(f=T>0?"bottom":"top",b=T,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),f){case"left":case"top":n.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),i.moving=!0,u(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(i.moving)switch(i.moving=!1,f){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Du{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Eu}=ee("ext-tabs"),xu=Eu({components:{[Jt.name]:Jt,JoySmile:Gr},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([]),s=E=>{E.forEach((D,q)=>{let F=D.type;if(F=F.name||F,F=="fox-ext-tab-pane"){let C=new Du;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let $=et(D.props?.["pane-key"]),x=$=="number"||$=="string"?String(D.props?.["pane-key"]):null,P=et(D.props?.paneKey),N=P=="number"||P=="string"?String(D.props?.paneKey):null;C.title=D.props?.title,C.paneKey=x||N||String(q),C.disabled=D.props?.disabled}r.value.push(C)}else{if(D.children==" ")return;Array.isArray(D.children)&&s(D.children)}})},i=t.ref(e.modelValue||0),c=E=>{let D=r.value.findIndex(q=>q.paneKey==E);r.value.length==0||D==-1||(i.value=D)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),u=t.ref(),m=t.ref([]),g=E=>{const D=u.value,q=m.value;if(!D||!q||!q[i.value])return;const F=q[i.value];let C=0;e.direction==="vertical"?C=F.offsetTop-D.offsetTop+10-(D.offsetHeight-F.offsetHeight)/2:C=F.offsetLeft-(D.offsetWidth-F.offsetWidth)/2,T(D,C,E?0:.3,e.direction)},T=(E,D,q,F)=>{let C=0;const $=F==="horizontal"?E.scrollLeft:E.scrollTop,x=q===0?1:Math.round(q*1e3/16);function P(){F==="horizontal"?E.scrollLeft+=(D-$)/x:E.scrollTop+=(D-$)/x,++C<x&&fo(P)}P()},b=(E=a.default?.())=>{r.value=[],E=E?.filter(D=>typeof D.children!="string"),E&&E.length&&s(E),c(e.modelValue),t.nextTick(()=>{g()})},y=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{b(E)});const w=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),g(),l){let D=Ke(o.value).top+w(),q=Math.ceil(D-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const h={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,h.updateValue(r.value[i.value])},prev:()=>{i.value-=1,h.updateValue(r.value[i.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,D)=>{n("click",E),!(E.disabled||i.value==D)&&(i.value=D,h.updateValue(E))},setTabItemRef:(E,D)=>{m.value[D]=E}},{tabsContentRef:p,touchState:d,touchMethods:B}=$u(e,h),I=t.computed(()=>{let E=i.value*100;d.moving&&(E+=d.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:d.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),A=t.computed(()=>({background:e.background})),O=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const E=Se(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}});return{navRef:u,tabsContentRef:p,titles:r,contentStyle:I,tabsNavStyle:A,titleStyle:V,tabsActiveStyle:O,container:o,getScrollY:f,onStickyScroll:y,...h,...B}}}),Nu=["onClick"],Vu=["onClick"];function Bu(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=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(i,{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:u=>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(s,{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,Nu))),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:u=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:u=>e.setTabItemRef(u,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(s,{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,Vu))),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 Qt=ue(xu,[["render",Bu]]),{create:Iu}=ee("ext-tab-pane"),Au=Iu({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 Ou(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 en=ue(Au,[["render",Ou]]);class Qa{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Zt(n,null,this.config)}updateChildren(n,a){a?a.children=Zt(n,a,this.config):this.nodes=Zt(n,null,this.config)}getNodeByValue(n){let a;return Za(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:Ru,scope:Fu}=ee("cascader-pane"),Lu=Ru({components:{Loading:zr,Checklist:oi,[Qt.name]:Qt,[en.name]:en},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),s=t.ref(new Qa([],{})),i=t.ref([]),c=t.computed(()=>a.value.lazy&&!!a.value.lazyLoad),f=new Map;let u;const m=async()=>{f.clear(),i.value=[],o.value=0,l.value=!1,u=null;let{options:h}=e;a.value.convertConfig&&(h=bu(h,a.value.convertConfig)),s.value=new Qa(h,{value:a.value.valueKey,text:a.value.textKey,children:a.value.childrenKey}),c.value&&!s.value.nodes.length&&await T({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],g()},g=async()=>{const h=r.value;if(h===void 0||!s.value.nodes.length)return;if(h.length===0){o.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=h;if(c.value&&Array.isArray(h)&&h.length){p=[];let d=s.value.nodes.find(B=>B.value===h[0]);if(d){p=[d.value],l.value=!0;const B=await h.slice(1).reduce(async(I,A)=>{const O=await I;await T(O);const V=O?.children?.find(E=>E.value===A);return V&&p.push(A),Promise.resolve(V)},Promise.resolve(d));await T(B),l.value=!1}}p.length&&h===e.modelValue&&s.value.getPathNodesByValue(p).map((B,I)=>{o.value=I,w.handleNode(B,!0)})},T=async h=>{if(!h)return;if(!a.value.lazyLoad){h.leaf=!0;return}if(s.value.isLeaf(h,c.value)||s.value.hasChildren(h,c.value))return;h.loading=!0;const p=h.root?null:h;let d=f.get(h);d||(d=new Promise(I=>{a.value.lazyLoad?.(h,I)}),f.set(h,d));const B=await d;Array.isArray(B)&&B.length>0?s.value.updateChildren(B,p):h.leaf=!0,h.loading=!1,f.delete(h)},b=h=>{const p=h.map(d=>d.value);r.value=p,n("change",p,h),n("update:modelValue",p,h)},{t:y}=Ee.useFoxI18n(Fu),w={async handleNode(h,p){const{disabled:d,loading:B}=h;if(!(!p&&d||!i.value[o.value])){if(s.value.isLeaf(h,c.value)){if(h.leaf=!0,i.value[o.value].selectedNode=h,i.value=i.value.slice(0,h.level+1),!p){const I=i.value.map(A=>A.selectedNode);b(I),n("pathChange",I)}return}if(s.value.hasChildren(h,c.value)){const I=h.level+1;if(i.value[o.value].selectedNode=h,i.value=i.value.slice(0,I),i.value.push({nodes:h.children||[],selectedNode:null}),o.value=I,!p){const A=i.value.map(O=>O.selectedNode);n("pathChange",A)}return}u=h,!B&&(await T(h),u===h&&(i.value[o.value].selectedNode=h,w.handleNode(h,p)))}},handleTabClick(h){u=null,o.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:y("select")},isSelected(h,p){return h.selectedNode&&h.selectedNode.value===p.value}};return t.watch([a,()=>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:i,initLoading:l,tabsCursor:o,...w}}}),Mu={role:"menu",class:"fox-cascader__pane"},Pu=["aria-checked","aria-disabled","onClick"],qu={class:"fox-cascader__item__title"},zu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function _u(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=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]=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",Mu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,g),disabled:g.disabled}]),"aria-checked":e.isSelected(u,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:T=>e.handleNode(g,!1)},[t.createElementVNode("view",qu,t.toDisplayString(g.text),1),g.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Pu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[zu]),_:1}))]),_:1},8,["modelValue","onClick"])}const el=ue(Lu,[["render",_u]]),{create:ju}=ee("cascader-picker"),Hu=ju({components:{[el.name]:el,[Ye.name]:Ye},props:{...Rn,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(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),Ku=["innerHTML"];function Yu(e,n,a,o,l,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{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,Ku)):t.createCommentVNode("",!0),t.createVNode(s,{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(s,{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 Wn=ue(Hu,[["render",Yu]]),tl={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 Wu(e,n,a){return{props:{...he,...ve,...tl},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=pu(),b=t.ref([]);t.watch([()=>o.source,()=>o.params],async([P,N])=>{P&&(b.value=await T.load(P,N))},{immediate:!0});const y=t.ref([]),w=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),h=t.ref([]),p=t.ref([]);t.watch([()=>o.modelValue,b],async([P,N])=>{if(o.lazy===!0){p.value.length==0&&(y.value=Array.isArray(P)?P:[],h.value=Array.isArray(P)?P:[]);return}if(o.valueType==="item"){let z=P;if(!Yn(o,z,p.value)){p.value=z;let k=Xt(o,z);y.value=k.texts,h.value=k.values}}else if(o.valueType==="text"){let z=P,k=[];if(Ga(o,N,z,0,k),!Yn(o,k,p.value)){p.value=k;let R=Xt(o,k);z.value=R.texts,h.value=R.values}}else{let z=P,k=[];if(Xa(o,N,z,0,k),!Yn(o,k,p.value)){p.value=k;let R=Xt(o,k);y.value=R.texts,z.value=R.values}}});const d=e,B=t.computed(()=>({[d]:!0})),I=Ne(t.computed(()=>o.textAlign),"textAlign"),A=t.computed(()=>({textAlign:I.value??"right"})),O=t.ref(!1),V=()=>{r.value===!0||s.value===!0||(O.value=!0)},E=P=>{O.value=P},D=(P,N)=>{let z=N.map(R=>{if(R==null)return R;let j={...R};return Reflect.deleteProperty(j,"text"),j[o.textKey]=R.text??"",Reflect.deleteProperty(j,"value"),j[o.valueKey]=R.value??"",j});p.value=z;let k=Xt(o,z);y.value=k.texts,h.value=k.values,o.valueType==="text"?(i("change",y.value,z),i("update:modelValue",y.value)):o.valueType==="item"?(i("change",z,z),i("update:modelValue",z)):(i("change",h.value,z),i("update:modelValue",h.value)),i("update:pathNodes",z)},q=P=>{let N=P.map(z=>{if(z==null)return z;let k={...z};return Reflect.deleteProperty(k,"text"),k[o.textKey]=z.text??"",Reflect.deleteProperty(k,"value"),k[o.valueKey]=z.value??"",k});i("pathChange",N)},F=P=>{g.value=!0,i("focus",h.value,P)},C=P=>{setTimeout(()=>{g.value=!1},0),i("blur",h.value,P)},$=t.computed(()=>Be(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!s.value);const x=t.ref();return me({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()}}),()=>{const P={class:B.value,style:A.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,value:w.value,onClick:V,onFocus:F,onBlur:C},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:$.value?N.suffix=()=>[o.unit]:N.suffix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.ArrowDown)});const z=[],k=t.h(v.ElInput,P,N);z.push(k);const R={default:()=>z};l.slots.default&&(R.label=l.slots.default),l.slots.fixedTip&&(R.fixedTip=l.slots.fixedTip);let j={};j.visible=O.value,j["onUpdate:visible"]=E,j.modelValue=h.value,j.onChange=D,j.onPathChange=q,j.options=b.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 Y=t.h(Wn,j);R.hide=()=>[Y];const te={...Ce(o,tl),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,te,R)}}}}const{componentName:Uu,create:Gu,scope:Xu}=ee("cascader-item"),nl=Gu(Wu(Uu,Xu,we)),ol={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zu(e,n,a){return{props:{...he,...ve,...ol},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),b=O=>{m.value=O,i("update:modelValue",O),i("input",O)},y=O=>{i("change",O)},w=O=>{i("select",O)};let h=ie(o,"hintText"),p=t.ref(!1);const d=O=>{let E=O.target.value;u.value=!0,pe(h.value)||(p.value=!0),i("focus",E,O)},B=O=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let E=O.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),i("blur",E,O)},I=()=>{i("clear","")},A=t.ref();return me({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const V={...l.attrs,ref:A,class:T.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,onClear:I,onChange:y,onInput:b,onFocus:d,onBlur:B,onSelect:w},E={};l.slots.prepend&&(E.prepend=l.slots.prepend),l.slots.append&&(E.append=l.slots.append),l.slots.prefix&&(E.prefix=l.slots.prefix),l.slots.suffix&&(E.suffix=l.slots.suffix),l.slots.option&&(E.default=l.slots.option);const D=[],q=t.h(v.ElAutocomplete,V,E);D.push(q);const F={default:()=>D};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const $={...Ce(o,ol),hintText:h.value,hintVisible:p.value,prop:`${o.prop}_item`};return t.h(a,$,F)}}}}const{componentName:Ju,create:Qu,scope:ed}=ee("autocomplete-item"),al=Qu(Zu(Ju,ed,we));function td(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let f=0;c&&f<r.length;f++){let u=r[f],m=c.find(g=>g[o]===u);if(!m)break;s.push(m[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],u=r[c];const m=f.find(g=>g[o]===u);if(!m)break;s.push(m[a])}else{let c=n;for(let f=0;c&&f<r.length;f++){let u=r[f],m=c.find(g=>g[o]===u);if(!m)break;s.push(m[a]),c=m[l]}}return s}let nd=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=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function od(){const e=t.getCurrentInstance();return new nd(e.proxy)}const ll={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 ad(e,n){return{props:{...ll},setup(a,{attrs:o,slots:l}){const r=od(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([f,u])=>{s.value=await r.load(a.sourceType,f,u)},{immediate:!0});const i=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=td(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),c=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const f={...o};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?t.h(a.emptyTag??"span",{...o,class:a.emptyClass},i.value):t.h(c,f,{default:()=>i.value}):t.h(c,f,i.value)}}}}const{componentName:Qm,create:ld,scope:eh}=ee("mapping"),tn=ld(ad());function rd(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let f=r.substring(i+1,c);if(/^\d+$/.test(f)){let u=parseInt(f);if(s==0){let m=r.substring(0,i);o=o[m][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function id(e,n){return{props:{...ll},setup(a,{attrs:o,slots:l}){return()=>{const r={default:s=>{const i=rd(s.row,s.column.property);return l.default?t.h(tn,{...a,modelValue:i},{default:l.default}):t.h(tn,{...a,modelValue:i})}};return t.h(v.ElTableColumn,{...o},r)}}}}const{componentName:th,create:sd,scope:nh}=ee("table-mapping-column"),rl=sd(id()),cd=Symbol.for("TableStateKey");function il(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let f=r.substring(i+1,c);if(/^\d+$/.test(f)){let u=parseInt(f);if(s==0){let m=r.substring(0,i);o=o[m][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function ud(e,n){return{props:{},setup(a,{attrs:o}){const l=t.inject(cd,{});return()=>{const r=l.currentRow?l.currentRow.value:null,s={default:i=>{const c=il(i.row,i.column.property),f=r?il(r,i.column.property):null,u=c===f,m={class:{"el-radio__input":!0,"is-checked":u}},g=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":u}};return t.h("label",T,[g])}};return t.h(v.ElTableColumn,{...o},s)}}}}const{componentName:oh,create:dd,scope:ah}=ee("table-radio-column"),sl=dd(ud()),fd={},md={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"},hd=[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 gd(e,n){return t.openBlock(),t.createElementBlock("svg",md,hd)}const pd=ue(fd,[["render",gd]]),{componentName:rh,create:yd,scope:ih}=ee("table-setting"),bd={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:"不固定"}},Sd=yd({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:pd,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...bd},emits:["update:modelValue","change","close"],setup(e,{emit:n,attrs:a}){let o=[];const l=t.ref([]),r=t.computed(()=>l.value.filter(k=>k.label===""||k.type?!1:k.fixed===""||k.fixed===!0||k.fixed==="left")),s=t.computed(()=>l.value.filter(k=>k.label===""||k.type?!1:k.fixed==="right")),i=t.computed(()=>l.value.filter(k=>!(k.label===""||k.type||k.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||s.value.length>0)&&i.value.length>0),f=t.computed(()=>r.value.length>0),u=t.computed(()=>s.value.length>0),m=k=>k.length>1,g=k=>{const R=[];l.value=k.map((Y,Z)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&R.push(Y.prop),{...Y,sortIndex:Z})),i.value.length+r.value.length+s.value.length===R.length?p.value=!0:R.length>0&&(d.value=!0),A.value=R},T=k=>k?k.type?k.type:k.label?k.prop:"":"",b=(k,R)=>{if(k.length!==R.length)return!1;const j=k.map(Y=>T(Y));for(let Y of R){const Z=T(Y);if(j.indexOf(Z)===-1)return!1}return!0},y=k=>{if(!k){const R=e.tableRef.getColumnSetting(),j=R.srcColumnPropertyList;o=j.map((Y,Z)=>({...Y,sortIndex:Z})),k=R.columnPropertyList,k&&k.length>0&&b(j,k)||(k=j)}g(k)},w=()=>{e.tableRef.setColumnSetting(l.value)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),d=t.ref(!1),B=k=>{const R=[];l.value.forEach(Y=>{k&&!(Y.label===""||Y.type)&&R.push(Y.prop),Y.visible=k}),p.value=!1,d.value=!1,i.value.length+r.value.length+s.value.length===R.length?p.value=!0:R.length>0&&(d.value=!0),A.value=R,w()},I=()=>{y(o),w()},A=t.ref([]),O=k=>{l.value.forEach(j=>{if(j.label===""||j.type)return;const Y=k.indexOf(j.prop)!==-1;j.visible=Y}),p.value=!1,d.value=!1;const R=i.value.length+r.value.length+s.value.length;k.length===R?p.value=!0:k.length>0&&(d.value=!0),w()},V=()=>{y()};t.onMounted(()=>{setTimeout(()=>{y()},50)});const E={currentRow:null,index:null,roleType:null},D=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,D(k)):null:null;return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:c,isShowLeftFixedTitle:f,isShowRightFixedTitle:u,isDraggble:m,isCheckAll:p,isIndeterminate:d,handleCheckAllChange:B,handleReset:I,checkedValue:A,handleCheckChange:O,onShow:V,onDragStart:k=>{const R=k.currentTarget;R&&R.dataset&&(E.roleType=R.dataset.roleType,E.index=R.dataset.index)},onDragEnd:k=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},onDragOver:k=>{const R=k.currentTarget;k.relatedTarget;const j=D(R);if(!j)return;const Y=j.dataset&&j.dataset.roleType;E.roleType===Y&&(k.preventDefault(),E.currentRow&&E.currentRow!==j&&E.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),E.currentRow=j)},onDragLeave:k=>{k.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},onDrop:k=>{const R=k.currentTarget,j=D(R);if(!j)return;const Y=j.dataset&&j.dataset.roleType;if(E.roleType!==Y)return;k.preventDefault();const Z=Number(E.index),te=Number(j.dataset.index);if(Z!==te){if(Z<te){const oe=l.value[Z];l.value.splice(Z,1),l.value.splice(te,0,oe)}else{const oe=l.value[Z];l.value.splice(Z,1),l.value.splice(te+1,0,oe)}g(l.value),w()}},toLeftFixed:k=>{const R=l.value[k];R.fixed="left",w()},toRightFixed:k=>{const R=l.value[k];R.fixed="right",w()},toUnFixed:k=>{const R=l.value[k];R.fixed=void 0,w()},checkboxLabelStyle:h}}}),wd={class:"fox-table-setting"},Cd={class:"fox-table-setting__header"},vd={class:"fox-table-setting__body"},kd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Td={key:0,class:"fox-table-setting__body-title"},$d=["data-index","draggable"],Dd={class:"tools-item"},Ed={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},xd={key:0,class:"fox-table-setting__body-title"},Nd=["data-index","draggable"],Vd={class:"tools-item"},Bd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Id={key:0,class:"fox-table-setting__body-title"},Ad=["data-index","draggable"],Od={class:"tools-item"};function Rd(e,n,a,o,l,r){const s=t.resolveComponent("FoxCheckbox"),i=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),u=t.resolveComponent("FoxIcon"),m=t.resolveComponent("fox-tooltip"),g=t.resolveComponent("Download"),T=t.resolveComponent("fox-checkbox"),b=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",wd,[t.createElementVNode("div",Cd,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",vd,[t.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",kd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Td,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.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(s,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Dd,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(w.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(u,{onClick:h=>e.toRightFixed(w.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,$d))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Ed,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",xd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.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(s,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Vd,[t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(w.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(u,{onClick:h=>e.toRightFixed(w.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Nd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Bd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Id,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.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(T,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Od,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(w.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(u,{onClick:h=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ad))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Un=ue(Sd,[["render",Rd]]);let Fd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let f=(o-1)*l,u=f+l;u>a.length&&(u=a.length);const m=a.slice(f,u);return{totalSize:a.length,page:m}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s,i]);const c=Oe(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ie(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r,s,i]))}};function Ld(){const e=t.getCurrentInstance();return new Fd(e.proxy)}class Md{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const o=Oe(this.proxy,"tableSetting");return typeof o=="function"&&(a=await Reflect.apply(o,null,["load",n])),a}save(n,a){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,a])}remove(n){const a=Oe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Pd(){const e=t.getCurrentInstance();return new Md(e.proxy)}const qd=Symbol.for("TableStateKey");function zd(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let f=r.substring(i+1,c);if(/^\d+$/.test(f)){let u=parseInt(f);if(s==0){let m=r.substring(0,i);o=o[m][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function Gn(e,n){return e.filter(o=>{for(let l in n){const r=n[l],s=zd(o,l);if(r!==s)return!1}return!0})}const cl={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"}},ul={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}},Xn={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 _d(e,n,a){return{inheritAttrs:!1,props:{...he,...ve,...cl,...ul,...Xn},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:s}=be({componentName:e,validateHandler:{getValue(...H){return d.value}}},o.prop??l.attrs.name),i=e,c=t.computed(()=>({[i]:!0})),f=t.computed(()=>({[`${i}__setting`]:!0})),u=t.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,H=>{g.value=H});const T=H=>{g.value=H,s("page-index-change",H)},b=t.ref(o.pageSize);t.watch(()=>o.pageSize,H=>{b.value=H});const y=H=>{b.value=H,s("page-size-change",H)},w=t.shallowRef({}),h=t.computed(()=>({...w.value,...o.params??{},...o.baseParams??{}})),p=t.ref(0),d=t.ref(),B=Ld();let I=!0;const A=()=>Array.isArray(o.data)||typeof o.data=="function"?!0:ne(o.autoLoad),O=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",He.Near,H=>ne(H)),V=async(H,K,U,J)=>{try{const de=await B.load("table",H,K,U,J,I,r.value);p.value=de.totalSize,d.value=de.page}catch(de){console.error("[FoxUI] Load Table Data Fail",de),p.value=0,d.value=[]}I=!1,setTimeout(()=>{s("loaded-data")},250)};t.watch([g,b],([H,K],[U,J])=>{K!==J&&(g.value=1,H=1),V(o.data,H,K,h.value)}),t.watch([()=>o.data,h],([H,K],[U,J])=>{A()&&(H!==U&&(I=!0),!(!Array.isArray(H)&&Me(H,U)&&Me(K,J))&&V(H,g.value,b.value,K))},{deep:!0});const E=(H={},K=!1)=>new Promise(U=>{w.value=t.toRaw(H??{}),t.triggerRef(w),K||(g.value=o.pageIndex??1),t.nextTick(async()=>{await V(o.data,g.value,b.value,h.value),U()})}),D=()=>{p.value=0,d.value=[]};let q=!1;const F=()=>{q||(q=!0,E())};A()&&!O.value&&E();const C=t.ref(null);t.provide(qd,{currentRow:C});const $=(H,K)=>{C.value=H,s("current-change",H,K)},x=(H,K,U)=>{s("row-click",H,K,U),ne(o.rowClickSelectable)===!0&&G?.value.toggleRowSelection(H)},P=[],N=(H,K)=>{if(s("expand-change",H,K),ne(o.uniqueExpansion))if(Array.isArray(K)&&K.length==0){const U=P.length;P.splice(0,U)}else{P.forEach(J=>{J!==H&&G?.value.toggleRowExpansion(J,!1)});const U=P.length;P.splice(0,U,H)}},z=l.attrs.id??o.prop??l.attrs.name,k=Pd(),R=t.ref([]);let j=[];const Y=()=>({srcColumnPropertyList:j.map(K=>({...K})),columnPropertyList:R.value}),Z=H=>{R.value=[...H],oe()},te=async()=>{const H=await k.load(z);H&&(R.value=H)},oe=()=>{k.save(z,R.value)},re=()=>{k.remove(z)};te();const X=H=>H?H.type?H.type:H.label?H.prop:"":"",le=t.computed(()=>{if(typeof l.slots.default=="function"){const H=l.slots.default(),K=new Map;if(j=[],H.forEach(U=>{const J=U;if(!J.props)return;const de=X(J.props);K.set(de,U);const ge={label:"",prop:""};Object.assign(ge,J.props),j.push(ge)}),R.value.length===j.length){const U=[];for(let J of R.value){const de=X(J),ge=K.get(de);if(!ge)return H;if(J.visible===!1)continue;const dt=ge;dt.props.fixed=J.fixed,U.push(dt)}return U}return H}return[]}),_=t.shallowRef(new Map),M=({column:H,rowIndex:K})=>{const U=`${K}_${H.property}`;return _.value.get(U)??""},L=H=>typeof H=="function"?K=>{const U=[];let J=M(K);return J&&U.push(J),J=H(K),J&&U.push(J),U.length===0?"":U.join(" ")}:M,W=(H,K,U)=>{const J=`${H}_${K}`;U?_.value.set(J,U):_.value.delete(J),t.triggerRef(_)},G=t.ref();return me({clearSelection:()=>G?.value.clearSelection(),getSelectionRows:()=>G?.value.getSelectionRows(),toggleRowSelection:(H,K)=>{G?.value.toggleRowSelection(H,K)},toggleRowSelectionByProp:(H,K)=>{if(!d.value)return;const U=Gn(d.value,H);U.length!==0&&U.forEach(J=>{G?.value.toggleRowSelection(J,K)})},toggleAllSelection:()=>{G?.value.toggleAllSelection()},toggleRowExpansion:(H,K)=>{G?.value.toggleRowExpansion(H,K)},toggleRowExpansionByProp:(H,K)=>{if(!d.value)return;const U=Gn(d.value,H);U.length!==0&&U.forEach(J=>{G?.value.toggleRowExpansion(J,K)})},setCurrentRow:H=>{G?.value.setCurrentRow(H)},setCurrentRowByProp:H=>{if(!d.value)return;const K=Gn(d.value,H);K.length!==0&&G?.value.setCurrentRow(K[0])},getCurrentRow:()=>C.value,clearSort:()=>{G?.value.clearSort()},clearFilter:H=>{G?.value.clearFilter(H)},doLayout:()=>{G?.value.doLayout()},sort:(H,K)=>{G?.value.sort(H,K)},scrollTo:(H,K)=>{G?.value.scrollTo(H,K)},setScrollTop:H=>{G?.value.setScrollTop(H)},setScrollLeft:H=>{G?.value.setScrollLeft(H)},loadData:E,clearData:D,getData(){return d.value},getTotalSize(){return p.value},getPageIndex(){return g.value},getPageSize(){return b.value},getColumnSetting:Y,setColumnSetting:Z,removeColumnSetting:re,setCellClassName:W}),()=>{const K={...l.attrs,onCurrentChange:$,onRowClick:x,onExpandChange:N,data:d.value,ref:G,class:c.value,"cell-class-name":L(o.cellClassName)},U={};l.slots.default&&(U.default=()=>le.value),l.slots.append&&(U.append=l.slots.append),l.slots.empty&&(U.empty=l.slots.empty);const J=[],de=t.h(v.ElTable,K,U);J.push(de);let ge=null;if(typeof l.slots.pagination=="function")ge=l.slots.pagination();else if(o.showPagination){const Dt={class:m.value,total:p.value,pageSize:b.value,"onUpdate:pageSize":y,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":T,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};ge=t.h(v.ElPagination,Dt)}if(o.showSetting){const Dt=[];ge&&Dt.push(ge);const jm=t.h(v.ElIcon,{class:f.value},{default:()=>t.h(De.Setting)}),Hm=ht(o,Xn),Km=t.h(Un,{...Hm,tableRef:{getColumnSetting:Y,setColumnSetting:Z,removeColumnSetting:re}},{default:()=>jm});Dt.push(Km);const Ym=t.h("div",{class:u.value},Dt);J.push(Ym)}else ge&&J.push(ge);const dt={default:()=>J},$t={...Ce(o,cl,ul,Xn),prop:`${o.prop}_item`};return $t.contentClass=`${i}__wrap`,$t.errorMarkClass="is-table-error",O.value&&A()&&($t["appear-listen"]=!0,$t.onAppear=F),t.h(a,$t,dt)}}}}const{componentName:jd,create:Hd,scope:Kd}=ee("table-item"),dl=Hd(_d(jd,Kd,we));function it(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Tt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Wd=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=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Ud(){const e=t.getCurrentInstance();return new Wd(e.proxy)}function fl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=it(e,n),l=it(e,a);if(o!==l)return!1;const r=Tt(e,n),s=Tt(e,a);return r===s}function Gd(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 s=!1;if(a==="text")s=it(e,r)===n;else if(a==="item")s=fl(e,r,n);else{let i=Tt(e,r);i==null&&(i=it(e,r)),s=i===n}if(s){l=r;break}}return l}function Xd(e){return{text:e,value:e}}function Zd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const ml={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 Jd(e,n,a){return{inheritAttrs:!0,props:{...he,...ve,...ml},emits:["change","update:modelValue"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(null),f=t.ref(null),u=(O,V,E,D=!0)=>{const q=Gd(o,O,V,E);if(q===null){if(f.value===null)return;f.value=null,c.value=null,D&&(i("update:modelValue",null),i("change",null));return}if(!fl(o,q,f.value)){c.value=O;const C=t.toRaw(q);f.value=C;let $=null;o.valueType==="text"?$=it(o,C):o.valueType==="item"?$=C:$=Tt(o,C),D&&(i("update:modelValue",$),i("change",$))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",He.Near,O=>ne(O)),T=Ud(),b=async(O,V)=>{if(O){const E=await T.load("radio",O,V);if(E.length>0)if(typeof E[0]=="string"){let F=E.map(C=>Xd(C));m.value=F}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([O,V])=>{b(O,V)},{immediate:!g.value});let y=!1;const w=()=>{y||(y=!0,b(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([O,V])=>{u(V,o.valueType,O,!1)});const h=e,p=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),d=O=>{u(O,"value",m.value,!0)};let B=ie(o,"hintText"),I=ie(o,"hintVisible");const A=(O,V)=>{const E=[];return O.forEach((D,q)=>{const F=Tt(o,D),C=it(o,D);let $=Yd(o,D);r.value===!0&&($=r.value),s.value===!0&&($=s.value);const x=Zd(o,D,q)??{},P=`${F}_${q}`,N={...x,key:P,label:F,disabled:$,size:o.size,border:ne(o.border)};o.itemType==="button"?E.push(t.h(v.ElRadioButton,N,{default:()=>[C]})):typeof V=="function"?E.push(t.h(v.ElRadio,N,{default:()=>V(D)})):E.push(t.h(v.ElRadio,N,{default:()=>[C]}))}),E};return()=>{const V={...l.attrs,class:p.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:d},E=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>A(m.value,l.slots.text);const q=t.h(v.ElRadioGroup,V,D);E.push(q);const F={default:()=>E};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const $={...Ce(o,ml),hintText:B.value,hintVisible:I.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&($["appear-listen"]=!0,$.onAppear=w),t.h(a,$,F)}}}}const{componentName:Qd,create:ef,scope:tf}=ee("radio-item"),hl=ef(Jd(Qd,tf,we));function st(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function nf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class of{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=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function af(){const e=t.getCurrentInstance();return new of(e.proxy)}function gl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=st(e,n),l=st(e,a);if(o!==l)return!1;const r=ct(e,n),s=ct(e,a);return r===s}function lf(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 s of o){let i=!1;if(a==="text")i=st(e,s)===r;else if(a==="item")i=gl(e,s,r);else{let c=ct(e,s);c==null&&(c=st(e,s)),i=c===r}if(i){l.push(s);break}}}),l}function rf(e){return{text:e,value:e}}function sf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const pl={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 cf(e,n,a){return{inheritAttrs:!0,props:{...he,...ve,...pl},emits:["change","update:modelValue"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref([]),f=t.ref([]),u=(O,V,E,D=!0)=>{const q=lf(o,O,V,E);if(q===null){if(f.value===null||f.value.length===0)return;c.value=[],f.value=[],D&&(i("update:modelValue",[]),i("change",[]));return}let F=!0;if(q.length!==f.value.length)F=!1;else for(let C=0;C<q.length;C++){const $=q[C],x=f.value[C];if(!gl(o,$,x)){F=!1;break}}if(!F){f.value=q;let C=[],$=[];q.forEach(P=>{C.push(ct(o,P)),o.valueType==="text"?$.push(st(o,P)):o.valueType==="item"?$.push(P):$.push(ct(o,P))}),c.value=C;const x=t.toRaw($);D&&(i("update:modelValue",x),i("change",x))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",He.Near,O=>ne(O)),T=af(),b=async(O,V)=>{if(O){const E=await T.load("checkbox",O,V);if(E.length>0)if(typeof E[0]=="string"){let F=E.map(C=>rf(C));m.value=F}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([O,V])=>{b(O,V)},{immediate:!g.value});let y=!1;const w=()=>{y||(y=!0,b(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([O,V])=>{u(V,o.valueType,O,!1)});const h=e,p=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),d=O=>{u(O,"value",m.value,!0)};let B=ie(o,"hintText"),I=ie(o,"hintVisible");const A=(O,V)=>{const E=[];return O.forEach((D,q)=>{const F=ct(o,D),C=st(o,D);let $=nf(o,D);r.value===!0&&($=r.value),s.value===!0&&($=s.value);const x=sf(o,D,q)??{},P=`${F}_${q}`,N={...x,key:P,class:o.itemClass,label:F,disabled:$,size:o.size,border:ne(o.border)};o.itemType==="button"?E.push(t.h(v.ElCheckboxButton,N,{default:()=>[C]})):typeof V=="function"?E.push(t.h(v.ElCheckbox,N,{default:()=>V(D)})):E.push(t.h(v.ElCheckbox,N,{default:()=>[C]}))}),E};return()=>{const V={...l.attrs,class:p.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:se(o.max),min:se(o.min),onChange:d},E=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>A(m.value,l.slots.text);const q=t.h(v.ElCheckboxGroup,V,D);E.push(q);const F={default:()=>E};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const $={...Ce(o,pl),hintText:B.value,hintVisible:I.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&($["appear-listen"]=!0,$.onAppear=w),t.h(a,$,F)}}}}const{componentName:uf,create:df,scope:ff}=ee("checkbox-item"),yl=df(cf(uf,ff,we)),bl={modelValue:{type:[Number,String],required:!1}};function mf(e,n,a){return{props:{...he,...ve,...bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue",y=>se(y)),f=e,u=t.computed(()=>({[f]:!0})),m=y=>{i("update:modelValue",y),i("change",y)};let g=ie(o,"hintText"),T=t.ref(!1);const b=t.ref();return me({}),()=>{const w={...l.attrs,ref:b,class:u.value,readonly:s.value||r.value,modelValue:c.value,onChange:m},h={},p=[],d=t.h(v.ElRate,w,h);p.push(d);const B={default:()=>p};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const A={...Ce(o,bl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(a,A,B)}}}}const{componentName:hf,create:gf,scope:pf}=ee("rate-item"),Sl=gf(mf(hf,pf,we)),wl={modelValue:{type:[Boolean,String,Number],required:!1}};function yf(e,n,a){return{props:{...he,...ve,...wl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue"),f=e,u=t.computed(()=>({[f]:!0})),m=y=>{i("update:modelValue",y),i("change",y)};let g=ie(o,"hintText"),T=ie(o,"hintVisible");const b=t.ref();return me({}),()=>{const w={...l.attrs,ref:b,class:u.value,readonly:s.value,disabled:r.value,modelValue:c.value,onChange:m},h={},p=[],d=t.h(v.ElSwitch,w,h);p.push(d);const B={default:()=>p};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const A={...Ce(o,wl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(a,A,B)}}}}const{componentName:bf,create:Sf,scope:wf}=ee("switch-item"),Cl=Sf(yf(bf,wf,we)),vl={modelValue:{type:[String,Number,Boolean],required:!1}};function Cf(e,n,a){return{props:{...he,...ve,...vl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),i=t.ref(!1),{emitEvent:c}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),f=ie(o,"modelValue"),u=e,m=t.computed(()=>({[u]:!0})),g=I=>{c("update:modelValue",I),c("change",I)};let T=ie(o,"hintText"),b=t.ref(!1);const y=I=>{let O=I.target.value;i.value=!0,pe(T.value)||(b.value=!0),c("focus",O,I)},w=I=>{setTimeout(()=>{b.value&&(b.value=!1),i.value=!1},0);let O=I.target.value;o.maxLength&&O.length>Number(o.maxLength)&&(O=O.slice(0,Number(o.maxLength))),p.value||c("blur",O,I)},h=()=>{c("clear","")},p=t.ref(!1),d=I=>{p.value=I,c("visible-change",I),I||c("selected")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const A={...l.attrs,ref:B,class:m.value,disabled:r.value||s.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:h,onFocus:y,onBlur:w,onVisibleChange:d},O={};l.slots.option&&(O.default=l.slots.option);const V=[],E=t.h(v.ElTreeSelect,A,O);V.push(E);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const F={...Ce(o,vl),hintText:T.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(a,F,D)}}}}const{componentName:vf,create:kf,scope:Tf}=ee("tree-select-item"),kl=kf(Cf(vf,Tf,we)),$f=Symbol.for("InnerPageScopeKey"),Df=Symbol.for("PageWrapperKey");function Ef(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($f,!0);const l={};t.provide(Df,l);const r=c=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=t.ref(!0),i=c=>{s.value=c};return()=>{const f={...o.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"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(v.ElDialog,f,u)}}}}const{componentName:sh,create:xf,scope:ch}=ee("dialog-item"),Tl=xf(Ef());function Nf(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})),s=t.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=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}),f=t.computed(()=>a.color?{color:a.color}:null);return()=>{let u=null;if(o.mark)u=o.mark()[0];else{const y={class:s.value,style:i.value};u=t.h(a.icon??"div",y)}const m={class:c.value,style:f.value},g=o.default?o.default():[],T=t.h("div",m,g),b={class:r.value};return a.textPosition==="right"?t.h("div",b,[u,T]):t.h("div",b,[T,u])}}}}const{componentName:Vf,create:Bf,scope:uh}=ee("indicator"),$l=Bf(Nf(Vf));function If(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 Af={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 Of(e,n){return{props:{...Af},setup(a,o){const l=t.ref(!0),r=t.ref(null),s=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(g=>{u[g]=!0}),a.type&&(u[`${e}__${a.type}`]=!0),a.size&&(u[`${e}__${a.size}`]=!0),u}),i=u=>{if(u&&ne(a.showOverflowTooltip)){const m=u.clientWidth;If(u,g=>{l.value=g<=m})}};let c=null;t.onMounted(()=>{if(!ne(a.showOverflowTooltip))return;const u=r.value;i(u),u&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{i(u)}),c.observe(u))}),t.onUnmounted(()=>{c?.disconnect()});const f=(u,m)=>{let g=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const T=a.highlightFilter;if(u.indexOf(T)!==-1){const y=u.replace(new RegExp(T,"g"),`<span>${T}</span>`);m.innerHTML=y,m.class["is-highlight"]=!0,g=t.h(a.tag,m)}}else if(typeof a.highlightFilter=="function"){const T=a.highlightFilter(u);T&&(m.innerHTML=T,m.class["is-highlight"]=!0,g=t.h(a.tag,m))}return g};return()=>{const u={},m={...o.attrs,class:{...s.value},ref:r};if(ne(a.numberFormat)&&typeof o.slots.default=="function"){const y=o.slots.default();if(Array.isArray(y)&&y.length===1){const w=y[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const h=se(a.digits),p=se(a.decimalLength),d=ne(a.autoPadding);let B=`${y[0].children}`,I=B.split("").reverse().join("");I=Nt(I,p,d,h,a.separator),B=I.split("").reverse().join("");let A=null;a.highlightFilter!==void 0&&(A=f(B,m)),A||(m.innerHTML=B,A=t.h(a.tag,m)),u.default=()=>A}}}else{let y=null;if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const w=o.slots.default();if(Array.isArray(w)&&w.length===1){const h=w[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const p=`${w[0].children}`;y=f(p,m),y||(m.innerHTML=p,y=t.h(a.tag,m))}}}y||(y=t.h(a.tag,m,{default:o.slots.default})),u.default=()=>y}const T={disabled:l.value};return u.content=o.slots.default,t.h(v.ElTooltip,T,u)}}}}const{componentName:Rf,create:Ff,scope:dh}=ee("text"),Dl=Ff(Of(Rf)),{create:Lf}=ee("toast"),Mf=Lf({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},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,T=>{T&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const T=ce(e.iconSize);return t.h(e.icon,{width:T,height:T,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:i,renderIcon:f,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:m,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Pf={key:1,class:"fox-toast-title"},qf=["innerHTML"];function zf(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]=(...s)=>e.clickCover&&e.clickCover(...s))},[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",Pf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,qf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const El=ue(Mf,[["render",zf]]),_f={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:De.ArrowUp}};function jf(e,n,a){return{props:{..._f},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}),s=ie(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),u=()=>{l("update:modelValue",!s.value)};return()=>{const m=[];if(i.value){const y={class:c.value},w=t.h("span",y,[i.value]);m.push(w)}const g={class:f.value},T=a(o.icon,g);return T&&m.push(T),t.h("div",{class:r.value,onClick:u},m)}}}}const{componentName:Hf,create:Kf,scope:Yf}=ee("more-button"),xl=Kf(jf(Hf,Yf,(e,n)=>(e=e??De.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Wf,create:Uf,scope:mh}=ee("tour"),Gf=Uf({components:{Close:De.Close,ElPopover:v.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=Wf,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:b,maskWidth:y,maskHeight:w}=e,{width:h,height:p,left:d,top:B}=l.value,I=e.steps[o.active].offset??b,A=[d+h/2,B+p/2],O=Number(y||h),V=Number(w||p);return{width:`${O+ +I.left+I.right}px`,height:`${V+I.top+I.bottom}px`,top:`${A[1]-V/2-+I.top}px`,left:`${A[0]-O/2-+I.left}px`}}),i=b=>{b=="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=b=>b.popoverWidth??e.width,f=b=>b.location??e.location,u=()=>{const b=document.querySelector(`${e.steps[o.active].target}`),y=Ke(b);l.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()},T=(b,y=0)=>{b&&u(),e.steps,o.active=y,o.showTour=b,o.showPopup=b};return t.onMounted(()=>{T(e.modelValue,e.current)}),t.watch(()=>e.modelValue,b=>{T(b)}),{...t.toRefs(o),classes:r,maskStyle:s,changeStep:i,popoverWidth:c,popoverLocation:f,close:m,handleClickMask:g}}}),Xf={key:0,class:"fox-tour__content"},Zf={key:0,class:"fox-tour__content-top"},Jf={class:"fox-tour__content-inner"},Qf={class:"fox-tour__content-bottom"},em={class:"fox-tour__content-bottom-init"},tm={class:"fox-tour__content-bottom-operate"},nm={key:1,class:"fox-tour__content fox-tour__content-tile"},om={class:"fox-tour__content-inner"};function am(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=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,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(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",Xf,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Zf,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Jf,t.toDisplayString(f.content),1),t.createElementVNode("div",Qf,[t.createElementVNode("div",em,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",tm,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(i,{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(i,{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(i,{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",nm,[t.createElementVNode("div",om,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Nl=ue(Gf,[["render",am]]),xe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Qe=e=>e==null,Vl=10;function lm(e,n){return e>n&&e>Vl?"horizontal":n>e&&n>Vl?"vertical":""}function rm(){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:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=lm(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function im(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function sm(e){e.stopPropagation()}function cm(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&sm(e)}class um{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=im()}open(n){this.el=n;const a=rm(),o=(l,r,s,i,c)=>{this.updateMove({x:r,y:s})};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()&&cm(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 Bl(e,n){return new um(e,n)}var Il;const Zn=typeof window<"u";Zn&&((Il=window?.navigator)!=null&&Il.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ut=[];const Al=e=>{const n=e;n.key==="Escape"&&ut.forEach(a=>a(n))},dm=e=>{t.onMounted(()=>{ut.length===0&&document.addEventListener("keydown",Al),Zn&&ut.push(e)}),t.onBeforeUnmount(()=>{ut=ut.filter(n=>n!==e),ut.length===0&&Zn&&document.removeEventListener("keydown",Al)})},Jn="fox-focus-trap.focus-after-trapped",Qn="fox-focus-trap.focus-after-released",fm="fox-focus-trap.focusout-prevented",Ol={cancelable:!0,bubbles:!1},mm={cancelable:!0,bubbles:!1},Rl="foxFocusAfterTrapped",Fl="foxFocusAfterReleased",hm=Symbol("foxFocusTrap"),eo=t.ref(),nn=t.ref(0),to=t.ref(0);let on=0;const Ll=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},gm=(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},Ml=(e,n)=>{for(const a of e)if(!gm(a,n))return a},pm=e=>{const n=Ll(e),a=Ml(n,e),o=Ml(n.reverse(),e);return[a,o]},ym=e=>e instanceof HTMLInputElement&&"select"in e,We=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),to.value=window.performance.now(),e!==a&&ym(e)&&n&&e.select()}};function Pl(e,n){const a=[...e],o=e.indexOf(n);return o!==-1&&a.splice(o,1),a}const bm=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Pl(e,o),e.unshift(o)},remove:o=>{e=Pl(e,o),e[0]?.resume?.()}}},Sm=(e,n=!1)=>{const a=document.activeElement;for(const o of e)if(We(o,n),document.activeElement!==a)return},ql=bm(),wm=()=>nn.value>to.value,an=()=>{eo.value="pointer",nn.value=window.performance.now()},zl=()=>{eo.value="keyboard",nn.value=window.performance.now()},Cm=()=>(t.onMounted(()=>{on===0&&(document.addEventListener("mousedown",an),document.addEventListener("touchstart",an),document.addEventListener("keydown",zl)),on++}),t.onBeforeUnmount(()=>{on--,on<=0&&(document.removeEventListener("mousedown",an),document.removeEventListener("touchstart",an),document.removeEventListener("keydown",zl))}),{focusReason:eo,lastUserFocusTimestamp:nn,lastAutomatedFocusTimestamp:to}),ln=e=>new CustomEvent(fm,{...mm,detail:e}),{componentName:hh,create:vm,scope:gh}=ee("focus-trap"),km=vm({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:[Rl,Fl,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const o=t.ref();let l,r;const{focusReason:s}=Cm();dm(y=>{ne(e.trapped)&&!i.paused&&a("release-requested",y)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=y=>{if(!e.loop&&!ne(e.trapped)||i.paused)return;const{key:w,altKey:h,ctrlKey:p,metaKey:d,currentTarget:B,shiftKey:I}=y,{loop:A}=e,O=w==="Tab"&&!h&&!p&&!d,V=document.activeElement;if(O&&V){const E=B,[D,q]=pm(E);if(D&&q){if(!I&&V===q){const C=ln({focusReason:s.value});a("focusout-prevented",C),C.defaultPrevented||(y.preventDefault(),A&&We(D,!0))}else if(I&&[D,E].includes(V)){const C=ln({focusReason:s.value});a("focusout-prevented",C),C.defaultPrevented||(y.preventDefault(),A&&We(q,!0))}}else if(V===E){const C=ln({focusReason:s.value});a("focusout-prevented",C),C.defaultPrevented||y.preventDefault()}}};t.provide(hm,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,y=>{y&&(o.value=y)},{immediate:!0}),t.watch([o],([y],[w])=>{y&&(y.addEventListener("keydown",c),y.addEventListener("focusin",m),y.addEventListener("focusout",g)),w&&(w.removeEventListener("keydown",c),w.removeEventListener("focusin",m),w.removeEventListener("focusout",g))});const f=y=>{a(Rl,y)},u=y=>a(Fl,y),m=y=>{const w=t.unref(o);if(!w)return;const h=y.target,p=y.relatedTarget,d=h&&w.contains(h);ne(e.trapped)||p&&w.contains(p)||(l=p),d&&a("focusin",y),!i.paused&&ne(e.trapped)&&(d?r=h:We(r,!0))},g=y=>{const w=t.unref(o);if(!(i.paused||!w))if(!e.escape&&ne(e.trapped)){const h=y.relatedTarget;!wn(h)&&!w.contains(h)&&setTimeout(()=>{if(!i.paused&&ne(e.trapped)){const p=ln({focusReason:s.value});a("focusout-prevented",p),p.defaultPrevented||We(r,!0)}},0)}else{const h=y.target;h&&w.contains(h)||a("focusout",y)}};async function T(){await t.nextTick();const y=t.unref(o);if(y){ql.push(i);const w=y.contains(document.activeElement)?l:document.activeElement;if(l=w,!y.contains(w)){const p=new Event(Jn,Ol);y.addEventListener(Jn,f),y.dispatchEvent(p),p.defaultPrevented||t.nextTick(()=>{let d=e.focusStartEl;mo(d)||(We(d),document.activeElement!==d&&(d="first")),d==="first"&&Sm(Ll(y),!0),(document.activeElement===w||d==="container")&&We(y)})}}}function b(){const y=t.unref(o);if(y){y.removeEventListener(Jn,f);const w=new CustomEvent(Qn,{...Ol,detail:{focusReason:s.value}});y.addEventListener(Qn,u),y.dispatchEvent(w),!w.defaultPrevented&&(s.value=="keyboard"||!wm())&&We(l??document.body,!0),y.removeEventListener(Qn,f),ql.remove(i)}}return t.onMounted(()=>{ne(e.trapped)&&T(),t.watch(()=>e.trapped,y=>{ne(y)?T():b()})}),t.onBeforeUnmount(()=>{ne(e.trapped)&&b()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:Tm,create:$m,scope:yh}=ee("floating-window"),Dm=Symbol.for("InnerPageScopeKey"),Em=Symbol.for("PageWrapperKey"),xm={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},appendToBody:{type:[Boolean],required:!1,default:!0},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}},Nm=$m({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:km},props:{...xm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=Tm,o=t.ref(e.modelValue);t.watch(()=>e.modelValue,M=>{o.value=M});const l=t.computed(()=>o.value===!1?!1:!A.value),r=t.ref(e.left),s=t.ref(e.top),i=t.ref(e.right),c=t.ref(e.bottom),f=t.computed(()=>{const M=["fox-floating-window"];return e.customClass&&M.push(e.customClass),M}),u=t.computed(()=>{const M={};return Qe(r.value)?M.left="auto":M.left=xe(r.value),Qe(s.value)?M.top="auto":M.top=xe(s.value),Qe(i.value)?M.right="auto":M.right=xe(i.value),Qe(c.value)?M.bottom="auto":M.bottom=xe(c.value),Qe(e.zIndex)||(M["z-index"]=xe(e.zIndex)),Qe(B.value)||(M.height=B.value),Qe(I.value)||(M.width=I.value),M}),m=t.computed(()=>e.closeIcon??De.Close),g=t.computed(()=>e.collapseIcon??De.ArrowUp),T=t.computed(()=>e.collapseText??""),b=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??De.ArrowRight:e.expandIcon??De.ArrowLeft),y=t.computed(()=>e.expandText??e.title??"展开"),w=t.computed(()=>({[`${a}__collapse-text`]:!0})),h=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),p=t.ref(),d=t.ref(),B=t.computed(()=>xe(e.height)||""),I=t.computed(()=>xe(e.width)||""),A=t.ref(ne(e.collapse)),O=(M,L=!0)=>{A.value!==M&&(A.value=M,M?k():R(),n("update:collapse",M))};t.watch(()=>e.collapse,M=>{O(M)});const V=()=>{E()},E=M=>{M=M??!A.value,O(M)};t.provide(Dm,!0);const D={setCollapse:O};t.provide(Em,D);const q=()=>{typeof D.beforeClose=="function"?D.beforeClose(()=>{o.value=!1}):o.value=!1},F=t.ref(null),C=t.computed(()=>{const M=["fox-floating-window__fixednav"];return e.expandClass&&M.push(e.expandClass),e.collapsePosition==="left"?M.push("is-left"):e.collapsePosition==="right"&&M.push("is-right"),M}),$=t.ref(""),x=t.computed(()=>{const M={};return $.value?M.top=$.value:e.collapseTop&&(M.top=e.collapseTop),M}),P=t.ref(A.value);let N=null;const z=()=>{typeof N=="function"&&(N(),N=null)},k=()=>{F.value&&F.value.classList.add("slide-in"),P.value=!0,N=()=>{F.value&&F.value.classList.remove("slide-in")}},R=()=>{F.value&&F.value.classList.add("slide-out"),N=()=>{F.value&&F.value.classList.remove("slide-out"),P.value=!1}},j=()=>{r.value=null,s.value=null,i.value=null,c.value=null},Y={x:0,y:0},oe=Bl(M=>{if(!p.value)return;const L=p.value;if(j(),e.origin==="left-top")r.value=L.offsetLeft,s.value=L.offsetTop,Y.x=r.value,Y.y=s.value;else if(e.origin==="left-bottom"){const W=document.documentElement.clientHeight||document.body.clientHeight;r.value=L.offsetLeft,c.value=W-(L.offsetTop+L.offsetHeight),Y.x=r.value,Y.y=c.value}else if(e.origin==="right-bottom"){const W=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight;i.value=W-(L.offsetLeft+L.offsetWidth),c.value=G-(L.offsetTop+L.offsetHeight),Y.x=i.value,Y.y=c.value}else{const W=document.documentElement.clientWidth||document.body.clientWidth;i.value=W-(L.offsetLeft+L.offsetWidth),s.value=L.offsetTop,Y.x=i.value,Y.y=s.value}},M=>{if(!p.value)return;const L=p.value;j(),e.origin==="left-top"?(r.value=Y.x+M.x,s.value=Y.y+M.y,L.style.left=xe(r.value),L.style.top=xe(s.value)):e.origin==="left-bottom"?(r.value=Y.x+M.x,c.value=Y.y-M.y,L.style.left=xe(r.value),L.style.bottom=xe(c.value)):e.origin==="right-bottom"?(i.value=Y.x-M.x,c.value=Y.y-M.y,L.style.right=xe(i.value),L.style.bottom=xe(c.value)):(i.value=Y.x-M.x,s.value=Y.y+M.y,L.style.right=xe(i.value),L.style.top=xe(s.value))}),re={x:0,y:0},_=Bl(M=>{F.value&&(re.x=F.value.offsetLeft,re.y=F.value.offsetTop)},M=>{if(!F.value)return;const L=re.y+M.y;$.value=`${L}px`});return t.onMounted(()=>{e.draggable&&d.value&&p.value&&oe.open(d.value),e.collapse===!0&&O(e.collapse,!1),F.value&&_.open(F.value)}),t.onBeforeUnmount(()=>{e.draggable&&d.value&&oe.close(),F.value&&_.close()}),{classes:f,styles:u,isShow:l,closeIcon:m,onClose:q,dialogRef:p,headerRef:d,onClickToggle:V,collapseIcon:g,collapseText:T,collapseTextClasses:w,collapseIconClasses:h,expandIcon:b,expandText:y,isShowFixedNav:P,fixedNavRef:F,fixedNavClasses:C,fixedNavStyles:x,onAnimationEnd:z}}}),Vm={ref:"headerRef",class:"fox-floating-window__header"},Bm={class:"fox-floating-window__title"},Im={class:"fox-floating-window__tools"},Am={class:"fox-floating-window__body"},Om={class:"fox-floating-window__fixednav__text"};function Rm(e,n,a,o,l,r){const s=t.resolveComponent("FoxIcon"),i=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!e.appendToBody},[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(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Vm,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Bm,t.toDisplayString(e.title),1),t.createElementVNode("div",Im,[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(s,{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(s,{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",Am,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["disabled"])),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(s,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Om,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],64)}const _l=ue(Nm,[["render",Rm]]);function Fm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Ao(a.name,a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:bh,create:Lm,scope:Sh}=ee("domain-provider"),jl=Lm(Fm()),Mm={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 Pm(e,n){return{inheritAttrs:!1,props:Mm,setup(a,{slots:o}){if(Xe&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(g,T)=>{if(u===null){r.set(g,{visible:null,callback:T});return}l.has(g)&&u.unobserve(g),l.set(g,{visible:null,callback:T}),u.observe(g)},i=g=>{if(u===null){r.delete(g);return}l.has(g)&&(l.delete(g),u.unobserve(g))};let c=a.initialVisibleObserverSize;Ti({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let u=null;const m=(g,T,b)=>{u=new IntersectionObserver(y=>{for(let w of y){let h=!1;w.intersectionRatio>0&&(h=!0);const p=l.get(w.target);if(p)try{if(a.loadPolicy==="lazy"&&!h&&p.visible!==null)return;p.visible=h,p.callback(h)}catch(d){console.error(d)}}},{root:g,rootMargin:T,threshold:b}),r.forEach((y,w)=>{l.set(w,y),u?.observe(w)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,T])=>{if(T||!g||u)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&m(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:wh,create:qm,scope:Ch}=ee("rolling-provider"),Hl=qm(Pm()),zm=[_o,jo,Ho,Ko,Go,we,ta,na,Yt,aa,ba,Va,Ra,La,Pa,Ka,Wa,nl,al,rl,sl,Un,dl,hl,yl,Sl,Cl,kl,Tl,tn,In,$l,Dl,El,Ut,Ye,Ct,_n,Hn,en,Qt,Wn,xl,Nl,Jt,_l,jl,Hl],_m=new xr(zm,[Br],"4.0.0");Object.defineProperty(S,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(S,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(S,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(S,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(S,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(S,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(S,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(S,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(S,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(S,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(S,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(S,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(S,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(S,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(S,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(S,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(S,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(S,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(S,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(S,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(S,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(S,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(S,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(S,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(S,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(S,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(S,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(S,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(S,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(S,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(S,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(S,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(S,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(S,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(S,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(S,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(S,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(S,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(S,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(S,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(S,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(S,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(S,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(S,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(S,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(S,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(S,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(S,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(S,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(S,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(S,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(S,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(S,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(S,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(S,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(S,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(S,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(S,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(S,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(S,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(S,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(S,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(S,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(S,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(S,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(S,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(S,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(S,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(S,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(S,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(S,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(S,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(S,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(S,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(S,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(S,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(S,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(S,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(S,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(S,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(S,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(S,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(S,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(S,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(S,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(S,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(S,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(S,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(S,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(S,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(S,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(S,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(S,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(S,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),S.AutocompleteItem=al,S.Broadcast=Cn,S.BroadcastKey=ye,S.CalendarItem=Ra,S.CalendarPicker=Hn,S.CascaderItem=nl,S.CascaderPicker=Wn,S.CheckboxItem=yl,S.Content=Ko,S.DataItemsKey=tt,S.DateItem=Va,S.DatePicker=_n,S.DateUtils=Q,S.DialogItem=Tl,S.Domain=Ot,S.DomainKey=Ve,S.DomainProvider=jl,S.ExtTabPane=en,S.ExtTabs=Qt,S.FloatingWindow=_l,S.FooterBar=Ho,S.Group=Go,S.HeaderBar=jo,S.HintText=Yt,S.Indicator=$l,S.InputItem=aa,S.InputNumberItem=Wa,S.Item=we,S.Mapping=tn,S.MoneyItem=Ka,S.MoreButton=xl,S.Overlay=Ut,S.Page=_o,S.Picker=Ct,S.Popup=Ye,S.Price=In,S.PriorityPolicy=He,S.RadioItem=hl,S.RateItem=Sl,S.RollingProvider=Hl,S.RowItem=na,S.SelectItem=ba,S.SlotItem=ta,S.SwitchItem=Cl,S.TableItem=dl,S.TableMappingColumn=rl,S.TableRadioColumn=sl,S.TableSetting=Un,S.Text=Dl,S.TimeItem=La,S.TimeSelectItem=Pa,S.Toast=El,S.Tour=Nl,S.TreeSelectItem=kl,S.UniqueID=Qo,S.ValidateSchema=Vo,S.ValidateSchemaKey=Pe,S.cancelRaf=Wl,S.clearNonNumber=lr,S.clone=bn,S.compareTo=gn,S.createBroadcast=Bt,S.createValidateSchema=At,S.debounce=yt,S.debounceRef=br,S.decimalLength=ko,S.default=_m,S.defineBroadcast=cr,S.defineConfigDomain=Ao,S.defineDataItem=Ro,S.defineDomain=Tn,S.defineItem=be,S.definePageState=Fo,S.deleteGlobalValidator=mr,S.disabledProperty=$e,S.divide=hn,S.excludeProps=Ce,S.extend=Ge,S.floatData=sr,S.getGlobalValidateCheckEvents=Eo,S.getGlobalValidateResetEvents=No,S.getPageContentAreaHeight=Ft,S.getPageContentAreaWidth=Lt,S.getPageFooterAreaHeight=St,S.getPageHeaderAreaHeight=bt,S.getRootDomain=nt,S.hasSymbol=go,S.includeProps=ht,S.indexOf=rr,S.installRules=Oo,S.integerLength=vo,S.isArray=Gl,S.isArrayLike=bo,S.isBrowser=Xe,S.isDate=Le,S.isESModule=er,S.isEmptyString=pe,S.isEqual=Me,S.isFunction=pn,S.isHidden=yo,S.isInnerPage=Cr,S.isMap=Xl,S.isNil=wn,S.isNumberString=Co,S.isObject=Ie,S.isPlainObject=yn,S.isPromise=Ql,S.isRegExp=wo,S.isSet=Zl,S.isString=mo,S.isSubPage=vr,S.isSymbol=Jl,S.isWindow=po,S.lastIndexOf=ir,S.makeArray=ar,S.merge=So,S.multiply=so,S.negate=co,S.nextTick=nr,S.numberFormat=Nt,S.objectToString=ho,S.once=Sr,S.property=Ne,S.raf=fo,S.readonlyProperty=Te,S.setGlobalValidateCheckEvents=hr,S.setGlobalValidateHandler=dr,S.setGlobalValidateMessages=pr,S.setGlobalValidateResetEvents=gr,S.setGlobalValidator=fr,S.sticky=Jt,S.throttle=Io,S.toBoolean=ne,S.toNumber=se,S.toPadding=Ae,S.toPx=ce,S.toPxDesc=Se,S.toTypeString=Vt,S.toValue=ie,S.tryTimes=vn,S.typeOf=et,S.unNumberFormat=uo,S.updatePageState=$n,S.useBroadcast=gt,S.useDomain=qe,S.useExpose=me,S.useInnerSize=Nn,S.usePageState=Rt,S.usePosition=Xo,S.useRect=Ke,S.useSize=xn,S.useTouch=Ln,S.valueLength=Be,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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"}})});