@fox-js/foxui-pad 4.1.1-15 → 4.1.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 +1 @@
1
- (function(b,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):(b=typeof globalThis<"u"?globalThis:b||self,t(b.FoxUI={},b.Vue,b.FoxValidator,b.ElementPlus,b.ElementPlusIconsVue,b.FoxI18n))})(this,(function(b,t,pt,F,Ie,xe){"use strict";const Jt=window,di=typeof window<"u";function hi(){return typeof Jt<"u"?Jt.requestAnimationFrame||Jt.webkitRequestAnimationFrame||function(e){Jt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function mi(e){di?cancelAnimationFrame(e):clearTimeout(e)}const nl=hi();function en(e,l="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),l[0]=="-"&&(a++,n=2,l=l.substring(1),l.length),e=_e(e),l=_e(l),[e,l]=al(_e(e),_e(l)),a==1&&(n==1?e=ll(e):l=ll(l));let o=ja(e,l);return a?a==2?"-"+_e(o):e.length<o.length?_e(o.substring(1)):"-"+_e(ll(o)):_e(o)}function ll(e){let l="",a=e.length,n=e.split(".")[1],o=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?l+=9-parseInt(e[s]):l+=e[s];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return ja(l,r)}function _e(e){let l=e.split(".");for(l[0]||(l[0]="0");l[0][0]=="0"&&l[0].length>1;)l[0]=l[0].substring(1);return l[0]+(l[1]?"."+l[1]:"")}function al(e,l){let a=e.split("."),n=l.split("."),o=a[0].length,r=n[0].length;return o>r?n[0]=new Array(Math.abs(o-r)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=n[1]?n[1].length:0,(o||r)&&(o>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),l=n[0]+(n[1]?"."+n[1]:""),[e,l]}function ja(e,l){[e,l]=al(e,l);let a="",n=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(l[o])+n;a=r%10+a,n=Math.floor(r/10)}return n?n.toString()+a:a}var De=(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))(De||{});function Ft(e,l=0,a=De.HALF_EVEN){if(a===De.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let o=e.split("."),r=o[0],s=o[1];if(l<0){if(l=-l,r.length<=l)return"0";{let i=r.substr(0,r.length-l);return e=i+"."+r.substr(r.length-l)+s,i=Ft(e,0,a),(n?"-":"")+i+new Array(l+1).join("0")}}if(l==0)return r.length,Ha(o[1],r,n,a)?(n?"-":"")+ol(r):(n?"-":"")+r;if(o[1]){if(o[1].length<l)return(n?"-":"")+r+"."+o[1]+new Array(l-o[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(l+1).join("0");s=o[1].substring(0,l);let c=o[1].substring(l);return c&&Ha(c,s,n,a)&&(s=ol(s),s.length>l)?(n?"-":"")+ol(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Ha(e,l,a,n){if(!e||e===new Array(e.length+1).join("0")||n===De.DOWN||!a&&n===De.FLOOR||a&&n===De.CEILING)return!1;if(n===De.UP||a&&n===De.FLOOR||!a&&n===De.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(n){case De.HALF_DOWN:return!1;case De.HALF_UP:return!0;case De.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function ol(e,l=0){l||(l=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+l;r==10?(l=1,r=0):l=0,n+=r}return l&&(n+=l),n.split("").reverse().join("")}function rl(e,l){e=e.toString(),l=l.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),l[0]=="-"&&(a++,l=l.substr(1)),e=Mt(e),l=Mt(l);let n=0,o=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),l.indexOf(".")!=-1&&(o=l.length-l.indexOf(".")-1);let r=n+o;if(e=Mt(e.replace(".","")),l=Mt(l.replace(".","")),e.length<l.length){let d=e;e=l,l=d}if(l=="0")return"0";let s=l.length,c=0,i=[],f=s-1,m="";for(let d=0;d<s;d++)i[d]=e.length-1;for(let d=0;d<2*e.length;d++){let w=0;for(let S=l.length-1;S>=f&&S>=0;S--)i[S]>-1&&i[S]<e.length&&(w+=parseInt(e[i[S]--])*parseInt(l[S]));w+=c,c=Math.floor(w/10),m=w%10+m,f--}return m=Mt(gi(m,r)),a==1&&(m="-"+m),m}function gi(e,l){return l==0?e:(e=l>=e.length?new Array(l-e.length+1).join("0")+e:e,e.substr(0,e.length-l)+"."+e.substr(e.length-l,l))}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 il(e,l,a=8){if(l==0)throw new Error("Cannot divide by 0");if(e=e.toString(),l=l.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),l=l.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;l[0]=="-"&&(l=l.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var o=l.indexOf(".")>0?l.length-l.indexOf(".")-1:-1;if(l=_e(l.replace(".","")),o>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=_e(e+new Array(o+1).join("0"));else if(o>f)e=e.replace(".",""),e=_e(e+new Array(o-f+1).join("0"));else if(o<f){e=e.replace(".","");let m=e.length-f+o;e=_e(e.substring(0,m)+"."+e.substring(m))}else o==f&&(e=_e(e.replace(".","")))}let r=0,s=l.length,c="",i=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),i.indexOf(".")>-1){let f=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(f+=s-i.length,i=i+new Array(s-i.length+1).join("0")),r=f,c="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(i)>=parseInt(l);)i=en(i,"-"+l),f++;c+=f,e?(e[0]=="."&&(c+=".",r++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(r||(c+="."),r++,i=i+"0")}return(n==1?"-":"")+_e(Ft(c,a-2))}function sl(e,l){return e=e.toString(),l=l.toString(),l=ul(l),en(e,l)}function ul(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ka(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),Wa(e),Wa(l);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let n=sl(e,rl(l,Ft(il(e,l),0,De.FLOOR)));return a+n}function Wa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ya(e,l){let a=!1;if(e[0]=="-"&&l[0]!="-")return-1;if(e[0]!="-"&&l[0]=="-")return 1;if(e[0]=="-"&&l[0]=="-"&&(e=e.substr(1),l=l.substr(1),a=!0),[e,l]=al(e,l),e.localeCompare(l)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=l[n])return e[n]>l[n]?a?-1:1:a?1:-1;return 0}class me{value;static RoundingModes=De;static validate(l){if(l){if(l=l.toString(),isNaN(l))throw Error("Parameter is not a number: "+l);l[0]=="+"&&(l=l.substring(1))}else l="0";if(l.startsWith(".")?l="0"+l:l.startsWith("-.")&&(l="-0"+l.substr(1)),/e/i.test(l)){let[a,n]=l.split(/[eE]/);a=_e(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?l=o+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?l=o+_e(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):l=o+"0."+new Array(-n+1).join("0")+a}return l}constructor(l="0"){this.value=me.validate(l)}getValue(){return this.value}static getPrettyValue(l,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");l=me.validate(l);let o=l.charAt(0)=="-";o&&(l=l.substring(1));var r=l.indexOf(".");r=r>0?r:l.length;for(var s="",c=r;c>0;)c<a?(a=c,c=0):c-=a,s=l.substring(c,c+a)+(c<r-a&&c>=0?n:"")+s;return(o?"-":"")+s+l.substring(r)}getPrettyValue(l,a){return me.getPrettyValue(this.value,l,a)}static round(l,a=0,n=De.HALF_EVEN){if(l=me.validate(l),isNaN(a))throw Error("Precision is not a number: "+a);return Ft(l,a,n)}round(l=0,a=De.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new me(Ft(this.value,l,a))}static floor(l){return l=me.validate(l),l.indexOf(".")===-1?l:me.round(l,0,De.FLOOR)}floor(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,De.FLOOR)}static ceil(l){return l=me.validate(l),l.indexOf(".")===-1?l:me.round(l,0,De.CEILING)}ceil(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,De.CEILING)}static add(l,a){return l=me.validate(l),a=me.validate(a),en(l,a)}add(l){return new me(en(this.value,l.getValue()))}static subtract(l,a){return l=me.validate(l),a=me.validate(a),sl(l,a)}subtract(l){return new me(sl(this.value,l.getValue()))}static multiply(l,a){return l=me.validate(l),a=me.validate(a),rl(l,a)}multiply(l){return new me(rl(this.value,l.getValue()))}static divide(l,a,n){return l=me.validate(l),a=me.validate(a),il(l,a,n)}divide(l,a){return new me(il(this.value,l.getValue(),a))}static modulus(l,a){return l=me.validate(l),a=me.validate(a),Ka(l,a)}modulus(l){return new me(Ka(this.value,l.getValue()))}static compareTo(l,a){return l=me.validate(l),a=me.validate(a),Ya(l,a)}compareTo(l){return Ya(this.value,l.getValue())}static negate(l){return l=me.validate(l),ul(l)}negate(){return new me(ul(this.value))}}function Ua(e,l){return me.multiply(`${e}`,`${l}`)}function cl(e,l,a=8){return me.divide(`${e}`,`${l}`,a)}function fl(e,l){return e=`${e}`,l=`${l}`,me.compareTo(e,l)}function Ga(e){return me.negate(e)}function tn(e,l=-1,a=!1,n=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let c=r,i="",f=r.indexOf(".");f!=-1&&(c=r.substring(0,f),i=r.substring(f+1)),l!=-1&&(l<i.length?i=i.substring(0,l):a&&l>i.length&&(i=i.padEnd(l,"0")));let m;if(n>0){let d="",w=c.split("").reverse();for(let S=0;S<w.length;S++)d+=w[S]+((S+1)%n==0&&S+1!=w.length?o:"");i.length==0?m=`${s}${d.split("").reverse().join("")}`:m=`${s}${d.split("").reverse().join("")}.${i}`}else i.length==0?m=`${s}${c}`:m=`${s}${c}.${i}`;return m}function Xa(e){let l=`${e}`,a=l.charAt(0);a=="-"?l=l.substring(1):a="";let n=l.replace(/[^\d\.-]/g,"");return`${a}${n}`}const dl=nl,yi=Array.isArray,pi=e=>ln(e)==="[object Map]",bi=e=>ln(e)==="[object Set]",ct=e=>e instanceof Date,hl=e=>typeof e=="function",Za=e=>typeof e=="string",vi=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",nn=e=>je(e)&&hl(e.then)&&hl(e.catch),Qa=Object.prototype.toString,ln=e=>Qa.call(e),wi=e=>ln(e)==="[object Object]",Ja=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Si(e){return e.__esModule||Ja&&e[Symbol.toStringTag]==="Module"}const xi=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function xt(...e){let l=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,o=!1;for(typeof l=="boolean"&&(o=l,l=e[a]??{},a++),typeof l!="object"&&(l={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let c=l[s],i=r[s];if(c!==i)if(o===!0&&i&&typeof i=="object"){let f;Array.isArray(i)?f=c&&Array.isArray(c)?c:[]:f=c&&typeof c=="object"?c:{},l[s]=xt(o,f,i)}else i!==void 0&&(l[s]=i)}}return l}const ml=xi?Promise.resolve():null;function Ci(e,...l){ml!==null?l&&l.length>0?ml.then(()=>{e(l)}):ml.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function de(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function be(e){return typeof e=="number"?e:Number(e)}const Ti={"[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 an(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Ti[a]||"object"}function eo(e){return e&&typeof e=="object"&&"setInterval"in e}function to(e){if(!e||e.nodeType!==1)return!0;let l=e;for(;l;){if(l.hidden)return!0;const a=window.getComputedStyle(l);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;l=l.parentElement}return!1}function no(e){let l=!!e&&"length"in e&&e.length,a=an(e);return a==="function"||eo(e)?!1:a==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function lo(e,l){let a=+l.length,n=0,o=e.length;for(;n<a;n++)e[o++]=l[n];return e.length=o,e}function ki(e,l=[]){let a=l;return e!=null&&(no(Object(e))?lo(a,typeof e=="string"?[e]:e):a.push(e)),a}function Xe(e,l){if(e==l)return!0;if(e===void 0||l===void 0)return!1;let a=an(e),n=an(l);if(a!==n)return!1;if(a==="object"){let o=Object.keys(e),r=Object.keys(l);if(o.length!==r.length)return!1;for(let s=0;s<o.length;s++){let c=o[s],i=e[c],f=l[c];if(!Xe(i,f))return!1}return!0}else if(a==="array"){if(e.length!==l.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],s=l[o];if(!Xe(r,s))return!1}return!0}return!1}const ft=typeof window<"u";function Ye(e){return e==null}function gl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null||typeof e!="string"?!1:e.length===0;function yl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ao(e){if(e==null)return 0;let l=`${e}`;if(l.length==0)return 0;l.charAt(0)=="-"&&(l=l.substring(1)),l=l.replace(/[^\d\.-]/g,"");const a=l.indexOf(".");return a==-1?l.length:a}function oo(e){if(e==null)return 0;const l=`${e}`;if(l.length==0)return 0;const a=l.indexOf(".");return a==-1?0:l.length-(a+1)}function ro(e,l,a){const n=e.indexOf(l);return n===-1?e:l==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(a,"")}function $i(e,l=!0,a=!0){l?e=ro(e,".",/\./g):e=e.replace(/\./g,""),a?e=ro(e,"-",/-/g):e=e.replace(/-/,"");const n=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Di(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(a=>{if(Xe(e,a))return!0}):l.indexOf(e)}function Ni(e,l){if(typeof e=="object"||Array.isArray(e)){let a=l.reverse().findIndex(n=>{if(Xe(e,n))return!0});return a!==-1&&(a=l.length-1-a),a}return l.lastIndexOf(e)}function lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function it(e,...l){const a={};return l.forEach(n=>{for(const o in n)a[o]=e[o]}),a}function Ve(e,...l){const a=[];l.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const n={};for(const o in e)a.includes(o)||(n[o]=e[o]);return n}const Ei=(e,l,a)=>{const n=Object.assign({},e),o=Object.assign({},a);return Object.keys(l).length>0?(Object.keys(n).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(n[r]=l[o[r]]):l[r]&&(n[r]=l[r])}),n):e},Ne=Symbol.for("BroadcastKey");class pl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(l,a,n){this.parent=l,this.proxy=a,this.name=n,l!==null&&l.addChild(this)}addChild(l){this.children.push(l)}removeChild(l){const a=this.children.findIndex(n=>l===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(l,a,n){if(!l.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const o=l.uniqueId,r={matched:l,action:a,args:n};return this.persistantMessages.set(o,r),!0}deletePersistantMessage(l){this.persistantMessages.delete(l)}getPersistantMessages(){const l=[];return this.persistantMessages.forEach(a=>{l.push(a)}),l}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(l,a){if(!a||a.messagingPolicy==="Once"&&a.resolved===!0)return!1;let n=!1;return!a.name||a.name==="*"||a.name==="+"||gl(a.name)&&l&&a.name.test(l)?n=!0:typeof a.name=="function"?n=Reflect.apply(a.name,null,[l]):a.name===l&&(n=!0),n}trigger(l,a,n){let o=null;const r=this.callbacks.get(a);typeof r=="function"&&(o=Reflect.apply(r,this.proxy,[...n]));const s=this.proxy??{};typeof s[a]=="function"&&(o=Reflect.apply(s[a],s,[...n])),l.resolved=!0,typeof l.resolve=="function"&&l.resolve(o)}pull(){let l=this.parent;for(;l;){const a=l.getPersistantMessages();Array.isArray(a)&&a.length>0&&a.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(o){console.error(o)}}),l=l.parent}}emit(l,a,...n){if(l.messagingPolicy==="Once"&&l.resolved===!0)return[];if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,a,n),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,a,n)){const s=l.resolve,c=l.uniqueId??"",i=(...f)=>{this.deletePersistantMessage(c),typeof s=="function"&&s(...f)};l.resolve=i}l.cachePolicy="None"}let o=!1;!l.name||l.name==="*"?o=!0:l.name==="+"?(o=!1,l.name="*"):gl(l.name)&&this.name&&l.name.test(this.name)?o=!0:typeof l.name=="function"?o=Reflect.apply(l.name,null,[this.name]):l.name===this.name&&(o=!0);const r=[];if(o){const s=this.callbacks.get(a);if(typeof s=="function"){const i=Reflect.apply(s,this.proxy,[...n]);i!=null&&r.push(i)}const c=this.proxy??{};if(typeof c[a]=="function"){const i=Reflect.apply(c[a],c,[...n]);i!=null&&r.push(i)}if(l.resolved=!0,typeof l.resolve=="function"&&l.resolve(...r),l.messagingPolicy==="Once")return r}return this.children.forEach(s=>{const c=Reflect.apply(s.emit,s,[{...l},a,...n]);c!=null&&Array.isArray(c)&&Reflect.apply([].push,r,[...c])}),r}emitToChildren(l,a,...n){if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,a,n),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,a,n)){const r=l.resolve,s=l.uniqueId??"",c=(...i)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...i)};l.resolve=c}l.cachePolicy="None"}const o=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...l},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,o,[...s])}),o}on(l,a){this.callbacks.set(l,a)}}function on(e,l,a,n){const o=new pl(l,e,a);if(n&&typeof n=="object")for(const r in n)o.on(r,n[r]);return o}function Ii(e,l,a){const n=a;if(n[Ne])return n[Ne];const o=t.inject(Ne,null),r=new pl(o,a,e);if(l&&typeof l=="object")for(const s in l)r.on(s,l[s]);return n[Ne]=r,t.provide(Ne,r),t.onUnmounted(()=>{r.destroy(),n[Ne]=void 0}),r}function Bt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}class Vi{error(l,a){const n=a,o=a||t.hasInjectionContext()?Bt(a):null;o?o.emit({name:"*"},"setErrorTip",l):typeof n.setErrorTip=="function"&&n.setErrorTip(l)}reset(l){const a=l,n=l||t.hasInjectionContext()?Bt(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(l){const a=l,n=l||t.hasInjectionContext()?Bt(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(l,a,n){Array.isArray(l)||(l=[l]);const o=n,r=n||t.hasInjectionContext()?Bt(n):null,s=a.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),c=l.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&c?r?r.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):s&&!c&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(n))}getValue(l){return l.modelValue}}let Rt=new Vi;function Oi(e){Rt=e}function Ai(e){Rt?Object.assign(Rt,e):Rt=e}function Fi(e,l){pt.Schema.setValidator(e,l)}function Mi(e){pt.Schema.deleteValidator(e)}let io=["blur","clear"];function Bi(e){io=e}function so(){return io}let uo=["focus","change","setValue"];function Ri(e){uo=e}function co(){return uo}function Li(e){pt.Schema.messages(e)}function Lt(...e){const l=[];return e.forEach(a=>{a.forEach(n=>{const o=l.findIndex(r=>r.type===n.type);o!==-1&&l.splice(o,1),l.push(n)})}),l}function rn(e){return e.forEach(l=>{l.type==="required"&&(l.required===null||l.required===void 0)&&(l.required=!0),!l.type&&(l.required===!0||l.required===!1)&&(l.type="required")}),e}const Qe=Symbol("ValidateSchemaKey");class fo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(l,a,n){this.parent=l,this.descriptor=a,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let l=this.proxy.$attrs;l&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=rn(Lt(this.attrRules,this.rules)),n=[];for(let r in l){let s=l[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let i={type:r};s!==null&&typeof s=="object"&&Object.assign(i,s),n.push(i);continue}let c=this.getValidator(r);if(c!==null){let i={type:r,validator:c};n.push(i)}}this.attrRules=rn(n);const o=Lt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(l,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[l]=="function")return Reflect.apply(n[l],n,[...a]);const o=Rt;return o&&typeof o[l]=="function"?Reflect.apply(o[l],o,[...a]):null}decorate(l,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",l,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(l){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",l,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(l,a,n=!1){n?pt.Schema.setValidator(l,a):this.validators[l]=a}getValidator(l){let a=this.validators[l]??null;return a||(a=this.parent?.getValidator(l)??null),a}deleteValidator(l,a=!1){a?pt.Schema.deleteValidator(l):Reflect.deleteProperty(this.validators,l)}hasValidator(l,a=!1){if(a)return pt.Schema.hasValidator(l);{let n=Reflect.has(this.validators,l);return!n&&this.parent!==null&&(n=this.parent.hasValidator(l,!1)),n}}setRule(l){const a=Lt(this.attrRules,this.rules);l===null?this.rules=[]:Array.isArray(l)?this.rules=rn(l):this.rules=rn([l]);const n=Lt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Lt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${n}`]:a},r=this.getValue(),s={[`${n}`]:r},c=new pt.Schema(o),i=this.proxy??s;return c.validate(s,{context:i}).then(m=>{if(m.pass)this.success();else{let d="error";Array.isArray(m.errors)&&m.errors.length>0&&(d=m.errors[0].message??d,m.errors=[m.errors[0]],m.errors[0].ref=i),this.error(d)}return m}).catch(m=>{const d=m.message??`${m}`;return this.error(d),m})}}return Promise.resolve({pass:!0})}}function sn(e,l,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(r){return r[o]}}}return new fo(l,a,e)}const un=Symbol.for("EventEmitterKey");class ho{register=new Map;proxy;constructor(l){this.proxy=l}destroy(){this.proxy=null,this.register.clear()}off(l,a){let n=this.register.get(l);if(n&&Array.isArray(n)){let o=n.findIndex(r=>r===a);o!==-1&&n.splice(o,1)}}on(l,a){let n=this.register.get(l);n||(n=new Array,this.register.set(l,n)),n.push(a)}emit(l,...a){const n=this.register.get(l);n&&n.forEach(o=>{try{Reflect.apply(o,null,[l,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[l,...a])}}function Ue(e,l){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},l)}}function mo(e,l){let a=0;return function(...n){const o=new Date().getTime();o-a<l||(a=o,Reflect.apply(e,null,[...n]))}}function Pi(e,l){const a=Ue((n,o)=>{e=n,o()},l);return t.customRef((n,o)=>({get(){return n(),e},set(r){a(r,o)}}))}function _i(e){let l=!1;return function(...a){l||(l=!0,Reflect.apply(e,null,[...a]))}}function cn(e,l,a,n=0,o=!0,r){let s=l,c=0;if(o){const f=e();if(c++,f){typeof r=="function"&&r(!0);return}if(c>a){typeof r=="function"&&r(!1);return}}const i=()=>{const f=e();if(c++,f){typeof r=="function"&&r(!0);return}if(c>a){typeof r=="function"&&r(!1);return}s+=n,setTimeout(i,s)};setTimeout(i,s)}const Ke=Symbol("DomainKey"),Ct=Symbol("DataItemsKey");class fn{_parent=null;get parent(){return this._parent}set parent(l){this._parent=l}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(l){this._broadcast=l}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(l){this._validateSchema=l}_props=t.reactive({});constructor(l=null){this._name=l}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(l,a=[]){for(const n in l){const o=l[n];a.length>0&&a.indexOf(o)!==-1||(this._props[n]=o)}}has(l){if(Reflect.has(this._props,l)){const a=this._props[l];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(l)}delete(l){Reflect.deleteProperty(this._props,l)}set(l,a){this._props[l]=a}get(l,a){if(Reflect.has(this._props,l)){const n=this._props[l];if(n!=null)return n}return this.parent==null?a:this.parent.get(l,a)}getForParent(l,a){return this.parent==null?a:this.parent.get(l,a)}getForSelf(l){return this._props[l]}getAll(l){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,l)){const o=n._props[l];a.push(o)}n=n._parent}return a}}const qi=new fn;function Tt(){return qi}function dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ke]??t.inject(Ke,null):t.inject(Ke,null)}const bl=Symbol("OriginalDateKey");function vl(e,l,a=[],n){const o=t.getCurrentInstance();let r=o?.proxy,s=t.inject(Ke,null);s===null&&(s=Tt());const c=e||l.prop||l.name;let i=new fn(c);i.parent=s;const f=y=>{r[bl]||w(y),i?.set("modelValue",y)},m=()=>i?.getForSelf("modelValue")??null,d=()=>r[bl]??null,w=y=>{const h={};xt(!0,h,t.toRaw(y)),r[bl]=h};t.isReactive(l)||typeof l=="function"?t.watch(l,y=>{i?.merge(y,a)},{immediate:!0}):i.merge(l,a),l.modelValue&&w(l.modelValue);const S=(y,h)=>{i?.set(y,h)},T=y=>i?.getForSelf(y)??null;if(r[Ke]=i,t.provide(Ke,i),o!==null){const y=t.inject(Ne,null),h=on(r,y,c,n);i.broadcast=h,r[Ne]=h,t.provide(Ne,h),r.broadcast=(u,N,...M)=>Reflect.apply(h.emit,h,[u,N,...M]);const A=t.inject(Qe,null),g=sn(r,A,{componentName:""});i.validateSchema=g,r[Qe]=g,t.provide(Qe,g),r[Ct]=new Map,r.validate=(u=!0)=>{const N=[];let M=null;const O={deep:!1};if(u===!0)M={name:"*"};else if(Array.isArray(u)&&u.length>0){const k=u;M={name:E=>E?k.indexOf(E)!==-1:!1}}else if(u!=null&&typeof u=="object"){const k=u;if(Object.assign(O,k),Array.isArray(k.include)&&k.include.length>0){const E=k.include;M={name:v=>v?E.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const E=k.exclude;M={name:v=>v?E.indexOf(v)===-1:!1}}else M={name:"*"}}if(M){const k=h?.emitToChildren(M,"validate",O);k&&Reflect.apply([].push,N,k)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(k=>{let E=[];return k.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(E=[...E,...v.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,N=!0,M=!1)=>{if(M===!0){Reflect.ownKeys(u).forEach(k=>{let E=String(k);const v={componentName:"",fieldName:E,pureDataValidate:!0};if(i){const j=yo(i,E,v,h,g);r[Ct].set(E,j);const x=u[E];x&&j.validateSchema.setRule(x)}});return}if(N){const O=Reflect.ownKeys(u),k={name:E=>O.includes(E),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(k,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let N=null;if(u===!0)N={name:"*"};else if(Array.isArray(u)&&u.length>0){const M=u;N={name:O=>O?M.indexOf(O)!==-1:!1}}else if(u!=null&&typeof u=="object"){const M=u;if(Array.isArray(M.include)&&M.include.length>0){const O=M.include;N={name:k=>k?O.indexOf(k)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const O=M.exclude;N={name:k=>k?O.indexOf(k)===-1:!1}}else N={name:"*"}}N&&h?.emitToChildren(N,"clearValidate",!1)},r.resetFields=u=>{const N=m();if(!N)return;const M={};if(xt(!0,M,d()??{}),Array.isArray(u))u.forEach(O=>{N[O]=M[O]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(k=>{N[k]=M[k]});else if(u&&Array.isArray(u.exclude)){let O=u.exclude??[];Reflect.ownKeys(M).forEach(k=>{O.includes(k)||(N[k]=M[k])})}else Object.assign(N,M);r.clearValidate(u)},r.setModelValue=(u,N)=>{if(!N||N===c)f(u);else{const M={name:N,messagingPolicy:"Once"};h?.emitToChildren(M,"setModelValue",u)}},r.getModelValue=()=>m(),r.setDomainProperty=(u,N)=>{S(u,N)},r.getDomainProperty=u=>T(u),setTimeout(function(){h?.pull()},0)}return t.onUnmounted(function(){i?.validateSchema&&(i.validateSchema.destroy(),r[Qe]=void 0,t.provide(Qe,null)),i?.broadcast&&(i?.broadcast?.destroy(),r[Ne]=void 0,t.provide(Ne,null)),i?.destroy(),r[Ke]=void 0,t.provide(Ke,null),r[Ct]&&(r[Ct].clear(),r[Ct]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,i=null,r=null}),i}function go(e,l,a=[]){let o=t.getCurrentInstance()?.proxy,r=t.inject(Ke,null);r===null&&(r=Tt());const s=e||l.prop||l.name;let c=new fn(s);return c.parent=r,t.isReactive(l)||typeof l=="function"?t.watch(l,i=>{c?.merge(i,a)},{immediate:!0}):c.merge(l,a),o[Ke]=c,t.provide(Ke,c),t.onUnmounted(()=>{c?.destroy(),o[Ke]=void 0,t.provide(Ke,null),c=null,o=null}),c}function Ee(e,l,a){const o=t.getCurrentInstance()?.proxy,r=l??"",s=t.inject(Ne,null);let c=on(o,s,r,a);o[Ne]=c,t.provide(Ne,c),o.broadcast=(T,y,...h)=>c?Reflect.apply(c.emit,c,[T,y,...h]):null;const i=t.inject(Qe,null);e.fieldName=e.fieldName??r;let f=sn(o,i,e);o[Qe]=f,t.provide(Qe,f),o.validate=(T=null)=>{if(!f)return Promise.resolve({pass:!0});const y=[];let h=!1,A=!1;if(Array.isArray(T)&&T.indexOf(r)!==-1)A=!0,h=!0;else if(T&&typeof T=="object"){const g=T,u=g.ignoreDisabled??!0,N=g.ignoreReadonly??!0,M=g.ignoreHidden??!0;u===!0&&e.disabled===!0||N===!0&&e.readonly===!0||M===!0&&to(o.$el)?A=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),A=!0),h=g.deep??!1}else typeof T=="boolean"&&(h=T),A=!0;if(A){const g=f?.validate();y.push(g)}if(h){let g=null;const u={deep:!1};if(T===!0)g={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;g={name:M=>M?N.indexOf(M)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Object.assign(u,N),Array.isArray(N.include)&&N.include.length>0){const M=N.include;g={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const M=N.exclude;g={name:O=>O?M.indexOf(O)===-1:!1}}else g={name:"*"}}if(g&&c){const N=c.emitToChildren(g,"validate",u);Reflect.apply([].push,y,N)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(g=>{let u=[];return g.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(u=[...u,...N.errors])}),u.length>0?{pass:!1,errors:u}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=T=>f?.setRule(T),o.setNameValidateRules=(T,y=!1)=>{const h=T[r];if(h&&f?.setRule(h),y&&c){const A={name:g=>Reflect.ownKeys(T).includes(g)};c.emitToChildren(A,"setNameValidateRules",T,!1)}},o.clearValidate=(T=null)=>{(!Array.isArray(T)||T.indexOf(l??"")!==-1)&&f?.clear();let y=null;if(T===!0)y={name:"*"};else if(Array.isArray(T)&&T.length>0){const h=T;y={name:A=>A?h.indexOf(A)!==-1:!1}}else if(T!=null&&typeof T=="object"){const h=T;if(Array.isArray(h.include)&&h.include.length>0){const A=h.include;y={name:g=>g?A.indexOf(g)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;y={name:g=>g?A.indexOf(g)===-1:!1}}else y={name:"*"}}y&&c&&c.emitToChildren(y,"clearValidate",!1)};let m=new ho(o);o[un]=m;const d=Ue((T="validate")=>{f&&(T==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:so()).forEach(T=>{m&&m.on(T,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:co()).forEach(T=>{m&&m.on(T,y=>{d("reset")})}),setTimeout(function(){c?.pull()},0),t.onUnmounted(()=>{c?.destroy(),o[Ne]=void 0,t.provide(Ne,null),c=null,f?.destroy(),o[Qe]=void 0,t.provide(Qe,null),f=null,m?.destroy(),o[un]=void 0,m=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:c,validateSchema:f,emitEvent:(T,...y)=>{m&&Reflect.apply(m.emit,m,[T,...y])},onEvent:(T,y)=>{m&&Reflect.apply(m.on,m,[y])},offEvent:(T,y)=>{m&&Reflect.apply(m.off,m,[y])}}}function yo(e,l,a,n,o){const r={},s=l??"",c={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return c.getValue()}};let i=sn({},o,a);r.validate=(m=null)=>{if(!c.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let w=!1,S=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)S=!0,w=!0;else if(m&&typeof m=="object"){const T=m;Array.isArray(T.include)&&T.include.indexOf(s)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(s),S=!0,w=T.deep??!1}else typeof m=="boolean"&&(w=m),S=!0;if(S&&i){const T=i.validate();d.push(T)}if(w){let T=null;const y={deep:!1};if(m===!0)T={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;T={name:A=>A?h.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(y,h),Array.isArray(h.include)&&h.include.length>0){const A=h.include;T={name:g=>g?A.indexOf(g)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;T={name:g=>g?A.indexOf(g)===-1:!1}}else T={name:"*"}}if(T&&f){const h=f.emitToChildren(T,"validate",y);Reflect.apply([].push,d,h)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(T=>{let y=[];return T.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(y=[...y,...h.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>i?.setRule(m),r.setNameValidateRules=m=>{const d=m[s];d&&i?.setRule(d)};let f=on(null,n,s,r);return t.onUnmounted(()=>{i=null,f=null}),{broadcast:f,validateSchema:i}}function wl(){let l=t.getCurrentInstance()?.proxy,a=new ho(l);return l[un]=a,t.onUnmounted(()=>{a?.destroy(),l[un]=void 0,a=null,l=null}),{emitEvent:(n,...o)=>{a&&Reflect.apply(a.emit,a,[n,...o])},onEvent:(n,o)=>{a&&Reflect.apply(a.on,a,[o])},offEvent:(n,o)=>{a&&Reflect.apply(a.off,a,[o])}}}const Se=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ve(e,l)}px`:"",zi=Se;function ve(e,l=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&l>0?e*l: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 o=Number(e.substring(0,a)),r=1;if(ft){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),c=s.indexOf("px");c>0&&(r=Number(s.substring(0,c)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*l;const n=Number(e);return isNaN(n)?0:n}const ht="PageStateKey";function at(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=ve(e.top)),e.left!==null&&e.left!==void 0&&(l.left=ve(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=ve(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=ve(e.right))),l}function Sl(e,l,a={},n=!0,o=-1,r=-1,s=0,c=0){if(e.headerHeight=ve(a.headerHeight??l.headerHeight??-1),e.headerPadding=at(a.headerPadding??l.headerPadding),e.footerHeight=ve(a.footerHeight??l.footerHeight??-1),e.footerPadding=at(a.footerPadding??l.footerPadding),e.contentPadding=at(a.contentPadding??l.contentPadding),n){const i=a.height??l.height;i?e.height=ve(i,r):e.height=ve(r)-ve(s,r)-ve(c,r),e.width=ve(a.width??l.width??0,o)}}function po(e,l={}){const a={top:null,bottom:null,right:null,left:null},n={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},o=Object.assign(e.get("safeAreaInset")??{},l.safeAreaInset??{});o&&(n.safeAreaTop=ve(o.top),n.safeAreaBottom=ve(o.bottom),n.safeAreaLeft=ve(o.left),n.safeAreaRight=ve(o.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,c=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Sl(n,r,l,!0,s,c,i,f);const m=t.reactive(n),d=e.getForParent(ht);d&&(n.height=gn(e,d),n.width=yn(e,d),t.watch([()=>gn(e,d),()=>yn(e,d)],([S,T])=>{m.height=S,m.width=T}));const w=!d;return t.watch([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,T,y=-1,h=-1,A=0,g=0])=>{Sl(m,T,l,w,y,h,A,g)}),e.set(ht,m),m}function dn(e){return e.get(ht)}function hn(e,l){if(l=l??e.get(ht),l&&l.headerMounted){const a=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+a}return 0}function mn(e,l){if(l=l??e.get(ht),l&&l.footerMounted){const a=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+a}return 0}function gn(e,l){if(l=l??e.get(ht),l){if(l.contentInnerHeight)return l.contentInnerHeight;const a=hn(e,l),n=mn(e,l);return l.height-a-n-(l.contentPadding.top??0)-(l.contentPadding.bottom??0)}return 0}function yn(e,l){return l=l??e.get(ht),l?l.contentInnerWidth??l.width-(l.contentPadding.left??0)-(l.contentPadding.right??0):0}function ji(e){return!!e.getForParent(ht)}const xl=Symbol.for("InnerPageScopeKey");function Cl(e){t.provide(xl,e)}function Pt(e=!1){return t.inject(xl,e)}const Tl=Symbol.for("AbstractPageScopeKey");function bo(e){t.provide(Tl,e)}function _t(e=!1){return t.inject(Tl,e)}var Ge=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ge||{});function pn(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function Fe(e,l,a=1,n){const o=dt();return o==null?e:a===0?t.computed(()=>{const r=o.getAll(l);for(let c=r.length-1;c>=0;c--){const i=r[c];if(pn(i,n))return i}const s=e.value;return pn(s,n)?s:null}):t.computed(()=>{const r=e.value;if(pn(r,n))return r;const s=o.getAll(l);for(let c=0;c<s.length;c++){const i=s[c];if(pn(i,n))return i}return null})}function Me(e){return Fe(e,"readonly",1)}function Be(e){return Fe(e,"disabled",1)}function pe(e,l="modelValue",a=null,n){const o=t.toRef(e,l);let r=o.value;typeof a=="function"&&(r=a(o.value));const s=t.ref(r);return t.watch(o,c=>{if(typeof a=="function"){const i=a(c);i!==s.value&&(s.value=i,n&&n("setValue",i))}else c!==s.value&&(s.value=c,n&&n("setValue",c))}),s}const vo=new Map,bn=new Map;let kl=null;function Hi(e){kl=e}function wo(e,l,a){if(a){let n=bn.get(a);n||(n=new Map,bn.set(a,n)),n.set(e,l)}else vo.set(e,l)}function Re(e,l,a){!a&&kl&&(a=kl(e)??void 0);let n=null;if(a){let o=bn.get(a);o&&(n=o.get(l))}return n||(n=vo.get(l)),n}function Ki(e,l){for(let a in e){const n=e[a];wo(a,n,l)}}function Wi(e){bn.delete(e)}function Yi(){return{top:0,left:0,bottom:0,right:0}}function Ui(){if(ft){const e=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:l,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Gi(e,l){if(l.componentPrefix){const a=e.indexOf("-");return`${l.componentPrefix}${e.slice(a)}`}return e}class Xi{packages;installers;_version;get version(){return this._version}constructor(l,a,n){this.packages=l,this.installers=a,this._version=n}install(l,a={}){a?.install!==!1&&(this.packages.forEach(o=>{if(o.install)l.use(o);else if(o.name){const r=Gi(o.name,a);l.component(r,o)}}),this.installers.forEach(o=>{o(l,a)}));const n=Tt();if(a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o={...a},r=Ue(()=>{const c={...o};this.updateLayout(c,n)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(a,n)}updateLayout(l,a){const n=l.headerBarHeight??0,o=l.footerBarHeight??0,r=xt({},Yi(),l.safeAreaInset),s=Ui(),c=xt({},s.pageLayout,l.pageLayout);a=a??Tt(),a.set("safeAreaInset",r),a.set("headerBarHeight",n),a.set("footerBarHeight",o),a.set("pageLayout",c),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const f in l)i.indexOf(f)===-1&&a.set(f,l[f])}setScopeGetter(l){Hi(l)}setAPI(l,a,n){wo(l,a,n)}getAPI(l,a,n){return Re(l,a,n)}batchSetAPI(l,a){Ki(l,a)}clearScopeAPI(l){Wi(l)}getRootDomain(){return Tt()}}const Zi=[F.ElAffix,F.ElAlert,F.ElAutocomplete,F.ElAutoResizer,F.ElAvatar,F.ElBacktop,F.ElBadge,F.ElBreadcrumb,F.ElBreadcrumbItem,F.ElButton,F.ElButtonGroup,F.ElCalendar,F.ElCard,F.ElCarousel,F.ElCarouselItem,F.ElCascader,F.ElCascaderPanel,F.ElCheckTag,F.ElCheckbox,F.ElCheckboxButton,F.ElCheckboxGroup,F.ElCol,F.ElCollapse,F.ElCollapseItem,F.ElCollapseTransition,F.ElColorPicker,F.ElConfigProvider,F.ElContainer,F.ElAside,F.ElFooter,F.ElHeader,F.ElMain,F.ElDatePicker,F.ElDescriptions,F.ElDescriptionsItem,F.ElDialog,F.ElDivider,F.ElDrawer,F.ElDropdown,F.ElDropdownItem,F.ElDropdownMenu,F.ElEmpty,F.ElForm,F.ElFormItem,F.ElIcon,F.ElImage,F.ElImageViewer,F.ElInput,F.ElInputNumber,F.ElLink,F.ElMenu,F.ElSubMenu,F.ElMenuItem,F.ElMenuItemGroup,F.ElPageHeader,F.ElPagination,F.ElPopconfirm,F.ElPopover,F.ElPopper,F.ElProgress,F.ElRadio,F.ElRadioButton,F.ElRadioGroup,F.ElRate,F.ElResult,F.ElRow,F.ElScrollbar,F.ElSelect,F.ElOption,F.ElOptionGroup,F.ElSelectV2,F.ElSkeleton,F.ElSkeletonItem,F.ElSlider,F.ElSpace,F.ElSteps,F.ElStep,F.ElSwitch,F.ElTable,F.ElTableColumn,F.ElTableV2,F.ElTabs,F.ElTabPane,F.ElTag,F.ElTimePicker,F.ElTimeSelect,F.ElTimeline,F.ElTimelineItem,F.ElTooltip,F.ElTransfer,F.ElTree,F.ElTreeSelect,F.ElTreeV2,F.ElUpload,F.ElStatistic,F.ElCountdown,F.ElSegmented,F.ElAnchor,F.ElAnchorLink,F.ElWatermark,F.ElMessageBox,F.ElMessage,F.ElNotification],Qi=[F.ElInfiniteScroll,F.ElLoading,F.ElMessage,F.ElMessageBox,F.ElNotification,F.ElPopoverDirective],Ji=(e,l={})=>{const a=l.componentPrefix??"fox",n=a[0].toUpperCase()+a.slice(1);Zi.forEach(o=>{let r=o.name;typeof r=="string"?(r=`${n}${r.slice(2)}`,e.component(r,o)):e.use(o)}),Qi.forEach(o=>{e.use(o)})};function ue(e){const l="fox-"+e;return{componentName:l,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=l,a.install=n=>{n.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}function we(e,l=null){if(l||(l=t.getCurrentInstance()),l&&l.proxy){let a=l.proxy;Object.assign(a,e)}}const ke={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Oe={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},So={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}},xo={name:{type:String,required:!1},prop:{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}},Co=[];for(const e in xo)Co.push(e);const es={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}},ts=(e,l)=>({inheritAttrs:!0,props:{...ke,...So,...es},setup(a,{slots:n}){const o=_t(!1),r=Pt(!1),s=vl(a.name,a);if(s){const d=po(s,a);we({getPageContentHeight:()=>gn(s,d),getPageContentWidth:()=>yn(s,d),getPageHeaderHeight:()=>hn(s,d),getPageFooterHeight:()=>mn(s,d)}),d&&r&&(d.contentHeight="100%")}const c=t.computed(()=>({[e]:!0,"is-inner":r})),i=t.computed(()=>({})),f=t.getCurrentInstance(),m=(d,w=!1)=>{const S=f?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(d,!0,w)};return t.watch([()=>a.rules,()=>a.pureDataRules],([d,w],[S,T])=>{if(d&&S){const y=t.toRaw(S),h=t.toRaw(d),A=h?Reflect.ownKeys(h):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{A.includes(u)||(h[u]=[])}),m(h)}if(w&&T){const y=t.toRaw(T),h=t.toRaw(w),A=h?Reflect.ownKeys(h):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{A.includes(u)||(h[u]=[])}),m(h,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);m(d)}if(a.pureDataRules){const d=t.toRaw(a.pureDataRules);m(d,!0)}}),()=>{if(o)return n?.default?.();{const d={class:c.value,style:i.value};return t.h("div",d,[n?.default?.()])}}}}),{componentName:ns,create:ls}=ue("page"),$l=ls(ts(ns));function Dl(e){const l=t.unref(e);return{width:l.offsetWidth,height:l.offsetHeight}}function vn(e){const l=t.unref(e),a=window.getComputedStyle(l,null),n=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:l.clientWidth-n-o,height:l.clientHeight-r-s}}const To={headerbar:{},radio:{},checkbox:{}};function as(e){Object.assign(To,e)}function ko(){return To}const os=(e,l,a,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const s=_t(!1),c=Pt(!1),i=s?null:dt(),f=i?dn(i):null;f&&(f.headerMounted=!0);const m=ko(),d=e,w=t.computed(()=>{const C={[d]:!0,[`${d}--border`]:o.border,[`${d}--fixed`]:o.fixed};return c||(C[`${d}--safe-area-inset-top`]=o.safeAreaInsetTop),C}),S=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${o.align}`]:!0})),T=Ye(o.height)?null:ve(o.height),y=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return C;if(i&&f){const D=at(o.padding??f.headerPadding);return Object.assign(C,D),Ye(T)||(f.headerHeight=T),C.height=f.headerHeight,C.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(D.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(Ye(T)||(C.height=T),o.padding){const D=at(o.padding);Object.assign(C,D)}return C}),h=t.ref(null),A=()=>{if(f&&h.value&&h.value.offsetParent!==null){if(!n){const C=Dl(h.value);f.headerAllHeight=C.height}return f.headerMounted=!0,!0}return!1},g=Ue(A,120);let u=null;t.onMounted(()=>{s||f&&(cn(A,50,5,50,!0),window.ResizeObserver&&h.value&&(u=new window.ResizeObserver(g),u.observe(h.value)))}),t.onUnmounted(()=>{s||f&&(f.headerMounted=!1,u&&(u.disconnect(),u=null))});const N=t.computed(()=>{const C={};return s||(y.value.height!==null&&y.value.height!==void 0&&(C.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(C.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(C.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(C.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(C.paddingBottom=`${y.value.bottom}px`)),C}),M=t.computed(()=>{const C=y.value?.height;return Ye(C)||C<0?!0:C>0});function O(){r.emit("back")}function k(){r.emit("click-title")}function E(){r.emit("click-right")}function v(){r.emit("click-right-text")}const j=()=>{if(!o.leftShow)return null;const C=[];if(r.slots.left)C.push(r.slots.left());else{if(r.slots.leftIcon){const D=t.h("view",{class:"left-icon",onClick:O},[r.slots.leftIcon()]);C.push(D)}else{const D=o.leftIcon??m.headerbar.Left??a,B=t.h("view",{class:"left-icon",onClick:O},[t.h(D)]);C.push(B)}if(o.leftText){const D=t.h("view",{class:"left-text",onClick:O},[o.leftText]);C.push(D)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__left"},C)},x=()=>{if(!o.rightShow)return null;const C=[];if(r.slots.right)C.push(r.slots.right());else{if(o.rightText){const D=t.h("view",{class:"right-text",onClick:v},[o.rightText]);C.push(D)}if(r.slots.rightIcon){const D=t.h("view",{class:"right-icon",onClick:E},[r.slots.rightIcon()]);C.push(D)}else if(o.rightIcon){const D=t.h("view",{class:"right-icon",onClick:E},[t.h(o.rightIcon)]);C.push(D)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__right"},C)},q=()=>{if(!o.titleShow)return null;const C=[],D=r.slots.default?r.slots.default():null;if(D)C.push(D);else{if(o.title){const B=t.h("view",{class:"title-text"},[o.title]);C.push(B)}if(r.slots.titleIcon){const B=t.h("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);C.push(B)}else if(o.titleIcon){const B=t.h("view",{class:"title-icon",onClick:k},[t.h(o.titleIcon)]);C.push(B)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__title"},C)},X=()=>{const C=[],D=r.slots.bottom?r.slots.bottom():null;return D&&C.push(D),C.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(s||!M.value)return null;const C=[];if(r.slots.all)C.push(r.slots.all());else{const B=[],P=j();P&&B.push(P);const J=q();J&&B.push(J);const Y=x();if(Y&&B.push(Y),B.length>0){const ee=t.h("view",{class:S.value},B);C.push(ee)}const H=X();H&&C.push(H)}if(C.length===0)return null;const D={class:w.value,style:N.value,ref:h};return t.h("view",D,C)}}}),{componentName:rs,create:is,scope:ss}=ue("header-bar"),Nl=is(os(rs,ss,Ie.ArrowLeft));function us(e,l,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(n,o){const r=_t(!1),s=Pt(!1),c=r?null:dt(),i=c?dn(c):null,f=t.computed(()=>{const g=e,u={[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed};return s||(u[`${g}--safe-area-inset-bottom`]=n.safeAreaInsetBottom),u}),m=Ye(n.height)?null:ve(n.height),d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return g;if(c&&i){const u=at(n.padding??i.footerPadding);return Object.assign(g,u),Ye(m)||(i.footerHeight=m),g.height=i.footerHeight,g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(u.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(Ye(m)||(g.height=m),n.padding){const u=at(n.padding);Object.assign(g,u)}return g}),w=t.computed(()=>{const g=d.value?.height;return Ye(g)||g<0?!0:g>0}),S=t.ref(null),T=()=>{if(i&&S.value&&S.value.offsetParent!==null){if(!a){const g=Dl(S.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1},y=Ue(T,120);let h=null;t.onMounted(()=>{r||i&&(cn(T,50,5,50,!0),window.ResizeObserver&&S.value&&(h=new window.ResizeObserver(y),h.observe(S.value)))}),t.onUnmounted(()=>{r||i&&(i.footerMounted=!1,h&&(h.disconnect(),h=null))});const A=t.computed(()=>{const g={};return r||(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()=>{if(r||!w.value)return null;const g=o.slots.default?o.slots.default():[],u={ref:S,class:f.value,style:A.value};return t.h("view",u,g)}}}}const{componentName:cs,create:fs}=ue("footer-bar"),El=fs(us(cs));function ds(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:n,attrs:o}){const r=_t(!1),s=Pt(!1),c=r?null:dt(),i=t.computed(()=>({[e]:!0})),f=c?dn(c):null,m=t.computed(()=>{const y={};if(r)return y;if(c&&f){if(a.padding){const k=at(a.padding);Object.assign(f.contentPadding,k)}const h=hn(c,f),A=mn(c,f);let g="";f.contentHeight?g=`${f.contentHeight}`:g=`${f.height}px`,y.height=g;let u=(f&&f.contentPadding&&f.contentPadding.top)??-1;(u>=0||h>0)&&(u=u<0?0:u,y.paddingTop=`${h+u}px`);let N=(f&&f.contentPadding&&f.contentPadding.bottom)??-1;(N>=0||A>0)&&(N=N<0?0:N,y.paddingBottom=`${A+N}px`);const M=(f&&f.contentPadding&&f.contentPadding.left)??-1;M>=0&&(y.paddingLeft=`${M}px`);const O=(f&&f.contentPadding&&f.contentPadding.right)??-1;return O>=0&&(y.paddingRight=`${O}px`),y}if(a.padding){const h=at(a.padding);h.left&&(y.paddingLeft=`${h.left}px`),h.top&&(y.paddingTop=`${h.top}px`),h.right&&(y.paddingRight=`${h.right}px`),h.bottom&&(y.paddingBottom=`${h.bottom}px`)}return y}),d=t.ref(null),w=()=>{if(f&&d.value){const y=vn(d.value);f.contentInnerHeight=y.height,f.contentInnerWidth=y.width}},S=Ue(w,120);let T=null;return t.onMounted(()=>{s||r||(requestAnimationFrame(w),window.ResizeObserver&&d.value&&(T=new window.ResizeObserver(S),T.observe(d.value)))}),t.onUnmounted(()=>{s||r||T&&(T.disconnect(),T=null)}),()=>{if(r)return n.default?.();{const y=a.tag??"view",h={...o,ref:d,class:i.value,style:m.value};return t.h(y,h,n)}}}}}const{componentName:hs,create:ms}=ue("content"),Il=ms(ds(hs)),kt="GroupStateKey",$o=Symbol.for("GroupScopeKey");function wn(){return t.inject($o,!1)}function Sn(e=!0){t.provide($o,e)}function gs(e,l={}){Reflect.ownKeys(l).forEach(n=>{if(typeof n!="string")return;const o=l[n];Ye(o)||(e[n]=o)})}function ys(e,l={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gs(n,l);const o=t.shallowRef(n),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(kt,r),r}function Vl(e,l,a=-1,n=-1,o=!1,r,s,c){const i=e.get(kt);if(!i)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),n===-1&&(n=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const m=ve(r),d=ve(s);c||(c=f.type??"grid");const w=()=>{const S=l===""||l===-1,T=ve(l);let y=be(a);const h=ve(n);if(!S){let u=(T-(y-1)*h)/y;for(;d!==-1&&u>d;)y++,u=(T-(y-1)*h)/y;for(;m!==-1&&y>1&&u<m;)y--,u=(T-(y-1)*h)/y}let A=!1;const g=i.layout;g.value.width=l,g.value.column!==y&&(g.value.column=y,A=!0),g.value.gutter!==h&&(g.value.gutter=h,A=!0),g.value.type!==c&&(g.value.type=c,A=!0),A&&t.triggerRef(g)};if(o)w();else{const S=++i.passport;setTimeout(()=>{S===i.passport&&w()},50)}}function xn(e,l=!1){let a;return l?a=e.getForParent(kt):a=e.get(kt),a.layout}function Cn(e,l=!1){let a;return l?a=e.getForParent(kt):a=e.get(kt),a.order}function Do(e,l=1){if(l==="stretch")return-1;const a=be(l);return a===-1?100:100*a/e}function Tn(e,l,a=1,n=0,o){const r={};let s=0;o?s=ve(o):s=Do(l.column,a),s>0&&(r.width=`${s}%`);const c=Do(l.column,n);c>0&&(r["margin-left"]=`${c}%`);const i=l.gutter/2;return i>0&&(r["padding-left"]=`${i}px`,r["padding-right"]=`${i}px`),r}function kn(e,l,a=1,n=0){if(a==="stretch"){const i=e.index%l.column,f=i+(l.column-i);return e.index=e.index+(f-i),{"grid-column":`${i+1} / -1`}}let o=be(a);if(o===-1){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}if(o>l.column){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}const r=be(n)%l.column;let s=(e.index+r)%l.column,c=s+o;return c>l.column?(s=0,c=s+o,e.index=e.index+(l.column-s)+o):e.index=e.index+r+o,r>0?{"grid-column":`${s+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const No=Symbol("RollingStateKey");function ps(e){t.provide(No,e)}function bs(){return t.inject(No,null)}function Ol(e){let l=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));l=e.clientHeight-o-r}else l=e.offsetHeight;return l}function vs(e){let l=Ol(e);if(l<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),l=Ol(a),document.body.removeChild(a)}return l}function ws(e,l,a){const n=typeof e=="number"?e:parseInt(e),o=typeof l=="number"?l:parseInt(l),r=typeof a=="number"?a:parseInt(a);if(n<=0)return"1fr";const s=(n-(o-1)*r)/o;return s>0?`${s}px`:"1fr"}const Ss={...ke,...So,...xo};function xs(e,l,a){return{props:Ss,emits:["update:collapse","header-click"],setup(n,o){const r=vl(n.prop??n.name,n,Co),s=ys(r,{type:n.type}),c=wn();Sn(!0);const i=n.rollingDisplay?bs():null,f=t.ref(null),m=t.computed(()=>n.rollingDisplay?i&&!i.disabled:!1),d=t.computed(()=>c&&r?xn(r,!0).value:null),w=t.getCurrentInstance(),S=($,W=!1)=>{const V=w?.proxy;V&&typeof V.setNameValidateRules=="function"&&V.setNameValidateRules($,!0,W)};t.watch([()=>n.rules,()=>n.pureDataRules],([$,W],[V,p])=>{if($&&V){const z=t.toRaw(V),_=t.toRaw($),ne=_?Reflect.ownKeys(_):[];(z?Reflect.ownKeys(z):[]).forEach(ie=>{ne.includes(ie)||(_[ie]=[])}),S(_)}if(W&&p){const z=t.toRaw(p),_=t.toRaw(W),ne=_?Reflect.ownKeys(_):[];(z?Reflect.ownKeys(z):[]).forEach(ie=>{ne.includes(ie)||(_[ie]=[])}),S(_,!0)}},{deep:!0});const T=e,y=t.computed(()=>{const $={};$.height=D.value;const W=c?Cn(r,!0):null;if(d.value&&W){if(d.value.type==="grid"){const V=kn(W,d.value,n.span,n.offset);Object.assign($,V)}else if(d.value.type==="flow"){const V=Tn(W,d.value,n.span,n.offset,n.width);Object.assign($,V)}}else if(n.width){const V=Se(n.width);$.width=V}return $}),h=t.computed(()=>{const $=s.layout.value.type;return $==="grid"||$==="flow"?{[`${T}--${$}`]:!0,[`${T}--${$}-justify-${n.justify}`]:!0,[`${T}--${$}-align-${n.align}`]:!0,[`${T}--gutter`]:!0}:{[`${T}--${$}`]:!0,[`${T}--gutter`]:!0}}),A=t.computed(()=>{if(s.layout.value.type==="grid"){let W="";if(n.columnWidth)W=`repeat(auto-fill, ${n.columnWidth})`;else{const V=ws(E.value,s.layout.value.column,s.layout.value.gutter);W=`repeat(${s.layout.value.column}, ${V})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":W}}}),g=t.toRef(n,"gutter"),u=t.toRef(n,"column"),N=t.computed(()=>c||m.value?!0:de(n.isWrap)),M=[],O=$=>{M.push($)},k=()=>{let $=M.length;M.splice(0,$)},E=t.ref(-1),v=$=>{const W=vn($).width;W>0&&W!==E.value&&(E.value=W)};Vl(r,E.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([E,u,g],([$,W,V])=>{s.order.index=0,Vl(r,$,W,V,!1,n.minItemWidth,n.maxItemWidth,n.type)});const j=t.computed(()=>B.value?n.expandText??"":n.collapseText??""),x=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),X=t.ref(),C=t.ref(),D=t.computed(()=>P.value||Se(n.height)||""),B=t.ref(!1),P=t.ref(""),J=t.ref(!1);let Y=-1;const H=($,W=!0)=>{const V=X.value;if(V&&B.value!==$){if(Y=Y===-1?vs(V):Y,J.value=!0,W)if(V.style["will-change"]="height",V.ontransitionend=function(){V.ontransitionend=null,this.style["will-change"]="auto",$||(P.value="",J.value=!1)},$){let p=0;n.collapseHeight?p=n.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(p=C.value.offsetHeight),P.value=`${Y}px`,t.nextTick(()=>{P.value=`${p}px`})}else P.value=`${Y}px`;else if($){let p=0;n.collapseHeight?p=n.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(p=C.value.offsetHeight),P.value=`${p}px`}else J.value=!1,P.value=`${Y}px`;B.value=$,o.emit("update:collapse",$)}};t.watch(()=>n.collapse,$=>{H($)});const ee=$=>{o.emit("header-click",$)},U=()=>{K()},K=$=>{$=$??!B.value,H($)};we({toggleCollapse:K,doLayout:()=>{M[0]&&(v(M[0]),Vl(r,E.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let Z=null,R=!0;const te=$=>{if(n.rules){const W=t.toRaw(n.rules);S(W)}if(n.pureDataRules){const W=t.toRaw(n.pureDataRules);S(W,!0)}if(ft&&($&&H(de(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const W=M[0];if(v(W),window.ResizeObserver){const V=Ue(()=>v(W),120);Z=new window.ResizeObserver(V),Z.observe(W)}}},le=()=>{Z?.disconnect(),Z=null},Q=!m.value||i?.acquire();Q&&(f.value=m.value?!0:null),t.onMounted(()=>{if(Q&&(te(R),R=!1),m.value&&i){let $=null,W=i.initialHeight;i.observe(X.value,V=>{if(V!==f.value)if(V)f.value=!0,B.value||(P.value=""),$=setTimeout(()=>{$=null,f.value!==!1&&(te(R),R=!1)},100);else{if($!==null&&clearTimeout($),f.value=!1,!B.value)if(R)P.value=i.initialHeight;else{let p=Ol(X.value);p<=0?P.value=W:(P.value=`${p}px`,W=P.value)}R||le()}})}}),t.onUnmounted(()=>{Z?.disconnect(),i&&i.unobserve(X.value)});const I=($="right")=>{const W=[];if(j.value){const z={class:x.value},_=t.h("span",z,[j.value]);W.push(_)}const V={class:q.value},p=a(n.collapseIcon,V);return p&&W.push(p),W.length>0?t.h("div",{class:{[`${T}__header-collapse`]:!0,[`is-${$}`]:!0},onClick:U},W):null},L=($,W,V,p)=>{const z={...h.value};if(W===0&&(z[`${T}__first`]=!0),V>=p-1&&(z[`${T}__last`]=!0),N.value===!1){const _=o.attrs.class;_&&(z[`${_}`]=!0)}return t.h("div",{ref:O,key:`${W}`,class:z,style:A.value},$)};return()=>{const $=n.prop??n.name;if(m.value&&f.value!==!0){const _=n.tag||"div";return t.h(_,{ref:X,prop:$,class:{[`${T}`]:!0,"is-collapse":J.value},style:y.value},[])}s.order.index=0;const W=[];let V=0;if(o.slots.header){const _={key:`${V++}`,ref:C,class:{[`${T}__header`]:!0,[`${T}__first`]:!0},onClick:ee},ne=t.h("div",_,[o.slots.header()]);W.push(ne)}else{const _=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=I("left");oe&&_.push(oe)}if(n.title||o.slots.title){if(n.showMark){const oe={class:{[`${T}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const ie=t.h("div",oe);_.push(ie)}if(o.slots.title){const oe=t.h("div",{class:{[`${T}__header-title`]:!0}},[o.slots.title()]);_.push(oe)}else if(n.title){const oe=t.h("div",{class:{[`${T}__header-title`]:!0}},[n.title]);_.push(oe)}}if(o.slots.toolbar&&_.push(o.slots.toolbar()),!ne&&n.showCollapse){const oe=I("right");oe&&_.push(oe)}if(_.length>0){const oe={key:`${V++}`,ref:C,class:{[`${T}__header`]:!0,[`${T}__first`]:!0},onClick:ee},ie=t.h("div",oe,_);W.push(ie)}}k();const p=o.slots.default?o.slots.default():[],z=s.layout.value.type;if(z==="grid"){const _=L(p,V++,0,p.length);W.push(_)}else if(z==="flow"){const _=L(p,V++,0,p.length);W.push(_)}else for(let _=0;_<p.length;_++){const ne=p[_],oe=L([ne],V++,_,p.length);W.push(oe)}if(N.value){const _=n.tag||"div";return t.h(_,{ref:X,prop:$,class:{[`${T}`]:!0,"is-collapse":J.value},style:y.value},[W])}else return W}}}}const{componentName:Cs,create:Ts,scope:ks}=ue("group"),Al=Ts(xs(Cs,ks,(e,l)=>(e=e??Ie.ArrowUp,t.h(F.ElIcon,l,{default:()=>[t.h(e)]}))));function $s(e){return e===window}const Ds=/matrix\((.+)\)/,Fl=e=>{const l=t.unref(e);if(!l)return{x:0,y:0};if($s(l))return{x:0,y:0};let a=0,n=0,o=l;for(;o!==null;)a+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent;let r=0,s=0,c=0,i=0;for(o=l;o!==document;){s+=o.scrollTop,r+=o.scrollLeft;const{transform:f}=window.getComputedStyle(o);if(f){const m=Ds.exec(f);if(m){let w=m[1].split(/\s*,\s*/);w.length==6&&(c+=Number(w[4]),i+=Number(w[5]))}}o=o.parentNode}return a-=r,n-=s,a+=c,n+=i,{x:a,y:n}};class Ns{watchedListeners=[];add(l){this.watchedListeners.push(l)}remove(l){const a=this.watchedListeners.indexOf(l);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(l=>{try{l()}catch{}})}}class Es{monitorRegister=new WeakMap;watch(l,a){let n=l.parentNode;const o=document.body.parentNode;for(;n&&n!==o;){let r=this.monitorRegister.get(n);r||(r=new Ns,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(a),n=n.parentNode}}unwatch(l,a){let n=l.parentNode;const o=document.body.parentNode;for(;n&&n!==o;){let r=this.monitorRegister.get(n);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const qt=new Es,Eo={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:Is,create:Vs}=ue("price"),Os=Vs({props:{...Eo},setup(e){const l=t.computed(()=>({[Is]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>lt(e.price)==0?"":tn(e.price,e.decimalLength,!0,be(e.digits),e.separator)),o=t.computed(()=>{let s=n.value;if(s.length==0)return"";let c=s.indexOf(".");return s.substring(0,c)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let c=s.indexOf(".");return s.substring(c+1)});return{classes:l,showSymbol:a,intText:o,decimalText:r}}}),Le=(e,l)=>{const a=e.__vccOpts||e;for(const[n,o]of l)a[n]=o;return a},As=["innerHTML"],Fs=["innerHTML"];function Ms(e,l,a,n,o,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,As)):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,Fs)):t.createCommentVNode("",!0)],2)}const $n=Le(Os,[["render",Ms]]),{componentName:Ml,create:Bs}=ue("hint-text"),Rs=Bs({components:{Price:$n},props:{...Eo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,l){const a=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),o=t.ref(0),r=t.ref(0),s=t.ref(e.placement),c=t.ref(!1),i=t.ref(null),f=(x,q,X,C,D,B)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Y=x.split("-");let H=[];Y[0]==="top"?H=["top","bottom","right","left"]:Y[0]==="bottom"?H=["bottom","top","right","left"]:Y[0]==="left"?H=["left","top","bottom","right"]:Y[0]==="right"&&(H=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},U=[];for(let K=0;K<H.length;K++){const G=H[K];if(U[0]=G,Y[1]&&(U[1]=Y[1]),G==="top"){const Z=q.y-B-e.arrowSize-e.offset;if(Z>=0){ee.top=Z;let R=0;Y[1]==="start"?R=q.x:Y[1]==="end"?R=q.x+X-D:R=q.x+X/2-D/2;const te=P-R-D;te<0?(R+=te,d.value=-te):d.value=0,ee.left=R<0?0:R;break}}else if(G==="bottom"){const Z=q.y+C+e.arrowSize+e.offset;if(Z+B<=J){ee.top=Z;let R=0;Y[1]==="start"?R=q.x:Y[1]==="end"?R=q.x+X-D:R=q.x+X/2-D/2;const te=P-R-D;te<0?(R+=te,d.value=-te):d.value=0,ee.left=R<0?0:R;break}}else if(G==="left"){const Z=q.x-D-e.arrowSize-e.offset;if(Z>=0){ee.left=Z;let R=0;Y[1]==="start"?R=q.y:Y[1]==="end"?R=q.y+C-B:R=q.y+C/2-B/2,ee.top=R<0?0:R;break}}else if(G==="right"){const Z=q.x+X+e.arrowSize+e.offset;if(Z+D<=P){ee.left=Z;let R=0;Y[1]==="start"?R=q.y:Y[1]==="end"?R=q.y+C-B:R=q.y+C/2-B/2,ee.top=R<0?0:R;break}}}return{bestPlacement:U.join("-"),bestInsetRect:ee}},m=(x,q,X=10)=>{if(!ft||q===!1||!x)return;n.value=Fl(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const C=i.value.offsetHeight,D=i.value.offsetWidth,{bestPlacement:B,bestInsetRect:P}=f(e.placement,n.value,o.value,r.value,D,C);s.value=B,a.value=P,c.value=!0},d=t.ref(0),w=Ue(()=>{m(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,x=>{S.value=x});const T=t.computed(()=>S.value&&y.value),y=t.ref(!0),h=Ue(x=>{const q=x[0];q&&(y.value=q.isIntersecting)},10),A=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),qt.watch(e.reference,w),A.observe(e.reference)}),t.onBeforeUnmount(()=>{qt.unwatch(e.reference,w),A.unobserve(e.reference),A.disconnect()});const g=t.computed(()=>{const x={[Ml]:!0};return s.value.startsWith("top")?x["is-top"]=!0:s.value.startsWith("right")?x["is-right"]=!0:s.value.startsWith("bottom")?x["is-bottom"]=!0:s.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),u=t.computed(()=>{const x={};a.value.top!==null&&(x.top=`${a.value.top}px`),a.value.right!==null&&(x.right=`${a.value.right}px`),a.value.bottom!==null&&(x.bottom=`${a.value.bottom}px`),a.value.left!==null&&(x.left=`${a.value.left}px`),e.autoFit&&(x["min-width"]=`${o.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,c.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),N=t.computed(()=>{const x=[`${Ml}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),M=t.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),O=t.computed(()=>({[`${Ml}__arrow`]:!0})),k=t.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,s.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):s.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):s.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):s.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):s.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):s.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):s.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):s.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),E=t.computed(()=>T.value&&e.closeOnClick),v=t.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:T,tipRef:i,classes:g,styles:u,textClasses:N,textStyles:M,arrowClasses:O,arrowStyles:k,overlayShow:E,overlayStyle:v,onClickOverlay:()=>{S.value=!1,l.emit("update:visible",!1)}}}}),Ls=["innerHTML"];function Ps(e,l,a,n,o,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:l[0]||(l[0]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ls))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Io=Le(Rs,[["render",Ps]]);class Vo{seed=new Date().getTime();constructor(l){this.seed=l??new Date().getTime()}get(){let l=this.seed++;return this.seed<0&&(this.seed=0),l}}const Bl={},_s=new Vo,$t=new Map,Dn=e=>{if(e){const l=document.getElementById(e);$t.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of $t.keys()){const a=document.getElementById(l);a&&a.parentNode?.removeChild(a)}$t.clear()}},qs=e=>{e.unmount=Dn;const l=document.getElementById(e.id);if(l){const a=$t.get(e.id);a?e={...Bl,...a,...e}:e={...Bl,...e},e.transition=!1;const n=t.createVNode(Io,e);t.render(n,l)}return e.id},zs=e=>{e.unmount=Dn;let l=e.id??`hinttext_${_s.get()}`;e={...Bl,...e},e.id=l,$t.set(l,e);const a=document.createElement("div");a.id=e.id;const n=t.createVNode(Io,e);return t.render(n,a),document.body.appendChild(a),l},js=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,l,a={},n=!0){js(l);const o=a.id;return o&&$t.has(o)?qs({...a,message:l,reference:e}):(n&&Dn(),zs({...a,message:l,reference:e}))},hide(e){Dn(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Hs(e,l,a,n=!1){return{inheritAttrs:!0,props:{...ke,...Oe},emits:["appear","disappear"],setup(o,r){const s=o.prop??r.attrs.name;Ee({componentName:e,validate:!1},s);const c=dt(),i=wn();Sn(!1);const f=t.computed(()=>i&&c?xn(c,!1).value:null),m=e,d=t.ref(null),w=t.computed(()=>{const p={[m]:!0,[`${m}__gutter`]:f.value&&f.value.type!=="flow",[`${m}__stretch`]:o.span==="stretch",[`${m}__input--border`]:de(o.hasBorder)};if(p[o.errorMarkClass]=!!B.value,p[o.warnMarkClass]=!!C.value,p[o.infoMarkClass]=!!q.value,typeof d.value=="function"){const z=d.value(s);p[z]=!0}else if(typeof d.value=="string"){const z=d.value;p[z]=!0}return p}),S=t.ref(null),T=t.computed(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=Se(o.width));else{const z=i&&c?Cn(c,!1):null;if(f.value&&z){if(f.value.type==="grid"){const _=kn(z,f.value,o.span,o.offset);Object.assign(p,_)}else if(f.value.type==="flow"){const _=Tn(z,f.value,o.span,o.offset,o.width);Object.assign(p,_)}}}if(typeof S.value=="function"){const z=S.value(s);z&&Object.assign(p,z)}else if(S.value&&typeof S.value=="object"){const z=S.value;Object.assign(p,z)}return p}),y=t.ref(null),h=t.computed({get:()=>y.value??de(o.isRequired),set:p=>{y.value=p}}),A=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",g=Fe(t.toRef(o,"labelPosition"),"labelPosition",Ge.Near),u=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),N=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${u.value}`]:!0})),M=t.computed(()=>({label:!0,[`label--${u.value}`]:!0})),O=Fe(t.toRef(o,"labelWidth"),"labelWidth",Ge.Near),k=t.computed(()=>O&&O.value?{width:Se(O.value)}:{}),E=t.computed(()=>({"label--string":!0,"label--required":h.value})),v=t.computed(()=>({content:!0,[o.contentClass]:!0})),j=t.computed(()=>({...o.contentStyle})),x=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(p){h.value=p},setErrorTip(p){x.errorTip=p},setErrorIcon(p){x.errorIcon=p},setWarnTip(p){x.warnTip=p},setWarnIcon(p){x.warnIcon=p},setInfoTip(p){x.infoTip=p},setInfoIcon(p){x.infoIcon=p},setCustomClassName(p){d.value=p},setCustomStyle(p){S.value=p}});const q=t.computed(()=>o.infoTip||x.infoTip),X=t.computed(()=>o.infoIcon||x.infoIcon),C=t.computed(()=>o.warnTip||x.warnTip),D=t.computed(()=>o.warnIcon||x.warnIcon),B=t.computed(()=>o.errorTip||x.errorTip),P=t.computed(()=>o.errorIcon||x.errorIcon),J=t.computed(()=>B.value?"error":C.value?"warn":q.value?"info":""),Y=()=>J.value.length>0,H=t.computed(()=>J.value==="error"?B.value:J.value==="warn"?C.value:J.value==="info"?q.value:""),ee=t.computed(()=>J.value==="error"?P.value:J.value==="warn"?D.value:J.value==="info"?X.value:null),U=t.computed(()=>{const p={[`${m}__tip`]:!0,[`${m}__tip--${J.value}`]:!0,[`${m}--animate`]:!0};return J.value==="error"&&o.errorClass?p[`${o.errorClass}`]=!0:J.value==="warn"&&o.warnClass?p[`${o.warnClass}`]=!0:J.value==="info"&&o.infoClass&&(p[`${o.infoClass}`]=!0),p}),K=t.computed(()=>{const p={};return g&&g.value==="top"||!A()?p["padding-left"]="0px":O&&O.value&&(p["padding-left"]=Se(O.value)),p}),G=t.ref();let Z="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([p,z,_,ne])=>{G.value&&(p&&!ge(z)?Z?a.show(G.value,z,{...ne,id:Z,type:_},!0):Z=a.show(G.value,z,{...ne,type:_},!0):a.hide(Z))});let R=null;const te=()=>{R||!G.value||(R=new IntersectionObserver(p=>{let z=!1;for(let _ of p)if(_.intersectionRatio>0){z=!0,z&&r.emit("appear",_);break}z||r.emit("disappear")}),R.observe(G.value))},le=()=>{!R||!G.value||(R.unobserve(G.value),R=null)};t.watch(()=>de(o.appearListen),p=>{p?te():le()}),t.onMounted(()=>{de(o.appearListen)&&te()}),t.onUnmounted(le);const Q=()=>{if(!A())return null;const p=[],z=r.slots?.label?.()??o.label,_={class:E.value},ne=t.h("div",_,[z]);if(p.push(ne),r.slots.fixedPreTip){const ie=r.slots.fixedPreTip();p.push(ie)}const oe={class:M.value,style:k.value};return t.h("div",oe,p)},I=()=>{const p=[];if(r.slots.prepend){const _=r.slots.prepend();p.push(_)}if(r.slots.default){const _=r.slots.default();p.push(_)}if(r.slots.append){const _=r.slots.append();p.push(_)}if(r.slots.fixedTip){const _={class:[`${m}__fixed-tip`]},ne=t.h("div",_,[r.slots.fixedTip()]);p.push(ne)}const z={ref:G,class:v.value,style:j.value};return t.h("div",z,p)},L=()=>{const p=ee.value;return p?typeof p=="function"?t.h("div",{class:"fox-item__tip--icon"},[p()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(p)]):null},$=()=>{const p=H.value;return p?typeof p=="function"?t.h("div",{class:"fox-item__tip--text"},[p()]):t.h("div",{class:"fox-item__tip--text"},[p]):null},W=()=>{if(!Y())return null;const p=[],z=L();z&&p.push(z);const _=$();_&&p.push(_);const ne={class:U.value,style:K.value};return t.h("div",ne,p)},V=()=>r.slots?.hide?.()??null;return()=>{const p=[],z=[],_=Q();_&&z.push(_);const ne=I();ne&&z.push(ne);const oe={class:N.value},ie=t.h("div",oe,z);p.push(ie);const he=W();he&&p.push(he);const ye=V();ye&&p.push(ye);const Te={class:w.value,style:T.value,prop:o.prop};return t.h("div",Te,p)}}}}const{componentName:Ks,create:Ws,scope:Ys}=ue("item"),$e=Ws(Hs(Ks,Ys,Pe,!1)),Rl={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Us(e,l){return{props:{...Rl},setup(a,n){const o=dt(),r=wn();Sn(!1);const s=t.computed(()=>r&&o?xn(o,!1).value:null),c=e,i=t.computed(()=>({[c]:!0,[`${c}__gutter`]:s.value&&s.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=Se(a.width));else{const d=r&&o?Cn(o,!1):null;if(s.value&&d)if(s.value.type==="grid"){const w=kn(d,s.value,a.span,a.offset);Object.assign(m,w)}else if(s.value.type==="flow"){const w=Tn(d,s.value,a.span,a.offset,a.width);Object.assign(m,w)}else return a.width&&(m.width=Se(a.width)),m}return m});return()=>{const m={class:i.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:Gs,create:Xs}=ue("slot-item"),Nn=Xs(Us(Gs)),Ll={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Zs(e,l){return{props:{...Ll},setup(a,n){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),s=dt(),c=wn();Sn(!1);const i=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=Se(a.width));else if(c&&s){const m=xn(s,!1),d=Cn(s,!1);if(m.value&&d)if(m.value.type==="grid"){const w=kn(d,m.value,a.span,a.offset);Object.assign(f,w)}else if(m.value.type==="flow"){const w=Tn(d,m.value,a.span,a.offset,a.width);Object.assign(f,w)}else a.width&&(f.width=Se(a.width))}return a.gutter&&(f.gap=Se(a.gutter)),f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let w=0;w<d.length;w++){if(w>0){const S=t.h("div",{class:{[`${o}__divide`]:!0}});f.push(S)}f.push(d[w])}else Reflect.apply([].push,f,d)}const m={class:r.value,style:i.value};return t.h("div",m,f)}}}}const{componentName:Qs,create:Js}=ue("row-item"),En=Js(Zs(Qs));function eu(e,l){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const n=a.getBoundingClientRect().width;if(n>0){l(n);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),l(o)},500)}const tu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function nu(e,l,a,n=!1){return{props:{...tu},emits:["click"],setup(o,r){const s=t.ref(null),c=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(u[`${e}--${o.type??"default"}`]=!0),o.size&&(u[`${e}--${o.size}`]=!0),u}),i=t.computed(()=>{const u={},N=o.textColor??o.color;return N&&(u.color=N),u}),f=(u,N)=>{let M=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const O=o.highlightFilter;if(u.indexOf(O)!==-1){const E=u.replace(new RegExp(O,"g"),`<span>${O}</span>`);N.innerHTML=E,N.class["is-highlight"]=!0,M=t.h(o.tag,N)}}else if(typeof o.highlightFilter=="function"){const O=o.highlightFilter(u);O&&(N.innerHTML=O,N.class["is-highlight"]=!0,M=t.h(o.tag,N))}return M},m=u=>{r.emit("click",u)};let d="";const w=()=>{const u=s.value;if(!u)return;const N=u.clientWidth;eu(u,M=>{const O=u.innerHTML??"";ge(O)||M<N||(d?a?.show(u,O,{type:"text",id:d,showArrow:o.showArrow},!0):d=a?.show(u,O,{type:"text",showArrow:o.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let T=null;const y=u=>{T||(T=setTimeout(()=>{w(),T=null},o.showAfter??0))},h=u=>{T&&(clearTimeout(T),T=null),setTimeout(()=>{S()},o.hideAfter??0)},A=()=>{const u=s.value;u&&(u.addEventListener("mouseover",y),u.addEventListener("mouseleave",h))},g=()=>{const u=s.value;u&&(u.removeEventListener("mouseover",y),u.removeEventListener("mouseleave",h))};return t.onMounted(()=>{!de(o.showOverflowTooltip)||!a||A()}),t.onBeforeUnmount(()=>{!de(o.showOverflowTooltip)||!a||g()}),()=>{const u={onClick:m,class:c.value,style:i.value,ref:s};let N=null;if(de(o.numberFormat)&&typeof r.slots.default=="function"){const E=r.slots.default();if(Array.isArray(E)&&E.length===1){const v=E[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const j=be(o.digits),x=be(o.decimalLength),q=de(o.autoPadding);let X=`${E[0].children}`,C=X.split("").reverse().join("");C=tn(C,x,q,j,o.separator),X=C.split("").reverse().join(""),o.highlightFilter!==void 0&&(N=f(X,u)),N||(u.innerHTML=X,N=t.h(o.tag,u))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const E=r.slots.default();if(Array.isArray(E)&&E.length===1){const v=E[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const j=`${E[0].children}`;N=f(j,u),N||(u.innerHTML=j,N=t.h(o.tag,u))}}}N||(N=t.h(o.tag,u,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return N;let O=null;if(o.icon){const E={[`${e}__mark-wrap`]:!0};o.type&&(E[`${e}__mark-wrap--${o.type}`]=!0);const v={},j=o.color;j&&(v.color=j);const x={onClick:m,class:E,style:v};O=t.h("view",x,t.h(o.icon))}else if(r.slots.mark){const E={[`${e}__mark-wrap`]:!0};o.type&&(E[`${e}__mark-wrap--${o.type}`]=!0);const v={},j=o.color;j&&(v.color=j);const x={onClick:m,class:E,style:v};O=t.h("view",x,{default:r.slots.mark})}else{const E={[`${e}__mark`]:!0};o.type&&(E[`${e}__mark--${o.type??"default"}`]=!0);const v={},j=o.color;j&&(v["background-color"]=j);const x={onClick:m,class:E,style:v};O=t.h("view",x)}const k={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",k,[O,N])}}}}const{componentName:lu,create:au,scope:ou}=ue("text"),In=au(nu(lu,ou,Pe,!1)),ru={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function iu(e,l,a=!1){return{props:{...ru},emits:["update:visible"],setup(n,{emit:o,slots:r,expose:s}){const c=t.ref({top:null,right:null,bottom:null,left:null}),i=t.ref(0),f=t.ref(0),m=t.ref(0),d=t.ref(0),w=t.ref(n.placement),S=t.ref(!1),T=t.ref(!1),y=t.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,A=(H,ee,U,K,G,Z,R,te=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,I=H.split("-");let L=[];te?I[0]==="top"?L=["top","bottom","right","left"]:I[0]==="bottom"?L=["bottom","top","right","left"]:I[0]==="left"?L=["left","top","bottom","right"]:I[0]==="right"&&(L=["right","top","bottom","left"]):L=[H[0]];const $={top:null,right:null,bottom:null,left:null},W=[];for(let V=0;V<L.length;V++){const p=L[V];if(W[0]=p,I[1]&&(W[1]=I[1]),p==="top"){const z=U-R-n.arrowSize/2-n.offset;if(z>=0){$.top=z;let _=0;I[1]==="start"?_=ee:I[1]==="end"?_=ee+K-Z:_=ee+K/2-Z/2;const ne=le-_-Z;ne<0?(_+=ne,u.value=-ne):u.value=0,$.left=_<0?0:_;break}}else if(p==="bottom"){const z=U+G+n.arrowSize/2+n.offset;if(z+R<=Q){$.top=z;let _=0;I[1]==="start"?_=ee:I[1]==="end"?_=ee+K-Z:_=ee+K/2-Z/2;const ne=le-_-Z;ne<0?(_+=ne,u.value=-ne):u.value=0,$.left=_<0?0:_;break}}else if(p==="left"){const z=ee-Z-n.arrowSize/2-n.offset;if(z>=0){$.left=z;let _=0;I[1]==="start"?_=U:I[1]==="end"?_=U+G-R:_=U+G/2-R/2,$.top=_<0?0:_;break}}else if(p==="right"){const z=ee+K+n.arrowSize/2+n.offset;if(z+Z<=le){$.left=z;let _=0;I[1]==="start"?_=U:I[1]==="end"?_=U+G-R:_=U+G/2-R/2,$.top=_<0?0:_;break}}}return{bestPlacement:W.join("-"),bestInsetRect:$}},g=()=>{const H=n.visible,ee=n.autoFit;if(!ft||H===!1)return;if(n.reference){const R=h(),te=Fl(R);i.value=te.x,f.value=te.y,m.value=R.offsetWidth,d.value=R.offsetHeight}else n.referenceInset&&(i.value=n.referenceInset.left,f.value=n.referenceInset.top,m.value=n.referenceInset.right-n.referenceInset.left,d.value=n.referenceInset.bottom-n.referenceInset.top);const U=y.value.offsetWidth,K=y.value.offsetHeight,{bestPlacement:G,bestInsetRect:Z}=A(n.placement,i.value,f.value,m.value,d.value,U,K,ee);w.value=G,c.value=Z},u=t.ref(0),N=Ue(()=>{g()},10),M=t.ref(n.visible);t.watch([()=>n.visible],([H])=>{M.value=H,H?(S.value=H,setTimeout(()=>{g(),T.value=!0},0)):T.value=!1});const O=t.computed(()=>M.value&&k.value),k=t.ref(!0),E=Ue(H=>{const ee=H[0];ee&&(k.value=ee.isIntersecting)},10),v=new IntersectionObserver(E);t.watch([()=>n.reference,()=>n.referenceInset],([H,ee],[U,K])=>{!H&&!ee||(setTimeout(()=>{g()},0),n.autoFit&&(U&&(qt.unwatch(U,N),v.unobserve(U)),H&&(qt.watch(H,N),v.observe(H))))},{immediate:!0}),t.onBeforeUnmount(()=>{n.reference&&(qt.unwatch(n.reference,N),v.unobserve(n.reference),v.disconnect())});const j=t.computed(()=>{const H={[e]:!0};return w.value.startsWith("top")?H["is-top"]=!0:w.value.startsWith("right")?H["is-right"]=!0:w.value.startsWith("bottom")?H["is-bottom"]=!0:w.value.startsWith("left")&&(H["is-left"]=!0),H[`is-${n.effect}`]=!0,!T.value&&O.value&&(H["is-opacity"]=!0),T.value&&O.value&&(H["is-show"]=!0),O.value||(H["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(H[`${n.customClass}`]=!0),H}),x=t.computed(()=>{const H={};return c.value.top!==null&&(H.top=`${c.value.top}px`),c.value.right!==null&&(H.right=`${c.value.right}px`),c.value.bottom!==null&&(H.bottom=`${c.value.bottom}px`),c.value.left!==null&&(H.left=`${c.value.left}px`),n.width&&(H.width=n.width),n.zIndex&&(H["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(H,n.customStyle),H}),q=()=>{M.value=!1,o("update:visible",!1)},X=()=>{if(!n.showOverlay)return null;const H={class:`${e}__overlay`,onClick:q};return t.h("div",H)},C=()=>{let H=null;return r.title?H=t.h("div",{class:`${e}__title`},{default:r.title}):n.title&&(H=t.h("div",{class:`${e}__title`},[n.title])),H},D=t.computed(()=>({[`${e}__arrow`]:!0})),B=t.computed(()=>{const H={};return n.showArrow?(H.width=`${n.arrowSize}px`,H.height=`${n.arrowSize}px`,w.value==="top"?(H.left="50%",H.bottom="0",H.transform="translate(-50%, 50%)"):w.value==="top-start"?(H.left=`${n.arrowOffset+u.value}px`,H.bottom="0",H.transform="translate(-50%, 50%)"):w.value==="top-end"?(H.right=`${n.arrowOffset-u.value}px`,H.bottom="0",H.transform="translate(-50%, 50%)"):w.value==="right"?(H.left="0",H.top="50%",H.transform="translate(-50%, -50%)"):w.value==="right-start"?(H.left="0",H.top=`${n.arrowOffset}px`,H.transform="translate(-50%, 50%)"):w.value==="right-end"?(H.left="0",H.bottom=`-${n.arrowOffset}px`,H.transform="translate(-50%, 50%)"):w.value==="bottom"?(H.left="50%",H.top="0",H.transform="translate(-50%, -50%)"):w.value==="bottom-start"?(H.left=`${n.arrowOffset+u.value}px`,H.top="0",H.transform="translate(-50%, -50%)"):w.value==="bottom-end"?(H.right=`${n.arrowOffset-u.value}px`,H.top="0",H.transform="translate(-50%, -50%)"):w.value==="left"?(H.right="0",H.top="50%",H.transform="translate(50%, -50%)"):w.value==="left-start"?(H.right="0",H.top=`${n.arrowOffset}px`,H.transform="translate(50%, -50%)"):w.value==="left-end"&&(H.right="0",H.bottom=`-${n.arrowOffset}px`,H.transform="translate(50%, -50%)"),H):{display:"none"}}),P=()=>{const H={class:D.value,style:B.value};return t.h("div",H)},J=()=>{M.value===!1&&(S.value=!1)},Y=H=>{if(!y.value||M.value===!1)return;const{relatedTarget:ee}=H;y.value.contains(ee)||(M.value=!1,o("update:visible",!1))};return s({doLayout:g}),()=>{if(!S.value)return null;const H=[],ee=X();ee&&H.push(ee);const U=[],K=C();if(K&&U.push(K),r.default){const le=r.default();U.push(le)}const G=P();G&&U.push(G);const Z={ref:y,class:j.value,style:x.value,onAnimationend:J};n.leaveHide&&(Z.onMouseleave=Y);const R=t.h("div",Z,{default:()=>U});return H.push(R),t.h(t.Teleport,{to:n.teleport,disabled:n.teleportDisable},{default:()=>H})}}}}const{componentName:su,create:uu,scope:cu}=ue("popover-dialog"),Vn=uu(iu(su,cu,!1)),fu={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function du(e,l,a){return{props:{...Ll,...fu},emits:["click"],setup(n,{slots:o,attrs:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["moreText"]),i=e,f=t.computed(()=>({[i]:!0}));function m(O){return O.props||{}}function d(O){return!!m(O).disabled}function w(O){return O.children??[]}const S=t.ref(),T=t.computed(()=>S.value?.$el??null),y=t.ref(!1),h=O=>{y.value=O},A=()=>{y.value=!y.value};function g(O,k){return()=>{if(k)return;y.value=!1,m(O)?.onClick?.()}}function u(O,k){const E=w(O),v=d(O),j=g(O,v),x=[`${i}__dropdown-item`];v&&x.push("is-disabled");const q={class:x,onClick:j};return t.h("span",q,E)}const N=O=>{const k=n.maxDisplayCount??O.length;if(k>=O.length)return O;const E=[],v=k-1;for(let B=0;B<v;B++)E.push(O[B]);const j=(o.moreIcon&&o.moreIcon())??(n.moreIcon&&t.h(n.moreIcon))??t.h(a),x={ref:B=>S.value=B,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:n.type,onClick:A},q=t.h(In,x,{default:()=>c.moreText.value,mark:()=>j});E.push(q);const X=[];for(let B=v;B<O.length;B++){const P=u(O[B]);X.push(P)}const C={placement:n.dropdownPlacement,"onUpdate:visible":h,visible:y.value,reference:T.value,"custom-class":`${i}__popover`},D=t.h(Vn,C,{default:()=>X});return E.push(D),E},M=()=>(o.default?.()||[]).filter(k=>k.type!==Comment);return()=>{const O=M(),k=N(O),E=it(n,Ll);return Object.assign(E,r??{}),E.class=f.value,t.h(En,E,{default:()=>k})}}}}const{componentName:hu,create:mu,scope:gu}=ue("buttons-item"),Pl=mu(du(hu,gu,Ie.ArrowDown)),Je=(e={})=>{if(!e)return{};const l={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(l[n]=e[n])}),l},Oo={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 yu(e,l,a){return{props:{...ke,...Oe,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0,[`${T}__disabled`]:s.value,[`${T}__readonly`]:i.value})),h=D=>{S.value=D,f("update:modelValue",D),f("input",D)},A=D=>{f("change",D)};let g=pe(n,"hintText"),u=t.ref(!1);const N=D=>{let P=D.target.value;w.value=!0,ge(g.value)||(u.value=!0),f("focus",P,D)},M=D=>{setTimeout(()=>{u.value&&(u.value=!1),w.value=!1},0);let P=D.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),f("blur",P,D)},O=()=>{f("clear","")},k=t.ref(!1);let E=null;const v=()=>{n.showTooltip&&k.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{k.value=!0},150))},j=()=>{E&&(clearTimeout(E),k.value=!1,E=null)},x=t.computed(()=>k.value||u.value),q=t.computed(()=>k.value?S.value:g.value),X=t.computed(()=>lt(n.unit)>0),C=t.ref();return we({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()},setDisabled:D=>{r.value=D},setReadonly:D=>{c.value=D}}),()=>{const B={...Je(o.attrs),ref:C,class:y.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:O,onChange:A,onInput:h,onFocus:N,onBlur:M,onMouseover:v,onMouseleave:j},P={};o.slots.prepend&&(P.prepend=o.slots.prepend),o.slots.append&&(P.append=o.slots.append),o.slots.prefix&&(P.prefix=o.slots.prefix),o.slots.suffix?P.suffix=o.slots.suffix:X.value&&(P.suffix=()=>[n.unit]);const J=[],Y=t.h(F.ElInput,B,P);J.push(Y);const H={default:()=>J};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const U={...Ve(n,Oo),hintText:q.value,hintVisible:x.value};return n.prop&&(U.prop=`${n.prop}_item`),t.h(a,U,H)}}}}const{componentName:pu,create:bu,scope:vu}=ue("input-item"),_l=bu(yu(pu,vu,$e));function mt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function zt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Ao(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function wu(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let Su=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function xu(){const e=t.getCurrentInstance();return new Su(e.proxy)}function Fo(e,l,a){const n=mt(e,l),o=mt(e,a);if(n!==o)return!1;const r=zt(e,l),s=zt(e,a);return r===s}function Mo(e,l,a,n){if(n.length===0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];return l.forEach(r=>{for(let s of n){const c=Ao(e,s);if(Array.isArray(c)&&c.length>0){const i=Mo(e,r,a,c)??[];Reflect.apply([].push,o,i)}else{let i=!1;if(a==="text")i=mt(e,s)===r;else if(a==="item")i=Fo(e,s,r);else{let f=zt(e,s);f==null&&(f=mt(e,s)),i=f===r}if(i){o.push(s);break}}}}),o}function Cu(e){return{text:e,value:e}}const Bo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Tu(e,l,a){return{props:{...ke,...Oe,...Bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(null),S=t.ref([]),T=t.computed(()=>S.value?S.value.map(W=>mt(n,W)).join(" "):""),y=($,W,V,p=!0)=>{if(!V||V.length==0){w.value=$,p&&(f("update:modelValue",$),f("change",$));return}const z=Mo(n,$,W,V);if(z===null){if(S.value===null||S.value.length===0)return;w.value=null,S.value=[],p&&(f("update:modelValue",null),f("update:text",null),f("change",null));return}let _=!0;if(z.length!==S.value.length)_=!1;else for(let ne=0;ne<z.length;ne++){const oe=z[ne],ie=S.value[ne];if(!Fo(n,oe,ie)){_=!1;break}}if(!_){S.value=z;let ne=[],oe=[],ie=[];z.forEach(et=>{const We=zt(n,et),qe=mt(n,et);ne.push(We),ie.push(qe),n.valueType==="text"?oe.push(qe):n.valueType==="item"?oe.push(et):oe.push(We)});let he,ye,Te;de(n.multiple)?(w.value=ne,he=t.toRaw(oe),ye=ie,Te=t.toRaw(z)):(w.value=ne[0]??"",he=t.toRaw(oe[0]??""),ye=ie[0]??"",Te=t.toRaw(z[0])),p&&(f("update:modelValue",he),f("change",he,Te)),f("update:text",ye)}},h=t.ref(null),A=t.ref(null),g=t.computed(()=>A.value??h.value??[]),u=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,$=>de($)),N=xu(),M=async($,W)=>{if($){const V=await N.load("select",$,W);if(V.length>0)if(typeof V[0]=="string"){let _=V.map(ne=>Cu(ne));h.value=_}else h.value=V;else h.value=null}};t.watch([()=>n.source,()=>n.params],([$,W])=>{A.value=null,M($,W)},{immediate:!u.value});let O=!1;const k=()=>{O||(O=!0,M(n.source,n.params))};t.watch([()=>h.value,()=>n.modelValue],([$,W])=>{if(x()&&de(n.multiple)){Xe(W,w.value)||(w.value=W);return}y(W,n.valueType,g.value,!1),f("setValue",W)}),n.source||(w.value=n.modelValue);let E=null,v=t.ref(!1);typeof n.remoteMethod=="function"&&(E=async $=>{if($==null){A.value=null;return}v.value=!0;try{const W=await n.remoteMethod($);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}v.value=!1});let j=null;typeof n.filterMethod=="function"&&(j=async $=>{if($==null){A.value=null;return}v.value=!0;try{const W=await n.filterMethod($,h.value);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}v.value=!1});const x=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",q=t.ref(!1),X=e,C=t.computed(()=>({[X]:!0})),D=$=>{n.allowCreate||x()&&de(n.multiple)?(f("update:modelValue",$),f("change",$),f("update:text",$),w.value=$):y($,"value",g.value,!0)};let B=pe(n,"hintText"),P=t.ref(!1);const J=$=>{let V=$.target.value;q.value=!0,ge(B.value)||(P.value=!0),f("focus",V,$)},Y=$=>{setTimeout(()=>{P.value&&(P.value=!1),q.value=!1},0);let V=$.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),te.value||f("blur",V,$)},H=()=>{f("clear","")},ee=t.ref(!1);let U=null;const K=()=>{n.showTooltip&&ee.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{ee.value=!0},150))},G=()=>{U&&(clearTimeout(U),ee.value=!1,U=null)},Z=t.computed(()=>ee.value||P.value),R=t.computed(()=>ee.value?T.value:B.value),te=t.ref(!1),le=$=>{te.value=$,f("visible-change",$),$||f("selected")},Q=$=>{f("remove-tag",$)},I=($,W)=>{const V=[];return $.forEach((p,z)=>{const _=Ao(n,p);if(Array.isArray(_)&&_.length>0){const ne=I(_,W),oe=mt(n,p),he={key:`${oe}_${z}`,label:oe};V.push(t.h(F.ElOptionGroup,he,{default:()=>ne}))}else{const ne=zt(n,p),oe=mt(n,p),ie=wu(n,p),ye={key:`${ne}_${z}`,label:oe,disabled:ie,value:ne};if(typeof W=="function")V.push(t.h(F.ElOption,ye,{default:()=>W(p)}));else if(n.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},et=t.h("span",Te,[ne]),We={class:{"fox-select-item__option-right":!0}},qe=t.h("span",We,[oe]),At=t.h("div",{class:{"fox-select-item__option":!0}},[et,qe]);V.push(t.h(F.ElOption,ye,{default:()=>At}))}else n.optionType==="value"?V.push(t.h(F.ElOption,ye,{default:()=>[ne]})):V.push(t.h(F.ElOption,ye))}}),V},L=t.ref();return we({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},setDisabled:$=>{r.value=$},setReadonly:$=>{c.value=$}}),()=>{const W={...Je(o.attrs),ref:L,class:C.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:s.value||i.value,modelValue:w.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:H,onChange:D,onFocus:J,onBlur:Y,onVisibleChange:le,onRemoveTag:Q};typeof E=="function"&&(W["remote-method"]=E,W.loading=v.value),typeof j=="function"&&(W["filter-method"]=j,W.loading=v.value);const V={};o.slots.prefix&&(V.prefix=o.slots.prefix),o.slots.empty&&(V.empty=o.slots.empty),o.slots.options?V.default=o.slots.options:V.default=()=>I(g.value,o.slots.option);const p=[],z=t.h(F.ElSelect,W,V);p.push(z);const _={default:()=>p};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const oe={...Ve(n,Bo),hintText:R.value,hintVisible:Z.value,onMouseover:K,onMouseleave:G};return n.prop&&(oe.prop=`${n.prop}_item`),u.value&&(oe["appear-listen"]=!0,oe.onAppear=k),t.h(a,oe,_)}}}}const{componentName:ku,create:$u,scope:Du}=ue("select-item"),ql=$u(Tu(ku,Du,$e));function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}},Nu=On.exports,Ro;function Eu(){return Ro||(Ro=1,(function(e,l){(function(a,n){e.exports=n()})(Nu,(function(){var a=1e3,n=6e4,o=36e5,r="millisecond",s="second",c="minute",i="hour",f="day",m="week",d="month",w="quarter",S="year",T="date",y="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var D=["th","st","nd","rd"],B=C%100;return"["+C+(D[(B-20)%10]||D[B]||D[0])+"]"}},u=function(C,D,B){var P=String(C);return!P||P.length>=D?C:""+Array(D+1-P.length).join(B)+C},N={s:u,z:function(C){var D=-C.utcOffset(),B=Math.abs(D),P=Math.floor(B/60),J=B%60;return(D<=0?"+":"-")+u(P,2,"0")+":"+u(J,2,"0")},m:function C(D,B){if(D.date()<B.date())return-C(B,D);var P=12*(B.year()-D.year())+(B.month()-D.month()),J=D.clone().add(P,d),Y=B-J<0,H=D.clone().add(P+(Y?-1:1),d);return+(-(P+(B-J)/(Y?J-H:H-J))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:S,w:m,d:f,D:T,h:i,m:c,s,ms:r,Q:w}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},M="en",O={};O[M]=g;var k="$isDayjsObject",E=function(C){return C instanceof q||!(!C||!C[k])},v=function C(D,B,P){var J;if(!D)return M;if(typeof D=="string"){var Y=D.toLowerCase();O[Y]&&(J=Y),B&&(O[Y]=B,J=Y);var H=D.split("-");if(!J&&H.length>1)return C(H[0])}else{var ee=D.name;O[ee]=D,J=ee}return!P&&J&&(M=J),J||!P&&M},j=function(C,D){if(E(C))return C.clone();var B=typeof D=="object"?D:{};return B.date=C,B.args=arguments,new q(B)},x=N;x.l=v,x.i=E,x.w=function(C,D){return j(C,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var q=(function(){function C(B){this.$L=v(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[k]=!0}var D=C.prototype;return D.parse=function(B){this.$d=(function(P){var J=P.date,Y=P.utc;if(J===null)return new Date(NaN);if(x.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var H=J.match(h);if(H){var ee=H[2]-1||0,U=(H[7]||"0").substring(0,3);return Y?new Date(Date.UTC(H[1],ee,H[3]||1,H[4]||0,H[5]||0,H[6]||0,U)):new Date(H[1],ee,H[3]||1,H[4]||0,H[5]||0,H[6]||0,U)}}return new Date(J)})(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return x},D.isValid=function(){return this.$d.toString()!==y},D.isSame=function(B,P){var J=j(B);return this.startOf(P)<=J&&J<=this.endOf(P)},D.isAfter=function(B,P){return j(B)<this.startOf(P)},D.isBefore=function(B,P){return this.endOf(P)<j(B)},D.$g=function(B,P,J){return x.u(B)?this[P]:this.set(J,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,P){var J=this,Y=!!x.u(P)||P,H=x.p(B),ee=function(Q,I){var L=x.w(J.$u?Date.UTC(J.$y,I,Q):new Date(J.$y,I,Q),J);return Y?L:L.endOf(f)},U=function(Q,I){return x.w(J.toDate()[Q].apply(J.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(I)),J)},K=this.$W,G=this.$M,Z=this.$D,R="set"+(this.$u?"UTC":"");switch(H){case S:return Y?ee(1,0):ee(31,11);case d:return Y?ee(1,G):ee(0,G+1);case m:var te=this.$locale().weekStart||0,le=(K<te?K+7:K)-te;return ee(Y?Z-le:Z+(6-le),G);case f:case T:return U(R+"Hours",0);case i:return U(R+"Minutes",1);case c:return U(R+"Seconds",2);case s:return U(R+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,P){var J,Y=x.p(B),H="set"+(this.$u?"UTC":""),ee=(J={},J[f]=H+"Date",J[T]=H+"Date",J[d]=H+"Month",J[S]=H+"FullYear",J[i]=H+"Hours",J[c]=H+"Minutes",J[s]=H+"Seconds",J[r]=H+"Milliseconds",J)[Y],U=Y===f?this.$D+(P-this.$W):P;if(Y===d||Y===S){var K=this.clone().set(T,1);K.$d[ee](U),K.init(),this.$d=K.set(T,Math.min(this.$D,K.daysInMonth())).$d}else ee&&this.$d[ee](U);return this.init(),this},D.set=function(B,P){return this.clone().$set(B,P)},D.get=function(B){return this[x.p(B)]()},D.add=function(B,P){var J,Y=this;B=Number(B);var H=x.p(P),ee=function(G){var Z=j(Y);return x.w(Z.date(Z.date()+Math.round(G*B)),Y)};if(H===d)return this.set(d,this.$M+B);if(H===S)return this.set(S,this.$y+B);if(H===f)return ee(1);if(H===m)return ee(7);var U=(J={},J[c]=n,J[i]=o,J[s]=a,J)[H]||1,K=this.$d.getTime()+B*U;return x.w(K,this)},D.subtract=function(B,P){return this.add(-1*B,P)},D.format=function(B){var P=this,J=this.$locale();if(!this.isValid())return J.invalidDate||y;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",H=x.z(this),ee=this.$H,U=this.$m,K=this.$M,G=J.weekdays,Z=J.months,R=J.meridiem,te=function(I,L,$,W){return I&&(I[L]||I(P,Y))||$[L].slice(0,W)},le=function(I){return x.s(ee%12||12,I,"0")},Q=R||function(I,L,$){var W=I<12?"AM":"PM";return $?W.toLowerCase():W};return Y.replace(A,(function(I,L){return L||(function($){switch($){case"YY":return String(P.$y).slice(-2);case"YYYY":return x.s(P.$y,4,"0");case"M":return K+1;case"MM":return x.s(K+1,2,"0");case"MMM":return te(J.monthsShort,K,Z,3);case"MMMM":return te(Z,K);case"D":return P.$D;case"DD":return x.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return te(J.weekdaysMin,P.$W,G,2);case"ddd":return te(J.weekdaysShort,P.$W,G,3);case"dddd":return G[P.$W];case"H":return String(ee);case"HH":return x.s(ee,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return Q(ee,U,!0);case"A":return Q(ee,U,!1);case"m":return String(U);case"mm":return x.s(U,2,"0");case"s":return String(P.$s);case"ss":return x.s(P.$s,2,"0");case"SSS":return x.s(P.$ms,3,"0");case"Z":return H}return null})(I)||H.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,P,J){var Y,H=this,ee=x.p(P),U=j(B),K=(U.utcOffset()-this.utcOffset())*n,G=this-U,Z=function(){return x.m(H,U)};switch(ee){case S:Y=Z()/12;break;case d:Y=Z();break;case w:Y=Z()/3;break;case m:Y=(G-K)/6048e5;break;case f:Y=(G-K)/864e5;break;case i:Y=G/o;break;case c:Y=G/n;break;case s:Y=G/a;break;default:Y=G}return J?Y:x.a(Y)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return O[this.$L]},D.locale=function(B,P){if(!B)return this.$L;var J=this.clone(),Y=v(B,P,!0);return Y&&(J.$L=Y),J},D.clone=function(){return x.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},C})(),X=q.prototype;return j.prototype=X,[["$ms",r],["$s",s],["$m",c],["$H",i],["$W",f],["$M",d],["$y",S],["$D",T]].forEach((function(C){X[C[1]]=function(D){return this.$g(D,C[0],C[1])}})),j.extend=function(C,D){return C.$i||(C(D,q,j),C.$i=!0),j},j.locale=v,j.isDayjs=E,j.unix=function(C){return j(1e3*C)},j.en=O[M],j.Ls=O,j.p={},j}))})(On)),On.exports}var Iu=Eu();const ot=st(Iu);var An={exports:{}},Vu=An.exports,Lo;function Ou(){return Lo||(Lo=1,(function(e,l){(function(a,n){e.exports=n()})(Vu,(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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,r=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,i={},f=function(h){return(h=+h)+(h>68?1900:2e3)},m=function(h){return function(A){this[h]=+A}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(A){if(!A||A==="Z")return 0;var g=A.match(/([+-]|\d\d)/g),u=60*g[1]+(+g[2]||0);return u===0?0:g[0]==="+"?-u:u})(h)}],w=function(h){var A=i[h];return A&&(A.indexOf?A:A.s.concat(A.f))},S=function(h,A){var g,u=i.meridiem;if(u){for(var N=1;N<=24;N+=1)if(h.indexOf(u(N,0,A))>-1){g=N>12;break}}else g=h===(A?"pm":"PM");return g},T={A:[c,function(h){this.afternoon=S(h,!1)}],a:[c,function(h){this.afternoon=S(h,!0)}],Q:[o,function(h){this.month=3*(h-1)+1}],S:[o,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[r,m("day")],Do:[c,function(h){var A=i.ordinal,g=h.match(/\d+/);if(this.day=g[0],A)for(var u=1;u<=31;u+=1)A(u).replace(/\[|\]/g,"")===h&&(this.day=u)}],w:[s,m("week")],ww:[r,m("week")],M:[s,m("month")],MM:[r,m("month")],MMM:[c,function(h){var A=w("months"),g=(w("monthsShort")||A.map((function(u){return u.slice(0,3)}))).indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[c,function(h){var A=w("months").indexOf(h)+1;if(A<1)throw new Error;this.month=A%12||A}],Y:[/[+-]?\d+/,m("year")],YY:[r,function(h){this.year=f(h)}],YYYY:[/\d{4}/,m("year")],Z:d,ZZ:d};function y(h){var A,g;A=h,g=i&&i.formats;for(var u=(h=A.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(j,x,q){var X=q&&q.toUpperCase();return x||g[q]||a[q]||g[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,D,B){return D||B.slice(1)}))}))).match(n),N=u.length,M=0;M<N;M+=1){var O=u[M],k=T[O],E=k&&k[0],v=k&&k[1];u[M]=v?{regex:E,parser:v}:O.replace(/^\[|\]$/g,"")}return function(j){for(var x={},q=0,X=0;q<N;q+=1){var C=u[q];if(typeof C=="string")X+=C.length;else{var D=C.regex,B=C.parser,P=j.slice(X),J=D.exec(P)[0];B.call(x,J),j=j.replace(J,"")}}return(function(Y){var H=Y.afternoon;if(H!==void 0){var ee=Y.hours;H?ee<12&&(Y.hours+=12):ee===12&&(Y.hours=0),delete Y.afternoon}})(x),x}}return function(h,A,g){g.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(f=h.parseTwoDigitYear);var u=A.prototype,N=u.parse;u.parse=function(M){var O=M.date,k=M.utc,E=M.args;this.$u=k;var v=E[1];if(typeof v=="string"){var j=E[2]===!0,x=E[3]===!0,q=j||x,X=E[2];x&&(X=E[2]),i=this.$locale(),!j&&X&&(i=g.Ls[X]),this.$d=(function(P,J,Y,H){try{if(["x","X"].indexOf(J)>-1)return new Date((J==="X"?1e3:1)*P);var ee=y(J)(P),U=ee.year,K=ee.month,G=ee.day,Z=ee.hours,R=ee.minutes,te=ee.seconds,le=ee.milliseconds,Q=ee.zone,I=ee.week,L=new Date,$=G||(U||K?1:L.getDate()),W=U||L.getFullYear(),V=0;U&&!K||(V=K>0?K-1:L.getMonth());var p,z=Z||0,_=R||0,ne=te||0,oe=le||0;return Q?new Date(Date.UTC(W,V,$,z,_,ne,oe+60*Q.offset*1e3)):Y?new Date(Date.UTC(W,V,$,z,_,ne,oe)):(p=new Date(W,V,$,z,_,ne,oe),I&&(p=H(p).week(I).toDate()),p)}catch{return new Date("")}})(O,v,k,g),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),q&&O!=this.format(v)&&(this.$d=new Date("")),i={}}else if(v instanceof Array)for(var C=v.length,D=1;D<=C;D+=1){E[1]=v[D-1];var B=g.apply(this,E);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}D===C&&(this.$d=new Date(""))}else N.call(this,M)}}}))})(An)),An.exports}var Au=Ou();const Fu=st(Au);var Fn={exports:{}},Mu=Fn.exports,Po;function Bu(){return Po||(Po=1,(function(e,l){(function(a,n){e.exports=n()})(Mu,(function(){return function(a,n){var o=n.prototype,r=o.format;o.format=function(s){var c=this,i=this.$locale();if(!this.isValid())return r.bind(this)(s);var f=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(d){switch(d){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return i.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return i.ordinal(c.week(),"W");case"w":case"ww":return f.s(c.week(),d==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return f.s(String(c.$H===0?24:c.$H),d==="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 d}}));return r.bind(this)(m)}}}))})(Fn)),Fn.exports}var Ru=Bu();const Lu=st(Ru);var Mn={exports:{}},Pu=Mn.exports,_o;function _u(){return _o||(_o=1,(function(e,l){(function(a,n){e.exports=n()})(Pu,(function(){return function(a,n,o){var r=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},c=function(d,w,S,T,y){var h=d.name?d:d.$locale(),A=s(h[w]),g=s(h[S]),u=A||g.map((function(M){return M.slice(0,T)}));if(!y)return u;var N=h.weekStart;return u.map((function(M,O){return u[(O+(N||0))%7]}))},i=function(){return o.Ls[o.locale()]},f=function(d,w){return d.formats[w]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(T,y,h){return y||h.slice(1)}))})(d.formats[w.toUpperCase()])},m=function(){var d=this;return{months:function(w){return w?w.format("MMMM"):c(d,"months")},monthsShort:function(w){return w?w.format("MMM"):c(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):c(d,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):c(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):c(d,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return f(d.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},o.localeData=function(){var d=i();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(w){return f(d,w)},meridiem:d.meridiem,ordinal:d.ordinal}},o.months=function(){return c(i(),"months")},o.monthsShort=function(){return c(i(),"monthsShort","months",3)},o.weekdays=function(d){return c(i(),"weekdays",null,null,d)},o.weekdaysShort=function(d){return c(i(),"weekdaysShort","weekdays",3,d)},o.weekdaysMin=function(d){return c(i(),"weekdaysMin","weekdays",2,d)}}}))})(Mn)),Mn.exports}var qu=_u();const zu=st(qu);var Bn={exports:{}},ju=Bn.exports,qo;function Hu(){return qo||(qo=1,(function(e,l){(function(a,n){e.exports=n()})(ju,(function(){var a="week",n="year";return function(o,r,s){var c=r.prototype;c.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(a);if(m.isBefore(d))return 1}var w=s(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),S=this.diff(w,a,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},c.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})(Bn)),Bn.exports}var Ku=Hu();const Wu=st(Ku);var Rn={exports:{}},Yu=Rn.exports,zo;function Uu(){return zo||(zo=1,(function(e,l){(function(a,n){e.exports=n()})(Yu,(function(){return function(a,n){n.prototype.weekYear=function(){var o=this.month(),r=this.week(),s=this.year();return r===1&&o===11?s+1:o===0&&r>=52?s-1:s}}}))})(Rn)),Rn.exports}var Gu=Uu();const Xu=st(Gu);var Ln={exports:{}},Zu=Ln.exports,jo;function Qu(){return jo||(jo=1,(function(e,l){(function(a,n){e.exports=n()})(Zu,(function(){return function(a,n,o){n.prototype.dayOfYear=function(r){var s=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})(Ln)),Ln.exports}var Ju=Qu();const ec=st(Ju);var Pn={exports:{}},tc=Pn.exports,Ho;function nc(){return Ho||(Ho=1,(function(e,l){(function(a,n){e.exports=n()})(tc,(function(){return function(a,n){n.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}}))})(Pn)),Pn.exports}var lc=nc();const ac=st(lc);var _n={exports:{}},oc=_n.exports,Ko;function rc(){return Ko||(Ko=1,(function(e,l){(function(a,n){e.exports=n()})(oc,(function(){return function(a,n){n.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}}))})(_n)),_n.exports}var ic=rc();const sc=st(ic);ot.extend(zu),ot.extend(Lu),ot.extend(Fu),ot.extend(Wu),ot.extend(Xu),ot.extend(ec),ot.extend(ac),ot.extend(sc);const se={format(e,l){return ot(e).format(l)},parser(e,l){return ot(e,l).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,l,a){const o=new Date(e+"/"+l+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,l){let n=new Date(e+"/"+l+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){l=l||"-";const a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[a,n,o].join(l)},getDay(e,l,a){e=e||0;let n=l??new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),a=a??"YYYY-MM-DD",this.format(n,a)},compareDate(e,l){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof l=="string"?n=new Date(l.replace("-","/").replace("-","/")):n=l,!(a>=n)},isEqual(e,l){if(e===l)return!0;if(!e||!l)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof l=="string"?n=new Date(l).getTime():n=l,a==n},getMonthWeek:function(e,l,a,n=0){const o=new Date(Number(e),parseInt(l)-1,Number(a));let r=o.getDay(),s=o.getDate(),c=6-r;return n!==0&&(r=r==0?7:r,c=7-r),Math.ceil((s+c)/7)},getYearWeek:function(e,l,a,n=0){const o=new Date(Number(e),parseInt(l)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((o.valueOf()-r.valueOf())/864e5);let c=o.getDay(),i=6-c;return n!==0&&(c=c==0?7:c,i=7-c),Math.ceil((s+i)/7)},getWeekDate:function(e,l,a,n=0){const o=new Date(Number(e),parseInt(l)-1,Number(a)),r=o.getTime();let s=o.getDay();if(n===0){const i=r-s*864e5,f=r+(6-s)*864e5,m=this.date2Str(new Date(i)),d=this.date2Str(new Date(f));return[m,d]}else{s=s==0?7:s;const c=1440*60*1e3,i=r-(s-1)*c,f=r+(7-s)*c,m=this.date2Str(new Date(i)),d=this.date2Str(new Date(f));return[m,d]}},formatResultDate:function(e){let l=[...e.split("-")];return l[2]=se.getNumTwoBit(Number(l[2])),l[3]=`${l[0]}-${l[1]}-${l[2]}`,l[4]=se.getWhatDay(+l[0],+l[1],+l[2]),l},inScope4Day(e,l,a){const n=new Date(new Date(l).setDate(l.getDate()+a)),o=e.getTime(),r=n.getTime(),s=l.getTime();return r>s?o>=s&&o<=r:o>=r&&o<=s},inScope4Month(e,l,a){const n=new Date(new Date(l).setMonth(l.getMonth()+a)),o=e.getTime(),r=n.getTime(),s=l.getTime();return r>s?o>=s&&o<=r:o>=r&&o<=s}},Wo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Yo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function uc(e,l,a){return{props:{...ke,...Oe,...Wo,...Yo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=t.computed(()=>P.value&&Array.isArray(S.value)&&S.value.length==2?S.value[0]:S.value),y=t.computed(()=>P.value?"longTermKey":"normalKey"),h=L=>{if(P.value&&n.type==="daterange"){const $=[...S.value];$[0]=L,S.value=$}else S.value=L;f("update:modelValue",S.value),f("change",S.value)},A=t.computed(()=>P.value&&n.type==="daterange"?"date":n.type),g=e,u=t.computed(()=>({[`${g}`]:!0,"is-long":P.value,"is-readonly":i.value,"is-disabled":s.value}));let N=pe(n,"hintText"),M=t.ref(!1);const O=L=>{let W=L.target.value;w.value=!0,ge(N.value)||(M.value=!0),f("focus",W,L)},k=L=>{setTimeout(()=>{M.value&&(M.value=!1),w.value=!1},0);let W=L.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),f("blur",W,L)},E=()=>{f("clear","")},v=L=>{f("calendar-change",L)},j=(L,$,W)=>{f("panel-change",L,$,W)},x=L=>{f("visible-change",L)},q=Fe(t.computed(()=>n.longTermText),"longTermText",Ge.Near),X=Fe(t.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ge.Near),C=Fe(t.computed(()=>n.longTermValue),"longTermValue",Ge.Near),D=Fe(t.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ge.Near);let B=null;const P=t.ref(de(n.longTerm)),J=L=>{if(P.value=L,f("update:longTerm",L),L){if(B=S.value,n.type==="daterange"){const $=[];Array.isArray(C.value)?($[0]=S.value?S.value[0]??C.value[0]:null,$[1]=C.value[1]??C.value[0]):($[0]=S.value?S.value[0]??C.value:null,$[1]=P.value),$[0]||($[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),$[1]||($[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),S.value=$}else Array.isArray(C.value)?S.value=C.value[1]??C.value[0]:S.value=C.value,S.value||(S.value=n.valueFormat?se.format(new Date,n.valueFormat):new Date);f("update:modelValue",S.value)}else{if(n.type==="daterange"){const $=[];$[0]=Array.isArray(S.value)?S.value[0]:S.value,Array.isArray(B)?$[1]=B[1]:$[1]=B,$[0]||($[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),$[1]||($[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),S.value=$}else S.value=B;f("update:modelValue",S.value),setTimeout(()=>{Q()},100)}},Y=de(n.isLongTerm);if(Y){const L=()=>{if(P.value===!0){if(B=S.value,n.type==="daterange"){const $=[S.value[0]];Array.isArray(C.value)?$[1]=C.value[1]??C.value[0]:$[1]=P.value,$[0]||($[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),$[1]||($[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),S.value=$}else S.value=C.value;f("update:modelValue",S.value)}else Xe(C.value,S.value)&&(P.value=!0)};L(),t.watch([()=>n.longTerm],([$])=>{P.value!==$&&L()}),t.watch([()=>S.value],([$])=>{let W=!1;if(n.type==="daterange"&&Array.isArray($))try{let V=$[1];if(!V)return;if($[0]==null){f("update:modelValue",[]);return}typeof V!="string"&&n.valueFormat&&(V=se.format(V,n.valueFormat));let p=Array.isArray(C.value)?C.value[1]:C.value;(V===p||Array.isArray(D.value)&&D.value.findIndex(_=>V==_)!==-1)&&(W=!0)}catch(V){console.error(V)}P.value!==W&&(P.value=W)},{immediate:!0})}const H=t.computed(()=>({"fox-date-item__long":!0,"is-active":w.value})),ee=t.ref(),U=t.ref(),K=/^\d+$/,G=(L,$)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(L,$):K.test(L)&&L.length===n.flashFillThreshold,Z=(L,$)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(L,$);else{const p=n.flashFillFormat??"YYYYMMDD";W=se.parser(L,p)}const V=n.valueFormat??"YYYY-MM-DD";return se.format(W,V)},R=L=>L?L.endsWith("range"):!1,te=L=>{if(!L.target)return;const $=L.target.value??"";if(G($,n.type)){const W=Z($,n.type);if(R(n.type)){const V=Array.isArray(S.value)?[...S.value]:[];V[0]=W,h(V)}else h(W)}},le=L=>{if(!L.target)return;const $=L.target.value??"";if(G($,n.type)){const W=Z($,n.type);if(R(n.type)){const V=Array.isArray(S.value)?[...S.value]:[];V[1]=W,h(V)}else h(W)}},Q=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(R(n.type)){const L=ee.value.$el.querySelectorAll("input.el-range-input");L[0]&&L[0].addEventListener("input",te),L[1]&&L[1].addEventListener("input",le)}else{const L=ee.value.$el.querySelector("input.el-input__inner");L&&L.addEventListener("input",te)}},I=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(R(n.type)){const L=ee.value.$el.querySelectorAll("input.el-range-input");L[0]&&L[0].removeEventListener("input",te),L[1]&&L[1].removeEventListener("input",le)}else{const L=ee.value.$el.querySelector("input.el-input__inner");L&&L.removeEventListener("input",te)}};return t.onMounted(Q),t.onBeforeUnmount(I),we({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},handleOpen:()=>{U?.value.handleOpen()},handleClose:()=>{U?.value.handleClose()},setDisabled:L=>{r.value=L},setReadonly:L=>{c.value=L}}),()=>{const $={...o.attrs,key:y.value,type:A.value,ref:U,class:u.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:T.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:E,onFocus:O,onBlur:k,onCalendarChange:v,onPanelChange:j,onVisibleChange:x},W={};o.slots["range-separator"]&&(W["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(W.default=o.slots.cell);const V=[],p=t.h(F.ElDatePicker,$,W);V.push(p);const z={default:()=>V};if(z.label=o.slots.default,z.fixedPreTip=o.slots.fixedPreTip,z.fixedTip=o.slots.fixedTip,Y){if(P.value){const ie=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),he=t.h("input",{class:["fox-date-item__long-text"],value:q.value,readonly:!0}),ye={class:H.value},Te=t.h("div",ye,{default:()=>[ie,he]});V.push(Te)}if(!i.value&&!s.value){const ie={label:X.value||q.value,disabled:i.value||s.value,modelValue:P.value,"onUpdate:modelValue":J},he=t.h(F.ElCheckbox,ie),ye=t.h("div",{class:{[`${g}__append`]:!0}},[he]);z.append=()=>ye}}const ne={...Ve(n,Wo,Yo),ref:ee,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:N.value,hintVisible:M.value};return n.prop&&(ne.prop=`${n.prop}_item`),t.h(a,ne,z)}}}}const{componentName:cc,create:fc,scope:dc}=ue("date-item"),zl=fc(uc(cc,dc,$e)),hc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),jl={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},popClass:{type:String},popStyle:{type:Object}},Hl={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:{}}},Uo=2e3;let Go=Uo;const mc=(e,l)=>({components:l,props:{...Hl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:n}){const o=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:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),i=()=>{a.zIndex!==Uo&&(Go=Number(a.zIndex)),n("update:visible",!0),o.zIndex=++Go,a.destroyOnClose&&(o.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},m=y=>{n("click-pop",y)},d=y=>{y.stopPropagation(),n("click-close-icon",y),n("update:visible",!1)},w=y=>{n("click-overlay",y),a.closeOnClickOverlay&&n("update:visible",!1)},S=y=>{n("opend",y)},T=y=>{n("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?i():f()}),t.watch(()=>a.closeable,y=>{o.closed=y}),{...t.toRefs(o),popStyle:s,transitionName:c,classes:r,onClick:m,onClickCloseIcon:d,onClickOverlay:w,onOpened:S,onClosed:T}}});let jt=0;const Xo="fox-overflow-hidden",Zo=()=>ft?document.body:{classList:[]},gc=e=>[()=>{if(e())try{!jt&&Zo().classList.add(Xo),jt++}catch{}},()=>{if(e()&&jt)try{jt--,!jt&&Zo().classList.remove(Xo)}catch{}}],yc={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:pc,create:bc}=ue("overlay"),vc=bc({props:{...yc},emits:["click","update:visible"],setup(e,{emit:l}){const[a,n]=gc(()=>e.lockScroll),o=t.computed(()=>({[pc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,c=>{c?a():n()}),{classes:o,style:r,onClick:c=>{l("click",c),e.closeOnClickOverlay&&l("update:visible",!1)}}}});function wc(e,l,a,n,o,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:l[0]||(l[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 qn=Le(vc,[["render",wc]]),Sc=["aria-labelledby"],xc=t.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Cc=[xc],Tc=t.defineComponent({__name:"Uploader",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Cc,14,Sc))}}),kc=["aria-labelledby"],$c=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Dc=[$c],Nc=t.defineComponent({__name:"Search2",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,kc))}}),Ec=["aria-labelledby"],Ic=t.createElementVNode("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vc=[Ic],Oc=t.defineComponent({__name:"Right",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vc,14,Ec))}}),Ac=["aria-labelledby"],Fc=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mc=[Fc],Bc=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),Rc=["aria-labelledby"],Lc=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),Pc=[Lc],zn=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Pc,14,Rc))}}),_c=["aria-labelledby"],qc=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),zc=[qc],jc=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},zc,14,_c))}}),Hc=["aria-labelledby"],Kc=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),Wc=[Kc],Qo=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Yc=["aria-labelledby"],Uc=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),Gc=[Uc],Jo=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Yc))}}),Xc=["aria-labelledby"],Zc=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Zc],Jc=t.defineComponent({__name:"Checked",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Xc))}}),ef=["aria-labelledby"],tf=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),nf=[tf],lf=t.defineComponent({__name:"CheckNormal",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},nf,14,ef))}}),af=["aria-labelledby"],of=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),rf=[of],sf=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},rf,14,af))}}),{componentName:uf,create:cf}=ue("popup"),ff=cf(mc(uf,{FoxOverLay:qn,Close:Qo}));function df(e,l,a,n,o,r){const s=t.resolveComponent("FoxOverLay"),c=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:l[1]||(l[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:l[0]||(l[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bt=Le(ff,[["render",df]]),er=39,tr=64,{create:hf,scope:mf}=ue("calendar-pane"),gf=hf({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:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:l,slots:a}){const{toLocaleRefs:n,t:o}=xe.useFoxI18n(mf),r=n(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${er}px`})),c=t.computed(()=>({height:`${tr}px`})),i=JSON.parse(o("weekdays")),f=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),m=t.ref(null),d=t.ref(null),w=t.ref(null),S=t.ref(null),T=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),h=t.computed(()=>a.btn),A=t.computed(()=>a["top-info"]),g=t.computed(()=>a["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),N=Q=>Q.split("-"),M=Q=>se.isEqual(u.currDate[0],Q),O=Q=>se.isEqual(u.currDate[1],Q),k=Q=>u.currDate?.length>0?u.currDate?.some(I=>se.isEqual(I,Q)):!1,E=(Q,I)=>I.curData[0]+"-"+I.curData[1]+"-"+se.getNumTwoBit(+Q.day),v=(Q,I)=>{const L=E(Q,I),{type:$}=e;return Q.type=="curr"?se.isEqual(u.currDate,L)||($=="range"||$=="week")&&(M(L)||O(L))||$=="multiple"&&k(L)?`${u.dayPrefix}--active`:u.propStartDate&&se.compareDate(L,u.propStartDate)||u.propEndDate&&se.compareDate(u.propEndDate,L)?`${u.dayPrefix}--disabled`:($=="range"||$=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&se.compareDate(u.currDate[0],L)&&se.compareDate(L,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},j=()=>{const{type:Q}=e;if(Q=="range"&&u.chooseData.length==2||Q!="range"){let I=u.chooseData.slice(0);Q=="week"&&(I={weekDate:[q(u.chooseData[0]),q(u.chooseData[1])]}),l("choose",I),e.poppable&&l("update")}},x=(Q,I,L=!1)=>{if(v(Q,I)!=`${u.dayPrefix}--disabled`){const{type:$}=e;let[W,V]=I.curData,p=[...I.curData];if(p[2]=se.getNumTwoBit(Number(Q.day)),p[3]=`${p[0]}-${p[1]}-${p[2]}`,p[4]=se.getWhatDay(+p[0],+p[1],+p[2]),$=="multiple")if(u.currDate?.length>0){let z;u.currDate?.forEach((_,ne)=>{_==p[3]&&(z=ne)}),L?u.chooseData.push([...p]):z!==void 0?(u.currDate.splice(z,1),u.chooseData.splice(z,1)):(u.currDate.push(p[3]),u.chooseData.push([...p]))}else u.currDate=[p[3]],u.chooseData=[[...p]];else if($=="range"){let z=Object.values(u.currDate).length;z==2||z==0?u.currDate=[p[3]]:se.compareDate(u.currDate[0],p[3])?Array.isArray(u.currDate)&&u.currDate.push(p[3]):Array.isArray(u.currDate)&&u.currDate.unshift(p[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...p]]:se.compareDate(u.chooseData[0][3],p[3])?u.chooseData=[...u.chooseData,[...p]]:u.chooseData=[[...p],...u.chooseData]}else if($=="week"){let z=se.getWeekDate(W,V,Q.day,e.firstDayOfWeek);u.propStartDate&&se.compareDate(z[0],u.propStartDate)&&z.splice(0,1,u.propStartDate),u.propEndDate&&se.compareDate(u.propEndDate,z[1])&&z.splice(1,1,u.propEndDate),u.currDate=z,u.chooseData=[se.formatResultDate(z[0]),se.formatResultDate(z[1])]}else u.currDate=p[3],u.chooseData=[...p];if(!L){let z=u.chooseData;$=="week"&&(z={weekDate:[q(u.chooseData[0]),q(u.chooseData[1])]}),l("select",z),(e.isAutoBackFill||!e.poppable)&&j()}}},q=Q=>{let[I,L,$]=Q;return{date:Q,monthWeekNum:se.getMonthWeek(I,L,$,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(I,L,$,e.firstDayOfWeek)}},X=Q=>{const I=u.monthsData[u.monthsData.length-1];let L=parseInt(I.curData[0]),$=parseInt(I.curData[1].toString().replace(/^0/,""));switch(Q){case"prev":$==1&&(L-=1),$=$==1?12:--$;break;case"next":$==12&&(L+=1),$=$==12?1:++$;break}return[L+"",se.getNumTwoBit($),se.getMonthDays(String(L),String($))+""]},C=(Q,I,L)=>{let{year:$,month:W}=L;return Array.from(Array(Q),(V,p)=>({day:String(p+1),type:I,year:$,month:W}))},D=(Q,I,L,$)=>{Q=Q-e.firstDayOfWeek;let{year:W,month:V}=L;return Q>=7&&(Q-=7),Array.from(Array($),(z,_)=>({day:String(_+1),type:I,year:W,month:V})).slice($-Q)},B=(Q,I)=>{const L=se.getMonthPreDay(+Q[0],+Q[1]);let $=Number(Q[1])-1,W=Number(Q[0]);$<=0&&($=12,W+=1);const V=se.getMonthDays(String(Q[0]),String(Q[1])),p=se.getMonthDays(W+"",$+""),z={year:Q[0],month:Q[1]},_={curData:Q,title:o("monthTitle",{year:z.year,month:z.month}),monthData:[...D(L,"prev",{month:String($),year:String(W)},p),...C(V,"curr",z)],cssHeight:0,cssScrollHeight:0},ne=_.monthData.length>35?6:5;_.cssHeight=er+tr*ne;let oe=0;u.monthsData.length>0&&(oe=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=oe,(!u.endData||!se.compareDate(`${u.endData[0]}-${u.endData[1]}-${se.getMonthDays(u.endData[0],u.endData[1])}`,`${Q[0]}-${Q[1]}-${Q[2]}`))&&u.monthsData.push(_)},P=()=>{let Q=e.startDate?e.startDate:se.getDay(0),I=e.endDate?e.endDate:se.getDay(365);u.propStartDate=Q,u.propEndDate=I,u.startData=N(Q),u.endData=N(I),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(u.startData[0]),month:Number(u.startData[1])},$={year:Number(u.endData[0]),month:Number(u.endData[1])};let W=$.month-L.month;$.year-L.year>0&&(W=W+12*($.year-L.year)),W<=0&&(W=1),B(u.startData);let V=1;do B(X("next"));while(V++<W);if(u.monthsNum=W,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(Q&&se.compareDate(u.currDate[0],Q)&&u.currDate.splice(0,1,Q),I&&se.compareDate(I,u.currDate[1])&&u.currDate.splice(1,1,I),u.defaultData=[...N(u.currDate[0]),...N(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let p=[],z={};u.currDate.forEach(_=>{Q&&!se.compareDate(_,Q)&&I&&!se.compareDate(I,_)&&(Object.hasOwnProperty.call(z,_)||(p.push(_),z[_]=_))}),u.currDate=[...p],u.defaultData=[...N(p[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[p,z,_]=N(u.currDate[0]),ne=se.getWeekDate(p,z,_,e.firstDayOfWeek);u.currDate=ne,Q&&se.compareDate(u.currDate[0],Q)&&u.currDate.splice(0,1,Q),I&&se.compareDate(I,u.currDate[1])&&u.currDate.splice(1,1,I),u.defaultData=[...N(u.currDate[0]),...N(u.currDate[1])]}}else u.currDate&&(Q&&se.compareDate(u.currDate,Q)?u.currDate=Q:I&&!se.compareDate(u.currDate,I)&&(u.currDate=I),u.defaultData=[...N(u.currDate)])};we({scrollToDate:Q=>{se.compareDate(Q,u.propStartDate)?Q=u.propStartDate:se.compareDate(Q,u.propEndDate)||(Q=u.propEndDate);let I=N(Q);u.monthsData.forEach((L,$)=>{if(L.title==o("monthTitle",{year:I[0],month:I[1]})&&m.value){let W=u.monthsData[$].cssScrollHeight-m.value.scrollTop;if(e.toDateAnimation){let V=0,p=setInterval(()=>{if(V++,m.value){let z=W/10;m.value.scrollTop=m.value.scrollTop+z}V>=10&&(clearInterval(p),m.value&&(m.value.scrollTop=u.monthsData[$].cssScrollHeight))},40)}else m.value.scrollTop=u.monthsData[$].cssScrollHeight}})},initPosition:()=>{m?.value&&(m.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let Q=0,I=0;u.defaultData.length>0&&u.monthsData.forEach((W,V)=>{W.title==o("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(Q=V),(e.type=="range"||e.type=="week")&&W.title==o("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(I=V)}),ee(u.monthsNum,Q),u.currentIndex=Q,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),x({day:u.defaultData[5],type:"curr"},u.monthsData[I],!0)):e.type=="week"?x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(W=>{let V=N(W),p=u.currentIndex;u.monthsData.forEach((z,_)=>{z.title==o("monthTitle",{year:V[0],month:V[1]})&&(p=_)}),x({day:V[2],type:"curr"},u.monthsData[p],!0)}):x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let L=u.monthsData[u.monthsData.length-1],$=L.cssHeight+L.cssScrollHeight;nl(()=>{m?.value&&d?.value&&S?.value&&(T.value=m.value.clientHeight,d.value.style.height=`${$}px`,m.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor($/(u.monthsNum+1))}});const ee=(Q,I)=>{Q>=3?I>0&&I<Q?u.defaultRange=[I-1,I+3]:I==0?u.defaultRange=[I,I+4]:I==Q&&(u.defaultRange=[I-2,I+2]):u.defaultRange=[0,Q+2];let L=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=L},U=(Q,I)=>(e.type=="range"||e.type=="week")&&Q.type=="curr"&&v(Q,I)=="fox-calendar__day--active",K=(Q,I)=>U(Q,I)&&M(E(Q,I)),G=(Q,I)=>u.currDate.length>=2&&O(E(Q,I))?U(Q,I):!1,Z=()=>{if(u.currDate.length>=2)return se.isEqual(u.currDate[0],u.currDate[1])},R=Q=>{const I=`${Q.year}-${Q.month}-${Number(Q.day)<10?"0"+Q.day:Q.day}`;return se.isEqual(I,se.date2Str(new Date))},te=Q=>{if(u.monthsData.length<=1)return;const I=Q.target.scrollTop;let L=Math.floor(I/u.avgHeight);if(L==0)I>=u.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<u.monthsNum-1)I>=u.monthsData[L+1].cssScrollHeight&&(L+=1),I<u.monthsData[L].cssScrollHeight&&(L-=1);else{const $=Math.round(I+T.value);$<u.monthsData[L].cssScrollHeight+u.monthsData[L].cssHeight&&I>u.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=u.monthsNum&&$>=u.monthsData[L+1].cssScrollHeight+u.monthsData[L+1].cssHeight&&(L+=1),L>=1&&I<u.monthsData[L-1].cssScrollHeight&&(L-=1)}u.currentIndex!==L&&(u.currentIndex=L,ee(u.monthsNum,L)),u.yearMonthTitle=u.monthsData[L].title},le=()=>{u.chooseData.splice(0),u.monthsData.splice(0),P()};return P(),t.watch(()=>e.defaultValue,Q=>{Q&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:c,weeks:f,compConthsData:y,showTopBtn:h,topInfo:A,bottomInfo:g,rangeTip:Z,mothsViewScroll:te,getClass:v,isStartTip:K,isEndTip:G,chooseDay:x,isCurrDay:R,confirm:j,months:m,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:w,viewArea:S}}}),yf={class:"fox-calendar__header"},pf={key:0,class:"fox-calendar__header-title"},bf={key:1,class:"fox-calendar__header-slot"},vf={key:2,class:"fox-calendar__header-subtitle"},wf={class:"fox-calendar__weekdays",ref:"weeksPanel"},Sf={class:"fox-calendar__panel",ref:"monthsPanel"},xf={class:"fox-calendar__days"},Cf=["onClick"],Tf={class:"fox-calendar__day-value"},kf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},$f={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Df={key:2,class:"fox-calendar__day-tips--curr"},Nf={key:4,class:"fox-calendar__day-tip"},Ef={key:0,class:"fox-calendar__footer"};function If(e,l,a,n,o,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",yf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",pf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",bf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",vf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",wf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:c},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:l[0]||(l[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Sf,[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,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:c},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(s.title),5),t.createElementVNode("view",xf,[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,(i,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(i,s)]),style:t.normalizeStyle(e.dayCellStyle),onClick:m=>e.chooseDay(i,s)},[t.createElementVNode("view",Tf,[t.renderSlot(e.$slots,"day",{date:i.type=="curr"?i:""},()=>[t.createTextVNode(t.toDisplayString(i.type=="curr"?i.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",kf,[t.renderSlot(e.$slots,"top-info",{date:i.type=="curr"?i:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",$f,[t.renderSlot(e.$slots,"bottom-info",{date:i.type=="curr"?i:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(i)?(t.openBlock(),t.createElementBlock("view",Df,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(i,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(i,s)?(t.openBlock(),t.createElementBlock("view",Nf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Cf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Ef,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:l[1]||(l[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Vf=Le(gf,[["render",If]]),{create:Of}=ue("calendar-picker"),Af=Of({components:{CalendarPane:Vf,Popup:bt},props:{...jl},emits:["choose","close","update:visible","select"],setup(e,{emit:l,slots:a}){const n=t.computed(()=>a.btn),o=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),c=t.ref(null),i=h=>{c.value?.scrollToDate(h)},f=()=>{c.value?.initPosition()},m=t.computed(()=>{const h=["fox-calendar__popup"];return e.popClass&&h.push(e.popClass),h});t.watch(()=>e.visible,h=>{h&&t.nextTick(()=>{c.value?c.value.doLayout():setTimeout(()=>{c.value&&c.value.doLayout()},250)})}),we({scrollToDate:i,initPosition:f});const d=()=>{l("update:visible",!1)},w=()=>{l("close"),l("update:visible",!1)};return{popClasses:m,closePopup:()=>{w()},update:d,close:w,select:h=>{l("select",h)},choose:h=>{w(),l("choose",h)},calendarRef:c,showTopBtn:n,topInfo:o,dayInfo:r,bottomInfo:s}}});function Ff(e,l,a,n,o,r){const s=t.resolveComponent("CalendarPane"),c=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(c,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{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(i=>[t.renderSlot(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"bottom-info",{date:i.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","pop-class","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(i=>[t.renderSlot(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"bottom-info",{date:i.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 jn=Le(Af,[["render",Ff]]),Kl=(e,l)=>{let a;return ct(e)?a=e:typeof e=="string"&&lt(e)>0?a=se.parser(e,l):a=new Date,a},Dt=(e,l,a)=>(ct(l)||(l=new Date),se.format(l,a)),Nt=e=>{let l=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,n=`${e.getDate()}`,o=se.date2Str(e),r=se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[l,a,n,o,r]},nr={...jl,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 Mf(e,l,a){return{props:{...ke,...Oe,...nr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]);let w=pe(n,"hintText"),S=t.ref(!1);const T=t.ref(!1),y=t.computed(()=>n.type==="range"),h=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),A=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},g=(Y,H="one",ee="YYYY-MM-DD")=>{if(hc(Y)){A();return}if(y.value&&Array.isArray(Y)&&Y.length==2){let U,K;typeof Y[0]=="string"?(U=Kl(Y[0],ee),K=Kl(Y[1],ee)):(U=Y[0],K=Y[1]);let G=Nt(U),Z=Nt(K);(h.startDate===null||h.startDate.getTime()!==U.getTime()||h.endDate?.getTime()!==K.getTime())&&(h.startDate=U,h.startArray=G,h.endDate=K,h.endArray=Z)}else{let U;typeof Y=="string"?U=Kl(Y,ee):U=Y;let K=Nt(U);(h.startDate===null||h.startDate.getTime()!==U.getTime())&&(h.startDate=U,h.startArray=K)}};g(n.modelValue,n.type,n.valueFormat),t.watch(()=>n.modelValue,Y=>{g(Y,n.type,n.valueFormat),f("setValue",Y)});const u=t.computed(()=>{if(h.startDate===null)return"";if(y.value){let Y=Dt(n,h.startDate,n.format),H=Dt(n,h.endDate,n.format);return`${Y} ${n.rangeSeparator} ${H}`}else{let Y=Dt(n,h.startDate,n.format);return n.showWeek&&(Y=`${Y} ${h.startArray[4]}`),Y}}),N=t.computed(()=>{if(h.startDate===null)return null;if(y.value){let Y=se.date2Str(h.startDate),H=se.date2Str(h.endDate??new Date);return[Y,H]}else return se.date2Str(h.startDate)}),M="fox-input-item",O=t.computed(()=>({[M]:!0,[`${M}__disabled`]:s.value})),k=Fe(t.computed(()=>n.textAlign),"textAlign"),E=t.computed(()=>({textAlign:k.value??"right"})),v=t.ref(!1),j=()=>{i.value||s.value||(v.value=!0)},x=()=>{v.value=!1},q=Y=>{v.value=Y},X=Y=>{if(Y){if(y.value&&Array.isArray(Y)){let H=Y[0],ee=be(H[0]),U=be(H[1]),K=be(H[2]),G=new Date(ee,U-1,K),Z=Y[1];ee=be(Z[0]),U=be(Z[1]),K=be(Z[2]);let R=new Date(ee,U-1,K);if(h.startDate=G,h.startArray=Nt(G),h.endDate=R,h.endArray=Nt(R),n.valueFormat){let te=Dt(n,G,n.valueFormat),le=Dt(n,R,n.valueFormat);f("update:modelValue",[te,le],{})}else f("update:modelValue",[G,R],{})}else{let H=Y,ee=be(H[0]),U=be(H[1]),K=be(H[2]),G=new Date(ee,U-1,K);if(h.startDate=G,h.startArray=Nt(G),n.valueFormat){let Z=Dt(n,G,n.valueFormat);f("update:modelValue",Z,{})}else f("update:modelValue",G,{})}f("change",Y,{})}},C=Y=>{let ee=Y.target.value;T.value=!0,f("focus",ee,Y)},D=Y=>{setTimeout(()=>{T.value=!1},0);let ee=Y.target.value;n.maxLength&&ee.length>Number(n.maxLength)&&(ee=ee.slice(0,Number(n.maxLength))),f("blur",ee,Y)},B=t.computed(()=>lt(n.unit)>0),P=Y=>{A(),f("update:modelValue",null,Y),f("change","",Y),f("clear","")},J=t.ref();return we({showPicker:j,hidePicker:x,focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()},select:()=>{J?.value.select()},setDisabled:Y=>{r.value=Y},setReadonly:Y=>{c.value=Y}}),()=>{const Y={class:O.value,style:E.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:n.clearable,value:u.value,onClick:j,onFocus:C,onBlur:D,onClear:P},H={};o.slots.prepend&&(H.prepend=o.slots.prepend),o.slots.append&&(H.append=o.slots.append),o.slots.prefix?H.prefix=o.slots.prefix:H.prefix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ie.Calendar)}),o.slots.suffix?H.suffix=o.slots.suffix:B.value&&(H.suffix=()=>[n.unit]);const ee=[],U=t.h(F.ElInput,Y,H);ee.push(U);const K={default:()=>ee};K.label=o.slots.default,K.fixedPreTip=o.slots.fixedPreTip,K.fixedTip=o.slots.fixedTip;const G=it(n,jl);G.visible=v.value,G["onUpdate:visible"]=q,G["default-value"]=N.value,G.onChoose=X;const Z={};if(o.slots.btn){const I=o.slots.btn();Z.btn=()=>I}o.slots.day&&(Z.day=o.slots.day),o.slots.topInfo&&(Z.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(Z.bottomInfo=o.slots.bottomInfo);const R=t.h(jn,G,Z);K.hide=()=>[R];const le={...Ve(n,nr),hintText:w.value,hintVisible:S.value};return n.prop&&(le.prop=`${n.prop}_item`),t.h(a,le,K)}}}}const{componentName:Bf,create:Rf,scope:Lf}=ue("calendar-item"),Wl=Rf(Mf(Bf,Lf,$e)),lr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Pf(e,l,a){return{props:{...ke,...Oe,...lr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0})),h=E=>{S.value=E,f("update:modelValue",E),f("change",E)};let A=pe(n,"hintText"),g=t.ref(!1);const u=E=>{let j=E.target.value;w.value=!0,ge(A.value)||(g.value=!0),f("focus",j,E)},N=E=>{setTimeout(()=>{g.value&&(g.value=!1),w.value=!1},0);let j=E.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),f("blur",j,E)},M=()=>{f("clear","")},O=E=>{f("visible-change",E)},k=t.ref();return we({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()},setDisabled:E=>{r.value=E},setReadonly:E=>{c.value=E}}),()=>{const v={...o.attrs,ref:k,class:y.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:S.value,"onUpdate:modelValue":h,onClear:M,onFocus:u,onBlur:N,onVisibleChange:O},j={},x=[],q=t.h(F.ElTimePicker,v,j);x.push(q);const X={default:()=>x};X.label=o.slots.default,X.fixedPreTip=o.slots.fixedPreTip,X.fixedTip=o.slots.fixedTip;const D={...Ve(n,lr),hintText:A.value,hintVisible:g.value};return n.prop&&(D.prop=`${n.prop}_item`),t.h(a,D,X)}}}}const{componentName:_f,create:qf,scope:zf}=ue("time-item"),Yl=qf(Pf(_f,zf,$e)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function jf(e,l,a){return{props:{...ke,...Oe,...ar},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0})),h=k=>{S.value=k,f("update:modelValue",k),f("change",k)};let A=pe(n,"hintText"),g=t.ref(!1);const u=k=>{let v=k.target.value;w.value=!0,ge(A.value)||(g.value=!0),f("focus",v,k)},N=k=>{setTimeout(()=>{g.value&&(g.value=!1),w.value=!1},0);let v=k.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),f("blur",v,k)},M=()=>{f("clear","")},O=t.ref();return we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:k=>{r.value=k},setReadonly:k=>{c.value=k}}),()=>{const E={...o.attrs,ref:O,class:y.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:S.value,"onUpdate:modelValue":h,onClear:M,onFocus:u,onBlur:N},v={},j=[],x=t.h(F.ElTimeSelect,E,v);j.push(x);const q={default:()=>j};q.label=o.slots.default,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const C={...Ve(n,ar),hintText:A.value,hintVisible:g.value};return n.prop&&(C.prop=`${n.prop}_item`),t.h(a,C,q)}}}}const{componentName:Hf,create:Kf,scope:Wf}=ue("time-select-item"),Ul=Kf(jf(Hf,Wf,$e));function or(e,l=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let o=n;for(let r=a.length-1;r>=n;r--)if(a.charAt(r)!="0"){o=r;break}return o-n<l?o=n+l+1:o!=n&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function rr(e,l,a=20){if(typeof l=="string"&&(l=be(l)),l==1||l==-1)return`${e}`;if(l==0)return"0";if(l>0){let n=Ua(`${e}`,`${l}`);return or(n)}else{let n=cl(`${e}`,Ga(`${l}`),20);return or(n)}}function Yf(e,l=-1,a=!1,n=3,o=","){return tn(e,l,a,n,o)}function ir(e,l,a,n,o=!0){if(e==="")return"";if(e=Xa(e),l=be(l),l==1)return e;if(n)e=rr(e,l),a&&(e=="0"&&o?e=`${e}.`.padEnd(be(a)+2,"0"):e=cl(e,1,be(a)));else{let r=-1*l;e=rr(e,r)}return e}function sr(e,l){let a={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let n=de(l.minInclude),o=fl(e,l.min);if(n&&o==-1||!n&&(o==0||o==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",l.min),a.minValid=!1}}if(l.max!=null){let n=de(l.maxInclude),o=fl(e,l.max);(n&&o==1||!n&&(o==0||o==1))&&(a.maxValid=!1)}return a}const ur={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 Uf(e,l,a){return{props:{...ke,...Oe,...ur},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=t.ref(!1),d=pe(n,"modelValue",null,f),w=t.ref("");t.watch([()=>d.value,()=>n.rates,()=>n.precision],([D,B,P])=>{if(ge(D)){w.value="";return}const J=ir(D,B,P,!1);w.value!==J&&(w.value=J)},{immediate:!0});const S=t.computed(()=>{let D="";return m.value&&(D=w.value),D}),{t:T}=xe.useFoxI18n(l),y=t.computed(()=>{let D=n.placeholder??"";return!m.value&&!ge(w.value)?D=Yf(w.value,n.decimalLength,n.autoPadding,n.digits,n.separator):D=T(["placeholder",D]),D}),h=e,A=t.computed(()=>({[h]:!0,[`${h}__disabled`]:s.value,[`${h}__placeholder`]:w.value.length>0})),g=Fe(t.computed(()=>n.textAlign),"textAlign");t.computed(()=>m.value?{textAlign:"left"}:{textAlign:g.value??"right"});const u=t.ref(""),N=t.computed(()=>{let D=u.value;return ge(D)&&(D=n.errorTip??""),D}),M=t.ref(""),O=t.ref(!1),k=(D,B)=>{if(D=`${D}`,ge(D)){w.value="",d.value="",B.forEach(P=>{f(P,"")}),de(n.showTip)&&O.value&&(O.value=!1);return}if(D.length>=2){let P=D;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){t.triggerRef(w);return}}if(D!="-"){if(!yl(D)){t.triggerRef(w);return}if(n.integerLength!=-1&&ao(D)>Number(n.integerLength)){t.triggerRef(w);return}if(n.decimalLength&&n.decimalLength!=-1&&oo(D)>Number(n.decimalLength)){t.triggerRef(w);return}let P=sr(D,n);if(P.maxValid===!1){u.value=P.message,t.triggerRef(w);return}}else if(n.min!=null&&be(n.min)>=0){t.triggerRef(w);return}M.value=D,de(n.showTip)&&(O.value=D.length>0),w.value=D,d.value=ir(D,n.rates,n.precision,!0),B.forEach(P=>{f(P,d.value)})},E=D=>{k(D,["update:modelValue","input"])},v=D=>{k(D,["update:modelValue","change"])},j=D=>{if(m.value=!0,de(n.showTip)){let B=w.value;ge(B)&&(B=n.hintText),ge(B)||(M.value=B,O.value=!0)}u.value="",f("focus",d.value,D)},x=D=>{if(setTimeout(()=>{m.value=!1,de(n.showTip)&&O.value===!0&&(O.value=!1)},0),!ge(w.value)){let B=sr(w.value,n);if(B.minValid===!1||B.maxValid===!1){u.value=B.message;return}}f("update:modelValue",d.value,D),f("blur",d.value,D)},q=()=>{f("clear","")},X=t.computed(()=>lt(n.unit)>0),C=t.ref();return we({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()},setDisabled:D=>{r.value=D},setReadonly:D=>{c.value=D}}),()=>{const B={...Je(o.attrs),ref:C,class:A.value,type:"digit",maxlength:n.maxLength,placeholder:y.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onInput:E,onChange:v,onFocus:j,onBlur:x},P={};o.slots.prepend&&(P.prepend=o.slots.prepend),o.slots.append&&(P.append=o.slots.append),o.slots.prefix&&(P.prefix=o.slots.prefix),o.slots.suffix?P.suffix=o.slots.suffix:X.value&&(P.suffix=()=>[n.unit]);const J=[],Y=t.h(F.ElInput,B,P);J.push(Y);const H={default:()=>J};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const U={...Ve(n,ur),errorTip:N.value,hintText:M.value,hintVisible:O.value,hintType:"number"};return n.prop&&(U.prop=`${n.prop}_item`),t.h(a,U,H)}}}}const{componentName:Gf,create:Xf,scope:Zf}=ue("money-item"),Gl=Xf(Uf(Gf,Zf,$e)),cr={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 Qf(e,l,a){return{props:{...ke,...Oe,...cr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0,[`${T}__append`]:E.value})),h=t.computed(()=>({[`${T}__unit`]:!0})),A=j=>{S.value=j,f("update:modelValue",j),f("input",j)},g=j=>{f("change",j)};let u=pe(n,"hintText"),N=t.ref(!1);const M=j=>{let q=j.target.value;w.value=!0,ge(u.value)||(N.value=!0),f("focus",q,j)},O=j=>{setTimeout(()=>{N.value&&(N.value=!1),w.value=!1},0);let q=j.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),f("blur",q,j)},k=()=>{f("clear","")},E=t.computed(()=>lt(n.unit)>0),v=t.ref();return we({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},setDisabled:j=>{r.value=j},setReadonly:j=>{c.value=j}}),()=>{const x={...Je(o.attrs),ref:v,class:y.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onChange:g,onInput:A,onFocus:M,onBlur:O},q={},X=[],C=t.h(F.ElInputNumber,x,q);X.push(C);const D={default:()=>X};D.label=o.slots.default,D.fixedPreTip=o.slots.fixedPreTip,D.fixedTip=o.slots.fixedTip;const P={...Ve(n,cr),hintText:u.value,hintVisible:N.value};if(n.prop&&(P.prop=`${n.prop}_item`),o.slots.append)D.append=o.slots.append;else if(E.value){const Y={class:h.value},H=t.h("div",Y,[n.unit]);D.append=()=>H}return t.h(a,P,D)}}}}const{componentName:Jf,create:ed,scope:td}=ue("input-number-item"),Xl=ed(Qf(Jf,td,$e));function ut(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function vt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function nd(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}let ld=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,o);const r=Re(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await r(a,n,o))}};function ad(){const e=t.getCurrentInstance();return new ld(e.proxy)}function Zl(e,l,a){const n=ut(e,l),o=ut(e,a);if(n!==o)return!1;const r=vt(e,l),s=vt(e,a);return r===s}function fr(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];let r=n;for(let s=0;Array.isArray(r)&&s<l.length;s++){const c=l[s];if(Array.isArray(c)){const i=fr(e,c,a,n);o.push(i)}else{let i=!1;for(let f of r){if(a==="text")i=ut(e,f)===c;else if(a==="item")i=Zl(e,f,c);else{let m=vt(e,f);m==null&&(m=ut(e,f)),i=m===c}if(i){o.push(f),r=nd(e,f);break}}if(!i)break}}return o}function od(e){return{text:e,value:e}}const dr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function rd(e,l,a){return{props:{...ke,...Oe,...dr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(null),S=t.ref([]),T=t.computed(()=>S.value?S.value.map(L=>Array.isArray(L)?L.map(W=>ut(n,W)).join(" "):ut(n,L)).join(" "):""),y=(I,L,$,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(w.value===I)return;w.value=I;const _=t.toRaw(I);if(W){const ne=Q?.value.getCheckedNodes();if(ne)if(n.multiple){const oe=[];ne.forEach(ie=>{const ye=(ie.pathNodes??[]).map(Te=>Te.data);oe.push(ye)}),f("update:pathNodes",oe)}else{const ie=(ne[0]?.pathNodes??[]).map(he=>he.data);f("update:pathNodes",ie)}f("update:modelValue",_),f("change",_)}return}const V=fr(n,I,L,$);if(V===null){if(S.value.length===0||S.value===null)return;S.value=[],w.value=null,W&&(f("update:pathNodes",[]),f("update:modelValue",null),f("change",null));return}const p=V[V.length-1];if(q.value.checkStrictly!==!0&&p&&!Array.isArray(p)&&Array.isArray(p.children)&&p.children.length>0){const _=[];V.forEach(ne=>{const oe=`${ut(n,ne)}`;_.push(oe)}),_.length>0&&(j.value=_.join(n.separator))}else j.value=null;let z=!0;if(V.length!==S.value.length)z=!1;else for(let _=0;_<V.length;_++){const ne=V[_],oe=S.value[_];if(Array.isArray(ne)){if(!Array.isArray(oe)||ne.length!==oe.length)z=!1;else for(let ie=0;ie<ne.length;ie++)if(!Zl(n,ne[ie],oe[ie])){z=!1;break}}else Zl(n,ne,oe)||(z=!1);if(!z)break}if(!z){S.value=V;let _=[],ne=[];V.forEach(ie=>{if(Array.isArray(ie)){let he=[],ye=[];for(let Te of ie)he.push(vt(n,Te)),n.valueType==="text"?ye.push(ut(n,Te)):n.valueType==="item"?ye.push(Te):ye.push(vt(n,Te));_.push(he),ne.push(ye)}else _.push(vt(n,ie)),n.valueType==="text"?ne.push(ut(n,ie)):n.valueType==="item"?ne.push(ie):ne.push(vt(n,ie))}),w.value=_;const oe=t.toRaw(ne);W&&(f("update:pathNodes",V),f("update:modelValue",oe),f("change",oe))}},h=t.ref([]),A=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,I=>de(I)),g=ad(),u=async(I,L)=>{if(I){const $=await g.load("cascader",I,L);if($.length>0)if(typeof $[0]=="string"){let p=$.map(z=>od(z));h.value=p}else h.value=$}};t.watch([()=>n.source,()=>n.params],async([I,L])=>{u(I,L)},{immediate:!(A.value||n.lazy)});let N=!1;const M=()=>{N||(N=!0,u(n.source,n.params))};t.watch([()=>h.value,()=>n.modelValue],([I,L])=>{y(L,n.valueType,I,!1),f("setValue",L)}),n.lazy&&y(n.modelValue,"value",[],!1);let O=null,k=t.ref(!1);typeof n.remoteMethod=="function"&&(O=async I=>{if(I!=null){k.value=!0;try{const L=await n.remoteMethod(I);h.value=L}catch(L){console.error(L)}k.value=!1}});const E=t.ref(!1),v=e,j=t.ref(null),x=t.computed(()=>({[v]:!0,"is-incomplete":j.value&&j.value.length>0})),q=t.computed(()=>{let I={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(I.multiple=!0),n.props&&Object.assign(I,n.props),n.lazy&&(I.lazy=!0,typeof n.lazyLoad=="function"?I.lazyLoad=n.lazyLoad:I.lazyLoad=async(L,$)=>{let W={};n.params&&Object.assign(W,n.params),L&&Object.assign(W,L);const V=await g.load("cascader",n.source,W,!0);if(L?.config?.checkStrictly!==!0&&Array.isArray(w.value)&&w.value.length===L.level){const p=L.pathLabels??[];let z=[];p.forEach(_=>{_&&z.push(_)}),z.length>0&&(j.value=z.join(n.separator))}else j.value=null;$(V)}),I}),X=I=>{n.allowCreate?(f("update:modelValue",I),f("change",I),w.value=I):y(I,"value",h.value,!0)};let C=pe(n,"hintText"),D=t.ref(!1);const B=I=>{let $=I.target.value;E.value=!0,ge(C.value)||(D.value=!0),f("focus",$,I)},P=I=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let $=I.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),Z.value||f("blur",$,I)},J=()=>{f("clear","")},Y=t.ref(!1);let H=null;const ee=()=>{n.showTooltip&&Y.value===!1&&(H&&clearTimeout(H),H=setTimeout(()=>{Y.value=!0},150))},U=()=>{H&&(clearTimeout(H),Y.value=!1,H=null)},K=t.computed(()=>Y.value||D.value),G=t.computed(()=>Y.value?T.value:C.value),Z=t.ref(!1),R=I=>{Z.value=I,f("visible-change",I),I||f("selected")},te=I=>{f("remove-tag",I)},le=I=>{f("expand-change",I)},Q=t.ref();return we({focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},getCheckedNodes:()=>Q?.value.getCheckedNodes(),setDisabled:I=>{r.value=I},setReadonly:I=>{c.value=I}}),()=>{const L={...o.attrs,ref:Q,class:x.value,props:q.value,clearable:n.clearable,placeholder:j.value||d.placeholder.value,disabled:s.value||i.value,options:h.value,modelValue:w.value,separator:n.separator,onClear:J,onChange:X,onFocus:B,onBlur:P,onVisibleChange:R,onRemoveTag:te,expandChange:le};typeof O=="function"&&(L["remote-method"]=O,L.loading=k.value);const $={};o.slots.option&&($.default=o.slots.option),o.slots.empty&&($.empty=o.slots.empty);const W=[],V=t.h(F.ElCascader,L,$);W.push(V);const p={default:()=>W};p.label=o.slots.default,p.fixedPreTip=o.slots.fixedPreTip,p.fixedTip=o.slots.fixedTip;const _={...Ve(n,dr),hintText:G.value,hintVisible:K.value,onMouseover:ee,onMouseleave:U};return n.prop&&(_.prop=`${n.prop}_item`),A.value&&!n.lazy&&(_["appear-listen"]=!0,_.onAppear=M),t.h(a,_,p)}}}}const{componentName:id,create:sd,scope:ud}=ue("cascader-item"),Ql=sd(rd(id,ud,$e)),hr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cd(e,l,a){return{props:{...ke,...Oe,...hr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0})),h=v=>{S.value=v,f("update:modelValue",v),f("input",v)},A=v=>{f("change",v)},g=v=>{f("select",v)};let u=pe(n,"hintText"),N=t.ref(!1);const M=v=>{let x=v.target.value;w.value=!0,ge(u.value)||(N.value=!0),f("focus",x,v)},O=v=>{setTimeout(()=>{N.value&&(N.value=!1),w.value=!1},0);let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),f("blur",x,v)},k=()=>{f("clear","")},E=t.ref();return we({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()},setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const j={...o.attrs,ref:E,class:y.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,onClear:k,onChange:A,onInput:h,onFocus:M,onBlur:O,onSelect:g},x={};o.slots.prepend&&(x.prepend=o.slots.prepend),o.slots.append&&(x.append=o.slots.append),o.slots.prefix&&(x.prefix=o.slots.prefix),o.slots.suffix&&(x.suffix=o.slots.suffix),o.slots.option&&(x.default=o.slots.option);const q=[],X=t.h(F.ElAutocomplete,j,x);q.push(X);const C={default:()=>q};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const B={...Ve(n,hr),hintText:u.value,hintVisible:N.value};return n.prop&&(B.prop=`${n.prop}_item`),t.h(a,B,C)}}}}const{componentName:fd,create:dd,scope:hd}=ue("autocomplete-item"),Jl=dd(cd(fd,hd,$e));function md(e,l,a,n,o){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],c=l[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[o]){let i=l;for(let f=0;i&&f<r.length;f++){let m=r[f],d=i.find(w=>w[n]===m);if(!d)break;s.push(d[a])}return s}if(Array.isArray(c))for(let i=0;i<l.length&&i<r.length;i++){let f=l[i],m=r[i];const d=f.find(w=>w[n]===m);if(!d)break;s.push(d[a])}else{let i=l;for(let f=0;i&&f<r.length;f++){let m=r[f],d=i.find(w=>w[n]===m);if(!d)break;s.push(d[a]),i=d[o]}}return s}let gd=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function yd(){const e=t.getCurrentInstance();return new gd(e.proxy)}const mr={tag:{type:[String,Object],required:!1,default:"span"},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}};function pd(e,l){return{props:{...mr},setup(a,{attrs:n,slots:o}){const r=yd(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([i,f])=>{s.value=await r.load(a.sourceType,i,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return a.emptyText;let i=md(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return i.length==0?a.emptyText??"":i.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${i[0]}`:i[0]:i.join(a.separator)});return()=>{const i={...n};if(o.default)return o.default({text:c.value,value:a.modelValue});const f=a.tag??"span";return typeof f=="object"?t.h(f,i,{default:()=>c.value}):t.h(f,i,[c.value])}}}}const{create:bd}=ue("mapping"),Ht=bd(pd());function vd(e,l){let a=l.split("."),n=e;for(let o=0;o<a.length;o++){let r=a[o],s=0,c=r.indexOf("["),i=c==-1?-1:r.indexOf("]",c);for(;c!==-1&&i!==-1;){let f=r.substring(c+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][m]}else n=n[m];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function wd(e,l){return{props:{...mr},setup(a,{attrs:n,slots:o}){return()=>{const r={default:s=>{const c=vd(s.row,s.column.property);return o.default?t.h(Ht,{...a,modelValue:c},{default:o.default}):t.h(Ht,{...a,modelValue:c})}};for(let s in o)s!=="default"&&(r[s]=o[s]);return t.h(F.ElTableColumn,{...n},r)}}}}const{create:Sd}=ue("table-mapping-column"),ea=Sd(wd()),xd=Symbol.for("TableStateKey");function gr(e,l){let a=l.split("."),n=e;for(let o=0;o<a.length;o++){let r=a[o],s=0,c=r.indexOf("["),i=c==-1?-1:r.indexOf("]",c);for(;c!==-1&&i!==-1;){let f=r.substring(c+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][m]}else n=n[m];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function Cd(e,l){return{props:{},setup(a,{attrs:n}){const o=t.inject(xd,{});return()=>{const r=o.currentRow?o.currentRow.value:null,s={default:c=>{const i=gr(c.row,c.column.property),f=r?gr(r,c.column.property):null,m=i===f,d={class:{"el-radio__input":!0,"is-checked":m}},w=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),S={class:{"el-radio":!0,"is-checked":m}};return t.h("label",S,[w])}};return t.h(F.ElTableColumn,{...n},s)}}}}const{create:Td}=ue("table-radio-column"),ta=Td(Cd()),kd={},$d={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Dd(e,l){return t.openBlock(),t.createElementBlock("svg",$d,[...l[0]||(l[0]=[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)])])}const Nd=Le(kd,[["render",Dd]]),{create:Ed}=ue("table-setting"),Id={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:"不固定"}},Vd=Ed({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:Nd,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Id},setup(e,{emit:l,attrs:a}){let n=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(R=>R.label===""||R.type?!1:R.fixed===""||R.fixed===!0||R.fixed==="left")),s=t.computed(()=>o.value.filter(R=>R.label===""||R.type?!1:R.fixed==="right")),c=t.computed(()=>o.value.filter(R=>!(R.label===""||R.type||R.fixed!==void 0))),i=t.computed(()=>(r.value.length>0||s.value.length>0)&&c.value.length>0),f=t.computed(()=>r.value.length>0),m=t.computed(()=>s.value.length>0),d=R=>R.length>1,w=(R,te)=>{Array.isArray(R)&&Array.isArray(te)&&R.forEach(I=>{te.some(L=>L.prop===I.prop?(I.label=L.label,!0):!1)});const le=[];o.value=R.map((I,L)=>(!(I.label===""||I.type)&&I.visible!==!1&&le.push(I.prop),{...I,sortIndex:L})),c.value.length+r.value.length+s.value.length===le.length?g.value=!0:le.length>0&&(u.value=!0),O.value=le},S=R=>R?R.type?R.type:R.label?R.prop:"":"",T=(R,te)=>{if(R.length!==te.length)return!1;const le=R.map(Q=>S(Q));for(let Q of te){const I=S(Q);if(le.indexOf(I)===-1)return!1}return!0},y=R=>{if(!R){const te=e.tableRef.getColumnSetting(),le=te.srcColumnPropertyList;n=le.map((Q,I)=>({...Q,sortIndex:I})),R=te.columnPropertyList,R&&R.length>0&&T(le,R)||(R=le)}w(R,n)},h=()=>{e.tableRef.setColumnSetting(o.value)},A=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),u=t.ref(!1),N=R=>{const te=[];o.value.forEach(Q=>{R&&!(Q.label===""||Q.type)&&te.push(Q.prop),Q.visible=R}),g.value=!1,u.value=!1,c.value.length+r.value.length+s.value.length===te.length?g.value=!0:te.length>0&&(u.value=!0),O.value=te,h()},M=()=>{y(n),h()},O=t.ref([]),k=R=>{o.value.forEach(le=>{if(le.label===""||le.type)return;const Q=R.indexOf(le.prop)!==-1;le.visible=Q}),g.value=!1,u.value=!1;const te=c.value.length+r.value.length+s.value.length;R.length===te?g.value=!0:R.length>0&&(u.value=!0),h()},E=()=>{y()};t.onMounted(()=>{setTimeout(()=>{y()},50)});const v={currentRow:null,index:null,roleType:null},j=R=>R?R.dataset&&R.dataset.role==="row"?R:R.tagName.toLowerCase()!=="body"?(R=R.parentElement,j(R)):null:null,x=R=>{const te=R.currentTarget;te&&te.dataset&&(v.roleType=te.dataset.roleType,v.index=te.dataset.index)},q=R=>{v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null),v.index=null,v.roleType=null},X=R=>{const te=R.currentTarget;R.relatedTarget;const le=j(te);if(!le)return;const Q=le.dataset&&le.dataset.roleType;v.roleType===Q&&(R.preventDefault(),v.currentRow&&v.currentRow!==le&&v.currentRow.classList.remove("is-dragover"),le.classList.add("is-dragover"),v.currentRow=le)},C=R=>{R.preventDefault(),v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null)},D=R=>{const te=R.currentTarget,le=j(te);if(!le)return;const Q=le.dataset&&le.dataset.roleType;if(v.roleType!==Q)return;R.preventDefault();const I=Number(v.index),L=Number(le.dataset.index);if(I!==L){if(I<L){const $=o.value[I];o.value.splice(I,1),o.value.splice(L,0,$)}else{const $=o.value[I];o.value.splice(I,1),o.value.splice(L+1,0,$)}w(o.value,n),h()}},B=R=>{const te=o.value[R];te.fixed="left",h()},P=R=>{const te=o.value[R];te.fixed="right",h()},J=R=>{const te=o.value[R];te.fixed=void 0,h()},Y=new Map;let H=null;function ee(R){const te=document.createRange();return te.setStart(R,0),te.setEnd(R,R.childNodes.length),te.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:c,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:m,isDraggble:d,isCheckAll:g,isIndeterminate:u,handleCheckAllChange:N,handleReset:M,checkedValue:O,handleCheckChange:k,onShow:E,onDragStart:x,onDragEnd:q,onDragOver:X,onDragLeave:C,onDrop:D,toLeftFixed:B,toRightFixed:P,toUnFixed:J,checkboxLabelStyle:A,onMouseOverForOverflowText:(R,te,le)=>{const Q=R.currentTarget;if(Q){const I=Math.floor(Q.offsetWidth);if(Math.floor(ee(Q))>I){let $=Y.get(te);if($){if($===H)return;Pe.hide($)}$=Pe.show(Q,le,{type:"text",placement:"top",closeOnClick:!1}),$&&(Y.set(te,$),H=$)}}},onMouseLeaveForOverflowText:(R,te)=>{const le=Y.get(te);le&&(Pe.hide(le),le===H&&(H=null))},onMouseOverForTip:(R,te)=>{const le=R.currentTarget;le&&(H&&Pe.hide(H),H=Pe.show(le,te,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:R=>{H&&(Pe.hide(H),H=null)}}}}),Od={class:"fox-table-setting"},Ad={class:"fox-table-setting__header"},Fd={class:"fox-table-setting__body"},Md={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Bd={key:0,class:"fox-table-setting__body-title"},Rd=["data-index","draggable"],Ld=["onMouseover","onMouseleave"],Pd={class:"tools-item"},_d={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},qd={key:0,class:"fox-table-setting__body-title"},zd=["data-index","draggable"],jd=["onMouseover","onMouseleave"],Hd={class:"tools-item"},Kd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Wd={key:0,class:"fox-table-setting__body-title"},Yd=["data-index","draggable"],Ud=["onMouseover","onMouseleave"],Gd={class:"tools-item"};function Xd(e,l,a,n,o,r){const s=t.resolveComponent("FoxCheckbox"),c=t.resolveComponent("FoxButton"),i=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),m=t.resolveComponent("FoxIcon"),d=t.resolveComponent("Download"),w=t.resolveComponent("fox-checkbox"),S=t.resolveComponent("FoxCheckboxGroup"),T=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(T,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",Od,[t.createElementVNode("div",Ad,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=y=>e.isCheckAll=y),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Fd,[t.createVNode(S,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Md,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Bd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:l[5]||(l[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[6]||(l[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[7]||(l[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[8]||(l[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[9]||(l[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",value:y.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,y.prop,y.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,y.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(y.label),45,Ld)]),_:2},1032,["value"]),t.createElementVNode("div",Pd,[t.createVNode(m,{onClick:h=>e.toUnFixed(y.sortIndex),onMouseover:l[1]||(l[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:l[2]||(l[2]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:h=>e.toRightFixed(y.sortIndex),onMouseover:l[3]||(l[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:l[4]||(l[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,Rd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",_d,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",qd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:l[14]||(l[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[15]||(l[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[16]||(l[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[17]||(l[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[18]||(l[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",value:y.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,y.prop,y.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,y.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(y.label),45,jd)]),_:2},1032,["value"]),t.createElementVNode("div",Hd,[t.createVNode(m,{onClick:h=>e.toLeftFixed(y.sortIndex),onMouseover:l[10]||(l[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:l[11]||(l[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:h=>e.toRightFixed(y.sortIndex),onMouseover:l[12]||(l[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:l[13]||(l[13]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,zd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Kd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Wd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:l[23]||(l[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[24]||(l[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[25]||(l[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[26]||(l[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[27]||(l[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(w,{class:"checkbox-item",label:y.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,y.prop,y.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,y.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(y.label),45,Ud)]),_:2},1032,["label"]),t.createElementVNode("div",Gd,[t.createVNode(m,{onClick:h=>e.toUnFixed(y.sortIndex),onMouseover:l[19]||(l[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:l[20]||(l[20]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:h=>e.toLeftFixed(y.sortIndex),onMouseover:l[21]||(l[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:l[22]||(l[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,Yd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Hn=Le(Vd,[["render",Xd]]);let Zd=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r,s,c){if(Array.isArray(a)){let f=(n-1)*o,m=f+o;m>a.length&&(m=a.length);const d=a.slice(f,m);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s,c]);const i=Re(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(je(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r,s,c]))}};function Qd(){const e=t.getCurrentInstance();return new Zd(e.proxy)}let Jd=class{proxy;constructor(l){this.proxy=l}async load(l){let a=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",l])),a}save(l,a){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,a])}remove(l){const a=Re(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",l])}};function eh(){const e=t.getCurrentInstance();return new Jd(e.proxy)}const th=Symbol.for("TableStateKey"),yr={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]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},pr={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"large"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},na={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:"不固定"}},nh={infiniteLoad:{type:Boolean,default:!0},loadText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"无更多数据"}};function lh(e,l){let a=l.split("."),n=e;for(let o=0;o<a.length;o++){let r=a[o],s=0,c=r.indexOf("["),i=c==-1?-1:r.indexOf("]",c);for(;c!==-1&&i!==-1;){let f=r.substring(c+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][m]}else n=n[m];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function la(e,l){return e.filter(n=>{for(let o in l){const r=l[o],s=lh(n,o);if(r!==s)return!1}return!0})}function ah(e,l,a){return{props:{...ke,...Oe,...yr,...pr,...na,...nh},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,o){const{locale:r,toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=Ee({componentName:e,validateHandler:{getValue(...ae){return v.value}}},n.prop??o.attrs.name),m=e,d=t.computed(()=>({[m]:!0})),w=t.computed(()=>({[`${m}__setting`]:!0})),S=t.computed(()=>({[`${m}__footer`]:!0,[`${m}__footer__${n.footerAlign}`]:!0})),T=t.computed(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${n.paginationAlign}`]:!0})),y=t.shallowRef({}),h=t.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),A=t.ref(n.infiniteLoad===!0?0:n.pageIndex),g=t.ref(n.pageSize),u=de(n.infiniteLoad);u||(t.watch(()=>n.pageIndex,ae=>{A.value=ae}),t.watch(()=>n.pageSize,ae=>{g.value=ae}),t.watch([A,g],([ae,re],[ce,fe])=>{re!==fe&&(A.value=1,ae=1),X(n.data,ae,re,h.value)}));const N=()=>Array.isArray(n.data)?!0:de(n.autoLoad);N()&&t.watch([()=>n.data,h],async([ae,re],[ce,fe])=>{N()&&(ae!==ce&&(x=!0),!(!Array.isArray(ae)&&Xe(ae,ce)&&Xe(re,fe))&&(u?(A.value=0,k.value=!0,v.value=[],D()):A.value===1?X(ae,A.value,g.value,re):A.value=1))},{deep:!0});const M=ae=>{A.value=ae,i("page-index-change",ae)},O=ae=>{g.value=ae,i("page-size-change",ae)},k=t.ref(!0),E=t.ref(0),v=t.ref([]),j=Qd();let x=t.ref(!0);const q=Fe(t.computed(()=>n.lazyLoad),"lazyLoad",Ge.Near,ae=>de(ae)),X=async(ae,re,ce,fe,ze)=>{try{if(ze===!0){if(!k.value)return!1;const Ce=await j.load("table",ae,re,ce,fe,x.value,r.value);return E.value=Ce.totalSize,!Ce.page||!Array.isArray(Ce.page)||(Reflect.apply([].push,v.value,Ce.page),setTimeout(()=>{i("loaded-data")},250),(v.value?.length??0)>=E.value)||Ce.page.length<ce?(k.value=!1,!1):!0}else{const Ce=await j.load("table",ae,re,ce,fe,x,r.value);return E.value=Ce.totalSize,v.value=Ce.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(Ce){console.error("[FoxUI] Load Table Data Fail",Ce),E.value=0,v.value=[]}finally{x.value=!1}return!1};let C=!1;const D=async()=>{if(!C){if(C=!0,!k.value){C=!1;return}A.value+=1,await X(n.data,A.value,g.value,h.value,!0),C=!1}},B=(ae={},re=!1)=>new Promise(async ce=>{y.value=t.toRaw(ae??{}),re||(A.value=n.pageIndex??1),u===!0?(A.value=0,v.value=[],k.value=!0,await D()):await X(n.data,A.value,g.value,h.value),ce()}),P=()=>{E.value=0,v.value=[],u===!0&&(A.value=0,k.value=!0)};let J=!1;const Y=()=>{J||(J=!0,B())},H=t.ref(null);if(u===!0){let ae=null;const re=()=>{H.value&&(ae=new IntersectionObserver(fe=>{let ze=!1;for(let Ce of fe)if(Ce.intersectionRatio>0){ze=!0;break}ze&&x.value===!1&&D()}),ae.observe(H.value))},ce=()=>{!ae||!H.value||(ae.unobserve(H.value),ae=null)};t.onMounted(re),t.onBeforeUnmount(ce)}N()&&!q.value&&B();const ee=t.ref(null);t.provide(th,{currentRow:ee});const U=(ae,re)=>{ee.value=ae,i("current-change",ae,re)},K=(ae,re,ce)=>{i("row-click",ae,re,ce),de(n.rowClickSelectable)===!0&&Ae?.value.toggleRowSelection(ae)},G=[],Z=(ae,re)=>{if(i("expand-change",ae,re),de(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ce=G.length;G.splice(0,ce)}else{G.forEach(fe=>{fe!==ae&&Ae?.value.toggleRowExpansion(fe,!1)});const ce=G.length;G.splice(0,ce,ae)}},R=o.attrs.id??n.prop??o.attrs.name,te=eh(),le=t.ref([]);let Q=[];const I=()=>({srcColumnPropertyList:Q.map(re=>({...re})),columnPropertyList:le.value}),L=ae=>{le.value=[...ae],W()},$=async()=>{const ae=await te.load(R);ae&&(le.value=ae)},W=()=>{te.save(R,le.value)},V=()=>{te.remove(R)};$();const p=ae=>ae?ae.type?ae.type:ae.label?ae.prop:"":"",z=(ae,re={})=>{for(let ce in re){const fe=re[ce];typeof fe!="function"&&(ae[ce]=fe)}},_=ae=>{const re=ae?ae():[],ce=new Map;if(Q=[],re.forEach(fe=>{const Ce=fe;if(!Ce.props)return;const tt=p(Ce.props);ce.set(tt,Ce);const Ze={label:"",prop:""};z(Ze,Ce.props),Q.push(Ze)}),le.value.length===Q.length){const fe=[];for(let ze of le.value){const Ce=p(ze),tt=ce.get(Ce);if(!tt)return re;if(ze.visible===!1)continue;const Ze=tt;Ze.props.fixed=ze.fixed,fe.push(Ze)}return fe}return re},ne=t.shallowRef(new Map),oe=({row:ae,column:re,rowIndex:ce,columnIndex:fe})=>{const ze=`${ce}_${re.property}`,Ce=`${ce}_${fe}`;let tt=ne.value.get(ze);return tt||(tt=ne.value.get(Ce)),typeof tt=="string"?tt:""},ie=ae=>ae?re=>{const ce=[];let fe=oe(re);return fe&&ce.push(fe),fe=typeof ae=="function"?ae(re):ae,fe&&ce.push(fe),ce.length===0?"":ce.join(" ")}:oe,he=(ae=!1)=>{ne.value.forEach((re,ce)=>{ye(ce,re,ae)})},ye=(ae,re,ce=!1)=>{const fe=`${ae}_item`;ce?(f.clearPersistantMessage(),Array.isArray(re)?f.emitToChildren({name:ae},"setCellClassNames",[]):f.emitToChildren({name:fe},"setCustomClassName","")):Array.isArray(re)?f.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:fe},"setCellClassNames",re):f.emitToChildren({name:fe,cachePolicy:"Persistant",uniqueId:fe},"setCustomClassName",re)},Te=(ae,re,ce)=>{const fe=`${ae}_${re}`;ce?(ne.value.set(fe,ce),ye(fe,ce)):(ne.value.delete(fe),ye(fe,"",!0)),t.triggerRef(ne)},et=ae=>{he(!0),ne.value.clear(),ae.forEach(re=>{const ce=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?ne.value.set(ce,re.children):typeof re.cellClassName=="string"&&ne.value.set(ce,re.cellClassName)}),he(),t.triggerRef(ne)},We=()=>{he(),ne.value.clear(),t.triggerRef(ne)},qe=t.shallowRef(new Map),At=({rowIndex:ae})=>{const re=`${ae}`;return qe.value.get(re)??""},Pa=ae=>ae?re=>{const ce=[];let fe=At(re);return fe&&ce.push(fe),fe=typeof ae=="function"?ae(re):ae,fe&&ce.push(fe),ce.length===0?"":ce.join(" ")}:At,Rp=(ae,re)=>{const ce=`${ae}`;re?qe.value.set(ce,re):qe.value.delete(ce),t.triggerRef(qe)},Lp=()=>{qe.value.clear(),t.triggerRef(qe)},Ae=t.ref();return we({clearSelection:()=>Ae?.value.clearSelection(),getSelectionRows:()=>Ae?.value.getSelectionRows(),toggleRowSelection:(ae,re)=>{Ae?.value.toggleRowSelection(ae,re)},toggleRowSelectionByProp:(ae,re)=>{if(!v.value)return;const ce=la(v.value,ae);ce.length!==0&&ce.forEach(fe=>{Ae?.value.toggleRowSelection(fe,re)})},toggleAllSelection:()=>{Ae?.value.toggleAllSelection()},toggleRowExpansion:(ae,re)=>{Ae?.value.toggleRowExpansion(ae,re)},toggleRowExpansionByProp:(ae,re)=>{if(!v.value)return;const ce=la(v.value,ae);ce.length!==0&&ce.forEach(fe=>{Ae?.value.toggleRowExpansion(fe,re)})},setCurrentRow:ae=>{Ae?.value.setCurrentRow(ae)},setCurrentRowByProp:ae=>{if(!v.value)return;const re=la(v.value,ae);re.length!==0&&Ae?.value.setCurrentRow(re[0])},getCurrentRow:()=>ee.value,clearSort:()=>{Ae?.value.clearSort()},clearFilter:ae=>{Ae?.value.clearFilter(ae)},doLayout:()=>{Ae?.value.doLayout()},sort:(ae,re)=>{Ae?.value.sort(ae,re)},scrollTo:(ae,re)=>{Ae?.value.scrollTo(ae,re)},setScrollTop:ae=>{Ae?.value.setScrollTop(ae)},setScrollLeft:ae=>{Ae?.value.setScrollLeft(ae)},loadData:B,clearData:P,getData(){return v.value},getTotalSize(){return E.value},getPageIndex(){return A.value},getPageSize(){return g.value},getColumnSetting:I,setColumnSetting:L,removeColumnSetting:V,setCellClassName:Te,setCellClassNames:et,clearCellClassName:We,setRowClassName:Rp,clearRowClassName:Lp}),()=>{const re={...Je(o.attrs),onCurrentChange:U,onRowClick:K,onExpandChange:Z,data:v.value,ref:Ae,class:d.value,"cell-class-name":ie(n.cellClassName),"row-class-name":Pa(n.rowClassName)},ce={};if(o.slots.default&&(ce.default=()=>_(o.slots.default)),o.slots.append&&(ce.append=o.slots.append),o.slots.empty&&(ce.empty=o.slots.empty),u===!0){const nt=[];if(k.value){const Qt=t.h(Ie.Loading,{class:`${m}__infinite-icon`});nt.push(Qt);const za=t.h("span",{class:`${m}__infinite-text`},[c.loadText.value]);nt.push(za)}else{const Qt=t.h("span",{class:`${m}__infinite-text`},[c.noMoreText.value]);nt.push(Qt)}const yt=[`${m}__infinite`];x.value&&yt.push("is-hide");const _a={ref:H,class:yt},qa=t.h("div",_a,nt);ce.append=()=>qa}const fe=t.h(F.ElTable,re,ce),ze=[];if(ze.push(fe),!u){let nt=null;if(typeof o.slots.pagination=="function")nt=o.slots.pagination();else if(n.showPagination){const yt={class:T.value,total:E.value,pageSize:g.value,"onUpdate:pageSize":O,pageSizes:n.pageSizes,currentPage:A.value,"onUpdate:currentPage":M,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,size:n.paginationSize,background:n.paginationBackground,appendSizeTo:n.paginationAppendSizeTo,teleported:n.paginationTeleported,popperClass:n.paginationPopperClass,prevText:n.paginationpPrevText,prevIcos:n.paginationPrevIcon,nextText:n.paginationNextText,pnextIcon:n.paginationNextIcon,disabled:n.paginationDisabled};nt=t.h(F.ElPagination,yt)}if(n.showSetting){const yt=[];nt&&yt.push(nt);const _a=t.h(F.ElIcon,{class:w.value},{default:()=>t.h(Ie.Setting)}),qa=it(n,na),Qt=t.h(Hn,{...qa,tableRef:{getColumnSetting:I,setColumnSetting:L,removeColumnSetting:V}},{default:()=>_a});yt.push(Qt);const za=t.h("div",{class:S.value},yt);ze.push(za)}else nt&&ze.push(nt)}const Ce={default:()=>ze},Ze={...Ve(n,yr,pr,na)};return n.prop&&(Ze.prop=`${n.prop}_item`),Ze.contentClass=`${m}__wrap`,Ze.errorMarkClass="is-table-error",q.value&&N()&&(Ze["appear-listen"]=!0,Ze.onAppear=Y),t.h(a,Ze,Ce)}}}}const{componentName:oh,create:rh,scope:ih}=ue("table-item"),aa=rh(ah(oh,ih,$e));function Et(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Kt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function sh(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let uh=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function ch(){const e=t.getCurrentInstance();return new uh(e.proxy)}function br(e,l,a){if(l===a)return!0;if(l===null||a===null)return!1;const n=Et(e,l),o=Et(e,a);if(n!==o)return!1;const r=Kt(e,l),s=Kt(e,a);return r===s}function fh(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;let o=null;for(let r of n){let s=!1;if(a==="text")s=Et(e,r)===l;else if(a==="item")s=br(e,r,l);else{let c=Kt(e,r);c==null&&(c=Et(e,r)),s=c===l}if(s){o=r;break}}return o}function dh(e){return{text:e,value:e}}function hh(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}const vr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function mh(e,l,a){return{inheritAttrs:!0,props:{...ke,...Oe,...vr},emits:["change","update:modelValue","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=t.ref(null),d=t.ref(null),w=(v,j,x,q=!0)=>{const X=fh(n,v,j,x);if(X===null){if(d.value===null)return;d.value=null,m.value=null,q&&(f("update:modelValue",null),f("change",null));return}if(!br(n,X,d.value)){m.value=v;const D=t.toRaw(X);d.value=D;let B=null;n.valueType==="text"?B=Et(n,D):n.valueType==="item"?B=D:B=Kt(n,D),q&&(f("update:modelValue",B),f("change",B))}},S=t.ref([]),T=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,v=>de(v)),y=ch(),h=async(v,j)=>{if(v){const x=await y.load("radio",v,j);if(x.length>0)if(typeof x[0]=="string"){let C=x.map(D=>dh(D));S.value=C}else S.value=x}};t.watch([()=>n.source,()=>n.params],async([v,j])=>{h(v,j)},{immediate:!T.value});let A=!1;const g=()=>{A||(A=!0,h(n.source,n.params))};t.watch([()=>S.value,()=>n.modelValue],([v,j])=>{w(j,n.valueType,v,!1),f("setValue",j)});const u=e,N=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),M=v=>{w(v,"value",S.value,!0)};let O=pe(n,"hintText"),k=pe(n,"hintVisible");const E=(v,j)=>{const x=[];return v.forEach((q,X)=>{const C=Kt(n,q),D=Et(n,q);let B=sh(n,q);s.value===!0&&(B=s.value),i.value===!0&&(B=i.value);const P=hh(n,q,X)??{},J=`${C}_${X}`,Y={...P,key:J,value:C,size:n.size,border:de(n.border)};B&&(Y.disabled=B),n.itemType==="button"?x.push(t.h(F.ElRadioButton,Y,{default:()=>[D]})):typeof j=="function"?x.push(t.h(F.ElRadio,Y,{default:()=>j(q)})):x.push(t.h(F.ElRadio,Y,{default:()=>[D]}))}),x};return we({setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const j={...Je(o.attrs),class:N.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,onChange:M},x=[],q={};o.slots.options?q.default=o.slots.options:q.default=()=>E(S.value,o.slots.text);const X=t.h(F.ElRadioGroup,j,q);x.push(X);const C={default:()=>x};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const B={...Ve(n,vr),hintText:O.value,hintVisible:k.value};return n.prop&&(B.prop=`${n.prop}_item`),T.value&&(B["appear-listen"]=!0,B.onAppear=g),t.h(a,B,C)}}}}const{componentName:gh,create:yh,scope:ph}=ue("radio-item"),oa=yh(mh(gh,ph,$e));function It(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Vt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function bh(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let vh=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function wh(){const e=t.getCurrentInstance();return new vh(e.proxy)}function wr(e,l,a){if(l===a)return!0;if(l===null||a===null)return!1;const n=It(e,l),o=It(e,a);if(n!==o)return!1;const r=Vt(e,l),s=Vt(e,a);return r===s}function Sh(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];return l.forEach(r=>{for(let s of n){let c=!1;if(a==="text")c=It(e,s)===r;else if(a==="item")c=wr(e,s,r);else{let i=Vt(e,s);i==null&&(i=It(e,s)),c=i===r}if(c){o.push(s);break}}}),o}function xh(e){return{text:e,value:e}}function Ch(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}const Sr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Th(e,l,a){return{inheritAttrs:!0,props:{...ke,...Oe,...Sr},emits:["change","update:modelValue","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=t.ref([]),d=t.ref([]),w=(v,j,x,q=!0)=>{const X=Sh(n,v,j,x);if(X===null){if(d.value===null||d.value.length===0)return;m.value=[],d.value=[],q&&(f("update:modelValue",[]),f("change",[]));return}let C=!0;if(X.length!==d.value.length)C=!1;else for(let D=0;D<X.length;D++){const B=X[D],P=d.value[D];if(!wr(n,B,P)){C=!1;break}}if(!C){d.value=X;let D=[],B=[];X.forEach(J=>{D.push(Vt(n,J)),n.valueType==="text"?B.push(It(n,J)):n.valueType==="item"?B.push(J):B.push(Vt(n,J))}),m.value=D;const P=t.toRaw(B);q&&(f("update:modelValue",P),f("change",P))}},S=t.ref([]),T=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,v=>de(v)),y=wh(),h=async(v,j)=>{if(v){const x=await y.load("checkbox",v,j);if(x.length>0)if(typeof x[0]=="string"){let C=x.map(D=>xh(D));S.value=C}else S.value=x}};t.watch([()=>n.source,()=>n.params],async([v,j])=>{h(v,j)},{immediate:!T.value});let A=!1;const g=()=>{A||(A=!0,h(n.source,n.params))};t.watch([()=>S.value,()=>n.modelValue],([v,j])=>{w(j,n.valueType,v,!1),f("setValue",j)});const u=e,N=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),M=v=>{w(v,"value",S.value,!0)};let O=pe(n,"hintText"),k=pe(n,"hintVisible");const E=(v,j)=>{const x=[];return v.forEach((q,X)=>{const C=Vt(n,q),D=It(n,q);let B=bh(n,q);s.value===!0&&(B=s.value),i.value===!0&&(B=i.value);const P=Ch(n,q,X)??{},J=`${C}_${X}`,Y={...P,key:J,class:n.itemClass,value:C,size:n.size,border:de(n.border)};B&&(Y.disabled=B),n.itemType==="button"?x.push(t.h(F.ElCheckboxButton,Y,{default:()=>[D]})):typeof j=="function"?x.push(t.h(F.ElCheckbox,Y,{default:()=>j(q)})):x.push(t.h(F.ElCheckbox,Y,{default:()=>[D]}))}),x};return we({setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const j={...Je(o.attrs),class:N.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,max:be(n.max),min:be(n.min),onChange:M},x=[],q={};o.slots.options?q.default=o.slots.options:q.default=()=>E(S.value,o.slots.text);const X=t.h(F.ElCheckboxGroup,j,q);x.push(X);const C={default:()=>x};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const B={...Ve(n,Sr),hintText:O.value,hintVisible:k.value};return n.prop&&(B.prop=`${n.prop}_item`),T.value&&(B["appear-listen"]=!0,B.onAppear=g),t.h(a,B,C)}}}}const{componentName:kh,create:$h,scope:Dh}=ue("checkbox-item"),ra=$h(Th(kh,Dh,$e)),xr={modelValue:{type:[Number,String],required:!1}};function Nh(e,l,a){return{props:{...ke,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=pe(n,"modelValue",A=>be(A),f),d=e,w=t.computed(()=>({[d]:!0})),S=A=>{f("update:modelValue",A),f("change",A)};let T=pe(n,"hintText"),y=t.ref(!1);const h=t.ref();return we({setDisabled:A=>{r.value=A},setReadonly:A=>{c.value=A}}),()=>{const g={...Je(o.attrs),ref:h,class:w.value,readonly:i.value||s.value,modelValue:m.value,onChange:S},u={},N=[],M=t.h(F.ElRate,g,u);N.push(M);const O={default:()=>N};O.label=o.slots.default,O.fixedPreTip=o.slots.fixedPreTip,O.fixedTip=o.slots.fixedTip;const E={...Ve(n,xr),hintText:T.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),t.h(a,E,O)}}}}const{componentName:Eh,create:Ih,scope:Vh}=ue("rate-item"),ia=Ih(Nh(Eh,Vh,$e)),Cr={modelValue:{type:[Boolean,String,Number],required:!1}};function Oh(e,l,a){return{props:{...ke,...Oe,...Cr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=pe(n,"modelValue",null,f),d=e,w=t.computed(()=>({[d]:!0})),S=A=>{f("update:modelValue",A),f("change",A)};let T=pe(n,"hintText"),y=pe(n,"hintVisible");const h=t.ref();return we({setDisabled:A=>{r.value=A},setReadonly:A=>{c.value=A}}),()=>{const g={...Je(o.attrs),ref:h,class:w.value,readonly:i.value,disabled:s.value,modelValue:m.value,onChange:S},u={},N=[],M=t.h(F.ElSwitch,g,u);N.push(M);const O={default:()=>N};O.label=o.slots.default,O.fixedPreTip=o.slots.fixedPreTip,O.fixedTip=o.slots.fixedTip;const E={...Ve(n,Cr),hintText:T.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),t.h(a,E,O)}}}}const{componentName:Ah,create:Fh,scope:Mh}=ue("switch-item"),sa=Fh(Oh(Ah,Mh,$e)),Tr={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Bh=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,o);const s=Re(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await s(a,n,o))}};function Rh(){const e=t.getCurrentInstance();return new Bh(e.proxy)}const kr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Lh(e,l,a){return{props:{...ke,...Oe,...kr,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),f=t.ref(!1),{emitEvent:m}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),d=pe(n,"modelValue",null,m),w=e,S=t.computed(()=>({[w]:!0})),T=q=>{d.value=q,m("update:modelValue",q),m("change",q)};let y=pe(n,"hintText"),h=t.ref(!1);const A=q=>{let C=q.target.value;f.value=!0,ge(y.value)||(h.value=!0),m("focus",C,q)},g=q=>{setTimeout(()=>{h.value&&(h.value=!1),f.value=!1},0);let C=q.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),N.value||m("blur",C,q)},u=()=>{m("clear","")},N=t.ref(!1),M=q=>{N.value=q,m("visible-change",q),q||m("selected")},O=t.ref([]),k=Rh(),E=async(q,X)=>{try{const C=await k.load("treeselect",q,X);O.value=C}catch(C){console.error(C)}};t.watch([()=>n.data,()=>n.params,()=>n.lazy],([q,X,C])=>{!q||C||E(q,X)},{immediate:!0});let v=null;n.lazy&&(typeof n.load=="function"?v=n.load:v=async(q,X)=>{debugger;let C={};n.params&&Object.assign(C,n.params),q&&Object.assign(C,q);const D=await k.load("treeselect",n.data,C,!0);X(D)});let j={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const x=t.ref();return we({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:q=>{r.value=q},setReadonly:q=>{c.value=q}}),()=>{const X={...Je(o.attrs),ref:x,class:S.value,disabled:s.value||i.value,modelValue:d.value,"onUpdate:modelValue":T,lazy:n.lazy,props:j,onClear:u,onFocus:A,onBlur:g,onVisibleChange:M};v?X.load=v:X.data=O.value;const C={};o.slots.option&&(C.default=o.slots.option);const D=[],B=t.h(F.ElTreeSelect,X,C);D.push(B);const P={default:()=>D};P.label=o.slots.default,P.fixedPreTip=o.slots.fixedPreTip,P.fixedTip=o.slots.fixedTip;const Y={...Ve(n,kr,Tr),hintText:y.value,hintVisible:h.value};return n.prop&&(Y.prop=`${n.prop}_item`),t.h(a,Y,P)}}}}const{componentName:Ph,create:_h,scope:qh}=ue("tree-select-item"),ua=_h(Lh(Ph,qh,$e));class zh{proxy;constructor(l){this.proxy=l}async load(l){let a=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",l])),a}save(l,a){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,a])}remove(l){const a=Re(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",l])}}function jh(){const e=t.getCurrentInstance();return new zh(e.proxy)}const Hh={},Kh={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Wh(e,l){return t.openBlock(),t.createElementBlock("svg",Kh,[...l[0]||(l[0]=[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)])])}const Yh=Le(Hh,[["render",Wh]]),{create:Uh}=ue("group-setting"),Gh={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Xh=Uh({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:Yh,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Gh},emits:["change"],setup(e,{emit:l,attrs:a,expose:n}){let o=null;const r=t.ref([]),s=jh(),c=U=>U.length>1,i=()=>{const U=[],K=[...r.value];r.value=K.map((Z,R)=>(Z.visible!==!1&&U.push(Z.prop),{...Z,sortIndex:R})),r.value.length===U.length?y.value=!0:U.length>0&&(h.value=!0),u.value=U},f=U=>{let K=null;if(typeof U=="string")K=document.querySelectorAll(`.fox-group[prop="${U}"] > div > .fox-item[prop]`);else if(U&&typeof U=="object"){const Z=U.$el??U;typeof Z.querySelectorAll=="function"&&(K=Z.querySelectorAll(".fox-item[prop]"))}if(!K)return[];const G=[];return K.forEach(Z=>{const R=Z.querySelector(".label--string");let te="";R&&(te=R.textContent??"");const le=Z.getAttribute("prop")??"",I=window.getComputedStyle(Z,null).getPropertyValue("display");G.push({label:te,prop:le,sortIndex:0,visible:I!=="none"})}),G},m=()=>{if(!o){const U=f(e.groupRef??e.groupProp);if(U.length===0)return!1;o=U}return!0},d=async(U=!1)=>{const K=await s.load(e.groupProp),G=Z=>{if(!Z||!o)return;const R=o.map(te=>({...te}));Array.isArray(K)&&K.forEach(te=>{R.some(le=>{if(le.prop===te.prop){const Q=le.label;return Object.assign(le,te),le.label=Q,!0}return!1})}),r.value=R.sort((te,le)=>te.sortIndex-le.sortIndex),i(),U&&S(!1)};o?G(!0):cn(m,e.initDelay,5,50,!1,G)},w=()=>{const U=o??[];r.value=U.map(K=>({...K})),i(),S()},S=(U=!0)=>{U&&s.save(e.groupProp,r.value);const K=r.value.map(G=>({...G}));l("change",K)},T=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),h=t.ref(!1),A=U=>{const K=[];r.value.forEach(Z=>{U&&K.push(Z.prop),Z.visible=U}),y.value=!1,h.value=!1,r.value.length===K.length?y.value=!0:K.length>0&&(h.value=!0),u.value=K,S()},g=()=>{w()},u=t.ref([]),N=U=>{r.value.forEach(G=>{const Z=U.indexOf(G.prop)!==-1;G.visible=Z}),y.value=!1,h.value=!1;const K=r.value.length;U.length===K?y.value=!0:U.length>0&&(h.value=!0),S()},M=()=>{d()};t.onMounted(()=>{d(!0)});const O={currentRow:null,index:null},k=U=>U?U.dataset&&U.dataset.role==="row"?U:U.tagName.toLowerCase()!=="body"?(U=U.parentElement,k(U)):null:null,E=U=>{const K=U.currentTarget;K&&K.dataset&&(O.index=K.dataset.index)},v=U=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null},j=U=>{const K=U.currentTarget;U.relatedTarget;const G=k(K);G&&(U.preventDefault(),O.currentRow&&O.currentRow!==G&&O.currentRow.classList.remove("is-dragover"),G.classList.add("is-dragover"),O.currentRow=G)},x=U=>{U.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},q=U=>{const K=U.currentTarget,G=k(K);if(!G)return;U.preventDefault();const Z=Number(O.index),R=Number(G.dataset.index);if(Z!==R){if(Z<R){const te=r.value[Z];r.value.splice(Z,1),r.value.splice(R,0,te)}else{const te=r.value[Z];r.value.splice(Z,1),r.value.splice(R+1,0,te)}i(),S()}},X=U=>{const K=r.value[U];r.value.splice(U,1),r.value.splice(0,0,K),i(),S()},C=U=>{const K=r.value[U];r.value.splice(U,1),r.value.push(K),i(),S()};n({refresh:()=>{o=null,d(!1)}});const D=new Map;let B=null;function P(U){const K=document.createRange();return K.setStart(U,0),K.setEnd(U,U.childNodes.length),K.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:c,isCheckAll:y,isIndeterminate:h,handleCheckAllChange:A,handleReset:g,checkedValue:u,handleCheckChange:N,onShow:M,onDragStart:E,onDragEnd:v,onDragOver:j,onDragLeave:x,onDrop:q,checkboxLabelStyle:T,toTop:X,toBottom:C,onMouseOverForOverflowText:(U,K,G)=>{const Z=U.currentTarget;if(Z){const R=Math.floor(Z.offsetWidth);if(Math.floor(P(Z))>R){let le=D.get(K);if(le){if(le===B)return;Pe.hide(le)}le=Pe.show(Z,G,{type:"text",placement:"top",closeOnClick:!1}),D.set(K,le),B=le}}},onMouseLeaveForOverflowText:(U,K)=>{const G=D.get(K);G&&(Pe.hide(G),G===B&&(B=null))},onMouseOverForTip:(U,K)=>{const G=U.currentTarget;G&&(B&&Pe.hide(B),B=Pe.show(G,K,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:U=>{B&&(Pe.hide(B),B=null)}}}}),Zh={class:"fox-group-setting"},Qh={class:"fox-group-setting__header"},Jh={class:"fox-group-setting__body"},em={class:"fox-group-setting__body-list","data-role":"container"},tm=["data-index","draggable"],nm=["onMouseover","onMouseleave"],lm={class:"tools-item"};function am(e,l,a,n,o,r){const s=t.resolveComponent("FoxCheckbox"),c=t.resolveComponent("FoxButton"),i=t.resolveComponent("DragIcon"),f=t.resolveComponent("Download"),m=t.resolveComponent("FoxIcon"),d=t.resolveComponent("FoxCheckboxGroup"),w=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(w,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Zh,[t.createElementVNode("div",Qh,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=S=>e.isCheckAll=S),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Jh,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=S=>e.checkedValue=S),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",em,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,S=>(t.openBlock(),t.createElementBlock("div",{key:S.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":S.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...T)=>e.onDragStart&&e.onDragStart(...T)),onDragend:l[6]||(l[6]=(...T)=>e.onDragEnd&&e.onDragEnd(...T)),onDrop:l[7]||(l[7]=(...T)=>e.onDrop&&e.onDrop(...T)),onDragover:l[8]||(l[8]=(...T)=>e.onDragOver&&e.onDragOver(...T)),onDragleave:l[9]||(l[9]=(...T)=>e.onDragLeave&&e.onDragLeave(...T))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:S.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:T=>e.onMouseOverForOverflowText(T,S.prop,S.label),onMouseleave:T=>e.onMouseLeaveForOverflowText(T,S.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(S.label),45,nm)]),_:2},1032,["label"]),t.createElementVNode("div",lm,[t.createVNode(m,{onClick:T=>e.toTop(S.sortIndex),onMouseover:l[1]||(l[1]=T=>e.onMouseOverForTip(T,e.toTopText)),onMouseleave:l[2]||(l[2]=T=>e.onMouseLeaveForTip(T)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:T=>e.toBottom(S.sortIndex),onMouseover:l[3]||(l[3]=T=>e.onMouseOverForTip(T,e.toBottomText)),onMouseleave:l[4]||(l[4]=T=>e.onMouseLeaveForTip(T))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"])])],40,tm))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ca=Le(Xh,[["render",am]]),om={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let rm=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,o);const s=Re(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await s(a,n,o))}};function im(){const e=t.getCurrentInstance();return new rm(e.proxy)}function sm(e,l,a){return{props:{...Rl,...om},setup(n,o){const r=e,s=t.computed(()=>({[r]:!0})),c=t.ref([]),i=im(),f=async(u,N)=>{try{const M=await i.load("tree",u,N);c.value=M}catch(M){console.error(M)}},m=t.shallowRef({}),d=t.computed(()=>({...m.value,...n.params??{}}));(Array.isArray(n.data)?!0:n.lazy?!1:de(n.autoLoad))&&t.watch([()=>n.data,()=>d.value],([u,N])=>{u&&f(u,N)},{immediate:!0,deep:!0});let S=null;n.lazy&&(typeof n.load=="function"?S=n.load:S=async(u,N)=>{let M={};n.params&&Object.assign(M,n.params),u&&Object.assign(M,u);const O=await i.load("treeselect",n.data,M,!0);N(O)});const T={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey,disabled:n.disabedKey,...n.props??{}},y=(u={})=>new Promise(async N=>{m.value={...t.toRaw(u??{})},await f(n.data,d.value),N()}),h=function(u,N){if(typeof n.filterNodeMethod=="function")return n.filterNodeMethod(u,N);if(!n.filterKeyword)return!0;const M=`${N[T.label]}`,O=`${u}`;return M.includes(O)},A=t.ref();t.watch(()=>n.filterKeyword,u=>{A.value.filter(u)});const g=u=>(...N)=>{const M=A.value[u];return Reflect.apply(M,A.value,[...N])};return o.expose({loadData:y,filter:g("filter"),updateKeyChildren:g("updateKeyChildren"),getCheckedNodes:g("getCheckedNodes"),setCheckedNodes:g("setCheckedNodes"),getCheckedKeys:g("getCheckedKeys"),setCheckedKeys:g("setCheckedKeys"),setChecked:g("setChecked"),getHalfCheckedNodes:g("getHalfCheckedNodes"),getHalfCheckedKeys:g("getHalfCheckedKeys"),getCurrentKey:g("getCurrentKey"),getCurrentNode:g("getCurrentNode"),setCurrentKey:g("setCurrentKey"),setCurrentNode:g("setCurrentNode"),getNode:g("getNode"),remove:g("remove"),append:g("append"),insertBefore:g("insertBefore"),insertAfter:g("insertAfter")}),()=>{const N={...Je(o.attrs),class:s.value,lazy:n.lazy,props:T,ref:x=>A.value=x};S?N.load=S:N.data=c.value,N["filter-node-method"]=h;const M=[],O=t.h(F.ElTree,N,o.slots);M.push(O);const k={default:()=>M},v={...it(n,Rl)};return t.h(a,v,k)}}}}const{componentName:um,create:cm,scope:fm}=ue("tree-item"),fa=cm(sm(um,fm,Nn)),Kn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function dm(e,l,a,n="value"){for(let o=0;o<l.length;o++){let r=l[o];if(n==="text"){if(Wn(e,r)===a)return o}else if(n==="item"){if(Xe(a,r))return o}else if(Dr(e,r)===a)return o}return-1}function Wn(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function $r(e,l){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?l[e.subTextKey]:l.text}function Dr(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function hm(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function mm(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}let gm=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r,s,c){if(Array.isArray(a)){let f=a;typeof c=="function"&&(f=f.filter(c));let m=(n-1)*o,d=m+o;d>f.length&&(d=f.length);const w=f.slice(m,d);return{totalSize:f.length,page:w}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s]);const i=Re(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(je(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r]))}};function ym(){const e=t.getCurrentInstance();return new gm(e.proxy)}function pm(e,l,a,n,o,r,s,c,i,f,m){return{props:{...Kn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:w}){const{emitEvent:S}=wl(),{toLocaleRefs:T}=xe.useFoxI18n(l),y=T(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),h=ym(),A=t.ref([]),g=t.ref(0),u=t.ref(""),N=t.shallowRef(null),M=t.computed(()=>{const I={};return d.params&&Object.assign(I,d.params),ge(u.value)||(I[`${d.searchKey}`]=u.value),N.value&&Object.assign(I,N.value),I});let O=!0;const k=async(I,L,$)=>{try{if(v.value===!1)return;let W=null;ge(u.value)||(W=p=>{const z=Wn(d,p);if(typeof z=="string"&&z.includes(u.value))return!0;const _=$r(d,p);return!!(typeof _=="string"&&_.includes(u.value))});const V=await h.load("actionsheet",I,L,$,M.value,O,W??void 0);O=!1,Array.isArray(V)?(A.value=V,g.value=1,v.value=!1):!Array.isArray(V.page)||V.page.length===0?(console.warn("[FoxUI] can not load more data"),v.value=!1):(Reflect.apply([].push,A.value,V.page),g.value=Math.ceil(A.value.length/d.pageSize),(V.totalSize&&A.value.length>=V.totalSize||$<V.page.length)&&(v.value=!1)),E.value=!1}catch(W){console.error("[FoxUI] ActionSheet load more data fail",W),v.value=!0,g.value=0,A.value=[]}setTimeout(()=>{S("loaded-data")},250)},E=t.ref(!1),v=t.ref(!0),j=async()=>{if(!d.source){E.value=!1;return}await k(d.source,g.value+1,d.pageSize)};t.watch(()=>u.value,(I,L)=>{ge(I)&&!ge(L)&&j()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([I,L,$])=>{d.source&&j()},{immediate:!0});const x=t.computed(()=>!d.multiple&&d.isAutoBackFill),q=t.ref([]);let X=null;const C=t.ref(d.visible);t.watch(()=>d.visible,I=>{C.value!==I&&(C.value=I),I?X=[...q.value]:X=null});const D=(I,L)=>{const $=[];return Array.isArray(I)||(I=[I]),I.forEach(W=>{let V=dm(d,L,W,d.valueType);V!==-1&&$.push(V)}),Xe($,q.value)?!1:(q.value=$,!0)};t.watch([()=>d.modelValue,()=>A.value],([I,L],[$,W])=>{if(D(I,L)){const p=B();P(p)}},{deep:!0});const B=()=>{const I=[],L=[],$=[];for(let z of q.value){const _=A.value[z];L.push(_);const ne=Wn(d,_);if($.push(ne),d.valueType==="item")I.push(_);else if(d.valueType==="text")I.push(ne);else{const oe=Dr(d,_);I.push(oe)}}let W=null,V=null,p=null;return d.multiple?(W=I,V=$,p=L):(W=I[0]??null,V=$[0]??null,p=L[0]??null),{value:W,text:V,item:p}},P=I=>{S("update:modelValue",I.value),S("update:text",I.text),S("change",I.value,I.item,I.text)},J=()=>{X&&(q.value=X)},Y=I=>{const L=q.value.indexOf(I);d.multiple?L===-1?q.value.push(I):q.value.splice(L,1):L===-1?q.value=[I]:q.value=[],(x.value||!d.poppable&&!d.showFooter)&&U()},H=I=>{C.value=I,S("update:visible",I)},ee=()=>{const I=()=>{J(),H(!1)},L=d.beforeMethod??d.beforeClose;if(typeof L=="function"){const $=L("close");nn($)?$.then(W=>{W!==!1&&I()}).catch(()=>{I()}):$!==!1&&I()}else I()},U=()=>{const I=B(),L=()=>{P(I),H(!1)},$=d.beforeMethod??d.beforeClose;if(typeof $=="function"){const W=$("confirm",I.value,I.item,I.text);nn(W)?W.then(V=>{V!==!1&&L()}).catch(()=>{L()}):W!==!1&&L()}else L()},K=()=>{v.value=!0,g.value=0,A.value=[],d.source&&j()},G=()=>{let I=y.title.value??"";w.title&&(I=w.title());const L=t.h("view",{class:["fox-actionsheet__header-title"]},[I]),$=t.h(i,{class:["fox-actionsheet__header-icon"],onClick:ee});return t.h("view",{class:["fox-actionsheet__header"]},[L,$])},Z=()=>{let I=null;if(w.search)I=w.search();else{const L={onSearch:K,placeholder:y.seachPlaceholder.value,disabled:d.disabled,modelValue:u.value,"onUpdate:modelValue":$=>{u.value=$}};I=t.h(r,L,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[I])},R=(I,L,$,W,V)=>{if(w.optionLabel)return w.optionLabel({text:I,checked:L,disabled:$,subText:W,item:V});const p=[],z=t.h("view",{class:"fox-actionsheet__list-item-text"},[I]);if(p.push(z),W){const _=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[W]);p.push(_)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},p)},te=(I,L,$,W)=>{if(w.optionIcon)return w.optionIcon({checked:I,disabled:L,iconSize:$,item:W});if(I){if(w.checkedIcon)return w.checkedIcon({disabled:L,item:W});{const V=d.checkedIcon??c;return t.h(V,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]})}}else{if(w.icon)return w.icon({disabled:L,item:W});{const V=d.icon??s;return t.h(V,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]})}}},le=()=>{const I=[];for(let L=0;L<A.value.length;L++){const $=A.value[L],W=Wn(d,$),V=$r(d,$),p=["fox-actionsheet__list-item"],z={};let _=hm(d,$),ne=d.iconSize?ve(d.iconSize):null;const oe=mm(d,$,L);oe&&(_=_||oe.disabled,oe.class&&p.push(oe.class),oe.style&&Object.assign(z,oe.style)),_=!!(d.disabled||_);const ie=q.value.includes(L);_&&p.push("is-disabled"),ie&&p.push("is-checked");const he={class:p,style:z,key:`${L}`,onClick:()=>{_||Y(L)}};let ye=[];if(w.option)ye.push(w.option({item:$,checked:ie,disabled:_}));else{const et=R(W,ie,_,V,$);ye.push(et);const We=te(ie,_,ne,$);ye.push(We)}const Te=t.h("view",he,ye);I.push(Te)}return I},Q=()=>{let I=[];if(w.buttons)I=w.buttons();else{const $=t.h(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:U,disabled:d.disabled},{default:()=>y.confirmText.value});I.push($)}return t.h("view",{class:"fox-actionsheet__footer"},[I])};return we({search:async(I=null,L=!0)=>{N.value=I&&t.toRaw(I),t.triggerRef(N),L&&(v.value=!0,g.value=0,A.value=[]),t.nextTick(()=>{j()})},clear:()=>{v.value=!0,g.value=0,A.value=[]},confirm:()=>{U()},cancel:()=>{ee()}}),()=>{const I=[];if(d.showHeader){const ne=G();I.push(ne)}if(d.showSearchbar){const ne=Z();I.push(ne)}let L=null;if(w.content)L=w.content();else{const ne=le(),oe={hasMore:v.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:E.value,"onUpdate:modelValue":ie=>{E.value=ie},onLoadMore:j};L=t.h(n,oe,{default:()=>ne})}const $={};d.optionsHeight&&($.height=d.optionsHeight);const W={"fox-actionsheet__list":!0};d.poppable||(W["fox-actionsheet__list--inner"]=!0);const V=t.h("view",{class:W,style:$},[L]);if(I.push(V),d.showFooter&&!x.value){const ne=Q();I.push(ne)}const p=t.h("view",{class:"fox-actionsheet"},I);if(!d.poppable)return p;const z=["fox-actionsheet__popup"];d.popClass&&z.push(d.popClass);const _={popClass:z.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":H,position:d.position,round:"round",onClickOverlay:ee,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,_,{default:()=>p})}}}}const bm=/scroll|auto|overlay/i,Nr=window;function vm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function wm(e,l=Nr){let a=e;for(;a&&a!==l&&vm(a);){const{overflowY:n}=window.getComputedStyle(a);if(bm.test(n))return a;a=a.parentNode}return l}function Er(e,l=Nr){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=wm(e.value,l))}),a}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sm={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function xm(e,l,a){return{props:{...Sm},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["pullText","loadText","noMoreText"]),i=t.ref(),f=Er(i),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),w=g=>g?g.offsetTop+w(g.offsetParent):0,S=()=>{let g=0,u=0,N="down";if(f.value==window){const M=Ir();i.value&&(g=w(i.value)+i.value.offsetHeight-M-window.innerHeight),u=M}else{const{scrollHeight:M,clientHeight:O,scrollTop:k}=f.value;g=M-O-k,u=k}return m.beforeScrollTop>u?N="up":N="down",m.beforeScrollTop=u,o("scroll-change",u),g<=n.threshold&&N=="down"},T=()=>{nl(()=>{if(!S()||!n.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},y=()=>{f.value&&f.value.addEventListener("scroll",T,n.useCapture)},h=()=>{f.value&&f.value.removeEventListener("scroll",T,n.useCapture)};t.onMounted(()=>{y(),n.immediate&&T()}),t.onUnmounted(()=>{h()});const A=t.ref(!1);return t.onActivated(()=>{A.value&&(A.value=!1,y())}),t.onDeactivated(()=>{A.value=!0,h()}),t.watch(()=>n.modelValue,g=>{g||(m.isInfiniting=!1)}),()=>{const g={class:"fox-infinite__container"},u=t.h("view",g,[r?.default?.()]),N=[];if(m.isInfiniting){let E=r?.loading?.()??null;if(!E){let x=r?.loadingIcon?.()??null;if(!x){const C={class:["fox-infinite__bottom-box__img"]};x=t.h(a,C)}const q={class:"fox-infinite__bottom-box__text"},X=t.h("view",q,[c.loadText.value]);E=[x,X]}const v={class:"fox-infinite__bottom-box"},j=t.h("view",v,E);N.push(j)}else if(!n.hasMore){let E=r?.finished?.()??null;if(!E){const v={class:"fox-infinite__bottom-tips"};E=t.h("view",v,[c.noMoreText.value]),N.push(E)}}const M={class:"fox-infinite__bottom"},O=t.h("view",M,N),k={class:d.value,ref:i};return t.h("view",k,[u,O])}}}}const{componentName:Cm,create:Tm,scope:km}=ue("infinite-loading"),Yn=Tm(xm(Cm,km,zn)),$m={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Dm=(e,l,a)=>({props:{...$m},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:o}){const{emitEvent:r}=wl(),{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["placeholder"]),i=t.reactive({active:!1}),f=t.computed(()=>({background:n.background})),m=t.computed(()=>({background:n.inputBackground})),d=v=>{let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),r("update:modelValue",x,v),r("change",x,v)},w=t.ref({}),S=v=>{let x=v.target.value;i.active=!0,w.value=n.focusStyle,r("focus",x,v)},T=v=>{setTimeout(()=>{i.active=!1},0);let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),w.value={},r("blur",x,v)},y=v=>{r("update:modelValue","",v),r("change","",v),r("clear","")},h=t.computed(()=>String(n.modelValue).length>0),A=t.computed(()=>{const v={};return h.value||(v.display="none"),v}),g=()=>{r("search",n.modelValue)},u=v=>{r("keyup-input",v),v.key.toLocaleUpperCase()==="ENTER"&&g()},N=v=>{r("click-input",v)},M=v=>{r("click-left-icon",n.modelValue,v)},O=t.computed(()=>({textAlign:n.inputAlign})),k=t.ref(null);t.onMounted(()=>{n.autofocus&&k.value.focus()});const E=()=>{const v=[];if(o.leftin){const C={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},D=t.h("view",C,[o.leftin()]);v.push(D)}const j={ref:k,class:[`${e}__input-inner`],style:O.value,type:n.inputType,maxlengt:n.maxLength,placeholder:c.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:N,onInput:d,onFocus:S,onBlur:T,onkeyup:u},x=t.h("input",j);v.push(x);const q=[];if(n.clearable){const C={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:y},D=o?.clear?.()??n.clearIcon??a,B=t.h("view",C,[t.h(D)]);q.push(B)}if(o.rightin){const C={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=t.h("view",C,[o.rightin()]);q.push(D)}if(q.length>0){const C={class:`${e}__input-inner-right`},D=t.h("view",C,q);v.push(D)}const X={class:[`${e}__search-input`,`${n.shape}`],style:{...m.value,...w.value}};return t.h("view",X,v)};return()=>{const v=[];if(n.label){const q={class:`${e}__search-label`},X=t.h("span",q,[n.label]);v.push(X)}if(o.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},X=t.h("view",q,[o.leftout()]);v.push(X)}const j=E();if(v.push(j),o.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},X=t.h("view",q,[o.rightout()]);v.push(X)}const x={class:`${e}`,style:f.value};return t.h("view",x,v)}}}),{componentName:Nm,create:Em,scope:Im}=ue("searchbar"),Un=Em(Dm(Nm,Im,Ie.CircleClose)),{componentName:Vm,create:Om,scope:Am}=ue("actionsheet-pane"),Gn=Om(pm(Vm,Am,bt,Yn,F.ElButton,Un,lf,Jc,Qo,Nc)),Vr={type:{type:String,default:"text"},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},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Fm(e,l,a,n,o){return{props:{...ke,...Oe,...Vr,...Kn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,s){const c=t.ref(null),i=Be(t.computed(()=>c.value??r.disabled)),f=t.ref(null),m=Me(t.computed(()=>f.value??r.readonly)),{emitEvent:d}=Ee({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return i.value}},r.prop??s.attrs.name),{toLocaleRefs:w}=xe.useFoxI18n(l),S=w(r,["placeholder"]),T=t.ref(!1),y=pe(r,"modelValue",null,d),h=t.ref(""),A=t.computed(()=>Array.isArray(h.value)?h.value.join(r.separator):h.value),g="fox-input-item",u=t.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value})),N=Fe(t.computed(()=>r.textAlign),"textAlign"),M=t.computed(()=>{const P={};return N.value&&(P["text-align"]=N.value),P}),O=t.ref(!1),k=()=>{O.value=!0},E=P=>{O.value=P},v=P=>{y.value=P,d("update:modelValue",P)},j=(P,J)=>{d("change",P,J)},x=P=>{let Y=P.target.value;T.value=!0,d("focus",Y,P)},q=P=>{setTimeout(()=>{T.value=!1},0);let Y=P.target.value;r.maxLength&&Y.length>Number(r.maxLength)&&(Y=Y.slice(0,Number(r.maxLength))),d("blur",Y,P)},X=P=>{h.value=P,d("update:text",P)},C=t.computed(()=>lt(r.unit)>0),D=t.ref(),B=t.ref(null);return we({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},search:P=>{B.value&&B.value.search(P)},clear:()=>{B.value&&B.value.clear},confirm:P=>{B.value&&B.value.confirm()},cancel:()=>{B.value&&B.value.cancel()},setDisabled:P=>{c.value=P},setReadonly:P=>{f.value=P}}),()=>{const P={ref:D,class:u.value,style:M.value,type:"text",maxlength:r.maxLength,placeholder:S.placeholder.value,readonly:!0,value:A.value,onClick:k,onFocus:x,onBlur:q},J={};s.slots.prepend&&(J.prepend=s.slots.prepend),s.slots.append&&(J.append=s.slots.append),s.slots.prefix&&(J.prefix=s.slots.prefix),s.slots.suffix?J.suffix=s.slots.suffix:C.value?J.suffix=()=>[r.unit]:J.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ie.ArrowDown)});const Y=[],H=t.h(F.ElInput,P,J);Y.push(H);const ee={default:()=>Y};ee.label=s.slots.default,ee.prepend=s.slots.prepend,ee.append=s.slots.append,ee.fixedPreTip=s.slots.fixedPreTip,ee.fixedTip=s.slots.fixedTip;const U=it(r,Kn);U.ref=B,U.class=r.actionsheetProps,U.disabled=i.value||m.value,U.visible=O.value,U["onUpdate:visible"]=E,U.modelValue=y.value,U["onUpdate:modelValue"]=v,U.text=h.value,U["onUpdate:text"]=X,U.onChange=j,U.poppable=!0;const K={title:s.slots.title,search:s.slots.search,option:s.slots.option,optionLabel:s.slots.optionLabel,optionIcon:s.slots.optionIcon,buttons:s.slots.buttons},G=t.h(n,U,K);ee.hide=()=>[G];const R={...Ve(r,Vr,Kn)};return r.prop&&(R.prop=`${r.prop}_item`),t.h(a,R,ee)}}}}const{componentName:Mm,create:Bm,scope:Rm}=ue("actionsheet-item"),da=Bm(Fm(Mm,Rm,$e,Gn)),Or={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:360}},ha={...Hl,...Or,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function Lm(e){return e===window}const ma=e=>{const l=t.unref(e);if(Lm(l)){const a=l.innerWidth,n=l.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return l&&l.getBoundingClientRect?l.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ar=10;function Fr(e,l){return e>l&&e>Ar?"horizontal":l>e&&l>Ar?"vertical":""}function Wt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Yt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},l=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const f=s.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const i=s;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=Fr(e.offsetX,e.offsetY))}),start:(s=>{if(n(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const i=s;e.startX=i.clientX,e.startY=i.clientY}e.startTime=Date.now()}),reset:n,isVertical:l,isHorizontal:a,state:e}}function Mr(){const e=t.ref(0),l=t.ref(0),a=t.ref(0),n=t.ref(0),o=t.ref(0),r=t.ref(0),s=t.ref(0),c=t.ref(0),i=t.ref(0),f=t.ref(0),m=t.ref(""),d=()=>m.value==="vertical",w=()=>m.value==="horizontal",S=()=>{s.value=0,c.value=0,i.value=0,f.value=0,m.value="",a.value=0};return{move:(h=>{if(h.touches){const u=h.touches[0];s.value=u.clientX-e.value,c.value=u.clientY-l.value,o.value=u.clientX,r.value=u.clientY}else{const g=h;s.value=g.clientX-e.value,c.value=g.clientY-l.value,o.value=g.clientX,r.value=g.clientY}i.value=Math.abs(s.value),f.value=Math.abs(c.value),n.value=Date.now()-a.value,m.value||(m.value=Fr(i.value,f.value))}),start:(h=>{if(S(),h.touches){const u=h.touches[0];e.value=u.clientX,l.value=u.clientY}else{const g=h;e.value=g.clientX,l.value=g.clientY}a.value=Date.now()}),reset:S,startX:e,startY:l,startTime:a,duration:n,moveX:o,moveY:r,deltaX:s,deltaY:c,offsetX:i,offsetY:f,direction:m,isVertical:d,isHorizontal:w}}let Br=36;function Pm(){return Br}function _m(e){Br=e}function rt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function ga(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]:l.children??null}function qm(e,l,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(l[e.childrenKey]=a),l.children=a}function wt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Rr(e,l){return typeof e.itemOptions=="function"?e.columnOptions(l):e.columnOptions}let zm=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function jm(){const e=t.getCurrentInstance();return new zm(e.proxy)}function Lr(e,l,a){const n=rt(e,l),o=rt(e,a);if(n!==o)return!1;const r=wt(e,l),s=wt(e,a);return r===s}function Hm(e,l,a,n){if(a.length==0)return[];Array.isArray(l)||(l=[l]);const o=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const c=l[s];let f=a[s].findIndex(m=>{if(r==="text")return rt(e,m)===c;if(r==="value"){let d=wt(e,m);return d==null&&(d=rt(e,m)),d===c}else if(r==="item")return Lr(e,m,c)});if(f==-1)break;o.push(f)}else{let s=a[0];for(let c=0;c<l.length;c++){const i=l[c];let f=s.findIndex(d=>{if(r==="text")return rt(e,d)===i;if(r==="value"){let w=wt(e,d);return w==null&&(w=rt(e,d)),w===i}else if(r==="item")return Lr(e,d,i)});if(f==-1)break;o.push(f);const m=ga(e,s[f]);if(!Array.isArray(m))break;s=m}}return o}function Pr(e,l,a,n){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const c=a[s];let i=l[s];i<0&&i>=c.length&&(i=0);const f=c[i],m=rt(e,f);if(o.texts.push(m),o.items.push(f),r==="text")o.values.push(m);else if(r==="value"){let d=wt(e,f);d==null&&(d=m),o.values.push(d)}else o.values.push(f)}else{let s=a[0];for(let c=0;c<l.length;c++){let i=l[c];i<0&&i>=s.length&&(i=0);const f=s[i],m=rt(e,f),d=Object.assign({},f);if(d.children=null,o.texts.push(m),o.items.push(d),r==="text")o.values.push(m);else if(r==="value"){let w=wt(e,f);w==null&&(w=m),o.values.push(w)}else o.values.push(d);if(!Array.isArray(f.children))break;s=f.children}}return o}function _r(e){return{text:e,value:e}}const Km=15,Wm=300,Ym=200,{create:Um}=ue("picker-column");function Gm(e){e.stopPropagation()}function Xm(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Gm(e)}const Zm=Um({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},visible:{type:Boolean,default:!1},...Or},emits:["click","change","update:modelValue"],setup(e,{emit:l}){const a=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${be(e.visibleItemCount)*+e.itemHeight}px`})),o=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=k=>k>=d.currIndex+8||k<=d.currIndex-8,c=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),i=k=>`transform: rotate3d(1, 0, 0, ${-d.rotation*k}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),m=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),w=k=>rt(e,k),S=k=>wt(e,k),T=Mr(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},h=(k,E=!1,v=!1)=>{if(d.currIndex=k,E){const j=()=>{d.moving=!1,l("update:modelValue",k),l("change",k)};v?d.transitionEndTrigger=j:j()}},A=(k,E,v)=>{let j=k+d.startDistance;if(E==="end"){const x=-(e.source.length-1)*e.itemHeight;j<x&&(j=x),j>0&&(j=0);let q=Math.abs(Math.round(-j/e.itemHeight));const X=-q*e.itemHeight,C=`${(q+1)*d.rotation}deg`,D=v?v>0:!1;h(q,!0,D),g(X,E,v,C)}else{let x=(-j/e.itemHeight+1)*d.rotation;const q=(e.source.length+1)*d.rotation,X=0;if(x=Math.min(Math.max(x,X),q),e.threeDimensional&&(x<X||x>q))return;g(j,null,void 0,`${x}deg`)}},g=(k=0,E,v=Ym,j)=>{E==="end"?d.scrollTime=v:d.scrollTime=0,d.deg=j,d.scrollDistance=k},u=(k,E)=>(k=Math.abs(k/E)/.003*(k<0?-1:1),k),N=k=>{e.readonly||(d.startDistance=d.scrollDistance,T.start(k),d.transitionEndTrigger=null)},M=k=>{e.readonly||(d.moving=!0,T.move(k),T.isVertical()&&(d.moving=!0,Xm(k)),A(T.deltaY.value,"",0))},O=()=>{if(e.readonly)return;const k=T.deltaY.value,E=T.duration.value;if(E<Wm&&Math.abs(k)>Km){const j=u(k,E);A(j,"end",e.swipeDuration)}else A(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const E=d.currIndex-k;if(E!==0){d.currIndex=k,d.startDistance=d.scrollDistance;const v=E*e.itemHeight;A(v,"",0)}}),t.watch(()=>e.source,k=>{if(d.currIndex>=k.length){const j=(k.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,A(j,"end",0)}}),t.watch(()=>e.visible,k=>{k===!1&&y()}),t.onMounted(()=>{const k=-e.modelValue*e.itemHeight;A(k)}),{classes:a,styles:n,contentClasses:o,itemText:w,itemValue:S,...t.toRefs(d),roller:m,getItemText:rt,onTouchStart:N,onTouchMove:M,onTouchEnd:O,isHidden:s,setRollerStyle:i,touchRollerStyle:c,touchTileStyle:f,stopMomentum:y}}}),Qm={key:1,class:"fox-picker__item-tile"};function Jm(e,l,a,n,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:l[0]||(l[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:l[1]||(l[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:l[2]||(l[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:l[3]||(l[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:l[4]||(l[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,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c+1)}]),style:t.normalizeStyle(e.setRollerStyle(c+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Qm,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const eg=Le(Zm,[["render",Jm]]),{create:tg,componentName:ng,scope:lg}=ue("picker"),ag=tg({components:{PickerColumn:eg,Popup:bt},props:{...ha},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:l}){const{toLocaleRefs:a,t:n}=xe.useFoxI18n(lg),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Pm());t.watch(()=>e.visible,x=>{x&&s.value<=0&&setTimeout(()=>{if(r.value){const q=ma(r.value);s.value=q.height,_m(s.value)}},50)});const c=t.computed(()=>({[ng]:!0})),i=jm(),f=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([x,q])=>{if(x){let X=await i.load("select",x,q);if(X.length>0){let C=X[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let D=X,B=[];D.forEach(P=>{let J=P.map(Y=>_r(Y));B.push(J)}),m.value=B}else m.value=X;f.value="multipleColumn"}else if(typeof C=="string"){let D=X,B=[],P=D.map(J=>_r(J));B.push(P),m.value=B,f.value="singleColumn"}else{const D=ga(e,C);Array.isArray(D)?(f.value="cascade",m.value=[X]):(f.value="singleColumn",m.value=[X])}}else m.value=[]}},{immediate:!0});const d=t.ref([]),w=t.ref(e.modelValue),S=t.ref([]),T=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([x,q])=>{let X=Hm(e,x,q,f.value);if(!Xe(X,T.value)){T.value=X;let C=Pr(e,X,q,f.value);C&&(d.value=C.texts,l("update:text",d.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,x=>{y.value=x});const h=x=>{let q=Rr(e,x);return je(q)?q.defaultIndex??0:0},A=x=>{if(e.readonly===!0)return!0;let q=Rr(e,x);return je(q)?q.readonly??!1:!1},g=(x,q)=>{let X=T.value;X[x]=q;for(let D=0;D<x;D++)X[D]==null&&(X[D]=h(D));if(f.value==="cascade")for(let D=x+1;D<N.value.length;D++){let B=h(D);D<X.length?X[D]=B:X.push(B)}else for(let D=X.length;D<N.value.length;D++){let B=h(D);X.push(B)}T.value=X;let C=Pr(e,X,m.value,f.value);C&&(d.value=C.texts,w.value=C.values,S.value=C.items)},u=x=>x<T.value.length?T.value[x]:h(x),N=t.computed(()=>{if(m.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return m.value;let x=[],q=0,X=m.value[0],C=0;for(;;){let D=X.map(J=>{let Y=Object.assign({},J);return qm(e,Y,null),Y});x.push(D),q>=T.value.length?C=0:C=T.value[q],(C<0||C>=X.length)&&(C=0);let B=X[C];const P=ga(e,B);if(!Array.isArray(P))break;X=P,q++}return x}),M=t.computed(()=>be(+e.visibleItemCount-1)/2*s.value),O=(x=!1)=>{if(e.readonly===!0){x&&l("update:visible",!1);return}let q=m.value.length-1;for(;q>=0&&!(T.value[q]===null||T.value[q]===void 0);q--);if(q>=0&&g(q,0),f.value==="singleColumn"){let X=w.value.length>0?w.value[0]:"",C=S.value.length>0?S.value[0]:null;l("update:modelValue",X),l("update:text",d.value),l("change",X,C),x&&(l("confirm",X),l("update:visible",!1))}else l("update:modelValue",w.value),l("update:text",d.value),l("change",w.value,S.value),x&&(l("confirm",w.value),l("update:visible",!1))};return{...o,pickerLineRef:r,classes:c,columns:N,dataType:f,show:y,itemHeight:s,top:M,isReadonly:A,getIndex:u,change:(x,q)=>{if(g(x,q),e.isAutoBackFill){const X=!y.value;O(X)}},close:()=>{l("close"),l("update:visible",!1)},confirm:()=>{O(!0)},clear:()=>{if(e.readonly===!0){l("update:visible",!1);return}f.value==="singleColumn"?(l("update:modelValue",""),l("change","")):(l("update:modelValue",[]),l("change",[])),l("clear",""),l("update:visible",!1)}}}}),og={class:"fox-picker__bar"},rg={class:"fox-picker__title"},ig={class:"fox-picker__bar__action"},sg={class:"fox-picker__column"};function ug(e,l,a,n,o,r){const s=t.resolveComponent("PickerColumn"),c=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(c,{position:"bottom",visible:e.show,"onUpdate:visible":l[3]||(l[3]=i=>e.show=i),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",og,[t.createElementVNode("view",rg,t.toDisplayString(e.title),1),t.createElementVNode("view",ig,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:l[0]||(l[0]=(...i)=>e.close&&e.close(...i))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:l[1]||(l[1]=(...i)=>e.confirm&&e.confirm(...i))},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:l[2]||(l[2]=(...i)=>e.clear&&e.clear(...i))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",sg,[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,(i,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:i,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":m=>e.change(f,m),"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,["visible","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 Ut=Le(ag,[["render",ug]]),qr={...ha,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function cg(e,l,a){return{props:{...ke,...Oe,...qr},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=e,T=t.computed(()=>({[S]:!0})),y=Fe(t.computed(()=>n.textAlign),"textAlign"),h=t.computed(()=>({textAlign:y.value??"right"})),A=pe(n,"modelValue",null,f),g=t.ref([]),u=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),N=t.ref(!1),M=()=>{N.value=!0},O=P=>{N.value=P},k=P=>{A.value=P,f("update:modelValue",P)},E=P=>{g.value=P,Array.isArray(P)&&P.length===0?f("update:text",P[0]):f("update:text",P)},v=(P,J)=>{f("change",P,J)};let j=pe(n,"hintText"),x=t.ref(!1);const q=P=>{let Y=P.target.value;w.value=!0,ge(j.value)||(x.value=!0),f("focus",Y,P)},X=P=>{setTimeout(()=>{x.value&&(x.value=!1),w.value=!1},0);let Y=P.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),N.value?setTimeout(()=>{f("blur",Y,P)},50):f("blur",Y,P)},C=()=>{f("clear","")},D=t.computed(()=>lt(n.unit)>0),B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:P=>{r.value=P},setReadonly:P=>{c.value=P}}),()=>{const P={class:T.value,style:h.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,clearable:de(n.clearable),readonly:!0,value:u.value,onClick:M,onFocus:q,onBlur:X},J={};o.slots.prepend&&(J.prepend=o.slots.prepend),o.slots.append&&(J.append=o.slots.append),o.slots.prefix&&(J.prefix=o.slots.prefix),o.slots.suffix?J.suffix=o.slots.suffix:D.value?J.suffix=()=>[n.unit]:J.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ie.ArrowDown)});const Y=[],H=t.h(F.ElInput,P,J);Y.push(H);const ee={default:()=>Y};ee.label=o.slots.default,ee.fixedPreTip=o.slots.fixedPreTip,ee.fixedTip=o.slots.fixedTip;const U=it(n,ha);U.disabled=!1,U.readonly=s.value||i.value,U.visible=N.value,U["onUpdate:visible"]=O,U.modelValue=A.value,U["onUpdate:modelValue"]=k,U.text=g.value,U["onUpdate:text"]=E,U.onClear=C,U.onChange=v;const K=t.h(Ut,U);ee.hide=()=>[K];const Z={...Ve(n,qr),hintText:j.value,hintVisible:x.value};return n.prop&&(Z.prop=`${n.prop}_item`),t.h(a,Z,ee)}}}}const{componentName:fg,create:dg,scope:hg}=ue("picker-item"),ya=dg(cg(fg,hg,$e)),pa={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},zr=(e,l)=>l[e.textKey],Gt=(e,l)=>l[e.valueKey],mg=(e,l)=>l[e.visibleKey],jr=(e,l)=>l[e.disabledKey],gg=(e,l)=>{const a=l[e.doitKey];return de(a)},yg=(e,l)=>{const a=l[e.numKey];return a==null?null:be(l[a])},Hr=(e,l,a)=>{const n=e.itemOptions;return typeof n=="function"?n(l,a):n||null};function pg(e,l,a,n,o,r=!1){return{props:{...pa},emits:["update:modelValue","change","click"],setup(s,{slots:c,emit:i}){const f=t.computed(()=>{const V={};return V[`${e}`]=!0,V}),m=t.computed(()=>{const V={};return V[`${e}__titles`]=!0,V[`${s.direction}`]=!0,s.align==="left"&&(V.left=!0),s.scroll===!0&&(V.scrollable=!0),s.shape&&(V[`${s.shape}`]=!0),s.showScrollArrow?(R.value===!0&&(V["has-left-scroll-arrow "]=!0),te.value===!0&&(V["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(V["has-navigation"]=!0),V}),d=t.computed(()=>({})),w=t.computed(()=>{if(!s.gutter)return 0;const V=ve(s.gutter);return V<=0?0:V}),S=t.ref(s.modelValue);t.watch(()=>s.modelValue,V=>{S.value!==V&&(S.value=V,Y(!1))});const T=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=t.computed(()=>{const V={};return A.value||(V.display="none"),V}),h=t.ref(),A=t.ref(!1),g=()=>{const V=!A.value;u(V)},u=V=>{const p=V;p?(A.value=p,setTimeout(()=>{T.value["fox-tabs-bar__popup--show"]=!0,T.value["fox-tabs-bar__popup--hide"]=!1},0)):(T.value["fox-tabs-bar__popup--show"]=!1,T.value["fox-tabs-bar__popup--hide"]=!0,h.value?h.value.addEventListener("transitionend",()=>{A.value=!1},{once:!0}):setTimeout(()=>{A.value=!1},0))},N=t.ref(),M=t.ref([]),O=(V,p)=>{M.value[p]=V},k=V=>p=>{O(p,V)},E=(V,p)=>{const z=N.value,_=M.value;if(!z||!_||!_[V])return;const ne=_[V];let oe=0;s.direction==="vertical"?oe=ne.offsetTop-(z.offsetHeight-ne.offsetHeight)/2:oe=ne.offsetLeft-(z.offsetWidth-ne.offsetWidth)/2,v(z,oe,p?0:.3,s.direction)},v=(V,p,z,_)=>{let ne=0;const oe=_==="horizontal"?V.scrollLeft:V.scrollTop,ie=z===0?1:Math.round(z*1e3/16);function he(){_==="horizontal"?V.scrollLeft+=(p-oe)/ie:V.scrollTop+=(p-oe)/ie,++ne<ie&&dl(he)}he()},j=(V,p)=>{const z=Gt(s,V),_={};return _[`${e}__titles-item`]=!0,_.disabled=jr(s,V),_.active=z===S.value,s.shape&&(_[`${s.shape}`]=!0),s.ellipsis&&(_.ellipsis=!0),p&&(p.class&&(_[`${p.class}`]=!0),p.disabled===!0&&(_.disabled=p.disabled)),_},x=(V,p)=>{const z={};if(w.value>0){const _=Math.abs(w.value/2);s.direction==="vertical"?(z["margin-top"]=`${_}px`,z["margin-bottom"]=`${_}px`):(z["margin-left"]=`${_}px`,z["margin-right"]=`${_}px`)}return p&&p.style&&Object.assign(z,p.style),z},q=(V,p)=>`${Gt(s,V)??p}`,X=(V,p)=>{const z=Gt(s,V),_={};_[`${e}__popup-item`]=!0,_.disabled=jr(s,V),_.active=z===S.value,s.shape&&(_[`${s.shape}`]=!0);const ne=Hr(s,V,p);return ne&&ne.disabled===!0&&(_.disabled=ne.disabled),_},C=t.computed(()=>(s.data??[]).filter(p=>mg(s,p)!==!1)),D=(V,p)=>{const z=Gt(s,V);if(i("click",V,p),S.value==z)return;const _=()=>{S.value=z,s.scroll&&E(p,!1),i("update:modelValue",z),i("change",V,p)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(V,p);nn(ne)?ne.then(oe=>{oe!==!1&&_()}).catch(()=>{_()}):ne!==!1&&_()}else _()},B=(V,p)=>function(){D(V,p)},P=(V,p)=>{D(V,p),u(!1)},J=(V,p)=>function(){P(V,p)},Y=V=>{if(!Array.isArray(s.data)||!s.scroll)return;Z()&&L();const p=s.data.findIndex(z=>Gt(s,z)===S.value);p!==-1&&E(p,V)},H=()=>{Z()||$()};t.watch(()=>s.data,()=>{setTimeout(Y,0)}),t.onMounted(()=>{Y(!0)}),t.onBeforeUnmount(()=>{H()});const ee=(V,p)=>{if(c.item)return c.item({item:V,index:p});const z=Hr(s,V,p),_=[];if(c.text){const he=c.text({item:V,index:p});_.push(he)}else{const he=[];if(z?.doit===!0||gg(s,V)){const We={class:[`${e}__titles-item-tip`,"doit"]},qe=t.h("view",We);he.push(qe)}const ye=z?.num??yg(s,V);if(ye){let We="";const qe=be(ye);qe>=100?We="99+":We=`${qe}`;const At={class:[`${e}__titles-item-tip`,"num"]},Pa=t.h("view",At,[We]);he.push(Pa)}const Te={class:`${e}__titles-item-text`};he.push(zr(s,V));const et=t.h("view",Te,he);_.push(et)}const ne={class:`${e}__titles-item-line`},oe=t.h("view",ne);_.push(oe);const ie={ref:k(p),class:j(V,z),style:x(V,z),key:q(V,p),onClick:B(V,p)};return t.h("view",ie,_)},U=()=>{const V=c.default?c.default():[];if(V.length===0)for(let z=0;z<C.value.length;z++){const _=C.value[z],ne=ee(_,z);V.push(ne)}const p={ref:N,class:m.value,style:d.value};return t.h("view",p,V)},K=()=>{let V=null;c.navigation?V=c.navigation():V=t.h(a);const p={class:`${e}__navigation`,onClick:g};return t.h("view",p,[V])},G=()=>{const V=[];for(let z=0;z<C.value.length;z++){const _=C.value[z];let ne=null;c.popupItem?ne=c.popupItem({item:_,index:z}):ne=zr(s,_);const oe={class:X(_,z),key:q(_,z),onClick:J(_,z)},ie=t.h("view",oe,[ne]);V.push(ie)}const p={class:T.value,style:y.value};return t.h("view",p,V)},Z=()=>s.showScrollArrow&&s.direction=="horizontal",R=t.ref(!1),te=t.ref(!1),le=V=>{const p=N.value,z=M.value;if(!(!p||!z))if(V==="left"){const _=p.scrollLeft;let ne=_;for(let oe=0;oe<z.length;oe++){const ie=z[oe].offsetLeft;if(_-ie<0)break;ne=ie}v(p,ne,.3,"horizontal")}else{const _=p.scrollLeft;let ne=_,oe=p.offsetWidth;for(let ie=z.length-1;ie>=0;ie--){const he=z[ie].offsetLeft+z[ie].offsetWidth;if(he-_<p.offsetWidth){ne+=oe-he;break}oe=he}v(p,ne,.3,"horizontal")}},Q=Ue(()=>{const V=N.value;if(!V)return;let p=V.scrollLeft>0;p!==R.value&&(R.value=p);let z=V.scrollWidth-V.scrollLeft>V.offsetWidth;z!==te.value&&(te.value=z)},50),I=V=>{Q()},L=()=>{const V=N.value;V&&(Q(),V.addEventListener("scroll",I))},$=()=>{const V=N.value;V&&V.removeEventListener("scroll",I)},W=V=>{if(V==="left"&&R.value!==!0||V==="right"&&te.value!==!0)return null;let p=null;V==="left"?c.leftArrow?p=c.leftArrow():p=t.h(n):c.rightArrow?p=c.rightArrow():p=t.h(o);const z={class:[`${e}__scroll-arrow`,V],onClick:()=>{le(V)}};return t.h("view",z,[p])};return()=>{const V=[],p=U();if(V.push(p),Z()){const _=W("left");_&&V.push(_);const ne=W("right");ne&&V.push(ne)}else if(s.showQuickNavigation){const _=K();V.push(_);const ne=G();V.push(ne)}const z={class:f.value};return t.h("view",z,V)}}}}const{create:bg,componentName:vg,scope:wg}=ue("tabs-bar"),Xt=bg(pg(vg,wg,Bc,jc,Oc,!1)),Kr=Symbol("TabsStatesKey"),ba={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Sg=15,xg=300,Cg=200;function Tg(e,l,a=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*a}function Wr(e,l=0,a,n,o=Cg){a==="end"?e.style.transition=`transform ${o}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${l}px, 0, 0)`:e.style.transform=`translate3d(0, ${l}px, 0)`}let kg=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(l,a,n,o=1){this.onStart=l,this.onMove=a,this.onEnd=n,this.momentumReduceRatio=o,this.isTouch=Wt()}open(l){this.el=l;const a=Yt(),n=(o,r,s)=>{const c={delta:o,direction:r,type:s};this.onMove(c)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=o=>{if(this.moving)return;a.start(o),this.transitionEndTrigger=()=>{l.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,l.removeEventListener("transitionend",this.transitionend),l.addEventListener("transitionend",this.transitionend),l.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),l.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&l.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=o=>{if(!this.moving)return;a.move(o);let r=0;if(this.direction==="horizontal"){if(a.isVertical())return;r=a.state.deltaX}else{if(a.isHorizontal())return;r=a.state.deltaY}n(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;l.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),l.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&l.removeEventListener("touchcancel",this.touchend);let o=0;if(this.direction==="horizontal"){if(a.isVertical()){this.moving=!1;return}o=a.state.deltaX}else{if(a.isHorizontal()){this.moving=!1;return}o=a.state.deltaY}const r=a.state.duration;r<xg&&Math.abs(o)>Sg?(o=Tg(o,r,this.momentumReduceRatio),n(o,this.direction,"end")):n(o,this.direction,"end")},l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const l=this.el;this.transitionend&&l.addEventListener("transitionend",this.transitionend),this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&l.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&l.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&l.addEventListener("touchcancel",this.touchcancel),this.el=null}};function $g(e,l,a,n=1){return new kg(e,l,a,n)}function Dg(e,l,a=!1){return{props:{...ba},emits:["update:modelValue","change"],setup(n,{emit:o,slots:r}){const s=t.shallowRef([]),c={current:t.ref(n.modelValue??""),direction:t.ref(n.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:k=>{const E={name:k};c.current.value===k&&(E.loaded=!0),s.value.push(E),t.triggerRef(s)},remove:k=>{const E=s.value.findIndex(v=>v.name===k);E!==-1&&s.value.splice(E,1)},isLoaded:k=>{if(!n.lazy)return!0;const E=s.value.findIndex(v=>v.name===k);return E!==-1?c.current.value?s.value[E].loaded??!1:E===0:!1}};t.provide(Kr,c);const i=k=>{const E=s.value.findIndex(v=>v.name===k);E!==-1&&(s.value[E].loaded=!0,t.triggerRef(s))};t.watch([()=>n.modelValue,()=>n.direction],([k,E])=>{c.current.value!==k&&(c.current.value=k??"",i(k??"")),c.direction.value!==E&&(c.direction.value=E)});const f=t.ref(null),m=t.ref(null),d=t.computed(()=>({[e]:!0,[`${n.direction}`]:!0})),w=t.computed(()=>{const k={};if(n.width){const E=Se(n.width);E&&(k.width=E)}if(n.height){const E=Se(n.height);E&&(k.height=E)}return k});let S=!0;const T=t.computed(()=>{const k={},E=s.value.length;if(E<=0)return k;const v=s.value.findIndex(j=>j.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(k.height=`${E*c.tabHeight.value}px`,v!==-1&&(k.transform=`translate(0, -${v*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(k.width=`${E*c.tabWidth.value}px`,v!==-1&&(k.transform=`translate(-${v*c.tabWidth.value}px, 0)`)),S&&(S=!1,k.transition="transform 0s ease"),k}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=k=>{const E=s.value.length,v=s.value.findIndex(j=>j.name===c.current.value);y.moved=0,k.direction==="vertical"?(y.min=-1*(c.tabHeight.value*(E-1)+c.tabHeight.value/4),y.max=c.tabHeight.value/4,y.start=-v*c.tabHeight.value,y.itemDistance=c.tabHeight.value):(y.min=-1*(c.tabWidth.value*(E-1)+c.tabWidth.value/4),y.max=c.tabWidth.value/4,y.start=-v*c.tabWidth.value,y.itemDistance=c.tabWidth.value)},A=k=>{const E=m.value;if(!E)return;let v=y.start+k.delta;if(v>y.max?v=y.max:v<y.min&&(v=y.min),k.type==="move")Wr(E,v,"move",k.direction,300);else if(k.type==="end"){let j=Math.floor(Math.abs(v)*1/y.itemDistance);const x=Math.abs(v)%y.itemDistance;y.start>v?x>=y.itemDistance*y.triggerAutoMoveRatio&&(j+=1):x>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&(j+=1),v=-1*j*y.itemDistance,Wr(E,v,"end",k.direction,300),y.moved=v;const q=s.value[j].name;c.current.value=q??"",i(q??""),o("update:modelValue",q)}},g=()=>{},u=()=>{if(!f.value)return;const k=vn(f.value);c.tabWidth.value=k.width,c.tabHeight.value=k.height},N=mo(u,250);let M=null,O=null;return t.onMounted(()=>{f.value&&(u(),window.ResizeObserver&&(O=new window.ResizeObserver(N),O.observe(f.value)),n.draggle&&(M=$g(h,A,g),M.open(m.value)))}),t.onBeforeUnmount(()=>{O&&(O.disconnect(),O=null),M&&M.close()}),()=>{const k={class:`${e}__panes`,style:T.value,ref:m},E=t.h("view",k,[r?.default?.()]),v={class:d.value,style:w.value,ref:f};return t.h("view",v,[E])}}}}const{create:Ng,componentName:Eg,scope:Ig}=ue("tabs-container"),Zt=Ng(Dg(Eg,Ig,!1)),Vg={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Og(e,l,a){return{props:{...Vg},setup(n,{emit:o,slots:r}){const s=t.inject(Kr);t.onMounted(()=>{s.add(n.paneKey)}),t.onBeforeUnmount(()=>{s.remove(n.paneKey)});const c=t.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),i=t.computed(()=>n.loaded!=null?de(n.loaded):s.isLoaded(n.paneKey));return()=>{let f=[];if(i.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const d={class:`${e}__empty-icon`},w=n.emptyIcon??a,S=t.h(w,d),T={class:`${e}__empty-text`},y=n.emptyText??"Loading",h=t.h("view",T,[y]),A={class:`${e}__empty`},g=t.h("view",A,[S,h]);f.push(g)}const m={class:`${e}`,style:c.value,prop:n.paneKey};return t.h("view",m,f)}}}}const{create:Ag,componentName:Fg,scope:Mg}=ue("tabs-pane"),Xn=Ag(Og(Fg,Mg,zn));function Bg(e,l,a,n){return{props:{...pa,...ba,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(o,{emit:r,slots:s}){const c=e,i=t.computed(()=>{const y=[`${c}`];return o.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),f=t.computed(()=>{const y={};if(o.width){const h=Se(o.width);h&&(y.width=h)}if(o.height){const h=Se(o.height);h&&(y.height=h)}return y}),m=t.computed(()=>[`${c}__bars`]),d=t.computed(()=>[`${c}__container`]),w=t.ref(o.modelValue);t.watch(()=>o.modelValue,y=>{w.value!==y&&(w.value=y)});const S=y=>{r("change",y)},T=y=>{w.value!==y&&(w.value=y,r("update:modelValue",y))};return()=>{const y=s.default?.()??[],h=[];if(Array.isArray(o.data))h.push(...o.data);else for(let E=0;E<y.length;E++){const v=y[E].props??{},j={text:v.label??"",value:v["pane-key"]??v.paneKey??""};h.push(j)}const A={};for(let E in s)E!=="default"&&(A[E]=s[E]);const g=it(o,pa);Object.assign(g,{data:h,class:m.value,modelValue:w.value,direction:o.direction,onChange:S,"onUpdate:modelValue":T});const u=t.h(a,g,A),N={default:()=>y},M=it(o,ba);Object.assign(M,{class:d.value,modelValue:w.value,onChange:S,"onUpdate:modelValue":T});const O=t.h(n,M,N),k={class:i.value,style:f.value};return t.h("view",k,[u,O])}}}}const{create:Rg,componentName:Lg,scope:Pg}=ue("tabs-frame"),va=Rg(Bg(Lg,Pg,Xt,Zt)),_g={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function qg(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Yr(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Ur(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function zg(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function wa(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function Gr(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function Xr(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function Sa(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}class jg{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[n]);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(o,null,[a,n]))}}function Hg(){const e=t.getCurrentInstance();return new jg(e.proxy)}function Kg(e,l,a,n){return{props:{..._g},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:s}){const c=e,i=Hg(),f=t.ref([]),m=t.computed(()=>f.value.filter(K=>zg(o,K)!==!1)),d=t.ref(-1),w=()=>{const K=o.modelValue,G=m.value.findIndex(Z=>Yr(o,Z)===K);d.value!==G&&(d.value=G,o.scroll&&ee(G))};t.watch([()=>o.modelValue,m],()=>{w()});const S=K=>d.value===K,T=K=>{if(K<0&&K>=m.value.length)return!1;const G=m.value[K],R=(Sa(o,G,K)??{}).status??wa(o,G);return S(K)||R},y=t.computed(()=>{const K={[c]:!0};return o.mode?K[`is-${o.mode}`]=!0:o.direction&&(K[`is-${o.direction}`]=!0),o.scroll&&(K["is-scroll"]=!0),K}),h=t.computed(()=>({})),A=(K,G,Z,R,te)=>{const le={[`${c}__step`]:!0};return te&&(le[`${te}`]=!0),le[`${g.value}`]=!0,R&&(le["is-doit"]=!0),K===d.value?le["is-active"]=!0:G==="done"?le["is-done"]=!0:G==="error"?le["is-error"]=!0:G==="half"?le["is-half"]=!0:Z?le["is-disabled"]=!0:le["is-normal"]=!0,le},g=t.computed(()=>{let K=o.align;if(!K){if(o.mode==="simple")return"start";o.direction==="vertical"?K="start":K="center"}return K}),u=(K,G={})=>{const Z={...G};if(g.value==="start"&&K===m.value.length-1)Z.flex="0 0 auto";else if(o.step){const R=typeof o.step=="number"||yl(o.step)?Se(o.step):o.step;o.direction==="vertical"?Z.height=R:Z.width=R}else Z.flex="1 1 100%";return Z},N=(K,G)=>{let Z={};if(G<m.value.length-1){const R=G+1;T(G)&&T(R)?o.direction==="vertical"?Z.height="100%":Z.width="100%":Z.opacity="0"}return Z},M=K=>m.value.length-1===K,O=(K,G)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&G>d.value||d.value===G)return;const Z=d.value,R=G;d.value=G,o.scroll&&ee(G);const te=Yr(o,K);s("update:modelValue",te);const le={fromIndex:Z,currentIndex:R,item:K,items:m.value,clickNavigatePolicy:o.clickNavigatePolicy};s("change",te,le)},k=t.ref(!0),E=async(K,G)=>{try{const Z=await i.load("stesbar",K,G);Array.isArray(Z)&&(f.value=Z),k.value=!1}catch(Z){console.error("[FoxUI] Load StepsBar Data Fail",Z),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([K,G])=>{K&&E(K,G)},{immediate:!0});const v=(K,G,Z,R,te)=>{let le=null;if(r.icon)le=r.icon({item:K,index:G,status:R});else if(R==="done"){const I={};o.iconSize&&(I.width=o.iconSize,I.height=o.iconSize);const L=o.icon??a;le=t.h(L,I)}else{const I=Z??`${G+1}`;le=t.h("span",{},[I])}const Q={class:"fox-steps-bar__icon",onClick:()=>{te||O(K,G)}};return t.h("view",Q,[le])},j=(K,G,Z)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:N(K,G)});return t.h("view",{class:"fox-steps-bar__line"},[R])},x=()=>{let K=null;if(r.markIcon)K=r.markIcon();else{const Z={};o.iconSize&&(Z.width=o.markIconSize,Z.height=o.markIconSize);const R=o.markIcon??n;K=t.h(R,Z)}return t.h("view",{class:"fox-steps-bar__mark"},[K])},q=(K,G,Z,R,te)=>{const le=[];if(!M(G)){const L=j(K,G);le.push(L)}const Q=v(K,G,Z,R,te);le.push(Q);const I={class:"fox-steps-bar__head"};return t.h("view",I,le)},X=(K,G,Z,R)=>{let te=null;r.main?te=r.main({item:K,index:G,status:Z}):te=qg(o,K);const le={class:"fox-steps-bar__main",onClick:()=>{R||O(K,G)}};return t.h("view",le,[te])},C=(K,G,Z)=>{let R=null;if(r.sub){R=r.sub({item:K,index:G,status:Z});const te={class:"fox-steps-bar__sub"};return t.h("view",te,[R])}return null},D=(K,G)=>{const Z=Sa(o,K,G)??{},R=Z.status??wa(o,K);let te=Ur(o,K);Z.disabled===!0&&(te=!0),o.disabled===!0&&(te=!0);const le=Z.label??Xr(o,K),Q=[],I=v(K,G,le,R,te);I&&Q.push(I);const L=X(K,G,R,te);if(L&&Q.push(L),!M(G)){const _=j(K,G);_&&Q.push(_)}const $=t.h("view",{class:"fox-steps-bar__head"},Q),W=Z.class,V=Z.style??{};let p=Gr(o,K);Z.doit===!0&&(p=!0);const z={ref:H(G),class:A(G,R,te,p,W),style:u(G,V)};return t.h("view",z,[$])},B=(K,G)=>{const Z=Sa(o,K,G)??{},R=Z.status??wa(o,K);let te=Ur(o,K);Z.disabled===!0&&(te=!0),o.disabled===!0&&(te=!0);const le=Z.label??Xr(o,K),Q=[],I=o.layout;for(let p of I)if(p==="head"){const z=q(K,G,le,R,te);Q.push(z)}else if(p==="main"){const z=X(K,G,R,te);Q.push(z)}else if(p==="sub"){const z=C(K,G,R);Q.push(z)}else if(p==="mark"){const z=x();Q.push(z)}const L=Z.class,$=Z.style??{};let W=Gr(o,K);Z.doit===!0&&(W=!0);const V={ref:H(G),class:A(G,R,te,W,L),style:u(G,$)};return t.h("view",V,Q)},P=t.ref(),J=t.ref([]),Y=(K,G)=>{J.value[G]=K},H=K=>G=>{Y(G,K)},ee=(K,G)=>{const Z=P.value,R=J.value;if(!Z||!R||!R[K])return;const te=R[K];let le=0;o.direction==="vertical"?le=te.offsetTop-(Z.offsetHeight-te.offsetHeight)/2:le=te.offsetLeft-(Z.offsetWidth-te.offsetWidth)/2,U(Z,le,.3,o.direction)},U=(K,G,Z,R)=>{let te=0;const le=R==="horizontal"?K.scrollLeft:K.scrollTop,Q=Math.round(Z*1e3/16);function I(){R==="horizontal"?K.scrollLeft+=(G-le)/Q:K.scrollTop+=(G-le)/Q,++te<Q&&dl(I)}I()};return()=>{let K=[];if(o.mode==="simple")for(let Z=0;Z<m.value.length;Z++){const R=m.value[Z],te=D(R,Z);K.push(te)}else for(let Z=0;Z<m.value.length;Z++){const R=m.value[Z],te=B(R,Z);K.push(te)}const G={ref:P,class:y.value,style:h.value};return K.length===0&&typeof r.default=="function"&&(K=r.default()),t.h("view",G,K)}}}}const{componentName:Wg,create:Yg,scope:Ug}=ue("steps-bar"),xa=Yg(Kg(Wg,Ug,Jo,sf)),He=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,St=e=>e==null;let Gg=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,a){this.startMove=l,this.updateMove=a,this.isTouch=Wt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const a=Yt(),n=(o,r,s,c)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),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=o=>{this.moving&&(a.move(o),n(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{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},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(l=>{this.touchstart&&l.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Zr(e,l){return new Gg(e,l)}const Qr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Ot=[];const Jr=e=>{const l=e;l.key==="Escape"&&Ot.forEach(a=>a(l))},Xg=e=>{t.onMounted(()=>{Ot.length===0&&document.addEventListener("keydown",Jr),Qr&&Ot.push(e)}),t.onBeforeUnmount(()=>{Ot=Ot.filter(l=>l!==e),Ot.length===0&&Qr&&document.removeEventListener("keydown",Jr)})},Ca="fox-focus-trap.focus-after-trapped",Ta="fox-focus-trap.focus-after-released",Zg="fox-focus-trap.focusout-prevented",ei={cancelable:!0,bubbles:!1},Qg={cancelable:!0,bubbles:!1},ti="foxFocusAfterTrapped",ni="foxFocusAfterReleased",Jg=Symbol("foxFocusTrap"),ka=t.ref(),Zn=t.ref(0),$a=t.ref(0);let Qn=0;const li=e=>{const l=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)l.push(a.currentNode);return l},ey=(e,l)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(l&&e===l)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ai=(e,l)=>{for(const a of e)if(!ey(a,l))return a},ty=e=>{const l=li(e),a=ai(l,e),n=ai(l.reverse(),e);return[a,n]},ny=e=>e instanceof HTMLInputElement&&"select"in e,gt=(e,l)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),$a.value=window.performance.now(),e!==a&&ny(e)&&l&&e.select()}};function oi(e,l){const a=[...e],n=e.indexOf(l);return n!==-1&&a.splice(n,1),a}const ly=()=>{let e=[];return{push:n=>{const o=e[0];o&&n!==o&&o.pause(),e=oi(e,n),e.unshift(n)},remove:n=>{e=oi(e,n),e[0]?.resume?.()}}},ay=(e,l=!1)=>{const a=document.activeElement;for(const n of e)if(gt(n,l),document.activeElement!==a)return},ri=ly(),oy=()=>Zn.value>$a.value,Jn=()=>{ka.value="pointer",Zn.value=window.performance.now()},ii=()=>{ka.value="keyboard",Zn.value=window.performance.now()},ry=()=>(t.onMounted(()=>{Qn===0&&(document.addEventListener("mousedown",Jn),document.addEventListener("touchstart",Jn),document.addEventListener("keydown",ii)),Qn++}),t.onBeforeUnmount(()=>{Qn--,Qn<=0&&(document.removeEventListener("mousedown",Jn),document.removeEventListener("touchstart",Jn),document.removeEventListener("keydown",ii))}),{focusReason:ka,lastUserFocusTimestamp:Zn,lastAutomatedFocusTimestamp:$a}),el=e=>new CustomEvent(Zg,{...Qg,detail:e}),{create:iy}=ue("focus-trap"),sy=iy({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:[ti,ni,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:a}){const n=t.ref();let o,r;const{focusReason:s}=ry();Xg(y=>{de(e.trapped)&&!c.paused&&a("release-requested",y)});const c={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=y=>{if(!e.loop&&!de(e.trapped)||c.paused)return;const{key:h,altKey:A,ctrlKey:g,metaKey:u,currentTarget:N,shiftKey:M}=y,{loop:O}=e,k=h==="Tab"&&!A&&!g&&!u,E=document.activeElement;if(k&&E){const v=N,[j,x]=ty(v);if(j&&x){if(!M&&E===x){const X=el({focusReason:s.value});a("focusout-prevented",X),X.defaultPrevented||(y.preventDefault(),O&&gt(j,!0))}else if(M&&[j,v].includes(E)){const X=el({focusReason:s.value});a("focusout-prevented",X),X.defaultPrevented||(y.preventDefault(),O&&gt(x,!0))}}else if(E===v){const X=el({focusReason:s.value});a("focusout-prevented",X),X.defaultPrevented||y.preventDefault()}}};t.provide(Jg,{focusTrapRef:n,onKeydown:i}),t.watch(()=>e.focusTrapEl,y=>{y&&(n.value=y)},{immediate:!0}),t.watch([n],([y],[h])=>{y&&(y.addEventListener("keydown",i),y.addEventListener("focusin",d),y.addEventListener("focusout",w)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",d),h.removeEventListener("focusout",w))});const f=y=>{a(ti,y)},m=y=>a(ni,y),d=y=>{const h=t.unref(n);if(!h)return;const A=y.target,g=y.relatedTarget,u=A&&h.contains(A);de(e.trapped)||g&&h.contains(g)||(o=g),u&&a("focusin",y),!c.paused&&de(e.trapped)&&(u?r=A:gt(r,!0))},w=y=>{const h=t.unref(n);if(!(c.paused||!h))if(!e.escape&&de(e.trapped)){const A=y.relatedTarget;!Ye(A)&&!h.contains(A)&&setTimeout(()=>{if(!c.paused&&de(e.trapped)){const g=el({focusReason:s.value});a("focusout-prevented",g),g.defaultPrevented||gt(r,!0)}},0)}else{const A=y.target;A&&h.contains(A)||a("focusout",y)}};async function S(){await t.nextTick();const y=t.unref(n);if(y){ri.push(c);const h=y.contains(document.activeElement)?o:document.activeElement;if(o=h,!y.contains(h)){const g=new Event(Ca,ei);y.addEventListener(Ca,f),y.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let u=e.focusStartEl;Za(u)||(gt(u),document.activeElement!==u&&(u="first")),u==="first"&&ay(li(y),!0),(document.activeElement===h||u==="container")&&gt(y)})}}}function T(){const y=t.unref(n);if(y){y.removeEventListener(Ca,f);const h=new CustomEvent(Ta,{...ei,detail:{focusReason:s.value}});y.addEventListener(Ta,m),y.dispatchEvent(h),!h.defaultPrevented&&(s.value=="keyboard"||!oy())&&gt(o??document.body,!0),y.removeEventListener(Ta,f),ri.remove(c)}}return t.onMounted(()=>{de(e.trapped)&&S(),t.watch(()=>e.trapped,y=>{de(y)?S():T()})}),t.onBeforeUnmount(()=>{de(e.trapped)&&T()}),()=>typeof l.default=="function"?l.default({"handle-keydown":i}):null}}),{componentName:uy,create:cy}=ue("floating-window"),fy=Symbol.for("InnerPageScopeKey"),dy=Symbol.for("PageWrapperKey"),hy={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},my=cy({inheritAttrs:!1,components:{FoxIcon:F.ElIcon,FocusTrap:sy},props:{...hy},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const a=uy,n=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,p=>{n.value=p});const r=t.computed(()=>n.value===!1?!1:!E.value),s=t.ref(e.left),c=t.ref(e.top),i=t.ref(e.right),f=t.ref(e.bottom),m=t.computed(()=>{const p=["fox-floating-window"];return e.customClass&&p.push(e.customClass),p}),d=t.computed(()=>{const p={};return St(s.value)?p.left="auto":p.left=He(s.value),St(c.value)?p.top="auto":p.top=He(c.value),St(i.value)?p.right="auto":p.right=He(i.value),St(f.value)?p.bottom="auto":p.bottom=He(f.value),St(e.zIndex)||(p["z-index"]=He(e.zIndex)),St(O.value)||(p.height=O.value),St(k.value)||(p.width=k.value),p}),w=t.computed(()=>e.closeIcon??Ie.Close),S=t.computed(()=>e.collapseIcon??Ie.ArrowUp),T=t.computed(()=>e.collapseText??""),y=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=t.computed(()=>e.expandText??e.title??"展开"),A=t.computed(()=>({[`${a}__collapse-text`]:!0})),g=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!E.value,"is-collapse":E.value})),u=t.ref(),N=t.ref(null),M=t.ref(null),O=t.computed(()=>He(e.height)||""),k=t.computed(()=>He(e.width)||""),E=t.ref(de(e.collapse)),v=(p,z=!0)=>{E.value!==p&&(E.value=p,p?K():G(),l("update:collapse",p),p&&typeof q.onHide=="function"?q.onHide():!p&&typeof q.onShow=="function"&&q.onShow())};t.watch(()=>e.collapse,p=>{v(p)});const j=()=>{x()},x=p=>{p=p??!E.value,v(p)};t.provide(fy,!0);const q={setCollapse:v,setFixedNavVisible:p=>{H.value=p}};t.provide(dy,q);const X=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},C=t.ref(null),D=t.computed(()=>!e.fixedNavTeleport),B=t.computed(()=>{const p=["fox-floating-window__fixednav"];return e.expandClass&&p.push(e.expandClass),e.collapsePosition==="left"?p.push("is-left"):e.collapsePosition==="right"&&p.push("is-right"),p}),P=t.ref(""),J=t.computed(()=>{const p={};return P.value?p.top=P.value:e.collapseTop&&(p.top=e.collapseTop),p}),Y=t.ref(E.value),H=t.computed({set:p=>{Y.value=p},get:()=>n.value===!1?!1:Y.value});let ee=null;const U=()=>{typeof ee=="function"&&(ee(),ee=null)},K=()=>{C.value&&C.value.classList.add("slide-in"),H.value=!0,ee=()=>{C.value&&C.value.classList.remove("slide-in")}},G=()=>{C.value&&C.value.classList.add("slide-out"),ee=()=>{C.value&&C.value.classList.remove("slide-out"),H.value=!1}},Z=()=>{s.value=null,c.value=null,i.value=null,f.value=null},R={x:0,y:0},Q=Zr(p=>{if(!u.value)return;const z=u.value;if(Z(),e.origin==="left-top")s.value=z.offsetLeft,c.value=z.offsetTop,R.x=s.value,R.y=c.value;else if(e.origin==="left-bottom"){const _=document.documentElement.clientHeight||document.body.clientHeight;s.value=z.offsetLeft,f.value=_-(z.offsetTop+z.offsetHeight),R.x=s.value,R.y=f.value}else if(e.origin==="right-bottom"){const _=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;i.value=_-(z.offsetLeft+z.offsetWidth),f.value=ne-(z.offsetTop+z.offsetHeight),R.x=i.value,R.y=f.value}else{const _=document.documentElement.clientWidth||document.body.clientWidth;i.value=_-(z.offsetLeft+z.offsetWidth),c.value=z.offsetTop,R.x=i.value,R.y=c.value}},p=>{if(!u.value)return;const z=u.value;Z(),e.origin==="left-top"?(s.value=R.x+p.x,c.value=R.y+p.y,z.style.left=He(s.value),z.style.top=He(c.value)):e.origin==="left-bottom"?(s.value=R.x+p.x,f.value=R.y-p.y,z.style.left=He(s.value),z.style.bottom=He(f.value)):e.origin==="right-bottom"?(i.value=R.x-p.x,f.value=R.y-p.y,z.style.right=He(i.value),z.style.bottom=He(f.value)):(i.value=R.x-p.x,c.value=R.y+p.y,z.style.right=He(i.value),z.style.top=He(c.value))}),I={x:0,y:0},W=Zr(p=>{C.value&&(I.x=C.value.offsetLeft,I.y=C.value.offsetTop)},p=>{if(!C.value)return;const z=I.y+p.y;P.value=`${z}px`}),V=()=>{if(u.value){const p=u.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=p}};return t.onMounted(()=>{if(e.draggable&&u.value){const p=[];N.value&&p.push(N.value),e.footerDraggable&&(V(),M.value&&p.push(M.value)),Q.open(p)}e.collapse===!0&&v(e.collapse,!1),C.value&&W.open(C.value)}),t.onBeforeUnmount(()=>{e.draggable&&N.value&&Q.close(),C.value&&W.close()}),{classes:m,styles:d,isShow:r,closeIcon:w,onClose:X,dialogRef:u,headerRef:N,onClickToggle:j,collapseIcon:S,collapseText:T,collapseTextClasses:A,collapseIconClasses:g,expandIcon:y,expandText:h,isShowFixedNav:H,fixedNavRef:C,fixedNavClasses:B,fixedNavStyles:J,onAnimationEnd:U,teleportDisabled:o,fixedNavTeleportDisabled:D}}}),gy={ref:"headerRef",class:"fox-floating-window__header"},yy={class:"fox-floating-window__title"},py={class:"fox-floating-window__tools"},by={class:"fox-floating-window__body"},vy={class:"fox-floating-window__fixednav__text"};function wy(e,l,a,n,o,r){const s=t.resolveComponent("FoxIcon"),c=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(c,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",gy,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",yy,t.toDisplayString(e.title),1),t.createElementVNode("div",py,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:l[0]||(l[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[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",by,[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:l[2]||(l[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:l[1]||(l[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[t.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",vy,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Da=Le(my,[["render",wy]]),si=new Date().getFullYear(),Sy={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"},ui=(e,l,a)=>{let n;if(ct(l)?n=l:typeof l=="string"&&lt(l)>0?n=se.parser(l,a):n=new Date,n.toString()==="Invalid Date")return null;let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},xy=(e,l,a)=>{ct(l)||(l=e.minDate);let n=Math.max(l.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),se.format(new Date(n),a)},Cy={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},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(si-10,0,1),validator:ct},maxDate:{type:Date,default:()=>new Date(si+10,11,31),validator:ct},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Ty,scope:ky}=ue("date-picker"),$y=Ty({components:{Picker:Ut},props:{...Cy},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:l}){const{t:a}=xe.useFoxI18n(ky),n={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},o=t.ref(!1);t.watch(()=>e.visible,u=>{o.value=u});function r(u,N){return new Date(u,N,0).getDate()}const s=(u,N)=>{const M=e[`${u}Date`],O=M.getFullYear();let k=1,E=1,v=0,j=0;u==="max"&&(k=12,E=r(N.getFullYear(),N.getMonth()+1),v=23,j=59);const x=j;return N.getFullYear()===O&&(k=M.getMonth()+1,N.getMonth()+1===k&&(E=M.getDate(),N.getDate()===E&&(v=M.getHours(),N.getHours()===v&&(j=M.getMinutes())))),{[`${u}Year`]:O,[`${u}Month`]:k,[`${u}Date`]:E,[`${u}Hour`]:v,[`${u}Minute`]:j,[`${u}Seconds`]:x}},c=t.computed(()=>{if(!w.value)return[];const{maxYear:u,maxDate:N,maxMonth:M,maxHour:O,maxMinute:k,maxSeconds:E}=s("max",w.value),{minYear:v,minDate:j,minMonth:x,minHour:q,minMinute:X,minSeconds:C}=s("min",w.value);let D=[{type:"year",range:[v,u]},{type:"month",range:[x,M]},{type:"day",range:[j,N]},{type:"hour",range:[q,O]},{type:"minute",range:[X,k]},{type:"seconds",range:[C,E]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),i=(u,N,M,O,k)=>{const E=[];for(;u<=N;){let v=!0;if(typeof e.itemFilter=="function"){const j={text:`${u}`,value:u,type:M,currentYearMonth:O};v=e.itemFilter(j)}if(v)if(typeof e.itemFormatter=="function"){const j={text:`${u}`,value:u,type:M,currentYearMonth:O};e.itemFormatter(j),E.push({text:j.text,value:j.value})}else if(e.isShowChinese){let j=`${u}${n[M]}`;if(M==="day"){if(O[0]===k[0]&&O[1]===k[1]&&u===k[2])j=n.today;else{const q=new Date(O[0],O[1],u).getDay();j=`${j} ${n.fullWeekdays[q]}`}E.push({text:j,value:u})}else E.push({text:u+n[M],value:u})}else E.push({text:`${u}`,value:u});M==="minute"?u+=e.minuteStep:u++}return E},f=t.computed(()=>{const u=new Date,N=[u.getFullYear(),u.getMonth(),u.getDate()],M=[];w.value&&(M[0]=w.value.getFullYear(),M[1]=w.value.getMonth());let O=[];return c.value.forEach(k=>{let E=i(k.range[0],k.range[1],k.type,M,N);E&&O.push(E)}),O}),m=(u,N)=>u==="year"?N.getFullYear():u==="month"?N.getMonth()+1:u==="day"?N.getDate():u==="hour"?N.getHours():u==="minute"?N.getMinutes():u==="seconds"?N.getSeconds():0,d=t.ref(),w=t.ref(null);t.watch(()=>e.modelValue,u=>{let N;if(typeof u=="string"?u.length==0||u==="Invalid Date"?N=new Date:e.valueFormat?N=ui(e,e.modelValue,e.valueFormat):N=ui(e,u,Sy[e.type]):ct(u)?N=u:N=new Date,!!N&&(!w.value||N.getTime()!==w.value.getTime())){w.value=N;let M=[];c.value.forEach(O=>{let k=m(O.type,N);M.push(k)}),d.value=M}},{immediate:!0});const S=u=>{if(!u||u.length===0){w.value=new Date;let N=[];c.value.forEach(M=>{let O=m(M.type,w.value);N.push(O)}),d.value=N;return}if(e.type==="date"){const N=u[0],M=u[1]-1,O=Math.min(u[2],r(N,M+1));O!==u[2]&&(u[2]=O),w.value=new Date(N,M,O)}else if(e.type==="datetime"){const N=u[0],M=u[1]-1,O=Math.min(u[2],r(N,M+1)),k=u[3],E=u[4];O!==u[2]&&(u[2]=O),w.value=new Date(N,M,O,k,E)}else if(e.type==="time"){const N=u[0],M=u[1],O=u[2],k=w.value??new Date,E=new Date(k.getFullYear(),k.getMonth(),k.getDate(),N,M,O);w.value=E}else if(e.type==="year-month"){const N=u[0],M=u[1]-1;w.value=new Date(N,M)}else if(e.type==="month-day"){const M=(w.value??new Date).getFullYear(),O=u[0]-1,k=Math.min(u[1],r(M,O+1));k!==u[1]&&(u[1]=k);const E=new Date(M,O,k);w.value=E}else if(e.type==="datehour"){const N=u[0],M=u[1]-1,O=Math.min(u[2],r(N,M+1)),k=u[3];O!==u[2]&&(u[2]=O),w.value=new Date(N,M,O,k)}else if(e.type==="hour-minute"){const N=u[0],M=u[1],O=w.value??new Date,k=new Date(O.getFullYear(),O.getMonth(),O.getDate(),N,M);w.value=k}d.value=u};return{columns:f,dateIndexs:d,show:o,onChange:u=>{S(u)},onClose:()=>{l("update:close",!1)},onConfirm:u=>{S(u);const N=w.value??new Date;if(e.valueFormat){let M=xy(e,N,e.valueFormat);l("update:modelValue",M)}else l("update:modelValue",N);l("confirm",u)},onClear:()=>{l("clear")},onUpdateVisible:u=>{o.value=u,l("update:visible",u)}}}});function Dy(e,l,a,n,o,r){const s=t.resolveComponent("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,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"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","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Na=Le($y,[["render",Dy]]),tl=(e,l,a)=>e.map(n=>{const{value:o="value",text:r="text",children:s="children"}=a??{},{[o]:c,[r]:i,[s]:f,...m}=n,d={loading:!1,...m,level:l?(l&&l.level||0)+1:0,value:c,text:i,children:f,_parent:l};return d.children&&d.children.length&&(d.children=tl(d.children,d,a)),d}),ci=(e,l)=>{let a=0,n;for(;(n=e[a++])&&l(n)!==!0;)n.children&&n.children.length&&ci(n.children,l)},Ny={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ey=(e,l)=>{const a={...Ny,...l||{}},{topId:n,idKey:o,pidKey:r,sortKey:s}=a;let c=[],i={};return e.forEach(f=>{f={...f};const{[o]:m,[r]:d}=f,w=i[d]=i[d]||[];!c.length&&d===n&&(c=w),w.push(f),f.children=i[m]||(i[m]=[])}),s&&Object.keys(i).forEach(f=>{i[f].length>1&&i[f].sort((m,d)=>m[s]-d[s])}),i=null,c};class fi{nodes;config;constructor(l,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=tl(l,null,this.config)}updateChildren(l,a){a?a.children=tl(l,a,this.config):this.nodes=tl(l,null,this.config)}getNodeByValue(l){let a;return ci(this.nodes,n=>{if(n.value===l)return a=n,!0}),a}getPathNodesByValue(l){if(!l.length)return[];const a=[];let n=this.nodes;for(;n&&n.length;){const o=n.find(r=>r.value===l[r.level]);if(!o)break;a.push(o),n=o.children}return a}isLeaf(l,a){const{leaf:n,children:o}=l,r=Array.isArray(o)&&!!o.length;return n||!r&&!a}hasChildren(l,a){if(this.isLeaf(l,a))return!1;const{children:o}=l;return Array.isArray(o)&&!!o.length}}const{create:Iy,scope:Vy}=ue("cascader-pane"),Oy=Iy({components:{Loading:zn,Checklist:Jo,TabsBar:Xt,TabsContainer:Zt,TabsPane:Xn},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:l}){const{t:a}=xe.useFoxI18n(Vy),n=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),c=t.ref(new fi([],{})),i=t.ref([]),f=t.computed(()=>n.value.lazy&&!!n.value.lazyLoad),m=t.computed(()=>r.value==!0||i.value.length==0?[{text:"Loading",value:0}]:i.value.map((g,u)=>({text:g.selectedNode?g.selectedNode.text:a("select"),value:u}))),d=new Map;let w;const S=async()=>{d.clear(),i.value=[],o.value=0,r.value=!1,w=null;let{options:g}=e;n.value.convertConfig&&(g=Ey(g,n.value.convertConfig)),c.value=new fi(g,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),f.value&&!c.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:c.value.nodes,selectedNode:null}],T()},T=async()=>{const g=s.value;if(g===void 0||!c.value.nodes.length)return;if(g.length===0){o.value=0,i.value=[{nodes:c.value.nodes,selectedNode:null}];return}let u=g;if(f.value&&Array.isArray(g)&&g.length){u=[];let N=c.value.nodes.find(M=>M.value===g[0]);if(N){u=[N.value],r.value=!0;const M=await g.slice(1).reduce(async(O,k)=>{const E=await O;await y(E);const v=E?.children?.find(j=>j.value===k);return v&&u.push(k),Promise.resolve(v)},Promise.resolve(N));await y(M),r.value=!1}}u.length&&g===e.modelValue&&c.value.getPathNodesByValue(u).map((M,O)=>{o.value=O,A.handleNode(M,!0)})},y=async g=>{if(!g)return;if(!n.value.lazyLoad){g.leaf=!0;return}if(c.value.isLeaf(g,f.value)||c.value.hasChildren(g,f.value))return;g.loading=!0;const u=g.root?null:g;let N=d.get(g);N||(N=new Promise(O=>{n.value.lazyLoad?.(g,O)}),d.set(g,N));const M=await N;Array.isArray(M)&&M.length>0?c.value.updateChildren(M,u):g.leaf=!0,g.loading=!1,d.delete(g)},h=g=>{const u=g.map(N=>N.value);s.value=u,l("change",u,g),l("update:modelValue",u,g)},A={async handleNode(g,u){const{disabled:N,loading:M}=g;if(!(!u&&N||!i.value[o.value])){if(c.value.isLeaf(g,f.value)){if(g.leaf=!0,i.value[o.value].selectedNode=g,i.value=i.value.slice(0,g.level+1),!u){const O=i.value.map(k=>k.selectedNode);h(O),l("pathChange",O)}return}if(c.value.hasChildren(g,f.value)){const O=g.level+1;if(i.value[o.value].selectedNode=g,i.value=i.value.slice(0,O),i.value.push({nodes:g.children||[],selectedNode:null}),o.value=O,!u){const k=i.value.map(E=>E.selectedNode);l("pathChange",k)}return}w=g,!M&&(await y(g),w===g&&(i.value[o.value].selectedNode=g,A.handleNode(g,u)))}},handleTabChange(g,u){w=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:a("select")},isSelected(g,u){return g.selectedNode&&g.selectedNode.value===u.value}};return t.watch([n,()=>e.options],()=>{S()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==s.value&&(s.value=g,T())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(s.value)&&s.value.length>0&&T()}),{panes:i,panesTitles:m,initLoading:r,tabsCursor:o,...A}}}),Ay={class:"fox-cascader"},Fy={role:"menu",class:"fox-cascader__pane"},My=["aria-checked","aria-disabled","onClick"],By={class:"fox-cascader__item__title"};function Ry(e,l,a,n,o,r){const s=t.resolveComponent("TabsBar"),c=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Ay,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[0]||(l[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(m,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[1]||(l[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,w)=>(t.openBlock(),t.createBlock(f,{"pane-key":w,key:w},{default:t.withCtx(()=>[t.createElementVNode("view",Fy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:T=>e.handleNode(S,!1)},[t.createElementVNode("view",By,t.toDisplayString(S.text),1),S.loading?(t.openBlock(),t.createBlock(c,{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,My))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>[...l[2]||(l[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}const Ly=Le(Oy,[["render",Ry]]),{create:Py}=ue("cascader-picker"),_y=Py({components:{FoxCascaderPane:Ly,FoxPopup:bt},props:{...Hl,modelValue:Array,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:l}){const a=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){l("update:visible",s)}}),o=(s,c)=>{a.value=s,n.value=!1,l("change",s,c),l("update:modelValue",s)},r=s=>{l("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:n}}}),qy=["innerHTML"];function zy(e,l,a,n,o,r){const s=t.resolveComponent("FoxCascaderPane"),c=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(c,{key:0,visible:e.innerVisible,"onUpdate:visible":l[0]||(l[0]=i=>e.innerVisible=i),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,qy)):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"])]),_:3},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 Ea=Le(_y,[["render",zy]]),jy=Symbol.for("PageWrapperKey");function Hy(e,l){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(a,n){Cl(!0);const o={};t.provide(jy,o);const r=f=>{typeof o.beforeClose=="function"&&o.beforeClose()},s=t.ref(!0),c=f=>{s.value=f},i=t.computed(()=>{const f={};return a.height&&(f["--fox-dialog-item-body-height"]=Se(a.height)),f});return()=>{const m={...n.attrs,style:i.value,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":c,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},d=["fox-dialog-item "];a.hideHeader&&d.push("hide-header"),a.class&&d.push(a.class),m.class=d.join(" ");const w={};return typeof n.slots.default=="function"&&(w.default=n.slots.default),t.h(F.ElDialog,m,w)}}}}const{create:Ky}=ue("dialog-item"),Ia=Ky(Hy()),{create:Wy}=ue("toast"),Yy=Wy({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:l}){let a=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{n.mounted=!1},s=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},c=()=>{e.closeOnClickOverlay&&(r(),l("close"))};e.duration&&s(),t.watch(()=>e.duration,S=>{S&&s()});const i=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const S=ve(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:c,renderIcon:f,hasIcon:i,toastBodyClass:m,toastIconWrapperClass:d,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Uy={key:1,class:"fox-toast-title"},Gy=["innerHTML"];function Xy(e,l,a,n,o,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:l[0]||(l[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",Uy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Gy)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Va=Le(Yy,[["render",Xy]]),Zy={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Qy=(e,l,a)=>({props:{...Zy},emits:["change","refresh","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["pullingText","loosingText","loadingText"]),i=Yt(),f=t.ref(),m=Er(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":c.pullingText.value;case"loosing":return r.loosing?"":c.loosingText.value;case"loading":return r.loading?"":c.loadingText.value;default:return""}}),T=t.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),y=t.computed(()=>{const k={};return n.headHeight!=50&&(k.height=Se(n.headHeight)),k}),h=k=>{const E=+(n.pullDistance||n.headHeight);let v=k;return k>E&&(k<E*2?v=(k+E)/2:v=E+k/4),Math.round(v)},A=(k,E)=>{const v=+(n.pullDistance||n.headHeight);d.distance=k,E?d.status="loading":k===0?d.status="normal":k<v?d.status="pulling":d.status="loosing",o("change",{status:d.status,distance:k})},g=()=>d.status!=="loading"&&d.status!=="complete",u=()=>m.value==window?Ir()==0:m.value&&m.value.scrollTop==0,N=k=>{g()&&(u()?(i.start(k),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=k=>{g()&&d.moving&&(i.move(k),i.isVertical()&&i.state.deltaY>0&&d.isPullRefresh&&(k.cancelable&&k.preventDefault(),A(h(i.state.deltaY))))},O=()=>{d.moving=!1,d.isPullRefresh&&g()&&i.state.deltaY&&(d.status==="loosing"?(A(+n.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):A(0)),setTimeout(()=>{i.reset()},0)};return t.watch(()=>n.modelValue,k=>{k?A(+n.headHeight,!0):A(0)}),()=>{const k=[];let E=null;if(d.status==="loading"){if(E=r?.loading?.()??null,!E){const B={class:["fox-pull-refresh-container-topbox-icon"]};E=t.h(a,B)}}else d.status==="pulling"?E=r?.pulling?.()??null:d.status==="loosing"&&(E=r?.loosing?.()??null);E&&k.push(E);const v={class:["fox-pull-refresh-container-topbox-text"]},j=t.h("dive",v,[S.value]);k.push(j);const x={class:["fox-pull-refresh-container-topbox"],style:y.value},q=t.h("div",x,k),X={class:"fox-pull-refresh-container",style:T.value},C=t.h("div",X,[q,r?.default?.()]),D={ref:f,class:w.value};return Wt()?Object.assign(D,{onTouchstart:N,onTouchmove:M,onTouchend:O}):Object.assign(D,{onMousedown:N,onMousemove:M,onMouseup:O}),t.h("div",D,[C])}}}),{componentName:Jy,create:ep,scope:tp}=ue("pull-refresh"),Oa=ep(Qy(Jy,tp,zn)),np={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function lp(e,l,a){return{props:{...np},emits:["click","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["collapseText","expandText"]),i=t.computed(()=>{const T={[`${e}`]:!0};return n.disabled?T[`${e}--disabled`]=!0:T[`${e}--${n.type}`]=!0,T}),f=pe(n,"modelValue"),m=t.computed(()=>f.value?c.expandText.value??"":c.collapseText.value??""),d=t.computed(()=>({[`${e}__text`]:!0})),w=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),S=()=>{o("update:modelValue",!f.value)};return()=>{const T=[];if(m.value){const g={class:d.value},u=t.h("span",g,[m.value]);T.push(u)}const y={class:w.value},h=(r.icon&&r.icon())??(n.icon&&t.h(n.icon))??t.h(a);if(h){const g=t.h("div",y,[h]);T.push(g)}return n.textPosition==="right"&&T.reverse(),t.h("div",{class:i.value,onClick:S},T)}}}}const{componentName:ap,create:op,scope:rp}=ue("more-button"),Aa=op(lp(ap,rp,Ie.ArrowUp));function ip(e){e.stopPropagation()}class sp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,a){this.startMove=l,this.updateMove=a,this.isTouch=Wt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const a=Yt(),n=(o,r,s,c)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),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=o=>{this.moving&&(a.move(o),ip(o),n(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{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},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(l=>{this.touchstart&&l.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function up(e,l){return new sp(e,l)}const cp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},fp=(e,l,a,n=!1)=>({props:{...cp},emits:["click"],setup(o,{slots:r,emit:s}){const c=t.reactive({top:o.top,right:o.right,bottom:o.bottom,left:o.left}),i=t.computed(()=>{const g=[`${e}`];return o.customClass&&g.push(o.customClass),g}),f=t.computed(()=>{const g={};return ge(c.top)||(g.top=c.top),ge(c.right)||(g.right=c.right),ge(c.bottom)||(g.bottom=c.bottom),ge(c.left)||(g.left=c.left),ge(o.width)||(g.width=o.width),ge(o.height)||(g.height=o.height),ge(o.color)||(g.color=o.color),ge(o.background)||(g.background=o.background),ge(o.borderRadius)||(g["border-radius"]=o.borderRadius),ge(o.zIndex)||(g["z-index"]=o.zIndex),g}),m=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},w=t.ref(null),S=()=>{c.top=null,c.right=null,c.bottom=null,c.left=null},T={x:0,y:0},A=up(g=>{if(!w.value)return;const u=w.value;S(),c.left=u.offsetLeft,c.top=u.offsetTop,u.style.left=`${c.left}px`,u.style.top=`${c.top}px`,u.style.right=null,u.style.bottom=null,T.x=c.left,T.y=c.top},g=>{if(!w.value)return;const u=w.value;S(),c.left=T.x+g.x,c.top=T.y+g.y,u.style.left=`${c.left}px`,u.style.top=`${c.top}px`});return t.onMounted(()=>{if(o.draggable&&w.value){const g=[w.value];A.open(g)}}),t.onBeforeUnmount(()=>{o.draggable&&w.value&&A.close()}),()=>{let g=[];const u=typeof r.default=="function"?r.default():[];if(u&&u.length>0)g=u;else{const M=t.h(a,{class:m.value});g.push(M)}const N={ref:M=>{w.value=M},class:i.value,style:f.value,onClick:d};return t.h("view",N,g)}}}),{componentName:dp,create:hp,scope:mp}=ue("floating-button"),Fa=hp(fp(dp,mp,Tc,!1));function gp(e,l){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:n}){const o=e,r=t.computed(()=>({[o]:!0})),s=t.computed(()=>a.icon?{[`${o}__icon`]:!0,[`${o}__icon-${a.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${a.type}`]:!0}),c=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),i=t.computed(()=>{const m={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),f=t.computed(()=>a.color?{color:a.color}:null);return()=>{let m=null;if(n.mark)m=n.mark()[0];else{const y={class:s.value,style:c.value};m=t.h(a.icon??"div",y)}const d={class:i.value,style:f.value},w=n.default?n.default():[],S=t.h("div",d,w),T={class:r.value};return a.textPosition==="right"?t.h("div",T,[m,S]):t.h("div",T,[S,m])}}}}const{componentName:yp,create:pp}=ue("indicator"),Ma=pp(gp(yp)),{componentName:bp,create:vp}=ue("tour"),wp=vp({components:{Close:Ie.Close,ElPopover:F.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:l}){const a=bp,n=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:T,maskWidth:y,maskHeight:h}=e,{width:A,height:g,left:u,top:N}=o.value,M=e.steps[n.active].offset??T,O=[u+A/2,N+g/2],k=Number(y||A),E=Number(h||g);return{width:`${k+ +M.left+M.right}px`,height:`${E+M.top+M.bottom}px`,top:`${O[1]-E/2-+M.top}px`,left:`${O[0]-k/2-+M.left}px`}}),c=T=>{T=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,t.nextTick(()=>{n.showPopup=!0,m()}),l("change",n.active)},i=T=>T.popoverWidth??e.width,f=T=>T.location??e.location,m=()=>{const T=document.querySelector(`${e.steps[n.active].target}`),y=ma(T);o.value={x:y.left,y:y.top,top:y.top,left:y.left,width:y.width,height:y.height}},d=()=>{n.showTour=!1,n.showPopup=!1,l("close",n.active),l("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&d()},S=(T,y=0)=>{T&&m(),e.steps,n.active=y,n.showTour=T,n.showPopup=T};return t.onMounted(()=>{S(e.modelValue,e.current)}),t.watch(()=>e.modelValue,T=>{S(T)}),{...t.toRefs(n),classes:r,maskStyle:s,changeStep:c,popoverWidth:i,popoverLocation:f,close:d,handleClickMask:w}}}),Sp={key:0,class:"fox-tour__content"},xp={key:0,class:"fox-tour__content-top"},Cp={class:"fox-tour__content-inner"},Tp={class:"fox-tour__content-bottom"},kp={class:"fox-tour__content-bottom-init"},$p={class:"fox-tour__content-bottom-operate"},Dp={key:1,class:"fox-tour__content fox-tour__content-tile"},Np={class:"fox-tour__content-inner"};function Ep(e,l,a,n,o,r){const s=t.resolveComponent("Close"),c=t.resolveComponent("fox-button"),i=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:l[0]||(l[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,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{height:"0"}},[m==e.active?(t.openBlock(),t.createBlock(i,{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",Sp,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",xp,[t.createElementVNode("div",{onClick:l[1]||(l[1]=(...d)=>e.close&&e.close(...d))},[t.createVNode(s,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Cp,t.toDisplayString(f.content),1),t.createElementVNode("div",Tp,[t.createElementVNode("div",kp,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",$p,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(c,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[2]||(l[2]=d=>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(c,{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(c,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[3]||(l[3]=d=>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",Dp,[t.createElementVNode("div",Np,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Ba=Le(wp,[["render",Ep]]);function Ip(e,l){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:n}){return go(a.name,()=>a.config),Ye(a.innerPageScope)||Cl(a.innerPageScope),Ye(a.abstractPageScope)||bo(a.abstractPageScope),()=>typeof n.default=="function"?n.default():null}}}const{create:Vp}=ue("domain-provider"),Ra=Vp(Ip()),Op={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 Ap(e,l){return{inheritAttrs:!1,props:Op,emits:["change"],setup(a,{slots:n,emit:o}){if(ft&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const c=(S,T)=>{if(d===null){s.set(S,{visible:null,callback:T});return}r.has(S)&&d.unobserve(S),r.set(S,{visible:null,callback:T}),d.observe(S)},i=S=>{if(d===null){s.delete(S);return}r.has(S)&&(r.delete(S),d.unobserve(S))};let f=a.initialVisibleObserverSize;ps({acquire:()=>{if(a.loadPolicy==="always")return!0;const S=f>0;return f--,S},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:i});let d=null;const w=(S,T,y)=>{d=new IntersectionObserver(h=>{if(o("change",h),a.loadPolicy!=="always")for(let A of h){let g=!1;A.intersectionRatio>0&&(g=!0);const u=r.get(A.target);if(u)try{if(a.loadPolicy==="lazy"&&!g&&u.visible!==null)return;u.visible=g,u.callback(g)}catch(N){console.error(N)}}},{root:S,rootMargin:T,threshold:y}),s.forEach((h,A)=>{r.set(A,h),d?.observe(A)}),s.clear()};t.watch([()=>a.root,()=>a.disabled],([S,T])=>{if(T||!S||d)return;let y=null;typeof S=="string"?y=document.querySelector(S):y=S,y&&w(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:Fp}=ue("rolling-provider"),La=Fp(Ap()),Mp=[$l,Nl,El,Il,Al,$e,Nn,En,Pl,Pe,_l,ql,zl,Wl,Yl,Ul,Gl,Xl,Ql,Jl,ea,ta,Hn,aa,oa,ra,ia,sa,ua,ca,fa,Gn,da,ya,Xt,Zt,Xn,va,xa,Da,Vn,Ut,Na,jn,Ea,Ia,qn,bt,Va,Un,Yn,Oa,Aa,Fa,Ht,$n,Ma,In,Ba,Ra,La],Bp=new Xi(Mp,[Ji],"4.0.0");Object.defineProperty(b,"FoxAffix",{enumerable:!0,get:()=>F.ElAffix}),Object.defineProperty(b,"FoxAlert",{enumerable:!0,get:()=>F.ElAlert}),Object.defineProperty(b,"FoxAnchor",{enumerable:!0,get:()=>F.ElAnchor}),Object.defineProperty(b,"FoxAnchorLink",{enumerable:!0,get:()=>F.ElAnchorLink}),Object.defineProperty(b,"FoxAside",{enumerable:!0,get:()=>F.ElAside}),Object.defineProperty(b,"FoxAutoResizer",{enumerable:!0,get:()=>F.ElAutoResizer}),Object.defineProperty(b,"FoxAutocomplete",{enumerable:!0,get:()=>F.ElAutocomplete}),Object.defineProperty(b,"FoxAvatar",{enumerable:!0,get:()=>F.ElAvatar}),Object.defineProperty(b,"FoxBacktop",{enumerable:!0,get:()=>F.ElBacktop}),Object.defineProperty(b,"FoxBadge",{enumerable:!0,get:()=>F.ElBadge}),Object.defineProperty(b,"FoxBreadcrumb",{enumerable:!0,get:()=>F.ElBreadcrumb}),Object.defineProperty(b,"FoxBreadcrumbItem",{enumerable:!0,get:()=>F.ElBreadcrumbItem}),Object.defineProperty(b,"FoxButton",{enumerable:!0,get:()=>F.ElButton}),Object.defineProperty(b,"FoxButtonGroup",{enumerable:!0,get:()=>F.ElButtonGroup}),Object.defineProperty(b,"FoxCalendar",{enumerable:!0,get:()=>F.ElCalendar}),Object.defineProperty(b,"FoxCard",{enumerable:!0,get:()=>F.ElCard}),Object.defineProperty(b,"FoxCarousel",{enumerable:!0,get:()=>F.ElCarousel}),Object.defineProperty(b,"FoxCarouselItem",{enumerable:!0,get:()=>F.ElCarouselItem}),Object.defineProperty(b,"FoxCascader",{enumerable:!0,get:()=>F.ElCascader}),Object.defineProperty(b,"FoxCascaderPanel",{enumerable:!0,get:()=>F.ElCascaderPanel}),Object.defineProperty(b,"FoxCheckTag",{enumerable:!0,get:()=>F.ElCheckTag}),Object.defineProperty(b,"FoxCheckbox",{enumerable:!0,get:()=>F.ElCheckbox}),Object.defineProperty(b,"FoxCheckboxButton",{enumerable:!0,get:()=>F.ElCheckboxButton}),Object.defineProperty(b,"FoxCheckboxGroup",{enumerable:!0,get:()=>F.ElCheckboxGroup}),Object.defineProperty(b,"FoxCol",{enumerable:!0,get:()=>F.ElCol}),Object.defineProperty(b,"FoxCollapse",{enumerable:!0,get:()=>F.ElCollapse}),Object.defineProperty(b,"FoxCollapseItem",{enumerable:!0,get:()=>F.ElCollapseItem}),Object.defineProperty(b,"FoxCollapseTransition",{enumerable:!0,get:()=>F.ElCollapseTransition}),Object.defineProperty(b,"FoxColorPicker",{enumerable:!0,get:()=>F.ElColorPicker}),Object.defineProperty(b,"FoxConfigProvider",{enumerable:!0,get:()=>F.ElConfigProvider}),Object.defineProperty(b,"FoxContainer",{enumerable:!0,get:()=>F.ElContainer}),Object.defineProperty(b,"FoxCountdown",{enumerable:!0,get:()=>F.ElCountdown}),Object.defineProperty(b,"FoxDatePicker",{enumerable:!0,get:()=>F.ElDatePicker}),Object.defineProperty(b,"FoxDescriptions",{enumerable:!0,get:()=>F.ElDescriptions}),Object.defineProperty(b,"FoxDescriptionsItem",{enumerable:!0,get:()=>F.ElDescriptionsItem}),Object.defineProperty(b,"FoxDialog",{enumerable:!0,get:()=>F.ElDialog}),Object.defineProperty(b,"FoxDivider",{enumerable:!0,get:()=>F.ElDivider}),Object.defineProperty(b,"FoxDrawer",{enumerable:!0,get:()=>F.ElDrawer}),Object.defineProperty(b,"FoxDropdown",{enumerable:!0,get:()=>F.ElDropdown}),Object.defineProperty(b,"FoxDropdownItem",{enumerable:!0,get:()=>F.ElDropdownItem}),Object.defineProperty(b,"FoxDropdownMenu",{enumerable:!0,get:()=>F.ElDropdownMenu}),Object.defineProperty(b,"FoxEmpty",{enumerable:!0,get:()=>F.ElEmpty}),Object.defineProperty(b,"FoxFooter",{enumerable:!0,get:()=>F.ElFooter}),Object.defineProperty(b,"FoxForm",{enumerable:!0,get:()=>F.ElForm}),Object.defineProperty(b,"FoxFormItem",{enumerable:!0,get:()=>F.ElFormItem}),Object.defineProperty(b,"FoxHeader",{enumerable:!0,get:()=>F.ElHeader}),Object.defineProperty(b,"FoxIcon",{enumerable:!0,get:()=>F.ElIcon}),Object.defineProperty(b,"FoxImage",{enumerable:!0,get:()=>F.ElImage}),Object.defineProperty(b,"FoxImageViewer",{enumerable:!0,get:()=>F.ElImageViewer}),Object.defineProperty(b,"FoxInput",{enumerable:!0,get:()=>F.ElInput}),Object.defineProperty(b,"FoxInputNumber",{enumerable:!0,get:()=>F.ElInputNumber}),Object.defineProperty(b,"FoxInputTag",{enumerable:!0,get:()=>F.ElInputTag}),Object.defineProperty(b,"FoxLink",{enumerable:!0,get:()=>F.ElLink}),Object.defineProperty(b,"FoxMain",{enumerable:!0,get:()=>F.ElMain}),Object.defineProperty(b,"FoxMention",{enumerable:!0,get:()=>F.ElMention}),Object.defineProperty(b,"FoxMenu",{enumerable:!0,get:()=>F.ElMenu}),Object.defineProperty(b,"FoxMenuItem",{enumerable:!0,get:()=>F.ElMenuItem}),Object.defineProperty(b,"FoxMenuItemGroup",{enumerable:!0,get:()=>F.ElMenuItemGroup}),Object.defineProperty(b,"FoxMessage",{enumerable:!0,get:()=>F.ElMessage}),Object.defineProperty(b,"FoxMessageBox",{enumerable:!0,get:()=>F.ElMessageBox}),Object.defineProperty(b,"FoxNotification",{enumerable:!0,get:()=>F.ElNotification}),Object.defineProperty(b,"FoxOption",{enumerable:!0,get:()=>F.ElOption}),Object.defineProperty(b,"FoxOptionGroup",{enumerable:!0,get:()=>F.ElOptionGroup}),Object.defineProperty(b,"FoxPageHeader",{enumerable:!0,get:()=>F.ElPageHeader}),Object.defineProperty(b,"FoxPagination",{enumerable:!0,get:()=>F.ElPagination}),Object.defineProperty(b,"FoxPopconfirm",{enumerable:!0,get:()=>F.ElPopconfirm}),Object.defineProperty(b,"FoxPopover",{enumerable:!0,get:()=>F.ElPopover}),Object.defineProperty(b,"FoxPopper",{enumerable:!0,get:()=>F.ElPopper}),Object.defineProperty(b,"FoxProgress",{enumerable:!0,get:()=>F.ElProgress}),Object.defineProperty(b,"FoxRadio",{enumerable:!0,get:()=>F.ElRadio}),Object.defineProperty(b,"FoxRadioButton",{enumerable:!0,get:()=>F.ElRadioButton}),Object.defineProperty(b,"FoxRadioGroup",{enumerable:!0,get:()=>F.ElRadioGroup}),Object.defineProperty(b,"FoxRate",{enumerable:!0,get:()=>F.ElRate}),Object.defineProperty(b,"FoxResult",{enumerable:!0,get:()=>F.ElResult}),Object.defineProperty(b,"FoxRow",{enumerable:!0,get:()=>F.ElRow}),Object.defineProperty(b,"FoxScrollbar",{enumerable:!0,get:()=>F.ElScrollbar}),Object.defineProperty(b,"FoxSegmented",{enumerable:!0,get:()=>F.ElSegmented}),Object.defineProperty(b,"FoxSelect",{enumerable:!0,get:()=>F.ElSelect}),Object.defineProperty(b,"FoxSelectV2",{enumerable:!0,get:()=>F.ElSelectV2}),Object.defineProperty(b,"FoxSkeleton",{enumerable:!0,get:()=>F.ElSkeleton}),Object.defineProperty(b,"FoxSkeletonItem",{enumerable:!0,get:()=>F.ElSkeletonItem}),Object.defineProperty(b,"FoxSlider",{enumerable:!0,get:()=>F.ElSlider}),Object.defineProperty(b,"FoxSpace",{enumerable:!0,get:()=>F.ElSpace}),Object.defineProperty(b,"FoxStatistic",{enumerable:!0,get:()=>F.ElStatistic}),Object.defineProperty(b,"FoxStep",{enumerable:!0,get:()=>F.ElStep}),Object.defineProperty(b,"FoxSteps",{enumerable:!0,get:()=>F.ElSteps}),Object.defineProperty(b,"FoxSubMenu",{enumerable:!0,get:()=>F.ElSubMenu}),Object.defineProperty(b,"FoxSwitch",{enumerable:!0,get:()=>F.ElSwitch}),Object.defineProperty(b,"FoxTabPane",{enumerable:!0,get:()=>F.ElTabPane}),Object.defineProperty(b,"FoxTable",{enumerable:!0,get:()=>F.ElTable}),Object.defineProperty(b,"FoxTableColumn",{enumerable:!0,get:()=>F.ElTableColumn}),Object.defineProperty(b,"FoxTableV2",{enumerable:!0,get:()=>F.ElTableV2}),Object.defineProperty(b,"FoxTabs",{enumerable:!0,get:()=>F.ElTabs}),Object.defineProperty(b,"FoxTag",{enumerable:!0,get:()=>F.ElTag}),Object.defineProperty(b,"FoxTimePicker",{enumerable:!0,get:()=>F.ElTimePicker}),Object.defineProperty(b,"FoxTimeSelect",{enumerable:!0,get:()=>F.ElTimeSelect}),Object.defineProperty(b,"FoxTimeline",{enumerable:!0,get:()=>F.ElTimeline}),Object.defineProperty(b,"FoxTimelineItem",{enumerable:!0,get:()=>F.ElTimelineItem}),Object.defineProperty(b,"FoxTooltip",{enumerable:!0,get:()=>F.ElTooltip}),Object.defineProperty(b,"FoxTransfer",{enumerable:!0,get:()=>F.ElTransfer}),Object.defineProperty(b,"FoxTree",{enumerable:!0,get:()=>F.ElTree}),Object.defineProperty(b,"FoxTreeSelect",{enumerable:!0,get:()=>F.ElTreeSelect}),Object.defineProperty(b,"FoxTreeV2",{enumerable:!0,get:()=>F.ElTreeV2}),Object.defineProperty(b,"FoxUpload",{enumerable:!0,get:()=>F.ElUpload}),Object.defineProperty(b,"FoxWatermark",{enumerable:!0,get:()=>F.ElWatermark}),b.AbstractPageScopeKey=Tl,b.ActionsheetItem=da,b.ActionsheetPane=Gn,b.AutocompleteItem=Jl,b.Broadcast=pl,b.BroadcastKey=Ne,b.ButtonsItem=Pl,b.CalendarItem=Wl,b.CascaderItem=Ql,b.CheckboxItem=ra,b.Content=Il,b.DataItemsKey=Ct,b.DateItem=zl,b.DateUtils=se,b.DialogItem=Ia,b.Domain=fn,b.DomainKey=Ke,b.DomainProvider=Ra,b.FloatingButton=Fa,b.FloatingWindow=Da,b.FooterBar=El,b.FoxActionsheetItem=da,b.FoxActionsheetPane=Gn,b.FoxAutocompleteItem=Jl,b.FoxButtonsItem=Pl,b.FoxCalendarItem=Wl,b.FoxCascaderItem=Ql,b.FoxCheckboxItem=ra,b.FoxContent=Il,b.FoxDateItem=zl,b.FoxDialogItem=Ia,b.FoxDomainProvider=Ra,b.FoxFloatingButton=Fa,b.FoxFloatingWindow=Da,b.FoxFooterBar=El,b.FoxGroup=Al,b.FoxGroupSetting=ca,b.FoxHeaderBar=Nl,b.FoxHintText=Pe,b.FoxIndicator=Ma,b.FoxInfiniteLoading=Yn,b.FoxInputItem=_l,b.FoxInputNumberItem=Xl,b.FoxItem=$e,b.FoxMapping=Ht,b.FoxMoneyItem=Gl,b.FoxMoreButton=Aa,b.FoxOverLay=qn,b.FoxPage=$l,b.FoxPickerItem=ya,b.FoxPopoverDialog=Vn,b.FoxPopup=bt,b.FoxPrice=$n,b.FoxPullRefresh=Oa,b.FoxRadioItem=oa,b.FoxRateItem=ia,b.FoxRollingProvider=La,b.FoxRowItem=En,b.FoxSearchBar=Un,b.FoxSelectItem=ql,b.FoxSlotItem=Nn,b.FoxStepsBar=xa,b.FoxSwitchItem=sa,b.FoxTableItem=aa,b.FoxTableMappingColumn=ea,b.FoxTableRadioColumn=ta,b.FoxTableSetting=Hn,b.FoxTabsBar=Xt,b.FoxTabsContainer=Zt,b.FoxTabsFrame=va,b.FoxTabsPane=Xn,b.FoxText=In,b.FoxTimeItem=Yl,b.FoxTimeSelectItem=Ul,b.FoxToast=Va,b.FoxTour=Ba,b.FoxTreeItem=fa,b.FoxTreeSelectItem=ua,b.Foxcalendarpicker=jn,b.Foxcascaderpicker=Ea,b.Foxdatepicker=Na,b.Foxpicker=Ut,b.Group=Al,b.GroupSetting=ca,b.HeaderBar=Nl,b.HintText=Pe,b.Indicator=Ma,b.InfiniteLoading=Yn,b.InnerPageScopeKey=xl,b.InputItem=_l,b.InputNumberItem=Xl,b.Item=$e,b.Mapping=Ht,b.MoneyItem=Gl,b.MoreButton=Aa,b.OverLay=qn,b.Page=$l,b.PickerItem=ya,b.PopoverDialog=Vn,b.Popup=bt,b.Price=$n,b.PriorityPolicy=Ge,b.PullRefresh=Oa,b.RadioItem=oa,b.RateItem=ia,b.RollingProvider=La,b.RowItem=En,b.SearchBar=Un,b.SelectItem=ql,b.SlotItem=Nn,b.StepsBar=xa,b.SwitchItem=sa,b.TableItem=aa,b.TableMappingColumn=ea,b.TableRadioColumn=ta,b.TableSetting=Hn,b.TabsBar=Xt,b.TabsContainer=Zt,b.TabsFrame=va,b.TabsPane=Xn,b.Text=In,b.TimeItem=Yl,b.TimeSelectItem=Ul,b.Toast=Va,b.Tour=Ba,b.TreeItem=fa,b.TreeSelectItem=ua,b.UniqueID=Vo,b.ValidateSchema=fo,b.ValidateSchemaKey=Qe,b.calendarpicker=jn,b.cancelRaf=mi,b.cascaderpicker=Ea,b.clearNonNumber=$i,b.compareTo=fl,b.createBroadcast=on,b.createValidateSchema=sn,b.datepicker=Na,b.debounce=Ue,b.debounceRef=Pi,b.decimalLength=oo,b.default=Bp,b.defineBroadcast=Ii,b.defineConfigDomain=go,b.defineDataItem=yo,b.defineDomain=vl,b.defineItem=Ee,b.definePageState=po,b.defineSimpleItem=wl,b.deleteGlobalValidator=Mi,b.disabledProperty=Be,b.divide=cl,b.excludeProps=Ve,b.extend=xt,b.floatData=Ei,b.getGlobalIcons=ko,b.getGlobalValidateCheckEvents=so,b.getGlobalValidateResetEvents=co,b.getPageContentAreaHeight=gn,b.getPageContentAreaWidth=yn,b.getPageFooterAreaHeight=mn,b.getPageHeaderAreaHeight=hn,b.getRootDomain=Tt,b.hasSymbol=Ja,b.includeProps=it,b.indexOf=Di,b.injectAbstractPageScope=_t,b.injectInnerPageScope=Pt,b.integerLength=ao,b.isArray=yi,b.isArrayLike=no,b.isBrowser=ft,b.isDate=ct,b.isESModule=Si,b.isEmptyString=ge,b.isEqual=Xe,b.isFunction=hl,b.isHidden=to,b.isMap=pi,b.isNil=Ye,b.isNumberString=yl,b.isObject=je,b.isPlainObject=wi,b.isPromise=nn,b.isRegExp=gl,b.isSet=bi,b.isString=Za,b.isSubPage=ji,b.isSymbol=vi,b.isTouch=Wt,b.isWindow=eo,b.lastIndexOf=Ni,b.makeArray=ki,b.merge=lo,b.multiply=Ua,b.negate=Ga,b.nextTick=Ci,b.numberFormat=tn,b.objectToString=Qa,b.once=_i,b.overrideGlobalIcons=as,b.overrideGlobalValidateHandler=Ai,b.picker=Ut,b.property=Fe,b.provideAbstractPageScope=bo,b.provideInnerPageScope=Cl,b.raf=dl,b.readonlyProperty=Me,b.setGlobalValidateCheckEvents=Bi,b.setGlobalValidateHandler=Oi,b.setGlobalValidateMessages=Li,b.setGlobalValidateResetEvents=Ri,b.setGlobalValidator=Fi,b.throttle=mo,b.toBoolean=de,b.toNumber=be,b.toPadding=at,b.toPx=ve,b.toPxDesc=zi,b.toPxString=Se,b.toTypeString=ln,b.toValue=pe,b.tryTimes=cn,b.typeOf=an,b.unNumberFormat=Xa,b.updatePageState=Sl,b.useBroadcast=Bt,b.useDomain=dt,b.useExpose=we,b.useInnerSize=vn,b.usePageState=dn,b.usePosition=Fl,b.useRawTouch=Yt,b.useRect=ma,b.useSize=Dl,b.useTouch=Mr,b.valueLength=lt,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(b,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):(b=typeof globalThis<"u"?globalThis:b||self,t(b.FoxUI={},b.Vue,b.FoxValidator,b.ElementPlus,b.ElementPlusIconsVue,b.FoxI18n))})(this,(function(b,t,pt,F,Ie,xe){"use strict";const Jt=window,di=typeof window<"u";function hi(){return typeof Jt<"u"?Jt.requestAnimationFrame||Jt.webkitRequestAnimationFrame||function(e){Jt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function mi(e){di?cancelAnimationFrame(e):clearTimeout(e)}const nl=hi();function en(e,l="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),l[0]=="-"&&(a++,n=2,l=l.substring(1),l.length),e=_e(e),l=_e(l),[e,l]=al(_e(e),_e(l)),a==1&&(n==1?e=ll(e):l=ll(l));let o=ja(e,l);return a?a==2?"-"+_e(o):e.length<o.length?_e(o.substring(1)):"-"+_e(ll(o)):_e(o)}function ll(e){let l="",a=e.length,n=e.split(".")[1],o=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?l+=9-parseInt(e[s]):l+=e[s];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return ja(l,r)}function _e(e){let l=e.split(".");for(l[0]||(l[0]="0");l[0][0]=="0"&&l[0].length>1;)l[0]=l[0].substring(1);return l[0]+(l[1]?"."+l[1]:"")}function al(e,l){let a=e.split("."),n=l.split("."),o=a[0].length,r=n[0].length;return o>r?n[0]=new Array(Math.abs(o-r)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=n[1]?n[1].length:0,(o||r)&&(o>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),l=n[0]+(n[1]?"."+n[1]:""),[e,l]}function ja(e,l){[e,l]=al(e,l);let a="",n=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(l[o])+n;a=r%10+a,n=Math.floor(r/10)}return n?n.toString()+a:a}var De=(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))(De||{});function Ft(e,l=0,a=De.HALF_EVEN){if(a===De.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let o=e.split("."),r=o[0],s=o[1];if(l<0){if(l=-l,r.length<=l)return"0";{let i=r.substr(0,r.length-l);return e=i+"."+r.substr(r.length-l)+s,i=Ft(e,0,a),(n?"-":"")+i+new Array(l+1).join("0")}}if(l==0)return r.length,Ha(o[1],r,n,a)?(n?"-":"")+ol(r):(n?"-":"")+r;if(o[1]){if(o[1].length<l)return(n?"-":"")+r+"."+o[1]+new Array(l-o[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(l+1).join("0");s=o[1].substring(0,l);let c=o[1].substring(l);return c&&Ha(c,s,n,a)&&(s=ol(s),s.length>l)?(n?"-":"")+ol(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Ha(e,l,a,n){if(!e||e===new Array(e.length+1).join("0")||n===De.DOWN||!a&&n===De.FLOOR||a&&n===De.CEILING)return!1;if(n===De.UP||a&&n===De.FLOOR||!a&&n===De.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(n){case De.HALF_DOWN:return!1;case De.HALF_UP:return!0;case De.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function ol(e,l=0){l||(l=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+l;r==10?(l=1,r=0):l=0,n+=r}return l&&(n+=l),n.split("").reverse().join("")}function rl(e,l){e=e.toString(),l=l.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),l[0]=="-"&&(a++,l=l.substr(1)),e=Mt(e),l=Mt(l);let n=0,o=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),l.indexOf(".")!=-1&&(o=l.length-l.indexOf(".")-1);let r=n+o;if(e=Mt(e.replace(".","")),l=Mt(l.replace(".","")),e.length<l.length){let d=e;e=l,l=d}if(l=="0")return"0";let s=l.length,c=0,i=[],f=s-1,m="";for(let d=0;d<s;d++)i[d]=e.length-1;for(let d=0;d<2*e.length;d++){let w=0;for(let S=l.length-1;S>=f&&S>=0;S--)i[S]>-1&&i[S]<e.length&&(w+=parseInt(e[i[S]--])*parseInt(l[S]));w+=c,c=Math.floor(w/10),m=w%10+m,f--}return m=Mt(gi(m,r)),a==1&&(m="-"+m),m}function gi(e,l){return l==0?e:(e=l>=e.length?new Array(l-e.length+1).join("0")+e:e,e.substr(0,e.length-l)+"."+e.substr(e.length-l,l))}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 il(e,l,a=8){if(l==0)throw new Error("Cannot divide by 0");if(e=e.toString(),l=l.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),l=l.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;l[0]=="-"&&(l=l.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var o=l.indexOf(".")>0?l.length-l.indexOf(".")-1:-1;if(l=_e(l.replace(".","")),o>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=_e(e+new Array(o+1).join("0"));else if(o>f)e=e.replace(".",""),e=_e(e+new Array(o-f+1).join("0"));else if(o<f){e=e.replace(".","");let m=e.length-f+o;e=_e(e.substring(0,m)+"."+e.substring(m))}else o==f&&(e=_e(e.replace(".","")))}let r=0,s=l.length,c="",i=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),i.indexOf(".")>-1){let f=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(f+=s-i.length,i=i+new Array(s-i.length+1).join("0")),r=f,c="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(i)>=parseInt(l);)i=en(i,"-"+l),f++;c+=f,e?(e[0]=="."&&(c+=".",r++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(r||(c+="."),r++,i=i+"0")}return(n==1?"-":"")+_e(Ft(c,a-2))}function sl(e,l){return e=e.toString(),l=l.toString(),l=ul(l),en(e,l)}function ul(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ka(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),Wa(e),Wa(l);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let n=sl(e,rl(l,Ft(il(e,l),0,De.FLOOR)));return a+n}function Wa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ya(e,l){let a=!1;if(e[0]=="-"&&l[0]!="-")return-1;if(e[0]!="-"&&l[0]=="-")return 1;if(e[0]=="-"&&l[0]=="-"&&(e=e.substr(1),l=l.substr(1),a=!0),[e,l]=al(e,l),e.localeCompare(l)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=l[n])return e[n]>l[n]?a?-1:1:a?1:-1;return 0}class me{value;static RoundingModes=De;static validate(l){if(l){if(l=l.toString(),isNaN(l))throw Error("Parameter is not a number: "+l);l[0]=="+"&&(l=l.substring(1))}else l="0";if(l.startsWith(".")?l="0"+l:l.startsWith("-.")&&(l="-0"+l.substr(1)),/e/i.test(l)){let[a,n]=l.split(/[eE]/);a=_e(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?l=o+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?l=o+_e(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):l=o+"0."+new Array(-n+1).join("0")+a}return l}constructor(l="0"){this.value=me.validate(l)}getValue(){return this.value}static getPrettyValue(l,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");l=me.validate(l);let o=l.charAt(0)=="-";o&&(l=l.substring(1));var r=l.indexOf(".");r=r>0?r:l.length;for(var s="",c=r;c>0;)c<a?(a=c,c=0):c-=a,s=l.substring(c,c+a)+(c<r-a&&c>=0?n:"")+s;return(o?"-":"")+s+l.substring(r)}getPrettyValue(l,a){return me.getPrettyValue(this.value,l,a)}static round(l,a=0,n=De.HALF_EVEN){if(l=me.validate(l),isNaN(a))throw Error("Precision is not a number: "+a);return Ft(l,a,n)}round(l=0,a=De.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new me(Ft(this.value,l,a))}static floor(l){return l=me.validate(l),l.indexOf(".")===-1?l:me.round(l,0,De.FLOOR)}floor(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,De.FLOOR)}static ceil(l){return l=me.validate(l),l.indexOf(".")===-1?l:me.round(l,0,De.CEILING)}ceil(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,De.CEILING)}static add(l,a){return l=me.validate(l),a=me.validate(a),en(l,a)}add(l){return new me(en(this.value,l.getValue()))}static subtract(l,a){return l=me.validate(l),a=me.validate(a),sl(l,a)}subtract(l){return new me(sl(this.value,l.getValue()))}static multiply(l,a){return l=me.validate(l),a=me.validate(a),rl(l,a)}multiply(l){return new me(rl(this.value,l.getValue()))}static divide(l,a,n){return l=me.validate(l),a=me.validate(a),il(l,a,n)}divide(l,a){return new me(il(this.value,l.getValue(),a))}static modulus(l,a){return l=me.validate(l),a=me.validate(a),Ka(l,a)}modulus(l){return new me(Ka(this.value,l.getValue()))}static compareTo(l,a){return l=me.validate(l),a=me.validate(a),Ya(l,a)}compareTo(l){return Ya(this.value,l.getValue())}static negate(l){return l=me.validate(l),ul(l)}negate(){return new me(ul(this.value))}}function Ua(e,l){return me.multiply(`${e}`,`${l}`)}function cl(e,l,a=8){return me.divide(`${e}`,`${l}`,a)}function fl(e,l){return e=`${e}`,l=`${l}`,me.compareTo(e,l)}function Ga(e){return me.negate(e)}function tn(e,l=-1,a=!1,n=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let c=r,i="",f=r.indexOf(".");f!=-1&&(c=r.substring(0,f),i=r.substring(f+1)),l!=-1&&(l<i.length?i=i.substring(0,l):a&&l>i.length&&(i=i.padEnd(l,"0")));let m;if(n>0){let d="",w=c.split("").reverse();for(let S=0;S<w.length;S++)d+=w[S]+((S+1)%n==0&&S+1!=w.length?o:"");i.length==0?m=`${s}${d.split("").reverse().join("")}`:m=`${s}${d.split("").reverse().join("")}.${i}`}else i.length==0?m=`${s}${c}`:m=`${s}${c}.${i}`;return m}function Xa(e){let l=`${e}`,a=l.charAt(0);a=="-"?l=l.substring(1):a="";let n=l.replace(/[^\d\.-]/g,"");return`${a}${n}`}const dl=nl,yi=Array.isArray,pi=e=>ln(e)==="[object Map]",bi=e=>ln(e)==="[object Set]",ct=e=>e instanceof Date,hl=e=>typeof e=="function",Za=e=>typeof e=="string",vi=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",nn=e=>je(e)&&hl(e.then)&&hl(e.catch),Qa=Object.prototype.toString,ln=e=>Qa.call(e),wi=e=>ln(e)==="[object Object]",Ja=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Si(e){return e.__esModule||Ja&&e[Symbol.toStringTag]==="Module"}const xi=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function xt(...e){let l=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,o=!1;for(typeof l=="boolean"&&(o=l,l=e[a]??{},a++),typeof l!="object"&&(l={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let c=l[s],i=r[s];if(c!==i)if(o===!0&&i&&typeof i=="object"){let f;Array.isArray(i)?f=c&&Array.isArray(c)?c:[]:f=c&&typeof c=="object"?c:{},l[s]=xt(o,f,i)}else i!==void 0&&(l[s]=i)}}return l}const ml=xi?Promise.resolve():null;function Ci(e,...l){ml!==null?l&&l.length>0?ml.then(()=>{e(l)}):ml.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function de(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function be(e){return typeof e=="number"?e:Number(e)}const Ti={"[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 an(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Ti[a]||"object"}function eo(e){return e&&typeof e=="object"&&"setInterval"in e}function to(e){if(!e||e.nodeType!==1)return!0;let l=e;for(;l;){if(l.hidden)return!0;const a=window.getComputedStyle(l);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;l=l.parentElement}return!1}function no(e){let l=!!e&&"length"in e&&e.length,a=an(e);return a==="function"||eo(e)?!1:a==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function lo(e,l){let a=+l.length,n=0,o=e.length;for(;n<a;n++)e[o++]=l[n];return e.length=o,e}function ki(e,l=[]){let a=l;return e!=null&&(no(Object(e))?lo(a,typeof e=="string"?[e]:e):a.push(e)),a}function Xe(e,l){if(e==l)return!0;if(e===void 0||l===void 0)return!1;let a=an(e),n=an(l);if(a!==n)return!1;if(a==="object"){let o=Object.keys(e),r=Object.keys(l);if(o.length!==r.length)return!1;for(let s=0;s<o.length;s++){let c=o[s],i=e[c],f=l[c];if(!Xe(i,f))return!1}return!0}else if(a==="array"){if(e.length!==l.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],s=l[o];if(!Xe(r,s))return!1}return!0}return!1}const ft=typeof window<"u";function Ye(e){return e==null}function gl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null||typeof e!="string"?!1:e.length===0;function yl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ao(e){if(e==null)return 0;let l=`${e}`;if(l.length==0)return 0;l.charAt(0)=="-"&&(l=l.substring(1)),l=l.replace(/[^\d\.-]/g,"");const a=l.indexOf(".");return a==-1?l.length:a}function oo(e){if(e==null)return 0;const l=`${e}`;if(l.length==0)return 0;const a=l.indexOf(".");return a==-1?0:l.length-(a+1)}function ro(e,l,a){const n=e.indexOf(l);return n===-1?e:l==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(a,"")}function $i(e,l=!0,a=!0){l?e=ro(e,".",/\./g):e=e.replace(/\./g,""),a?e=ro(e,"-",/-/g):e=e.replace(/-/,"");const n=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Di(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(a=>{if(Xe(e,a))return!0}):l.indexOf(e)}function Ni(e,l){if(typeof e=="object"||Array.isArray(e)){let a=l.reverse().findIndex(n=>{if(Xe(e,n))return!0});return a!==-1&&(a=l.length-1-a),a}return l.lastIndexOf(e)}function lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function it(e,...l){const a={};return l.forEach(n=>{for(const o in n)a[o]=e[o]}),a}function Ve(e,...l){const a=[];l.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const n={};for(const o in e)a.includes(o)||(n[o]=e[o]);return n}const Ei=(e,l,a)=>{const n=Object.assign({},e),o=Object.assign({},a);return Object.keys(l).length>0?(Object.keys(n).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(n[r]=l[o[r]]):l[r]&&(n[r]=l[r])}),n):e},Ne=Symbol.for("BroadcastKey");class pl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(l,a,n){this.parent=l,this.proxy=a,this.name=n,l!==null&&l.addChild(this)}addChild(l){this.children.push(l)}removeChild(l){const a=this.children.findIndex(n=>l===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(l,a,n){if(!l.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const o=l.uniqueId,r={matched:l,action:a,args:n};return this.persistantMessages.set(o,r),!0}deletePersistantMessage(l){this.persistantMessages.delete(l)}getPersistantMessages(){const l=[];return this.persistantMessages.forEach(a=>{l.push(a)}),l}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(l,a){if(!a||a.messagingPolicy==="Once"&&a.resolved===!0)return!1;let n=!1;return!a.name||a.name==="*"||a.name==="+"||gl(a.name)&&l&&a.name.test(l)?n=!0:typeof a.name=="function"?n=Reflect.apply(a.name,null,[l]):a.name===l&&(n=!0),n}trigger(l,a,n){let o=null;const r=this.callbacks.get(a);typeof r=="function"&&(o=Reflect.apply(r,this.proxy,[...n]));const s=this.proxy??{};typeof s[a]=="function"&&(o=Reflect.apply(s[a],s,[...n])),l.resolved=!0,typeof l.resolve=="function"&&l.resolve(o)}pull(){let l=this.parent;for(;l;){const a=l.getPersistantMessages();Array.isArray(a)&&a.length>0&&a.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(o){console.error(o)}}),l=l.parent}}emit(l,a,...n){if(l.messagingPolicy==="Once"&&l.resolved===!0)return[];if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,a,n),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,a,n)){const s=l.resolve,c=l.uniqueId??"",i=(...f)=>{this.deletePersistantMessage(c),typeof s=="function"&&s(...f)};l.resolve=i}l.cachePolicy="None"}let o=!1;!l.name||l.name==="*"?o=!0:l.name==="+"?(o=!1,l.name="*"):gl(l.name)&&this.name&&l.name.test(this.name)?o=!0:typeof l.name=="function"?o=Reflect.apply(l.name,null,[this.name]):l.name===this.name&&(o=!0);const r=[];if(o){const s=this.callbacks.get(a);if(typeof s=="function"){const i=Reflect.apply(s,this.proxy,[...n]);i!=null&&r.push(i)}const c=this.proxy??{};if(typeof c[a]=="function"){const i=Reflect.apply(c[a],c,[...n]);i!=null&&r.push(i)}if(l.resolved=!0,typeof l.resolve=="function"&&l.resolve(...r),l.messagingPolicy==="Once")return r}return this.children.forEach(s=>{const c=Reflect.apply(s.emit,s,[{...l},a,...n]);c!=null&&Array.isArray(c)&&Reflect.apply([].push,r,[...c])}),r}emitToChildren(l,a,...n){if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,a,n),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,a,n)){const r=l.resolve,s=l.uniqueId??"",c=(...i)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...i)};l.resolve=c}l.cachePolicy="None"}const o=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...l},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,o,[...s])}),o}on(l,a){this.callbacks.set(l,a)}}function on(e,l,a,n){const o=new pl(l,e,a);if(n&&typeof n=="object")for(const r in n)o.on(r,n[r]);return o}function Ii(e,l,a){const n=a;if(n[Ne])return n[Ne];const o=t.inject(Ne,null),r=new pl(o,a,e);if(l&&typeof l=="object")for(const s in l)r.on(s,l[s]);return n[Ne]=r,t.provide(Ne,r),t.onUnmounted(()=>{r.destroy(),n[Ne]=void 0}),r}function Bt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}class Vi{error(l,a){const n=a,o=a||t.hasInjectionContext()?Bt(a):null;o?o.emit({name:"*"},"setErrorTip",l):typeof n.setErrorTip=="function"&&n.setErrorTip(l)}reset(l){const a=l,n=l||t.hasInjectionContext()?Bt(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(l){const a=l,n=l||t.hasInjectionContext()?Bt(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(l,a,n){Array.isArray(l)||(l=[l]);const o=n,r=n||t.hasInjectionContext()?Bt(n):null,s=a.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),c=l.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&c?r?r.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):s&&!c&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(n))}getValue(l){return l.modelValue}}let Rt=new Vi;function Oi(e){Rt=e}function Ai(e){Rt?Object.assign(Rt,e):Rt=e}function Fi(e,l){pt.Schema.setValidator(e,l)}function Mi(e){pt.Schema.deleteValidator(e)}let io=["blur","clear"];function Bi(e){io=e}function so(){return io}let uo=["focus","change","setValue"];function Ri(e){uo=e}function co(){return uo}function Li(e){pt.Schema.messages(e)}function Lt(...e){const l=[];return e.forEach(a=>{a.forEach(n=>{const o=l.findIndex(r=>r.type===n.type);o!==-1&&l.splice(o,1),l.push(n)})}),l}function rn(e){return e.forEach(l=>{l.type==="required"&&(l.required===null||l.required===void 0)&&(l.required=!0),!l.type&&(l.required===!0||l.required===!1)&&(l.type="required")}),e}const Qe=Symbol("ValidateSchemaKey");class fo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(l,a,n){this.parent=l,this.descriptor=a,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let l=this.proxy.$attrs;l&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=rn(Lt(this.attrRules,this.rules)),n=[];for(let r in l){let s=l[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let i={type:r};s!==null&&typeof s=="object"&&Object.assign(i,s),n.push(i);continue}let c=this.getValidator(r);if(c!==null){let i={type:r,validator:c};n.push(i)}}this.attrRules=rn(n);const o=Lt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(l,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[l]=="function")return Reflect.apply(n[l],n,[...a]);const o=Rt;return o&&typeof o[l]=="function"?Reflect.apply(o[l],o,[...a]):null}decorate(l,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",l,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(l){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",l,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(l,a,n=!1){n?pt.Schema.setValidator(l,a):this.validators[l]=a}getValidator(l){let a=this.validators[l]??null;return a||(a=this.parent?.getValidator(l)??null),a}deleteValidator(l,a=!1){a?pt.Schema.deleteValidator(l):Reflect.deleteProperty(this.validators,l)}hasValidator(l,a=!1){if(a)return pt.Schema.hasValidator(l);{let n=Reflect.has(this.validators,l);return!n&&this.parent!==null&&(n=this.parent.hasValidator(l,!1)),n}}setRule(l){const a=Lt(this.attrRules,this.rules);l===null?this.rules=[]:Array.isArray(l)?this.rules=rn(l):this.rules=rn([l]);const n=Lt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Lt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${n}`]:a},r=this.getValue(),s={[`${n}`]:r},c=new pt.Schema(o),i=this.proxy??s;return c.validate(s,{context:i}).then(m=>{if(m.pass)this.success();else{let d="error";Array.isArray(m.errors)&&m.errors.length>0&&(d=m.errors[0].message??d,m.errors=[m.errors[0]],m.errors[0].ref=i),this.error(d)}return m}).catch(m=>{const d=m.message??`${m}`;return this.error(d),m})}}return Promise.resolve({pass:!0})}}function sn(e,l,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(r){return r[o]}}}return new fo(l,a,e)}const un=Symbol.for("EventEmitterKey");class ho{register=new Map;proxy;constructor(l){this.proxy=l}destroy(){this.proxy=null,this.register.clear()}off(l,a){let n=this.register.get(l);if(n&&Array.isArray(n)){let o=n.findIndex(r=>r===a);o!==-1&&n.splice(o,1)}}on(l,a){let n=this.register.get(l);n||(n=new Array,this.register.set(l,n)),n.push(a)}emit(l,...a){const n=this.register.get(l);n&&n.forEach(o=>{try{Reflect.apply(o,null,[l,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[l,...a])}}function Ue(e,l){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},l)}}function mo(e,l){let a=0;return function(...n){const o=new Date().getTime();o-a<l||(a=o,Reflect.apply(e,null,[...n]))}}function Pi(e,l){const a=Ue((n,o)=>{e=n,o()},l);return t.customRef((n,o)=>({get(){return n(),e},set(r){a(r,o)}}))}function _i(e){let l=!1;return function(...a){l||(l=!0,Reflect.apply(e,null,[...a]))}}function cn(e,l,a,n=0,o=!0,r){let s=l,c=0;if(o){const f=e();if(c++,f){typeof r=="function"&&r(!0);return}if(c>a){typeof r=="function"&&r(!1);return}}const i=()=>{const f=e();if(c++,f){typeof r=="function"&&r(!0);return}if(c>a){typeof r=="function"&&r(!1);return}s+=n,setTimeout(i,s)};setTimeout(i,s)}const Ke=Symbol("DomainKey"),Ct=Symbol("DataItemsKey");class fn{_parent=null;get parent(){return this._parent}set parent(l){this._parent=l}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(l){this._broadcast=l}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(l){this._validateSchema=l}_props=t.reactive({});constructor(l=null){this._name=l}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(l,a=[]){for(const n in l){const o=l[n];a.length>0&&a.indexOf(o)!==-1||(this._props[n]=o)}}has(l){if(Reflect.has(this._props,l)){const a=this._props[l];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(l)}delete(l){Reflect.deleteProperty(this._props,l)}set(l,a){this._props[l]=a}get(l,a){if(Reflect.has(this._props,l)){const n=this._props[l];if(n!=null)return n}return this.parent==null?a:this.parent.get(l,a)}getForParent(l,a){return this.parent==null?a:this.parent.get(l,a)}getForSelf(l){return this._props[l]}getAll(l){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,l)){const o=n._props[l];a.push(o)}n=n._parent}return a}}const qi=new fn;function Tt(){return qi}function dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ke]??t.inject(Ke,null):t.inject(Ke,null)}const bl=Symbol("OriginalDateKey");function vl(e,l,a=[],n){const o=t.getCurrentInstance();let r=o?.proxy,s=t.inject(Ke,null);s===null&&(s=Tt());const c=e||l.prop||l.name;let i=new fn(c);i.parent=s;const f=y=>{r[bl]||w(y),i?.set("modelValue",y)},m=()=>i?.getForSelf("modelValue")??null,d=()=>r[bl]??null,w=y=>{const h={};xt(!0,h,t.toRaw(y)),r[bl]=h};t.isReactive(l)||typeof l=="function"?t.watch(l,y=>{i?.merge(y,a)},{immediate:!0}):i.merge(l,a),l.modelValue&&w(l.modelValue);const S=(y,h)=>{i?.set(y,h)},T=y=>i?.getForSelf(y)??null;if(r[Ke]=i,t.provide(Ke,i),o!==null){const y=t.inject(Ne,null),h=on(r,y,c,n);i.broadcast=h,r[Ne]=h,t.provide(Ne,h),r.broadcast=(u,N,...M)=>Reflect.apply(h.emit,h,[u,N,...M]);const A=t.inject(Qe,null),g=sn(r,A,{componentName:""});i.validateSchema=g,r[Qe]=g,t.provide(Qe,g),r[Ct]=new Map,r.validate=(u=!0)=>{const N=[];let M=null;const O={deep:!1};if(u===!0)M={name:"*"};else if(Array.isArray(u)&&u.length>0){const k=u;M={name:E=>E?k.indexOf(E)!==-1:!1}}else if(u!=null&&typeof u=="object"){const k=u;if(Object.assign(O,k),Array.isArray(k.include)&&k.include.length>0){const E=k.include;M={name:v=>v?E.indexOf(v)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const E=k.exclude;M={name:v=>v?E.indexOf(v)===-1:!1}}else M={name:"*"}}if(M){const k=h?.emitToChildren(M,"validate",O);k&&Reflect.apply([].push,N,k)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(k=>{let E=[];return k.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(E=[...E,...v.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,N=!0,M=!1)=>{if(M===!0){Reflect.ownKeys(u).forEach(k=>{let E=String(k);const v={componentName:"",fieldName:E,pureDataValidate:!0};if(i){const H=yo(i,E,v,h,g);r[Ct].set(E,H);const x=u[E];x&&H.validateSchema.setRule(x)}});return}if(N){const O=Reflect.ownKeys(u),k={name:E=>O.includes(E),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(k,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let N=null;if(u===!0)N={name:"*"};else if(Array.isArray(u)&&u.length>0){const M=u;N={name:O=>O?M.indexOf(O)!==-1:!1}}else if(u!=null&&typeof u=="object"){const M=u;if(Array.isArray(M.include)&&M.include.length>0){const O=M.include;N={name:k=>k?O.indexOf(k)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const O=M.exclude;N={name:k=>k?O.indexOf(k)===-1:!1}}else N={name:"*"}}N&&h?.emitToChildren(N,"clearValidate",!1)},r.resetFields=u=>{const N=m();if(!N)return;const M={};if(xt(!0,M,d()??{}),Array.isArray(u))u.forEach(O=>{N[O]=M[O]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(k=>{N[k]=M[k]});else if(u&&Array.isArray(u.exclude)){let O=u.exclude??[];Reflect.ownKeys(M).forEach(k=>{O.includes(k)||(N[k]=M[k])})}else Object.assign(N,M);r.clearValidate(u)},r.setModelValue=(u,N)=>{if(!N||N===c)f(u);else{const M={name:N,messagingPolicy:"Once"};h?.emitToChildren(M,"setModelValue",u)}},r.getModelValue=()=>m(),r.setDomainProperty=(u,N)=>{S(u,N)},r.getDomainProperty=u=>T(u),setTimeout(function(){h?.pull()},0)}return t.onUnmounted(function(){i?.validateSchema&&(i.validateSchema.destroy(),r[Qe]=void 0,t.provide(Qe,null)),i?.broadcast&&(i?.broadcast?.destroy(),r[Ne]=void 0,t.provide(Ne,null)),i?.destroy(),r[Ke]=void 0,t.provide(Ke,null),r[Ct]&&(r[Ct].clear(),r[Ct]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,i=null,r=null}),i}function go(e,l,a=[]){let o=t.getCurrentInstance()?.proxy,r=t.inject(Ke,null);r===null&&(r=Tt());const s=e||l.prop||l.name;let c=new fn(s);return c.parent=r,t.isReactive(l)||typeof l=="function"?t.watch(l,i=>{c?.merge(i,a)},{immediate:!0}):c.merge(l,a),o[Ke]=c,t.provide(Ke,c),t.onUnmounted(()=>{c?.destroy(),o[Ke]=void 0,t.provide(Ke,null),c=null,o=null}),c}function Ee(e,l,a){const o=t.getCurrentInstance()?.proxy,r=l??"",s=t.inject(Ne,null);let c=on(o,s,r,a);o[Ne]=c,t.provide(Ne,c),o.broadcast=(T,y,...h)=>c?Reflect.apply(c.emit,c,[T,y,...h]):null;const i=t.inject(Qe,null);e.fieldName=e.fieldName??r;let f=sn(o,i,e);o[Qe]=f,t.provide(Qe,f),o.validate=(T=null)=>{if(!f)return Promise.resolve({pass:!0});const y=[];let h=!1,A=!1;if(Array.isArray(T)&&T.indexOf(r)!==-1)A=!0,h=!0;else if(T&&typeof T=="object"){const g=T,u=g.ignoreDisabled??!0,N=g.ignoreReadonly??!0,M=g.ignoreHidden??!0;u===!0&&e.disabled===!0||N===!0&&e.readonly===!0||M===!0&&to(o.$el)?A=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),A=!0),h=g.deep??!1}else typeof T=="boolean"&&(h=T),A=!0;if(A){const g=f?.validate();y.push(g)}if(h){let g=null;const u={deep:!1};if(T===!0)g={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;g={name:M=>M?N.indexOf(M)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Object.assign(u,N),Array.isArray(N.include)&&N.include.length>0){const M=N.include;g={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const M=N.exclude;g={name:O=>O?M.indexOf(O)===-1:!1}}else g={name:"*"}}if(g&&c){const N=c.emitToChildren(g,"validate",u);Reflect.apply([].push,y,N)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(g=>{let u=[];return g.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(u=[...u,...N.errors])}),u.length>0?{pass:!1,errors:u}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=T=>f?.setRule(T),o.setNameValidateRules=(T,y=!1)=>{const h=T[r];if(h&&f?.setRule(h),y&&c){const A={name:g=>Reflect.ownKeys(T).includes(g)};c.emitToChildren(A,"setNameValidateRules",T,!1)}},o.clearValidate=(T=null)=>{(!Array.isArray(T)||T.indexOf(l??"")!==-1)&&f?.clear();let y=null;if(T===!0)y={name:"*"};else if(Array.isArray(T)&&T.length>0){const h=T;y={name:A=>A?h.indexOf(A)!==-1:!1}}else if(T!=null&&typeof T=="object"){const h=T;if(Array.isArray(h.include)&&h.include.length>0){const A=h.include;y={name:g=>g?A.indexOf(g)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;y={name:g=>g?A.indexOf(g)===-1:!1}}else y={name:"*"}}y&&c&&c.emitToChildren(y,"clearValidate",!1)};let m=new ho(o);o[un]=m;const d=Ue((T="validate")=>{f&&(T==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:so()).forEach(T=>{m&&m.on(T,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:co()).forEach(T=>{m&&m.on(T,y=>{d("reset")})}),setTimeout(function(){c?.pull()},0),t.onUnmounted(()=>{c?.destroy(),o[Ne]=void 0,t.provide(Ne,null),c=null,f?.destroy(),o[Qe]=void 0,t.provide(Qe,null),f=null,m?.destroy(),o[un]=void 0,m=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:c,validateSchema:f,emitEvent:(T,...y)=>{m&&Reflect.apply(m.emit,m,[T,...y])},onEvent:(T,y)=>{m&&Reflect.apply(m.on,m,[y])},offEvent:(T,y)=>{m&&Reflect.apply(m.off,m,[y])}}}function yo(e,l,a,n,o){const r={},s=l??"",c={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return c.getValue()}};let i=sn({},o,a);r.validate=(m=null)=>{if(!c.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let w=!1,S=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)S=!0,w=!0;else if(m&&typeof m=="object"){const T=m;Array.isArray(T.include)&&T.include.indexOf(s)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(s),S=!0,w=T.deep??!1}else typeof m=="boolean"&&(w=m),S=!0;if(S&&i){const T=i.validate();d.push(T)}if(w){let T=null;const y={deep:!1};if(m===!0)T={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;T={name:A=>A?h.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(y,h),Array.isArray(h.include)&&h.include.length>0){const A=h.include;T={name:g=>g?A.indexOf(g)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;T={name:g=>g?A.indexOf(g)===-1:!1}}else T={name:"*"}}if(T&&f){const h=f.emitToChildren(T,"validate",y);Reflect.apply([].push,d,h)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(T=>{let y=[];return T.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(y=[...y,...h.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>i?.setRule(m),r.setNameValidateRules=m=>{const d=m[s];d&&i?.setRule(d)};let f=on(null,n,s,r);return t.onUnmounted(()=>{i=null,f=null}),{broadcast:f,validateSchema:i}}function wl(){let l=t.getCurrentInstance()?.proxy,a=new ho(l);return l[un]=a,t.onUnmounted(()=>{a?.destroy(),l[un]=void 0,a=null,l=null}),{emitEvent:(n,...o)=>{a&&Reflect.apply(a.emit,a,[n,...o])},onEvent:(n,o)=>{a&&Reflect.apply(a.on,a,[o])},offEvent:(n,o)=>{a&&Reflect.apply(a.off,a,[o])}}}const Se=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ve(e,l)}px`:"",zi=Se;function ve(e,l=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&l>0?e*l: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 o=Number(e.substring(0,a)),r=1;if(ft){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),c=s.indexOf("px");c>0&&(r=Number(s.substring(0,c)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*l;const n=Number(e);return isNaN(n)?0:n}const ht="PageStateKey";function at(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=ve(e.top)),e.left!==null&&e.left!==void 0&&(l.left=ve(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=ve(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=ve(e.right))),l}function Sl(e,l,a={},n=!0,o=-1,r=-1,s=0,c=0){if(e.headerHeight=ve(a.headerHeight??l.headerHeight??-1),e.headerPadding=at(a.headerPadding??l.headerPadding),e.footerHeight=ve(a.footerHeight??l.footerHeight??-1),e.footerPadding=at(a.footerPadding??l.footerPadding),e.contentPadding=at(a.contentPadding??l.contentPadding),n){const i=a.height??l.height;i?e.height=ve(i,r):e.height=ve(r)-ve(s,r)-ve(c,r),e.width=ve(a.width??l.width??0,o)}}function po(e,l={}){const a={top:null,bottom:null,right:null,left:null},n={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},o=Object.assign(e.get("safeAreaInset")??{},l.safeAreaInset??{});o&&(n.safeAreaTop=ve(o.top),n.safeAreaBottom=ve(o.bottom),n.safeAreaLeft=ve(o.left),n.safeAreaRight=ve(o.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,c=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Sl(n,r,l,!0,s,c,i,f);const m=t.reactive(n),d=e.getForParent(ht);d&&(n.height=gn(e,d),n.width=yn(e,d),t.watch([()=>gn(e,d),()=>yn(e,d)],([S,T])=>{m.height=S,m.width=T}));const w=!d;return t.watch([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,T,y=-1,h=-1,A=0,g=0])=>{Sl(m,T,l,w,y,h,A,g)}),e.set(ht,m),m}function dn(e){return e.get(ht)}function hn(e,l){if(l=l??e.get(ht),l&&l.headerMounted){const a=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+a}return 0}function mn(e,l){if(l=l??e.get(ht),l&&l.footerMounted){const a=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+a}return 0}function gn(e,l){if(l=l??e.get(ht),l){if(l.contentInnerHeight)return l.contentInnerHeight;const a=hn(e,l),n=mn(e,l);return l.height-a-n-(l.contentPadding.top??0)-(l.contentPadding.bottom??0)}return 0}function yn(e,l){return l=l??e.get(ht),l?l.contentInnerWidth??l.width-(l.contentPadding.left??0)-(l.contentPadding.right??0):0}function ji(e){return!!e.getForParent(ht)}const xl=Symbol.for("InnerPageScopeKey");function Cl(e){t.provide(xl,e)}function Pt(e=!1){return t.inject(xl,e)}const Tl=Symbol.for("AbstractPageScopeKey");function bo(e){t.provide(Tl,e)}function _t(e=!1){return t.inject(Tl,e)}var Ge=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ge||{});function pn(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function Fe(e,l,a=1,n){const o=dt();return o==null?e:a===0?t.computed(()=>{const r=o.getAll(l);for(let c=r.length-1;c>=0;c--){const i=r[c];if(pn(i,n))return i}const s=e.value;return pn(s,n)?s:null}):t.computed(()=>{const r=e.value;if(pn(r,n))return r;const s=o.getAll(l);for(let c=0;c<s.length;c++){const i=s[c];if(pn(i,n))return i}return null})}function Me(e){return Fe(e,"readonly",1)}function Be(e){return Fe(e,"disabled",1)}function pe(e,l="modelValue",a=null,n){const o=t.toRef(e,l);let r=o.value;typeof a=="function"&&(r=a(o.value));const s=t.ref(r);return t.watch(o,c=>{if(typeof a=="function"){const i=a(c);i!==s.value&&(s.value=i,n&&n("setValue",i))}else c!==s.value&&(s.value=c,n&&n("setValue",c))}),s}const vo=new Map,bn=new Map;let kl=null;function Hi(e){kl=e}function wo(e,l,a){if(a){let n=bn.get(a);n||(n=new Map,bn.set(a,n)),n.set(e,l)}else vo.set(e,l)}function Re(e,l,a){!a&&kl&&(a=kl(e)??void 0);let n=null;if(a){let o=bn.get(a);o&&(n=o.get(l))}return n||(n=vo.get(l)),n}function Ki(e,l){for(let a in e){const n=e[a];wo(a,n,l)}}function Wi(e){bn.delete(e)}function Yi(){return{top:0,left:0,bottom:0,right:0}}function Ui(){if(ft){const e=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:l,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Gi(e,l){if(l.componentPrefix){const a=e.indexOf("-");return`${l.componentPrefix}${e.slice(a)}`}return e}class Xi{packages;installers;_version;get version(){return this._version}constructor(l,a,n){this.packages=l,this.installers=a,this._version=n}install(l,a={}){a?.install!==!1&&(this.packages.forEach(o=>{if(o.install)l.use(o);else if(o.name){const r=Gi(o.name,a);l.component(r,o)}}),this.installers.forEach(o=>{o(l,a)}));const n=Tt();if(a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o={...a},r=Ue(()=>{const c={...o};this.updateLayout(c,n)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(a,n)}updateLayout(l,a){const n=l.headerBarHeight??0,o=l.footerBarHeight??0,r=xt({},Yi(),l.safeAreaInset),s=Ui(),c=xt({},s.pageLayout,l.pageLayout);a=a??Tt(),a.set("safeAreaInset",r),a.set("headerBarHeight",n),a.set("footerBarHeight",o),a.set("pageLayout",c),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const f in l)i.indexOf(f)===-1&&a.set(f,l[f])}setScopeGetter(l){Hi(l)}setAPI(l,a,n){wo(l,a,n)}getAPI(l,a,n){return Re(l,a,n)}batchSetAPI(l,a){Ki(l,a)}clearScopeAPI(l){Wi(l)}getRootDomain(){return Tt()}}const Zi=[F.ElAffix,F.ElAlert,F.ElAutocomplete,F.ElAutoResizer,F.ElAvatar,F.ElBacktop,F.ElBadge,F.ElBreadcrumb,F.ElBreadcrumbItem,F.ElButton,F.ElButtonGroup,F.ElCalendar,F.ElCard,F.ElCarousel,F.ElCarouselItem,F.ElCascader,F.ElCascaderPanel,F.ElCheckTag,F.ElCheckbox,F.ElCheckboxButton,F.ElCheckboxGroup,F.ElCol,F.ElCollapse,F.ElCollapseItem,F.ElCollapseTransition,F.ElColorPicker,F.ElConfigProvider,F.ElContainer,F.ElAside,F.ElFooter,F.ElHeader,F.ElMain,F.ElDatePicker,F.ElDescriptions,F.ElDescriptionsItem,F.ElDialog,F.ElDivider,F.ElDrawer,F.ElDropdown,F.ElDropdownItem,F.ElDropdownMenu,F.ElEmpty,F.ElForm,F.ElFormItem,F.ElIcon,F.ElImage,F.ElImageViewer,F.ElInput,F.ElInputNumber,F.ElLink,F.ElMenu,F.ElSubMenu,F.ElMenuItem,F.ElMenuItemGroup,F.ElPageHeader,F.ElPagination,F.ElPopconfirm,F.ElPopover,F.ElPopper,F.ElProgress,F.ElRadio,F.ElRadioButton,F.ElRadioGroup,F.ElRate,F.ElResult,F.ElRow,F.ElScrollbar,F.ElSelect,F.ElOption,F.ElOptionGroup,F.ElSelectV2,F.ElSkeleton,F.ElSkeletonItem,F.ElSlider,F.ElSpace,F.ElSteps,F.ElStep,F.ElSwitch,F.ElTable,F.ElTableColumn,F.ElTableV2,F.ElTabs,F.ElTabPane,F.ElTag,F.ElTimePicker,F.ElTimeSelect,F.ElTimeline,F.ElTimelineItem,F.ElTooltip,F.ElTransfer,F.ElTree,F.ElTreeSelect,F.ElTreeV2,F.ElUpload,F.ElStatistic,F.ElCountdown,F.ElSegmented,F.ElAnchor,F.ElAnchorLink,F.ElWatermark,F.ElMessageBox,F.ElMessage,F.ElNotification,F.ElSplitter],Qi=[F.ElInfiniteScroll,F.ElLoading,F.ElMessage,F.ElMessageBox,F.ElNotification,F.ElPopoverDirective],Ji=(e,l={})=>{const a=l.componentPrefix??"fox",n=a[0].toUpperCase()+a.slice(1);Zi.forEach(o=>{let r=o.name;typeof r=="string"?(r=`${n}${r.slice(2)}`,e.component(r,o)):e.use(o)}),Qi.forEach(o=>{e.use(o)})};function ue(e){const l="fox-"+e;return{componentName:l,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=l,a.install=n=>{n.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}function we(e,l=null){if(l||(l=t.getCurrentInstance()),l&&l.proxy){let a=l.proxy;Object.assign(a,e)}}const ke={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Oe={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},So={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}},xo={name:{type:String,required:!1},prop:{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}},Co=[];for(const e in xo)Co.push(e);const es={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}},ts=(e,l)=>({inheritAttrs:!0,props:{...ke,...So,...es},setup(a,{slots:n}){const o=_t(!1),r=Pt(!1),s=vl(a.name,a);if(s){const d=po(s,a);we({getPageContentHeight:()=>gn(s,d),getPageContentWidth:()=>yn(s,d),getPageHeaderHeight:()=>hn(s,d),getPageFooterHeight:()=>mn(s,d)}),d&&r&&(d.contentHeight="100%")}const c=t.computed(()=>({[e]:!0,"is-inner":r})),i=t.computed(()=>({})),f=t.getCurrentInstance(),m=(d,w=!1)=>{const S=f?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(d,!0,w)};return t.watch([()=>a.rules,()=>a.pureDataRules],([d,w],[S,T])=>{if(d&&S){const y=t.toRaw(S),h=t.toRaw(d),A=h?Reflect.ownKeys(h):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{A.includes(u)||(h[u]=[])}),m(h)}if(w&&T){const y=t.toRaw(T),h=t.toRaw(w),A=h?Reflect.ownKeys(h):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{A.includes(u)||(h[u]=[])}),m(h,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);m(d)}if(a.pureDataRules){const d=t.toRaw(a.pureDataRules);m(d,!0)}}),()=>{if(o)return n?.default?.();{const d={class:c.value,style:i.value};return t.h("div",d,[n?.default?.()])}}}}),{componentName:ns,create:ls}=ue("page"),$l=ls(ts(ns));function Dl(e){const l=t.unref(e);return{width:l.offsetWidth,height:l.offsetHeight}}function vn(e){const l=t.unref(e),a=window.getComputedStyle(l,null),n=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:l.clientWidth-n-o,height:l.clientHeight-r-s}}const To={headerbar:{},radio:{},checkbox:{}};function as(e){Object.assign(To,e)}function ko(){return To}const os=(e,l,a,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const s=_t(!1),c=Pt(!1),i=s?null:dt(),f=i?dn(i):null;f&&(f.headerMounted=!0);const m=ko(),d=e,w=t.computed(()=>{const C={[d]:!0,[`${d}--border`]:o.border,[`${d}--fixed`]:o.fixed};return c||(C[`${d}--safe-area-inset-top`]=o.safeAreaInsetTop),C}),S=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${o.align}`]:!0})),T=Ye(o.height)?null:ve(o.height),y=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return C;if(i&&f){const D=at(o.padding??f.headerPadding);return Object.assign(C,D),Ye(T)||(f.headerHeight=T),C.height=f.headerHeight,C.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(D.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(Ye(T)||(C.height=T),o.padding){const D=at(o.padding);Object.assign(C,D)}return C}),h=t.ref(null),A=()=>{if(f&&h.value&&h.value.offsetParent!==null){if(!n){const C=Dl(h.value);f.headerAllHeight=C.height}return f.headerMounted=!0,!0}return!1},g=Ue(A,120);let u=null;t.onMounted(()=>{s||f&&(cn(A,50,5,50,!0),window.ResizeObserver&&h.value&&(u=new window.ResizeObserver(g),u.observe(h.value)))}),t.onUnmounted(()=>{s||f&&(f.headerMounted=!1,u&&(u.disconnect(),u=null))});const N=t.computed(()=>{const C={};return s||(y.value.height!==null&&y.value.height!==void 0&&(C.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(C.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(C.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(C.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(C.paddingBottom=`${y.value.bottom}px`)),C}),M=t.computed(()=>{const C=y.value?.height;return Ye(C)||C<0?!0:C>0});function O(){r.emit("back")}function k(){r.emit("click-title")}function E(){r.emit("click-right")}function v(){r.emit("click-right-text")}const H=()=>{if(!o.leftShow)return null;const C=[];if(r.slots.left)C.push(r.slots.left());else{if(r.slots.leftIcon){const D=t.h("view",{class:"left-icon",onClick:O},[r.slots.leftIcon()]);C.push(D)}else{const D=o.leftIcon??m.headerbar.Left??a,B=t.h("view",{class:"left-icon",onClick:O},[t.h(D)]);C.push(B)}if(o.leftText){const D=t.h("view",{class:"left-text",onClick:O},[o.leftText]);C.push(D)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__left"},C)},x=()=>{if(!o.rightShow)return null;const C=[];if(r.slots.right)C.push(r.slots.right());else{if(o.rightText){const D=t.h("view",{class:"right-text",onClick:v},[o.rightText]);C.push(D)}if(r.slots.rightIcon){const D=t.h("view",{class:"right-icon",onClick:E},[r.slots.rightIcon()]);C.push(D)}else if(o.rightIcon){const D=t.h("view",{class:"right-icon",onClick:E},[t.h(o.rightIcon)]);C.push(D)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__right"},C)},_=()=>{if(!o.titleShow)return null;const C=[],D=r.slots.default?r.slots.default():null;if(D)C.push(D);else{if(o.title){const B=t.h("view",{class:"title-text"},[o.title]);C.push(B)}if(r.slots.titleIcon){const B=t.h("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);C.push(B)}else if(o.titleIcon){const B=t.h("view",{class:"title-icon",onClick:k},[t.h(o.titleIcon)]);C.push(B)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__title"},C)},X=()=>{const C=[],D=r.slots.bottom?r.slots.bottom():null;return D&&C.push(D),C.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(s||!M.value)return null;const C=[];if(r.slots.all)C.push(r.slots.all());else{const B=[],P=H();P&&B.push(P);const J=_();J&&B.push(J);const Y=x();if(Y&&B.push(Y),B.length>0){const ee=t.h("view",{class:S.value},B);C.push(ee)}const j=X();j&&C.push(j)}if(C.length===0)return null;const D={class:w.value,style:N.value,ref:h};return t.h("view",D,C)}}}),{componentName:rs,create:is,scope:ss}=ue("header-bar"),Nl=is(os(rs,ss,Ie.ArrowLeft));function us(e,l,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(n,o){const r=_t(!1),s=Pt(!1),c=r?null:dt(),i=c?dn(c):null,f=t.computed(()=>{const g=e,u={[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed};return s||(u[`${g}--safe-area-inset-bottom`]=n.safeAreaInsetBottom),u}),m=Ye(n.height)?null:ve(n.height),d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return g;if(c&&i){const u=at(n.padding??i.footerPadding);return Object.assign(g,u),Ye(m)||(i.footerHeight=m),g.height=i.footerHeight,g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(u.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(Ye(m)||(g.height=m),n.padding){const u=at(n.padding);Object.assign(g,u)}return g}),w=t.computed(()=>{const g=d.value?.height;return Ye(g)||g<0?!0:g>0}),S=t.ref(null),T=()=>{if(i&&S.value&&S.value.offsetParent!==null){if(!a){const g=Dl(S.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1},y=Ue(T,120);let h=null;t.onMounted(()=>{r||i&&(cn(T,50,5,50,!0),window.ResizeObserver&&S.value&&(h=new window.ResizeObserver(y),h.observe(S.value)))}),t.onUnmounted(()=>{r||i&&(i.footerMounted=!1,h&&(h.disconnect(),h=null))});const A=t.computed(()=>{const g={};return r||(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()=>{if(r||!w.value)return null;const g=o.slots.default?o.slots.default():[],u={ref:S,class:f.value,style:A.value};return t.h("view",u,g)}}}}const{componentName:cs,create:fs}=ue("footer-bar"),El=fs(us(cs));function ds(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:n,attrs:o}){const r=_t(!1),s=Pt(!1),c=r?null:dt(),i=t.computed(()=>({[e]:!0})),f=c?dn(c):null,m=t.computed(()=>{const y={};if(r)return y;if(c&&f){if(a.padding){const k=at(a.padding);Object.assign(f.contentPadding,k)}const h=hn(c,f),A=mn(c,f);let g="";f.contentHeight?g=`${f.contentHeight}`:g=`${f.height}px`,y.height=g;let u=(f&&f.contentPadding&&f.contentPadding.top)??-1;(u>=0||h>0)&&(u=u<0?0:u,y.paddingTop=`${h+u}px`);let N=(f&&f.contentPadding&&f.contentPadding.bottom)??-1;(N>=0||A>0)&&(N=N<0?0:N,y.paddingBottom=`${A+N}px`);const M=(f&&f.contentPadding&&f.contentPadding.left)??-1;M>=0&&(y.paddingLeft=`${M}px`);const O=(f&&f.contentPadding&&f.contentPadding.right)??-1;return O>=0&&(y.paddingRight=`${O}px`),y}if(a.padding){const h=at(a.padding);h.left&&(y.paddingLeft=`${h.left}px`),h.top&&(y.paddingTop=`${h.top}px`),h.right&&(y.paddingRight=`${h.right}px`),h.bottom&&(y.paddingBottom=`${h.bottom}px`)}return y}),d=t.ref(null),w=()=>{if(f&&d.value){const y=vn(d.value);f.contentInnerHeight=y.height,f.contentInnerWidth=y.width}},S=Ue(w,120);let T=null;return t.onMounted(()=>{s||r||(requestAnimationFrame(w),window.ResizeObserver&&d.value&&(T=new window.ResizeObserver(S),T.observe(d.value)))}),t.onUnmounted(()=>{s||r||T&&(T.disconnect(),T=null)}),()=>{if(r)return n.default?.();{const y=a.tag??"view",h={...o,ref:d,class:i.value,style:m.value};return t.h(y,h,n)}}}}}const{componentName:hs,create:ms}=ue("content"),Il=ms(ds(hs)),kt="GroupStateKey",$o=Symbol.for("GroupScopeKey");function wn(){return t.inject($o,!1)}function Sn(e=!0){t.provide($o,e)}function gs(e,l={}){Reflect.ownKeys(l).forEach(n=>{if(typeof n!="string")return;const o=l[n];Ye(o)||(e[n]=o)})}function ys(e,l={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gs(n,l);const o=t.shallowRef(n),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(kt,r),r}function Vl(e,l,a=-1,n=-1,o=!1,r,s,c){const i=e.get(kt);if(!i)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),n===-1&&(n=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const m=ve(r),d=ve(s);c||(c=f.type??"grid");const w=()=>{const S=l===""||l===-1,T=ve(l);let y=be(a);const h=ve(n);if(!S){let u=(T-(y-1)*h)/y;for(;d!==-1&&u>d;)y++,u=(T-(y-1)*h)/y;for(;m!==-1&&y>1&&u<m;)y--,u=(T-(y-1)*h)/y}let A=!1;const g=i.layout;g.value.width=l,g.value.column!==y&&(g.value.column=y,A=!0),g.value.gutter!==h&&(g.value.gutter=h,A=!0),g.value.type!==c&&(g.value.type=c,A=!0),A&&t.triggerRef(g)};if(o)w();else{const S=++i.passport;setTimeout(()=>{S===i.passport&&w()},50)}}function xn(e,l=!1){let a;return l?a=e.getForParent(kt):a=e.get(kt),a.layout}function Cn(e,l=!1){let a;return l?a=e.getForParent(kt):a=e.get(kt),a.order}function Do(e,l=1){if(l==="stretch")return-1;const a=be(l);return a===-1?100:100*a/e}function Tn(e,l,a=1,n=0,o){const r={};let s=0;o?s=ve(o):s=Do(l.column,a),s>0&&(r.width=`${s}%`);const c=Do(l.column,n);c>0&&(r["margin-left"]=`${c}%`);const i=l.gutter/2;return i>0&&(r["padding-left"]=`${i}px`,r["padding-right"]=`${i}px`),r}function kn(e,l,a=1,n=0){if(a==="stretch"){const i=e.index%l.column,f=i+(l.column-i);return e.index=e.index+(f-i),{"grid-column":`${i+1} / -1`}}let o=be(a);if(o===-1){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}if(o>l.column){const i=e.index%l.column;return l.column,i==0?e.index=e.index+l.column:e.index=e.index+(l.column-i)+l.column,{"grid-column":"1 / -1"}}const r=be(n)%l.column;let s=(e.index+r)%l.column,c=s+o;return c>l.column?(s=0,c=s+o,e.index=e.index+(l.column-s)+o):e.index=e.index+r+o,r>0?{"grid-column":`${s+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const No=Symbol("RollingStateKey");function ps(e){t.provide(No,e)}function bs(){return t.inject(No,null)}function Ol(e){let l=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));l=e.clientHeight-o-r}else l=e.offsetHeight;return l}function vs(e){let l=Ol(e);if(l<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),l=Ol(a),document.body.removeChild(a)}return l}function ws(e,l,a){const n=typeof e=="number"?e:parseInt(e),o=typeof l=="number"?l:parseInt(l),r=typeof a=="number"?a:parseInt(a);if(n<=0)return"1fr";const s=(n-(o-1)*r)/o;return s>0?`${s}px`:"1fr"}const Ss={...ke,...So,...xo};function xs(e,l,a){return{props:Ss,emits:["update:collapse","header-click"],setup(n,o){const r=vl(n.prop??n.name,n,Co),s=ys(r,{type:n.type}),c=wn();Sn(!0);const i=n.rollingDisplay?bs():null,f=t.ref(null),m=t.computed(()=>n.rollingDisplay?i&&!i.disabled:!1),d=t.computed(()=>c&&r?xn(r,!0).value:null),w=t.getCurrentInstance(),S=($,W=!1)=>{const V=w?.proxy;V&&typeof V.setNameValidateRules=="function"&&V.setNameValidateRules($,!0,W)};t.watch([()=>n.rules,()=>n.pureDataRules],([$,W],[V,p])=>{if($&&V){const z=t.toRaw(V),q=t.toRaw($),ne=q?Reflect.ownKeys(q):[];(z?Reflect.ownKeys(z):[]).forEach(ie=>{ne.includes(ie)||(q[ie]=[])}),S(q)}if(W&&p){const z=t.toRaw(p),q=t.toRaw(W),ne=q?Reflect.ownKeys(q):[];(z?Reflect.ownKeys(z):[]).forEach(ie=>{ne.includes(ie)||(q[ie]=[])}),S(q,!0)}},{deep:!0});const T=e,y=t.computed(()=>{const $={};$.height=D.value;const W=c?Cn(r,!0):null;if(d.value&&W){if(d.value.type==="grid"){const V=kn(W,d.value,n.span,n.offset);Object.assign($,V)}else if(d.value.type==="flow"){const V=Tn(W,d.value,n.span,n.offset,n.width);Object.assign($,V)}}else if(n.width){const V=Se(n.width);$.width=V}return $}),h=t.computed(()=>{const $=s.layout.value.type;return $==="grid"||$==="flow"?{[`${T}--${$}`]:!0,[`${T}--${$}-justify-${n.justify}`]:!0,[`${T}--${$}-align-${n.align}`]:!0,[`${T}--gutter`]:!0}:{[`${T}--${$}`]:!0,[`${T}--gutter`]:!0}}),A=t.computed(()=>{if(s.layout.value.type==="grid"){let W="";if(n.columnWidth)W=`repeat(auto-fill, ${n.columnWidth})`;else{const V=ws(E.value,s.layout.value.column,s.layout.value.gutter);W=`repeat(${s.layout.value.column}, ${V})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":W}}}),g=t.toRef(n,"gutter"),u=t.toRef(n,"column"),N=t.computed(()=>c||m.value?!0:de(n.isWrap)),M=[],O=$=>{M.push($)},k=()=>{let $=M.length;M.splice(0,$)},E=t.ref(-1),v=$=>{const W=vn($).width;W>0&&W!==E.value&&(E.value=W)};Vl(r,E.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([E,u,g],([$,W,V])=>{s.order.index=0,Vl(r,$,W,V,!1,n.minItemWidth,n.maxItemWidth,n.type)});const H=t.computed(()=>B.value?n.expandText??"":n.collapseText??""),x=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),X=t.ref(),C=t.ref(),D=t.computed(()=>P.value||Se(n.height)||""),B=t.ref(!1),P=t.ref(""),J=t.ref(!1);let Y=-1;const j=($,W=!0)=>{const V=X.value;if(V&&B.value!==$){if(Y=Y===-1?vs(V):Y,J.value=!0,W)if(V.style["will-change"]="height",V.ontransitionend=function(){V.ontransitionend=null,this.style["will-change"]="auto",$||(P.value="",J.value=!1)},$){let p=0;n.collapseHeight?p=n.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(p=C.value.offsetHeight),P.value=`${Y}px`,t.nextTick(()=>{P.value=`${p}px`})}else P.value=`${Y}px`;else if($){let p=0;n.collapseHeight?p=n.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(p=C.value.offsetHeight),P.value=`${p}px`}else J.value=!1,P.value=`${Y}px`;B.value=$,o.emit("update:collapse",$)}};t.watch(()=>n.collapse,$=>{j($)});const ee=$=>{o.emit("header-click",$)},U=()=>{K()},K=$=>{$=$??!B.value,j($)};we({toggleCollapse:K,doLayout:()=>{M[0]&&(v(M[0]),Vl(r,E.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let Z=null,R=!0;const te=$=>{if(n.rules){const W=t.toRaw(n.rules);S(W)}if(n.pureDataRules){const W=t.toRaw(n.pureDataRules);S(W,!0)}if(ft&&($&&j(de(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const W=M[0];if(v(W),window.ResizeObserver){const V=Ue(()=>v(W),120);Z=new window.ResizeObserver(V),Z.observe(W)}}},le=()=>{Z?.disconnect(),Z=null},Q=!m.value||i?.acquire();Q&&(f.value=m.value?!0:null),t.onMounted(()=>{if(Q&&(te(R),R=!1),m.value&&i){let $=null,W=i.initialHeight;i.observe(X.value,V=>{if(V!==f.value)if(V)f.value=!0,B.value||(P.value=""),$=setTimeout(()=>{$=null,f.value!==!1&&(te(R),R=!1)},100);else{if($!==null&&clearTimeout($),f.value=!1,!B.value)if(R)P.value=i.initialHeight;else{let p=Ol(X.value);p<=0?P.value=W:(P.value=`${p}px`,W=P.value)}R||le()}})}}),t.onUnmounted(()=>{Z?.disconnect(),i&&i.unobserve(X.value)});const I=($="right")=>{const W=[];if(H.value){const z={class:x.value},q=t.h("span",z,[H.value]);W.push(q)}const V={class:_.value},p=a(n.collapseIcon,V);return p&&W.push(p),W.length>0?t.h("div",{class:{[`${T}__header-collapse`]:!0,[`is-${$}`]:!0},onClick:U},W):null},L=($,W,V,p)=>{const z={...h.value};if(W===0&&(z[`${T}__first`]=!0),V>=p-1&&(z[`${T}__last`]=!0),N.value===!1){const q=o.attrs.class;q&&(z[`${q}`]=!0)}return t.h("div",{ref:O,key:`${W}`,class:z,style:A.value},$)};return()=>{const $=n.prop??n.name;if(m.value&&f.value!==!0){const q=n.tag||"div";return t.h(q,{ref:X,prop:$,class:{[`${T}`]:!0,"is-collapse":J.value},style:y.value},[])}s.order.index=0;const W=[];let V=0;if(o.slots.header){const q={key:`${V++}`,ref:C,class:{[`${T}__header`]:!0,[`${T}__first`]:!0},onClick:ee},ne=t.h("div",q,[o.slots.header()]);W.push(ne)}else{const q=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=I("left");oe&&q.push(oe)}if(n.title||o.slots.title){if(n.showMark){const oe={class:{[`${T}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const ie=t.h("div",oe);q.push(ie)}if(o.slots.title){const oe=t.h("div",{class:{[`${T}__header-title`]:!0}},[o.slots.title()]);q.push(oe)}else if(n.title){const oe=t.h("div",{class:{[`${T}__header-title`]:!0}},[n.title]);q.push(oe)}}if(o.slots.toolbar&&q.push(o.slots.toolbar()),!ne&&n.showCollapse){const oe=I("right");oe&&q.push(oe)}if(q.length>0){const oe={key:`${V++}`,ref:C,class:{[`${T}__header`]:!0,[`${T}__first`]:!0},onClick:ee},ie=t.h("div",oe,q);W.push(ie)}}k();const p=o.slots.default?o.slots.default():[],z=s.layout.value.type;if(z==="grid"){const q=L(p,V++,0,p.length);W.push(q)}else if(z==="flow"){const q=L(p,V++,0,p.length);W.push(q)}else for(let q=0;q<p.length;q++){const ne=p[q],oe=L([ne],V++,q,p.length);W.push(oe)}if(N.value){const q=n.tag||"div";return t.h(q,{ref:X,prop:$,class:{[`${T}`]:!0,"is-collapse":J.value},style:y.value},[W])}else return W}}}}const{componentName:Cs,create:Ts,scope:ks}=ue("group"),Al=Ts(xs(Cs,ks,(e,l)=>(e=e??Ie.ArrowUp,t.h(F.ElIcon,l,{default:()=>[t.h(e)]}))));function $s(e){return e===window}const Ds=/matrix\((.+)\)/,Fl=e=>{const l=t.unref(e);if(!l)return{x:0,y:0};if($s(l))return{x:0,y:0};let a=0,n=0,o=l;for(;o!==null;)a+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent;let r=0,s=0,c=0,i=0;for(o=l;o!==document;){s+=o.scrollTop,r+=o.scrollLeft;const{transform:f}=window.getComputedStyle(o);if(f){const m=Ds.exec(f);if(m){let w=m[1].split(/\s*,\s*/);w.length==6&&(c+=Number(w[4]),i+=Number(w[5]))}}o=o.parentNode}return a-=r,n-=s,a+=c,n+=i,{x:a,y:n}};class Ns{watchedListeners=[];add(l){this.watchedListeners.push(l)}remove(l){const a=this.watchedListeners.indexOf(l);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(l=>{try{l()}catch{}})}}class Es{monitorRegister=new WeakMap;watch(l,a){let n=l.parentNode;const o=document.body.parentNode;for(;n&&n!==o;){let r=this.monitorRegister.get(n);r||(r=new Ns,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(a),n=n.parentNode}}unwatch(l,a){let n=l.parentNode;const o=document.body.parentNode;for(;n&&n!==o;){let r=this.monitorRegister.get(n);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const qt=new Es,Eo={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:Is,create:Vs}=ue("price"),Os=Vs({props:{...Eo},setup(e){const l=t.computed(()=>({[Is]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>lt(e.price)==0?"":tn(e.price,e.decimalLength,!0,be(e.digits),e.separator)),o=t.computed(()=>{let s=n.value;if(s.length==0)return"";let c=s.indexOf(".");return s.substring(0,c)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let c=s.indexOf(".");return s.substring(c+1)});return{classes:l,showSymbol:a,intText:o,decimalText:r}}}),Le=(e,l)=>{const a=e.__vccOpts||e;for(const[n,o]of l)a[n]=o;return a},As=["innerHTML"],Fs=["innerHTML"];function Ms(e,l,a,n,o,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,As)):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,Fs)):t.createCommentVNode("",!0)],2)}const $n=Le(Os,[["render",Ms]]),{componentName:Ml,create:Bs}=ue("hint-text"),Rs=Bs({components:{Price:$n},props:{...Eo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,l){const a=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),o=t.ref(0),r=t.ref(0),s=t.ref(e.placement),c=t.ref(!1),i=t.ref(null),f=(x,_,X,C,D,B)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Y=x.split("-");let j=[];Y[0]==="top"?j=["top","bottom","right","left"]:Y[0]==="bottom"?j=["bottom","top","right","left"]:Y[0]==="left"?j=["left","top","bottom","right"]:Y[0]==="right"&&(j=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},U=[];for(let K=0;K<j.length;K++){const G=j[K];if(U[0]=G,Y[1]&&(U[1]=Y[1]),G==="top"){const Z=_.y-B-e.arrowSize-e.offset;if(Z>=0){ee.top=Z;let R=0;Y[1]==="start"?R=_.x:Y[1]==="end"?R=_.x+X-D:R=_.x+X/2-D/2;const te=P-R-D;te<0?(R+=te,d.value=-te):d.value=0,ee.left=R<0?0:R;break}}else if(G==="bottom"){const Z=_.y+C+e.arrowSize+e.offset;if(Z+B<=J){ee.top=Z;let R=0;Y[1]==="start"?R=_.x:Y[1]==="end"?R=_.x+X-D:R=_.x+X/2-D/2;const te=P-R-D;te<0?(R+=te,d.value=-te):d.value=0,ee.left=R<0?0:R;break}}else if(G==="left"){const Z=_.x-D-e.arrowSize-e.offset;if(Z>=0){ee.left=Z;let R=0;Y[1]==="start"?R=_.y:Y[1]==="end"?R=_.y+C-B:R=_.y+C/2-B/2,ee.top=R<0?0:R;break}}else if(G==="right"){const Z=_.x+X+e.arrowSize+e.offset;if(Z+D<=P){ee.left=Z;let R=0;Y[1]==="start"?R=_.y:Y[1]==="end"?R=_.y+C-B:R=_.y+C/2-B/2,ee.top=R<0?0:R;break}}}return{bestPlacement:U.join("-"),bestInsetRect:ee}},m=(x,_,X=10)=>{if(!ft||_===!1||!x)return;n.value=Fl(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const C=i.value.offsetHeight,D=i.value.offsetWidth,{bestPlacement:B,bestInsetRect:P}=f(e.placement,n.value,o.value,r.value,D,C);s.value=B,a.value=P,c.value=!0},d=t.ref(0),w=Ue(()=>{m(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,x=>{S.value=x});const T=t.computed(()=>S.value&&y.value),y=t.ref(!0),h=Ue(x=>{const _=x[0];_&&(y.value=_.isIntersecting)},10),A=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([x,_])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),qt.watch(e.reference,w),A.observe(e.reference)}),t.onBeforeUnmount(()=>{qt.unwatch(e.reference,w),A.unobserve(e.reference),A.disconnect()});const g=t.computed(()=>{const x={[Ml]:!0};return s.value.startsWith("top")?x["is-top"]=!0:s.value.startsWith("right")?x["is-right"]=!0:s.value.startsWith("bottom")?x["is-bottom"]=!0:s.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),u=t.computed(()=>{const x={};a.value.top!==null&&(x.top=`${a.value.top}px`),a.value.right!==null&&(x.right=`${a.value.right}px`),a.value.bottom!==null&&(x.bottom=`${a.value.bottom}px`),a.value.left!==null&&(x.left=`${a.value.left}px`),e.autoFit&&(x["min-width"]=`${o.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${_}px`,c.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),N=t.computed(()=>{const x=[`${Ml}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),M=t.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),O=t.computed(()=>({[`${Ml}__arrow`]:!0})),k=t.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,s.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):s.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):s.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):s.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):s.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):s.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):s.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):s.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),E=t.computed(()=>T.value&&e.closeOnClick),v=t.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:T,tipRef:i,classes:g,styles:u,textClasses:N,textStyles:M,arrowClasses:O,arrowStyles:k,overlayShow:E,overlayStyle:v,onClickOverlay:()=>{S.value=!1,l.emit("update:visible",!1)}}}}),Ls=["innerHTML"];function Ps(e,l,a,n,o,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:l[0]||(l[0]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ls))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Io=Le(Rs,[["render",Ps]]);class Vo{seed=new Date().getTime();constructor(l){this.seed=l??new Date().getTime()}get(){let l=this.seed++;return this.seed<0&&(this.seed=0),l}}const Bl={},_s=new Vo,$t=new Map,Dn=e=>{if(e){const l=document.getElementById(e);$t.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of $t.keys()){const a=document.getElementById(l);a&&a.parentNode?.removeChild(a)}$t.clear()}},qs=e=>{e.unmount=Dn;const l=document.getElementById(e.id);if(l){const a=$t.get(e.id);a?e={...Bl,...a,...e}:e={...Bl,...e},e.transition=!1;const n=t.createVNode(Io,e);t.render(n,l)}return e.id},zs=e=>{e.unmount=Dn;let l=e.id??`hinttext_${_s.get()}`;e={...Bl,...e},e.id=l,$t.set(l,e);const a=document.createElement("div");a.id=e.id;const n=t.createVNode(Io,e);return t.render(n,a),document.body.appendChild(a),l},js=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,l,a={},n=!0){js(l);const o=a.id;return o&&$t.has(o)?qs({...a,message:l,reference:e}):(n&&Dn(),zs({...a,message:l,reference:e}))},hide(e){Dn(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Hs(e,l,a,n=!1){return{inheritAttrs:!0,props:{...ke,...Oe},emits:["appear","disappear"],setup(o,r){const s=o.prop??r.attrs.name;Ee({componentName:e,validate:!1},s);const c=dt(),i=wn();Sn(!1);const f=t.computed(()=>i&&c?xn(c,!1).value:null),m=e,d=t.ref(null),w=t.computed(()=>{const p={[m]:!0,[`${m}__gutter`]:f.value&&f.value.type!=="flow",[`${m}__stretch`]:o.span==="stretch",[`${m}__input--border`]:de(o.hasBorder)};if(p[o.errorMarkClass]=!!B.value,p[o.warnMarkClass]=!!C.value,p[o.infoMarkClass]=!!_.value,typeof d.value=="function"){const z=d.value(s);p[z]=!0}else if(typeof d.value=="string"){const z=d.value;p[z]=!0}return p}),S=t.ref(null),T=t.computed(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=Se(o.width));else{const z=i&&c?Cn(c,!1):null;if(f.value&&z){if(f.value.type==="grid"){const q=kn(z,f.value,o.span,o.offset);Object.assign(p,q)}else if(f.value.type==="flow"){const q=Tn(z,f.value,o.span,o.offset,o.width);Object.assign(p,q)}}}if(typeof S.value=="function"){const z=S.value(s);z&&Object.assign(p,z)}else if(S.value&&typeof S.value=="object"){const z=S.value;Object.assign(p,z)}return p}),y=t.ref(null),h=t.computed({get:()=>y.value??de(o.isRequired),set:p=>{y.value=p}}),A=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",g=Fe(t.toRef(o,"labelPosition"),"labelPosition",Ge.Near),u=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),N=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${u.value}`]:!0})),M=t.computed(()=>({label:!0,[`label--${u.value}`]:!0})),O=Fe(t.toRef(o,"labelWidth"),"labelWidth",Ge.Near),k=t.computed(()=>O&&O.value?{width:Se(O.value)}:{}),E=t.computed(()=>({"label--string":!0,"label--required":h.value})),v=t.computed(()=>({content:!0,[o.contentClass]:!0})),H=t.computed(()=>({...o.contentStyle})),x=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(p){h.value=p},setErrorTip(p){x.errorTip=p},setErrorIcon(p){x.errorIcon=p},setWarnTip(p){x.warnTip=p},setWarnIcon(p){x.warnIcon=p},setInfoTip(p){x.infoTip=p},setInfoIcon(p){x.infoIcon=p},setCustomClassName(p){d.value=p},setCustomStyle(p){S.value=p}});const _=t.computed(()=>o.infoTip||x.infoTip),X=t.computed(()=>o.infoIcon||x.infoIcon),C=t.computed(()=>o.warnTip||x.warnTip),D=t.computed(()=>o.warnIcon||x.warnIcon),B=t.computed(()=>o.errorTip||x.errorTip),P=t.computed(()=>o.errorIcon||x.errorIcon),J=t.computed(()=>B.value?"error":C.value?"warn":_.value?"info":""),Y=()=>J.value.length>0,j=t.computed(()=>J.value==="error"?B.value:J.value==="warn"?C.value:J.value==="info"?_.value:""),ee=t.computed(()=>J.value==="error"?P.value:J.value==="warn"?D.value:J.value==="info"?X.value:null),U=t.computed(()=>{const p={[`${m}__tip`]:!0,[`${m}__tip--${J.value}`]:!0,[`${m}--animate`]:!0};return J.value==="error"&&o.errorClass?p[`${o.errorClass}`]=!0:J.value==="warn"&&o.warnClass?p[`${o.warnClass}`]=!0:J.value==="info"&&o.infoClass&&(p[`${o.infoClass}`]=!0),p}),K=t.computed(()=>{const p={};return g&&g.value==="top"||!A()?p["padding-left"]="0px":O&&O.value&&(p["padding-left"]=Se(O.value)),p}),G=t.ref();let Z="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([p,z,q,ne])=>{G.value&&(p&&!ge(z)?Z?a.show(G.value,z,{...ne,id:Z,type:q},!0):Z=a.show(G.value,z,{...ne,type:q},!0):a.hide(Z))});let R=null;const te=()=>{R||!G.value||(R=new IntersectionObserver(p=>{let z=!1;for(let q of p)if(q.intersectionRatio>0){z=!0,z&&r.emit("appear",q);break}z||r.emit("disappear")}),R.observe(G.value))},le=()=>{!R||!G.value||(R.unobserve(G.value),R=null)};t.watch(()=>de(o.appearListen),p=>{p?te():le()}),t.onMounted(()=>{de(o.appearListen)&&te()}),t.onUnmounted(le);const Q=()=>{if(!A())return null;const p=[],z=r.slots?.label?.()??o.label,q={class:E.value},ne=t.h("div",q,[z]);if(p.push(ne),r.slots.fixedPreTip){const ie=r.slots.fixedPreTip();p.push(ie)}const oe={class:M.value,style:k.value};return t.h("div",oe,p)},I=()=>{const p=[];if(r.slots.prepend){const q=r.slots.prepend();p.push(q)}if(r.slots.default){const q=r.slots.default();p.push(q)}if(r.slots.append){const q=r.slots.append();p.push(q)}if(r.slots.fixedTip){const q={class:[`${m}__fixed-tip`]},ne=t.h("div",q,[r.slots.fixedTip()]);p.push(ne)}const z={ref:G,class:v.value,style:H.value};return t.h("div",z,p)},L=()=>{const p=ee.value;return p?typeof p=="function"?t.h("div",{class:"fox-item__tip--icon"},[p()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(p)]):null},$=()=>{const p=j.value;return p?typeof p=="function"?t.h("div",{class:"fox-item__tip--text"},[p()]):t.h("div",{class:"fox-item__tip--text"},[p]):null},W=()=>{if(!Y())return null;const p=[],z=L();z&&p.push(z);const q=$();q&&p.push(q);const ne={class:U.value,style:K.value};return t.h("div",ne,p)},V=()=>r.slots?.hide?.()??null;return()=>{const p=[],z=[],q=Q();q&&z.push(q);const ne=I();ne&&z.push(ne);const oe={class:N.value},ie=t.h("div",oe,z);p.push(ie);const he=W();he&&p.push(he);const ye=V();ye&&p.push(ye);const Te={class:w.value,style:T.value,prop:o.prop};return t.h("div",Te,p)}}}}const{componentName:Ks,create:Ws,scope:Ys}=ue("item"),$e=Ws(Hs(Ks,Ys,Pe,!1)),Rl={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Us(e,l){return{props:{...Rl},setup(a,n){const o=dt(),r=wn();Sn(!1);const s=t.computed(()=>r&&o?xn(o,!1).value:null),c=e,i=t.computed(()=>({[c]:!0,[`${c}__gutter`]:s.value&&s.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=Se(a.width));else{const d=r&&o?Cn(o,!1):null;if(s.value&&d)if(s.value.type==="grid"){const w=kn(d,s.value,a.span,a.offset);Object.assign(m,w)}else if(s.value.type==="flow"){const w=Tn(d,s.value,a.span,a.offset,a.width);Object.assign(m,w)}else return a.width&&(m.width=Se(a.width)),m}return m});return()=>{const m={class:i.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:Gs,create:Xs}=ue("slot-item"),Nn=Xs(Us(Gs)),Ll={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Zs(e,l){return{props:{...Ll},setup(a,n){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),s=dt(),c=wn();Sn(!1);const i=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=Se(a.width));else if(c&&s){const m=xn(s,!1),d=Cn(s,!1);if(m.value&&d)if(m.value.type==="grid"){const w=kn(d,m.value,a.span,a.offset);Object.assign(f,w)}else if(m.value.type==="flow"){const w=Tn(d,m.value,a.span,a.offset,a.width);Object.assign(f,w)}else a.width&&(f.width=Se(a.width))}return a.gutter&&(f.gap=Se(a.gutter)),f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let w=0;w<d.length;w++){if(w>0){const S=t.h("div",{class:{[`${o}__divide`]:!0}});f.push(S)}f.push(d[w])}else Reflect.apply([].push,f,d)}const m={class:r.value,style:i.value};return t.h("div",m,f)}}}}const{componentName:Qs,create:Js}=ue("row-item"),En=Js(Zs(Qs));function eu(e,l){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const n=a.getBoundingClientRect().width;if(n>0){l(n);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),l(o)},500)}const tu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function nu(e,l,a,n=!1){return{props:{...tu},emits:["click"],setup(o,r){const s=t.ref(null),c=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(u[`${e}--${o.type??"default"}`]=!0),o.size&&(u[`${e}--${o.size}`]=!0),u}),i=t.computed(()=>{const u={},N=o.textColor??o.color;return N&&(u.color=N),u}),f=(u,N)=>{let M=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const O=o.highlightFilter;if(u.indexOf(O)!==-1){const E=u.replace(new RegExp(O,"g"),`<span>${O}</span>`);N.innerHTML=E,N.class["is-highlight"]=!0,M=t.h(o.tag,N)}}else if(typeof o.highlightFilter=="function"){const O=o.highlightFilter(u);O&&(N.innerHTML=O,N.class["is-highlight"]=!0,M=t.h(o.tag,N))}return M},m=u=>{r.emit("click",u)};let d="";const w=()=>{const u=s.value;if(!u)return;const N=u.clientWidth;eu(u,M=>{const O=u.innerHTML??"";ge(O)||M<N||(d?a?.show(u,O,{type:"text",id:d,showArrow:o.showArrow},!0):d=a?.show(u,O,{type:"text",showArrow:o.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let T=null;const y=u=>{T||(T=setTimeout(()=>{w(),T=null},o.showAfter??0))},h=u=>{T&&(clearTimeout(T),T=null),setTimeout(()=>{S()},o.hideAfter??0)},A=()=>{const u=s.value;u&&(u.addEventListener("mouseover",y),u.addEventListener("mouseleave",h))},g=()=>{const u=s.value;u&&(u.removeEventListener("mouseover",y),u.removeEventListener("mouseleave",h))};return t.onMounted(()=>{!de(o.showOverflowTooltip)||!a||A()}),t.onBeforeUnmount(()=>{!de(o.showOverflowTooltip)||!a||g()}),()=>{const u={onClick:m,class:c.value,style:i.value,ref:s};let N=null;if(de(o.numberFormat)&&typeof r.slots.default=="function"){const E=r.slots.default();if(Array.isArray(E)&&E.length===1){const v=E[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const H=be(o.digits),x=be(o.decimalLength),_=de(o.autoPadding);let X=`${E[0].children}`,C=X.split("").reverse().join("");C=tn(C,x,_,H,o.separator),X=C.split("").reverse().join(""),o.highlightFilter!==void 0&&(N=f(X,u)),N||(u.innerHTML=X,N=t.h(o.tag,u))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const E=r.slots.default();if(Array.isArray(E)&&E.length===1){const v=E[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const H=`${E[0].children}`;N=f(H,u),N||(u.innerHTML=H,N=t.h(o.tag,u))}}}N||(N=t.h(o.tag,u,{default:r.slots.default}))}if(!o.mark&&!r.slots.mark)return N;const O=[];if(r.slots.mark){const E={[`${e}__mark-wrap`]:!0};o.type&&(E[`${e}__mark-wrap--${o.type}`]=!0);const v={},H=o.color;H&&(v.color=H);const x={onClick:m,class:E,style:v},_=t.h("view",x,{default:r.slots.mark});O.push(_)}else{const E={[`${e}__mark`]:!0};o.type&&(E[`${e}__mark--${o.type??"default"}`]=!0);const v={},H=o.color;H&&(v["background-color"]=H);const x={onClick:m,class:E,style:v},_=t.h("view",x);O.push(_)}if(o.divide){const E=t.h("div",{class:{[`${e}__divide`]:!0}});O.push(E)}O.push(N);const k={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",k,O)}}}}const{componentName:lu,create:au,scope:ou}=ue("text"),In=au(nu(lu,ou,Pe,!1)),ru={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function iu(e,l,a=!1){return{props:{...ru},emits:["update:visible"],setup(n,{emit:o,slots:r,expose:s}){const c=t.ref({top:null,right:null,bottom:null,left:null}),i=t.ref(0),f=t.ref(0),m=t.ref(0),d=t.ref(0),w=t.ref(n.placement),S=t.ref(!1),T=t.ref(!1),y=t.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,A=(j,ee,U,K,G,Z,R,te=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,I=j.split("-");let L=[];te?I[0]==="top"?L=["top","bottom","right","left"]:I[0]==="bottom"?L=["bottom","top","right","left"]:I[0]==="left"?L=["left","top","bottom","right"]:I[0]==="right"&&(L=["right","top","bottom","left"]):L=[j[0]];const $={top:null,right:null,bottom:null,left:null},W=[];for(let V=0;V<L.length;V++){const p=L[V];if(W[0]=p,I[1]&&(W[1]=I[1]),p==="top"){const z=U-R-n.arrowSize/2-n.offset;if(z>=0){$.top=z;let q=0;I[1]==="start"?q=ee:I[1]==="end"?q=ee+K-Z:q=ee+K/2-Z/2;const ne=le-q-Z;ne<0?(q+=ne,u.value=-ne):u.value=0,$.left=q<0?0:q;break}}else if(p==="bottom"){const z=U+G+n.arrowSize/2+n.offset;if(z+R<=Q){$.top=z;let q=0;I[1]==="start"?q=ee:I[1]==="end"?q=ee+K-Z:q=ee+K/2-Z/2;const ne=le-q-Z;ne<0?(q+=ne,u.value=-ne):u.value=0,$.left=q<0?0:q;break}}else if(p==="left"){const z=ee-Z-n.arrowSize/2-n.offset;if(z>=0){$.left=z;let q=0;I[1]==="start"?q=U:I[1]==="end"?q=U+G-R:q=U+G/2-R/2,$.top=q<0?0:q;break}}else if(p==="right"){const z=ee+K+n.arrowSize/2+n.offset;if(z+Z<=le){$.left=z;let q=0;I[1]==="start"?q=U:I[1]==="end"?q=U+G-R:q=U+G/2-R/2,$.top=q<0?0:q;break}}}return{bestPlacement:W.join("-"),bestInsetRect:$}},g=()=>{const j=n.visible,ee=n.autoFit;if(!ft||j===!1)return;if(n.reference){const R=h(),te=Fl(R);i.value=te.x,f.value=te.y,m.value=R.offsetWidth,d.value=R.offsetHeight}else n.referenceInset&&(i.value=n.referenceInset.left,f.value=n.referenceInset.top,m.value=n.referenceInset.right-n.referenceInset.left,d.value=n.referenceInset.bottom-n.referenceInset.top);const U=y.value.offsetWidth,K=y.value.offsetHeight,{bestPlacement:G,bestInsetRect:Z}=A(n.placement,i.value,f.value,m.value,d.value,U,K,ee);w.value=G,c.value=Z},u=t.ref(0),N=Ue(()=>{g()},10),M=t.ref(n.visible);t.watch([()=>n.visible],([j])=>{M.value=j,j?(S.value=j,setTimeout(()=>{g(),T.value=!0},0)):T.value=!1});const O=t.computed(()=>M.value&&k.value),k=t.ref(!0),E=Ue(j=>{const ee=j[0];ee&&(k.value=ee.isIntersecting)},10),v=new IntersectionObserver(E);t.watch([()=>n.reference,()=>n.referenceInset],([j,ee],[U,K])=>{!j&&!ee||(setTimeout(()=>{g()},0),n.autoFit&&(U&&(qt.unwatch(U,N),v.unobserve(U)),j&&(qt.watch(j,N),v.observe(j))))},{immediate:!0}),t.onBeforeUnmount(()=>{n.reference&&(qt.unwatch(n.reference,N),v.unobserve(n.reference),v.disconnect())});const H=t.computed(()=>{const j={[e]:!0};return w.value.startsWith("top")?j["is-top"]=!0:w.value.startsWith("right")?j["is-right"]=!0:w.value.startsWith("bottom")?j["is-bottom"]=!0:w.value.startsWith("left")&&(j["is-left"]=!0),j[`is-${n.effect}`]=!0,!T.value&&O.value&&(j["is-opacity"]=!0),T.value&&O.value&&(j["is-show"]=!0),O.value||(j["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(j[`${n.customClass}`]=!0),j}),x=t.computed(()=>{const j={};return c.value.top!==null&&(j.top=`${c.value.top}px`),c.value.right!==null&&(j.right=`${c.value.right}px`),c.value.bottom!==null&&(j.bottom=`${c.value.bottom}px`),c.value.left!==null&&(j.left=`${c.value.left}px`),n.width&&(j.width=n.width),n.zIndex&&(j["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(j,n.customStyle),j}),_=()=>{M.value=!1,o("update:visible",!1)},X=()=>{if(!n.showOverlay)return null;const j={class:`${e}__overlay`,onClick:_};return t.h("div",j)},C=()=>{let j=null;return r.title?j=t.h("div",{class:`${e}__title`},{default:r.title}):n.title&&(j=t.h("div",{class:`${e}__title`},[n.title])),j},D=t.computed(()=>({[`${e}__arrow`]:!0})),B=t.computed(()=>{const j={};return n.showArrow?(j.width=`${n.arrowSize}px`,j.height=`${n.arrowSize}px`,w.value==="top"?(j.left="50%",j.bottom="0",j.transform="translate(-50%, 50%)"):w.value==="top-start"?(j.left=`${n.arrowOffset+u.value}px`,j.bottom="0",j.transform="translate(-50%, 50%)"):w.value==="top-end"?(j.right=`${n.arrowOffset-u.value}px`,j.bottom="0",j.transform="translate(-50%, 50%)"):w.value==="right"?(j.left="0",j.top="50%",j.transform="translate(-50%, -50%)"):w.value==="right-start"?(j.left="0",j.top=`${n.arrowOffset}px`,j.transform="translate(-50%, 50%)"):w.value==="right-end"?(j.left="0",j.bottom=`-${n.arrowOffset}px`,j.transform="translate(-50%, 50%)"):w.value==="bottom"?(j.left="50%",j.top="0",j.transform="translate(-50%, -50%)"):w.value==="bottom-start"?(j.left=`${n.arrowOffset+u.value}px`,j.top="0",j.transform="translate(-50%, -50%)"):w.value==="bottom-end"?(j.right=`${n.arrowOffset-u.value}px`,j.top="0",j.transform="translate(-50%, -50%)"):w.value==="left"?(j.right="0",j.top="50%",j.transform="translate(50%, -50%)"):w.value==="left-start"?(j.right="0",j.top=`${n.arrowOffset}px`,j.transform="translate(50%, -50%)"):w.value==="left-end"&&(j.right="0",j.bottom=`-${n.arrowOffset}px`,j.transform="translate(50%, -50%)"),j):{display:"none"}}),P=()=>{const j={class:D.value,style:B.value};return t.h("div",j)},J=()=>{M.value===!1&&(S.value=!1)},Y=j=>{if(!y.value||M.value===!1)return;const{relatedTarget:ee}=j;y.value.contains(ee)||(M.value=!1,o("update:visible",!1))};return s({doLayout:g}),()=>{if(!S.value)return null;const j=[],ee=X();ee&&j.push(ee);const U=[],K=C();if(K&&U.push(K),r.default){const le=r.default();U.push(le)}const G=P();G&&U.push(G);const Z={ref:y,class:H.value,style:x.value,onAnimationend:J};n.leaveHide&&(Z.onMouseleave=Y);const R=t.h("div",Z,{default:()=>U});return j.push(R),t.h(t.Teleport,{to:n.teleport,disabled:n.teleportDisable},{default:()=>j})}}}}const{componentName:su,create:uu,scope:cu}=ue("popover-dialog"),Vn=uu(iu(su,cu,!1)),fu={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function du(e,l,a){return{props:{...Ll,...fu},emits:["click"],setup(n,{slots:o,attrs:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["moreText"]),i=e,f=t.computed(()=>({[i]:!0}));function m(O){return O.props||{}}function d(O){return!!m(O).disabled}function w(O){return O.children??[]}const S=t.ref(),T=t.computed(()=>S.value?.$el??null),y=t.ref(!1),h=O=>{y.value=O},A=()=>{y.value=!y.value};function g(O,k){return()=>{if(k)return;y.value=!1,m(O)?.onClick?.()}}function u(O,k){const E=w(O),v=d(O),H=g(O,v),x=[`${i}__dropdown-item`];v&&x.push("is-disabled");const _={class:x,onClick:H};return t.h("span",_,E)}const N=O=>{const k=n.maxDisplayCount??O.length;if(k>=O.length)return O;const E=[],v=k-1;for(let B=0;B<v;B++)E.push(O[B]);const H=(o.moreIcon&&o.moreIcon())??(n.moreIcon&&t.h(n.moreIcon))??t.h(a),x={ref:B=>S.value=B,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:n.type,onClick:A},_=t.h(In,x,{default:()=>c.moreText.value,mark:()=>H});E.push(_);const X=[];for(let B=v;B<O.length;B++){const P=u(O[B]);X.push(P)}const C={placement:n.dropdownPlacement,"onUpdate:visible":h,visible:y.value,reference:T.value,"custom-class":`${i}__popover`},D=t.h(Vn,C,{default:()=>X});return E.push(D),E},M=()=>(o.default?.()||[]).filter(k=>k.type!==Comment);return()=>{const O=M(),k=N(O),E=it(n,Ll);return Object.assign(E,r??{}),E.class=f.value,t.h(En,E,{default:()=>k})}}}}const{componentName:hu,create:mu,scope:gu}=ue("buttons-item"),Pl=mu(du(hu,gu,Ie.ArrowDown)),Je=(e={})=>{if(!e)return{};const l={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(l[n]=e[n])}),l},Oo={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 yu(e,l,a){return{props:{...ke,...Oe,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0,[`${T}__disabled`]:s.value,[`${T}__readonly`]:i.value})),h=D=>{S.value=D,f("update:modelValue",D),f("input",D)},A=D=>{f("change",D)};let g=pe(n,"hintText"),u=t.ref(!1);const N=D=>{let P=D.target.value;w.value=!0,ge(g.value)||(u.value=!0),f("focus",P,D)},M=D=>{setTimeout(()=>{u.value&&(u.value=!1),w.value=!1},0);let P=D.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),f("blur",P,D)},O=()=>{f("clear","")},k=t.ref(!1);let E=null;const v=()=>{n.showTooltip&&k.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{k.value=!0},150))},H=()=>{E&&(clearTimeout(E),k.value=!1,E=null)},x=t.computed(()=>k.value||u.value),_=t.computed(()=>k.value?S.value:g.value),X=t.computed(()=>lt(n.unit)>0),C=t.ref();return we({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()},setDisabled:D=>{r.value=D},setReadonly:D=>{c.value=D}}),()=>{const B={...Je(o.attrs),ref:C,class:y.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:O,onChange:A,onInput:h,onFocus:N,onBlur:M,onMouseover:v,onMouseleave:H},P={};o.slots.prepend&&(P.prepend=o.slots.prepend),o.slots.append&&(P.append=o.slots.append),o.slots.prefix&&(P.prefix=o.slots.prefix),o.slots.suffix?P.suffix=o.slots.suffix:X.value&&(P.suffix=()=>[n.unit]);const J=[],Y=t.h(F.ElInput,B,P);J.push(Y);const j={default:()=>J};j.label=o.slots.default,j.fixedPreTip=o.slots.fixedPreTip,j.fixedTip=o.slots.fixedTip;const U={...Ve(n,Oo),hintText:_.value,hintVisible:x.value};return n.prop&&(U.prop=`${n.prop}_item`),t.h(a,U,j)}}}}const{componentName:pu,create:bu,scope:vu}=ue("input-item"),_l=bu(yu(pu,vu,$e));function mt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function zt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Ao(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function wu(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let Su=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function xu(){const e=t.getCurrentInstance();return new Su(e.proxy)}function Fo(e,l,a){const n=mt(e,l),o=mt(e,a);if(n!==o)return!1;const r=zt(e,l),s=zt(e,a);return r===s}function Mo(e,l,a,n){if(n.length===0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];return l.forEach(r=>{for(let s of n){const c=Ao(e,s);if(Array.isArray(c)&&c.length>0){const i=Mo(e,r,a,c)??[];Reflect.apply([].push,o,i)}else{let i=!1;if(a==="text")i=mt(e,s)===r;else if(a==="item")i=Fo(e,s,r);else{let f=zt(e,s);f==null&&(f=mt(e,s)),i=f===r}if(i){o.push(s);break}}}}),o}function Cu(e){return{text:e,value:e}}const Bo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Tu(e,l,a){return{props:{...ke,...Oe,...Bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(null),S=t.ref([]),T=t.computed(()=>S.value?S.value.map(W=>mt(n,W)).join(" "):""),y=($,W,V,p=!0)=>{if(!V||V.length==0){w.value=$,p&&(f("update:modelValue",$),f("change",$));return}const z=Mo(n,$,W,V);if(z===null){if(S.value===null||S.value.length===0)return;w.value=null,S.value=[],p&&(f("update:modelValue",null),f("update:text",null),f("change",null));return}let q=!0;if(z.length!==S.value.length)q=!1;else for(let ne=0;ne<z.length;ne++){const oe=z[ne],ie=S.value[ne];if(!Fo(n,oe,ie)){q=!1;break}}if(!q){S.value=z;let ne=[],oe=[],ie=[];z.forEach(et=>{const We=zt(n,et),qe=mt(n,et);ne.push(We),ie.push(qe),n.valueType==="text"?oe.push(qe):n.valueType==="item"?oe.push(et):oe.push(We)});let he,ye,Te;de(n.multiple)?(w.value=ne,he=t.toRaw(oe),ye=ie,Te=t.toRaw(z)):(w.value=ne[0]??"",he=t.toRaw(oe[0]??""),ye=ie[0]??"",Te=t.toRaw(z[0])),p&&(f("update:modelValue",he),f("change",he,Te)),f("update:text",ye)}},h=t.ref(null),A=t.ref(null),g=t.computed(()=>A.value??h.value??[]),u=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,$=>de($)),N=xu(),M=async($,W)=>{if($){const V=await N.load("select",$,W);if(V.length>0)if(typeof V[0]=="string"){let q=V.map(ne=>Cu(ne));h.value=q}else h.value=V;else h.value=null}};t.watch([()=>n.source,()=>n.params],([$,W])=>{A.value=null,M($,W)},{immediate:!u.value});let O=!1;const k=()=>{O||(O=!0,M(n.source,n.params))};t.watch([()=>h.value,()=>n.modelValue],([$,W])=>{if(x()&&de(n.multiple)){Xe(W,w.value)||(w.value=W);return}y(W,n.valueType,g.value,!1),f("setValue",W)}),n.source||(w.value=n.modelValue);let E=null,v=t.ref(!1);typeof n.remoteMethod=="function"&&(E=async $=>{if($==null){A.value=null;return}v.value=!0;try{const W=await n.remoteMethod($);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}v.value=!1});let H=null;typeof n.filterMethod=="function"&&(H=async $=>{if($==null){A.value=null;return}v.value=!0;try{const W=await n.filterMethod($,h.value);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}v.value=!1});const x=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=t.ref(!1),X=e,C=t.computed(()=>({[X]:!0})),D=$=>{n.allowCreate||x()&&de(n.multiple)?(f("update:modelValue",$),f("change",$),f("update:text",$),w.value=$):y($,"value",g.value,!0)};let B=pe(n,"hintText"),P=t.ref(!1);const J=$=>{let V=$.target.value;_.value=!0,ge(B.value)||(P.value=!0),f("focus",V,$)},Y=$=>{setTimeout(()=>{P.value&&(P.value=!1),_.value=!1},0);let V=$.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),te.value||f("blur",V,$)},j=()=>{f("clear","")},ee=t.ref(!1);let U=null;const K=()=>{n.showTooltip&&ee.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{ee.value=!0},150))},G=()=>{U&&(clearTimeout(U),ee.value=!1,U=null)},Z=t.computed(()=>ee.value||P.value),R=t.computed(()=>ee.value?T.value:B.value),te=t.ref(!1),le=$=>{te.value=$,f("visible-change",$),$||f("selected")},Q=$=>{f("remove-tag",$)},I=($,W)=>{const V=[];return $.forEach((p,z)=>{const q=Ao(n,p);if(Array.isArray(q)&&q.length>0){const ne=I(q,W),oe=mt(n,p),he={key:`${oe}_${z}`,label:oe};V.push(t.h(F.ElOptionGroup,he,{default:()=>ne}))}else{const ne=zt(n,p),oe=mt(n,p),ie=wu(n,p),ye={key:`${ne}_${z}`,label:oe,disabled:ie,value:ne};if(typeof W=="function")V.push(t.h(F.ElOption,ye,{default:()=>W(p)}));else if(n.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},et=t.h("span",Te,[ne]),We={class:{"fox-select-item__option-right":!0}},qe=t.h("span",We,[oe]),At=t.h("div",{class:{"fox-select-item__option":!0}},[et,qe]);V.push(t.h(F.ElOption,ye,{default:()=>At}))}else n.optionType==="value"?V.push(t.h(F.ElOption,ye,{default:()=>[ne]})):V.push(t.h(F.ElOption,ye))}}),V},L=t.ref();return we({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},setDisabled:$=>{r.value=$},setReadonly:$=>{c.value=$}}),()=>{const W={...Je(o.attrs),ref:L,class:C.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:s.value||i.value,modelValue:w.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:j,onChange:D,onFocus:J,onBlur:Y,onVisibleChange:le,onRemoveTag:Q};typeof E=="function"&&(W["remote-method"]=E,W.loading=v.value),typeof H=="function"&&(W["filter-method"]=H,W.loading=v.value);const V={};o.slots.prefix&&(V.prefix=o.slots.prefix),o.slots.empty&&(V.empty=o.slots.empty),o.slots.options?V.default=o.slots.options:V.default=()=>I(g.value,o.slots.option);const p=[],z=t.h(F.ElSelect,W,V);p.push(z);const q={default:()=>p};q.label=o.slots.default,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const oe={...Ve(n,Bo),hintText:R.value,hintVisible:Z.value,onMouseover:K,onMouseleave:G};return n.prop&&(oe.prop=`${n.prop}_item`),u.value&&(oe["appear-listen"]=!0,oe.onAppear=k),t.h(a,oe,q)}}}}const{componentName:ku,create:$u,scope:Du}=ue("select-item"),ql=$u(Tu(ku,Du,$e));function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}},Nu=On.exports,Ro;function Eu(){return Ro||(Ro=1,(function(e,l){(function(a,n){e.exports=n()})(Nu,(function(){var a=1e3,n=6e4,o=36e5,r="millisecond",s="second",c="minute",i="hour",f="day",m="week",d="month",w="quarter",S="year",T="date",y="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var D=["th","st","nd","rd"],B=C%100;return"["+C+(D[(B-20)%10]||D[B]||D[0])+"]"}},u=function(C,D,B){var P=String(C);return!P||P.length>=D?C:""+Array(D+1-P.length).join(B)+C},N={s:u,z:function(C){var D=-C.utcOffset(),B=Math.abs(D),P=Math.floor(B/60),J=B%60;return(D<=0?"+":"-")+u(P,2,"0")+":"+u(J,2,"0")},m:function C(D,B){if(D.date()<B.date())return-C(B,D);var P=12*(B.year()-D.year())+(B.month()-D.month()),J=D.clone().add(P,d),Y=B-J<0,j=D.clone().add(P+(Y?-1:1),d);return+(-(P+(B-J)/(Y?J-j:j-J))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:S,w:m,d:f,D:T,h:i,m:c,s,ms:r,Q:w}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},M="en",O={};O[M]=g;var k="$isDayjsObject",E=function(C){return C instanceof _||!(!C||!C[k])},v=function C(D,B,P){var J;if(!D)return M;if(typeof D=="string"){var Y=D.toLowerCase();O[Y]&&(J=Y),B&&(O[Y]=B,J=Y);var j=D.split("-");if(!J&&j.length>1)return C(j[0])}else{var ee=D.name;O[ee]=D,J=ee}return!P&&J&&(M=J),J||!P&&M},H=function(C,D){if(E(C))return C.clone();var B=typeof D=="object"?D:{};return B.date=C,B.args=arguments,new _(B)},x=N;x.l=v,x.i=E,x.w=function(C,D){return H(C,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var _=(function(){function C(B){this.$L=v(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[k]=!0}var D=C.prototype;return D.parse=function(B){this.$d=(function(P){var J=P.date,Y=P.utc;if(J===null)return new Date(NaN);if(x.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var j=J.match(h);if(j){var ee=j[2]-1||0,U=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],ee,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],ee,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(J)})(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return x},D.isValid=function(){return this.$d.toString()!==y},D.isSame=function(B,P){var J=H(B);return this.startOf(P)<=J&&J<=this.endOf(P)},D.isAfter=function(B,P){return H(B)<this.startOf(P)},D.isBefore=function(B,P){return this.endOf(P)<H(B)},D.$g=function(B,P,J){return x.u(B)?this[P]:this.set(J,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,P){var J=this,Y=!!x.u(P)||P,j=x.p(B),ee=function(Q,I){var L=x.w(J.$u?Date.UTC(J.$y,I,Q):new Date(J.$y,I,Q),J);return Y?L:L.endOf(f)},U=function(Q,I){return x.w(J.toDate()[Q].apply(J.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(I)),J)},K=this.$W,G=this.$M,Z=this.$D,R="set"+(this.$u?"UTC":"");switch(j){case S:return Y?ee(1,0):ee(31,11);case d:return Y?ee(1,G):ee(0,G+1);case m:var te=this.$locale().weekStart||0,le=(K<te?K+7:K)-te;return ee(Y?Z-le:Z+(6-le),G);case f:case T:return U(R+"Hours",0);case i:return U(R+"Minutes",1);case c:return U(R+"Seconds",2);case s:return U(R+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,P){var J,Y=x.p(B),j="set"+(this.$u?"UTC":""),ee=(J={},J[f]=j+"Date",J[T]=j+"Date",J[d]=j+"Month",J[S]=j+"FullYear",J[i]=j+"Hours",J[c]=j+"Minutes",J[s]=j+"Seconds",J[r]=j+"Milliseconds",J)[Y],U=Y===f?this.$D+(P-this.$W):P;if(Y===d||Y===S){var K=this.clone().set(T,1);K.$d[ee](U),K.init(),this.$d=K.set(T,Math.min(this.$D,K.daysInMonth())).$d}else ee&&this.$d[ee](U);return this.init(),this},D.set=function(B,P){return this.clone().$set(B,P)},D.get=function(B){return this[x.p(B)]()},D.add=function(B,P){var J,Y=this;B=Number(B);var j=x.p(P),ee=function(G){var Z=H(Y);return x.w(Z.date(Z.date()+Math.round(G*B)),Y)};if(j===d)return this.set(d,this.$M+B);if(j===S)return this.set(S,this.$y+B);if(j===f)return ee(1);if(j===m)return ee(7);var U=(J={},J[c]=n,J[i]=o,J[s]=a,J)[j]||1,K=this.$d.getTime()+B*U;return x.w(K,this)},D.subtract=function(B,P){return this.add(-1*B,P)},D.format=function(B){var P=this,J=this.$locale();if(!this.isValid())return J.invalidDate||y;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",j=x.z(this),ee=this.$H,U=this.$m,K=this.$M,G=J.weekdays,Z=J.months,R=J.meridiem,te=function(I,L,$,W){return I&&(I[L]||I(P,Y))||$[L].slice(0,W)},le=function(I){return x.s(ee%12||12,I,"0")},Q=R||function(I,L,$){var W=I<12?"AM":"PM";return $?W.toLowerCase():W};return Y.replace(A,(function(I,L){return L||(function($){switch($){case"YY":return String(P.$y).slice(-2);case"YYYY":return x.s(P.$y,4,"0");case"M":return K+1;case"MM":return x.s(K+1,2,"0");case"MMM":return te(J.monthsShort,K,Z,3);case"MMMM":return te(Z,K);case"D":return P.$D;case"DD":return x.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return te(J.weekdaysMin,P.$W,G,2);case"ddd":return te(J.weekdaysShort,P.$W,G,3);case"dddd":return G[P.$W];case"H":return String(ee);case"HH":return x.s(ee,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return Q(ee,U,!0);case"A":return Q(ee,U,!1);case"m":return String(U);case"mm":return x.s(U,2,"0");case"s":return String(P.$s);case"ss":return x.s(P.$s,2,"0");case"SSS":return x.s(P.$ms,3,"0");case"Z":return j}return null})(I)||j.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,P,J){var Y,j=this,ee=x.p(P),U=H(B),K=(U.utcOffset()-this.utcOffset())*n,G=this-U,Z=function(){return x.m(j,U)};switch(ee){case S:Y=Z()/12;break;case d:Y=Z();break;case w:Y=Z()/3;break;case m:Y=(G-K)/6048e5;break;case f:Y=(G-K)/864e5;break;case i:Y=G/o;break;case c:Y=G/n;break;case s:Y=G/a;break;default:Y=G}return J?Y:x.a(Y)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return O[this.$L]},D.locale=function(B,P){if(!B)return this.$L;var J=this.clone(),Y=v(B,P,!0);return Y&&(J.$L=Y),J},D.clone=function(){return x.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},C})(),X=_.prototype;return H.prototype=X,[["$ms",r],["$s",s],["$m",c],["$H",i],["$W",f],["$M",d],["$y",S],["$D",T]].forEach((function(C){X[C[1]]=function(D){return this.$g(D,C[0],C[1])}})),H.extend=function(C,D){return C.$i||(C(D,_,H),C.$i=!0),H},H.locale=v,H.isDayjs=E,H.unix=function(C){return H(1e3*C)},H.en=O[M],H.Ls=O,H.p={},H}))})(On)),On.exports}var Iu=Eu();const ot=st(Iu);var An={exports:{}},Vu=An.exports,Lo;function Ou(){return Lo||(Lo=1,(function(e,l){(function(a,n){e.exports=n()})(Vu,(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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,r=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,i={},f=function(h){return(h=+h)+(h>68?1900:2e3)},m=function(h){return function(A){this[h]=+A}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(A){if(!A||A==="Z")return 0;var g=A.match(/([+-]|\d\d)/g),u=60*g[1]+(+g[2]||0);return u===0?0:g[0]==="+"?-u:u})(h)}],w=function(h){var A=i[h];return A&&(A.indexOf?A:A.s.concat(A.f))},S=function(h,A){var g,u=i.meridiem;if(u){for(var N=1;N<=24;N+=1)if(h.indexOf(u(N,0,A))>-1){g=N>12;break}}else g=h===(A?"pm":"PM");return g},T={A:[c,function(h){this.afternoon=S(h,!1)}],a:[c,function(h){this.afternoon=S(h,!0)}],Q:[o,function(h){this.month=3*(h-1)+1}],S:[o,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[r,m("day")],Do:[c,function(h){var A=i.ordinal,g=h.match(/\d+/);if(this.day=g[0],A)for(var u=1;u<=31;u+=1)A(u).replace(/\[|\]/g,"")===h&&(this.day=u)}],w:[s,m("week")],ww:[r,m("week")],M:[s,m("month")],MM:[r,m("month")],MMM:[c,function(h){var A=w("months"),g=(w("monthsShort")||A.map((function(u){return u.slice(0,3)}))).indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[c,function(h){var A=w("months").indexOf(h)+1;if(A<1)throw new Error;this.month=A%12||A}],Y:[/[+-]?\d+/,m("year")],YY:[r,function(h){this.year=f(h)}],YYYY:[/\d{4}/,m("year")],Z:d,ZZ:d};function y(h){var A,g;A=h,g=i&&i.formats;for(var u=(h=A.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(H,x,_){var X=_&&_.toUpperCase();return x||g[_]||a[_]||g[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,D,B){return D||B.slice(1)}))}))).match(n),N=u.length,M=0;M<N;M+=1){var O=u[M],k=T[O],E=k&&k[0],v=k&&k[1];u[M]=v?{regex:E,parser:v}:O.replace(/^\[|\]$/g,"")}return function(H){for(var x={},_=0,X=0;_<N;_+=1){var C=u[_];if(typeof C=="string")X+=C.length;else{var D=C.regex,B=C.parser,P=H.slice(X),J=D.exec(P)[0];B.call(x,J),H=H.replace(J,"")}}return(function(Y){var j=Y.afternoon;if(j!==void 0){var ee=Y.hours;j?ee<12&&(Y.hours+=12):ee===12&&(Y.hours=0),delete Y.afternoon}})(x),x}}return function(h,A,g){g.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(f=h.parseTwoDigitYear);var u=A.prototype,N=u.parse;u.parse=function(M){var O=M.date,k=M.utc,E=M.args;this.$u=k;var v=E[1];if(typeof v=="string"){var H=E[2]===!0,x=E[3]===!0,_=H||x,X=E[2];x&&(X=E[2]),i=this.$locale(),!H&&X&&(i=g.Ls[X]),this.$d=(function(P,J,Y,j){try{if(["x","X"].indexOf(J)>-1)return new Date((J==="X"?1e3:1)*P);var ee=y(J)(P),U=ee.year,K=ee.month,G=ee.day,Z=ee.hours,R=ee.minutes,te=ee.seconds,le=ee.milliseconds,Q=ee.zone,I=ee.week,L=new Date,$=G||(U||K?1:L.getDate()),W=U||L.getFullYear(),V=0;U&&!K||(V=K>0?K-1:L.getMonth());var p,z=Z||0,q=R||0,ne=te||0,oe=le||0;return Q?new Date(Date.UTC(W,V,$,z,q,ne,oe+60*Q.offset*1e3)):Y?new Date(Date.UTC(W,V,$,z,q,ne,oe)):(p=new Date(W,V,$,z,q,ne,oe),I&&(p=j(p).week(I).toDate()),p)}catch{return new Date("")}})(O,v,k,g),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),_&&O!=this.format(v)&&(this.$d=new Date("")),i={}}else if(v instanceof Array)for(var C=v.length,D=1;D<=C;D+=1){E[1]=v[D-1];var B=g.apply(this,E);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}D===C&&(this.$d=new Date(""))}else N.call(this,M)}}}))})(An)),An.exports}var Au=Ou();const Fu=st(Au);var Fn={exports:{}},Mu=Fn.exports,Po;function Bu(){return Po||(Po=1,(function(e,l){(function(a,n){e.exports=n()})(Mu,(function(){return function(a,n){var o=n.prototype,r=o.format;o.format=function(s){var c=this,i=this.$locale();if(!this.isValid())return r.bind(this)(s);var f=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(d){switch(d){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return i.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return i.ordinal(c.week(),"W");case"w":case"ww":return f.s(c.week(),d==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return f.s(String(c.$H===0?24:c.$H),d==="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 d}}));return r.bind(this)(m)}}}))})(Fn)),Fn.exports}var Ru=Bu();const Lu=st(Ru);var Mn={exports:{}},Pu=Mn.exports,_o;function _u(){return _o||(_o=1,(function(e,l){(function(a,n){e.exports=n()})(Pu,(function(){return function(a,n,o){var r=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},c=function(d,w,S,T,y){var h=d.name?d:d.$locale(),A=s(h[w]),g=s(h[S]),u=A||g.map((function(M){return M.slice(0,T)}));if(!y)return u;var N=h.weekStart;return u.map((function(M,O){return u[(O+(N||0))%7]}))},i=function(){return o.Ls[o.locale()]},f=function(d,w){return d.formats[w]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(T,y,h){return y||h.slice(1)}))})(d.formats[w.toUpperCase()])},m=function(){var d=this;return{months:function(w){return w?w.format("MMMM"):c(d,"months")},monthsShort:function(w){return w?w.format("MMM"):c(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):c(d,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):c(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):c(d,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return f(d.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},o.localeData=function(){var d=i();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(w){return f(d,w)},meridiem:d.meridiem,ordinal:d.ordinal}},o.months=function(){return c(i(),"months")},o.monthsShort=function(){return c(i(),"monthsShort","months",3)},o.weekdays=function(d){return c(i(),"weekdays",null,null,d)},o.weekdaysShort=function(d){return c(i(),"weekdaysShort","weekdays",3,d)},o.weekdaysMin=function(d){return c(i(),"weekdaysMin","weekdays",2,d)}}}))})(Mn)),Mn.exports}var qu=_u();const zu=st(qu);var Bn={exports:{}},ju=Bn.exports,qo;function Hu(){return qo||(qo=1,(function(e,l){(function(a,n){e.exports=n()})(ju,(function(){var a="week",n="year";return function(o,r,s){var c=r.prototype;c.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(a);if(m.isBefore(d))return 1}var w=s(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),S=this.diff(w,a,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},c.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})(Bn)),Bn.exports}var Ku=Hu();const Wu=st(Ku);var Rn={exports:{}},Yu=Rn.exports,zo;function Uu(){return zo||(zo=1,(function(e,l){(function(a,n){e.exports=n()})(Yu,(function(){return function(a,n){n.prototype.weekYear=function(){var o=this.month(),r=this.week(),s=this.year();return r===1&&o===11?s+1:o===0&&r>=52?s-1:s}}}))})(Rn)),Rn.exports}var Gu=Uu();const Xu=st(Gu);var Ln={exports:{}},Zu=Ln.exports,jo;function Qu(){return jo||(jo=1,(function(e,l){(function(a,n){e.exports=n()})(Zu,(function(){return function(a,n,o){n.prototype.dayOfYear=function(r){var s=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})(Ln)),Ln.exports}var Ju=Qu();const ec=st(Ju);var Pn={exports:{}},tc=Pn.exports,Ho;function nc(){return Ho||(Ho=1,(function(e,l){(function(a,n){e.exports=n()})(tc,(function(){return function(a,n){n.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}}))})(Pn)),Pn.exports}var lc=nc();const ac=st(lc);var _n={exports:{}},oc=_n.exports,Ko;function rc(){return Ko||(Ko=1,(function(e,l){(function(a,n){e.exports=n()})(oc,(function(){return function(a,n){n.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}}))})(_n)),_n.exports}var ic=rc();const sc=st(ic);ot.extend(zu),ot.extend(Lu),ot.extend(Fu),ot.extend(Wu),ot.extend(Xu),ot.extend(ec),ot.extend(ac),ot.extend(sc);const se={format(e,l){return ot(e).format(l)},parser(e,l){return ot(e,l).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,l,a){const o=new Date(e+"/"+l+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,l){let n=new Date(e+"/"+l+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){l=l||"-";const a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[a,n,o].join(l)},getDay(e,l,a){e=e||0;let n=l??new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),a=a??"YYYY-MM-DD",this.format(n,a)},compareDate(e,l){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof l=="string"?n=new Date(l.replace("-","/").replace("-","/")):n=l,!(a>=n)},isEqual(e,l){if(e===l)return!0;if(!e||!l)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof l=="string"?n=new Date(l).getTime():n=l,a==n},getMonthWeek:function(e,l,a,n=0){const o=new Date(Number(e),parseInt(l)-1,Number(a));let r=o.getDay(),s=o.getDate(),c=6-r;return n!==0&&(r=r==0?7:r,c=7-r),Math.ceil((s+c)/7)},getYearWeek:function(e,l,a,n=0){const o=new Date(Number(e),parseInt(l)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((o.valueOf()-r.valueOf())/864e5);let c=o.getDay(),i=6-c;return n!==0&&(c=c==0?7:c,i=7-c),Math.ceil((s+i)/7)},getWeekDate:function(e,l,a,n=0){const o=new Date(Number(e),parseInt(l)-1,Number(a)),r=o.getTime();let s=o.getDay();if(n===0){const i=r-s*864e5,f=r+(6-s)*864e5,m=this.date2Str(new Date(i)),d=this.date2Str(new Date(f));return[m,d]}else{s=s==0?7:s;const c=1440*60*1e3,i=r-(s-1)*c,f=r+(7-s)*c,m=this.date2Str(new Date(i)),d=this.date2Str(new Date(f));return[m,d]}},formatResultDate:function(e){let l=[...e.split("-")];return l[2]=se.getNumTwoBit(Number(l[2])),l[3]=`${l[0]}-${l[1]}-${l[2]}`,l[4]=se.getWhatDay(+l[0],+l[1],+l[2]),l},inScope4Day(e,l,a){const n=new Date(new Date(l).setDate(l.getDate()+a)),o=e.getTime(),r=n.getTime(),s=l.getTime();return r>s?o>=s&&o<=r:o>=r&&o<=s},inScope4Month(e,l,a){const n=new Date(new Date(l).setMonth(l.getMonth()+a)),o=e.getTime(),r=n.getTime(),s=l.getTime();return r>s?o>=s&&o<=r:o>=r&&o<=s}},Wo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Yo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function uc(e,l,a){return{props:{...ke,...Oe,...Wo,...Yo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=t.computed(()=>P.value&&Array.isArray(S.value)&&S.value.length==2?S.value[0]:S.value),y=t.computed(()=>P.value?"longTermKey":"normalKey"),h=L=>{if(P.value&&n.type==="daterange"){const $=[...S.value];$[0]=L,S.value=$}else S.value=L;f("update:modelValue",S.value),f("change",S.value)},A=t.computed(()=>P.value&&n.type==="daterange"?"date":n.type),g=e,u=t.computed(()=>({[`${g}`]:!0,"is-long":P.value,"is-readonly":i.value,"is-disabled":s.value}));let N=pe(n,"hintText"),M=t.ref(!1);const O=L=>{let W=L.target.value;w.value=!0,ge(N.value)||(M.value=!0),f("focus",W,L)},k=L=>{setTimeout(()=>{M.value&&(M.value=!1),w.value=!1},0);let W=L.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),f("blur",W,L)},E=()=>{f("clear","")},v=L=>{f("calendar-change",L)},H=(L,$,W)=>{f("panel-change",L,$,W)},x=L=>{f("visible-change",L)},_=Fe(t.computed(()=>n.longTermText),"longTermText",Ge.Near),X=Fe(t.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ge.Near),C=Fe(t.computed(()=>n.longTermValue),"longTermValue",Ge.Near),D=Fe(t.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ge.Near);let B=null;const P=t.ref(de(n.longTerm)),J=L=>{if(P.value=L,f("update:longTerm",L),L){if(B=S.value,n.type==="daterange"){const $=[];Array.isArray(C.value)?($[0]=S.value?S.value[0]??C.value[0]:null,$[1]=C.value[1]??C.value[0]):($[0]=S.value?S.value[0]??C.value:null,$[1]=P.value),$[0]||($[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),$[1]||($[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),S.value=$}else Array.isArray(C.value)?S.value=C.value[1]??C.value[0]:S.value=C.value,S.value||(S.value=n.valueFormat?se.format(new Date,n.valueFormat):new Date);f("update:modelValue",S.value)}else{if(n.type==="daterange"){const $=[];$[0]=Array.isArray(S.value)?S.value[0]:S.value,Array.isArray(B)?$[1]=B[1]:$[1]=B,$[0]||($[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),$[1]||($[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),S.value=$}else S.value=B;f("update:modelValue",S.value),setTimeout(()=>{Q()},100)}},Y=de(n.isLongTerm);if(Y){const L=()=>{if(P.value===!0){if(B=S.value,n.type==="daterange"){const $=[S.value[0]];Array.isArray(C.value)?$[1]=C.value[1]??C.value[0]:$[1]=P.value,$[0]||($[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),$[1]||($[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),S.value=$}else S.value=C.value;f("update:modelValue",S.value)}else Xe(C.value,S.value)&&(P.value=!0)};L(),t.watch([()=>n.longTerm],([$])=>{P.value!==$&&L()}),t.watch([()=>S.value],([$])=>{let W=!1;if(n.type==="daterange"&&Array.isArray($))try{let V=$[1];if(!V)return;if($[0]==null){f("update:modelValue",[]);return}typeof V!="string"&&n.valueFormat&&(V=se.format(V,n.valueFormat));let p=Array.isArray(C.value)?C.value[1]:C.value;(V===p||Array.isArray(D.value)&&D.value.findIndex(q=>V==q)!==-1)&&(W=!0)}catch(V){console.error(V)}P.value!==W&&(P.value=W)},{immediate:!0})}const j=t.computed(()=>({"fox-date-item__long":!0,"is-active":w.value})),ee=t.ref(),U=t.ref(),K=/^\d+$/,G=(L,$)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(L,$):K.test(L)&&L.length===n.flashFillThreshold,Z=(L,$)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(L,$);else{const p=n.flashFillFormat??"YYYYMMDD";W=se.parser(L,p)}const V=n.valueFormat??"YYYY-MM-DD";return se.format(W,V)},R=L=>L?L.endsWith("range"):!1,te=L=>{if(!L.target)return;const $=L.target.value??"";if(G($,n.type)){const W=Z($,n.type);if(R(n.type)){const V=Array.isArray(S.value)?[...S.value]:[];V[0]=W,h(V)}else h(W)}},le=L=>{if(!L.target)return;const $=L.target.value??"";if(G($,n.type)){const W=Z($,n.type);if(R(n.type)){const V=Array.isArray(S.value)?[...S.value]:[];V[1]=W,h(V)}else h(W)}},Q=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(R(n.type)){const L=ee.value.$el.querySelectorAll("input.el-range-input");L[0]&&L[0].addEventListener("input",te),L[1]&&L[1].addEventListener("input",le)}else{const L=ee.value.$el.querySelector("input.el-input__inner");L&&L.addEventListener("input",te)}},I=()=>{if(n.flashFill&&ee.value&&ee.value.$el)if(R(n.type)){const L=ee.value.$el.querySelectorAll("input.el-range-input");L[0]&&L[0].removeEventListener("input",te),L[1]&&L[1].removeEventListener("input",le)}else{const L=ee.value.$el.querySelector("input.el-input__inner");L&&L.removeEventListener("input",te)}};return t.onMounted(Q),t.onBeforeUnmount(I),we({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},handleOpen:()=>{U?.value.handleOpen()},handleClose:()=>{U?.value.handleClose()},setDisabled:L=>{r.value=L},setReadonly:L=>{c.value=L}}),()=>{const $={...o.attrs,key:y.value,type:A.value,ref:U,class:u.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:T.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:E,onFocus:O,onBlur:k,onCalendarChange:v,onPanelChange:H,onVisibleChange:x},W={};o.slots["range-separator"]&&(W["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(W.default=o.slots.cell);const V=[],p=t.h(F.ElDatePicker,$,W);V.push(p);const z={default:()=>V};if(z.label=o.slots.default,z.fixedPreTip=o.slots.fixedPreTip,z.fixedTip=o.slots.fixedTip,Y){if(P.value){const ie=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),he=t.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),ye={class:j.value},Te=t.h("div",ye,{default:()=>[ie,he]});V.push(Te)}if(!i.value&&!s.value){const ie={label:X.value||_.value,disabled:i.value||s.value,modelValue:P.value,"onUpdate:modelValue":J},he=t.h(F.ElCheckbox,ie),ye=t.h("div",{class:{[`${g}__append`]:!0}},[he]);z.append=()=>ye}}const ne={...Ve(n,Wo,Yo),ref:ee,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:N.value,hintVisible:M.value};return n.prop&&(ne.prop=`${n.prop}_item`),t.h(a,ne,z)}}}}const{componentName:cc,create:fc,scope:dc}=ue("date-item"),zl=fc(uc(cc,dc,$e)),hc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),jl={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},popClass:{type:String},popStyle:{type:Object}},Hl={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:{}}},Uo=2e3;let Go=Uo;const mc=(e,l)=>({components:l,props:{...Hl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:n}){const o=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:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),i=()=>{a.zIndex!==Uo&&(Go=Number(a.zIndex)),n("update:visible",!0),o.zIndex=++Go,a.destroyOnClose&&(o.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},m=y=>{n("click-pop",y)},d=y=>{y.stopPropagation(),n("click-close-icon",y),n("update:visible",!1)},w=y=>{n("click-overlay",y),a.closeOnClickOverlay&&n("update:visible",!1)},S=y=>{n("opend",y)},T=y=>{n("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?i():f()}),t.watch(()=>a.closeable,y=>{o.closed=y}),{...t.toRefs(o),popStyle:s,transitionName:c,classes:r,onClick:m,onClickCloseIcon:d,onClickOverlay:w,onOpened:S,onClosed:T}}});let jt=0;const Xo="fox-overflow-hidden",Zo=()=>ft?document.body:{classList:[]},gc=e=>[()=>{if(e())try{!jt&&Zo().classList.add(Xo),jt++}catch{}},()=>{if(e()&&jt)try{jt--,!jt&&Zo().classList.remove(Xo)}catch{}}],yc={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:pc,create:bc}=ue("overlay"),vc=bc({props:{...yc},emits:["click","update:visible"],setup(e,{emit:l}){const[a,n]=gc(()=>e.lockScroll),o=t.computed(()=>({[pc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,c=>{c?a():n()}),{classes:o,style:r,onClick:c=>{l("click",c),e.closeOnClickOverlay&&l("update:visible",!1)}}}});function wc(e,l,a,n,o,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:l[0]||(l[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 qn=Le(vc,[["render",wc]]),Sc=["aria-labelledby"],xc=t.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Cc=[xc],Tc=t.defineComponent({__name:"Uploader",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Cc,14,Sc))}}),kc=["aria-labelledby"],$c=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Dc=[$c],Nc=t.defineComponent({__name:"Search2",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,kc))}}),Ec=["aria-labelledby"],Ic=t.createElementVNode("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vc=[Ic],Oc=t.defineComponent({__name:"Right",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vc,14,Ec))}}),Ac=["aria-labelledby"],Fc=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mc=[Fc],Bc=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),Rc=["aria-labelledby"],Lc=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),Pc=[Lc],zn=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Pc,14,Rc))}}),_c=["aria-labelledby"],qc=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),zc=[qc],jc=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},zc,14,_c))}}),Hc=["aria-labelledby"],Kc=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),Wc=[Kc],Qo=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Yc=["aria-labelledby"],Uc=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),Gc=[Uc],Jo=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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Yc))}}),Xc=["aria-labelledby"],Zc=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Zc],Jc=t.defineComponent({__name:"Checked",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Xc))}}),ef=["aria-labelledby"],tf=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),nf=[tf],lf=t.defineComponent({__name:"CheckNormal",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:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},nf,14,ef))}}),af=["aria-labelledby"],of=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),rf=[of],sf=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const a=e,n=l,o=i=>{n("click",i)},r=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=t.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+a.name]:a.name,[a.class]:!!a.class}}),c=t.computed(()=>{const i={};return i.height=r(a.height)??r(a.size),i.width=r(a.width)??r(a.size),i.color=a.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},rf,14,af))}}),{componentName:uf,create:cf}=ue("popup"),ff=cf(mc(uf,{FoxOverLay:qn,Close:Qo}));function df(e,l,a,n,o,r){const s=t.resolveComponent("FoxOverLay"),c=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:l[1]||(l[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:l[0]||(l[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bt=Le(ff,[["render",df]]),er=39,tr=64,{create:hf,scope:mf}=ue("calendar-pane"),gf=hf({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:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:l,slots:a}){const{toLocaleRefs:n,t:o}=xe.useFoxI18n(mf),r=n(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${er}px`})),c=t.computed(()=>({height:`${tr}px`})),i=JSON.parse(o("weekdays")),f=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),m=t.ref(null),d=t.ref(null),w=t.ref(null),S=t.ref(null),T=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),h=t.computed(()=>a.btn),A=t.computed(()=>a["top-info"]),g=t.computed(()=>a["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),N=Q=>Q.split("-"),M=Q=>se.isEqual(u.currDate[0],Q),O=Q=>se.isEqual(u.currDate[1],Q),k=Q=>u.currDate?.length>0?u.currDate?.some(I=>se.isEqual(I,Q)):!1,E=(Q,I)=>I.curData[0]+"-"+I.curData[1]+"-"+se.getNumTwoBit(+Q.day),v=(Q,I)=>{const L=E(Q,I),{type:$}=e;return Q.type=="curr"?se.isEqual(u.currDate,L)||($=="range"||$=="week")&&(M(L)||O(L))||$=="multiple"&&k(L)?`${u.dayPrefix}--active`:u.propStartDate&&se.compareDate(L,u.propStartDate)||u.propEndDate&&se.compareDate(u.propEndDate,L)?`${u.dayPrefix}--disabled`:($=="range"||$=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&se.compareDate(u.currDate[0],L)&&se.compareDate(L,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},H=()=>{const{type:Q}=e;if(Q=="range"&&u.chooseData.length==2||Q!="range"){let I=u.chooseData.slice(0);Q=="week"&&(I={weekDate:[_(u.chooseData[0]),_(u.chooseData[1])]}),l("choose",I),e.poppable&&l("update")}},x=(Q,I,L=!1)=>{if(v(Q,I)!=`${u.dayPrefix}--disabled`){const{type:$}=e;let[W,V]=I.curData,p=[...I.curData];if(p[2]=se.getNumTwoBit(Number(Q.day)),p[3]=`${p[0]}-${p[1]}-${p[2]}`,p[4]=se.getWhatDay(+p[0],+p[1],+p[2]),$=="multiple")if(u.currDate?.length>0){let z;u.currDate?.forEach((q,ne)=>{q==p[3]&&(z=ne)}),L?u.chooseData.push([...p]):z!==void 0?(u.currDate.splice(z,1),u.chooseData.splice(z,1)):(u.currDate.push(p[3]),u.chooseData.push([...p]))}else u.currDate=[p[3]],u.chooseData=[[...p]];else if($=="range"){let z=Object.values(u.currDate).length;z==2||z==0?u.currDate=[p[3]]:se.compareDate(u.currDate[0],p[3])?Array.isArray(u.currDate)&&u.currDate.push(p[3]):Array.isArray(u.currDate)&&u.currDate.unshift(p[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...p]]:se.compareDate(u.chooseData[0][3],p[3])?u.chooseData=[...u.chooseData,[...p]]:u.chooseData=[[...p],...u.chooseData]}else if($=="week"){let z=se.getWeekDate(W,V,Q.day,e.firstDayOfWeek);u.propStartDate&&se.compareDate(z[0],u.propStartDate)&&z.splice(0,1,u.propStartDate),u.propEndDate&&se.compareDate(u.propEndDate,z[1])&&z.splice(1,1,u.propEndDate),u.currDate=z,u.chooseData=[se.formatResultDate(z[0]),se.formatResultDate(z[1])]}else u.currDate=p[3],u.chooseData=[...p];if(!L){let z=u.chooseData;$=="week"&&(z={weekDate:[_(u.chooseData[0]),_(u.chooseData[1])]}),l("select",z),(e.isAutoBackFill||!e.poppable)&&H()}}},_=Q=>{let[I,L,$]=Q;return{date:Q,monthWeekNum:se.getMonthWeek(I,L,$,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(I,L,$,e.firstDayOfWeek)}},X=Q=>{const I=u.monthsData[u.monthsData.length-1];let L=parseInt(I.curData[0]),$=parseInt(I.curData[1].toString().replace(/^0/,""));switch(Q){case"prev":$==1&&(L-=1),$=$==1?12:--$;break;case"next":$==12&&(L+=1),$=$==12?1:++$;break}return[L+"",se.getNumTwoBit($),se.getMonthDays(String(L),String($))+""]},C=(Q,I,L)=>{let{year:$,month:W}=L;return Array.from(Array(Q),(V,p)=>({day:String(p+1),type:I,year:$,month:W}))},D=(Q,I,L,$)=>{Q=Q-e.firstDayOfWeek;let{year:W,month:V}=L;return Q>=7&&(Q-=7),Array.from(Array($),(z,q)=>({day:String(q+1),type:I,year:W,month:V})).slice($-Q)},B=(Q,I)=>{const L=se.getMonthPreDay(+Q[0],+Q[1]);let $=Number(Q[1])-1,W=Number(Q[0]);$<=0&&($=12,W+=1);const V=se.getMonthDays(String(Q[0]),String(Q[1])),p=se.getMonthDays(W+"",$+""),z={year:Q[0],month:Q[1]},q={curData:Q,title:o("monthTitle",{year:z.year,month:z.month}),monthData:[...D(L,"prev",{month:String($),year:String(W)},p),...C(V,"curr",z)],cssHeight:0,cssScrollHeight:0},ne=q.monthData.length>35?6:5;q.cssHeight=er+tr*ne;let oe=0;u.monthsData.length>0&&(oe=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),q.cssScrollHeight=oe,(!u.endData||!se.compareDate(`${u.endData[0]}-${u.endData[1]}-${se.getMonthDays(u.endData[0],u.endData[1])}`,`${Q[0]}-${Q[1]}-${Q[2]}`))&&u.monthsData.push(q)},P=()=>{let Q=e.startDate?e.startDate:se.getDay(0),I=e.endDate?e.endDate:se.getDay(365);u.propStartDate=Q,u.propEndDate=I,u.startData=N(Q),u.endData=N(I),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(u.startData[0]),month:Number(u.startData[1])},$={year:Number(u.endData[0]),month:Number(u.endData[1])};let W=$.month-L.month;$.year-L.year>0&&(W=W+12*($.year-L.year)),W<=0&&(W=1),B(u.startData);let V=1;do B(X("next"));while(V++<W);if(u.monthsNum=W,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(Q&&se.compareDate(u.currDate[0],Q)&&u.currDate.splice(0,1,Q),I&&se.compareDate(I,u.currDate[1])&&u.currDate.splice(1,1,I),u.defaultData=[...N(u.currDate[0]),...N(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let p=[],z={};u.currDate.forEach(q=>{Q&&!se.compareDate(q,Q)&&I&&!se.compareDate(I,q)&&(Object.hasOwnProperty.call(z,q)||(p.push(q),z[q]=q))}),u.currDate=[...p],u.defaultData=[...N(p[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[p,z,q]=N(u.currDate[0]),ne=se.getWeekDate(p,z,q,e.firstDayOfWeek);u.currDate=ne,Q&&se.compareDate(u.currDate[0],Q)&&u.currDate.splice(0,1,Q),I&&se.compareDate(I,u.currDate[1])&&u.currDate.splice(1,1,I),u.defaultData=[...N(u.currDate[0]),...N(u.currDate[1])]}}else u.currDate&&(Q&&se.compareDate(u.currDate,Q)?u.currDate=Q:I&&!se.compareDate(u.currDate,I)&&(u.currDate=I),u.defaultData=[...N(u.currDate)])};we({scrollToDate:Q=>{se.compareDate(Q,u.propStartDate)?Q=u.propStartDate:se.compareDate(Q,u.propEndDate)||(Q=u.propEndDate);let I=N(Q);u.monthsData.forEach((L,$)=>{if(L.title==o("monthTitle",{year:I[0],month:I[1]})&&m.value){let W=u.monthsData[$].cssScrollHeight-m.value.scrollTop;if(e.toDateAnimation){let V=0,p=setInterval(()=>{if(V++,m.value){let z=W/10;m.value.scrollTop=m.value.scrollTop+z}V>=10&&(clearInterval(p),m.value&&(m.value.scrollTop=u.monthsData[$].cssScrollHeight))},40)}else m.value.scrollTop=u.monthsData[$].cssScrollHeight}})},initPosition:()=>{m?.value&&(m.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let Q=0,I=0;u.defaultData.length>0&&u.monthsData.forEach((W,V)=>{W.title==o("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(Q=V),(e.type=="range"||e.type=="week")&&W.title==o("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(I=V)}),ee(u.monthsNum,Q),u.currentIndex=Q,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),x({day:u.defaultData[5],type:"curr"},u.monthsData[I],!0)):e.type=="week"?x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(W=>{let V=N(W),p=u.currentIndex;u.monthsData.forEach((z,q)=>{z.title==o("monthTitle",{year:V[0],month:V[1]})&&(p=q)}),x({day:V[2],type:"curr"},u.monthsData[p],!0)}):x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let L=u.monthsData[u.monthsData.length-1],$=L.cssHeight+L.cssScrollHeight;nl(()=>{m?.value&&d?.value&&S?.value&&(T.value=m.value.clientHeight,d.value.style.height=`${$}px`,m.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor($/(u.monthsNum+1))}});const ee=(Q,I)=>{Q>=3?I>0&&I<Q?u.defaultRange=[I-1,I+3]:I==0?u.defaultRange=[I,I+4]:I==Q&&(u.defaultRange=[I-2,I+2]):u.defaultRange=[0,Q+2];let L=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=L},U=(Q,I)=>(e.type=="range"||e.type=="week")&&Q.type=="curr"&&v(Q,I)=="fox-calendar__day--active",K=(Q,I)=>U(Q,I)&&M(E(Q,I)),G=(Q,I)=>u.currDate.length>=2&&O(E(Q,I))?U(Q,I):!1,Z=()=>{if(u.currDate.length>=2)return se.isEqual(u.currDate[0],u.currDate[1])},R=Q=>{const I=`${Q.year}-${Q.month}-${Number(Q.day)<10?"0"+Q.day:Q.day}`;return se.isEqual(I,se.date2Str(new Date))},te=Q=>{if(u.monthsData.length<=1)return;const I=Q.target.scrollTop;let L=Math.floor(I/u.avgHeight);if(L==0)I>=u.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<u.monthsNum-1)I>=u.monthsData[L+1].cssScrollHeight&&(L+=1),I<u.monthsData[L].cssScrollHeight&&(L-=1);else{const $=Math.round(I+T.value);$<u.monthsData[L].cssScrollHeight+u.monthsData[L].cssHeight&&I>u.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=u.monthsNum&&$>=u.monthsData[L+1].cssScrollHeight+u.monthsData[L+1].cssHeight&&(L+=1),L>=1&&I<u.monthsData[L-1].cssScrollHeight&&(L-=1)}u.currentIndex!==L&&(u.currentIndex=L,ee(u.monthsNum,L)),u.yearMonthTitle=u.monthsData[L].title},le=()=>{u.chooseData.splice(0),u.monthsData.splice(0),P()};return P(),t.watch(()=>e.defaultValue,Q=>{Q&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:c,weeks:f,compConthsData:y,showTopBtn:h,topInfo:A,bottomInfo:g,rangeTip:Z,mothsViewScroll:te,getClass:v,isStartTip:K,isEndTip:G,chooseDay:x,isCurrDay:R,confirm:H,months:m,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:w,viewArea:S}}}),yf={class:"fox-calendar__header"},pf={key:0,class:"fox-calendar__header-title"},bf={key:1,class:"fox-calendar__header-slot"},vf={key:2,class:"fox-calendar__header-subtitle"},wf={class:"fox-calendar__weekdays",ref:"weeksPanel"},Sf={class:"fox-calendar__panel",ref:"monthsPanel"},xf={class:"fox-calendar__days"},Cf=["onClick"],Tf={class:"fox-calendar__day-value"},kf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},$f={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Df={key:2,class:"fox-calendar__day-tips--curr"},Nf={key:4,class:"fox-calendar__day-tip"},Ef={key:0,class:"fox-calendar__footer"};function If(e,l,a,n,o,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",yf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",pf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",bf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",vf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",wf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:c},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:l[0]||(l[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Sf,[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,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:c},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(s.title),5),t.createElementVNode("view",xf,[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,(i,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(i,s)]),style:t.normalizeStyle(e.dayCellStyle),onClick:m=>e.chooseDay(i,s)},[t.createElementVNode("view",Tf,[t.renderSlot(e.$slots,"day",{date:i.type=="curr"?i:""},()=>[t.createTextVNode(t.toDisplayString(i.type=="curr"?i.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",kf,[t.renderSlot(e.$slots,"top-info",{date:i.type=="curr"?i:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",$f,[t.renderSlot(e.$slots,"bottom-info",{date:i.type=="curr"?i:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(i)?(t.openBlock(),t.createElementBlock("view",Df,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(i,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(i,s)?(t.openBlock(),t.createElementBlock("view",Nf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Cf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Ef,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:l[1]||(l[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Vf=Le(gf,[["render",If]]),{create:Of}=ue("calendar-picker"),Af=Of({components:{CalendarPane:Vf,Popup:bt},props:{...jl},emits:["choose","close","update:visible","select"],setup(e,{emit:l,slots:a}){const n=t.computed(()=>a.btn),o=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),c=t.ref(null),i=h=>{c.value?.scrollToDate(h)},f=()=>{c.value?.initPosition()},m=t.computed(()=>{const h=["fox-calendar__popup"];return e.popClass&&h.push(e.popClass),h});t.watch(()=>e.visible,h=>{h&&t.nextTick(()=>{c.value?c.value.doLayout():setTimeout(()=>{c.value&&c.value.doLayout()},250)})}),we({scrollToDate:i,initPosition:f});const d=()=>{l("update:visible",!1)},w=()=>{l("close"),l("update:visible",!1)};return{popClasses:m,closePopup:()=>{w()},update:d,close:w,select:h=>{l("select",h)},choose:h=>{w(),l("choose",h)},calendarRef:c,showTopBtn:n,topInfo:o,dayInfo:r,bottomInfo:s}}});function Ff(e,l,a,n,o,r){const s=t.resolveComponent("CalendarPane"),c=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(c,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{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(i=>[t.renderSlot(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"bottom-info",{date:i.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","pop-class","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(i=>[t.renderSlot(e.$slots,"day",{date:i.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"top-info",{date:i.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"bottom-info",{date:i.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 jn=Le(Af,[["render",Ff]]),Kl=(e,l)=>{let a;return ct(e)?a=e:typeof e=="string"&&lt(e)>0?a=se.parser(e,l):a=new Date,a},Dt=(e,l,a)=>(ct(l)||(l=new Date),se.format(l,a)),Nt=e=>{let l=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,n=`${e.getDate()}`,o=se.date2Str(e),r=se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[l,a,n,o,r]},nr={...jl,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 Mf(e,l,a){return{props:{...ke,...Oe,...nr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]);let w=pe(n,"hintText"),S=t.ref(!1);const T=t.ref(!1),y=t.computed(()=>n.type==="range"),h=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),A=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},g=(Y,j="one",ee="YYYY-MM-DD")=>{if(hc(Y)){A();return}if(y.value&&Array.isArray(Y)&&Y.length==2){let U,K;typeof Y[0]=="string"?(U=Kl(Y[0],ee),K=Kl(Y[1],ee)):(U=Y[0],K=Y[1]);let G=Nt(U),Z=Nt(K);(h.startDate===null||h.startDate.getTime()!==U.getTime()||h.endDate?.getTime()!==K.getTime())&&(h.startDate=U,h.startArray=G,h.endDate=K,h.endArray=Z)}else{let U;typeof Y=="string"?U=Kl(Y,ee):U=Y;let K=Nt(U);(h.startDate===null||h.startDate.getTime()!==U.getTime())&&(h.startDate=U,h.startArray=K)}};g(n.modelValue,n.type,n.valueFormat),t.watch(()=>n.modelValue,Y=>{g(Y,n.type,n.valueFormat),f("setValue",Y)});const u=t.computed(()=>{if(h.startDate===null)return"";if(y.value){let Y=Dt(n,h.startDate,n.format),j=Dt(n,h.endDate,n.format);return`${Y} ${n.rangeSeparator} ${j}`}else{let Y=Dt(n,h.startDate,n.format);return n.showWeek&&(Y=`${Y} ${h.startArray[4]}`),Y}}),N=t.computed(()=>{if(h.startDate===null)return null;if(y.value){let Y=se.date2Str(h.startDate),j=se.date2Str(h.endDate??new Date);return[Y,j]}else return se.date2Str(h.startDate)}),M="fox-input-item",O=t.computed(()=>({[M]:!0,[`${M}__disabled`]:s.value})),k=Fe(t.computed(()=>n.textAlign),"textAlign"),E=t.computed(()=>({textAlign:k.value??"right"})),v=t.ref(!1),H=()=>{i.value||s.value||(v.value=!0)},x=()=>{v.value=!1},_=Y=>{v.value=Y},X=Y=>{if(Y){if(y.value&&Array.isArray(Y)){let j=Y[0],ee=be(j[0]),U=be(j[1]),K=be(j[2]),G=new Date(ee,U-1,K),Z=Y[1];ee=be(Z[0]),U=be(Z[1]),K=be(Z[2]);let R=new Date(ee,U-1,K);if(h.startDate=G,h.startArray=Nt(G),h.endDate=R,h.endArray=Nt(R),n.valueFormat){let te=Dt(n,G,n.valueFormat),le=Dt(n,R,n.valueFormat);f("update:modelValue",[te,le],{})}else f("update:modelValue",[G,R],{})}else{let j=Y,ee=be(j[0]),U=be(j[1]),K=be(j[2]),G=new Date(ee,U-1,K);if(h.startDate=G,h.startArray=Nt(G),n.valueFormat){let Z=Dt(n,G,n.valueFormat);f("update:modelValue",Z,{})}else f("update:modelValue",G,{})}f("change",Y,{})}},C=Y=>{let ee=Y.target.value;T.value=!0,f("focus",ee,Y)},D=Y=>{setTimeout(()=>{T.value=!1},0);let ee=Y.target.value;n.maxLength&&ee.length>Number(n.maxLength)&&(ee=ee.slice(0,Number(n.maxLength))),f("blur",ee,Y)},B=t.computed(()=>lt(n.unit)>0),P=Y=>{A(),f("update:modelValue",null,Y),f("change","",Y),f("clear","")},J=t.ref();return we({showPicker:H,hidePicker:x,focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()},select:()=>{J?.value.select()},setDisabled:Y=>{r.value=Y},setReadonly:Y=>{c.value=Y}}),()=>{const Y={class:O.value,style:E.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:n.clearable,value:u.value,onClick:H,onFocus:C,onBlur:D,onClear:P},j={};o.slots.prepend&&(j.prepend=o.slots.prepend),o.slots.append&&(j.append=o.slots.append),o.slots.prefix?j.prefix=o.slots.prefix:j.prefix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ie.Calendar)}),o.slots.suffix?j.suffix=o.slots.suffix:B.value&&(j.suffix=()=>[n.unit]);const ee=[],U=t.h(F.ElInput,Y,j);ee.push(U);const K={default:()=>ee};K.label=o.slots.default,K.fixedPreTip=o.slots.fixedPreTip,K.fixedTip=o.slots.fixedTip;const G=it(n,jl);G.visible=v.value,G["onUpdate:visible"]=_,G["default-value"]=N.value,G.onChoose=X;const Z={};if(o.slots.btn){const I=o.slots.btn();Z.btn=()=>I}o.slots.day&&(Z.day=o.slots.day),o.slots.topInfo&&(Z.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(Z.bottomInfo=o.slots.bottomInfo);const R=t.h(jn,G,Z);K.hide=()=>[R];const le={...Ve(n,nr),hintText:w.value,hintVisible:S.value};return n.prop&&(le.prop=`${n.prop}_item`),t.h(a,le,K)}}}}const{componentName:Bf,create:Rf,scope:Lf}=ue("calendar-item"),Wl=Rf(Mf(Bf,Lf,$e)),lr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Pf(e,l,a){return{props:{...ke,...Oe,...lr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0})),h=E=>{S.value=E,f("update:modelValue",E),f("change",E)};let A=pe(n,"hintText"),g=t.ref(!1);const u=E=>{let H=E.target.value;w.value=!0,ge(A.value)||(g.value=!0),f("focus",H,E)},N=E=>{setTimeout(()=>{g.value&&(g.value=!1),w.value=!1},0);let H=E.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),f("blur",H,E)},M=()=>{f("clear","")},O=E=>{f("visible-change",E)},k=t.ref();return we({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()},setDisabled:E=>{r.value=E},setReadonly:E=>{c.value=E}}),()=>{const v={...o.attrs,ref:k,class:y.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:S.value,"onUpdate:modelValue":h,onClear:M,onFocus:u,onBlur:N,onVisibleChange:O},H={},x=[],_=t.h(F.ElTimePicker,v,H);x.push(_);const X={default:()=>x};X.label=o.slots.default,X.fixedPreTip=o.slots.fixedPreTip,X.fixedTip=o.slots.fixedTip;const D={...Ve(n,lr),hintText:A.value,hintVisible:g.value};return n.prop&&(D.prop=`${n.prop}_item`),t.h(a,D,X)}}}}const{componentName:_f,create:qf,scope:zf}=ue("time-item"),Yl=qf(Pf(_f,zf,$e)),ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function jf(e,l,a){return{props:{...ke,...Oe,...ar},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0})),h=k=>{S.value=k,f("update:modelValue",k),f("change",k)};let A=pe(n,"hintText"),g=t.ref(!1);const u=k=>{let v=k.target.value;w.value=!0,ge(A.value)||(g.value=!0),f("focus",v,k)},N=k=>{setTimeout(()=>{g.value&&(g.value=!1),w.value=!1},0);let v=k.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),f("blur",v,k)},M=()=>{f("clear","")},O=t.ref();return we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:k=>{r.value=k},setReadonly:k=>{c.value=k}}),()=>{const E={...o.attrs,ref:O,class:y.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:S.value,"onUpdate:modelValue":h,onClear:M,onFocus:u,onBlur:N},v={},H=[],x=t.h(F.ElTimeSelect,E,v);H.push(x);const _={default:()=>H};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const C={...Ve(n,ar),hintText:A.value,hintVisible:g.value};return n.prop&&(C.prop=`${n.prop}_item`),t.h(a,C,_)}}}}const{componentName:Hf,create:Kf,scope:Wf}=ue("time-select-item"),Ul=Kf(jf(Hf,Wf,$e));function or(e,l=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let o=n;for(let r=a.length-1;r>=n;r--)if(a.charAt(r)!="0"){o=r;break}return o-n<l?o=n+l+1:o!=n&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function rr(e,l,a=20){if(typeof l=="string"&&(l=be(l)),l==1||l==-1)return`${e}`;if(l==0)return"0";if(l>0){let n=Ua(`${e}`,`${l}`);return or(n)}else{let n=cl(`${e}`,Ga(`${l}`),20);return or(n)}}function Yf(e,l=-1,a=!1,n=3,o=","){return tn(e,l,a,n,o)}function ir(e,l,a,n,o=!0){if(e==="")return"";if(e=Xa(e),l=be(l),l==1)return e;if(n)e=rr(e,l),a&&(e=="0"&&o?e=`${e}.`.padEnd(be(a)+2,"0"):e=cl(e,1,be(a)));else{let r=-1*l;e=rr(e,r)}return e}function sr(e,l){let a={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let n=de(l.minInclude),o=fl(e,l.min);if(n&&o==-1||!n&&(o==0||o==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",l.min),a.minValid=!1}}if(l.max!=null){let n=de(l.maxInclude),o=fl(e,l.max);(n&&o==1||!n&&(o==0||o==1))&&(a.maxValid=!1)}return a}const ur={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 Uf(e,l,a){return{props:{...ke,...Oe,...ur},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=t.ref(!1),d=pe(n,"modelValue",null,f),w=t.ref("");t.watch([()=>d.value,()=>n.rates,()=>n.precision],([D,B,P])=>{if(ge(D)){w.value="";return}const J=ir(D,B,P,!1);w.value!==J&&(w.value=J)},{immediate:!0});const S=t.computed(()=>{let D="";return m.value&&(D=w.value),D}),{t:T}=xe.useFoxI18n(l),y=t.computed(()=>{let D=n.placeholder??"";return!m.value&&!ge(w.value)?D=Yf(w.value,n.decimalLength,n.autoPadding,n.digits,n.separator):D=T(["placeholder",D]),D}),h=e,A=t.computed(()=>({[h]:!0,[`${h}__disabled`]:s.value,[`${h}__placeholder`]:w.value.length>0})),g=Fe(t.computed(()=>n.textAlign),"textAlign");t.computed(()=>m.value?{textAlign:"left"}:{textAlign:g.value??"right"});const u=t.ref(""),N=t.computed(()=>{let D=u.value;return ge(D)&&(D=n.errorTip??""),D}),M=t.ref(""),O=t.ref(!1),k=(D,B)=>{if(D=`${D}`,ge(D)){w.value="",d.value="",B.forEach(P=>{f(P,"")}),de(n.showTip)&&O.value&&(O.value=!1);return}if(D.length>=2){let P=D;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){t.triggerRef(w);return}}if(D!="-"){if(!yl(D)){t.triggerRef(w);return}if(n.integerLength!=-1&&ao(D)>Number(n.integerLength)){t.triggerRef(w);return}if(n.decimalLength&&n.decimalLength!=-1&&oo(D)>Number(n.decimalLength)){t.triggerRef(w);return}let P=sr(D,n);if(P.maxValid===!1){u.value=P.message,t.triggerRef(w);return}}else if(n.min!=null&&be(n.min)>=0){t.triggerRef(w);return}M.value=D,de(n.showTip)&&(O.value=D.length>0),w.value=D,d.value=ir(D,n.rates,n.precision,!0),B.forEach(P=>{f(P,d.value)})},E=D=>{k(D,["update:modelValue","input"])},v=D=>{k(D,["update:modelValue","change"])},H=D=>{if(m.value=!0,de(n.showTip)){let B=w.value;ge(B)&&(B=n.hintText),ge(B)||(M.value=B,O.value=!0)}u.value="",f("focus",d.value,D)},x=D=>{if(setTimeout(()=>{m.value=!1,de(n.showTip)&&O.value===!0&&(O.value=!1)},0),!ge(w.value)){let B=sr(w.value,n);if(B.minValid===!1||B.maxValid===!1){u.value=B.message;return}}f("update:modelValue",d.value,D),f("blur",d.value,D)},_=()=>{f("clear","")},X=t.computed(()=>lt(n.unit)>0),C=t.ref();return we({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()},setDisabled:D=>{r.value=D},setReadonly:D=>{c.value=D}}),()=>{const B={...Je(o.attrs),ref:C,class:A.value,type:"digit",maxlength:n.maxLength,placeholder:y.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onInput:E,onChange:v,onFocus:H,onBlur:x},P={};o.slots.prepend&&(P.prepend=o.slots.prepend),o.slots.append&&(P.append=o.slots.append),o.slots.prefix&&(P.prefix=o.slots.prefix),o.slots.suffix?P.suffix=o.slots.suffix:X.value&&(P.suffix=()=>[n.unit]);const J=[],Y=t.h(F.ElInput,B,P);J.push(Y);const j={default:()=>J};j.label=o.slots.default,j.fixedPreTip=o.slots.fixedPreTip,j.fixedTip=o.slots.fixedTip;const U={...Ve(n,ur),errorTip:N.value,hintText:M.value,hintVisible:O.value,hintType:"number"};return n.prop&&(U.prop=`${n.prop}_item`),t.h(a,U,j)}}}}const{componentName:Gf,create:Xf,scope:Zf}=ue("money-item"),Gl=Xf(Uf(Gf,Zf,$e)),cr={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 Qf(e,l,a){return{props:{...ke,...Oe,...cr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0,[`${T}__append`]:E.value})),h=t.computed(()=>({[`${T}__unit`]:!0})),A=H=>{S.value=H,f("update:modelValue",H),f("input",H)},g=H=>{f("change",H)};let u=pe(n,"hintText"),N=t.ref(!1);const M=H=>{let _=H.target.value;w.value=!0,ge(u.value)||(N.value=!0),f("focus",_,H)},O=H=>{setTimeout(()=>{N.value&&(N.value=!1),w.value=!1},0);let _=H.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),f("blur",_,H)},k=()=>{f("clear","")},E=t.computed(()=>lt(n.unit)>0),v=t.ref();return we({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},setDisabled:H=>{r.value=H},setReadonly:H=>{c.value=H}}),()=>{const x={...Je(o.attrs),ref:v,class:y.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onChange:g,onInput:A,onFocus:M,onBlur:O},_={},X=[],C=t.h(F.ElInputNumber,x,_);X.push(C);const D={default:()=>X};D.label=o.slots.default,D.fixedPreTip=o.slots.fixedPreTip,D.fixedTip=o.slots.fixedTip;const P={...Ve(n,cr),hintText:u.value,hintVisible:N.value};if(n.prop&&(P.prop=`${n.prop}_item`),o.slots.append)D.append=o.slots.append;else if(E.value){const Y={class:h.value},j=t.h("div",Y,[n.unit]);D.append=()=>j}return t.h(a,P,D)}}}}const{componentName:Jf,create:ed,scope:td}=ue("input-number-item"),Xl=ed(Qf(Jf,td,$e));function ut(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function vt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function nd(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}let ld=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,o);const r=Re(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await r(a,n,o))}};function ad(){const e=t.getCurrentInstance();return new ld(e.proxy)}function Zl(e,l,a){const n=ut(e,l),o=ut(e,a);if(n!==o)return!1;const r=vt(e,l),s=vt(e,a);return r===s}function fr(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];let r=n;for(let s=0;Array.isArray(r)&&s<l.length;s++){const c=l[s];if(Array.isArray(c)){const i=fr(e,c,a,n);o.push(i)}else{let i=!1;for(let f of r){if(a==="text")i=ut(e,f)===c;else if(a==="item")i=Zl(e,f,c);else{let m=vt(e,f);m==null&&(m=ut(e,f)),i=m===c}if(i){o.push(f),r=nd(e,f);break}}if(!i)break}}return o}function od(e){return{text:e,value:e}}const dr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function rd(e,l,a){return{props:{...ke,...Oe,...dr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(null),S=t.ref([]),T=t.computed(()=>S.value?S.value.map(L=>Array.isArray(L)?L.map(W=>ut(n,W)).join(" "):ut(n,L)).join(" "):""),y=(I,L,$,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(w.value===I)return;w.value=I;const q=t.toRaw(I);if(W){const ne=Q?.value.getCheckedNodes();if(ne)if(n.multiple){const oe=[];ne.forEach(ie=>{const ye=(ie.pathNodes??[]).map(Te=>Te.data);oe.push(ye)}),f("update:pathNodes",oe)}else{const ie=(ne[0]?.pathNodes??[]).map(he=>he.data);f("update:pathNodes",ie)}f("update:modelValue",q),f("change",q)}return}const V=fr(n,I,L,$);if(V===null){if(S.value.length===0||S.value===null)return;S.value=[],w.value=null,W&&(f("update:pathNodes",[]),f("update:modelValue",null),f("change",null));return}const p=V[V.length-1];if(_.value.checkStrictly!==!0&&p&&!Array.isArray(p)&&Array.isArray(p.children)&&p.children.length>0){const q=[];V.forEach(ne=>{const oe=`${ut(n,ne)}`;q.push(oe)}),q.length>0&&(H.value=q.join(n.separator))}else H.value=null;let z=!0;if(V.length!==S.value.length)z=!1;else for(let q=0;q<V.length;q++){const ne=V[q],oe=S.value[q];if(Array.isArray(ne)){if(!Array.isArray(oe)||ne.length!==oe.length)z=!1;else for(let ie=0;ie<ne.length;ie++)if(!Zl(n,ne[ie],oe[ie])){z=!1;break}}else Zl(n,ne,oe)||(z=!1);if(!z)break}if(!z){S.value=V;let q=[],ne=[];V.forEach(ie=>{if(Array.isArray(ie)){let he=[],ye=[];for(let Te of ie)he.push(vt(n,Te)),n.valueType==="text"?ye.push(ut(n,Te)):n.valueType==="item"?ye.push(Te):ye.push(vt(n,Te));q.push(he),ne.push(ye)}else q.push(vt(n,ie)),n.valueType==="text"?ne.push(ut(n,ie)):n.valueType==="item"?ne.push(ie):ne.push(vt(n,ie))}),w.value=q;const oe=t.toRaw(ne);W&&(f("update:pathNodes",V),f("update:modelValue",oe),f("change",oe))}},h=t.ref([]),A=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,I=>de(I)),g=ad(),u=async(I,L)=>{if(I){const $=await g.load("cascader",I,L);if($.length>0)if(typeof $[0]=="string"){let p=$.map(z=>od(z));h.value=p}else h.value=$}};t.watch([()=>n.source,()=>n.params],async([I,L])=>{u(I,L)},{immediate:!(A.value||n.lazy)});let N=!1;const M=()=>{N||(N=!0,u(n.source,n.params))};t.watch([()=>h.value,()=>n.modelValue],([I,L])=>{y(L,n.valueType,I,!1),f("setValue",L)}),n.lazy&&y(n.modelValue,"value",[],!1);let O=null,k=t.ref(!1);typeof n.remoteMethod=="function"&&(O=async I=>{if(I!=null){k.value=!0;try{const L=await n.remoteMethod(I);h.value=L}catch(L){console.error(L)}k.value=!1}});const E=t.ref(!1),v=e,H=t.ref(null),x=t.computed(()=>({[v]:!0,"is-incomplete":H.value&&H.value.length>0})),_=t.computed(()=>{let I={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(I.multiple=!0),n.props&&Object.assign(I,n.props),n.lazy&&(I.lazy=!0,typeof n.lazyLoad=="function"?I.lazyLoad=n.lazyLoad:I.lazyLoad=async(L,$)=>{let W={};n.params&&Object.assign(W,n.params),L&&Object.assign(W,L);const V=await g.load("cascader",n.source,W,!0);if(L?.config?.checkStrictly!==!0&&Array.isArray(w.value)&&w.value.length===L.level){const p=L.pathLabels??[];let z=[];p.forEach(q=>{q&&z.push(q)}),z.length>0&&(H.value=z.join(n.separator))}else H.value=null;$(V)}),I}),X=I=>{n.allowCreate?(f("update:modelValue",I),f("change",I),w.value=I):y(I,"value",h.value,!0)};let C=pe(n,"hintText"),D=t.ref(!1);const B=I=>{let $=I.target.value;E.value=!0,ge(C.value)||(D.value=!0),f("focus",$,I)},P=I=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let $=I.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),Z.value||f("blur",$,I)},J=()=>{f("clear","")},Y=t.ref(!1);let j=null;const ee=()=>{n.showTooltip&&Y.value===!1&&(j&&clearTimeout(j),j=setTimeout(()=>{Y.value=!0},150))},U=()=>{j&&(clearTimeout(j),Y.value=!1,j=null)},K=t.computed(()=>Y.value||D.value),G=t.computed(()=>Y.value?T.value:C.value),Z=t.ref(!1),R=I=>{Z.value=I,f("visible-change",I),I||f("selected")},te=I=>{f("remove-tag",I)},le=I=>{f("expand-change",I)},Q=t.ref();return we({focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},getCheckedNodes:()=>Q?.value.getCheckedNodes(),setDisabled:I=>{r.value=I},setReadonly:I=>{c.value=I}}),()=>{const L={...o.attrs,ref:Q,class:x.value,props:_.value,clearable:n.clearable,placeholder:H.value||d.placeholder.value,disabled:s.value||i.value,options:h.value,modelValue:w.value,separator:n.separator,onClear:J,onChange:X,onFocus:B,onBlur:P,onVisibleChange:R,onRemoveTag:te,expandChange:le};typeof O=="function"&&(L["remote-method"]=O,L.loading=k.value);const $={};o.slots.option&&($.default=o.slots.option),o.slots.empty&&($.empty=o.slots.empty);const W=[],V=t.h(F.ElCascader,L,$);W.push(V);const p={default:()=>W};p.label=o.slots.default,p.fixedPreTip=o.slots.fixedPreTip,p.fixedTip=o.slots.fixedTip;const q={...Ve(n,dr),hintText:G.value,hintVisible:K.value,onMouseover:ee,onMouseleave:U};return n.prop&&(q.prop=`${n.prop}_item`),A.value&&!n.lazy&&(q["appear-listen"]=!0,q.onAppear=M),t.h(a,q,p)}}}}const{componentName:id,create:sd,scope:ud}=ue("cascader-item"),Ql=sd(rd(id,ud,$e)),hr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cd(e,l,a){return{props:{...ke,...Oe,...hr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=pe(n,"modelValue",null,f),T=e,y=t.computed(()=>({[T]:!0})),h=v=>{S.value=v,f("update:modelValue",v),f("input",v)},A=v=>{f("change",v)},g=v=>{f("select",v)};let u=pe(n,"hintText"),N=t.ref(!1);const M=v=>{let x=v.target.value;w.value=!0,ge(u.value)||(N.value=!0),f("focus",x,v)},O=v=>{setTimeout(()=>{N.value&&(N.value=!1),w.value=!1},0);let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),f("blur",x,v)},k=()=>{f("clear","")},E=t.ref();return we({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()},setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const H={...o.attrs,ref:E,class:y.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:S.value,onClear:k,onChange:A,onInput:h,onFocus:M,onBlur:O,onSelect:g},x={};o.slots.prepend&&(x.prepend=o.slots.prepend),o.slots.append&&(x.append=o.slots.append),o.slots.prefix&&(x.prefix=o.slots.prefix),o.slots.suffix&&(x.suffix=o.slots.suffix),o.slots.option&&(x.default=o.slots.option);const _=[],X=t.h(F.ElAutocomplete,H,x);_.push(X);const C={default:()=>_};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const B={...Ve(n,hr),hintText:u.value,hintVisible:N.value};return n.prop&&(B.prop=`${n.prop}_item`),t.h(a,B,C)}}}}const{componentName:fd,create:dd,scope:hd}=ue("autocomplete-item"),Jl=dd(cd(fd,hd,$e));function md(e,l,a,n,o){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],c=l[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[o]){let i=l;for(let f=0;i&&f<r.length;f++){let m=r[f],d=i.find(w=>w[n]===m);if(!d)break;s.push(d[a])}return s}if(Array.isArray(c))for(let i=0;i<l.length&&i<r.length;i++){let f=l[i],m=r[i];const d=f.find(w=>w[n]===m);if(!d)break;s.push(d[a])}else{let i=l;for(let f=0;i&&f<r.length;f++){let m=r[f],d=i.find(w=>w[n]===m);if(!d)break;s.push(d[a]),i=d[o]}}return s}let gd=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function yd(){const e=t.getCurrentInstance();return new gd(e.proxy)}const mr={tag:{type:[String,Object],required:!1,default:"span"},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}};function pd(e,l){return{props:{...mr},setup(a,{attrs:n,slots:o}){const r=yd(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([i,f])=>{s.value=await r.load(a.sourceType,i,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return a.emptyText;let i=md(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return i.length==0?a.emptyText??"":i.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${i[0]}`:i[0]:i.join(a.separator)});return()=>{const i={...n};if(o.default)return o.default({text:c.value,value:a.modelValue});const f=a.tag??"span";return typeof f=="object"?t.h(f,i,{default:()=>c.value}):t.h(f,i,[c.value])}}}}const{create:bd}=ue("mapping"),Ht=bd(pd());function vd(e,l){let a=l.split("."),n=e;for(let o=0;o<a.length;o++){let r=a[o],s=0,c=r.indexOf("["),i=c==-1?-1:r.indexOf("]",c);for(;c!==-1&&i!==-1;){let f=r.substring(c+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][m]}else n=n[m];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function wd(e,l){return{props:{...mr},setup(a,{attrs:n,slots:o}){return()=>{const r={default:s=>{const c=vd(s.row,s.column.property);return o.default?t.h(Ht,{...a,modelValue:c},{default:o.default}):t.h(Ht,{...a,modelValue:c})}};for(let s in o)s!=="default"&&(r[s]=o[s]);return t.h(F.ElTableColumn,{...n},r)}}}}const{create:Sd}=ue("table-mapping-column"),ea=Sd(wd()),xd=Symbol.for("TableStateKey");function gr(e,l){let a=l.split("."),n=e;for(let o=0;o<a.length;o++){let r=a[o],s=0,c=r.indexOf("["),i=c==-1?-1:r.indexOf("]",c);for(;c!==-1&&i!==-1;){let f=r.substring(c+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][m]}else n=n[m];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function Cd(e,l){return{props:{},setup(a,{attrs:n}){const o=t.inject(xd,{});return()=>{const r=o.currentRow?o.currentRow.value:null,s={default:c=>{const i=gr(c.row,c.column.property),f=r?gr(r,c.column.property):null,m=i===f,d={class:{"el-radio__input":!0,"is-checked":m}},w=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),S={class:{"el-radio":!0,"is-checked":m}};return t.h("label",S,[w])}};return t.h(F.ElTableColumn,{...n},s)}}}}const{create:Td}=ue("table-radio-column"),ta=Td(Cd()),kd={},$d={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Dd(e,l){return t.openBlock(),t.createElementBlock("svg",$d,[...l[0]||(l[0]=[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)])])}const Nd=Le(kd,[["render",Dd]]),{create:Ed}=ue("table-setting"),Id={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:"不固定"}},Vd=Ed({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:Nd,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Id},setup(e,{emit:l,attrs:a}){let n=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(R=>R.label===""||R.type?!1:R.fixed===""||R.fixed===!0||R.fixed==="left")),s=t.computed(()=>o.value.filter(R=>R.label===""||R.type?!1:R.fixed==="right")),c=t.computed(()=>o.value.filter(R=>!(R.label===""||R.type||R.fixed!==void 0))),i=t.computed(()=>(r.value.length>0||s.value.length>0)&&c.value.length>0),f=t.computed(()=>r.value.length>0),m=t.computed(()=>s.value.length>0),d=R=>R.length>1,w=(R,te)=>{Array.isArray(R)&&Array.isArray(te)&&R.forEach(I=>{te.some(L=>L.prop===I.prop?(I.label=L.label,!0):!1)});const le=[];o.value=R.map((I,L)=>(!(I.label===""||I.type)&&I.visible!==!1&&le.push(I.prop),{...I,sortIndex:L})),c.value.length+r.value.length+s.value.length===le.length?g.value=!0:le.length>0&&(u.value=!0),O.value=le},S=R=>R?R.type?R.type:R.label?R.prop:"":"",T=(R,te)=>{if(R.length!==te.length)return!1;const le=R.map(Q=>S(Q));for(let Q of te){const I=S(Q);if(le.indexOf(I)===-1)return!1}return!0},y=R=>{if(!R){const te=e.tableRef.getColumnSetting(),le=te.srcColumnPropertyList;n=le.map((Q,I)=>({...Q,sortIndex:I})),R=te.columnPropertyList,R&&R.length>0&&T(le,R)||(R=le)}w(R,n)},h=()=>{e.tableRef.setColumnSetting(o.value)},A=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),u=t.ref(!1),N=R=>{const te=[];o.value.forEach(Q=>{R&&!(Q.label===""||Q.type)&&te.push(Q.prop),Q.visible=R}),g.value=!1,u.value=!1,c.value.length+r.value.length+s.value.length===te.length?g.value=!0:te.length>0&&(u.value=!0),O.value=te,h()},M=()=>{y(n),h()},O=t.ref([]),k=R=>{o.value.forEach(le=>{if(le.label===""||le.type)return;const Q=R.indexOf(le.prop)!==-1;le.visible=Q}),g.value=!1,u.value=!1;const te=c.value.length+r.value.length+s.value.length;R.length===te?g.value=!0:R.length>0&&(u.value=!0),h()},E=()=>{y()};t.onMounted(()=>{setTimeout(()=>{y()},50)});const v={currentRow:null,index:null,roleType:null},H=R=>R?R.dataset&&R.dataset.role==="row"?R:R.tagName.toLowerCase()!=="body"?(R=R.parentElement,H(R)):null:null,x=R=>{const te=R.currentTarget;te&&te.dataset&&(v.roleType=te.dataset.roleType,v.index=te.dataset.index)},_=R=>{v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null),v.index=null,v.roleType=null},X=R=>{const te=R.currentTarget;R.relatedTarget;const le=H(te);if(!le)return;const Q=le.dataset&&le.dataset.roleType;v.roleType===Q&&(R.preventDefault(),v.currentRow&&v.currentRow!==le&&v.currentRow.classList.remove("is-dragover"),le.classList.add("is-dragover"),v.currentRow=le)},C=R=>{R.preventDefault(),v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null)},D=R=>{const te=R.currentTarget,le=H(te);if(!le)return;const Q=le.dataset&&le.dataset.roleType;if(v.roleType!==Q)return;R.preventDefault();const I=Number(v.index),L=Number(le.dataset.index);if(I!==L){if(I<L){const $=o.value[I];o.value.splice(I,1),o.value.splice(L,0,$)}else{const $=o.value[I];o.value.splice(I,1),o.value.splice(L+1,0,$)}w(o.value,n),h()}},B=R=>{const te=o.value[R];te.fixed="left",h()},P=R=>{const te=o.value[R];te.fixed="right",h()},J=R=>{const te=o.value[R];te.fixed=void 0,h()},Y=new Map;let j=null;function ee(R){const te=document.createRange();return te.setStart(R,0),te.setEnd(R,R.childNodes.length),te.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:c,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:m,isDraggble:d,isCheckAll:g,isIndeterminate:u,handleCheckAllChange:N,handleReset:M,checkedValue:O,handleCheckChange:k,onShow:E,onDragStart:x,onDragEnd:_,onDragOver:X,onDragLeave:C,onDrop:D,toLeftFixed:B,toRightFixed:P,toUnFixed:J,checkboxLabelStyle:A,onMouseOverForOverflowText:(R,te,le)=>{const Q=R.currentTarget;if(Q){const I=Math.floor(Q.offsetWidth);if(Math.floor(ee(Q))>I){let $=Y.get(te);if($){if($===j)return;Pe.hide($)}$=Pe.show(Q,le,{type:"text",placement:"top",closeOnClick:!1}),$&&(Y.set(te,$),j=$)}}},onMouseLeaveForOverflowText:(R,te)=>{const le=Y.get(te);le&&(Pe.hide(le),le===j&&(j=null))},onMouseOverForTip:(R,te)=>{const le=R.currentTarget;le&&(j&&Pe.hide(j),j=Pe.show(le,te,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:R=>{j&&(Pe.hide(j),j=null)}}}}),Od={class:"fox-table-setting"},Ad={class:"fox-table-setting__header"},Fd={class:"fox-table-setting__body"},Md={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Bd={key:0,class:"fox-table-setting__body-title"},Rd=["data-index","draggable"],Ld=["onMouseover","onMouseleave"],Pd={class:"tools-item"},_d={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},qd={key:0,class:"fox-table-setting__body-title"},zd=["data-index","draggable"],jd=["onMouseover","onMouseleave"],Hd={class:"tools-item"},Kd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Wd={key:0,class:"fox-table-setting__body-title"},Yd=["data-index","draggable"],Ud=["onMouseover","onMouseleave"],Gd={class:"tools-item"};function Xd(e,l,a,n,o,r){const s=t.resolveComponent("FoxCheckbox"),c=t.resolveComponent("FoxButton"),i=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),m=t.resolveComponent("FoxIcon"),d=t.resolveComponent("Download"),w=t.resolveComponent("fox-checkbox"),S=t.resolveComponent("FoxCheckboxGroup"),T=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(T,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",Od,[t.createElementVNode("div",Ad,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=y=>e.isCheckAll=y),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Fd,[t.createVNode(S,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Md,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Bd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:l[5]||(l[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[6]||(l[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[7]||(l[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[8]||(l[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[9]||(l[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",value:y.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,y.prop,y.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,y.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(y.label),45,Ld)]),_:2},1032,["value"]),t.createElementVNode("div",Pd,[t.createVNode(m,{onClick:h=>e.toUnFixed(y.sortIndex),onMouseover:l[1]||(l[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:l[2]||(l[2]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:h=>e.toRightFixed(y.sortIndex),onMouseover:l[3]||(l[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:l[4]||(l[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,Rd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",_d,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",qd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:l[14]||(l[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[15]||(l[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[16]||(l[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[17]||(l[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[18]||(l[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",value:y.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,y.prop,y.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,y.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(y.label),45,jd)]),_:2},1032,["value"]),t.createElementVNode("div",Hd,[t.createVNode(m,{onClick:h=>e.toLeftFixed(y.sortIndex),onMouseover:l[10]||(l[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:l[11]||(l[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:h=>e.toRightFixed(y.sortIndex),onMouseover:l[12]||(l[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:l[13]||(l[13]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,zd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Kd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Wd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:l[23]||(l[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:l[24]||(l[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:l[25]||(l[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:l[26]||(l[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:l[27]||(l[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(w,{class:"checkbox-item",label:y.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,y.prop,y.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,y.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(y.label),45,Ud)]),_:2},1032,["label"]),t.createElementVNode("div",Gd,[t.createVNode(m,{onClick:h=>e.toUnFixed(y.sortIndex),onMouseover:l[19]||(l[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:l[20]||(l[20]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:h=>e.toLeftFixed(y.sortIndex),onMouseover:l[21]||(l[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:l[22]||(l[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,Yd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Hn=Le(Vd,[["render",Xd]]);let Zd=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r,s,c){if(Array.isArray(a)){let f=(n-1)*o,m=f+o;m>a.length&&(m=a.length);const d=a.slice(f,m);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s,c]);const i=Re(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(je(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r,s,c]))}};function Qd(){const e=t.getCurrentInstance();return new Zd(e.proxy)}let Jd=class{proxy;constructor(l){this.proxy=l}async load(l){let a=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",l])),a}save(l,a){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,a])}remove(l){const a=Re(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",l])}};function eh(){const e=t.getCurrentInstance();return new Jd(e.proxy)}const th=Symbol.for("TableStateKey"),yr={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]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},pr={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"large"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},na={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:"不固定"}},nh={infiniteLoad:{type:Boolean,default:!0},loadText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"无更多数据"}};function lh(e,l){let a=l.split("."),n=e;for(let o=0;o<a.length;o++){let r=a[o],s=0,c=r.indexOf("["),i=c==-1?-1:r.indexOf("]",c);for(;c!==-1&&i!==-1;){let f=r.substring(c+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][m]}else n=n[m];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function la(e,l){return e.filter(n=>{for(let o in l){const r=l[o],s=lh(n,o);if(r!==s)return!1}return!0})}function ah(e,l,a){return{props:{...ke,...Oe,...yr,...pr,...na,...nh},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,o){const{locale:r,toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=Ee({componentName:e,validateHandler:{getValue(...ae){return v.value}}},n.prop??o.attrs.name),m=e,d=t.computed(()=>({[m]:!0})),w=t.computed(()=>({[`${m}__setting`]:!0})),S=t.computed(()=>({[`${m}__footer`]:!0,[`${m}__footer__${n.footerAlign}`]:!0})),T=t.computed(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${n.paginationAlign}`]:!0})),y=t.shallowRef({}),h=t.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),A=t.ref(n.infiniteLoad===!0?0:n.pageIndex),g=t.ref(n.pageSize),u=de(n.infiniteLoad);u||(t.watch(()=>n.pageIndex,ae=>{A.value=ae}),t.watch(()=>n.pageSize,ae=>{g.value=ae}),t.watch([A,g],([ae,re],[ce,fe])=>{re!==fe&&(A.value=1,ae=1),X(n.data,ae,re,h.value)}));const N=()=>Array.isArray(n.data)?!0:de(n.autoLoad);N()&&t.watch([()=>n.data,h],async([ae,re],[ce,fe])=>{N()&&(ae!==ce&&(x.value=!0),!(!Array.isArray(ae)&&Xe(ae,ce)&&Xe(re,fe))&&(u?(A.value=0,k.value=!0,v.value=[],D()):A.value===1?X(ae,A.value,g.value,re):A.value=1))},{deep:!0});const M=ae=>{A.value=ae,i("page-index-change",ae)},O=ae=>{g.value=ae,i("page-size-change",ae)},k=t.ref(!0),E=t.ref(0),v=t.ref([]),H=Qd();let x=t.ref(!0);const _=Fe(t.computed(()=>n.lazyLoad),"lazyLoad",Ge.Near,ae=>de(ae)),X=async(ae,re,ce,fe,ze)=>{try{if(ze===!0){if(!k.value)return!1;const Ce=await H.load("table",ae,re,ce,fe,x.value,r.value);return E.value=Ce.totalSize,!Ce.page||!Array.isArray(Ce.page)||(Reflect.apply([].push,v.value,Ce.page),setTimeout(()=>{i("loaded-data")},250),(v.value?.length??0)>=E.value)||Ce.page.length<ce?(k.value=!1,!1):!0}else{const Ce=await H.load("table",ae,re,ce,fe,x.value,r.value);return E.value=Ce.totalSize,v.value=Ce.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(Ce){console.error("[FoxUI] Load Table Data Fail",Ce),E.value=0,v.value=[]}finally{x.value=!1}return!1};let C=!1;const D=async()=>{if(!C){if(C=!0,!k.value){C=!1;return}A.value+=1,await X(n.data,A.value,g.value,h.value,!0),C=!1}},B=(ae={},re=!1)=>new Promise(async ce=>{y.value={...t.toRaw(ae??{})},re||(A.value=n.pageIndex??1),u===!0?(A.value=0,v.value=[],k.value=!0,await D()):await X(n.data,A.value,g.value,h.value),ce()}),P=()=>{E.value=0,v.value=[],u===!0&&(A.value=0,k.value=!0)};let J=!1;const Y=()=>{J||(J=!0,B())},j=t.ref(null);if(u===!0){let ae=null;const re=()=>{j.value&&(ae=new IntersectionObserver(fe=>{let ze=!1;for(let Ce of fe)if(Ce.intersectionRatio>0){ze=!0;break}ze&&x.value===!1&&D()}),ae.observe(j.value))},ce=()=>{!ae||!j.value||(ae.unobserve(j.value),ae=null)};t.onMounted(re),t.onBeforeUnmount(ce)}N()&&!_.value&&B();const ee=t.ref(null);t.provide(th,{currentRow:ee});const U=(ae,re)=>{ee.value=ae,i("current-change",ae,re)},K=(ae,re,ce)=>{i("row-click",ae,re,ce),de(n.rowClickSelectable)===!0&&Ae?.value.toggleRowSelection(ae)},G=[],Z=(ae,re)=>{if(i("expand-change",ae,re),de(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ce=G.length;G.splice(0,ce)}else{G.forEach(fe=>{fe!==ae&&Ae?.value.toggleRowExpansion(fe,!1)});const ce=G.length;G.splice(0,ce,ae)}},R=o.attrs.id??n.prop??o.attrs.name,te=eh(),le=t.ref([]);let Q=[];const I=()=>({srcColumnPropertyList:Q.map(re=>({...re})),columnPropertyList:le.value}),L=ae=>{le.value=[...ae],W()},$=async()=>{const ae=await te.load(R);ae&&(le.value=ae)},W=()=>{te.save(R,le.value)},V=()=>{te.remove(R)};$();const p=ae=>ae?ae.type?ae.type:ae.label?ae.prop:"":"",z=(ae,re={})=>{for(let ce in re){const fe=re[ce];typeof fe!="function"&&(ae[ce]=fe)}},q=ae=>{const re=ae?ae():[],ce=new Map;if(Q=[],re.forEach(fe=>{const Ce=fe;if(!Ce.props)return;const tt=p(Ce.props);ce.set(tt,Ce);const Ze={label:"",prop:""};z(Ze,Ce.props),Q.push(Ze)}),le.value.length===Q.length){const fe=[];for(let ze of le.value){const Ce=p(ze),tt=ce.get(Ce);if(!tt)return re;if(ze.visible===!1)continue;const Ze=tt;Ze.props.fixed=ze.fixed,fe.push(Ze)}return fe}return re},ne=t.shallowRef(new Map),oe=({row:ae,column:re,rowIndex:ce,columnIndex:fe})=>{const ze=`${ce}_${re.property}`,Ce=`${ce}_${fe}`;let tt=ne.value.get(ze);return tt||(tt=ne.value.get(Ce)),typeof tt=="string"?tt:""},ie=ae=>ae?re=>{const ce=[];let fe=oe(re);return fe&&ce.push(fe),fe=typeof ae=="function"?ae(re):ae,fe&&ce.push(fe),ce.length===0?"":ce.join(" ")}:oe,he=(ae=!1)=>{ne.value.forEach((re,ce)=>{ye(ce,re,ae)})},ye=(ae,re,ce=!1)=>{const fe=`${ae}_item`;ce?(f.clearPersistantMessage(),Array.isArray(re)?f.emitToChildren({name:ae},"setCellClassNames",[]):f.emitToChildren({name:fe},"setCustomClassName","")):Array.isArray(re)?f.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:fe},"setCellClassNames",re):f.emitToChildren({name:fe,cachePolicy:"Persistant",uniqueId:fe},"setCustomClassName",re)},Te=(ae,re,ce)=>{const fe=`${ae}_${re}`;ce?(ne.value.set(fe,ce),ye(fe,ce)):(ne.value.delete(fe),ye(fe,"",!0)),t.triggerRef(ne)},et=ae=>{he(!0),ne.value.clear(),ae.forEach(re=>{const ce=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?ne.value.set(ce,re.children):typeof re.cellClassName=="string"&&ne.value.set(ce,re.cellClassName)}),he(),t.triggerRef(ne)},We=()=>{he(),ne.value.clear(),t.triggerRef(ne)},qe=t.shallowRef(new Map),At=({rowIndex:ae})=>{const re=`${ae}`;return qe.value.get(re)??""},Pa=ae=>ae?re=>{const ce=[];let fe=At(re);return fe&&ce.push(fe),fe=typeof ae=="function"?ae(re):ae,fe&&ce.push(fe),ce.length===0?"":ce.join(" ")}:At,Rp=(ae,re)=>{const ce=`${ae}`;re?qe.value.set(ce,re):qe.value.delete(ce),t.triggerRef(qe)},Lp=()=>{qe.value.clear(),t.triggerRef(qe)},Ae=t.ref();return we({clearSelection:()=>Ae?.value.clearSelection(),getSelectionRows:()=>Ae?.value.getSelectionRows(),toggleRowSelection:(ae,re)=>{Ae?.value.toggleRowSelection(ae,re)},toggleRowSelectionByProp:(ae,re)=>{if(!v.value)return;const ce=la(v.value,ae);ce.length!==0&&ce.forEach(fe=>{Ae?.value.toggleRowSelection(fe,re)})},toggleAllSelection:()=>{Ae?.value.toggleAllSelection()},toggleRowExpansion:(ae,re)=>{Ae?.value.toggleRowExpansion(ae,re)},toggleRowExpansionByProp:(ae,re)=>{if(!v.value)return;const ce=la(v.value,ae);ce.length!==0&&ce.forEach(fe=>{Ae?.value.toggleRowExpansion(fe,re)})},setCurrentRow:ae=>{Ae?.value.setCurrentRow(ae)},setCurrentRowByProp:ae=>{if(!v.value)return;const re=la(v.value,ae);re.length!==0&&Ae?.value.setCurrentRow(re[0])},getCurrentRow:()=>ee.value,clearSort:()=>{Ae?.value.clearSort()},clearFilter:ae=>{Ae?.value.clearFilter(ae)},doLayout:()=>{Ae?.value.doLayout()},sort:(ae,re)=>{Ae?.value.sort(ae,re)},scrollTo:(ae,re)=>{Ae?.value.scrollTo(ae,re)},setScrollTop:ae=>{Ae?.value.setScrollTop(ae)},setScrollLeft:ae=>{Ae?.value.setScrollLeft(ae)},loadData:B,clearData:P,getData(){return v.value},getTotalSize(){return E.value},getPageIndex(){return A.value},getPageSize(){return g.value},getColumnSetting:I,setColumnSetting:L,removeColumnSetting:V,setCellClassName:Te,setCellClassNames:et,clearCellClassName:We,setRowClassName:Rp,clearRowClassName:Lp}),()=>{const re={...Je(o.attrs),onCurrentChange:U,onRowClick:K,onExpandChange:Z,data:v.value,ref:Ae,class:d.value,"cell-class-name":ie(n.cellClassName),"row-class-name":Pa(n.rowClassName)},ce={};if(o.slots.default&&(ce.default=()=>q(o.slots.default)),o.slots.append&&(ce.append=o.slots.append),o.slots.empty&&(ce.empty=o.slots.empty),u===!0){const nt=[];if(k.value){const Qt=t.h(Ie.Loading,{class:`${m}__infinite-icon`});nt.push(Qt);const za=t.h("span",{class:`${m}__infinite-text`},[c.loadText.value]);nt.push(za)}else{const Qt=t.h("span",{class:`${m}__infinite-text`},[c.noMoreText.value]);nt.push(Qt)}const yt=[`${m}__infinite`];x.value&&yt.push("is-hide");const _a={ref:j,class:yt},qa=t.h("div",_a,nt);ce.append=()=>qa}const fe=t.h(F.ElTable,re,ce),ze=[];if(ze.push(fe),!u){let nt=null;if(typeof o.slots.pagination=="function")nt=o.slots.pagination();else if(n.showPagination){const yt={class:T.value,total:E.value,pageSize:g.value,"onUpdate:pageSize":O,pageSizes:n.pageSizes,currentPage:A.value,"onUpdate:currentPage":M,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,size:n.paginationSize,background:n.paginationBackground,appendSizeTo:n.paginationAppendSizeTo,teleported:n.paginationTeleported,popperClass:n.paginationPopperClass,prevText:n.paginationpPrevText,prevIcos:n.paginationPrevIcon,nextText:n.paginationNextText,pnextIcon:n.paginationNextIcon,disabled:n.paginationDisabled};nt=t.h(F.ElPagination,yt)}if(n.showSetting){const yt=[];nt&&yt.push(nt);const _a=t.h(F.ElIcon,{class:w.value},{default:()=>t.h(Ie.Setting)}),qa=it(n,na),Qt=t.h(Hn,{...qa,tableRef:{getColumnSetting:I,setColumnSetting:L,removeColumnSetting:V}},{default:()=>_a});yt.push(Qt);const za=t.h("div",{class:S.value},yt);ze.push(za)}else nt&&ze.push(nt)}const Ce={default:()=>ze},Ze={...Ve(n,yr,pr,na)};return n.prop&&(Ze.prop=`${n.prop}_item`),Ze.contentClass=`${m}__wrap`,Ze.errorMarkClass="is-table-error",_.value&&N()&&(Ze["appear-listen"]=!0,Ze.onAppear=Y),t.h(a,Ze,Ce)}}}}const{componentName:oh,create:rh,scope:ih}=ue("table-item"),aa=rh(ah(oh,ih,$e));function Et(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Kt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function sh(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let uh=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function ch(){const e=t.getCurrentInstance();return new uh(e.proxy)}function br(e,l,a){if(l===a)return!0;if(l===null||a===null)return!1;const n=Et(e,l),o=Et(e,a);if(n!==o)return!1;const r=Kt(e,l),s=Kt(e,a);return r===s}function fh(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;let o=null;for(let r of n){let s=!1;if(a==="text")s=Et(e,r)===l;else if(a==="item")s=br(e,r,l);else{let c=Kt(e,r);c==null&&(c=Et(e,r)),s=c===l}if(s){o=r;break}}return o}function dh(e){return{text:e,value:e}}function hh(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}const vr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function mh(e,l,a){return{inheritAttrs:!0,props:{...ke,...Oe,...vr},emits:["change","update:modelValue","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=t.ref(null),d=t.ref(null),w=(v,H,x,_=!0)=>{const X=fh(n,v,H,x);if(X===null){if(d.value===null)return;d.value=null,m.value=null,_&&(f("update:modelValue",null),f("change",null));return}if(!br(n,X,d.value)){m.value=v;const D=t.toRaw(X);d.value=D;let B=null;n.valueType==="text"?B=Et(n,D):n.valueType==="item"?B=D:B=Kt(n,D),_&&(f("update:modelValue",B),f("change",B))}},S=t.ref([]),T=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,v=>de(v)),y=ch(),h=async(v,H)=>{if(v){const x=await y.load("radio",v,H);if(x.length>0)if(typeof x[0]=="string"){let C=x.map(D=>dh(D));S.value=C}else S.value=x}};t.watch([()=>n.source,()=>n.params],async([v,H])=>{h(v,H)},{immediate:!T.value});let A=!1;const g=()=>{A||(A=!0,h(n.source,n.params))};t.watch([()=>S.value,()=>n.modelValue],([v,H])=>{w(H,n.valueType,v,!1),f("setValue",H)});const u=e,N=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),M=v=>{w(v,"value",S.value,!0)};let O=pe(n,"hintText"),k=pe(n,"hintVisible");const E=(v,H)=>{const x=[];return v.forEach((_,X)=>{const C=Kt(n,_),D=Et(n,_);let B=sh(n,_);s.value===!0&&(B=s.value),i.value===!0&&(B=i.value);const P=hh(n,_,X)??{},J=`${C}_${X}`,Y={...P,key:J,value:C,size:n.size,border:de(n.border)};B&&(Y.disabled=B),n.itemType==="button"?x.push(t.h(F.ElRadioButton,Y,{default:()=>[D]})):typeof H=="function"?x.push(t.h(F.ElRadio,Y,{default:()=>H(_)})):x.push(t.h(F.ElRadio,Y,{default:()=>[D]}))}),x};return we({setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const H={...Je(o.attrs),class:N.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,onChange:M},x=[],_={};o.slots.options?_.default=o.slots.options:_.default=()=>E(S.value,o.slots.text);const X=t.h(F.ElRadioGroup,H,_);x.push(X);const C={default:()=>x};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const B={...Ve(n,vr),hintText:O.value,hintVisible:k.value};return n.prop&&(B.prop=`${n.prop}_item`),T.value&&(B["appear-listen"]=!0,B.onAppear=g),t.h(a,B,C)}}}}const{componentName:gh,create:yh,scope:ph}=ue("radio-item"),oa=yh(mh(gh,ph,$e));function It(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Vt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function bh(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let vh=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function wh(){const e=t.getCurrentInstance();return new vh(e.proxy)}function wr(e,l,a){if(l===a)return!0;if(l===null||a===null)return!1;const n=It(e,l),o=It(e,a);if(n!==o)return!1;const r=Vt(e,l),s=Vt(e,a);return r===s}function Sh(e,l,a,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];return l.forEach(r=>{for(let s of n){let c=!1;if(a==="text")c=It(e,s)===r;else if(a==="item")c=wr(e,s,r);else{let i=Vt(e,s);i==null&&(i=It(e,s)),c=i===r}if(c){o.push(s);break}}}),o}function xh(e){return{text:e,value:e}}function Ch(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}const Sr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Th(e,l,a){return{inheritAttrs:!0,props:{...ke,...Oe,...Sr},emits:["change","update:modelValue","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=t.ref([]),d=t.ref([]),w=(v,H,x,_=!0)=>{const X=Sh(n,v,H,x);if(X===null){if(d.value===null||d.value.length===0)return;m.value=[],d.value=[],_&&(f("update:modelValue",[]),f("change",[]));return}let C=!0;if(X.length!==d.value.length)C=!1;else for(let D=0;D<X.length;D++){const B=X[D],P=d.value[D];if(!wr(n,B,P)){C=!1;break}}if(!C){d.value=X;let D=[],B=[];X.forEach(J=>{D.push(Vt(n,J)),n.valueType==="text"?B.push(It(n,J)):n.valueType==="item"?B.push(J):B.push(Vt(n,J))}),m.value=D;const P=t.toRaw(B);_&&(f("update:modelValue",P),f("change",P))}},S=t.ref([]),T=Fe(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,v=>de(v)),y=wh(),h=async(v,H)=>{if(v){const x=await y.load("checkbox",v,H);if(x.length>0)if(typeof x[0]=="string"){let C=x.map(D=>xh(D));S.value=C}else S.value=x}};t.watch([()=>n.source,()=>n.params],async([v,H])=>{h(v,H)},{immediate:!T.value});let A=!1;const g=()=>{A||(A=!0,h(n.source,n.params))};t.watch([()=>S.value,()=>n.modelValue],([v,H])=>{w(H,n.valueType,v,!1),f("setValue",H)});const u=e,N=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),M=v=>{w(v,"value",S.value,!0)};let O=pe(n,"hintText"),k=pe(n,"hintVisible");const E=(v,H)=>{const x=[];return v.forEach((_,X)=>{const C=Vt(n,_),D=It(n,_);let B=bh(n,_);s.value===!0&&(B=s.value),i.value===!0&&(B=i.value);const P=Ch(n,_,X)??{},J=`${C}_${X}`,Y={...P,key:J,class:n.itemClass,value:C,size:n.size,border:de(n.border)};B&&(Y.disabled=B),n.itemType==="button"?x.push(t.h(F.ElCheckboxButton,Y,{default:()=>[D]})):typeof H=="function"?x.push(t.h(F.ElCheckbox,Y,{default:()=>H(_)})):x.push(t.h(F.ElCheckbox,Y,{default:()=>[D]}))}),x};return we({setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const H={...Je(o.attrs),class:N.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,max:be(n.max),min:be(n.min),onChange:M},x=[],_={};o.slots.options?_.default=o.slots.options:_.default=()=>E(S.value,o.slots.text);const X=t.h(F.ElCheckboxGroup,H,_);x.push(X);const C={default:()=>x};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const B={...Ve(n,Sr),hintText:O.value,hintVisible:k.value};return n.prop&&(B.prop=`${n.prop}_item`),T.value&&(B["appear-listen"]=!0,B.onAppear=g),t.h(a,B,C)}}}}const{componentName:kh,create:$h,scope:Dh}=ue("checkbox-item"),ra=$h(Th(kh,Dh,$e)),xr={modelValue:{type:[Number,String],required:!1}};function Nh(e,l,a){return{props:{...ke,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=pe(n,"modelValue",A=>be(A),f),d=e,w=t.computed(()=>({[d]:!0})),S=A=>{f("update:modelValue",A),f("change",A)};let T=pe(n,"hintText"),y=t.ref(!1);const h=t.ref();return we({setDisabled:A=>{r.value=A},setReadonly:A=>{c.value=A}}),()=>{const g={...Je(o.attrs),ref:h,class:w.value,readonly:i.value||s.value,modelValue:m.value,onChange:S},u={},N=[],M=t.h(F.ElRate,g,u);N.push(M);const O={default:()=>N};O.label=o.slots.default,O.fixedPreTip=o.slots.fixedPreTip,O.fixedTip=o.slots.fixedTip;const E={...Ve(n,xr),hintText:T.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),t.h(a,E,O)}}}}const{componentName:Eh,create:Ih,scope:Vh}=ue("rate-item"),ia=Ih(Nh(Eh,Vh,$e)),Cr={modelValue:{type:[Boolean,String,Number],required:!1}};function Oh(e,l,a){return{props:{...ke,...Oe,...Cr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),m=pe(n,"modelValue",null,f),d=e,w=t.computed(()=>({[d]:!0})),S=A=>{f("update:modelValue",A),f("change",A)};let T=pe(n,"hintText"),y=pe(n,"hintVisible");const h=t.ref();return we({setDisabled:A=>{r.value=A},setReadonly:A=>{c.value=A}}),()=>{const g={...Je(o.attrs),ref:h,class:w.value,readonly:i.value,disabled:s.value,modelValue:m.value,onChange:S},u={},N=[],M=t.h(F.ElSwitch,g,u);N.push(M);const O={default:()=>N};O.label=o.slots.default,O.fixedPreTip=o.slots.fixedPreTip,O.fixedTip=o.slots.fixedTip;const E={...Ve(n,Cr),hintText:T.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),t.h(a,E,O)}}}}const{componentName:Ah,create:Fh,scope:Mh}=ue("switch-item"),sa=Fh(Oh(Ah,Mh,$e)),Tr={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Bh=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,o);const s=Re(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await s(a,n,o))}};function Rh(){const e=t.getCurrentInstance();return new Bh(e.proxy)}const kr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Lh(e,l,a){return{props:{...ke,...Oe,...kr,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),f=t.ref(!1),{emitEvent:m}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),d=pe(n,"modelValue",null,m),w=e,S=t.computed(()=>({[w]:!0})),T=_=>{d.value=_,m("update:modelValue",_),m("change",_)};let y=pe(n,"hintText"),h=t.ref(!1);const A=_=>{let C=_.target.value;f.value=!0,ge(y.value)||(h.value=!0),m("focus",C,_)},g=_=>{setTimeout(()=>{h.value&&(h.value=!1),f.value=!1},0);let C=_.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),N.value||m("blur",C,_)},u=()=>{m("clear","")},N=t.ref(!1),M=_=>{N.value=_,m("visible-change",_),_||m("selected")},O=t.ref([]),k=Rh(),E=async(_,X)=>{try{const C=await k.load("treeselect",_,X);O.value=C}catch(C){console.error(C)}};t.watch([()=>n.data,()=>n.params,()=>n.lazy],([_,X,C])=>{!_||C||E(_,X)},{immediate:!0});let v=null;n.lazy&&(typeof n.load=="function"?v=n.load:v=async(_,X)=>{debugger;let C={};n.params&&Object.assign(C,n.params),_&&Object.assign(C,_);const D=await k.load("treeselect",n.data,C,!0);X(D)});let H={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const x=t.ref();return we({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:_=>{r.value=_},setReadonly:_=>{c.value=_}}),()=>{const X={...Je(o.attrs),ref:x,class:S.value,disabled:s.value||i.value,modelValue:d.value,"onUpdate:modelValue":T,lazy:n.lazy,props:H,onClear:u,onFocus:A,onBlur:g,onVisibleChange:M};v?X.load=v:X.data=O.value;const C={};o.slots.option&&(C.default=o.slots.option);const D=[],B=t.h(F.ElTreeSelect,X,C);D.push(B);const P={default:()=>D};P.label=o.slots.default,P.fixedPreTip=o.slots.fixedPreTip,P.fixedTip=o.slots.fixedTip;const Y={...Ve(n,kr,Tr),hintText:y.value,hintVisible:h.value};return n.prop&&(Y.prop=`${n.prop}_item`),t.h(a,Y,P)}}}}const{componentName:Ph,create:_h,scope:qh}=ue("tree-select-item"),ua=_h(Lh(Ph,qh,$e));class zh{proxy;constructor(l){this.proxy=l}async load(l){let a=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",l])),a}save(l,a){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,a])}remove(l){const a=Re(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",l])}}function jh(){const e=t.getCurrentInstance();return new zh(e.proxy)}const Hh={},Kh={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Wh(e,l){return t.openBlock(),t.createElementBlock("svg",Kh,[...l[0]||(l[0]=[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)])])}const Yh=Le(Hh,[["render",Wh]]),{create:Uh}=ue("group-setting"),Gh={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Xh=Uh({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:Yh,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Gh},emits:["change"],setup(e,{emit:l,attrs:a,expose:n}){let o=null;const r=t.ref([]),s=jh(),c=U=>U.length>1,i=()=>{const U=[],K=[...r.value];r.value=K.map((Z,R)=>(Z.visible!==!1&&U.push(Z.prop),{...Z,sortIndex:R})),r.value.length===U.length?y.value=!0:U.length>0&&(h.value=!0),u.value=U},f=U=>{let K=null;if(typeof U=="string")K=document.querySelectorAll(`.fox-group[prop="${U}"] > div > .fox-item[prop]`);else if(U&&typeof U=="object"){const Z=U.$el??U;typeof Z.querySelectorAll=="function"&&(K=Z.querySelectorAll(".fox-item[prop]"))}if(!K)return[];const G=[];return K.forEach(Z=>{const R=Z.querySelector(".label--string");let te="";R&&(te=R.textContent??"");const le=Z.getAttribute("prop")??"",I=window.getComputedStyle(Z,null).getPropertyValue("display");G.push({label:te,prop:le,sortIndex:0,visible:I!=="none"})}),G},m=()=>{if(!o){const U=f(e.groupRef??e.groupProp);if(U.length===0)return!1;o=U}return!0},d=async(U=!1)=>{const K=await s.load(e.groupProp),G=Z=>{if(!Z||!o)return;const R=o.map(te=>({...te}));Array.isArray(K)&&K.forEach(te=>{R.some(le=>{if(le.prop===te.prop){const Q=le.label;return Object.assign(le,te),le.label=Q,!0}return!1})}),r.value=R.sort((te,le)=>te.sortIndex-le.sortIndex),i(),U&&S(!1)};o?G(!0):cn(m,e.initDelay,5,50,!1,G)},w=()=>{const U=o??[];r.value=U.map(K=>({...K})),i(),S()},S=(U=!0)=>{U&&s.save(e.groupProp,r.value);const K=r.value.map(G=>({...G}));l("change",K)},T=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),h=t.ref(!1),A=U=>{const K=[];r.value.forEach(Z=>{U&&K.push(Z.prop),Z.visible=U}),y.value=!1,h.value=!1,r.value.length===K.length?y.value=!0:K.length>0&&(h.value=!0),u.value=K,S()},g=()=>{w()},u=t.ref([]),N=U=>{r.value.forEach(G=>{const Z=U.indexOf(G.prop)!==-1;G.visible=Z}),y.value=!1,h.value=!1;const K=r.value.length;U.length===K?y.value=!0:U.length>0&&(h.value=!0),S()},M=()=>{d()};t.onMounted(()=>{d(!0)});const O={currentRow:null,index:null},k=U=>U?U.dataset&&U.dataset.role==="row"?U:U.tagName.toLowerCase()!=="body"?(U=U.parentElement,k(U)):null:null,E=U=>{const K=U.currentTarget;K&&K.dataset&&(O.index=K.dataset.index)},v=U=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null},H=U=>{const K=U.currentTarget;U.relatedTarget;const G=k(K);G&&(U.preventDefault(),O.currentRow&&O.currentRow!==G&&O.currentRow.classList.remove("is-dragover"),G.classList.add("is-dragover"),O.currentRow=G)},x=U=>{U.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},_=U=>{const K=U.currentTarget,G=k(K);if(!G)return;U.preventDefault();const Z=Number(O.index),R=Number(G.dataset.index);if(Z!==R){if(Z<R){const te=r.value[Z];r.value.splice(Z,1),r.value.splice(R,0,te)}else{const te=r.value[Z];r.value.splice(Z,1),r.value.splice(R+1,0,te)}i(),S()}},X=U=>{const K=r.value[U];r.value.splice(U,1),r.value.splice(0,0,K),i(),S()},C=U=>{const K=r.value[U];r.value.splice(U,1),r.value.push(K),i(),S()};n({refresh:()=>{o=null,d(!1)}});const D=new Map;let B=null;function P(U){const K=document.createRange();return K.setStart(U,0),K.setEnd(U,U.childNodes.length),K.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:c,isCheckAll:y,isIndeterminate:h,handleCheckAllChange:A,handleReset:g,checkedValue:u,handleCheckChange:N,onShow:M,onDragStart:E,onDragEnd:v,onDragOver:H,onDragLeave:x,onDrop:_,checkboxLabelStyle:T,toTop:X,toBottom:C,onMouseOverForOverflowText:(U,K,G)=>{const Z=U.currentTarget;if(Z){const R=Math.floor(Z.offsetWidth);if(Math.floor(P(Z))>R){let le=D.get(K);if(le){if(le===B)return;Pe.hide(le)}le=Pe.show(Z,G,{type:"text",placement:"top",closeOnClick:!1}),D.set(K,le),B=le}}},onMouseLeaveForOverflowText:(U,K)=>{const G=D.get(K);G&&(Pe.hide(G),G===B&&(B=null))},onMouseOverForTip:(U,K)=>{const G=U.currentTarget;G&&(B&&Pe.hide(B),B=Pe.show(G,K,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:U=>{B&&(Pe.hide(B),B=null)}}}}),Zh={class:"fox-group-setting"},Qh={class:"fox-group-setting__header"},Jh={class:"fox-group-setting__body"},em={class:"fox-group-setting__body-list","data-role":"container"},tm=["data-index","draggable"],nm=["onMouseover","onMouseleave"],lm={class:"tools-item"};function am(e,l,a,n,o,r){const s=t.resolveComponent("FoxCheckbox"),c=t.resolveComponent("FoxButton"),i=t.resolveComponent("DragIcon"),f=t.resolveComponent("Download"),m=t.resolveComponent("FoxIcon"),d=t.resolveComponent("FoxCheckboxGroup"),w=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(w,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Zh,[t.createElementVNode("div",Qh,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=S=>e.isCheckAll=S),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Jh,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=S=>e.checkedValue=S),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",em,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,S=>(t.openBlock(),t.createElementBlock("div",{key:S.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":S.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...T)=>e.onDragStart&&e.onDragStart(...T)),onDragend:l[6]||(l[6]=(...T)=>e.onDragEnd&&e.onDragEnd(...T)),onDrop:l[7]||(l[7]=(...T)=>e.onDrop&&e.onDrop(...T)),onDragover:l[8]||(l[8]=(...T)=>e.onDragOver&&e.onDragOver(...T)),onDragleave:l[9]||(l[9]=(...T)=>e.onDragLeave&&e.onDragLeave(...T))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:S.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:T=>e.onMouseOverForOverflowText(T,S.prop,S.label),onMouseleave:T=>e.onMouseLeaveForOverflowText(T,S.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(S.label),45,nm)]),_:2},1032,["label"]),t.createElementVNode("div",lm,[t.createVNode(m,{onClick:T=>e.toTop(S.sortIndex),onMouseover:l[1]||(l[1]=T=>e.onMouseOverForTip(T,e.toTopText)),onMouseleave:l[2]||(l[2]=T=>e.onMouseLeaveForTip(T)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:T=>e.toBottom(S.sortIndex),onMouseover:l[3]||(l[3]=T=>e.onMouseOverForTip(T,e.toBottomText)),onMouseleave:l[4]||(l[4]=T=>e.onMouseLeaveForTip(T))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"])])],40,tm))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ca=Le(Xh,[["render",am]]),om={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let rm=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,o);const s=Re(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await s(a,n,o))}};function im(){const e=t.getCurrentInstance();return new rm(e.proxy)}function sm(e,l,a){return{props:{...Rl,...om},setup(n,o){const r=e,s=t.computed(()=>({[r]:!0})),c=t.ref([]),i=im(),f=async(u,N)=>{try{const M=await i.load("tree",u,N);c.value=M}catch(M){console.error(M)}},m=t.shallowRef({}),d=t.computed(()=>({...m.value,...n.params??{}}));(Array.isArray(n.data)?!0:n.lazy?!1:de(n.autoLoad))&&t.watch([()=>n.data,()=>d.value],([u,N])=>{u&&f(u,N)},{immediate:!0,deep:!0});let S=null;n.lazy&&(typeof n.load=="function"?S=n.load:S=async(u,N)=>{let M={};n.params&&Object.assign(M,n.params),u&&Object.assign(M,u);const O=await i.load("treeselect",n.data,M,!0);N(O)});const T={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey,disabled:n.disabedKey,...n.props??{}},y=(u={})=>new Promise(async N=>{m.value={...t.toRaw(u??{})},await f(n.data,d.value),N()}),h=function(u,N){if(typeof n.filterNodeMethod=="function")return n.filterNodeMethod(u,N);if(!n.filterKeyword)return!0;const M=`${N[T.label]}`,O=`${u}`;return M.includes(O)},A=t.ref();t.watch(()=>n.filterKeyword,u=>{A.value.filter(u)});const g=u=>(...N)=>{const M=A.value[u];return Reflect.apply(M,A.value,[...N])};return o.expose({loadData:y,filter:g("filter"),updateKeyChildren:g("updateKeyChildren"),getCheckedNodes:g("getCheckedNodes"),setCheckedNodes:g("setCheckedNodes"),getCheckedKeys:g("getCheckedKeys"),setCheckedKeys:g("setCheckedKeys"),setChecked:g("setChecked"),getHalfCheckedNodes:g("getHalfCheckedNodes"),getHalfCheckedKeys:g("getHalfCheckedKeys"),getCurrentKey:g("getCurrentKey"),getCurrentNode:g("getCurrentNode"),setCurrentKey:g("setCurrentKey"),setCurrentNode:g("setCurrentNode"),getNode:g("getNode"),remove:g("remove"),append:g("append"),insertBefore:g("insertBefore"),insertAfter:g("insertAfter")}),()=>{const N={...Je(o.attrs),class:s.value,lazy:n.lazy,props:T,ref:x=>A.value=x};S?N.load=S:N.data=c.value,N["filter-node-method"]=h;const M=[],O=t.h(F.ElTree,N,o.slots);M.push(O);const k={default:()=>M},v={...it(n,Rl)};return t.h(a,v,k)}}}}const{componentName:um,create:cm,scope:fm}=ue("tree-item"),fa=cm(sm(um,fm,Nn)),Kn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function dm(e,l,a,n="value"){for(let o=0;o<l.length;o++){let r=l[o];if(n==="text"){if(Wn(e,r)===a)return o}else if(n==="item"){if(Xe(a,r))return o}else if(Dr(e,r)===a)return o}return-1}function Wn(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function $r(e,l){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?l[e.subTextKey]:l.text}function Dr(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function hm(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function mm(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}let gm=class{proxy;constructor(l){this.proxy=l}async load(l,a,n,o,r,s,c){if(Array.isArray(a)){let f=a;typeof c=="function"&&(f=f.filter(c));let m=(n-1)*o,d=m+o;d>f.length&&(d=f.length);const w=f.slice(m,d);return{totalSize:f.length,page:w}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s]);const i=Re(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(je(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r]))}};function ym(){const e=t.getCurrentInstance();return new gm(e.proxy)}function pm(e,l,a,n,o,r,s,c,i,f,m){return{props:{...Kn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:w}){const{emitEvent:S}=wl(),{toLocaleRefs:T}=xe.useFoxI18n(l),y=T(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),h=ym(),A=t.ref([]),g=t.ref(0),u=t.ref(""),N=t.shallowRef(null),M=t.computed(()=>{const I={};return d.params&&Object.assign(I,d.params),ge(u.value)||(I[`${d.searchKey}`]=u.value),N.value&&Object.assign(I,N.value),I});let O=!0;const k=async(I,L,$)=>{try{if(v.value===!1)return;let W=null;ge(u.value)||(W=p=>{const z=Wn(d,p);if(typeof z=="string"&&z.includes(u.value))return!0;const q=$r(d,p);return!!(typeof q=="string"&&q.includes(u.value))});const V=await h.load("actionsheet",I,L,$,M.value,O,W??void 0);O=!1,Array.isArray(V)?(A.value=V,g.value=1,v.value=!1):!Array.isArray(V.page)||V.page.length===0?(console.warn("[FoxUI] can not load more data"),v.value=!1):(Reflect.apply([].push,A.value,V.page),g.value=Math.ceil(A.value.length/d.pageSize),(V.totalSize&&A.value.length>=V.totalSize||$<V.page.length)&&(v.value=!1)),E.value=!1}catch(W){console.error("[FoxUI] ActionSheet load more data fail",W),v.value=!0,g.value=0,A.value=[]}setTimeout(()=>{S("loaded-data")},250)},E=t.ref(!1),v=t.ref(!0),H=async()=>{if(!d.source){E.value=!1;return}await k(d.source,g.value+1,d.pageSize)};t.watch(()=>u.value,(I,L)=>{ge(I)&&!ge(L)&&H()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([I,L,$])=>{d.source&&H()},{immediate:!0});const x=t.computed(()=>!d.multiple&&d.isAutoBackFill),_=t.ref([]);let X=null;const C=t.ref(d.visible);t.watch(()=>d.visible,I=>{C.value!==I&&(C.value=I),I?X=[..._.value]:X=null});const D=(I,L)=>{const $=[];return Array.isArray(I)||(I=[I]),I.forEach(W=>{let V=dm(d,L,W,d.valueType);V!==-1&&$.push(V)}),Xe($,_.value)?!1:(_.value=$,!0)};t.watch([()=>d.modelValue,()=>A.value],([I,L],[$,W])=>{if(D(I,L)){const p=B();P(p)}},{deep:!0});const B=()=>{const I=[],L=[],$=[];for(let z of _.value){const q=A.value[z];L.push(q);const ne=Wn(d,q);if($.push(ne),d.valueType==="item")I.push(q);else if(d.valueType==="text")I.push(ne);else{const oe=Dr(d,q);I.push(oe)}}let W=null,V=null,p=null;return d.multiple?(W=I,V=$,p=L):(W=I[0]??null,V=$[0]??null,p=L[0]??null),{value:W,text:V,item:p}},P=I=>{S("update:modelValue",I.value),S("update:text",I.text),S("change",I.value,I.item,I.text)},J=()=>{X&&(_.value=X)},Y=I=>{const L=_.value.indexOf(I);d.multiple?L===-1?_.value.push(I):_.value.splice(L,1):L===-1?_.value=[I]:_.value=[],(x.value||!d.poppable&&!d.showFooter)&&U()},j=I=>{C.value=I,S("update:visible",I)},ee=()=>{const I=()=>{J(),j(!1)},L=d.beforeMethod??d.beforeClose;if(typeof L=="function"){const $=L("close");nn($)?$.then(W=>{W!==!1&&I()}).catch(()=>{I()}):$!==!1&&I()}else I()},U=()=>{const I=B(),L=()=>{P(I),j(!1)},$=d.beforeMethod??d.beforeClose;if(typeof $=="function"){const W=$("confirm",I.value,I.item,I.text);nn(W)?W.then(V=>{V!==!1&&L()}).catch(()=>{L()}):W!==!1&&L()}else L()},K=()=>{v.value=!0,g.value=0,A.value=[],d.source&&H()},G=()=>{let I=y.title.value??"";w.title&&(I=w.title());const L=t.h("view",{class:["fox-actionsheet__header-title"]},[I]),$=t.h(i,{class:["fox-actionsheet__header-icon"],onClick:ee});return t.h("view",{class:["fox-actionsheet__header"]},[L,$])},Z=()=>{let I=null;if(w.search)I=w.search();else{const L={onSearch:K,placeholder:y.seachPlaceholder.value,disabled:d.disabled,modelValue:u.value,"onUpdate:modelValue":$=>{u.value=$}};I=t.h(r,L,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[I])},R=(I,L,$,W,V)=>{if(w.optionLabel)return w.optionLabel({text:I,checked:L,disabled:$,subText:W,item:V});const p=[],z=t.h("view",{class:"fox-actionsheet__list-item-text"},[I]);if(p.push(z),W){const q=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[W]);p.push(q)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},p)},te=(I,L,$,W)=>{if(w.optionIcon)return w.optionIcon({checked:I,disabled:L,iconSize:$,item:W});if(I){if(w.checkedIcon)return w.checkedIcon({disabled:L,item:W});{const V=d.checkedIcon??c;return t.h(V,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]})}}else{if(w.icon)return w.icon({disabled:L,item:W});{const V=d.icon??s;return t.h(V,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]})}}},le=()=>{const I=[];for(let L=0;L<A.value.length;L++){const $=A.value[L],W=Wn(d,$),V=$r(d,$),p=["fox-actionsheet__list-item"],z={};let q=hm(d,$),ne=d.iconSize?ve(d.iconSize):null;const oe=mm(d,$,L);oe&&(q=q||oe.disabled,oe.class&&p.push(oe.class),oe.style&&Object.assign(z,oe.style)),q=!!(d.disabled||q);const ie=_.value.includes(L);q&&p.push("is-disabled"),ie&&p.push("is-checked");const he={class:p,style:z,key:`${L}`,onClick:()=>{q||Y(L)}};let ye=[];if(w.option)ye.push(w.option({item:$,checked:ie,disabled:q}));else{const et=R(W,ie,q,V,$);ye.push(et);const We=te(ie,q,ne,$);ye.push(We)}const Te=t.h("view",he,ye);I.push(Te)}return I},Q=()=>{let I=[];if(w.buttons)I=w.buttons();else{const $=t.h(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:U,disabled:d.disabled},{default:()=>y.confirmText.value});I.push($)}return t.h("view",{class:"fox-actionsheet__footer"},[I])};return we({search:async(I=null,L=!0)=>{N.value=I&&t.toRaw(I),t.triggerRef(N),L&&(v.value=!0,g.value=0,A.value=[]),t.nextTick(()=>{H()})},clear:()=>{v.value=!0,g.value=0,A.value=[]},confirm:()=>{U()},cancel:()=>{ee()}}),()=>{const I=[];if(d.showHeader){const ne=G();I.push(ne)}if(d.showSearchbar){const ne=Z();I.push(ne)}let L=null;if(w.content)L=w.content();else{const ne=le(),oe={hasMore:v.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:E.value,"onUpdate:modelValue":ie=>{E.value=ie},onLoadMore:H};L=t.h(n,oe,{default:()=>ne})}const $={};d.optionsHeight&&($.height=d.optionsHeight);const W={"fox-actionsheet__list":!0};d.poppable||(W["fox-actionsheet__list--inner"]=!0);const V=t.h("view",{class:W,style:$},[L]);if(I.push(V),d.showFooter&&!x.value){const ne=Q();I.push(ne)}const p=t.h("view",{class:"fox-actionsheet"},I);if(!d.poppable)return p;const z=["fox-actionsheet__popup"];d.popClass&&z.push(d.popClass);const q={popClass:z.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":j,position:d.position,round:"round",onClickOverlay:ee,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,q,{default:()=>p})}}}}const bm=/scroll|auto|overlay/i,Nr=window;function vm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function wm(e,l=Nr){let a=e;for(;a&&a!==l&&vm(a);){const{overflowY:n}=window.getComputedStyle(a);if(bm.test(n))return a;a=a.parentNode}return l}function Er(e,l=Nr){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=wm(e.value,l))}),a}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sm={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function xm(e,l,a){return{props:{...Sm},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["pullText","loadText","noMoreText"]),i=t.ref(),f=Er(i),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),w=g=>g?g.offsetTop+w(g.offsetParent):0,S=()=>{let g=0,u=0,N="down";if(f.value==window){const M=Ir();i.value&&(g=w(i.value)+i.value.offsetHeight-M-window.innerHeight),u=M}else{const{scrollHeight:M,clientHeight:O,scrollTop:k}=f.value;g=M-O-k,u=k}return m.beforeScrollTop>u?N="up":N="down",m.beforeScrollTop=u,o("scroll-change",u),g<=n.threshold&&N=="down"},T=()=>{nl(()=>{if(!S()||!n.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},y=()=>{f.value&&f.value.addEventListener("scroll",T,n.useCapture)},h=()=>{f.value&&f.value.removeEventListener("scroll",T,n.useCapture)};t.onMounted(()=>{y(),n.immediate&&T()}),t.onUnmounted(()=>{h()});const A=t.ref(!1);return t.onActivated(()=>{A.value&&(A.value=!1,y())}),t.onDeactivated(()=>{A.value=!0,h()}),t.watch(()=>n.modelValue,g=>{g||(m.isInfiniting=!1)}),()=>{const g={class:"fox-infinite__container"},u=t.h("view",g,[r?.default?.()]),N=[];if(m.isInfiniting){let E=r?.loading?.()??null;if(!E){let x=r?.loadingIcon?.()??null;if(!x){const C={class:["fox-infinite__bottom-box__img"]};x=t.h(a,C)}const _={class:"fox-infinite__bottom-box__text"},X=t.h("view",_,[c.loadText.value]);E=[x,X]}const v={class:"fox-infinite__bottom-box"},H=t.h("view",v,E);N.push(H)}else if(!n.hasMore){let E=r?.finished?.()??null;if(!E){const v={class:"fox-infinite__bottom-tips"};E=t.h("view",v,[c.noMoreText.value]),N.push(E)}}const M={class:"fox-infinite__bottom"},O=t.h("view",M,N),k={class:d.value,ref:i};return t.h("view",k,[u,O])}}}}const{componentName:Cm,create:Tm,scope:km}=ue("infinite-loading"),Yn=Tm(xm(Cm,km,zn)),$m={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Dm=(e,l,a)=>({props:{...$m},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:o}){const{emitEvent:r}=wl(),{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["placeholder"]),i=t.reactive({active:!1}),f=t.computed(()=>({background:n.background})),m=t.computed(()=>({background:n.inputBackground})),d=v=>{let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),r("update:modelValue",x,v),r("change",x,v)},w=t.ref({}),S=v=>{let x=v.target.value;i.active=!0,w.value=n.focusStyle,r("focus",x,v)},T=v=>{setTimeout(()=>{i.active=!1},0);let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),w.value={},r("blur",x,v)},y=v=>{r("update:modelValue","",v),r("change","",v),r("clear","")},h=t.computed(()=>String(n.modelValue).length>0),A=t.computed(()=>{const v={};return h.value||(v.display="none"),v}),g=()=>{r("search",n.modelValue)},u=v=>{r("keyup-input",v),v.key.toLocaleUpperCase()==="ENTER"&&g()},N=v=>{r("click-input",v)},M=v=>{r("click-left-icon",n.modelValue,v)},O=t.computed(()=>({textAlign:n.inputAlign})),k=t.ref(null);t.onMounted(()=>{n.autofocus&&k.value.focus()});const E=()=>{const v=[];if(o.leftin){const C={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},D=t.h("view",C,[o.leftin()]);v.push(D)}const H={ref:k,class:[`${e}__input-inner`],style:O.value,type:n.inputType,maxlengt:n.maxLength,placeholder:c.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:N,onInput:d,onFocus:S,onBlur:T,onkeyup:u},x=t.h("input",H);v.push(x);const _=[];if(n.clearable){const C={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:y},D=o?.clear?.()??n.clearIcon??a,B=t.h("view",C,[t.h(D)]);_.push(B)}if(o.rightin){const C={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=t.h("view",C,[o.rightin()]);_.push(D)}if(_.length>0){const C={class:`${e}__input-inner-right`},D=t.h("view",C,_);v.push(D)}const X={class:[`${e}__search-input`,`${n.shape}`],style:{...m.value,...w.value}};return t.h("view",X,v)};return()=>{const v=[];if(n.label){const _={class:`${e}__search-label`},X=t.h("span",_,[n.label]);v.push(X)}if(o.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},X=t.h("view",_,[o.leftout()]);v.push(X)}const H=E();if(v.push(H),o.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},X=t.h("view",_,[o.rightout()]);v.push(X)}const x={class:`${e}`,style:f.value};return t.h("view",x,v)}}}),{componentName:Nm,create:Em,scope:Im}=ue("searchbar"),Un=Em(Dm(Nm,Im,Ie.CircleClose)),{componentName:Vm,create:Om,scope:Am}=ue("actionsheet-pane"),Gn=Om(pm(Vm,Am,bt,Yn,F.ElButton,Un,lf,Jc,Qo,Nc)),Vr={type:{type:String,default:"text"},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},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Fm(e,l,a,n,o){return{props:{...ke,...Oe,...Vr,...Kn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,s){const c=t.ref(null),i=Be(t.computed(()=>c.value??r.disabled)),f=t.ref(null),m=Me(t.computed(()=>f.value??r.readonly)),{emitEvent:d}=Ee({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return i.value}},r.prop??s.attrs.name),{toLocaleRefs:w}=xe.useFoxI18n(l),S=w(r,["placeholder"]),T=t.ref(!1),y=pe(r,"modelValue",null,d),h=t.ref(""),A=t.computed(()=>Array.isArray(h.value)?h.value.join(r.separator):h.value),g="fox-input-item",u=t.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value})),N=Fe(t.computed(()=>r.textAlign),"textAlign"),M=t.computed(()=>{const P={};return N.value&&(P["text-align"]=N.value),P}),O=t.ref(!1),k=()=>{O.value=!0},E=P=>{O.value=P},v=P=>{y.value=P,d("update:modelValue",P)},H=(P,J)=>{d("change",P,J)},x=P=>{let Y=P.target.value;T.value=!0,d("focus",Y,P)},_=P=>{setTimeout(()=>{T.value=!1},0);let Y=P.target.value;r.maxLength&&Y.length>Number(r.maxLength)&&(Y=Y.slice(0,Number(r.maxLength))),d("blur",Y,P)},X=P=>{h.value=P,d("update:text",P)},C=t.computed(()=>lt(r.unit)>0),D=t.ref(),B=t.ref(null);return we({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},search:P=>{B.value&&B.value.search(P)},clear:()=>{B.value&&B.value.clear},confirm:P=>{B.value&&B.value.confirm()},cancel:()=>{B.value&&B.value.cancel()},setDisabled:P=>{c.value=P},setReadonly:P=>{f.value=P}}),()=>{const P={ref:D,class:u.value,style:M.value,type:"text",maxlength:r.maxLength,placeholder:S.placeholder.value,readonly:!0,value:A.value,onClick:k,onFocus:x,onBlur:_},J={};s.slots.prepend&&(J.prepend=s.slots.prepend),s.slots.append&&(J.append=s.slots.append),s.slots.prefix&&(J.prefix=s.slots.prefix),s.slots.suffix?J.suffix=s.slots.suffix:C.value?J.suffix=()=>[r.unit]:J.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ie.ArrowDown)});const Y=[],j=t.h(F.ElInput,P,J);Y.push(j);const ee={default:()=>Y};ee.label=s.slots.default,ee.prepend=s.slots.prepend,ee.append=s.slots.append,ee.fixedPreTip=s.slots.fixedPreTip,ee.fixedTip=s.slots.fixedTip;const U=it(r,Kn);U.ref=B,U.class=r.actionsheetProps,U.disabled=i.value||m.value,U.visible=O.value,U["onUpdate:visible"]=E,U.modelValue=y.value,U["onUpdate:modelValue"]=v,U.text=h.value,U["onUpdate:text"]=X,U.onChange=H,U.poppable=!0;const K={title:s.slots.title,search:s.slots.search,option:s.slots.option,optionLabel:s.slots.optionLabel,optionIcon:s.slots.optionIcon,buttons:s.slots.buttons},G=t.h(n,U,K);ee.hide=()=>[G];const R={...Ve(r,Vr,Kn)};return r.prop&&(R.prop=`${r.prop}_item`),t.h(a,R,ee)}}}}const{componentName:Mm,create:Bm,scope:Rm}=ue("actionsheet-item"),da=Bm(Fm(Mm,Rm,$e,Gn)),Or={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:360}},ha={...Hl,...Or,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function Lm(e){return e===window}const ma=e=>{const l=t.unref(e);if(Lm(l)){const a=l.innerWidth,n=l.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return l&&l.getBoundingClientRect?l.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ar=10;function Fr(e,l){return e>l&&e>Ar?"horizontal":l>e&&l>Ar?"vertical":""}function Wt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Yt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},l=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const f=s.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const i=s;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=Fr(e.offsetX,e.offsetY))}),start:(s=>{if(n(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const i=s;e.startX=i.clientX,e.startY=i.clientY}e.startTime=Date.now()}),reset:n,isVertical:l,isHorizontal:a,state:e}}function Mr(){const e=t.ref(0),l=t.ref(0),a=t.ref(0),n=t.ref(0),o=t.ref(0),r=t.ref(0),s=t.ref(0),c=t.ref(0),i=t.ref(0),f=t.ref(0),m=t.ref(""),d=()=>m.value==="vertical",w=()=>m.value==="horizontal",S=()=>{s.value=0,c.value=0,i.value=0,f.value=0,m.value="",a.value=0};return{move:(h=>{if(h.touches){const u=h.touches[0];s.value=u.clientX-e.value,c.value=u.clientY-l.value,o.value=u.clientX,r.value=u.clientY}else{const g=h;s.value=g.clientX-e.value,c.value=g.clientY-l.value,o.value=g.clientX,r.value=g.clientY}i.value=Math.abs(s.value),f.value=Math.abs(c.value),n.value=Date.now()-a.value,m.value||(m.value=Fr(i.value,f.value))}),start:(h=>{if(S(),h.touches){const u=h.touches[0];e.value=u.clientX,l.value=u.clientY}else{const g=h;e.value=g.clientX,l.value=g.clientY}a.value=Date.now()}),reset:S,startX:e,startY:l,startTime:a,duration:n,moveX:o,moveY:r,deltaX:s,deltaY:c,offsetX:i,offsetY:f,direction:m,isVertical:d,isHorizontal:w}}let Br=36;function Pm(){return Br}function _m(e){Br=e}function rt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function ga(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]:l.children??null}function qm(e,l,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(l[e.childrenKey]=a),l.children=a}function wt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Rr(e,l){return typeof e.itemOptions=="function"?e.columnOptions(l):e.columnOptions}let zm=class{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function jm(){const e=t.getCurrentInstance();return new zm(e.proxy)}function Lr(e,l,a){const n=rt(e,l),o=rt(e,a);if(n!==o)return!1;const r=wt(e,l),s=wt(e,a);return r===s}function Hm(e,l,a,n){if(a.length==0)return[];Array.isArray(l)||(l=[l]);const o=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const c=l[s];let f=a[s].findIndex(m=>{if(r==="text")return rt(e,m)===c;if(r==="value"){let d=wt(e,m);return d==null&&(d=rt(e,m)),d===c}else if(r==="item")return Lr(e,m,c)});if(f==-1)break;o.push(f)}else{let s=a[0];for(let c=0;c<l.length;c++){const i=l[c];let f=s.findIndex(d=>{if(r==="text")return rt(e,d)===i;if(r==="value"){let w=wt(e,d);return w==null&&(w=rt(e,d)),w===i}else if(r==="item")return Lr(e,d,i)});if(f==-1)break;o.push(f);const m=ga(e,s[f]);if(!Array.isArray(m))break;s=m}}return o}function Pr(e,l,a,n){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<a.length;s++){const c=a[s];let i=l[s];i<0&&i>=c.length&&(i=0);const f=c[i],m=rt(e,f);if(o.texts.push(m),o.items.push(f),r==="text")o.values.push(m);else if(r==="value"){let d=wt(e,f);d==null&&(d=m),o.values.push(d)}else o.values.push(f)}else{let s=a[0];for(let c=0;c<l.length;c++){let i=l[c];i<0&&i>=s.length&&(i=0);const f=s[i],m=rt(e,f),d=Object.assign({},f);if(d.children=null,o.texts.push(m),o.items.push(d),r==="text")o.values.push(m);else if(r==="value"){let w=wt(e,f);w==null&&(w=m),o.values.push(w)}else o.values.push(d);if(!Array.isArray(f.children))break;s=f.children}}return o}function _r(e){return{text:e,value:e}}const Km=15,Wm=300,Ym=200,{create:Um}=ue("picker-column");function Gm(e){e.stopPropagation()}function Xm(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Gm(e)}const Zm=Um({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},visible:{type:Boolean,default:!1},...Or},emits:["click","change","update:modelValue"],setup(e,{emit:l}){const a=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${be(e.visibleItemCount)*+e.itemHeight}px`})),o=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=k=>k>=d.currIndex+8||k<=d.currIndex-8,c=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),i=k=>`transform: rotate3d(1, 0, 0, ${-d.rotation*k}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),m=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),w=k=>rt(e,k),S=k=>wt(e,k),T=Mr(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},h=(k,E=!1,v=!1)=>{if(d.currIndex=k,E){const H=()=>{d.moving=!1,l("update:modelValue",k),l("change",k)};v?d.transitionEndTrigger=H:H()}},A=(k,E,v)=>{let H=k+d.startDistance;if(E==="end"){const x=-(e.source.length-1)*e.itemHeight;H<x&&(H=x),H>0&&(H=0);let _=Math.abs(Math.round(-H/e.itemHeight));const X=-_*e.itemHeight,C=`${(_+1)*d.rotation}deg`,D=v?v>0:!1;h(_,!0,D),g(X,E,v,C)}else{let x=(-H/e.itemHeight+1)*d.rotation;const _=(e.source.length+1)*d.rotation,X=0;if(x=Math.min(Math.max(x,X),_),e.threeDimensional&&(x<X||x>_))return;g(H,null,void 0,`${x}deg`)}},g=(k=0,E,v=Ym,H)=>{E==="end"?d.scrollTime=v:d.scrollTime=0,d.deg=H,d.scrollDistance=k},u=(k,E)=>(k=Math.abs(k/E)/.003*(k<0?-1:1),k),N=k=>{e.readonly||(d.startDistance=d.scrollDistance,T.start(k),d.transitionEndTrigger=null)},M=k=>{e.readonly||(d.moving=!0,T.move(k),T.isVertical()&&(d.moving=!0,Xm(k)),A(T.deltaY.value,"",0))},O=()=>{if(e.readonly)return;const k=T.deltaY.value,E=T.duration.value;if(E<Wm&&Math.abs(k)>Km){const H=u(k,E);A(H,"end",e.swipeDuration)}else A(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const E=d.currIndex-k;if(E!==0){d.currIndex=k,d.startDistance=d.scrollDistance;const v=E*e.itemHeight;A(v,"",0)}}),t.watch(()=>e.source,k=>{if(d.currIndex>=k.length){const H=(k.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,A(H,"end",0)}}),t.watch(()=>e.visible,k=>{k===!1&&y()}),t.onMounted(()=>{const k=-e.modelValue*e.itemHeight;A(k)}),{classes:a,styles:n,contentClasses:o,itemText:w,itemValue:S,...t.toRefs(d),roller:m,getItemText:rt,onTouchStart:N,onTouchMove:M,onTouchEnd:O,isHidden:s,setRollerStyle:i,touchRollerStyle:c,touchTileStyle:f,stopMomentum:y}}}),Qm={key:1,class:"fox-picker__item-tile"};function Jm(e,l,a,n,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:l[0]||(l[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:l[1]||(l[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:l[2]||(l[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:l[3]||(l[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:l[4]||(l[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,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c+1)}]),style:t.normalizeStyle(e.setRollerStyle(c+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Qm,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const eg=Le(Zm,[["render",Jm]]),{create:tg,componentName:ng,scope:lg}=ue("picker"),ag=tg({components:{PickerColumn:eg,Popup:bt},props:{...ha},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:l}){const{toLocaleRefs:a,t:n}=xe.useFoxI18n(lg),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Pm());t.watch(()=>e.visible,x=>{x&&s.value<=0&&setTimeout(()=>{if(r.value){const _=ma(r.value);s.value=_.height,_m(s.value)}},50)});const c=t.computed(()=>({[ng]:!0})),i=jm(),f=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([x,_])=>{if(x){let X=await i.load("select",x,_);if(X.length>0){let C=X[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let D=X,B=[];D.forEach(P=>{let J=P.map(Y=>_r(Y));B.push(J)}),m.value=B}else m.value=X;f.value="multipleColumn"}else if(typeof C=="string"){let D=X,B=[],P=D.map(J=>_r(J));B.push(P),m.value=B,f.value="singleColumn"}else{const D=ga(e,C);Array.isArray(D)?(f.value="cascade",m.value=[X]):(f.value="singleColumn",m.value=[X])}}else m.value=[]}},{immediate:!0});const d=t.ref([]),w=t.ref(e.modelValue),S=t.ref([]),T=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([x,_])=>{let X=Hm(e,x,_,f.value);if(!Xe(X,T.value)){T.value=X;let C=Pr(e,X,_,f.value);C&&(d.value=C.texts,l("update:text",d.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,x=>{y.value=x});const h=x=>{let _=Rr(e,x);return je(_)?_.defaultIndex??0:0},A=x=>{if(e.readonly===!0)return!0;let _=Rr(e,x);return je(_)?_.readonly??!1:!1},g=(x,_)=>{let X=T.value;X[x]=_;for(let D=0;D<x;D++)X[D]==null&&(X[D]=h(D));if(f.value==="cascade")for(let D=x+1;D<N.value.length;D++){let B=h(D);D<X.length?X[D]=B:X.push(B)}else for(let D=X.length;D<N.value.length;D++){let B=h(D);X.push(B)}T.value=X;let C=Pr(e,X,m.value,f.value);C&&(d.value=C.texts,w.value=C.values,S.value=C.items)},u=x=>x<T.value.length?T.value[x]:h(x),N=t.computed(()=>{if(m.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return m.value;let x=[],_=0,X=m.value[0],C=0;for(;;){let D=X.map(J=>{let Y=Object.assign({},J);return qm(e,Y,null),Y});x.push(D),_>=T.value.length?C=0:C=T.value[_],(C<0||C>=X.length)&&(C=0);let B=X[C];const P=ga(e,B);if(!Array.isArray(P))break;X=P,_++}return x}),M=t.computed(()=>be(+e.visibleItemCount-1)/2*s.value),O=(x=!1)=>{if(e.readonly===!0){x&&l("update:visible",!1);return}let _=m.value.length-1;for(;_>=0&&!(T.value[_]===null||T.value[_]===void 0);_--);if(_>=0&&g(_,0),f.value==="singleColumn"){let X=w.value.length>0?w.value[0]:"",C=S.value.length>0?S.value[0]:null;l("update:modelValue",X),l("update:text",d.value),l("change",X,C),x&&(l("confirm",X),l("update:visible",!1))}else l("update:modelValue",w.value),l("update:text",d.value),l("change",w.value,S.value),x&&(l("confirm",w.value),l("update:visible",!1))};return{...o,pickerLineRef:r,classes:c,columns:N,dataType:f,show:y,itemHeight:s,top:M,isReadonly:A,getIndex:u,change:(x,_)=>{if(g(x,_),e.isAutoBackFill){const X=!y.value;O(X)}},close:()=>{l("close"),l("update:visible",!1)},confirm:()=>{O(!0)},clear:()=>{if(e.readonly===!0){l("update:visible",!1);return}f.value==="singleColumn"?(l("update:modelValue",""),l("change","")):(l("update:modelValue",[]),l("change",[])),l("clear",""),l("update:visible",!1)}}}}),og={class:"fox-picker__bar"},rg={class:"fox-picker__title"},ig={class:"fox-picker__bar__action"},sg={class:"fox-picker__column"};function ug(e,l,a,n,o,r){const s=t.resolveComponent("PickerColumn"),c=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(c,{position:"bottom",visible:e.show,"onUpdate:visible":l[3]||(l[3]=i=>e.show=i),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",og,[t.createElementVNode("view",rg,t.toDisplayString(e.title),1),t.createElementVNode("view",ig,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:l[0]||(l[0]=(...i)=>e.close&&e.close(...i))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:l[1]||(l[1]=(...i)=>e.confirm&&e.confirm(...i))},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:l[2]||(l[2]=(...i)=>e.clear&&e.clear(...i))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",sg,[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,(i,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:i,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":m=>e.change(f,m),"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,["visible","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 Ut=Le(ag,[["render",ug]]),qr={...ha,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function cg(e,l,a){return{props:{...ke,...Oe,...qr},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(n,o){const r=t.ref(null),s=Be(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=Me(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ee({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:m}=xe.useFoxI18n(l),d=m(n,["placeholder"]),w=t.ref(!1),S=e,T=t.computed(()=>({[S]:!0})),y=Fe(t.computed(()=>n.textAlign),"textAlign"),h=t.computed(()=>({textAlign:y.value??"right"})),A=pe(n,"modelValue",null,f),g=t.ref([]),u=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),N=t.ref(!1),M=()=>{N.value=!0},O=P=>{N.value=P},k=P=>{A.value=P,f("update:modelValue",P)},E=P=>{g.value=P,Array.isArray(P)&&P.length===0?f("update:text",P[0]):f("update:text",P)},v=(P,J)=>{f("change",P,J)};let H=pe(n,"hintText"),x=t.ref(!1);const _=P=>{let Y=P.target.value;w.value=!0,ge(H.value)||(x.value=!0),f("focus",Y,P)},X=P=>{setTimeout(()=>{x.value&&(x.value=!1),w.value=!1},0);let Y=P.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),N.value?setTimeout(()=>{f("blur",Y,P)},50):f("blur",Y,P)},C=()=>{f("clear","")},D=t.computed(()=>lt(n.unit)>0),B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:P=>{r.value=P},setReadonly:P=>{c.value=P}}),()=>{const P={class:T.value,style:h.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,clearable:de(n.clearable),readonly:!0,value:u.value,onClick:M,onFocus:_,onBlur:X},J={};o.slots.prepend&&(J.prepend=o.slots.prepend),o.slots.append&&(J.append=o.slots.append),o.slots.prefix&&(J.prefix=o.slots.prefix),o.slots.suffix?J.suffix=o.slots.suffix:D.value?J.suffix=()=>[n.unit]:J.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ie.ArrowDown)});const Y=[],j=t.h(F.ElInput,P,J);Y.push(j);const ee={default:()=>Y};ee.label=o.slots.default,ee.fixedPreTip=o.slots.fixedPreTip,ee.fixedTip=o.slots.fixedTip;const U=it(n,ha);U.disabled=!1,U.readonly=s.value||i.value,U.visible=N.value,U["onUpdate:visible"]=O,U.modelValue=A.value,U["onUpdate:modelValue"]=k,U.text=g.value,U["onUpdate:text"]=E,U.onClear=C,U.onChange=v;const K=t.h(Ut,U);ee.hide=()=>[K];const Z={...Ve(n,qr),hintText:H.value,hintVisible:x.value};return n.prop&&(Z.prop=`${n.prop}_item`),t.h(a,Z,ee)}}}}const{componentName:fg,create:dg,scope:hg}=ue("picker-item"),ya=dg(cg(fg,hg,$e)),pa={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},zr=(e,l)=>l[e.textKey],Gt=(e,l)=>l[e.valueKey],mg=(e,l)=>l[e.visibleKey],jr=(e,l)=>l[e.disabledKey],gg=(e,l)=>{const a=l[e.doitKey];return de(a)},yg=(e,l)=>{const a=l[e.numKey];return a==null?null:be(l[a])},Hr=(e,l,a)=>{const n=e.itemOptions;return typeof n=="function"?n(l,a):n||null};function pg(e,l,a,n,o,r=!1){return{props:{...pa},emits:["update:modelValue","change","click"],setup(s,{slots:c,emit:i}){const f=t.computed(()=>{const V={};return V[`${e}`]=!0,V}),m=t.computed(()=>{const V={};return V[`${e}__titles`]=!0,V[`${s.direction}`]=!0,s.align&&(V[`${s.align}`]=!0),s.scroll===!0&&(V.scrollable=!0),s.shape&&(V[`${s.shape}`]=!0),s.showScrollArrow?(R.value===!0&&(V["has-left-scroll-arrow "]=!0),te.value===!0&&(V["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(V["has-navigation"]=!0),V}),d=t.computed(()=>({})),w=t.computed(()=>{if(!s.gutter)return 0;const V=ve(s.gutter);return V<=0?0:V}),S=t.ref(s.modelValue);t.watch(()=>s.modelValue,V=>{S.value!==V&&(S.value=V,Y(!1))});const T=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=t.computed(()=>{const V={};return A.value||(V.display="none"),V}),h=t.ref(),A=t.ref(!1),g=()=>{const V=!A.value;u(V)},u=V=>{const p=V;p?(A.value=p,setTimeout(()=>{T.value["fox-tabs-bar__popup--show"]=!0,T.value["fox-tabs-bar__popup--hide"]=!1},0)):(T.value["fox-tabs-bar__popup--show"]=!1,T.value["fox-tabs-bar__popup--hide"]=!0,h.value?h.value.addEventListener("transitionend",()=>{A.value=!1},{once:!0}):setTimeout(()=>{A.value=!1},0))},N=t.ref(),M=t.ref([]),O=(V,p)=>{M.value[p]=V},k=V=>p=>{O(p,V)},E=(V,p)=>{const z=N.value,q=M.value;if(!z||!q||!q[V])return;const ne=q[V];let oe=0;s.direction==="vertical"?oe=ne.offsetTop-(z.offsetHeight-ne.offsetHeight)/2:oe=ne.offsetLeft-(z.offsetWidth-ne.offsetWidth)/2,v(z,oe,p?0:.3,s.direction)},v=(V,p,z,q)=>{let ne=0;const oe=q==="horizontal"?V.scrollLeft:V.scrollTop,ie=z===0?1:Math.round(z*1e3/16);function he(){q==="horizontal"?V.scrollLeft+=(p-oe)/ie:V.scrollTop+=(p-oe)/ie,++ne<ie&&dl(he)}he()},H=(V,p)=>{const z=Gt(s,V),q={};return q[`${e}__titles-item`]=!0,q.disabled=jr(s,V),q.active=z===S.value,s.shape&&(q[`${s.shape}`]=!0),s.ellipsis&&(q.ellipsis=!0),p&&(p.class&&(q[`${p.class}`]=!0),p.disabled===!0&&(q.disabled=p.disabled)),q},x=(V,p)=>{const z={};if(w.value>0){const q=Math.abs(w.value/2);s.direction==="vertical"?(z["margin-top"]=`${q}px`,z["margin-bottom"]=`${q}px`):(z["margin-left"]=`${q}px`,z["margin-right"]=`${q}px`)}return p&&p.style&&Object.assign(z,p.style),z},_=(V,p)=>`${Gt(s,V)??p}`,X=(V,p)=>{const z=Gt(s,V),q={};q[`${e}__popup-item`]=!0,q.disabled=jr(s,V),q.active=z===S.value,s.shape&&(q[`${s.shape}`]=!0);const ne=Hr(s,V,p);return ne&&ne.disabled===!0&&(q.disabled=ne.disabled),q},C=t.computed(()=>(s.data??[]).filter(p=>mg(s,p)!==!1)),D=(V,p)=>{const z=Gt(s,V);if(i("click",V,p),S.value==z)return;const q=()=>{S.value=z,s.scroll&&E(p,!1),i("update:modelValue",z),i("change",V,p)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(V,p);nn(ne)?ne.then(oe=>{oe!==!1&&q()}).catch(()=>{q()}):ne!==!1&&q()}else q()},B=(V,p)=>function(){D(V,p)},P=(V,p)=>{D(V,p),u(!1)},J=(V,p)=>function(){P(V,p)},Y=V=>{if(!Array.isArray(s.data)||!s.scroll)return;Z()&&L();const p=s.data.findIndex(z=>Gt(s,z)===S.value);p!==-1&&E(p,V)},j=()=>{Z()||$()};t.watch(()=>s.data,()=>{setTimeout(Y,0)}),t.onMounted(()=>{Y(!0)}),t.onBeforeUnmount(()=>{j()});const ee=(V,p)=>{if(c.item)return c.item({item:V,index:p});const z=Hr(s,V,p),q=[];if(c.text){const he=c.text({item:V,index:p});q.push(he)}else{const he=[];if(z?.doit===!0||gg(s,V)){const We={class:[`${e}__titles-item-tip`,"doit"]},qe=t.h("view",We);he.push(qe)}const ye=z?.num??yg(s,V);if(ye){let We="";const qe=be(ye);qe>=100?We="99+":We=`${qe}`;const At={class:[`${e}__titles-item-tip`,"num"]},Pa=t.h("view",At,[We]);he.push(Pa)}const Te={class:`${e}__titles-item-text`};he.push(zr(s,V));const et=t.h("view",Te,he);q.push(et)}const ne={class:`${e}__titles-item-line`},oe=t.h("view",ne);q.push(oe);const ie={ref:k(p),class:H(V,z),style:x(V,z),key:_(V,p),onClick:B(V,p)};return t.h("view",ie,q)},U=()=>{const V=c.default?c.default():[];if(V.length===0)for(let z=0;z<C.value.length;z++){const q=C.value[z],ne=ee(q,z);V.push(ne)}const p={ref:N,class:m.value,style:d.value};return t.h("view",p,V)},K=()=>{let V=null;c.navigation?V=c.navigation():V=t.h(a);const p={class:`${e}__navigation`,onClick:g};return t.h("view",p,[V])},G=()=>{const V=[];for(let z=0;z<C.value.length;z++){const q=C.value[z];let ne=null;c.popupItem?ne=c.popupItem({item:q,index:z}):ne=zr(s,q);const oe={class:X(q,z),key:_(q,z),onClick:J(q,z)},ie=t.h("view",oe,[ne]);V.push(ie)}const p={class:T.value,style:y.value};return t.h("view",p,V)},Z=()=>s.showScrollArrow&&s.direction=="horizontal",R=t.ref(!1),te=t.ref(!1),le=V=>{const p=N.value,z=M.value;if(!(!p||!z))if(V==="left"){const q=p.scrollLeft;let ne=q;for(let oe=0;oe<z.length;oe++){const ie=z[oe].offsetLeft;if(q-ie<0)break;ne=ie}v(p,ne,.3,"horizontal")}else{const q=p.scrollLeft;let ne=q,oe=p.offsetWidth;for(let ie=z.length-1;ie>=0;ie--){const he=z[ie].offsetLeft+z[ie].offsetWidth;if(he-q<p.offsetWidth){ne+=oe-he;break}oe=he}v(p,ne,.3,"horizontal")}},Q=Ue(()=>{const V=N.value;if(!V)return;let p=V.scrollLeft>0;p!==R.value&&(R.value=p);let z=V.scrollWidth-V.scrollLeft>V.offsetWidth;z!==te.value&&(te.value=z)},50),I=V=>{Q()},L=()=>{const V=N.value;V&&(Q(),V.addEventListener("scroll",I))},$=()=>{const V=N.value;V&&V.removeEventListener("scroll",I)},W=V=>{if(V==="left"&&R.value!==!0||V==="right"&&te.value!==!0)return null;let p=null;V==="left"?c.leftArrow?p=c.leftArrow():p=t.h(n):c.rightArrow?p=c.rightArrow():p=t.h(o);const z={class:[`${e}__scroll-arrow`,V],onClick:()=>{le(V)}};return t.h("view",z,[p])};return()=>{const V=[],p=U();if(V.push(p),Z()){const q=W("left");q&&V.push(q);const ne=W("right");ne&&V.push(ne)}else if(s.showQuickNavigation){const q=K();V.push(q);const ne=G();V.push(ne)}const z={class:f.value};return t.h("view",z,V)}}}}const{create:bg,componentName:vg,scope:wg}=ue("tabs-bar"),Xt=bg(pg(vg,wg,Bc,jc,Oc,!1)),Kr=Symbol("TabsStatesKey"),ba={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Sg=15,xg=300,Cg=200;function Tg(e,l,a=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*a}function Wr(e,l=0,a,n,o=Cg){a==="end"?e.style.transition=`transform ${o}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${l}px, 0, 0)`:e.style.transform=`translate3d(0, ${l}px, 0)`}let kg=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(l,a,n,o=1){this.onStart=l,this.onMove=a,this.onEnd=n,this.momentumReduceRatio=o,this.isTouch=Wt()}open(l){this.el=l;const a=Yt(),n=(o,r,s)=>{const c={delta:o,direction:r,type:s};this.onMove(c)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=o=>{if(this.moving)return;a.start(o),this.transitionEndTrigger=()=>{l.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,l.removeEventListener("transitionend",this.transitionend),l.addEventListener("transitionend",this.transitionend),l.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),l.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&l.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=o=>{if(!this.moving)return;a.move(o);let r=0;if(this.direction==="horizontal"){if(a.isVertical())return;r=a.state.deltaX}else{if(a.isHorizontal())return;r=a.state.deltaY}n(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;l.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),l.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&l.removeEventListener("touchcancel",this.touchend);let o=0;if(this.direction==="horizontal"){if(a.isVertical()){this.moving=!1;return}o=a.state.deltaX}else{if(a.isHorizontal()){this.moving=!1;return}o=a.state.deltaY}const r=a.state.duration;r<xg&&Math.abs(o)>Sg?(o=Tg(o,r,this.momentumReduceRatio),n(o,this.direction,"end")):n(o,this.direction,"end")},l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const l=this.el;this.transitionend&&l.addEventListener("transitionend",this.transitionend),this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&l.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&l.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&l.addEventListener("touchcancel",this.touchcancel),this.el=null}};function $g(e,l,a,n=1){return new kg(e,l,a,n)}function Dg(e,l,a=!1){return{props:{...ba},emits:["update:modelValue","change"],setup(n,{emit:o,slots:r}){const s=t.shallowRef([]),c={current:t.ref(n.modelValue??""),direction:t.ref(n.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:k=>{const E={name:k};c.current.value===k&&(E.loaded=!0),s.value.push(E),t.triggerRef(s)},remove:k=>{const E=s.value.findIndex(v=>v.name===k);E!==-1&&s.value.splice(E,1)},isLoaded:k=>{if(!n.lazy)return!0;const E=s.value.findIndex(v=>v.name===k);return E!==-1?c.current.value?s.value[E].loaded??!1:E===0:!1}};t.provide(Kr,c);const i=k=>{const E=s.value.findIndex(v=>v.name===k);E!==-1&&(s.value[E].loaded=!0,t.triggerRef(s))};t.watch([()=>n.modelValue,()=>n.direction],([k,E])=>{c.current.value!==k&&(c.current.value=k??"",i(k??"")),c.direction.value!==E&&(c.direction.value=E)});const f=t.ref(null),m=t.ref(null),d=t.computed(()=>({[e]:!0,[`${n.direction}`]:!0})),w=t.computed(()=>{const k={};if(n.width){const E=Se(n.width);E&&(k.width=E)}if(n.height){const E=Se(n.height);E&&(k.height=E)}return k});let S=!0;const T=t.computed(()=>{const k={},E=s.value.length;if(E<=0)return k;const v=s.value.findIndex(H=>H.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(k.height=`${E*c.tabHeight.value}px`,v!==-1&&(k.transform=`translate(0, -${v*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(k.width=`${E*c.tabWidth.value}px`,v!==-1&&(k.transform=`translate(-${v*c.tabWidth.value}px, 0)`)),S&&(S=!1,k.transition="transform 0s ease"),k}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=k=>{const E=s.value.length,v=s.value.findIndex(H=>H.name===c.current.value);y.moved=0,k.direction==="vertical"?(y.min=-1*(c.tabHeight.value*(E-1)+c.tabHeight.value/4),y.max=c.tabHeight.value/4,y.start=-v*c.tabHeight.value,y.itemDistance=c.tabHeight.value):(y.min=-1*(c.tabWidth.value*(E-1)+c.tabWidth.value/4),y.max=c.tabWidth.value/4,y.start=-v*c.tabWidth.value,y.itemDistance=c.tabWidth.value)},A=k=>{const E=m.value;if(!E)return;let v=y.start+k.delta;if(v>y.max?v=y.max:v<y.min&&(v=y.min),k.type==="move")Wr(E,v,"move",k.direction,300);else if(k.type==="end"){let H=Math.floor(Math.abs(v)*1/y.itemDistance);const x=Math.abs(v)%y.itemDistance;y.start>v?x>=y.itemDistance*y.triggerAutoMoveRatio&&(H+=1):x>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&(H+=1),v=-1*H*y.itemDistance,Wr(E,v,"end",k.direction,300),y.moved=v;const _=s.value[H].name;c.current.value=_??"",i(_??""),o("update:modelValue",_)}},g=()=>{},u=()=>{if(!f.value)return;const k=vn(f.value);c.tabWidth.value=k.width,c.tabHeight.value=k.height},N=mo(u,250);let M=null,O=null;return t.onMounted(()=>{f.value&&(u(),window.ResizeObserver&&(O=new window.ResizeObserver(N),O.observe(f.value)),n.draggle&&(M=$g(h,A,g),M.open(m.value)))}),t.onBeforeUnmount(()=>{O&&(O.disconnect(),O=null),M&&M.close()}),()=>{const k={class:`${e}__panes`,style:T.value,ref:m},E=t.h("view",k,[r?.default?.()]),v={class:d.value,style:w.value,ref:f};return t.h("view",v,[E])}}}}const{create:Ng,componentName:Eg,scope:Ig}=ue("tabs-container"),Zt=Ng(Dg(Eg,Ig,!1)),Vg={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Og(e,l,a){return{props:{...Vg},setup(n,{emit:o,slots:r}){const s=t.inject(Kr);t.onMounted(()=>{s.add(n.paneKey)}),t.onBeforeUnmount(()=>{s.remove(n.paneKey)});const c=t.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),i=t.computed(()=>n.loaded!=null?de(n.loaded):s.isLoaded(n.paneKey));return()=>{let f=[];if(i.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const d={class:`${e}__empty-icon`},w=n.emptyIcon??a,S=t.h(w,d),T={class:`${e}__empty-text`},y=n.emptyText??"Loading",h=t.h("view",T,[y]),A={class:`${e}__empty`},g=t.h("view",A,[S,h]);f.push(g)}const m={class:`${e}`,style:c.value,prop:n.paneKey};return t.h("view",m,f)}}}}const{create:Ag,componentName:Fg,scope:Mg}=ue("tabs-pane"),Xn=Ag(Og(Fg,Mg,zn));function Bg(e,l,a,n){return{props:{...pa,...ba,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(o,{emit:r,slots:s}){const c=e,i=t.computed(()=>{const y=[`${c}`];return o.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),f=t.computed(()=>{const y={};if(o.width){const h=Se(o.width);h&&(y.width=h)}if(o.height){const h=Se(o.height);h&&(y.height=h)}return y}),m=t.computed(()=>[`${c}__bar`]),d=t.computed(()=>[`${c}__container`]),w=t.ref(o.modelValue);t.watch(()=>o.modelValue,y=>{w.value!==y&&(w.value=y)});const S=y=>{r("change",y)},T=y=>{w.value!==y&&(w.value=y,r("update:modelValue",y))};return()=>{const y=s.default?.()??[],h=[];if(Array.isArray(o.data))h.push(...o.data);else for(let E=0;E<y.length;E++){const v=y[E].props??{},H={text:v.label??"",value:v["pane-key"]??v.paneKey??""};h.push(H)}const A={};for(let E in s)E!=="default"&&(A[E]=s[E]);const g=it(o,pa);Object.assign(g,{data:h,class:m.value,modelValue:w.value,direction:o.direction,onChange:S,"onUpdate:modelValue":T});const u=t.h(a,g,A),N={default:()=>y},M=it(o,ba);Object.assign(M,{class:d.value,modelValue:w.value,onChange:S,"onUpdate:modelValue":T});const O=t.h(n,M,N),k={class:i.value,style:f.value};return t.h("view",k,[u,O])}}}}const{create:Rg,componentName:Lg,scope:Pg}=ue("tabs-frame"),va=Rg(Bg(Lg,Pg,Xt,Zt)),_g={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function qg(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Yr(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Ur(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function zg(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function wa(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function Gr(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function Xr(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function Sa(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}class jg{proxy;constructor(l){this.proxy=l}async load(l,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[n]);const o=Re(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(o,null,[a,n]))}}function Hg(){const e=t.getCurrentInstance();return new jg(e.proxy)}function Kg(e,l,a,n){return{props:{..._g},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:s}){const c=e,i=Hg(),f=t.ref([]),m=t.computed(()=>f.value.filter(K=>zg(o,K)!==!1)),d=t.ref(-1),w=()=>{const K=o.modelValue,G=m.value.findIndex(Z=>Yr(o,Z)===K);d.value!==G&&(d.value=G,o.scroll&&ee(G))};t.watch([()=>o.modelValue,m],()=>{w()});const S=K=>d.value===K,T=K=>{if(K<0&&K>=m.value.length)return!1;const G=m.value[K],R=(Sa(o,G,K)??{}).status??wa(o,G);return S(K)||R},y=t.computed(()=>{const K={[c]:!0};return o.mode?K[`is-${o.mode}`]=!0:o.direction&&(K[`is-${o.direction}`]=!0),o.scroll&&(K["is-scroll"]=!0),K}),h=t.computed(()=>({})),A=(K,G,Z,R,te)=>{const le={[`${c}__step`]:!0};return te&&(le[`${te}`]=!0),le[`${g.value}`]=!0,R&&(le["is-doit"]=!0),K===d.value?le["is-active"]=!0:G==="done"?le["is-done"]=!0:G==="error"?le["is-error"]=!0:G==="half"?le["is-half"]=!0:Z?le["is-disabled"]=!0:le["is-normal"]=!0,le},g=t.computed(()=>{let K=o.align;if(!K){if(o.mode==="simple")return"start";o.direction==="vertical"?K="start":K="center"}return K}),u=(K,G={})=>{const Z={...G};if(g.value==="start"&&K===m.value.length-1)Z.flex="0 0 auto";else if(o.step){const R=typeof o.step=="number"||yl(o.step)?Se(o.step):o.step;o.direction==="vertical"?Z.height=R:Z.width=R}else Z.flex="1 1 100%";return Z},N=(K,G)=>{let Z={};if(G<m.value.length-1){const R=G+1;T(G)&&T(R)?o.direction==="vertical"?Z.height="100%":Z.width="100%":Z.opacity="0"}return Z},M=K=>m.value.length-1===K,O=(K,G)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&G>d.value||d.value===G)return;const Z=d.value,R=G;d.value=G,o.scroll&&ee(G);const te=Yr(o,K);s("update:modelValue",te);const le={fromIndex:Z,currentIndex:R,item:K,items:m.value,clickNavigatePolicy:o.clickNavigatePolicy};s("change",te,le)},k=t.ref(!0),E=async(K,G)=>{try{const Z=await i.load("stesbar",K,G);Array.isArray(Z)&&(f.value=Z),k.value=!1}catch(Z){console.error("[FoxUI] Load StepsBar Data Fail",Z),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([K,G])=>{K&&E(K,G)},{immediate:!0});const v=(K,G,Z,R,te)=>{let le=null;if(r.icon)le=r.icon({item:K,index:G,status:R});else if(R==="done"){const I={};o.iconSize&&(I.width=o.iconSize,I.height=o.iconSize);const L=o.icon??a;le=t.h(L,I)}else{const I=Z??`${G+1}`;le=t.h("span",{},[I])}const Q={class:"fox-steps-bar__icon",onClick:()=>{te||O(K,G)}};return t.h("view",Q,[le])},H=(K,G,Z)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:N(K,G)});return t.h("view",{class:"fox-steps-bar__line"},[R])},x=()=>{let K=null;if(r.markIcon)K=r.markIcon();else{const Z={};o.iconSize&&(Z.width=o.markIconSize,Z.height=o.markIconSize);const R=o.markIcon??n;K=t.h(R,Z)}return t.h("view",{class:"fox-steps-bar__mark"},[K])},_=(K,G,Z,R,te)=>{const le=[];if(!M(G)){const L=H(K,G);le.push(L)}const Q=v(K,G,Z,R,te);le.push(Q);const I={class:"fox-steps-bar__head"};return t.h("view",I,le)},X=(K,G,Z,R)=>{let te=null;r.main?te=r.main({item:K,index:G,status:Z}):te=qg(o,K);const le={class:"fox-steps-bar__main",onClick:()=>{R||O(K,G)}};return t.h("view",le,[te])},C=(K,G,Z)=>{let R=null;if(r.sub){R=r.sub({item:K,index:G,status:Z});const te={class:"fox-steps-bar__sub"};return t.h("view",te,[R])}return null},D=(K,G)=>{const Z=Sa(o,K,G)??{},R=Z.status??wa(o,K);let te=Ur(o,K);Z.disabled===!0&&(te=!0),o.disabled===!0&&(te=!0);const le=Z.label??Xr(o,K),Q=[],I=v(K,G,le,R,te);I&&Q.push(I);const L=X(K,G,R,te);if(L&&Q.push(L),!M(G)){const q=H(K,G);q&&Q.push(q)}const $=t.h("view",{class:"fox-steps-bar__head"},Q),W=Z.class,V=Z.style??{};let p=Gr(o,K);Z.doit===!0&&(p=!0);const z={ref:j(G),class:A(G,R,te,p,W),style:u(G,V)};return t.h("view",z,[$])},B=(K,G)=>{const Z=Sa(o,K,G)??{},R=Z.status??wa(o,K);let te=Ur(o,K);Z.disabled===!0&&(te=!0),o.disabled===!0&&(te=!0);const le=Z.label??Xr(o,K),Q=[],I=o.layout;for(let p of I)if(p==="head"){const z=_(K,G,le,R,te);Q.push(z)}else if(p==="main"){const z=X(K,G,R,te);Q.push(z)}else if(p==="sub"){const z=C(K,G,R);Q.push(z)}else if(p==="mark"){const z=x();Q.push(z)}const L=Z.class,$=Z.style??{};let W=Gr(o,K);Z.doit===!0&&(W=!0);const V={ref:j(G),class:A(G,R,te,W,L),style:u(G,$)};return t.h("view",V,Q)},P=t.ref(),J=t.ref([]),Y=(K,G)=>{J.value[G]=K},j=K=>G=>{Y(G,K)},ee=(K,G)=>{const Z=P.value,R=J.value;if(!Z||!R||!R[K])return;const te=R[K];let le=0;o.direction==="vertical"?le=te.offsetTop-(Z.offsetHeight-te.offsetHeight)/2:le=te.offsetLeft-(Z.offsetWidth-te.offsetWidth)/2,U(Z,le,.3,o.direction)},U=(K,G,Z,R)=>{let te=0;const le=R==="horizontal"?K.scrollLeft:K.scrollTop,Q=Math.round(Z*1e3/16);function I(){R==="horizontal"?K.scrollLeft+=(G-le)/Q:K.scrollTop+=(G-le)/Q,++te<Q&&dl(I)}I()};return()=>{let K=[];if(o.mode==="simple")for(let Z=0;Z<m.value.length;Z++){const R=m.value[Z],te=D(R,Z);K.push(te)}else for(let Z=0;Z<m.value.length;Z++){const R=m.value[Z],te=B(R,Z);K.push(te)}const G={ref:P,class:y.value,style:h.value};return K.length===0&&typeof r.default=="function"&&(K=r.default()),t.h("view",G,K)}}}}const{componentName:Wg,create:Yg,scope:Ug}=ue("steps-bar"),xa=Yg(Kg(Wg,Ug,Jo,sf)),He=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,St=e=>e==null;let Gg=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,a){this.startMove=l,this.updateMove=a,this.isTouch=Wt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const a=Yt(),n=(o,r,s,c)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),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=o=>{this.moving&&(a.move(o),n(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{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},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(l=>{this.touchstart&&l.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Zr(e,l){return new Gg(e,l)}const Qr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Ot=[];const Jr=e=>{const l=e;l.key==="Escape"&&Ot.forEach(a=>a(l))},Xg=e=>{t.onMounted(()=>{Ot.length===0&&document.addEventListener("keydown",Jr),Qr&&Ot.push(e)}),t.onBeforeUnmount(()=>{Ot=Ot.filter(l=>l!==e),Ot.length===0&&Qr&&document.removeEventListener("keydown",Jr)})},Ca="fox-focus-trap.focus-after-trapped",Ta="fox-focus-trap.focus-after-released",Zg="fox-focus-trap.focusout-prevented",ei={cancelable:!0,bubbles:!1},Qg={cancelable:!0,bubbles:!1},ti="foxFocusAfterTrapped",ni="foxFocusAfterReleased",Jg=Symbol("foxFocusTrap"),ka=t.ref(),Zn=t.ref(0),$a=t.ref(0);let Qn=0;const li=e=>{const l=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)l.push(a.currentNode);return l},ey=(e,l)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(l&&e===l)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ai=(e,l)=>{for(const a of e)if(!ey(a,l))return a},ty=e=>{const l=li(e),a=ai(l,e),n=ai(l.reverse(),e);return[a,n]},ny=e=>e instanceof HTMLInputElement&&"select"in e,gt=(e,l)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),$a.value=window.performance.now(),e!==a&&ny(e)&&l&&e.select()}};function oi(e,l){const a=[...e],n=e.indexOf(l);return n!==-1&&a.splice(n,1),a}const ly=()=>{let e=[];return{push:n=>{const o=e[0];o&&n!==o&&o.pause(),e=oi(e,n),e.unshift(n)},remove:n=>{e=oi(e,n),e[0]?.resume?.()}}},ay=(e,l=!1)=>{const a=document.activeElement;for(const n of e)if(gt(n,l),document.activeElement!==a)return},ri=ly(),oy=()=>Zn.value>$a.value,Jn=()=>{ka.value="pointer",Zn.value=window.performance.now()},ii=()=>{ka.value="keyboard",Zn.value=window.performance.now()},ry=()=>(t.onMounted(()=>{Qn===0&&(document.addEventListener("mousedown",Jn),document.addEventListener("touchstart",Jn),document.addEventListener("keydown",ii)),Qn++}),t.onBeforeUnmount(()=>{Qn--,Qn<=0&&(document.removeEventListener("mousedown",Jn),document.removeEventListener("touchstart",Jn),document.removeEventListener("keydown",ii))}),{focusReason:ka,lastUserFocusTimestamp:Zn,lastAutomatedFocusTimestamp:$a}),el=e=>new CustomEvent(Zg,{...Qg,detail:e}),{create:iy}=ue("focus-trap"),sy=iy({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:[ti,ni,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:a}){const n=t.ref();let o,r;const{focusReason:s}=ry();Xg(y=>{de(e.trapped)&&!c.paused&&a("release-requested",y)});const c={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=y=>{if(!e.loop&&!de(e.trapped)||c.paused)return;const{key:h,altKey:A,ctrlKey:g,metaKey:u,currentTarget:N,shiftKey:M}=y,{loop:O}=e,k=h==="Tab"&&!A&&!g&&!u,E=document.activeElement;if(k&&E){const v=N,[H,x]=ty(v);if(H&&x){if(!M&&E===x){const X=el({focusReason:s.value});a("focusout-prevented",X),X.defaultPrevented||(y.preventDefault(),O&&gt(H,!0))}else if(M&&[H,v].includes(E)){const X=el({focusReason:s.value});a("focusout-prevented",X),X.defaultPrevented||(y.preventDefault(),O&&gt(x,!0))}}else if(E===v){const X=el({focusReason:s.value});a("focusout-prevented",X),X.defaultPrevented||y.preventDefault()}}};t.provide(Jg,{focusTrapRef:n,onKeydown:i}),t.watch(()=>e.focusTrapEl,y=>{y&&(n.value=y)},{immediate:!0}),t.watch([n],([y],[h])=>{y&&(y.addEventListener("keydown",i),y.addEventListener("focusin",d),y.addEventListener("focusout",w)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",d),h.removeEventListener("focusout",w))});const f=y=>{a(ti,y)},m=y=>a(ni,y),d=y=>{const h=t.unref(n);if(!h)return;const A=y.target,g=y.relatedTarget,u=A&&h.contains(A);de(e.trapped)||g&&h.contains(g)||(o=g),u&&a("focusin",y),!c.paused&&de(e.trapped)&&(u?r=A:gt(r,!0))},w=y=>{const h=t.unref(n);if(!(c.paused||!h))if(!e.escape&&de(e.trapped)){const A=y.relatedTarget;!Ye(A)&&!h.contains(A)&&setTimeout(()=>{if(!c.paused&&de(e.trapped)){const g=el({focusReason:s.value});a("focusout-prevented",g),g.defaultPrevented||gt(r,!0)}},0)}else{const A=y.target;A&&h.contains(A)||a("focusout",y)}};async function S(){await t.nextTick();const y=t.unref(n);if(y){ri.push(c);const h=y.contains(document.activeElement)?o:document.activeElement;if(o=h,!y.contains(h)){const g=new Event(Ca,ei);y.addEventListener(Ca,f),y.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let u=e.focusStartEl;Za(u)||(gt(u),document.activeElement!==u&&(u="first")),u==="first"&&ay(li(y),!0),(document.activeElement===h||u==="container")&&gt(y)})}}}function T(){const y=t.unref(n);if(y){y.removeEventListener(Ca,f);const h=new CustomEvent(Ta,{...ei,detail:{focusReason:s.value}});y.addEventListener(Ta,m),y.dispatchEvent(h),!h.defaultPrevented&&(s.value=="keyboard"||!oy())&&gt(o??document.body,!0),y.removeEventListener(Ta,f),ri.remove(c)}}return t.onMounted(()=>{de(e.trapped)&&S(),t.watch(()=>e.trapped,y=>{de(y)?S():T()})}),t.onBeforeUnmount(()=>{de(e.trapped)&&T()}),()=>typeof l.default=="function"?l.default({"handle-keydown":i}):null}}),{componentName:uy,create:cy}=ue("floating-window"),fy=Symbol.for("InnerPageScopeKey"),dy=Symbol.for("PageWrapperKey"),hy={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},my=cy({inheritAttrs:!1,components:{FoxIcon:F.ElIcon,FocusTrap:sy},props:{...hy},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const a=uy,n=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,p=>{n.value=p});const r=t.computed(()=>n.value===!1?!1:!E.value),s=t.ref(e.left),c=t.ref(e.top),i=t.ref(e.right),f=t.ref(e.bottom),m=t.computed(()=>{const p=["fox-floating-window"];return e.customClass&&p.push(e.customClass),p}),d=t.computed(()=>{const p={};return St(s.value)?p.left="auto":p.left=He(s.value),St(c.value)?p.top="auto":p.top=He(c.value),St(i.value)?p.right="auto":p.right=He(i.value),St(f.value)?p.bottom="auto":p.bottom=He(f.value),St(e.zIndex)||(p["z-index"]=He(e.zIndex)),St(O.value)||(p.height=O.value),St(k.value)||(p.width=k.value),p}),w=t.computed(()=>e.closeIcon??Ie.Close),S=t.computed(()=>e.collapseIcon??Ie.ArrowUp),T=t.computed(()=>e.collapseText??""),y=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=t.computed(()=>e.expandText??e.title??"展开"),A=t.computed(()=>({[`${a}__collapse-text`]:!0})),g=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!E.value,"is-collapse":E.value})),u=t.ref(),N=t.ref(null),M=t.ref(null),O=t.computed(()=>He(e.height)||""),k=t.computed(()=>He(e.width)||""),E=t.ref(de(e.collapse)),v=(p,z=!0)=>{E.value!==p&&(E.value=p,p?K():G(),l("update:collapse",p),p&&typeof _.onHide=="function"?_.onHide():!p&&typeof _.onShow=="function"&&_.onShow())};t.watch(()=>e.collapse,p=>{v(p)});const H=()=>{x()},x=p=>{p=p??!E.value,v(p)};t.provide(fy,!0);const _={setCollapse:v,setFixedNavVisible:p=>{j.value=p}};t.provide(dy,_);const X=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},C=t.ref(null),D=t.computed(()=>!e.fixedNavTeleport),B=t.computed(()=>{const p=["fox-floating-window__fixednav"];return e.expandClass&&p.push(e.expandClass),e.collapsePosition==="left"?p.push("is-left"):e.collapsePosition==="right"&&p.push("is-right"),p}),P=t.ref(""),J=t.computed(()=>{const p={};return P.value?p.top=P.value:e.collapseTop&&(p.top=e.collapseTop),p}),Y=t.ref(E.value),j=t.computed({set:p=>{Y.value=p},get:()=>n.value===!1?!1:Y.value});let ee=null;const U=()=>{typeof ee=="function"&&(ee(),ee=null)},K=()=>{C.value&&C.value.classList.add("slide-in"),j.value=!0,ee=()=>{C.value&&C.value.classList.remove("slide-in")}},G=()=>{C.value&&C.value.classList.add("slide-out"),ee=()=>{C.value&&C.value.classList.remove("slide-out"),j.value=!1}},Z=()=>{s.value=null,c.value=null,i.value=null,f.value=null},R={x:0,y:0},Q=Zr(p=>{if(!u.value)return;const z=u.value;if(Z(),e.origin==="left-top")s.value=z.offsetLeft,c.value=z.offsetTop,R.x=s.value,R.y=c.value;else if(e.origin==="left-bottom"){const q=document.documentElement.clientHeight||document.body.clientHeight;s.value=z.offsetLeft,f.value=q-(z.offsetTop+z.offsetHeight),R.x=s.value,R.y=f.value}else if(e.origin==="right-bottom"){const q=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;i.value=q-(z.offsetLeft+z.offsetWidth),f.value=ne-(z.offsetTop+z.offsetHeight),R.x=i.value,R.y=f.value}else{const q=document.documentElement.clientWidth||document.body.clientWidth;i.value=q-(z.offsetLeft+z.offsetWidth),c.value=z.offsetTop,R.x=i.value,R.y=c.value}},p=>{if(!u.value)return;const z=u.value;Z(),e.origin==="left-top"?(s.value=R.x+p.x,c.value=R.y+p.y,z.style.left=He(s.value),z.style.top=He(c.value)):e.origin==="left-bottom"?(s.value=R.x+p.x,f.value=R.y-p.y,z.style.left=He(s.value),z.style.bottom=He(f.value)):e.origin==="right-bottom"?(i.value=R.x-p.x,f.value=R.y-p.y,z.style.right=He(i.value),z.style.bottom=He(f.value)):(i.value=R.x-p.x,c.value=R.y+p.y,z.style.right=He(i.value),z.style.top=He(c.value))}),I={x:0,y:0},W=Zr(p=>{C.value&&(I.x=C.value.offsetLeft,I.y=C.value.offsetTop)},p=>{if(!C.value)return;const z=I.y+p.y;P.value=`${z}px`}),V=()=>{if(u.value){const p=u.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=p}};return t.onMounted(()=>{if(e.draggable&&u.value){const p=[];N.value&&p.push(N.value),e.footerDraggable&&(V(),M.value&&p.push(M.value)),Q.open(p)}e.collapse===!0&&v(e.collapse,!1),C.value&&W.open(C.value)}),t.onBeforeUnmount(()=>{e.draggable&&N.value&&Q.close(),C.value&&W.close()}),{classes:m,styles:d,isShow:r,closeIcon:w,onClose:X,dialogRef:u,headerRef:N,onClickToggle:H,collapseIcon:S,collapseText:T,collapseTextClasses:A,collapseIconClasses:g,expandIcon:y,expandText:h,isShowFixedNav:j,fixedNavRef:C,fixedNavClasses:B,fixedNavStyles:J,onAnimationEnd:U,teleportDisabled:o,fixedNavTeleportDisabled:D}}}),gy={ref:"headerRef",class:"fox-floating-window__header"},yy={class:"fox-floating-window__title"},py={class:"fox-floating-window__tools"},by={class:"fox-floating-window__body"},vy={class:"fox-floating-window__fixednav__text"};function wy(e,l,a,n,o,r){const s=t.resolveComponent("FoxIcon"),c=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(c,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",gy,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",yy,t.toDisplayString(e.title),1),t.createElementVNode("div",py,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:l[0]||(l[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[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",by,[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:l[2]||(l[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:l[1]||(l[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[t.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",vy,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Da=Le(my,[["render",wy]]),si=new Date().getFullYear(),Sy={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"},ui=(e,l,a)=>{let n;if(ct(l)?n=l:typeof l=="string"&&lt(l)>0?n=se.parser(l,a):n=new Date,n.toString()==="Invalid Date")return null;let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},xy=(e,l,a)=>{ct(l)||(l=e.minDate);let n=Math.max(l.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),se.format(new Date(n),a)},Cy={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},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(si-10,0,1),validator:ct},maxDate:{type:Date,default:()=>new Date(si+10,11,31),validator:ct},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Ty,scope:ky}=ue("date-picker"),$y=Ty({components:{Picker:Ut},props:{...Cy},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:l}){const{t:a}=xe.useFoxI18n(ky),n={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},o=t.ref(!1);t.watch(()=>e.visible,u=>{o.value=u});function r(u,N){return new Date(u,N,0).getDate()}const s=(u,N)=>{const M=e[`${u}Date`],O=M.getFullYear();let k=1,E=1,v=0,H=0;u==="max"&&(k=12,E=r(N.getFullYear(),N.getMonth()+1),v=23,H=59);const x=H;return N.getFullYear()===O&&(k=M.getMonth()+1,N.getMonth()+1===k&&(E=M.getDate(),N.getDate()===E&&(v=M.getHours(),N.getHours()===v&&(H=M.getMinutes())))),{[`${u}Year`]:O,[`${u}Month`]:k,[`${u}Date`]:E,[`${u}Hour`]:v,[`${u}Minute`]:H,[`${u}Seconds`]:x}},c=t.computed(()=>{if(!w.value)return[];const{maxYear:u,maxDate:N,maxMonth:M,maxHour:O,maxMinute:k,maxSeconds:E}=s("max",w.value),{minYear:v,minDate:H,minMonth:x,minHour:_,minMinute:X,minSeconds:C}=s("min",w.value);let D=[{type:"year",range:[v,u]},{type:"month",range:[x,M]},{type:"day",range:[H,N]},{type:"hour",range:[_,O]},{type:"minute",range:[X,k]},{type:"seconds",range:[C,E]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),i=(u,N,M,O,k)=>{const E=[];for(;u<=N;){let v=!0;if(typeof e.itemFilter=="function"){const H={text:`${u}`,value:u,type:M,currentYearMonth:O};v=e.itemFilter(H)}if(v)if(typeof e.itemFormatter=="function"){const H={text:`${u}`,value:u,type:M,currentYearMonth:O};e.itemFormatter(H),E.push({text:H.text,value:H.value})}else if(e.isShowChinese){let H=`${u}${n[M]}`;if(M==="day"){if(O[0]===k[0]&&O[1]===k[1]&&u===k[2])H=n.today;else{const _=new Date(O[0],O[1],u).getDay();H=`${H} ${n.fullWeekdays[_]}`}E.push({text:H,value:u})}else E.push({text:u+n[M],value:u})}else E.push({text:`${u}`,value:u});M==="minute"?u+=e.minuteStep:u++}return E},f=t.computed(()=>{const u=new Date,N=[u.getFullYear(),u.getMonth(),u.getDate()],M=[];w.value&&(M[0]=w.value.getFullYear(),M[1]=w.value.getMonth());let O=[];return c.value.forEach(k=>{let E=i(k.range[0],k.range[1],k.type,M,N);E&&O.push(E)}),O}),m=(u,N)=>u==="year"?N.getFullYear():u==="month"?N.getMonth()+1:u==="day"?N.getDate():u==="hour"?N.getHours():u==="minute"?N.getMinutes():u==="seconds"?N.getSeconds():0,d=t.ref(),w=t.ref(null);t.watch(()=>e.modelValue,u=>{let N;if(typeof u=="string"?u.length==0||u==="Invalid Date"?N=new Date:e.valueFormat?N=ui(e,e.modelValue,e.valueFormat):N=ui(e,u,Sy[e.type]):ct(u)?N=u:N=new Date,!!N&&(!w.value||N.getTime()!==w.value.getTime())){w.value=N;let M=[];c.value.forEach(O=>{let k=m(O.type,N);M.push(k)}),d.value=M}},{immediate:!0});const S=u=>{if(!u||u.length===0){w.value=new Date;let N=[];c.value.forEach(M=>{let O=m(M.type,w.value);N.push(O)}),d.value=N;return}if(e.type==="date"){const N=u[0],M=u[1]-1,O=Math.min(u[2],r(N,M+1));O!==u[2]&&(u[2]=O),w.value=new Date(N,M,O)}else if(e.type==="datetime"){const N=u[0],M=u[1]-1,O=Math.min(u[2],r(N,M+1)),k=u[3],E=u[4];O!==u[2]&&(u[2]=O),w.value=new Date(N,M,O,k,E)}else if(e.type==="time"){const N=u[0],M=u[1],O=u[2],k=w.value??new Date,E=new Date(k.getFullYear(),k.getMonth(),k.getDate(),N,M,O);w.value=E}else if(e.type==="year-month"){const N=u[0],M=u[1]-1;w.value=new Date(N,M)}else if(e.type==="month-day"){const M=(w.value??new Date).getFullYear(),O=u[0]-1,k=Math.min(u[1],r(M,O+1));k!==u[1]&&(u[1]=k);const E=new Date(M,O,k);w.value=E}else if(e.type==="datehour"){const N=u[0],M=u[1]-1,O=Math.min(u[2],r(N,M+1)),k=u[3];O!==u[2]&&(u[2]=O),w.value=new Date(N,M,O,k)}else if(e.type==="hour-minute"){const N=u[0],M=u[1],O=w.value??new Date,k=new Date(O.getFullYear(),O.getMonth(),O.getDate(),N,M);w.value=k}d.value=u};return{columns:f,dateIndexs:d,show:o,onChange:u=>{S(u)},onClose:()=>{l("update:close",!1)},onConfirm:u=>{S(u);const N=w.value??new Date;if(e.valueFormat){let M=xy(e,N,e.valueFormat);l("update:modelValue",M)}else l("update:modelValue",N);l("confirm",u)},onClear:()=>{l("clear")},onUpdateVisible:u=>{o.value=u,l("update:visible",u)}}}});function Dy(e,l,a,n,o,r){const s=t.resolveComponent("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,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"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","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Na=Le($y,[["render",Dy]]),tl=(e,l,a)=>e.map(n=>{const{value:o="value",text:r="text",children:s="children"}=a??{},{[o]:c,[r]:i,[s]:f,...m}=n,d={loading:!1,...m,level:l?(l&&l.level||0)+1:0,value:c,text:i,children:f,_parent:l};return d.children&&d.children.length&&(d.children=tl(d.children,d,a)),d}),ci=(e,l)=>{let a=0,n;for(;(n=e[a++])&&l(n)!==!0;)n.children&&n.children.length&&ci(n.children,l)},Ny={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ey=(e,l)=>{const a={...Ny,...l||{}},{topId:n,idKey:o,pidKey:r,sortKey:s}=a;let c=[],i={};return e.forEach(f=>{f={...f};const{[o]:m,[r]:d}=f,w=i[d]=i[d]||[];!c.length&&d===n&&(c=w),w.push(f),f.children=i[m]||(i[m]=[])}),s&&Object.keys(i).forEach(f=>{i[f].length>1&&i[f].sort((m,d)=>m[s]-d[s])}),i=null,c};class fi{nodes;config;constructor(l,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=tl(l,null,this.config)}updateChildren(l,a){a?a.children=tl(l,a,this.config):this.nodes=tl(l,null,this.config)}getNodeByValue(l){let a;return ci(this.nodes,n=>{if(n.value===l)return a=n,!0}),a}getPathNodesByValue(l){if(!l.length)return[];const a=[];let n=this.nodes;for(;n&&n.length;){const o=n.find(r=>r.value===l[r.level]);if(!o)break;a.push(o),n=o.children}return a}isLeaf(l,a){const{leaf:n,children:o}=l,r=Array.isArray(o)&&!!o.length;return n||!r&&!a}hasChildren(l,a){if(this.isLeaf(l,a))return!1;const{children:o}=l;return Array.isArray(o)&&!!o.length}}const{create:Iy,scope:Vy}=ue("cascader-pane"),Oy=Iy({components:{Loading:zn,Checklist:Jo,TabsBar:Xt,TabsContainer:Zt,TabsPane:Xn},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:l}){const{t:a}=xe.useFoxI18n(Vy),n=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),c=t.ref(new fi([],{})),i=t.ref([]),f=t.computed(()=>n.value.lazy&&!!n.value.lazyLoad),m=t.computed(()=>r.value==!0||i.value.length==0?[{text:"Loading",value:0}]:i.value.map((g,u)=>({text:g.selectedNode?g.selectedNode.text:a("select"),value:u}))),d=new Map;let w;const S=async()=>{d.clear(),i.value=[],o.value=0,r.value=!1,w=null;let{options:g}=e;n.value.convertConfig&&(g=Ey(g,n.value.convertConfig)),c.value=new fi(g,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),f.value&&!c.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:c.value.nodes,selectedNode:null}],T()},T=async()=>{const g=s.value;if(g===void 0||!c.value.nodes.length)return;if(g.length===0){o.value=0,i.value=[{nodes:c.value.nodes,selectedNode:null}];return}let u=g;if(f.value&&Array.isArray(g)&&g.length){u=[];let N=c.value.nodes.find(M=>M.value===g[0]);if(N){u=[N.value],r.value=!0;const M=await g.slice(1).reduce(async(O,k)=>{const E=await O;await y(E);const v=E?.children?.find(H=>H.value===k);return v&&u.push(k),Promise.resolve(v)},Promise.resolve(N));await y(M),r.value=!1}}u.length&&g===e.modelValue&&c.value.getPathNodesByValue(u).map((M,O)=>{o.value=O,A.handleNode(M,!0)})},y=async g=>{if(!g)return;if(!n.value.lazyLoad){g.leaf=!0;return}if(c.value.isLeaf(g,f.value)||c.value.hasChildren(g,f.value))return;g.loading=!0;const u=g.root?null:g;let N=d.get(g);N||(N=new Promise(O=>{n.value.lazyLoad?.(g,O)}),d.set(g,N));const M=await N;Array.isArray(M)&&M.length>0?c.value.updateChildren(M,u):g.leaf=!0,g.loading=!1,d.delete(g)},h=g=>{const u=g.map(N=>N.value);s.value=u,l("change",u,g),l("update:modelValue",u,g)},A={async handleNode(g,u){const{disabled:N,loading:M}=g;if(!(!u&&N||!i.value[o.value])){if(c.value.isLeaf(g,f.value)){if(g.leaf=!0,i.value[o.value].selectedNode=g,i.value=i.value.slice(0,g.level+1),!u){const O=i.value.map(k=>k.selectedNode);h(O),l("pathChange",O)}return}if(c.value.hasChildren(g,f.value)){const O=g.level+1;if(i.value[o.value].selectedNode=g,i.value=i.value.slice(0,O),i.value.push({nodes:g.children||[],selectedNode:null}),o.value=O,!u){const k=i.value.map(E=>E.selectedNode);l("pathChange",k)}return}w=g,!M&&(await y(g),w===g&&(i.value[o.value].selectedNode=g,A.handleNode(g,u)))}},handleTabChange(g,u){w=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:a("select")},isSelected(g,u){return g.selectedNode&&g.selectedNode.value===u.value}};return t.watch([n,()=>e.options],()=>{S()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==s.value&&(s.value=g,T())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(s.value)&&s.value.length>0&&T()}),{panes:i,panesTitles:m,initLoading:r,tabsCursor:o,...A}}}),Ay={class:"fox-cascader"},Fy={role:"menu",class:"fox-cascader__pane"},My=["aria-checked","aria-disabled","onClick"],By={class:"fox-cascader__item__title"};function Ry(e,l,a,n,o,r){const s=t.resolveComponent("TabsBar"),c=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Ay,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[0]||(l[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(m,{modelValue:e.tabsCursor,"onUpdate:modelValue":l[1]||(l[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,w)=>(t.openBlock(),t.createBlock(f,{"pane-key":w,key:w},{default:t.withCtx(()=>[t.createElementVNode("view",Fy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:T=>e.handleNode(S,!1)},[t.createElementVNode("view",By,t.toDisplayString(S.text),1),S.loading?(t.openBlock(),t.createBlock(c,{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,My))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>[...l[2]||(l[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}const Ly=Le(Oy,[["render",Ry]]),{create:Py}=ue("cascader-picker"),_y=Py({components:{FoxCascaderPane:Ly,FoxPopup:bt},props:{...Hl,modelValue:Array,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:l}){const a=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){l("update:visible",s)}}),o=(s,c)=>{a.value=s,n.value=!1,l("change",s,c),l("update:modelValue",s)},r=s=>{l("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:n}}}),qy=["innerHTML"];function zy(e,l,a,n,o,r){const s=t.resolveComponent("FoxCascaderPane"),c=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(c,{key:0,visible:e.innerVisible,"onUpdate:visible":l[0]||(l[0]=i=>e.innerVisible=i),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,qy)):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"])]),_:3},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 Ea=Le(_y,[["render",zy]]),jy=Symbol.for("PageWrapperKey");function Hy(e,l){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(a,n){Cl(!0);const o={};t.provide(jy,o);const r=f=>{typeof o.beforeClose=="function"&&o.beforeClose()},s=t.ref(!0),c=f=>{s.value=f},i=t.computed(()=>{const f={};return a.height&&(f["--fox-dialog-item-body-height"]=Se(a.height)),f});return()=>{const m={...n.attrs,style:i.value,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":c,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},d=["fox-dialog-item "];a.hideHeader&&d.push("hide-header"),a.class&&d.push(a.class),m.class=d.join(" ");const w={};return typeof n.slots.default=="function"&&(w.default=n.slots.default),t.h(F.ElDialog,m,w)}}}}const{create:Ky}=ue("dialog-item"),Ia=Ky(Hy()),{create:Wy}=ue("toast"),Yy=Wy({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:l}){let a=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{n.mounted=!1},s=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},c=()=>{e.closeOnClickOverlay&&(r(),l("close"))};e.duration&&s(),t.watch(()=>e.duration,S=>{S&&s()});const i=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const S=ve(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:c,renderIcon:f,hasIcon:i,toastBodyClass:m,toastIconWrapperClass:d,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Uy={key:1,class:"fox-toast-title"},Gy=["innerHTML"];function Xy(e,l,a,n,o,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:l[0]||(l[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",Uy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Gy)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Va=Le(Yy,[["render",Xy]]),Zy={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Qy=(e,l,a)=>({props:{...Zy},emits:["change","refresh","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["pullingText","loosingText","loadingText"]),i=Yt(),f=t.ref(),m=Er(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":c.pullingText.value;case"loosing":return r.loosing?"":c.loosingText.value;case"loading":return r.loading?"":c.loadingText.value;default:return""}}),T=t.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),y=t.computed(()=>{const k={};return n.headHeight!=50&&(k.height=Se(n.headHeight)),k}),h=k=>{const E=+(n.pullDistance||n.headHeight);let v=k;return k>E&&(k<E*2?v=(k+E)/2:v=E+k/4),Math.round(v)},A=(k,E)=>{const v=+(n.pullDistance||n.headHeight);d.distance=k,E?d.status="loading":k===0?d.status="normal":k<v?d.status="pulling":d.status="loosing",o("change",{status:d.status,distance:k})},g=()=>d.status!=="loading"&&d.status!=="complete",u=()=>m.value==window?Ir()==0:m.value&&m.value.scrollTop==0,N=k=>{g()&&(u()?(i.start(k),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=k=>{g()&&d.moving&&(i.move(k),i.isVertical()&&i.state.deltaY>0&&d.isPullRefresh&&(k.cancelable&&k.preventDefault(),A(h(i.state.deltaY))))},O=()=>{d.moving=!1,d.isPullRefresh&&g()&&i.state.deltaY&&(d.status==="loosing"?(A(+n.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):A(0)),setTimeout(()=>{i.reset()},0)};return t.watch(()=>n.modelValue,k=>{k?A(+n.headHeight,!0):A(0)}),()=>{const k=[];let E=null;if(d.status==="loading"){if(E=r?.loading?.()??null,!E){const B={class:["fox-pull-refresh-container-topbox-icon"]};E=t.h(a,B)}}else d.status==="pulling"?E=r?.pulling?.()??null:d.status==="loosing"&&(E=r?.loosing?.()??null);E&&k.push(E);const v={class:["fox-pull-refresh-container-topbox-text"]},H=t.h("dive",v,[S.value]);k.push(H);const x={class:["fox-pull-refresh-container-topbox"],style:y.value},_=t.h("div",x,k),X={class:"fox-pull-refresh-container",style:T.value},C=t.h("div",X,[_,r?.default?.()]),D={ref:f,class:w.value};return Wt()?Object.assign(D,{onTouchstart:N,onTouchmove:M,onTouchend:O}):Object.assign(D,{onMousedown:N,onMousemove:M,onMouseup:O}),t.h("div",D,[C])}}}),{componentName:Jy,create:ep,scope:tp}=ue("pull-refresh"),Oa=ep(Qy(Jy,tp,zn)),np={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function lp(e,l,a){return{props:{...np},emits:["click","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=xe.useFoxI18n(l),c=s(n,["collapseText","expandText"]),i=t.computed(()=>{const T={[`${e}`]:!0};return n.disabled?T[`${e}--disabled`]=!0:T[`${e}--${n.type}`]=!0,T}),f=pe(n,"modelValue"),m=t.computed(()=>f.value?c.expandText.value??"":c.collapseText.value??""),d=t.computed(()=>({[`${e}__text`]:!0})),w=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),S=()=>{o("update:modelValue",!f.value)};return()=>{const T=[];if(m.value){const g={class:d.value},u=t.h("span",g,[m.value]);T.push(u)}const y={class:w.value},h=(r.icon&&r.icon())??(n.icon&&t.h(n.icon))??t.h(a);if(h){const g=t.h("div",y,[h]);T.push(g)}return n.textPosition==="right"&&T.reverse(),t.h("div",{class:i.value,onClick:S},T)}}}}const{componentName:ap,create:op,scope:rp}=ue("more-button"),Aa=op(lp(ap,rp,Ie.ArrowUp));function ip(e){e.stopPropagation()}class sp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,a){this.startMove=l,this.updateMove=a,this.isTouch=Wt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const a=Yt(),n=(o,r,s,c)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),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=o=>{this.moving&&(a.move(o),ip(o),n(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{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},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(l=>{this.touchstart&&l.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function up(e,l){return new sp(e,l)}const cp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},fp=(e,l,a,n=!1)=>({props:{...cp},emits:["click"],setup(o,{slots:r,emit:s}){const c=t.reactive({top:o.top,right:o.right,bottom:o.bottom,left:o.left}),i=t.computed(()=>{const g=[`${e}`];return o.customClass&&g.push(o.customClass),g}),f=t.computed(()=>{const g={};return ge(c.top)||(g.top=c.top),ge(c.right)||(g.right=c.right),ge(c.bottom)||(g.bottom=c.bottom),ge(c.left)||(g.left=c.left),ge(o.width)||(g.width=o.width),ge(o.height)||(g.height=o.height),ge(o.color)||(g.color=o.color),ge(o.background)||(g.background=o.background),ge(o.borderRadius)||(g["border-radius"]=o.borderRadius),ge(o.zIndex)||(g["z-index"]=o.zIndex),g}),m=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},w=t.ref(null),S=()=>{c.top=null,c.right=null,c.bottom=null,c.left=null},T={x:0,y:0},A=up(g=>{if(!w.value)return;const u=w.value;S(),c.left=u.offsetLeft,c.top=u.offsetTop,u.style.left=`${c.left}px`,u.style.top=`${c.top}px`,u.style.right=null,u.style.bottom=null,T.x=c.left,T.y=c.top},g=>{if(!w.value)return;const u=w.value;S(),c.left=T.x+g.x,c.top=T.y+g.y,u.style.left=`${c.left}px`,u.style.top=`${c.top}px`});return t.onMounted(()=>{if(o.draggable&&w.value){const g=[w.value];A.open(g)}}),t.onBeforeUnmount(()=>{o.draggable&&w.value&&A.close()}),()=>{let g=[];const u=typeof r.default=="function"?r.default():[];if(u&&u.length>0)g=u;else{const M=t.h(a,{class:m.value});g.push(M)}const N={ref:M=>{w.value=M},class:i.value,style:f.value,onClick:d};return t.h("view",N,g)}}}),{componentName:dp,create:hp,scope:mp}=ue("floating-button"),Fa=hp(fp(dp,mp,Tc,!1));function gp(e,l){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:n}){const o=e,r=t.computed(()=>({[o]:!0})),s=t.computed(()=>a.icon?{[`${o}__icon`]:!0,[`${o}__icon-${a.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${a.type}`]:!0}),c=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),i=t.computed(()=>{const m={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),f=t.computed(()=>a.color?{color:a.color}:null);return()=>{let m=null;if(n.mark)m=n.mark()[0];else{const y={class:s.value,style:c.value};m=t.h(a.icon??"div",y)}const d={class:i.value,style:f.value},w=n.default?n.default():[],S=t.h("div",d,w),T={class:r.value};return a.textPosition==="right"?t.h("div",T,[m,S]):t.h("div",T,[S,m])}}}}const{componentName:yp,create:pp}=ue("indicator"),Ma=pp(gp(yp)),{componentName:bp,create:vp}=ue("tour"),wp=vp({components:{Close:Ie.Close,ElPopover:F.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:l}){const a=bp,n=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:T,maskWidth:y,maskHeight:h}=e,{width:A,height:g,left:u,top:N}=o.value,M=e.steps[n.active].offset??T,O=[u+A/2,N+g/2],k=Number(y||A),E=Number(h||g);return{width:`${k+ +M.left+M.right}px`,height:`${E+M.top+M.bottom}px`,top:`${O[1]-E/2-+M.top}px`,left:`${O[0]-k/2-+M.left}px`}}),c=T=>{T=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,t.nextTick(()=>{n.showPopup=!0,m()}),l("change",n.active)},i=T=>T.popoverWidth??e.width,f=T=>T.location??e.location,m=()=>{const T=document.querySelector(`${e.steps[n.active].target}`),y=ma(T);o.value={x:y.left,y:y.top,top:y.top,left:y.left,width:y.width,height:y.height}},d=()=>{n.showTour=!1,n.showPopup=!1,l("close",n.active),l("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&d()},S=(T,y=0)=>{T&&m(),e.steps,n.active=y,n.showTour=T,n.showPopup=T};return t.onMounted(()=>{S(e.modelValue,e.current)}),t.watch(()=>e.modelValue,T=>{S(T)}),{...t.toRefs(n),classes:r,maskStyle:s,changeStep:c,popoverWidth:i,popoverLocation:f,close:d,handleClickMask:w}}}),Sp={key:0,class:"fox-tour__content"},xp={key:0,class:"fox-tour__content-top"},Cp={class:"fox-tour__content-inner"},Tp={class:"fox-tour__content-bottom"},kp={class:"fox-tour__content-bottom-init"},$p={class:"fox-tour__content-bottom-operate"},Dp={key:1,class:"fox-tour__content fox-tour__content-tile"},Np={class:"fox-tour__content-inner"};function Ep(e,l,a,n,o,r){const s=t.resolveComponent("Close"),c=t.resolveComponent("fox-button"),i=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:l[0]||(l[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,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{height:"0"}},[m==e.active?(t.openBlock(),t.createBlock(i,{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",Sp,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",xp,[t.createElementVNode("div",{onClick:l[1]||(l[1]=(...d)=>e.close&&e.close(...d))},[t.createVNode(s,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Cp,t.toDisplayString(f.content),1),t.createElementVNode("div",Tp,[t.createElementVNode("div",kp,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",$p,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(c,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[2]||(l[2]=d=>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(c,{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(c,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[3]||(l[3]=d=>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",Dp,[t.createElementVNode("div",Np,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Ba=Le(wp,[["render",Ep]]);function Ip(e,l){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:n}){return go(a.name,()=>a.config),Ye(a.innerPageScope)||Cl(a.innerPageScope),Ye(a.abstractPageScope)||bo(a.abstractPageScope),()=>typeof n.default=="function"?n.default():null}}}const{create:Vp}=ue("domain-provider"),Ra=Vp(Ip()),Op={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 Ap(e,l){return{inheritAttrs:!1,props:Op,emits:["change"],setup(a,{slots:n,emit:o}){if(ft&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const c=(S,T)=>{if(d===null){s.set(S,{visible:null,callback:T});return}r.has(S)&&d.unobserve(S),r.set(S,{visible:null,callback:T}),d.observe(S)},i=S=>{if(d===null){s.delete(S);return}r.has(S)&&(r.delete(S),d.unobserve(S))};let f=a.initialVisibleObserverSize;ps({acquire:()=>{if(a.loadPolicy==="always")return!0;const S=f>0;return f--,S},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:i});let d=null;const w=(S,T,y)=>{d=new IntersectionObserver(h=>{if(o("change",h),a.loadPolicy!=="always")for(let A of h){let g=!1;A.intersectionRatio>0&&(g=!0);const u=r.get(A.target);if(u)try{if(a.loadPolicy==="lazy"&&!g&&u.visible!==null)return;u.visible=g,u.callback(g)}catch(N){console.error(N)}}},{root:S,rootMargin:T,threshold:y}),s.forEach((h,A)=>{r.set(A,h),d?.observe(A)}),s.clear()};t.watch([()=>a.root,()=>a.disabled],([S,T])=>{if(T||!S||d)return;let y=null;typeof S=="string"?y=document.querySelector(S):y=S,y&&w(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:Fp}=ue("rolling-provider"),La=Fp(Ap()),Mp=[$l,Nl,El,Il,Al,$e,Nn,En,Pl,Pe,_l,ql,zl,Wl,Yl,Ul,Gl,Xl,Ql,Jl,ea,ta,Hn,aa,oa,ra,ia,sa,ua,ca,fa,Gn,da,ya,Xt,Zt,Xn,va,xa,Da,Vn,Ut,Na,jn,Ea,Ia,qn,bt,Va,Un,Yn,Oa,Aa,Fa,Ht,$n,Ma,In,Ba,Ra,La],Bp=new Xi(Mp,[Ji],"4.0.0");Object.defineProperty(b,"FoxAffix",{enumerable:!0,get:()=>F.ElAffix}),Object.defineProperty(b,"FoxAlert",{enumerable:!0,get:()=>F.ElAlert}),Object.defineProperty(b,"FoxAnchor",{enumerable:!0,get:()=>F.ElAnchor}),Object.defineProperty(b,"FoxAnchorLink",{enumerable:!0,get:()=>F.ElAnchorLink}),Object.defineProperty(b,"FoxAside",{enumerable:!0,get:()=>F.ElAside}),Object.defineProperty(b,"FoxAutoResizer",{enumerable:!0,get:()=>F.ElAutoResizer}),Object.defineProperty(b,"FoxAutocomplete",{enumerable:!0,get:()=>F.ElAutocomplete}),Object.defineProperty(b,"FoxAvatar",{enumerable:!0,get:()=>F.ElAvatar}),Object.defineProperty(b,"FoxBacktop",{enumerable:!0,get:()=>F.ElBacktop}),Object.defineProperty(b,"FoxBadge",{enumerable:!0,get:()=>F.ElBadge}),Object.defineProperty(b,"FoxBreadcrumb",{enumerable:!0,get:()=>F.ElBreadcrumb}),Object.defineProperty(b,"FoxBreadcrumbItem",{enumerable:!0,get:()=>F.ElBreadcrumbItem}),Object.defineProperty(b,"FoxButton",{enumerable:!0,get:()=>F.ElButton}),Object.defineProperty(b,"FoxButtonGroup",{enumerable:!0,get:()=>F.ElButtonGroup}),Object.defineProperty(b,"FoxCalendar",{enumerable:!0,get:()=>F.ElCalendar}),Object.defineProperty(b,"FoxCard",{enumerable:!0,get:()=>F.ElCard}),Object.defineProperty(b,"FoxCarousel",{enumerable:!0,get:()=>F.ElCarousel}),Object.defineProperty(b,"FoxCarouselItem",{enumerable:!0,get:()=>F.ElCarouselItem}),Object.defineProperty(b,"FoxCascader",{enumerable:!0,get:()=>F.ElCascader}),Object.defineProperty(b,"FoxCascaderPanel",{enumerable:!0,get:()=>F.ElCascaderPanel}),Object.defineProperty(b,"FoxCheckTag",{enumerable:!0,get:()=>F.ElCheckTag}),Object.defineProperty(b,"FoxCheckbox",{enumerable:!0,get:()=>F.ElCheckbox}),Object.defineProperty(b,"FoxCheckboxButton",{enumerable:!0,get:()=>F.ElCheckboxButton}),Object.defineProperty(b,"FoxCheckboxGroup",{enumerable:!0,get:()=>F.ElCheckboxGroup}),Object.defineProperty(b,"FoxCol",{enumerable:!0,get:()=>F.ElCol}),Object.defineProperty(b,"FoxCollapse",{enumerable:!0,get:()=>F.ElCollapse}),Object.defineProperty(b,"FoxCollapseItem",{enumerable:!0,get:()=>F.ElCollapseItem}),Object.defineProperty(b,"FoxCollapseTransition",{enumerable:!0,get:()=>F.ElCollapseTransition}),Object.defineProperty(b,"FoxColorPicker",{enumerable:!0,get:()=>F.ElColorPicker}),Object.defineProperty(b,"FoxConfigProvider",{enumerable:!0,get:()=>F.ElConfigProvider}),Object.defineProperty(b,"FoxContainer",{enumerable:!0,get:()=>F.ElContainer}),Object.defineProperty(b,"FoxCountdown",{enumerable:!0,get:()=>F.ElCountdown}),Object.defineProperty(b,"FoxDatePicker",{enumerable:!0,get:()=>F.ElDatePicker}),Object.defineProperty(b,"FoxDescriptions",{enumerable:!0,get:()=>F.ElDescriptions}),Object.defineProperty(b,"FoxDescriptionsItem",{enumerable:!0,get:()=>F.ElDescriptionsItem}),Object.defineProperty(b,"FoxDialog",{enumerable:!0,get:()=>F.ElDialog}),Object.defineProperty(b,"FoxDivider",{enumerable:!0,get:()=>F.ElDivider}),Object.defineProperty(b,"FoxDrawer",{enumerable:!0,get:()=>F.ElDrawer}),Object.defineProperty(b,"FoxDropdown",{enumerable:!0,get:()=>F.ElDropdown}),Object.defineProperty(b,"FoxDropdownItem",{enumerable:!0,get:()=>F.ElDropdownItem}),Object.defineProperty(b,"FoxDropdownMenu",{enumerable:!0,get:()=>F.ElDropdownMenu}),Object.defineProperty(b,"FoxEmpty",{enumerable:!0,get:()=>F.ElEmpty}),Object.defineProperty(b,"FoxFooter",{enumerable:!0,get:()=>F.ElFooter}),Object.defineProperty(b,"FoxForm",{enumerable:!0,get:()=>F.ElForm}),Object.defineProperty(b,"FoxFormItem",{enumerable:!0,get:()=>F.ElFormItem}),Object.defineProperty(b,"FoxHeader",{enumerable:!0,get:()=>F.ElHeader}),Object.defineProperty(b,"FoxIcon",{enumerable:!0,get:()=>F.ElIcon}),Object.defineProperty(b,"FoxImage",{enumerable:!0,get:()=>F.ElImage}),Object.defineProperty(b,"FoxImageViewer",{enumerable:!0,get:()=>F.ElImageViewer}),Object.defineProperty(b,"FoxInput",{enumerable:!0,get:()=>F.ElInput}),Object.defineProperty(b,"FoxInputNumber",{enumerable:!0,get:()=>F.ElInputNumber}),Object.defineProperty(b,"FoxInputTag",{enumerable:!0,get:()=>F.ElInputTag}),Object.defineProperty(b,"FoxLink",{enumerable:!0,get:()=>F.ElLink}),Object.defineProperty(b,"FoxMain",{enumerable:!0,get:()=>F.ElMain}),Object.defineProperty(b,"FoxMention",{enumerable:!0,get:()=>F.ElMention}),Object.defineProperty(b,"FoxMenu",{enumerable:!0,get:()=>F.ElMenu}),Object.defineProperty(b,"FoxMenuItem",{enumerable:!0,get:()=>F.ElMenuItem}),Object.defineProperty(b,"FoxMenuItemGroup",{enumerable:!0,get:()=>F.ElMenuItemGroup}),Object.defineProperty(b,"FoxMessage",{enumerable:!0,get:()=>F.ElMessage}),Object.defineProperty(b,"FoxMessageBox",{enumerable:!0,get:()=>F.ElMessageBox}),Object.defineProperty(b,"FoxNotification",{enumerable:!0,get:()=>F.ElNotification}),Object.defineProperty(b,"FoxOption",{enumerable:!0,get:()=>F.ElOption}),Object.defineProperty(b,"FoxOptionGroup",{enumerable:!0,get:()=>F.ElOptionGroup}),Object.defineProperty(b,"FoxPageHeader",{enumerable:!0,get:()=>F.ElPageHeader}),Object.defineProperty(b,"FoxPagination",{enumerable:!0,get:()=>F.ElPagination}),Object.defineProperty(b,"FoxPopconfirm",{enumerable:!0,get:()=>F.ElPopconfirm}),Object.defineProperty(b,"FoxPopover",{enumerable:!0,get:()=>F.ElPopover}),Object.defineProperty(b,"FoxPopper",{enumerable:!0,get:()=>F.ElPopper}),Object.defineProperty(b,"FoxProgress",{enumerable:!0,get:()=>F.ElProgress}),Object.defineProperty(b,"FoxRadio",{enumerable:!0,get:()=>F.ElRadio}),Object.defineProperty(b,"FoxRadioButton",{enumerable:!0,get:()=>F.ElRadioButton}),Object.defineProperty(b,"FoxRadioGroup",{enumerable:!0,get:()=>F.ElRadioGroup}),Object.defineProperty(b,"FoxRate",{enumerable:!0,get:()=>F.ElRate}),Object.defineProperty(b,"FoxResult",{enumerable:!0,get:()=>F.ElResult}),Object.defineProperty(b,"FoxRow",{enumerable:!0,get:()=>F.ElRow}),Object.defineProperty(b,"FoxScrollbar",{enumerable:!0,get:()=>F.ElScrollbar}),Object.defineProperty(b,"FoxSegmented",{enumerable:!0,get:()=>F.ElSegmented}),Object.defineProperty(b,"FoxSelect",{enumerable:!0,get:()=>F.ElSelect}),Object.defineProperty(b,"FoxSelectV2",{enumerable:!0,get:()=>F.ElSelectV2}),Object.defineProperty(b,"FoxSkeleton",{enumerable:!0,get:()=>F.ElSkeleton}),Object.defineProperty(b,"FoxSkeletonItem",{enumerable:!0,get:()=>F.ElSkeletonItem}),Object.defineProperty(b,"FoxSlider",{enumerable:!0,get:()=>F.ElSlider}),Object.defineProperty(b,"FoxSpace",{enumerable:!0,get:()=>F.ElSpace}),Object.defineProperty(b,"FoxStatistic",{enumerable:!0,get:()=>F.ElStatistic}),Object.defineProperty(b,"FoxStep",{enumerable:!0,get:()=>F.ElStep}),Object.defineProperty(b,"FoxSteps",{enumerable:!0,get:()=>F.ElSteps}),Object.defineProperty(b,"FoxSubMenu",{enumerable:!0,get:()=>F.ElSubMenu}),Object.defineProperty(b,"FoxSwitch",{enumerable:!0,get:()=>F.ElSwitch}),Object.defineProperty(b,"FoxTabPane",{enumerable:!0,get:()=>F.ElTabPane}),Object.defineProperty(b,"FoxTable",{enumerable:!0,get:()=>F.ElTable}),Object.defineProperty(b,"FoxTableColumn",{enumerable:!0,get:()=>F.ElTableColumn}),Object.defineProperty(b,"FoxTableV2",{enumerable:!0,get:()=>F.ElTableV2}),Object.defineProperty(b,"FoxTabs",{enumerable:!0,get:()=>F.ElTabs}),Object.defineProperty(b,"FoxTag",{enumerable:!0,get:()=>F.ElTag}),Object.defineProperty(b,"FoxTimePicker",{enumerable:!0,get:()=>F.ElTimePicker}),Object.defineProperty(b,"FoxTimeSelect",{enumerable:!0,get:()=>F.ElTimeSelect}),Object.defineProperty(b,"FoxTimeline",{enumerable:!0,get:()=>F.ElTimeline}),Object.defineProperty(b,"FoxTimelineItem",{enumerable:!0,get:()=>F.ElTimelineItem}),Object.defineProperty(b,"FoxTooltip",{enumerable:!0,get:()=>F.ElTooltip}),Object.defineProperty(b,"FoxTransfer",{enumerable:!0,get:()=>F.ElTransfer}),Object.defineProperty(b,"FoxTree",{enumerable:!0,get:()=>F.ElTree}),Object.defineProperty(b,"FoxTreeSelect",{enumerable:!0,get:()=>F.ElTreeSelect}),Object.defineProperty(b,"FoxTreeV2",{enumerable:!0,get:()=>F.ElTreeV2}),Object.defineProperty(b,"FoxUpload",{enumerable:!0,get:()=>F.ElUpload}),Object.defineProperty(b,"FoxWatermark",{enumerable:!0,get:()=>F.ElWatermark}),b.AbstractPageScopeKey=Tl,b.ActionsheetItem=da,b.ActionsheetPane=Gn,b.AutocompleteItem=Jl,b.Broadcast=pl,b.BroadcastKey=Ne,b.ButtonsItem=Pl,b.CalendarItem=Wl,b.CascaderItem=Ql,b.CheckboxItem=ra,b.Content=Il,b.DataItemsKey=Ct,b.DateItem=zl,b.DateUtils=se,b.DialogItem=Ia,b.Domain=fn,b.DomainKey=Ke,b.DomainProvider=Ra,b.FloatingButton=Fa,b.FloatingWindow=Da,b.FooterBar=El,b.FoxActionsheetItem=da,b.FoxActionsheetPane=Gn,b.FoxAutocompleteItem=Jl,b.FoxButtonsItem=Pl,b.FoxCalendarItem=Wl,b.FoxCascaderItem=Ql,b.FoxCheckboxItem=ra,b.FoxContent=Il,b.FoxDateItem=zl,b.FoxDialogItem=Ia,b.FoxDomainProvider=Ra,b.FoxFloatingButton=Fa,b.FoxFloatingWindow=Da,b.FoxFooterBar=El,b.FoxGroup=Al,b.FoxGroupSetting=ca,b.FoxHeaderBar=Nl,b.FoxHintText=Pe,b.FoxIndicator=Ma,b.FoxInfiniteLoading=Yn,b.FoxInputItem=_l,b.FoxInputNumberItem=Xl,b.FoxItem=$e,b.FoxMapping=Ht,b.FoxMoneyItem=Gl,b.FoxMoreButton=Aa,b.FoxOverLay=qn,b.FoxPage=$l,b.FoxPickerItem=ya,b.FoxPopoverDialog=Vn,b.FoxPopup=bt,b.FoxPrice=$n,b.FoxPullRefresh=Oa,b.FoxRadioItem=oa,b.FoxRateItem=ia,b.FoxRollingProvider=La,b.FoxRowItem=En,b.FoxSearchBar=Un,b.FoxSelectItem=ql,b.FoxSlotItem=Nn,b.FoxStepsBar=xa,b.FoxSwitchItem=sa,b.FoxTableItem=aa,b.FoxTableMappingColumn=ea,b.FoxTableRadioColumn=ta,b.FoxTableSetting=Hn,b.FoxTabsBar=Xt,b.FoxTabsContainer=Zt,b.FoxTabsFrame=va,b.FoxTabsPane=Xn,b.FoxText=In,b.FoxTimeItem=Yl,b.FoxTimeSelectItem=Ul,b.FoxToast=Va,b.FoxTour=Ba,b.FoxTreeItem=fa,b.FoxTreeSelectItem=ua,b.Foxcalendarpicker=jn,b.Foxcascaderpicker=Ea,b.Foxdatepicker=Na,b.Foxpicker=Ut,b.Group=Al,b.GroupSetting=ca,b.HeaderBar=Nl,b.HintText=Pe,b.Indicator=Ma,b.InfiniteLoading=Yn,b.InnerPageScopeKey=xl,b.InputItem=_l,b.InputNumberItem=Xl,b.Item=$e,b.Mapping=Ht,b.MoneyItem=Gl,b.MoreButton=Aa,b.OverLay=qn,b.Page=$l,b.PickerItem=ya,b.PopoverDialog=Vn,b.Popup=bt,b.Price=$n,b.PriorityPolicy=Ge,b.PullRefresh=Oa,b.RadioItem=oa,b.RateItem=ia,b.RollingProvider=La,b.RowItem=En,b.SearchBar=Un,b.SelectItem=ql,b.SlotItem=Nn,b.StepsBar=xa,b.SwitchItem=sa,b.TableItem=aa,b.TableMappingColumn=ea,b.TableRadioColumn=ta,b.TableSetting=Hn,b.TabsBar=Xt,b.TabsContainer=Zt,b.TabsFrame=va,b.TabsPane=Xn,b.Text=In,b.TimeItem=Yl,b.TimeSelectItem=Ul,b.Toast=Va,b.Tour=Ba,b.TreeItem=fa,b.TreeSelectItem=ua,b.UniqueID=Vo,b.ValidateSchema=fo,b.ValidateSchemaKey=Qe,b.calendarpicker=jn,b.cancelRaf=mi,b.cascaderpicker=Ea,b.clearNonNumber=$i,b.compareTo=fl,b.createBroadcast=on,b.createValidateSchema=sn,b.datepicker=Na,b.debounce=Ue,b.debounceRef=Pi,b.decimalLength=oo,b.default=Bp,b.defineBroadcast=Ii,b.defineConfigDomain=go,b.defineDataItem=yo,b.defineDomain=vl,b.defineItem=Ee,b.definePageState=po,b.defineSimpleItem=wl,b.deleteGlobalValidator=Mi,b.disabledProperty=Be,b.divide=cl,b.excludeProps=Ve,b.extend=xt,b.floatData=Ei,b.getGlobalIcons=ko,b.getGlobalValidateCheckEvents=so,b.getGlobalValidateResetEvents=co,b.getPageContentAreaHeight=gn,b.getPageContentAreaWidth=yn,b.getPageFooterAreaHeight=mn,b.getPageHeaderAreaHeight=hn,b.getRootDomain=Tt,b.hasSymbol=Ja,b.includeProps=it,b.indexOf=Di,b.injectAbstractPageScope=_t,b.injectInnerPageScope=Pt,b.integerLength=ao,b.isArray=yi,b.isArrayLike=no,b.isBrowser=ft,b.isDate=ct,b.isESModule=Si,b.isEmptyString=ge,b.isEqual=Xe,b.isFunction=hl,b.isHidden=to,b.isMap=pi,b.isNil=Ye,b.isNumberString=yl,b.isObject=je,b.isPlainObject=wi,b.isPromise=nn,b.isRegExp=gl,b.isSet=bi,b.isString=Za,b.isSubPage=ji,b.isSymbol=vi,b.isTouch=Wt,b.isWindow=eo,b.lastIndexOf=Ni,b.makeArray=ki,b.merge=lo,b.multiply=Ua,b.negate=Ga,b.nextTick=Ci,b.numberFormat=tn,b.objectToString=Qa,b.once=_i,b.overrideGlobalIcons=as,b.overrideGlobalValidateHandler=Ai,b.picker=Ut,b.property=Fe,b.provideAbstractPageScope=bo,b.provideInnerPageScope=Cl,b.raf=dl,b.readonlyProperty=Me,b.setGlobalValidateCheckEvents=Bi,b.setGlobalValidateHandler=Oi,b.setGlobalValidateMessages=Li,b.setGlobalValidateResetEvents=Ri,b.setGlobalValidator=Fi,b.throttle=mo,b.toBoolean=de,b.toNumber=be,b.toPadding=at,b.toPx=ve,b.toPxDesc=zi,b.toPxString=Se,b.toTypeString=ln,b.toValue=pe,b.tryTimes=cn,b.typeOf=an,b.unNumberFormat=Xa,b.updatePageState=Sl,b.useBroadcast=Bt,b.useDomain=dt,b.useExpose=we,b.useInnerSize=vn,b.usePageState=dn,b.usePosition=Fl,b.useRawTouch=Yt,b.useRect=ma,b.useSize=Dl,b.useTouch=Mr,b.valueLength=lt,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));