@fox-js/foxui-pc 4.0.1-108 → 4.0.1-109
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 +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(m,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(m=typeof globalThis<"u"?globalThis:m||self,r(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,r,Ze,y,Oe,Ae){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Mar 27 2024 14:11:11 GMT+0800 (中国标准时间)
|
|
3
3
|
*/const $t=window,ol=typeof window<"u";function ll(){return typeof $t<"u"?$t.requestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){$t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function al(e){ol?cancelAnimationFrame(e):clearTimeout(e)}const il=ll();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
5
|
*/function Ct(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=be(e),t=be(t),[e,t]=Qt(be(e),be(t)),o==1&&(n==1?e=Jt(e):t=Jt(t));let l=hr(e,t);return o?o==2?"-"+be(l):e.length<l.length?be(l.substring(1)):"-"+be(Jt(l)):be(l)}function Jt(e){let t="",o=e.length,n=e.split(".")[1],l=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=l>0?"0."+new Array(l).join("0")+"1":"1";return hr(t,a)}function be(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Qt(e,t){let o=e.split("."),n=t.split("."),l=o[0].length,a=n[0].length;return l>a?n[0]=new Array(Math.abs(l-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(l-a)+1).join("0")+(o[0]?o[0]:""),l=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(l||a)&&(l>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function hr(e,t){[e,t]=Qt(e,t);let o="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){o="."+o;continue}let a=parseInt(e[l])+parseInt(t[l])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var fe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(fe||{});function ft(e,t=0,o=fe.HALF_EVEN){if(o===fe.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 l=e.split("."),a=l[0],i=l[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=ft(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,gr(l[1],a,n,o)?(n?"-":"")+en(a):(n?"-":"")+a;if(l[1]){if(l[1].length<t)return(n?"-":"")+a+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&gr(s,i,n,o)&&(i=en(i),i.length>t)?(n?"-":"")+en(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function gr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===fe.DOWN||!o&&n===fe.FLOOR||o&&n===fe.CEILING)return!1;if(n===fe.UP||o&&n===fe.FLOOR||!o&&n===fe.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function en(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let l=o;l>=0;l--){let a=parseInt(e[l])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function tn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=dt(e),t=dt(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let a=n+l;if(e=dt(e.replace(".","")),t=dt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],c=i-1,f="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let T=t.length-1;T>=c&&T>=0;T--)u[T]>-1&&u[T]<e.length&&(b+=parseInt(e[u[T]--])*parseInt(t[T]));b+=s,s=Math.floor(b/10),f=b%10+f,c--}return f=dt(sl(f,a)),o==1&&(f="-"+f),f}function sl(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function dt(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 nn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=be(t.replace(".","")),l>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=be(e+new Array(l+1).join("0"));else if(l>c)e=e.replace(".",""),e=be(e+new Array(l-c+1).join("0"));else if(l<c){e=e.replace(".","");let f=e.length-c+l;e=be(e.substring(0,f)+"."+e.substring(f))}else l==c&&(e=be(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(u)>=parseInt(t);)u=Ct(u,"-"+t),c++;s+=c,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+be(ft(s,o-2))}function rn(e,t){return e=e.toString(),t=t.toString(),t=on(t),Ct(e,t)}function on(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),pr(e),pr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=rn(e,tn(t,ft(nn(e,t),0,fe.FLOOR)));return o+n}function pr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Qt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ae{value;static RoundingModes=fe;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=be(o);let l="";o[0]=="-"&&(l="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=l+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=l+be(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ae.validate(t)}getValue(){return this.value}static getPrettyValue(t,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");t=ae.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(l?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ae.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=ae.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ft(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ae(ft(this.value,t,o))}static floor(t){return t=ae.validate(t),t.indexOf(".")===-1?t:ae.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.FLOOR)}static ceil(t){return t=ae.validate(t),t.indexOf(".")===-1?t:ae.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.CEILING)}static add(t,o){return t=ae.validate(t),o=ae.validate(o),Ct(t,o)}add(t){return new ae(Ct(this.value,t.getValue()))}static subtract(t,o){return t=ae.validate(t),o=ae.validate(o),rn(t,o)}subtract(t){return new ae(rn(this.value,t.getValue()))}static multiply(t,o){return t=ae.validate(t),o=ae.validate(o),tn(t,o)}multiply(t){return new ae(tn(this.value,t.getValue()))}static divide(t,o,n){return t=ae.validate(t),o=ae.validate(o),nn(t,o,n)}divide(t,o){return new ae(nn(this.value,t.getValue(),o))}static modulus(t,o){return t=ae.validate(t),o=ae.validate(o),mr(t,o)}modulus(t){return new ae(mr(this.value,t.getValue()))}static compareTo(t,o){return t=ae.validate(t),o=ae.validate(o),yr(t,o)}compareTo(t){return yr(this.value,t.getValue())}static negate(t){return t=ae.validate(t),on(t)}negate(){return new ae(on(this.value))}}function br(e,t){return ae.multiply(`${e}`,`${t}`)}function ln(e,t,o=8){return ae.divide(`${e}`,`${t}`,o)}function an(e,t){return e=`${e}`,t=`${t}`,ae.compareTo(e,t)}function vr(e){return ae.negate(e)}function Et(e,t=-1,o=!1,n=3,l=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let d="",b=s.split("").reverse();for(let T=0;T<b.length;T++)d+=b[T]+((T+1)%n==0&&T+1!=b.length?l:"");u.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function wr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ul=il,cl=Array.isArray,fl=e=>Nt(e)==="[object Map]",dl=e=>Nt(e)==="[object Set]",hl=e=>e instanceof Date,sn=e=>typeof e=="function",Sr=e=>typeof e=="string",gl=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",ml=e=>Ye(e)&&sn(e.then)&&sn(e.catch),Tr=Object.prototype.toString,Nt=e=>Tr.call(e),un=e=>Nt(e)==="[object Object]",xr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pl(e){return e.__esModule||xr&&e[Symbol.toStringTag]==="Module"}const yl=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Je(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(l===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},t[i]=Je(l,c,u)}else u!==void 0&&(t[i]=u)}}return t}function cn(e,t,o=!1){if(!o)Je(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!un(i))continue;a=cn(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!un(i))continue;a=cn(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}}return e}const fn=yl?Promise.resolve():null;function bl(e,...t){fn!==null?t&&t.length>0?fn.then(()=>{e(t)}):fn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function oe(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 vl={"[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 kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):vl[o]||"object"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function Ot(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Cr(e){let t=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||$r(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Er(e,t){let o=+t.length,n=0,l=e.length;for(;n<o;n++)e[l++]=t[n];return e.length=l,e}function wl(e,t=[]){let o=t;return e!=null&&(Cr(Object(e))?Er(o,typeof e=="string"?[e]:e):o.push(e)),o}function Pe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=kt(e),n=kt(t);if(o!==n)return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],u=e[s],c=t[s];if(!Pe(u,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],i=t[l];if(!Pe(a,i))return!1}return!0}return!1}const nt=typeof window<"u";function dn(e){return e==null}function Nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function kr(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Or(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function Vr(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Fr(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function Sl(e,t=!0,o=!0){t?e=Fr(e,".",/\./g):e=e.replace(/\./g,""),o?e=Fr(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Tl(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Pe(e,o))return!0}):t.indexOf(e)}function xl(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Pe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ht(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Ir(e,...t){const o={};return t.forEach(n=>{for(const l in n)o[l]=e[l]}),o}function we(e,...t){const o=[];t.forEach(l=>{Reflect.apply([].push,o,Reflect.ownKeys(l))});const n={};for(const l in e)o.includes(l)||(n[l]=e[l]);return n}const $l=(e,t,o)=>{const n=Object.assign({},e),l=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{l.hasOwnProperty(a)?typeof l[a]=="string"&&(n[a]=t[l[a]]):t[a]&&(n[a]=t[a])}),n):e},he=Symbol.for("BroadcastKey");class hn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Nr(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const a=[];if(l){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const l=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,o){this.callbacks.set(t,o)}}function Vt(e,t,o,n){const l=new hn(t,e,o);if(n&&typeof n=="object")for(const a in n)l.on(a,n[a]);return l}function Cl(e,t,o){const n=o;if(n[he])return n[he];const l=r.inject(he,null),a=new hn(l,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[he]=a,r.provide(he,a),r.onUnmounted(()=>{a.destroy(),n[he]=void 0}),a}function gt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Qe=e=>e.default??e;class El{error(t,o){const n=o,l=gt(o);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=gt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=gt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const l=n,a=gt(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Rr=new El;function Nl(e){Rr=e}function kl(e,t){Qe(Ze).setValidator(e,t)}function Ol(e){Qe(Ze).deleteValidator(e)}let Dr=["blur","clear"];function Vl(e){Dr=e}function Ar(){return Dr}let Mr=["focus","change"];function Fl(e){Mr=e}function Lr(){return Mr}function Il(e){Qe(Ze).messages(e)}function mt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const l=t.findIndex(a=>a.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function Ft(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const _e=Symbol("ValidateSchemaKey");class qr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=Ft(mt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Ft(n);const l=mt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const l=Rr;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?Qe(Ze).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?Qe(Ze).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Qe(Ze).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=mt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ft(t):this.rules=Ft([t]);const n=mt(this.attrRules,this.rules);r.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=mt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const l={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=Qe(Ze),u=new s(l),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let b="error";Array.isArray(d.errors)&&d.errors.length>0&&(b=d.errors[0].message??b,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(b)}return d}).catch(d=>{const b=d.message??`${d}`;return this.error(b),d})}}return Promise.resolve({pass:!0})}}function It(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new qr(t,o,e)}const Br=Symbol.for("EventEmitterKey");class Rl{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(a=>a===o);l!==-1&&n.splice(l,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function pt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function jr(e,t){let o=0;return function(...n){const l=new Date().getTime();l-o<t||(o=l,Reflect.apply(e,null,[...n]))}}function Dl(e,t){const o=pt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(a){o(a,l)}}))}function Al(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Rt(e,t,o,n=0,l=!0,a){let i=t,s=0;if(l){const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ie=Symbol("DomainKey"),rt=Symbol("DataItemsKey");class Dt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const l=t[n];o.length>0&&o.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];o.push(l)}n=n._parent}return o}}const Ml=new Dt;function ot(){return Ml}function ze(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ie]??r.inject(Ie,null):r.inject(Ie,null)}const gn=Symbol("OriginalDateKey");function mn(e,t,o=[],n){const l=r.getCurrentInstance(),a=l?.proxy;let i=r.inject(Ie,null);i===null&&(i=ot());const s=e||t.prop||t.name,u=new Dt(s);u.parent=i;const c=h=>{a[gn]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,d=()=>a[gn]??null,b=h=>{const p={};Je(!0,p,r.toRaw(h)),a[gn]=p};r.isReactive(t)||typeof t=="function"?r.watch(t,h=>{u.merge(h,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&b(t.modelValue),a[Ie]=u,r.provide(Ie,u);let T=null,g=null;if(l!==null){const h=r.inject(he,null);T=Vt(a,h,s,n),u.broadcast=T,a[he]=T,r.provide(he,T),a.broadcast=(x,w,...I)=>Reflect.apply(T.emit,T,[x,w,...I]);const p=r.inject(_e,null);g=It(a,p,{componentName:""}),u.validateSchema=g,a[_e]=g,r.provide(_e,g),a[rt]=new Map,a.validate=(x=!0)=>{const w=[];let I=null;const P={deep:!1};if(x===!0)I={name:"*"};else if(Array.isArray(x)&&x.length>0){const R=x;I={name:A=>A?R.indexOf(A)!==-1:!1}}else if(x!=null&&typeof x=="object"){const R=x;if(P.ignoreHidden=R.ignoreHidden,Array.isArray(R.include)&&R.include.length>0){const A=R.include;I={name:D=>D?A.indexOf(D)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const A=R.exclude;I={name:D=>D?A.indexOf(D)===-1:!1}}else I={name:"*"}}if(I){const R=T?.emitToChildren(I,"validate",P);R&&Reflect.apply([].push,w,R)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(R=>{let A=[];return R.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(A=[...A,...D.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(x,w=!0,I=!1)=>{if(I===!0){Reflect.ownKeys(x).forEach(R=>{let A=String(R);const _=zr(u,A,{componentName:"",fieldName:A,pureDataValidate:!0},T,g);a[rt].set(A,_);const M=x[A];M&&_.validateSchema.setRule(M)});return}if(w){const P=Reflect.ownKeys(x),R={name:A=>P.includes(A)};T?.emitToChildren(R,"setNameValidateRules",x,!1)}},a.clearValidate=(x=!0)=>{let w=null;if(x===!0)w={name:"*"};else if(Array.isArray(x)&&x.length>0){const I=x;w={name:P=>P?I.indexOf(P)!==-1:!1}}else if(x!=null&&typeof x=="object"){const I=x;if(Array.isArray(I.include)&&I.include.length>0){const P=I.include;w={name:R=>R?P.indexOf(R)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const P=I.exclude;w={name:R=>R?P.indexOf(R)===-1:!1}}else w={name:"*"}}w&&T?.emitToChildren(w,"clearValidate",!1)},a.resetFields=x=>{const w=f();if(!w)return;const I={};if(Je(!0,I,d()??{}),Array.isArray(x))x.forEach(P=>{w[P]=I[P]});else if(x&&Array.isArray(x.include))(x.include??[]).forEach(R=>{w[R]=I[R]});else if(x&&Array.isArray(x.exclude)){let P=x.exclude??[];Reflect.ownKeys(I).forEach(R=>{P.includes(R)||(w[R]=I[R])})}else Object.assign(w,I);a.clearValidate(x)},a.setModelValue=(x,w)=>{!w||w===s?c(x):T?.emitToChildren({name:w},"setModelValue",x)},a.getModelValue=()=>f()}return r.onUnmounted(()=>{u.destroy(),a[Ie]=void 0,a[rt]&&(a[rt].clear(),a[rt]=void 0),T!==null&&(T.destroy(),a[he]=void 0),g!==null&&(g.destroy(),a[_e]=void 0)}),u}function Pr(e,t,o=[]){const l=r.getCurrentInstance()?.proxy;let a=r.inject(Ie,null);a===null&&(a=ot());const i=e||t.prop||t.name,s=new Dt(i);return s.parent=a,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),l[Ie]=s,r.provide(Ie,s),r.onUnmounted(()=>{s.destroy(),l[Ie]=void 0}),s}function _r(e,t,o){const l=ze(e)?.get("rules");if(!l)return;let a=l[o];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const l=r.getCurrentInstance()?.proxy,a=t??"",i=r.inject(he,null),s=Vt(l,i,a,o);l[he]=s,r.provide(he,s),l.broadcast=(g,h,...p)=>Reflect.apply(s.emit,s,[g,h,...p]);const u=r.inject(_e,null);e.fieldName=e.fieldName??a;const c=It(l,u,e);l[_e]=c,r.provide(_e,c),_r(l,c,a),l.validate=(g=null)=>{const h=[];let p=!1,x=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)x=!0,p=!0;else if(g&&typeof g=="object"){const w=g;w.ignoreHidden===!0&&Ot(l.$el)?x=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),x=!0),p=w.deep??!1}else typeof g=="boolean"&&(p=g),x=!0;if(x){const w=c?.validate();h.push(w)}if(p){let w=null;const I={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const P=g;w={name:R=>R?P.indexOf(R)!==-1:!1}}else if(g!=null&&typeof g=="object"){const P=g;if(I.ignoreHidden=P.ignoreHidden,Array.isArray(P.include)&&P.include.length>0){const R=P.include;w={name:A=>A?R.indexOf(A)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const R=P.exclude;w={name:A=>A?R.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const P=s.emitToChildren(w,"validate",I);Reflect.apply([].push,h,P)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let I=[];return w.forEach(P=>{P.pass===!1&&Array.isArray(P.errors)&&(I=[...I,...P.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>c?.setRule(g),l.setNameValidateRules=(g,h=!1)=>{const p=g[a];if(p&&c?.setRule(p),h){const x={name:w=>Reflect.ownKeys(g).includes(w)};s.emitToChildren(x,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const p=g;h={name:x=>x?p.indexOf(x)!==-1:!1}}else if(g!=null&&typeof g=="object"){const p=g;if(Array.isArray(p.include)&&p.include.length>0){const x=p.include;h={name:w=>w?x.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const x=p.exclude;h={name:w=>w?x.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new Rl(l);l[Br]=f;const d=pt((g="validate")=>{g==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ar()).forEach(g=>{f.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Lr()).forEach(g=>{f.on(g,h=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),l[he]=void 0,c.destroy(),l[_e]=void 0,f.destroy(),l[Br]=void 0}),{broadcast:s,validateSchema:c,emitEvent:(g,...h)=>{Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{Reflect.apply(f.off,f,[h])}}}function zr(e,t,o,n,l){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};const u=It({},l,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let b=!1,T=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)T=!0,b=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),T=!0,b=g.deep??!1}else typeof f=="boolean"&&(b=f),T=!0;if(T){const g=u?.validate();d.push(g)}if(b){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;g={name:x=>x?p.indexOf(x)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const x=p.include;g={name:w=>w?x.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const x=p.exclude;g={name:w=>w?x.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const p=c.emitToChildren(g,"validate",h);Reflect.apply([].push,d,p)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(h=[...h,...p.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};const c=Vt(null,n,i,a);return{broadcast:c,validateSchema:u}}const Se=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e,t)}px`:"";function ue(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let l=Number(e.substring(0,o)),a=1;if(nt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return l*=a,l}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ge="PageStateKey";function Me(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ue(e.right))),t}function pn(e,t,o={},n=!0,l=-1,a=-1,i=0,s=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight??-1),e.headerPadding=Me(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight??-1),e.footerPadding=Me(o.footerPadding??t.footerPadding),e.contentPadding=Me(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,a):e.height=ue(a)-ue(i,a)-ue(s,a),e.width=ue(o.width??t.width??0,l)}}function Hr(e,t={}){const o={top:null,left:null,bottom:null,right: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},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=ue(l.top),n.safeAreaBottom=ue(l.bottom),n.safeAreaLeft=ue(l.left),n.safeAreaRight=ue(l.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;pn(n,a,t,!0,i,s,u,c);const f=r.reactive(n),d=e.getForParent(Ge);d&&(n.height=Mt(e,d),n.width=Lt(e,d),r.watch([()=>Mt(e,d),()=>Lt(e,d)],([T,g])=>{f.height=T,f.width=g}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,g,h=-1,p=-1,x=0,w=0])=>{pn(f,g,t,b,h,p,x,w)}),e.set(Ge,f),f}function At(e){return e.get(Ge)}function yt(e,t){if(t=t??e.get(Ge),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function bt(e,t){if(t=t??e.get(Ge),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Mt(e,t){if(t=t??e.get(Ge),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=yt(e,t),n=bt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Lt(e,t){return t=t??e.get(Ge),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ll(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function ql(e){return!!e.getForParent(Ge)}var Ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ve||{});function yn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,o=1,n){const l=ze();return l==null?e:o===0?r.computed(()=>{const a=l.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(yn(u,n))return u}const i=e.value;return yn(i,n)?i:null}):r.computed(()=>{const a=e.value;return yn(a,n)?a:l?.get(t)})}function Ce(e){return $e(e,"readonly",0,function(o){return oe(o)})}function Ee(e){return $e(e,"disabled",0,function(o){return oe(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let l=n.value;typeof o=="function"&&(l=o(n.value));const a=r.ref(l);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const Wr=new Map,qt=new Map;let bn=null;function Bl(e){bn=e}function Kr(e,t,o){if(o){let n=qt.get(o);n||(n=new Map,qt.set(o,n)),n.set(e,t)}else Wr.set(e,t)}function Le(e,t,o){!o&&bn&&(o=bn(e)??void 0);let n=null;if(o){let l=qt.get(o);l&&(n=l.get(t))}return n||(n=Wr.get(t)),n}function jl(e,t){for(let o in e){const n=e[o];Kr(o,n,t)}}function Pl(e){qt.delete(e)}function _l(){return{top:0,left:0,bottom:0,right:0}}function zl(e=0,t=0){if(nt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:o,height:n-ue(e,n)-ue(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Hl{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ot();if(this.initPageLayout(o,l),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=jr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,l)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&l.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,a=Je({},_l(),t.safeAreaInset),i=zl(n,l),s=Je({},i.pageLayout,t.pageLayout);o=o??ot(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",l),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Bl(t)}setAPI(t,o,n){Kr(t,o,n)}getAPI(t,o,n){return Le(t,o,n)}batchSetAPI(t,o){jl(t,o)}clearScopeAPI(t){Pl(t)}getRootDomain(){return ot()}}const Wl=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Kl=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Yl=e=>{Wl.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Kl.forEach(t=>{e.use(t)})};function le(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Yr={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}},Gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ur=[];for(const e in Gr)Ur.push(e);function ye(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Gl=Symbol.for("InnerPageScopeKey"),Ul=(e,t)=>({inheritAttrs:!0,props:{...ge,...Yr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(o,n){const l=mn(o.name,o);if(l){const c=Hr(l,o);ye({getPageContentHeight:()=>Mt(l,c),getPageContentWidth:()=>Lt(l,c),getPageHeaderHeight:()=>yt(l,c),getPageFooterHeight:()=>bt(l,c)});const f=r.inject(Gl,!1);c&&f&&(c.contentHeight="100%")}const a=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(c,f=!1)=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(c,!0,f)};return r.watch([()=>o.rules,()=>o.pureDataRules],([c,f],[d,b])=>{if(c&&d){const T=r.toRaw(d),g=r.toRaw(c),h=g?Reflect.ownKeys(g):[];(T?Reflect.ownKeys(T):[]).forEach(x=>{h.includes(x)||(g[x]=[])}),u(g)}if(f&&b){const T=r.toRaw(b),g=r.toRaw(f),h=g?Reflect.ownKeys(g):[];(T?Reflect.ownKeys(T):[]).forEach(x=>{h.includes(x)||(g[x]=[])}),u(g,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const c=r.toRaw(o.rules);u(c)}if(o.pureDataRules){const c=r.toRaw(o.pureDataRules);u(c,!0)}}),r.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:Xl,create:Zl,scope:uf}=le("page"),Jl=Zl(Ul(Xl));function Ql(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o},vn=Re(Jl,[["render",Ql]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Sn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),l=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-a-i}}const ea=(e,t,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(l,a){const i=ze(),s=i?At(i):null;s&&(s.headerMounted=!0);const u=e,c=r.computed(()=>({[u]:!0,[`${u}--border`]:l.border,[`${u}--fixed`]:l.fixed,[`${u}--safe-area-inset-top`]:l.safeAreaInsetTop})),f=r.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${l.align}`]:!0})),d=l.height!==null&&l.height!==void 0?ue(l.height):null,b=r.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const O=Me(l.padding??s.headerPadding);return Object.assign(k,O),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(O.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),l.padding){const O=Me(l.padding);Object.assign(k,O)}return k}),T=r.ref(null),g=()=>{if(s&&T.value&&!Ot(T.value)){if(!n){const k=wn(T.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;r.onMounted(()=>{s&&(Rt(g,50,5,50,!0),window.ResizeObserver&&T.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(T.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const p=r.computed(()=>{const k={};return b.value.height!==null&&b.value.height!==void 0&&(k.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(k.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(k.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(k.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(k.paddingBottom=`${b.value.bottom}px`),k}),x=r.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function I(){a.emit("click-title")}function P(){a.emit("click-right")}function R(){a.emit("click-right-text")}const A=()=>{if(!l.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const O=r.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(O)}else if(l.leftIcon){const O=r.h("view",{class:"left-icon",onClick:w},[r.h(l.leftIcon)]);k.push(O)}if(l.leftText){const O=r.h("view",{class:"left-text",onClick:w},[l.leftText]);k.push(O)}}return k.length===0?null:r.h("view",{class:"fox-header-bar__left"},k)},D=()=>{if(!l.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(l.rightText){const O=r.h("view",{class:"right-text",onClick:R},[l.rightText]);k.push(O)}if(a.slots.rightIcon){const O=r.h("view",{class:"right-icon",onClick:P},[a.slots.rightIcon()]);k.push(O)}else if(l.rightIcon){const O=r.h("view",{class:"right-icon",onClick:P},[r.h(l.rightIcon)]);k.push(O)}}return k.length===0?null:r.h("view",{class:"fox-header-bar__right"},k)},_=()=>{if(!l.titleShow)return null;const k=[],O=a.slots.default?a.slots.default():null;if(O)k.push(O);else{if(l.title){const q=r.h("view",{class:"title-text"},[l.title]);k.push(q)}if(a.slots.titleIcon){const q=r.h("view",{class:"title-icon",onClick:I},[a.slots.titleIcon()]);k.push(q)}else if(l.titleIcon){const q=r.h("view",{class:"title-icon",onClick:I},[r.h(l.titleIcon)]);k.push(q)}}return k.length===0?null:r.h("view",{class:"fox-header-bar__title"},k)},M=()=>{const k=[],O=a.slots.bottom?a.slots.bottom():null;return O&&k.push(O),k.length===0?null:r.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!x.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const q=[],$=A();$&&q.push($);const S=_();S&&q.push(S);const N=D();if(N&&q.push(N),q.length>0){const B=r.h("view",{class:f.value},q);k.push(B)}const W=M();W&&k.push(W)}if(k.length===0)return null;const O={class:c.value,style:p.value,ref:T};return r.h("view",O,k)}}}),{componentName:ta,create:na,scope:ra}=le("header-bar"),Tn=na(ea(ta,ra,Oe.ArrowLeft));function oa(e,t,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,l){const a=ze(),i=a?At(a):null,s=r.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ue(n.height):null,c=r.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Me(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Me(n.padding);Object.assign(g,h)}return g}),f=r.ref(null),d=()=>{if(i&&f.value&&!Ot(f.value)){if(!o){const g=wn(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let b=null;r.onMounted(()=>{i&&(Rt(d,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{d()}),b.observe(f.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const T=r.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Se(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Se(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Se(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Se(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Se(c.value.bottom)),g});return()=>{const g=l.slots.default?l.slots.default():[],h={ref:f,class:s.value,style:T.value};return r.h("view",h,g)}}}}const{componentName:la,create:aa,scope:cf}=le("footer-bar"),xn=aa(oa(la));function ia(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=ze(),l=r.computed(()=>({[e]:!0})),a=n?At(n):null,i=r.computed(()=>{const c={};if(n&&a){if(o.padding){const T=Me(o.padding);Object.assign(a.contentPadding,T)}const f=yt(n,a),d=bt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,c.height=b,a.contentPadding.top||f>0){const T=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+T}px`}if(a.contentPadding.bottom||d>0){const T=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+T}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const f=Me(o.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),s=r.ref(null),u=()=>{if(a&&s.value){const c=Sn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return r.onMounted(()=>{u()}),n&&a&&r.watch([()=>yt(n),()=>bt(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:sa,create:ua,scope:ff}=le("content"),ca=ua(ia(sa));function fa(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const $n=Re(ca,[["render",fa]]),lt="GroupStateKey",Xr=Symbol.for("GroupScopeKey");function Bt(){return r.inject(Xr,!1)}function jt(e=!0){r.provide(Xr,e)}function da(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const l=t[n];dn(l)||(e[n]=l)})}function ha(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};da(n,t);const l=r.shallowRef(n),a=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(lt,a),a}function Cn(e,t,o=-1,n=-1,l=!1,a,i,s){const u=e.get(lt);if(!u)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=ue(a),d=ue(i);s||(s=c.type??"grid");const b=()=>{const T=t===""||t===-1,g=ue(t);let h=ve(o);const p=ue(n);if(!T){let I=(g-(h-1)*p)/h;for(;d!==-1&&I>d;)h++,I=(g-(h-1)*p)/h;for(;f!==-1&&h>1&&I<f;)h--,I=(g-(h-1)*p)/h}let x=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,x=!0),w.value.gutter!==p&&(w.value.gutter=p,x=!0),w.value.type!==s&&(w.value.type=s,x=!0),x&&r.triggerRef(w)};if(l)b();else{const T=++u.passport;setTimeout(()=>{T===u.passport&&b()},50)}}function Pt(e,t=!1){let o;return t?o=e.getForParent(lt):o=e.get(lt),o.layout}function _t(e,t=!1){let o;return t?o=e.getForParent(lt):o=e.get(lt),o.order}function Zr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function zt(e,t,o=1,n=0,l){const a={};let i=0;l?i=ue(l):i=Zr(t.column,o),i>0&&(a.width=`${i}%`);const s=Zr(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Ht(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,c=u+(t.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let l=ve(o);if(l===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(l>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ve(n)%t.column;let i=(e.index+a)%t.column,s=i+l;return s>t.column?(i=0,s=i+l,e.index=e.index+(t.column-i)+l):e.index=e.index+a+l,a>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Jr=Symbol("RollingStateKey");function ga(e){r.provide(Jr,e)}function ma(){return r.inject(Jr,null)}function En(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-l-a}else t=e.offsetHeight;return t}function pa(e){let t=En(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=En(o),document.body.removeChild(o)}return t}function ya(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ba={...ge,...Yr,...Gr};function va(e,t,o){return{props:ba,emits:["update:collapse"],setup(n,l){const a=mn(n.name,n,Ur),i=ha(a,{type:n.type}),s=Bt();jt(!0);const u=n.rollingDisplay?ma():null,c=r.ref(null),f=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>s&&a?Pt(a,!0).value:null),b=r.getCurrentInstance(),T=(V,j=!1)=>{const G=b?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(V,!0,j)};r.watch([()=>n.rules,()=>n.pureDataRules],([V,j],[G,L])=>{if(V&&G){const C=r.toRaw(G),H=r.toRaw(V),U=H?Reflect.ownKeys(H):[];(C?Reflect.ownKeys(C):[]).forEach(ie=>{U.includes(ie)||(H[ie]=[])}),T(H)}if(j&&L){const C=r.toRaw(L),H=r.toRaw(j),U=H?Reflect.ownKeys(H):[];(C?Reflect.ownKeys(C):[]).forEach(ie=>{U.includes(ie)||(H[ie]=[])}),T(H,!0)}},{deep:!0});const g=e,h=r.computed(()=>{const V={};V.height=N.value;const j=s?_t(a,!0):null;if(d.value&&j){if(d.value.type==="grid"){const G=Ht(j,d.value,n.span,n.offset);Object.assign(V,G)}else if(d.value.type==="flow"){const G=zt(j,d.value,n.span,n.offset,n.width);Object.assign(V,G)}}else if(n.width){const G=Se(n.width);V.width=G}return V}),p=r.computed(()=>{const V=i.layout.value.type;return V==="grid"||V==="flow"?{[`${g}--${V}`]:!0,[`${g}--${V}-justify-${n.justify}`]:!0,[`${g}--${V}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${V}`]:!0,[`${g}--gutter`]:!0}}),x=r.computed(()=>{if(i.layout.value.type==="grid"){let j="";if(n.columnWidth)j=`repeat(auto-fill, ${n.columnWidth})`;else{const G=ya(_.value,i.layout.value.column,i.layout.value.gutter);j=`repeat(${i.layout.value.column}, ${G})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":j}}}),w=r.toRef(n,"gutter"),I=r.toRef(n,"column"),P=r.computed(()=>s||f.value?!0:oe(n.isWrap)),R=[],A=V=>{R.push(V)},D=()=>{let V=R.length;R.splice(0,V)},_=r.ref(-1),M=V=>{const j=Sn(V).width;j>0&&j!==_.value&&(_.value=j)};Cn(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([_,I,w],([V,j,G])=>{i.order.index=0,Cn(a,V,j,G,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=r.computed(()=>W.value?n.expandText??"":n.collapseText??""),O=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!W.value,"is-collapse":W.value})),$=r.ref(),S=r.ref(),N=r.computed(()=>B.value||Se(n.height)||""),W=r.ref(!1),B=r.ref(""),J=r.ref(!1);let Y=-1;const Z=(V,j=!0)=>{const G=$.value;if(G&&W.value!==V){if(Y=Y===-1?pa(G):Y,J.value=!0,j)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",V||(B.value="",J.value=!1)},V){let L=0;n.collapseHeight?L=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(L=S.value.offsetHeight),B.value=`${Y}px`,r.nextTick(()=>{B.value=`${L}px`})}else B.value=`${Y}px`;else if(V){let L=0;n.collapseHeight?L=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(L=S.value.offsetHeight),B.value=`${L}px`}else J.value=!1,B.value=`${Y}px`;W.value=V,l.emit("update:collapse",V)}};r.watch(()=>n.collapse,V=>{Z(V)});const ne=()=>{K()},K=V=>{V=V??!W.value,Z(V)};ye({toggleCollapse:K,doLayout:()=>{R[0]&&(M(R[0]),Cn(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let te=null,ee=!0;const F=V=>{if(n.rules){const j=r.toRaw(n.rules);T(j)}if(n.pureDataRules){const j=r.toRaw(n.pureDataRules);T(j,!0)}if(nt&&(V&&Z(oe(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const j=R[0];M(j),window.ResizeObserver&&(te=new window.ResizeObserver(()=>{M(j)}),te.observe(j))}},X=()=>{te?.disconnect(),te=null},z=!f.value||u?.acquire();z&&(c.value=f.value?!0:null),r.onMounted(()=>{if(z&&(F(ee),ee=!1),f.value&&u){let V=null,j=u.initialHeight;u.observe($.value,G=>{if(G!==c.value)if(G)c.value=!0,W.value||(B.value=""),V=setTimeout(()=>{V=null,c.value!==!1&&(F(ee),ee=!1)},100);else{if(V!==null&&clearTimeout(V),c.value=!1,!W.value)if(ee)B.value=u.initialHeight;else{let L=En($.value);L<=0?B.value=j:(B.value=`${L}px`,j=B.value)}ee||X()}})}}),r.onUnmounted(()=>{te?.disconnect(),u&&u.unobserve($.value)});const v=(V="right")=>{const j=[];if(k.value){const C={class:O.value},H=r.h("span",C,[k.value]);j.push(H)}const G={class:q.value},L=o(n.collapseIcon,G);return L&&j.push(L),j.length>0?r.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${V}`]:!0},onClick:ne},j):null},E=(V,j,G,L)=>{const C={...p.value};return j===0&&(C[`${g}__first`]=!0),G>=L-1&&(C[`${g}__last`]=!0),r.h("div",{ref:A,key:`${j}`,class:C,style:x.value},V)};return()=>{if(f.value&&c.value!==!0){const C=n.tag||"div";return r.h(C,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const V=[];let j=0;if(l.slots.header){const C={key:`${j++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},H=r.h("div",C,[l.slots.header()]);V.push(H)}else{const C=[],H=n.collapsePosition==="left";if(H&&n.showCollapse){const U=v("left");U&&C.push(U)}if(n.title||l.slots.title){if(n.showMark){const U={class:{[`${g}__header-mark`]:!0}};n.markColor&&(U.style={background:n.markColor});const re=r.h("div",U);C.push(re)}if(l.slots.title){const U=r.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);C.push(U)}else if(n.title){const U=r.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);C.push(U)}}if(l.slots.toolbar&&C.push(l.slots.toolbar()),!H&&n.showCollapse){const U=v("right");U&&C.push(U)}if(C.length>0){const U={key:`${j++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},re=r.h("div",U,C);V.push(re)}}D();const G=l.slots.default?l.slots.default():[],L=i.layout.value.type;if(L==="grid"){const C=E(G,j++,0,G.length);V.push(C)}else if(L==="flow"){const C=E(G,j++,0,G.length);V.push(C)}else for(let C=0;C<G.length;C++){const H=G[C],U=E([H],j++,C,G.length);V.push(U)}if(P.value){const C=n.tag||"div";return r.h(C,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[V])}else return V}}}}const{componentName:wa,create:Sa,scope:Ta}=le("group"),Nn=Sa(va(wa,Ta,(e,t)=>(e=e??Oe.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function xa(e){return e===window}const $a=/matrix\((.+)\)/,Qr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(xa(t))return{x:0,y:0};let o=0,n=0,l=t;for(;l!==null;)o+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let a=0,i=0,s=0,u=0;for(l=t;l!==document;){i+=l.scrollTop,a+=l.scrollLeft;const{transform:c}=window.getComputedStyle(l);if(c){const f=$a.exec(c);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}l=l.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ca{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Ea{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a||(a=new Ca,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const eo=new Ea,to={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:Na,create:ka}=le("price"),Oa=ka({props:{...to},setup(e){const t=r.computed(()=>({[Na]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ht(e.price)==0?"":Et(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:l,decimalText:a}}}),Va=["innerHTML"],Fa=["innerHTML"];function Ia(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Va)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Fa)):r.createCommentVNode("",!0)],2)}const Wt=Re(Oa,[["render",Ia]]),{componentName:kn,create:Ra}=le("hint-text"),Da=Ra({components:{Price:Wt},props:{...to,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,t){const o=r.ref({top:null,right:null,bottom:null,left:null}),n=r.ref({x:0,y:0}),l=r.ref(0),a=r.ref(0),i=r.ref(e.placement),s=r.ref(!1),u=r.ref(null),c=(O,q,$,S,N,W)=>{const B=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Y=O.split("-");let Z=[];Y[0]==="top"?Z=["top","bottom","right","left"]:Y[0]==="bottom"?Z=["bottom","top","right","left"]:Y[0]==="left"?Z=["left","top","bottom","right"]:Y[0]==="right"&&(Z=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},K=[];for(let Q=0;Q<Z.length;Q++){const te=Z[Q];if(K[0]=te,Y[1]&&(K[1]=Y[1]),te==="top"){const ee=q.y-W-e.arrowSize-e.offset;if(ee>=0){ne.top=ee;let F=0;Y[1]==="start"?F=q.x:Y[1]==="end"?F=q.x+$-N:F=q.x+$/2-N/2;const X=B-F-N;X<0?(F+=X,d.value=-X):d.value=0,ne.left=F<0?0:F;break}}else if(te==="bottom"){const ee=q.y+S+e.arrowSize+e.offset;if(ee+W<=J){ne.top=ee;let F=0;Y[1]==="start"?F=q.x:Y[1]==="end"?F=q.x+$-N:F=q.x+$/2-N/2;const X=B-F-N;X<0?(F+=X,d.value=-X):d.value=0,ne.left=F<0?0:F;break}}else if(te==="left"){const ee=q.x-N-e.arrowSize-e.offset;if(ee>=0){ne.left=ee;let F=0;Y[1]==="start"?F=q.y:Y[1]==="end"?F=q.y+S-W:F=q.y+S/2-W/2,ne.top=F<0?0:F;break}}else if(te==="right"){const ee=q.x+$+e.arrowSize+e.offset;if(ee+N<=B){ne.left=ee;let F=0;Y[1]==="start"?F=q.y:Y[1]==="end"?F=q.y+S-W:F=q.y+S/2-W/2,ne.top=F<0?0:F;break}}}return{bestPlacement:K.join("-"),bestInsetRect:ne}},f=(O,q,$=10)=>{if(!nt||q===!1||!O)return;n.value=Qr(e.reference),l.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const S=u.value.offsetHeight,N=u.value.offsetWidth,{bestPlacement:W,bestInsetRect:B}=c(e.placement,n.value,l.value,a.value,N,S);i.value=W,o.value=B,s.value=!0},d=r.ref(0),b=pt(()=>{f(e.message,e.visible)},10),T=r.ref(e.visible);r.watch(()=>e.visible,O=>{T.value=O});const g=r.computed(()=>T.value&&h.value),h=r.ref(!0),p=pt(O=>{const q=O[0];q&&(h.value=q.isIntersecting)},10),x=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([O,q])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),r.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),eo.watch(e.reference,b),x.observe(e.reference)}),r.onBeforeMount(()=>{eo.unwatch(e.reference,b),x.unobserve(e.reference),x.disconnect()});const w=r.computed(()=>{const O={[kn]:!0};return i.value.startsWith("top")?O["is-top"]=!0:i.value.startsWith("right")?O["is-right"]=!0:i.value.startsWith("bottom")?O["is-bottom"]=!0:i.value.startsWith("right")&&(O["is-right"]=!0),e.size==="small"?O["is-small"]=!0:e.size==="large"&&(O["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(O[`${e.customClass}`]=!0),O}),I=r.computed(()=>{const O={};o.value.top!==null&&(O.top=`${o.value.top}px`),o.value.right!==null&&(O.right=`${o.value.right}px`),o.value.bottom!==null&&(O.bottom=`${o.value.bottom}px`),o.value.left!==null&&(O.left=`${o.value.left}px`),e.autoFit&&(O["min-width"]=`${l.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return O["max-width"]=`${q}px`,s.value&&(O.opacity="1"),e.transition||(O.transition="none"),e.zIndex&&(O["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(O,e.customStyle),O}),P=r.computed(()=>{const O=[`${kn}__content`];return e.customTextClass&&O.push(e.customTextClass),O}),R=r.computed(()=>{const O={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(O,e.customTextStyle),O}),A=r.computed(()=>({[`${kn}__arrow`]:!0})),D=r.computed(()=>{const O={};return e.showArrow?(O.width=`${e.arrowSize}px`,O.height=`${e.arrowSize}px`,i.value==="top"?(O.left="50%",O.bottom=`-${e.arrowSize}px`,O.transform=" translate(-50%, 0%)"):i.value==="top-start"?(O.left=`${e.arrowOffset+d.value}px`,O.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(O.right=`${e.arrowOffset-d.value}px`,O.bottom=`-${e.arrowSize}px`):i.value==="right"?(O.left=`-${e.arrowSize}px`,O.top="50%",O.transform=" translate(0%, -50%)"):i.value==="right-start"?(O.left=`-${e.arrowSize}px`,O.top=`${e.arrowOffset}px`):i.value==="right-end"?(O.left=`-${e.arrowSize}px`,O.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(O.left="50%",O.top=`-${e.arrowSize}px`,O.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(O.left=`${e.arrowOffset+d.value}px`,O.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(O.right=`${e.arrowOffset-d.value}px`,O.top=`-${e.arrowSize}px`):i.value==="left"?(O.right=`-${e.arrowSize}px`,O.top="50%",O.transform=" translate(0%, -50%)"):i.value==="left-start"?(O.right=`-${e.arrowSize}px`,O.top=`${e.arrowOffset}px`):i.value==="left-end"&&(O.right=`-${e.arrowSize}px`,O.bottom=`-${e.arrowOffset}px`),O):{display:"none"}}),_=r.computed(()=>g.value&&e.closeOnClick),M=r.computed(()=>{const O={};return e.zIndex&&(O["z-index"]=`${e.zIndex}`),O});return{show:g,tipRef:u,classes:w,styles:I,textClasses:P,textStyles:R,arrowClasses:A,arrowStyles:D,overlayShow:_,overlayStyle:M,onClickOverlay:()=>{T.value=!1,t.emit("update:visible",!1)}}}});function Aa(e,t,o,n,l,a){const i=r.resolveComponent("Price");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.overlayShow?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:r.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.message),1)],64))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])],64)}const vt=Re(Da,[["render",Aa]]);class no{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const On={},Ma=new no,at=new Map,Kt=e=>{if(e){const t=document.getElementById(e);at.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of at.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}at.clear()}},La=e=>{e.unmount=Kt;const t=document.getElementById(e.id);if(t){const o=at.get(e.id);o?e={...On,...o,...e}:e={...On,...e},e.transition=!1;const n=r.createVNode(vt,e);return r.render(n,t),e.id}},qa=e=>{e.unmount=Kt;let t=e.id??`hinttext_${Ma.get()}`;e={...On,...e},e.id=t,at.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(vt,e);return r.render(n,o),document.body.appendChild(o),t},Ba=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},xe={show(e,t,o={},n=!0){Ba(t);const l=o.id;return l&&at.has(l)?La({...o,message:t,reference:e}):(n&&Kt(),qa({...o,message:t,reference:e}))},hide(e){Kt(e)},install(e){e.config.globalProperties.$hintText=xe}},{componentName:ro,create:ja}=le("item"),Pa=ja({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:ro,validate:!1},o);const n=ze(),l=Bt();jt(!1);const a=r.computed(()=>l&&n?Pt(n,!1).value:null),i=ro,s=r.ref(null),u=r.computed(()=>{const v={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:oe(e.hasBorder)};if(v[e.errorMarkClass]=!!q.value,v[e.warnMarkClass]=!!k.value,v[e.infoMarkClass]=!!_.value,typeof s.value=="function"){const E=s.value(o);v[E]=!0}else if(typeof s.value=="string"){const E=s.value;v[E]=!0}return v}),c=r.ref(null),f=r.computed(()=>{const v={},E=l&&n?_t(n,!1):null;if(a.value&&E)if(a.value.type==="grid"){const V=Ht(E,a.value,e.span,e.offset);Object.assign(v,V)}else if(a.value.type==="flow"){const V=zt(E,a.value,e.span,e.offset,e.width);Object.assign(v,V)}else return e.width&&(v.width=Se(e.width)),v;else e.width&&(v.width=Se(e.width));if(typeof c.value=="function"){const V=c.value(o);V&&Object.assign(v,V)}else if(c.value&&typeof c.value=="object"){const V=c.value;Object.assign(v,V)}return v}),d=r.ref(null),b=r.computed({get:()=>d.value??oe(e.isRequired),set:v=>{d.value=v}}),T=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=$e(r.toRef(e,"labelPosition"),"labelPosition",Ve.Near),h=r.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),p=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${h.value}`]:!0})),x=r.computed(()=>({label:!0,[`label--${h.value}`]:!0})),w=$e(r.toRef(e,"labelWidth"),"labelWidth",Ve.Near),I=r.computed(()=>w&&w.value?{width:Se(w.value)}:{}),P=r.computed(()=>({"label--string":!0,"label--required":b.value})),R=r.computed(()=>({content:!0,[e.contentClass]:!0})),A=r.computed(()=>({...e.contentStyle})),D=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(v){b.value=v},setErrorTip(v){D.errorTip=v},setErrorIcon(v){D.errorIcon=v},setWarnTip(v){D.warnTip=v},setWarnIcon(v){D.warnIcon=v},setInfoTip(v){D.infoTip=v},setInfoIcon(v){D.infoIcon=v},setCustomClassName(v){s.value=v},setCustomStyle(v){c.value=v}});const _=r.computed(()=>e.infoTip||D.infoTip),M=r.computed(()=>e.infoIcon||D.infoIcon),k=r.computed(()=>e.warnTip||D.warnTip),O=r.computed(()=>e.warnIcon||D.warnIcon),q=r.computed(()=>e.errorTip||D.errorTip),$=r.computed(()=>e.errorIcon||D.errorIcon),S=r.computed(()=>q.value?"error":k.value?"warn":_.value?"info":""),N=r.computed(()=>S.value.length>0),W=r.computed(()=>S.value==="error"?q.value:S.value==="warn"?k.value:S.value==="info"?_.value:""),B=r.computed(()=>S.value==="error"?$.value:S.value==="warn"?O.value:S.value==="info"?M.value:null),J=r.computed(()=>{let v={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?v[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?v[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(v[`${e.infoClass}`]=!0),v}),Y=r.computed(()=>{let v={};return g&&g.value==="top"||!T.value?v["padding-left"]="0px":w&&w.value&&(v["padding-left"]=Se(w.value)),v}),Z=()=>{const v=B.value;return v?typeof v=="function"?r.h("div",{class:"fox-item__tip--icon"},[v()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(v)]):null},ne=()=>{const v=W.value;return v?typeof v=="function"?r.h("div",{class:"fox-item__tip--text"},[v()]):r.h("div",{class:"fox-item__tip--text"},[v]):null},K=r.computed(()=>t.slots.fixedTip),Q=r.computed(()=>({[`${i}__fixed-tip`]:!0})),te=r.ref();let ee="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([v,E,V,j])=>{te.value&&(v&&!de(E)?ee?xe.show(te.value,E,{...j,id:ee,type:V},!0):ee=xe.show(te.value,E,{...j,type:V},!0):xe.hide(ee))});let F=null;const X=()=>{F||!te.value||(F=new IntersectionObserver(v=>{let E=!1;for(let V of v)if(V.intersectionRatio>0){E=!0,E&&t.emit("appear",V);break}E||t.emit("disappear")}),F.observe(te.value))},z=()=>{!F||!te.value||(F.unobserve(te.value),F=null)};return r.watch(()=>oe(e.appearListen),v=>{v?X():z()}),r.onMounted(()=>{oe(e.appearListen)&&X()}),r.onUnmounted(z),{classes:u,styles:f,mainClasses:p,hasLabel:T,labelClasses:x,labelStyles:I,labelStringClasses:P,contentClasses:R,contentStyles:A,contentRef:te,hasTip:N,mTip:W,mIcon:B,renderIcon:Z,renderTip:ne,tipClasses:J,tipStyles:Y,hasFixedTip:K,fixedTipClasses:Q}}}),_a=["prop"];function za(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon()),{key:0})):r.createCommentVNode("",!0),e.mTip?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderTip()),{key:1})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,_a)}const me=Re(Pa,[["render",za]]);function Ha(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const l=ze(),a=Bt();jt(!1);const i=r.computed(()=>a&&l?Pt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=r.computed(()=>{const f={},d=a&&l?_t(l,!1):null;if(i.value&&d)if(i.value.type==="grid"){const b=Ht(d,i.value,o.span,o.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=zt(d,i.value,o.span,o.offset,o.width);Object.assign(f,b)}else return o.width&&(f.width=Se(o.width)),f;else o.width&&(f.width=Se(o.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",f,n.slots.default()):r.h("div",f)}}}}const{componentName:Wa,create:Ka,scope:hf}=le("slot-item"),Vn=Ka(Ha(Wa));function Ya(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const l=e,a=r.computed(()=>({[l]:!0,[`${l}__stretch`]:o.span==="stretch",[`${l}__${o.align}`]:!0})),i=ze(),s=Bt();jt(!1);const u=r.computed(()=>{const c={};if(s&&i){const f=Pt(i,!1),d=_t(i,!1);if(f.value&&d)if(f.value.type==="grid"){const b=Ht(d,f.value,o.span,o.offset);Object.assign(c,b)}else if(f.value.type==="flow"){const b=zt(d,f.value,o.span,o.offset,o.width);Object.assign(c,b)}else o.width&&(c.width=Se(o.width))}else o.width&&(c.width=Se(o.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const T=r.h("div",{class:{[`${l}__divide`]:!0}});c.push(T)}c.push(d[b])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return r.h("div",f,c)}}}}const{componentName:Ga,create:Ua,scope:gf}=le("row-item"),Fn=Ua(Ya(Ga)),qe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},oo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Xa(e,t,o){return{props:{...ge,...Te,...oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),g=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let p=se(n,"hintText"),x=r.ref(!1);const w=$=>{let N=$.target.value;f.value=!0,de(p.value)||(x.value=!0),s("focus",N,$)},I=$=>{setTimeout(()=>{x.value&&(x.value=!1),f.value=!1},0);let N=$.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,$)},P=()=>{s("clear","")},R=r.ref(!1);let A=null;const D=()=>{n.showTooltip&&R.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{R.value=!0},150))},_=()=>{A&&(clearTimeout(A),R.value=!1,A=null)},M=r.computed(()=>R.value||x.value),k=r.computed(()=>R.value?d.value:p.value),O=r.computed(()=>ht(n.unit)>0),q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const S={...qe(l.attrs),ref:q,class:T.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:P,onChange:h,onInput:g,onFocus:w,onBlur:I,onMouseover:D,onMouseleave:_},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:O.value&&(N.suffix=()=>[n.unit]);const W=[],B=r.h(y.ElInput,S,N);W.push(B);const J={default:()=>W};l.slots.default&&(J.label=l.slots.default),l.slots.default&&(J.fixedTip=l.slots.fixedTip);const Z={...we(n,oo),hintText:k.value,hintVisible:M.value,prop:`${n.prop}_item`};return r.h(o,Z,J)}}}}const{componentName:Za,create:Ja,scope:Qa}=le("input-item"),In=Ja(Xa(Za,Qa,me));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function lo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ei(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ti=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function ni(){const e=r.getCurrentInstance();return new ti(e.proxy)}function ao(e,t,o){const n=Ue(e,t),l=Ue(e,o);if(n!==l)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function io(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=io(e,a,o,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(o==="text")u=Ue(e,i)===a;else if(o==="item")u=ao(e,i,a);else{let c=wt(e,i);c==null&&(c=Ue(e,i)),u=c===a}if(u){l.push(i);break}}}}),l}function ri(e){return{text:e,value:e}}const so={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},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},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function oi(e,t,o){return{props:{...ge,...Te,...so},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(V=>Ue(n,V)).join(" "):""),T=(E,V,j,G=!0)=>{const L=io(n,E,V,j);if(L===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],G&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let C=!0;if(L.length!==d.value.length)C=!1;else for(let H=0;H<L.length;H++){const U=L[H],re=d.value[H];if(!ao(n,U,re)){C=!1;break}}if(!C){d.value=L;let H=[],U=[],re=[];L.forEach(De=>{const xt=wt(n,De),je=Ue(n,De);H.push(xt),re.push(je),n.valueType==="text"?U.push(je):n.valueType==="item"?U.push(De):U.push(xt)});let ie,ce,ke;oe(n.multiple)?(f.value=H,ie=r.toRaw(U),ce=re,ke=r.toRaw(L)):(f.value=H[0]??"",ie=r.toRaw(U[0]??""),ce=re[0]??"",ke=r.toRaw(L[0])),G&&(s("update:modelValue",ie),s("change",ie,ke)),s("update:text",ce)}},g=r.ref(null),h=r.ref(null),p=r.computed(()=>h.value??g.value??[]),x=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,E=>oe(E)),w=ni(),I=async(E,V)=>{if(E){const j=await w.load("select",E,V);if(j.length>0)if(typeof j[0]=="string"){let C=j.map(H=>ri(H));g.value=C}else g.value=j;else g.value=null}};r.watch([()=>n.source,()=>n.params],([E,V])=>{h.value=null,I(E,V)},{immediate:!x.value});let P=!1;const R=()=>{P||(P=!0,I(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([E,V])=>{if(M()&&oe(n.multiple)){Pe(V,f.value)||(f.value=V);return}T(V,n.valueType,p.value,!1)});let A=null,D=r.ref(!1);typeof n.remoteMethod=="function"&&(A=async E=>{if(E==null){h.value=null;return}D.value=!0;try{const V=await n.remoteMethod(E);V&&(h.value=V)}catch(V){h.value=null,console.error(V)}D.value=!1});let _=null;typeof n.filterMethod=="function"&&(_=async E=>{if(E==null){h.value=null;return}D.value=!0;try{const V=await n.filterMethod(E,g.value);V&&(h.value=V)}catch(V){h.value=null,console.error(V)}D.value=!1});const M=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=r.ref(!1),O=e,q=r.computed(()=>({[O]:!0})),$=E=>{n.allowCreate||M()&&oe(n.multiple)?(s("update:modelValue",E),s("change",E),s("update:text",E),f.value=E):T(E,"value",p.value,!0)};let S=se(n,"hintText"),N=r.ref(!1);const W=E=>{let j=E.target.value;k.value=!0,de(S.value)||(N.value=!0),s("focus",j,E)},B=E=>{setTimeout(()=>{N.value&&(N.value=!1),k.value=!1},0);let j=E.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),ee.value||s("blur",j,E)},J=()=>{s("clear","")},Y=r.ref(!1);let Z=null;const ne=()=>{n.showTooltip&&Y.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{Y.value=!0},150))},K=()=>{Z&&(clearTimeout(Z),Y.value=!1,Z=null)},Q=r.computed(()=>Y.value||N.value),te=r.computed(()=>Y.value?b.value:S.value),ee=r.ref(!1),F=E=>{ee.value=E,s("visible-change",E),E||s("selected")},X=E=>{s("remove-tag",E)},z=(E,V)=>{const j=[];return E.forEach((G,L)=>{const C=lo(n,G);if(Array.isArray(C)&&C.length>0){const H=z(C,V),U=Ue(n,G),ie={key:`${U}_${L}`,label:U};j.push(r.h(y.ElOptionGroup,ie,{default:()=>H}))}else{const H=wt(n,G),U=Ue(n,G),re=ei(n,G),ce={key:`${H}_${L}`,label:U,disabled:re,value:H};if(typeof V=="function")j.push(r.h(y.ElOption,ce,{default:()=>V(G)}));else if(n.optionType==="item"){const ke={class:{"fox-select-item__option-left":!0}},De=r.h("span",ke,[H]),xt={class:{"fox-select-item__option-right":!0}},je=r.h("span",xt,[U]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[De,je]);j.push(r.h(y.ElOption,ce,{default:()=>dr}))}else n.optionType==="value"?j.push(r.h(y.ElOption,ce,{default:()=>[H]})):j.push(r.h(y.ElOption,ce))}}),j},v=r.ref();return ye({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()}}),()=>{const V={...qe(l.attrs),ref:v,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:$,onFocus:W,onBlur:B,onVisibleChange:F,onRemoveTag:X};typeof A=="function"&&(V["remote-method"]=A,V.loading=D.value),typeof _=="function"&&(V["filter-method"]=_,V.loading=D.value);const j={};l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.empty&&(j.empty=l.slots.empty),l.slots.options?j.default=l.slots.options:j.default=()=>z(p.value,l.slots.option);const G=[],L=r.h(y.ElSelect,V,j);G.push(L);const C={default:()=>G};l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip);const U={...we(n,so),hintText:te.value,hintVisible:Q.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:ne,onMouseleave:K};return x.value&&(U["appear-listen"]=!0,U.onAppear=R),r.h(o,U,C)}}}}const{componentName:li,create:ai,scope:ii}=le("select-item"),Rn=ai(oi(li,ii,me));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o=1e3,n=6e4,l=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",b="quarter",T="year",g="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},I=function($,S,N){var W=String($);return!W||W.length>=S?$:""+Array(S+1-W.length).join(N)+$},P={s:I,z:function($){var S=-$.utcOffset(),N=Math.abs(S),W=Math.floor(N/60),B=N%60;return(S<=0?"+":"-")+I(W,2,"0")+":"+I(B,2,"0")},m:function $(S,N){if(S.date()<N.date())return-$(N,S);var W=12*(N.year()-S.year())+(N.month()-S.month()),B=S.clone().add(W,d),J=N-B<0,Y=S.clone().add(W+(J?-1:1),d);return+(-(W+(N-B)/(J?B-Y:Y-B))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:T,w:f,d:c,D:g,h:u,m:s,s:i,ms:a,Q:b}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},R="en",A={};A[R]=w;var D=function($){return $ instanceof O},_=function $(S,N,W){var B;if(!S)return R;if(typeof S=="string"){var J=S.toLowerCase();A[J]&&(B=J),N&&(A[J]=N,B=J);var Y=S.split("-");if(!B&&Y.length>1)return $(Y[0])}else{var Z=S.name;A[Z]=S,B=Z}return!W&&B&&(R=B),B||!W&&R},M=function($,S){if(D($))return $.clone();var N=typeof S=="object"?S:{};return N.date=$,N.args=arguments,new O(N)},k=P;k.l=_,k.i=D,k.w=function($,S){return M($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var O=function(){function $(N){this.$L=_(N.locale,null,!0),this.parse(N)}var S=$.prototype;return S.parse=function(N){this.$d=function(W){var B=W.date,J=W.utc;if(B===null)return new Date(NaN);if(k.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var Y=B.match(p);if(Y){var Z=Y[2]-1||0,ne=(Y[7]||"0").substring(0,3);return J?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ne)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ne)}}return new Date(B)}(N),this.$x=N.x||{},this.init()},S.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},S.$utils=function(){return k},S.isValid=function(){return this.$d.toString()!==h},S.isSame=function(N,W){var B=M(N);return this.startOf(W)<=B&&B<=this.endOf(W)},S.isAfter=function(N,W){return M(N)<this.startOf(W)},S.isBefore=function(N,W){return this.endOf(W)<M(N)},S.$g=function(N,W,B){return k.u(N)?this[W]:this.set(B,N)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(N,W){var B=this,J=!!k.u(W)||W,Y=k.p(N),Z=function(z,v){var E=k.w(B.$u?Date.UTC(B.$y,v,z):new Date(B.$y,v,z),B);return J?E:E.endOf(c)},ne=function(z,v){return k.w(B.toDate()[z].apply(B.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(v)),B)},K=this.$W,Q=this.$M,te=this.$D,ee="set"+(this.$u?"UTC":"");switch(Y){case T:return J?Z(1,0):Z(31,11);case d:return J?Z(1,Q):Z(0,Q+1);case f:var F=this.$locale().weekStart||0,X=(K<F?K+7:K)-F;return Z(J?te-X:te+(6-X),Q);case c:case g:return ne(ee+"Hours",0);case u:return ne(ee+"Minutes",1);case s:return ne(ee+"Seconds",2);case i:return ne(ee+"Milliseconds",3);default:return this.clone()}},S.endOf=function(N){return this.startOf(N,!1)},S.$set=function(N,W){var B,J=k.p(N),Y="set"+(this.$u?"UTC":""),Z=(B={},B[c]=Y+"Date",B[g]=Y+"Date",B[d]=Y+"Month",B[T]=Y+"FullYear",B[u]=Y+"Hours",B[s]=Y+"Minutes",B[i]=Y+"Seconds",B[a]=Y+"Milliseconds",B)[J],ne=J===c?this.$D+(W-this.$W):W;if(J===d||J===T){var K=this.clone().set(g,1);K.$d[Z](ne),K.init(),this.$d=K.set(g,Math.min(this.$D,K.daysInMonth())).$d}else Z&&this.$d[Z](ne);return this.init(),this},S.set=function(N,W){return this.clone().$set(N,W)},S.get=function(N){return this[k.p(N)]()},S.add=function(N,W){var B,J=this;N=Number(N);var Y=k.p(W),Z=function(Q){var te=M(J);return k.w(te.date(te.date()+Math.round(Q*N)),J)};if(Y===d)return this.set(d,this.$M+N);if(Y===T)return this.set(T,this.$y+N);if(Y===c)return Z(1);if(Y===f)return Z(7);var ne=(B={},B[s]=n,B[u]=l,B[i]=o,B)[Y]||1,K=this.$d.getTime()+N*ne;return k.w(K,this)},S.subtract=function(N,W){return this.add(-1*N,W)},S.format=function(N){var W=this,B=this.$locale();if(!this.isValid())return B.invalidDate||h;var J=N||"YYYY-MM-DDTHH:mm:ssZ",Y=k.z(this),Z=this.$H,ne=this.$m,K=this.$M,Q=B.weekdays,te=B.months,ee=function(v,E,V,j){return v&&(v[E]||v(W,J))||V[E].slice(0,j)},F=function(v){return k.s(Z%12||12,v,"0")},X=B.meridiem||function(v,E,V){var j=v<12?"AM":"PM";return V?j.toLowerCase():j},z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:K+1,MM:k.s(K+1,2,"0"),MMM:ee(B.monthsShort,K,te,3),MMMM:ee(te,K),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:ee(B.weekdaysMin,this.$W,Q,2),ddd:ee(B.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(Z),HH:k.s(Z,2,"0"),h:F(1),hh:F(2),a:X(Z,ne,!0),A:X(Z,ne,!1),m:String(ne),mm:k.s(ne,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:Y};return J.replace(x,function(v,E){return E||z[v]||Y.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(N,W,B){var J,Y=k.p(W),Z=M(N),ne=(Z.utcOffset()-this.utcOffset())*n,K=this-Z,Q=k.m(this,Z);return Q=(J={},J[T]=Q/12,J[d]=Q,J[b]=Q/3,J[f]=(K-ne)/6048e5,J[c]=(K-ne)/864e5,J[u]=K/l,J[s]=K/n,J[i]=K/o,J)[Y]||K,B?Q:k.a(Q)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return A[this.$L]},S.locale=function(N,W){if(!N)return this.$L;var B=this.clone(),J=_(N,W,!0);return J&&(B.$L=J),B},S.clone=function(){return k.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),q=O.prototype;return M.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",T],["$D",g]].forEach(function($){q[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),M.extend=function($,S){return $.$i||($(S,O,M),$.$i=!0),M},M.locale=_,M.isDayjs=D,M.unix=function($){return M(1e3*$)},M.en=A[R],M.Ls=A,M.p={},M})})(uo);var si=uo.exports;const Be=We(si);var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=function(h){return function(p){this[h]=+p}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var x=p.match(/([+-]|\d\d)/g),w=60*x[1]+(+x[2]||0);return w===0?0:x[0]==="+"?-w:w}(h)}],d=function(h){var p=s[h];return p&&(p.indexOf?p:p.s.concat(p.f))},b=function(h,p){var x,w=s.meridiem;if(w){for(var I=1;I<=24;I+=1)if(h.indexOf(w(I,0,p))>-1){x=I>12;break}}else x=h===(p?"pm":"PM");return x},T={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[l,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[l,c("day")],Do:[i,function(h){var p=s.ordinal,x=h.match(/\d+/);if(this.day=x[0],p)for(var w=1;w<=31;w+=1)p(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,c("month")],MM:[l,c("month")],MMM:[i,function(h){var p=d("months"),x=(d("monthsShort")||p.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[i,function(h){var p=d("months").indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function g(h){var p,x;p=h,x=s&&s.formats;for(var w=(h=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,k,O){var q=O&&O.toUpperCase();return k||x[O]||o[O]||x[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,S,N){return S||N.slice(1)})})).match(n),I=w.length,P=0;P<I;P+=1){var R=w[P],A=T[R],D=A&&A[0],_=A&&A[1];w[P]=_?{regex:D,parser:_}:R.replace(/^\[|\]$/g,"")}return function(M){for(var k={},O=0,q=0;O<I;O+=1){var $=w[O];if(typeof $=="string")q+=$.length;else{var S=$.regex,N=$.parser,W=M.slice(q),B=S.exec(W)[0];N.call(k,B),M=M.replace(B,"")}}return function(J){var Y=J.afternoon;if(Y!==void 0){var Z=J.hours;Y?Z<12&&(J.hours+=12):Z===12&&(J.hours=0),delete J.afternoon}}(k),k}}return function(h,p,x){x.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=p.prototype,I=w.parse;w.parse=function(P){var R=P.date,A=P.utc,D=P.args;this.$u=A;var _=D[1];if(typeof _=="string"){var M=D[2]===!0,k=D[3]===!0,O=M||k,q=D[2];k&&(q=D[2]),s=this.$locale(),!M&&q&&(s=x.Ls[q]),this.$d=function(W,B,J){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*W);var Y=g(B)(W),Z=Y.year,ne=Y.month,K=Y.day,Q=Y.hours,te=Y.minutes,ee=Y.seconds,F=Y.milliseconds,X=Y.zone,z=new Date,v=K||(Z||ne?1:z.getDate()),E=Z||z.getFullYear(),V=0;Z&&!ne||(V=ne>0?ne-1:z.getMonth());var j=Q||0,G=te||0,L=ee||0,C=F||0;return X?new Date(Date.UTC(E,V,v,j,G,L,C+60*X.offset*1e3)):J?new Date(Date.UTC(E,V,v,j,G,L,C)):new Date(E,V,v,j,G,L,C)}catch{return new Date("")}}(R,_,A),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),O&&R!=this.format(_)&&(this.$d=new Date("")),s={}}else if(_ instanceof Array)for(var $=_.length,S=1;S<=$;S+=1){D[1]=_[S-1];var N=x.apply(this,D);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}S===$&&(this.$d=new Date(""))}else I.call(this,P)}}})})(co);var ui=co.exports;const ci=We(ui);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,l){var a=n.prototype,i=a.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return b}});return i.bind(this)(d)}}})})(fo);var fi=fo.exports;const di=We(fi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,l){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,b,T,g,h){var p=d.name?d:d.$locale(),x=i(p[b]),w=i(p[T]),I=x||w.map(function(R){return R.slice(0,g)});if(!h)return I;var P=p.weekStart;return I.map(function(R,A){return I[(A+(P||0))%7]})},u=function(){return l.Ls[l.locale()]},c=function(d,b){return d.formats[b]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,p){return h||p.slice(1)})}(d.formats[b.toUpperCase()])},f=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):s(d,"months")},monthsShort:function(b){return b?b.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return c(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(b){return c(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(d){return s(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(ho);var hi=ho.exports;const gi=We(hi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o="week",n="year";return function(l,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var b=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),T=this.diff(b,o,!0);return T<0?i(this).startOf("week").week():Math.ceil(T)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(go);var mi=go.exports;const pi=We(mi);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.weekYear=function(){var l=this.month(),a=this.week(),i=this.year();return a===1&&l===11?i+1:l===0&&a>=52?i-1:i}}})})(mo);var yi=mo.exports;const bi=We(yi);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,l){n.prototype.dayOfYear=function(a){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(po);var vi=po.exports;const wi=We(vi);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.isSameOrAfter=function(l,a){return this.isSame(l,a)||this.isAfter(l,a)}}})})(yo);var Si=yo.exports;const Ti=We(Si);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.isSameOrBefore=function(l,a){return this.isSame(l,a)||this.isBefore(l,a)}}})})(bo);var xi=bo.exports;const $i=We(xi);Be.extend(gi),Be.extend(di),Be.extend(ci),Be.extend(pi),Be.extend(bi),Be.extend(wi),Be.extend(Ti),Be.extend($i);const Fe={format(e,t){return Be(e).format(t)},parser(e,t){return Be(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const l=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[o,n,l].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o));let a=l.getDay(),i=l.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((l.valueOf()-a.valueOf())/864e5);let s=l.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=l.getTime();let i=l.getDay();if(n===0){const u=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Fe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Fe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i}},vo={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"}},wo={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 Ci(e,t,o){return{props:{...ge,...Te,...vo,...wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=r.computed(()=>N.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),T=r.computed(()=>N.value?"longTermKey":"normalKey"),g=v=>{if(N.value&&n.type==="daterange"){const E=[...d.value];E[0]=v,d.value=E}else d.value=v;s("update:modelValue",d.value),s("change",d.value)},h=r.computed(()=>N.value&&n.type==="daterange"?"date":n.type),p=e,x=r.computed(()=>({[`${p}`]:!0,"is-long":N.value,"is-readonly":i.value,"is-disabled":a.value}));let w=se(n,"hintText"),I=r.ref(!1);const P=v=>{let V=v.target.value;f.value=!0,de(w.value)||(I.value=!0),s("focus",V,v)},R=v=>{setTimeout(()=>{I.value&&(I.value=!1),f.value=!1},0);let V=v.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,v)},A=()=>{s("clear","")},D=v=>{s("calendar-change",v)},_=(v,E,V)=>{s("panel-change",v,E,V)},M=v=>{s("visible-change",v)},k=$e(r.computed(()=>n.longTermText),"longTermText",Ve.Near),O=$e(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ve.Near),q=$e(r.computed(()=>n.longTermValue),"longTermValue",Ve.Near),$=$e(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ve.Near);let S=null;const N=r.ref(oe(n.longTerm)),W=v=>{if(N.value=v,s("update:longTerm",v),v){if(S=d.value,n.type==="daterange"){const E=[];Array.isArray(q.value)?(E[0]=d.value?d.value[0]??q.value[0]:null,E[1]=q.value[1]??q.value[0]):(E[0]=d.value?d.value[0]??q.value:null,E[1]=N.value),E[0]||(E[0]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),E[1]||(E[1]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),d.value=E}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const E=[];E[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(S)?E[1]=S[1]:E[1]=S,E[0]||(E[0]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),E[1]||(E[1]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),d.value=E}else d.value=S;s("update:modelValue",d.value),setTimeout(()=>{X()},100)}},B=oe(n.isLongTerm);if(B){const v=()=>{if(N.value===!0){if(S=d.value,n.type==="daterange"){const E=[d.value[0]];Array.isArray(q.value)?E[1]=q.value[1]??q.value[0]:E[1]=N.value,E[0]||(E[0]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),E[1]||(E[1]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),d.value=E}else d.value=q.value;s("update:modelValue",d.value)}else Pe(q.value,d.value)&&(N.value=!0)};v(),r.watch([()=>n.longTerm],([E])=>{N.value!==E&&v()}),r.watch([()=>d.value],([E])=>{let V=!1;if(n.type==="daterange"&&Array.isArray(E))try{let j=E[1];if(!j)return;typeof j!="string"&&n.valueFormat&&(j=Fe.format(j,n.valueFormat));let G=Array.isArray(q.value)?q.value[1]:q.value;(j===G||Array.isArray($.value)&&$.value.findIndex(C=>j==C)!==-1)&&(V=!0)}catch(j){console.error(j)}N.value!==V&&(N.value=V)},{immediate:!0})}const J=r.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Y=r.ref(),Z=r.ref(),ne=/^\d+$/,K=(v,E)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(v,E):ne.test(v)&&v.length===n.flashFillThreshold,Q=(v,E)=>{let V;if(typeof n.flashFillFormat=="function")V=n.flashFillFormat(v,E);else{const G=n.flashFillFormat??"YYYYMMDD";V=Fe.parser(v,G)}const j=n.valueFormat??"YYYY-MM-DD";return Fe.format(V,j)},te=v=>v?v.endsWith("range"):!1,ee=v=>{if(!v.target)return;const E=v.target.value??"";if(K(E,n.type)){const V=Q(E,n.type);if(te(n.type)){const j=Array.isArray(d.value)?[...d.value]:[];j[0]=V,g(j)}else g(V)}},F=v=>{if(!v.target)return;const E=v.target.value??"";if(K(E,n.type)){const V=Q(E,n.type);if(te(n.type)){const j=Array.isArray(d.value)?[...d.value]:[];j[1]=V,g(j)}else g(V)}},X=()=>{if(n.flashFill&&Y.value&&Y.value.$el)if(te(n.type)){const v=Y.value.$el.querySelectorAll("input.el-range-input");v[0]&&v[0].addEventListener("input",ee),v[1]&&v[1].addEventListener("input",F)}else{const v=Y.value.$el.querySelector("input.el-input__inner");v&&v.addEventListener("input",ee)}},z=()=>{if(n.flashFill&&Y.value&&Y.value.$el)if(te(n.type)){const v=Y.value.$el.querySelectorAll("input.el-range-input");v[0]&&v[0].removeEventListener("input",ee),v[1]&&v[1].removeEventListener("input",F)}else{const v=Y.value.$el.querySelector("input.el-input__inner");v&&v.removeEventListener("input",ee)}};return r.onMounted(X),r.onBeforeUnmount(z),ye({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},handleOpen:()=>{Z?.value.handleOpen()},handleClose:()=>{Z?.value.handleClose()}}),()=>{const E={...l.attrs,key:T.value,type:h.value,ref:Z,class:x.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:P,onBlur:R,onCalendarChange:D,onPanelChange:_,onVisibleChange:M},V={};l.slots["range-separator"]&&(V["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(V.default=l.slots.cell);const j=[],G=r.h(y.ElDatePicker,E,V);j.push(G);const L={default:()=>j};if(l.slots.default&&(L.label=l.slots.default),l.slots.fixedTip&&(L.fixedTip=l.slots.fixedTip),B){if(N.value){const re=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ie=r.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),ce={class:J.value},ke=r.h("div",ce,{default:()=>[re,ie]});j.push(ke)}if(!i.value&&!a.value){const re={label:O.value||k.value,disabled:i.value||a.value,modelValue:N.value,"onUpdate:modelValue":W},ie=r.h(y.ElCheckbox,re),ce=r.h("div",{class:{[`${p}__append`]:!0}},[ie]);L.append=()=>ce}}const H={...we(n,vo,wo),ref:Y,class:{[`${p}__wrapper`]:!0,"has-append":B},hintText:w.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,H,L)}}}}const{componentName:Ei,create:Ni,scope:ki}=le("date-item"),Dn=Ni(Ci(Ei,ki,me)),So={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Oi(e,t,o){return{props:{...ge,...Te,...So},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0})),g=A=>{d.value=A,s("update:modelValue",A),s("change",A)};let h=se(n,"hintText"),p=r.ref(!1);const x=A=>{let _=A.target.value;f.value=!0,de(h.value)||(p.value=!0),s("focus",_,A)},w=A=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let _=A.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),s("blur",_,A)},I=()=>{s("clear","")},P=A=>{s("visible-change",A)},R=r.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const D={...l.attrs,ref:R,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:I,onFocus:x,onBlur:w,onVisibleChange:P},_={},M=[],k=r.h(y.ElTimePicker,D,_);M.push(k);const O={default:()=>M};l.slots.default&&(O.label=l.slots.default),l.slots.fixedTip&&(O.fixedTip=l.slots.fixedTip);const $={...we(n,So),hintText:h.value,hintVisible:p.value,prop:`${n.prop}_item`};return r.h(o,$,O)}}}}const{componentName:Vi,create:Fi,scope:Ii}=le("time-item"),An=Fi(Oi(Vi,Ii,me)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ri(e,t,o){return{props:{...ge,...Te,...To},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0})),g=R=>{d.value=R,s("update:modelValue",R),s("change",R)};let h=se(n,"hintText"),p=r.ref(!1);const x=R=>{let D=R.target.value;f.value=!0,de(h.value)||(p.value=!0),s("focus",D,R)},w=R=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let D=R.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,R)},I=()=>{s("clear","")},P=r.ref();return ye({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()}}),()=>{const A={...l.attrs,ref:P,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:I,onFocus:x,onBlur:w},D={},_=[],M=r.h(y.ElTimeSelect,A,D);_.push(M);const k={default:()=>_};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const q={...we(n,To),hintText:h.value,hintVisible:p.value,prop:`${n.prop}_item`};return r.h(o,q,k)}}}}const{componentName:Di,create:Ai,scope:Mi}=le("time-select-item"),Mn=Ai(Ri(Di,Mi,me));function xo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let l=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){l=a;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>o.length?o=o.padEnd(l,"0"):o=o.substring(0,l),o}function $o(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=br(`${e}`,`${t}`);return xo(n)}else{let n=ln(`${e}`,vr(`${t}`),20);return xo(n)}}function Li(e,t=-1,o=!1,n=3,l=","){return Et(e,t,o,n,l)}function Co(e,t,o,n,l=!0){if(e=="")return"";if(e=wr(e),t=ve(t),t==1)return e;if(n)e=$o(e,t),o&&(e=="0"&&l?e=`${e}.`.padEnd(ve(o)+2,"0"):e=ln(e,1,ve(o)));else{let a=-1*t;e=$o(e,a)}return e}function Eo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=oe(t.minInclude),l=an(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=oe(t.maxInclude),l=an(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(o.maxValid=!1)}return o}const No={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 qi(e,t,o){return{props:{...ge,...Te,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),c=se(n,"modelValue"),f=r.ref("");r.watch([()=>c.value,()=>n.rates,()=>n.precision],([$,S,N])=>{if(de($)){f.value="";return}const W=Co($,S,N,!1);f.value!==W&&(f.value=W)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=f.value),$}),{t:b}=Ae.useFoxI18n(t),T=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(f.value)?$=Li(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=b(["placeholder",$]),$}),g=e,h=r.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),p=$e(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const x=r.ref(""),w=r.computed(()=>{let $=x.value;return de($)&&($=n.errorTip??""),$}),I=r.ref(""),P=r.ref(!1),R=($,S)=>{if($=`${$}`,de($)){f.value="",c.value="",S.forEach(N=>{s(N,"")}),oe(n.showTip)&&P.value&&(P.value=!1);return}if($.length>=2){let N=$;if(N.charAt(0)=="-"&&(N=N.substring(1)),N.length>=2&&N.charAt(0)=="0"&&N.charAt(1)!="."){r.triggerRef(f);return}}if($!="-"){if(!kr($)){r.triggerRef(f);return}if(n.integerLength!=-1&&Or($)>Number(n.integerLength)){r.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Vr($)>Number(n.decimalLength)){r.triggerRef(f);return}let N=Eo($,n);if(N.maxValid===!1){x.value=N.message,r.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(f);return}I.value=$,oe(n.showTip)&&(P.value=$.length>0),f.value=$,c.value=Co($,n.rates,n.precision,!0),S.forEach(N=>{s(N,c.value)})},A=$=>{R($,["update:modelValue","input"])},D=$=>{R($,["update:modelValue","change"])},_=$=>{if(u.value=!0,oe(n.showTip)){let S=f.value;de(S)&&(S=n.hintText),de(S)||(I.value=S,P.value=!0)}x.value="",s("focus",c.value,$)},M=$=>{if(setTimeout(()=>{u.value=!1,oe(n.showTip)&&P.value===!0&&(P.value=!1)},0),!de(f.value)){let S=Eo(f.value,n);if(S.minValid===!1||S.maxValid===!1){x.value=S.message;return}}s("update:modelValue",c.value,$),s("blur",c.value,$)},k=()=>{s("clear","")},O=r.computed(()=>ht(n.unit)>0),q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const S={...qe(l.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:T.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:D,onFocus:_,onBlur:M},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:O.value&&(N.suffix=()=>[n.unit]);const W=[],B=r.h(y.ElInput,S,N);W.push(B);const J={default:()=>W};l.slots.default&&(J.label=l.slots.default),l.slots.fixedTip&&(J.fixedTip=l.slots.fixedTip);const Z={...we(n,No),errorTip:w.value,hintText:I.value,hintVisible:P.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,Z,J)}}}}const{componentName:Bi,create:ji,scope:Pi}=le("money-item"),Ln=ji(qi(Bi,Pi,me)),ko={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 _i(e,t,o){return{props:{...ge,...Te,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),g=r.computed(()=>({[`${b}__unit`]:!0})),h=_=>{d.value=_,s("update:modelValue",_),s("input",_)},p=_=>{s("change",_)};let x=se(n,"hintText"),w=r.ref(!1);const I=_=>{let k=_.target.value;f.value=!0,de(x.value)||(w.value=!0),s("focus",k,_)},P=_=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=_.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,_)},R=()=>{s("clear","")},A=r.computed(()=>ht(n.unit)>0),D=r.ref();return ye({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const M={...qe(l.attrs),ref:D,class:T.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onChange:p,onInput:h,onFocus:I,onBlur:P},k={},O=[],q=r.h(y.ElInputNumber,M,k);O.push(q);const $={default:()=>O};l.slots.default&&($.label=l.slots.default),l.slots.fixedTip&&($.fixedTip=l.slots.fixedTip);const N={...we(n,ko),hintText:x.value,hintVisible:w.value,prop:`${n.prop}_item`};if(l.slots.append)$.append=l.slots.append;else if(A.value){const B={class:g.value},J=r.h("div",B,[n.unit]);$.append=()=>J}return r.h(o,N,$)}}}}const{componentName:zi,create:Hi,scope:Wi}=le("input-number-item"),qn=Hi(_i(zi,Wi,me));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ki(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Yi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,l);const a=Le(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n,l))}};function Gi(){const e=r.getCurrentInstance();return new Yi(e.proxy)}function Bn(e,t,o){const n=Ke(e,t),l=Ke(e,o);if(n!==l)return!1;const a=et(e,t),i=et(e,o);return a===i}function Oo(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Oo(e,s,o,n);l.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=Ke(e,c)===s;else if(o==="item")u=Bn(e,c,s);else{let f=et(e,c);f==null&&(f=Ke(e,c)),u=f===s}if(u){l.push(c),a=Ki(e,c);break}}if(!u)break}}return l}function Ui(e){return{text:e,value:e}}const Vo={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Xi(e,t,o){return{props:{...ge,...Te,...Vo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(v=>Array.isArray(v)?v.map(V=>Ke(n,V)).join(" "):Ke(n,v)).join(" "):""),T=(z,v,E,V=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===z)return;f.value=z;const C=r.toRaw(z);if(V){const H=X?.value.getCheckedNodes();if(H)if(n.multiple){const U=[];H.forEach(re=>{const ce=(re.pathNodes??[]).map(ke=>ke.data);U.push(ce)}),s("update:pathNodes",U)}else{const re=(H[0]?.pathNodes??[]).map(ie=>ie.data);s("update:pathNodes",re)}s("update:modelValue",C),s("change",C)}return}const j=Oo(n,z,v,E);if(j===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,V&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const G=j[j.length-1];if(k.value.checkStrictly!==!0&&!Array.isArray(G)&&Array.isArray(G.children)&&G.children.length>0){const C=[];j.forEach(H=>{const U=`${Ke(n,H)}`;C.push(U)}),C.length>0&&(M.value=C.join(n.separator))}else M.value=null;let L=!0;if(j.length!==d.value.length)L=!1;else for(let C=0;C<j.length;C++){const H=j[C],U=d.value[C];if(Array.isArray(H)){if(!Array.isArray(U)||H.length!==U.length)L=!1;else for(let re=0;re<H.length;re++)if(!Bn(n,H[re],U[re])){L=!1;break}}else Bn(n,H,U)||(L=!1);if(!L)break}if(!L){d.value=j;let C=[],H=[];j.forEach(re=>{if(Array.isArray(re)){let ie=[],ce=[];for(let ke of re)ie.push(et(n,ke)),n.valueType==="text"?ce.push(Ke(n,ke)):n.valueType==="item"?ce.push(ke):ce.push(et(n,ke));C.push(ie),H.push(ce)}else C.push(et(n,re)),n.valueType==="text"?H.push(Ke(n,re)):n.valueType==="item"?H.push(re):H.push(et(n,re))}),f.value=C;const U=r.toRaw(H);V&&(s("update:pathNodes",j),s("update:modelValue",U),s("change",U))}},g=r.ref([]),h=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,z=>oe(z)),p=Gi(),x=async(z,v)=>{if(z){const E=await p.load("cascader",z,v);if(E.length>0)if(typeof E[0]=="string"){let G=E.map(L=>Ui(L));g.value=G}else g.value=E}};r.watch([()=>n.source,()=>n.params],async([z,v])=>{x(z,v)},{immediate:!(h.value||n.lazy)});let w=!1;const I=()=>{w||(w=!0,x(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([z,v])=>{T(v,n.valueType,z,!1)}),n.lazy&&T(n.modelValue,"value",[],!1);let P=null,R=r.ref(!1);typeof n.remoteMethod=="function"&&(P=async z=>{if(z!=null){R.value=!0;try{const v=await n.remoteMethod(z);g.value=v}catch(v){console.error(v)}R.value=!1}});const A=r.ref(!1),D=e,_=r.computed(()=>({[D]:!0})),M=r.ref(null),k=r.computed(()=>{let z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(z.multiple=!0),n.props&&Object.assign(z,n.props),n.lazy&&(z.lazy=!0,z.lazyLoad=async(v,E)=>{const V=await p.load("cascader",n.source,v,!0);if(v?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===v.level){const j=v.pathLabels??[];let G=[];j.forEach(L=>{L&&G.push(L)}),G.length>0&&(M.value=G.join(n.separator))}else M.value=null;E(V)}),z}),O=z=>{n.allowCreate?(s("update:modelValue",z),s("change",z),f.value=z):T(z,"value",g.value,!0)};let q=se(n,"hintText"),$=r.ref(!1);const S=z=>{let E=z.target.value;A.value=!0,de(q.value)||($.value=!0),s("focus",E,z)},N=z=>{setTimeout(()=>{$.value&&($.value=!1),A.value=!1},0);let E=z.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),Q.value||s("blur",E,z)},W=()=>{s("clear","")},B=r.ref(!1);let J=null;const Y=()=>{n.showTooltip&&B.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{B.value=!0},150))},Z=()=>{J&&(clearTimeout(J),B.value=!1,J=null)},ne=r.computed(()=>B.value||$.value),K=r.computed(()=>B.value?b.value:q.value),Q=r.ref(!1),te=z=>{Q.value=z,s("visible-change",z),z||s("selected")},ee=z=>{s("remove-tag",z)},F=z=>{s("expand-change",z)},X=r.ref();return ye({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},getCheckedNodes:()=>X?.value.getCheckedNodes()}),()=>{const v={...l.attrs,ref:X,class:_.value,props:k.value,clearable:n.clearable,placeholder:M.value||c.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:W,onChange:O,onFocus:S,onBlur:N,onVisibleChange:te,onRemoveTag:ee,expandChange:F};typeof P=="function"&&(v["remote-method"]=P,v.loading=R.value);const E={};l.slots.option&&(E.default=l.slots.option),l.slots.empty&&(E.empty=l.slots.empty);const V=[],j=r.h(y.ElCascader,v,E);V.push(j);const G={default:()=>V};l.slots.default&&(G.label=l.slots.default),l.slots.fixedTip&&(G.fixedTip=l.slots.fixedTip);const C={...we(n,Vo),hintText:K.value,hintVisible:ne.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:Y,onMouseleave:Z};return h.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=I),r.h(o,C,G)}}}}const{componentName:Zi,create:Ji,scope:Qi}=le("cascader-item"),jn=Ji(Xi(Zi,Qi,me)),Fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function es(e,t,o){return{props:{...ge,...Te,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0})),g=D=>{d.value=D,s("update:modelValue",D),s("input",D)},h=D=>{s("change",D)},p=D=>{s("select",D)};let x=se(n,"hintText"),w=r.ref(!1);const I=D=>{let M=D.target.value;f.value=!0,de(x.value)||(w.value=!0),s("focus",M,D)},P=D=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let M=D.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,D)},R=()=>{s("clear","")},A=r.ref();return ye({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const _={...l.attrs,ref:A,class:T.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:R,onChange:h,onInput:g,onFocus:I,onBlur:P,onSelect:p},M={};l.slots.prepend&&(M.prepend=l.slots.prepend),l.slots.append&&(M.append=l.slots.append),l.slots.prefix&&(M.prefix=l.slots.prefix),l.slots.suffix&&(M.suffix=l.slots.suffix),l.slots.option&&(M.default=l.slots.option);const k=[],O=r.h(y.ElAutocomplete,_,M);k.push(O);const q={default:()=>k};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const S={...we(n,Fo),hintText:x.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,S,q)}}}}const{componentName:ts,create:ns,scope:rs}=le("autocomplete-item"),Pn=ns(es(ts,rs,me));function os(e,t,o,n,l){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(b=>b[n]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let c=t[u],f=a[u];const d=c.find(b=>b[n]===f);if(!d)break;i.push(d[o])}else{let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(b=>b[n]===f);if(!d)break;i.push(d[o]),u=d[l]}}return i}let ls=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function as(){const e=r.getCurrentInstance();return new ls(e.proxy)}const Io={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function is(e,t){return{props:{...Io},setup(o,{attrs:n,slots:l}){const a=as(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=os(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return l.default?l.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,c,{default:()=>s.value}):r.h(u,c,s.value)}}}}const{componentName:mf,create:ss,scope:pf}=le("mapping"),St=ss(is());function us(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function cs(e,t){return{props:{...Io},setup(o,{attrs:n,slots:l}){return()=>{const a={default:i=>{const s=us(i.row,i.column.property);return l.default?r.h(St,{...o,modelValue:s},{default:l.default}):r.h(St,{...o,modelValue:s})}};return r.h(y.ElTableColumn,{...n},a)}}}}const{componentName:yf,create:fs,scope:bf}=le("table-mapping-column"),_n=fs(cs()),ds=Symbol.for("TableStateKey");function Ro(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function hs(e,t){return{props:{},setup(o,{attrs:n}){const l=r.inject(ds,{});return()=>{const a=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Ro(s.row,s.column.property),c=a?Ro(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":f}};return r.h("label",T,[b])}};return r.h(y.ElTableColumn,{...n},i)}}}}const{componentName:vf,create:gs,scope:wf}=le("table-radio-column"),zn=gs(hs()),ms={},ps={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"},ys=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function bs(e,t){return r.openBlock(),r.createElementBlock("svg",ps,ys)}const vs=Re(ms,[["render",bs]]),{componentName:Tf,create:ws,scope:xf}=le("table-setting"),Ss={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:"不固定"}},Ts=ws({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:vs,Download:Oe.Download,RefreshLeft:Oe.RefreshLeft},props:{...Ss},setup(e,{emit:t,attrs:o}){let n=[];const l=r.ref([]),a=r.computed(()=>l.value.filter(F=>F.label===""||F.type?!1:F.fixed===""||F.fixed===!0||F.fixed==="left")),i=r.computed(()=>l.value.filter(F=>F.label===""||F.type?!1:F.fixed==="right")),s=r.computed(()=>l.value.filter(F=>!(F.label===""||F.type||F.fixed!==void 0))),u=r.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=r.computed(()=>a.value.length>0),f=r.computed(()=>i.value.length>0),d=F=>F.length>1,b=(F,X)=>{Array.isArray(F)&&Array.isArray(X)&&F.forEach(E=>{X.some(V=>V.prop===E.prop?(E.label=V.label,!0):!1)});const z=[];l.value=F.map((E,V)=>(!(E.label===""||E.type)&&E.visible!==!1&&z.push(E.prop),{...E,sortIndex:V})),s.value.length+a.value.length+i.value.length===z.length?w.value=!0:z.length>0&&(I.value=!0),A.value=z},T=F=>F?F.type?F.type:F.label?F.prop:"":"",g=(F,X)=>{if(F.length!==X.length)return!1;const z=F.map(v=>T(v));for(let v of X){const E=T(v);if(z.indexOf(E)===-1)return!1}return!0},h=F=>{if(!F){const X=e.tableRef.getColumnSetting(),z=X.srcColumnPropertyList;n=z.map((v,E)=>({...v,sortIndex:E})),F=X.columnPropertyList,F&&F.length>0&&g(z,F)||(F=z)}b(F,n)},p=()=>{e.tableRef.setColumnSetting(l.value)},x=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=r.ref(!1),I=r.ref(!1),P=F=>{const X=[];l.value.forEach(v=>{F&&!(v.label===""||v.type)&&X.push(v.prop),v.visible=F}),w.value=!1,I.value=!1,s.value.length+a.value.length+i.value.length===X.length?w.value=!0:X.length>0&&(I.value=!0),A.value=X,p()},R=()=>{h(n),p()},A=r.ref([]),D=F=>{l.value.forEach(z=>{if(z.label===""||z.type)return;const v=F.indexOf(z.prop)!==-1;z.visible=v}),w.value=!1,I.value=!1;const X=s.value.length+a.value.length+i.value.length;F.length===X?w.value=!0:F.length>0&&(I.value=!0),p()},_=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const M={currentRow:null,index:null,roleType:null},k=F=>F?F.dataset&&F.dataset.role==="row"?F:F.tagName.toLowerCase()!=="body"?(F=F.parentElement,k(F)):null:null,O=F=>{const X=F.currentTarget;X&&X.dataset&&(M.roleType=X.dataset.roleType,M.index=X.dataset.index)},q=F=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null,M.roleType=null},$=F=>{const X=F.currentTarget;F.relatedTarget;const z=k(X);if(!z)return;const v=z.dataset&&z.dataset.roleType;M.roleType===v&&(F.preventDefault(),M.currentRow&&M.currentRow!==z&&M.currentRow.classList.remove("is-dragover"),z.classList.add("is-dragover"),M.currentRow=z)},S=F=>{F.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},N=F=>{const X=F.currentTarget,z=k(X);if(!z)return;const v=z.dataset&&z.dataset.roleType;if(M.roleType!==v)return;F.preventDefault();const E=Number(M.index),V=Number(z.dataset.index);if(E!==V){if(E<V){const j=l.value[E];l.value.splice(E,1),l.value.splice(V,0,j)}else{const j=l.value[E];l.value.splice(E,1),l.value.splice(V+1,0,j)}b(l.value,n),p()}},W=F=>{const X=l.value[F];X.fixed="left",p()},B=F=>{const X=l.value[F];X.fixed="right",p()},J=F=>{const X=l.value[F];X.fixed=void 0,p()},Y=new Map;let Z=null;function ne(F){const X=document.createRange();return X.setStart(F,0),X.setEnd(F,F.childNodes.length),X.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:w,isIndeterminate:I,handleCheckAllChange:P,handleReset:R,checkedValue:A,handleCheckChange:D,onShow:_,onDragStart:O,onDragEnd:q,onDragOver:$,onDragLeave:S,onDrop:N,toLeftFixed:W,toRightFixed:B,toUnFixed:J,checkboxLabelStyle:x,onMouseOverForOverflowText:(F,X,z)=>{const v=F.currentTarget;if(v){const E=Math.floor(v.offsetWidth);if(Math.floor(ne(v))>E){let j=Y.get(X);if(j){if(j===Z)return;xe.hide(j)}j=xe.show(v,z,{type:"text",placement:"top",closeOnClick:!1}),Y.set(X,j),Z=j}}},onMouseLeaveForOverflowText:(F,X)=>{const z=Y.get(X);z&&(xe.hide(z),z===Z&&(Z=null))},onMouseOverForTip:(F,X)=>{const z=F.currentTarget;z&&(Z&&xe.hide(Z),Z=xe.show(z,X,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:F=>{Z&&(xe.hide(Z),Z=null)}}}}),xs={class:"fox-table-setting"},$s={class:"fox-table-setting__header"},Cs={class:"fox-table-setting__body"},Es={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ns={key:0,class:"fox-table-setting__body-title"},ks=["data-index","draggable"],Os=["onMouseover","onMouseleave"],Vs={class:"tools-item"},Fs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Is={key:0,class:"fox-table-setting__body-title"},Rs=["data-index","draggable"],Ds=["onMouseover","onMouseleave"],As={class:"tools-item"},Ms={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ls={key:0,class:"fox-table-setting__body-title"},qs=["data-index","draggable"],Bs=["onMouseover","onMouseleave"],js={class:"tools-item"};function Ps(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("RefreshLeft"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),T=r.resolveComponent("FoxCheckboxGroup"),g=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(g,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",xs,[r.createElementVNode("div",$s,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Cs,[r.createVNode(T,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Es,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ns,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),45,Os)]),_:2},1032,["label"]),r.createElementVNode("div",Vs,[r.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])])],40,ks))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Is,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[15]||(t[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[16]||(t[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[17]||(t[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[18]||(t[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),45,Ds)]),_:2},1032,["label"]),r.createElementVNode("div",As,[r.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[13]||(t[13]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])])],40,Rs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ms,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ls,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[24]||(t[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[25]||(t[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[26]||(t[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[27]||(t[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),45,Bs)]),_:2},1032,["label"]),r.createElementVNode("div",js,[r.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[20]||(t[20]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])])],40,qs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Yt=Re(Ts,[["render",Ps]]);let _s=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l,a,i,s){if(Array.isArray(o)){let c=(n-1)*l,f=c+l;f>o.length&&(f=o.length);const d=o.slice(c,f);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,l,a,i,s]);const u=Le(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ye(a)&&r.isReactive(a)&&(a=r.toRaw(a)),await Reflect.apply(u,null,[o,n,l,a,i,s]))}};function zs(){const e=r.getCurrentInstance();return new _s(e.proxy)}class Hs{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Le(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Le(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Le(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Do(){const e=r.getCurrentInstance();return new Hs(e.proxy)}const Ws=Symbol.for("TableStateKey");function Ks(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Hn(e,t){return e.filter(n=>{for(let l in t){const a=t[l],i=Ks(n,l);if(a!==i)return!1}return!0})}const Ao={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Mo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Wn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Ys(e,t,o){return{inheritAttrs:!1,props:{...ge,...Te,...Ao,...Mo,...Wn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:a}=Ae.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...L){return I.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),c=r.computed(()=>({[`${s}__setting`]:!0})),f=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,L=>{b.value=L});const T=L=>{b.value=L,i("page-index-change",L)},g=r.ref(n.pageSize);r.watch(()=>n.pageSize,L=>{g.value=L});const h=L=>{g.value=L,i("page-size-change",L)},p=r.shallowRef({}),x=r.computed(()=>({...p.value,...n.params??{},...n.baseParams??{}})),w=r.ref(0),I=r.ref(),P=zs();let R=!0;const A=()=>Array.isArray(n.data)?!0:oe(n.autoLoad),D=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,L=>oe(L)),_=async(L,C,H,U)=>{try{const re=await P.load("table",L,C,H,U,R,a.value);w.value=re.totalSize,I.value=re.page}catch(re){console.error("[FoxUI] Load Table Data Fail",re),w.value=0,I.value=[]}R=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([b,g],([L,C],[H,U])=>{C!==U&&(b.value=1,L=1),_(n.data,L,C,x.value)}),r.watch([()=>n.data,x],([L,C],[H,U])=>{A()&&(L!==H&&(R=!0),!(!Array.isArray(L)&&Pe(L,H)&&Pe(C,U))&&_(L,b.value,g.value,C))},{deep:!0});const M=(L={},C=!1)=>new Promise(H=>{p.value=r.toRaw(L??{}),r.triggerRef(p),C||(b.value=n.pageIndex??1),r.nextTick(async()=>{await _(n.data,b.value,g.value,x.value),H()})}),k=()=>{w.value=0,I.value=[]};let O=!1;const q=()=>{O||(O=!0,M())};A()&&!D.value&&M();const $=r.ref(null);r.provide(Ws,{currentRow:$});const S=(L,C)=>{$.value=L,i("current-change",L,C)},N=(L,C,H)=>{i("row-click",L,C,H),oe(n.rowClickSelectable)===!0&&G?.value.toggleRowSelection(L)},W=[],B=(L,C)=>{if(i("expand-change",L,C),oe(n.uniqueExpansion))if(Array.isArray(C)&&C.length==0){const H=W.length;W.splice(0,H)}else{W.forEach(U=>{U!==L&&G?.value.toggleRowExpansion(U,!1)});const H=W.length;W.splice(0,H,L)}},J=l.attrs.id??n.prop??l.attrs.name,Y=Do(),Z=r.ref([]);let ne=[];const K=()=>({srcColumnPropertyList:ne.map(C=>({...C})),columnPropertyList:Z.value}),Q=L=>{Z.value=[...L],ee()},te=async()=>{const L=await Y.load(J);L&&(Z.value=L)},ee=()=>{Y.save(J,Z.value)},F=()=>{Y.remove(J)};te();const X=L=>L?L.type?L.type:L.label?L.prop:"":"",z=r.computed(()=>{if(typeof l.slots.default=="function"){const L=l.slots.default(),C=new Map;if(ne=[],L.forEach(H=>{const U=H;if(!U.props)return;const re=X(U.props);C.set(re,H);const ie={label:"",prop:""};Object.assign(ie,U.props),ne.push(ie)}),Z.value.length===ne.length){const H=[];for(let U of Z.value){const re=X(U),ie=C.get(re);if(!ie)return L;if(U.visible===!1)continue;const ce=ie;ce.props.fixed=U.fixed,H.push(ce)}return H}return L}return[]}),v=r.shallowRef(new Map),E=({column:L,rowIndex:C})=>{const H=`${C}_${L.property}`;return v.value.get(H)??""},V=L=>typeof L=="function"?C=>{const H=[];let U=E(C);return U&&H.push(U),U=L(C),U&&H.push(U),H.length===0?"":H.join(" ")}:E,j=(L,C,H)=>{const U=`${L}_${C}`;H?v.value.set(U,H):v.value.delete(U),r.triggerRef(v)},G=r.ref();return ye({clearSelection:()=>G?.value.clearSelection(),getSelectionRows:()=>G?.value.getSelectionRows(),toggleRowSelection:(L,C)=>{G?.value.toggleRowSelection(L,C)},toggleRowSelectionByProp:(L,C)=>{if(!I.value)return;const H=Hn(I.value,L);H.length!==0&&H.forEach(U=>{G?.value.toggleRowSelection(U,C)})},toggleAllSelection:()=>{G?.value.toggleAllSelection()},toggleRowExpansion:(L,C)=>{G?.value.toggleRowExpansion(L,C)},toggleRowExpansionByProp:(L,C)=>{if(!I.value)return;const H=Hn(I.value,L);H.length!==0&&H.forEach(U=>{G?.value.toggleRowExpansion(U,C)})},setCurrentRow:L=>{G?.value.setCurrentRow(L)},setCurrentRowByProp:L=>{if(!I.value)return;const C=Hn(I.value,L);C.length!==0&&G?.value.setCurrentRow(C[0])},getCurrentRow:()=>$.value,clearSort:()=>{G?.value.clearSort()},clearFilter:L=>{G?.value.clearFilter(L)},doLayout:()=>{G?.value.doLayout()},sort:(L,C)=>{G?.value.sort(L,C)},scrollTo:(L,C)=>{G?.value.scrollTo(L,C)},setScrollTop:L=>{G?.value.setScrollTop(L)},setScrollLeft:L=>{G?.value.setScrollLeft(L)},loadData:M,clearData:k,getData(){return I.value},getTotalSize(){return w.value},getPageIndex(){return b.value},getPageSize(){return g.value},getColumnSetting:K,setColumnSetting:Q,removeColumnSetting:F,setCellClassName:j}),()=>{const C={...qe(l.attrs),onCurrentChange:S,onRowClick:N,onExpandChange:B,data:I.value,ref:G,class:u.value,"cell-class-name":V(n.cellClassName)},H={};l.slots.default&&(H.default=()=>z.value),l.slots.append&&(H.append=l.slots.append),l.slots.empty&&(H.empty=l.slots.empty);const U=[],re=r.h(y.ElTable,C,H);U.push(re);let ie=null;if(typeof l.slots.pagination=="function")ie=l.slots.pagination();else if(n.showPagination){const je={class:d.value,total:w.value,pageSize:g.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":T,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ie=r.h(y.ElPagination,je)}if(n.showSetting){const je=[];ie&&je.push(ie);const dr=r.h(y.ElIcon,{class:c.value},{default:()=>r.h(Oe.Setting)}),lf=Ir(n,Wn),af=r.h(Yt,{...lf,tableRef:{getColumnSetting:K,setColumnSetting:Q,removeColumnSetting:F}},{default:()=>dr});je.push(af);const sf=r.h("div",{class:f.value},je);U.push(sf)}else ie&&U.push(ie);const ce={default:()=>U},De={...we(n,Ao,Mo,Wn),prop:`${n.prop}_item`};return De.contentClass=`${s}__wrap`,De.errorMarkClass="is-table-error",D.value&&A()&&(De["appear-listen"]=!0,De.onAppear=q),r.h(o,De,ce)}}}}const{componentName:Gs,create:Us,scope:Xs}=le("table-item"),Kn=Us(Ys(Gs,Xs,me));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Tt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Zs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Js=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function Qs(){const e=r.getCurrentInstance();return new Js(e.proxy)}function Lo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=it(e,t),l=it(e,o);if(n!==l)return!1;const a=Tt(e,t),i=Tt(e,o);return a===i}function eu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let a of n){let i=!1;if(o==="text")i=it(e,a)===t;else if(o==="item")i=Lo(e,a,t);else{let s=Tt(e,a);s==null&&(s=it(e,a)),i=s===t}if(i){l=a;break}}return l}function tu(e){return{text:e,value:e}}function nu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const qo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function ru(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...qo},emits:["change","update:modelValue"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),c=r.ref(null),f=(D,_,M,k=!0)=>{const O=eu(n,D,_,M);if(O===null){if(c.value===null)return;c.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!Lo(n,O,c.value)){u.value=D;const $=r.toRaw(O);c.value=$;let S=null;n.valueType==="text"?S=it(n,$):n.valueType==="item"?S=$:S=Tt(n,$),k&&(s("update:modelValue",S),s("change",S))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,D=>oe(D)),T=Qs(),g=async(D,_)=>{if(D){const M=await T.load("radio",D,_);if(M.length>0)if(typeof M[0]=="string"){let q=M.map($=>tu($));d.value=q}else d.value=M}};r.watch([()=>n.source,()=>n.params],async([D,_])=>{g(D,_)},{immediate:!b.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([D,_])=>{f(_,n.valueType,D,!1)});const x=e,w=r.computed(()=>({[x]:!0,[`is-${n.direction}`]:!0})),I=D=>{f(D,"value",d.value,!0)};let P=se(n,"hintText"),R=se(n,"hintVisible");const A=(D,_)=>{const M=[];return D.forEach((k,O)=>{const q=Tt(n,k),$=it(n,k);let S=Zs(n,k);a.value===!0&&(S=a.value),i.value===!0&&(S=i.value);const N=nu(n,k,O)??{},W=`${q}_${O}`,B={...N,key:W,label:q,size:n.size,border:oe(n.border)};S&&(B.disabled=S),n.itemType==="button"?M.push(r.h(y.ElRadioButton,B,{default:()=>[$]})):typeof _=="function"?M.push(r.h(y.ElRadio,B,{default:()=>_(k)})):M.push(r.h(y.ElRadio,B,{default:()=>[$]}))}),M};return()=>{const _={...qe(l.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},M=[],k={};l.slots.options?k.default=l.slots.options:k.default=()=>A(d.value,l.slots.text);const O=r.h(y.ElRadioGroup,_,k);M.push(O);const q={default:()=>M};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const S={...we(n,qo),hintText:P.value,hintVisible:R.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=p),r.h(o,S,q)}}}}const{componentName:ou,create:lu,scope:au}=le("radio-item"),Yn=lu(ru(ou,au,me));function st(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ut(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function iu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class su{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}}function uu(){const e=r.getCurrentInstance();return new su(e.proxy)}function Bo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=st(e,t),l=st(e,o);if(n!==l)return!1;const a=ut(e,t),i=ut(e,o);return a===i}function cu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=st(e,i)===a;else if(o==="item")s=Bo(e,i,a);else{let u=ut(e,i);u==null&&(u=st(e,i)),s=u===a}if(s){l.push(i);break}}}),l}function fu(e){return{text:e,value:e}}function du(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const jo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function hu(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...jo},emits:["change","update:modelValue"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),c=r.ref([]),f=(D,_,M,k=!0)=>{const O=cu(n,D,_,M);if(O===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(O.length!==c.value.length)q=!1;else for(let $=0;$<O.length;$++){const S=O[$],N=c.value[$];if(!Bo(n,S,N)){q=!1;break}}if(!q){c.value=O;let $=[],S=[];O.forEach(W=>{$.push(ut(n,W)),n.valueType==="text"?S.push(st(n,W)):n.valueType==="item"?S.push(W):S.push(ut(n,W))}),u.value=$;const N=r.toRaw(S);k&&(s("update:modelValue",N),s("change",N))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,D=>oe(D)),T=uu(),g=async(D,_)=>{if(D){const M=await T.load("checkbox",D,_);if(M.length>0)if(typeof M[0]=="string"){let q=M.map($=>fu($));d.value=q}else d.value=M}};r.watch([()=>n.source,()=>n.params],async([D,_])=>{g(D,_)},{immediate:!b.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([D,_])=>{f(_,n.valueType,D,!1)});const x=e,w=r.computed(()=>({[x]:!0,[`is-${n.direction}`]:!0})),I=D=>{f(D,"value",d.value,!0)};let P=se(n,"hintText"),R=se(n,"hintVisible");const A=(D,_)=>{const M=[];return D.forEach((k,O)=>{const q=ut(n,k),$=st(n,k);let S=iu(n,k);a.value===!0&&(S=a.value),i.value===!0&&(S=i.value);const N=du(n,k,O)??{},W=`${q}_${O}`,B={...N,key:W,class:n.itemClass,label:q,size:n.size,border:oe(n.border)};S&&(B.disabled=S),n.itemType==="button"?M.push(r.h(y.ElCheckboxButton,B,{default:()=>[$]})):typeof _=="function"?M.push(r.h(y.ElCheckbox,B,{default:()=>_(k)})):M.push(r.h(y.ElCheckbox,B,{default:()=>[$]}))}),M};return()=>{const _={...qe(l.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:I},M=[],k={};l.slots.options?k.default=l.slots.options:k.default=()=>A(d.value,l.slots.text);const O=r.h(y.ElCheckboxGroup,_,k);M.push(O);const q={default:()=>M};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const S={...we(n,jo),hintText:P.value,hintVisible:R.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=p),r.h(o,S,q)}}}}const{componentName:gu,create:mu,scope:pu}=le("checkbox-item"),Gn=mu(hu(gu,pu,me)),Po={modelValue:{type:[Number,String],required:!1}};function yu(e,t,o){return{props:{...ge,...Te,...Po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue",h=>ve(h)),c=e,f=r.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let b=se(n,"hintText"),T=r.ref(!1);const g=r.ref();return ye({}),()=>{const p={...qe(l.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},x={},w=[],I=r.h(y.ElRate,p,x);w.push(I);const P={default:()=>w};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const A={...we(n,Po),hintText:b.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,A,P)}}}}const{componentName:bu,create:vu,scope:wu}=le("rate-item"),Un=vu(yu(bu,wu,me)),_o={modelValue:{type:[Boolean,String,Number],required:!1}};function Su(e,t,o){return{props:{...ge,...Te,..._o},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let b=se(n,"hintText"),T=se(n,"hintVisible");const g=r.ref();return ye({}),()=>{const p={...qe(l.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},x={},w=[],I=r.h(y.ElSwitch,p,x);w.push(I);const P={default:()=>w};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const A={...we(n,_o),hintText:b.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,A,P)}}}}const{componentName:Tu,create:xu,scope:$u}=le("switch-item"),Xn=xu(Su(Tu,$u,me)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Cu(e,t,o){return{props:{...ge,...Te,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),c=se(n,"modelValue"),f=e,d=r.computed(()=>({[f]:!0})),b=R=>{u("update:modelValue",R),u("change",R)};let T=se(n,"hintText"),g=r.ref(!1);const h=R=>{let D=R.target.value;s.value=!0,de(T.value)||(g.value=!0),u("focus",D,R)},p=R=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let D=R.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),w.value||u("blur",D,R)},x=()=>{u("clear","")},w=r.ref(!1),I=R=>{w.value=R,u("visible-change",R),R||u("selected")},P=r.ref();return ye({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const A={...qe(l.attrs),ref:P,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":b,onClear:x,onFocus:h,onBlur:p,onVisibleChange:I},D={};l.slots.option&&(D.default=l.slots.option);const _=[],M=r.h(y.ElTreeSelect,A,D);_.push(M);const k={default:()=>_};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const q={...we(n,zo),hintText:T.value,hintVisible:g.value,prop:`${n.prop}_item`};return r.h(o,q,k)}}}}const{componentName:Eu,create:Nu,scope:ku}=le("tree-select-item"),Zn=Nu(Cu(Eu,ku,me)),Ou={},Vu={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"},Fu=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Iu(e,t){return r.openBlock(),r.createElementBlock("svg",Vu,Fu)}const Ru=Re(Ou,[["render",Iu]]),{componentName:Cf,create:Du,scope:Ef}=le("group-setting"),Au={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:"到底部"}},Mu=Du({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Ru,Download:Oe.Download,RefreshLeft:Oe.RefreshLeft},props:{...Au},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let l=null;const a=r.ref([]),i=Do(),s=K=>K.length>1,u=()=>{const K=[],Q=[...a.value];a.value=Q.map((ee,F)=>(ee.visible!==!1&&K.push(ee.prop),{...ee,sortIndex:F})),a.value.length===K.length?h.value=!0:K.length>0&&(p.value=!0),I.value=K},c=K=>{let Q=null;if(typeof K=="string")Q=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`);else if(K&&typeof K=="object"){const ee=K.$el??K;typeof ee.querySelectorAll=="function"&&(Q=ee.querySelectorAll(".fox-item[prop]"))}if(!Q)return[];const te=[];return Q.forEach(ee=>{const F=ee.querySelector(".label--string");let X="";F&&(X=F.textContent??"");const z=ee.getAttribute("prop")??"",E=window.getComputedStyle(ee,null).getPropertyValue("display");te.push({label:X,prop:z,sortIndex:0,visible:E!=="none"})}),te},f=()=>{if(!l){const K=c(e.groupRef??e.groupProp);if(K.length===0)return!1;l=K}return!0},d=async(K=!1)=>{const Q=await i.load(e.groupProp),te=ee=>{if(!ee||!l)return;const F=l.map(X=>({...X}));Array.isArray(Q)&&Q.forEach(X=>{F.some(z=>{if(z.prop===X.prop){const v=z.label;return Object.assign(z,X),z.label=v,!0}return!1})}),a.value=F.sort((X,z)=>X.sortIndex-z.sortIndex),u(),K&&T(!1)};l?te(!0):Rt(f,e.initDelay,5,50,!1,te)},b=()=>{const K=l??[];a.value=K.map(Q=>({...Q})),u(),T()},T=(K=!0)=>{K&&i.save(e.groupProp,a.value);const Q=a.value.map(te=>({...te}));t("change",Q)},g=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=r.ref(!1),p=r.ref(!1),x=K=>{const Q=[];a.value.forEach(ee=>{K&&Q.push(ee.prop),ee.visible=K}),h.value=!1,p.value=!1,a.value.length===Q.length?h.value=!0:Q.length>0&&(p.value=!0),I.value=Q,T()},w=()=>{b()},I=r.ref([]),P=K=>{a.value.forEach(te=>{const ee=K.indexOf(te.prop)!==-1;te.visible=ee}),h.value=!1,p.value=!1;const Q=a.value.length;K.length===Q?h.value=!0:K.length>0&&(p.value=!0),T()},R=()=>{d()};r.onMounted(()=>{d(!0)});const A={currentRow:null,index:null},D=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,D(K)):null:null,_=K=>{const Q=K.currentTarget;Q&&Q.dataset&&(A.index=Q.dataset.index)},M=K=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=K=>{const Q=K.currentTarget;K.relatedTarget;const te=D(Q);te&&(K.preventDefault(),A.currentRow&&A.currentRow!==te&&A.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),A.currentRow=te)},O=K=>{K.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},q=K=>{const Q=K.currentTarget,te=D(Q);if(!te)return;K.preventDefault();const ee=Number(A.index),F=Number(te.dataset.index);if(ee!==F){if(ee<F){const X=a.value[ee];a.value.splice(ee,1),a.value.splice(F,0,X)}else{const X=a.value[ee];a.value.splice(ee,1),a.value.splice(F+1,0,X)}u(),T()}},$=K=>{const Q=a.value[K];a.value.splice(K,1),a.value.splice(0,0,Q),u(),T()},S=K=>{const Q=a.value[K];a.value.splice(K,1),a.value.push(Q),u(),T()};n({refresh:()=>{l=null,d(!1)}});const N=new Map;let W=null;function B(K){const Q=document.createRange();return Q.setStart(K,0),Q.setEnd(K,K.childNodes.length),Q.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:p,handleCheckAllChange:x,handleReset:w,checkedValue:I,handleCheckChange:P,onShow:R,onDragStart:_,onDragEnd:M,onDragOver:k,onDragLeave:O,onDrop:q,checkboxLabelStyle:g,toTop:$,toBottom:S,onMouseOverForOverflowText:(K,Q,te)=>{const ee=K.currentTarget;if(ee){const F=Math.floor(ee.offsetWidth);if(Math.floor(B(ee))>F){let z=N.get(Q);if(z){if(z===W)return;xe.hide(z)}z=xe.show(ee,te,{type:"text",placement:"top",closeOnClick:!1}),N.set(Q,z),W=z}}},onMouseLeaveForOverflowText:(K,Q)=>{const te=N.get(Q);te&&(xe.hide(te),te===W&&(W=null))},onMouseOverForTip:(K,Q)=>{const te=K.currentTarget;te&&(W&&xe.hide(W),W=xe.show(te,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:K=>{W&&(xe.hide(W),W=null)}}}}),Lu={class:"fox-group-setting"},qu={class:"fox-group-setting__header"},Bu={class:"fox-group-setting__body"},ju={class:"fox-group-setting__body-list","data-role":"container"},Pu=["data-index","draggable"],_u=["onMouseover","onMouseleave"],zu={class:"tools-item"};function Hu(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("Download"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("FoxCheckboxGroup"),b=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(b,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Lu,[r.createElementVNode("div",qu,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=T=>e.isCheckAll=T),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Bu,[r.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=T=>e.checkedValue=T),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",ju,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,T=>(r.openBlock(),r.createElementBlock("div",{key:T.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":T.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:T.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,T.prop,T.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,T.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(T.label),45,_u)]),_:2},1032,["label"]),r.createElementVNode("div",zu,[r.createVNode(f,{onClick:g=>e.toTop(T.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:g=>e.toBottom(T.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"])])],40,Pu))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Re(Mu,[["render",Hu]]),Wu=Symbol.for("InnerPageScopeKey"),Ku=Symbol.for("PageWrapperKey");function Yu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){r.provide(Wu,!0);const l={};r.provide(Ku,l);const a=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const c={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const d=n.slots.default();f.default=()=>d}return r.h(y.ElDialog,c,f)}}}}const{componentName:Nf,create:Gu,scope:kf}=le("dialog-item"),Qn=Gu(Yu());function Uu(e,t){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 l=e,a=r.computed(()=>({[l]:!0})),i=r.computed(()=>o.icon?{[`${l}__icon`]:!0,[`${l}__icon-${o.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const f={[`${l}__text`]:!0,[`${l}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=r.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=r.h(o.icon??"div",h)}const d={class:u.value,style:c.value},b=n.default?n.default():[],T=r.h("div",d,b),g={class:a.value};return o.textPosition==="right"?r.h("div",g,[f,T]):r.h("div",g,[T,f])}}}}const{componentName:Xu,create:Zu,scope:Of}=le("indicator"),er=Zu(Uu(Xu));function Ju(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(l)},500)}const Qu={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function ec(e,t){return{props:{...Qu},setup(o,n){const l=r.ref(!0),a=r.ref(null),i=r.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{f[b]=!0}),o.type&&(f[`${e}--${o.type}`]=!0),o.size&&(f[`${e}--${o.size}`]=!0),f}),s=f=>{if(f&&oe(o.showOverflowTooltip)){const d=f.clientWidth;Ju(f,b=>{l.value=b<=d})}};let u=null;r.onMounted(()=>{if(!oe(o.showOverflowTooltip))return;const f=a.value;s(f),f&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(f)}),u.observe(f))}),r.onUnmounted(()=>{u?.disconnect()});const c=(f,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const T=o.highlightFilter;if(f.indexOf(T)!==-1){const h=f.replace(new RegExp(T,"g"),`<span>${T}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const T=o.highlightFilter(f);T&&(d.innerHTML=T,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const f={},d={...n.attrs,class:{...i.value},ref:a};let b=null;if(oe(o.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const x=p[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const w=ve(o.digits),I=ve(o.decimalLength),P=oe(o.autoPadding);let R=`${p[0].children}`,A=R.split("").reverse().join("");A=Et(A,I,P,w,o.separator),R=A.split("").reverse().join(""),o.highlightFilter!==void 0&&(b=c(R,d)),b||(d.innerHTML=R,b=r.h(o.tag,d))}}}else{if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const x=p[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const w=`${p[0].children}`;b=c(w,d),b||(d.innerHTML=w,b=r.h(o.tag,d))}}}b||(b=r.h(o.tag,d,{default:n.slots.default}))}if(!o.mark&&!o.icon&&!n.slots.mark)f.default=()=>b;else{let p=null;if(o.icon){const I={[`${e}__mark-wrap`]:!0};o.type&&(I[`${e}__mark-wrap--${o.type}`]=!0);const P={},R=o.color;R&&(P.color=R);const A={class:I,style:P};p=r.h("div",A,r.h(o.icon))}else if(n.slots.mark){const I={[`${e}__mark-wrap`]:!0};o.type&&(I[`${e}__mark-wrap--${o.type}`]=!0);const P={},R=o.color;R&&(P.color=R);const A={class:I,style:P};p=r.h("div",A,{default:n.slots.mark})}else{const I={[`${e}__mark`]:!0};o.type&&(I[`${e}__mark--${o.type??"default"}`]=!0);const P={},R=o.color;R&&(P["background-color"]=R);const A={class:I,style:P};p=r.h("div",A)}const x={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},w=r.h("view",x,[p,b]);f.default=()=>w}const g={disabled:l.value};return f.content=n.slots.default,r.h(y.ElTooltip,g,f)}}}}const{componentName:tc,create:nc,scope:Vf}=le("text"),tr=nc(ec(tc)),rc={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Oe.ArrowUp}};function oc(e,t,o){return{props:{...rc},emits:["click","update:modelValue"],setup(n,{emit:l}){const a=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),c=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},p=r.h("span",h,[s.value]);d.push(p)}const b={class:c.value},T=o(n.icon,b);return T&&d.push(T),r.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:lc,create:ac,scope:ic}=le("more-button"),nr=ac(oc(lc,ic,(e,t)=>(e=e??Oe.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function sc(e){return e===window}const Ho=e=>{const t=r.unref(e);if(sc(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:uc,create:cc,scope:If}=le("tour"),fc=cc({components:{Close:Oe.Close,ElPopover:y.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:t}){const o=uc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),a=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:g,maskWidth:h,maskHeight:p}=e,{width:x,height:w,left:I,top:P}=l.value,R=e.steps[n.active].offset??g,A=[I+x/2,P+w/2],D=Number(h||x),_=Number(p||w);return{width:`${D+ +R.left+R.right}px`,height:`${_+R.top+R.bottom}px`,top:`${A[1]-_/2-+R.top}px`,left:`${A[0]-D/2-+R.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ho(g);l.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},T=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return r.onMounted(()=>{T(e.modelValue,e.current)}),r.watch(()=>e.modelValue,g=>{T(g)}),{...r.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:b}}}),dc={key:0,class:"fox-tour__content"},hc={key:0,class:"fox-tour__content-top"},gc={class:"fox-tour__content-inner"},mc={class:"fox-tour__content-bottom"},pc={class:"fox-tour__content-bottom-init"},yc={class:"fox-tour__content-bottom-operate"},bc={key:1,class:"fox-tour__content fox-tour__content-tile"},vc={class:"fox-tour__content-inner"};function wc(e,t,o,n,l,a){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(c,f)=>(r.openBlock(),r.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",dc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",hc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",gc,r.toDisplayString(c.content),1),r.createElementVNode("div",mc,[r.createElementVNode("div",pc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",yc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",bc,[r.createElementVNode("div",vc,r.toDisplayString(c.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Re(fc,[["render",wc]]),Ne=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Wo=10;function Sc(e,t){return e>t&&e>Wo?"horizontal":t>e&&t>Wo?"vertical":""}function Tc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>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:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Sc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function xc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class $c{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=xc()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Tc(),n=(l,a,i,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(o.start(l),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=l=>{this.moving&&(o.move(l),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(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ko(e,t){return new $c(e,t)}var Yo;const or=typeof window<"u";or&&((Yo=window?.navigator)!=null&&Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ct=[];const Go=e=>{const t=e;t.key==="Escape"&&ct.forEach(o=>o(t))},Cc=e=>{r.onMounted(()=>{ct.length===0&&document.addEventListener("keydown",Go),or&&ct.push(e)}),r.onBeforeUnmount(()=>{ct=ct.filter(t=>t!==e),ct.length===0&&or&&document.removeEventListener("keydown",Go)})},lr="fox-focus-trap.focus-after-trapped",ar="fox-focus-trap.focus-after-released",Ec="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Nc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",kc=Symbol("foxFocusTrap"),ir=r.ref(),Gt=r.ref(0),sr=r.ref(0);let Ut=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const l=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||l?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Oc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Qo=(e,t)=>{for(const o of e)if(!Oc(o,t))return o},Vc=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Fc=e=>e instanceof HTMLInputElement&&"select"in e,Xe=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Fc(e)&&t&&e.select()}};function el(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Ic=()=>{let e=[];return{push:n=>{const l=e[0];l&&n!==l&&l.pause(),e=el(e,n),e.unshift(n)},remove:n=>{e=el(e,n),e[0]?.resume?.()}}},Rc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Xe(n,t),document.activeElement!==o)return},tl=Ic(),Dc=()=>Gt.value>sr.value,Xt=()=>{ir.value="pointer",Gt.value=window.performance.now()},nl=()=>{ir.value="keyboard",Gt.value=window.performance.now()},Ac=()=>(r.onMounted(()=>{Ut===0&&(document.addEventListener("mousedown",Xt),document.addEventListener("touchstart",Xt),document.addEventListener("keydown",nl)),Ut++}),r.onBeforeUnmount(()=>{Ut--,Ut<=0&&(document.removeEventListener("mousedown",Xt),document.removeEventListener("touchstart",Xt),document.removeEventListener("keydown",nl))}),{focusReason:ir,lastUserFocusTimestamp:Gt,lastAutomatedFocusTimestamp:sr}),Zt=e=>new CustomEvent(Ec,{...Nc,detail:e}),{componentName:Rf,create:Mc,scope:Df}=le("focus-trap"),Lc=Mc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Xo,Zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let l,a;const{focusReason:i}=Ac();Cc(h=>{oe(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!oe(e.trapped)||s.paused)return;const{key:p,altKey:x,ctrlKey:w,metaKey:I,currentTarget:P,shiftKey:R}=h,{loop:A}=e,D=p==="Tab"&&!x&&!w&&!I,_=document.activeElement;if(D&&_){const M=P,[k,O]=Vc(M);if(k&&O){if(!R&&_===O){const $=Zt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),A&&Xe(k,!0))}else if(R&&[k,M].includes(_)){const $=Zt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),A&&Xe(O,!0))}}else if(_===M){const $=Zt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};r.provide(kc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[p])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",b)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",d),p.removeEventListener("focusout",b))});const c=h=>{o(Xo,h)},f=h=>o(Zo,h),d=h=>{const p=r.unref(n);if(!p)return;const x=h.target,w=h.relatedTarget,I=x&&p.contains(x);oe(e.trapped)||w&&p.contains(w)||(l=w),I&&o("focusin",h),!s.paused&&oe(e.trapped)&&(I?a=x:Xe(a,!0))},b=h=>{const p=r.unref(n);if(!(s.paused||!p))if(!e.escape&&oe(e.trapped)){const x=h.relatedTarget;!dn(x)&&!p.contains(x)&&setTimeout(()=>{if(!s.paused&&oe(e.trapped)){const w=Zt({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||Xe(a,!0)}},0)}else{const x=h.target;x&&p.contains(x)||o("focusout",h)}};async function T(){await r.nextTick();const h=r.unref(n);if(h){tl.push(s);const p=h.contains(document.activeElement)?l:document.activeElement;if(l=p,!h.contains(p)){const w=new Event(lr,Uo);h.addEventListener(lr,c),h.dispatchEvent(w),w.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;Sr(I)||(Xe(I),document.activeElement!==I&&(I="first")),I==="first"&&Rc(Jo(h),!0),(document.activeElement===p||I==="container")&&Xe(h)})}}}function g(){const h=r.unref(n);if(h){h.removeEventListener(lr,c);const p=new CustomEvent(ar,{...Uo,detail:{focusReason:i.value}});h.addEventListener(ar,f),h.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!Dc())&&Xe(l??document.body,!0),h.removeEventListener(ar,c),tl.remove(s)}}return r.onMounted(()=>{oe(e.trapped)&&T(),r.watch(()=>e.trapped,h=>{oe(h)?T():g()})}),r.onBeforeUnmount(()=>{oe(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:qc,create:Bc,scope:Mf}=le("floating-window"),jc=Symbol.for("InnerPageScopeKey"),Pc=Symbol.for("PageWrapperKey"),_c={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},zc=Bc({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Lc},props:{..._c},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=qc,n=r.ref(e.modelValue),l=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,C=>{n.value=C});const a=r.computed(()=>n.value===!1?!1:!_.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),c=r.ref(e.bottom),f=r.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=r.computed(()=>{const C={};return tt(i.value)?C.left="auto":C.left=Ne(i.value),tt(s.value)?C.top="auto":C.top=Ne(s.value),tt(u.value)?C.right="auto":C.right=Ne(u.value),tt(c.value)?C.bottom="auto":C.bottom=Ne(c.value),tt(e.zIndex)||(C["z-index"]=Ne(e.zIndex)),tt(A.value)||(C.height=A.value),tt(D.value)||(C.width=D.value),C}),b=r.computed(()=>e.closeIcon??Oe.Close),T=r.computed(()=>e.collapseIcon??Oe.ArrowUp),g=r.computed(()=>e.collapseText??""),h=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Oe.ArrowRight:e.expandIcon??Oe.ArrowLeft),p=r.computed(()=>e.expandText??e.title??"展开"),x=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),I=r.ref(),P=r.ref(null),R=r.ref(null),A=r.computed(()=>Ne(e.height)||""),D=r.computed(()=>Ne(e.width)||""),_=r.ref(oe(e.collapse)),M=(C,H=!0)=>{_.value!==C&&(_.value=C,C?Q():te(),t("update:collapse",C),C&&typeof q.onHide=="function"?q.onHide():!C&&typeof q.onShow=="function"&&q.onShow())};r.watch(()=>e.collapse,C=>{M(C)});const k=()=>{O()},O=C=>{C=C??!_.value,M(C)};r.provide(jc,!0);const q={setCollapse:M,setFixedNavVisible:C=>{Z.value=C}};r.provide(Pc,q);const $=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.ref(null),N=r.computed(()=>!e.fixedNavTeleport),W=r.computed(()=>{const C=["fox-floating-window__fixednav"];return e.expandClass&&C.push(e.expandClass),e.collapsePosition==="left"?C.push("is-left"):e.collapsePosition==="right"&&C.push("is-right"),C}),B=r.ref(""),J=r.computed(()=>{const C={};return B.value?C.top=B.value:e.collapseTop&&(C.top=e.collapseTop),C}),Y=r.ref(_.value),Z=r.computed({set:C=>{Y.value=C},get:()=>n.value===!1?!1:Y.value});let ne=null;const K=()=>{typeof ne=="function"&&(ne(),ne=null)},Q=()=>{S.value&&S.value.classList.add("slide-in"),Z.value=!0,ne=()=>{S.value&&S.value.classList.remove("slide-in")}},te=()=>{S.value&&S.value.classList.add("slide-out"),ne=()=>{S.value&&S.value.classList.remove("slide-out"),Z.value=!1}},ee=()=>{i.value=null,s.value=null,u.value=null,c.value=null},F={x:0,y:0},v=Ko(C=>{if(!I.value)return;const H=I.value;if(ee(),e.origin==="left-top")i.value=H.offsetLeft,s.value=H.offsetTop,F.x=i.value,F.y=s.value;else if(e.origin==="left-bottom"){const U=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=U-(H.offsetTop+H.offsetHeight),F.x=i.value,F.y=c.value}else if(e.origin==="right-bottom"){const U=document.documentElement.clientWidth||document.body.clientWidth,re=document.documentElement.clientHeight||document.body.clientHeight;u.value=U-(H.offsetLeft+H.offsetWidth),c.value=re-(H.offsetTop+H.offsetHeight),F.x=u.value,F.y=c.value}else{const U=document.documentElement.clientWidth||document.body.clientWidth;u.value=U-(H.offsetLeft+H.offsetWidth),s.value=H.offsetTop,F.x=u.value,F.y=s.value}},C=>{if(!I.value)return;const H=I.value;ee(),e.origin==="left-top"?(i.value=F.x+C.x,s.value=F.y+C.y,H.style.left=Ne(i.value),H.style.top=Ne(s.value)):e.origin==="left-bottom"?(i.value=F.x+C.x,c.value=F.y-C.y,H.style.left=Ne(i.value),H.style.bottom=Ne(c.value)):e.origin==="right-bottom"?(u.value=F.x-C.x,c.value=F.y-C.y,H.style.right=Ne(u.value),H.style.bottom=Ne(c.value)):(u.value=F.x-C.x,s.value=F.y+C.y,H.style.right=Ne(u.value),H.style.top=Ne(s.value))}),E={x:0,y:0},G=Ko(C=>{S.value&&(E.x=S.value.offsetLeft,E.y=S.value.offsetTop)},C=>{if(!S.value)return;const H=E.y+C.y;B.value=`${H}px`}),L=()=>{if(I.value){const C=I.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");R.value=C}};return r.onMounted(()=>{if(e.draggable&&I.value){const C=[];P.value&&C.push(P.value),e.footerDraggable&&(L(),R.value&&C.push(R.value)),v.open(C)}e.collapse===!0&&M(e.collapse,!1),S.value&&G.open(S.value)}),r.onBeforeUnmount(()=>{e.draggable&&P.value&&v.close(),S.value&&G.close()}),{classes:f,styles:d,isShow:a,closeIcon:b,onClose:$,dialogRef:I,headerRef:P,onClickToggle:k,collapseIcon:T,collapseText:g,collapseTextClasses:x,collapseIconClasses:w,expandIcon:h,expandText:p,isShowFixedNav:Z,fixedNavRef:S,fixedNavClasses:W,fixedNavStyles:J,onAnimationEnd:K,teleportDisabled:l,fixedNavTeleportDisabled:N}}}),Hc={ref:"headerRef",class:"fox-floating-window__header"},Wc={class:"fox-floating-window__title"},Kc={class:"fox-floating-window__tools"},Yc={class:"fox-floating-window__body"},Gc={class:"fox-floating-window__fixednav__text"};function Uc(e,t,o,n,l,a){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Hc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Wc,r.toDisplayString(e.title),1),r.createElementVNode("div",Kc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Yc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",Gc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Re(zc,[["render",Uc]]);function Xc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Pr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Lf,create:Zc,scope:qf}=le("domain-provider"),cr=Zc(Xc()),Jc={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 Qc(e,t){return{inheritAttrs:!1,props:Jc,setup(o,{slots:n}){if(nt&&window.IntersectionObserver){const l=new WeakMap;let a=new Map;const i=(b,T)=>{if(f===null){a.set(b,{visible:null,callback:T});return}l.has(b)&&f.unobserve(b),l.set(b,{visible:null,callback:T}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}l.has(b)&&(l.delete(b),f.unobserve(b))};let u=o.initialVisibleObserverSize;ga({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(b,T,g)=>{f=new IntersectionObserver(h=>{for(let p of h){let x=!1;p.intersectionRatio>0&&(x=!0);const w=l.get(p.target);if(w)try{if(o.loadPolicy==="lazy"&&!x&&w.visible!==null)return;w.visible=x,w.callback(x)}catch(I){console.error(I)}}},{root:b,rootMargin:T,threshold:g}),a.forEach((h,p)=>{l.set(p,h),f?.observe(p)}),a.clear()};r.watch([()=>o.root,()=>o.disabled],([b,T])=>{if(T||!b||f)return;let g=null;typeof b=="string"?g=document.querySelector(b):g=b,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Bf,create:ef,scope:jf}=le("rolling-provider"),fr=ef(Qc()),rl=10;function tf(e,t){return e>t&&e>rl?"horizontal":t>e&&t>rl?"vertical":""}function nf(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),l=r.ref(0),a=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),c=r.ref(0),f=r.ref(""),d=()=>f.value==="vertical",b=()=>f.value==="horizontal",T=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:p=>{const x=p.touches[0];i.value=x.clientX-e.value,s.value=x.clientY-t.value,l.value=x.clientX,a.value=x.clientY,u.value=Math.abs(i.value),c.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=tf(u.value,c.value))},start:p=>{T(),e.value=p.touches[0].clientX,t.value=p.touches[0].clientY,o.value=Date.now()},reset:T,startX:e,startY:t,startTime:o,duration:n,moveX:l,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:b}}const rf=[vn,Tn,xn,$n,Nn,me,Vn,Fn,vt,In,Rn,Dn,An,Mn,Ln,qn,jn,Pn,_n,zn,Yt,Kn,Yn,Gn,Un,Xn,Zn,Jn,Qn,St,Wt,er,tr,nr,rr,ur,cr,fr],of=new Hl(rf,[Yl],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),m.AutocompleteItem=Pn,m.Broadcast=hn,m.BroadcastKey=he,m.CascaderItem=jn,m.CheckboxItem=Gn,m.Content=$n,m.DataItemsKey=rt,m.DateItem=Dn,m.DateUtils=Fe,m.DialogItem=Qn,m.Domain=Dt,m.DomainKey=Ie,m.DomainProvider=cr,m.FloatingWindow=ur,m.FooterBar=xn,m.FoxAutocompleteItem=Pn,m.FoxCascaderItem=jn,m.FoxCheckboxItem=Gn,m.FoxContent=$n,m.FoxDateItem=Dn,m.FoxDialogItem=Qn,m.FoxDomainProvider=cr,m.FoxFloatingWindow=ur,m.FoxFooterBar=xn,m.FoxGroup=Nn,m.FoxGroupSetting=Jn,m.FoxHeaderBar=Tn,m.FoxHintText=vt,m.FoxIndicator=er,m.FoxInputItem=In,m.FoxInputNumberItem=qn,m.FoxItem=me,m.FoxMapping=St,m.FoxMoneyItem=Ln,m.FoxMoreButton=nr,m.FoxPage=vn,m.FoxPrice=Wt,m.FoxRadioItem=Yn,m.FoxRateItem=Un,m.FoxRollingProvider=fr,m.FoxRowItem=Fn,m.FoxSelectItem=Rn,m.FoxSlotItem=Vn,m.FoxSwitchItem=Xn,m.FoxTableItem=Kn,m.FoxTableMappingColumn=_n,m.FoxTableRadioColumn=zn,m.FoxTableSetting=Yt,m.FoxText=tr,m.FoxTimeItem=An,m.FoxTimeSelectItem=Mn,m.FoxTour=rr,m.FoxTreeSelectItem=Zn,m.Group=Nn,m.GroupSetting=Jn,m.HeaderBar=Tn,m.HintText=vt,m.Indicator=er,m.InputItem=In,m.InputNumberItem=qn,m.Item=me,m.Mapping=St,m.MoneyItem=Ln,m.MoreButton=nr,m.Page=vn,m.Price=Wt,m.PriorityPolicy=Ve,m.RadioItem=Yn,m.RateItem=Un,m.RollingProvider=fr,m.RowItem=Fn,m.SelectItem=Rn,m.SlotItem=Vn,m.SwitchItem=Xn,m.TableItem=Kn,m.TableMappingColumn=_n,m.TableRadioColumn=zn,m.TableSetting=Yt,m.Text=tr,m.TimeItem=An,m.TimeSelectItem=Mn,m.Tour=rr,m.TreeSelectItem=Zn,m.UniqueID=no,m.ValidateSchema=qr,m.ValidateSchemaKey=_e,m.cancelRaf=al,m.clearNonNumber=Sl,m.clone=cn,m.compareTo=an,m.createBroadcast=Vt,m.createValidateSchema=It,m.debounce=pt,m.debounceRef=Dl,m.decimalLength=Vr,m.default=of,m.defineBroadcast=Cl,m.defineConfigDomain=Pr,m.defineDataItem=zr,m.defineDomain=mn,m.defineItem=pe,m.definePageState=Hr,m.deleteGlobalValidator=Ol,m.disabledProperty=Ee,m.divide=ln,m.excludeProps=we,m.extend=Je,m.floatData=$l,m.getGlobalValidateCheckEvents=Ar,m.getGlobalValidateResetEvents=Lr,m.getPageContentAreaHeight=Mt,m.getPageContentAreaWidth=Lt,m.getPageFooterAreaHeight=bt,m.getPageHeaderAreaHeight=yt,m.getRootDomain=ot,m.hasSymbol=xr,m.includeProps=Ir,m.indexOf=Tl,m.installRules=_r,m.integerLength=Or,m.isArray=cl,m.isArrayLike=Cr,m.isBrowser=nt,m.isDate=hl,m.isESModule=pl,m.isEmptyString=de,m.isEqual=Pe,m.isFunction=sn,m.isHidden=Ot,m.isInnerPage=Ll,m.isMap=fl,m.isNil=dn,m.isNumberString=kr,m.isObject=Ye,m.isPlainObject=un,m.isPromise=ml,m.isRegExp=Nr,m.isSet=dl,m.isString=Sr,m.isSubPage=ql,m.isSymbol=gl,m.isWindow=$r,m.lastIndexOf=xl,m.makeArray=wl,m.merge=Er,m.multiply=br,m.negate=vr,m.nextTick=bl,m.numberFormat=Et,m.objectToString=Tr,m.once=Al,m.property=$e,m.raf=ul,m.readonlyProperty=Ce,m.setGlobalValidateCheckEvents=Vl,m.setGlobalValidateHandler=Nl,m.setGlobalValidateMessages=Il,m.setGlobalValidateResetEvents=Fl,m.setGlobalValidator=kl,m.throttle=jr,m.toBoolean=oe,m.toNumber=ve,m.toPadding=Me,m.toPx=ue,m.toPxDesc=Se,m.toTypeString=Nt,m.toValue=se,m.tryTimes=Rt,m.typeOf=kt,m.unNumberFormat=wr,m.updatePageState=pn,m.useBroadcast=gt,m.useDomain=ze,m.useExpose=ye,m.useInnerSize=Sn,m.usePageState=At,m.usePosition=Qr,m.useRect=Ho,m.useSize=wn,m.useTouch=nf,m.valueLength=ht,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|