@fox-js/foxui-pad 4.1.1-13 → 4.1.1-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),xt=require("@fox-js/validator"),R=require("element-plus"),Ie=require("@element-plus/icons-vue"),$e=require("@fox-js/i18n"),tn=window,bi=typeof window<"u";function wi(){return typeof tn<"u"?tn.requestAnimationFrame||tn.webkitRequestAnimationFrame||function(e){tn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function xi(e){bi?cancelAnimationFrame(e):clearTimeout(e)}const Ll=wi();function wn(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=He(e),l=He(l),[e,l]=_l(He(e),He(l)),a==1&&(n==1?e=il(e):l=il(l));let o=mr(e,l);return a?a==2?"-"+He(o):e.length<o.length?He(o.substring(1)):"-"+He(il(o)):He(o)}function il(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 mr(l,r)}function He(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 _l(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 mr(e,l){[e,l]=_l(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 Oe=(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))(Oe||{});function jt(e,l=0,a=Oe.HALF_EVEN){if(a===Oe.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=jt(e,0,a),(n?"-":"")+i+new Array(l+1).join("0")}}if(l==0)return r.length,Wa(o[1],r,n,a)?(n?"-":"")+sl(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&&Wa(c,s,n,a)&&(s=sl(s),s.length>l)?(n?"-":"")+sl(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Wa(e,l,a,n){if(!e||e===new Array(e.length+1).join("0")||n===Oe.DOWN||!a&&n===Oe.FLOOR||a&&n===Oe.CEILING)return!1;if(n===Oe.UP||a&&n===Oe.FLOOR||!a&&n===Oe.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 Oe.HALF_DOWN:return!1;case Oe.HALF_UP:return!0;case Oe.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function sl(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 Sl(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=Ft(e),l=Ft(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=Ft(e.replace(".","")),l=Ft(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,h="";for(let d=0;d<s;d++)i[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let x=l.length-1;x>=f&&x>=0;x--)i[x]>-1&&i[x]<e.length&&(y+=parseInt(e[i[x]--])*parseInt(l[x]));y+=c,c=Math.floor(y/10),h=y%10+h,f--}return h=Ft(Si(h,r)),a==1&&(h="-"+h),h}function Si(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 Ft(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 Cl(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=He(l.replace(".","")),o>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=He(e+new Array(o+1).join("0"));else if(o>f)e=e.replace(".",""),e=He(e+new Array(o-f+1).join("0"));else if(o<f){e=e.replace(".","");let h=e.length-f+o;e=He(e.substring(0,h)+"."+e.substring(h))}else o==f&&(e=He(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=wn(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?"-":"")+He(jt(c,a-2))}function Tl(e,l){return e=e.toString(),l=l.toString(),l=$l(l),wn(e,l)}function $l(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ya(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),Ua(e),Ua(l);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let n=Tl(e,Sl(l,jt(Cl(e,l),0,Oe.FLOOR)));return a+n}function Ua(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ga(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]=_l(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=Oe;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=He(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+He(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=Oe.HALF_EVEN){if(l=me.validate(l),isNaN(a))throw Error("Precision is not a number: "+a);return jt(l,a,n)}round(l=0,a=Oe.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new me(jt(this.value,l,a))}static floor(l){return l=me.validate(l),l.indexOf(".")===-1?l:me.round(l,0,Oe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,Oe.FLOOR)}static ceil(l){return l=me.validate(l),l.indexOf(".")===-1?l:me.round(l,0,Oe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,Oe.CEILING)}static add(l,a){return l=me.validate(l),a=me.validate(a),wn(l,a)}add(l){return new me(wn(this.value,l.getValue()))}static subtract(l,a){return l=me.validate(l),a=me.validate(a),Tl(l,a)}subtract(l){return new me(Tl(this.value,l.getValue()))}static multiply(l,a){return l=me.validate(l),a=me.validate(a),Sl(l,a)}multiply(l){return new me(Sl(this.value,l.getValue()))}static divide(l,a,n){return l=me.validate(l),a=me.validate(a),Cl(l,a,n)}divide(l,a){return new me(Cl(this.value,l.getValue(),a))}static modulus(l,a){return l=me.validate(l),a=me.validate(a),Ya(l,a)}modulus(l){return new me(Ya(this.value,l.getValue()))}static compareTo(l,a){return l=me.validate(l),a=me.validate(a),Ga(l,a)}compareTo(l){return Ga(this.value,l.getValue())}static negate(l){return l=me.validate(l),$l(l)}negate(){return new me($l(this.value))}}function gr(e,l){return me.multiply(`${e}`,`${l}`)}function ql(e,l,a=8){return me.divide(`${e}`,`${l}`,a)}function kl(e,l){return e=`${e}`,l=`${l}`,me.compareTo(e,l)}function pr(e){return me.negate(e)}function Nn(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 h;if(n>0){let d="",y=c.split("").reverse();for(let x=0;x<y.length;x++)d+=y[x]+((x+1)%n==0&&x+1!=y.length?o:"");i.length==0?h=`${s}${d.split("").reverse().join("")}`:h=`${s}${d.split("").reverse().join("")}.${i}`}else i.length==0?h=`${s}${c}`:h=`${s}${c}.${i}`;return h}function vr(e){let l=`${e}`,a=l.charAt(0);a=="-"?l=l.substring(1):a="";let n=l.replace(/[^\d\.-]/g,"");return`${a}${n}`}const zl=Ll,Ci=Array.isArray,Ti=e=>En(e)==="[object Map]",$i=e=>En(e)==="[object Set]",ht=e=>e instanceof Date,Dl=e=>typeof e=="function",yr=e=>typeof e=="string",ki=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",xn=e=>Ke(e)&&Dl(e.then)&&Dl(e.catch),br=Object.prototype.toString,En=e=>br.call(e),Di=e=>En(e)==="[object Object]",wr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ni(e){return e.__esModule||wr&&e[Symbol.toStringTag]==="Module"}const Ei=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Vt(...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]=Vt(o,f,i)}else i!==void 0&&(l[s]=i)}}return l}const ul=Ei?Promise.resolve():null;function Pi(e,...l){ul!==null?l&&l.length>0?ul.then(()=>{e(l)}):ul.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function fe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function we(e){return typeof e=="number"?e:Number(e)}const Ii={"[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 Sn(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Ii[a]||"object"}function xr(e){return e&&typeof e=="object"&&"setInterval"in e}function Sr(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 Cr(e){let l=!!e&&"length"in e&&e.length,a=Sn(e);return a==="function"||xr(e)?!1:a==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function Tr(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 Vi(e,l=[]){let a=l;return e!=null&&(Cr(Object(e))?Tr(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=Sn(e),n=Sn(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 gt=typeof window<"u";function Ze(e){return e==null}function Nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null||typeof e!="string"?!1:e.length===0;function jl(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 $r(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 kr(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 Xa(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 Oi(e,l=!0,a=!0){l?e=Xa(e,".",/\./g):e=e.replace(/\./g,""),a?e=Xa(e,"-",/-/g):e=e.replace(/-/,"");const n=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ai(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(a=>{if(Xe(e,a))return!0}):l.indexOf(e)}function Ri(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 st(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rt(e,...l){const a={};return l.forEach(n=>{for(const o in n)a[o]=e[o]}),a}function Re(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 Fi=(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},Ae=Symbol.for("BroadcastKey");class Hl{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==="+"||Nl(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="*"):Nl(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 Pn(e,l,a,n){const o=new Hl(l,e,a);if(n&&typeof n=="object")for(const r in n)o.on(r,n[r]);return o}function Mi(e,l,a){const n=a;if(n[Ae])return n[Ae];const o=t.inject(Ae,null),r=new Hl(o,a,e);if(l&&typeof l=="object")for(const s in l)r.on(s,l[s]);return n[Ae]=r,t.provide(Ae,r),t.onUnmounted(()=>{r.destroy(),n[Ae]=void 0}),r}function _t(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ae]??t.inject(Ae,null):t.inject(Ae,null)}class Bi{error(l,a){const n=a,o=a||t.hasInjectionContext()?_t(a):null;o?o.emit({name:"*"},"setErrorTip",l):typeof n.setErrorTip=="function"&&n.setErrorTip(l)}reset(l){const a=l,n=l||t.hasInjectionContext()?_t(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(l){const a=l,n=l||t.hasInjectionContext()?_t(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()?_t(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 qt=new Bi;function Li(e){qt=e}function _i(e){qt?Object.assign(qt,e):qt=e}function qi(e,l){xt.Schema.setValidator(e,l)}function zi(e){xt.Schema.deleteValidator(e)}let Dr=["blur","clear"];function ji(e){Dr=e}function Nr(){return Dr}let Er=["focus","change","setValue"];function Hi(e){Er=e}function Pr(){return Er}function Ki(e){xt.Schema.messages(e)}function Mt(...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 nn(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 nt=Symbol("ValidateSchemaKey");class Ir{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=nn(Mt(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=nn(n);const o=Mt(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=qt;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?xt.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?xt.Schema.deleteValidator(l):Reflect.deleteProperty(this.validators,l)}hasValidator(l,a=!1){if(a)return xt.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=Mt(this.attrRules,this.rules);l===null?this.rules=[]:Array.isArray(l)?this.rules=nn(l):this.rules=nn([l]);const n=Mt(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=Mt(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 xt.Schema(o),i=this.proxy??s;return c.validate(s,{context:i}).then(h=>{if(h.pass)this.success();else{let d="error";Array.isArray(h.errors)&&h.errors.length>0&&(d=h.errors[0].message??d,h.errors=[h.errors[0]],h.errors[0].ref=i),this.error(d)}return h}).catch(h=>{const d=h.message??`${h}`;return this.error(d),h})}}return Promise.resolve({pass:!0})}}function In(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 Ir(l,a,e)}const Cn=Symbol.for("EventEmitterKey");class Vr{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 Je(e,l){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},l)}}function Or(e,l){let a=0;return function(...n){const o=new Date().getTime();o-a<l||(a=o,Reflect.apply(e,null,[...n]))}}function Wi(e,l){const a=Je((n,o)=>{e=n,o()},l);return t.customRef((n,o)=>({get(){return n(),e},set(r){a(r,o)}}))}function Yi(e){let l=!1;return function(...a){l||(l=!0,Reflect.apply(e,null,[...a]))}}function Vn(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 Ue=Symbol("DomainKey"),Dt=Symbol("DataItemsKey");class On{_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 Ui=new On;function Et(){return Ui}function pt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ue]??t.inject(Ue,null):t.inject(Ue,null)}const cl=Symbol("OriginalDateKey");function Kl(e,l,a=[],n){const o=t.getCurrentInstance();let r=o?.proxy,s=t.inject(Ue,null);s===null&&(s=Et());const c=e||l.prop||l.name;let i=new On(c);i.parent=s;const f=p=>{r[cl]||y(p),i?.set("modelValue",p)},h=()=>i?.getForSelf("modelValue")??null,d=()=>r[cl]??null,y=p=>{const m={};Vt(!0,m,t.toRaw(p)),r[cl]=m};t.isReactive(l)||typeof l=="function"?t.watch(l,p=>{i?.merge(p,a)},{immediate:!0}):i.merge(l,a),l.modelValue&&y(l.modelValue);const x=(p,m)=>{i?.set(p,m)},$=p=>i?.getForSelf(p)??null;if(r[Ue]=i,t.provide(Ue,i),o!==null){const p=t.inject(Ae,null),m=Pn(r,p,c,n);i.broadcast=m,r[Ae]=m,t.provide(Ae,m),r.broadcast=(u,k,...M)=>Reflect.apply(m.emit,m,[u,k,...M]);const I=t.inject(nt,null),g=In(r,I,{componentName:""});i.validateSchema=g,r[nt]=g,t.provide(nt,g),r[Dt]=new Map,r.validate=(u=!0)=>{const k=[];let M=null;const V={deep:!1};if(u===!0)M={name:"*"};else if(Array.isArray(u)&&u.length>0){const b=u;M={name:D=>D?b.indexOf(D)!==-1:!1}}else if(u!=null&&typeof u=="object"){const b=u;if(Object.assign(V,b),Array.isArray(b.include)&&b.include.length>0){const D=b.include;M={name:v=>v?D.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const D=b.exclude;M={name:v=>v?D.indexOf(v)===-1:!1}}else M={name:"*"}}if(M){const b=m?.emitToChildren(M,"validate",V);b&&Reflect.apply([].push,k,b)}return k.length==1?k[0]:k.length>1?Promise.all(k).then(b=>{let D=[];return b.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(D=[...D,...v.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,k=!0,M=!1)=>{if(M===!0){Reflect.ownKeys(u).forEach(b=>{let D=String(b);const v={componentName:"",fieldName:D,pureDataValidate:!0};if(i){const z=Rr(i,D,v,m,g);r[Dt].set(D,z);const w=u[D];w&&z.validateSchema.setRule(w)}});return}if(k){const V=Reflect.ownKeys(u),b={name:D=>V.includes(D),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(b,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let k=null;if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const M=u;k={name:V=>V?M.indexOf(V)!==-1:!1}}else if(u!=null&&typeof u=="object"){const M=u;if(Array.isArray(M.include)&&M.include.length>0){const V=M.include;k={name:b=>b?V.indexOf(b)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const V=M.exclude;k={name:b=>b?V.indexOf(b)===-1:!1}}else k={name:"*"}}k&&m?.emitToChildren(k,"clearValidate",!1)},r.resetFields=u=>{const k=h();if(!k)return;const M={};if(Vt(!0,M,d()??{}),Array.isArray(u))u.forEach(V=>{k[V]=M[V]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(b=>{k[b]=M[b]});else if(u&&Array.isArray(u.exclude)){let V=u.exclude??[];Reflect.ownKeys(M).forEach(b=>{V.includes(b)||(k[b]=M[b])})}else Object.assign(k,M);r.clearValidate(u)},r.setModelValue=(u,k)=>{if(!k||k===c)f(u);else{const M={name:k,messagingPolicy:"Once"};m?.emitToChildren(M,"setModelValue",u)}},r.getModelValue=()=>h(),r.setDomainProperty=(u,k)=>{x(u,k)},r.getDomainProperty=u=>$(u),setTimeout(function(){m?.pull()},0)}return t.onUnmounted(function(){i?.validateSchema&&(i.validateSchema.destroy(),r[nt]=void 0,t.provide(nt,null)),i?.broadcast&&(i?.broadcast?.destroy(),r[Ae]=void 0,t.provide(Ae,null)),i?.destroy(),r[Ue]=void 0,t.provide(Ue,null),r[Dt]&&(r[Dt].clear(),r[Dt]=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 Ar(e,l,a=[]){let o=t.getCurrentInstance()?.proxy,r=t.inject(Ue,null);r===null&&(r=Et());const s=e||l.prop||l.name;let c=new On(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[Ue]=c,t.provide(Ue,c),t.onUnmounted(()=>{c?.destroy(),o[Ue]=void 0,t.provide(Ue,null),c=null,o=null}),c}function Ve(e,l,a){const o=t.getCurrentInstance()?.proxy,r=l??"",s=t.inject(Ae,null);let c=Pn(o,s,r,a);o[Ae]=c,t.provide(Ae,c),o.broadcast=($,p,...m)=>c?Reflect.apply(c.emit,c,[$,p,...m]):null;const i=t.inject(nt,null);e.fieldName=e.fieldName??r;let f=In(o,i,e);o[nt]=f,t.provide(nt,f),o.validate=($=null)=>{if(!f)return Promise.resolve({pass:!0});const p=[];let m=!1,I=!1;if(Array.isArray($)&&$.indexOf(r)!==-1)I=!0,m=!0;else if($&&typeof $=="object"){const g=$,u=g.ignoreDisabled??!0,k=g.ignoreReadonly??!0,M=g.ignoreHidden??!0;u===!0&&e.disabled===!0||k===!0&&e.readonly===!0||M===!0&&Sr(o.$el)?I=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),I=!0),m=g.deep??!1}else typeof $=="boolean"&&(m=$),I=!0;if(I){const g=f?.validate();p.push(g)}if(m){let g=null;const u={deep:!1};if($===!0)g={name:"*"};else if(Array.isArray($)&&$.length>0){const k=$;g={name:M=>M?k.indexOf(M)!==-1:!1}}else if($!=null&&typeof $=="object"){const k=$;if(Object.assign(u,k),Array.isArray(k.include)&&k.include.length>0){const M=k.include;g={name:V=>V?M.indexOf(V)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const M=k.exclude;g={name:V=>V?M.indexOf(V)===-1:!1}}else g={name:"*"}}if(g&&c){const k=c.emitToChildren(g,"validate",u);Reflect.apply([].push,p,k)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(g=>{let u=[];return g.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(u=[...u,...k.errors])}),u.length>0?{pass:!1,errors:u}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=$=>f?.setRule($),o.setNameValidateRules=($,p=!1)=>{const m=$[r];if(m&&f?.setRule(m),p&&c){const I={name:g=>Reflect.ownKeys($).includes(g)};c.emitToChildren(I,"setNameValidateRules",$,!1)}},o.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(l??"")!==-1)&&f?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const m=$;p={name:I=>I?m.indexOf(I)!==-1:!1}}else if($!=null&&typeof $=="object"){const m=$;if(Array.isArray(m.include)&&m.include.length>0){const I=m.include;p={name:g=>g?I.indexOf(g)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const I=m.exclude;p={name:g=>g?I.indexOf(g)===-1:!1}}else p={name:"*"}}p&&c&&c.emitToChildren(p,"clearValidate",!1)};let h=new Vr(o);o[Cn]=h;const d=Je(($="validate")=>{f&&($==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Nr()).forEach($=>{h&&h.on($,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Pr()).forEach($=>{h&&h.on($,p=>{d("reset")})}),setTimeout(function(){c?.pull()},0),t.onUnmounted(()=>{c?.destroy(),o[Ae]=void 0,t.provide(Ae,null),c=null,f?.destroy(),o[nt]=void 0,t.provide(nt,null),f=null,h?.destroy(),o[Cn]=void 0,h=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:c,validateSchema:f,emitEvent:($,...p)=>{h&&Reflect.apply(h.emit,h,[$,...p])},onEvent:($,p)=>{h&&Reflect.apply(h.on,h,[p])},offEvent:($,p)=>{h&&Reflect.apply(h.off,h,[p])}}}function Rr(e,l,a,n,o){const r={},s=l??"",c={getValue(){const h=e.getForSelf("modelValue");return h?h[s]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,s):!1}};a.fieldName=s,a.validateHandler={getValue(h){return c.getValue()}};let i=In({},o,a);r.validate=(h=null)=>{if(!c.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,x=!1;if(Array.isArray(h)&&h.indexOf(s)!==-1)x=!0,y=!0;else if(h&&typeof h=="object"){const $=h;Array.isArray($.include)&&$.include.indexOf(s)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(s),x=!0,y=$.deep??!1}else typeof h=="boolean"&&(y=h),x=!0;if(x&&i){const $=i.validate();d.push($)}if(y){let $=null;const p={deep:!1};if(h===!0)$={name:"*"};else if(Array.isArray(h)&&h.length>0){const m=h;$={name:I=>I?m.indexOf(I)!==-1:!1}}else if(h!=null&&typeof h=="object"){const m=h;if(Object.assign(p,m),Array.isArray(m.include)&&m.include.length>0){const I=m.include;$={name:g=>g?I.indexOf(g)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const I=m.exclude;$={name:g=>g?I.indexOf(g)===-1:!1}}else $={name:"*"}}if($&&f){const m=f.emitToChildren($,"validate",p);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then($=>{let p=[];return $.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(p=[...p,...m.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>i?.setRule(h),r.setNameValidateRules=h=>{const d=h[s];d&&i?.setRule(d)};let f=Pn(null,n,s,r);return t.onUnmounted(()=>{i=null,f=null}),{broadcast:f,validateSchema:i}}function Wl(){let l=t.getCurrentInstance()?.proxy,a=new Vr(l);return l[Cn]=a,t.onUnmounted(()=>{a?.destroy(),l[Cn]=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 Te=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${xe(e,l)}px`:"",Gi=Te;function xe(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(gt){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 mt="PageStateKey";function ot(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=xe(e.top)),e.left!==null&&e.left!==void 0&&(l.left=xe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=xe(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=xe(e.right))),l}function El(e,l,a={},n=!0,o=-1,r=-1,s=0,c=0){if(e.headerHeight=xe(a.headerHeight??l.headerHeight??-1),e.headerPadding=ot(a.headerPadding??l.headerPadding),e.footerHeight=xe(a.footerHeight??l.footerHeight??-1),e.footerPadding=ot(a.footerPadding??l.footerPadding),e.contentPadding=ot(a.contentPadding??l.contentPadding),n){const i=a.height??l.height;i?e.height=xe(i,r):e.height=xe(r)-xe(s,r)-xe(c,r),e.width=xe(a.width??l.width??0,o)}}function Fr(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=xe(o.top),n.safeAreaBottom=xe(o.bottom),n.safeAreaLeft=xe(o.left),n.safeAreaRight=xe(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;El(n,r,l,!0,s,c,i,f);const h=t.reactive(n),d=e.getForParent(mt);d&&(n.height=Tn(e,d),n.width=$n(e,d),t.watch([()=>Tn(e,d),()=>$n(e,d)],([x,$])=>{h.height=x,h.width=$}));const y=!d;return t.watch([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,$,p=-1,m=-1,I=0,g=0])=>{El(h,$,l,y,p,m,I,g)}),e.set(mt,h),h}function An(e){return e.get(mt)}function Rn(e,l){if(l=l??e.get(mt),l&&l.headerMounted){const a=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+a}return 0}function Fn(e,l){if(l=l??e.get(mt),l&&l.footerMounted){const a=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+a}return 0}function Tn(e,l){if(l=l??e.get(mt),l){if(l.contentInnerHeight)return l.contentInnerHeight;const a=Rn(e,l),n=Fn(e,l);return l.height-a-n-(l.contentPadding.top??0)-(l.contentPadding.bottom??0)}return 0}function $n(e,l){return l=l??e.get(mt),l?l.contentInnerWidth??l.width-(l.contentPadding.left??0)-(l.contentPadding.right??0):0}function Xi(e){return!!e.getForParent(mt)}const Yl=Symbol.for("InnerPageScopeKey");function Ul(e){t.provide(Yl,e)}function Yt(e=!1){return t.inject(Yl,e)}const Gl=Symbol.for("AbstractPageScopeKey");function Mr(e){t.provide(Gl,e)}function Ut(e=!1){return t.inject(Gl,e)}var Ge=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ge||{});function ln(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function Me(e,l,a=1,n){const o=pt();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(ln(i,n))return i}const s=e.value;return ln(s,n)?s:null}):t.computed(()=>{const r=e.value;if(ln(r,n))return r;const s=o.getAll(l);for(let c=0;c<s.length;c++){const i=s[c];if(ln(i,n))return i}return null})}function qe(e){return Me(e,"readonly",1)}function ze(e){return Me(e,"disabled",1)}function ye(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 Br=new Map,kn=new Map;let Pl=null;function Zi(e){Pl=e}function Lr(e,l,a){if(a){let n=kn.get(a);n||(n=new Map,kn.set(a,n)),n.set(e,l)}else Br.set(e,l)}function Be(e,l,a){!a&&Pl&&(a=Pl(e)??void 0);let n=null;if(a){let o=kn.get(a);o&&(n=o.get(l))}return n||(n=Br.get(l)),n}function Ji(e,l){for(let a in e){const n=e[a];Lr(a,n,l)}}function Qi(e){kn.delete(e)}function es(){return{top:0,left:0,bottom:0,right:0}}function ts(){if(gt){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 ns(e,l){if(l.componentPrefix){const a=e.indexOf("-");return`${l.componentPrefix}${e.slice(a)}`}return e}class ls{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=ns(o.name,a);l.component(r,o)}}),this.installers.forEach(o=>{o(l,a)}));const n=Et();if(a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o={...a},r=Je(()=>{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=Vt({},es(),l.safeAreaInset),s=ts(),c=Vt({},s.pageLayout,l.pageLayout);a=a??Et(),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){Zi(l)}setAPI(l,a,n){Lr(l,a,n)}getAPI(l,a,n){return Be(l,a,n)}batchSetAPI(l,a){Ji(l,a)}clearScopeAPI(l){Qi(l)}getRootDomain(){return Et()}}const as=[R.ElAffix,R.ElAlert,R.ElAutocomplete,R.ElAutoResizer,R.ElAvatar,R.ElBacktop,R.ElBadge,R.ElBreadcrumb,R.ElBreadcrumbItem,R.ElButton,R.ElButtonGroup,R.ElCalendar,R.ElCard,R.ElCarousel,R.ElCarouselItem,R.ElCascader,R.ElCascaderPanel,R.ElCheckTag,R.ElCheckbox,R.ElCheckboxButton,R.ElCheckboxGroup,R.ElCol,R.ElCollapse,R.ElCollapseItem,R.ElCollapseTransition,R.ElColorPicker,R.ElConfigProvider,R.ElContainer,R.ElAside,R.ElFooter,R.ElHeader,R.ElMain,R.ElDatePicker,R.ElDescriptions,R.ElDescriptionsItem,R.ElDialog,R.ElDivider,R.ElDrawer,R.ElDropdown,R.ElDropdownItem,R.ElDropdownMenu,R.ElEmpty,R.ElForm,R.ElFormItem,R.ElIcon,R.ElImage,R.ElImageViewer,R.ElInput,R.ElInputNumber,R.ElLink,R.ElMenu,R.ElSubMenu,R.ElMenuItem,R.ElMenuItemGroup,R.ElPageHeader,R.ElPagination,R.ElPopconfirm,R.ElPopover,R.ElPopper,R.ElProgress,R.ElRadio,R.ElRadioButton,R.ElRadioGroup,R.ElRate,R.ElResult,R.ElRow,R.ElScrollbar,R.ElSelect,R.ElOption,R.ElOptionGroup,R.ElSelectV2,R.ElSkeleton,R.ElSkeletonItem,R.ElSlider,R.ElSpace,R.ElSteps,R.ElStep,R.ElSwitch,R.ElTable,R.ElTableColumn,R.ElTableV2,R.ElTabs,R.ElTabPane,R.ElTag,R.ElTimePicker,R.ElTimeSelect,R.ElTimeline,R.ElTimelineItem,R.ElTooltip,R.ElTransfer,R.ElTree,R.ElTreeSelect,R.ElTreeV2,R.ElUpload,R.ElStatistic,R.ElCountdown,R.ElSegmented,R.ElAnchor,R.ElAnchorLink,R.ElWatermark,R.ElMessageBox,R.ElMessage,R.ElNotification],os=[R.ElInfiniteScroll,R.ElLoading,R.ElMessage,R.ElMessageBox,R.ElNotification,R.ElPopoverDirective],rs=(e,l={})=>{const a=l.componentPrefix??"fox",n=a[0].toUpperCase()+a.slice(1);as.forEach(o=>{let r=o.name;typeof r=="string"?(r=`${n}${r.slice(2)}`,e.component(r,o)):e.use(o)}),os.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 Se(e,l=null){if(l||(l=t.getCurrentInstance()),l&&l.proxy){let a=l.proxy;Object.assign(a,e)}}const Ee={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}},Fe={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}},_r={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}},qr={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}},zr=[];for(const e in qr)zr.push(e);const is={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}},ss=(e,l)=>({inheritAttrs:!0,props:{...Ee,..._r,...is},setup(a,{slots:n}){const o=Ut(!1),r=Yt(!1),s=Kl(a.name,a);if(s){const d=Fr(s,a);Se({getPageContentHeight:()=>Tn(s,d),getPageContentWidth:()=>$n(s,d),getPageHeaderHeight:()=>Rn(s,d),getPageFooterHeight:()=>Fn(s,d)}),d&&r&&(d.contentHeight="100%")}const c=t.computed(()=>({[e]:!0,"is-inner":r})),i=t.computed(()=>({})),f=t.getCurrentInstance(),h=(d,y=!1)=>{const x=f?.proxy;x&&typeof x.setNameValidateRules=="function"&&x.setNameValidateRules(d,!0,y)};return t.watch([()=>a.rules,()=>a.pureDataRules],([d,y],[x,$])=>{if(d&&x){const p=t.toRaw(x),m=t.toRaw(d),I=m?Reflect.ownKeys(m):[];(p?Reflect.ownKeys(p):[]).forEach(u=>{I.includes(u)||(m[u]=[])}),h(m)}if(y&&$){const p=t.toRaw($),m=t.toRaw(y),I=m?Reflect.ownKeys(m):[];(p?Reflect.ownKeys(p):[]).forEach(u=>{I.includes(u)||(m[u]=[])}),h(m,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);h(d)}if(a.pureDataRules){const d=t.toRaw(a.pureDataRules);h(d,!0)}}),()=>{if(o)return n?.default?.();{const d={class:c.value,style:i.value};return t.h("div",d,[n?.default?.()])}}}}),{componentName:us,create:cs}=ue("page"),Xl=cs(ss(us));function Zl(e){const l=t.unref(e);return{width:l.offsetWidth,height:l.offsetHeight}}function Mn(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 jr={headerbar:{},radio:{},checkbox:{}};function fs(e){Object.assign(jr,e)}function Hr(){return jr}const ds=(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=Ut(!1),c=Yt(!1),i=s?null:pt(),f=i?An(i):null;f&&(f.headerMounted=!0);const h=Hr(),d=e,y=t.computed(()=>{const S={[d]:!0,[`${d}--border`]:o.border,[`${d}--fixed`]:o.fixed};return c||(S[`${d}--safe-area-inset-top`]=o.safeAreaInsetTop),S}),x=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${o.align}`]:!0})),$=Ze(o.height)?null:xe(o.height),p=t.computed(()=>{const S={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return S;if(i&&f){const C=ot(o.padding??f.headerPadding);return Object.assign(S,C),Ze($)||(f.headerHeight=$),S.height=f.headerHeight,S.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,S.safeAreaTop>0&&(S.top=S.safeAreaTop+(C.top??0),S.height&&S.height>0&&(S.height=S.height+S.safeAreaTop)),S}if(Ze($)||(S.height=$),o.padding){const C=ot(o.padding);Object.assign(S,C)}return S}),m=t.ref(null),I=()=>{if(f&&m.value&&m.value.offsetParent!==null){if(!n){const S=Zl(m.value);f.headerAllHeight=S.height}return f.headerMounted=!0,!0}return!1},g=Je(I,120);let u=null;t.onMounted(()=>{s||f&&(Vn(I,50,5,50,!0),window.ResizeObserver&&m.value&&(u=new window.ResizeObserver(g),u.observe(m.value)))}),t.onUnmounted(()=>{s||f&&(f.headerMounted=!1,u&&(u.disconnect(),u=null))});const k=t.computed(()=>{const S={};return s||(p.value.height!==null&&p.value.height!==void 0&&(S.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(S.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(S.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(S.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(S.paddingBottom=`${p.value.bottom}px`)),S}),M=t.computed(()=>{const S=p.value?.height;return Ze(S)||S<0?!0:S>0});function V(){r.emit("back")}function b(){r.emit("click-title")}function D(){r.emit("click-right")}function v(){r.emit("click-right-text")}const z=()=>{if(!o.leftShow)return null;const S=[];if(r.slots.left)S.push(r.slots.left());else{if(r.slots.leftIcon){const C=t.h("view",{class:"left-icon",onClick:V},[r.slots.leftIcon()]);S.push(C)}else{const C=o.leftIcon??h.headerbar.Left??a,F=t.h("view",{class:"left-icon",onClick:V},[t.h(C)]);S.push(F)}if(o.leftText){const C=t.h("view",{class:"left-text",onClick:V},[o.leftText]);S.push(C)}}return S.length===0?null:t.h("view",{class:"fox-header-bar__left"},S)},w=()=>{if(!o.rightShow)return null;const S=[];if(r.slots.right)S.push(r.slots.right());else{if(o.rightText){const C=t.h("view",{class:"right-text",onClick:v},[o.rightText]);S.push(C)}if(r.slots.rightIcon){const C=t.h("view",{class:"right-icon",onClick:D},[r.slots.rightIcon()]);S.push(C)}else if(o.rightIcon){const C=t.h("view",{class:"right-icon",onClick:D},[t.h(o.rightIcon)]);S.push(C)}}return S.length===0?null:t.h("view",{class:"fox-header-bar__right"},S)},_=()=>{if(!o.titleShow)return null;const S=[],C=r.slots.default?r.slots.default():null;if(C)S.push(C);else{if(o.title){const F=t.h("view",{class:"title-text"},[o.title]);S.push(F)}if(r.slots.titleIcon){const F=t.h("view",{class:"title-icon",onClick:b},[r.slots.titleIcon()]);S.push(F)}else if(o.titleIcon){const F=t.h("view",{class:"title-icon",onClick:b},[t.h(o.titleIcon)]);S.push(F)}}return S.length===0?null:t.h("view",{class:"fox-header-bar__title"},S)},U=()=>{const S=[],C=r.slots.bottom?r.slots.bottom():null;return C&&S.push(C),S.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},S)};return()=>{if(s||!M.value)return null;const S=[];if(r.slots.all)S.push(r.slots.all());else{const F=[],L=z();L&&F.push(L);const Q=_();Q&&F.push(Q);const Y=w();if(Y&&F.push(Y),F.length>0){const te=t.h("view",{class:x.value},F);S.push(te)}const q=U();q&&S.push(q)}if(S.length===0)return null;const C={class:y.value,style:k.value,ref:m};return t.h("view",C,S)}}}),{componentName:hs,create:ms,scope:gs}=ue("header-bar"),Jl=ms(ds(hs,gs,Ie.ArrowLeft));function ps(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=Ut(!1),s=Yt(!1),c=r?null:pt(),i=c?An(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}),h=Ze(n.height)?null:xe(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=ot(n.padding??i.footerPadding);return Object.assign(g,u),Ze(h)||(i.footerHeight=h),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(Ze(h)||(g.height=h),n.padding){const u=ot(n.padding);Object.assign(g,u)}return g}),y=t.computed(()=>{const g=d.value?.height;return Ze(g)||g<0?!0:g>0}),x=t.ref(null),$=()=>{if(i&&x.value&&x.value.offsetParent!==null){if(!a){const g=Zl(x.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1},p=Je($,120);let m=null;t.onMounted(()=>{r||i&&(Vn($,50,5,50,!0),window.ResizeObserver&&x.value&&(m=new window.ResizeObserver(p),m.observe(x.value)))}),t.onUnmounted(()=>{r||i&&(i.footerMounted=!1,m&&(m.disconnect(),m=null))});const I=t.computed(()=>{const g={};return r||(d.value.height!==null&&d.value.height!==void 0&&(g.height=Te(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Te(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Te(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Te(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Te(d.value.bottom))),g});return()=>{if(r||!y.value)return null;const g=o.slots.default?o.slots.default():[],u={ref:x,class:f.value,style:I.value};return t.h("view",u,g)}}}}const{componentName:vs,create:ys}=ue("footer-bar"),Ql=ys(ps(vs));function bs(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:n,attrs:o}){const r=Ut(!1),s=Yt(!1),c=r?null:pt(),i=t.computed(()=>({[e]:!0})),f=c?An(c):null,h=t.computed(()=>{const p={};if(r)return p;if(c&&f){if(a.padding){const b=ot(a.padding);Object.assign(f.contentPadding,b)}const m=Rn(c,f),I=Fn(c,f);let g="";f.contentHeight?g=`${f.contentHeight}`:g=`${f.height}px`,p.height=g;let u=(f&&f.contentPadding&&f.contentPadding.top)??-1;(u>=0||m>0)&&(u=u<0?0:u,p.paddingTop=`${m+u}px`);let k=(f&&f.contentPadding&&f.contentPadding.bottom)??-1;(k>=0||I>0)&&(k=k<0?0:k,p.paddingBottom=`${I+k}px`);const M=(f&&f.contentPadding&&f.contentPadding.left)??-1;M>=0&&(p.paddingLeft=`${M}px`);const V=(f&&f.contentPadding&&f.contentPadding.right)??-1;return V>=0&&(p.paddingRight=`${V}px`),p}if(a.padding){const m=ot(a.padding);m.left&&(p.paddingLeft=`${m.left}px`),m.top&&(p.paddingTop=`${m.top}px`),m.right&&(p.paddingRight=`${m.right}px`),m.bottom&&(p.paddingBottom=`${m.bottom}px`)}return p}),d=t.ref(null),y=()=>{if(f&&d.value){const p=Mn(d.value);f.contentInnerHeight=p.height,f.contentInnerWidth=p.width}},x=Je(y,120);let $=null;return t.onMounted(()=>{s||r||(requestAnimationFrame(y),window.ResizeObserver&&d.value&&($=new window.ResizeObserver(x),$.observe(d.value)))}),t.onUnmounted(()=>{s||r||$&&($.disconnect(),$=null)}),()=>{if(r)return n.default?.();{const p=a.tag??"view",m={...o,ref:d,class:i.value,style:h.value};return t.h(p,m,n)}}}}}const{componentName:ws,create:xs}=ue("content"),ea=xs(bs(ws)),Ot="GroupStateKey",Kr=Symbol.for("GroupScopeKey");function Bn(){return t.inject(Kr,!1)}function Ln(e=!0){t.provide(Kr,e)}function Ss(e,l={}){Reflect.ownKeys(l).forEach(n=>{if(typeof n!="string")return;const o=l[n];Ze(o)||(e[n]=o)})}function Cs(e,l={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ss(n,l);const o=t.shallowRef(n),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(Ot,r),r}function fl(e,l,a=-1,n=-1,o=!1,r,s,c){const i=e.get(Ot);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 h=xe(r),d=xe(s);c||(c=f.type??"grid");const y=()=>{const x=l===""||l===-1,$=xe(l);let p=we(a);const m=xe(n);if(!x){let u=($-(p-1)*m)/p;for(;d!==-1&&u>d;)p++,u=($-(p-1)*m)/p;for(;h!==-1&&p>1&&u<h;)p--,u=($-(p-1)*m)/p}let I=!1;const g=i.layout;g.value.width=l,g.value.column!==p&&(g.value.column=p,I=!0),g.value.gutter!==m&&(g.value.gutter=m,I=!0),g.value.type!==c&&(g.value.type=c,I=!0),I&&t.triggerRef(g)};if(o)y();else{const x=++i.passport;setTimeout(()=>{x===i.passport&&y()},50)}}function _n(e,l=!1){let a;return l?a=e.getForParent(Ot):a=e.get(Ot),a.layout}function qn(e,l=!1){let a;return l?a=e.getForParent(Ot):a=e.get(Ot),a.order}function Za(e,l=1){if(l==="stretch")return-1;const a=we(l);return a===-1?100:100*a/e}function zn(e,l,a=1,n=0,o){const r={};let s=0;o?s=xe(o):s=Za(l.column,a),s>0&&(r.width=`${s}%`);const c=Za(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 jn(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=we(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=we(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 Wr=Symbol("RollingStateKey");function Ts(e){t.provide(Wr,e)}function $s(){return t.inject(Wr,null)}function Il(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 ks(e){let l=Il(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=Il(a),document.body.removeChild(a)}return l}function Ds(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 Ns={...Ee,..._r,...qr};function Es(e,l,a){return{props:Ns,emits:["update:collapse","header-click"],setup(n,o){const r=Kl(n.prop??n.name,n,zr),s=Cs(r,{type:n.type}),c=Bn();Ln(!0);const i=n.rollingDisplay?$s():null,f=t.ref(null),h=t.computed(()=>n.rollingDisplay?i&&!i.disabled:!1),d=t.computed(()=>c&&r?_n(r,!0).value:null),y=t.getCurrentInstance(),x=(T,K=!1)=>{const J=y?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(T,!0,K)};t.watch([()=>n.rules,()=>n.pureDataRules],([T,K],[J,E])=>{if(T&&J){const Z=t.toRaw(J),X=t.toRaw(T),oe=X?Reflect.ownKeys(X):[];(Z?Reflect.ownKeys(Z):[]).forEach(ce=>{oe.includes(ce)||(X[ce]=[])}),x(X)}if(K&&E){const Z=t.toRaw(E),X=t.toRaw(K),oe=X?Reflect.ownKeys(X):[];(Z?Reflect.ownKeys(Z):[]).forEach(ce=>{oe.includes(ce)||(X[ce]=[])}),x(X,!0)}},{deep:!0});const $=e,p=t.computed(()=>{const T={};T.height=C.value;const K=c?qn(r,!0):null;if(d.value&&K){if(d.value.type==="grid"){const J=jn(K,d.value,n.span,n.offset);Object.assign(T,J)}else if(d.value.type==="flow"){const J=zn(K,d.value,n.span,n.offset,n.width);Object.assign(T,J)}}else if(n.width){const J=Te(n.width);T.width=J}return T}),m=t.computed(()=>{const T=s.layout.value.type;return T==="grid"||T==="flow"?{[`${$}--${T}`]:!0,[`${$}--${T}-justify-${n.justify}`]:!0,[`${$}--${T}-align-${n.align}`]:!0,[`${$}--gutter`]:!0}:{[`${$}--${T}`]:!0,[`${$}--gutter`]:!0}}),I=t.computed(()=>{if(s.layout.value.type==="grid"){let K="";if(n.columnWidth)K=`repeat(auto-fill, ${n.columnWidth})`;else{const J=Ds(D.value,s.layout.value.column,s.layout.value.gutter);K=`repeat(${s.layout.value.column}, ${J})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":K}}}),g=t.toRef(n,"gutter"),u=t.toRef(n,"column"),k=t.computed(()=>c||h.value?!0:fe(n.isWrap)),M=[],V=T=>{M.push(T)},b=()=>{let T=M.length;M.splice(0,T)},D=t.ref(-1),v=T=>{const K=Mn(T).width;K>0&&K!==D.value&&(D.value=K)};fl(r,D.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([D,u,g],([T,K,J])=>{s.order.index=0,fl(r,T,K,J,!1,n.minItemWidth,n.maxItemWidth,n.type)});const z=t.computed(()=>F.value?n.expandText??"":n.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),U=t.ref(),S=t.ref(),C=t.computed(()=>L.value||Te(n.height)||""),F=t.ref(!1),L=t.ref(""),Q=t.ref(!1);let Y=-1;const q=(T,K=!0)=>{const J=U.value;if(J&&F.value!==T){if(Y=Y===-1?ks(J):Y,Q.value=!0,K)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",T||(L.value="",Q.value=!1)},T){let E=0;n.collapseHeight?E=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(E=S.value.offsetHeight),L.value=`${Y}px`,t.nextTick(()=>{L.value=`${E}px`})}else L.value=`${Y}px`;else if(T){let E=0;n.collapseHeight?E=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(E=S.value.offsetHeight),L.value=`${E}px`}else Q.value=!1,L.value=`${Y}px`;F.value=T,o.emit("update:collapse",T)}};t.watch(()=>n.collapse,T=>{q(T)});const te=T=>{o.emit("header-click",T)},P=()=>{A()},A=T=>{T=T??!F.value,q(T)};Se({toggleCollapse:A,doLayout:()=>{M[0]&&(v(M[0]),fl(r,D.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let H=null,O=!0;const ee=T=>{if(n.rules){const K=t.toRaw(n.rules);x(K)}if(n.pureDataRules){const K=t.toRaw(n.pureDataRules);x(K,!0)}if(gt&&(T&&q(fe(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const K=M[0];if(v(K),window.ResizeObserver){const J=Je(()=>v(K),120);H=new window.ResizeObserver(J),H.observe(K)}}},le=()=>{H?.disconnect(),H=null},G=!h.value||i?.acquire();G&&(f.value=h.value?!0:null),t.onMounted(()=>{if(G&&(ee(O),O=!1),h.value&&i){let T=null,K=i.initialHeight;i.observe(U.value,J=>{if(J!==f.value)if(J)f.value=!0,F.value||(L.value=""),T=setTimeout(()=>{T=null,f.value!==!1&&(ee(O),O=!1)},100);else{if(T!==null&&clearTimeout(T),f.value=!1,!F.value)if(O)L.value=i.initialHeight;else{let E=Il(U.value);E<=0?L.value=K:(L.value=`${E}px`,K=L.value)}O||le()}})}}),t.onUnmounted(()=>{H?.disconnect(),i&&i.unobserve(U.value)});const N=(T="right")=>{const K=[];if(z.value){const Z={class:w.value},X=t.h("span",Z,[z.value]);K.push(X)}const J={class:_.value},E=a(n.collapseIcon,J);return E&&K.push(E),K.length>0?t.h("div",{class:{[`${$}__header-collapse`]:!0,[`is-${T}`]:!0},onClick:P},K):null},B=(T,K,J,E)=>{const Z={...m.value};if(K===0&&(Z[`${$}__first`]=!0),J>=E-1&&(Z[`${$}__last`]=!0),k.value===!1){const X=o.attrs.class;X&&(Z[`${X}`]=!0)}return t.h("div",{ref:V,key:`${K}`,class:Z,style:I.value},T)};return()=>{const T=n.prop??n.name;if(h.value&&f.value!==!0){const X=n.tag||"div";return t.h(X,{ref:U,prop:T,class:{[`${$}`]:!0,"is-collapse":Q.value},style:p.value},[])}s.order.index=0;const K=[];let J=0;if(o.slots.header){const X={key:`${J++}`,ref:S,class:{[`${$}__header`]:!0,[`${$}__first`]:!0},onClick:te},oe=t.h("div",X,[o.slots.header()]);K.push(oe)}else{const X=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const ie=N("left");ie&&X.push(ie)}if(n.title||o.slots.title){if(n.showMark){const ie={class:{[`${$}__header-mark`]:!0}};n.markColor&&(ie.style={background:n.markColor});const ce=t.h("div",ie);X.push(ce)}if(o.slots.title){const ie=t.h("div",{class:{[`${$}__header-title`]:!0}},[o.slots.title()]);X.push(ie)}else if(n.title){const ie=t.h("div",{class:{[`${$}__header-title`]:!0}},[n.title]);X.push(ie)}}if(o.slots.toolbar&&X.push(o.slots.toolbar()),!oe&&n.showCollapse){const ie=N("right");ie&&X.push(ie)}if(X.length>0){const ie={key:`${J++}`,ref:S,class:{[`${$}__header`]:!0,[`${$}__first`]:!0},onClick:te},ce=t.h("div",ie,X);K.push(ce)}}b();const E=o.slots.default?o.slots.default():[],Z=s.layout.value.type;if(Z==="grid"){const X=B(E,J++,0,E.length);K.push(X)}else if(Z==="flow"){const X=B(E,J++,0,E.length);K.push(X)}else for(let X=0;X<E.length;X++){const oe=E[X],ie=B([oe],J++,X,E.length);K.push(ie)}if(k.value){const X=n.tag||"div";return t.h(X,{ref:U,prop:T,class:{[`${$}`]:!0,"is-collapse":Q.value},style:p.value},[K])}else return K}}}}const{componentName:Ps,create:Is,scope:Vs}=ue("group"),Os=(e,l)=>(e=e??Ie.ArrowUp,t.h(R.ElIcon,l,{default:()=>[t.h(e)]})),ta=Is(Es(Ps,Vs,Os));function As(e){return e===window}const Rs=/matrix\((.+)\)/,na=e=>{const l=t.unref(e);if(!l)return{x:0,y:0};if(As(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 h=Rs.exec(f);if(h){let y=h[1].split(/\s*,\s*/);y.length==6&&(c+=Number(y[4]),i+=Number(y[5]))}}o=o.parentNode}return a-=r,n-=s,a+=c,n+=i,{x:a,y:n}};class Fs{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 Ms{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 Fs,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 zt=new Ms,Yr={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:Bs,create:Ls}=ue("price"),_s=Ls({props:{...Yr},setup(e){const l=t.computed(()=>({[Bs]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>st(e.price)==0?"":Nn(e.price,e.decimalLength,!0,we(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}}}),je=(e,l)=>{const a=e.__vccOpts||e;for(const[n,o]of l)a[n]=o;return a},qs=["innerHTML"],zs=["innerHTML"];function js(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,qs)):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,zs)):t.createCommentVNode("",!0)],2)}const Hn=je(_s,[["render",js]]),{componentName:dl,create:Hs}=ue("hint-text"),Ks=Hs({components:{Price:Hn},props:{...Yr,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=(w,_,U,S,C,F)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,Y=w.split("-");let q=[];Y[0]==="top"?q=["top","bottom","right","left"]:Y[0]==="bottom"?q=["bottom","top","right","left"]:Y[0]==="left"?q=["left","top","bottom","right"]:Y[0]==="right"&&(q=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},P=[];for(let A=0;A<q.length;A++){const j=q[A];if(P[0]=j,Y[1]&&(P[1]=Y[1]),j==="top"){const H=_.y-F-e.arrowSize-e.offset;if(H>=0){te.top=H;let O=0;Y[1]==="start"?O=_.x:Y[1]==="end"?O=_.x+U-C:O=_.x+U/2-C/2;const ee=L-O-C;ee<0?(O+=ee,d.value=-ee):d.value=0,te.left=O<0?0:O;break}}else if(j==="bottom"){const H=_.y+S+e.arrowSize+e.offset;if(H+F<=Q){te.top=H;let O=0;Y[1]==="start"?O=_.x:Y[1]==="end"?O=_.x+U-C:O=_.x+U/2-C/2;const ee=L-O-C;ee<0?(O+=ee,d.value=-ee):d.value=0,te.left=O<0?0:O;break}}else if(j==="left"){const H=_.x-C-e.arrowSize-e.offset;if(H>=0){te.left=H;let O=0;Y[1]==="start"?O=_.y:Y[1]==="end"?O=_.y+S-F:O=_.y+S/2-F/2,te.top=O<0?0:O;break}}else if(j==="right"){const H=_.x+U+e.arrowSize+e.offset;if(H+C<=L){te.left=H;let O=0;Y[1]==="start"?O=_.y:Y[1]==="end"?O=_.y+S-F:O=_.y+S/2-F/2,te.top=O<0?0:O;break}}}return{bestPlacement:P.join("-"),bestInsetRect:te}},h=(w,_,U=10)=>{if(!gt||_===!1||!w)return;n.value=na(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const S=i.value.offsetHeight,C=i.value.offsetWidth,{bestPlacement:F,bestInsetRect:L}=f(e.placement,n.value,o.value,r.value,C,S);s.value=F,a.value=L,c.value=!0},d=t.ref(0),y=Je(()=>{h(e.message,e.visible)},10),x=t.ref(e.visible);t.watch(()=>e.visible,w=>{x.value=w});const $=t.computed(()=>x.value&&p.value),p=t.ref(!0),m=Je(w=>{const _=w[0];_&&(p.value=_.isIntersecting)},10),I=new IntersectionObserver(m);t.watch([()=>e.message,()=>e.visible],([w,_])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),zt.watch(e.reference,y),I.observe(e.reference)}),t.onBeforeUnmount(()=>{zt.unwatch(e.reference,y),I.unobserve(e.reference),I.disconnect()});const g=t.computed(()=>{const w={[dl]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),u=t.computed(()=>{const w={};a.value.top!==null&&(w.top=`${a.value.top}px`),a.value.right!==null&&(w.right=`${a.value.right}px`),a.value.bottom!==null&&(w.bottom=`${a.value.bottom}px`),a.value.left!==null&&(w.left=`${a.value.left}px`),e.autoFit&&(w["min-width"]=`${o.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${_}px`,c.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),k=t.computed(()=>{const w=[`${dl}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),M=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),V=t.computed(()=>({[`${dl}__arrow`]:!0})),b=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),D=t.computed(()=>$.value&&e.closeOnClick),v=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:$,tipRef:i,classes:g,styles:u,textClasses:k,textStyles:M,arrowClasses:V,arrowStyles:b,overlayShow:D,overlayStyle:v,onClickOverlay:()=>{x.value=!1,l.emit("update:visible",!1)}}}}),Ws=["innerHTML"];function Ys(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,Ws))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ur=je(Ks,[["render",Ys]]);class Gr{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 Vl={},Us=new Gr,Pt=new Map,Dn=e=>{if(e){const l=document.getElementById(e);Pt.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of Pt.keys()){const a=document.getElementById(l);a&&a.parentNode?.removeChild(a)}Pt.clear()}},Gs=e=>{e.unmount=Dn;const l=document.getElementById(e.id);if(l){const a=Pt.get(e.id);a?e={...Vl,...a,...e}:e={...Vl,...e},e.transition=!1;const n=t.createVNode(Ur,e);t.render(n,l)}return e.id},Xs=e=>{e.unmount=Dn;let l=e.id??`hinttext_${Us.get()}`;e={...Vl,...e},e.id=l,Pt.set(l,e);const a=document.createElement("div");a.id=e.id;const n=t.createVNode(Ur,e);return t.render(n,a),document.body.appendChild(a),l},Zs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},_e={show(e,l,a={},n=!0){Zs(l);const o=a.id;return o&&Pt.has(o)?Gs({...a,message:l,reference:e}):(n&&Dn(),Xs({...a,message:l,reference:e}))},hide(e){Dn(e)},install(e){e.config.globalProperties.$hintText=_e}};function Js(e,l,a,n=!1){return{inheritAttrs:!0,props:{...Ee,...Fe},emits:["appear","disappear"],setup(o,r){const s=o.prop??r.attrs.name;Ve({componentName:e,validate:!1},s);const c=pt(),i=Bn();Ln(!1);const f=t.computed(()=>i&&c?_n(c,!1).value:null),h=e,d=t.ref(null),y=t.computed(()=>{const E={[h]:!0,[`${h}__gutter`]:f.value&&f.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:fe(o.hasBorder)};if(E[o.errorMarkClass]=!!F.value,E[o.warnMarkClass]=!!S.value,E[o.infoMarkClass]=!!_.value,typeof d.value=="function"){const Z=d.value(s);E[Z]=!0}else if(typeof d.value=="string"){const Z=d.value;E[Z]=!0}return E}),x=t.ref(null),$=t.computed(()=>{const E={};if(o.width)o.width!=="auto"&&(E.width=Te(o.width));else{const Z=i&&c?qn(c,!1):null;if(f.value&&Z){if(f.value.type==="grid"){const X=jn(Z,f.value,o.span,o.offset);Object.assign(E,X)}else if(f.value.type==="flow"){const X=zn(Z,f.value,o.span,o.offset,o.width);Object.assign(E,X)}}}if(typeof x.value=="function"){const Z=x.value(s);Z&&Object.assign(E,Z)}else if(x.value&&typeof x.value=="object"){const Z=x.value;Object.assign(E,Z)}return E}),p=t.ref(null),m=t.computed({get:()=>p.value??fe(o.isRequired),set:E=>{p.value=E}}),I=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",g=Me(t.toRef(o,"labelPosition"),"labelPosition",Ge.Near),u=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),k=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${u.value}`]:!0})),M=t.computed(()=>({label:!0,[`label--${u.value}`]:!0})),V=Me(t.toRef(o,"labelWidth"),"labelWidth",Ge.Near),b=t.computed(()=>V&&V.value?{width:Te(V.value)}:{}),D=t.computed(()=>({"label--string":!0,"label--required":m.value})),v=t.computed(()=>({content:!0,[o.contentClass]:!0})),z=t.computed(()=>({...o.contentStyle})),w=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(E){m.value=E},setErrorTip(E){w.errorTip=E},setErrorIcon(E){w.errorIcon=E},setWarnTip(E){w.warnTip=E},setWarnIcon(E){w.warnIcon=E},setInfoTip(E){w.infoTip=E},setInfoIcon(E){w.infoIcon=E},setCustomClassName(E){d.value=E},setCustomStyle(E){x.value=E}});const _=t.computed(()=>o.infoTip||w.infoTip),U=t.computed(()=>o.infoIcon||w.infoIcon),S=t.computed(()=>o.warnTip||w.warnTip),C=t.computed(()=>o.warnIcon||w.warnIcon),F=t.computed(()=>o.errorTip||w.errorTip),L=t.computed(()=>o.errorIcon||w.errorIcon),Q=t.computed(()=>F.value?"error":S.value?"warn":_.value?"info":""),Y=()=>Q.value.length>0,q=t.computed(()=>Q.value==="error"?F.value:Q.value==="warn"?S.value:Q.value==="info"?_.value:""),te=t.computed(()=>Q.value==="error"?L.value:Q.value==="warn"?C.value:Q.value==="info"?U.value:null),P=t.computed(()=>{const E={[`${h}__tip`]:!0,[`${h}__tip--${Q.value}`]:!0,[`${h}--animate`]:!0};return Q.value==="error"&&o.errorClass?E[`${o.errorClass}`]=!0:Q.value==="warn"&&o.warnClass?E[`${o.warnClass}`]=!0:Q.value==="info"&&o.infoClass&&(E[`${o.infoClass}`]=!0),E}),A=t.computed(()=>{const E={};return g&&g.value==="top"||!I()?E["padding-left"]="0px":V&&V.value&&(E["padding-left"]=Te(V.value)),E}),j=t.ref();let H="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([E,Z,X,oe])=>{j.value&&(E&&!ge(Z)?H?a.show(j.value,Z,{...oe,id:H,type:X},!0):H=a.show(j.value,Z,{...oe,type:X},!0):a.hide(H))});let O=null;const ee=()=>{O||!j.value||(O=new IntersectionObserver(E=>{let Z=!1;for(let X of E)if(X.intersectionRatio>0){Z=!0,Z&&r.emit("appear",X);break}Z||r.emit("disappear")}),O.observe(j.value))},le=()=>{!O||!j.value||(O.unobserve(j.value),O=null)};t.watch(()=>fe(o.appearListen),E=>{E?ee():le()}),t.onMounted(()=>{fe(o.appearListen)&&ee()}),t.onUnmounted(le);const G=()=>{if(!I())return null;const E=[],Z=r.slots?.label?.()??o.label,X={class:D.value},oe=t.h("div",X,[Z]);if(E.push(oe),r.slots.fixedPreTip){const ce=r.slots.fixedPreTip();E.push(ce)}const ie={class:M.value,style:b.value};return t.h("div",ie,E)},N=()=>{const E=[];if(r.slots.prepend){const X=r.slots.prepend();E.push(X)}if(r.slots.default){const X=r.slots.default();E.push(X)}if(r.slots.append){const X=r.slots.append();E.push(X)}if(r.slots.fixedTip){const X={class:[`${h}__fixed-tip`]},oe=t.h("div",X,[r.slots.fixedTip()]);E.push(oe)}const Z={ref:j,class:v.value,style:z.value};return t.h("div",Z,E)},B=()=>{const E=te.value;return E?typeof E=="function"?t.h("div",{class:"fox-item__tip--icon"},[E()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(E)]):null},T=()=>{const E=q.value;return E?typeof E=="function"?t.h("div",{class:"fox-item__tip--text"},[E()]):t.h("div",{class:"fox-item__tip--text"},[E]):null},K=()=>{if(!Y())return null;const E=[],Z=B();Z&&E.push(Z);const X=T();X&&E.push(X);const oe={class:P.value,style:A.value};return t.h("div",oe,E)},J=()=>r.slots?.hide?.()??null;return()=>{const E=[],Z=[],X=G();X&&Z.push(X);const oe=N();oe&&Z.push(oe);const ie={class:k.value},ce=t.h("div",ie,Z);E.push(ce);const be=K();be&&E.push(be);const pe=J();pe&&E.push(pe);const Ne={class:y.value,style:$.value,prop:o.prop};return t.h("div",Ne,E)}}}}const{componentName:Qs,create:eu,scope:tu}=ue("item"),Pe=eu(Js(Qs,tu,_e,!1)),Ol={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function nu(e,l){return{props:{...Ol},setup(a,n){const o=pt(),r=Bn();Ln(!1);const s=t.computed(()=>r&&o?_n(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 h={};if(a.width)a.width!=="auto"&&(h.width=Te(a.width));else{const d=r&&o?qn(o,!1):null;if(s.value&&d)if(s.value.type==="grid"){const y=jn(d,s.value,a.span,a.offset);Object.assign(h,y)}else if(s.value.type==="flow"){const y=zn(d,s.value,a.span,a.offset,a.width);Object.assign(h,y)}else return a.width&&(h.width=Te(a.width)),h}return h});return()=>{const h={class:i.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",h,n.slots.default()):t.h("div",h)}}}}const{componentName:lu,create:au}=ue("slot-item"),Kn=au(nu(lu)),Al={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 ou(e,l){return{props:{...Al},setup(a,n){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),s=pt(),c=Bn();Ln(!1);const i=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=Te(a.width));else if(c&&s){const h=_n(s,!1),d=qn(s,!1);if(h.value&&d)if(h.value.type==="grid"){const y=jn(d,h.value,a.span,a.offset);Object.assign(f,y)}else if(h.value.type==="flow"){const y=zn(d,h.value,a.span,a.offset,a.width);Object.assign(f,y)}else a.width&&(f.width=Te(a.width))}return a.gutter&&(f.gap=Te(a.gutter)),f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let y=0;y<d.length;y++){if(y>0){const x=t.h("div",{class:{[`${o}__divide`]:!0}});f.push(x)}f.push(d[y])}else Reflect.apply([].push,f,d)}const h={class:r.value,style:i.value};return t.h("div",h,f)}}}}const{componentName:ru,create:iu}=ue("row-item"),Wn=iu(ou(ru));function su(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 uu={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 cu(e,l,a,n=!1){return{props:{...uu},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={},k=o.textColor??o.color;return k&&(u.color=k),u}),f=(u,k)=>{let M=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const V=o.highlightFilter;if(u.indexOf(V)!==-1){const D=u.replace(new RegExp(V,"g"),`<span>${V}</span>`);k.innerHTML=D,k.class["is-highlight"]=!0,M=t.h(o.tag,k)}}else if(typeof o.highlightFilter=="function"){const V=o.highlightFilter(u);V&&(k.innerHTML=V,k.class["is-highlight"]=!0,M=t.h(o.tag,k))}return M},h=u=>{r.emit("click",u)};let d="";const y=()=>{const u=s.value;if(!u)return;const k=u.clientWidth;su(u,M=>{const V=u.innerHTML??"";ge(V)||M<k||(d?a?.show(u,V,{type:"text",id:d,showArrow:o.showArrow},!0):d=a?.show(u,V,{type:"text",showArrow:o.showArrow},!0)??"")})},x=()=>{d&&a?.hide(d)};let $=null;const p=u=>{$||($=setTimeout(()=>{y(),$=null},o.showAfter??0))},m=u=>{$&&(clearTimeout($),$=null),setTimeout(()=>{x()},o.hideAfter??0)},I=()=>{const u=s.value;u&&(u.addEventListener("mouseover",p),u.addEventListener("mouseleave",m))},g=()=>{const u=s.value;u&&(u.removeEventListener("mouseover",p),u.removeEventListener("mouseleave",m))};return t.onMounted(()=>{!fe(o.showOverflowTooltip)||!a||I()}),t.onBeforeUnmount(()=>{!fe(o.showOverflowTooltip)||!a||g()}),()=>{const u={onClick:h,class:c.value,style:i.value,ref:s};let k=null;if(fe(o.numberFormat)&&typeof r.slots.default=="function"){const D=r.slots.default();if(Array.isArray(D)&&D.length===1){const v=D[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const z=we(o.digits),w=we(o.decimalLength),_=fe(o.autoPadding);let U=`${D[0].children}`,S=U.split("").reverse().join("");S=Nn(S,w,_,z,o.separator),U=S.split("").reverse().join(""),o.highlightFilter!==void 0&&(k=f(U,u)),k||(u.innerHTML=U,k=t.h(o.tag,u))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const D=r.slots.default();if(Array.isArray(D)&&D.length===1){const v=D[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const z=`${D[0].children}`;k=f(z,u),k||(u.innerHTML=z,k=t.h(o.tag,u))}}}k||(k=t.h(o.tag,u,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return k;let V=null;if(o.icon){const D={[`${e}__mark-wrap`]:!0};o.type&&(D[`${e}__mark-wrap--${o.type}`]=!0);const v={},z=o.color;z&&(v.color=z);const w={onClick:h,class:D,style:v};V=t.h("view",w,t.h(o.icon))}else if(r.slots.mark){const D={[`${e}__mark-wrap`]:!0};o.type&&(D[`${e}__mark-wrap--${o.type}`]=!0);const v={},z=o.color;z&&(v.color=z);const w={onClick:h,class:D,style:v};V=t.h("view",w,{default:r.slots.mark})}else{const D={[`${e}__mark`]:!0};o.type&&(D[`${e}__mark--${o.type??"default"}`]=!0);const v={},z=o.color;z&&(v["background-color"]=z);const w={onClick:h,class:D,style:v};V=t.h("view",w)}const b={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",b,[V,k])}}}}const{componentName:fu,create:du,scope:hu}=ue("text"),Yn=du(cu(fu,hu,_e,!1)),mu={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 gu(e,l,a=!1){return{props:{...mu},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),h=t.ref(0),d=t.ref(0),y=t.ref(n.placement),x=t.ref(!1),$=t.ref(!1),p=t.ref(null),m=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,I=(q,te,P,A,j,H,O,ee=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,N=q.split("-");let B=[];ee?N[0]==="top"?B=["top","bottom","right","left"]:N[0]==="bottom"?B=["bottom","top","right","left"]:N[0]==="left"?B=["left","top","bottom","right"]:N[0]==="right"&&(B=["right","top","bottom","left"]):B=[q[0]];const T={top:null,right:null,bottom:null,left:null},K=[];for(let J=0;J<B.length;J++){const E=B[J];if(K[0]=E,N[1]&&(K[1]=N[1]),E==="top"){const Z=P-O-n.arrowSize/2-n.offset;if(Z>=0){T.top=Z;let X=0;N[1]==="start"?X=te:N[1]==="end"?X=te+A-H:X=te+A/2-H/2;const oe=le-X-H;oe<0?(X+=oe,u.value=-oe):u.value=0,T.left=X<0?0:X;break}}else if(E==="bottom"){const Z=P+j+n.arrowSize/2+n.offset;if(Z+O<=G){T.top=Z;let X=0;N[1]==="start"?X=te:N[1]==="end"?X=te+A-H:X=te+A/2-H/2;const oe=le-X-H;oe<0?(X+=oe,u.value=-oe):u.value=0,T.left=X<0?0:X;break}}else if(E==="left"){const Z=te-H-n.arrowSize/2-n.offset;if(Z>=0){T.left=Z;let X=0;N[1]==="start"?X=P:N[1]==="end"?X=P+j-O:X=P+j/2-O/2,T.top=X<0?0:X;break}}else if(E==="right"){const Z=te+A+n.arrowSize/2+n.offset;if(Z+H<=le){T.left=Z;let X=0;N[1]==="start"?X=P:N[1]==="end"?X=P+j-O:X=P+j/2-O/2,T.top=X<0?0:X;break}}}return{bestPlacement:K.join("-"),bestInsetRect:T}},g=()=>{const q=n.visible,te=n.autoFit;if(!gt||q===!1)return;if(n.reference){const O=m(),ee=na(O);i.value=ee.x,f.value=ee.y,h.value=O.offsetWidth,d.value=O.offsetHeight}else n.referenceInset&&(i.value=n.referenceInset.left,f.value=n.referenceInset.top,h.value=n.referenceInset.right-n.referenceInset.left,d.value=n.referenceInset.bottom-n.referenceInset.top);const P=p.value.offsetWidth,A=p.value.offsetHeight,{bestPlacement:j,bestInsetRect:H}=I(n.placement,i.value,f.value,h.value,d.value,P,A,te);y.value=j,c.value=H},u=t.ref(0),k=Je(()=>{g()},10),M=t.ref(n.visible);t.watch([()=>n.visible],([q])=>{M.value=q,q?(x.value=q,setTimeout(()=>{g(),$.value=!0},0)):$.value=!1});const V=t.computed(()=>M.value&&b.value),b=t.ref(!0),D=Je(q=>{const te=q[0];te&&(b.value=te.isIntersecting)},10),v=new IntersectionObserver(D);t.watch([()=>n.reference,()=>n.referenceInset],([q,te],[P,A])=>{!q&&!te||(setTimeout(()=>{g()},0),n.autoFit&&(P&&(zt.unwatch(P,k),v.unobserve(P)),q&&(zt.watch(q,k),v.observe(q))))},{immediate:!0}),t.onBeforeUnmount(()=>{n.reference&&(zt.unwatch(n.reference,k),v.unobserve(n.reference),v.disconnect())});const z=t.computed(()=>{const q={[e]:!0};return y.value.startsWith("top")?q["is-top"]=!0:y.value.startsWith("right")?q["is-right"]=!0:y.value.startsWith("bottom")?q["is-bottom"]=!0:y.value.startsWith("left")&&(q["is-left"]=!0),q[`is-${n.effect}`]=!0,!$.value&&V.value&&(q["is-opacity"]=!0),$.value&&V.value&&(q["is-show"]=!0),V.value||(q["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(q[`${n.customClass}`]=!0),q}),w=t.computed(()=>{const q={};return c.value.top!==null&&(q.top=`${c.value.top}px`),c.value.right!==null&&(q.right=`${c.value.right}px`),c.value.bottom!==null&&(q.bottom=`${c.value.bottom}px`),c.value.left!==null&&(q.left=`${c.value.left}px`),n.width&&(q.width=n.width),n.zIndex&&(q["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(q,n.customStyle),q}),_=()=>{M.value=!1,o("update:visible",!1)},U=()=>{if(!n.showOverlay)return null;const q={class:`${e}__overlay`,onClick:_};return t.h("div",q)},S=()=>{let q=null;return r.title?q=t.h("div",{class:`${e}__title`},{default:r.title}):n.title&&(q=t.h("div",{class:`${e}__title`},[n.title])),q},C=t.computed(()=>({[`${e}__arrow`]:!0})),F=t.computed(()=>{const q={};return n.showArrow?(q.width=`${n.arrowSize}px`,q.height=`${n.arrowSize}px`,y.value==="top"?(q.left="50%",q.bottom="0",q.transform="translate(-50%, 50%)"):y.value==="top-start"?(q.left=`${n.arrowOffset+u.value}px`,q.bottom="0",q.transform="translate(-50%, 50%)"):y.value==="top-end"?(q.right=`${n.arrowOffset-u.value}px`,q.bottom="0",q.transform="translate(-50%, 50%)"):y.value==="right"?(q.left="0",q.top="50%",q.transform="translate(-50%, -50%)"):y.value==="right-start"?(q.left="0",q.top=`${n.arrowOffset}px`,q.transform="translate(-50%, 50%)"):y.value==="right-end"?(q.left="0",q.bottom=`-${n.arrowOffset}px`,q.transform="translate(-50%, 50%)"):y.value==="bottom"?(q.left="50%",q.top="0",q.transform="translate(-50%, -50%)"):y.value==="bottom-start"?(q.left=`${n.arrowOffset+u.value}px`,q.top="0",q.transform="translate(-50%, -50%)"):y.value==="bottom-end"?(q.right=`${n.arrowOffset-u.value}px`,q.top="0",q.transform="translate(-50%, -50%)"):y.value==="left"?(q.right="0",q.top="50%",q.transform="translate(50%, -50%)"):y.value==="left-start"?(q.right="0",q.top=`${n.arrowOffset}px`,q.transform="translate(50%, -50%)"):y.value==="left-end"&&(q.right="0",q.bottom=`-${n.arrowOffset}px`,q.transform="translate(50%, -50%)"),q):{display:"none"}}),L=()=>{const q={class:C.value,style:F.value};return t.h("div",q)},Q=()=>{M.value===!1&&(x.value=!1)},Y=q=>{if(!p.value||M.value===!1)return;const{relatedTarget:te}=q;p.value.contains(te)||(M.value=!1,o("update:visible",!1))};return s({doLayout:g}),()=>{if(!x.value)return null;const q=[],te=U();te&&q.push(te);const P=[],A=S();if(A&&P.push(A),r.default){const le=r.default();P.push(le)}const j=L();j&&P.push(j);const H={ref:p,class:z.value,style:w.value,onAnimationend:Q};n.leaveHide&&(H.onMouseleave=Y);const O=t.h("div",H,{default:()=>P});return q.push(O),t.h(t.Teleport,{to:n.teleport,disabled:n.teleportDisable},{default:()=>q})}}}}const{componentName:pu,create:vu,scope:yu}=ue("popover-dialog"),Un=vu(gu(pu,yu,!1)),bu={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 wu(e,l,a){return{props:{...Al,...bu},emits:["click"],setup(n,{slots:o,attrs:r}){const{toLocaleRefs:s}=$e.useFoxI18n(l),c=s(n,["moreText"]),i=e,f=t.computed(()=>({[i]:!0}));function h(V){return V.props||{}}function d(V){return!!h(V).disabled}function y(V){return V.children??[]}const x=t.ref(),$=t.computed(()=>x.value?.$el??null),p=t.ref(!1),m=V=>{p.value=V},I=()=>{p.value=!p.value};function g(V,b){return()=>{if(b)return;p.value=!1,h(V)?.onClick?.()}}function u(V,b){const D=y(V),v=d(V),z=g(V,v),w=[`${i}__dropdown-item`];v&&w.push("is-disabled");const _={class:w,onClick:z};return t.h("span",_,D)}const k=V=>{const b=n.maxDisplayCount??V.length;if(b>=V.length)return V;const D=[],v=b-1;for(let F=0;F<v;F++)D.push(V[F]);const z=(o.moreIcon&&o.moreIcon())??(n.moreIcon&&t.h(n.moreIcon))??t.h(a),w={ref:F=>x.value=F,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:n.type,onClick:I},_=t.h(Yn,w,{default:()=>c.moreText.value,mark:()=>z});D.push(_);const U=[];for(let F=v;F<V.length;F++){const L=u(V[F]);U.push(L)}const S={placement:n.dropdownPlacement,"onUpdate:visible":m,visible:p.value,reference:$.value,"custom-class":`${i}__popover`},C=t.h(Un,S,{default:()=>U});return D.push(C),D},M=()=>(o.default?.()||[]).filter(b=>b.type!==Comment);return()=>{const V=M(),b=k(V),D=rt(n,Al);return Object.assign(D,r??{}),D.class=f.value,t.h(Wn,D,{default:()=>b})}}}}const{componentName:xu,create:Su,scope:Cu}=ue("buttons-item"),la=Su(wu(xu,Cu,Ie.ArrowDown)),Qe=(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},Ja={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 Tu(e,l,a){return{props:{...Ee,...Fe,...Ja},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=ye(n,"modelValue",null,f),$=e,p=t.computed(()=>({[$]:!0,[`${$}__disabled`]:s.value,[`${$}__readonly`]:i.value})),m=C=>{x.value=C,f("update:modelValue",C),f("input",C)},I=C=>{f("change",C)};let g=ye(n,"hintText"),u=t.ref(!1);const k=C=>{let L=C.target.value;y.value=!0,ge(g.value)||(u.value=!0),f("focus",L,C)},M=C=>{setTimeout(()=>{u.value&&(u.value=!1),y.value=!1},0);let L=C.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),f("blur",L,C)},V=()=>{f("clear","")},b=t.ref(!1);let D=null;const v=()=>{n.showTooltip&&b.value===!1&&(D&&clearTimeout(D),D=setTimeout(()=>{b.value=!0},150))},z=()=>{D&&(clearTimeout(D),b.value=!1,D=null)},w=t.computed(()=>b.value||u.value),_=t.computed(()=>b.value?x.value:g.value),U=t.computed(()=>st(n.unit)>0),S=t.ref();return Se({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},select:()=>{S?.value.select()},setDisabled:C=>{r.value=C},setReadonly:C=>{c.value=C}}),()=>{const F={...Qe(o.attrs),ref:S,class:p.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:x.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:I,onInput:m,onFocus:k,onBlur:M,onMouseover:v,onMouseleave:z},L={};o.slots.prepend&&(L.prepend=o.slots.prepend),o.slots.append&&(L.append=o.slots.append),o.slots.prefix&&(L.prefix=o.slots.prefix),o.slots.suffix?L.suffix=o.slots.suffix:U.value&&(L.suffix=()=>[n.unit]);const Q=[],Y=t.h(R.ElInput,F,L);Q.push(Y);const q={default:()=>Q};q.label=o.slots.default,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const P={...Re(n,Ja),hintText:_.value,hintVisible:w.value};return n.prop&&(P.prop=`${n.prop}_item`),t.h(a,P,q)}}}}const{componentName:$u,create:ku,scope:Du}=ue("input-item"),aa=ku(Tu($u,Du,Pe));function dt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Ht(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Xr(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function Nu(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let Eu=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=Be(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function Pu(){const e=t.getCurrentInstance();return new Eu(e.proxy)}function Zr(e,l,a){const n=dt(e,l),o=dt(e,a);if(n!==o)return!1;const r=Ht(e,l),s=Ht(e,a);return r===s}function Jr(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=Xr(e,s);if(Array.isArray(c)&&c.length>0){const i=Jr(e,r,a,c)??[];Reflect.apply([].push,o,i)}else{let i=!1;if(a==="text")i=dt(e,s)===r;else if(a==="item")i=Zr(e,s,r);else{let f=Ht(e,s);f==null&&(f=dt(e,s)),i=f===r}if(i){o.push(s);break}}}}),o}function Iu(e){return{text:e,value:e}}const Qa={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 Vu(e,l,a){return{props:{...Ee,...Fe,...Qa},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(null),x=t.ref([]),$=t.computed(()=>x.value?x.value.map(K=>dt(n,K)).join(" "):""),p=(T,K,J,E=!0)=>{if(!J||J.length==0){y.value=T,E&&(f("update:modelValue",T),f("change",T));return}const Z=Jr(n,T,K,J);if(Z===null){if(x.value===null||x.value.length===0)return;y.value=null,x.value=[],E&&(f("update:modelValue",null),f("update:text",null),f("change",null));return}let X=!0;if(Z.length!==x.value.length)X=!1;else for(let oe=0;oe<Z.length;oe++){const ie=Z[oe],ce=x.value[oe];if(!Zr(n,ie,ce)){X=!1;break}}if(!X){x.value=Z;let oe=[],ie=[],ce=[];Z.forEach(et=>{const lt=Ht(n,et),Le=dt(n,et);oe.push(lt),ce.push(Le),n.valueType==="text"?ie.push(Le):n.valueType==="item"?ie.push(et):ie.push(lt)});let be,pe,Ne;fe(n.multiple)?(y.value=oe,be=t.toRaw(ie),pe=ce,Ne=t.toRaw(Z)):(y.value=oe[0]??"",be=t.toRaw(ie[0]??""),pe=ce[0]??"",Ne=t.toRaw(Z[0])),E&&(f("update:modelValue",be),f("change",be,Ne)),f("update:text",pe)}},m=t.ref(null),I=t.ref(null),g=t.computed(()=>I.value??m.value??[]),u=Me(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,T=>fe(T)),k=Pu(),M=async(T,K)=>{if(T){const J=await k.load("select",T,K);if(J.length>0)if(typeof J[0]=="string"){let X=J.map(oe=>Iu(oe));m.value=X}else m.value=J;else m.value=null}};t.watch([()=>n.source,()=>n.params],([T,K])=>{I.value=null,M(T,K)},{immediate:!u.value});let V=!1;const b=()=>{V||(V=!0,M(n.source,n.params))};t.watch([()=>m.value,()=>n.modelValue],([T,K])=>{if(w()&&fe(n.multiple)){Xe(K,y.value)||(y.value=K);return}p(K,n.valueType,g.value,!1),f("setValue",K)}),n.source||(y.value=n.modelValue);let D=null,v=t.ref(!1);typeof n.remoteMethod=="function"&&(D=async T=>{if(T==null){I.value=null;return}v.value=!0;try{const K=await n.remoteMethod(T);K&&(I.value=K)}catch(K){I.value=null,console.error(K)}v.value=!1});let z=null;typeof n.filterMethod=="function"&&(z=async T=>{if(T==null){I.value=null;return}v.value=!0;try{const K=await n.filterMethod(T,m.value);K&&(I.value=K)}catch(K){I.value=null,console.error(K)}v.value=!1});const w=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=t.ref(!1),U=e,S=t.computed(()=>({[U]:!0})),C=T=>{n.allowCreate||w()&&fe(n.multiple)?(f("update:modelValue",T),f("change",T),f("update:text",T),y.value=T):p(T,"value",g.value,!0)};let F=ye(n,"hintText"),L=t.ref(!1);const Q=T=>{let J=T.target.value;_.value=!0,ge(F.value)||(L.value=!0),f("focus",J,T)},Y=T=>{setTimeout(()=>{L.value&&(L.value=!1),_.value=!1},0);let J=T.target.value;n.maxLength&&J.length>Number(n.maxLength)&&(J=J.slice(0,Number(n.maxLength))),ee.value||f("blur",J,T)},q=()=>{f("clear","")},te=t.ref(!1);let P=null;const A=()=>{n.showTooltip&&te.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{te.value=!0},150))},j=()=>{P&&(clearTimeout(P),te.value=!1,P=null)},H=t.computed(()=>te.value||L.value),O=t.computed(()=>te.value?$.value:F.value),ee=t.ref(!1),le=T=>{ee.value=T,f("visible-change",T),T||f("selected")},G=T=>{f("remove-tag",T)},N=(T,K)=>{const J=[];return T.forEach((E,Z)=>{const X=Xr(n,E);if(Array.isArray(X)&&X.length>0){const oe=N(X,K),ie=dt(n,E),be={key:`${ie}_${Z}`,label:ie};J.push(t.h(R.ElOptionGroup,be,{default:()=>oe}))}else{const oe=Ht(n,E),ie=dt(n,E),ce=Nu(n,E),pe={key:`${oe}_${Z}`,label:ie,disabled:ce,value:oe};if(typeof K=="function")J.push(t.h(R.ElOption,pe,{default:()=>K(E)}));else if(n.optionType==="item"){const Ne={class:{"fox-select-item__option-left":!0}},et=t.h("span",Ne,[oe]),lt={class:{"fox-select-item__option-right":!0}},Le=t.h("span",lt,[ie]),vt=t.h("div",{class:{"fox-select-item__option":!0}},[et,Le]);J.push(t.h(R.ElOption,pe,{default:()=>vt}))}else n.optionType==="value"?J.push(t.h(R.ElOption,pe,{default:()=>[oe]})):J.push(t.h(R.ElOption,pe))}}),J},B=t.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:T=>{r.value=T},setReadonly:T=>{c.value=T}}),()=>{const K={...Qe(o.attrs),ref:B,class:S.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:s.value||i.value,modelValue:y.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:q,onChange:C,onFocus:Q,onBlur:Y,onVisibleChange:le,onRemoveTag:G};typeof D=="function"&&(K["remote-method"]=D,K.loading=v.value),typeof z=="function"&&(K["filter-method"]=z,K.loading=v.value);const J={};o.slots.prefix&&(J.prefix=o.slots.prefix),o.slots.empty&&(J.empty=o.slots.empty),o.slots.options?J.default=o.slots.options:J.default=()=>N(g.value,o.slots.option);const E=[],Z=t.h(R.ElSelect,K,J);E.push(Z);const X={default:()=>E};X.label=o.slots.default,X.fixedPreTip=o.slots.fixedPreTip,X.fixedTip=o.slots.fixedTip;const ie={...Re(n,Qa),hintText:O.value,hintVisible:H.value,onMouseover:A,onMouseleave:j};return n.prop&&(ie.prop=`${n.prop}_item`),u.value&&(ie["appear-listen"]=!0,ie.onAppear=b),t.h(a,ie,X)}}}}const{componentName:Ou,create:Au,scope:Ru}=ue("select-item"),oa=Au(Vu(Ou,Ru,Pe));function ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}},Fu=sn.exports,eo;function Mu(){return eo||(eo=1,(function(e,l){(function(a,n){e.exports=n()})(Fu,(function(){var a=1e3,n=6e4,o=36e5,r="millisecond",s="second",c="minute",i="hour",f="day",h="week",d="month",y="quarter",x="year",$="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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(S){var C=["th","st","nd","rd"],F=S%100;return"["+S+(C[(F-20)%10]||C[F]||C[0])+"]"}},u=function(S,C,F){var L=String(S);return!L||L.length>=C?S:""+Array(C+1-L.length).join(F)+S},k={s:u,z:function(S){var C=-S.utcOffset(),F=Math.abs(C),L=Math.floor(F/60),Q=F%60;return(C<=0?"+":"-")+u(L,2,"0")+":"+u(Q,2,"0")},m:function S(C,F){if(C.date()<F.date())return-S(F,C);var L=12*(F.year()-C.year())+(F.month()-C.month()),Q=C.clone().add(L,d),Y=F-Q<0,q=C.clone().add(L+(Y?-1:1),d);return+(-(L+(F-Q)/(Y?Q-q:q-Q))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:x,w:h,d:f,D:$,h:i,m:c,s,ms:r,Q:y}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},M="en",V={};V[M]=g;var b="$isDayjsObject",D=function(S){return S instanceof _||!(!S||!S[b])},v=function S(C,F,L){var Q;if(!C)return M;if(typeof C=="string"){var Y=C.toLowerCase();V[Y]&&(Q=Y),F&&(V[Y]=F,Q=Y);var q=C.split("-");if(!Q&&q.length>1)return S(q[0])}else{var te=C.name;V[te]=C,Q=te}return!L&&Q&&(M=Q),Q||!L&&M},z=function(S,C){if(D(S))return S.clone();var F=typeof C=="object"?C:{};return F.date=S,F.args=arguments,new _(F)},w=k;w.l=v,w.i=D,w.w=function(S,C){return z(S,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var _=(function(){function S(F){this.$L=v(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[b]=!0}var C=S.prototype;return C.parse=function(F){this.$d=(function(L){var Q=L.date,Y=L.utc;if(Q===null)return new Date(NaN);if(w.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var q=Q.match(m);if(q){var te=q[2]-1||0,P=(q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(q[1],te,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)):new Date(q[1],te,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)}}return new Date(Q)})(F),this.init()},C.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},C.$utils=function(){return w},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(F,L){var Q=z(F);return this.startOf(L)<=Q&&Q<=this.endOf(L)},C.isAfter=function(F,L){return z(F)<this.startOf(L)},C.isBefore=function(F,L){return this.endOf(L)<z(F)},C.$g=function(F,L,Q){return w.u(F)?this[L]:this.set(Q,F)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(F,L){var Q=this,Y=!!w.u(L)||L,q=w.p(F),te=function(G,N){var B=w.w(Q.$u?Date.UTC(Q.$y,N,G):new Date(Q.$y,N,G),Q);return Y?B:B.endOf(f)},P=function(G,N){return w.w(Q.toDate()[G].apply(Q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(N)),Q)},A=this.$W,j=this.$M,H=this.$D,O="set"+(this.$u?"UTC":"");switch(q){case x:return Y?te(1,0):te(31,11);case d:return Y?te(1,j):te(0,j+1);case h:var ee=this.$locale().weekStart||0,le=(A<ee?A+7:A)-ee;return te(Y?H-le:H+(6-le),j);case f:case $:return P(O+"Hours",0);case i:return P(O+"Minutes",1);case c:return P(O+"Seconds",2);case s:return P(O+"Milliseconds",3);default:return this.clone()}},C.endOf=function(F){return this.startOf(F,!1)},C.$set=function(F,L){var Q,Y=w.p(F),q="set"+(this.$u?"UTC":""),te=(Q={},Q[f]=q+"Date",Q[$]=q+"Date",Q[d]=q+"Month",Q[x]=q+"FullYear",Q[i]=q+"Hours",Q[c]=q+"Minutes",Q[s]=q+"Seconds",Q[r]=q+"Milliseconds",Q)[Y],P=Y===f?this.$D+(L-this.$W):L;if(Y===d||Y===x){var A=this.clone().set($,1);A.$d[te](P),A.init(),this.$d=A.set($,Math.min(this.$D,A.daysInMonth())).$d}else te&&this.$d[te](P);return this.init(),this},C.set=function(F,L){return this.clone().$set(F,L)},C.get=function(F){return this[w.p(F)]()},C.add=function(F,L){var Q,Y=this;F=Number(F);var q=w.p(L),te=function(j){var H=z(Y);return w.w(H.date(H.date()+Math.round(j*F)),Y)};if(q===d)return this.set(d,this.$M+F);if(q===x)return this.set(x,this.$y+F);if(q===f)return te(1);if(q===h)return te(7);var P=(Q={},Q[c]=n,Q[i]=o,Q[s]=a,Q)[q]||1,A=this.$d.getTime()+F*P;return w.w(A,this)},C.subtract=function(F,L){return this.add(-1*F,L)},C.format=function(F){var L=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||p;var Y=F||"YYYY-MM-DDTHH:mm:ssZ",q=w.z(this),te=this.$H,P=this.$m,A=this.$M,j=Q.weekdays,H=Q.months,O=Q.meridiem,ee=function(N,B,T,K){return N&&(N[B]||N(L,Y))||T[B].slice(0,K)},le=function(N){return w.s(te%12||12,N,"0")},G=O||function(N,B,T){var K=N<12?"AM":"PM";return T?K.toLowerCase():K};return Y.replace(I,(function(N,B){return B||(function(T){switch(T){case"YY":return String(L.$y).slice(-2);case"YYYY":return w.s(L.$y,4,"0");case"M":return A+1;case"MM":return w.s(A+1,2,"0");case"MMM":return ee(Q.monthsShort,A,H,3);case"MMMM":return ee(H,A);case"D":return L.$D;case"DD":return w.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return ee(Q.weekdaysMin,L.$W,j,2);case"ddd":return ee(Q.weekdaysShort,L.$W,j,3);case"dddd":return j[L.$W];case"H":return String(te);case"HH":return w.s(te,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return G(te,P,!0);case"A":return G(te,P,!1);case"m":return String(P);case"mm":return w.s(P,2,"0");case"s":return String(L.$s);case"ss":return w.s(L.$s,2,"0");case"SSS":return w.s(L.$ms,3,"0");case"Z":return q}return null})(N)||q.replace(":","")}))},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(F,L,Q){var Y,q=this,te=w.p(L),P=z(F),A=(P.utcOffset()-this.utcOffset())*n,j=this-P,H=function(){return w.m(q,P)};switch(te){case x:Y=H()/12;break;case d:Y=H();break;case y:Y=H()/3;break;case h:Y=(j-A)/6048e5;break;case f:Y=(j-A)/864e5;break;case i:Y=j/o;break;case c:Y=j/n;break;case s:Y=j/a;break;default:Y=j}return Q?Y:w.a(Y)},C.daysInMonth=function(){return this.endOf(d).$D},C.$locale=function(){return V[this.$L]},C.locale=function(F,L){if(!F)return this.$L;var Q=this.clone(),Y=v(F,L,!0);return Y&&(Q.$L=Y),Q},C.clone=function(){return w.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},S})(),U=_.prototype;return z.prototype=U,[["$ms",r],["$s",s],["$m",c],["$H",i],["$W",f],["$M",d],["$y",x],["$D",$]].forEach((function(S){U[S[1]]=function(C){return this.$g(C,S[0],S[1])}})),z.extend=function(S,C){return S.$i||(S(C,_,z),S.$i=!0),z},z.locale=v,z.isDayjs=D,z.unix=function(S){return z(1e3*S)},z.en=V[M],z.Ls=V,z.p={},z}))})(sn)),sn.exports}var Bu=Mu();const it=ct(Bu);var un={exports:{}},Lu=un.exports,to;function _u(){return to||(to=1,(function(e,l){(function(a,n){e.exports=n()})(Lu,(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(m){return(m=+m)+(m>68?1900:2e3)},h=function(m){return function(I){this[m]=+I}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var g=I.match(/([+-]|\d\d)/g),u=60*g[1]+(+g[2]||0);return u===0?0:g[0]==="+"?-u:u})(m)}],y=function(m){var I=i[m];return I&&(I.indexOf?I:I.s.concat(I.f))},x=function(m,I){var g,u=i.meridiem;if(u){for(var k=1;k<=24;k+=1)if(m.indexOf(u(k,0,I))>-1){g=k>12;break}}else g=m===(I?"pm":"PM");return g},$={A:[c,function(m){this.afternoon=x(m,!1)}],a:[c,function(m){this.afternoon=x(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[r,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[r,h("day")],Do:[c,function(m){var I=i.ordinal,g=m.match(/\d+/);if(this.day=g[0],I)for(var u=1;u<=31;u+=1)I(u).replace(/\[|\]/g,"")===m&&(this.day=u)}],w:[s,h("week")],ww:[r,h("week")],M:[s,h("month")],MM:[r,h("month")],MMM:[c,function(m){var I=y("months"),g=(y("monthsShort")||I.map((function(u){return u.slice(0,3)}))).indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[c,function(m){var I=y("months").indexOf(m)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,h("year")],YY:[r,function(m){this.year=f(m)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function p(m){var I,g;I=m,g=i&&i.formats;for(var u=(m=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(z,w,_){var U=_&&_.toUpperCase();return w||g[_]||a[_]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,F){return C||F.slice(1)}))}))).match(n),k=u.length,M=0;M<k;M+=1){var V=u[M],b=$[V],D=b&&b[0],v=b&&b[1];u[M]=v?{regex:D,parser:v}:V.replace(/^\[|\]$/g,"")}return function(z){for(var w={},_=0,U=0;_<k;_+=1){var S=u[_];if(typeof S=="string")U+=S.length;else{var C=S.regex,F=S.parser,L=z.slice(U),Q=C.exec(L)[0];F.call(w,Q),z=z.replace(Q,"")}}return(function(Y){var q=Y.afternoon;if(q!==void 0){var te=Y.hours;q?te<12&&(Y.hours+=12):te===12&&(Y.hours=0),delete Y.afternoon}})(w),w}}return function(m,I,g){g.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(f=m.parseTwoDigitYear);var u=I.prototype,k=u.parse;u.parse=function(M){var V=M.date,b=M.utc,D=M.args;this.$u=b;var v=D[1];if(typeof v=="string"){var z=D[2]===!0,w=D[3]===!0,_=z||w,U=D[2];w&&(U=D[2]),i=this.$locale(),!z&&U&&(i=g.Ls[U]),this.$d=(function(L,Q,Y,q){try{if(["x","X"].indexOf(Q)>-1)return new Date((Q==="X"?1e3:1)*L);var te=p(Q)(L),P=te.year,A=te.month,j=te.day,H=te.hours,O=te.minutes,ee=te.seconds,le=te.milliseconds,G=te.zone,N=te.week,B=new Date,T=j||(P||A?1:B.getDate()),K=P||B.getFullYear(),J=0;P&&!A||(J=A>0?A-1:B.getMonth());var E,Z=H||0,X=O||0,oe=ee||0,ie=le||0;return G?new Date(Date.UTC(K,J,T,Z,X,oe,ie+60*G.offset*1e3)):Y?new Date(Date.UTC(K,J,T,Z,X,oe,ie)):(E=new Date(K,J,T,Z,X,oe,ie),N&&(E=q(E).week(N).toDate()),E)}catch{return new Date("")}})(V,v,b,g),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),_&&V!=this.format(v)&&(this.$d=new Date("")),i={}}else if(v instanceof Array)for(var S=v.length,C=1;C<=S;C+=1){D[1]=v[C-1];var F=g.apply(this,D);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}C===S&&(this.$d=new Date(""))}else k.call(this,M)}}}))})(un)),un.exports}var qu=_u();const zu=ct(qu);var cn={exports:{}},ju=cn.exports,no;function Hu(){return no||(no=1,(function(e,l){(function(a,n){e.exports=n()})(ju,(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(),h=(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)(h)}}}))})(cn)),cn.exports}var Ku=Hu();const Wu=ct(Ku);var fn={exports:{}},Yu=fn.exports,lo;function Uu(){return lo||(lo=1,(function(e,l){(function(a,n){e.exports=n()})(Yu,(function(){return function(a,n,o){var r=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},c=function(d,y,x,$,p){var m=d.name?d:d.$locale(),I=s(m[y]),g=s(m[x]),u=I||g.map((function(M){return M.slice(0,$)}));if(!p)return u;var k=m.weekStart;return u.map((function(M,V){return u[(V+(k||0))%7]}))},i=function(){return o.Ls[o.locale()]},f=function(d,y){return d.formats[y]||(function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,p,m){return p||m.slice(1)}))})(d.formats[y.toUpperCase()])},h=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):c(d,"months")},monthsShort:function(y){return y?y.format("MMM"):c(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):c(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):c(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):c(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.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(y){return f(d,y)},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)}}}))})(fn)),fn.exports}var Gu=Uu();const Xu=ct(Gu);var dn={exports:{}},Zu=dn.exports,ao;function Ju(){return ao||(ao=1,(function(e,l){(function(a,n){e.exports=n()})(Zu,(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 h=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(a);if(h.isBefore(d))return 1}var y=s(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),x=this.diff(y,a,!0);return x<0?s(this).startOf("week").week():Math.ceil(x)},c.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})(dn)),dn.exports}var Qu=Ju();const ec=ct(Qu);var hn={exports:{}},tc=hn.exports,oo;function nc(){return oo||(oo=1,(function(e,l){(function(a,n){e.exports=n()})(tc,(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}}}))})(hn)),hn.exports}var lc=nc();const ac=ct(lc);var mn={exports:{}},oc=mn.exports,ro;function rc(){return ro||(ro=1,(function(e,l){(function(a,n){e.exports=n()})(oc,(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")}}}))})(mn)),mn.exports}var ic=rc();const sc=ct(ic);var gn={exports:{}},uc=gn.exports,io;function cc(){return io||(io=1,(function(e,l){(function(a,n){e.exports=n()})(uc,(function(){return function(a,n){n.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}}))})(gn)),gn.exports}var fc=cc();const dc=ct(fc);var pn={exports:{}},hc=pn.exports,so;function mc(){return so||(so=1,(function(e,l){(function(a,n){e.exports=n()})(hc,(function(){return function(a,n){n.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}}))})(pn)),pn.exports}var gc=mc();const pc=ct(gc);it.extend(Xu);it.extend(Wu);it.extend(zu);it.extend(ec);it.extend(ac);it.extend(sc);it.extend(dc);it.extend(pc);const se={format(e,l){return it(e).format(l)},parser(e,l){return it(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,h=this.date2Str(new Date(i)),d=this.date2Str(new Date(f));return[h,d]}else{s=s==0?7:s;const c=1440*60*1e3,i=r-(s-1)*c,f=r+(7-s)*c,h=this.date2Str(new Date(i)),d=this.date2Str(new Date(f));return[h,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}},uo={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"}},co={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 vc(e,l,a){return{props:{...Ee,...Fe,...uo,...co},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=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=ye(n,"modelValue",null,f),$=t.computed(()=>L.value&&Array.isArray(x.value)&&x.value.length==2?x.value[0]:x.value),p=t.computed(()=>L.value?"longTermKey":"normalKey"),m=B=>{if(L.value&&n.type==="daterange"){const T=[...x.value];T[0]=B,x.value=T}else x.value=B;f("update:modelValue",x.value),f("change",x.value)},I=t.computed(()=>L.value&&n.type==="daterange"?"date":n.type),g=e,u=t.computed(()=>({[`${g}`]:!0,"is-long":L.value,"is-readonly":i.value,"is-disabled":s.value}));let k=ye(n,"hintText"),M=t.ref(!1);const V=B=>{let K=B.target.value;y.value=!0,ge(k.value)||(M.value=!0),f("focus",K,B)},b=B=>{setTimeout(()=>{M.value&&(M.value=!1),y.value=!1},0);let K=B.target.value;n.maxLength&&K.length>Number(n.maxLength)&&(K=K.slice(0,Number(n.maxLength))),f("blur",K,B)},D=()=>{f("clear","")},v=B=>{f("calendar-change",B)},z=(B,T,K)=>{f("panel-change",B,T,K)},w=B=>{f("visible-change",B)},_=Me(t.computed(()=>n.longTermText),"longTermText",Ge.Near),U=Me(t.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ge.Near),S=Me(t.computed(()=>n.longTermValue),"longTermValue",Ge.Near),C=Me(t.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ge.Near);let F=null;const L=t.ref(fe(n.longTerm)),Q=B=>{if(L.value=B,f("update:longTerm",B),B){if(F=x.value,n.type==="daterange"){const T=[];Array.isArray(S.value)?(T[0]=x.value?x.value[0]??S.value[0]:null,T[1]=S.value[1]??S.value[0]):(T[0]=x.value?x.value[0]??S.value:null,T[1]=L.value),T[0]||(T[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),T[1]||(T[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),x.value=T}else Array.isArray(S.value)?x.value=S.value[1]??S.value[0]:x.value=S.value,x.value||(x.value=n.valueFormat?se.format(new Date,n.valueFormat):new Date);f("update:modelValue",x.value)}else{if(n.type==="daterange"){const T=[];T[0]=Array.isArray(x.value)?x.value[0]:x.value,Array.isArray(F)?T[1]=F[1]:T[1]=F,T[0]||(T[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),T[1]||(T[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),x.value=T}else x.value=F;f("update:modelValue",x.value),setTimeout(()=>{G()},100)}},Y=fe(n.isLongTerm);if(Y){const B=()=>{if(L.value===!0){if(F=x.value,n.type==="daterange"){const T=[x.value[0]];Array.isArray(S.value)?T[1]=S.value[1]??S.value[0]:T[1]=L.value,T[0]||(T[0]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),T[1]||(T[1]=n.valueFormat?se.format(new Date,n.valueFormat):new Date),x.value=T}else x.value=S.value;f("update:modelValue",x.value)}else Xe(S.value,x.value)&&(L.value=!0)};B(),t.watch([()=>n.longTerm],([T])=>{L.value!==T&&B()}),t.watch([()=>x.value],([T])=>{let K=!1;if(n.type==="daterange"&&Array.isArray(T))try{let J=T[1];if(!J)return;if(T[0]==null){f("update:modelValue",[]);return}typeof J!="string"&&n.valueFormat&&(J=se.format(J,n.valueFormat));let E=Array.isArray(S.value)?S.value[1]:S.value;(J===E||Array.isArray(C.value)&&C.value.findIndex(X=>J==X)!==-1)&&(K=!0)}catch(J){console.error(J)}L.value!==K&&(L.value=K)},{immediate:!0})}const q=t.computed(()=>({"fox-date-item__long":!0,"is-active":y.value})),te=t.ref(),P=t.ref(),A=/^\d+$/,j=(B,T)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,T):A.test(B)&&B.length===n.flashFillThreshold,H=(B,T)=>{let K;if(typeof n.flashFillFormat=="function")K=n.flashFillFormat(B,T);else{const E=n.flashFillFormat??"YYYYMMDD";K=se.parser(B,E)}const J=n.valueFormat??"YYYY-MM-DD";return se.format(K,J)},O=B=>B?B.endsWith("range"):!1,ee=B=>{if(!B.target)return;const T=B.target.value??"";if(j(T,n.type)){const K=H(T,n.type);if(O(n.type)){const J=Array.isArray(x.value)?[...x.value]:[];J[0]=K,m(J)}else m(K)}},le=B=>{if(!B.target)return;const T=B.target.value??"";if(j(T,n.type)){const K=H(T,n.type);if(O(n.type)){const J=Array.isArray(x.value)?[...x.value]:[];J[1]=K,m(J)}else m(K)}},G=()=>{if(n.flashFill&&te.value&&te.value.$el)if(O(n.type)){const B=te.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",ee),B[1]&&B[1].addEventListener("input",le)}else{const B=te.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",ee)}},N=()=>{if(n.flashFill&&te.value&&te.value.$el)if(O(n.type)){const B=te.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",ee),B[1]&&B[1].removeEventListener("input",le)}else{const B=te.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",ee)}};return t.onMounted(G),t.onBeforeUnmount(N),Se({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()},setDisabled:B=>{r.value=B},setReadonly:B=>{c.value=B}}),()=>{const T={...o.attrs,key:p.value,type:I.value,ref:P,class:u.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:$.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:D,onFocus:V,onBlur:b,onCalendarChange:v,onPanelChange:z,onVisibleChange:w},K={};o.slots["range-separator"]&&(K["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(K.default=o.slots.cell);const J=[],E=t.h(R.ElDatePicker,T,K);J.push(E);const Z={default:()=>J};if(Z.label=o.slots.default,Z.fixedPreTip=o.slots.fixedPreTip,Z.fixedTip=o.slots.fixedTip,Y){if(L.value){const ce=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),be=t.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),pe={class:q.value},Ne=t.h("div",pe,{default:()=>[ce,be]});J.push(Ne)}if(!i.value&&!s.value){const ce={label:U.value||_.value,disabled:i.value||s.value,modelValue:L.value,"onUpdate:modelValue":Q},be=t.h(R.ElCheckbox,ce),pe=t.h("div",{class:{[`${g}__append`]:!0}},[be]);Z.append=()=>pe}}const oe={...Re(n,uo,co),ref:te,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:k.value,hintVisible:M.value};return n.prop&&(oe.prop=`${n.prop}_item`),t.h(a,oe,Z)}}}}const{componentName:yc,create:bc,scope:wc}=ue("date-item"),ra=bc(vc(yc,wc,Pe)),xc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ia={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}},sa={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:{}}},Qr=2e3;let fo=Qr;const Sc=(e,l)=>({components:l,props:{...sa},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!==Qr&&(fo=Number(a.zIndex)),n("update:visible",!0),o.zIndex=++fo,a.destroyOnClose&&(o.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=p=>{n("click-pop",p)},d=p=>{p.stopPropagation(),n("click-close-icon",p),n("update:visible",!1)},y=p=>{n("click-overlay",p),a.closeOnClickOverlay&&n("update:visible",!1)},x=p=>{n("opend",p)},$=p=>{n("closed",p)};return t.watch(()=>a.visible,p=>{a.visible?i():f()}),t.watch(()=>a.closeable,p=>{o.closed=p}),{...t.toRefs(o),popStyle:s,transitionName:c,classes:r,onClick:h,onClickCloseIcon:d,onClickOverlay:y,onOpened:x,onClosed:$}}});let Bt=0;const ho="fox-overflow-hidden",mo=()=>gt?document.body:{classList:[]},Cc=e=>[()=>{if(e())try{!Bt&&mo().classList.add(ho),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&mo().classList.remove(ho)}catch{}}],Tc={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:$c,create:kc}=ue("overlay"),Dc=kc({props:{...Tc},emits:["click","update:visible"],setup(e,{emit:l}){const[a,n]=Cc(()=>e.lockScroll),o=t.computed(()=>({[$c]:!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 Nc(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 Gn=je(Dc,[["render",Nc]]),Ec=["aria-labelledby"],Pc=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),Ic=[Pc],Vc=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"},Ic,14,Ec))}}),Oc=["aria-labelledby"],Ac=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),Rc=[Ac],Fc=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"},Rc,14,Oc))}}),Mc=["aria-labelledby"],Bc=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),Lc=[Bc],_c=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"},Lc,14,Mc))}}),qc=["aria-labelledby"],zc=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),jc=[zc],Xn=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"},jc,14,qc))}}),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],ei=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],ti=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),Jc=[Zc],Qc=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"},Jc,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(Sc(uf,{FoxOverLay:Gn,Close:ei}));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 Tt=je(ff,[["render",df]]),go=39,po=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}=$e.useFoxI18n(mf),r=n(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${go}px`})),c=t.computed(()=>({height:`${po}px`})),i=JSON.parse(o("weekdays")),f=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),h=t.ref(null),d=t.ref(null),y=t.ref(null),x=t.ref(null),$=t.ref(0),p=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),m=t.computed(()=>a.btn),I=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}),k=G=>G.split("-"),M=G=>se.isEqual(u.currDate[0],G),V=G=>se.isEqual(u.currDate[1],G),b=G=>u.currDate?.length>0?u.currDate?.some(N=>se.isEqual(N,G)):!1,D=(G,N)=>N.curData[0]+"-"+N.curData[1]+"-"+se.getNumTwoBit(+G.day),v=(G,N)=>{const B=D(G,N),{type:T}=e;return G.type=="curr"?se.isEqual(u.currDate,B)||(T=="range"||T=="week")&&(M(B)||V(B))||T=="multiple"&&b(B)?`${u.dayPrefix}--active`:u.propStartDate&&se.compareDate(B,u.propStartDate)||u.propEndDate&&se.compareDate(u.propEndDate,B)?`${u.dayPrefix}--disabled`:(T=="range"||T=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&se.compareDate(u.currDate[0],B)&&se.compareDate(B,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},z=()=>{const{type:G}=e;if(G=="range"&&u.chooseData.length==2||G!="range"){let N=u.chooseData.slice(0);G=="week"&&(N={weekDate:[_(u.chooseData[0]),_(u.chooseData[1])]}),l("choose",N),e.poppable&&l("update")}},w=(G,N,B=!1)=>{if(v(G,N)!=`${u.dayPrefix}--disabled`){const{type:T}=e;let[K,J]=N.curData,E=[...N.curData];if(E[2]=se.getNumTwoBit(Number(G.day)),E[3]=`${E[0]}-${E[1]}-${E[2]}`,E[4]=se.getWhatDay(+E[0],+E[1],+E[2]),T=="multiple")if(u.currDate?.length>0){let Z;u.currDate?.forEach((X,oe)=>{X==E[3]&&(Z=oe)}),B?u.chooseData.push([...E]):Z!==void 0?(u.currDate.splice(Z,1),u.chooseData.splice(Z,1)):(u.currDate.push(E[3]),u.chooseData.push([...E]))}else u.currDate=[E[3]],u.chooseData=[[...E]];else if(T=="range"){let Z=Object.values(u.currDate).length;Z==2||Z==0?u.currDate=[E[3]]:se.compareDate(u.currDate[0],E[3])?Array.isArray(u.currDate)&&u.currDate.push(E[3]):Array.isArray(u.currDate)&&u.currDate.unshift(E[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...E]]:se.compareDate(u.chooseData[0][3],E[3])?u.chooseData=[...u.chooseData,[...E]]:u.chooseData=[[...E],...u.chooseData]}else if(T=="week"){let Z=se.getWeekDate(K,J,G.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=E[3],u.chooseData=[...E];if(!B){let Z=u.chooseData;T=="week"&&(Z={weekDate:[_(u.chooseData[0]),_(u.chooseData[1])]}),l("select",Z),(e.isAutoBackFill||!e.poppable)&&z()}}},_=G=>{let[N,B,T]=G;return{date:G,monthWeekNum:se.getMonthWeek(N,B,T,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(N,B,T,e.firstDayOfWeek)}},U=G=>{const N=u.monthsData[u.monthsData.length-1];let B=parseInt(N.curData[0]),T=parseInt(N.curData[1].toString().replace(/^0/,""));switch(G){case"prev":T==1&&(B-=1),T=T==1?12:--T;break;case"next":T==12&&(B+=1),T=T==12?1:++T;break}return[B+"",se.getNumTwoBit(T),se.getMonthDays(String(B),String(T))+""]},S=(G,N,B)=>{let{year:T,month:K}=B;return Array.from(Array(G),(J,E)=>({day:String(E+1),type:N,year:T,month:K}))},C=(G,N,B,T)=>{G=G-e.firstDayOfWeek;let{year:K,month:J}=B;return G>=7&&(G-=7),Array.from(Array(T),(Z,X)=>({day:String(X+1),type:N,year:K,month:J})).slice(T-G)},F=(G,N)=>{const B=se.getMonthPreDay(+G[0],+G[1]);let T=Number(G[1])-1,K=Number(G[0]);T<=0&&(T=12,K+=1);const J=se.getMonthDays(String(G[0]),String(G[1])),E=se.getMonthDays(K+"",T+""),Z={year:G[0],month:G[1]},X={curData:G,title:o("monthTitle",{year:Z.year,month:Z.month}),monthData:[...C(B,"prev",{month:String(T),year:String(K)},E),...S(J,"curr",Z)],cssHeight:0,cssScrollHeight:0},oe=X.monthData.length>35?6:5;X.cssHeight=go+po*oe;let ie=0;u.monthsData.length>0&&(ie=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),X.cssScrollHeight=ie,(!u.endData||!se.compareDate(`${u.endData[0]}-${u.endData[1]}-${se.getMonthDays(u.endData[0],u.endData[1])}`,`${G[0]}-${G[1]}-${G[2]}`))&&u.monthsData.push(X)},L=()=>{let G=e.startDate?e.startDate:se.getDay(0),N=e.endDate?e.endDate:se.getDay(365);u.propStartDate=G,u.propEndDate=N,u.startData=k(G),u.endData=k(N),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const B={year:Number(u.startData[0]),month:Number(u.startData[1])},T={year:Number(u.endData[0]),month:Number(u.endData[1])};let K=T.month-B.month;T.year-B.year>0&&(K=K+12*(T.year-B.year)),K<=0&&(K=1),F(u.startData);let J=1;do F(U("next"));while(J++<K);if(u.monthsNum=K,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(G&&se.compareDate(u.currDate[0],G)&&u.currDate.splice(0,1,G),N&&se.compareDate(N,u.currDate[1])&&u.currDate.splice(1,1,N),u.defaultData=[...k(u.currDate[0]),...k(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let E=[],Z={};u.currDate.forEach(X=>{G&&!se.compareDate(X,G)&&N&&!se.compareDate(N,X)&&(Object.hasOwnProperty.call(Z,X)||(E.push(X),Z[X]=X))}),u.currDate=[...E],u.defaultData=[...k(E[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[E,Z,X]=k(u.currDate[0]),oe=se.getWeekDate(E,Z,X,e.firstDayOfWeek);u.currDate=oe,G&&se.compareDate(u.currDate[0],G)&&u.currDate.splice(0,1,G),N&&se.compareDate(N,u.currDate[1])&&u.currDate.splice(1,1,N),u.defaultData=[...k(u.currDate[0]),...k(u.currDate[1])]}}else u.currDate&&(G&&se.compareDate(u.currDate,G)?u.currDate=G:N&&!se.compareDate(u.currDate,N)&&(u.currDate=N),u.defaultData=[...k(u.currDate)])};Se({scrollToDate:G=>{se.compareDate(G,u.propStartDate)?G=u.propStartDate:se.compareDate(G,u.propEndDate)||(G=u.propEndDate);let N=k(G);u.monthsData.forEach((B,T)=>{if(B.title==o("monthTitle",{year:N[0],month:N[1]})&&h.value){let K=u.monthsData[T].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let J=0,E=setInterval(()=>{if(J++,h.value){let Z=K/10;h.value.scrollTop=h.value.scrollTop+Z}J>=10&&(clearInterval(E),h.value&&(h.value.scrollTop=u.monthsData[T].cssScrollHeight))},40)}else h.value.scrollTop=u.monthsData[T].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let G=0,N=0;u.defaultData.length>0&&u.monthsData.forEach((K,J)=>{K.title==o("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(G=J),(e.type=="range"||e.type=="week")&&K.title==o("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(N=J)}),te(u.monthsNum,G),u.currentIndex=G,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(w({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),w({day:u.defaultData[5],type:"curr"},u.monthsData[N],!0)):e.type=="week"?w({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(K=>{let J=k(K),E=u.currentIndex;u.monthsData.forEach((Z,X)=>{Z.title==o("monthTitle",{year:J[0],month:J[1]})&&(E=X)}),w({day:J[2],type:"curr"},u.monthsData[E],!0)}):w({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let B=u.monthsData[u.monthsData.length-1],T=B.cssHeight+B.cssScrollHeight;Ll(()=>{h?.value&&d?.value&&x?.value&&($.value=h.value.clientHeight,d.value.style.height=`${T}px`,h.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(T/(u.monthsNum+1))}});const te=(G,N)=>{G>=3?N>0&&N<G?u.defaultRange=[N-1,N+3]:N==0?u.defaultRange=[N,N+4]:N==G&&(u.defaultRange=[N-2,N+2]):u.defaultRange=[0,G+2];let B=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=B},P=(G,N)=>(e.type=="range"||e.type=="week")&&G.type=="curr"&&v(G,N)=="fox-calendar__day--active",A=(G,N)=>P(G,N)&&M(D(G,N)),j=(G,N)=>u.currDate.length>=2&&V(D(G,N))?P(G,N):!1,H=()=>{if(u.currDate.length>=2)return se.isEqual(u.currDate[0],u.currDate[1])},O=G=>{const N=`${G.year}-${G.month}-${Number(G.day)<10?"0"+G.day:G.day}`;return se.isEqual(N,se.date2Str(new Date))},ee=G=>{if(u.monthsData.length<=1)return;const N=G.target.scrollTop;let B=Math.floor(N/u.avgHeight);if(B==0)N>=u.monthsData[B+1].cssScrollHeight&&(B+=1);else if(B>0&&B<u.monthsNum-1)N>=u.monthsData[B+1].cssScrollHeight&&(B+=1),N<u.monthsData[B].cssScrollHeight&&(B-=1);else{const T=Math.round(N+$.value);T<u.monthsData[B].cssScrollHeight+u.monthsData[B].cssHeight&&N>u.monthsData[B-1].cssScrollHeight&&(B-=1),B+1<=u.monthsNum&&T>=u.monthsData[B+1].cssScrollHeight+u.monthsData[B+1].cssHeight&&(B+=1),B>=1&&N<u.monthsData[B-1].cssScrollHeight&&(B-=1)}u.currentIndex!==B&&(u.currentIndex=B,te(u.monthsNum,B)),u.yearMonthTitle=u.monthsData[B].title},le=()=>{u.chooseData.splice(0),u.monthsData.splice(0),L()};return L(),t.watch(()=>e.defaultValue,G=>{G&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:c,weeks:f,compConthsData:p,showTopBtn:m,topInfo:I,bottomInfo:g,rangeTip:H,mothsViewScroll:ee,getClass:v,isStartTip:A,isEndTip:j,chooseDay:w,isCurrDay:O,confirm:z,months:h,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:y,viewArea:x}}}),pf={class:"fox-calendar__header"},vf={key:0,class:"fox-calendar__header-title"},yf={key:1,class:"fox-calendar__header-slot"},bf={key:2,class:"fox-calendar__header-subtitle"},wf={class:"fox-calendar__weekdays",ref:"weeksPanel"},xf={class:"fox-calendar__panel",ref:"monthsPanel"},Sf={class:"fox-calendar__days"},Cf=["onClick"],Tf={class:"fox-calendar__day-value"},$f={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},kf={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 Pf(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",pf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",vf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",yf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",bf,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",xf,[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",Sf,[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:h=>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",$f,[t.renderSlot(e.$slots,"top-info",{date:i.type=="curr"?i:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",kf,[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 If=je(gf,[["render",Pf]]),{create:Vf}=ue("calendar-picker"),Of=Vf({components:{CalendarPane:If,Popup:Tt},props:{...ia},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=m=>{c.value?.scrollToDate(m)},f=()=>{c.value?.initPosition()},h=t.computed(()=>{const m=["fox-calendar__popup"];return e.popClass&&m.push(e.popClass),m});t.watch(()=>e.visible,m=>{m&&t.nextTick(()=>{c.value?c.value.doLayout():setTimeout(()=>{c.value&&c.value.doLayout()},250)})}),Se({scrollToDate:i,initPosition:f});const d=()=>{l("update:visible",!1)},y=()=>{l("close"),l("update:visible",!1)};return{popClasses:h,closePopup:()=>{y()},update:d,close:y,select:m=>{l("select",m)},choose:m=>{y(),l("choose",m)},calendarRef:c,showTopBtn:n,topInfo:o,dayInfo:r,bottomInfo:s}}});function Af(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 Zn=je(Of,[["render",Af]]),hl=(e,l)=>{let a;return ht(e)?a=e:typeof e=="string"&&st(e)>0?a=se.parser(e,l):a=new Date,a},$t=(e,l,a)=>(ht(l)||(l=new Date),se.format(l,a)),kt=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]},vo={...ia,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 Rf(e,l,a){return{props:{...Ee,...Fe,...vo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({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:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]);let y=ye(n,"hintText"),x=t.ref(!1);const $=t.ref(!1),p=t.computed(()=>n.type==="range"),m=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),I=()=>{m.startDate!==null&&(m.startDate=null,m.endDate=null,m.startArray=[],m.endArray=[])},g=(Y,q="one",te="YYYY-MM-DD")=>{if(xc(Y)){I();return}if(p.value&&Array.isArray(Y)&&Y.length==2){let P,A;typeof Y[0]=="string"?(P=hl(Y[0],te),A=hl(Y[1],te)):(P=Y[0],A=Y[1]);let j=kt(P),H=kt(A);(m.startDate===null||m.startDate.getTime()!==P.getTime()||m.endDate?.getTime()!==A.getTime())&&(m.startDate=P,m.startArray=j,m.endDate=A,m.endArray=H)}else{let P;typeof Y=="string"?P=hl(Y,te):P=Y;let A=kt(P);(m.startDate===null||m.startDate.getTime()!==P.getTime())&&(m.startDate=P,m.startArray=A)}};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(m.startDate===null)return"";if(p.value){let Y=$t(n,m.startDate,n.format),q=$t(n,m.endDate,n.format);return`${Y} ${n.rangeSeparator} ${q}`}else{let Y=$t(n,m.startDate,n.format);return n.showWeek&&(Y=`${Y} ${m.startArray[4]}`),Y}}),k=t.computed(()=>{if(m.startDate===null)return null;if(p.value){let Y=se.date2Str(m.startDate),q=se.date2Str(m.endDate??new Date);return[Y,q]}else return se.date2Str(m.startDate)}),M="fox-input-item",V=t.computed(()=>({[M]:!0,[`${M}__disabled`]:s.value})),b=Me(t.computed(()=>n.textAlign),"textAlign"),D=t.computed(()=>({textAlign:b.value??"right"})),v=t.ref(!1),z=()=>{i.value||s.value||(v.value=!0)},w=()=>{v.value=!1},_=Y=>{v.value=Y},U=Y=>{if(Y){if(p.value&&Array.isArray(Y)){let q=Y[0],te=we(q[0]),P=we(q[1]),A=we(q[2]),j=new Date(te,P-1,A),H=Y[1];te=we(H[0]),P=we(H[1]),A=we(H[2]);let O=new Date(te,P-1,A);if(m.startDate=j,m.startArray=kt(j),m.endDate=O,m.endArray=kt(O),n.valueFormat){let ee=$t(n,j,n.valueFormat),le=$t(n,O,n.valueFormat);f("update:modelValue",[ee,le],{})}else f("update:modelValue",[j,O],{})}else{let q=Y,te=we(q[0]),P=we(q[1]),A=we(q[2]),j=new Date(te,P-1,A);if(m.startDate=j,m.startArray=kt(j),n.valueFormat){let H=$t(n,j,n.valueFormat);f("update:modelValue",H,{})}else f("update:modelValue",j,{})}f("change",Y,{})}},S=Y=>{let te=Y.target.value;$.value=!0,f("focus",te,Y)},C=Y=>{setTimeout(()=>{$.value=!1},0);let te=Y.target.value;n.maxLength&&te.length>Number(n.maxLength)&&(te=te.slice(0,Number(n.maxLength))),f("blur",te,Y)},F=t.computed(()=>st(n.unit)>0),L=Y=>{I(),f("update:modelValue",null,Y),f("change","",Y),f("clear","")},Q=t.ref();return Se({showPicker:z,hidePicker:w,focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},select:()=>{Q?.value.select()},setDisabled:Y=>{r.value=Y},setReadonly:Y=>{c.value=Y}}),()=>{const Y={class:V.value,style:D.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:n.clearable,value:u.value,onClick:z,onFocus:S,onBlur:C,onClear:L},q={};o.slots.prepend&&(q.prepend=o.slots.prepend),o.slots.append&&(q.append=o.slots.append),o.slots.prefix?q.prefix=o.slots.prefix:q.prefix=()=>t.h(R.ElIcon,{},{default:()=>t.h(Ie.Calendar)}),o.slots.suffix?q.suffix=o.slots.suffix:F.value&&(q.suffix=()=>[n.unit]);const te=[],P=t.h(R.ElInput,Y,q);te.push(P);const A={default:()=>te};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const j=rt(n,ia);j.visible=v.value,j["onUpdate:visible"]=_,j["default-value"]=k.value,j.onChoose=U;const H={};if(o.slots.btn){const N=o.slots.btn();H.btn=()=>N}o.slots.day&&(H.day=o.slots.day),o.slots.topInfo&&(H.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(H.bottomInfo=o.slots.bottomInfo);const O=t.h(Zn,j,H);A.hide=()=>[O];const le={...Re(n,vo),hintText:y.value,hintVisible:x.value};return n.prop&&(le.prop=`${n.prop}_item`),t.h(a,le,A)}}}}const{componentName:Ff,create:Mf,scope:Bf}=ue("calendar-item"),ua=Mf(Rf(Ff,Bf,Pe)),yo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Lf(e,l,a){return{props:{...Ee,...Fe,...yo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=ye(n,"modelValue",null,f),$=e,p=t.computed(()=>({[$]:!0})),m=D=>{x.value=D,f("update:modelValue",D),f("change",D)};let I=ye(n,"hintText"),g=t.ref(!1);const u=D=>{let z=D.target.value;y.value=!0,ge(I.value)||(g.value=!0),f("focus",z,D)},k=D=>{setTimeout(()=>{g.value&&(g.value=!1),y.value=!1},0);let z=D.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),f("blur",z,D)},M=()=>{f("clear","")},V=D=>{f("visible-change",D)},b=t.ref();return Se({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()},setDisabled:D=>{r.value=D},setReadonly:D=>{c.value=D}}),()=>{const v={...o.attrs,ref:b,class:p.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:x.value,"onUpdate:modelValue":m,onClear:M,onFocus:u,onBlur:k,onVisibleChange:V},z={},w=[],_=t.h(R.ElTimePicker,v,z);w.push(_);const U={default:()=>w};U.label=o.slots.default,U.fixedPreTip=o.slots.fixedPreTip,U.fixedTip=o.slots.fixedTip;const C={...Re(n,yo),hintText:I.value,hintVisible:g.value};return n.prop&&(C.prop=`${n.prop}_item`),t.h(a,C,U)}}}}const{componentName:_f,create:qf,scope:zf}=ue("time-item"),ca=qf(Lf(_f,zf,Pe)),bo={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:{...Ee,...Fe,...bo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=ye(n,"modelValue",null,f),$=e,p=t.computed(()=>({[$]:!0})),m=b=>{x.value=b,f("update:modelValue",b),f("change",b)};let I=ye(n,"hintText"),g=t.ref(!1);const u=b=>{let v=b.target.value;y.value=!0,ge(I.value)||(g.value=!0),f("focus",v,b)},k=b=>{setTimeout(()=>{g.value&&(g.value=!1),y.value=!1},0);let v=b.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),f("blur",v,b)},M=()=>{f("clear","")},V=t.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()},setDisabled:b=>{r.value=b},setReadonly:b=>{c.value=b}}),()=>{const D={...o.attrs,ref:V,class:p.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:x.value,"onUpdate:modelValue":m,onClear:M,onFocus:u,onBlur:k},v={},z=[],w=t.h(R.ElTimeSelect,D,v);z.push(w);const _={default:()=>z};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const S={...Re(n,bo),hintText:I.value,hintVisible:g.value};return n.prop&&(S.prop=`${n.prop}_item`),t.h(a,S,_)}}}}const{componentName:Hf,create:Kf,scope:Wf}=ue("time-select-item"),fa=Kf(jf(Hf,Wf,Pe));function wo(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 xo(e,l,a=20){if(typeof l=="string"&&(l=we(l)),l==1||l==-1)return`${e}`;if(l==0)return"0";if(l>0){let n=gr(`${e}`,`${l}`);return wo(n)}else{let n=ql(`${e}`,pr(`${l}`),20);return wo(n)}}function Yf(e,l=-1,a=!1,n=3,o=","){return Nn(e,l,a,n,o)}function So(e,l,a,n,o=!0){if(e==="")return"";if(e=vr(e),l=we(l),l==1)return e;if(n)e=xo(e,l),a&&(e=="0"&&o?e=`${e}.`.padEnd(we(a)+2,"0"):e=ql(e,1,we(a)));else{let r=-1*l;e=xo(e,r)}return e}function Co(e,l){let a={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let n=fe(l.minInclude),o=kl(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=fe(l.maxInclude),o=kl(e,l.max);(n&&o==1||!n&&(o==0||o==1))&&(a.maxValid=!1)}return a}const To={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:{...Ee,...Fe,...To},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),h=t.ref(!1),d=ye(n,"modelValue",null,f),y=t.ref("");t.watch([()=>d.value,()=>n.rates,()=>n.precision],([C,F,L])=>{if(ge(C)){y.value="";return}const Q=So(C,F,L,!1);y.value!==Q&&(y.value=Q)},{immediate:!0});const x=t.computed(()=>{let C="";return h.value&&(C=y.value),C}),{t:$}=$e.useFoxI18n(l),p=t.computed(()=>{let C=n.placeholder??"";return!h.value&&!ge(y.value)?C=Yf(y.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=$(["placeholder",C]),C}),m=e,I=t.computed(()=>({[m]:!0,[`${m}__disabled`]:s.value,[`${m}__placeholder`]:y.value.length>0})),g=Me(t.computed(()=>n.textAlign),"textAlign");t.computed(()=>h.value?{textAlign:"left"}:{textAlign:g.value??"right"});const u=t.ref(""),k=t.computed(()=>{let C=u.value;return ge(C)&&(C=n.errorTip??""),C}),M=t.ref(""),V=t.ref(!1),b=(C,F)=>{if(C=`${C}`,ge(C)){y.value="",d.value="",F.forEach(L=>{f(L,"")}),fe(n.showTip)&&V.value&&(V.value=!1);return}if(C.length>=2){let L=C;if(L.charAt(0)=="-"&&(L=L.substring(1)),L.length>=2&&L.charAt(0)=="0"&&L.charAt(1)!="."){t.triggerRef(y);return}}if(C!="-"){if(!jl(C)){t.triggerRef(y);return}if(n.integerLength!=-1&&$r(C)>Number(n.integerLength)){t.triggerRef(y);return}if(n.decimalLength&&n.decimalLength!=-1&&kr(C)>Number(n.decimalLength)){t.triggerRef(y);return}let L=Co(C,n);if(L.maxValid===!1){u.value=L.message,t.triggerRef(y);return}}else if(n.min!=null&&we(n.min)>=0){t.triggerRef(y);return}M.value=C,fe(n.showTip)&&(V.value=C.length>0),y.value=C,d.value=So(C,n.rates,n.precision,!0),F.forEach(L=>{f(L,d.value)})},D=C=>{b(C,["update:modelValue","input"])},v=C=>{b(C,["update:modelValue","change"])},z=C=>{if(h.value=!0,fe(n.showTip)){let F=y.value;ge(F)&&(F=n.hintText),ge(F)||(M.value=F,V.value=!0)}u.value="",f("focus",d.value,C)},w=C=>{if(setTimeout(()=>{h.value=!1,fe(n.showTip)&&V.value===!0&&(V.value=!1)},0),!ge(y.value)){let F=Co(y.value,n);if(F.minValid===!1||F.maxValid===!1){u.value=F.message;return}}f("update:modelValue",d.value,C),f("blur",d.value,C)},_=()=>{f("clear","")},U=t.computed(()=>st(n.unit)>0),S=t.ref();return Se({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},select:()=>{S?.value.select()},setDisabled:C=>{r.value=C},setReadonly:C=>{c.value=C}}),()=>{const F={...Qe(o.attrs),ref:S,class:I.value,type:"digit",maxlength:n.maxLength,placeholder:p.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:x.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onInput:D,onChange:v,onFocus:z,onBlur:w},L={};o.slots.prepend&&(L.prepend=o.slots.prepend),o.slots.append&&(L.append=o.slots.append),o.slots.prefix&&(L.prefix=o.slots.prefix),o.slots.suffix?L.suffix=o.slots.suffix:U.value&&(L.suffix=()=>[n.unit]);const Q=[],Y=t.h(R.ElInput,F,L);Q.push(Y);const q={default:()=>Q};q.label=o.slots.default,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const P={...Re(n,To),errorTip:k.value,hintText:M.value,hintVisible:V.value,hintType:"number"};return n.prop&&(P.prop=`${n.prop}_item`),t.h(a,P,q)}}}}const{componentName:Gf,create:Xf,scope:Zf}=ue("money-item"),da=Xf(Uf(Gf,Zf,Pe)),$o={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 Jf(e,l,a){return{props:{...Ee,...Fe,...$o},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=ye(n,"modelValue",null,f),$=e,p=t.computed(()=>({[$]:!0,[`${$}__append`]:D.value})),m=t.computed(()=>({[`${$}__unit`]:!0})),I=z=>{x.value=z,f("update:modelValue",z),f("input",z)},g=z=>{f("change",z)};let u=ye(n,"hintText"),k=t.ref(!1);const M=z=>{let _=z.target.value;y.value=!0,ge(u.value)||(k.value=!0),f("focus",_,z)},V=z=>{setTimeout(()=>{k.value&&(k.value=!1),y.value=!1},0);let _=z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),f("blur",_,z)},b=()=>{f("clear","")},D=t.computed(()=>st(n.unit)>0),v=t.ref();return Se({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},setDisabled:z=>{r.value=z},setReadonly:z=>{c.value=z}}),()=>{const w={...Qe(o.attrs),ref:v,class:p.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:x.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:b,onChange:g,onInput:I,onFocus:M,onBlur:V},_={},U=[],S=t.h(R.ElInputNumber,w,_);U.push(S);const C={default:()=>U};C.label=o.slots.default,C.fixedPreTip=o.slots.fixedPreTip,C.fixedTip=o.slots.fixedTip;const L={...Re(n,$o),hintText:u.value,hintVisible:k.value};if(n.prop&&(L.prop=`${n.prop}_item`),o.slots.append)C.append=o.slots.append;else if(D.value){const Y={class:m.value},q=t.h("div",Y,[n.unit]);C.append=()=>q}return t.h(a,L,C)}}}}const{componentName:Qf,create:ed,scope:td}=ue("input-number-item"),ha=ed(Jf(Qf,td,Pe));function ut(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function St(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=Be(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(Ke(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 Rl(e,l,a){const n=ut(e,l),o=ut(e,a);if(n!==o)return!1;const r=St(e,l),s=St(e,a);return r===s}function ni(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=ni(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=Rl(e,f,c);else{let h=St(e,f);h==null&&(h=ut(e,f)),i=h===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 ko={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:{...Ee,...Fe,...ko},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=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(null),x=t.ref([]),$=t.computed(()=>x.value?x.value.map(B=>Array.isArray(B)?B.map(K=>ut(n,K)).join(" "):ut(n,B)).join(" "):""),p=(N,B,T,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(y.value===N)return;y.value=N;const X=t.toRaw(N);if(K){const oe=G?.value.getCheckedNodes();if(oe)if(n.multiple){const ie=[];oe.forEach(ce=>{const pe=(ce.pathNodes??[]).map(Ne=>Ne.data);ie.push(pe)}),f("update:pathNodes",ie)}else{const ce=(oe[0]?.pathNodes??[]).map(be=>be.data);f("update:pathNodes",ce)}f("update:modelValue",X),f("change",X)}return}const J=ni(n,N,B,T);if(J===null){if(x.value.length===0||x.value===null)return;x.value=[],y.value=null,K&&(f("update:pathNodes",[]),f("update:modelValue",null),f("change",null));return}const E=J[J.length-1];if(_.value.checkStrictly!==!0&&E&&!Array.isArray(E)&&Array.isArray(E.children)&&E.children.length>0){const X=[];J.forEach(oe=>{const ie=`${ut(n,oe)}`;X.push(ie)}),X.length>0&&(z.value=X.join(n.separator))}else z.value=null;let Z=!0;if(J.length!==x.value.length)Z=!1;else for(let X=0;X<J.length;X++){const oe=J[X],ie=x.value[X];if(Array.isArray(oe)){if(!Array.isArray(ie)||oe.length!==ie.length)Z=!1;else for(let ce=0;ce<oe.length;ce++)if(!Rl(n,oe[ce],ie[ce])){Z=!1;break}}else Rl(n,oe,ie)||(Z=!1);if(!Z)break}if(!Z){x.value=J;let X=[],oe=[];J.forEach(ce=>{if(Array.isArray(ce)){let be=[],pe=[];for(let Ne of ce)be.push(St(n,Ne)),n.valueType==="text"?pe.push(ut(n,Ne)):n.valueType==="item"?pe.push(Ne):pe.push(St(n,Ne));X.push(be),oe.push(pe)}else X.push(St(n,ce)),n.valueType==="text"?oe.push(ut(n,ce)):n.valueType==="item"?oe.push(ce):oe.push(St(n,ce))}),y.value=X;const ie=t.toRaw(oe);K&&(f("update:pathNodes",J),f("update:modelValue",ie),f("change",ie))}},m=t.ref([]),I=Me(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,N=>fe(N)),g=ad(),u=async(N,B)=>{if(N){const T=await g.load("cascader",N,B);if(T.length>0)if(typeof T[0]=="string"){let E=T.map(Z=>od(Z));m.value=E}else m.value=T}};t.watch([()=>n.source,()=>n.params],async([N,B])=>{u(N,B)},{immediate:!(I.value||n.lazy)});let k=!1;const M=()=>{k||(k=!0,u(n.source,n.params))};t.watch([()=>m.value,()=>n.modelValue],([N,B])=>{p(B,n.valueType,N,!1),f("setValue",B)}),n.lazy&&p(n.modelValue,"value",[],!1);let V=null,b=t.ref(!1);typeof n.remoteMethod=="function"&&(V=async N=>{if(N!=null){b.value=!0;try{const B=await n.remoteMethod(N);m.value=B}catch(B){console.error(B)}b.value=!1}});const D=t.ref(!1),v=e,z=t.ref(null),w=t.computed(()=>({[v]:!0,"is-incomplete":z.value&&z.value.length>0})),_=t.computed(()=>{let N={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(N.multiple=!0),n.props&&Object.assign(N,n.props),n.lazy&&(N.lazy=!0,typeof n.lazyLoad=="function"?N.lazyLoad=n.lazyLoad:N.lazyLoad=async(B,T)=>{let K={};n.params&&Object.assign(K,n.params),B&&Object.assign(K,B);const J=await g.load("cascader",n.source,K,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(y.value)&&y.value.length===B.level){const E=B.pathLabels??[];let Z=[];E.forEach(X=>{X&&Z.push(X)}),Z.length>0&&(z.value=Z.join(n.separator))}else z.value=null;T(J)}),N}),U=N=>{n.allowCreate?(f("update:modelValue",N),f("change",N),y.value=N):p(N,"value",m.value,!0)};let S=ye(n,"hintText"),C=t.ref(!1);const F=N=>{let T=N.target.value;D.value=!0,ge(S.value)||(C.value=!0),f("focus",T,N)},L=N=>{setTimeout(()=>{C.value&&(C.value=!1),D.value=!1},0);let T=N.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),H.value||f("blur",T,N)},Q=()=>{f("clear","")},Y=t.ref(!1);let q=null;const te=()=>{n.showTooltip&&Y.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{Y.value=!0},150))},P=()=>{q&&(clearTimeout(q),Y.value=!1,q=null)},A=t.computed(()=>Y.value||C.value),j=t.computed(()=>Y.value?$.value:S.value),H=t.ref(!1),O=N=>{H.value=N,f("visible-change",N),N||f("selected")},ee=N=>{f("remove-tag",N)},le=N=>{f("expand-change",N)},G=t.ref();return Se({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},getCheckedNodes:()=>G?.value.getCheckedNodes(),setDisabled:N=>{r.value=N},setReadonly:N=>{c.value=N}}),()=>{const B={...o.attrs,ref:G,class:w.value,props:_.value,clearable:n.clearable,placeholder:z.value||d.placeholder.value,disabled:s.value||i.value,options:m.value,modelValue:y.value,separator:n.separator,onClear:Q,onChange:U,onFocus:F,onBlur:L,onVisibleChange:O,onRemoveTag:ee,expandChange:le};typeof V=="function"&&(B["remote-method"]=V,B.loading=b.value);const T={};o.slots.option&&(T.default=o.slots.option),o.slots.empty&&(T.empty=o.slots.empty);const K=[],J=t.h(R.ElCascader,B,T);K.push(J);const E={default:()=>K};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const X={...Re(n,ko),hintText:j.value,hintVisible:A.value,onMouseover:te,onMouseleave:P};return n.prop&&(X.prop=`${n.prop}_item`),I.value&&!n.lazy&&(X["appear-listen"]=!0,X.onAppear=M),t.h(a,X,E)}}}}const{componentName:id,create:sd,scope:ud}=ue("cascader-item"),ma=sd(rd(id,ud,Pe)),Do={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:{...Ee,...Fe,...Do},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=ye(n,"modelValue",null,f),$=e,p=t.computed(()=>({[$]:!0})),m=v=>{x.value=v,f("update:modelValue",v),f("input",v)},I=v=>{f("change",v)},g=v=>{f("select",v)};let u=ye(n,"hintText"),k=t.ref(!1);const M=v=>{let w=v.target.value;y.value=!0,ge(u.value)||(k.value=!0),f("focus",w,v)},V=v=>{setTimeout(()=>{k.value&&(k.value=!1),y.value=!1},0);let w=v.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),f("blur",w,v)},b=()=>{f("clear","")},D=t.ref();return Se({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const z={...o.attrs,ref:D,class:p.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:x.value,onClear:b,onChange:I,onInput:m,onFocus:M,onBlur:V,onSelect:g},w={};o.slots.prepend&&(w.prepend=o.slots.prepend),o.slots.append&&(w.append=o.slots.append),o.slots.prefix&&(w.prefix=o.slots.prefix),o.slots.suffix&&(w.suffix=o.slots.suffix),o.slots.option&&(w.default=o.slots.option);const _=[],U=t.h(R.ElAutocomplete,z,w);_.push(U);const S={default:()=>_};S.label=o.slots.default,S.fixedPreTip=o.slots.fixedPreTip,S.fixedTip=o.slots.fixedTip;const F={...Re(n,Do),hintText:u.value,hintVisible:k.value};return n.prop&&(F.prop=`${n.prop}_item`),t.h(a,F,S)}}}}const{componentName:fd,create:dd,scope:hd}=ue("autocomplete-item"),ga=dd(cd(fd,hd,Pe));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 h=r[f],d=i.find(y=>y[n]===h);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],h=r[i];const d=f.find(y=>y[n]===h);if(!d)break;s.push(d[a])}else{let i=l;for(let f=0;i&&f<r.length;f++){let h=r[f],d=i.find(y=>y[n]===h);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=Be(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function pd(){const e=t.getCurrentInstance();return new gd(e.proxy)}const li={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 vd(e,l){return{props:{...li},setup(a,{attrs:n,slots:o}){const r=pd(),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:yd}=ue("mapping"),Kt=yd(vd());function bd(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 h=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][h]}else n=n[h];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:{...li},setup(a,{attrs:n,slots:o}){return()=>{const r={default:s=>{const c=bd(s.row,s.column.property);return o.default?t.h(Kt,{...a,modelValue:c},{default:o.default}):t.h(Kt,{...a,modelValue:c})}};for(let s in o)s!=="default"&&(r[s]=o[s]);return t.h(R.ElTableColumn,{...n},r)}}}}const{create:xd}=ue("table-mapping-column"),pa=xd(wd()),Sd=Symbol.for("TableStateKey");function No(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 h=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][h]}else n=n[h];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(Sd,{});return()=>{const r=o.currentRow?o.currentRow.value:null,s={default:c=>{const i=No(c.row,c.column.property),f=r?No(r,c.column.property):null,h=i===f,d={class:{"el-radio__input":!0,"is-checked":h}},y=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":h}};return t.h("label",x,[y])}};return t.h(R.ElTableColumn,{...n},s)}}}}const{create:Td}=ue("table-radio-column"),va=Td(Cd()),$d={},kd={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",kd,[...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=je($d,[["render",Dd]]),{create:Ed}=ue("table-setting"),Pd={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:"不固定"}},Id=Ed({components:{FoxPopover:R.ElPopover,FoxCheckbox:R.ElCheckbox,FoxCheckboxGroup:R.ElCheckboxGroup,FoxButton:R.ElButton,FoxIcon:R.ElIcon,DragIcon:Nd,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Pd},setup(e,{emit:l,attrs:a}){let n=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(O=>O.label===""||O.type?!1:O.fixed===""||O.fixed===!0||O.fixed==="left")),s=t.computed(()=>o.value.filter(O=>O.label===""||O.type?!1:O.fixed==="right")),c=t.computed(()=>o.value.filter(O=>!(O.label===""||O.type||O.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),h=t.computed(()=>s.value.length>0),d=O=>O.length>1,y=(O,ee)=>{Array.isArray(O)&&Array.isArray(ee)&&O.forEach(N=>{ee.some(B=>B.prop===N.prop?(N.label=B.label,!0):!1)});const le=[];o.value=O.map((N,B)=>(!(N.label===""||N.type)&&N.visible!==!1&&le.push(N.prop),{...N,sortIndex:B})),c.value.length+r.value.length+s.value.length===le.length?g.value=!0:le.length>0&&(u.value=!0),V.value=le},x=O=>O?O.type?O.type:O.label?O.prop:"":"",$=(O,ee)=>{if(O.length!==ee.length)return!1;const le=O.map(G=>x(G));for(let G of ee){const N=x(G);if(le.indexOf(N)===-1)return!1}return!0},p=O=>{if(!O){const ee=e.tableRef.getColumnSetting(),le=ee.srcColumnPropertyList;n=le.map((G,N)=>({...G,sortIndex:N})),O=ee.columnPropertyList,O&&O.length>0&&$(le,O)||(O=le)}y(O,n)},m=()=>{e.tableRef.setColumnSetting(o.value)},I=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),u=t.ref(!1),k=O=>{const ee=[];o.value.forEach(G=>{O&&!(G.label===""||G.type)&&ee.push(G.prop),G.visible=O}),g.value=!1,u.value=!1,c.value.length+r.value.length+s.value.length===ee.length?g.value=!0:ee.length>0&&(u.value=!0),V.value=ee,m()},M=()=>{p(n),m()},V=t.ref([]),b=O=>{o.value.forEach(le=>{if(le.label===""||le.type)return;const G=O.indexOf(le.prop)!==-1;le.visible=G}),g.value=!1,u.value=!1;const ee=c.value.length+r.value.length+s.value.length;O.length===ee?g.value=!0:O.length>0&&(u.value=!0),m()},D=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const v={currentRow:null,index:null,roleType:null},z=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,z(O)):null:null,w=O=>{const ee=O.currentTarget;ee&&ee.dataset&&(v.roleType=ee.dataset.roleType,v.index=ee.dataset.index)},_=O=>{v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null),v.index=null,v.roleType=null},U=O=>{const ee=O.currentTarget;O.relatedTarget;const le=z(ee);if(!le)return;const G=le.dataset&&le.dataset.roleType;v.roleType===G&&(O.preventDefault(),v.currentRow&&v.currentRow!==le&&v.currentRow.classList.remove("is-dragover"),le.classList.add("is-dragover"),v.currentRow=le)},S=O=>{O.preventDefault(),v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null)},C=O=>{const ee=O.currentTarget,le=z(ee);if(!le)return;const G=le.dataset&&le.dataset.roleType;if(v.roleType!==G)return;O.preventDefault();const N=Number(v.index),B=Number(le.dataset.index);if(N!==B){if(N<B){const T=o.value[N];o.value.splice(N,1),o.value.splice(B,0,T)}else{const T=o.value[N];o.value.splice(N,1),o.value.splice(B+1,0,T)}y(o.value,n),m()}},F=O=>{const ee=o.value[O];ee.fixed="left",m()},L=O=>{const ee=o.value[O];ee.fixed="right",m()},Q=O=>{const ee=o.value[O];ee.fixed=void 0,m()},Y=new Map;let q=null;function te(O){const ee=document.createRange();return ee.setStart(O,0),ee.setEnd(O,O.childNodes.length),ee.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:c,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:h,isDraggble:d,isCheckAll:g,isIndeterminate:u,handleCheckAllChange:k,handleReset:M,checkedValue:V,handleCheckChange:b,onShow:D,onDragStart:w,onDragEnd:_,onDragOver:U,onDragLeave:S,onDrop:C,toLeftFixed:F,toRightFixed:L,toUnFixed:Q,checkboxLabelStyle:I,onMouseOverForOverflowText:(O,ee,le)=>{const G=O.currentTarget;if(G){const N=Math.floor(G.offsetWidth);if(Math.floor(te(G))>N){let T=Y.get(ee);if(T){if(T===q)return;_e.hide(T)}T=_e.show(G,le,{type:"text",placement:"top",closeOnClick:!1}),T&&(Y.set(ee,T),q=T)}}},onMouseLeaveForOverflowText:(O,ee)=>{const le=Y.get(ee);le&&(_e.hide(le),le===q&&(q=null))},onMouseOverForTip:(O,ee)=>{const le=O.currentTarget;le&&(q&&_e.hide(q),q=_e.show(le,ee,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{q&&(_e.hide(q),q=null)}}}}),Vd={class:"fox-table-setting"},Od={class:"fox-table-setting__header"},Ad={class:"fox-table-setting__body"},Rd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Fd={key:0,class:"fox-table-setting__body-title"},Md=["data-index","draggable"],Bd=["onMouseover","onMouseleave"],Ld={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"),h=t.resolveComponent("FoxIcon"),d=t.resolveComponent("Download"),y=t.resolveComponent("fox-checkbox"),x=t.resolveComponent("FoxCheckboxGroup"),$=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock($,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",Vd,[t.createElementVNode("div",Od,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=p=>e.isCheckAll=p),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Ad,[t.createVNode(x,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Rd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Fd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:l[5]||(l[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:l[6]||(l[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:l[7]||(l[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:l[8]||(l[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:l[9]||(l[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",value:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,p.prop,p.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Bd)]),_:2},1032,["value"]),t.createElementVNode("div",Ld,[t.createVNode(h,{onClick:m=>e.toUnFixed(p.sortIndex),onMouseover:l[1]||(l[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:l[2]||(l[2]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(h,{onClick:m=>e.toRightFixed(p.sortIndex),onMouseover:l[3]||(l[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:l[4]||(l[4]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"])])],40,Md))),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,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:l[14]||(l[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:l[15]||(l[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:l[16]||(l[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:l[17]||(l[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:l[18]||(l[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",value:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,p.prop,p.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,jd)]),_:2},1032,["value"]),t.createElementVNode("div",Hd,[t.createVNode(h,{onClick:m=>e.toLeftFixed(p.sortIndex),onMouseover:l[10]||(l[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:l[11]||(l[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:1},8,["onClick"]),t.createVNode(h,{onClick:m=>e.toRightFixed(p.sortIndex),onMouseover:l[12]||(l[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:l[13]||(l[13]=m=>e.onMouseLeaveForTip(m))},{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,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:l[23]||(l[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:l[24]||(l[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:l[25]||(l[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:l[26]||(l[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:l[27]||(l[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(y,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,p.prop,p.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Ud)]),_:2},1032,["label"]),t.createElementVNode("div",Gd,[t.createVNode(h,{onClick:m=>e.toUnFixed(p.sortIndex),onMouseover:l[19]||(l[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:l[20]||(l[20]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(h,{onClick:m=>e.toLeftFixed(p.sortIndex),onMouseover:l[21]||(l[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:l[22]||(l[22]=m=>e.onMouseLeaveForTip(m)),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 Gt=je(Id,[["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,h=f+o;h>a.length&&(h=a.length);const d=a.slice(f,h);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s,c]);const i=Be(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(Ke(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r,s,c]))}};function Jd(){const e=t.getCurrentInstance();return new Zd(e.proxy)}let Qd=class{proxy;constructor(l){this.proxy=l}async load(l){let a=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",l])),a}save(l,a){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,a])}remove(l){const a=Be(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",l])}};function eh(){const e=t.getCurrentInstance();return new Qd(e.proxy)}const th=Symbol.for("TableStateKey"),Eo={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"}},Po={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}},ml={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 h=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][h]}else n=n[h];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function gl(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:{...Ee,...Fe,...Eo,...Po,...ml,...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}=$e.useFoxI18n(l),c=s(n,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=Ve({componentName:e,validateHandler:{getValue(...W){return v.value}}},n.prop??o.attrs.name),h=e,d=t.computed(()=>({[h]:!0})),y=t.computed(()=>({[`${h}__setting`]:!0})),x=t.computed(()=>({[`${h}__footer`]:!0,[`${h}__footer__${n.footerAlign}`]:!0})),$=t.computed(()=>({[`${h}__pagination`]:!0,[`${h}__pagination__${n.paginationAlign}`]:!0})),p=t.shallowRef({}),m=t.computed(()=>({...p.value,...n.params??{},...n.baseParams??{}})),I=t.ref(n.infiniteLoad===!0?0:n.pageIndex),g=t.ref(n.pageSize),u=fe(n.infiniteLoad);u||(t.watch(()=>n.pageIndex,W=>{I.value=W}),t.watch(()=>n.pageSize,W=>{g.value=W}),t.watch([I,g],([W,ne],[ae,re])=>{ne!==re&&(I.value=1,W=1),U(n.data,W,ne,m.value)}));const k=()=>Array.isArray(n.data)?!0:fe(n.autoLoad);k()&&t.watch([()=>n.data,m],async([W,ne],[ae,re])=>{k()&&(W!==ae&&(w=!0),!(!Array.isArray(W)&&Xe(W,ae)&&Xe(ne,re))&&(u?(I.value=0,b.value=!0,v.value=[],C()):I.value===1?U(W,I.value,g.value,ne):I.value=1))},{deep:!0});const M=W=>{I.value=W,i("page-index-change",W)},V=W=>{g.value=W,i("page-size-change",W)},b=t.ref(!0),D=t.ref(0),v=t.ref([]),z=Jd();let w=!0;const _=Me(t.computed(()=>n.lazyLoad),"lazyLoad",Ge.Near,W=>fe(W)),U=async(W,ne,ae,re,ve)=>{w=!1;try{if(ve===!0){if(!b.value)return!1;const de=await z.load("table",W,ne,ae,re,w,r.value);return D.value=de.totalSize,!de.page||!Array.isArray(de.page)||(Reflect.apply([].push,v.value,de.page),setTimeout(()=>{i("loaded-data")},250),(v.value?.length??0)>=D.value)||de.page.length<ae?(b.value=!1,!1):!0}else{const de=await z.load("table",W,ne,ae,re,w,r.value);return D.value=de.totalSize,v.value=de.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(de){console.error("[FoxUI] Load Table Data Fail",de),D.value=0,v.value=[]}return!1};let S=!1;const C=async()=>{if(!S){if(S=!0,!b.value){S=!1;return}I.value+=1,await U(n.data,I.value,g.value,m.value,!0),S=!1}},F=(W={},ne=!1)=>new Promise(async ae=>{p.value=t.toRaw(W??{}),ne||(I.value=n.pageIndex??1),u===!0?(I.value=0,v.value=[],b.value=!0,await C()):await U(n.data,I.value,g.value,m.value),ae()}),L=()=>{D.value=0,v.value=[],u===!0&&(I.value=0,b.value=!0)};let Q=!1;const Y=()=>{Q||(Q=!0,F())},q=t.ref(null);if(u===!0){let W=null;const ne=()=>{q.value&&(W=new IntersectionObserver(re=>{let ve=!1;for(let de of re)if(de.intersectionRatio>0){ve=!0;break}ve&&C()}),W.observe(q.value))},ae=()=>{!W||!q.value||(W.unobserve(q.value),W=null)};t.onMounted(ne),t.onBeforeUnmount(ae)}k()&&!_.value&&F();const te=t.ref(null);t.provide(th,{currentRow:te});const P=(W,ne)=>{te.value=W,i("current-change",W,ne)},A=(W,ne,ae)=>{i("row-click",W,ne,ae),fe(n.rowClickSelectable)===!0&&he?.value.toggleRowSelection(W)},j=[],H=(W,ne)=>{if(i("expand-change",W,ne),fe(n.uniqueExpansion))if(Array.isArray(ne)&&ne.length==0){const ae=j.length;j.splice(0,ae)}else{j.forEach(re=>{re!==W&&he?.value.toggleRowExpansion(re,!1)});const ae=j.length;j.splice(0,ae,W)}},O=o.attrs.id??n.prop??o.attrs.name,ee=eh(),le=t.ref([]);let G=[];const N=()=>({srcColumnPropertyList:G.map(ne=>({...ne})),columnPropertyList:le.value}),B=W=>{le.value=[...W],K()},T=async()=>{const W=await ee.load(O);W&&(le.value=W)},K=()=>{ee.save(O,le.value)},J=()=>{ee.remove(O)};T();const E=W=>W?W.type?W.type:W.label?W.prop:"":"",Z=(W,ne={})=>{for(let ae in ne){const re=ne[ae];typeof re!="function"&&(W[ae]=re)}},X=W=>{const ne=W?W():[],ae=new Map;if(G=[],ne.forEach(re=>{const de=re;if(!de.props)return;const ke=E(de.props);ae.set(ke,de);const Ce={label:"",prop:""};Z(Ce,de.props),G.push(Ce)}),le.value.length===G.length){const re=[];for(let ve of le.value){const de=E(ve),ke=ae.get(de);if(!ke)return ne;if(ve.visible===!1)continue;const Ce=ke;Ce.props.fixed=ve.fixed,re.push(Ce)}return re}return ne},oe=t.shallowRef(new Map),ie=({row:W,column:ne,rowIndex:ae,columnIndex:re})=>{const ve=`${ae}_${ne.property}`,de=`${ae}_${re}`;let ke=oe.value.get(ve);return ke||(ke=oe.value.get(de)),typeof ke=="string"?ke:""},ce=W=>W?ne=>{const ae=[];let re=ie(ne);return re&&ae.push(re),re=typeof W=="function"?W(ne):W,re&&ae.push(re),ae.length===0?"":ae.join(" ")}:ie,be=(W=!1)=>{oe.value.forEach((ne,ae)=>{pe(ae,ne,W)})},pe=(W,ne,ae=!1)=>{const re=`${W}_item`;ae?(f.clearPersistantMessage(),Array.isArray(ne)?f.emitToChildren({name:W},"setCellClassNames",[]):f.emitToChildren({name:re},"setCustomClassName","")):Array.isArray(ne)?f.emitToChildren({name:W,cachePolicy:"Persistant",uniqueId:re},"setCellClassNames",ne):f.emitToChildren({name:re,cachePolicy:"Persistant",uniqueId:re},"setCustomClassName",ne)},Ne=(W,ne,ae)=>{const re=`${W}_${ne}`;ae?(oe.value.set(re,ae),pe(re,ae)):(oe.value.delete(re),pe(re,"",!0)),t.triggerRef(oe)},et=W=>{be(!0),oe.value.clear(),W.forEach(ne=>{const ae=`${ne.rowIndex}_${ne.column}`;Array.isArray(ne.children)?oe.value.set(ae,ne.children):typeof ne.cellClassName=="string"&&oe.value.set(ae,ne.cellClassName)}),be(),t.triggerRef(oe)},lt=()=>{be(),oe.value.clear(),t.triggerRef(oe)},Le=t.shallowRef(new Map),vt=({rowIndex:W})=>{const ne=`${W}`;return Le.value.get(ne)??""},ll=W=>W?ne=>{const ae=[];let re=vt(ne);return re&&ae.push(re),re=typeof W=="function"?W(ne):W,re&&ae.push(re),ae.length===0?"":ae.join(" ")}:vt,al=(W,ne)=>{const ae=`${W}`;ne?Le.value.set(ae,ne):Le.value.delete(ae),t.triggerRef(Le)},ol=()=>{Le.value.clear(),t.triggerRef(Le)},he=t.ref();return Se({clearSelection:()=>he?.value.clearSelection(),getSelectionRows:()=>he?.value.getSelectionRows(),toggleRowSelection:(W,ne)=>{he?.value.toggleRowSelection(W,ne)},toggleRowSelectionByProp:(W,ne)=>{if(!v.value)return;const ae=gl(v.value,W);ae.length!==0&&ae.forEach(re=>{he?.value.toggleRowSelection(re,ne)})},toggleAllSelection:()=>{he?.value.toggleAllSelection()},toggleRowExpansion:(W,ne)=>{he?.value.toggleRowExpansion(W,ne)},toggleRowExpansionByProp:(W,ne)=>{if(!v.value)return;const ae=gl(v.value,W);ae.length!==0&&ae.forEach(re=>{he?.value.toggleRowExpansion(re,ne)})},setCurrentRow:W=>{he?.value.setCurrentRow(W)},setCurrentRowByProp:W=>{if(!v.value)return;const ne=gl(v.value,W);ne.length!==0&&he?.value.setCurrentRow(ne[0])},getCurrentRow:()=>te.value,clearSort:()=>{he?.value.clearSort()},clearFilter:W=>{he?.value.clearFilter(W)},doLayout:()=>{he?.value.doLayout()},sort:(W,ne)=>{he?.value.sort(W,ne)},scrollTo:(W,ne)=>{he?.value.scrollTo(W,ne)},setScrollTop:W=>{he?.value.setScrollTop(W)},setScrollLeft:W=>{he?.value.setScrollLeft(W)},loadData:F,clearData:L,getData(){return v.value},getTotalSize(){return D.value},getPageIndex(){return I.value},getPageSize(){return g.value},getColumnSetting:N,setColumnSetting:B,removeColumnSetting:J,setCellClassName:Ne,setCellClassNames:et,clearCellClassName:lt,setRowClassName:al,clearRowClassName:ol}),()=>{const ne={...Qe(o.attrs),onCurrentChange:P,onRowClick:A,onExpandChange:H,data:v.value,ref:he,class:d.value,"cell-class-name":ce(n.cellClassName),"row-class-name":ll(n.rowClassName)},ae={};if(o.slots.default&&(ae.default=()=>X(o.slots.default)),o.slots.append&&(ae.append=()=>o.slots.append),o.slots.empty&&(ae.empty=()=>o.slots.empty),u===!0){const De=[];if(b.value){const tt=t.h(Ie.Loading,{class:`${h}__infinite-icon`});De.push(tt);const bt=t.h("span",{class:`${h}__infinite-text`},[c.loadText.value]);De.push(bt)}else{const tt=t.h("span",{class:`${h}__infinite-text`},[c.noMoreText.value]);De.push(tt)}const We={ref:q,class:`${h}__infinite`},yt=t.h("div",We,De);ae.append=()=>yt}const re=t.h(R.ElTable,ne,ae),ve=[];if(ve.push(re),!u){let De=null;if(typeof o.slots.pagination=="function")De=o.slots.pagination();else if(n.showPagination){const We={class:$.value,total:D.value,pageSize:g.value,"onUpdate:pageSize":V,pageSizes:n.pageSizes,currentPage:I.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};De=t.h(R.ElPagination,We)}if(n.showSetting){const We=[];De&&We.push(De);const yt=t.h(R.ElIcon,{class:y.value},{default:()=>t.h(Ie.Setting)}),tt=rt(n,ml),bt=t.h(Gt,{...tt,tableRef:{getColumnSetting:N,setColumnSetting:B,removeColumnSetting:J}},{default:()=>yt});We.push(bt);const rl=t.h("div",{class:x.value},We);ve.push(rl)}else De&&ve.push(De)}const de={default:()=>ve},Ce={...Re(n,Eo,Po,ml)};return n.prop&&(Ce.prop=`${n.prop}_item`),Ce.contentClass=`${h}__wrap`,Ce.errorMarkClass="is-table-error",_.value&&k()&&(Ce["appear-listen"]=!0,Ce.onAppear=Y),t.h(a,Ce,de)}}}}const{componentName:oh,create:rh,scope:ih}=ue("table-item"),ya=rh(ah(oh,ih,Pe));function At(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Wt(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=Be(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function ch(){const e=t.getCurrentInstance();return new uh(e.proxy)}function ai(e,l,a){if(l===a)return!0;if(l===null||a===null)return!1;const n=At(e,l),o=At(e,a);if(n!==o)return!1;const r=Wt(e,l),s=Wt(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=At(e,r)===l;else if(a==="item")s=ai(e,r,l);else{let c=Wt(e,r);c==null&&(c=At(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 Io={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:{...Ee,...Fe,...Io},emits:["change","update:modelValue","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),h=t.ref(null),d=t.ref(null),y=(v,z,w,_=!0)=>{const U=fh(n,v,z,w);if(U===null){if(d.value===null)return;d.value=null,h.value=null,_&&(f("update:modelValue",null),f("change",null));return}if(!ai(n,U,d.value)){h.value=v;const C=t.toRaw(U);d.value=C;let F=null;n.valueType==="text"?F=At(n,C):n.valueType==="item"?F=C:F=Wt(n,C),_&&(f("update:modelValue",F),f("change",F))}},x=t.ref([]),$=Me(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,v=>fe(v)),p=ch(),m=async(v,z)=>{if(v){const w=await p.load("radio",v,z);if(w.length>0)if(typeof w[0]=="string"){let S=w.map(C=>dh(C));x.value=S}else x.value=w}};t.watch([()=>n.source,()=>n.params],async([v,z])=>{m(v,z)},{immediate:!$.value});let I=!1;const g=()=>{I||(I=!0,m(n.source,n.params))};t.watch([()=>x.value,()=>n.modelValue],([v,z])=>{y(z,n.valueType,v,!1),f("setValue",z)});const u=e,k=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),M=v=>{y(v,"value",x.value,!0)};let V=ye(n,"hintText"),b=ye(n,"hintVisible");const D=(v,z)=>{const w=[];return v.forEach((_,U)=>{const S=Wt(n,_),C=At(n,_);let F=sh(n,_);s.value===!0&&(F=s.value),i.value===!0&&(F=i.value);const L=hh(n,_,U)??{},Q=`${S}_${U}`,Y={...L,key:Q,value:S,size:n.size,border:fe(n.border)};F&&(Y.disabled=F),n.itemType==="button"?w.push(t.h(R.ElRadioButton,Y,{default:()=>[C]})):typeof z=="function"?w.push(t.h(R.ElRadio,Y,{default:()=>z(_)})):w.push(t.h(R.ElRadio,Y,{default:()=>[C]}))}),w};return Se({setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const z={...Qe(o.attrs),class:k.value,disabled:s.value||i.value,modelValue:h.value,"text-color":n.textColor,fill:n.fill,onChange:M},w=[],_={};o.slots.options?_.default=o.slots.options:_.default=()=>D(x.value,o.slots.text);const U=t.h(R.ElRadioGroup,z,_);w.push(U);const S={default:()=>w};S.label=o.slots.default,S.fixedPreTip=o.slots.fixedPreTip,S.fixedTip=o.slots.fixedTip;const F={...Re(n,Io),hintText:V.value,hintVisible:b.value};return n.prop&&(F.prop=`${n.prop}_item`),$.value&&(F["appear-listen"]=!0,F.onAppear=g),t.h(a,F,S)}}}}const{componentName:gh,create:ph,scope:vh}=ue("radio-item"),ba=ph(mh(gh,vh,Pe));function Rt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function It(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function yh(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let bh=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=Be(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function wh(){const e=t.getCurrentInstance();return new bh(e.proxy)}function oi(e,l,a){if(l===a)return!0;if(l===null||a===null)return!1;const n=Rt(e,l),o=Rt(e,a);if(n!==o)return!1;const r=It(e,l),s=It(e,a);return r===s}function xh(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=Rt(e,s)===r;else if(a==="item")c=oi(e,s,r);else{let i=It(e,s);i==null&&(i=Rt(e,s)),c=i===r}if(c){o.push(s);break}}}),o}function Sh(e){return{text:e,value:e}}function Ch(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}const Vo={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:{...Ee,...Fe,...Vo},emits:["change","update:modelValue","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),h=t.ref([]),d=t.ref([]),y=(v,z,w,_=!0)=>{const U=xh(n,v,z,w);if(U===null){if(d.value===null||d.value.length===0)return;h.value=[],d.value=[],_&&(f("update:modelValue",[]),f("change",[]));return}let S=!0;if(U.length!==d.value.length)S=!1;else for(let C=0;C<U.length;C++){const F=U[C],L=d.value[C];if(!oi(n,F,L)){S=!1;break}}if(!S){d.value=U;let C=[],F=[];U.forEach(Q=>{C.push(It(n,Q)),n.valueType==="text"?F.push(Rt(n,Q)):n.valueType==="item"?F.push(Q):F.push(It(n,Q))}),h.value=C;const L=t.toRaw(F);_&&(f("update:modelValue",L),f("change",L))}},x=t.ref([]),$=Me(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,v=>fe(v)),p=wh(),m=async(v,z)=>{if(v){const w=await p.load("checkbox",v,z);if(w.length>0)if(typeof w[0]=="string"){let S=w.map(C=>Sh(C));x.value=S}else x.value=w}};t.watch([()=>n.source,()=>n.params],async([v,z])=>{m(v,z)},{immediate:!$.value});let I=!1;const g=()=>{I||(I=!0,m(n.source,n.params))};t.watch([()=>x.value,()=>n.modelValue],([v,z])=>{y(z,n.valueType,v,!1),f("setValue",z)});const u=e,k=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),M=v=>{y(v,"value",x.value,!0)};let V=ye(n,"hintText"),b=ye(n,"hintVisible");const D=(v,z)=>{const w=[];return v.forEach((_,U)=>{const S=It(n,_),C=Rt(n,_);let F=yh(n,_);s.value===!0&&(F=s.value),i.value===!0&&(F=i.value);const L=Ch(n,_,U)??{},Q=`${S}_${U}`,Y={...L,key:Q,class:n.itemClass,value:S,size:n.size,border:fe(n.border)};F&&(Y.disabled=F),n.itemType==="button"?w.push(t.h(R.ElCheckboxButton,Y,{default:()=>[C]})):typeof z=="function"?w.push(t.h(R.ElCheckbox,Y,{default:()=>z(_)})):w.push(t.h(R.ElCheckbox,Y,{default:()=>[C]}))}),w};return Se({setDisabled:v=>{r.value=v},setReadonly:v=>{c.value=v}}),()=>{const z={...Qe(o.attrs),class:k.value,disabled:s.value||i.value,modelValue:h.value,"text-color":n.textColor,fill:n.fill,max:we(n.max),min:we(n.min),onChange:M},w=[],_={};o.slots.options?_.default=o.slots.options:_.default=()=>D(x.value,o.slots.text);const U=t.h(R.ElCheckboxGroup,z,_);w.push(U);const S={default:()=>w};S.label=o.slots.default,S.fixedPreTip=o.slots.fixedPreTip,S.fixedTip=o.slots.fixedTip;const F={...Re(n,Vo),hintText:V.value,hintVisible:b.value};return n.prop&&(F.prop=`${n.prop}_item`),$.value&&(F["appear-listen"]=!0,F.onAppear=g),t.h(a,F,S)}}}}const{componentName:$h,create:kh,scope:Dh}=ue("checkbox-item"),wa=kh(Th($h,Dh,Pe)),Oo={modelValue:{type:[Number,String],required:!1}};function Nh(e,l,a){return{props:{...Ee,...Fe,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),h=ye(n,"modelValue",I=>we(I),f),d=e,y=t.computed(()=>({[d]:!0})),x=I=>{f("update:modelValue",I),f("change",I)};let $=ye(n,"hintText"),p=t.ref(!1);const m=t.ref();return Se({setDisabled:I=>{r.value=I},setReadonly:I=>{c.value=I}}),()=>{const g={...Qe(o.attrs),ref:m,class:y.value,readonly:i.value||s.value,modelValue:h.value,onChange:x},u={},k=[],M=t.h(R.ElRate,g,u);k.push(M);const V={default:()=>k};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const D={...Re(n,Oo),hintText:$.value,hintVisible:p.value};return n.prop&&(D.prop=`${n.prop}_item`),t.h(a,D,V)}}}}const{componentName:Eh,create:Ph,scope:Ih}=ue("rate-item"),xa=Ph(Nh(Eh,Ih,Pe)),Ao={modelValue:{type:[Boolean,String,Number],required:!1}};function Vh(e,l,a){return{props:{...Ee,...Fe,...Ao},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),h=ye(n,"modelValue",null,f),d=e,y=t.computed(()=>({[d]:!0})),x=I=>{f("update:modelValue",I),f("change",I)};let $=ye(n,"hintText"),p=ye(n,"hintVisible");const m=t.ref();return Se({setDisabled:I=>{r.value=I},setReadonly:I=>{c.value=I}}),()=>{const g={...Qe(o.attrs),ref:m,class:y.value,readonly:i.value,disabled:s.value,modelValue:h.value,onChange:x},u={},k=[],M=t.h(R.ElSwitch,g,u);k.push(M);const V={default:()=>k};V.label=o.slots.default,V.fixedPreTip=o.slots.fixedPreTip,V.fixedTip=o.slots.fixedTip;const D={...Re(n,Ao),hintText:$.value,hintVisible:p.value};return n.prop&&(D.prop=`${n.prop}_item`),t.h(a,D,V)}}}}const{componentName:Oh,create:Ah,scope:Rh}=ue("switch-item"),Sa=Ah(Vh(Oh,Rh,Pe)),Ro={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 Fh=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=Be(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await s(a,n,o))}};function Mh(){const e=t.getCurrentInstance();return new Fh(e.proxy)}const Fo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Bh(e,l,a){return{props:{...Ee,...Fe,...Fo,...Ro},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),f=t.ref(!1),{emitEvent:h}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??o.attrs.name),d=ye(n,"modelValue",null,h),y=e,x=t.computed(()=>({[y]:!0})),$=_=>{d.value=_,h("update:modelValue",_),h("change",_)};let p=ye(n,"hintText"),m=t.ref(!1);const I=_=>{let S=_.target.value;f.value=!0,ge(p.value)||(m.value=!0),h("focus",S,_)},g=_=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let S=_.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),k.value||h("blur",S,_)},u=()=>{h("clear","")},k=t.ref(!1),M=_=>{k.value=_,h("visible-change",_),_||h("selected")},V=t.ref([]),b=Mh(),D=async(_,U)=>{try{const S=await b.load("treeselect",_,U);V.value=S}catch(S){console.error(S)}};t.watch([()=>n.data,()=>n.params,()=>n.lazy],([_,U,S])=>{!_||S||D(_,U)},{immediate:!0});let v=null;n.lazy&&(typeof n.load=="function"?v=n.load:v=async(_,U)=>{debugger;let S={};n.params&&Object.assign(S,n.params),_&&Object.assign(S,_);const C=await b.load("treeselect",n.data,S,!0);U(C)});let z={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const w=t.ref();return Se({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},setDisabled:_=>{r.value=_},setReadonly:_=>{c.value=_}}),()=>{const U={...Qe(o.attrs),ref:w,class:x.value,disabled:s.value||i.value,modelValue:d.value,"onUpdate:modelValue":$,lazy:n.lazy,props:z,onClear:u,onFocus:I,onBlur:g,onVisibleChange:M};v?U.load=v:U.data=V.value;const S={};o.slots.option&&(S.default=o.slots.option);const C=[],F=t.h(R.ElTreeSelect,U,S);C.push(F);const L={default:()=>C};L.label=o.slots.default,L.fixedPreTip=o.slots.fixedPreTip,L.fixedTip=o.slots.fixedTip;const Y={...Re(n,Fo,Ro),hintText:p.value,hintVisible:m.value};return n.prop&&(Y.prop=`${n.prop}_item`),t.h(a,Y,L)}}}}const{componentName:Lh,create:_h,scope:qh}=ue("tree-select-item"),Ca=_h(Bh(Lh,qh,Pe));let zh=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,h=f+o;h>a.length&&(h=a.length);const d=a.slice(f,h);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s,c]);const i=Be(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(Ke(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r,s,c]))}};function jh(){const e=t.getCurrentInstance();return new zh(e.proxy)}class Hh{proxy;constructor(l){this.proxy=l}async load(l){let a=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",l])),a}save(l,a){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,a])}remove(l){const a=Be(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",l])}}function ri(){const e=t.getCurrentInstance();return new Hh(e.proxy)}const Kh={},Wh={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 Yh(e,l){return t.openBlock(),t.createElementBlock("svg",Wh,[...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 Uh=je(Kh,[["render",Yh]]),{create:Gh}=ue("group-setting"),Xh={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:"到底部"}},Zh=Gh({components:{FoxPopover:R.ElPopover,FoxCheckbox:R.ElCheckbox,FoxCheckboxGroup:R.ElCheckboxGroup,FoxButton:R.ElButton,FoxIcon:R.ElIcon,DragIcon:Uh,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Xh},emits:["change"],setup(e,{emit:l,attrs:a,expose:n}){let o=null;const r=t.ref([]),s=ri(),c=P=>P.length>1,i=()=>{const P=[],A=[...r.value];r.value=A.map((H,O)=>(H.visible!==!1&&P.push(H.prop),{...H,sortIndex:O})),r.value.length===P.length?p.value=!0:P.length>0&&(m.value=!0),u.value=P},f=P=>{let A=null;if(typeof P=="string")A=document.querySelectorAll(`.fox-group[prop="${P}"] > div > .fox-item[prop]`);else if(P&&typeof P=="object"){const H=P.$el??P;typeof H.querySelectorAll=="function"&&(A=H.querySelectorAll(".fox-item[prop]"))}if(!A)return[];const j=[];return A.forEach(H=>{const O=H.querySelector(".label--string");let ee="";O&&(ee=O.textContent??"");const le=H.getAttribute("prop")??"",N=window.getComputedStyle(H,null).getPropertyValue("display");j.push({label:ee,prop:le,sortIndex:0,visible:N!=="none"})}),j},h=()=>{if(!o){const P=f(e.groupRef??e.groupProp);if(P.length===0)return!1;o=P}return!0},d=async(P=!1)=>{const A=await s.load(e.groupProp),j=H=>{if(!H||!o)return;const O=o.map(ee=>({...ee}));Array.isArray(A)&&A.forEach(ee=>{O.some(le=>{if(le.prop===ee.prop){const G=le.label;return Object.assign(le,ee),le.label=G,!0}return!1})}),r.value=O.sort((ee,le)=>ee.sortIndex-le.sortIndex),i(),P&&x(!1)};o?j(!0):Vn(h,e.initDelay,5,50,!1,j)},y=()=>{const P=o??[];r.value=P.map(A=>({...A})),i(),x()},x=(P=!0)=>{P&&s.save(e.groupProp,r.value);const A=r.value.map(j=>({...j}));l("change",A)},$=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),m=t.ref(!1),I=P=>{const A=[];r.value.forEach(H=>{P&&A.push(H.prop),H.visible=P}),p.value=!1,m.value=!1,r.value.length===A.length?p.value=!0:A.length>0&&(m.value=!0),u.value=A,x()},g=()=>{y()},u=t.ref([]),k=P=>{r.value.forEach(j=>{const H=P.indexOf(j.prop)!==-1;j.visible=H}),p.value=!1,m.value=!1;const A=r.value.length;P.length===A?p.value=!0:P.length>0&&(m.value=!0),x()},M=()=>{d()};t.onMounted(()=>{d(!0)});const V={currentRow:null,index:null},b=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,b(P)):null:null,D=P=>{const A=P.currentTarget;A&&A.dataset&&(V.index=A.dataset.index)},v=P=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null},z=P=>{const A=P.currentTarget;P.relatedTarget;const j=b(A);j&&(P.preventDefault(),V.currentRow&&V.currentRow!==j&&V.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),V.currentRow=j)},w=P=>{P.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},_=P=>{const A=P.currentTarget,j=b(A);if(!j)return;P.preventDefault();const H=Number(V.index),O=Number(j.dataset.index);if(H!==O){if(H<O){const ee=r.value[H];r.value.splice(H,1),r.value.splice(O,0,ee)}else{const ee=r.value[H];r.value.splice(H,1),r.value.splice(O+1,0,ee)}i(),x()}},U=P=>{const A=r.value[P];r.value.splice(P,1),r.value.splice(0,0,A),i(),x()},S=P=>{const A=r.value[P];r.value.splice(P,1),r.value.push(A),i(),x()};n({refresh:()=>{o=null,d(!1)}});const C=new Map;let F=null;function L(P){const A=document.createRange();return A.setStart(P,0),A.setEnd(P,P.childNodes.length),A.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:c,isCheckAll:p,isIndeterminate:m,handleCheckAllChange:I,handleReset:g,checkedValue:u,handleCheckChange:k,onShow:M,onDragStart:D,onDragEnd:v,onDragOver:z,onDragLeave:w,onDrop:_,checkboxLabelStyle:$,toTop:U,toBottom:S,onMouseOverForOverflowText:(P,A,j)=>{const H=P.currentTarget;if(H){const O=Math.floor(H.offsetWidth);if(Math.floor(L(H))>O){let le=C.get(A);if(le){if(le===F)return;_e.hide(le)}le=_e.show(H,j,{type:"text",placement:"top",closeOnClick:!1}),C.set(A,le),F=le}}},onMouseLeaveForOverflowText:(P,A)=>{const j=C.get(A);j&&(_e.hide(j),j===F&&(F=null))},onMouseOverForTip:(P,A)=>{const j=P.currentTarget;j&&(F&&_e.hide(F),F=_e.show(j,A,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:P=>{F&&(_e.hide(F),F=null)}}}}),Jh={class:"fox-group-setting"},Qh={class:"fox-group-setting__header"},em={class:"fox-group-setting__body"},tm={class:"fox-group-setting__body-list","data-role":"container"},nm=["data-index","draggable"],lm=["onMouseover","onMouseleave"],am={class:"tools-item"};function om(e,l,a,n,o,r){const s=t.resolveComponent("FoxCheckbox"),c=t.resolveComponent("FoxButton"),i=t.resolveComponent("DragIcon"),f=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),d=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Jh,[t.createElementVNode("div",Qh,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=x=>e.isCheckAll=x),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",em,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=x=>e.checkedValue=x),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",tm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,x=>(t.openBlock(),t.createElementBlock("div",{key:x.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":x.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...$)=>e.onDragStart&&e.onDragStart(...$)),onDragend:l[6]||(l[6]=(...$)=>e.onDragEnd&&e.onDragEnd(...$)),onDrop:l[7]||(l[7]=(...$)=>e.onDrop&&e.onDrop(...$)),onDragover:l[8]||(l[8]=(...$)=>e.onDragOver&&e.onDragOver(...$)),onDragleave:l[9]||(l[9]=(...$)=>e.onDragLeave&&e.onDragLeave(...$))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:x.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:$=>e.onMouseOverForOverflowText($,x.prop,x.label),onMouseleave:$=>e.onMouseLeaveForOverflowText($,x.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(x.label),45,lm)]),_:2},1032,["label"]),t.createElementVNode("div",am,[t.createVNode(h,{onClick:$=>e.toTop(x.sortIndex),onMouseover:l[1]||(l[1]=$=>e.onMouseOverForTip($,e.toTopText)),onMouseleave:l[2]||(l[2]=$=>e.onMouseLeaveForTip($)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(h,{onClick:$=>e.toBottom(x.sortIndex),onMouseover:l[3]||(l[3]=$=>e.onMouseOverForTip($,e.toBottomText)),onMouseleave:l[4]||(l[4]=$=>e.onMouseLeaveForTip($))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"])])],40,nm))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Ta=je(Zh,[["render",om]]),rm={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 im=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=Be(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await s(a,n,o))}};function sm(){const e=t.getCurrentInstance();return new im(e.proxy)}function um(e,l,a){return{props:{...Ol,...rm},setup(n,o){const r=e,s=t.computed(()=>({[r]:!0})),c=t.ref([]),i=sm(),f=async(u,k)=>{try{const M=await i.load("tree",u,k);c.value=M}catch(M){console.error(M)}},h=t.shallowRef({}),d=t.computed(()=>({...h.value,...n.params??{}}));(Array.isArray(n.data)?!0:n.lazy?!1:fe(n.autoLoad))&&t.watch([()=>n.data,()=>d.value],([u,k])=>{u&&f(u,k)},{immediate:!0,deep:!0});let x=null;n.lazy&&(typeof n.load=="function"?x=n.load:x=async(u,k)=>{let M={};n.params&&Object.assign(M,n.params),u&&Object.assign(M,u);const V=await i.load("treeselect",n.data,M,!0);k(V)});const $={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey,disabled:n.disabedKey,...n.props??{}},p=(u={})=>new Promise(async k=>{h.value={...t.toRaw(u??{})},await f(n.data,d.value),k()}),m=function(u,k){if(typeof n.filterNodeMethod=="function")return n.filterNodeMethod(u,k);if(!n.filterKeyword)return!0;const M=`${k[$.label]}`,V=`${u}`;return M.includes(V)},I=t.ref();t.watch(()=>n.filterKeyword,u=>{I.value.filter(u)});const g=u=>(...k)=>{const M=I.value[u];return Reflect.apply(M,I.value,[...k])};return o.expose({loadData:p,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 k={...Qe(o.attrs),class:s.value,lazy:n.lazy,props:$,ref:w=>I.value=w};x?k.load=x:k.data=c.value,k["filter-node-method"]=m;const M=[],V=t.h(R.ElTree,k,o.slots);M.push(V);const b={default:()=>M},v={...rt(n,Ol)};return t.h(a,v,b)}}}}const{componentName:cm,create:fm,scope:dm}=ue("tree-item"),$a=fm(um(cm,dm,Kn)),vn={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 hm(e,l,a,n="value"){for(let o=0;o<l.length;o++){let r=l[o];if(n==="text"){if(yn(e,r)===a)return o}else if(n==="item"){if(Xe(a,r))return o}else if(ii(e,r)===a)return o}return-1}function yn(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Mo(e,l){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?l[e.subTextKey]:l.text}function ii(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function mm(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function gm(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}let pm=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 h=(n-1)*o,d=h+o;d>f.length&&(d=f.length);const y=f.slice(h,d);return{totalSize:f.length,page:y}}if(typeof a=="function")return await Reflect.apply(a,null,[n,o,r,s]);const i=Be(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(Ke(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(i,null,[a,n,o,r]))}};function vm(){const e=t.getCurrentInstance();return new pm(e.proxy)}function ym(e,l,a,n,o,r,s,c,i,f,h){return{props:{...vn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:y}){const{emitEvent:x}=Wl(),{toLocaleRefs:$}=$e.useFoxI18n(l),p=$(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),m=vm(),I=t.ref([]),g=t.ref(0),u=t.ref(""),k=t.shallowRef(null),M=t.computed(()=>{const N={};return d.params&&Object.assign(N,d.params),ge(u.value)||(N[`${d.searchKey}`]=u.value),k.value&&Object.assign(N,k.value),N});let V=!0;const b=async(N,B,T)=>{try{if(v.value===!1)return;let K=null;ge(u.value)||(K=E=>{const Z=yn(d,E);if(typeof Z=="string"&&Z.includes(u.value))return!0;const X=Mo(d,E);return!!(typeof X=="string"&&X.includes(u.value))});const J=await m.load("actionsheet",N,B,T,M.value,V,K??void 0);V=!1,Array.isArray(J)?(I.value=J,g.value=1,v.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),v.value=!1):(Reflect.apply([].push,I.value,J.page),g.value=Math.ceil(I.value.length/d.pageSize),(J.totalSize&&I.value.length>=J.totalSize||T<J.page.length)&&(v.value=!1)),D.value=!1}catch(K){console.error("[FoxUI] ActionSheet load more data fail",K),v.value=!0,g.value=0,I.value=[]}setTimeout(()=>{x("loaded-data")},250)},D=t.ref(!1),v=t.ref(!0),z=async()=>{if(!d.source){D.value=!1;return}await b(d.source,g.value+1,d.pageSize)};t.watch(()=>u.value,(N,B)=>{ge(N)&&!ge(B)&&z()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([N,B,T])=>{d.source&&z()},{immediate:!0});const w=t.computed(()=>!d.multiple&&d.isAutoBackFill),_=t.ref([]);let U=null;const S=t.ref(d.visible);t.watch(()=>d.visible,N=>{S.value!==N&&(S.value=N),N?U=[..._.value]:U=null});const C=(N,B)=>{const T=[];return Array.isArray(N)||(N=[N]),N.forEach(K=>{let J=hm(d,B,K,d.valueType);J!==-1&&T.push(J)}),Xe(T,_.value)?!1:(_.value=T,!0)};t.watch([()=>d.modelValue,()=>I.value],([N,B],[T,K])=>{if(C(N,B)){const E=F();L(E)}},{deep:!0});const F=()=>{const N=[],B=[],T=[];for(let Z of _.value){const X=I.value[Z];B.push(X);const oe=yn(d,X);if(T.push(oe),d.valueType==="item")N.push(X);else if(d.valueType==="text")N.push(oe);else{const ie=ii(d,X);N.push(ie)}}let K=null,J=null,E=null;return d.multiple?(K=N,J=T,E=B):(K=N[0]??null,J=T[0]??null,E=B[0]??null),{value:K,text:J,item:E}},L=N=>{x("update:modelValue",N.value),x("update:text",N.text),x("change",N.value,N.item,N.text)},Q=()=>{U&&(_.value=U)},Y=N=>{const B=_.value.indexOf(N);d.multiple?B===-1?_.value.push(N):_.value.splice(B,1):B===-1?_.value=[N]:_.value=[],(w.value||!d.poppable&&!d.showFooter)&&P()},q=N=>{S.value=N,x("update:visible",N)},te=()=>{const N=()=>{Q(),q(!1)},B=d.beforeMethod??d.beforeClose;if(typeof B=="function"){const T=B("close");xn(T)?T.then(K=>{K!==!1&&N()}).catch(()=>{N()}):T!==!1&&N()}else N()},P=()=>{const N=F(),B=()=>{L(N),q(!1)},T=d.beforeMethod??d.beforeClose;if(typeof T=="function"){const K=T("confirm",N.value,N.item,N.text);xn(K)?K.then(J=>{J!==!1&&B()}).catch(()=>{B()}):K!==!1&&B()}else B()},A=()=>{v.value=!0,g.value=0,I.value=[],d.source&&z()},j=()=>{let N=p.title.value??"";y.title&&(N=y.title());const B=t.h("view",{class:["fox-actionsheet__header-title"]},[N]),T=t.h(i,{class:["fox-actionsheet__header-icon"],onClick:te});return t.h("view",{class:["fox-actionsheet__header"]},[B,T])},H=()=>{let N=null;if(y.search)N=y.search();else{const B={onSearch:A,placeholder:p.seachPlaceholder.value,disabled:d.disabled,modelValue:u.value,"onUpdate:modelValue":T=>{u.value=T}};N=t.h(r,B,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[N])},O=(N,B,T,K,J)=>{if(y.optionLabel)return y.optionLabel({text:N,checked:B,disabled:T,subText:K,item:J});const E=[],Z=t.h("view",{class:"fox-actionsheet__list-item-text"},[N]);if(E.push(Z),K){const X=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[K]);E.push(X)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},E)},ee=(N,B,T,K)=>{if(y.optionIcon)return y.optionIcon({checked:N,disabled:B,iconSize:T,item:K});if(N){if(y.checkedIcon)return y.checkedIcon({disabled:B,item:K});{const J=d.checkedIcon??c;return t.h(J,{width:T,height:T,class:["fox-actionsheet__list-item-icon"]})}}else{if(y.icon)return y.icon({disabled:B,item:K});{const J=d.icon??s;return t.h(J,{width:T,height:T,class:["fox-actionsheet__list-item-icon"]})}}},le=()=>{const N=[];for(let B=0;B<I.value.length;B++){const T=I.value[B],K=yn(d,T),J=Mo(d,T),E=["fox-actionsheet__list-item"],Z={};let X=mm(d,T),oe=d.iconSize?xe(d.iconSize):null;const ie=gm(d,T,B);ie&&(X=X||ie.disabled,ie.class&&E.push(ie.class),ie.style&&Object.assign(Z,ie.style)),X=!!(d.disabled||X);const ce=_.value.includes(B);X&&E.push("is-disabled"),ce&&E.push("is-checked");const be={class:E,style:Z,key:`${B}`,onClick:()=>{X||Y(B)}};let pe=[];if(y.option)pe.push(y.option({item:T,checked:ce,disabled:X}));else{const et=O(K,ce,X,J,T);pe.push(et);const lt=ee(ce,X,oe,T);pe.push(lt)}const Ne=t.h("view",be,pe);N.push(Ne)}return N},G=()=>{let N=[];if(y.buttons)N=y.buttons();else{const T=t.h(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:P,disabled:d.disabled},{default:()=>p.confirmText.value});N.push(T)}return t.h("view",{class:"fox-actionsheet__footer"},[N])};return Se({search:async(N=null,B=!0)=>{k.value=N&&t.toRaw(N),t.triggerRef(k),B&&(v.value=!0,g.value=0,I.value=[]),t.nextTick(()=>{z()})},clear:()=>{v.value=!0,g.value=0,I.value=[]},confirm:()=>{P()},cancel:()=>{te()}}),()=>{const N=[];if(d.showHeader){const oe=j();N.push(oe)}if(d.showSearchbar){const oe=H();N.push(oe)}let B=null;if(y.content)B=y.content();else{const oe=le(),ie={hasMore:v.value,loadText:p.loadText.value,noMoreText:p.noMoreText.value,modelValue:D.value,"onUpdate:modelValue":ce=>{D.value=ce},onLoadMore:z};B=t.h(n,ie,{default:()=>oe})}const T={};d.optionsHeight&&(T.height=d.optionsHeight);const K={"fox-actionsheet__list":!0};d.poppable||(K["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:K,style:T},[B]);if(N.push(J),d.showFooter&&!w.value){const oe=G();N.push(oe)}const E=t.h("view",{class:"fox-actionsheet"},N);if(!d.poppable)return E;const Z=["fox-actionsheet__popup"];d.popClass&&Z.push(d.popClass);const X={popClass:Z.join(" "),visible:S.value,closeable:!1,"onUpdate:visible":q,position:d.position,round:"round",onClickOverlay:te,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,X,{default:()=>E})}}}}const bm=/scroll|auto|overlay/i,si=window;function wm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function xm(e,l=si){let a=e;for(;a&&a!==l&&wm(a);){const{overflowY:n}=window.getComputedStyle(a);if(bm.test(n))return a;a=a.parentNode}return l}function ui(e,l=si){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=xm(e.value,l))}),a}const ci=()=>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 Cm(e,l,a){return{props:{...Sm},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=$e.useFoxI18n(l),c=s(n,["pullText","loadText","noMoreText"]),i=t.ref(),f=ui(i),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),y=g=>g?g.offsetTop+y(g.offsetParent):0,x=()=>{let g=0,u=0,k="down";if(f.value==window){const M=ci();i.value&&(g=y(i.value)+i.value.offsetHeight-M-window.innerHeight),u=M}else{const{scrollHeight:M,clientHeight:V,scrollTop:b}=f.value;g=M-V-b,u=b}return h.beforeScrollTop>u?k="up":k="down",h.beforeScrollTop=u,o("scroll-change",u),g<=n.threshold&&k=="down"},$=()=>{Ll(()=>{if(!x()||!n.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},p=()=>{f.value&&f.value.addEventListener("scroll",$,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",$,n.useCapture)};t.onMounted(()=>{p(),n.immediate&&$()}),t.onUnmounted(()=>{m()});const I=t.ref(!1);return t.onActivated(()=>{I.value&&(I.value=!1,p())}),t.onDeactivated(()=>{I.value=!0,m()}),t.watch(()=>n.modelValue,g=>{g||(h.isInfiniting=!1)}),()=>{const g={class:"fox-infinite__container"},u=t.h("view",g,[r?.default?.()]),k=[];if(h.isInfiniting){let D=r?.loading?.()??null;if(!D){let w=r?.loadingIcon?.()??null;if(!w){const S={class:["fox-infinite__bottom-box__img"]};w=t.h(a,S)}const _={class:"fox-infinite__bottom-box__text"},U=t.h("view",_,[c.loadText.value]);D=[w,U]}const v={class:"fox-infinite__bottom-box"},z=t.h("view",v,D);k.push(z)}else if(!n.hasMore){let D=r?.finished?.()??null;if(!D){const v={class:"fox-infinite__bottom-tips"};D=t.h("view",v,[c.noMoreText.value]),k.push(D)}}const M={class:"fox-infinite__bottom"},V=t.h("view",M,k),b={class:d.value,ref:i};return t.h("view",b,[u,V])}}}}const{componentName:Tm,create:$m,scope:km}=ue("infinite-loading"),Jn=$m(Cm(Tm,km,Xn)),Dm={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"}},Nm=(e,l,a)=>({props:{...Dm},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}=$e.useFoxI18n(l),c=s(n,["placeholder"]),i=t.reactive({active:!1}),f=t.computed(()=>({background:n.background})),h=t.computed(()=>({background:n.inputBackground})),d=v=>{let w=v.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),r("update:modelValue",w,v),r("change",w,v)},y=t.ref({}),x=v=>{let w=v.target.value;i.active=!0,y.value=n.focusStyle,r("focus",w,v)},$=v=>{setTimeout(()=>{i.active=!1},0);let w=v.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),y.value={},r("blur",w,v)},p=v=>{r("update:modelValue","",v),r("change","",v),r("clear","")},m=t.computed(()=>String(n.modelValue).length>0),I=t.computed(()=>{const v={};return m.value||(v.display="none"),v}),g=()=>{r("search",n.modelValue)},u=v=>{r("keyup-input",v),v.key.toLocaleUpperCase()==="ENTER"&&g()},k=v=>{r("click-input",v)},M=v=>{r("click-left-icon",n.modelValue,v)},V=t.computed(()=>({textAlign:n.inputAlign})),b=t.ref(null);t.onMounted(()=>{n.autofocus&&b.value.focus()});const D=()=>{const v=[];if(o.leftin){const S={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},C=t.h("view",S,[o.leftin()]);v.push(C)}const z={ref:b,class:[`${e}__input-inner`],style:V.value,type:n.inputType,maxlengt:n.maxLength,placeholder:c.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:k,onInput:d,onFocus:x,onBlur:$,onkeyup:u},w=t.h("input",z);v.push(w);const _=[];if(n.clearable){const S={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:I.value,onClick:p},C=o?.clear?.()??n.clearIcon??a,F=t.h("view",S,[t.h(C)]);_.push(F)}if(o.rightin){const S={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},C=t.h("view",S,[o.rightin()]);_.push(C)}if(_.length>0){const S={class:`${e}__input-inner-right`},C=t.h("view",S,_);v.push(C)}const U={class:[`${e}__search-input`,`${n.shape}`],style:{...h.value,...y.value}};return t.h("view",U,v)};return()=>{const v=[];if(n.label){const _={class:`${e}__search-label`},U=t.h("span",_,[n.label]);v.push(U)}if(o.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},U=t.h("view",_,[o.leftout()]);v.push(U)}const z=D();if(v.push(z),o.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},U=t.h("view",_,[o.rightout()]);v.push(U)}const w={class:`${e}`,style:f.value};return t.h("view",w,v)}}}),{componentName:Em,create:Pm,scope:Im}=ue("searchbar"),Qn=Pm(Nm(Em,Im,Ie.CircleClose)),{componentName:Vm,create:Om,scope:Am}=ue("actionsheet-pane"),el=Om(ym(Vm,Am,Tt,Jn,R.ElButton,Qn,lf,Qc,ei,Fc)),Bo={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 Rm(e,l,a,n,o){return{props:{...Ee,...Fe,...Bo,...vn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,s){const c=t.ref(null),i=ze(t.computed(()=>c.value??r.disabled)),f=t.ref(null),h=qe(t.computed(()=>f.value??r.readonly)),{emitEvent:d}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return i.value}},r.prop??s.attrs.name),{toLocaleRefs:y}=$e.useFoxI18n(l),x=y(r,["placeholder"]),$=t.ref(!1),p=ye(r,"modelValue",null,d),m=t.ref(""),I=t.computed(()=>Array.isArray(m.value)?m.value.join(r.separator):m.value),g="fox-input-item",u=t.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value})),k=Me(t.computed(()=>r.textAlign),"textAlign"),M=t.computed(()=>{const L={};return k.value&&(L["text-align"]=k.value),L}),V=t.ref(!1),b=()=>{V.value=!0},D=L=>{V.value=L},v=L=>{p.value=L,d("update:modelValue",L)},z=(L,Q)=>{d("change",L,Q)},w=L=>{let Y=L.target.value;$.value=!0,d("focus",Y,L)},_=L=>{setTimeout(()=>{$.value=!1},0);let Y=L.target.value;r.maxLength&&Y.length>Number(r.maxLength)&&(Y=Y.slice(0,Number(r.maxLength))),d("blur",Y,L)},U=L=>{m.value=L,d("update:text",L)},S=t.computed(()=>st(r.unit)>0),C=t.ref(),F=t.ref(null);return Se({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()},search:L=>{F.value&&F.value.search(L)},clear:()=>{F.value&&F.value.clear},confirm:L=>{F.value&&F.value.confirm()},cancel:()=>{F.value&&F.value.cancel()},setDisabled:L=>{c.value=L},setReadonly:L=>{f.value=L}}),()=>{const L={ref:C,class:u.value,style:M.value,type:"text",maxlength:r.maxLength,placeholder:x.placeholder.value,readonly:!0,value:I.value,onClick:b,onFocus:w,onBlur:_},Q={};s.slots.prepend&&(Q.prepend=s.slots.prepend),s.slots.append&&(Q.append=s.slots.append),s.slots.prefix&&(Q.prefix=s.slots.prefix),s.slots.suffix?Q.suffix=s.slots.suffix:S.value?Q.suffix=()=>[r.unit]:Q.suffix=()=>t.h(R.ElIcon,{},{default:()=>t.h(Ie.ArrowDown)});const Y=[],q=t.h(R.ElInput,L,Q);Y.push(q);const te={default:()=>Y};te.label=s.slots.default,te.prepend=s.slots.prepend,te.append=s.slots.append,te.fixedPreTip=s.slots.fixedPreTip,te.fixedTip=s.slots.fixedTip;const P=rt(r,vn);P.ref=F,P.class=r.actionsheetProps,P.disabled=i.value||h.value,P.visible=V.value,P["onUpdate:visible"]=D,P.modelValue=p.value,P["onUpdate:modelValue"]=v,P.text=m.value,P["onUpdate:text"]=U,P.onChange=z,P.poppable=!0;const A={title:s.slots.title,search:s.slots.search,option:s.slots.option,optionLabel:s.slots.optionLabel,optionIcon:s.slots.optionIcon,buttons:s.slots.buttons},j=t.h(n,P,A);te.hide=()=>[j];const O={...Re(r,Bo,vn)};return r.prop&&(O.prop=`${r.prop}_item`),t.h(a,O,te)}}}}const{componentName:Fm,create:Mm,scope:Bm}=ue("actionsheet-item"),ka=Mm(Rm(Fm,Bm,Pe,el)),fi={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}},Da={...sa,...fi,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 Na=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}},Lo=10;function di(e,l){return e>l&&e>Lo?"horizontal":l>e&&l>Lo?"vertical":""}function Xt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Zt(){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=di(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 hi(){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),h=t.ref(""),d=()=>h.value==="vertical",y=()=>h.value==="horizontal",x=()=>{s.value=0,c.value=0,i.value=0,f.value=0,h.value="",a.value=0};return{move:(m=>{if(m.touches){const u=m.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=m;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,h.value||(h.value=di(i.value,f.value))}),start:(m=>{if(x(),m.touches){const u=m.touches[0];e.value=u.clientX,l.value=u.clientY}else{const g=m;e.value=g.clientX,l.value=g.clientY}a.value=Date.now()}),reset:x,startX:e,startY:l,startTime:a,duration:n,moveX:o,moveY:r,deltaX:s,deltaY:c,offsetX:i,offsetY:f,direction:h,isVertical:d,isHorizontal:y}}let mi=36;function _m(){return mi}function qm(e){mi=e}function at(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Fl(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]:l.children??null}function zm(e,l,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(l[e.childrenKey]=a),l.children=a}function Ct(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function _o(e,l){return typeof e.itemOptions=="function"?e.columnOptions(l):e.columnOptions}let jm=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=Be(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await o(a,n))}};function Hm(){const e=t.getCurrentInstance();return new jm(e.proxy)}function qo(e,l,a){const n=at(e,l),o=at(e,a);if(n!==o)return!1;const r=Ct(e,l),s=Ct(e,a);return r===s}function Km(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(h=>{if(r==="text")return at(e,h)===c;if(r==="value"){let d=Ct(e,h);return d==null&&(d=at(e,h)),d===c}else if(r==="item")return qo(e,h,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 at(e,d)===i;if(r==="value"){let y=Ct(e,d);return y==null&&(y=at(e,d)),y===i}else if(r==="item")return qo(e,d,i)});if(f==-1)break;o.push(f);const h=Fl(e,s[f]);if(!Array.isArray(h))break;s=h}}return o}function zo(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],h=at(e,f);if(o.texts.push(h),o.items.push(f),r==="text")o.values.push(h);else if(r==="value"){let d=Ct(e,f);d==null&&(d=h),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],h=at(e,f),d=Object.assign({},f);if(d.children=null,o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let y=Ct(e,f);y==null&&(y=h),o.values.push(y)}else o.values.push(d);if(!Array.isArray(f.children))break;s=f.children}}return o}function jo(e){return{text:e,value:e}}const Wm=15,Ym=300,Um=200,{create:Gm}=ue("picker-column");function Xm(e){e.stopPropagation()}function Zm(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Xm(e)}const Jm=Gm({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},...fi},emits:["click","change","update:modelValue"],setup(e,{emit:l}){const a=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${we(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=b=>b>=d.currIndex+8||b<=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=b=>`transform: rotate3d(1, 0, 0, ${-d.rotation*b}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)`})),h=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),y=b=>at(e,b),x=b=>Ct(e,b),$=hi(),p=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},m=(b,D=!1,v=!1)=>{if(d.currIndex=b,D){const z=()=>{d.moving=!1,l("update:modelValue",b),l("change",b)};v?d.transitionEndTrigger=z:z()}},I=(b,D,v)=>{let z=b+d.startDistance;if(D==="end"){const w=-(e.source.length-1)*e.itemHeight;z<w&&(z=w),z>0&&(z=0);let _=Math.abs(Math.round(-z/e.itemHeight));const U=-_*e.itemHeight,S=`${(_+1)*d.rotation}deg`,C=v?v>0:!1;m(_,!0,C),g(U,D,v,S)}else{let w=(-z/e.itemHeight+1)*d.rotation;const _=(e.source.length+1)*d.rotation,U=0;if(w=Math.min(Math.max(w,U),_),e.threeDimensional&&(w<U||w>_))return;g(z,null,void 0,`${w}deg`)}},g=(b=0,D,v=Um,z)=>{D==="end"?d.scrollTime=v:d.scrollTime=0,d.deg=z,d.scrollDistance=b},u=(b,D)=>(b=Math.abs(b/D)/.003*(b<0?-1:1),b),k=b=>{e.readonly||(d.startDistance=d.scrollDistance,$.start(b),d.transitionEndTrigger=null)},M=b=>{e.readonly||(d.moving=!0,$.move(b),$.isVertical()&&(d.moving=!0,Zm(b)),I($.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const b=$.deltaY.value,D=$.duration.value;if(D<Ym&&Math.abs(b)>Wm){const z=u(b,D);I(z,"end",e.swipeDuration)}else I(b,"end",0)};return t.watch(()=>e.modelValue,b=>{const D=d.currIndex-b;if(D!==0){d.currIndex=b,d.startDistance=d.scrollDistance;const v=D*e.itemHeight;I(v,"",0)}}),t.watch(()=>e.source,b=>{if(d.currIndex>=b.length){const z=(b.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,I(z,"end",0)}}),t.watch(()=>e.visible,b=>{b===!1&&p()}),t.onMounted(()=>{const b=-e.modelValue*e.itemHeight;I(b)}),{classes:a,styles:n,contentClasses:o,itemText:y,itemValue:x,...t.toRefs(d),roller:h,getItemText:at,onTouchStart:k,onTouchMove:M,onTouchEnd:V,isHidden:s,setRollerStyle:i,touchRollerStyle:c,touchTileStyle:f,stopMomentum:p}}}),Qm={key:1,class:"fox-picker__item-tile"};function eg(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 tg=je(Jm,[["render",eg]]),{create:ng,componentName:lg,scope:ag}=ue("picker"),og=ng({components:{PickerColumn:tg,Popup:Tt},props:{...Da},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:l}){const{toLocaleRefs:a,t:n}=$e.useFoxI18n(ag),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(_m());t.watch(()=>e.visible,w=>{w&&s.value<=0&&setTimeout(()=>{if(r.value){const _=Na(r.value);s.value=_.height,qm(s.value)}},50)});const c=t.computed(()=>({[lg]:!0})),i=Hm(),f=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,_])=>{if(w){let U=await i.load("select",w,_);if(U.length>0){let S=U[0];if(Array.isArray(S)){if(typeof S[0]=="string"){let C=U,F=[];C.forEach(L=>{let Q=L.map(Y=>jo(Y));F.push(Q)}),h.value=F}else h.value=U;f.value="multipleColumn"}else if(typeof S=="string"){let C=U,F=[],L=C.map(Q=>jo(Q));F.push(L),h.value=F,f.value="singleColumn"}else{const C=Fl(e,S);Array.isArray(C)?(f.value="cascade",h.value=[U]):(f.value="singleColumn",h.value=[U])}}else h.value=[]}},{immediate:!0});const d=t.ref([]),y=t.ref(e.modelValue),x=t.ref([]),$=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([w,_])=>{let U=Km(e,w,_,f.value);if(!Xe(U,$.value)){$.value=U;let S=zo(e,U,_,f.value);S&&(d.value=S.texts,l("update:text",d.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,w=>{p.value=w});const m=w=>{let _=_o(e,w);return Ke(_)?_.defaultIndex??0:0},I=w=>{if(e.readonly===!0)return!0;let _=_o(e,w);return Ke(_)?_.readonly??!1:!1},g=(w,_)=>{let U=$.value;U[w]=_;for(let C=0;C<w;C++)U[C]==null&&(U[C]=m(C));if(f.value==="cascade")for(let C=w+1;C<k.value.length;C++){let F=m(C);C<U.length?U[C]=F:U.push(F)}else for(let C=U.length;C<k.value.length;C++){let F=m(C);U.push(F)}$.value=U;let S=zo(e,U,h.value,f.value);S&&(d.value=S.texts,y.value=S.values,x.value=S.items)},u=w=>w<$.value.length?$.value[w]:m(w),k=t.computed(()=>{if(h.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return h.value;let w=[],_=0,U=h.value[0],S=0;for(;;){let C=U.map(Q=>{let Y=Object.assign({},Q);return zm(e,Y,null),Y});w.push(C),_>=$.value.length?S=0:S=$.value[_],(S<0||S>=U.length)&&(S=0);let F=U[S];const L=Fl(e,F);if(!Array.isArray(L))break;U=L,_++}return w}),M=t.computed(()=>we(+e.visibleItemCount-1)/2*s.value),V=(w=!1)=>{if(e.readonly===!0){w&&l("update:visible",!1);return}let _=h.value.length-1;for(;_>=0&&!($.value[_]===null||$.value[_]===void 0);_--);if(_>=0&&g(_,0),f.value==="singleColumn"){let U=y.value.length>0?y.value[0]:"",S=x.value.length>0?x.value[0]:null;l("update:modelValue",U),l("update:text",d.value),l("change",U,S),w&&(l("confirm",U),l("update:visible",!1))}else l("update:modelValue",y.value),l("update:text",d.value),l("change",y.value,x.value),w&&(l("confirm",y.value),l("update:visible",!1))};return{...o,pickerLineRef:r,classes:c,columns:k,dataType:f,show:p,itemHeight:s,top:M,isReadonly:I,getIndex:u,change:(w,_)=>{if(g(w,_),e.isAutoBackFill){const U=!p.value;V(U)}},close:()=>{l("close"),l("update:visible",!1)},confirm:()=>{V(!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)}}}}),rg={class:"fox-picker__bar"},ig={class:"fox-picker__title"},sg={class:"fox-picker__bar__action"},ug={class:"fox-picker__column"};function cg(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",rg,[t.createElementVNode("view",ig,t.toDisplayString(e.title),1),t.createElementVNode("view",sg,[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",ug,[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":h=>e.change(f,h),"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 Jt=je(og,[["render",cg]]),Ho={...Da,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 fg(e,l,a){return{props:{...Ee,...Fe,...Ho},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(n,o){const r=t.ref(null),s=ze(t.computed(()=>r.value??n.disabled)),c=t.ref(null),i=qe(t.computed(()=>c.value??n.readonly)),{emitEvent:f}=Ve({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:h}=$e.useFoxI18n(l),d=h(n,["placeholder"]),y=t.ref(!1),x=e,$=t.computed(()=>({[x]:!0})),p=Me(t.computed(()=>n.textAlign),"textAlign"),m=t.computed(()=>({textAlign:p.value??"right"})),I=ye(n,"modelValue",null,f),g=t.ref([]),u=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),k=t.ref(!1),M=()=>{k.value=!0},V=L=>{k.value=L},b=L=>{I.value=L,f("update:modelValue",L)},D=L=>{g.value=L,Array.isArray(L)&&L.length===0?f("update:text",L[0]):f("update:text",L)},v=(L,Q)=>{f("change",L,Q)};let z=ye(n,"hintText"),w=t.ref(!1);const _=L=>{let Y=L.target.value;y.value=!0,ge(z.value)||(w.value=!0),f("focus",Y,L)},U=L=>{setTimeout(()=>{w.value&&(w.value=!1),y.value=!1},0);let Y=L.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),k.value?setTimeout(()=>{f("blur",Y,L)},50):f("blur",Y,L)},S=()=>{f("clear","")},C=t.computed(()=>st(n.unit)>0),F=t.ref();return Se({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()},setDisabled:L=>{r.value=L},setReadonly:L=>{c.value=L}}),()=>{const L={class:$.value,style:m.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,clearable:fe(n.clearable),readonly:!0,value:u.value,onClick:M,onFocus:_,onBlur:U},Q={};o.slots.prepend&&(Q.prepend=o.slots.prepend),o.slots.append&&(Q.append=o.slots.append),o.slots.prefix&&(Q.prefix=o.slots.prefix),o.slots.suffix?Q.suffix=o.slots.suffix:C.value?Q.suffix=()=>[n.unit]:Q.suffix=()=>t.h(R.ElIcon,{},{default:()=>t.h(Ie.ArrowDown)});const Y=[],q=t.h(R.ElInput,L,Q);Y.push(q);const te={default:()=>Y};te.label=o.slots.default,te.fixedPreTip=o.slots.fixedPreTip,te.fixedTip=o.slots.fixedTip;const P=rt(n,Da);P.disabled=!1,P.readonly=s.value||i.value,P.visible=k.value,P["onUpdate:visible"]=V,P.modelValue=I.value,P["onUpdate:modelValue"]=b,P.text=g.value,P["onUpdate:text"]=D,P.onClear=S,P.onChange=v;const A=t.h(Jt,P);te.hide=()=>[A];const H={...Re(n,Ho),hintText:z.value,hintVisible:w.value};return n.prop&&(H.prop=`${n.prop}_item`),t.h(a,H,te)}}}}const{componentName:dg,create:hg,scope:mg}=ue("picker-item"),Ea=hg(fg(dg,mg,Pe)),Ml={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Ko=(e,l)=>l[e.textKey],Lt=(e,l)=>l[e.valueKey],gg=(e,l)=>l[e.visibleKey],Wo=(e,l)=>l[e.disabledKey],pg=(e,l)=>{const a=l[e.doitKey];return fe(a)},vg=(e,l)=>{const a=l[e.numKey];return a==null?null:we(l[a])},Yo=(e,l,a)=>{const n=e.itemOptions;return typeof n=="function"?n(l,a):n||null};function yg(e,l,a,n=!1){return{props:{...Ml},emits:["update:modelValue","change"],setup(o,{slots:r,emit:s}){const c=t.computed(()=>{const P={};return P[`${e}`]=!0,P}),i=t.computed(()=>{const P={};return P[`${e}__titles`]=!0,P[`${o.direction}`]=!0,o.align==="left"&&(P.left=!0),o.scroll===!0&&(P.scrollable=!0),o.shape&&(P[`${o.shape}`]=!0),P}),f=t.computed(()=>({})),h=t.computed(()=>{if(!o.gutter)return 0;const P=xe(o.gutter);return P<=0?0:P}),d=t.ref(o.modelValue);t.watch(()=>o.modelValue,P=>{d.value!==P&&(d.value=P,L(!1))});const y=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),x=t.computed(()=>{const P={};return p.value||(P.display="none"),P}),$=t.ref(),p=t.ref(!1),m=()=>{const P=!p.value;I(P)},I=P=>{const A=P;A?(p.value=A,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,$.value?$.value.addEventListener("transitionend",()=>{p.value=!1},{once:!0}):setTimeout(()=>{p.value=!1},0))},g=t.ref(),u=t.ref([]),k=(P,A)=>{u.value[A]=P},M=P=>A=>{k(A,P)},V=(P,A)=>{const j=g.value,H=u.value;if(!j||!H||!H[P])return;const O=H[P];let ee=0;o.direction==="vertical"?ee=O.offsetTop-(j.offsetHeight-O.offsetHeight)/2:ee=O.offsetLeft-(j.offsetWidth-O.offsetWidth)/2,b(j,ee,A?0:.3,o.direction)},b=(P,A,j,H)=>{let O=0;const ee=H==="horizontal"?P.scrollLeft:P.scrollTop,le=j===0?1:Math.round(j*1e3/16);function G(){H==="horizontal"?P.scrollLeft+=(A-ee)/le:P.scrollTop+=(A-ee)/le,++O<le&&zl(G)}G()},D=(P,A)=>{const j=Lt(o,P),H={};return H[`${e}__titles-item`]=!0,H.disabled=Wo(o,P),H.active=j===d.value,o.shape&&(H[`${o.shape}`]=!0),o.ellipsis&&(H.ellipsis=!0),A&&(A.class&&(H[`${A.class}`]=!0),A.disabled===!0&&(H.disabled=A.disabled)),H},v=(P,A)=>{const j={};if(h.value>0){const H=Math.abs(h.value/2);o.direction==="vertical"?(j["margin-top"]=`${H}px`,j["margin-bottom"]=`${H}px`):(j["margin-left"]=`${H}px`,j["margin-right"]=`${H}px`)}return A&&A.style&&Object.assign(j,A.style),j},z=(P,A)=>`${Lt(o,P)??A}`,w=(P,A)=>{const j=Lt(o,P),H={};H[`${e}__popup-item`]=!0,H.disabled=Wo(o,P),H.active=j===d.value,o.shape&&(H[`${o.shape}`]=!0);const O=Yo(o,P,A);return O&&O.disabled===!0&&(H.disabled=O.disabled),H},_=t.computed(()=>(o.data??[]).filter(A=>gg(o,A)!==!1)),U=(P,A)=>{const j=Lt(o,P);if(d.value==j)return;const H=()=>{d.value=j,o.scroll&&V(A,!1),s("update:modelValue",j),s("change",P,A)};if(typeof o.beforeChange=="function"){const O=o.beforeChange(P,A);xn(O)?O.then(ee=>{ee!==!1&&H()}).catch(()=>{H()}):O!==!1&&H()}else H()},S=(P,A)=>function(){U(P,A)},C=(P,A)=>{U(P,A),I(!1)},F=(P,A)=>function(){C(P,A)},L=P=>{if(!Array.isArray(o.data)||!o.scroll)return;const A=o.data.findIndex(j=>Lt(o,j)===d.value);A!==-1&&V(A,P)};t.watch(()=>o.data,()=>{setTimeout(L,0)}),t.onMounted(()=>{L(!0)});const Q=(P,A)=>{if(r.item)return r.item({item:P,index:A});const j=Yo(o,P,A),H=[];if(r.text){const G=r.text({item:P,index:A});H.push(G)}else{const G=[];if(j?.doit===!0||pg(o,P)){const K={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",K);G.push(J)}const N=j?.num??vg(o,P);if(N){let K="";const J=we(N);J>=100?K="99+":K=`${J}`;const E={class:[`${e}__titles-item-tip`,"num"]},Z=t.h("view",E,[K]);G.push(Z)}const B={class:`${e}__titles-item-text`};G.push(Ko(o,P));const T=t.h("view",B,G);H.push(T)}const O={class:`${e}__titles-item-line`},ee=t.h("view",O);H.push(ee);const le={ref:M(A),class:D(P,j),style:v(P,j),key:z(P,A),onClick:S(P,A)};return t.h("view",le,H)},Y=()=>{const P=r.default?r.default():[];if(P.length===0)for(let j=0;j<_.value.length;j++){const H=_.value[j],O=Q(H,j);P.push(O)}const A={ref:g,class:i.value,style:f.value};return t.h("view",A,P)},q=()=>{let P=null;r.navigation?P=r.navigation():P=t.h(a);const A={class:`${e}__navigation`,onClick:m};return t.h("view",A,[P])},te=()=>{const P=[];for(let j=0;j<_.value.length;j++){const H=_.value[j];let O=null;r.popupItem?O=r.popupItem({item:H,index:j}):O=Ko(o,H);const ee={class:w(H,j),key:z(H,j),onClick:F(H,j)},le=t.h("view",ee,[O]);P.push(le)}const A={class:y.value,style:x.value};return t.h("view",A,P)};return()=>{const P=[],A=Y();if(P.push(A),o.showQuickNavigation){const H=q();P.push(H);const O=te();P.push(O)}const j={class:c.value};return t.h("view",j,P)}}}}const{create:bg,componentName:wg,scope:xg}=ue("tabs-bar"),Qt=bg(yg(wg,xg,_c,!1)),gi=Symbol("TabsStatesKey"),Bl={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,Cg=300,Tg=200;function $g(e,l,a=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*a}function Uo(e,l=0,a,n,o=Tg){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=Xt()}open(l){this.el=l;const a=Zt(),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<Cg&&Math.abs(o)>Sg?(o=$g(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 Dg(e,l,a,n=1){return new kg(e,l,a,n)}function Ng(e,l,a=!1){return{props:{...Bl},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:b=>{const D={name:b};c.current.value===b&&(D.loaded=!0),s.value.push(D),t.triggerRef(s)},remove:b=>{const D=s.value.findIndex(v=>v.name===b);D!==-1&&s.value.splice(D,1)},isLoaded:b=>{if(!n.lazy)return!0;const D=s.value.findIndex(v=>v.name===b);return D!==-1?c.current.value?s.value[D].loaded??!1:D===0:!1}};t.provide(gi,c);const i=b=>{const D=s.value.findIndex(v=>v.name===b);D!==-1&&(s.value[D].loaded=!0,t.triggerRef(s))};t.watch([()=>n.modelValue,()=>n.direction],([b,D])=>{c.current.value!==b&&(c.current.value=b??"",i(b??"")),c.direction.value!==D&&(c.direction.value=D)});const f=t.ref(null),h=t.ref(null),d=t.computed(()=>({[e]:!0,[`${n.direction}`]:!0})),y=t.computed(()=>{const b={};if(n.width){const D=Te(n.width);D&&(b.width=D)}if(n.height){const D=Te(n.height);D&&(b.height=D)}return b});let x=!0;const $=t.computed(()=>{const b={},D=s.value.length;if(D<=0)return b;const v=s.value.findIndex(z=>z.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(b.height=`${D*c.tabHeight.value}px`,v!==-1&&(b.transform=`translate(0, -${v*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(b.width=`${D*c.tabWidth.value}px`,v!==-1&&(b.transform=`translate(-${v*c.tabWidth.value}px, 0)`)),x&&(x=!1,b.transition="transform 0s ease"),b}),p={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},m=b=>{const D=s.value.length,v=s.value.findIndex(z=>z.name===c.current.value);p.moved=0,b.direction==="vertical"?(p.min=-1*(c.tabHeight.value*(D-1)+c.tabHeight.value/4),p.max=c.tabHeight.value/4,p.start=-v*c.tabHeight.value,p.itemDistance=c.tabHeight.value):(p.min=-1*(c.tabWidth.value*(D-1)+c.tabWidth.value/4),p.max=c.tabWidth.value/4,p.start=-v*c.tabWidth.value,p.itemDistance=c.tabWidth.value)},I=b=>{const D=h.value;if(!D)return;let v=p.start+b.delta;if(v>p.max?v=p.max:v<p.min&&(v=p.min),b.type==="move")Uo(D,v,"move",b.direction,300);else if(b.type==="end"){let z=Math.floor(Math.abs(v)*1/p.itemDistance);const w=Math.abs(v)%p.itemDistance;p.start>v?w>=p.itemDistance*p.triggerAutoMoveRatio&&(z+=1):w>p.itemDistance-p.itemDistance*p.triggerAutoMoveRatio&&(z+=1),v=-1*z*p.itemDistance,Uo(D,v,"end",b.direction,300),p.moved=v;const _=s.value[z].name;c.current.value=_??"",i(_??""),o("update:modelValue",_)}},g=()=>{},u=()=>{if(!f.value)return;const b=Mn(f.value);c.tabWidth.value=b.width,c.tabHeight.value=b.height},k=Or(u,250);let M=null,V=null;return t.onMounted(()=>{f.value&&(u(),window.ResizeObserver&&(V=new window.ResizeObserver(k),V.observe(f.value)),n.draggle&&(M=Dg(m,I,g),M.open(h.value)))}),t.onBeforeUnmount(()=>{V&&(V.disconnect(),V=null),M&&M.close()}),()=>{const b={class:`${e}__panes`,style:$.value,ref:h},D=t.h("view",b,[r?.default?.()]),v={class:d.value,style:y.value,ref:f};return t.h("view",v,[D])}}}}const{create:Eg,componentName:Pg,scope:Ig}=ue("tabs-container"),en=Eg(Ng(Pg,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(gi);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?fe(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`},y=n.emptyIcon??a,x=t.h(y,d),$={class:`${e}__empty-text`},p=n.emptyText??"Loading",m=t.h("view",$,[p]),I={class:`${e}__empty`},g=t.h("view",I,[x,m]);f.push(g)}const h={class:`${e}`,style:c.value,prop:n.paneKey};return t.h("view",h,f)}}}}const{create:Ag,componentName:Rg,scope:Fg}=ue("tabs-pane"),tl=Ag(Og(Rg,Fg,Xn));function Mg(e,l,a,n){return{props:{...Ml,...Bl,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 p=[`${c}`];return o.direction==="vertical"?p.push("vertical-tabbar"):p.push("horizontal-tabbar"),p}),f=t.computed(()=>{const p={};if(o.width){const m=Te(o.width);m&&(p.width=m)}if(o.height){const m=Te(o.height);m&&(p.height=m)}return p}),h=t.computed(()=>[`${c}__bars`]),d=t.computed(()=>[`${c}__container`]),y=t.ref(o.modelValue);t.watch(()=>o.modelValue,p=>{y.value!==p&&(y.value=p)});const x=p=>{r("change",p)},$=p=>{y.value!==p&&(y.value=p,r("update:modelValue",p))};return()=>{const p=s.default?.()??[],m=[];if(Array.isArray(o.data))m.push(...o.data);else for(let D=0;D<p.length;D++){const v=p[D].props??{},z={text:v.label??"",value:v["pane-key"]??v.paneKey??""};m.push(z)}const I={};for(let D in s)D!=="default"&&(I[D]=s[D]);const g=rt(o,Ml);Object.assign(g,{data:m,class:h.value,modelValue:y.value,direction:o.direction,onChange:x,"onUpdate:modelValue":$});const u=t.h(a,g,I),k={default:()=>p},M=rt(o,Bl);Object.assign(M,{class:d.value,modelValue:y.value,onChange:x,"onUpdate:modelValue":$});const V=t.h(n,M,k),b={class:i.value,style:f.value};return t.h("view",b,[u,V])}}}}const{create:Bg,componentName:Lg,scope:_g}=ue("tabs-frame"),Pa=Bg(Mg(Lg,_g,Qt,en)),qg={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 zg(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Go(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Xo(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function jg(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function pl(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function Zo(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function Jo(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function vl(e,l,a){return typeof e.itemOptions=="function"?e.itemOptions(l,a):e.itemOptions}class Hg{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=Be(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Ke(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(o,null,[a,n]))}}function Kg(){const e=t.getCurrentInstance();return new Hg(e.proxy)}const Wg=Symbol.for("TableStateKey"),Qo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},er={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:()=>"default"},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}},yl={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:()=>"不固定"}},Yg={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function Ug(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 h=parseInt(f);if(s==0){let d=r.substring(0,c);n=n[d][h]}else n=n[h];s++}c=r.indexOf("[",i),i=c==-1?-1:r.indexOf("]",c)}s===0&&(n=n[r])}return n}function bl(e,l){return e.filter(n=>{for(let o in l){const r=l[o],s=Ug(n,o);if(r!==s)return!1}return!0})}function Gg(e,l,a){return{props:{...Ee,...Fe,...Qo,...er,...yl,...Yg},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,o){const{locale:r,toLocaleRefs:s}=$e.useFoxI18n(l),c=s(n,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=Ve({componentName:e,validateHandler:{getValue(...W){return v.value}}},n.prop??o.attrs.name),h=e,d=t.computed(()=>({[h]:!0})),y=t.computed(()=>({[`${h}__setting`]:!0})),x=t.computed(()=>({[`${h}__footer`]:!0,[`${h}__footer__${n.footerAlign}`]:!0})),$=t.computed(()=>({[`${h}__pagination`]:!0,[`${h}__pagination__${n.paginationAlign}`]:!0})),p=t.shallowRef({}),m=t.computed(()=>({...p.value,...n.params??{},...n.baseParams??{}})),I=t.ref(n.infiniteLoad===!0?0:n.pageIndex),g=t.ref(n.pageSize),u=fe(n.infiniteLoad);u||(t.watch(()=>n.pageIndex,W=>{I.value=W}),t.watch(()=>n.pageSize,W=>{g.value=W}),t.watch([I,g],([W,ne],[ae,re])=>{ne!==re&&(I.value=1,W=1),U(n.data,W,ne,m.value)}));const k=()=>Array.isArray(n.data)?!0:fe(n.autoLoad);k()&&t.watch([()=>n.data,m],async([W,ne],[ae,re])=>{k()&&(W!==ae&&(w=!0),!(!Array.isArray(W)&&Xe(W,ae)&&Xe(ne,re))&&(u?(I.value=0,b.value=!0,v.value=[],C()):I.value===1?U(W,I.value,g.value,ne):I.value=1))},{deep:!0});const M=W=>{I.value=W,i("page-index-change",W)},V=W=>{g.value=W,i("page-size-change",W)},b=t.ref(!0),D=t.ref(0),v=t.ref(),z=jh();let w=!0;const _=Me(t.computed(()=>n.appearLoad),"appearLoad",Ge.Near,W=>fe(W)),U=async(W,ne,ae,re,ve)=>{w=!1;try{if(ve===!0){if(!b.value)return!1;const de=await z.load("table",W,ne,ae,re,w,r.value);return D.value=de.totalSize,!de.page||!Array.isArray(de.page)||(Reflect.apply([].push,v.value,de.page),setTimeout(()=>{i("loaded-data")},250),(v.value?.length??0)>=D.value)||de.page.length<ae?(b.value=!1,!1):!0}else{const de=await z.load("table",W,ne,ae,re,w,r.value);return D.value=de.totalSize,v.value=de.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(de){console.error("[FoxUI] Load Table Data Fail",de),D.value=0,v.value=[]}return!1};let S=!1;const C=async()=>{if(!S){if(S=!0,!b.value){S=!1;return}I.value+=1,await U(n.data,I.value,g.value,m.value,!0),S=!1}},F=(W={},ne=!1)=>new Promise(async ae=>{p.value={...t.toRaw(W??{})},ne||(I.value=n.pageIndex??1),u===!0?(I.value=0,v.value=[],b.value=!0,await C()):await U(n.data,I.value,g.value,m.value),ae()}),L=()=>{D.value=0,v.value=[],u===!0&&(I.value=0,b.value=!0)};let Q=!1;const Y=()=>{Q||(Q=!0,F())},q=t.ref(null);if(u===!0){let W=null;const ne=()=>{q.value&&(W=new IntersectionObserver(re=>{let ve=!1;for(let de of re)if(de.intersectionRatio>0){ve=!0;break}ve&&C()}),W.observe(q.value))},ae=()=>{!W||!q.value||(W.unobserve(q.value),W=null)};t.onMounted(ne),t.onBeforeUnmount(ae)}k()&&!_.value&&F();const te=t.ref(null);t.provide(Wg,{currentRow:te});const P=(W,ne)=>{te.value=W,i("current-change",W,ne)},A=(W,ne,ae)=>{i("row-click",W,ne,ae),fe(n.rowClickSelectable)===!0&&he?.value.toggleRowSelection(W)},j=[],H=(W,ne)=>{if(i("expand-change",W,ne),fe(n.uniqueExpansion))if(Array.isArray(ne)&&ne.length==0){const ae=j.length;j.splice(0,ae)}else{j.forEach(re=>{re!==W&&he?.value.toggleRowExpansion(re,!1)});const ae=j.length;j.splice(0,ae,W)}},O=o.attrs.id??n.prop??o.attrs.name,ee=ri(),le=t.ref([]);let G=[];const N=()=>({srcColumnPropertyList:G.map(ne=>({...ne})),columnPropertyList:le.value}),B=W=>{le.value=[...W],K()},T=async()=>{const W=await ee.load(O);W&&(le.value=W)},K=()=>{ee.save(O,le.value)},J=()=>{ee.remove(O)};T();const E=W=>W?W.type?W.type:W.label?W.prop:"":"",Z=(W,ne={})=>{for(let ae in ne){const re=ne[ae];typeof re!="function"&&(W[ae]=re)}},X=W=>{const ne=W?W():[],ae=new Map;if(G=[],ne.forEach(re=>{const de=re;if(!de.props)return;const ke=E(de.props);ae.set(ke,de);const Ce={label:"",prop:""};Z(Ce,de.props),G.push(Ce)}),le.value.length===G.length){const re=[];for(let ve of le.value){const de=E(ve),ke=ae.get(de);if(!ke)return ne;if(ve.visible===!1)continue;const Ce=ke;Ce.props.fixed=ve.fixed,re.push(Ce)}return re}return ne},oe=t.shallowRef(new Map),ie=({row:W,column:ne,rowIndex:ae,columnIndex:re})=>{const ve=`${ae}_${ne.property}`,de=`${ae}_${re}`;let ke=oe.value.get(ve);return ke||(ke=oe.value.get(de)),typeof ke=="string"?ke:""},ce=W=>W?ne=>{const ae=[];let re=ie(ne);return re&&ae.push(re),re=re=typeof W=="function"?W(ne):W,re&&ae.push(re),ae.length===0?"":ae.join(" ")}:ie,be=(W=!1)=>{oe.value.forEach((ne,ae)=>{pe(ae,ne,W)})},pe=(W,ne,ae=!1)=>{const re=`${W}_item`;ae?(f.clearPersistantMessage(),Array.isArray(ne)?f.emitToChildren({name:W},"setCellClassNames",[]):f.emitToChildren({name:re},"setCustomClassName","")):Array.isArray(ne)?f.emitToChildren({name:W,cachePolicy:"Persistant",uniqueId:re},"setCellClassNames",ne):f.emitToChildren({name:re,cachePolicy:"Persistant",uniqueId:re},"setCustomClassName",ne)},Ne=(W,ne,ae)=>{const re=`${W}_${ne}`;ae?(oe.value.set(re,ae),pe(re,ae)):(oe.value.delete(re),pe(re,"",!0)),t.triggerRef(oe)},et=W=>{be(!0),oe.value.clear(),W.forEach(ne=>{const ae=`${ne.rowIndex}_${ne.column}`;Array.isArray(ne.children)?oe.value.set(ae,ne.children):typeof ne.cellClassName=="string"&&oe.value.set(ae,ne.cellClassName)}),be(),t.triggerRef(oe)},lt=()=>{be(),oe.value.clear(),t.triggerRef(oe)},Le=t.shallowRef(new Map),vt=({rowIndex:W})=>{const ne=`${W}`;return Le.value.get(ne)??""},ll=W=>W?ne=>{const ae=[];let re=vt(ne);return re&&ae.push(re),re=typeof W=="function"?W(ne):W,re&&ae.push(re),ae.length===0?"":ae.join(" ")}:vt,al=(W,ne)=>{const ae=`${W}`;ne?Le.value.set(ae,ne):Le.value.delete(ae),t.triggerRef(Le)},ol=()=>{Le.value.clear(),t.triggerRef(Le)},he=t.ref();return Se({clearSelection:()=>he?.value.clearSelection(),getSelectionRows:()=>he?.value.getSelectionRows(),toggleRowSelection:(W,ne)=>{he?.value.toggleRowSelection(W,ne)},toggleRowSelectionByProp:(W,ne)=>{if(!v.value)return;const ae=bl(v.value,W);ae.length!==0&&ae.forEach(re=>{he?.value.toggleRowSelection(re,ne)})},toggleAllSelection:()=>{he?.value.toggleAllSelection()},toggleRowExpansion:(W,ne)=>{he?.value.toggleRowExpansion(W,ne)},toggleRowExpansionByProp:(W,ne)=>{if(!v.value)return;const ae=bl(v.value,W);ae.length!==0&&ae.forEach(re=>{he?.value.toggleRowExpansion(re,ne)})},setCurrentRow:W=>{he?.value.setCurrentRow(W)},setCurrentRowByProp:W=>{if(!v.value)return;const ne=bl(v.value,W);ne.length!==0&&he?.value.setCurrentRow(ne[0])},getCurrentRow:()=>te.value,clearSort:()=>{he?.value.clearSort()},clearFilter:W=>{he?.value.clearFilter(W)},doLayout:()=>{he?.value.doLayout()},sort:(W,ne)=>{he?.value.sort(W,ne)},scrollTo:(W,ne)=>{he?.value.scrollTo(W,ne)},setScrollTop:W=>{he?.value.setScrollTop(W)},setScrollLeft:W=>{he?.value.setScrollLeft(W)},loadData:F,clearData:L,getData(){return v.value},getTotalSize(){return D.value},getPageIndex(){return I.value},getPageSize(){return g.value},getColumnSetting:N,setColumnSetting:B,removeColumnSetting:J,setCellClassName:Ne,setCellClassNames:et,clearCellClassName:lt,setRowClassName:al,clearRowClassName:ol}),()=>{const ne={...Qe(o.attrs),onCurrentChange:P,onRowClick:A,onExpandChange:H,data:v.value,ref:he,class:d.value,"cell-class-name":ce(n.cellClassName),"row-class-name":ll(n.rowClassName)},ae={};if(o.slots.default&&(ae.default=()=>X(o.slots.default)),o.slots.append&&(ae.append=o.slots.append),o.slots.empty&&(ae.empty=o.slots.empty),u===!0){const De=[];if(b.value){const tt=t.h(Ie.Loading,{class:`${h}__infinite-icon`});De.push(tt);const bt=t.h("span",{class:`${h}__infinite-text`},[c.loadText.value]);De.push(bt)}else{const tt=t.h("span",{class:`${h}__infinite-text`},[c.noMoreText.value]);De.push(tt)}const We={ref:q,class:`${h}__infinite`},yt=t.h("div",We,De);ae.append=()=>yt}const re=t.h(R.ElTable,ne,ae),ve=[];if(ve.push(re),!u){let De=null;if(typeof o.slots.pagination=="function")De=o.slots.pagination();else if(n.showPagination){const We={class:$.value,total:D.value,pageSize:g.value,"onUpdate:pageSize":V,pageSizes:n.pageSizes,currentPage:I.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};De=t.h(R.ElPagination,We)}if(n.showSetting){const We=[];De&&We.push(De);const yt=t.h(R.ElIcon,{class:y.value},{default:()=>t.h(Ie.Setting)}),tt=rt(n,yl),bt=t.h(Gt,{...tt,tableRef:{getColumnSetting:N,setColumnSetting:B,removeColumnSetting:J}},{default:()=>yt});We.push(bt);const rl=t.h("div",{class:x.value},We);ve.push(rl)}else De&&ve.push(De)}const de={default:()=>ve},Ce={...Re(n,Qo,er,yl)};return n.prop&&(Ce.prop=`${n.prop}_item`),Ce.contentClass=`${h}__wrap`,Ce.errorMarkClass="is-table-error",_.value&&k()&&(Ce["appear-listen"]=!0,Ce.onAppear=Y),t.h(a,Ce,de)}}}}const{componentName:Xg,create:Zg,scope:Jg}=ue("table-item");Zg(Gg(Xg,Jg,Pe));const Qg=Symbol.for("PageWrapperKey");function ep(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){Ul(!0);const o={};t.provide(Qg,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"]=Te(a.height)),f});return()=>{const h={...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),h.class=d.join(" ");const y={};return typeof n.slots.default=="function"&&(y.default=n.slots.default),t.h(R.ElDialog,h,y)}}}}const{create:tp}=ue("dialog-item"),Ia=tp(ep()),{create:np}=ue("toast"),lp=np({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,x=>{x&&s()});const i=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const x=xe(e.iconSize);return t.h(e.icon,{width:x,height:x,color:e.iconColor})},h=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:h,toastIconWrapperClass:d,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),ap={key:1,class:"fox-toast-title"},op=["innerHTML"];function rp(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",ap,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,op)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Va=je(lp,[["render",rp]]),ip={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}},sp=(e,l,a)=>({props:{...ip},emits:["change","refresh","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=$e.useFoxI18n(l),c=s(n,["pullingText","loosingText","loadingText"]),i=Zt(),f=t.ref(),h=ui(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=t.computed(()=>({[e]:!0})),x=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.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),p=t.computed(()=>{const b={};return n.headHeight!=50&&(b.height=Te(n.headHeight)),b}),m=b=>{const D=+(n.pullDistance||n.headHeight);let v=b;return b>D&&(b<D*2?v=(b+D)/2:v=D+b/4),Math.round(v)},I=(b,D)=>{const v=+(n.pullDistance||n.headHeight);d.distance=b,D?d.status="loading":b===0?d.status="normal":b<v?d.status="pulling":d.status="loosing",o("change",{status:d.status,distance:b})},g=()=>d.status!=="loading"&&d.status!=="complete",u=()=>h.value==window?ci()==0:h.value&&h.value.scrollTop==0,k=b=>{g()&&(u()?(i.start(b),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=b=>{g()&&d.moving&&(i.move(b),i.isVertical()&&i.state.deltaY>0&&d.isPullRefresh&&(b.cancelable&&b.preventDefault(),I(m(i.state.deltaY))))},V=()=>{d.moving=!1,d.isPullRefresh&&g()&&i.state.deltaY&&(d.status==="loosing"?(I(+n.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):I(0)),setTimeout(()=>{i.reset()},0)};return t.watch(()=>n.modelValue,b=>{b?I(+n.headHeight,!0):I(0)}),()=>{const b=[];let D=null;if(d.status==="loading"){if(D=r?.loading?.()??null,!D){const F={class:["fox-pull-refresh-container-topbox-icon"]};D=t.h(a,F)}}else d.status==="pulling"?D=r?.pulling?.()??null:d.status==="loosing"&&(D=r?.loosing?.()??null);D&&b.push(D);const v={class:["fox-pull-refresh-container-topbox-text"]},z=t.h("dive",v,[x.value]);b.push(z);const w={class:["fox-pull-refresh-container-topbox"],style:p.value},_=t.h("div",w,b),U={class:"fox-pull-refresh-container",style:$.value},S=t.h("div",U,[_,r?.default?.()]),C={ref:f,class:y.value};return Xt()?Object.assign(C,{onTouchstart:k,onTouchmove:M,onTouchend:V}):Object.assign(C,{onMousedown:k,onMousemove:M,onMouseup:V}),t.h("div",C,[S])}}}),{componentName:up,create:cp,scope:fp}=ue("pull-refresh"),Oa=cp(sp(up,fp,Xn)),dp={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 hp(e,l,a){return{props:{...dp},emits:["click","update:modelValue"],setup(n,{emit:o,slots:r}){const{toLocaleRefs:s}=$e.useFoxI18n(l),c=s(n,["collapseText","expandText"]),i=t.computed(()=>{const $={[`${e}`]:!0};return n.disabled?$[`${e}--disabled`]=!0:$[`${e}--${n.type}`]=!0,$}),f=ye(n,"modelValue"),h=t.computed(()=>f.value?c.expandText.value??"":c.collapseText.value??""),d=t.computed(()=>({[`${e}__text`]:!0})),y=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),x=()=>{o("update:modelValue",!f.value)};return()=>{const $=[];if(h.value){const g={class:d.value},u=t.h("span",g,[h.value]);$.push(u)}const p={class:y.value},m=(r.icon&&r.icon())??(n.icon&&t.h(n.icon))??t.h(a);if(m){const g=t.h("div",p,[m]);$.push(g)}return n.textPosition==="right"&&$.reverse(),t.h("div",{class:i.value,onClick:x},$)}}}}const{componentName:mp,create:gp,scope:pp}=ue("more-button"),Aa=gp(hp(mp,pp,Ie.ArrowUp));function vp(e){e.stopPropagation()}let yp=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=Xt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const a=Zt(),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),vp(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 bp(e,l){return new yp(e,l)}const wp={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]}},xp=(e,l,a,n=!1)=>({props:{...wp},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}),h=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},y=t.ref(null),x=()=>{c.top=null,c.right=null,c.bottom=null,c.left=null},$={x:0,y:0},I=bp(g=>{if(!y.value)return;const u=y.value;x(),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,$.x=c.left,$.y=c.top},g=>{if(!y.value)return;const u=y.value;x(),c.left=$.x+g.x,c.top=$.y+g.y,u.style.left=`${c.left}px`,u.style.top=`${c.top}px`});return t.onMounted(()=>{if(o.draggable&&y.value){const g=[y.value];I.open(g)}}),t.onBeforeUnmount(()=>{o.draggable&&y.value&&I.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:h.value});g.push(M)}const k={ref:M=>{y.value=M},class:i.value,style:f.value,onClick:d};return t.h("view",k,g)}}}),{componentName:Sp,create:Cp,scope:Tp}=ue("floating-button"),Ra=Cp(xp(Sp,Tp,Vc,!1)),Ye=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,wt=e=>e==null;class $p{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=Xt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const a=Zt(),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 tr(e,l){return new $p(e,l)}const nr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Nt=[];const lr=e=>{const l=e;l.key==="Escape"&&Nt.forEach(a=>a(l))},kp=e=>{t.onMounted(()=>{Nt.length===0&&document.addEventListener("keydown",lr),nr&&Nt.push(e)}),t.onBeforeUnmount(()=>{Nt=Nt.filter(l=>l!==e),Nt.length===0&&nr&&document.removeEventListener("keydown",lr)})},wl="fox-focus-trap.focus-after-trapped",xl="fox-focus-trap.focus-after-released",Dp="fox-focus-trap.focusout-prevented",ar={cancelable:!0,bubbles:!1},Np={cancelable:!0,bubbles:!1},or="foxFocusAfterTrapped",rr="foxFocusAfterReleased",Ep=Symbol("foxFocusTrap"),Fa=t.ref(),nl=t.ref(0),Ma=t.ref(0);let an=0;const pi=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},Pp=(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},ir=(e,l)=>{for(const a of e)if(!Pp(a,l))return a},Ip=e=>{const l=pi(e),a=ir(l,e),n=ir(l.reverse(),e);return[a,n]},Vp=e=>e instanceof HTMLInputElement&&"select"in e,ft=(e,l)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Ma.value=window.performance.now(),e!==a&&Vp(e)&&l&&e.select()}};function sr(e,l){const a=[...e],n=e.indexOf(l);return n!==-1&&a.splice(n,1),a}const Op=()=>{let e=[];return{push:n=>{const o=e[0];o&&n!==o&&o.pause(),e=sr(e,n),e.unshift(n)},remove:n=>{e=sr(e,n),e[0]?.resume?.()}}},Ap=(e,l=!1)=>{const a=document.activeElement;for(const n of e)if(ft(n,l),document.activeElement!==a)return},ur=Op(),Rp=()=>nl.value>Ma.value,on=()=>{Fa.value="pointer",nl.value=window.performance.now()},cr=()=>{Fa.value="keyboard",nl.value=window.performance.now()},Fp=()=>(t.onMounted(()=>{an===0&&(document.addEventListener("mousedown",on),document.addEventListener("touchstart",on),document.addEventListener("keydown",cr)),an++}),t.onBeforeUnmount(()=>{an--,an<=0&&(document.removeEventListener("mousedown",on),document.removeEventListener("touchstart",on),document.removeEventListener("keydown",cr))}),{focusReason:Fa,lastUserFocusTimestamp:nl,lastAutomatedFocusTimestamp:Ma}),rn=e=>new CustomEvent(Dp,{...Np,detail:e}),{create:Mp}=ue("focus-trap"),Bp={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"}},Lp=Mp({props:Bp,emits:[or,rr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:a}){const n=t.ref();let o,r;const{focusReason:s}=Fp();kp(p=>{fe(e.trapped)&&!c.paused&&a("release-requested",p)});const c={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!fe(e.trapped)||c.paused)return;const{key:m,altKey:I,ctrlKey:g,metaKey:u,currentTarget:k,shiftKey:M}=p,{loop:V}=e,b=m==="Tab"&&!I&&!g&&!u,D=document.activeElement;if(b&&D){const v=k,[z,w]=Ip(v);if(z&&w){if(!M&&D===w){const U=rn({focusReason:s.value});a("focusout-prevented",U),U.defaultPrevented||(p.preventDefault(),V&&ft(z,!0))}else if(M&&[z,v].includes(D)){const U=rn({focusReason:s.value});a("focusout-prevented",U),U.defaultPrevented||(p.preventDefault(),V&&ft(w,!0))}}else if(D===v){const U=rn({focusReason:s.value});a("focusout-prevented",U),U.defaultPrevented||p.preventDefault()}}};t.provide(Ep,{focusTrapRef:n,onKeydown:i}),t.watch(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),t.watch([n],([p],[m])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",d),p.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=p=>{a(or,p)},h=p=>a(rr,p),d=p=>{const m=t.unref(n);if(!m)return;const I=p.target,g=p.relatedTarget,u=I&&m.contains(I);fe(e.trapped)||g&&m.contains(g)||(o=g),u&&a("focusin",p),!c.paused&&fe(e.trapped)&&(u?r=I:ft(r,!0))},y=p=>{const m=t.unref(n);if(!(c.paused||!m))if(!e.escape&&fe(e.trapped)){const I=p.relatedTarget;!Ze(I)&&!m.contains(I)&&setTimeout(()=>{if(!c.paused&&fe(e.trapped)){const g=rn({focusReason:s.value});a("focusout-prevented",g),g.defaultPrevented||ft(r,!0)}},0)}else{const I=p.target;I&&m.contains(I)||a("focusout",p)}};async function x(){await t.nextTick();const p=t.unref(n);if(p){ur.push(c);const m=p.contains(document.activeElement)?o:document.activeElement;if(o=m,!p.contains(m)){const g=new Event(wl,ar);p.addEventListener(wl,f),p.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let u=e.focusStartEl;yr(u)||(ft(u),document.activeElement!==u&&(u="first")),u==="first"&&Ap(pi(p),!0),(document.activeElement===m||u==="container")&&ft(p)})}}}function $(){const p=t.unref(n);if(p){p.removeEventListener(wl,f);const m=new CustomEvent(xl,{...ar,detail:{focusReason:s.value}});p.addEventListener(xl,h),p.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!Rp())&&ft(o??document.body,!0),p.removeEventListener(xl,f),ur.remove(c)}}return t.onMounted(()=>{fe(e.trapped)&&x(),t.watch(()=>e.trapped,p=>{fe(p)?x():$()})}),t.onBeforeUnmount(()=>{fe(e.trapped)&&$()}),()=>typeof l.default=="function"?l.default({"handle-keydown":i}):null}}),{componentName:_p,create:qp}=ue("floating-window"),zp=Symbol.for("InnerPageScopeKey"),jp=Symbol.for("PageWrapperKey"),Hp={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}},Kp=qp({inheritAttrs:!1,components:{FoxIcon:R.ElIcon,FocusTrap:Lp},props:{...Hp},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const a=_p,n=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,E=>{n.value=E});const r=t.computed(()=>n.value===!1?!1:!D.value),s=t.ref(e.left),c=t.ref(e.top),i=t.ref(e.right),f=t.ref(e.bottom),h=t.computed(()=>{const E=["fox-floating-window"];return e.customClass&&E.push(e.customClass),E}),d=t.computed(()=>{const E={};return wt(s.value)?E.left="auto":E.left=Ye(s.value),wt(c.value)?E.top="auto":E.top=Ye(c.value),wt(i.value)?E.right="auto":E.right=Ye(i.value),wt(f.value)?E.bottom="auto":E.bottom=Ye(f.value),wt(e.zIndex)||(E["z-index"]=Ye(e.zIndex)),wt(V.value)||(E.height=V.value),wt(b.value)||(E.width=b.value),E}),y=t.computed(()=>e.closeIcon??Ie.Close),x=t.computed(()=>e.collapseIcon??Ie.ArrowUp),$=t.computed(()=>e.collapseText??""),p=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),m=t.computed(()=>e.expandText??e.title??"展开"),I=t.computed(()=>({[`${a}__collapse-text`]:!0})),g=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!D.value,"is-collapse":D.value})),u=t.ref(),k=t.ref(null),M=t.ref(null),V=t.computed(()=>Ye(e.height)||""),b=t.computed(()=>Ye(e.width)||""),D=t.ref(fe(e.collapse)),v=(E,Z=!0)=>{D.value!==E&&(D.value=E,E?A():j(),l("update:collapse",E),E&&typeof _.onHide=="function"?_.onHide():!E&&typeof _.onShow=="function"&&_.onShow())};t.watch(()=>e.collapse,E=>{v(E)});const z=()=>{w()},w=E=>{E=E??!D.value,v(E)};t.provide(zp,!0);const _={setCollapse:v,setFixedNavVisible:E=>{q.value=E}};t.provide(jp,_);const U=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},S=t.ref(null),C=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const E=["fox-floating-window__fixednav"];return e.expandClass&&E.push(e.expandClass),e.collapsePosition==="left"?E.push("is-left"):e.collapsePosition==="right"&&E.push("is-right"),E}),L=t.ref(""),Q=t.computed(()=>{const E={};return L.value?E.top=L.value:e.collapseTop&&(E.top=e.collapseTop),E}),Y=t.ref(D.value),q=t.computed({set:E=>{Y.value=E},get:()=>n.value===!1?!1:Y.value});let te=null;const P=()=>{typeof te=="function"&&(te(),te=null)},A=()=>{S.value&&S.value.classList.add("slide-in"),q.value=!0,te=()=>{S.value&&S.value.classList.remove("slide-in")}},j=()=>{S.value&&S.value.classList.add("slide-out"),te=()=>{S.value&&S.value.classList.remove("slide-out"),q.value=!1}},H=()=>{s.value=null,c.value=null,i.value=null,f.value=null},O={x:0,y:0},G=tr(E=>{if(!u.value)return;const Z=u.value;if(H(),e.origin==="left-top")s.value=Z.offsetLeft,c.value=Z.offsetTop,O.x=s.value,O.y=c.value;else if(e.origin==="left-bottom"){const X=document.documentElement.clientHeight||document.body.clientHeight;s.value=Z.offsetLeft,f.value=X-(Z.offsetTop+Z.offsetHeight),O.x=s.value,O.y=f.value}else if(e.origin==="right-bottom"){const X=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;i.value=X-(Z.offsetLeft+Z.offsetWidth),f.value=oe-(Z.offsetTop+Z.offsetHeight),O.x=i.value,O.y=f.value}else{const X=document.documentElement.clientWidth||document.body.clientWidth;i.value=X-(Z.offsetLeft+Z.offsetWidth),c.value=Z.offsetTop,O.x=i.value,O.y=c.value}},E=>{if(!u.value)return;const Z=u.value;H(),e.origin==="left-top"?(s.value=O.x+E.x,c.value=O.y+E.y,Z.style.left=Ye(s.value),Z.style.top=Ye(c.value)):e.origin==="left-bottom"?(s.value=O.x+E.x,f.value=O.y-E.y,Z.style.left=Ye(s.value),Z.style.bottom=Ye(f.value)):e.origin==="right-bottom"?(i.value=O.x-E.x,f.value=O.y-E.y,Z.style.right=Ye(i.value),Z.style.bottom=Ye(f.value)):(i.value=O.x-E.x,c.value=O.y+E.y,Z.style.right=Ye(i.value),Z.style.top=Ye(c.value))}),N={x:0,y:0},K=tr(E=>{S.value&&(N.x=S.value.offsetLeft,N.y=S.value.offsetTop)},E=>{if(!S.value)return;const Z=N.y+E.y;L.value=`${Z}px`}),J=()=>{if(u.value){const E=u.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=E}};return t.onMounted(()=>{if(e.draggable&&u.value){const E=[];k.value&&E.push(k.value),e.footerDraggable&&(J(),M.value&&E.push(M.value)),G.open(E)}e.collapse===!0&&v(e.collapse,!1),S.value&&K.open(S.value)}),t.onBeforeUnmount(()=>{e.draggable&&k.value&&G.close(),S.value&&K.close()}),{classes:h,styles:d,isShow:r,closeIcon:y,onClose:U,dialogRef:u,headerRef:k,onClickToggle:z,collapseIcon:x,collapseText:$,collapseTextClasses:I,collapseIconClasses:g,expandIcon:p,expandText:m,isShowFixedNav:q,fixedNavRef:S,fixedNavClasses:F,fixedNavStyles:Q,onAnimationEnd:P,teleportDisabled:o,fixedNavTeleportDisabled:C}}}),Wp={ref:"headerRef",class:"fox-floating-window__header"},Yp={class:"fox-floating-window__title"},Up={class:"fox-floating-window__tools"},Gp={class:"fox-floating-window__body"},Xp={class:"fox-floating-window__fixednav__text"};function Zp(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",Wp,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Yp,t.toDisplayString(e.title),1),t.createElementVNode("div",Up,[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",Gp,[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",Xp,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ba=je(Kp,[["render",Zp]]);function Jp(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 h={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),f=t.computed(()=>a.color?{color:a.color}:null);return()=>{let h=null;if(n.mark)h=n.mark()[0];else{const p={class:s.value,style:c.value};h=t.h(a.icon??"div",p)}const d={class:i.value,style:f.value},y=n.default?n.default():[],x=t.h("div",d,y),$={class:r.value};return a.textPosition==="right"?t.h("div",$,[h,x]):t.h("div",$,[x,h])}}}}const{componentName:Qp,create:ev}=ue("indicator"),La=ev(Jp(Qp)),{componentName:tv,create:nv}=ue("tour"),lv=nv({components:{Close:Ie.Close,ElPopover:R.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=tv,n=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:$,maskWidth:p,maskHeight:m}=e,{width:I,height:g,left:u,top:k}=o.value,M=e.steps[n.active].offset??$,V=[u+I/2,k+g/2],b=Number(p||I),D=Number(m||g);return{width:`${b+ +M.left+M.right}px`,height:`${D+M.top+M.bottom}px`,top:`${V[1]-D/2-+M.top}px`,left:`${V[0]-b/2-+M.left}px`}}),c=$=>{$=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,t.nextTick(()=>{n.showPopup=!0,h()}),l("change",n.active)},i=$=>$.popoverWidth??e.width,f=$=>$.location??e.location,h=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),p=Na($);o.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,l("close",n.active),l("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},x=($,p=0)=>{$&&h(),e.steps,n.active=p,n.showTour=$,n.showPopup=$};return t.onMounted(()=>{x(e.modelValue,e.current)}),t.watch(()=>e.modelValue,$=>{x($)}),{...t.toRefs(n),classes:r,maskStyle:s,changeStep:c,popoverWidth:i,popoverLocation:f,close:d,handleClickMask:y}}}),av={key:0,class:"fox-tour__content"},ov={key:0,class:"fox-tour__content-top"},rv={class:"fox-tour__content-inner"},iv={class:"fox-tour__content-bottom"},sv={class:"fox-tour__content-bottom-init"},uv={class:"fox-tour__content-bottom-operate"},cv={key:1,class:"fox-tour__content fox-tour__content-tile"},fv={class:"fox-tour__content-inner"};function dv(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,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==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",av,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",ov,[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",rv,t.toDisplayString(f.content),1),t.createElementVNode("div",iv,[t.createElementVNode("div",sv,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",uv,[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",cv,[t.createElementVNode("div",fv,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const _a=je(lv,[["render",dv]]);function hv(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 Ar(a.name,()=>a.config),Ze(a.innerPageScope)||Ul(a.innerPageScope),Ze(a.abstractPageScope)||Mr(a.abstractPageScope),()=>typeof n.default=="function"?n.default():null}}}const{create:mv}=ue("domain-provider"),qa=mv(hv()),gv={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 pv(e,l){return{inheritAttrs:!1,props:gv,emits:["change"],setup(a,{slots:n,emit:o}){if(gt&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const c=(x,$)=>{if(d===null){s.set(x,{visible:null,callback:$});return}r.has(x)&&d.unobserve(x),r.set(x,{visible:null,callback:$}),d.observe(x)},i=x=>{if(d===null){s.delete(x);return}r.has(x)&&(r.delete(x),d.unobserve(x))};let f=a.initialVisibleObserverSize;Ts({acquire:()=>{if(a.loadPolicy==="always")return!0;const x=f>0;return f--,x},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:i});let d=null;const y=(x,$,p)=>{d=new IntersectionObserver(m=>{if(o("change",m),a.loadPolicy!=="always")for(let I of m){let g=!1;I.intersectionRatio>0&&(g=!0);const u=r.get(I.target);if(u)try{if(a.loadPolicy==="lazy"&&!g&&u.visible!==null)return;u.visible=g,u.callback(g)}catch(k){console.error(k)}}},{root:x,rootMargin:$,threshold:p}),s.forEach((m,I)=>{r.set(I,m),d?.observe(I)}),s.clear()};t.watch([()=>a.root,()=>a.disabled],([x,$])=>{if($||!x||d)return;let p=null;typeof x=="string"?p=document.querySelector(x):p=x,p&&y(p,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:vv}=ue("rolling-provider"),za=vv(pv());function yv(e,l,a,n){return{props:{...qg},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:s}){const c=e,i=Kg(),f=t.ref([]),h=t.computed(()=>f.value.filter(A=>jg(o,A)!==!1)),d=t.ref(-1),y=()=>{const A=o.modelValue,j=h.value.findIndex(H=>Go(o,H)===A);d.value!==j&&(d.value=j,o.scroll&&te(j))};t.watch([()=>o.modelValue,h],()=>{y()});const x=A=>d.value===A,$=A=>{if(A<0&&A>=h.value.length)return!1;const j=h.value[A],O=(vl(o,j,A)??{}).status??pl(o,j);return x(A)||O},p=t.computed(()=>{const A={[c]:!0};return o.mode?A[`is-${o.mode}`]=!0:o.direction&&(A[`is-${o.direction}`]=!0),o.scroll&&(A["is-scroll"]=!0),A}),m=t.computed(()=>({})),I=(A,j,H,O,ee)=>{const le={[`${c}__step`]:!0};return ee&&(le[`${ee}`]=!0),le[`${g.value}`]=!0,O&&(le["is-doit"]=!0),A===d.value?le["is-active"]=!0:j==="done"?le["is-done"]=!0:j==="error"?le["is-error"]=!0:j==="half"?le["is-half"]=!0:H?le["is-disabled"]=!0:le["is-normal"]=!0,le},g=t.computed(()=>{let A=o.align;if(!A){if(o.mode==="simple")return"start";o.direction==="vertical"?A="start":A="center"}return A}),u=(A,j={})=>{const H={...j};if(g.value==="start"&&A===h.value.length-1)H.flex="0 0 auto";else if(o.step){const O=typeof o.step=="number"||jl(o.step)?Te(o.step):o.step;o.direction==="vertical"?H.height=O:H.width=O}else H.flex="1 1 100%";return H},k=(A,j)=>{let H={};if(j<h.value.length-1){const O=j+1;$(j)&&$(O)?o.direction==="vertical"?H.height="100%":H.width="100%":H.opacity="0"}return H},M=A=>h.value.length-1===A,V=(A,j)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&j>d.value||d.value===j)return;const H=d.value,O=j;d.value=j,o.scroll&&te(j);const ee=Go(o,A);s("update:modelValue",ee);const le={fromIndex:H,currentIndex:O,item:A,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy};s("change",ee,le)},b=t.ref(!0),D=async(A,j)=>{try{const H=await i.load("stesbar",A,j);Array.isArray(H)&&(f.value=H),b.value=!1}catch(H){console.error("[FoxUI] Load StepsBar Data Fail",H),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([A,j])=>{A&&D(A,j)},{immediate:!0});const v=(A,j,H,O,ee)=>{let le=null;if(r.icon)le=r.icon({item:A,index:j,status:O});else if(O==="done"){const N={};o.iconSize&&(N.width=o.iconSize,N.height=o.iconSize);const B=o.icon??a;le=t.h(B,N)}else{const N=H??`${j+1}`;le=t.h("span",{},[N])}const G={class:"fox-steps-bar__icon",onClick:()=>{ee||V(A,j)}};return t.h("view",G,[le])},z=(A,j,H)=>{const O=t.h("i",{class:"fox-steps-bar__line-inner",style:k(A,j)});return t.h("view",{class:"fox-steps-bar__line"},[O])},w=()=>{let A=null;if(r.markIcon)A=r.markIcon();else{const H={};o.iconSize&&(H.width=o.markIconSize,H.height=o.markIconSize);const O=o.markIcon??n;A=t.h(O,H)}return t.h("view",{class:"fox-steps-bar__mark"},[A])},_=(A,j,H,O,ee)=>{const le=[];if(!M(j)){const B=z(A,j);le.push(B)}const G=v(A,j,H,O,ee);le.push(G);const N={class:"fox-steps-bar__head"};return t.h("view",N,le)},U=(A,j,H,O)=>{let ee=null;r.main?ee=r.main({item:A,index:j,status:H}):ee=zg(o,A);const le={class:"fox-steps-bar__main",onClick:()=>{O||V(A,j)}};return t.h("view",le,[ee])},S=(A,j,H)=>{let O=null;if(r.sub){O=r.sub({item:A,index:j,status:H});const ee={class:"fox-steps-bar__sub"};return t.h("view",ee,[O])}return null},C=(A,j)=>{const H=vl(o,A,j)??{},O=H.status??pl(o,A);let ee=Xo(o,A);H.disabled===!0&&(ee=!0),o.disabled===!0&&(ee=!0);const le=H.label??Jo(o,A),G=[],N=v(A,j,le,O,ee);N&&G.push(N);const B=U(A,j,O,ee);if(B&&G.push(B),!M(j)){const X=z(A,j);X&&G.push(X)}const T=t.h("view",{class:"fox-steps-bar__head"},G),K=H.class,J=H.style??{};let E=Zo(o,A);H.doit===!0&&(E=!0);const Z={ref:q(j),class:I(j,O,ee,E,K),style:u(j,J)};return t.h("view",Z,[T])},F=(A,j)=>{const H=vl(o,A,j)??{},O=H.status??pl(o,A);let ee=Xo(o,A);H.disabled===!0&&(ee=!0),o.disabled===!0&&(ee=!0);const le=H.label??Jo(o,A),G=[],N=o.layout;for(let E of N)if(E==="head"){const Z=_(A,j,le,O,ee);G.push(Z)}else if(E==="main"){const Z=U(A,j,O,ee);G.push(Z)}else if(E==="sub"){const Z=S(A,j,O);G.push(Z)}else if(E==="mark"){const Z=w();G.push(Z)}const B=H.class,T=H.style??{};let K=Zo(o,A);H.doit===!0&&(K=!0);const J={ref:q(j),class:I(j,O,ee,K,B),style:u(j,T)};return t.h("view",J,G)},L=t.ref(),Q=t.ref([]),Y=(A,j)=>{Q.value[j]=A},q=A=>j=>{Y(j,A)},te=(A,j)=>{const H=L.value,O=Q.value;if(!H||!O||!O[A])return;const ee=O[A];let le=0;o.direction==="vertical"?le=ee.offsetTop-(H.offsetHeight-ee.offsetHeight)/2:le=ee.offsetLeft-(H.offsetWidth-ee.offsetWidth)/2,P(H,le,.3,o.direction)},P=(A,j,H,O)=>{let ee=0;const le=O==="horizontal"?A.scrollLeft:A.scrollTop,G=Math.round(H*1e3/16);function N(){O==="horizontal"?A.scrollLeft+=(j-le)/G:A.scrollTop+=(j-le)/G,++ee<G&&zl(N)}N()};return()=>{let A=[];if(o.mode==="simple")for(let H=0;H<h.value.length;H++){const O=h.value[H],ee=C(O,H);A.push(ee)}else for(let H=0;H<h.value.length;H++){const O=h.value[H],ee=F(O,H);A.push(ee)}const j={ref:L,class:p.value,style:m.value};return A.length===0&&typeof r.default=="function"&&(A=r.default()),t.h("view",j,A)}}}}const{componentName:bv,create:wv,scope:xv}=ue("steps-bar"),ja=wv(yv(bv,xv,ti,sf)),fr=new Date().getFullYear(),Sv={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"},dr=(e,l,a)=>{let n;if(ht(l)?n=l:typeof l=="string"&&st(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)},Cv=(e,l,a)=>{ht(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)},Tv={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(fr-10,0,1),validator:ht},maxDate:{type:Date,default:()=>new Date(fr+10,11,31),validator:ht},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:$v,scope:kv}=ue("date-picker"),Dv=$v({components:{Picker:Jt},props:{...Tv},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:l}){const{t:a}=$e.useFoxI18n(kv),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,k){return new Date(u,k,0).getDate()}const s=(u,k)=>{const M=e[`${u}Date`],V=M.getFullYear();let b=1,D=1,v=0,z=0;u==="max"&&(b=12,D=r(k.getFullYear(),k.getMonth()+1),v=23,z=59);const w=z;return k.getFullYear()===V&&(b=M.getMonth()+1,k.getMonth()+1===b&&(D=M.getDate(),k.getDate()===D&&(v=M.getHours(),k.getHours()===v&&(z=M.getMinutes())))),{[`${u}Year`]:V,[`${u}Month`]:b,[`${u}Date`]:D,[`${u}Hour`]:v,[`${u}Minute`]:z,[`${u}Seconds`]:w}},c=t.computed(()=>{if(!y.value)return[];const{maxYear:u,maxDate:k,maxMonth:M,maxHour:V,maxMinute:b,maxSeconds:D}=s("max",y.value),{minYear:v,minDate:z,minMonth:w,minHour:_,minMinute:U,minSeconds:S}=s("min",y.value);let C=[{type:"year",range:[v,u]},{type:"month",range:[w,M]},{type:"day",range:[z,k]},{type:"hour",range:[_,V]},{type:"minute",range:[U,b]},{type:"seconds",range:[S,D]}];switch(e.type){case"date":C=C.slice(0,3);break;case"datetime":C=C.slice(0,5);break;case"time":C=C.slice(3,6);break;case"year-month":C=C.slice(0,2);break;case"month-day":C=C.slice(1,3);break;case"datehour":C=C.slice(0,4);break;case"hour-minute":C=C.slice(3,5);break}return C}),i=(u,k,M,V,b)=>{const D=[];for(;u<=k;){let v=!0;if(typeof e.itemFilter=="function"){const z={text:`${u}`,value:u,type:M,currentYearMonth:V};v=e.itemFilter(z)}if(v)if(typeof e.itemFormatter=="function"){const z={text:`${u}`,value:u,type:M,currentYearMonth:V};e.itemFormatter(z),D.push({text:z.text,value:z.value})}else if(e.isShowChinese){let z=`${u}${n[M]}`;if(M==="day"){if(V[0]===b[0]&&V[1]===b[1]&&u===b[2])z=n.today;else{const _=new Date(V[0],V[1],u).getDay();z=`${z} ${n.fullWeekdays[_]}`}D.push({text:z,value:u})}else D.push({text:u+n[M],value:u})}else D.push({text:`${u}`,value:u});M==="minute"?u+=e.minuteStep:u++}return D},f=t.computed(()=>{const u=new Date,k=[u.getFullYear(),u.getMonth(),u.getDate()],M=[];y.value&&(M[0]=y.value.getFullYear(),M[1]=y.value.getMonth());let V=[];return c.value.forEach(b=>{let D=i(b.range[0],b.range[1],b.type,M,k);D&&V.push(D)}),V}),h=(u,k)=>u==="year"?k.getFullYear():u==="month"?k.getMonth()+1:u==="day"?k.getDate():u==="hour"?k.getHours():u==="minute"?k.getMinutes():u==="seconds"?k.getSeconds():0,d=t.ref(),y=t.ref(null);t.watch(()=>e.modelValue,u=>{let k;if(typeof u=="string"?u.length==0||u==="Invalid Date"?k=new Date:e.valueFormat?k=dr(e,e.modelValue,e.valueFormat):k=dr(e,u,Sv[e.type]):ht(u)?k=u:k=new Date,!!k&&(!y.value||k.getTime()!==y.value.getTime())){y.value=k;let M=[];c.value.forEach(V=>{let b=h(V.type,k);M.push(b)}),d.value=M}},{immediate:!0});const x=u=>{if(!u||u.length===0){y.value=new Date;let k=[];c.value.forEach(M=>{let V=h(M.type,y.value);k.push(V)}),d.value=k;return}if(e.type==="date"){const k=u[0],M=u[1]-1,V=Math.min(u[2],r(k,M+1));V!==u[2]&&(u[2]=V),y.value=new Date(k,M,V)}else if(e.type==="datetime"){const k=u[0],M=u[1]-1,V=Math.min(u[2],r(k,M+1)),b=u[3],D=u[4];V!==u[2]&&(u[2]=V),y.value=new Date(k,M,V,b,D)}else if(e.type==="time"){const k=u[0],M=u[1],V=u[2],b=y.value??new Date,D=new Date(b.getFullYear(),b.getMonth(),b.getDate(),k,M,V);y.value=D}else if(e.type==="year-month"){const k=u[0],M=u[1]-1;y.value=new Date(k,M)}else if(e.type==="month-day"){const M=(y.value??new Date).getFullYear(),V=u[0]-1,b=Math.min(u[1],r(M,V+1));b!==u[1]&&(u[1]=b);const D=new Date(M,V,b);y.value=D}else if(e.type==="datehour"){const k=u[0],M=u[1]-1,V=Math.min(u[2],r(k,M+1)),b=u[3];V!==u[2]&&(u[2]=V),y.value=new Date(k,M,V,b)}else if(e.type==="hour-minute"){const k=u[0],M=u[1],V=y.value??new Date,b=new Date(V.getFullYear(),V.getMonth(),V.getDate(),k,M);y.value=b}d.value=u};return{columns:f,dateIndexs:d,show:o,onChange:u=>{x(u)},onClose:()=>{l("update:close",!1)},onConfirm:u=>{x(u);const k=y.value??new Date;if(e.valueFormat){let M=Cv(e,k,e.valueFormat);l("update:modelValue",M)}else l("update:modelValue",k);l("confirm",u)},onClear:()=>{l("clear")},onUpdateVisible:u=>{o.value=u,l("update:visible",u)}}}});function Nv(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 Ha=je(Dv,[["render",Nv]]),bn=(e,l,a)=>e.map(n=>{const{value:o="value",text:r="text",children:s="children"}=a??{},{[o]:c,[r]:i,[s]:f,...h}=n,d={loading:!1,...h,level:l?(l&&l.level||0)+1:0,value:c,text:i,children:f,_parent:l};return d.children&&d.children.length&&(d.children=bn(d.children,d,a)),d}),vi=(e,l)=>{let a=0,n;for(;(n=e[a++])&&l(n)!==!0;)n.children&&n.children.length&&vi(n.children,l)},Ev={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Pv=(e,l)=>{const a={...Ev,...l||{}},{topId:n,idKey:o,pidKey:r,sortKey:s}=a;let c=[],i={};return e.forEach(f=>{f={...f};const{[o]:h,[r]:d}=f,y=i[d]=i[d]||[];!c.length&&d===n&&(c=y),y.push(f),f.children=i[h]||(i[h]=[])}),s&&Object.keys(i).forEach(f=>{i[f].length>1&&i[f].sort((h,d)=>h[s]-d[s])}),i=null,c};class hr{nodes;config;constructor(l,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=bn(l,null,this.config)}updateChildren(l,a){a?a.children=bn(l,a,this.config):this.nodes=bn(l,null,this.config)}getNodeByValue(l){let a;return vi(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:Iv,scope:Vv}=ue("cascader-pane"),Ov=Iv({components:{Loading:Xn,Checklist:ti,TabsBar:Qt,TabsContainer:en,TabsPane:tl},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}=$e.useFoxI18n(Vv),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 hr([],{})),i=t.ref([]),f=t.computed(()=>n.value.lazy&&!!n.value.lazyLoad),h=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 y;const x=async()=>{d.clear(),i.value=[],o.value=0,r.value=!1,y=null;let{options:g}=e;n.value.convertConfig&&(g=Pv(g,n.value.convertConfig)),c.value=new hr(g,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),f.value&&!c.value.nodes.length&&await p({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:c.value.nodes,selectedNode:null}],$()},$=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 k=c.value.nodes.find(M=>M.value===g[0]);if(k){u=[k.value],r.value=!0;const M=await g.slice(1).reduce(async(V,b)=>{const D=await V;await p(D);const v=D?.children?.find(z=>z.value===b);return v&&u.push(b),Promise.resolve(v)},Promise.resolve(k));await p(M),r.value=!1}}u.length&&g===e.modelValue&&c.value.getPathNodesByValue(u).map((M,V)=>{o.value=V,I.handleNode(M,!0)})},p=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 k=d.get(g);k||(k=new Promise(V=>{n.value.lazyLoad?.(g,V)}),d.set(g,k));const M=await k;Array.isArray(M)&&M.length>0?c.value.updateChildren(M,u):g.leaf=!0,g.loading=!1,d.delete(g)},m=g=>{const u=g.map(k=>k.value);s.value=u,l("change",u,g),l("update:modelValue",u,g)},I={async handleNode(g,u){const{disabled:k,loading:M}=g;if(!(!u&&k||!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 V=i.value.map(b=>b.selectedNode);m(V),l("pathChange",V)}return}if(c.value.hasChildren(g,f.value)){const V=g.level+1;if(i.value[o.value].selectedNode=g,i.value=i.value.slice(0,V),i.value.push({nodes:g.children||[],selectedNode:null}),o.value=V,!u){const b=i.value.map(D=>D.selectedNode);l("pathChange",b)}return}y=g,!M&&(await p(g),y===g&&(i.value[o.value].selectedNode=g,I.handleNode(g,u)))}},handleTabChange(g,u){y=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],()=>{x()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==s.value&&(s.value=g,$())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(s.value)&&s.value.length>0&&$()}),{panes:i,panesTitles:h,initLoading:r,tabsCursor:o,...I}}}),Av={class:"fox-cascader"},Rv={role:"menu",class:"fox-cascader__pane"},Fv=["aria-checked","aria-disabled","onClick"],Mv={class:"fox-cascader__item__title"};function Bv(e,l,a,n,o,r){const s=t.resolveComponent("TabsBar"),c=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Av,[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(h,{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,y)=>(t.openBlock(),t.createBlock(f,{"pane-key":y,key:y},{default:t.withCtx(()=>[t.createElementVNode("view",Rv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,x=>(t.openBlock(),t.createElementBlock("view",{key:x.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,x),disabled:x.disabled}]),"aria-checked":e.isSelected(d,x),"aria-disabled":x.disabled||void 0,role:"menuitemradio",onClick:$=>e.handleNode(x,!1)},[t.createElementVNode("view",Mv,t.toDisplayString(x.text),1),x.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,Fv))),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 Lv=je(Ov,[["render",Bv]]),{create:_v}=ue("cascader-picker"),qv=_v({components:{FoxCascaderPane:Lv,FoxPopup:Tt},props:{...sa,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}}}),zv=["innerHTML"];function jv(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,zv)):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 Ka=je(qv,[["render",jv]]),Hv=[Xl,Jl,Ql,ea,ta,Pe,Kn,Wn,la,_e,aa,oa,ra,ua,ca,fa,da,ha,ma,ga,pa,va,Gt,ya,ba,wa,xa,Sa,Ca,Ta,$a,el,ka,Ea,Qt,en,tl,Pa,ja,Ba,Un,Jt,Ha,Zn,Ka,Ia,Gn,Tt,Va,Qn,Jn,Oa,Aa,Ra,Kt,Hn,La,Yn,_a,qa,za],Kv=new ls(Hv,[rs],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>R.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>R.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>R.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>R.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>R.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>R.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>R.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>R.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>R.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>R.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>R.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>R.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>R.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>R.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>R.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>R.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>R.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>R.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>R.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>R.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>R.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>R.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>R.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>R.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>R.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>R.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>R.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>R.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>R.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>R.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>R.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>R.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>R.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>R.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>R.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>R.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>R.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>R.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>R.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>R.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>R.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>R.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>R.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>R.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>R.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>R.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>R.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>R.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>R.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>R.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>R.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>R.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>R.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>R.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>R.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>R.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>R.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>R.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>R.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>R.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>R.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>R.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>R.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>R.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>R.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>R.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>R.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>R.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>R.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>R.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>R.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>R.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>R.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>R.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>R.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>R.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>R.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>R.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>R.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>R.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>R.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>R.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>R.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>R.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>R.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>R.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>R.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>R.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>R.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>R.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>R.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>R.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>R.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>R.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>R.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>R.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>R.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>R.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>R.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>R.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>R.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>R.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>R.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>R.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>R.ElWatermark});exports.AbstractPageScopeKey=Gl;exports.ActionsheetItem=ka;exports.ActionsheetPane=el;exports.AutocompleteItem=ga;exports.Broadcast=Hl;exports.BroadcastKey=Ae;exports.ButtonsItem=la;exports.CalendarItem=ua;exports.CascaderItem=ma;exports.CheckboxItem=wa;exports.Content=ea;exports.DataItemsKey=Dt;exports.DateItem=ra;exports.DateUtils=se;exports.DialogItem=Ia;exports.Domain=On;exports.DomainKey=Ue;exports.DomainProvider=qa;exports.FloatingButton=Ra;exports.FloatingWindow=Ba;exports.FooterBar=Ql;exports.FoxActionsheetItem=ka;exports.FoxActionsheetPane=el;exports.FoxAutocompleteItem=ga;exports.FoxButtonsItem=la;exports.FoxCalendarItem=ua;exports.FoxCascaderItem=ma;exports.FoxCheckboxItem=wa;exports.FoxContent=ea;exports.FoxDateItem=ra;exports.FoxDialogItem=Ia;exports.FoxDomainProvider=qa;exports.FoxFloatingButton=Ra;exports.FoxFloatingWindow=Ba;exports.FoxFooterBar=Ql;exports.FoxGroup=ta;exports.FoxGroupSetting=Ta;exports.FoxHeaderBar=Jl;exports.FoxHintText=_e;exports.FoxIndicator=La;exports.FoxInfiniteLoading=Jn;exports.FoxInputItem=aa;exports.FoxInputNumberItem=ha;exports.FoxItem=Pe;exports.FoxMapping=Kt;exports.FoxMoneyItem=da;exports.FoxMoreButton=Aa;exports.FoxOverLay=Gn;exports.FoxPage=Xl;exports.FoxPickerItem=Ea;exports.FoxPopoverDialog=Un;exports.FoxPopup=Tt;exports.FoxPrice=Hn;exports.FoxPullRefresh=Oa;exports.FoxRadioItem=ba;exports.FoxRateItem=xa;exports.FoxRollingProvider=za;exports.FoxRowItem=Wn;exports.FoxSearchBar=Qn;exports.FoxSelectItem=oa;exports.FoxSlotItem=Kn;exports.FoxStepsBar=ja;exports.FoxSwitchItem=Sa;exports.FoxTableItem=ya;exports.FoxTableMappingColumn=pa;exports.FoxTableRadioColumn=va;exports.FoxTableSetting=Gt;exports.FoxTabsBar=Qt;exports.FoxTabsContainer=en;exports.FoxTabsFrame=Pa;exports.FoxTabsPane=tl;exports.FoxText=Yn;exports.FoxTimeItem=ca;exports.FoxTimeSelectItem=fa;exports.FoxToast=Va;exports.FoxTour=_a;exports.FoxTreeItem=$a;exports.FoxTreeSelectItem=Ca;exports.Foxcalendarpicker=Zn;exports.Foxcascaderpicker=Ka;exports.Foxdatepicker=Ha;exports.Foxpicker=Jt;exports.Group=ta;exports.GroupSetting=Ta;exports.HeaderBar=Jl;exports.HintText=_e;exports.Indicator=La;exports.InfiniteLoading=Jn;exports.InnerPageScopeKey=Yl;exports.InputItem=aa;exports.InputNumberItem=ha;exports.Item=Pe;exports.Mapping=Kt;exports.MoneyItem=da;exports.MoreButton=Aa;exports.OverLay=Gn;exports.Page=Xl;exports.PickerItem=Ea;exports.PopoverDialog=Un;exports.Popup=Tt;exports.Price=Hn;exports.PriorityPolicy=Ge;exports.PullRefresh=Oa;exports.RadioItem=ba;exports.RateItem=xa;exports.RollingProvider=za;exports.RowItem=Wn;exports.SearchBar=Qn;exports.SelectItem=oa;exports.SlotItem=Kn;exports.StepsBar=ja;exports.SwitchItem=Sa;exports.TableItem=ya;exports.TableMappingColumn=pa;exports.TableRadioColumn=va;exports.TableSetting=Gt;exports.TabsBar=Qt;exports.TabsContainer=en;exports.TabsFrame=Pa;exports.TabsPane=tl;exports.Text=Yn;exports.TimeItem=ca;exports.TimeSelectItem=fa;exports.Toast=Va;exports.Tour=_a;exports.TreeItem=$a;exports.TreeSelectItem=Ca;exports.UniqueID=Gr;exports.ValidateSchema=Ir;exports.ValidateSchemaKey=nt;exports.calendarpicker=Zn;exports.cancelRaf=xi;exports.cascaderpicker=Ka;exports.clearNonNumber=Oi;exports.compareTo=kl;exports.createBroadcast=Pn;exports.createValidateSchema=In;exports.datepicker=Ha;exports.debounce=Je;exports.debounceRef=Wi;exports.decimalLength=kr;exports.default=Kv;exports.defineBroadcast=Mi;exports.defineConfigDomain=Ar;exports.defineDataItem=Rr;exports.defineDomain=Kl;exports.defineItem=Ve;exports.definePageState=Fr;exports.defineSimpleItem=Wl;exports.deleteGlobalValidator=zi;exports.disabledProperty=ze;exports.divide=ql;exports.excludeProps=Re;exports.extend=Vt;exports.floatData=Fi;exports.getGlobalIcons=Hr;exports.getGlobalValidateCheckEvents=Nr;exports.getGlobalValidateResetEvents=Pr;exports.getPageContentAreaHeight=Tn;exports.getPageContentAreaWidth=$n;exports.getPageFooterAreaHeight=Fn;exports.getPageHeaderAreaHeight=Rn;exports.getRootDomain=Et;exports.hasSymbol=wr;exports.includeProps=rt;exports.indexOf=Ai;exports.injectAbstractPageScope=Ut;exports.injectInnerPageScope=Yt;exports.integerLength=$r;exports.isArray=Ci;exports.isArrayLike=Cr;exports.isBrowser=gt;exports.isDate=ht;exports.isESModule=Ni;exports.isEmptyString=ge;exports.isEqual=Xe;exports.isFunction=Dl;exports.isHidden=Sr;exports.isMap=Ti;exports.isNil=Ze;exports.isNumberString=jl;exports.isObject=Ke;exports.isPlainObject=Di;exports.isPromise=xn;exports.isRegExp=Nl;exports.isSet=$i;exports.isString=yr;exports.isSubPage=Xi;exports.isSymbol=ki;exports.isTouch=Xt;exports.isWindow=xr;exports.lastIndexOf=Ri;exports.makeArray=Vi;exports.merge=Tr;exports.multiply=gr;exports.negate=pr;exports.nextTick=Pi;exports.numberFormat=Nn;exports.objectToString=br;exports.once=Yi;exports.overrideGlobalIcons=fs;exports.overrideGlobalValidateHandler=_i;exports.picker=Jt;exports.property=Me;exports.provideAbstractPageScope=Mr;exports.provideInnerPageScope=Ul;exports.raf=zl;exports.readonlyProperty=qe;exports.setGlobalValidateCheckEvents=ji;exports.setGlobalValidateHandler=Li;exports.setGlobalValidateMessages=Ki;exports.setGlobalValidateResetEvents=Hi;exports.setGlobalValidator=qi;exports.throttle=Or;exports.toBoolean=fe;exports.toNumber=we;exports.toPadding=ot;exports.toPx=xe;exports.toPxDesc=Gi;exports.toPxString=Te;exports.toTypeString=En;exports.toValue=ye;exports.tryTimes=Vn;exports.typeOf=Sn;exports.unNumberFormat=vr;exports.updatePageState=El;exports.useBroadcast=_t;exports.useDomain=pt;exports.useExpose=Se;exports.useInnerSize=Mn;exports.usePageState=An;exports.usePosition=na;exports.useRawTouch=Zt;exports.useRect=Na;exports.useSize=Zl;exports.useTouch=hi;exports.valueLength=st;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),vt=require("@fox-js/validator"),O=require("element-plus"),Pe=require("@element-plus/icons-vue"),Se=require("@fox-js/i18n"),Qt=window,hi=typeof window<"u";function mi(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function gi(e){hi?cancelAnimationFrame(e):clearTimeout(e)}const Fl=mi();function vn(e,l="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),l[0]=="-"&&(o++,n=2,l=l.substring(1),l.length),e=qe(e),l=qe(l),[e,l]=Ml(qe(e),qe(l)),o==1&&(n==1?e=al(e):l=al(l));let a=sr(e,l);return o?o==2?"-"+qe(a):e.length<a.length?qe(a.substring(1)):"-"+qe(al(a)):qe(a)}function al(e){let l="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?l+=9-parseInt(e[s]):l+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return sr(l,r)}function qe(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 Ml(e,l){let o=e.split("."),n=l.split("."),a=o[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),l=n[0]+(n[1]?"."+n[1]:""),[e,l]}function sr(e,l){[e,l]=Ml(e,l);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(l[a])+n;o=r%10+o,n=Math.floor(r/10)}return n?n.toString()+o:o}var $e=(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))($e||{});function qt(e,l=0,o=$e.HALF_EVEN){if(o===$e.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[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=qt(e,0,o),(n?"-":"")+i+new Array(l+1).join("0")}}if(l==0)return r.length,jo(a[1],r,n,o)?(n?"-":"")+rl(r):(n?"-":"")+r;if(a[1]){if(a[1].length<l)return(n?"-":"")+r+"."+a[1]+new Array(l-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(l+1).join("0");s=a[1].substring(0,l);let c=a[1].substring(l);return c&&jo(c,s,n,o)&&(s=rl(s),s.length>l)?(n?"-":"")+rl(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function jo(e,l,o,n){if(!e||e===new Array(e.length+1).join("0")||n===$e.DOWN||!o&&n===$e.FLOOR||o&&n===$e.CEILING)return!1;if(n===$e.UP||o&&n===$e.FLOOR||!o&&n===$e.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case $e.HALF_DOWN:return!1;case $e.HALF_UP:return!0;case $e.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function rl(e,l=0){l||(l=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+l;r==10?(l=1,r=0):l=0,n+=r}return l&&(n+=l),n.split("").reverse().join("")}function yl(e,l){e=e.toString(),l=l.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),l[0]=="-"&&(o++,l=l.substr(1)),e=At(e),l=At(l);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),l.indexOf(".")!=-1&&(a=l.length-l.indexOf(".")-1);let r=n+a;if(e=At(e.replace(".","")),l=At(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 b=0;for(let w=l.length-1;w>=f&&w>=0;w--)i[w]>-1&&i[w]<e.length&&(b+=parseInt(e[i[w]--])*parseInt(l[w]));b+=c,c=Math.floor(b/10),m=b%10+m,f--}return m=At(pi(m,r)),o==1&&(m="-"+m),m}function pi(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 At(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 bl(e,l,o=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 a=l.indexOf(".")>0?l.length-l.indexOf(".")-1:-1;if(l=qe(l.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=qe(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=qe(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let m=e.length-f+a;e=qe(e.substring(0,m)+"."+e.substring(m))}else a==f&&(e=qe(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(o=o+2;r<=o;){let f=0;for(;parseInt(i)>=parseInt(l);)i=vn(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?"-":"")+qe(qt(c,o-2))}function wl(e,l){return e=e.toString(),l=l.toString(),l=xl(l),vn(e,l)}function xl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ho(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),Ko(e),Ko(l);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let n=wl(e,yl(l,qt(bl(e,l),0,$e.FLOOR)));return o+n}function Ko(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Wo(e,l){let o=!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),o=!0),[e,l]=Ml(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]?o?-1:1:o?1:-1;return 0}class he{value;static RoundingModes=$e;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[o,n]=l.split(/[eE]/);o=qe(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?l=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?l=a+qe(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):l=a+"0."+new Array(-n+1).join("0")+o}return l}constructor(l="0"){this.value=he.validate(l)}getValue(){return this.value}static getPrettyValue(l,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");l=he.validate(l);let a=l.charAt(0)=="-";a&&(l=l.substring(1));var r=l.indexOf(".");r=r>0?r:l.length;for(var s="",c=r;c>0;)c<o?(o=c,c=0):c-=o,s=l.substring(c,c+o)+(c<r-o&&c>=0?n:"")+s;return(a?"-":"")+s+l.substring(r)}getPrettyValue(l,o){return he.getPrettyValue(this.value,l,o)}static round(l,o=0,n=$e.HALF_EVEN){if(l=he.validate(l),isNaN(o))throw Error("Precision is not a number: "+o);return qt(l,o,n)}round(l=0,o=$e.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new he(qt(this.value,l,o))}static floor(l){return l=he.validate(l),l.indexOf(".")===-1?l:he.round(l,0,$e.FLOOR)}floor(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,$e.FLOOR)}static ceil(l){return l=he.validate(l),l.indexOf(".")===-1?l:he.round(l,0,$e.CEILING)}ceil(){return this.value.indexOf(".")===-1?new he(this.value):new he(this.value).round(0,$e.CEILING)}static add(l,o){return l=he.validate(l),o=he.validate(o),vn(l,o)}add(l){return new he(vn(this.value,l.getValue()))}static subtract(l,o){return l=he.validate(l),o=he.validate(o),wl(l,o)}subtract(l){return new he(wl(this.value,l.getValue()))}static multiply(l,o){return l=he.validate(l),o=he.validate(o),yl(l,o)}multiply(l){return new he(yl(this.value,l.getValue()))}static divide(l,o,n){return l=he.validate(l),o=he.validate(o),bl(l,o,n)}divide(l,o){return new he(bl(this.value,l.getValue(),o))}static modulus(l,o){return l=he.validate(l),o=he.validate(o),Ho(l,o)}modulus(l){return new he(Ho(this.value,l.getValue()))}static compareTo(l,o){return l=he.validate(l),o=he.validate(o),Wo(l,o)}compareTo(l){return Wo(this.value,l.getValue())}static negate(l){return l=he.validate(l),xl(l)}negate(){return new he(xl(this.value))}}function ur(e,l){return he.multiply(`${e}`,`${l}`)}function Bl(e,l,o=8){return he.divide(`${e}`,`${l}`,o)}function Sl(e,l){return e=`${e}`,l=`${l}`,he.compareTo(e,l)}function cr(e){return he.negate(e)}function kn(e,l=-1,o=!1,n=3,a=","){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):o&&l>i.length&&(i=i.padEnd(l,"0")));let m;if(n>0){let d="",b=c.split("").reverse();for(let w=0;w<b.length;w++)d+=b[w]+((w+1)%n==0&&w+1!=b.length?a:"");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 fr(e){let l=`${e}`,o=l.charAt(0);o=="-"?l=l.substring(1):o="";let n=l.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Rl=Fl,vi=Array.isArray,yi=e=>$n(e)==="[object Map]",bi=e=>$n(e)==="[object Set]",dt=e=>e instanceof Date,Cl=e=>typeof e=="function",dr=e=>typeof e=="string",wi=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",yn=e=>je(e)&&Cl(e.then)&&Cl(e.catch),hr=Object.prototype.toString,$n=e=>hr.call(e),xi=e=>$n(e)==="[object Object]",mr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Si(e){return e.__esModule||mr&&e[Symbol.toStringTag]==="Module"}const Ci=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Et(...e){let l=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof l=="boolean"&&(a=l,l=e[o]??{},o++),typeof l!="object"&&(l={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let s in r){let c=l[s],i=r[s];if(c!==i)if(a===!0&&i&&typeof i=="object"){let f;Array.isArray(i)?f=c&&Array.isArray(c)?c:[]:f=c&&typeof c=="object"?c:{},l[s]=Et(a,f,i)}else i!==void 0&&(l[s]=i)}}return l}const il=Ci?Promise.resolve():null;function Ti(e,...l){il!==null?l&&l.length>0?il.then(()=>{e(l)}):il.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function fe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const ki={"[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 bn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ki[o]||"object"}function gr(e){return e&&typeof e=="object"&&"setInterval"in e}function pr(e){if(!e||e.nodeType!==1)return!0;let l=e;for(;l;){if(l.hidden)return!0;const o=window.getComputedStyle(l);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;l=l.parentElement}return!1}function vr(e){let l=!!e&&"length"in e&&e.length,o=bn(e);return o==="function"||gr(e)?!1:o==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function yr(e,l){let o=+l.length,n=0,a=e.length;for(;n<o;n++)e[a++]=l[n];return e.length=a,e}function $i(e,l=[]){let o=l;return e!=null&&(vr(Object(e))?yr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,l){if(e==l)return!0;if(e===void 0||l===void 0)return!1;let o=bn(e),n=bn(l);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),r=Object.keys(l);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let c=a[s],i=e[c],f=l[c];if(!Xe(i,f))return!1}return!0}else if(o==="array"){if(e.length!==l.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=l[a];if(!Xe(r,s))return!1}return!0}return!1}const mt=typeof window<"u";function We(e){return e==null}function Tl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null||typeof e!="string"?!1:e.length===0;function Ll(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function br(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 o=l.indexOf(".");return o==-1?l.length:o}function wr(e){if(e==null)return 0;const l=`${e}`;if(l.length==0)return 0;const o=l.indexOf(".");return o==-1?0:l.length-(o+1)}function Yo(e,l,o){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(o,"")}function Di(e,l=!0,o=!0){l?e=Yo(e,".",/\./g):e=e.replace(/\./g,""),o?e=Yo(e,"-",/-/g):e=e.replace(/-/,"");const n=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ni(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(o=>{if(Xe(e,o))return!0}):l.indexOf(e)}function Ei(e,l){if(typeof e=="object"||Array.isArray(e)){let o=l.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=l.length-1-o),o}return l.lastIndexOf(e)}function at(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function it(e,...l){const o={};return l.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function Ie(e,...l){const o=[];l.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const Pi=(e,l,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(l).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=l[a[r]]):l[r]&&(n[r]=l[r])}),n):e},De=Symbol.for("BroadcastKey");class _l{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(l,o,n){this.parent=l,this.proxy=o,this.name=n,l!==null&&l.addChild(this)}addChild(l){this.children.push(l)}removeChild(l){const o=this.children.findIndex(n=>l===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(l,o,n){if(!l.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const a=l.uniqueId,r={matched:l,action:o,args:n};return this.persistantMessages.set(a,r),!0}deletePersistantMessage(l){this.persistantMessages.delete(l)}getPersistantMessages(){const l=[];return this.persistantMessages.forEach(o=>{l.push(o)}),l}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(l,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||Tl(o.name)&&l&&o.name.test(l)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[l]):o.name===l&&(n=!0),n}trigger(l,o,n){let a=null;const r=this.callbacks.get(o);typeof r=="function"&&(a=Reflect.apply(r,this.proxy,[...n]));const s=this.proxy??{};typeof s[o]=="function"&&(a=Reflect.apply(s[o],s,[...n])),l.resolved=!0,typeof l.resolve=="function"&&l.resolve(a)}pull(){let l=this.parent;for(;l;){const o=l.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(a){console.error(a)}}),l=l.parent}}emit(l,o,...n){if(l.messagingPolicy==="Once"&&l.resolved===!0)return[];if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,o,n),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,o,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 a=!1;!l.name||l.name==="*"?a=!0:l.name==="+"?(a=!1,l.name="*"):Tl(l.name)&&this.name&&l.name.test(this.name)?a=!0:typeof l.name=="function"?a=Reflect.apply(l.name,null,[this.name]):l.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(o);if(typeof s=="function"){const i=Reflect.apply(s,this.proxy,[...n]);i!=null&&r.push(i)}const c=this.proxy??{};if(typeof c[o]=="function"){const i=Reflect.apply(c[o],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},o,...n]);c!=null&&Array.isArray(c)&&Reflect.apply([].push,r,[...c])}),r}emitToChildren(l,o,...n){if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,o,n),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,o,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 a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...l},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(l,o){this.callbacks.set(l,o)}}function Dn(e,l,o,n){const a=new _l(l,e,o);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function Ii(e,l,o){const n=o;if(n[De])return n[De];const a=t.inject(De,null),r=new _l(a,o,e);if(l&&typeof l=="object")for(const s in l)r.on(s,l[s]);return n[De]=r,t.provide(De,r),t.onUnmounted(()=>{r.destroy(),n[De]=void 0}),r}function Rt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}class Vi{error(l,o){const n=o,a=o||t.hasInjectionContext()?Rt(o):null;a?a.emit({name:"*"},"setErrorTip",l):typeof n.setErrorTip=="function"&&n.setErrorTip(l)}reset(l){const o=l,n=l||t.hasInjectionContext()?Rt(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(l){const o=l,n=l||t.hasInjectionContext()?Rt(l):null;n?n.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(l,o,n){Array.isArray(l)||(l=[l]);const a=n,r=n||t.hasInjectionContext()?Rt(n):null,s=o.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 a.setRequired=="function"&&a.setRequired(!0):s&&!c&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(l){return l.modelValue}}let Lt=new Vi;function Oi(e){Lt=e}function Ai(e){Lt?Object.assign(Lt,e):Lt=e}function Fi(e,l){vt.Schema.setValidator(e,l)}function Mi(e){vt.Schema.deleteValidator(e)}let xr=["blur","clear"];function Bi(e){xr=e}function Sr(){return xr}let Cr=["focus","change","setValue"];function Ri(e){Cr=e}function Tr(){return Cr}function Li(e){vt.Schema.messages(e)}function Ft(...e){const l=[];return e.forEach(o=>{o.forEach(n=>{const a=l.findIndex(r=>r.type===n.type);a!==-1&&l.splice(a,1),l.push(n)})}),l}function Jt(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 et=Symbol("ValidateSchemaKey");class kr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(l,o,n){this.parent=l,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let l=this.proxy.$attrs;l&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const o=Jt(Ft(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=Jt(n);const a=Ft(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(l,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[l]=="function")return Reflect.apply(n[l],n,[...o]);const a=Lt;return a&&typeof a[l]=="function"?Reflect.apply(a[l],a,[...o]):null}decorate(l,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",l,o,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,o,n=!1){n?vt.Schema.setValidator(l,o):this.validators[l]=o}getValidator(l){let o=this.validators[l]??null;return o||(o=this.parent?.getValidator(l)??null),o}deleteValidator(l,o=!1){o?vt.Schema.deleteValidator(l):Reflect.deleteProperty(this.validators,l)}hasValidator(l,o=!1){if(o)return vt.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 o=Ft(this.attrRules,this.rules);l===null?this.rules=[]:Array.isArray(l)?this.rules=Jt(l):this.rules=Jt([l]);const n=Ft(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Ft(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},r=this.getValue(),s={[`${n}`]:r},c=new vt.Schema(a),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 Nn(e,l,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(r){return r[a]}}}return new kr(l,o,e)}const wn=Symbol.for("EventEmitterKey");class $r{register=new Map;proxy;constructor(l){this.proxy=l}destroy(){this.proxy=null,this.register.clear()}off(l,o){let n=this.register.get(l);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===o);a!==-1&&n.splice(a,1)}}on(l,o){let n=this.register.get(l);n||(n=new Array,this.register.set(l,n)),n.push(o)}emit(l,...o){const n=this.register.get(l);n&&n.forEach(a=>{try{Reflect.apply(a,null,[l,...o])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[l,...o])}}function Ue(e,l){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},l)}}function Dr(e,l){let o=0;return function(...n){const a=new Date().getTime();a-o<l||(o=a,Reflect.apply(e,null,[...n]))}}function _i(e,l){const o=Ue((n,a)=>{e=n,a()},l);return t.customRef((n,a)=>({get(){return n(),e},set(r){o(r,a)}}))}function qi(e){let l=!1;return function(...o){l||(l=!0,Reflect.apply(e,null,[...o]))}}function En(e,l,o,n=0,a=!0,r){let s=l,c=0;if(a){const f=e();if(c++,f){typeof r=="function"&&r(!0);return}if(c>o){typeof r=="function"&&r(!1);return}}const i=()=>{const f=e();if(c++,f){typeof r=="function"&&r(!0);return}if(c>o){typeof r=="function"&&r(!1);return}s+=n,setTimeout(i,s)};setTimeout(i,s)}const Ke=Symbol("DomainKey"),Tt=Symbol("DataItemsKey");class Pn{_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,o=[]){for(const n in l){const a=l[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(l){if(Reflect.has(this._props,l)){const o=this._props[l];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(l)}delete(l){Reflect.deleteProperty(this._props,l)}set(l,o){this._props[l]=o}get(l,o){if(Reflect.has(this._props,l)){const n=this._props[l];if(n!=null)return n}return this.parent==null?o:this.parent.get(l,o)}getForParent(l,o){return this.parent==null?o:this.parent.get(l,o)}getForSelf(l){return this._props[l]}getAll(l){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,l)){const a=n._props[l];o.push(a)}n=n._parent}return o}}const zi=new Pn;function $t(){return zi}function gt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ke]??t.inject(Ke,null):t.inject(Ke,null)}const sl=Symbol("OriginalDateKey");function ql(e,l,o=[],n){const a=t.getCurrentInstance();let r=a?.proxy,s=t.inject(Ke,null);s===null&&(s=$t());const c=e||l.prop||l.name;let i=new Pn(c);i.parent=s;const f=p=>{r[sl]||b(p),i?.set("modelValue",p)},m=()=>i?.getForSelf("modelValue")??null,d=()=>r[sl]??null,b=p=>{const h={};Et(!0,h,t.toRaw(p)),r[sl]=h};t.isReactive(l)||typeof l=="function"?t.watch(l,p=>{i?.merge(p,o)},{immediate:!0}):i.merge(l,o),l.modelValue&&b(l.modelValue);const w=(p,h)=>{i?.set(p,h)},C=p=>i?.getForSelf(p)??null;if(r[Ke]=i,t.provide(Ke,i),a!==null){const p=t.inject(De,null),h=Dn(r,p,c,n);i.broadcast=h,r[De]=h,t.provide(De,h),r.broadcast=(u,D,...A)=>Reflect.apply(h.emit,h,[u,D,...A]);const V=t.inject(et,null),g=Nn(r,V,{componentName:""});i.validateSchema=g,r[et]=g,t.provide(et,g),r[Tt]=new Map,r.validate=(u=!0)=>{const D=[];let A=null;const I={deep:!1};if(u===!0)A={name:"*"};else if(Array.isArray(u)&&u.length>0){const T=u;A={name:N=>N?T.indexOf(N)!==-1:!1}}else if(u!=null&&typeof u=="object"){const T=u;if(Object.assign(I,T),Array.isArray(T.include)&&T.include.length>0){const N=T.include;A={name:y=>y?N.indexOf(y)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const N=T.exclude;A={name:y=>y?N.indexOf(y)===-1:!1}}else A={name:"*"}}if(A){const T=h?.emitToChildren(A,"validate",I);T&&Reflect.apply([].push,D,T)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(T=>{let N=[];return T.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(N=[...N,...y.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,D=!0,A=!1)=>{if(A===!0){Reflect.ownKeys(u).forEach(T=>{let N=String(T);const y={componentName:"",fieldName:N,pureDataValidate:!0};if(i){const z=Er(i,N,y,h,g);r[Tt].set(N,z);const x=u[N];x&&z.validateSchema.setRule(x)}});return}if(D){const I=Reflect.ownKeys(u),T={name:N=>I.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(T,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let D=null;if(u===!0)D={name:"*"};else if(Array.isArray(u)&&u.length>0){const A=u;D={name:I=>I?A.indexOf(I)!==-1:!1}}else if(u!=null&&typeof u=="object"){const A=u;if(Array.isArray(A.include)&&A.include.length>0){const I=A.include;D={name:T=>T?I.indexOf(T)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const I=A.exclude;D={name:T=>T?I.indexOf(T)===-1:!1}}else D={name:"*"}}D&&h?.emitToChildren(D,"clearValidate",!1)},r.resetFields=u=>{const D=m();if(!D)return;const A={};if(Et(!0,A,d()??{}),Array.isArray(u))u.forEach(I=>{D[I]=A[I]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(T=>{D[T]=A[T]});else if(u&&Array.isArray(u.exclude)){let I=u.exclude??[];Reflect.ownKeys(A).forEach(T=>{I.includes(T)||(D[T]=A[T])})}else Object.assign(D,A);r.clearValidate(u)},r.setModelValue=(u,D)=>{if(!D||D===c)f(u);else{const A={name:D,messagingPolicy:"Once"};h?.emitToChildren(A,"setModelValue",u)}},r.getModelValue=()=>m(),r.setDomainProperty=(u,D)=>{w(u,D)},r.getDomainProperty=u=>C(u),setTimeout(function(){h?.pull()},0)}return t.onUnmounted(function(){i?.validateSchema&&(i.validateSchema.destroy(),r[et]=void 0,t.provide(et,null)),i?.broadcast&&(i?.broadcast?.destroy(),r[De]=void 0,t.provide(De,null)),i?.destroy(),r[Ke]=void 0,t.provide(Ke,null),r[Tt]&&(r[Tt].clear(),r[Tt]=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 Nr(e,l,o=[]){let a=t.getCurrentInstance()?.proxy,r=t.inject(Ke,null);r===null&&(r=$t());const s=e||l.prop||l.name;let c=new Pn(s);return c.parent=r,t.isReactive(l)||typeof l=="function"?t.watch(l,i=>{c?.merge(i,o)},{immediate:!0}):c.merge(l,o),a[Ke]=c,t.provide(Ke,c),t.onUnmounted(()=>{c?.destroy(),a[Ke]=void 0,t.provide(Ke,null),c=null,a=null}),c}function Ne(e,l,o){const a=t.getCurrentInstance()?.proxy,r=l??"",s=t.inject(De,null);let c=Dn(a,s,r,o);a[De]=c,t.provide(De,c),a.broadcast=(C,p,...h)=>c?Reflect.apply(c.emit,c,[C,p,...h]):null;const i=t.inject(et,null);e.fieldName=e.fieldName??r;let f=Nn(a,i,e);a[et]=f,t.provide(et,f),a.validate=(C=null)=>{if(!f)return Promise.resolve({pass:!0});const p=[];let h=!1,V=!1;if(Array.isArray(C)&&C.indexOf(r)!==-1)V=!0,h=!0;else if(C&&typeof C=="object"){const g=C,u=g.ignoreDisabled??!0,D=g.ignoreReadonly??!0,A=g.ignoreHidden??!0;u===!0&&e.disabled===!0||D===!0&&e.readonly===!0||A===!0&&pr(a.$el)?V=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),V=!0),h=g.deep??!1}else typeof C=="boolean"&&(h=C),V=!0;if(V){const g=f?.validate();p.push(g)}if(h){let g=null;const u={deep:!1};if(C===!0)g={name:"*"};else if(Array.isArray(C)&&C.length>0){const D=C;g={name:A=>A?D.indexOf(A)!==-1:!1}}else if(C!=null&&typeof C=="object"){const D=C;if(Object.assign(u,D),Array.isArray(D.include)&&D.include.length>0){const A=D.include;g={name:I=>I?A.indexOf(I)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const A=D.exclude;g={name:I=>I?A.indexOf(I)===-1:!1}}else g={name:"*"}}if(g&&c){const D=c.emitToChildren(g,"validate",u);Reflect.apply([].push,p,D)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(g=>{let u=[];return g.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(u=[...u,...D.errors])}),u.length>0?{pass:!1,errors:u}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=C=>f?.setRule(C),a.setNameValidateRules=(C,p=!1)=>{const h=C[r];if(h&&f?.setRule(h),p&&c){const V={name:g=>Reflect.ownKeys(C).includes(g)};c.emitToChildren(V,"setNameValidateRules",C,!1)}},a.clearValidate=(C=null)=>{(!Array.isArray(C)||C.indexOf(l??"")!==-1)&&f?.clear();let p=null;if(C===!0)p={name:"*"};else if(Array.isArray(C)&&C.length>0){const h=C;p={name:V=>V?h.indexOf(V)!==-1:!1}}else if(C!=null&&typeof C=="object"){const h=C;if(Array.isArray(h.include)&&h.include.length>0){const V=h.include;p={name:g=>g?V.indexOf(g)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const V=h.exclude;p={name:g=>g?V.indexOf(g)===-1:!1}}else p={name:"*"}}p&&c&&c.emitToChildren(p,"clearValidate",!1)};let m=new $r(a);a[wn]=m;const d=Ue((C="validate")=>{f&&(C==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Sr()).forEach(C=>{m&&m.on(C,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Tr()).forEach(C=>{m&&m.on(C,p=>{d("reset")})}),setTimeout(function(){c?.pull()},0),t.onUnmounted(()=>{c?.destroy(),a[De]=void 0,t.provide(De,null),c=null,f?.destroy(),a[et]=void 0,t.provide(et,null),f=null,m?.destroy(),a[wn]=void 0,m=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null}),{broadcast:c,validateSchema:f,emitEvent:(C,...p)=>{m&&Reflect.apply(m.emit,m,[C,...p])},onEvent:(C,p)=>{m&&Reflect.apply(m.on,m,[p])},offEvent:(C,p)=>{m&&Reflect.apply(m.off,m,[p])}}}function Er(e,l,o,n,a){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}};o.fieldName=s,o.validateHandler={getValue(m){return c.getValue()}};let i=Nn({},a,o);r.validate=(m=null)=>{if(!c.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let b=!1,w=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)w=!0,b=!0;else if(m&&typeof m=="object"){const C=m;Array.isArray(C.include)&&C.include.indexOf(s)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(s),w=!0,b=C.deep??!1}else typeof m=="boolean"&&(b=m),w=!0;if(w&&i){const C=i.validate();d.push(C)}if(b){let C=null;const p={deep:!1};if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;C={name:V=>V?h.indexOf(V)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(p,h),Array.isArray(h.include)&&h.include.length>0){const V=h.include;C={name:g=>g?V.indexOf(g)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const V=h.exclude;C={name:g=>g?V.indexOf(g)===-1:!1}}else C={name:"*"}}if(C&&f){const h=f.emitToChildren(C,"validate",p);Reflect.apply([].push,d,h)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(C=>{let p=[];return C.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(p=[...p,...h.errors])}),p.length>0?{pass:!1,errors:p}:{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=Dn(null,n,s,r);return t.onUnmounted(()=>{i=null,f=null}),{broadcast:f,validateSchema:i}}function zl(){let l=t.getCurrentInstance()?.proxy,o=new $r(l);return l[wn]=o,t.onUnmounted(()=>{o?.destroy(),l[wn]=void 0,o=null,l=null}),{emitEvent:(n,...a)=>{o&&Reflect.apply(o.emit,o,[n,...a])},onEvent:(n,a)=>{o&&Reflect.apply(o.on,o,[a])},offEvent:(n,a)=>{o&&Reflect.apply(o.off,o,[a])}}}const we=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ye(e,l)}px`:"",ji=we;function ye(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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(mt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),c=s.indexOf("px");c>0&&(r=Number(s.substring(0,c)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*l;const n=Number(e);return isNaN(n)?0:n}const ht="PageStateKey";function lt(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=ye(e.top)),e.left!==null&&e.left!==void 0&&(l.left=ye(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=ye(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=ye(e.right))),l}function kl(e,l,o={},n=!0,a=-1,r=-1,s=0,c=0){if(e.headerHeight=ye(o.headerHeight??l.headerHeight??-1),e.headerPadding=lt(o.headerPadding??l.headerPadding),e.footerHeight=ye(o.footerHeight??l.footerHeight??-1),e.footerPadding=lt(o.footerPadding??l.footerPadding),e.contentPadding=lt(o.contentPadding??l.contentPadding),n){const i=o.height??l.height;i?e.height=ye(i,r):e.height=ye(r)-ye(s,r)-ye(c,r),e.width=ye(o.width??l.width??0,a)}}function Pr(e,l={}){const o={top:null,bottom:null,right:null,left:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},l.safeAreaInset??{});a&&(n.safeAreaTop=ye(a.top),n.safeAreaBottom=ye(a.bottom),n.safeAreaLeft=ye(a.left),n.safeAreaRight=ye(a.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;kl(n,r,l,!0,s,c,i,f);const m=t.reactive(n),d=e.getForParent(ht);d&&(n.height=xn(e,d),n.width=Sn(e,d),t.watch([()=>xn(e,d),()=>Sn(e,d)],([w,C])=>{m.height=w,m.width=C}));const b=!d;return t.watch([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([w,C,p=-1,h=-1,V=0,g=0])=>{kl(m,C,l,b,p,h,V,g)}),e.set(ht,m),m}function In(e){return e.get(ht)}function Vn(e,l){if(l=l??e.get(ht),l&&l.headerMounted){const o=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+o}return 0}function On(e,l){if(l=l??e.get(ht),l&&l.footerMounted){const o=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+o}return 0}function xn(e,l){if(l=l??e.get(ht),l){if(l.contentInnerHeight)return l.contentInnerHeight;const o=Vn(e,l),n=On(e,l);return l.height-o-n-(l.contentPadding.top??0)-(l.contentPadding.bottom??0)}return 0}function Sn(e,l){return l=l??e.get(ht),l?l.contentInnerWidth??l.width-(l.contentPadding.left??0)-(l.contentPadding.right??0):0}function Hi(e){return!!e.getForParent(ht)}const jl=Symbol.for("InnerPageScopeKey");function Hl(e){t.provide(jl,e)}function Kt(e=!1){return t.inject(jl,e)}const Kl=Symbol.for("AbstractPageScopeKey");function Ir(e){t.provide(Kl,e)}function Wt(e=!1){return t.inject(Kl,e)}var Ye=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ye||{});function en(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function Ae(e,l,o=1,n){const a=gt();return a==null?e:o===0?t.computed(()=>{const r=a.getAll(l);for(let c=r.length-1;c>=0;c--){const i=r[c];if(en(i,n))return i}const s=e.value;return en(s,n)?s:null}):t.computed(()=>{const r=e.value;if(en(r,n))return r;const s=a.getAll(l);for(let c=0;c<s.length;c++){const i=s[c];if(en(i,n))return i}return null})}function Me(e){return Ae(e,"readonly",1)}function Be(e){return Ae(e,"disabled",1)}function pe(e,l="modelValue",o=null,n){const a=t.toRef(e,l);let r=a.value;typeof o=="function"&&(r=o(a.value));const s=t.ref(r);return t.watch(a,c=>{if(typeof o=="function"){const i=o(c);i!==s.value&&(s.value=i,n&&n("setValue",i))}else c!==s.value&&(s.value=c,n&&n("setValue",c))}),s}const Vr=new Map,Cn=new Map;let $l=null;function Ki(e){$l=e}function Or(e,l,o){if(o){let n=Cn.get(o);n||(n=new Map,Cn.set(o,n)),n.set(e,l)}else Vr.set(e,l)}function Fe(e,l,o){!o&&$l&&(o=$l(e)??void 0);let n=null;if(o){let a=Cn.get(o);a&&(n=a.get(l))}return n||(n=Vr.get(l)),n}function Wi(e,l){for(let o in e){const n=e[o];Or(o,n,l)}}function Yi(e){Cn.delete(e)}function Ui(){return{top:0,left:0,bottom:0,right:0}}function Gi(){if(mt){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 Xi(e,l){if(l.componentPrefix){const o=e.indexOf("-");return`${l.componentPrefix}${e.slice(o)}`}return e}class Zi{packages;installers;_version;get version(){return this._version}constructor(l,o,n){this.packages=l,this.installers=o,this._version=n}install(l,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)l.use(a);else if(a.name){const r=Xi(a.name,o);l.component(r,a)}}),this.installers.forEach(a=>{a(l,o)}));const n=$t();if(o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...o},r=Ue(()=>{const c={...a};this.updateLayout(c,n)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(o,n)}updateLayout(l,o){const n=l.headerBarHeight??0,a=l.footerBarHeight??0,r=Et({},Ui(),l.safeAreaInset),s=Gi(),c=Et({},s.pageLayout,l.pageLayout);o=o??$t(),o.set("safeAreaInset",r),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",c),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const f in l)i.indexOf(f)===-1&&o.set(f,l[f])}setScopeGetter(l){Ki(l)}setAPI(l,o,n){Or(l,o,n)}getAPI(l,o,n){return Fe(l,o,n)}batchSetAPI(l,o){Wi(l,o)}clearScopeAPI(l){Yi(l)}getRootDomain(){return $t()}}const Qi=[O.ElAffix,O.ElAlert,O.ElAutocomplete,O.ElAutoResizer,O.ElAvatar,O.ElBacktop,O.ElBadge,O.ElBreadcrumb,O.ElBreadcrumbItem,O.ElButton,O.ElButtonGroup,O.ElCalendar,O.ElCard,O.ElCarousel,O.ElCarouselItem,O.ElCascader,O.ElCascaderPanel,O.ElCheckTag,O.ElCheckbox,O.ElCheckboxButton,O.ElCheckboxGroup,O.ElCol,O.ElCollapse,O.ElCollapseItem,O.ElCollapseTransition,O.ElColorPicker,O.ElConfigProvider,O.ElContainer,O.ElAside,O.ElFooter,O.ElHeader,O.ElMain,O.ElDatePicker,O.ElDescriptions,O.ElDescriptionsItem,O.ElDialog,O.ElDivider,O.ElDrawer,O.ElDropdown,O.ElDropdownItem,O.ElDropdownMenu,O.ElEmpty,O.ElForm,O.ElFormItem,O.ElIcon,O.ElImage,O.ElImageViewer,O.ElInput,O.ElInputNumber,O.ElLink,O.ElMenu,O.ElSubMenu,O.ElMenuItem,O.ElMenuItemGroup,O.ElPageHeader,O.ElPagination,O.ElPopconfirm,O.ElPopover,O.ElPopper,O.ElProgress,O.ElRadio,O.ElRadioButton,O.ElRadioGroup,O.ElRate,O.ElResult,O.ElRow,O.ElScrollbar,O.ElSelect,O.ElOption,O.ElOptionGroup,O.ElSelectV2,O.ElSkeleton,O.ElSkeletonItem,O.ElSlider,O.ElSpace,O.ElSteps,O.ElStep,O.ElSwitch,O.ElTable,O.ElTableColumn,O.ElTableV2,O.ElTabs,O.ElTabPane,O.ElTag,O.ElTimePicker,O.ElTimeSelect,O.ElTimeline,O.ElTimelineItem,O.ElTooltip,O.ElTransfer,O.ElTree,O.ElTreeSelect,O.ElTreeV2,O.ElUpload,O.ElStatistic,O.ElCountdown,O.ElSegmented,O.ElAnchor,O.ElAnchorLink,O.ElWatermark,O.ElMessageBox,O.ElMessage,O.ElNotification],Ji=[O.ElInfiniteScroll,O.ElLoading,O.ElMessage,O.ElMessageBox,O.ElNotification,O.ElPopoverDirective],es=(e,l={})=>{const o=l.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Qi.forEach(a=>{let r=a.name;typeof r=="string"?(r=`${n}${r.slice(2)}`,e.component(r,a)):e.use(a)}),Ji.forEach(a=>{e.use(a)})};function se(e){const l="fox-"+e;return{componentName:l,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=l,o.install=n=>{n.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function be(e,l=null){if(l||(l=t.getCurrentInstance()),l&&l.proxy){let o=l.proxy;Object.assign(o,e)}}const Te={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}},Ve={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}},Ar={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}},Fr={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}},Mr=[];for(const e in Fr)Mr.push(e);const ts={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}},ns=(e,l)=>({inheritAttrs:!0,props:{...Te,...Ar,...ts},setup(o,{slots:n}){const a=Wt(!1),r=Kt(!1),s=ql(o.name,o);if(s){const d=Pr(s,o);be({getPageContentHeight:()=>xn(s,d),getPageContentWidth:()=>Sn(s,d),getPageHeaderHeight:()=>Vn(s,d),getPageFooterHeight:()=>On(s,d)}),d&&r&&(d.contentHeight="100%")}const c=t.computed(()=>({[e]:!0,"is-inner":r})),i=t.computed(()=>({})),f=t.getCurrentInstance(),m=(d,b=!1)=>{const w=f?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules(d,!0,b)};return t.watch([()=>o.rules,()=>o.pureDataRules],([d,b],[w,C])=>{if(d&&w){const p=t.toRaw(w),h=t.toRaw(d),V=h?Reflect.ownKeys(h):[];(p?Reflect.ownKeys(p):[]).forEach(u=>{V.includes(u)||(h[u]=[])}),m(h)}if(b&&C){const p=t.toRaw(C),h=t.toRaw(b),V=h?Reflect.ownKeys(h):[];(p?Reflect.ownKeys(p):[]).forEach(u=>{V.includes(u)||(h[u]=[])}),m(h,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const d=t.toRaw(o.rules);m(d)}if(o.pureDataRules){const d=t.toRaw(o.pureDataRules);m(d,!0)}}),()=>{if(a)return n?.default?.();{const d={class:c.value,style:i.value};return t.h("div",d,[n?.default?.()])}}}}),{componentName:ls,create:os}=se("page"),Wl=os(ns(ls));function Yl(e){const l=t.unref(e);return{width:l.offsetWidth,height:l.offsetHeight}}function An(e){const l=t.unref(e),o=window.getComputedStyle(l,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:l.clientWidth-n-a,height:l.clientHeight-r-s}}const Br={headerbar:{},radio:{},checkbox:{}};function as(e){Object.assign(Br,e)}function Rr(){return Br}const rs=(e,l,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Wt(!1),c=Kt(!1),i=s?null:gt(),f=i?In(i):null;f&&(f.headerMounted=!0);const m=Rr(),d=e,b=t.computed(()=>{const S={[d]:!0,[`${d}--border`]:a.border,[`${d}--fixed`]:a.fixed};return c||(S[`${d}--safe-area-inset-top`]=a.safeAreaInsetTop),S}),w=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${a.align}`]:!0})),C=We(a.height)?null:ye(a.height),p=t.computed(()=>{const S={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return S;if(i&&f){const $=lt(a.padding??f.headerPadding);return Object.assign(S,$),We(C)||(f.headerHeight=C),S.height=f.headerHeight,S.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,S.safeAreaTop>0&&(S.top=S.safeAreaTop+($.top??0),S.height&&S.height>0&&(S.height=S.height+S.safeAreaTop)),S}if(We(C)||(S.height=C),a.padding){const $=lt(a.padding);Object.assign(S,$)}return S}),h=t.ref(null),V=()=>{if(f&&h.value&&h.value.offsetParent!==null){if(!n){const S=Yl(h.value);f.headerAllHeight=S.height}return f.headerMounted=!0,!0}return!1},g=Ue(V,120);let u=null;t.onMounted(()=>{s||f&&(En(V,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 D=t.computed(()=>{const S={};return s||(p.value.height!==null&&p.value.height!==void 0&&(S.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(S.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(S.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(S.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(S.paddingBottom=`${p.value.bottom}px`)),S}),A=t.computed(()=>{const S=p.value?.height;return We(S)||S<0?!0:S>0});function I(){r.emit("back")}function T(){r.emit("click-title")}function N(){r.emit("click-right")}function y(){r.emit("click-right-text")}const z=()=>{if(!a.leftShow)return null;const S=[];if(r.slots.left)S.push(r.slots.left());else{if(r.slots.leftIcon){const $=t.h("view",{class:"left-icon",onClick:I},[r.slots.leftIcon()]);S.push($)}else{const $=a.leftIcon??m.headerbar.Left??o,F=t.h("view",{class:"left-icon",onClick:I},[t.h($)]);S.push(F)}if(a.leftText){const $=t.h("view",{class:"left-text",onClick:I},[a.leftText]);S.push($)}}return S.length===0?null:t.h("view",{class:"fox-header-bar__left"},S)},x=()=>{if(!a.rightShow)return null;const S=[];if(r.slots.right)S.push(r.slots.right());else{if(a.rightText){const $=t.h("view",{class:"right-text",onClick:y},[a.rightText]);S.push($)}if(r.slots.rightIcon){const $=t.h("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);S.push($)}else if(a.rightIcon){const $=t.h("view",{class:"right-icon",onClick:N},[t.h(a.rightIcon)]);S.push($)}}return S.length===0?null:t.h("view",{class:"fox-header-bar__right"},S)},_=()=>{if(!a.titleShow)return null;const S=[],$=r.slots.default?r.slots.default():null;if($)S.push($);else{if(a.title){const F=t.h("view",{class:"title-text"},[a.title]);S.push(F)}if(r.slots.titleIcon){const F=t.h("view",{class:"title-icon",onClick:T},[r.slots.titleIcon()]);S.push(F)}else if(a.titleIcon){const F=t.h("view",{class:"title-icon",onClick:T},[t.h(a.titleIcon)]);S.push(F)}}return S.length===0?null:t.h("view",{class:"fox-header-bar__title"},S)},G=()=>{const S=[],$=r.slots.bottom?r.slots.bottom():null;return $&&S.push($),S.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},S)};return()=>{if(s||!A.value)return null;const S=[];if(r.slots.all)S.push(r.slots.all());else{const F=[],R=z();R&&F.push(R);const Q=_();Q&&F.push(Q);const W=x();if(W&&F.push(W),F.length>0){const J=t.h("view",{class:w.value},F);S.push(J)}const j=G();j&&S.push(j)}if(S.length===0)return null;const $={class:b.value,style:D.value,ref:h};return t.h("view",$,S)}}}),{componentName:is,create:ss,scope:us}=se("header-bar"),Ul=ss(rs(is,us,Pe.ArrowLeft));function cs(e,l,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,a){const r=Wt(!1),s=Kt(!1),c=r?null:gt(),i=c?In(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=We(n.height)?null:ye(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=lt(n.padding??i.footerPadding);return Object.assign(g,u),We(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(We(m)||(g.height=m),n.padding){const u=lt(n.padding);Object.assign(g,u)}return g}),b=t.computed(()=>{const g=d.value?.height;return We(g)||g<0?!0:g>0}),w=t.ref(null),C=()=>{if(i&&w.value&&w.value.offsetParent!==null){if(!o){const g=Yl(w.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1},p=Ue(C,120);let h=null;t.onMounted(()=>{r||i&&(En(C,50,5,50,!0),window.ResizeObserver&&w.value&&(h=new window.ResizeObserver(p),h.observe(w.value)))}),t.onUnmounted(()=>{r||i&&(i.footerMounted=!1,h&&(h.disconnect(),h=null))});const V=t.computed(()=>{const g={};return r||(d.value.height!==null&&d.value.height!==void 0&&(g.height=we(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=we(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=we(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=we(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=we(d.value.bottom))),g});return()=>{if(r||!b.value)return null;const g=a.slots.default?a.slots.default():[],u={ref:w,class:f.value,style:V.value};return t.h("view",u,g)}}}}const{componentName:fs,create:ds}=se("footer-bar"),Gl=ds(cs(fs));function hs(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:n,attrs:a}){const r=Wt(!1),s=Kt(!1),c=r?null:gt(),i=t.computed(()=>({[e]:!0})),f=c?In(c):null,m=t.computed(()=>{const p={};if(r)return p;if(c&&f){if(o.padding){const T=lt(o.padding);Object.assign(f.contentPadding,T)}const h=Vn(c,f),V=On(c,f);let g="";f.contentHeight?g=`${f.contentHeight}`:g=`${f.height}px`,p.height=g;let u=(f&&f.contentPadding&&f.contentPadding.top)??-1;(u>=0||h>0)&&(u=u<0?0:u,p.paddingTop=`${h+u}px`);let D=(f&&f.contentPadding&&f.contentPadding.bottom)??-1;(D>=0||V>0)&&(D=D<0?0:D,p.paddingBottom=`${V+D}px`);const A=(f&&f.contentPadding&&f.contentPadding.left)??-1;A>=0&&(p.paddingLeft=`${A}px`);const I=(f&&f.contentPadding&&f.contentPadding.right)??-1;return I>=0&&(p.paddingRight=`${I}px`),p}if(o.padding){const h=lt(o.padding);h.left&&(p.paddingLeft=`${h.left}px`),h.top&&(p.paddingTop=`${h.top}px`),h.right&&(p.paddingRight=`${h.right}px`),h.bottom&&(p.paddingBottom=`${h.bottom}px`)}return p}),d=t.ref(null),b=()=>{if(f&&d.value){const p=An(d.value);f.contentInnerHeight=p.height,f.contentInnerWidth=p.width}},w=Ue(b,120);let C=null;return t.onMounted(()=>{s||r||(requestAnimationFrame(b),window.ResizeObserver&&d.value&&(C=new window.ResizeObserver(w),C.observe(d.value)))}),t.onUnmounted(()=>{s||r||C&&(C.disconnect(),C=null)}),()=>{if(r)return n.default?.();{const p=o.tag??"view",h={...a,ref:d,class:i.value,style:m.value};return t.h(p,h,n)}}}}}const{componentName:ms,create:gs}=se("content"),Xl=gs(hs(ms)),Pt="GroupStateKey",Lr=Symbol.for("GroupScopeKey");function Fn(){return t.inject(Lr,!1)}function Mn(e=!0){t.provide(Lr,e)}function ps(e,l={}){Reflect.ownKeys(l).forEach(n=>{if(typeof n!="string")return;const a=l[n];We(a)||(e[n]=a)})}function vs(e,l={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ps(n,l);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(Pt,r),r}function ul(e,l,o=-1,n=-1,a=!1,r,s,c){const i=e.get(Pt);if(!i)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const m=ye(r),d=ye(s);c||(c=f.type??"grid");const b=()=>{const w=l===""||l===-1,C=ye(l);let p=ve(o);const h=ye(n);if(!w){let u=(C-(p-1)*h)/p;for(;d!==-1&&u>d;)p++,u=(C-(p-1)*h)/p;for(;m!==-1&&p>1&&u<m;)p--,u=(C-(p-1)*h)/p}let V=!1;const g=i.layout;g.value.width=l,g.value.column!==p&&(g.value.column=p,V=!0),g.value.gutter!==h&&(g.value.gutter=h,V=!0),g.value.type!==c&&(g.value.type=c,V=!0),V&&t.triggerRef(g)};if(a)b();else{const w=++i.passport;setTimeout(()=>{w===i.passport&&b()},50)}}function Bn(e,l=!1){let o;return l?o=e.getForParent(Pt):o=e.get(Pt),o.layout}function Rn(e,l=!1){let o;return l?o=e.getForParent(Pt):o=e.get(Pt),o.order}function Uo(e,l=1){if(l==="stretch")return-1;const o=ve(l);return o===-1?100:100*o/e}function Ln(e,l,o=1,n=0,a){const r={};let s=0;a?s=ye(a):s=Uo(l.column,o),s>0&&(r.width=`${s}%`);const c=Uo(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 _n(e,l,o=1,n=0){if(o==="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 a=ve(o);if(a===-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(a>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=ve(n)%l.column;let s=(e.index+r)%l.column,c=s+a;return c>l.column?(s=0,c=s+a,e.index=e.index+(l.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const _r=Symbol("RollingStateKey");function ys(e){t.provide(_r,e)}function bs(){return t.inject(_r,null)}function Dl(e){let l=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));l=e.clientHeight-a-r}else l=e.offsetHeight;return l}function ws(e){let l=Dl(e);if(l<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),l=Dl(o),document.body.removeChild(o)}return l}function xs(e,l,o){const n=typeof e=="number"?e:parseInt(e),a=typeof l=="number"?l:parseInt(l),r=typeof o=="number"?o:parseInt(o);if(n<=0)return"1fr";const s=(n-(a-1)*r)/a;return s>0?`${s}px`:"1fr"}const Ss={...Te,...Ar,...Fr};function Cs(e,l,o){return{props:Ss,emits:["update:collapse","header-click"],setup(n,a){const r=ql(n.prop??n.name,n,Mr),s=vs(r,{type:n.type}),c=Fn();Mn(!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?Bn(r,!0).value:null),b=t.getCurrentInstance(),w=(k,K=!1)=>{const P=b?.proxy;P&&typeof P.setNameValidateRules=="function"&&P.setNameValidateRules(k,!0,K)};t.watch([()=>n.rules,()=>n.pureDataRules],([k,K],[P,v])=>{if(k&&P){const q=t.toRaw(P),L=t.toRaw(k),te=L?Reflect.ownKeys(L):[];(q?Reflect.ownKeys(q):[]).forEach(re=>{te.includes(re)||(L[re]=[])}),w(L)}if(K&&v){const q=t.toRaw(v),L=t.toRaw(K),te=L?Reflect.ownKeys(L):[];(q?Reflect.ownKeys(q):[]).forEach(re=>{te.includes(re)||(L[re]=[])}),w(L,!0)}},{deep:!0});const C=e,p=t.computed(()=>{const k={};k.height=$.value;const K=c?Rn(r,!0):null;if(d.value&&K){if(d.value.type==="grid"){const P=_n(K,d.value,n.span,n.offset);Object.assign(k,P)}else if(d.value.type==="flow"){const P=Ln(K,d.value,n.span,n.offset,n.width);Object.assign(k,P)}}else if(n.width){const P=we(n.width);k.width=P}return k}),h=t.computed(()=>{const k=s.layout.value.type;return k==="grid"||k==="flow"?{[`${C}--${k}`]:!0,[`${C}--${k}-justify-${n.justify}`]:!0,[`${C}--${k}-align-${n.align}`]:!0,[`${C}--gutter`]:!0}:{[`${C}--${k}`]:!0,[`${C}--gutter`]:!0}}),V=t.computed(()=>{if(s.layout.value.type==="grid"){let K="";if(n.columnWidth)K=`repeat(auto-fill, ${n.columnWidth})`;else{const P=xs(N.value,s.layout.value.column,s.layout.value.gutter);K=`repeat(${s.layout.value.column}, ${P})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":K}}}),g=t.toRef(n,"gutter"),u=t.toRef(n,"column"),D=t.computed(()=>c||m.value?!0:fe(n.isWrap)),A=[],I=k=>{A.push(k)},T=()=>{let k=A.length;A.splice(0,k)},N=t.ref(-1),y=k=>{const K=An(k).width;K>0&&K!==N.value&&(N.value=K)};ul(r,N.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([N,u,g],([k,K,P])=>{s.order.index=0,ul(r,k,K,P,!1,n.minItemWidth,n.maxItemWidth,n.type)});const z=t.computed(()=>F.value?n.expandText??"":n.collapseText??""),x=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),G=t.ref(),S=t.ref(),$=t.computed(()=>R.value||we(n.height)||""),F=t.ref(!1),R=t.ref(""),Q=t.ref(!1);let W=-1;const j=(k,K=!0)=>{const P=G.value;if(P&&F.value!==k){if(W=W===-1?ws(P):W,Q.value=!0,K)if(P.style["will-change"]="height",P.ontransitionend=function(){P.ontransitionend=null,this.style["will-change"]="auto",k||(R.value="",Q.value=!1)},k){let v=0;n.collapseHeight?v=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(v=S.value.offsetHeight),R.value=`${W}px`,t.nextTick(()=>{R.value=`${v}px`})}else R.value=`${W}px`;else if(k){let v=0;n.collapseHeight?v=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(v=S.value.offsetHeight),R.value=`${v}px`}else Q.value=!1,R.value=`${W}px`;F.value=k,a.emit("update:collapse",k)}};t.watch(()=>n.collapse,k=>{j(k)});const J=k=>{a.emit("header-click",k)},Y=()=>{H()},H=k=>{k=k??!F.value,j(k)};be({toggleCollapse:H,doLayout:()=>{A[0]&&(y(A[0]),ul(r,N.value,u.value,g.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let X=null,M=!0;const ee=k=>{if(n.rules){const K=t.toRaw(n.rules);w(K)}if(n.pureDataRules){const K=t.toRaw(n.pureDataRules);w(K,!0)}if(mt&&(k&&j(fe(n.collapse),!1),n.autoLayout&&Array.isArray(A)&&A.length>0)){const K=A[0];if(y(K),window.ResizeObserver){const P=Ue(()=>y(K),120);X=new window.ResizeObserver(P),X.observe(K)}}},ne=()=>{X?.disconnect(),X=null},Z=!m.value||i?.acquire();Z&&(f.value=m.value?!0:null),t.onMounted(()=>{if(Z&&(ee(M),M=!1),m.value&&i){let k=null,K=i.initialHeight;i.observe(G.value,P=>{if(P!==f.value)if(P)f.value=!0,F.value||(R.value=""),k=setTimeout(()=>{k=null,f.value!==!1&&(ee(M),M=!1)},100);else{if(k!==null&&clearTimeout(k),f.value=!1,!F.value)if(M)R.value=i.initialHeight;else{let v=Dl(G.value);v<=0?R.value=K:(R.value=`${v}px`,K=R.value)}M||ne()}})}}),t.onUnmounted(()=>{X?.disconnect(),i&&i.unobserve(G.value)});const E=(k="right")=>{const K=[];if(z.value){const q={class:x.value},L=t.h("span",q,[z.value]);K.push(L)}const P={class:_.value},v=o(n.collapseIcon,P);return v&&K.push(v),K.length>0?t.h("div",{class:{[`${C}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:Y},K):null},B=(k,K,P,v)=>{const q={...h.value};if(K===0&&(q[`${C}__first`]=!0),P>=v-1&&(q[`${C}__last`]=!0),D.value===!1){const L=a.attrs.class;L&&(q[`${L}`]=!0)}return t.h("div",{ref:I,key:`${K}`,class:q,style:V.value},k)};return()=>{const k=n.prop??n.name;if(m.value&&f.value!==!0){const L=n.tag||"div";return t.h(L,{ref:G,prop:k,class:{[`${C}`]:!0,"is-collapse":Q.value},style:p.value},[])}s.order.index=0;const K=[];let P=0;if(a.slots.header){const L={key:`${P++}`,ref:S,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:J},te=t.h("div",L,[a.slots.header()]);K.push(te)}else{const L=[],te=n.collapsePosition==="left";if(te&&n.showCollapse){const oe=E("left");oe&&L.push(oe)}if(n.title||a.slots.title){if(n.showMark){const oe={class:{[`${C}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const re=t.h("div",oe);L.push(re)}if(a.slots.title){const oe=t.h("div",{class:{[`${C}__header-title`]:!0}},[a.slots.title()]);L.push(oe)}else if(n.title){const oe=t.h("div",{class:{[`${C}__header-title`]:!0}},[n.title]);L.push(oe)}}if(a.slots.toolbar&&L.push(a.slots.toolbar()),!te&&n.showCollapse){const oe=E("right");oe&&L.push(oe)}if(L.length>0){const oe={key:`${P++}`,ref:S,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:J},re=t.h("div",oe,L);K.push(re)}}T();const v=a.slots.default?a.slots.default():[],q=s.layout.value.type;if(q==="grid"){const L=B(v,P++,0,v.length);K.push(L)}else if(q==="flow"){const L=B(v,P++,0,v.length);K.push(L)}else for(let L=0;L<v.length;L++){const te=v[L],oe=B([te],P++,L,v.length);K.push(oe)}if(D.value){const L=n.tag||"div";return t.h(L,{ref:G,prop:k,class:{[`${C}`]:!0,"is-collapse":Q.value},style:p.value},[K])}else return K}}}}const{componentName:Ts,create:ks,scope:$s}=se("group"),Ds=(e,l)=>(e=e??Pe.ArrowUp,t.h(O.ElIcon,l,{default:()=>[t.h(e)]})),Zl=ks(Cs(Ts,$s,Ds));function Ns(e){return e===window}const Es=/matrix\((.+)\)/,Ql=e=>{const l=t.unref(e);if(!l)return{x:0,y:0};if(Ns(l))return{x:0,y:0};let o=0,n=0,a=l;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,c=0,i=0;for(a=l;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const m=Es.exec(f);if(m){let b=m[1].split(/\s*,\s*/);b.length==6&&(c+=Number(b[4]),i+=Number(b[5]))}}a=a.parentNode}return o-=r,n-=s,o+=c,n+=i,{x:o,y:n}};class Ps{watchedListeners=[];add(l){this.watchedListeners.push(l)}remove(l){const o=this.watchedListeners.indexOf(l);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(l=>{try{l()}catch{}})}}class Is{monitorRegister=new WeakMap;watch(l,o){let n=l.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new Ps,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(o),n=n.parentNode}}unwatch(l,o){let n=l.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(o),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const _t=new Is,qr={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:Vs,create:Os}=se("price"),As=Os({props:{...qr},setup(e){const l=t.computed(()=>({[Vs]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>at(e.price)==0?"":kn(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),a=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:o,intText:a,decimalText:r}}}),Re=(e,l)=>{const o=e.__vccOpts||e;for(const[n,a]of l)o[n]=a;return o},Fs=["innerHTML"],Ms=["innerHTML"];function Bs(e,l,o,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Fs)):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,Ms)):t.createCommentVNode("",!0)],2)}const qn=Re(As,[["render",Bs]]),{componentName:cl,create:Rs}=se("hint-text"),Ls=Rs({components:{Price:qn},props:{...qr,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 o=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),c=t.ref(!1),i=t.ref(null),f=(x,_,G,S,$,F)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,W=x.split("-");let j=[];W[0]==="top"?j=["top","bottom","right","left"]:W[0]==="bottom"?j=["bottom","top","right","left"]:W[0]==="left"?j=["left","top","bottom","right"]:W[0]==="right"&&(j=["right","top","bottom","left"]);const J={top:null,right:null,bottom:null,left:null},Y=[];for(let H=0;H<j.length;H++){const U=j[H];if(Y[0]=U,W[1]&&(Y[1]=W[1]),U==="top"){const X=_.y-F-e.arrowSize-e.offset;if(X>=0){J.top=X;let M=0;W[1]==="start"?M=_.x:W[1]==="end"?M=_.x+G-$:M=_.x+G/2-$/2;const ee=R-M-$;ee<0?(M+=ee,d.value=-ee):d.value=0,J.left=M<0?0:M;break}}else if(U==="bottom"){const X=_.y+S+e.arrowSize+e.offset;if(X+F<=Q){J.top=X;let M=0;W[1]==="start"?M=_.x:W[1]==="end"?M=_.x+G-$:M=_.x+G/2-$/2;const ee=R-M-$;ee<0?(M+=ee,d.value=-ee):d.value=0,J.left=M<0?0:M;break}}else if(U==="left"){const X=_.x-$-e.arrowSize-e.offset;if(X>=0){J.left=X;let M=0;W[1]==="start"?M=_.y:W[1]==="end"?M=_.y+S-F:M=_.y+S/2-F/2,J.top=M<0?0:M;break}}else if(U==="right"){const X=_.x+G+e.arrowSize+e.offset;if(X+$<=R){J.left=X;let M=0;W[1]==="start"?M=_.y:W[1]==="end"?M=_.y+S-F:M=_.y+S/2-F/2,J.top=M<0?0:M;break}}}return{bestPlacement:Y.join("-"),bestInsetRect:J}},m=(x,_,G=10)=>{if(!mt||_===!1||!x)return;n.value=Ql(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const S=i.value.offsetHeight,$=i.value.offsetWidth,{bestPlacement:F,bestInsetRect:R}=f(e.placement,n.value,a.value,r.value,$,S);s.value=F,o.value=R,c.value=!0},d=t.ref(0),b=Ue(()=>{m(e.message,e.visible)},10),w=t.ref(e.visible);t.watch(()=>e.visible,x=>{w.value=x});const C=t.computed(()=>w.value&&p.value),p=t.ref(!0),h=Ue(x=>{const _=x[0];_&&(p.value=_.isIntersecting)},10),V=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),_t.watch(e.reference,b),V.observe(e.reference)}),t.onBeforeUnmount(()=>{_t.unwatch(e.reference,b),V.unobserve(e.reference),V.disconnect()});const g=t.computed(()=>{const x={[cl]:!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={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${a.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}),D=t.computed(()=>{const x=[`${cl}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),A=t.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),I=t.computed(()=>({[`${cl}__arrow`]:!0})),T=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"}}),N=t.computed(()=>C.value&&e.closeOnClick),y=t.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:C,tipRef:i,classes:g,styles:u,textClasses:D,textStyles:A,arrowClasses:I,arrowStyles:T,overlayShow:N,overlayStyle:y,onClickOverlay:()=>{w.value=!1,l.emit("update:visible",!1)}}}}),_s=["innerHTML"];function qs(e,l,o,n,a,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,_s))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const zr=Re(Ls,[["render",qs]]);class jr{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 Nl={},zs=new jr,Dt=new Map,Tn=e=>{if(e){const l=document.getElementById(e);Dt.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of Dt.keys()){const o=document.getElementById(l);o&&o.parentNode?.removeChild(o)}Dt.clear()}},js=e=>{e.unmount=Tn;const l=document.getElementById(e.id);if(l){const o=Dt.get(e.id);o?e={...Nl,...o,...e}:e={...Nl,...e},e.transition=!1;const n=t.createVNode(zr,e);t.render(n,l)}return e.id},Hs=e=>{e.unmount=Tn;let l=e.id??`hinttext_${zs.get()}`;e={...Nl,...e},e.id=l,Dt.set(l,e);const o=document.createElement("div");o.id=e.id;const n=t.createVNode(zr,e);return t.render(n,o),document.body.appendChild(o),l},Ks=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Oe={show(e,l,o={},n=!0){Ks(l);const a=o.id;return a&&Dt.has(a)?js({...o,message:l,reference:e}):(n&&Tn(),Hs({...o,message:l,reference:e}))},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=Oe}};function Ws(e,l,o,n=!1){return{inheritAttrs:!0,props:{...Te,...Ve},emits:["appear","disappear"],setup(a,r){const s=a.prop??r.attrs.name;Ne({componentName:e,validate:!1},s);const c=gt(),i=Fn();Mn(!1);const f=t.computed(()=>i&&c?Bn(c,!1).value:null),m=e,d=t.ref(null),b=t.computed(()=>{const v={[m]:!0,[`${m}__gutter`]:f.value&&f.value.type!=="flow",[`${m}__stretch`]:a.span==="stretch",[`${m}__input--border`]:fe(a.hasBorder)};if(v[a.errorMarkClass]=!!F.value,v[a.warnMarkClass]=!!S.value,v[a.infoMarkClass]=!!_.value,typeof d.value=="function"){const q=d.value(s);v[q]=!0}else if(typeof d.value=="string"){const q=d.value;v[q]=!0}return v}),w=t.ref(null),C=t.computed(()=>{const v={};if(a.width)a.width!=="auto"&&(v.width=we(a.width));else{const q=i&&c?Rn(c,!1):null;if(f.value&&q){if(f.value.type==="grid"){const L=_n(q,f.value,a.span,a.offset);Object.assign(v,L)}else if(f.value.type==="flow"){const L=Ln(q,f.value,a.span,a.offset,a.width);Object.assign(v,L)}}}if(typeof w.value=="function"){const q=w.value(s);q&&Object.assign(v,q)}else if(w.value&&typeof w.value=="object"){const q=w.value;Object.assign(v,q)}return v}),p=t.ref(null),h=t.computed({get:()=>p.value??fe(a.isRequired),set:v=>{p.value=v}}),V=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",g=Ae(t.toRef(a,"labelPosition"),"labelPosition",Ye.Near),u=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),D=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${u.value}`]:!0})),A=t.computed(()=>({label:!0,[`label--${u.value}`]:!0})),I=Ae(t.toRef(a,"labelWidth"),"labelWidth",Ye.Near),T=t.computed(()=>I&&I.value?{width:we(I.value)}:{}),N=t.computed(()=>({"label--string":!0,"label--required":h.value})),y=t.computed(()=>({content:!0,[a.contentClass]:!0})),z=t.computed(()=>({...a.contentStyle})),x=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(v){h.value=v},setErrorTip(v){x.errorTip=v},setErrorIcon(v){x.errorIcon=v},setWarnTip(v){x.warnTip=v},setWarnIcon(v){x.warnIcon=v},setInfoTip(v){x.infoTip=v},setInfoIcon(v){x.infoIcon=v},setCustomClassName(v){d.value=v},setCustomStyle(v){w.value=v}});const _=t.computed(()=>a.infoTip||x.infoTip),G=t.computed(()=>a.infoIcon||x.infoIcon),S=t.computed(()=>a.warnTip||x.warnTip),$=t.computed(()=>a.warnIcon||x.warnIcon),F=t.computed(()=>a.errorTip||x.errorTip),R=t.computed(()=>a.errorIcon||x.errorIcon),Q=t.computed(()=>F.value?"error":S.value?"warn":_.value?"info":""),W=()=>Q.value.length>0,j=t.computed(()=>Q.value==="error"?F.value:Q.value==="warn"?S.value:Q.value==="info"?_.value:""),J=t.computed(()=>Q.value==="error"?R.value:Q.value==="warn"?$.value:Q.value==="info"?G.value:null),Y=t.computed(()=>{const v={[`${m}__tip`]:!0,[`${m}__tip--${Q.value}`]:!0,[`${m}--animate`]:!0};return Q.value==="error"&&a.errorClass?v[`${a.errorClass}`]=!0:Q.value==="warn"&&a.warnClass?v[`${a.warnClass}`]=!0:Q.value==="info"&&a.infoClass&&(v[`${a.infoClass}`]=!0),v}),H=t.computed(()=>{const v={};return g&&g.value==="top"||!V()?v["padding-left"]="0px":I&&I.value&&(v["padding-left"]=we(I.value)),v}),U=t.ref();let X="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([v,q,L,te])=>{U.value&&(v&&!me(q)?X?o.show(U.value,q,{...te,id:X,type:L},!0):X=o.show(U.value,q,{...te,type:L},!0):o.hide(X))});let M=null;const ee=()=>{M||!U.value||(M=new IntersectionObserver(v=>{let q=!1;for(let L of v)if(L.intersectionRatio>0){q=!0,q&&r.emit("appear",L);break}q||r.emit("disappear")}),M.observe(U.value))},ne=()=>{!M||!U.value||(M.unobserve(U.value),M=null)};t.watch(()=>fe(a.appearListen),v=>{v?ee():ne()}),t.onMounted(()=>{fe(a.appearListen)&&ee()}),t.onUnmounted(ne);const Z=()=>{if(!V())return null;const v=[],q=r.slots?.label?.()??a.label,L={class:N.value},te=t.h("div",L,[q]);if(v.push(te),r.slots.fixedPreTip){const re=r.slots.fixedPreTip();v.push(re)}const oe={class:A.value,style:T.value};return t.h("div",oe,v)},E=()=>{const v=[];if(r.slots.prepend){const L=r.slots.prepend();v.push(L)}if(r.slots.default){const L=r.slots.default();v.push(L)}if(r.slots.append){const L=r.slots.append();v.push(L)}if(r.slots.fixedTip){const L={class:[`${m}__fixed-tip`]},te=t.h("div",L,[r.slots.fixedTip()]);v.push(te)}const q={ref:U,class:y.value,style:z.value};return t.h("div",q,v)},B=()=>{const v=J.value;return v?typeof v=="function"?t.h("div",{class:"fox-item__tip--icon"},[v()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(v)]):null},k=()=>{const v=j.value;return v?typeof v=="function"?t.h("div",{class:"fox-item__tip--text"},[v()]):t.h("div",{class:"fox-item__tip--text"},[v]):null},K=()=>{if(!W())return null;const v=[],q=B();q&&v.push(q);const L=k();L&&v.push(L);const te={class:Y.value,style:H.value};return t.h("div",te,v)},P=()=>r.slots?.hide?.()??null;return()=>{const v=[],q=[],L=Z();L&&q.push(L);const te=E();te&&q.push(te);const oe={class:D.value},re=t.h("div",oe,q);v.push(re);const de=K();de&&v.push(de);const ge=P();ge&&v.push(ge);const Ce={class:b.value,style:C.value,prop:a.prop};return t.h("div",Ce,v)}}}}const{componentName:Ys,create:Us,scope:Gs}=se("item"),ke=Us(Ws(Ys,Gs,Oe,!1)),El={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Xs(e,l){return{props:{...El},setup(o,n){const a=gt(),r=Fn();Mn(!1);const s=t.computed(()=>r&&a?Bn(a,!1).value:null),c=e,i=t.computed(()=>({[c]:!0,[`${c}__gutter`]:s.value&&s.value.type!=="flow",[`${c}__stretch`]:o.span==="stretch"})),f=t.computed(()=>{const m={};if(o.width)o.width!=="auto"&&(m.width=we(o.width));else{const d=r&&a?Rn(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const b=_n(d,s.value,o.span,o.offset);Object.assign(m,b)}else if(s.value.type==="flow"){const b=Ln(d,s.value,o.span,o.offset,o.width);Object.assign(m,b)}else return o.width&&(m.width=we(o.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:Zs,create:Qs}=se("slot-item"),zn=Qs(Xs(Zs)),Pl={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 Js(e,l){return{props:{...Pl},setup(o,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=gt(),c=Fn();Mn(!1);const i=t.computed(()=>{const f={};if(o.width)o.width!=="auto"&&(f.width=we(o.width));else if(c&&s){const m=Bn(s,!1),d=Rn(s,!1);if(m.value&&d)if(m.value.type==="grid"){const b=_n(d,m.value,o.span,o.offset);Object.assign(f,b)}else if(m.value.type==="flow"){const b=Ln(d,m.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=we(o.width))}return o.gutter&&(f.gap=we(o.gutter)),f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const w=t.h("div",{class:{[`${a}__divide`]:!0}});f.push(w)}f.push(d[b])}else Reflect.apply([].push,f,d)}const m={class:r.value,style:i.value};return t.h("div",m,f)}}}}const{componentName:eu,create:tu}=se("row-item"),jn=tu(Js(eu));function nu(e,l){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){l(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),l(a)},500)}const lu={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 ou(e,l,o,n=!1){return{props:{...lu},emits:["click"],setup(a,r){const s=t.ref(null),c=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(u[`${e}--${a.type??"default"}`]=!0),a.size&&(u[`${e}--${a.size}`]=!0),u}),i=t.computed(()=>{const u={},D=a.textColor??a.color;return D&&(u.color=D),u}),f=(u,D)=>{let A=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const I=a.highlightFilter;if(u.indexOf(I)!==-1){const N=u.replace(new RegExp(I,"g"),`<span>${I}</span>`);D.innerHTML=N,D.class["is-highlight"]=!0,A=t.h(a.tag,D)}}else if(typeof a.highlightFilter=="function"){const I=a.highlightFilter(u);I&&(D.innerHTML=I,D.class["is-highlight"]=!0,A=t.h(a.tag,D))}return A},m=u=>{r.emit("click",u)};let d="";const b=()=>{const u=s.value;if(!u)return;const D=u.clientWidth;nu(u,A=>{const I=u.innerHTML??"";me(I)||A<D||(d?o?.show(u,I,{type:"text",id:d,showArrow:a.showArrow},!0):d=o?.show(u,I,{type:"text",showArrow:a.showArrow},!0)??"")})},w=()=>{d&&o?.hide(d)};let C=null;const p=u=>{C||(C=setTimeout(()=>{b(),C=null},a.showAfter??0))},h=u=>{C&&(clearTimeout(C),C=null),setTimeout(()=>{w()},a.hideAfter??0)},V=()=>{const u=s.value;u&&(u.addEventListener("mouseover",p),u.addEventListener("mouseleave",h))},g=()=>{const u=s.value;u&&(u.removeEventListener("mouseover",p),u.removeEventListener("mouseleave",h))};return t.onMounted(()=>{!fe(a.showOverflowTooltip)||!o||V()}),t.onBeforeUnmount(()=>{!fe(a.showOverflowTooltip)||!o||g()}),()=>{const u={onClick:m,class:c.value,style:i.value,ref:s};let D=null;if(fe(a.numberFormat)&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const y=N[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const z=ve(a.digits),x=ve(a.decimalLength),_=fe(a.autoPadding);let G=`${N[0].children}`,S=G.split("").reverse().join("");S=kn(S,x,_,z,a.separator),G=S.split("").reverse().join(""),a.highlightFilter!==void 0&&(D=f(G,u)),D||(u.innerHTML=G,D=t.h(a.tag,u))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const y=N[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const z=`${N[0].children}`;D=f(z,u),D||(u.innerHTML=z,D=t.h(a.tag,u))}}}D||(D=t.h(a.tag,u,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return D;let I=null;if(a.icon){const N={[`${e}__mark-wrap`]:!0};a.type&&(N[`${e}__mark-wrap--${a.type}`]=!0);const y={},z=a.color;z&&(y.color=z);const x={onClick:m,class:N,style:y};I=t.h("view",x,t.h(a.icon))}else if(r.slots.mark){const N={[`${e}__mark-wrap`]:!0};a.type&&(N[`${e}__mark-wrap--${a.type}`]=!0);const y={},z=a.color;z&&(y.color=z);const x={onClick:m,class:N,style:y};I=t.h("view",x,{default:r.slots.mark})}else{const N={[`${e}__mark`]:!0};a.type&&(N[`${e}__mark--${a.type??"default"}`]=!0);const y={},z=a.color;z&&(y["background-color"]=z);const x={onClick:m,class:N,style:y};I=t.h("view",x)}const T={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",T,[I,D])}}}}const{componentName:au,create:ru,scope:iu}=se("text"),Hn=ru(ou(au,iu,Oe,!1)),su={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 uu(e,l,o=!1){return{props:{...su},emits:["update:visible"],setup(n,{emit:a,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),b=t.ref(n.placement),w=t.ref(!1),C=t.ref(!1),p=t.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,V=(j,J,Y,H,U,X,M,ee=!0)=>{const ne=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,E=j.split("-");let B=[];ee?E[0]==="top"?B=["top","bottom","right","left"]:E[0]==="bottom"?B=["bottom","top","right","left"]:E[0]==="left"?B=["left","top","bottom","right"]:E[0]==="right"&&(B=["right","top","bottom","left"]):B=[j[0]];const k={top:null,right:null,bottom:null,left:null},K=[];for(let P=0;P<B.length;P++){const v=B[P];if(K[0]=v,E[1]&&(K[1]=E[1]),v==="top"){const q=Y-M-n.arrowSize/2-n.offset;if(q>=0){k.top=q;let L=0;E[1]==="start"?L=J:E[1]==="end"?L=J+H-X:L=J+H/2-X/2;const te=ne-L-X;te<0?(L+=te,u.value=-te):u.value=0,k.left=L<0?0:L;break}}else if(v==="bottom"){const q=Y+U+n.arrowSize/2+n.offset;if(q+M<=Z){k.top=q;let L=0;E[1]==="start"?L=J:E[1]==="end"?L=J+H-X:L=J+H/2-X/2;const te=ne-L-X;te<0?(L+=te,u.value=-te):u.value=0,k.left=L<0?0:L;break}}else if(v==="left"){const q=J-X-n.arrowSize/2-n.offset;if(q>=0){k.left=q;let L=0;E[1]==="start"?L=Y:E[1]==="end"?L=Y+U-M:L=Y+U/2-M/2,k.top=L<0?0:L;break}}else if(v==="right"){const q=J+H+n.arrowSize/2+n.offset;if(q+X<=ne){k.left=q;let L=0;E[1]==="start"?L=Y:E[1]==="end"?L=Y+U-M:L=Y+U/2-M/2,k.top=L<0?0:L;break}}}return{bestPlacement:K.join("-"),bestInsetRect:k}},g=()=>{const j=n.visible,J=n.autoFit;if(!mt||j===!1)return;if(n.reference){const M=h(),ee=Ql(M);i.value=ee.x,f.value=ee.y,m.value=M.offsetWidth,d.value=M.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 Y=p.value.offsetWidth,H=p.value.offsetHeight,{bestPlacement:U,bestInsetRect:X}=V(n.placement,i.value,f.value,m.value,d.value,Y,H,J);b.value=U,c.value=X},u=t.ref(0),D=Ue(()=>{g()},10),A=t.ref(n.visible);t.watch([()=>n.visible],([j])=>{A.value=j,j?(w.value=j,setTimeout(()=>{g(),C.value=!0},0)):C.value=!1});const I=t.computed(()=>A.value&&T.value),T=t.ref(!0),N=Ue(j=>{const J=j[0];J&&(T.value=J.isIntersecting)},10),y=new IntersectionObserver(N);t.watch([()=>n.reference,()=>n.referenceInset],([j,J],[Y,H])=>{!j&&!J||(setTimeout(()=>{g()},0),n.autoFit&&(Y&&(_t.unwatch(Y,D),y.unobserve(Y)),j&&(_t.watch(j,D),y.observe(j))))},{immediate:!0}),t.onBeforeUnmount(()=>{n.reference&&(_t.unwatch(n.reference,D),y.unobserve(n.reference),y.disconnect())});const z=t.computed(()=>{const j={[e]:!0};return b.value.startsWith("top")?j["is-top"]=!0:b.value.startsWith("right")?j["is-right"]=!0:b.value.startsWith("bottom")?j["is-bottom"]=!0:b.value.startsWith("left")&&(j["is-left"]=!0),j[`is-${n.effect}`]=!0,!C.value&&I.value&&(j["is-opacity"]=!0),C.value&&I.value&&(j["is-show"]=!0),I.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}),_=()=>{A.value=!1,a("update:visible",!1)},G=()=>{if(!n.showOverlay)return null;const j={class:`${e}__overlay`,onClick:_};return t.h("div",j)},S=()=>{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},$=t.computed(()=>({[`${e}__arrow`]:!0})),F=t.computed(()=>{const j={};return n.showArrow?(j.width=`${n.arrowSize}px`,j.height=`${n.arrowSize}px`,b.value==="top"?(j.left="50%",j.bottom="0",j.transform="translate(-50%, 50%)"):b.value==="top-start"?(j.left=`${n.arrowOffset+u.value}px`,j.bottom="0",j.transform="translate(-50%, 50%)"):b.value==="top-end"?(j.right=`${n.arrowOffset-u.value}px`,j.bottom="0",j.transform="translate(-50%, 50%)"):b.value==="right"?(j.left="0",j.top="50%",j.transform="translate(-50%, -50%)"):b.value==="right-start"?(j.left="0",j.top=`${n.arrowOffset}px`,j.transform="translate(-50%, 50%)"):b.value==="right-end"?(j.left="0",j.bottom=`-${n.arrowOffset}px`,j.transform="translate(-50%, 50%)"):b.value==="bottom"?(j.left="50%",j.top="0",j.transform="translate(-50%, -50%)"):b.value==="bottom-start"?(j.left=`${n.arrowOffset+u.value}px`,j.top="0",j.transform="translate(-50%, -50%)"):b.value==="bottom-end"?(j.right=`${n.arrowOffset-u.value}px`,j.top="0",j.transform="translate(-50%, -50%)"):b.value==="left"?(j.right="0",j.top="50%",j.transform="translate(50%, -50%)"):b.value==="left-start"?(j.right="0",j.top=`${n.arrowOffset}px`,j.transform="translate(50%, -50%)"):b.value==="left-end"&&(j.right="0",j.bottom=`-${n.arrowOffset}px`,j.transform="translate(50%, -50%)"),j):{display:"none"}}),R=()=>{const j={class:$.value,style:F.value};return t.h("div",j)},Q=()=>{A.value===!1&&(w.value=!1)},W=j=>{if(!p.value||A.value===!1)return;const{relatedTarget:J}=j;p.value.contains(J)||(A.value=!1,a("update:visible",!1))};return s({doLayout:g}),()=>{if(!w.value)return null;const j=[],J=G();J&&j.push(J);const Y=[],H=S();if(H&&Y.push(H),r.default){const ne=r.default();Y.push(ne)}const U=R();U&&Y.push(U);const X={ref:p,class:z.value,style:x.value,onAnimationend:Q};n.leaveHide&&(X.onMouseleave=W);const M=t.h("div",X,{default:()=>Y});return j.push(M),t.h(t.Teleport,{to:n.teleport,disabled:n.teleportDisable},{default:()=>j})}}}}const{componentName:cu,create:fu,scope:du}=se("popover-dialog"),Kn=fu(uu(cu,du,!1)),hu={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 mu(e,l,o){return{props:{...Pl,...hu},emits:["click"],setup(n,{slots:a,attrs:r}){const{toLocaleRefs:s}=Se.useFoxI18n(l),c=s(n,["moreText"]),i=e,f=t.computed(()=>({[i]:!0}));function m(I){return I.props||{}}function d(I){return!!m(I).disabled}function b(I){return I.children??[]}const w=t.ref(),C=t.computed(()=>w.value?.$el??null),p=t.ref(!1),h=I=>{p.value=I},V=()=>{p.value=!p.value};function g(I,T){return()=>{if(T)return;p.value=!1,m(I)?.onClick?.()}}function u(I,T){const N=b(I),y=d(I),z=g(I,y),x=[`${i}__dropdown-item`];y&&x.push("is-disabled");const _={class:x,onClick:z};return t.h("span",_,N)}const D=I=>{const T=n.maxDisplayCount??I.length;if(T>=I.length)return I;const N=[],y=T-1;for(let F=0;F<y;F++)N.push(I[F]);const z=(a.moreIcon&&a.moreIcon())??(n.moreIcon&&t.h(n.moreIcon))??t.h(o),x={ref:F=>w.value=F,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:n.type,onClick:V},_=t.h(Hn,x,{default:()=>c.moreText.value,mark:()=>z});N.push(_);const G=[];for(let F=y;F<I.length;F++){const R=u(I[F]);G.push(R)}const S={placement:n.dropdownPlacement,"onUpdate:visible":h,visible:p.value,reference:C.value,"custom-class":`${i}__popover`},$=t.h(Kn,S,{default:()=>G});return N.push($),N},A=()=>(a.default?.()||[]).filter(T=>T.type!==Comment);return()=>{const I=A(),T=D(I),N=it(n,Pl);return Object.assign(N,r??{}),N.class=f.value,t.h(jn,N,{default:()=>T})}}}}const{componentName:gu,create:pu,scope:vu}=se("buttons-item"),Jl=pu(mu(gu,vu,Pe.ArrowDown)),tt=(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},Go={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,o){return{props:{...Te,...Ve,...Go},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,a){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}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=pe(n,"modelValue",null,f),C=e,p=t.computed(()=>({[C]:!0,[`${C}__disabled`]:s.value,[`${C}__readonly`]:i.value})),h=$=>{w.value=$,f("update:modelValue",$),f("input",$)},V=$=>{f("change",$)};let g=pe(n,"hintText"),u=t.ref(!1);const D=$=>{let R=$.target.value;b.value=!0,me(g.value)||(u.value=!0),f("focus",R,$)},A=$=>{setTimeout(()=>{u.value&&(u.value=!1),b.value=!1},0);let R=$.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),f("blur",R,$)},I=()=>{f("clear","")},T=t.ref(!1);let N=null;const y=()=>{n.showTooltip&&T.value===!1&&(N&&clearTimeout(N),N=setTimeout(()=>{T.value=!0},150))},z=()=>{N&&(clearTimeout(N),T.value=!1,N=null)},x=t.computed(()=>T.value||u.value),_=t.computed(()=>T.value?w.value:g.value),G=t.computed(()=>at(n.unit)>0),S=t.ref();return be({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},select:()=>{S?.value.select()},setDisabled:$=>{r.value=$},setReadonly:$=>{c.value=$}}),()=>{const F={...tt(a.attrs),ref:S,class:p.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:w.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:V,onInput:h,onFocus:D,onBlur:A,onMouseover:y,onMouseleave:z},R={};a.slots.prepend&&(R.prepend=a.slots.prepend),a.slots.append&&(R.append=a.slots.append),a.slots.prefix&&(R.prefix=a.slots.prefix),a.slots.suffix?R.suffix=a.slots.suffix:G.value&&(R.suffix=()=>[n.unit]);const Q=[],W=t.h(O.ElInput,F,R);Q.push(W);const j={default:()=>Q};j.label=a.slots.default,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const Y={...Ie(n,Go),hintText:_.value,hintVisible:x.value};return n.prop&&(Y.prop=`${n.prop}_item`),t.h(o,Y,j)}}}}const{componentName:bu,create:wu,scope:xu}=se("input-item"),eo=wu(yu(bu,xu,ke));function ft(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 Hr(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function Su(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let Cu=class{proxy;constructor(l){this.proxy=l}async load(l,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Fe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(o,n))}};function Tu(){const e=t.getCurrentInstance();return new Cu(e.proxy)}function Kr(e,l,o){const n=ft(e,l),a=ft(e,o);if(n!==a)return!1;const r=zt(e,l),s=zt(e,o);return r===s}function Wr(e,l,o,n){if(n.length===0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const a=[];return l.forEach(r=>{for(let s of n){const c=Hr(e,s);if(Array.isArray(c)&&c.length>0){const i=Wr(e,r,o,c)??[];Reflect.apply([].push,a,i)}else{let i=!1;if(o==="text")i=ft(e,s)===r;else if(o==="item")i=Kr(e,s,r);else{let f=zt(e,s);f==null&&(f=ft(e,s)),i=f===r}if(i){a.push(s);break}}}}),a}function ku(e){return{text:e,value:e}}const Xo={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 $u(e,l,o){return{props:{...Te,...Ve,...Xo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(null),w=t.ref([]),C=t.computed(()=>w.value?w.value.map(K=>ft(n,K)).join(" "):""),p=(k,K,P,v=!0)=>{if(!P||P.length==0){b.value=k,v&&(f("update:modelValue",k),f("change",k));return}const q=Wr(n,k,K,P);if(q===null){if(w.value===null||w.value.length===0)return;b.value=null,w.value=[],v&&(f("update:modelValue",null),f("update:text",null),f("change",null));return}let L=!0;if(q.length!==w.value.length)L=!1;else for(let te=0;te<q.length;te++){const oe=q[te],re=w.value[te];if(!Kr(n,oe,re)){L=!1;break}}if(!L){w.value=q;let te=[],oe=[],re=[];q.forEach(Ze=>{const He=zt(n,Ze),Le=ft(n,Ze);te.push(He),re.push(Le),n.valueType==="text"?oe.push(Le):n.valueType==="item"?oe.push(Ze):oe.push(He)});let de,ge,Ce;fe(n.multiple)?(b.value=te,de=t.toRaw(oe),ge=re,Ce=t.toRaw(q)):(b.value=te[0]??"",de=t.toRaw(oe[0]??""),ge=re[0]??"",Ce=t.toRaw(q[0])),v&&(f("update:modelValue",de),f("change",de,Ce)),f("update:text",ge)}},h=t.ref(null),V=t.ref(null),g=t.computed(()=>V.value??h.value??[]),u=Ae(t.computed(()=>n.appearLoad),"appearLoad",Ye.Near,k=>fe(k)),D=Tu(),A=async(k,K)=>{if(k){const P=await D.load("select",k,K);if(P.length>0)if(typeof P[0]=="string"){let L=P.map(te=>ku(te));h.value=L}else h.value=P;else h.value=null}};t.watch([()=>n.source,()=>n.params],([k,K])=>{V.value=null,A(k,K)},{immediate:!u.value});let I=!1;const T=()=>{I||(I=!0,A(n.source,n.params))};t.watch([()=>h.value,()=>n.modelValue],([k,K])=>{if(x()&&fe(n.multiple)){Xe(K,b.value)||(b.value=K);return}p(K,n.valueType,g.value,!1),f("setValue",K)}),n.source||(b.value=n.modelValue);let N=null,y=t.ref(!1);typeof n.remoteMethod=="function"&&(N=async k=>{if(k==null){V.value=null;return}y.value=!0;try{const K=await n.remoteMethod(k);K&&(V.value=K)}catch(K){V.value=null,console.error(K)}y.value=!1});let z=null;typeof n.filterMethod=="function"&&(z=async k=>{if(k==null){V.value=null;return}y.value=!0;try{const K=await n.filterMethod(k,h.value);K&&(V.value=K)}catch(K){V.value=null,console.error(K)}y.value=!1});const x=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=t.ref(!1),G=e,S=t.computed(()=>({[G]:!0})),$=k=>{n.allowCreate||x()&&fe(n.multiple)?(f("update:modelValue",k),f("change",k),f("update:text",k),b.value=k):p(k,"value",g.value,!0)};let F=pe(n,"hintText"),R=t.ref(!1);const Q=k=>{let P=k.target.value;_.value=!0,me(F.value)||(R.value=!0),f("focus",P,k)},W=k=>{setTimeout(()=>{R.value&&(R.value=!1),_.value=!1},0);let P=k.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),ee.value||f("blur",P,k)},j=()=>{f("clear","")},J=t.ref(!1);let Y=null;const H=()=>{n.showTooltip&&J.value===!1&&(Y&&clearTimeout(Y),Y=setTimeout(()=>{J.value=!0},150))},U=()=>{Y&&(clearTimeout(Y),J.value=!1,Y=null)},X=t.computed(()=>J.value||R.value),M=t.computed(()=>J.value?C.value:F.value),ee=t.ref(!1),ne=k=>{ee.value=k,f("visible-change",k),k||f("selected")},Z=k=>{f("remove-tag",k)},E=(k,K)=>{const P=[];return k.forEach((v,q)=>{const L=Hr(n,v);if(Array.isArray(L)&&L.length>0){const te=E(L,K),oe=ft(n,v),de={key:`${oe}_${q}`,label:oe};P.push(t.h(O.ElOptionGroup,de,{default:()=>te}))}else{const te=zt(n,v),oe=ft(n,v),re=Su(n,v),ge={key:`${te}_${q}`,label:oe,disabled:re,value:te};if(typeof K=="function")P.push(t.h(O.ElOption,ge,{default:()=>K(v)}));else if(n.optionType==="item"){const Ce={class:{"fox-select-item__option-left":!0}},Ze=t.h("span",Ce,[te]),He={class:{"fox-select-item__option-right":!0}},Le=t.h("span",He,[oe]),xt=t.h("div",{class:{"fox-select-item__option":!0}},[Ze,Le]);P.push(t.h(O.ElOption,ge,{default:()=>xt}))}else n.optionType==="value"?P.push(t.h(O.ElOption,ge,{default:()=>[te]})):P.push(t.h(O.ElOption,ge))}}),P},B=t.ref();return be({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:k=>{r.value=k},setReadonly:k=>{c.value=k}}),()=>{const K={...tt(a.attrs),ref:B,class:S.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:s.value||i.value,modelValue:b.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:j,onChange:$,onFocus:Q,onBlur:W,onVisibleChange:ne,onRemoveTag:Z};typeof N=="function"&&(K["remote-method"]=N,K.loading=y.value),typeof z=="function"&&(K["filter-method"]=z,K.loading=y.value);const P={};a.slots.prefix&&(P.prefix=a.slots.prefix),a.slots.empty&&(P.empty=a.slots.empty),a.slots.options?P.default=a.slots.options:P.default=()=>E(g.value,a.slots.option);const v=[],q=t.h(O.ElSelect,K,P);v.push(q);const L={default:()=>v};L.label=a.slots.default,L.fixedPreTip=a.slots.fixedPreTip,L.fixedTip=a.slots.fixedTip;const oe={...Ie(n,Xo),hintText:M.value,hintVisible:X.value,onMouseover:H,onMouseleave:U};return n.prop&&(oe.prop=`${n.prop}_item`),u.value&&(oe["appear-listen"]=!0,oe.onAppear=T),t.h(o,oe,L)}}}}const{componentName:Du,create:Nu,scope:Eu}=se("select-item"),to=Nu($u(Du,Eu,ke));function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var on={exports:{}},Pu=on.exports,Zo;function Iu(){return Zo||(Zo=1,(function(e,l){(function(o,n){e.exports=n()})(Pu,(function(){var o=1e3,n=6e4,a=36e5,r="millisecond",s="second",c="minute",i="hour",f="day",m="week",d="month",b="quarter",w="year",C="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|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(S){var $=["th","st","nd","rd"],F=S%100;return"["+S+($[(F-20)%10]||$[F]||$[0])+"]"}},u=function(S,$,F){var R=String(S);return!R||R.length>=$?S:""+Array($+1-R.length).join(F)+S},D={s:u,z:function(S){var $=-S.utcOffset(),F=Math.abs($),R=Math.floor(F/60),Q=F%60;return($<=0?"+":"-")+u(R,2,"0")+":"+u(Q,2,"0")},m:function S($,F){if($.date()<F.date())return-S(F,$);var R=12*(F.year()-$.year())+(F.month()-$.month()),Q=$.clone().add(R,d),W=F-Q<0,j=$.clone().add(R+(W?-1:1),d);return+(-(R+(F-Q)/(W?Q-j:j-Q))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:w,w:m,d:f,D:C,h:i,m:c,s,ms:r,Q:b}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},A="en",I={};I[A]=g;var T="$isDayjsObject",N=function(S){return S instanceof _||!(!S||!S[T])},y=function S($,F,R){var Q;if(!$)return A;if(typeof $=="string"){var W=$.toLowerCase();I[W]&&(Q=W),F&&(I[W]=F,Q=W);var j=$.split("-");if(!Q&&j.length>1)return S(j[0])}else{var J=$.name;I[J]=$,Q=J}return!R&&Q&&(A=Q),Q||!R&&A},z=function(S,$){if(N(S))return S.clone();var F=typeof $=="object"?$:{};return F.date=S,F.args=arguments,new _(F)},x=D;x.l=y,x.i=N,x.w=function(S,$){return z(S,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var _=(function(){function S(F){this.$L=y(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var $=S.prototype;return $.parse=function(F){this.$d=(function(R){var Q=R.date,W=R.utc;if(Q===null)return new Date(NaN);if(x.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var j=Q.match(h);if(j){var J=j[2]-1||0,Y=(j[7]||"0").substring(0,3);return W?new Date(Date.UTC(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,Y)):new Date(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,Y)}}return new Date(Q)})(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return x},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(F,R){var Q=z(F);return this.startOf(R)<=Q&&Q<=this.endOf(R)},$.isAfter=function(F,R){return z(F)<this.startOf(R)},$.isBefore=function(F,R){return this.endOf(R)<z(F)},$.$g=function(F,R,Q){return x.u(F)?this[R]:this.set(Q,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,R){var Q=this,W=!!x.u(R)||R,j=x.p(F),J=function(Z,E){var B=x.w(Q.$u?Date.UTC(Q.$y,E,Z):new Date(Q.$y,E,Z),Q);return W?B:B.endOf(f)},Y=function(Z,E){return x.w(Q.toDate()[Z].apply(Q.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(E)),Q)},H=this.$W,U=this.$M,X=this.$D,M="set"+(this.$u?"UTC":"");switch(j){case w:return W?J(1,0):J(31,11);case d:return W?J(1,U):J(0,U+1);case m:var ee=this.$locale().weekStart||0,ne=(H<ee?H+7:H)-ee;return J(W?X-ne:X+(6-ne),U);case f:case C:return Y(M+"Hours",0);case i:return Y(M+"Minutes",1);case c:return Y(M+"Seconds",2);case s:return Y(M+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,R){var Q,W=x.p(F),j="set"+(this.$u?"UTC":""),J=(Q={},Q[f]=j+"Date",Q[C]=j+"Date",Q[d]=j+"Month",Q[w]=j+"FullYear",Q[i]=j+"Hours",Q[c]=j+"Minutes",Q[s]=j+"Seconds",Q[r]=j+"Milliseconds",Q)[W],Y=W===f?this.$D+(R-this.$W):R;if(W===d||W===w){var H=this.clone().set(C,1);H.$d[J](Y),H.init(),this.$d=H.set(C,Math.min(this.$D,H.daysInMonth())).$d}else J&&this.$d[J](Y);return this.init(),this},$.set=function(F,R){return this.clone().$set(F,R)},$.get=function(F){return this[x.p(F)]()},$.add=function(F,R){var Q,W=this;F=Number(F);var j=x.p(R),J=function(U){var X=z(W);return x.w(X.date(X.date()+Math.round(U*F)),W)};if(j===d)return this.set(d,this.$M+F);if(j===w)return this.set(w,this.$y+F);if(j===f)return J(1);if(j===m)return J(7);var Y=(Q={},Q[c]=n,Q[i]=a,Q[s]=o,Q)[j]||1,H=this.$d.getTime()+F*Y;return x.w(H,this)},$.subtract=function(F,R){return this.add(-1*F,R)},$.format=function(F){var R=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||p;var W=F||"YYYY-MM-DDTHH:mm:ssZ",j=x.z(this),J=this.$H,Y=this.$m,H=this.$M,U=Q.weekdays,X=Q.months,M=Q.meridiem,ee=function(E,B,k,K){return E&&(E[B]||E(R,W))||k[B].slice(0,K)},ne=function(E){return x.s(J%12||12,E,"0")},Z=M||function(E,B,k){var K=E<12?"AM":"PM";return k?K.toLowerCase():K};return W.replace(V,(function(E,B){return B||(function(k){switch(k){case"YY":return String(R.$y).slice(-2);case"YYYY":return x.s(R.$y,4,"0");case"M":return H+1;case"MM":return x.s(H+1,2,"0");case"MMM":return ee(Q.monthsShort,H,X,3);case"MMMM":return ee(X,H);case"D":return R.$D;case"DD":return x.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ee(Q.weekdaysMin,R.$W,U,2);case"ddd":return ee(Q.weekdaysShort,R.$W,U,3);case"dddd":return U[R.$W];case"H":return String(J);case"HH":return x.s(J,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Z(J,Y,!0);case"A":return Z(J,Y,!1);case"m":return String(Y);case"mm":return x.s(Y,2,"0");case"s":return String(R.$s);case"ss":return x.s(R.$s,2,"0");case"SSS":return x.s(R.$ms,3,"0");case"Z":return j}return null})(E)||j.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,R,Q){var W,j=this,J=x.p(R),Y=z(F),H=(Y.utcOffset()-this.utcOffset())*n,U=this-Y,X=function(){return x.m(j,Y)};switch(J){case w:W=X()/12;break;case d:W=X();break;case b:W=X()/3;break;case m:W=(U-H)/6048e5;break;case f:W=(U-H)/864e5;break;case i:W=U/a;break;case c:W=U/n;break;case s:W=U/o;break;default:W=U}return Q?W:x.a(W)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return I[this.$L]},$.locale=function(F,R){if(!F)return this.$L;var Q=this.clone(),W=y(F,R,!0);return W&&(Q.$L=W),Q},$.clone=function(){return x.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},S})(),G=_.prototype;return z.prototype=G,[["$ms",r],["$s",s],["$m",c],["$H",i],["$W",f],["$M",d],["$y",w],["$D",C]].forEach((function(S){G[S[1]]=function($){return this.$g($,S[0],S[1])}})),z.extend=function(S,$){return S.$i||(S($,_,z),S.$i=!0),z},z.locale=y,z.isDayjs=N,z.unix=function(S){return z(1e3*S)},z.en=I[A],z.Ls=I,z.p={},z}))})(on)),on.exports}var Vu=Iu();const ot=st(Vu);var an={exports:{}},Ou=an.exports,Qo;function Au(){return Qo||(Qo=1,(function(e,l){(function(o,n){e.exports=n()})(Ou,(function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\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(V){this[h]=+V}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(V){if(!V||V==="Z")return 0;var g=V.match(/([+-]|\d\d)/g),u=60*g[1]+(+g[2]||0);return u===0?0:g[0]==="+"?-u:u})(h)}],b=function(h){var V=i[h];return V&&(V.indexOf?V:V.s.concat(V.f))},w=function(h,V){var g,u=i.meridiem;if(u){for(var D=1;D<=24;D+=1)if(h.indexOf(u(D,0,V))>-1){g=D>12;break}}else g=h===(V?"pm":"PM");return g},C={A:[c,function(h){this.afternoon=w(h,!1)}],a:[c,function(h){this.afternoon=w(h,!0)}],Q:[a,function(h){this.month=3*(h-1)+1}],S:[a,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 V=i.ordinal,g=h.match(/\d+/);if(this.day=g[0],V)for(var u=1;u<=31;u+=1)V(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 V=b("months"),g=(b("monthsShort")||V.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 V=b("months").indexOf(h)+1;if(V<1)throw new Error;this.month=V%12||V}],Y:[/[+-]?\d+/,m("year")],YY:[r,function(h){this.year=f(h)}],YYYY:[/\d{4}/,m("year")],Z:d,ZZ:d};function p(h){var V,g;V=h,g=i&&i.formats;for(var u=(h=V.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(z,x,_){var G=_&&_.toUpperCase();return x||g[_]||o[_]||g[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,$,F){return $||F.slice(1)}))}))).match(n),D=u.length,A=0;A<D;A+=1){var I=u[A],T=C[I],N=T&&T[0],y=T&&T[1];u[A]=y?{regex:N,parser:y}:I.replace(/^\[|\]$/g,"")}return function(z){for(var x={},_=0,G=0;_<D;_+=1){var S=u[_];if(typeof S=="string")G+=S.length;else{var $=S.regex,F=S.parser,R=z.slice(G),Q=$.exec(R)[0];F.call(x,Q),z=z.replace(Q,"")}}return(function(W){var j=W.afternoon;if(j!==void 0){var J=W.hours;j?J<12&&(W.hours+=12):J===12&&(W.hours=0),delete W.afternoon}})(x),x}}return function(h,V,g){g.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(f=h.parseTwoDigitYear);var u=V.prototype,D=u.parse;u.parse=function(A){var I=A.date,T=A.utc,N=A.args;this.$u=T;var y=N[1];if(typeof y=="string"){var z=N[2]===!0,x=N[3]===!0,_=z||x,G=N[2];x&&(G=N[2]),i=this.$locale(),!z&&G&&(i=g.Ls[G]),this.$d=(function(R,Q,W,j){try{if(["x","X"].indexOf(Q)>-1)return new Date((Q==="X"?1e3:1)*R);var J=p(Q)(R),Y=J.year,H=J.month,U=J.day,X=J.hours,M=J.minutes,ee=J.seconds,ne=J.milliseconds,Z=J.zone,E=J.week,B=new Date,k=U||(Y||H?1:B.getDate()),K=Y||B.getFullYear(),P=0;Y&&!H||(P=H>0?H-1:B.getMonth());var v,q=X||0,L=M||0,te=ee||0,oe=ne||0;return Z?new Date(Date.UTC(K,P,k,q,L,te,oe+60*Z.offset*1e3)):W?new Date(Date.UTC(K,P,k,q,L,te,oe)):(v=new Date(K,P,k,q,L,te,oe),E&&(v=j(v).week(E).toDate()),v)}catch{return new Date("")}})(I,y,T,g),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),_&&I!=this.format(y)&&(this.$d=new Date("")),i={}}else if(y instanceof Array)for(var S=y.length,$=1;$<=S;$+=1){N[1]=y[$-1];var F=g.apply(this,N);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}$===S&&(this.$d=new Date(""))}else D.call(this,A)}}}))})(an)),an.exports}var Fu=Au();const Mu=st(Fu);var rn={exports:{}},Bu=rn.exports,Jo;function Ru(){return Jo||(Jo=1,(function(e,l){(function(o,n){e.exports=n()})(Bu,(function(){return function(o,n){var a=n.prototype,r=a.format;a.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)}}}))})(rn)),rn.exports}var Lu=Ru();const _u=st(Lu);var sn={exports:{}},qu=sn.exports,ea;function zu(){return ea||(ea=1,(function(e,l){(function(o,n){e.exports=n()})(qu,(function(){return function(o,n,a){var r=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},c=function(d,b,w,C,p){var h=d.name?d:d.$locale(),V=s(h[b]),g=s(h[w]),u=V||g.map((function(A){return A.slice(0,C)}));if(!p)return u;var D=h.weekStart;return u.map((function(A,I){return u[(I+(D||0))%7]}))},i=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||(function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,p,h){return p||h.slice(1)}))})(d.formats[b.toUpperCase()])},m=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):c(d,"months")},monthsShort:function(b){return b?b.format("MMM"):c(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):c(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):c(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):c(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return f(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var d=i();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return f(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return c(i(),"months")},a.monthsShort=function(){return c(i(),"monthsShort","months",3)},a.weekdays=function(d){return c(i(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return c(i(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return c(i(),"weekdaysMin","weekdays",2,d)}}}))})(sn)),sn.exports}var ju=zu();const Hu=st(ju);var un={exports:{}},Ku=un.exports,ta;function Wu(){return ta||(ta=1,(function(e,l){(function(o,n){e.exports=n()})(Ku,(function(){var o="week",n="year";return function(a,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(o);if(m.isBefore(d))return 1}var b=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),w=this.diff(b,o,!0);return w<0?s(this).startOf("week").week():Math.ceil(w)},c.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})(un)),un.exports}var Yu=Wu();const Uu=st(Yu);var cn={exports:{}},Gu=cn.exports,na;function Xu(){return na||(na=1,(function(e,l){(function(o,n){e.exports=n()})(Gu,(function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}}))})(cn)),cn.exports}var Zu=Xu();const Qu=st(Zu);var fn={exports:{}},Ju=fn.exports,la;function ec(){return la||(la=1,(function(e,l){(function(o,n){e.exports=n()})(Ju,(function(){return function(o,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})(fn)),fn.exports}var tc=ec();const nc=st(tc);var dn={exports:{}},lc=dn.exports,oa;function oc(){return oa||(oa=1,(function(e,l){(function(o,n){e.exports=n()})(lc,(function(){return function(o,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})(dn)),dn.exports}var ac=oc();const rc=st(ac);var hn={exports:{}},ic=hn.exports,aa;function sc(){return aa||(aa=1,(function(e,l){(function(o,n){e.exports=n()})(ic,(function(){return function(o,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})(hn)),hn.exports}var uc=sc();const cc=st(uc);ot.extend(Hu);ot.extend(_u);ot.extend(Mu);ot.extend(Uu);ot.extend(Qu);ot.extend(nc);ot.extend(rc);ot.extend(cc);const ie={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,o){const a=new Date(e+"/"+l+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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 o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(l)},getDay(e,l,o){e=e||0;let n=l??new Date;const a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),o=o??"YYYY-MM-DD",this.format(n,o)},compareDate(e,l){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof l=="string"?n=new Date(l.replace("-","/").replace("-","/")):n=l,!(o>=n)},isEqual(e,l){if(e===l)return!0;if(!e||!l)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof l=="string"?n=new Date(l).getTime():n=l,o==n},getMonthWeek:function(e,l,o,n=0){const a=new Date(Number(e),parseInt(l)-1,Number(o));let r=a.getDay(),s=a.getDate(),c=6-r;return n!==0&&(r=r==0?7:r,c=7-r),Math.ceil((s+c)/7)},getYearWeek:function(e,l,o,n=0){const a=new Date(Number(e),parseInt(l)-1,Number(o)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let c=a.getDay(),i=6-c;return n!==0&&(c=c==0?7:c,i=7-c),Math.ceil((s+i)/7)},getWeekDate:function(e,l,o,n=0){const a=new Date(Number(e),parseInt(l)-1,Number(o)),r=a.getTime();let s=a.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]=ie.getNumTwoBit(Number(l[2])),l[3]=`${l[0]}-${l[1]}-${l[2]}`,l[4]=ie.getWhatDay(+l[0],+l[1],+l[2]),l},inScope4Day(e,l,o){const n=new Date(new Date(l).setDate(l.getDate()+o)),a=e.getTime(),r=n.getTime(),s=l.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,l,o){const n=new Date(new Date(l).setMonth(l.getMonth()+o)),a=e.getTime(),r=n.getTime(),s=l.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},ra={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"}},ia={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 fc(e,l,o){return{props:{...Te,...Ve,...ra,...ia},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=pe(n,"modelValue",null,f),C=t.computed(()=>R.value&&Array.isArray(w.value)&&w.value.length==2?w.value[0]:w.value),p=t.computed(()=>R.value?"longTermKey":"normalKey"),h=B=>{if(R.value&&n.type==="daterange"){const k=[...w.value];k[0]=B,w.value=k}else w.value=B;f("update:modelValue",w.value),f("change",w.value)},V=t.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,u=t.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":s.value}));let D=pe(n,"hintText"),A=t.ref(!1);const I=B=>{let K=B.target.value;b.value=!0,me(D.value)||(A.value=!0),f("focus",K,B)},T=B=>{setTimeout(()=>{A.value&&(A.value=!1),b.value=!1},0);let K=B.target.value;n.maxLength&&K.length>Number(n.maxLength)&&(K=K.slice(0,Number(n.maxLength))),f("blur",K,B)},N=()=>{f("clear","")},y=B=>{f("calendar-change",B)},z=(B,k,K)=>{f("panel-change",B,k,K)},x=B=>{f("visible-change",B)},_=Ae(t.computed(()=>n.longTermText),"longTermText",Ye.Near),G=Ae(t.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ye.Near),S=Ae(t.computed(()=>n.longTermValue),"longTermValue",Ye.Near),$=Ae(t.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ye.Near);let F=null;const R=t.ref(fe(n.longTerm)),Q=B=>{if(R.value=B,f("update:longTerm",B),B){if(F=w.value,n.type==="daterange"){const k=[];Array.isArray(S.value)?(k[0]=w.value?w.value[0]??S.value[0]:null,k[1]=S.value[1]??S.value[0]):(k[0]=w.value?w.value[0]??S.value:null,k[1]=R.value),k[0]||(k[0]=n.valueFormat?ie.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ie.format(new Date,n.valueFormat):new Date),w.value=k}else Array.isArray(S.value)?w.value=S.value[1]??S.value[0]:w.value=S.value,w.value||(w.value=n.valueFormat?ie.format(new Date,n.valueFormat):new Date);f("update:modelValue",w.value)}else{if(n.type==="daterange"){const k=[];k[0]=Array.isArray(w.value)?w.value[0]:w.value,Array.isArray(F)?k[1]=F[1]:k[1]=F,k[0]||(k[0]=n.valueFormat?ie.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ie.format(new Date,n.valueFormat):new Date),w.value=k}else w.value=F;f("update:modelValue",w.value),setTimeout(()=>{Z()},100)}},W=fe(n.isLongTerm);if(W){const B=()=>{if(R.value===!0){if(F=w.value,n.type==="daterange"){const k=[w.value[0]];Array.isArray(S.value)?k[1]=S.value[1]??S.value[0]:k[1]=R.value,k[0]||(k[0]=n.valueFormat?ie.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ie.format(new Date,n.valueFormat):new Date),w.value=k}else w.value=S.value;f("update:modelValue",w.value)}else Xe(S.value,w.value)&&(R.value=!0)};B(),t.watch([()=>n.longTerm],([k])=>{R.value!==k&&B()}),t.watch([()=>w.value],([k])=>{let K=!1;if(n.type==="daterange"&&Array.isArray(k))try{let P=k[1];if(!P)return;if(k[0]==null){f("update:modelValue",[]);return}typeof P!="string"&&n.valueFormat&&(P=ie.format(P,n.valueFormat));let v=Array.isArray(S.value)?S.value[1]:S.value;(P===v||Array.isArray($.value)&&$.value.findIndex(L=>P==L)!==-1)&&(K=!0)}catch(P){console.error(P)}R.value!==K&&(R.value=K)},{immediate:!0})}const j=t.computed(()=>({"fox-date-item__long":!0,"is-active":b.value})),J=t.ref(),Y=t.ref(),H=/^\d+$/,U=(B,k)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,k):H.test(B)&&B.length===n.flashFillThreshold,X=(B,k)=>{let K;if(typeof n.flashFillFormat=="function")K=n.flashFillFormat(B,k);else{const v=n.flashFillFormat??"YYYYMMDD";K=ie.parser(B,v)}const P=n.valueFormat??"YYYY-MM-DD";return ie.format(K,P)},M=B=>B?B.endsWith("range"):!1,ee=B=>{if(!B.target)return;const k=B.target.value??"";if(U(k,n.type)){const K=X(k,n.type);if(M(n.type)){const P=Array.isArray(w.value)?[...w.value]:[];P[0]=K,h(P)}else h(K)}},ne=B=>{if(!B.target)return;const k=B.target.value??"";if(U(k,n.type)){const K=X(k,n.type);if(M(n.type)){const P=Array.isArray(w.value)?[...w.value]:[];P[1]=K,h(P)}else h(K)}},Z=()=>{if(n.flashFill&&J.value&&J.value.$el)if(M(n.type)){const B=J.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",ee),B[1]&&B[1].addEventListener("input",ne)}else{const B=J.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",ee)}},E=()=>{if(n.flashFill&&J.value&&J.value.$el)if(M(n.type)){const B=J.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",ee),B[1]&&B[1].removeEventListener("input",ne)}else{const B=J.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",ee)}};return t.onMounted(Z),t.onBeforeUnmount(E),be({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},handleOpen:()=>{Y?.value.handleOpen()},handleClose:()=>{Y?.value.handleClose()},setDisabled:B=>{r.value=B},setReadonly:B=>{c.value=B}}),()=>{const k={...a.attrs,key:p.value,type:V.value,ref:Y,class:u.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:C.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:N,onFocus:I,onBlur:T,onCalendarChange:y,onPanelChange:z,onVisibleChange:x},K={};a.slots["range-separator"]&&(K["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(K.default=a.slots.cell);const P=[],v=t.h(O.ElDatePicker,k,K);P.push(v);const q={default:()=>P};if(q.label=a.slots.default,q.fixedPreTip=a.slots.fixedPreTip,q.fixedTip=a.slots.fixedTip,W){if(R.value){const re=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=t.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),ge={class:j.value},Ce=t.h("div",ge,{default:()=>[re,de]});P.push(Ce)}if(!i.value&&!s.value){const re={label:G.value||_.value,disabled:i.value||s.value,modelValue:R.value,"onUpdate:modelValue":Q},de=t.h(O.ElCheckbox,re),ge=t.h("div",{class:{[`${g}__append`]:!0}},[de]);q.append=()=>ge}}const te={...Ie(n,ra,ia),ref:J,class:{[`${g}__wrapper`]:!0,"has-append":W},hintText:D.value,hintVisible:A.value};return n.prop&&(te.prop=`${n.prop}_item`),t.h(o,te,q)}}}}const{componentName:dc,create:hc,scope:mc}=se("date-item"),no=hc(fc(dc,mc,ke)),gc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),lo={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},oo={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:{}}},Yr=2e3;let sa=Yr;const pc=(e,l)=>({components:l,props:{...oo},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const a=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),r=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),c=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),i=()=>{o.zIndex!==Yr&&(sa=Number(o.zIndex)),n("update:visible",!0),a.zIndex=++sa,o.destroyOnClose&&(a.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},m=p=>{n("click-pop",p)},d=p=>{p.stopPropagation(),n("click-close-icon",p),n("update:visible",!1)},b=p=>{n("click-overlay",p),o.closeOnClickOverlay&&n("update:visible",!1)},w=p=>{n("opend",p)},C=p=>{n("closed",p)};return t.watch(()=>o.visible,p=>{o.visible?i():f()}),t.watch(()=>o.closeable,p=>{a.closed=p}),{...t.toRefs(a),popStyle:s,transitionName:c,classes:r,onClick:m,onClickCloseIcon:d,onClickOverlay:b,onOpened:w,onClosed:C}}});let Mt=0;const ua="fox-overflow-hidden",ca=()=>mt?document.body:{classList:[]},vc=e=>[()=>{if(e())try{!Mt&&ca().classList.add(ua),Mt++}catch{}},()=>{if(e()&&Mt)try{Mt--,!Mt&&ca().classList.remove(ua)}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:bc,create:wc}=se("overlay"),xc=wc({props:{...yc},emits:["click","update:visible"],setup(e,{emit:l}){const[o,n]=vc(()=>e.lockScroll),a=t.computed(()=>({[bc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,c=>{c?o():n()}),{classes:a,style:r,onClick:c=>{l("click",c),e.closeOnClickOverlay&&l("update:visible",!1)}}}});function Sc(e,l,o,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick: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 Wn=Re(xc,[["render",Sc]]),Cc=["aria-labelledby"],Tc=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),kc=[Tc],$c=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},kc,14,Cc))}}),Dc=["aria-labelledby"],Nc=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),Ec=[Nc],Pc=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ec,14,Dc))}}),Ic=["aria-labelledby"],Vc=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),Oc=[Vc],Ac=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Oc,14,Ic))}}),Fc=["aria-labelledby"],Mc=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),Bc=[Mc],Rc=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Bc,14,Fc))}}),Lc=["aria-labelledby"],_c=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),qc=[_c],Yn=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},qc,14,Lc))}}),zc=["aria-labelledby"],jc=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),Hc=[jc],Kc=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hc,14,zc))}}),Wc=["aria-labelledby"],Yc=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),Uc=[Yc],Ur=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Wc))}}),Gc=["aria-labelledby"],Xc=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),Zc=[Xc],Gr=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Zc,14,Gc))}}),Qc=["aria-labelledby"],Jc=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),ef=[Jc],tf=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ef,14,Qc))}}),nf=["aria-labelledby"],lf=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),of=[lf],af=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},of,14,nf))}}),rf=["aria-labelledby"],sf=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),uf=[sf],cf=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 o=e,n=l,a=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+"-"+o.name]:o.name,[o.class]:!!o.class}}),c=t.computed(()=>{const i={};return i.height=r(o.height)??r(o.size),i.width=r(o.width)??r(o.size),i.color=o.color,i});return(i,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(s.value),style:t.normalizeStyle(c.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},uf,14,rf))}}),{componentName:ff,create:df}=se("popup"),hf=df(pc(ff,{FoxOverLay:Wn,Close:Ur}));function mf(e,l,o,n,a,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 wt=Re(hf,[["render",mf]]),fa=39,da=64,{create:gf,scope:pf}=se("calendar-pane"),vf=gf({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:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:l,slots:o}){const{toLocaleRefs:n,t:a}=Se.useFoxI18n(pf),r=n(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${fa}px`})),c=t.computed(()=>({height:`${da}px`})),i=JSON.parse(a("weekdays")),f=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),m=t.ref(null),d=t.ref(null),b=t.ref(null),w=t.ref(null),C=t.ref(0),p=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),h=t.computed(()=>o.btn),V=t.computed(()=>o["top-info"]),g=t.computed(()=>o["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}),D=Z=>Z.split("-"),A=Z=>ie.isEqual(u.currDate[0],Z),I=Z=>ie.isEqual(u.currDate[1],Z),T=Z=>u.currDate?.length>0?u.currDate?.some(E=>ie.isEqual(E,Z)):!1,N=(Z,E)=>E.curData[0]+"-"+E.curData[1]+"-"+ie.getNumTwoBit(+Z.day),y=(Z,E)=>{const B=N(Z,E),{type:k}=e;return Z.type=="curr"?ie.isEqual(u.currDate,B)||(k=="range"||k=="week")&&(A(B)||I(B))||k=="multiple"&&T(B)?`${u.dayPrefix}--active`:u.propStartDate&&ie.compareDate(B,u.propStartDate)||u.propEndDate&&ie.compareDate(u.propEndDate,B)?`${u.dayPrefix}--disabled`:(k=="range"||k=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ie.compareDate(u.currDate[0],B)&&ie.compareDate(B,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},z=()=>{const{type:Z}=e;if(Z=="range"&&u.chooseData.length==2||Z!="range"){let E=u.chooseData.slice(0);Z=="week"&&(E={weekDate:[_(u.chooseData[0]),_(u.chooseData[1])]}),l("choose",E),e.poppable&&l("update")}},x=(Z,E,B=!1)=>{if(y(Z,E)!=`${u.dayPrefix}--disabled`){const{type:k}=e;let[K,P]=E.curData,v=[...E.curData];if(v[2]=ie.getNumTwoBit(Number(Z.day)),v[3]=`${v[0]}-${v[1]}-${v[2]}`,v[4]=ie.getWhatDay(+v[0],+v[1],+v[2]),k=="multiple")if(u.currDate?.length>0){let q;u.currDate?.forEach((L,te)=>{L==v[3]&&(q=te)}),B?u.chooseData.push([...v]):q!==void 0?(u.currDate.splice(q,1),u.chooseData.splice(q,1)):(u.currDate.push(v[3]),u.chooseData.push([...v]))}else u.currDate=[v[3]],u.chooseData=[[...v]];else if(k=="range"){let q=Object.values(u.currDate).length;q==2||q==0?u.currDate=[v[3]]:ie.compareDate(u.currDate[0],v[3])?Array.isArray(u.currDate)&&u.currDate.push(v[3]):Array.isArray(u.currDate)&&u.currDate.unshift(v[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...v]]:ie.compareDate(u.chooseData[0][3],v[3])?u.chooseData=[...u.chooseData,[...v]]:u.chooseData=[[...v],...u.chooseData]}else if(k=="week"){let q=ie.getWeekDate(K,P,Z.day,e.firstDayOfWeek);u.propStartDate&&ie.compareDate(q[0],u.propStartDate)&&q.splice(0,1,u.propStartDate),u.propEndDate&&ie.compareDate(u.propEndDate,q[1])&&q.splice(1,1,u.propEndDate),u.currDate=q,u.chooseData=[ie.formatResultDate(q[0]),ie.formatResultDate(q[1])]}else u.currDate=v[3],u.chooseData=[...v];if(!B){let q=u.chooseData;k=="week"&&(q={weekDate:[_(u.chooseData[0]),_(u.chooseData[1])]}),l("select",q),(e.isAutoBackFill||!e.poppable)&&z()}}},_=Z=>{let[E,B,k]=Z;return{date:Z,monthWeekNum:ie.getMonthWeek(E,B,k,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(E,B,k,e.firstDayOfWeek)}},G=Z=>{const E=u.monthsData[u.monthsData.length-1];let B=parseInt(E.curData[0]),k=parseInt(E.curData[1].toString().replace(/^0/,""));switch(Z){case"prev":k==1&&(B-=1),k=k==1?12:--k;break;case"next":k==12&&(B+=1),k=k==12?1:++k;break}return[B+"",ie.getNumTwoBit(k),ie.getMonthDays(String(B),String(k))+""]},S=(Z,E,B)=>{let{year:k,month:K}=B;return Array.from(Array(Z),(P,v)=>({day:String(v+1),type:E,year:k,month:K}))},$=(Z,E,B,k)=>{Z=Z-e.firstDayOfWeek;let{year:K,month:P}=B;return Z>=7&&(Z-=7),Array.from(Array(k),(q,L)=>({day:String(L+1),type:E,year:K,month:P})).slice(k-Z)},F=(Z,E)=>{const B=ie.getMonthPreDay(+Z[0],+Z[1]);let k=Number(Z[1])-1,K=Number(Z[0]);k<=0&&(k=12,K+=1);const P=ie.getMonthDays(String(Z[0]),String(Z[1])),v=ie.getMonthDays(K+"",k+""),q={year:Z[0],month:Z[1]},L={curData:Z,title:a("monthTitle",{year:q.year,month:q.month}),monthData:[...$(B,"prev",{month:String(k),year:String(K)},v),...S(P,"curr",q)],cssHeight:0,cssScrollHeight:0},te=L.monthData.length>35?6:5;L.cssHeight=fa+da*te;let oe=0;u.monthsData.length>0&&(oe=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),L.cssScrollHeight=oe,(!u.endData||!ie.compareDate(`${u.endData[0]}-${u.endData[1]}-${ie.getMonthDays(u.endData[0],u.endData[1])}`,`${Z[0]}-${Z[1]}-${Z[2]}`))&&u.monthsData.push(L)},R=()=>{let Z=e.startDate?e.startDate:ie.getDay(0),E=e.endDate?e.endDate:ie.getDay(365);u.propStartDate=Z,u.propEndDate=E,u.startData=D(Z),u.endData=D(E),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const B={year:Number(u.startData[0]),month:Number(u.startData[1])},k={year:Number(u.endData[0]),month:Number(u.endData[1])};let K=k.month-B.month;k.year-B.year>0&&(K=K+12*(k.year-B.year)),K<=0&&(K=1),F(u.startData);let P=1;do F(G("next"));while(P++<K);if(u.monthsNum=K,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(Z&&ie.compareDate(u.currDate[0],Z)&&u.currDate.splice(0,1,Z),E&&ie.compareDate(E,u.currDate[1])&&u.currDate.splice(1,1,E),u.defaultData=[...D(u.currDate[0]),...D(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let v=[],q={};u.currDate.forEach(L=>{Z&&!ie.compareDate(L,Z)&&E&&!ie.compareDate(E,L)&&(Object.hasOwnProperty.call(q,L)||(v.push(L),q[L]=L))}),u.currDate=[...v],u.defaultData=[...D(v[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[v,q,L]=D(u.currDate[0]),te=ie.getWeekDate(v,q,L,e.firstDayOfWeek);u.currDate=te,Z&&ie.compareDate(u.currDate[0],Z)&&u.currDate.splice(0,1,Z),E&&ie.compareDate(E,u.currDate[1])&&u.currDate.splice(1,1,E),u.defaultData=[...D(u.currDate[0]),...D(u.currDate[1])]}}else u.currDate&&(Z&&ie.compareDate(u.currDate,Z)?u.currDate=Z:E&&!ie.compareDate(u.currDate,E)&&(u.currDate=E),u.defaultData=[...D(u.currDate)])};be({scrollToDate:Z=>{ie.compareDate(Z,u.propStartDate)?Z=u.propStartDate:ie.compareDate(Z,u.propEndDate)||(Z=u.propEndDate);let E=D(Z);u.monthsData.forEach((B,k)=>{if(B.title==a("monthTitle",{year:E[0],month:E[1]})&&m.value){let K=u.monthsData[k].cssScrollHeight-m.value.scrollTop;if(e.toDateAnimation){let P=0,v=setInterval(()=>{if(P++,m.value){let q=K/10;m.value.scrollTop=m.value.scrollTop+q}P>=10&&(clearInterval(v),m.value&&(m.value.scrollTop=u.monthsData[k].cssScrollHeight))},40)}else m.value.scrollTop=u.monthsData[k].cssScrollHeight}})},initPosition:()=>{m?.value&&(m.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let Z=0,E=0;u.defaultData.length>0&&u.monthsData.forEach((K,P)=>{K.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(Z=P),(e.type=="range"||e.type=="week")&&K.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(E=P)}),J(u.monthsNum,Z),u.currentIndex=Z,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[E],!0)):e.type=="week"?x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(K=>{let P=D(K),v=u.currentIndex;u.monthsData.forEach((q,L)=>{q.title==a("monthTitle",{year:P[0],month:P[1]})&&(v=L)}),x({day:P[2],type:"curr"},u.monthsData[v],!0)}):x({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let B=u.monthsData[u.monthsData.length-1],k=B.cssHeight+B.cssScrollHeight;Fl(()=>{m?.value&&d?.value&&w?.value&&(C.value=m.value.clientHeight,d.value.style.height=`${k}px`,m.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(k/(u.monthsNum+1))}});const J=(Z,E)=>{Z>=3?E>0&&E<Z?u.defaultRange=[E-1,E+3]:E==0?u.defaultRange=[E,E+4]:E==Z&&(u.defaultRange=[E-2,E+2]):u.defaultRange=[0,Z+2];let B=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=B},Y=(Z,E)=>(e.type=="range"||e.type=="week")&&Z.type=="curr"&&y(Z,E)=="fox-calendar__day--active",H=(Z,E)=>Y(Z,E)&&A(N(Z,E)),U=(Z,E)=>u.currDate.length>=2&&I(N(Z,E))?Y(Z,E):!1,X=()=>{if(u.currDate.length>=2)return ie.isEqual(u.currDate[0],u.currDate[1])},M=Z=>{const E=`${Z.year}-${Z.month}-${Number(Z.day)<10?"0"+Z.day:Z.day}`;return ie.isEqual(E,ie.date2Str(new Date))},ee=Z=>{if(u.monthsData.length<=1)return;const E=Z.target.scrollTop;let B=Math.floor(E/u.avgHeight);if(B==0)E>=u.monthsData[B+1].cssScrollHeight&&(B+=1);else if(B>0&&B<u.monthsNum-1)E>=u.monthsData[B+1].cssScrollHeight&&(B+=1),E<u.monthsData[B].cssScrollHeight&&(B-=1);else{const k=Math.round(E+C.value);k<u.monthsData[B].cssScrollHeight+u.monthsData[B].cssHeight&&E>u.monthsData[B-1].cssScrollHeight&&(B-=1),B+1<=u.monthsNum&&k>=u.monthsData[B+1].cssScrollHeight+u.monthsData[B+1].cssHeight&&(B+=1),B>=1&&E<u.monthsData[B-1].cssScrollHeight&&(B-=1)}u.currentIndex!==B&&(u.currentIndex=B,J(u.monthsNum,B)),u.yearMonthTitle=u.monthsData[B].title},ne=()=>{u.chooseData.splice(0),u.monthsData.splice(0),R()};return R(),t.watch(()=>e.defaultValue,Z=>{Z&&e.poppable&&ne()}),{dayTitleStyle:s,dayCellStyle:c,weeks:f,compConthsData:p,showTopBtn:h,topInfo:V,bottomInfo:g,rangeTip:X,mothsViewScroll:ee,getClass:y,isStartTip:H,isEndTip:U,chooseDay:x,isCurrDay:M,confirm:z,months:m,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:b,viewArea:w}}}),yf={class:"fox-calendar__header"},bf={key:0,class:"fox-calendar__header-title"},wf={key:1,class:"fox-calendar__header-slot"},xf={key:2,class:"fox-calendar__header-subtitle"},Sf={class:"fox-calendar__weekdays",ref:"weeksPanel"},Cf={class:"fox-calendar__panel",ref:"monthsPanel"},Tf={class:"fox-calendar__days"},kf=["onClick"],$f={class:"fox-calendar__day-value"},Df={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Nf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Ef={key:2,class:"fox-calendar__day-tips--curr"},Pf={key:4,class:"fox-calendar__day-tip"},If={key:0,class:"fox-calendar__footer"};function Vf(e,l,o,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",yf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",bf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",wf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",xf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Sf,[(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",Cf,[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",Tf,[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",$f,[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",Df,[t.renderSlot(e.$slots,"top-info",{date:i.type=="curr"?i:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Nf,[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",Ef,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",Pf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,kf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",If,[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 Of=Re(vf,[["render",Vf]]),{create:Af}=se("calendar-picker"),Ff=Af({components:{CalendarPane:Of,Popup:wt},props:{...lo},emits:["choose","close","update:visible","select"],setup(e,{emit:l,slots:o}){const n=t.computed(()=>o.btn),a=t.computed(()=>o["top-info"]),r=t.computed(()=>o.day),s=t.computed(()=>o["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)})}),be({scrollToDate:i,initPosition:f});const d=()=>{l("update:visible",!1)},b=()=>{l("close"),l("update:visible",!1)};return{popClasses:m,closePopup:()=>{b()},update:d,close:b,select:h=>{l("select",h)},choose:h=>{b(),l("choose",h)},calendarRef:c,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function Mf(e,l,o,n,a,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 Un=Re(Ff,[["render",Mf]]),fl=(e,l)=>{let o;return dt(e)?o=e:typeof e=="string"&&at(e)>0?o=ie.parser(e,l):o=new Date,o},St=(e,l,o)=>(dt(l)||(l=new Date),ie.format(l,o)),Ct=e=>{let l=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=ie.date2Str(e),r=ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[l,o,n,a,r]},ha={...lo,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Bf(e,l,o){return{props:{...Te,...Ve,...ha},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]);let b=pe(n,"hintText"),w=t.ref(!1);const C=t.ref(!1),p=t.computed(()=>n.type==="range"),h=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),V=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},g=(W,j="one",J="YYYY-MM-DD")=>{if(gc(W)){V();return}if(p.value&&Array.isArray(W)&&W.length==2){let Y,H;typeof W[0]=="string"?(Y=fl(W[0],J),H=fl(W[1],J)):(Y=W[0],H=W[1]);let U=Ct(Y),X=Ct(H);(h.startDate===null||h.startDate.getTime()!==Y.getTime()||h.endDate?.getTime()!==H.getTime())&&(h.startDate=Y,h.startArray=U,h.endDate=H,h.endArray=X)}else{let Y;typeof W=="string"?Y=fl(W,J):Y=W;let H=Ct(Y);(h.startDate===null||h.startDate.getTime()!==Y.getTime())&&(h.startDate=Y,h.startArray=H)}};g(n.modelValue,n.type,n.valueFormat),t.watch(()=>n.modelValue,W=>{g(W,n.type,n.valueFormat),f("setValue",W)});const u=t.computed(()=>{if(h.startDate===null)return"";if(p.value){let W=St(n,h.startDate,n.format),j=St(n,h.endDate,n.format);return`${W} ${n.rangeSeparator} ${j}`}else{let W=St(n,h.startDate,n.format);return n.showWeek&&(W=`${W} ${h.startArray[4]}`),W}}),D=t.computed(()=>{if(h.startDate===null)return null;if(p.value){let W=ie.date2Str(h.startDate),j=ie.date2Str(h.endDate??new Date);return[W,j]}else return ie.date2Str(h.startDate)}),A="fox-input-item",I=t.computed(()=>({[A]:!0,[`${A}__disabled`]:s.value})),T=Ae(t.computed(()=>n.textAlign),"textAlign"),N=t.computed(()=>({textAlign:T.value??"right"})),y=t.ref(!1),z=()=>{i.value||s.value||(y.value=!0)},x=()=>{y.value=!1},_=W=>{y.value=W},G=W=>{if(W){if(p.value&&Array.isArray(W)){let j=W[0],J=ve(j[0]),Y=ve(j[1]),H=ve(j[2]),U=new Date(J,Y-1,H),X=W[1];J=ve(X[0]),Y=ve(X[1]),H=ve(X[2]);let M=new Date(J,Y-1,H);if(h.startDate=U,h.startArray=Ct(U),h.endDate=M,h.endArray=Ct(M),n.valueFormat){let ee=St(n,U,n.valueFormat),ne=St(n,M,n.valueFormat);f("update:modelValue",[ee,ne],{})}else f("update:modelValue",[U,M],{})}else{let j=W,J=ve(j[0]),Y=ve(j[1]),H=ve(j[2]),U=new Date(J,Y-1,H);if(h.startDate=U,h.startArray=Ct(U),n.valueFormat){let X=St(n,U,n.valueFormat);f("update:modelValue",X,{})}else f("update:modelValue",U,{})}f("change",W,{})}},S=W=>{let J=W.target.value;C.value=!0,f("focus",J,W)},$=W=>{setTimeout(()=>{C.value=!1},0);let J=W.target.value;n.maxLength&&J.length>Number(n.maxLength)&&(J=J.slice(0,Number(n.maxLength))),f("blur",J,W)},F=t.computed(()=>at(n.unit)>0),R=W=>{V(),f("update:modelValue",null,W),f("change","",W),f("clear","")},Q=t.ref();return be({showPicker:z,hidePicker:x,focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},select:()=>{Q?.value.select()},setDisabled:W=>{r.value=W},setReadonly:W=>{c.value=W}}),()=>{const W={class:I.value,style:N.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:n.clearable,value:u.value,onClick:z,onFocus:S,onBlur:$,onClear:R},j={};a.slots.prepend&&(j.prepend=a.slots.prepend),a.slots.append&&(j.append=a.slots.append),a.slots.prefix?j.prefix=a.slots.prefix:j.prefix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Pe.Calendar)}),a.slots.suffix?j.suffix=a.slots.suffix:F.value&&(j.suffix=()=>[n.unit]);const J=[],Y=t.h(O.ElInput,W,j);J.push(Y);const H={default:()=>J};H.label=a.slots.default,H.fixedPreTip=a.slots.fixedPreTip,H.fixedTip=a.slots.fixedTip;const U=it(n,lo);U.visible=y.value,U["onUpdate:visible"]=_,U["default-value"]=D.value,U.onChoose=G;const X={};if(a.slots.btn){const E=a.slots.btn();X.btn=()=>E}a.slots.day&&(X.day=a.slots.day),a.slots.topInfo&&(X.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(X.bottomInfo=a.slots.bottomInfo);const M=t.h(Un,U,X);H.hide=()=>[M];const ne={...Ie(n,ha),hintText:b.value,hintVisible:w.value};return n.prop&&(ne.prop=`${n.prop}_item`),t.h(o,ne,H)}}}}const{componentName:Rf,create:Lf,scope:_f}=se("calendar-item"),ao=Lf(Bf(Rf,_f,ke)),ma={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function qf(e,l,o){return{props:{...Te,...Ve,...ma},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,a){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}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=pe(n,"modelValue",null,f),C=e,p=t.computed(()=>({[C]:!0})),h=N=>{w.value=N,f("update:modelValue",N),f("change",N)};let V=pe(n,"hintText"),g=t.ref(!1);const u=N=>{let z=N.target.value;b.value=!0,me(V.value)||(g.value=!0),f("focus",z,N)},D=N=>{setTimeout(()=>{g.value&&(g.value=!1),b.value=!1},0);let z=N.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),f("blur",z,N)},A=()=>{f("clear","")},I=N=>{f("visible-change",N)},T=t.ref();return be({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},handleOpen:()=>{T?.value.handleOpen()},handleClose:()=>{T?.value.handleClose()},setDisabled:N=>{r.value=N},setReadonly:N=>{c.value=N}}),()=>{const y={...a.attrs,ref:T,class:p.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:A,onFocus:u,onBlur:D,onVisibleChange:I},z={},x=[],_=t.h(O.ElTimePicker,y,z);x.push(_);const G={default:()=>x};G.label=a.slots.default,G.fixedPreTip=a.slots.fixedPreTip,G.fixedTip=a.slots.fixedTip;const $={...Ie(n,ma),hintText:V.value,hintVisible:g.value};return n.prop&&($.prop=`${n.prop}_item`),t.h(o,$,G)}}}}const{componentName:zf,create:jf,scope:Hf}=se("time-item"),ro=jf(qf(zf,Hf,ke)),ga={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Kf(e,l,o){return{props:{...Te,...Ve,...ga},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,a){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}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=pe(n,"modelValue",null,f),C=e,p=t.computed(()=>({[C]:!0})),h=T=>{w.value=T,f("update:modelValue",T),f("change",T)};let V=pe(n,"hintText"),g=t.ref(!1);const u=T=>{let y=T.target.value;b.value=!0,me(V.value)||(g.value=!0),f("focus",y,T)},D=T=>{setTimeout(()=>{g.value&&(g.value=!1),b.value=!1},0);let y=T.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),f("blur",y,T)},A=()=>{f("clear","")},I=t.ref();return be({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:T=>{r.value=T},setReadonly:T=>{c.value=T}}),()=>{const N={...a.attrs,ref:I,class:p.value,placeholder:d.placeholder.value,disabled:s.value,readonly:i.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:A,onFocus:u,onBlur:D},y={},z=[],x=t.h(O.ElTimeSelect,N,y);z.push(x);const _={default:()=>z};_.label=a.slots.default,_.fixedPreTip=a.slots.fixedPreTip,_.fixedTip=a.slots.fixedTip;const S={...Ie(n,ga),hintText:V.value,hintVisible:g.value};return n.prop&&(S.prop=`${n.prop}_item`),t.h(o,S,_)}}}}const{componentName:Wf,create:Yf,scope:Uf}=se("time-select-item"),io=Yf(Kf(Wf,Uf,ke));function pa(e,l=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let r=o.length-1;r>=n;r--)if(o.charAt(r)!="0"){a=r;break}return a-n<l?a=n+l+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function va(e,l,o=20){if(typeof l=="string"&&(l=ve(l)),l==1||l==-1)return`${e}`;if(l==0)return"0";if(l>0){let n=ur(`${e}`,`${l}`);return pa(n)}else{let n=Bl(`${e}`,cr(`${l}`),20);return pa(n)}}function Gf(e,l=-1,o=!1,n=3,a=","){return kn(e,l,o,n,a)}function ya(e,l,o,n,a=!0){if(e==="")return"";if(e=fr(e),l=ve(l),l==1)return e;if(n)e=va(e,l),o&&(e=="0"&&a?e=`${e}.`.padEnd(ve(o)+2,"0"):e=Bl(e,1,ve(o)));else{let r=-1*l;e=va(e,r)}return e}function ba(e,l){let o={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let n=fe(l.minInclude),a=Sl(e,l.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";o.message=r.replace("{0}",l.min),o.minValid=!1}}if(l.max!=null){let n=fe(l.maxInclude),a=Sl(e,l.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const wa={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 Xf(e,l,o){return{props:{...Te,...Ve,...wa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,a){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}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),m=t.ref(!1),d=pe(n,"modelValue",null,f),b=t.ref("");t.watch([()=>d.value,()=>n.rates,()=>n.precision],([$,F,R])=>{if(me($)){b.value="";return}const Q=ya($,F,R,!1);b.value!==Q&&(b.value=Q)},{immediate:!0});const w=t.computed(()=>{let $="";return m.value&&($=b.value),$}),{t:C}=Se.useFoxI18n(l),p=t.computed(()=>{let $=n.placeholder??"";return!m.value&&!me(b.value)?$=Gf(b.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=C(["placeholder",$]),$}),h=e,V=t.computed(()=>({[h]:!0,[`${h}__disabled`]:s.value,[`${h}__placeholder`]:b.value.length>0})),g=Ae(t.computed(()=>n.textAlign),"textAlign");t.computed(()=>m.value?{textAlign:"left"}:{textAlign:g.value??"right"});const u=t.ref(""),D=t.computed(()=>{let $=u.value;return me($)&&($=n.errorTip??""),$}),A=t.ref(""),I=t.ref(!1),T=($,F)=>{if($=`${$}`,me($)){b.value="",d.value="",F.forEach(R=>{f(R,"")}),fe(n.showTip)&&I.value&&(I.value=!1);return}if($.length>=2){let R=$;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){t.triggerRef(b);return}}if($!="-"){if(!Ll($)){t.triggerRef(b);return}if(n.integerLength!=-1&&br($)>Number(n.integerLength)){t.triggerRef(b);return}if(n.decimalLength&&n.decimalLength!=-1&&wr($)>Number(n.decimalLength)){t.triggerRef(b);return}let R=ba($,n);if(R.maxValid===!1){u.value=R.message,t.triggerRef(b);return}}else if(n.min!=null&&ve(n.min)>=0){t.triggerRef(b);return}A.value=$,fe(n.showTip)&&(I.value=$.length>0),b.value=$,d.value=ya($,n.rates,n.precision,!0),F.forEach(R=>{f(R,d.value)})},N=$=>{T($,["update:modelValue","input"])},y=$=>{T($,["update:modelValue","change"])},z=$=>{if(m.value=!0,fe(n.showTip)){let F=b.value;me(F)&&(F=n.hintText),me(F)||(A.value=F,I.value=!0)}u.value="",f("focus",d.value,$)},x=$=>{if(setTimeout(()=>{m.value=!1,fe(n.showTip)&&I.value===!0&&(I.value=!1)},0),!me(b.value)){let F=ba(b.value,n);if(F.minValid===!1||F.maxValid===!1){u.value=F.message;return}}f("update:modelValue",d.value,$),f("blur",d.value,$)},_=()=>{f("clear","")},G=t.computed(()=>at(n.unit)>0),S=t.ref();return be({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},select:()=>{S?.value.select()},setDisabled:$=>{r.value=$},setReadonly:$=>{c.value=$}}),()=>{const F={...tt(a.attrs),ref:S,class:V.value,type:"digit",maxlength:n.maxLength,placeholder:p.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:w.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onInput:N,onChange:y,onFocus:z,onBlur:x},R={};a.slots.prepend&&(R.prepend=a.slots.prepend),a.slots.append&&(R.append=a.slots.append),a.slots.prefix&&(R.prefix=a.slots.prefix),a.slots.suffix?R.suffix=a.slots.suffix:G.value&&(R.suffix=()=>[n.unit]);const Q=[],W=t.h(O.ElInput,F,R);Q.push(W);const j={default:()=>Q};j.label=a.slots.default,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const Y={...Ie(n,wa),errorTip:D.value,hintText:A.value,hintVisible:I.value,hintType:"number"};return n.prop&&(Y.prop=`${n.prop}_item`),t.h(o,Y,j)}}}}const{componentName:Zf,create:Qf,scope:Jf}=se("money-item"),so=Qf(Xf(Zf,Jf,ke)),xa={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 ed(e,l,o){return{props:{...Te,...Ve,...xa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=pe(n,"modelValue",null,f),C=e,p=t.computed(()=>({[C]:!0,[`${C}__append`]:N.value})),h=t.computed(()=>({[`${C}__unit`]:!0})),V=z=>{w.value=z,f("update:modelValue",z),f("input",z)},g=z=>{f("change",z)};let u=pe(n,"hintText"),D=t.ref(!1);const A=z=>{let _=z.target.value;b.value=!0,me(u.value)||(D.value=!0),f("focus",_,z)},I=z=>{setTimeout(()=>{D.value&&(D.value=!1),b.value=!1},0);let _=z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),f("blur",_,z)},T=()=>{f("clear","")},N=t.computed(()=>at(n.unit)>0),y=t.ref();return be({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:z=>{r.value=z},setReadonly:z=>{c.value=z}}),()=>{const x={...tt(a.attrs),ref:y,class:p.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:w.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:T,onChange:g,onInput:V,onFocus:A,onBlur:I},_={},G=[],S=t.h(O.ElInputNumber,x,_);G.push(S);const $={default:()=>G};$.label=a.slots.default,$.fixedPreTip=a.slots.fixedPreTip,$.fixedTip=a.slots.fixedTip;const R={...Ie(n,xa),hintText:u.value,hintVisible:D.value};if(n.prop&&(R.prop=`${n.prop}_item`),a.slots.append)$.append=a.slots.append;else if(N.value){const W={class:h.value},j=t.h("div",W,[n.unit]);$.append=()=>j}return t.h(o,R,$)}}}}const{componentName:td,create:nd,scope:ld}=se("input-number-item"),uo=nd(ed(td,ld,ke));function rt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function yt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function od(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}let ad=class{proxy;constructor(l){this.proxy=l}async load(l,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const r=Fe(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(o,n,a))}};function rd(){const e=t.getCurrentInstance();return new ad(e.proxy)}function Il(e,l,o){const n=rt(e,l),a=rt(e,o);if(n!==a)return!1;const r=yt(e,l),s=yt(e,o);return r===s}function Xr(e,l,o,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const a=[];let r=n;for(let s=0;Array.isArray(r)&&s<l.length;s++){const c=l[s];if(Array.isArray(c)){const i=Xr(e,c,o,n);a.push(i)}else{let i=!1;for(let f of r){if(o==="text")i=rt(e,f)===c;else if(o==="item")i=Il(e,f,c);else{let m=yt(e,f);m==null&&(m=rt(e,f)),i=m===c}if(i){a.push(f),r=od(e,f);break}}if(!i)break}}return a}function id(e){return{text:e,value:e}}const Sa={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 sd(e,l,o){return{props:{...Te,...Ve,...Sa},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(null),w=t.ref([]),C=t.computed(()=>w.value?w.value.map(B=>Array.isArray(B)?B.map(K=>rt(n,K)).join(" "):rt(n,B)).join(" "):""),p=(E,B,k,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(b.value===E)return;b.value=E;const L=t.toRaw(E);if(K){const te=Z?.value.getCheckedNodes();if(te)if(n.multiple){const oe=[];te.forEach(re=>{const ge=(re.pathNodes??[]).map(Ce=>Ce.data);oe.push(ge)}),f("update:pathNodes",oe)}else{const re=(te[0]?.pathNodes??[]).map(de=>de.data);f("update:pathNodes",re)}f("update:modelValue",L),f("change",L)}return}const P=Xr(n,E,B,k);if(P===null){if(w.value.length===0||w.value===null)return;w.value=[],b.value=null,K&&(f("update:pathNodes",[]),f("update:modelValue",null),f("change",null));return}const v=P[P.length-1];if(_.value.checkStrictly!==!0&&v&&!Array.isArray(v)&&Array.isArray(v.children)&&v.children.length>0){const L=[];P.forEach(te=>{const oe=`${rt(n,te)}`;L.push(oe)}),L.length>0&&(z.value=L.join(n.separator))}else z.value=null;let q=!0;if(P.length!==w.value.length)q=!1;else for(let L=0;L<P.length;L++){const te=P[L],oe=w.value[L];if(Array.isArray(te)){if(!Array.isArray(oe)||te.length!==oe.length)q=!1;else for(let re=0;re<te.length;re++)if(!Il(n,te[re],oe[re])){q=!1;break}}else Il(n,te,oe)||(q=!1);if(!q)break}if(!q){w.value=P;let L=[],te=[];P.forEach(re=>{if(Array.isArray(re)){let de=[],ge=[];for(let Ce of re)de.push(yt(n,Ce)),n.valueType==="text"?ge.push(rt(n,Ce)):n.valueType==="item"?ge.push(Ce):ge.push(yt(n,Ce));L.push(de),te.push(ge)}else L.push(yt(n,re)),n.valueType==="text"?te.push(rt(n,re)):n.valueType==="item"?te.push(re):te.push(yt(n,re))}),b.value=L;const oe=t.toRaw(te);K&&(f("update:pathNodes",P),f("update:modelValue",oe),f("change",oe))}},h=t.ref([]),V=Ae(t.computed(()=>n.appearLoad),"appearLoad",Ye.Near,E=>fe(E)),g=rd(),u=async(E,B)=>{if(E){const k=await g.load("cascader",E,B);if(k.length>0)if(typeof k[0]=="string"){let v=k.map(q=>id(q));h.value=v}else h.value=k}};t.watch([()=>n.source,()=>n.params],async([E,B])=>{u(E,B)},{immediate:!(V.value||n.lazy)});let D=!1;const A=()=>{D||(D=!0,u(n.source,n.params))};t.watch([()=>h.value,()=>n.modelValue],([E,B])=>{p(B,n.valueType,E,!1),f("setValue",B)}),n.lazy&&p(n.modelValue,"value",[],!1);let I=null,T=t.ref(!1);typeof n.remoteMethod=="function"&&(I=async E=>{if(E!=null){T.value=!0;try{const B=await n.remoteMethod(E);h.value=B}catch(B){console.error(B)}T.value=!1}});const N=t.ref(!1),y=e,z=t.ref(null),x=t.computed(()=>({[y]:!0,"is-incomplete":z.value&&z.value.length>0})),_=t.computed(()=>{let E={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(E.multiple=!0),n.props&&Object.assign(E,n.props),n.lazy&&(E.lazy=!0,typeof n.lazyLoad=="function"?E.lazyLoad=n.lazyLoad:E.lazyLoad=async(B,k)=>{let K={};n.params&&Object.assign(K,n.params),B&&Object.assign(K,B);const P=await g.load("cascader",n.source,K,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(b.value)&&b.value.length===B.level){const v=B.pathLabels??[];let q=[];v.forEach(L=>{L&&q.push(L)}),q.length>0&&(z.value=q.join(n.separator))}else z.value=null;k(P)}),E}),G=E=>{n.allowCreate?(f("update:modelValue",E),f("change",E),b.value=E):p(E,"value",h.value,!0)};let S=pe(n,"hintText"),$=t.ref(!1);const F=E=>{let k=E.target.value;N.value=!0,me(S.value)||($.value=!0),f("focus",k,E)},R=E=>{setTimeout(()=>{$.value&&($.value=!1),N.value=!1},0);let k=E.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),X.value||f("blur",k,E)},Q=()=>{f("clear","")},W=t.ref(!1);let j=null;const J=()=>{n.showTooltip&&W.value===!1&&(j&&clearTimeout(j),j=setTimeout(()=>{W.value=!0},150))},Y=()=>{j&&(clearTimeout(j),W.value=!1,j=null)},H=t.computed(()=>W.value||$.value),U=t.computed(()=>W.value?C.value:S.value),X=t.ref(!1),M=E=>{X.value=E,f("visible-change",E),E||f("selected")},ee=E=>{f("remove-tag",E)},ne=E=>{f("expand-change",E)},Z=t.ref();return be({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},getCheckedNodes:()=>Z?.value.getCheckedNodes(),setDisabled:E=>{r.value=E},setReadonly:E=>{c.value=E}}),()=>{const B={...a.attrs,ref:Z,class:x.value,props:_.value,clearable:n.clearable,placeholder:z.value||d.placeholder.value,disabled:s.value||i.value,options:h.value,modelValue:b.value,separator:n.separator,onClear:Q,onChange:G,onFocus:F,onBlur:R,onVisibleChange:M,onRemoveTag:ee,expandChange:ne};typeof I=="function"&&(B["remote-method"]=I,B.loading=T.value);const k={};a.slots.option&&(k.default=a.slots.option),a.slots.empty&&(k.empty=a.slots.empty);const K=[],P=t.h(O.ElCascader,B,k);K.push(P);const v={default:()=>K};v.label=a.slots.default,v.fixedPreTip=a.slots.fixedPreTip,v.fixedTip=a.slots.fixedTip;const L={...Ie(n,Sa),hintText:U.value,hintVisible:H.value,onMouseover:J,onMouseleave:Y};return n.prop&&(L.prop=`${n.prop}_item`),V.value&&!n.lazy&&(L["appear-listen"]=!0,L.onAppear=A),t.h(o,L,v)}}}}const{componentName:ud,create:cd,scope:fd}=se("cascader-item"),co=cd(sd(ud,fd,ke)),Ca={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function dd(e,l,o){return{props:{...Te,...Ve,...Ca},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,a){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}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=pe(n,"modelValue",null,f),C=e,p=t.computed(()=>({[C]:!0})),h=y=>{w.value=y,f("update:modelValue",y),f("input",y)},V=y=>{f("change",y)},g=y=>{f("select",y)};let u=pe(n,"hintText"),D=t.ref(!1);const A=y=>{let x=y.target.value;b.value=!0,me(u.value)||(D.value=!0),f("focus",x,y)},I=y=>{setTimeout(()=>{D.value&&(D.value=!1),b.value=!1},0);let x=y.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),f("blur",x,y)},T=()=>{f("clear","")},N=t.ref();return be({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()},setDisabled:y=>{r.value=y},setReadonly:y=>{c.value=y}}),()=>{const z={...a.attrs,ref:N,class:p.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:i.value,modelValue:w.value,onClear:T,onChange:V,onInput:h,onFocus:A,onBlur:I,onSelect:g},x={};a.slots.prepend&&(x.prepend=a.slots.prepend),a.slots.append&&(x.append=a.slots.append),a.slots.prefix&&(x.prefix=a.slots.prefix),a.slots.suffix&&(x.suffix=a.slots.suffix),a.slots.option&&(x.default=a.slots.option);const _=[],G=t.h(O.ElAutocomplete,z,x);_.push(G);const S={default:()=>_};S.label=a.slots.default,S.fixedPreTip=a.slots.fixedPreTip,S.fixedTip=a.slots.fixedTip;const F={...Ie(n,Ca),hintText:u.value,hintVisible:D.value};return n.prop&&(F.prop=`${n.prop}_item`),t.h(o,F,S)}}}}const{componentName:hd,create:md,scope:gd}=se("autocomplete-item"),fo=md(dd(hd,gd,ke));function pd(e,l,o,n,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],c=l[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[a]){let i=l;for(let f=0;i&&f<r.length;f++){let m=r[f],d=i.find(b=>b[n]===m);if(!d)break;s.push(d[o])}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(b=>b[n]===m);if(!d)break;s.push(d[o])}else{let i=l;for(let f=0;i&&f<r.length;f++){let m=r[f],d=i.find(b=>b[n]===m);if(!d)break;s.push(d[o]),i=d[a]}}return s}let vd=class{proxy;constructor(l){this.proxy=l}async load(l,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Fe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(o,n))}};function yd(){const e=t.getCurrentInstance();return new vd(e.proxy)}const Zr={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 bd(e,l){return{props:{...Zr},setup(o,{attrs:n,slots:a}){const r=yd(),s=t.ref([]);t.watch([()=>o.source,()=>o.params],async([i,f])=>{s.value=await r.load(o.sourceType,i,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return o.emptyText;let i=pd(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return i.length==0?o.emptyText??"":i.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${i[0]}`:i[0]:i.join(o.separator)});return()=>{const i={...n};if(a.default)return a.default({text:c.value,value:o.modelValue});const f=o.tag??"span";return typeof f=="object"?t.h(f,i,{default:()=>c.value}):t.h(f,i,[c.value])}}}}const{create:wd}=se("mapping"),jt=wd(bd());function xd(e,l){let o=l.split("."),n=e;for(let a=0;a<o.length;a++){let r=o[a],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 Sd(e,l){return{props:{...Zr},setup(o,{attrs:n,slots:a}){return()=>{const r={default:s=>{const c=xd(s.row,s.column.property);return a.default?t.h(jt,{...o,modelValue:c},{default:a.default}):t.h(jt,{...o,modelValue:c})}};for(let s in a)s!=="default"&&(r[s]=a[s]);return t.h(O.ElTableColumn,{...n},r)}}}}const{create:Cd}=se("table-mapping-column"),ho=Cd(Sd()),Td=Symbol.for("TableStateKey");function Ta(e,l){let o=l.split("."),n=e;for(let a=0;a<o.length;a++){let r=o[a],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 kd(e,l){return{props:{},setup(o,{attrs:n}){const a=t.inject(Td,{});return()=>{const r=a.currentRow?a.currentRow.value:null,s={default:c=>{const i=Ta(c.row,c.column.property),f=r?Ta(r,c.column.property):null,m=i===f,d={class:{"el-radio__input":!0,"is-checked":m}},b=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),w={class:{"el-radio":!0,"is-checked":m}};return t.h("label",w,[b])}};return t.h(O.ElTableColumn,{...n},s)}}}}const{create:$d}=se("table-radio-column"),mo=$d(kd()),Dd={},Nd={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 Ed(e,l){return t.openBlock(),t.createElementBlock("svg",Nd,[...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 Pd=Re(Dd,[["render",Ed]]),{create:Id}=se("table-setting"),Vd={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:"不固定"}},Od=Id({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:Pd,Download:Pe.Download,RefreshLeft:Pe.RefreshLeft},props:{...Vd},setup(e,{emit:l,attrs:o}){let n=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(M=>M.label===""||M.type?!1:M.fixed===""||M.fixed===!0||M.fixed==="left")),s=t.computed(()=>a.value.filter(M=>M.label===""||M.type?!1:M.fixed==="right")),c=t.computed(()=>a.value.filter(M=>!(M.label===""||M.type||M.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=M=>M.length>1,b=(M,ee)=>{Array.isArray(M)&&Array.isArray(ee)&&M.forEach(E=>{ee.some(B=>B.prop===E.prop?(E.label=B.label,!0):!1)});const ne=[];a.value=M.map((E,B)=>(!(E.label===""||E.type)&&E.visible!==!1&&ne.push(E.prop),{...E,sortIndex:B})),c.value.length+r.value.length+s.value.length===ne.length?g.value=!0:ne.length>0&&(u.value=!0),I.value=ne},w=M=>M?M.type?M.type:M.label?M.prop:"":"",C=(M,ee)=>{if(M.length!==ee.length)return!1;const ne=M.map(Z=>w(Z));for(let Z of ee){const E=w(Z);if(ne.indexOf(E)===-1)return!1}return!0},p=M=>{if(!M){const ee=e.tableRef.getColumnSetting(),ne=ee.srcColumnPropertyList;n=ne.map((Z,E)=>({...Z,sortIndex:E})),M=ee.columnPropertyList,M&&M.length>0&&C(ne,M)||(M=ne)}b(M,n)},h=()=>{e.tableRef.setColumnSetting(a.value)},V=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),u=t.ref(!1),D=M=>{const ee=[];a.value.forEach(Z=>{M&&!(Z.label===""||Z.type)&&ee.push(Z.prop),Z.visible=M}),g.value=!1,u.value=!1,c.value.length+r.value.length+s.value.length===ee.length?g.value=!0:ee.length>0&&(u.value=!0),I.value=ee,h()},A=()=>{p(n),h()},I=t.ref([]),T=M=>{a.value.forEach(ne=>{if(ne.label===""||ne.type)return;const Z=M.indexOf(ne.prop)!==-1;ne.visible=Z}),g.value=!1,u.value=!1;const ee=c.value.length+r.value.length+s.value.length;M.length===ee?g.value=!0:M.length>0&&(u.value=!0),h()},N=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const y={currentRow:null,index:null,roleType:null},z=M=>M?M.dataset&&M.dataset.role==="row"?M:M.tagName.toLowerCase()!=="body"?(M=M.parentElement,z(M)):null:null,x=M=>{const ee=M.currentTarget;ee&&ee.dataset&&(y.roleType=ee.dataset.roleType,y.index=ee.dataset.index)},_=M=>{y.currentRow&&(y.currentRow.classList.remove("is-dragover"),y.currentRow=null),y.index=null,y.roleType=null},G=M=>{const ee=M.currentTarget;M.relatedTarget;const ne=z(ee);if(!ne)return;const Z=ne.dataset&&ne.dataset.roleType;y.roleType===Z&&(M.preventDefault(),y.currentRow&&y.currentRow!==ne&&y.currentRow.classList.remove("is-dragover"),ne.classList.add("is-dragover"),y.currentRow=ne)},S=M=>{M.preventDefault(),y.currentRow&&(y.currentRow.classList.remove("is-dragover"),y.currentRow=null)},$=M=>{const ee=M.currentTarget,ne=z(ee);if(!ne)return;const Z=ne.dataset&&ne.dataset.roleType;if(y.roleType!==Z)return;M.preventDefault();const E=Number(y.index),B=Number(ne.dataset.index);if(E!==B){if(E<B){const k=a.value[E];a.value.splice(E,1),a.value.splice(B,0,k)}else{const k=a.value[E];a.value.splice(E,1),a.value.splice(B+1,0,k)}b(a.value,n),h()}},F=M=>{const ee=a.value[M];ee.fixed="left",h()},R=M=>{const ee=a.value[M];ee.fixed="right",h()},Q=M=>{const ee=a.value[M];ee.fixed=void 0,h()},W=new Map;let j=null;function J(M){const ee=document.createRange();return ee.setStart(M,0),ee.setEnd(M,M.childNodes.length),ee.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:c,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:m,isDraggble:d,isCheckAll:g,isIndeterminate:u,handleCheckAllChange:D,handleReset:A,checkedValue:I,handleCheckChange:T,onShow:N,onDragStart:x,onDragEnd:_,onDragOver:G,onDragLeave:S,onDrop:$,toLeftFixed:F,toRightFixed:R,toUnFixed:Q,checkboxLabelStyle:V,onMouseOverForOverflowText:(M,ee,ne)=>{const Z=M.currentTarget;if(Z){const E=Math.floor(Z.offsetWidth);if(Math.floor(J(Z))>E){let k=W.get(ee);if(k){if(k===j)return;Oe.hide(k)}k=Oe.show(Z,ne,{type:"text",placement:"top",closeOnClick:!1}),k&&(W.set(ee,k),j=k)}}},onMouseLeaveForOverflowText:(M,ee)=>{const ne=W.get(ee);ne&&(Oe.hide(ne),ne===j&&(j=null))},onMouseOverForTip:(M,ee)=>{const ne=M.currentTarget;ne&&(j&&Oe.hide(j),j=Oe.show(ne,ee,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:M=>{j&&(Oe.hide(j),j=null)}}}}),Ad={class:"fox-table-setting"},Fd={class:"fox-table-setting__header"},Md={class:"fox-table-setting__body"},Bd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Rd={key:0,class:"fox-table-setting__body-title"},Ld=["data-index","draggable"],_d=["onMouseover","onMouseleave"],qd={class:"tools-item"},zd={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},jd={key:0,class:"fox-table-setting__body-title"},Hd=["data-index","draggable"],Kd=["onMouseover","onMouseleave"],Wd={class:"tools-item"},Yd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ud={key:0,class:"fox-table-setting__body-title"},Gd=["data-index","draggable"],Xd=["onMouseover","onMouseleave"],Zd={class:"tools-item"};function Qd(e,l,o,n,a,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"),b=t.resolveComponent("fox-checkbox"),w=t.resolveComponent("FoxCheckboxGroup"),C=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(C,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",Ad,[t.createElementVNode("div",Fd,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=p=>e.isCheckAll=p),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Md,[t.createVNode(w,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Bd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Rd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":p.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:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,p.prop,p.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,_d)]),_:2},1032,["value"]),t.createElementVNode("div",qd,[t.createVNode(m,{onClick:h=>e.toUnFixed(p.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(p.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,Ld))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",zd,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",jd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":p.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:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,p.prop,p.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Kd)]),_:2},1032,["value"]),t.createElementVNode("div",Wd,[t.createVNode(m,{onClick:h=>e.toLeftFixed(p.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(p.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,Hd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Yd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Ud,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":p.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(b,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,p.prop,p.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Xd)]),_:2},1032,["label"]),t.createElementVNode("div",Zd,[t.createVNode(m,{onClick:h=>e.toUnFixed(p.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(p.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,Gd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Gn=Re(Od,[["render",Qd]]);let Jd=class{proxy;constructor(l){this.proxy=l}async load(l,o,n,a,r,s,c){if(Array.isArray(o)){let f=(n-1)*a,m=f+a;m>o.length&&(m=o.length);const d=o.slice(f,m);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,r,s,c]);const i=Fe(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,[o,n,a,r,s,c]))}};function eh(){const e=t.getCurrentInstance();return new Jd(e.proxy)}let th=class{proxy;constructor(l){this.proxy=l}async load(l){let o=null;const n=Fe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",l])),o}save(l,o){const n=Fe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,o])}remove(l){const o=Fe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",l])}};function nh(){const e=t.getCurrentInstance();return new th(e.proxy)}const lh=Symbol.for("TableStateKey"),ka={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"}},$a={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}},dl={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:"不固定"}},oh={infiniteLoad:{type:Boolean,default:!0},loadText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"无更多数据"}};function ah(e,l){let o=l.split("."),n=e;for(let a=0;a<o.length;a++){let r=o[a],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 hl(e,l){return e.filter(n=>{for(let a in l){const r=l[a],s=ah(n,a);if(r!==s)return!1}return!0})}function rh(e,l,o){return{props:{...Te,...Ve,...ka,...$a,...dl,...oh},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:r,toLocaleRefs:s}=Se.useFoxI18n(l),c=s(n,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=Ne({componentName:e,validateHandler:{getValue(...le){return y.value}}},n.prop??a.attrs.name),m=e,d=t.computed(()=>({[m]:!0})),b=t.computed(()=>({[`${m}__setting`]:!0})),w=t.computed(()=>({[`${m}__footer`]:!0,[`${m}__footer__${n.footerAlign}`]:!0})),C=t.computed(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${n.paginationAlign}`]:!0})),p=t.shallowRef({}),h=t.computed(()=>({...p.value,...n.params??{},...n.baseParams??{}})),V=t.ref(n.infiniteLoad===!0?0:n.pageIndex),g=t.ref(n.pageSize),u=fe(n.infiniteLoad);u||(t.watch(()=>n.pageIndex,le=>{V.value=le}),t.watch(()=>n.pageSize,le=>{g.value=le}),t.watch([V,g],([le,ae],[ue,ce])=>{ae!==ce&&(V.value=1,le=1),G(n.data,le,ae,h.value)}));const D=()=>Array.isArray(n.data)?!0:fe(n.autoLoad);D()&&t.watch([()=>n.data,h],async([le,ae],[ue,ce])=>{D()&&(le!==ue&&(x=!0),!(!Array.isArray(le)&&Xe(le,ue)&&Xe(ae,ce))&&(u?(V.value=0,T.value=!0,y.value=[],$()):V.value===1?G(le,V.value,g.value,ae):V.value=1))},{deep:!0});const A=le=>{V.value=le,i("page-index-change",le)},I=le=>{g.value=le,i("page-size-change",le)},T=t.ref(!0),N=t.ref(0),y=t.ref([]),z=eh();let x=t.ref(!0);const _=Ae(t.computed(()=>n.lazyLoad),"lazyLoad",Ye.Near,le=>fe(le)),G=async(le,ae,ue,ce,_e)=>{try{if(_e===!0){if(!T.value)return!1;const xe=await z.load("table",le,ae,ue,ce,x.value,r.value);return N.value=xe.totalSize,!xe.page||!Array.isArray(xe.page)||(Reflect.apply([].push,y.value,xe.page),setTimeout(()=>{i("loaded-data")},250),(y.value?.length??0)>=N.value)||xe.page.length<ue?(T.value=!1,!1):!0}else{const xe=await z.load("table",le,ae,ue,ce,x,r.value);return N.value=xe.totalSize,y.value=xe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(xe){console.error("[FoxUI] Load Table Data Fail",xe),N.value=0,y.value=[]}finally{x.value=!1}return!1};let S=!1;const $=async()=>{if(!S){if(S=!0,!T.value){S=!1;return}V.value+=1,await G(n.data,V.value,g.value,h.value,!0),S=!1}},F=(le={},ae=!1)=>new Promise(async ue=>{p.value=t.toRaw(le??{}),ae||(V.value=n.pageIndex??1),u===!0?(V.value=0,y.value=[],T.value=!0,await $()):await G(n.data,V.value,g.value,h.value),ue()}),R=()=>{N.value=0,y.value=[],u===!0&&(V.value=0,T.value=!0)};let Q=!1;const W=()=>{Q||(Q=!0,F())},j=t.ref(null);if(u===!0){let le=null;const ae=()=>{j.value&&(le=new IntersectionObserver(ce=>{let _e=!1;for(let xe of ce)if(xe.intersectionRatio>0){_e=!0;break}_e&&x.value===!1&&$()}),le.observe(j.value))},ue=()=>{!le||!j.value||(le.unobserve(j.value),le=null)};t.onMounted(ae),t.onBeforeUnmount(ue)}D()&&!_.value&&F();const J=t.ref(null);t.provide(lh,{currentRow:J});const Y=(le,ae)=>{J.value=le,i("current-change",le,ae)},H=(le,ae,ue)=>{i("row-click",le,ae,ue),fe(n.rowClickSelectable)===!0&&Ee?.value.toggleRowSelection(le)},U=[],X=(le,ae)=>{if(i("expand-change",le,ae),fe(n.uniqueExpansion))if(Array.isArray(ae)&&ae.length==0){const ue=U.length;U.splice(0,ue)}else{U.forEach(ce=>{ce!==le&&Ee?.value.toggleRowExpansion(ce,!1)});const ue=U.length;U.splice(0,ue,le)}},M=a.attrs.id??n.prop??a.attrs.name,ee=nh(),ne=t.ref([]);let Z=[];const E=()=>({srcColumnPropertyList:Z.map(ae=>({...ae})),columnPropertyList:ne.value}),B=le=>{ne.value=[...le],K()},k=async()=>{const le=await ee.load(M);le&&(ne.value=le)},K=()=>{ee.save(M,ne.value)},P=()=>{ee.remove(M)};k();const v=le=>le?le.type?le.type:le.label?le.prop:"":"",q=(le,ae={})=>{for(let ue in ae){const ce=ae[ue];typeof ce!="function"&&(le[ue]=ce)}},L=le=>{const ae=le?le():[],ue=new Map;if(Z=[],ae.forEach(ce=>{const xe=ce;if(!xe.props)return;const Qe=v(xe.props);ue.set(Qe,xe);const Ge={label:"",prop:""};q(Ge,xe.props),Z.push(Ge)}),ne.value.length===Z.length){const ce=[];for(let _e of ne.value){const xe=v(_e),Qe=ue.get(xe);if(!Qe)return ae;if(_e.visible===!1)continue;const Ge=Qe;Ge.props.fixed=_e.fixed,ce.push(Ge)}return ce}return ae},te=t.shallowRef(new Map),oe=({row:le,column:ae,rowIndex:ue,columnIndex:ce})=>{const _e=`${ue}_${ae.property}`,xe=`${ue}_${ce}`;let Qe=te.value.get(_e);return Qe||(Qe=te.value.get(xe)),typeof Qe=="string"?Qe:""},re=le=>le?ae=>{const ue=[];let ce=oe(ae);return ce&&ue.push(ce),ce=typeof le=="function"?le(ae):le,ce&&ue.push(ce),ue.length===0?"":ue.join(" ")}:oe,de=(le=!1)=>{te.value.forEach((ae,ue)=>{ge(ue,ae,le)})},ge=(le,ae,ue=!1)=>{const ce=`${le}_item`;ue?(f.clearPersistantMessage(),Array.isArray(ae)?f.emitToChildren({name:le},"setCellClassNames",[]):f.emitToChildren({name:ce},"setCustomClassName","")):Array.isArray(ae)?f.emitToChildren({name:le,cachePolicy:"Persistant",uniqueId:ce},"setCellClassNames",ae):f.emitToChildren({name:ce,cachePolicy:"Persistant",uniqueId:ce},"setCustomClassName",ae)},Ce=(le,ae,ue)=>{const ce=`${le}_${ae}`;ue?(te.value.set(ce,ue),ge(ce,ue)):(te.value.delete(ce),ge(ce,"",!0)),t.triggerRef(te)},Ze=le=>{de(!0),te.value.clear(),le.forEach(ae=>{const ue=`${ae.rowIndex}_${ae.column}`;Array.isArray(ae.children)?te.value.set(ue,ae.children):typeof ae.cellClassName=="string"&&te.value.set(ue,ae.cellClassName)}),de(),t.triggerRef(te)},He=()=>{de(),te.value.clear(),t.triggerRef(te)},Le=t.shallowRef(new Map),xt=({rowIndex:le})=>{const ae=`${le}`;return Le.value.get(ae)??""},tl=le=>le?ae=>{const ue=[];let ce=xt(ae);return ce&&ue.push(ce),ce=typeof le=="function"?le(ae):le,ce&&ue.push(ce),ue.length===0?"":ue.join(" ")}:xt,fi=(le,ae)=>{const ue=`${le}`;ae?Le.value.set(ue,ae):Le.value.delete(ue),t.triggerRef(Le)},di=()=>{Le.value.clear(),t.triggerRef(Le)},Ee=t.ref();return be({clearSelection:()=>Ee?.value.clearSelection(),getSelectionRows:()=>Ee?.value.getSelectionRows(),toggleRowSelection:(le,ae)=>{Ee?.value.toggleRowSelection(le,ae)},toggleRowSelectionByProp:(le,ae)=>{if(!y.value)return;const ue=hl(y.value,le);ue.length!==0&&ue.forEach(ce=>{Ee?.value.toggleRowSelection(ce,ae)})},toggleAllSelection:()=>{Ee?.value.toggleAllSelection()},toggleRowExpansion:(le,ae)=>{Ee?.value.toggleRowExpansion(le,ae)},toggleRowExpansionByProp:(le,ae)=>{if(!y.value)return;const ue=hl(y.value,le);ue.length!==0&&ue.forEach(ce=>{Ee?.value.toggleRowExpansion(ce,ae)})},setCurrentRow:le=>{Ee?.value.setCurrentRow(le)},setCurrentRowByProp:le=>{if(!y.value)return;const ae=hl(y.value,le);ae.length!==0&&Ee?.value.setCurrentRow(ae[0])},getCurrentRow:()=>J.value,clearSort:()=>{Ee?.value.clearSort()},clearFilter:le=>{Ee?.value.clearFilter(le)},doLayout:()=>{Ee?.value.doLayout()},sort:(le,ae)=>{Ee?.value.sort(le,ae)},scrollTo:(le,ae)=>{Ee?.value.scrollTo(le,ae)},setScrollTop:le=>{Ee?.value.setScrollTop(le)},setScrollLeft:le=>{Ee?.value.setScrollLeft(le)},loadData:F,clearData:R,getData(){return y.value},getTotalSize(){return N.value},getPageIndex(){return V.value},getPageSize(){return g.value},getColumnSetting:E,setColumnSetting:B,removeColumnSetting:P,setCellClassName:Ce,setCellClassNames:Ze,clearCellClassName:He,setRowClassName:fi,clearRowClassName:di}),()=>{const ae={...tt(a.attrs),onCurrentChange:Y,onRowClick:H,onExpandChange:X,data:y.value,ref:Ee,class:d.value,"cell-class-name":re(n.cellClassName),"row-class-name":tl(n.rowClassName)},ue={};if(a.slots.default&&(ue.default=()=>L(a.slots.default)),a.slots.append&&(ue.append=a.slots.append),a.slots.empty&&(ue.empty=a.slots.empty),u===!0){const Je=[];if(T.value){const Ot=t.h(Pe.Loading,{class:`${m}__infinite-icon`});Je.push(Ot);const ol=t.h("span",{class:`${m}__infinite-text`},[c.loadText.value]);Je.push(ol)}else{const Ot=t.h("span",{class:`${m}__infinite-text`},[c.noMoreText.value]);Je.push(Ot)}const ut=[`${m}__infinite`];x.value&&ut.push("is-hide");const nl={ref:j,class:ut},ll=t.h("div",nl,Je);ue.append=()=>ll}const ce=t.h(O.ElTable,ae,ue),_e=[];if(_e.push(ce),!u){let Je=null;if(typeof a.slots.pagination=="function")Je=a.slots.pagination();else if(n.showPagination){const ut={class:C.value,total:N.value,pageSize:g.value,"onUpdate:pageSize":I,pageSizes:n.pageSizes,currentPage:V.value,"onUpdate:currentPage":A,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};Je=t.h(O.ElPagination,ut)}if(n.showSetting){const ut=[];Je&&ut.push(Je);const nl=t.h(O.ElIcon,{class:b.value},{default:()=>t.h(Pe.Setting)}),ll=it(n,dl),Ot=t.h(Gn,{...ll,tableRef:{getColumnSetting:E,setColumnSetting:B,removeColumnSetting:P}},{default:()=>nl});ut.push(Ot);const ol=t.h("div",{class:w.value},ut);_e.push(ol)}else Je&&_e.push(Je)}const xe={default:()=>_e},Ge={...Ie(n,ka,$a,dl)};return n.prop&&(Ge.prop=`${n.prop}_item`),Ge.contentClass=`${m}__wrap`,Ge.errorMarkClass="is-table-error",_.value&&D()&&(Ge["appear-listen"]=!0,Ge.onAppear=W),t.h(o,Ge,xe)}}}}const{componentName:ih,create:sh,scope:uh}=se("table-item"),go=sh(rh(ih,uh,ke));function It(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Ht(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function ch(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let fh=class{proxy;constructor(l){this.proxy=l}async load(l,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Fe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(o,n))}};function dh(){const e=t.getCurrentInstance();return new fh(e.proxy)}function Qr(e,l,o){if(l===o)return!0;if(l===null||o===null)return!1;const n=It(e,l),a=It(e,o);if(n!==a)return!1;const r=Ht(e,l),s=Ht(e,o);return r===s}function hh(e,l,o,n){if(n.length==0||l===""||l===null||l===void 0)return null;let a=null;for(let r of n){let s=!1;if(o==="text")s=It(e,r)===l;else if(o==="item")s=Qr(e,r,l);else{let c=Ht(e,r);c==null&&(c=It(e,r)),s=c===l}if(s){a=r;break}}return a}function mh(e){return{text:e,value:e}}function gh(e,l,o){return typeof e.itemOptions=="function"?e.itemOptions(l,o):e.itemOptions}const Da={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 ph(e,l,o){return{inheritAttrs:!0,props:{...Te,...Ve,...Da},emits:["change","update:modelValue","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),m=t.ref(null),d=t.ref(null),b=(y,z,x,_=!0)=>{const G=hh(n,y,z,x);if(G===null){if(d.value===null)return;d.value=null,m.value=null,_&&(f("update:modelValue",null),f("change",null));return}if(!Qr(n,G,d.value)){m.value=y;const $=t.toRaw(G);d.value=$;let F=null;n.valueType==="text"?F=It(n,$):n.valueType==="item"?F=$:F=Ht(n,$),_&&(f("update:modelValue",F),f("change",F))}},w=t.ref([]),C=Ae(t.computed(()=>n.appearLoad),"appearLoad",Ye.Near,y=>fe(y)),p=dh(),h=async(y,z)=>{if(y){const x=await p.load("radio",y,z);if(x.length>0)if(typeof x[0]=="string"){let S=x.map($=>mh($));w.value=S}else w.value=x}};t.watch([()=>n.source,()=>n.params],async([y,z])=>{h(y,z)},{immediate:!C.value});let V=!1;const g=()=>{V||(V=!0,h(n.source,n.params))};t.watch([()=>w.value,()=>n.modelValue],([y,z])=>{b(z,n.valueType,y,!1),f("setValue",z)});const u=e,D=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),A=y=>{b(y,"value",w.value,!0)};let I=pe(n,"hintText"),T=pe(n,"hintVisible");const N=(y,z)=>{const x=[];return y.forEach((_,G)=>{const S=Ht(n,_),$=It(n,_);let F=ch(n,_);s.value===!0&&(F=s.value),i.value===!0&&(F=i.value);const R=gh(n,_,G)??{},Q=`${S}_${G}`,W={...R,key:Q,value:S,size:n.size,border:fe(n.border)};F&&(W.disabled=F),n.itemType==="button"?x.push(t.h(O.ElRadioButton,W,{default:()=>[$]})):typeof z=="function"?x.push(t.h(O.ElRadio,W,{default:()=>z(_)})):x.push(t.h(O.ElRadio,W,{default:()=>[$]}))}),x};return be({setDisabled:y=>{r.value=y},setReadonly:y=>{c.value=y}}),()=>{const z={...tt(a.attrs),class:D.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,onChange:A},x=[],_={};a.slots.options?_.default=a.slots.options:_.default=()=>N(w.value,a.slots.text);const G=t.h(O.ElRadioGroup,z,_);x.push(G);const S={default:()=>x};S.label=a.slots.default,S.fixedPreTip=a.slots.fixedPreTip,S.fixedTip=a.slots.fixedTip;const F={...Ie(n,Da),hintText:I.value,hintVisible:T.value};return n.prop&&(F.prop=`${n.prop}_item`),C.value&&(F["appear-listen"]=!0,F.onAppear=g),t.h(o,F,S)}}}}const{componentName:vh,create:yh,scope:bh}=se("radio-item"),po=yh(ph(vh,bh,ke));function Vt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Nt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function wh(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let xh=class{proxy;constructor(l){this.proxy=l}async load(l,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Fe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(o,n))}};function Sh(){const e=t.getCurrentInstance();return new xh(e.proxy)}function Jr(e,l,o){if(l===o)return!0;if(l===null||o===null)return!1;const n=Vt(e,l),a=Vt(e,o);if(n!==a)return!1;const r=Nt(e,l),s=Nt(e,o);return r===s}function Ch(e,l,o,n){if(n.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const a=[];return l.forEach(r=>{for(let s of n){let c=!1;if(o==="text")c=Vt(e,s)===r;else if(o==="item")c=Jr(e,s,r);else{let i=Nt(e,s);i==null&&(i=Vt(e,s)),c=i===r}if(c){a.push(s);break}}}),a}function Th(e){return{text:e,value:e}}function kh(e,l,o){return typeof e.itemOptions=="function"?e.itemOptions(l,o):e.itemOptions}const Na={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 $h(e,l,o){return{inheritAttrs:!0,props:{...Te,...Ve,...Na},emits:["change","update:modelValue","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),m=t.ref([]),d=t.ref([]),b=(y,z,x,_=!0)=>{const G=Ch(n,y,z,x);if(G===null){if(d.value===null||d.value.length===0)return;m.value=[],d.value=[],_&&(f("update:modelValue",[]),f("change",[]));return}let S=!0;if(G.length!==d.value.length)S=!1;else for(let $=0;$<G.length;$++){const F=G[$],R=d.value[$];if(!Jr(n,F,R)){S=!1;break}}if(!S){d.value=G;let $=[],F=[];G.forEach(Q=>{$.push(Nt(n,Q)),n.valueType==="text"?F.push(Vt(n,Q)):n.valueType==="item"?F.push(Q):F.push(Nt(n,Q))}),m.value=$;const R=t.toRaw(F);_&&(f("update:modelValue",R),f("change",R))}},w=t.ref([]),C=Ae(t.computed(()=>n.appearLoad),"appearLoad",Ye.Near,y=>fe(y)),p=Sh(),h=async(y,z)=>{if(y){const x=await p.load("checkbox",y,z);if(x.length>0)if(typeof x[0]=="string"){let S=x.map($=>Th($));w.value=S}else w.value=x}};t.watch([()=>n.source,()=>n.params],async([y,z])=>{h(y,z)},{immediate:!C.value});let V=!1;const g=()=>{V||(V=!0,h(n.source,n.params))};t.watch([()=>w.value,()=>n.modelValue],([y,z])=>{b(z,n.valueType,y,!1),f("setValue",z)});const u=e,D=t.computed(()=>({[u]:!0,[`is-${n.direction}`]:!0})),A=y=>{b(y,"value",w.value,!0)};let I=pe(n,"hintText"),T=pe(n,"hintVisible");const N=(y,z)=>{const x=[];return y.forEach((_,G)=>{const S=Nt(n,_),$=Vt(n,_);let F=wh(n,_);s.value===!0&&(F=s.value),i.value===!0&&(F=i.value);const R=kh(n,_,G)??{},Q=`${S}_${G}`,W={...R,key:Q,class:n.itemClass,value:S,size:n.size,border:fe(n.border)};F&&(W.disabled=F),n.itemType==="button"?x.push(t.h(O.ElCheckboxButton,W,{default:()=>[$]})):typeof z=="function"?x.push(t.h(O.ElCheckbox,W,{default:()=>z(_)})):x.push(t.h(O.ElCheckbox,W,{default:()=>[$]}))}),x};return be({setDisabled:y=>{r.value=y},setReadonly:y=>{c.value=y}}),()=>{const z={...tt(a.attrs),class:D.value,disabled:s.value||i.value,modelValue:m.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:A},x=[],_={};a.slots.options?_.default=a.slots.options:_.default=()=>N(w.value,a.slots.text);const G=t.h(O.ElCheckboxGroup,z,_);x.push(G);const S={default:()=>x};S.label=a.slots.default,S.fixedPreTip=a.slots.fixedPreTip,S.fixedTip=a.slots.fixedTip;const F={...Ie(n,Na),hintText:I.value,hintVisible:T.value};return n.prop&&(F.prop=`${n.prop}_item`),C.value&&(F["appear-listen"]=!0,F.onAppear=g),t.h(o,F,S)}}}}const{componentName:Dh,create:Nh,scope:Eh}=se("checkbox-item"),vo=Nh($h(Dh,Eh,ke)),Ea={modelValue:{type:[Number,String],required:!1}};function Ph(e,l,o){return{props:{...Te,...Ve,...Ea},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),m=pe(n,"modelValue",V=>ve(V),f),d=e,b=t.computed(()=>({[d]:!0})),w=V=>{f("update:modelValue",V),f("change",V)};let C=pe(n,"hintText"),p=t.ref(!1);const h=t.ref();return be({setDisabled:V=>{r.value=V},setReadonly:V=>{c.value=V}}),()=>{const g={...tt(a.attrs),ref:h,class:b.value,readonly:i.value||s.value,modelValue:m.value,onChange:w},u={},D=[],A=t.h(O.ElRate,g,u);D.push(A);const I={default:()=>D};I.label=a.slots.default,I.fixedPreTip=a.slots.fixedPreTip,I.fixedTip=a.slots.fixedTip;const N={...Ie(n,Ea),hintText:C.value,hintVisible:p.value};return n.prop&&(N.prop=`${n.prop}_item`),t.h(o,N,I)}}}}const{componentName:Ih,create:Vh,scope:Oh}=se("rate-item"),yo=Vh(Ph(Ih,Oh,ke)),Pa={modelValue:{type:[Boolean,String,Number],required:!1}};function Ah(e,l,o){return{props:{...Te,...Ve,...Pa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),m=pe(n,"modelValue",null,f),d=e,b=t.computed(()=>({[d]:!0})),w=V=>{f("update:modelValue",V),f("change",V)};let C=pe(n,"hintText"),p=pe(n,"hintVisible");const h=t.ref();return be({setDisabled:V=>{r.value=V},setReadonly:V=>{c.value=V}}),()=>{const g={...tt(a.attrs),ref:h,class:b.value,readonly:i.value,disabled:s.value,modelValue:m.value,onChange:w},u={},D=[],A=t.h(O.ElSwitch,g,u);D.push(A);const I={default:()=>D};I.label=a.slots.default,I.fixedPreTip=a.slots.fixedPreTip,I.fixedTip=a.slots.fixedTip;const N={...Ie(n,Pa),hintText:C.value,hintVisible:p.value};return n.prop&&(N.prop=`${n.prop}_item`),t.h(o,N,I)}}}}const{componentName:Fh,create:Mh,scope:Bh}=se("switch-item"),bo=Mh(Ah(Fh,Bh,ke)),Ia={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 Rh=class{proxy;constructor(l){this.proxy=l}async load(l,o,n,a,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const s=Fe(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(o,n,a))}};function Lh(){const e=t.getCurrentInstance();return new Rh(e.proxy)}const Va={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function _h(e,l,o){return{props:{...Te,...Ve,...Va,...Ia},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,a){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}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),d=pe(n,"modelValue",null,m),b=e,w=t.computed(()=>({[b]:!0})),C=_=>{d.value=_,m("update:modelValue",_),m("change",_)};let p=pe(n,"hintText"),h=t.ref(!1);const V=_=>{let S=_.target.value;f.value=!0,me(p.value)||(h.value=!0),m("focus",S,_)},g=_=>{setTimeout(()=>{h.value&&(h.value=!1),f.value=!1},0);let S=_.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),D.value||m("blur",S,_)},u=()=>{m("clear","")},D=t.ref(!1),A=_=>{D.value=_,m("visible-change",_),_||m("selected")},I=t.ref([]),T=Lh(),N=async(_,G)=>{try{const S=await T.load("treeselect",_,G);I.value=S}catch(S){console.error(S)}};t.watch([()=>n.data,()=>n.params,()=>n.lazy],([_,G,S])=>{!_||S||N(_,G)},{immediate:!0});let y=null;n.lazy&&(typeof n.load=="function"?y=n.load:y=async(_,G)=>{debugger;let S={};n.params&&Object.assign(S,n.params),_&&Object.assign(S,_);const $=await T.load("treeselect",n.data,S,!0);G($)});let z={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const x=t.ref();return be({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:_=>{r.value=_},setReadonly:_=>{c.value=_}}),()=>{const G={...tt(a.attrs),ref:x,class:w.value,disabled:s.value||i.value,modelValue:d.value,"onUpdate:modelValue":C,lazy:n.lazy,props:z,onClear:u,onFocus:V,onBlur:g,onVisibleChange:A};y?G.load=y:G.data=I.value;const S={};a.slots.option&&(S.default=a.slots.option);const $=[],F=t.h(O.ElTreeSelect,G,S);$.push(F);const R={default:()=>$};R.label=a.slots.default,R.fixedPreTip=a.slots.fixedPreTip,R.fixedTip=a.slots.fixedTip;const W={...Ie(n,Va,Ia),hintText:p.value,hintVisible:h.value};return n.prop&&(W.prop=`${n.prop}_item`),t.h(o,W,R)}}}}const{componentName:qh,create:zh,scope:jh}=se("tree-select-item"),wo=zh(_h(qh,jh,ke));class Hh{proxy;constructor(l){this.proxy=l}async load(l){let o=null;const n=Fe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",l])),o}save(l,o){const n=Fe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",l,o])}remove(l){const o=Fe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",l])}}function Kh(){const e=t.getCurrentInstance();return new Hh(e.proxy)}const Wh={},Yh={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 Uh(e,l){return t.openBlock(),t.createElementBlock("svg",Yh,[...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 Gh=Re(Wh,[["render",Uh]]),{create:Xh}=se("group-setting"),Zh={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:"到底部"}},Qh=Xh({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:Gh,Download:Pe.Download,RefreshLeft:Pe.RefreshLeft},props:{...Zh},emits:["change"],setup(e,{emit:l,attrs:o,expose:n}){let a=null;const r=t.ref([]),s=Kh(),c=Y=>Y.length>1,i=()=>{const Y=[],H=[...r.value];r.value=H.map((X,M)=>(X.visible!==!1&&Y.push(X.prop),{...X,sortIndex:M})),r.value.length===Y.length?p.value=!0:Y.length>0&&(h.value=!0),u.value=Y},f=Y=>{let H=null;if(typeof Y=="string")H=document.querySelectorAll(`.fox-group[prop="${Y}"] > div > .fox-item[prop]`);else if(Y&&typeof Y=="object"){const X=Y.$el??Y;typeof X.querySelectorAll=="function"&&(H=X.querySelectorAll(".fox-item[prop]"))}if(!H)return[];const U=[];return H.forEach(X=>{const M=X.querySelector(".label--string");let ee="";M&&(ee=M.textContent??"");const ne=X.getAttribute("prop")??"",E=window.getComputedStyle(X,null).getPropertyValue("display");U.push({label:ee,prop:ne,sortIndex:0,visible:E!=="none"})}),U},m=()=>{if(!a){const Y=f(e.groupRef??e.groupProp);if(Y.length===0)return!1;a=Y}return!0},d=async(Y=!1)=>{const H=await s.load(e.groupProp),U=X=>{if(!X||!a)return;const M=a.map(ee=>({...ee}));Array.isArray(H)&&H.forEach(ee=>{M.some(ne=>{if(ne.prop===ee.prop){const Z=ne.label;return Object.assign(ne,ee),ne.label=Z,!0}return!1})}),r.value=M.sort((ee,ne)=>ee.sortIndex-ne.sortIndex),i(),Y&&w(!1)};a?U(!0):En(m,e.initDelay,5,50,!1,U)},b=()=>{const Y=a??[];r.value=Y.map(H=>({...H})),i(),w()},w=(Y=!0)=>{Y&&s.save(e.groupProp,r.value);const H=r.value.map(U=>({...U}));l("change",H)},C=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),h=t.ref(!1),V=Y=>{const H=[];r.value.forEach(X=>{Y&&H.push(X.prop),X.visible=Y}),p.value=!1,h.value=!1,r.value.length===H.length?p.value=!0:H.length>0&&(h.value=!0),u.value=H,w()},g=()=>{b()},u=t.ref([]),D=Y=>{r.value.forEach(U=>{const X=Y.indexOf(U.prop)!==-1;U.visible=X}),p.value=!1,h.value=!1;const H=r.value.length;Y.length===H?p.value=!0:Y.length>0&&(h.value=!0),w()},A=()=>{d()};t.onMounted(()=>{d(!0)});const I={currentRow:null,index:null},T=Y=>Y?Y.dataset&&Y.dataset.role==="row"?Y:Y.tagName.toLowerCase()!=="body"?(Y=Y.parentElement,T(Y)):null:null,N=Y=>{const H=Y.currentTarget;H&&H.dataset&&(I.index=H.dataset.index)},y=Y=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null},z=Y=>{const H=Y.currentTarget;Y.relatedTarget;const U=T(H);U&&(Y.preventDefault(),I.currentRow&&I.currentRow!==U&&I.currentRow.classList.remove("is-dragover"),U.classList.add("is-dragover"),I.currentRow=U)},x=Y=>{Y.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},_=Y=>{const H=Y.currentTarget,U=T(H);if(!U)return;Y.preventDefault();const X=Number(I.index),M=Number(U.dataset.index);if(X!==M){if(X<M){const ee=r.value[X];r.value.splice(X,1),r.value.splice(M,0,ee)}else{const ee=r.value[X];r.value.splice(X,1),r.value.splice(M+1,0,ee)}i(),w()}},G=Y=>{const H=r.value[Y];r.value.splice(Y,1),r.value.splice(0,0,H),i(),w()},S=Y=>{const H=r.value[Y];r.value.splice(Y,1),r.value.push(H),i(),w()};n({refresh:()=>{a=null,d(!1)}});const $=new Map;let F=null;function R(Y){const H=document.createRange();return H.setStart(Y,0),H.setEnd(Y,Y.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:c,isCheckAll:p,isIndeterminate:h,handleCheckAllChange:V,handleReset:g,checkedValue:u,handleCheckChange:D,onShow:A,onDragStart:N,onDragEnd:y,onDragOver:z,onDragLeave:x,onDrop:_,checkboxLabelStyle:C,toTop:G,toBottom:S,onMouseOverForOverflowText:(Y,H,U)=>{const X=Y.currentTarget;if(X){const M=Math.floor(X.offsetWidth);if(Math.floor(R(X))>M){let ne=$.get(H);if(ne){if(ne===F)return;Oe.hide(ne)}ne=Oe.show(X,U,{type:"text",placement:"top",closeOnClick:!1}),$.set(H,ne),F=ne}}},onMouseLeaveForOverflowText:(Y,H)=>{const U=$.get(H);U&&(Oe.hide(U),U===F&&(F=null))},onMouseOverForTip:(Y,H)=>{const U=Y.currentTarget;U&&(F&&Oe.hide(F),F=Oe.show(U,H,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:Y=>{F&&(Oe.hide(F),F=null)}}}}),Jh={class:"fox-group-setting"},em={class:"fox-group-setting__header"},tm={class:"fox-group-setting__body"},nm={class:"fox-group-setting__body-list","data-role":"container"},lm=["data-index","draggable"],om=["onMouseover","onMouseleave"],am={class:"tools-item"};function rm(e,l,o,n,a,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"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Jh,[t.createElementVNode("div",em,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(c,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",tm,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",nm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":w.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...C)=>e.onDragStart&&e.onDragStart(...C)),onDragend:l[6]||(l[6]=(...C)=>e.onDragEnd&&e.onDragEnd(...C)),onDrop:l[7]||(l[7]=(...C)=>e.onDrop&&e.onDrop(...C)),onDragover:l[8]||(l[8]=(...C)=>e.onDragOver&&e.onDragOver(...C)),onDragleave:l[9]||(l[9]=(...C)=>e.onDragLeave&&e.onDragLeave(...C))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(i,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:C=>e.onMouseOverForOverflowText(C,w.prop,w.label),onMouseleave:C=>e.onMouseLeaveForOverflowText(C,w.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),45,om)]),_:2},1032,["label"]),t.createElementVNode("div",am,[t.createVNode(m,{onClick:C=>e.toTop(w.sortIndex),onMouseover:l[1]||(l[1]=C=>e.onMouseOverForTip(C,e.toTopText)),onMouseleave:l[2]||(l[2]=C=>e.onMouseLeaveForTip(C)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"]),t.createVNode(m,{onClick:C=>e.toBottom(w.sortIndex),onMouseover:l[3]||(l[3]=C=>e.onMouseOverForTip(C,e.toBottomText)),onMouseleave:l[4]||(l[4]=C=>e.onMouseLeaveForTip(C))},{default:t.withCtx(()=>[t.createVNode(f)]),_:1},8,["onClick"])])],40,lm))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const xo=Re(Qh,[["render",rm]]),im={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 sm=class{proxy;constructor(l){this.proxy=l}async load(l,o,n,a,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const s=Fe(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(o,n,a))}};function um(){const e=t.getCurrentInstance();return new sm(e.proxy)}function cm(e,l,o){return{props:{...El,...im},setup(n,a){const r=e,s=t.computed(()=>({[r]:!0})),c=t.ref([]),i=um(),f=async(u,D)=>{try{const A=await i.load("tree",u,D);c.value=A}catch(A){console.error(A)}},m=t.shallowRef({}),d=t.computed(()=>({...m.value,...n.params??{}}));(Array.isArray(n.data)?!0:n.lazy?!1:fe(n.autoLoad))&&t.watch([()=>n.data,()=>d.value],([u,D])=>{u&&f(u,D)},{immediate:!0,deep:!0});let w=null;n.lazy&&(typeof n.load=="function"?w=n.load:w=async(u,D)=>{let A={};n.params&&Object.assign(A,n.params),u&&Object.assign(A,u);const I=await i.load("treeselect",n.data,A,!0);D(I)});const C={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey,disabled:n.disabedKey,...n.props??{}},p=(u={})=>new Promise(async D=>{m.value={...t.toRaw(u??{})},await f(n.data,d.value),D()}),h=function(u,D){if(typeof n.filterNodeMethod=="function")return n.filterNodeMethod(u,D);if(!n.filterKeyword)return!0;const A=`${D[C.label]}`,I=`${u}`;return A.includes(I)},V=t.ref();t.watch(()=>n.filterKeyword,u=>{V.value.filter(u)});const g=u=>(...D)=>{const A=V.value[u];return Reflect.apply(A,V.value,[...D])};return a.expose({loadData:p,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 D={...tt(a.attrs),class:s.value,lazy:n.lazy,props:C,ref:x=>V.value=x};w?D.load=w:D.data=c.value,D["filter-node-method"]=h;const A=[],I=t.h(O.ElTree,D,a.slots);A.push(I);const T={default:()=>A},y={...it(n,El)};return t.h(o,y,T)}}}}const{componentName:fm,create:dm,scope:hm}=se("tree-item"),So=dm(cm(fm,hm,zn)),mn={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 mm(e,l,o,n="value"){for(let a=0;a<l.length;a++){let r=l[a];if(n==="text"){if(gn(e,r)===o)return a}else if(n==="item"){if(Xe(o,r))return a}else if(ei(e,r)===o)return a}return-1}function gn(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Oa(e,l){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?l[e.subTextKey]:l.text}function ei(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function gm(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function pm(e,l,o){return typeof e.itemOptions=="function"?e.itemOptions(l,o):e.itemOptions}let vm=class{proxy;constructor(l){this.proxy=l}async load(l,o,n,a,r,s,c){if(Array.isArray(o)){let f=o;typeof c=="function"&&(f=f.filter(c));let m=(n-1)*a,d=m+a;d>f.length&&(d=f.length);const b=f.slice(m,d);return{totalSize:f.length,page:b}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,r,s]);const i=Fe(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,[o,n,a,r]))}};function ym(){const e=t.getCurrentInstance();return new vm(e.proxy)}function bm(e,l,o,n,a,r,s,c,i,f,m){return{props:{...mn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:b}){const{emitEvent:w}=zl(),{toLocaleRefs:C}=Se.useFoxI18n(l),p=C(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),h=ym(),V=t.ref([]),g=t.ref(0),u=t.ref(""),D=t.shallowRef(null),A=t.computed(()=>{const E={};return d.params&&Object.assign(E,d.params),me(u.value)||(E[`${d.searchKey}`]=u.value),D.value&&Object.assign(E,D.value),E});let I=!0;const T=async(E,B,k)=>{try{if(y.value===!1)return;let K=null;me(u.value)||(K=v=>{const q=gn(d,v);if(typeof q=="string"&&q.includes(u.value))return!0;const L=Oa(d,v);return!!(typeof L=="string"&&L.includes(u.value))});const P=await h.load("actionsheet",E,B,k,A.value,I,K??void 0);I=!1,Array.isArray(P)?(V.value=P,g.value=1,y.value=!1):!Array.isArray(P.page)||P.page.length===0?(console.warn("[FoxUI] can not load more data"),y.value=!1):(Reflect.apply([].push,V.value,P.page),g.value=Math.ceil(V.value.length/d.pageSize),(P.totalSize&&V.value.length>=P.totalSize||k<P.page.length)&&(y.value=!1)),N.value=!1}catch(K){console.error("[FoxUI] ActionSheet load more data fail",K),y.value=!0,g.value=0,V.value=[]}setTimeout(()=>{w("loaded-data")},250)},N=t.ref(!1),y=t.ref(!0),z=async()=>{if(!d.source){N.value=!1;return}await T(d.source,g.value+1,d.pageSize)};t.watch(()=>u.value,(E,B)=>{me(E)&&!me(B)&&z()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([E,B,k])=>{d.source&&z()},{immediate:!0});const x=t.computed(()=>!d.multiple&&d.isAutoBackFill),_=t.ref([]);let G=null;const S=t.ref(d.visible);t.watch(()=>d.visible,E=>{S.value!==E&&(S.value=E),E?G=[..._.value]:G=null});const $=(E,B)=>{const k=[];return Array.isArray(E)||(E=[E]),E.forEach(K=>{let P=mm(d,B,K,d.valueType);P!==-1&&k.push(P)}),Xe(k,_.value)?!1:(_.value=k,!0)};t.watch([()=>d.modelValue,()=>V.value],([E,B],[k,K])=>{if($(E,B)){const v=F();R(v)}},{deep:!0});const F=()=>{const E=[],B=[],k=[];for(let q of _.value){const L=V.value[q];B.push(L);const te=gn(d,L);if(k.push(te),d.valueType==="item")E.push(L);else if(d.valueType==="text")E.push(te);else{const oe=ei(d,L);E.push(oe)}}let K=null,P=null,v=null;return d.multiple?(K=E,P=k,v=B):(K=E[0]??null,P=k[0]??null,v=B[0]??null),{value:K,text:P,item:v}},R=E=>{w("update:modelValue",E.value),w("update:text",E.text),w("change",E.value,E.item,E.text)},Q=()=>{G&&(_.value=G)},W=E=>{const B=_.value.indexOf(E);d.multiple?B===-1?_.value.push(E):_.value.splice(B,1):B===-1?_.value=[E]:_.value=[],(x.value||!d.poppable&&!d.showFooter)&&Y()},j=E=>{S.value=E,w("update:visible",E)},J=()=>{const E=()=>{Q(),j(!1)},B=d.beforeMethod??d.beforeClose;if(typeof B=="function"){const k=B("close");yn(k)?k.then(K=>{K!==!1&&E()}).catch(()=>{E()}):k!==!1&&E()}else E()},Y=()=>{const E=F(),B=()=>{R(E),j(!1)},k=d.beforeMethod??d.beforeClose;if(typeof k=="function"){const K=k("confirm",E.value,E.item,E.text);yn(K)?K.then(P=>{P!==!1&&B()}).catch(()=>{B()}):K!==!1&&B()}else B()},H=()=>{y.value=!0,g.value=0,V.value=[],d.source&&z()},U=()=>{let E=p.title.value??"";b.title&&(E=b.title());const B=t.h("view",{class:["fox-actionsheet__header-title"]},[E]),k=t.h(i,{class:["fox-actionsheet__header-icon"],onClick:J});return t.h("view",{class:["fox-actionsheet__header"]},[B,k])},X=()=>{let E=null;if(b.search)E=b.search();else{const B={onSearch:H,placeholder:p.seachPlaceholder.value,disabled:d.disabled,modelValue:u.value,"onUpdate:modelValue":k=>{u.value=k}};E=t.h(r,B,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[E])},M=(E,B,k,K,P)=>{if(b.optionLabel)return b.optionLabel({text:E,checked:B,disabled:k,subText:K,item:P});const v=[],q=t.h("view",{class:"fox-actionsheet__list-item-text"},[E]);if(v.push(q),K){const L=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[K]);v.push(L)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},v)},ee=(E,B,k,K)=>{if(b.optionIcon)return b.optionIcon({checked:E,disabled:B,iconSize:k,item:K});if(E){if(b.checkedIcon)return b.checkedIcon({disabled:B,item:K});{const P=d.checkedIcon??c;return t.h(P,{width:k,height:k,class:["fox-actionsheet__list-item-icon"]})}}else{if(b.icon)return b.icon({disabled:B,item:K});{const P=d.icon??s;return t.h(P,{width:k,height:k,class:["fox-actionsheet__list-item-icon"]})}}},ne=()=>{const E=[];for(let B=0;B<V.value.length;B++){const k=V.value[B],K=gn(d,k),P=Oa(d,k),v=["fox-actionsheet__list-item"],q={};let L=gm(d,k),te=d.iconSize?ye(d.iconSize):null;const oe=pm(d,k,B);oe&&(L=L||oe.disabled,oe.class&&v.push(oe.class),oe.style&&Object.assign(q,oe.style)),L=!!(d.disabled||L);const re=_.value.includes(B);L&&v.push("is-disabled"),re&&v.push("is-checked");const de={class:v,style:q,key:`${B}`,onClick:()=>{L||W(B)}};let ge=[];if(b.option)ge.push(b.option({item:k,checked:re,disabled:L}));else{const Ze=M(K,re,L,P,k);ge.push(Ze);const He=ee(re,L,te,k);ge.push(He)}const Ce=t.h("view",de,ge);E.push(Ce)}return E},Z=()=>{let E=[];if(b.buttons)E=b.buttons();else{const k=t.h(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Y,disabled:d.disabled},{default:()=>p.confirmText.value});E.push(k)}return t.h("view",{class:"fox-actionsheet__footer"},[E])};return be({search:async(E=null,B=!0)=>{D.value=E&&t.toRaw(E),t.triggerRef(D),B&&(y.value=!0,g.value=0,V.value=[]),t.nextTick(()=>{z()})},clear:()=>{y.value=!0,g.value=0,V.value=[]},confirm:()=>{Y()},cancel:()=>{J()}}),()=>{const E=[];if(d.showHeader){const te=U();E.push(te)}if(d.showSearchbar){const te=X();E.push(te)}let B=null;if(b.content)B=b.content();else{const te=ne(),oe={hasMore:y.value,loadText:p.loadText.value,noMoreText:p.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":re=>{N.value=re},onLoadMore:z};B=t.h(n,oe,{default:()=>te})}const k={};d.optionsHeight&&(k.height=d.optionsHeight);const K={"fox-actionsheet__list":!0};d.poppable||(K["fox-actionsheet__list--inner"]=!0);const P=t.h("view",{class:K,style:k},[B]);if(E.push(P),d.showFooter&&!x.value){const te=Z();E.push(te)}const v=t.h("view",{class:"fox-actionsheet"},E);if(!d.poppable)return v;const q=["fox-actionsheet__popup"];d.popClass&&q.push(d.popClass);const L={popClass:q.join(" "),visible:S.value,closeable:!1,"onUpdate:visible":j,position:d.position,round:"round",onClickOverlay:J,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(o,L,{default:()=>v})}}}}const wm=/scroll|auto|overlay/i,ti=window;function xm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Sm(e,l=ti){let o=e;for(;o&&o!==l&&xm(o);){const{overflowY:n}=window.getComputedStyle(o);if(wm.test(n))return o;o=o.parentNode}return l}function ni(e,l=ti){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=Sm(e.value,l))}),o}const li=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Cm={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 Tm(e,l,o){return{props:{...Cm},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=Se.useFoxI18n(l),c=s(n,["pullText","loadText","noMoreText"]),i=t.ref(),f=ni(i),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),b=g=>g?g.offsetTop+b(g.offsetParent):0,w=()=>{let g=0,u=0,D="down";if(f.value==window){const A=li();i.value&&(g=b(i.value)+i.value.offsetHeight-A-window.innerHeight),u=A}else{const{scrollHeight:A,clientHeight:I,scrollTop:T}=f.value;g=A-I-T,u=T}return m.beforeScrollTop>u?D="up":D="down",m.beforeScrollTop=u,a("scroll-change",u),g<=n.threshold&&D=="down"},C=()=>{Fl(()=>{if(!w()||!n.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},p=()=>{f.value&&f.value.addEventListener("scroll",C,n.useCapture)},h=()=>{f.value&&f.value.removeEventListener("scroll",C,n.useCapture)};t.onMounted(()=>{p(),n.immediate&&C()}),t.onUnmounted(()=>{h()});const V=t.ref(!1);return t.onActivated(()=>{V.value&&(V.value=!1,p())}),t.onDeactivated(()=>{V.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?.()]),D=[];if(m.isInfiniting){let N=r?.loading?.()??null;if(!N){let x=r?.loadingIcon?.()??null;if(!x){const S={class:["fox-infinite__bottom-box__img"]};x=t.h(o,S)}const _={class:"fox-infinite__bottom-box__text"},G=t.h("view",_,[c.loadText.value]);N=[x,G]}const y={class:"fox-infinite__bottom-box"},z=t.h("view",y,N);D.push(z)}else if(!n.hasMore){let N=r?.finished?.()??null;if(!N){const y={class:"fox-infinite__bottom-tips"};N=t.h("view",y,[c.noMoreText.value]),D.push(N)}}const A={class:"fox-infinite__bottom"},I=t.h("view",A,D),T={class:d.value,ref:i};return t.h("view",T,[u,I])}}}}const{componentName:km,create:$m,scope:Dm}=se("infinite-loading"),Xn=$m(Tm(km,Dm,Yn)),Nm={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"}},Em=(e,l,o)=>({props:{...Nm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:a}){const{emitEvent:r}=zl(),{toLocaleRefs:s}=Se.useFoxI18n(l),c=s(n,["placeholder"]),i=t.reactive({active:!1}),f=t.computed(()=>({background:n.background})),m=t.computed(()=>({background:n.inputBackground})),d=y=>{let x=y.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),r("update:modelValue",x,y),r("change",x,y)},b=t.ref({}),w=y=>{let x=y.target.value;i.active=!0,b.value=n.focusStyle,r("focus",x,y)},C=y=>{setTimeout(()=>{i.active=!1},0);let x=y.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),b.value={},r("blur",x,y)},p=y=>{r("update:modelValue","",y),r("change","",y),r("clear","")},h=t.computed(()=>String(n.modelValue).length>0),V=t.computed(()=>{const y={};return h.value||(y.display="none"),y}),g=()=>{r("search",n.modelValue)},u=y=>{r("keyup-input",y),y.key.toLocaleUpperCase()==="ENTER"&&g()},D=y=>{r("click-input",y)},A=y=>{r("click-left-icon",n.modelValue,y)},I=t.computed(()=>({textAlign:n.inputAlign})),T=t.ref(null);t.onMounted(()=>{n.autofocus&&T.value.focus()});const N=()=>{const y=[];if(a.leftin){const S={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},$=t.h("view",S,[a.leftin()]);y.push($)}const z={ref:T,class:[`${e}__input-inner`],style:I.value,type:n.inputType,maxlengt:n.maxLength,placeholder:c.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:D,onInput:d,onFocus:w,onBlur:C,onkeyup:u},x=t.h("input",z);y.push(x);const _=[];if(n.clearable){const S={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:V.value,onClick:p},$=a?.clear?.()??n.clearIcon??o,F=t.h("view",S,[t.h($)]);_.push(F)}if(a.rightin){const S={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},$=t.h("view",S,[a.rightin()]);_.push($)}if(_.length>0){const S={class:`${e}__input-inner-right`},$=t.h("view",S,_);y.push($)}const G={class:[`${e}__search-input`,`${n.shape}`],style:{...m.value,...b.value}};return t.h("view",G,y)};return()=>{const y=[];if(n.label){const _={class:`${e}__search-label`},G=t.h("span",_,[n.label]);y.push(G)}if(a.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},G=t.h("view",_,[a.leftout()]);y.push(G)}const z=N();if(y.push(z),a.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},G=t.h("view",_,[a.rightout()]);y.push(G)}const x={class:`${e}`,style:f.value};return t.h("view",x,y)}}}),{componentName:Pm,create:Im,scope:Vm}=se("searchbar"),Zn=Im(Em(Pm,Vm,Pe.CircleClose)),{componentName:Om,create:Am,scope:Fm}=se("actionsheet-pane"),Qn=Am(bm(Om,Fm,wt,Xn,O.ElButton,Zn,af,tf,Ur,Pc)),Aa={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 Mm(e,l,o,n,a){return{props:{...Te,...Ve,...Aa,...mn},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}=Ne({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:b}=Se.useFoxI18n(l),w=b(r,["placeholder"]),C=t.ref(!1),p=pe(r,"modelValue",null,d),h=t.ref(""),V=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})),D=Ae(t.computed(()=>r.textAlign),"textAlign"),A=t.computed(()=>{const R={};return D.value&&(R["text-align"]=D.value),R}),I=t.ref(!1),T=()=>{I.value=!0},N=R=>{I.value=R},y=R=>{p.value=R,d("update:modelValue",R)},z=(R,Q)=>{d("change",R,Q)},x=R=>{let W=R.target.value;C.value=!0,d("focus",W,R)},_=R=>{setTimeout(()=>{C.value=!1},0);let W=R.target.value;r.maxLength&&W.length>Number(r.maxLength)&&(W=W.slice(0,Number(r.maxLength))),d("blur",W,R)},G=R=>{h.value=R,d("update:text",R)},S=t.computed(()=>at(r.unit)>0),$=t.ref(),F=t.ref(null);return be({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()},search:R=>{F.value&&F.value.search(R)},clear:()=>{F.value&&F.value.clear},confirm:R=>{F.value&&F.value.confirm()},cancel:()=>{F.value&&F.value.cancel()},setDisabled:R=>{c.value=R},setReadonly:R=>{f.value=R}}),()=>{const R={ref:$,class:u.value,style:A.value,type:"text",maxlength:r.maxLength,placeholder:w.placeholder.value,readonly:!0,value:V.value,onClick:T,onFocus:x,onBlur:_},Q={};s.slots.prepend&&(Q.prepend=s.slots.prepend),s.slots.append&&(Q.append=s.slots.append),s.slots.prefix&&(Q.prefix=s.slots.prefix),s.slots.suffix?Q.suffix=s.slots.suffix:S.value?Q.suffix=()=>[r.unit]:Q.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Pe.ArrowDown)});const W=[],j=t.h(O.ElInput,R,Q);W.push(j);const J={default:()=>W};J.label=s.slots.default,J.prepend=s.slots.prepend,J.append=s.slots.append,J.fixedPreTip=s.slots.fixedPreTip,J.fixedTip=s.slots.fixedTip;const Y=it(r,mn);Y.ref=F,Y.class=r.actionsheetProps,Y.disabled=i.value||m.value,Y.visible=I.value,Y["onUpdate:visible"]=N,Y.modelValue=p.value,Y["onUpdate:modelValue"]=y,Y.text=h.value,Y["onUpdate:text"]=G,Y.onChange=z,Y.poppable=!0;const H={title:s.slots.title,search:s.slots.search,option:s.slots.option,optionLabel:s.slots.optionLabel,optionIcon:s.slots.optionIcon,buttons:s.slots.buttons},U=t.h(n,Y,H);J.hide=()=>[U];const M={...Ie(r,Aa,mn)};return r.prop&&(M.prop=`${r.prop}_item`),t.h(o,M,J)}}}}const{componentName:Bm,create:Rm,scope:Lm}=se("actionsheet-item"),Co=Rm(Mm(Bm,Lm,ke,Qn)),oi={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}},To={...oo,...oi,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 _m(e){return e===window}const ko=e=>{const l=t.unref(e);if(_m(l)){const o=l.innerWidth,n=l.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return l&&l.getBoundingClientRect?l.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Fa=10;function ai(e,l){return e>l&&e>Fa?"horizontal":l>e&&l>Fa?"vertical":""}function Yt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ut(){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",o=()=>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=ai(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:o,state:e}}function ri(){const e=t.ref(0),l=t.ref(0),o=t.ref(0),n=t.ref(0),a=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",b=()=>m.value==="horizontal",w=()=>{s.value=0,c.value=0,i.value=0,f.value=0,m.value="",o.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,a.value=u.clientX,r.value=u.clientY}else{const g=h;s.value=g.clientX-e.value,c.value=g.clientY-l.value,a.value=g.clientX,r.value=g.clientY}i.value=Math.abs(s.value),f.value=Math.abs(c.value),n.value=Date.now()-o.value,m.value||(m.value=ai(i.value,f.value))}),start:(h=>{if(w(),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}o.value=Date.now()}),reset:w,startX:e,startY:l,startTime:o,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:c,offsetX:i,offsetY:f,direction:m,isVertical:d,isHorizontal:b}}let ii=36;function qm(){return ii}function zm(e){ii=e}function nt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Vl(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]:l.children??null}function jm(e,l,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(l[e.childrenKey]=o),l.children=o}function bt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Ma(e,l){return typeof e.itemOptions=="function"?e.columnOptions(l):e.columnOptions}let Hm=class{proxy;constructor(l){this.proxy=l}async load(l,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Fe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(o,n))}};function Km(){const e=t.getCurrentInstance();return new Hm(e.proxy)}function Ba(e,l,o){const n=nt(e,l),a=nt(e,o);if(n!==a)return!1;const r=bt(e,l),s=bt(e,o);return r===s}function Wm(e,l,o,n){if(o.length==0)return[];Array.isArray(l)||(l=[l]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<o.length;s++){const c=l[s];let f=o[s].findIndex(m=>{if(r==="text")return nt(e,m)===c;if(r==="value"){let d=bt(e,m);return d==null&&(d=nt(e,m)),d===c}else if(r==="item")return Ba(e,m,c)});if(f==-1)break;a.push(f)}else{let s=o[0];for(let c=0;c<l.length;c++){const i=l[c];let f=s.findIndex(d=>{if(r==="text")return nt(e,d)===i;if(r==="value"){let b=bt(e,d);return b==null&&(b=nt(e,d)),b===i}else if(r==="item")return Ba(e,d,i)});if(f==-1)break;a.push(f);const m=Vl(e,s[f]);if(!Array.isArray(m))break;s=m}}return a}function Ra(e,l,o,n){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<l.length&&s<o.length;s++){const c=o[s];let i=l[s];i<0&&i>=c.length&&(i=0);const f=c[i],m=nt(e,f);if(a.texts.push(m),a.items.push(f),r==="text")a.values.push(m);else if(r==="value"){let d=bt(e,f);d==null&&(d=m),a.values.push(d)}else a.values.push(f)}else{let s=o[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=nt(e,f),d=Object.assign({},f);if(d.children=null,a.texts.push(m),a.items.push(d),r==="text")a.values.push(m);else if(r==="value"){let b=bt(e,f);b==null&&(b=m),a.values.push(b)}else a.values.push(d);if(!Array.isArray(f.children))break;s=f.children}}return a}function La(e){return{text:e,value:e}}const Ym=15,Um=300,Gm=200,{create:Xm}=se("picker-column");function Zm(e){e.stopPropagation()}function Qm(e,l){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Zm(e)}const Jm=Xm({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},...oi},emits:["click","change","update:modelValue"],setup(e,{emit:l}){const o=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${ve(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=T=>T>=d.currIndex+8||T<=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=T=>`transform: rotate3d(1, 0, 0, ${-d.rotation*T}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}),b=T=>nt(e,T),w=T=>bt(e,T),C=ri(),p=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},h=(T,N=!1,y=!1)=>{if(d.currIndex=T,N){const z=()=>{d.moving=!1,l("update:modelValue",T),l("change",T)};y?d.transitionEndTrigger=z:z()}},V=(T,N,y)=>{let z=T+d.startDistance;if(N==="end"){const x=-(e.source.length-1)*e.itemHeight;z<x&&(z=x),z>0&&(z=0);let _=Math.abs(Math.round(-z/e.itemHeight));const G=-_*e.itemHeight,S=`${(_+1)*d.rotation}deg`,$=y?y>0:!1;h(_,!0,$),g(G,N,y,S)}else{let x=(-z/e.itemHeight+1)*d.rotation;const _=(e.source.length+1)*d.rotation,G=0;if(x=Math.min(Math.max(x,G),_),e.threeDimensional&&(x<G||x>_))return;g(z,null,void 0,`${x}deg`)}},g=(T=0,N,y=Gm,z)=>{N==="end"?d.scrollTime=y:d.scrollTime=0,d.deg=z,d.scrollDistance=T},u=(T,N)=>(T=Math.abs(T/N)/.003*(T<0?-1:1),T),D=T=>{e.readonly||(d.startDistance=d.scrollDistance,C.start(T),d.transitionEndTrigger=null)},A=T=>{e.readonly||(d.moving=!0,C.move(T),C.isVertical()&&(d.moving=!0,Qm(T)),V(C.deltaY.value,"",0))},I=()=>{if(e.readonly)return;const T=C.deltaY.value,N=C.duration.value;if(N<Um&&Math.abs(T)>Ym){const z=u(T,N);V(z,"end",e.swipeDuration)}else V(T,"end",0)};return t.watch(()=>e.modelValue,T=>{const N=d.currIndex-T;if(N!==0){d.currIndex=T,d.startDistance=d.scrollDistance;const y=N*e.itemHeight;V(y,"",0)}}),t.watch(()=>e.source,T=>{if(d.currIndex>=T.length){const z=(T.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,V(z,"end",0)}}),t.watch(()=>e.visible,T=>{T===!1&&p()}),t.onMounted(()=>{const T=-e.modelValue*e.itemHeight;V(T)}),{classes:o,styles:n,contentClasses:a,itemText:b,itemValue:w,...t.toRefs(d),roller:m,getItemText:nt,onTouchStart:D,onTouchMove:A,onTouchEnd:I,isHidden:s,setRollerStyle:i,touchRollerStyle:c,touchTileStyle:f,stopMomentum:p}}}),eg={key:1,class:"fox-picker__item-tile"};function tg(e,l,o,n,a,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",eg,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const ng=Re(Jm,[["render",tg]]),{create:lg,componentName:og,scope:ag}=se("picker"),rg=lg({components:{PickerColumn:ng,Popup:wt},props:{...To},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:l}){const{toLocaleRefs:o,t:n}=Se.useFoxI18n(ag),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(qm());t.watch(()=>e.visible,x=>{x&&s.value<=0&&setTimeout(()=>{if(r.value){const _=ko(r.value);s.value=_.height,zm(s.value)}},50)});const c=t.computed(()=>({[og]:!0})),i=Km(),f=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([x,_])=>{if(x){let G=await i.load("select",x,_);if(G.length>0){let S=G[0];if(Array.isArray(S)){if(typeof S[0]=="string"){let $=G,F=[];$.forEach(R=>{let Q=R.map(W=>La(W));F.push(Q)}),m.value=F}else m.value=G;f.value="multipleColumn"}else if(typeof S=="string"){let $=G,F=[],R=$.map(Q=>La(Q));F.push(R),m.value=F,f.value="singleColumn"}else{const $=Vl(e,S);Array.isArray($)?(f.value="cascade",m.value=[G]):(f.value="singleColumn",m.value=[G])}}else m.value=[]}},{immediate:!0});const d=t.ref([]),b=t.ref(e.modelValue),w=t.ref([]),C=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([x,_])=>{let G=Wm(e,x,_,f.value);if(!Xe(G,C.value)){C.value=G;let S=Ra(e,G,_,f.value);S&&(d.value=S.texts,l("update:text",d.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,x=>{p.value=x});const h=x=>{let _=Ma(e,x);return je(_)?_.defaultIndex??0:0},V=x=>{if(e.readonly===!0)return!0;let _=Ma(e,x);return je(_)?_.readonly??!1:!1},g=(x,_)=>{let G=C.value;G[x]=_;for(let $=0;$<x;$++)G[$]==null&&(G[$]=h($));if(f.value==="cascade")for(let $=x+1;$<D.value.length;$++){let F=h($);$<G.length?G[$]=F:G.push(F)}else for(let $=G.length;$<D.value.length;$++){let F=h($);G.push(F)}C.value=G;let S=Ra(e,G,m.value,f.value);S&&(d.value=S.texts,b.value=S.values,w.value=S.items)},u=x=>x<C.value.length?C.value[x]:h(x),D=t.computed(()=>{if(m.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return m.value;let x=[],_=0,G=m.value[0],S=0;for(;;){let $=G.map(Q=>{let W=Object.assign({},Q);return jm(e,W,null),W});x.push($),_>=C.value.length?S=0:S=C.value[_],(S<0||S>=G.length)&&(S=0);let F=G[S];const R=Vl(e,F);if(!Array.isArray(R))break;G=R,_++}return x}),A=t.computed(()=>ve(+e.visibleItemCount-1)/2*s.value),I=(x=!1)=>{if(e.readonly===!0){x&&l("update:visible",!1);return}let _=m.value.length-1;for(;_>=0&&!(C.value[_]===null||C.value[_]===void 0);_--);if(_>=0&&g(_,0),f.value==="singleColumn"){let G=b.value.length>0?b.value[0]:"",S=w.value.length>0?w.value[0]:null;l("update:modelValue",G),l("update:text",d.value),l("change",G,S),x&&(l("confirm",G),l("update:visible",!1))}else l("update:modelValue",b.value),l("update:text",d.value),l("change",b.value,w.value),x&&(l("confirm",b.value),l("update:visible",!1))};return{...a,pickerLineRef:r,classes:c,columns:D,dataType:f,show:p,itemHeight:s,top:A,isReadonly:V,getIndex:u,change:(x,_)=>{if(g(x,_),e.isAutoBackFill){const G=!p.value;I(G)}},close:()=>{l("close"),l("update:visible",!1)},confirm:()=>{I(!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)}}}}),ig={class:"fox-picker__bar"},sg={class:"fox-picker__title"},ug={class:"fox-picker__bar__action"},cg={class:"fox-picker__column"};function fg(e,l,o,n,a,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",ig,[t.createElementVNode("view",sg,t.toDisplayString(e.title),1),t.createElementVNode("view",ug,[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",cg,[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 Gt=Re(rg,[["render",fg]]),_a={...To,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 dg(e,l,o){return{props:{...Te,...Ve,..._a},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(n,a){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}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},n.prop??a.attrs.name),{toLocaleRefs:m}=Se.useFoxI18n(l),d=m(n,["placeholder"]),b=t.ref(!1),w=e,C=t.computed(()=>({[w]:!0})),p=Ae(t.computed(()=>n.textAlign),"textAlign"),h=t.computed(()=>({textAlign:p.value??"right"})),V=pe(n,"modelValue",null,f),g=t.ref([]),u=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),D=t.ref(!1),A=()=>{D.value=!0},I=R=>{D.value=R},T=R=>{V.value=R,f("update:modelValue",R)},N=R=>{g.value=R,Array.isArray(R)&&R.length===0?f("update:text",R[0]):f("update:text",R)},y=(R,Q)=>{f("change",R,Q)};let z=pe(n,"hintText"),x=t.ref(!1);const _=R=>{let W=R.target.value;b.value=!0,me(z.value)||(x.value=!0),f("focus",W,R)},G=R=>{setTimeout(()=>{x.value&&(x.value=!1),b.value=!1},0);let W=R.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),D.value?setTimeout(()=>{f("blur",W,R)},50):f("blur",W,R)},S=()=>{f("clear","")},$=t.computed(()=>at(n.unit)>0),F=t.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()},setDisabled:R=>{r.value=R},setReadonly:R=>{c.value=R}}),()=>{const R={class:C.value,style:h.value,type:"text",maxlength:n.maxLength,placeholder:d.placeholder.value,clearable:fe(n.clearable),readonly:!0,value:u.value,onClick:A,onFocus:_,onBlur:G},Q={};a.slots.prepend&&(Q.prepend=a.slots.prepend),a.slots.append&&(Q.append=a.slots.append),a.slots.prefix&&(Q.prefix=a.slots.prefix),a.slots.suffix?Q.suffix=a.slots.suffix:$.value?Q.suffix=()=>[n.unit]:Q.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Pe.ArrowDown)});const W=[],j=t.h(O.ElInput,R,Q);W.push(j);const J={default:()=>W};J.label=a.slots.default,J.fixedPreTip=a.slots.fixedPreTip,J.fixedTip=a.slots.fixedTip;const Y=it(n,To);Y.disabled=!1,Y.readonly=s.value||i.value,Y.visible=D.value,Y["onUpdate:visible"]=I,Y.modelValue=V.value,Y["onUpdate:modelValue"]=T,Y.text=g.value,Y["onUpdate:text"]=N,Y.onClear=S,Y.onChange=y;const H=t.h(Gt,Y);J.hide=()=>[H];const X={...Ie(n,_a),hintText:z.value,hintVisible:x.value};return n.prop&&(X.prop=`${n.prop}_item`),t.h(o,X,J)}}}}const{componentName:hg,create:mg,scope:gg}=se("picker-item"),$o=mg(dg(hg,gg,ke)),Ol={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}},qa=(e,l)=>l[e.textKey],Bt=(e,l)=>l[e.valueKey],pg=(e,l)=>l[e.visibleKey],za=(e,l)=>l[e.disabledKey],vg=(e,l)=>{const o=l[e.doitKey];return fe(o)},yg=(e,l)=>{const o=l[e.numKey];return o==null?null:ve(l[o])},ja=(e,l,o)=>{const n=e.itemOptions;return typeof n=="function"?n(l,o):n||null};function bg(e,l,o,n,a,r=!1){return{props:{...Ol},emits:["update:modelValue","change","click"],setup(s,{slots:c,emit:i}){const f=t.computed(()=>{const P={};return P[`${e}`]=!0,P}),m=t.computed(()=>{const P={};return P[`${e}__titles`]=!0,P[`${s.direction}`]=!0,s.align==="left"&&(P.left=!0),s.scroll===!0&&(P.scrollable=!0),s.shape&&(P[`${s.shape}`]=!0),s.showScrollArrow?(M.value===!0&&(P["has-left-scroll-arrow "]=!0),ee.value===!0&&(P["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(P["has-navigation"]=!0),P}),d=t.computed(()=>({})),b=t.computed(()=>{if(!s.gutter)return 0;const P=ye(s.gutter);return P<=0?0:P}),w=t.ref(s.modelValue);t.watch(()=>s.modelValue,P=>{w.value!==P&&(w.value=P,W(!1))});const C=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),p=t.computed(()=>{const P={};return V.value||(P.display="none"),P}),h=t.ref(),V=t.ref(!1),g=()=>{const P=!V.value;u(P)},u=P=>{const v=P;v?(V.value=v,setTimeout(()=>{C.value["fox-tabs-bar__popup--show"]=!0,C.value["fox-tabs-bar__popup--hide"]=!1},0)):(C.value["fox-tabs-bar__popup--show"]=!1,C.value["fox-tabs-bar__popup--hide"]=!0,h.value?h.value.addEventListener("transitionend",()=>{V.value=!1},{once:!0}):setTimeout(()=>{V.value=!1},0))},D=t.ref(),A=t.ref([]),I=(P,v)=>{A.value[v]=P},T=P=>v=>{I(v,P)},N=(P,v)=>{const q=D.value,L=A.value;if(!q||!L||!L[P])return;const te=L[P];let oe=0;s.direction==="vertical"?oe=te.offsetTop-(q.offsetHeight-te.offsetHeight)/2:oe=te.offsetLeft-(q.offsetWidth-te.offsetWidth)/2,y(q,oe,v?0:.3,s.direction)},y=(P,v,q,L)=>{let te=0;const oe=L==="horizontal"?P.scrollLeft:P.scrollTop,re=q===0?1:Math.round(q*1e3/16);function de(){L==="horizontal"?P.scrollLeft+=(v-oe)/re:P.scrollTop+=(v-oe)/re,++te<re&&Rl(de)}de()},z=(P,v)=>{const q=Bt(s,P),L={};return L[`${e}__titles-item`]=!0,L.disabled=za(s,P),L.active=q===w.value,s.shape&&(L[`${s.shape}`]=!0),s.ellipsis&&(L.ellipsis=!0),v&&(v.class&&(L[`${v.class}`]=!0),v.disabled===!0&&(L.disabled=v.disabled)),L},x=(P,v)=>{const q={};if(b.value>0){const L=Math.abs(b.value/2);s.direction==="vertical"?(q["margin-top"]=`${L}px`,q["margin-bottom"]=`${L}px`):(q["margin-left"]=`${L}px`,q["margin-right"]=`${L}px`)}return v&&v.style&&Object.assign(q,v.style),q},_=(P,v)=>`${Bt(s,P)??v}`,G=(P,v)=>{const q=Bt(s,P),L={};L[`${e}__popup-item`]=!0,L.disabled=za(s,P),L.active=q===w.value,s.shape&&(L[`${s.shape}`]=!0);const te=ja(s,P,v);return te&&te.disabled===!0&&(L.disabled=te.disabled),L},S=t.computed(()=>(s.data??[]).filter(v=>pg(s,v)!==!1)),$=(P,v)=>{const q=Bt(s,P);if(i("click",P,v),w.value==q)return;const L=()=>{w.value=q,s.scroll&&N(v,!1),i("update:modelValue",q),i("change",P,v)};if(typeof s.beforeChange=="function"){const te=s.beforeChange(P,v);yn(te)?te.then(oe=>{oe!==!1&&L()}).catch(()=>{L()}):te!==!1&&L()}else L()},F=(P,v)=>function(){$(P,v)},R=(P,v)=>{$(P,v),u(!1)},Q=(P,v)=>function(){R(P,v)},W=P=>{if(!Array.isArray(s.data)||!s.scroll)return;X()&&B();const v=s.data.findIndex(q=>Bt(s,q)===w.value);v!==-1&&N(v,P)},j=()=>{X()||k()};t.watch(()=>s.data,()=>{setTimeout(W,0)}),t.onMounted(()=>{W(!0)}),t.onBeforeUnmount(()=>{j()});const J=(P,v)=>{if(c.item)return c.item({item:P,index:v});const q=ja(s,P,v),L=[];if(c.text){const de=c.text({item:P,index:v});L.push(de)}else{const de=[];if(q?.doit===!0||vg(s,P)){const He={class:[`${e}__titles-item-tip`,"doit"]},Le=t.h("view",He);de.push(Le)}const ge=q?.num??yg(s,P);if(ge){let He="";const Le=ve(ge);Le>=100?He="99+":He=`${Le}`;const xt={class:[`${e}__titles-item-tip`,"num"]},tl=t.h("view",xt,[He]);de.push(tl)}const Ce={class:`${e}__titles-item-text`};de.push(qa(s,P));const Ze=t.h("view",Ce,de);L.push(Ze)}const te={class:`${e}__titles-item-line`},oe=t.h("view",te);L.push(oe);const re={ref:T(v),class:z(P,q),style:x(P,q),key:_(P,v),onClick:F(P,v)};return t.h("view",re,L)},Y=()=>{const P=c.default?c.default():[];if(P.length===0)for(let q=0;q<S.value.length;q++){const L=S.value[q],te=J(L,q);P.push(te)}const v={ref:D,class:m.value,style:d.value};return t.h("view",v,P)},H=()=>{let P=null;c.navigation?P=c.navigation():P=t.h(o);const v={class:`${e}__navigation`,onClick:g};return t.h("view",v,[P])},U=()=>{const P=[];for(let q=0;q<S.value.length;q++){const L=S.value[q];let te=null;c.popupItem?te=c.popupItem({item:L,index:q}):te=qa(s,L);const oe={class:G(L,q),key:_(L,q),onClick:Q(L,q)},re=t.h("view",oe,[te]);P.push(re)}const v={class:C.value,style:p.value};return t.h("view",v,P)},X=()=>s.showScrollArrow&&s.direction=="horizontal",M=t.ref(!1),ee=t.ref(!1),ne=P=>{const v=D.value,q=A.value;if(!(!v||!q))if(P==="left"){const L=v.scrollLeft;let te=L;for(let oe=0;oe<q.length;oe++){const re=q[oe].offsetLeft;if(L-re<0)break;te=re}y(v,te,.3,"horizontal")}else{const L=v.scrollLeft;let te=L,oe=v.offsetWidth;for(let re=q.length-1;re>=0;re--){const de=q[re].offsetLeft+q[re].offsetWidth;if(de-L<v.offsetWidth){te+=oe-de;break}oe=de}y(v,te,.3,"horizontal")}},Z=Ue(()=>{const P=D.value;if(!P)return;let v=P.scrollLeft>0;v!==M.value&&(M.value=v);let q=P.scrollWidth-P.scrollLeft>P.offsetWidth;q!==ee.value&&(ee.value=q)},50),E=P=>{Z()},B=()=>{const P=D.value;P&&(Z(),P.addEventListener("scroll",E))},k=()=>{const P=D.value;P&&P.removeEventListener("scroll",E)},K=P=>{if(P==="left"&&M.value!==!0||P==="right"&&ee.value!==!0)return null;let v=null;P==="left"?c.leftArrow?v=c.leftArrow():v=t.h(n):c.rightArrow?v=c.rightArrow():v=t.h(a);const q={class:[`${e}__scroll-arrow`,P],onClick:()=>{ne(P)}};return t.h("view",q,[v])};return()=>{const P=[],v=Y();if(P.push(v),X()){const L=K("left");L&&P.push(L);const te=K("right");te&&P.push(te)}else if(s.showQuickNavigation){const L=H();P.push(L);const te=U();P.push(te)}const q={class:f.value};return t.h("view",q,P)}}}}const{create:wg,componentName:xg,scope:Sg}=se("tabs-bar"),Xt=wg(bg(xg,Sg,Rc,Kc,Ac,!1)),si=Symbol("TabsStatesKey"),Al={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]}},Cg=15,Tg=300,kg=200;function $g(e,l,o=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*o}function Ha(e,l=0,o,n,a=kg){o==="end"?e.style.transition=`transform ${a}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 Dg=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,o,n,a=1){this.onStart=l,this.onMove=o,this.onEnd=n,this.momentumReduceRatio=a,this.isTouch=Yt()}open(l){this.el=l;const o=Ut(),n=(a,r,s)=>{const c={delta:a,direction:r,type:s};this.onMove(c)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=a=>{if(this.moving)return;o.start(a),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=a=>{if(!this.moving)return;o.move(a);let r=0;if(this.direction==="horizontal"){if(o.isVertical())return;r=o.state.deltaX}else{if(o.isHorizontal())return;r=o.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 a=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}a=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}a=o.state.deltaY}const r=o.state.duration;r<Tg&&Math.abs(a)>Cg?(a=$g(a,r,this.momentumReduceRatio),n(a,this.direction,"end")):n(a,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 Ng(e,l,o,n=1){return new Dg(e,l,o,n)}function Eg(e,l,o=!1){return{props:{...Al},emits:["update:modelValue","change"],setup(n,{emit:a,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:T=>{const N={name:T};c.current.value===T&&(N.loaded=!0),s.value.push(N),t.triggerRef(s)},remove:T=>{const N=s.value.findIndex(y=>y.name===T);N!==-1&&s.value.splice(N,1)},isLoaded:T=>{if(!n.lazy)return!0;const N=s.value.findIndex(y=>y.name===T);return N!==-1?c.current.value?s.value[N].loaded??!1:N===0:!1}};t.provide(si,c);const i=T=>{const N=s.value.findIndex(y=>y.name===T);N!==-1&&(s.value[N].loaded=!0,t.triggerRef(s))};t.watch([()=>n.modelValue,()=>n.direction],([T,N])=>{c.current.value!==T&&(c.current.value=T??"",i(T??"")),c.direction.value!==N&&(c.direction.value=N)});const f=t.ref(null),m=t.ref(null),d=t.computed(()=>({[e]:!0,[`${n.direction}`]:!0})),b=t.computed(()=>{const T={};if(n.width){const N=we(n.width);N&&(T.width=N)}if(n.height){const N=we(n.height);N&&(T.height=N)}return T});let w=!0;const C=t.computed(()=>{const T={},N=s.value.length;if(N<=0)return T;const y=s.value.findIndex(z=>z.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(T.height=`${N*c.tabHeight.value}px`,y!==-1&&(T.transform=`translate(0, -${y*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(T.width=`${N*c.tabWidth.value}px`,y!==-1&&(T.transform=`translate(-${y*c.tabWidth.value}px, 0)`)),w&&(w=!1,T.transition="transform 0s ease"),T}),p={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=T=>{const N=s.value.length,y=s.value.findIndex(z=>z.name===c.current.value);p.moved=0,T.direction==="vertical"?(p.min=-1*(c.tabHeight.value*(N-1)+c.tabHeight.value/4),p.max=c.tabHeight.value/4,p.start=-y*c.tabHeight.value,p.itemDistance=c.tabHeight.value):(p.min=-1*(c.tabWidth.value*(N-1)+c.tabWidth.value/4),p.max=c.tabWidth.value/4,p.start=-y*c.tabWidth.value,p.itemDistance=c.tabWidth.value)},V=T=>{const N=m.value;if(!N)return;let y=p.start+T.delta;if(y>p.max?y=p.max:y<p.min&&(y=p.min),T.type==="move")Ha(N,y,"move",T.direction,300);else if(T.type==="end"){let z=Math.floor(Math.abs(y)*1/p.itemDistance);const x=Math.abs(y)%p.itemDistance;p.start>y?x>=p.itemDistance*p.triggerAutoMoveRatio&&(z+=1):x>p.itemDistance-p.itemDistance*p.triggerAutoMoveRatio&&(z+=1),y=-1*z*p.itemDistance,Ha(N,y,"end",T.direction,300),p.moved=y;const _=s.value[z].name;c.current.value=_??"",i(_??""),a("update:modelValue",_)}},g=()=>{},u=()=>{if(!f.value)return;const T=An(f.value);c.tabWidth.value=T.width,c.tabHeight.value=T.height},D=Dr(u,250);let A=null,I=null;return t.onMounted(()=>{f.value&&(u(),window.ResizeObserver&&(I=new window.ResizeObserver(D),I.observe(f.value)),n.draggle&&(A=Ng(h,V,g),A.open(m.value)))}),t.onBeforeUnmount(()=>{I&&(I.disconnect(),I=null),A&&A.close()}),()=>{const T={class:`${e}__panes`,style:C.value,ref:m},N=t.h("view",T,[r?.default?.()]),y={class:d.value,style:b.value,ref:f};return t.h("view",y,[N])}}}}const{create:Pg,componentName:Ig,scope:Vg}=se("tabs-container"),Zt=Pg(Eg(Ig,Vg,!1)),Og={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 Ag(e,l,o){return{props:{...Og},setup(n,{emit:a,slots:r}){const s=t.inject(si);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?fe(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`},b=n.emptyIcon??o,w=t.h(b,d),C={class:`${e}__empty-text`},p=n.emptyText??"Loading",h=t.h("view",C,[p]),V={class:`${e}__empty`},g=t.h("view",V,[w,h]);f.push(g)}const m={class:`${e}`,style:c.value,prop:n.paneKey};return t.h("view",m,f)}}}}const{create:Fg,componentName:Mg,scope:Bg}=se("tabs-pane"),Jn=Fg(Ag(Mg,Bg,Yn));function Rg(e,l,o,n){return{props:{...Ol,...Al,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(a,{emit:r,slots:s}){const c=e,i=t.computed(()=>{const p=[`${c}`];return a.direction==="vertical"?p.push("vertical-tabbar"):p.push("horizontal-tabbar"),p}),f=t.computed(()=>{const p={};if(a.width){const h=we(a.width);h&&(p.width=h)}if(a.height){const h=we(a.height);h&&(p.height=h)}return p}),m=t.computed(()=>[`${c}__bars`]),d=t.computed(()=>[`${c}__container`]),b=t.ref(a.modelValue);t.watch(()=>a.modelValue,p=>{b.value!==p&&(b.value=p)});const w=p=>{r("change",p)},C=p=>{b.value!==p&&(b.value=p,r("update:modelValue",p))};return()=>{const p=s.default?.()??[],h=[];if(Array.isArray(a.data))h.push(...a.data);else for(let N=0;N<p.length;N++){const y=p[N].props??{},z={text:y.label??"",value:y["pane-key"]??y.paneKey??""};h.push(z)}const V={};for(let N in s)N!=="default"&&(V[N]=s[N]);const g=it(a,Ol);Object.assign(g,{data:h,class:m.value,modelValue:b.value,direction:a.direction,onChange:w,"onUpdate:modelValue":C});const u=t.h(o,g,V),D={default:()=>p},A=it(a,Al);Object.assign(A,{class:d.value,modelValue:b.value,onChange:w,"onUpdate:modelValue":C});const I=t.h(n,A,D),T={class:i.value,style:f.value};return t.h("view",T,[u,I])}}}}const{create:Lg,componentName:_g,scope:qg}=se("tabs-frame"),Do=Lg(Rg(_g,qg,Xt,Zt)),zg={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 jg(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Ka(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Wa(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function Hg(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function ml(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function Ya(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function Ua(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function gl(e,l,o){return typeof e.itemOptions=="function"?e.itemOptions(l,o):e.itemOptions}class Kg{proxy;constructor(l){this.proxy=l}async load(l,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const a=Fe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(je(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(a,null,[o,n]))}}function Wg(){const e=t.getCurrentInstance();return new Kg(e.proxy)}function Yg(e,l,o,n){return{props:{...zg},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const c=e,i=Wg(),f=t.ref([]),m=t.computed(()=>f.value.filter(H=>Hg(a,H)!==!1)),d=t.ref(-1),b=()=>{const H=a.modelValue,U=m.value.findIndex(X=>Ka(a,X)===H);d.value!==U&&(d.value=U,a.scroll&&J(U))};t.watch([()=>a.modelValue,m],()=>{b()});const w=H=>d.value===H,C=H=>{if(H<0&&H>=m.value.length)return!1;const U=m.value[H],M=(gl(a,U,H)??{}).status??ml(a,U);return w(H)||M},p=t.computed(()=>{const H={[c]:!0};return a.mode?H[`is-${a.mode}`]=!0:a.direction&&(H[`is-${a.direction}`]=!0),a.scroll&&(H["is-scroll"]=!0),H}),h=t.computed(()=>({})),V=(H,U,X,M,ee)=>{const ne={[`${c}__step`]:!0};return ee&&(ne[`${ee}`]=!0),ne[`${g.value}`]=!0,M&&(ne["is-doit"]=!0),H===d.value?ne["is-active"]=!0:U==="done"?ne["is-done"]=!0:U==="error"?ne["is-error"]=!0:U==="half"?ne["is-half"]=!0:X?ne["is-disabled"]=!0:ne["is-normal"]=!0,ne},g=t.computed(()=>{let H=a.align;if(!H){if(a.mode==="simple")return"start";a.direction==="vertical"?H="start":H="center"}return H}),u=(H,U={})=>{const X={...U};if(g.value==="start"&&H===m.value.length-1)X.flex="0 0 auto";else if(a.step){const M=typeof a.step=="number"||Ll(a.step)?we(a.step):a.step;a.direction==="vertical"?X.height=M:X.width=M}else X.flex="1 1 100%";return X},D=(H,U)=>{let X={};if(U<m.value.length-1){const M=U+1;C(U)&&C(M)?a.direction==="vertical"?X.height="100%":X.width="100%":X.opacity="0"}return X},A=H=>m.value.length-1===H,I=(H,U)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&U>d.value||d.value===U)return;const X=d.value,M=U;d.value=U,a.scroll&&J(U);const ee=Ka(a,H);s("update:modelValue",ee);const ne={fromIndex:X,currentIndex:M,item:H,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",ee,ne)},T=t.ref(!0),N=async(H,U)=>{try{const X=await i.load("stesbar",H,U);Array.isArray(X)&&(f.value=X),T.value=!1}catch(X){console.error("[FoxUI] Load StepsBar Data Fail",X),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([H,U])=>{H&&N(H,U)},{immediate:!0});const y=(H,U,X,M,ee)=>{let ne=null;if(r.icon)ne=r.icon({item:H,index:U,status:M});else if(M==="done"){const E={};a.iconSize&&(E.width=a.iconSize,E.height=a.iconSize);const B=a.icon??o;ne=t.h(B,E)}else{const E=X??`${U+1}`;ne=t.h("span",{},[E])}const Z={class:"fox-steps-bar__icon",onClick:()=>{ee||I(H,U)}};return t.h("view",Z,[ne])},z=(H,U,X)=>{const M=t.h("i",{class:"fox-steps-bar__line-inner",style:D(H,U)});return t.h("view",{class:"fox-steps-bar__line"},[M])},x=()=>{let H=null;if(r.markIcon)H=r.markIcon();else{const X={};a.iconSize&&(X.width=a.markIconSize,X.height=a.markIconSize);const M=a.markIcon??n;H=t.h(M,X)}return t.h("view",{class:"fox-steps-bar__mark"},[H])},_=(H,U,X,M,ee)=>{const ne=[];if(!A(U)){const B=z(H,U);ne.push(B)}const Z=y(H,U,X,M,ee);ne.push(Z);const E={class:"fox-steps-bar__head"};return t.h("view",E,ne)},G=(H,U,X,M)=>{let ee=null;r.main?ee=r.main({item:H,index:U,status:X}):ee=jg(a,H);const ne={class:"fox-steps-bar__main",onClick:()=>{M||I(H,U)}};return t.h("view",ne,[ee])},S=(H,U,X)=>{let M=null;if(r.sub){M=r.sub({item:H,index:U,status:X});const ee={class:"fox-steps-bar__sub"};return t.h("view",ee,[M])}return null},$=(H,U)=>{const X=gl(a,H,U)??{},M=X.status??ml(a,H);let ee=Wa(a,H);X.disabled===!0&&(ee=!0),a.disabled===!0&&(ee=!0);const ne=X.label??Ua(a,H),Z=[],E=y(H,U,ne,M,ee);E&&Z.push(E);const B=G(H,U,M,ee);if(B&&Z.push(B),!A(U)){const L=z(H,U);L&&Z.push(L)}const k=t.h("view",{class:"fox-steps-bar__head"},Z),K=X.class,P=X.style??{};let v=Ya(a,H);X.doit===!0&&(v=!0);const q={ref:j(U),class:V(U,M,ee,v,K),style:u(U,P)};return t.h("view",q,[k])},F=(H,U)=>{const X=gl(a,H,U)??{},M=X.status??ml(a,H);let ee=Wa(a,H);X.disabled===!0&&(ee=!0),a.disabled===!0&&(ee=!0);const ne=X.label??Ua(a,H),Z=[],E=a.layout;for(let v of E)if(v==="head"){const q=_(H,U,ne,M,ee);Z.push(q)}else if(v==="main"){const q=G(H,U,M,ee);Z.push(q)}else if(v==="sub"){const q=S(H,U,M);Z.push(q)}else if(v==="mark"){const q=x();Z.push(q)}const B=X.class,k=X.style??{};let K=Ya(a,H);X.doit===!0&&(K=!0);const P={ref:j(U),class:V(U,M,ee,K,B),style:u(U,k)};return t.h("view",P,Z)},R=t.ref(),Q=t.ref([]),W=(H,U)=>{Q.value[U]=H},j=H=>U=>{W(U,H)},J=(H,U)=>{const X=R.value,M=Q.value;if(!X||!M||!M[H])return;const ee=M[H];let ne=0;a.direction==="vertical"?ne=ee.offsetTop-(X.offsetHeight-ee.offsetHeight)/2:ne=ee.offsetLeft-(X.offsetWidth-ee.offsetWidth)/2,Y(X,ne,.3,a.direction)},Y=(H,U,X,M)=>{let ee=0;const ne=M==="horizontal"?H.scrollLeft:H.scrollTop,Z=Math.round(X*1e3/16);function E(){M==="horizontal"?H.scrollLeft+=(U-ne)/Z:H.scrollTop+=(U-ne)/Z,++ee<Z&&Rl(E)}E()};return()=>{let H=[];if(a.mode==="simple")for(let X=0;X<m.value.length;X++){const M=m.value[X],ee=$(M,X);H.push(ee)}else for(let X=0;X<m.value.length;X++){const M=m.value[X],ee=F(M,X);H.push(ee)}const U={ref:R,class:p.value,style:h.value};return H.length===0&&typeof r.default=="function"&&(H=r.default()),t.h("view",U,H)}}}}const{componentName:Ug,create:Gg,scope:Xg}=se("steps-bar"),No=Gg(Yg(Ug,Xg,Gr,cf)),ze=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,pt=e=>e==null;let Zg=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,o){this.startMove=l,this.updateMove=o,this.isTouch=Yt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const o=Ut(),n=(a,r,s,c)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.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 Ga(e,l){return new Zg(e,l)}const Xa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let kt=[];const Za=e=>{const l=e;l.key==="Escape"&&kt.forEach(o=>o(l))},Qg=e=>{t.onMounted(()=>{kt.length===0&&document.addEventListener("keydown",Za),Xa&&kt.push(e)}),t.onBeforeUnmount(()=>{kt=kt.filter(l=>l!==e),kt.length===0&&Xa&&document.removeEventListener("keydown",Za)})},pl="fox-focus-trap.focus-after-trapped",vl="fox-focus-trap.focus-after-released",Jg="fox-focus-trap.focusout-prevented",Qa={cancelable:!0,bubbles:!1},ep={cancelable:!0,bubbles:!1},Ja="foxFocusAfterTrapped",er="foxFocusAfterReleased",tp=Symbol("foxFocusTrap"),Eo=t.ref(),el=t.ref(0),Po=t.ref(0);let tn=0;const ui=e=>{const l=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l},np=(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},tr=(e,l)=>{for(const o of e)if(!np(o,l))return o},lp=e=>{const l=ui(e),o=tr(l,e),n=tr(l.reverse(),e);return[o,n]},op=e=>e instanceof HTMLInputElement&&"select"in e,ct=(e,l)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Po.value=window.performance.now(),e!==o&&op(e)&&l&&e.select()}};function nr(e,l){const o=[...e],n=e.indexOf(l);return n!==-1&&o.splice(n,1),o}const ap=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=nr(e,n),e.unshift(n)},remove:n=>{e=nr(e,n),e[0]?.resume?.()}}},rp=(e,l=!1)=>{const o=document.activeElement;for(const n of e)if(ct(n,l),document.activeElement!==o)return},lr=ap(),ip=()=>el.value>Po.value,nn=()=>{Eo.value="pointer",el.value=window.performance.now()},or=()=>{Eo.value="keyboard",el.value=window.performance.now()},sp=()=>(t.onMounted(()=>{tn===0&&(document.addEventListener("mousedown",nn),document.addEventListener("touchstart",nn),document.addEventListener("keydown",or)),tn++}),t.onBeforeUnmount(()=>{tn--,tn<=0&&(document.removeEventListener("mousedown",nn),document.removeEventListener("touchstart",nn),document.removeEventListener("keydown",or))}),{focusReason:Eo,lastUserFocusTimestamp:el,lastAutomatedFocusTimestamp:Po}),ln=e=>new CustomEvent(Jg,{...ep,detail:e}),{create:up}=se("focus-trap"),cp={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"}},fp=up({props:cp,emits:[Ja,er,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:o}){const n=t.ref();let a,r;const{focusReason:s}=sp();Qg(p=>{fe(e.trapped)&&!c.paused&&o("release-requested",p)});const c={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!fe(e.trapped)||c.paused)return;const{key:h,altKey:V,ctrlKey:g,metaKey:u,currentTarget:D,shiftKey:A}=p,{loop:I}=e,T=h==="Tab"&&!V&&!g&&!u,N=document.activeElement;if(T&&N){const y=D,[z,x]=lp(y);if(z&&x){if(!A&&N===x){const G=ln({focusReason:s.value});o("focusout-prevented",G),G.defaultPrevented||(p.preventDefault(),I&&ct(z,!0))}else if(A&&[z,y].includes(N)){const G=ln({focusReason:s.value});o("focusout-prevented",G),G.defaultPrevented||(p.preventDefault(),I&&ct(x,!0))}}else if(N===y){const G=ln({focusReason:s.value});o("focusout-prevented",G),G.defaultPrevented||p.preventDefault()}}};t.provide(tp,{focusTrapRef:n,onKeydown:i}),t.watch(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),t.watch([n],([p],[h])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",d),p.addEventListener("focusout",b)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",d),h.removeEventListener("focusout",b))});const f=p=>{o(Ja,p)},m=p=>o(er,p),d=p=>{const h=t.unref(n);if(!h)return;const V=p.target,g=p.relatedTarget,u=V&&h.contains(V);fe(e.trapped)||g&&h.contains(g)||(a=g),u&&o("focusin",p),!c.paused&&fe(e.trapped)&&(u?r=V:ct(r,!0))},b=p=>{const h=t.unref(n);if(!(c.paused||!h))if(!e.escape&&fe(e.trapped)){const V=p.relatedTarget;!We(V)&&!h.contains(V)&&setTimeout(()=>{if(!c.paused&&fe(e.trapped)){const g=ln({focusReason:s.value});o("focusout-prevented",g),g.defaultPrevented||ct(r,!0)}},0)}else{const V=p.target;V&&h.contains(V)||o("focusout",p)}};async function w(){await t.nextTick();const p=t.unref(n);if(p){lr.push(c);const h=p.contains(document.activeElement)?a:document.activeElement;if(a=h,!p.contains(h)){const g=new Event(pl,Qa);p.addEventListener(pl,f),p.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let u=e.focusStartEl;dr(u)||(ct(u),document.activeElement!==u&&(u="first")),u==="first"&&rp(ui(p),!0),(document.activeElement===h||u==="container")&&ct(p)})}}}function C(){const p=t.unref(n);if(p){p.removeEventListener(pl,f);const h=new CustomEvent(vl,{...Qa,detail:{focusReason:s.value}});p.addEventListener(vl,m),p.dispatchEvent(h),!h.defaultPrevented&&(s.value=="keyboard"||!ip())&&ct(a??document.body,!0),p.removeEventListener(vl,f),lr.remove(c)}}return t.onMounted(()=>{fe(e.trapped)&&w(),t.watch(()=>e.trapped,p=>{fe(p)?w():C()})}),t.onBeforeUnmount(()=>{fe(e.trapped)&&C()}),()=>typeof l.default=="function"?l.default({"handle-keydown":i}):null}}),{componentName:dp,create:hp}=se("floating-window"),mp=Symbol.for("InnerPageScopeKey"),gp=Symbol.for("PageWrapperKey"),pp={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}},vp=hp({inheritAttrs:!1,components:{FoxIcon:O.ElIcon,FocusTrap:fp},props:{...pp},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const o=dp,n=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,v=>{n.value=v});const r=t.computed(()=>n.value===!1?!1:!N.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 v=["fox-floating-window"];return e.customClass&&v.push(e.customClass),v}),d=t.computed(()=>{const v={};return pt(s.value)?v.left="auto":v.left=ze(s.value),pt(c.value)?v.top="auto":v.top=ze(c.value),pt(i.value)?v.right="auto":v.right=ze(i.value),pt(f.value)?v.bottom="auto":v.bottom=ze(f.value),pt(e.zIndex)||(v["z-index"]=ze(e.zIndex)),pt(I.value)||(v.height=I.value),pt(T.value)||(v.width=T.value),v}),b=t.computed(()=>e.closeIcon??Pe.Close),w=t.computed(()=>e.collapseIcon??Pe.ArrowUp),C=t.computed(()=>e.collapseText??""),p=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Pe.ArrowRight:e.expandIcon??Pe.ArrowLeft),h=t.computed(()=>e.expandText??e.title??"展开"),V=t.computed(()=>({[`${o}__collapse-text`]:!0})),g=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),u=t.ref(),D=t.ref(null),A=t.ref(null),I=t.computed(()=>ze(e.height)||""),T=t.computed(()=>ze(e.width)||""),N=t.ref(fe(e.collapse)),y=(v,q=!0)=>{N.value!==v&&(N.value=v,v?H():U(),l("update:collapse",v),v&&typeof _.onHide=="function"?_.onHide():!v&&typeof _.onShow=="function"&&_.onShow())};t.watch(()=>e.collapse,v=>{y(v)});const z=()=>{x()},x=v=>{v=v??!N.value,y(v)};t.provide(mp,!0);const _={setCollapse:y,setFixedNavVisible:v=>{j.value=v}};t.provide(gp,_);const G=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},S=t.ref(null),$=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const v=["fox-floating-window__fixednav"];return e.expandClass&&v.push(e.expandClass),e.collapsePosition==="left"?v.push("is-left"):e.collapsePosition==="right"&&v.push("is-right"),v}),R=t.ref(""),Q=t.computed(()=>{const v={};return R.value?v.top=R.value:e.collapseTop&&(v.top=e.collapseTop),v}),W=t.ref(N.value),j=t.computed({set:v=>{W.value=v},get:()=>n.value===!1?!1:W.value});let J=null;const Y=()=>{typeof J=="function"&&(J(),J=null)},H=()=>{S.value&&S.value.classList.add("slide-in"),j.value=!0,J=()=>{S.value&&S.value.classList.remove("slide-in")}},U=()=>{S.value&&S.value.classList.add("slide-out"),J=()=>{S.value&&S.value.classList.remove("slide-out"),j.value=!1}},X=()=>{s.value=null,c.value=null,i.value=null,f.value=null},M={x:0,y:0},Z=Ga(v=>{if(!u.value)return;const q=u.value;if(X(),e.origin==="left-top")s.value=q.offsetLeft,c.value=q.offsetTop,M.x=s.value,M.y=c.value;else if(e.origin==="left-bottom"){const L=document.documentElement.clientHeight||document.body.clientHeight;s.value=q.offsetLeft,f.value=L-(q.offsetTop+q.offsetHeight),M.x=s.value,M.y=f.value}else if(e.origin==="right-bottom"){const L=document.documentElement.clientWidth||document.body.clientWidth,te=document.documentElement.clientHeight||document.body.clientHeight;i.value=L-(q.offsetLeft+q.offsetWidth),f.value=te-(q.offsetTop+q.offsetHeight),M.x=i.value,M.y=f.value}else{const L=document.documentElement.clientWidth||document.body.clientWidth;i.value=L-(q.offsetLeft+q.offsetWidth),c.value=q.offsetTop,M.x=i.value,M.y=c.value}},v=>{if(!u.value)return;const q=u.value;X(),e.origin==="left-top"?(s.value=M.x+v.x,c.value=M.y+v.y,q.style.left=ze(s.value),q.style.top=ze(c.value)):e.origin==="left-bottom"?(s.value=M.x+v.x,f.value=M.y-v.y,q.style.left=ze(s.value),q.style.bottom=ze(f.value)):e.origin==="right-bottom"?(i.value=M.x-v.x,f.value=M.y-v.y,q.style.right=ze(i.value),q.style.bottom=ze(f.value)):(i.value=M.x-v.x,c.value=M.y+v.y,q.style.right=ze(i.value),q.style.top=ze(c.value))}),E={x:0,y:0},K=Ga(v=>{S.value&&(E.x=S.value.offsetLeft,E.y=S.value.offsetTop)},v=>{if(!S.value)return;const q=E.y+v.y;R.value=`${q}px`}),P=()=>{if(u.value){const v=u.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");A.value=v}};return t.onMounted(()=>{if(e.draggable&&u.value){const v=[];D.value&&v.push(D.value),e.footerDraggable&&(P(),A.value&&v.push(A.value)),Z.open(v)}e.collapse===!0&&y(e.collapse,!1),S.value&&K.open(S.value)}),t.onBeforeUnmount(()=>{e.draggable&&D.value&&Z.close(),S.value&&K.close()}),{classes:m,styles:d,isShow:r,closeIcon:b,onClose:G,dialogRef:u,headerRef:D,onClickToggle:z,collapseIcon:w,collapseText:C,collapseTextClasses:V,collapseIconClasses:g,expandIcon:p,expandText:h,isShowFixedNav:j,fixedNavRef:S,fixedNavClasses:F,fixedNavStyles:Q,onAnimationEnd:Y,teleportDisabled:a,fixedNavTeleportDisabled:$}}}),yp={ref:"headerRef",class:"fox-floating-window__header"},bp={class:"fox-floating-window__title"},wp={class:"fox-floating-window__tools"},xp={class:"fox-floating-window__body"},Sp={class:"fox-floating-window__fixednav__text"};function Cp(e,l,o,n,a,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",yp,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",bp,t.toDisplayString(e.title),1),t.createElementVNode("div",wp,[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",xp,[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",Sp,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Io=Re(vp,[["render",Cp]]),ar=new Date().getFullYear(),Tp={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"},rr=(e,l,o)=>{let n;if(dt(l)?n=l:typeof l=="string"&&at(l)>0?n=ie.parser(l,o):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},kp=(e,l,o)=>{dt(l)||(l=e.minDate);let n=Math.max(l.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),ie.format(new Date(n),o)},$p={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(ar-10,0,1),validator:dt},maxDate:{type:Date,default:()=>new Date(ar+10,11,31),validator:dt},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:Dp,scope:Np}=se("date-picker"),Ep=Dp({components:{Picker:Gt},props:{...$p},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:l}){const{t:o}=Se.useFoxI18n(Np),n={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,D){return new Date(u,D,0).getDate()}const s=(u,D)=>{const A=e[`${u}Date`],I=A.getFullYear();let T=1,N=1,y=0,z=0;u==="max"&&(T=12,N=r(D.getFullYear(),D.getMonth()+1),y=23,z=59);const x=z;return D.getFullYear()===I&&(T=A.getMonth()+1,D.getMonth()+1===T&&(N=A.getDate(),D.getDate()===N&&(y=A.getHours(),D.getHours()===y&&(z=A.getMinutes())))),{[`${u}Year`]:I,[`${u}Month`]:T,[`${u}Date`]:N,[`${u}Hour`]:y,[`${u}Minute`]:z,[`${u}Seconds`]:x}},c=t.computed(()=>{if(!b.value)return[];const{maxYear:u,maxDate:D,maxMonth:A,maxHour:I,maxMinute:T,maxSeconds:N}=s("max",b.value),{minYear:y,minDate:z,minMonth:x,minHour:_,minMinute:G,minSeconds:S}=s("min",b.value);let $=[{type:"year",range:[y,u]},{type:"month",range:[x,A]},{type:"day",range:[z,D]},{type:"hour",range:[_,I]},{type:"minute",range:[G,T]},{type:"seconds",range:[S,N]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),i=(u,D,A,I,T)=>{const N=[];for(;u<=D;){let y=!0;if(typeof e.itemFilter=="function"){const z={text:`${u}`,value:u,type:A,currentYearMonth:I};y=e.itemFilter(z)}if(y)if(typeof e.itemFormatter=="function"){const z={text:`${u}`,value:u,type:A,currentYearMonth:I};e.itemFormatter(z),N.push({text:z.text,value:z.value})}else if(e.isShowChinese){let z=`${u}${n[A]}`;if(A==="day"){if(I[0]===T[0]&&I[1]===T[1]&&u===T[2])z=n.today;else{const _=new Date(I[0],I[1],u).getDay();z=`${z} ${n.fullWeekdays[_]}`}N.push({text:z,value:u})}else N.push({text:u+n[A],value:u})}else N.push({text:`${u}`,value:u});A==="minute"?u+=e.minuteStep:u++}return N},f=t.computed(()=>{const u=new Date,D=[u.getFullYear(),u.getMonth(),u.getDate()],A=[];b.value&&(A[0]=b.value.getFullYear(),A[1]=b.value.getMonth());let I=[];return c.value.forEach(T=>{let N=i(T.range[0],T.range[1],T.type,A,D);N&&I.push(N)}),I}),m=(u,D)=>u==="year"?D.getFullYear():u==="month"?D.getMonth()+1:u==="day"?D.getDate():u==="hour"?D.getHours():u==="minute"?D.getMinutes():u==="seconds"?D.getSeconds():0,d=t.ref(),b=t.ref(null);t.watch(()=>e.modelValue,u=>{let D;if(typeof u=="string"?u.length==0||u==="Invalid Date"?D=new Date:e.valueFormat?D=rr(e,e.modelValue,e.valueFormat):D=rr(e,u,Tp[e.type]):dt(u)?D=u:D=new Date,!!D&&(!b.value||D.getTime()!==b.value.getTime())){b.value=D;let A=[];c.value.forEach(I=>{let T=m(I.type,D);A.push(T)}),d.value=A}},{immediate:!0});const w=u=>{if(!u||u.length===0){b.value=new Date;let D=[];c.value.forEach(A=>{let I=m(A.type,b.value);D.push(I)}),d.value=D;return}if(e.type==="date"){const D=u[0],A=u[1]-1,I=Math.min(u[2],r(D,A+1));I!==u[2]&&(u[2]=I),b.value=new Date(D,A,I)}else if(e.type==="datetime"){const D=u[0],A=u[1]-1,I=Math.min(u[2],r(D,A+1)),T=u[3],N=u[4];I!==u[2]&&(u[2]=I),b.value=new Date(D,A,I,T,N)}else if(e.type==="time"){const D=u[0],A=u[1],I=u[2],T=b.value??new Date,N=new Date(T.getFullYear(),T.getMonth(),T.getDate(),D,A,I);b.value=N}else if(e.type==="year-month"){const D=u[0],A=u[1]-1;b.value=new Date(D,A)}else if(e.type==="month-day"){const A=(b.value??new Date).getFullYear(),I=u[0]-1,T=Math.min(u[1],r(A,I+1));T!==u[1]&&(u[1]=T);const N=new Date(A,I,T);b.value=N}else if(e.type==="datehour"){const D=u[0],A=u[1]-1,I=Math.min(u[2],r(D,A+1)),T=u[3];I!==u[2]&&(u[2]=I),b.value=new Date(D,A,I,T)}else if(e.type==="hour-minute"){const D=u[0],A=u[1],I=b.value??new Date,T=new Date(I.getFullYear(),I.getMonth(),I.getDate(),D,A);b.value=T}d.value=u};return{columns:f,dateIndexs:d,show:a,onChange:u=>{w(u)},onClose:()=>{l("update:close",!1)},onConfirm:u=>{w(u);const D=b.value??new Date;if(e.valueFormat){let A=kp(e,D,e.valueFormat);l("update:modelValue",A)}else l("update:modelValue",D);l("confirm",u)},onClear:()=>{l("clear")},onUpdateVisible:u=>{a.value=u,l("update:visible",u)}}}});function Pp(e,l,o,n,a,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 Vo=Re(Ep,[["render",Pp]]),pn=(e,l,o)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=o??{},{[a]: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=pn(d.children,d,o)),d}),ci=(e,l)=>{let o=0,n;for(;(n=e[o++])&&l(n)!==!0;)n.children&&n.children.length&&ci(n.children,l)},Ip={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Vp=(e,l)=>{const o={...Ip,...l||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=o;let c=[],i={};return e.forEach(f=>{f={...f};const{[a]:m,[r]:d}=f,b=i[d]=i[d]||[];!c.length&&d===n&&(c=b),b.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 ir{nodes;config;constructor(l,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=pn(l,null,this.config)}updateChildren(l,o){o?o.children=pn(l,o,this.config):this.nodes=pn(l,null,this.config)}getNodeByValue(l){let o;return ci(this.nodes,n=>{if(n.value===l)return o=n,!0}),o}getPathNodesByValue(l){if(!l.length)return[];const o=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===l[r.level]);if(!a)break;o.push(a),n=a.children}return o}isLeaf(l,o){const{leaf:n,children:a}=l,r=Array.isArray(a)&&!!a.length;return n||!r&&!o}hasChildren(l,o){if(this.isLeaf(l,o))return!1;const{children:a}=l;return Array.isArray(a)&&!!a.length}}const{create:Op,scope:Ap}=se("cascader-pane"),Fp=Op({components:{Loading:Yn,Checklist:Gr,TabsBar:Xt,TabsContainer:Zt,TabsPane:Jn},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:o}=Se.useFoxI18n(Ap),n=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),c=t.ref(new ir([],{})),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:o("select"),value:u}))),d=new Map;let b;const w=async()=>{d.clear(),i.value=[],a.value=0,r.value=!1,b=null;let{options:g}=e;n.value.convertConfig&&(g=Vp(g,n.value.convertConfig)),c.value=new ir(g,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),f.value&&!c.value.nodes.length&&await p({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:c.value.nodes,selectedNode:null}],C()},C=async()=>{const g=s.value;if(g===void 0||!c.value.nodes.length)return;if(g.length===0){a.value=0,i.value=[{nodes:c.value.nodes,selectedNode:null}];return}let u=g;if(f.value&&Array.isArray(g)&&g.length){u=[];let D=c.value.nodes.find(A=>A.value===g[0]);if(D){u=[D.value],r.value=!0;const A=await g.slice(1).reduce(async(I,T)=>{const N=await I;await p(N);const y=N?.children?.find(z=>z.value===T);return y&&u.push(T),Promise.resolve(y)},Promise.resolve(D));await p(A),r.value=!1}}u.length&&g===e.modelValue&&c.value.getPathNodesByValue(u).map((A,I)=>{a.value=I,V.handleNode(A,!0)})},p=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 D=d.get(g);D||(D=new Promise(I=>{n.value.lazyLoad?.(g,I)}),d.set(g,D));const A=await D;Array.isArray(A)&&A.length>0?c.value.updateChildren(A,u):g.leaf=!0,g.loading=!1,d.delete(g)},h=g=>{const u=g.map(D=>D.value);s.value=u,l("change",u,g),l("update:modelValue",u,g)},V={async handleNode(g,u){const{disabled:D,loading:A}=g;if(!(!u&&D||!i.value[a.value])){if(c.value.isLeaf(g,f.value)){if(g.leaf=!0,i.value[a.value].selectedNode=g,i.value=i.value.slice(0,g.level+1),!u){const I=i.value.map(T=>T.selectedNode);h(I),l("pathChange",I)}return}if(c.value.hasChildren(g,f.value)){const I=g.level+1;if(i.value[a.value].selectedNode=g,i.value=i.value.slice(0,I),i.value.push({nodes:g.children||[],selectedNode:null}),a.value=I,!u){const T=i.value.map(N=>N.selectedNode);l("pathChange",T)}return}b=g,!A&&(await p(g),b===g&&(i.value[a.value].selectedNode=g,V.handleNode(g,u)))}},handleTabChange(g,u){b=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:o("select")},isSelected(g,u){return g.selectedNode&&g.selectedNode.value===u.value}};return t.watch([n,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==s.value&&(s.value=g,C())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(s.value)&&s.value.length>0&&C()}),{panes:i,panesTitles:m,initLoading:r,tabsCursor:a,...V}}}),Mp={class:"fox-cascader"},Bp={role:"menu",class:"fox-cascader__pane"},Rp=["aria-checked","aria-disabled","onClick"],Lp={class:"fox-cascader__item__title"};function _p(e,l,o,n,a,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",Mp,[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,b)=>(t.openBlock(),t.createBlock(f,{"pane-key":b,key:b},{default:t.withCtx(()=>[t.createElementVNode("view",Bp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,w=>(t.openBlock(),t.createElementBlock("view",{key:w.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,w),disabled:w.disabled}]),"aria-checked":e.isSelected(d,w),"aria-disabled":w.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(w,!1)},[t.createElementVNode("view",Lp,t.toDisplayString(w.text),1),w.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,Rp))),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 qp=Re(Fp,[["render",_p]]),{create:zp}=se("cascader-picker"),jp=zp({components:{FoxCascaderPane:qp,FoxPopup:wt},props:{...oo,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 o=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){l("update:visible",s)}}),a=(s,c)=>{o.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!==o.value&&(o.value=s)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:n}}}),Hp=["innerHTML"];function Kp(e,l,o,n,a,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,Hp)):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 Oo=Re(jp,[["render",Kp]]),Wp=Symbol.for("PageWrapperKey");function Yp(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(o,n){Hl(!0);const a={};t.provide(Wp,a);const r=f=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=t.ref(!0),c=f=>{s.value=f},i=t.computed(()=>{const f={};return o.height&&(f["--fox-dialog-item-body-height"]=we(o.height)),f});return()=>{const m={...n.attrs,style:i.value,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":c,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":r},d=["fox-dialog-item "];o.hideHeader&&d.push("hide-header"),o.class&&d.push(o.class),m.class=d.join(" ");const b={};return typeof n.slots.default=="function"&&(b.default=n.slots.default),t.h(O.ElDialog,m,b)}}}}const{create:Up}=se("dialog-item"),Ao=Up(Yp()),{create:Gp}=se("toast"),Xp=Gp({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 o=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},c=()=>{e.closeOnClickOverlay&&(r(),l("close"))};e.duration&&s(),t.watch(()=>e.duration,w=>{w&&s()});const i=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const w=ye(e.iconSize);return t.h(e.icon,{width:w,height:w,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:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Zp={key:1,class:"fox-toast-title"},Qp=["innerHTML"];function Jp(e,l,o,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick: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",Zp,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Qp)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Fo=Re(Xp,[["render",Jp]]),ev={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}},tv=(e,l,o)=>({props:{...ev},emits:["change","refresh","update:modelValue"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=Se.useFoxI18n(l),c=s(n,["pullingText","loosingText","loadingText"]),i=Ut(),f=t.ref(),m=ni(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),w=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""}}),C=t.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),p=t.computed(()=>{const T={};return n.headHeight!=50&&(T.height=we(n.headHeight)),T}),h=T=>{const N=+(n.pullDistance||n.headHeight);let y=T;return T>N&&(T<N*2?y=(T+N)/2:y=N+T/4),Math.round(y)},V=(T,N)=>{const y=+(n.pullDistance||n.headHeight);d.distance=T,N?d.status="loading":T===0?d.status="normal":T<y?d.status="pulling":d.status="loosing",a("change",{status:d.status,distance:T})},g=()=>d.status!=="loading"&&d.status!=="complete",u=()=>m.value==window?li()==0:m.value&&m.value.scrollTop==0,D=T=>{g()&&(u()?(i.start(T),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},A=T=>{g()&&d.moving&&(i.move(T),i.isVertical()&&i.state.deltaY>0&&d.isPullRefresh&&(T.cancelable&&T.preventDefault(),V(h(i.state.deltaY))))},I=()=>{d.moving=!1,d.isPullRefresh&&g()&&i.state.deltaY&&(d.status==="loosing"?(V(+n.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):V(0)),setTimeout(()=>{i.reset()},0)};return t.watch(()=>n.modelValue,T=>{T?V(+n.headHeight,!0):V(0)}),()=>{const T=[];let N=null;if(d.status==="loading"){if(N=r?.loading?.()??null,!N){const F={class:["fox-pull-refresh-container-topbox-icon"]};N=t.h(o,F)}}else d.status==="pulling"?N=r?.pulling?.()??null:d.status==="loosing"&&(N=r?.loosing?.()??null);N&&T.push(N);const y={class:["fox-pull-refresh-container-topbox-text"]},z=t.h("dive",y,[w.value]);T.push(z);const x={class:["fox-pull-refresh-container-topbox"],style:p.value},_=t.h("div",x,T),G={class:"fox-pull-refresh-container",style:C.value},S=t.h("div",G,[_,r?.default?.()]),$={ref:f,class:b.value};return Yt()?Object.assign($,{onTouchstart:D,onTouchmove:A,onTouchend:I}):Object.assign($,{onMousedown:D,onMousemove:A,onMouseup:I}),t.h("div",$,[S])}}}),{componentName:nv,create:lv,scope:ov}=se("pull-refresh"),Mo=lv(tv(nv,ov,Yn)),av={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 rv(e,l,o){return{props:{...av},emits:["click","update:modelValue"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=Se.useFoxI18n(l),c=s(n,["collapseText","expandText"]),i=t.computed(()=>{const C={[`${e}`]:!0};return n.disabled?C[`${e}--disabled`]=!0:C[`${e}--${n.type}`]=!0,C}),f=pe(n,"modelValue"),m=t.computed(()=>f.value?c.expandText.value??"":c.collapseText.value??""),d=t.computed(()=>({[`${e}__text`]:!0})),b=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),w=()=>{a("update:modelValue",!f.value)};return()=>{const C=[];if(m.value){const g={class:d.value},u=t.h("span",g,[m.value]);C.push(u)}const p={class:b.value},h=(r.icon&&r.icon())??(n.icon&&t.h(n.icon))??t.h(o);if(h){const g=t.h("div",p,[h]);C.push(g)}return n.textPosition==="right"&&C.reverse(),t.h("div",{class:i.value,onClick:w},C)}}}}const{componentName:iv,create:sv,scope:uv}=se("more-button"),Bo=sv(rv(iv,uv,Pe.ArrowUp));function cv(e){e.stopPropagation()}class fv{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,o){this.startMove=l,this.updateMove=o,this.isTouch=Yt()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const o=Ut(),n=(a,r,s,c)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),cv(a),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.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 dv(e,l){return new fv(e,l)}const hv={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]}},mv=(e,l,o,n=!1)=>({props:{...hv},emits:["click"],setup(a,{slots:r,emit:s}){const c=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),i=t.computed(()=>{const g=[`${e}`];return a.customClass&&g.push(a.customClass),g}),f=t.computed(()=>{const g={};return me(c.top)||(g.top=c.top),me(c.right)||(g.right=c.right),me(c.bottom)||(g.bottom=c.bottom),me(c.left)||(g.left=c.left),me(a.width)||(g.width=a.width),me(a.height)||(g.height=a.height),me(a.color)||(g.color=a.color),me(a.background)||(g.background=a.background),me(a.borderRadius)||(g["border-radius"]=a.borderRadius),me(a.zIndex)||(g["z-index"]=a.zIndex),g}),m=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},b=t.ref(null),w=()=>{c.top=null,c.right=null,c.bottom=null,c.left=null},C={x:0,y:0},V=dv(g=>{if(!b.value)return;const u=b.value;w(),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,C.x=c.left,C.y=c.top},g=>{if(!b.value)return;const u=b.value;w(),c.left=C.x+g.x,c.top=C.y+g.y,u.style.left=`${c.left}px`,u.style.top=`${c.top}px`});return t.onMounted(()=>{if(a.draggable&&b.value){const g=[b.value];V.open(g)}}),t.onBeforeUnmount(()=>{a.draggable&&b.value&&V.close()}),()=>{let g=[];const u=typeof r.default=="function"?r.default():[];if(u&&u.length>0)g=u;else{const A=t.h(o,{class:m.value});g.push(A)}const D={ref:A=>{b.value=A},class:i.value,style:f.value,onClick:d};return t.h("view",D,g)}}}),{componentName:gv,create:pv,scope:vv}=se("floating-button"),Ro=pv(mv(gv,vv,$c,!1));function yv(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(o,{slots:n}){const a=e,r=t.computed(()=>({[a]:!0})),s=t.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),c=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),i=t.computed(()=>{const m={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),f=t.computed(()=>o.color?{color:o.color}:null);return()=>{let m=null;if(n.mark)m=n.mark()[0];else{const p={class:s.value,style:c.value};m=t.h(o.icon??"div",p)}const d={class:i.value,style:f.value},b=n.default?n.default():[],w=t.h("div",d,b),C={class:r.value};return o.textPosition==="right"?t.h("div",C,[m,w]):t.h("div",C,[w,m])}}}}const{componentName:bv,create:wv}=se("indicator"),Lo=wv(yv(bv)),{componentName:xv,create:Sv}=se("tour"),Cv=Sv({components:{Close:Pe.Close,ElPopover:O.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 o=xv,n=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),s=t.computed(()=>{const{offset:C,maskWidth:p,maskHeight:h}=e,{width:V,height:g,left:u,top:D}=a.value,A=e.steps[n.active].offset??C,I=[u+V/2,D+g/2],T=Number(p||V),N=Number(h||g);return{width:`${T+ +A.left+A.right}px`,height:`${N+A.top+A.bottom}px`,top:`${I[1]-N/2-+A.top}px`,left:`${I[0]-T/2-+A.left}px`}}),c=C=>{C=="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=C=>C.popoverWidth??e.width,f=C=>C.location??e.location,m=()=>{const C=document.querySelector(`${e.steps[n.active].target}`),p=ko(C);a.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,l("close",n.active),l("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},w=(C,p=0)=>{C&&m(),e.steps,n.active=p,n.showTour=C,n.showPopup=C};return t.onMounted(()=>{w(e.modelValue,e.current)}),t.watch(()=>e.modelValue,C=>{w(C)}),{...t.toRefs(n),classes:r,maskStyle:s,changeStep:c,popoverWidth:i,popoverLocation:f,close:d,handleClickMask:b}}}),Tv={key:0,class:"fox-tour__content"},kv={key:0,class:"fox-tour__content-top"},$v={class:"fox-tour__content-inner"},Dv={class:"fox-tour__content-bottom"},Nv={class:"fox-tour__content-bottom-init"},Ev={class:"fox-tour__content-bottom-operate"},Pv={key:1,class:"fox-tour__content fox-tour__content-tile"},Iv={class:"fox-tour__content-inner"};function Vv(e,l,o,n,a,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",Tv,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",kv,[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",$v,t.toDisplayString(f.content),1),t.createElementVNode("div",Dv,[t.createElementVNode("div",Nv,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Ev,[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",Pv,[t.createElementVNode("div",Iv,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const _o=Re(Cv,[["render",Vv]]);function Ov(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(o,{slots:n}){return Nr(o.name,()=>o.config),We(o.innerPageScope)||Hl(o.innerPageScope),We(o.abstractPageScope)||Ir(o.abstractPageScope),()=>typeof n.default=="function"?n.default():null}}}const{create:Av}=se("domain-provider"),qo=Av(Ov()),Fv={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 Mv(e,l){return{inheritAttrs:!1,props:Fv,emits:["change"],setup(o,{slots:n,emit:a}){if(mt&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const c=(w,C)=>{if(d===null){s.set(w,{visible:null,callback:C});return}r.has(w)&&d.unobserve(w),r.set(w,{visible:null,callback:C}),d.observe(w)},i=w=>{if(d===null){s.delete(w);return}r.has(w)&&(r.delete(w),d.unobserve(w))};let f=o.initialVisibleObserverSize;ys({acquire:()=>{if(o.loadPolicy==="always")return!0;const w=f>0;return f--,w},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:c,unobserve:i});let d=null;const b=(w,C,p)=>{d=new IntersectionObserver(h=>{if(a("change",h),o.loadPolicy!=="always")for(let V of h){let g=!1;V.intersectionRatio>0&&(g=!0);const u=r.get(V.target);if(u)try{if(o.loadPolicy==="lazy"&&!g&&u.visible!==null)return;u.visible=g,u.callback(g)}catch(D){console.error(D)}}},{root:w,rootMargin:C,threshold:p}),s.forEach((h,V)=>{r.set(V,h),d?.observe(V)}),s.clear()};t.watch([()=>o.root,()=>o.disabled],([w,C])=>{if(C||!w||d)return;let p=null;typeof w=="string"?p=document.querySelector(w):p=w,p&&b(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{create:Bv}=se("rolling-provider"),zo=Bv(Mv()),Rv=[Wl,Ul,Gl,Xl,Zl,ke,zn,jn,Jl,Oe,eo,to,no,ao,ro,io,so,uo,co,fo,ho,mo,Gn,go,po,vo,yo,bo,wo,xo,So,Qn,Co,$o,Xt,Zt,Jn,Do,No,Io,Kn,Gt,Vo,Un,Oo,Ao,Wn,wt,Fo,Zn,Xn,Mo,Bo,Ro,jt,qn,Lo,Hn,_o,qo,zo],Lv=new Zi(Rv,[es],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>O.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>O.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>O.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>O.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>O.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>O.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>O.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>O.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>O.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>O.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>O.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>O.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>O.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>O.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>O.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>O.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>O.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>O.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>O.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>O.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>O.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>O.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>O.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>O.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>O.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>O.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>O.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>O.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>O.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>O.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>O.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>O.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>O.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>O.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>O.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>O.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>O.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>O.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>O.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>O.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>O.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>O.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>O.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>O.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>O.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>O.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>O.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>O.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>O.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>O.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>O.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>O.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>O.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>O.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>O.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>O.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>O.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>O.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>O.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>O.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>O.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>O.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>O.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>O.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>O.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>O.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>O.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>O.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>O.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>O.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>O.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>O.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>O.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>O.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>O.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>O.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>O.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>O.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>O.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>O.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>O.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>O.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>O.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>O.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>O.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>O.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>O.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>O.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>O.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>O.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>O.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>O.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>O.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>O.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>O.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>O.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>O.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>O.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>O.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>O.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>O.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>O.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>O.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>O.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>O.ElWatermark});exports.AbstractPageScopeKey=Kl;exports.ActionsheetItem=Co;exports.ActionsheetPane=Qn;exports.AutocompleteItem=fo;exports.Broadcast=_l;exports.BroadcastKey=De;exports.ButtonsItem=Jl;exports.CalendarItem=ao;exports.CascaderItem=co;exports.CheckboxItem=vo;exports.Content=Xl;exports.DataItemsKey=Tt;exports.DateItem=no;exports.DateUtils=ie;exports.DialogItem=Ao;exports.Domain=Pn;exports.DomainKey=Ke;exports.DomainProvider=qo;exports.FloatingButton=Ro;exports.FloatingWindow=Io;exports.FooterBar=Gl;exports.FoxActionsheetItem=Co;exports.FoxActionsheetPane=Qn;exports.FoxAutocompleteItem=fo;exports.FoxButtonsItem=Jl;exports.FoxCalendarItem=ao;exports.FoxCascaderItem=co;exports.FoxCheckboxItem=vo;exports.FoxContent=Xl;exports.FoxDateItem=no;exports.FoxDialogItem=Ao;exports.FoxDomainProvider=qo;exports.FoxFloatingButton=Ro;exports.FoxFloatingWindow=Io;exports.FoxFooterBar=Gl;exports.FoxGroup=Zl;exports.FoxGroupSetting=xo;exports.FoxHeaderBar=Ul;exports.FoxHintText=Oe;exports.FoxIndicator=Lo;exports.FoxInfiniteLoading=Xn;exports.FoxInputItem=eo;exports.FoxInputNumberItem=uo;exports.FoxItem=ke;exports.FoxMapping=jt;exports.FoxMoneyItem=so;exports.FoxMoreButton=Bo;exports.FoxOverLay=Wn;exports.FoxPage=Wl;exports.FoxPickerItem=$o;exports.FoxPopoverDialog=Kn;exports.FoxPopup=wt;exports.FoxPrice=qn;exports.FoxPullRefresh=Mo;exports.FoxRadioItem=po;exports.FoxRateItem=yo;exports.FoxRollingProvider=zo;exports.FoxRowItem=jn;exports.FoxSearchBar=Zn;exports.FoxSelectItem=to;exports.FoxSlotItem=zn;exports.FoxStepsBar=No;exports.FoxSwitchItem=bo;exports.FoxTableItem=go;exports.FoxTableMappingColumn=ho;exports.FoxTableRadioColumn=mo;exports.FoxTableSetting=Gn;exports.FoxTabsBar=Xt;exports.FoxTabsContainer=Zt;exports.FoxTabsFrame=Do;exports.FoxTabsPane=Jn;exports.FoxText=Hn;exports.FoxTimeItem=ro;exports.FoxTimeSelectItem=io;exports.FoxToast=Fo;exports.FoxTour=_o;exports.FoxTreeItem=So;exports.FoxTreeSelectItem=wo;exports.Foxcalendarpicker=Un;exports.Foxcascaderpicker=Oo;exports.Foxdatepicker=Vo;exports.Foxpicker=Gt;exports.Group=Zl;exports.GroupSetting=xo;exports.HeaderBar=Ul;exports.HintText=Oe;exports.Indicator=Lo;exports.InfiniteLoading=Xn;exports.InnerPageScopeKey=jl;exports.InputItem=eo;exports.InputNumberItem=uo;exports.Item=ke;exports.Mapping=jt;exports.MoneyItem=so;exports.MoreButton=Bo;exports.OverLay=Wn;exports.Page=Wl;exports.PickerItem=$o;exports.PopoverDialog=Kn;exports.Popup=wt;exports.Price=qn;exports.PriorityPolicy=Ye;exports.PullRefresh=Mo;exports.RadioItem=po;exports.RateItem=yo;exports.RollingProvider=zo;exports.RowItem=jn;exports.SearchBar=Zn;exports.SelectItem=to;exports.SlotItem=zn;exports.StepsBar=No;exports.SwitchItem=bo;exports.TableItem=go;exports.TableMappingColumn=ho;exports.TableRadioColumn=mo;exports.TableSetting=Gn;exports.TabsBar=Xt;exports.TabsContainer=Zt;exports.TabsFrame=Do;exports.TabsPane=Jn;exports.Text=Hn;exports.TimeItem=ro;exports.TimeSelectItem=io;exports.Toast=Fo;exports.Tour=_o;exports.TreeItem=So;exports.TreeSelectItem=wo;exports.UniqueID=jr;exports.ValidateSchema=kr;exports.ValidateSchemaKey=et;exports.calendarpicker=Un;exports.cancelRaf=gi;exports.cascaderpicker=Oo;exports.clearNonNumber=Di;exports.compareTo=Sl;exports.createBroadcast=Dn;exports.createValidateSchema=Nn;exports.datepicker=Vo;exports.debounce=Ue;exports.debounceRef=_i;exports.decimalLength=wr;exports.default=Lv;exports.defineBroadcast=Ii;exports.defineConfigDomain=Nr;exports.defineDataItem=Er;exports.defineDomain=ql;exports.defineItem=Ne;exports.definePageState=Pr;exports.defineSimpleItem=zl;exports.deleteGlobalValidator=Mi;exports.disabledProperty=Be;exports.divide=Bl;exports.excludeProps=Ie;exports.extend=Et;exports.floatData=Pi;exports.getGlobalIcons=Rr;exports.getGlobalValidateCheckEvents=Sr;exports.getGlobalValidateResetEvents=Tr;exports.getPageContentAreaHeight=xn;exports.getPageContentAreaWidth=Sn;exports.getPageFooterAreaHeight=On;exports.getPageHeaderAreaHeight=Vn;exports.getRootDomain=$t;exports.hasSymbol=mr;exports.includeProps=it;exports.indexOf=Ni;exports.injectAbstractPageScope=Wt;exports.injectInnerPageScope=Kt;exports.integerLength=br;exports.isArray=vi;exports.isArrayLike=vr;exports.isBrowser=mt;exports.isDate=dt;exports.isESModule=Si;exports.isEmptyString=me;exports.isEqual=Xe;exports.isFunction=Cl;exports.isHidden=pr;exports.isMap=yi;exports.isNil=We;exports.isNumberString=Ll;exports.isObject=je;exports.isPlainObject=xi;exports.isPromise=yn;exports.isRegExp=Tl;exports.isSet=bi;exports.isString=dr;exports.isSubPage=Hi;exports.isSymbol=wi;exports.isTouch=Yt;exports.isWindow=gr;exports.lastIndexOf=Ei;exports.makeArray=$i;exports.merge=yr;exports.multiply=ur;exports.negate=cr;exports.nextTick=Ti;exports.numberFormat=kn;exports.objectToString=hr;exports.once=qi;exports.overrideGlobalIcons=as;exports.overrideGlobalValidateHandler=Ai;exports.picker=Gt;exports.property=Ae;exports.provideAbstractPageScope=Ir;exports.provideInnerPageScope=Hl;exports.raf=Rl;exports.readonlyProperty=Me;exports.setGlobalValidateCheckEvents=Bi;exports.setGlobalValidateHandler=Oi;exports.setGlobalValidateMessages=Li;exports.setGlobalValidateResetEvents=Ri;exports.setGlobalValidator=Fi;exports.throttle=Dr;exports.toBoolean=fe;exports.toNumber=ve;exports.toPadding=lt;exports.toPx=ye;exports.toPxDesc=ji;exports.toPxString=we;exports.toTypeString=$n;exports.toValue=pe;exports.tryTimes=En;exports.typeOf=bn;exports.unNumberFormat=fr;exports.updatePageState=kl;exports.useBroadcast=Rt;exports.useDomain=gt;exports.useExpose=be;exports.useInnerSize=An;exports.usePageState=In;exports.usePosition=Ql;exports.useRawTouch=Ut;exports.useRect=ko;exports.useSize=Yl;exports.useTouch=ri;exports.valueLength=at;