@fox-js/foxui-pc 4.0.1-99 → 4.1.1-0
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 +3 -3
- package/dist/index.esm.js +8417 -5647
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +161 -25
- package/package.json +6 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(m,l){typeof exports=="object"&&typeof module<"u"?l(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"],l):(m=typeof globalThis<"u"?globalThis:m||self,l(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,l,tt,y,Ce,Le){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Aug 22 2024 15:31:13 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Rt=window,Yr=typeof window<"u";function Gr(){return typeof Rt<"u"?Rt.requestAnimationFrame||Rt.webkitRequestAnimationFrame||function(e){Rt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){Yr?cancelAnimationFrame(e):clearTimeout(e)}const ql=Gr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function xt(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=we(e),t=we(t),[e,t]=Zt(we(e),we(t)),o==1&&(n==1?e=Xt(e):t=Xt(t));let a=hr(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Xt(a)):we(a)}function Xt(e){let t="",o=e.length,n=e.split(".")[1],a=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 l=a>0?"0."+new Array(a).join("0")+"1":"1";return hr(t,l)}function we(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 Zt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+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]=Zt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/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 ct(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 a=e.split("."),l=a[0],i=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+i,u=ct(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,gr(a[1],l,n,o)?(n?"-":"")+Jt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let s=a[1].substring(t);return s&&gr(s,i,n,o)&&(i=Jt(i),i.length>t)?(n?"-":"")+Jt(l,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+l+"."+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 a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)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 Jt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Qt(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=ft(e),t=ft(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=ft(e.replace(".","")),t=ft(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=[],f=i-1,c="";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 x=t.length-1;x>=f&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(b+=parseInt(e[u[x]--])*parseInt(t[x]));b+=s,s=Math.floor(b/10),c=b%10+c,f--}return c=ft(sa(c,l)),o==1&&(c="-"+c),c}function sa(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 ft(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function en(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 a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=we(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=we(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=we(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=we(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=we(e.replace(".","")))}let l=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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),l=f,s="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=xt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,u=u+"0")}return(n==1?"-":"")+we(ct(s,o-2))}function tn(e,t){return e=e.toString(),t=t.toString(),t=nn(t),xt(e,t)}function nn(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=tn(e,Qt(t,ct(en(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]=Zt(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=we(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+we(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"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 a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var i="",s=l;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<l-o&&s>=0?n:"")+i;return(a?"-":"")+i+t.substring(l)}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 ct(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ae(ct(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),xt(t,o)}add(t){return new ae(xt(this.value,t.getValue()))}static subtract(t,o){return t=ae.validate(t),o=ae.validate(o),tn(t,o)}subtract(t){return new ae(tn(this.value,t.getValue()))}static multiply(t,o){return t=ae.validate(t),o=ae.validate(o),Qt(t,o)}multiply(t){return new ae(Qt(this.value,t.getValue()))}static divide(t,o,n){return t=ae.validate(t),o=ae.validate(o),en(t,o,n)}divide(t,o){return new ae(en(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),nn(t)}negate(){return new ae(nn(this.value))}}function br(e,t){return ae.multiply(`${e}`,`${t}`)}function rn(e,t,o=8){return ae.divide(`${e}`,`${t}`,o)}function on(e,t){return e=`${e}`,t=`${t}`,ae.compareTo(e,t)}function wr(e){return ae.negate(e)}function Ct(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let i=l.charAt(0);i=="-"?l=l.substring(1):i="";let s=l,u="",f=l.indexOf(".");f!=-1&&(s=l.substring(0,f),u=l.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",b=s.split("").reverse();for(let x=0;x<b.length;x++)d+=b[x]+((x+1)%n==0&&x+1!=b.length?a:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function vr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ua=ia,ca=Array.isArray,fa=e=>Et(e)==="[object Map]",da=e=>Et(e)==="[object Set]",ha=e=>e instanceof Date,an=e=>typeof e=="function",Sr=e=>typeof e=="string",ga=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",ma=e=>ze(e)&&an(e.then)&&an(e.catch),Tr=Object.prototype.toString,Et=e=>Tr.call(e),ln=e=>Et(e)==="[object Object]",$r=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pa(e){return e.__esModule||$r&&e[Symbol.toStringTag]==="Module"}const ya=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ue(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let i in l){let s=t[i],u=l[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=Ue(a,f,u)}else u!==void 0&&(t[i]=u)}}return t}function sn(e,t,o=!1){if(!o)Ue(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ln(i))continue;l=sn(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ln(i))continue;l=sn(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}}return e}const un=ya?Promise.resolve():null;function ba(e,...t){un!==null?t&&t.length>0?un.then(()=>{e(t)}):un.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(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 wa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Nt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):wa[o]||"object"}function xr(e){return e&&typeof e=="object"&&"setInterval"in e}function Cr(e){return!e||e.offsetParent===null}function Er(e){let t=!!e&&"length"in e&&e.length,o=Nt(e);return o==="function"||xr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Nr(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function va(e,t=[]){let o=t;return e!=null&&(Er(Object(e))?Nr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Me(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Nt(e),n=Nt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],f=t[s];if(!Me(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],i=t[a];if(!Me(l,i))return!1}return!0}return!1}const et=typeof window<"u";function cn(e){return e==null}function kr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Vr(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 Ir(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 Or(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 Rr(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 Sa(e,t=!0,o=!0){t?e=Rr(e,".",/\./g):e=e.replace(/\./g,""),o?e=Rr(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ta(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Me(e,o))return!0}):t.indexOf(e)}function $a(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Me(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function dt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Dr(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function Se(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const xa=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},he=Symbol.for("BroadcastKey");class fn{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 a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):kr(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&l.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&l.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,l,[...s])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const i=Reflect.apply(l.emit,l,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,o){this.callbacks.set(t,o)}}function kt(e,t,o,n){const a=new fn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Ca(e,t,o){const n=o;if(n[he])return n[he];const a=r.inject(he,null),l=new fn(a,o,e);if(t&&typeof t=="object")for(const i in t)l.on(i,t[i]);return n[he]=l,r.provide(he,l),r.onUnmounted(()=>{l.destroy(),n[he]=void 0}),l}function ht(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Xe=e=>e.default??e;class Ea{error(t,o){const n=o,a=ht(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=ht(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?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Fr=new Ea;function Na(e){Fr=e}function ka(e,t){Xe(Ge).setValidator(e,t)}function Va(e){Xe(Ge).deleteValidator(e)}let Ar=["blur","clear"];function Ia(e){Ar=e}function Br(){return Ar}let Lr=["focus","change"];function Oa(e){Lr=e}function qr(){return Lr}function Ra(e){Xe(Ge).messages(e)}function gt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Vt(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 Mr{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=Vt(gt(this.attrRules,this.rules)),n=[];for(let l in t){let i=t[l];if(this.hasValidator(l,!0)){if(i===!1)continue;let u={type:l};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(l);if(s!==null){let u={type:l,validator:s};n.push(u)}}this.attrRules=Vt(n);const a=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,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 a=Fr;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...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?Xe(Ge).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?Xe(Ge).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Xe(Ge).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=gt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Vt(t):this.rules=Vt([t]);const n=gt(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=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),i={[`${n}`]:l},s=Xe(Ge),u=new s(a),f=this.proxy??i;return u.validate(i,{context:f}).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=f),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 a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Mr(t,o,e)}const _r=Symbol.for("EventEmitterKey");class Da{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 a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,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(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function mt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Pr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Fa(e,t){const o=mt((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Aa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function dn(e,t,o,n=0,a=!0){let l=t,i=0;if(a){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(l+=n,setTimeout(s,l))};setTimeout(s,l)}const Ie=Symbol("DomainKey"),tt=Symbol("DataItemsKey");class Ot{_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 a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}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 a=n._props[t];o.push(a)}n=n._parent}return o}}const Ba=new Ot;function nt(){return Ba}function Pe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ie]??r.inject(Ie,null):r.inject(Ie,null)}const hn=Symbol("OriginalDateKey");function gn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let i=r.inject(Ie,null);i===null&&(i=nt());const s=e||t.prop||t.name,u=new Ot(s);u.parent=i;const f=g=>{l[hn]||b(g),u.set("modelValue",g)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[hn]??null,b=g=>{const w={};Ue(!0,w,r.toRaw(g)),l[hn]=w};r.isReactive(t)||typeof t=="function"?r.watch(t,g=>{u.merge(g,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[Ie]=u,r.provide(Ie,u);let x=null,m=null;if(a!==null){const g=r.inject(he,null);x=kt(l,g,s,n),u.broadcast=x,l[he]=x,r.provide(he,x),l.broadcast=(v,T,...I)=>Reflect.apply(x.emit,x,[v,T,...I]);const w=r.inject(_e,null);m=It(l,w,{componentName:""}),u.validateSchema=m,l[_e]=m,r.provide(_e,m),l[tt]=new Map,l.validate=(v=!0)=>{const T=[];let I=null;const A={deep:!1};if(v===!0)I={name:"*"};else if(Array.isArray(v)&&v.length>0){const k=v;I={name:D=>D?k.indexOf(D)!==-1:!1}}else if(v!=null&&typeof v=="object"){const k=v;if(A.ignoreHidden=k.ignoreHidden,Array.isArray(k.include)&&k.include.length>0){const D=k.include;I={name:V=>V?D.indexOf(V)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const D=k.exclude;I={name:V=>V?D.indexOf(V)===-1:!1}}else I={name:"*"}}if(I){const k=x?.emitToChildren(I,"validate",A);k&&Reflect.apply([].push,T,k)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(k=>{let D=[];return k.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(D=[...D,...V.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(v,T=!0,I=!1)=>{if(I===!0){Reflect.ownKeys(v).forEach(k=>{let D=String(k);const F=zr(u,D,{componentName:"",fieldName:D,pureDataValidate:!0},x,m);l[tt].set(D,F);const R=v[D];R&&F.validateSchema.setRule(R)});return}if(T){const A=Reflect.ownKeys(v),k={name:D=>A.includes(D)};x?.emitToChildren(k,"setNameValidateRules",v,!1)}},l.clearValidate=(v=!0)=>{let T=null;if(v===!0)T={name:"*"};else if(Array.isArray(v)&&v.length>0){const I=v;T={name:A=>A?I.indexOf(A)!==-1:!1}}else if(v!=null&&typeof v=="object"){const I=v;if(Array.isArray(I.include)&&I.include.length>0){const A=I.include;T={name:k=>k?A.indexOf(k)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const A=I.exclude;T={name:k=>k?A.indexOf(k)===-1:!1}}else T={name:"*"}}T&&x?.emitToChildren(T,"clearValidate",!1)},l.resetFields=v=>{const T=c();if(!T)return;const I={};if(Ue(!0,I,d()??{}),Array.isArray(v))v.forEach(A=>{T[A]=I[A]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(k=>{T[k]=I[k]});else if(v&&Array.isArray(v.exclude)){let A=v.exclude??[];Reflect.ownKeys(I).forEach(k=>{A.includes(k)||(T[k]=I[k])})}else Object.assign(T,I);l.clearValidate(v)},l.setModelValue=(v,T)=>{!T||T===s?f(v):x?.emitToChildren({name:T},"setModelValue",v)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ie]=void 0,l[tt]&&(l[tt].clear(),l[tt]=void 0),x!==null&&(x.destroy(),l[he]=void 0),m!==null&&(m.destroy(),l[_e]=void 0)}),u}function jr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ie,null);l===null&&(l=nt());const i=e||t.prop||t.name,s=new Ot(i);return s.parent=l,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),a[Ie]=s,r.provide(Ie,s),r.onUnmounted(()=>{s.destroy(),a[Ie]=void 0}),s}function Hr(e,t,o){const a=Pe(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",i=r.inject(he,null),s=kt(a,i,l,o);a[he]=s,r.provide(he,s),a.broadcast=(m,g,...w)=>Reflect.apply(s.emit,s,[m,g,...w]);const u=r.inject(_e,null);e.fieldName=e.fieldName??l;const f=It(a,u,e);a[_e]=f,r.provide(_e,f),Hr(a,f,l),a.validate=(m=null)=>{const g=[];let w=!1,v=!1;if(Array.isArray(m)&&m.indexOf(l)!==-1)v=!0,w=!0;else if(m&&typeof m=="object"){const T=m;T.ignoreHidden===!0&&Cr(a.$el)?v=!1:(Array.isArray(T.include)&&T.include.indexOf(l)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(l),v=!0),w=T.deep??!1}else typeof m=="boolean"&&(w=m),v=!0;if(v){const T=f?.validate();g.push(T)}if(w){let T=null;const I={deep:!1};if(m===!0)T={name:"*"};else if(Array.isArray(m)&&m.length>0){const A=m;T={name:k=>k?A.indexOf(k)!==-1:!1}}else if(m!=null&&typeof m=="object"){const A=m;if(I.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const k=A.include;T={name:D=>D?k.indexOf(D)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const k=A.exclude;T={name:D=>D?k.indexOf(D)===-1:!1}}else T={name:"*"}}if(T){const A=s.emitToChildren(T,"validate",I);Reflect.apply([].push,g,A)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(T=>{let I=[];return T.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(I=[...I,...A.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>f?.setRule(m),a.setNameValidateRules=(m,g=!1)=>{const w=m[l];if(w&&f?.setRule(w),g){const v={name:T=>Reflect.ownKeys(m).includes(T)};s.emitToChildren(v,"setNameValidateRules",m,!1)}},a.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&f?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const w=m;g={name:v=>v?w.indexOf(v)!==-1:!1}}else if(m!=null&&typeof m=="object"){const w=m;if(Array.isArray(w.include)&&w.include.length>0){const v=w.include;g={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const v=w.exclude;g={name:T=>T?v.indexOf(T)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const c=new Da(a);a[_r]=c;const d=mt((m="validate")=>{m==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Br()).forEach(m=>{c.on(m,g=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:qr()).forEach(m=>{c.on(m,g=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),a[he]=void 0,f.destroy(),a[_e]=void 0,c.destroy(),a[_r]=void 0}),{broadcast:s,validateSchema:f,emitEvent:(m,...g)=>{Reflect.apply(c.emit,c,[m,...g])},onEvent:(m,g)=>{Reflect.apply(c.on,c,[g])},offEvent:(m,g)=>{Reflect.apply(c.off,c,[g])}}}function zr(e,t,o,n,a){const l={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};const u=It({},a,o);l.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let b=!1,x=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)x=!0,b=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),x=!0,b=m.deep??!1}else typeof c=="boolean"&&(b=c),x=!0;if(x){const m=u?.validate();d.push(m)}if(b){let m=null;const g={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const w=c;m={name:v=>v?w.indexOf(v)!==-1:!1}}else if(c!=null&&typeof c=="object"){const w=c;if(Array.isArray(w.include)&&w.include.length>0){const v=w.include;m={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const v=w.exclude;m={name:T=>T?v.indexOf(T)===-1:!1}}else m={name:"*"}}if(m){const w=f.emitToChildren(m,"validate",g);Reflect.apply([].push,d,w)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let g=[];return m.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(g=[...g,...w.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};const f=kt(null,n,i,l);return{broadcast:f,validateSchema:u}}const ye=(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 a=Number(e.substring(0,o)),l=1;if(et){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(l=Number(i.substring(0,s)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ke="PageStateKey";function Fe(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 mn(e,t,o={},n=!0,a=-1,l=-1,i=0,s=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight),e.headerPadding=Fe(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight),e.footerPadding=Fe(o.footerPadding??t.footerPadding),e.contentPadding=Fe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,l):e.height=ue(l)-ue(i,l)-ue(s,l),e.width=ue(o.width??t.width??0,a)}}function Kr(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},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ue(a.top),n.safeAreaBottom=ue(a.bottom),n.safeAreaLeft=ue(a.left),n.safeAreaRight=ue(a.right));const l=e.get("pageLayout");if(!l)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;mn(n,l,t,!0,i,s,u,f);const c=r.reactive(n),d=e.getForParent(Ke);d&&(n.height=Dt(e,d),n.width=Ft(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Dt(e,d),c.width=Ft(e,d)}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,m,g=-1,w=-1,v=0,T=0])=>{mn(c,m,t,b,g,w,v,T)}),e.set(Ke,c),c}function Rt(e){return e.get(Ke)}function pt(e,t){if(t=t??e.get(Ke),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yt(e,t){if(t=t??e.get(Ke),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(Ke),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pt(e,t),n=yt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ft(e,t){return t=t??e.get(Ke),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function La(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function qa(e){return!!e.getForParent(Ke)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function pn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,o=1,n){const a=Pe();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const u=l[s];if(pn(u,n))return u}const i=e.value;return pn(i,n)?i:null}):r.computed(()=>{const l=e.value;return pn(l,n)?l:a?.get(t)})}function xe(e){return $e(e,"readonly",0,function(o){return te(o)})}function Ce(e){return $e(e,"disabled",0,function(o){return te(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==l.value&&(l.value=s)}else i!==l.value&&(l.value=i)}),l}const Wr=new Map,At=new Map;let yn=null;function Ma(e){yn=e}function Yr(e,t,o){if(o){let n=At.get(o);n||(n=new Map,At.set(o,n)),n.set(e,t)}else Wr.set(e,t)}function Ae(e,t,o){!o&&yn&&(o=yn(e)??void 0);let n=null;if(o){let a=At.get(o);a&&(n=a.get(t))}return n||(n=Wr.get(t)),n}function _a(e,t){for(let o in e){const n=e[o];Yr(o,n,t)}}function Pa(e){At.delete(e)}function ja(){return{top:0,left:0,bottom:0,right:0}}function Ha(e=0,t=0){if(et){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ue(e,n)-ue(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class za{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(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=nt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=Pr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=Ue({},ja(),t.safeAreaInset),i=Ha(n,a),s=Ue({},i.pageLayout,t.pageLayout);o=o??nt(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ma(t)}setAPI(t,o,n){Yr(t,o,n)}getAPI(t,o,n){return Ae(t,o,n)}batchSetAPI(t,o){_a(t,o)}clearScopeAPI(t){Pa(t)}getRootDomain(){return nt()}}const Ka=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Wa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Ya=e=>{Ka.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Wa.forEach(t=>{e.use(t)})};function oe(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}},Gr={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}},Ur={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}},Xr=[];for(const e in Ur)Xr.push(e);function be(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Ga=Symbol.for("InnerPageScopeKey"),Ua=(e,t)=>({inheritAttrs:!0,props:{...ge,...Gr,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 a=gn(o.name,o);if(a){const f=Kr(a,o);be({getPageContentHeight:()=>Dt(a,f),getPageContentWidth:()=>Ft(a,f),getPageHeaderHeight:()=>pt(a,f),getPageFooterHeight:()=>yt(a,f)});const c=r.inject(Ga,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(f,c=!1)=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(f,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[d,b])=>{if(f&&d){const x=r.toRaw(d),m=r.toRaw(f),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(v=>{g.includes(v)||(m[v]=[])}),u(m)}if(c&&b){const x=r.toRaw(b),m=r.toRaw(c),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(v=>{g.includes(v)||(m[v]=[])}),u(m,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}if(o.pureDataRules){const f=r.toRaw(o.pureDataRules);u(f,!0)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:i}}}),{componentName:Xa,create:Za,scope:gf}=oe("page"),Ja=Za(Ua(Xa));function Qa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},bn=Ve(Ja,[["render",Qa]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function vn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-i}}const el=(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},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,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,l){const i=Pe(),s=i?Rt(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:a.border,[`${y}--fixed`]:a.fixed,[`${y}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ue(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const L=Fe(a.padding??s.headerPadding);return Object.assign(y,L),f&&(s.headerHeight=f),y.height=s.headerHeight,y.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(L.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const L=Fe(a.padding);Object.assign(y,L)}return y}),d=r.ref(null),b=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const y=wn(d.value);s.headerAllHeight=y.height}return s.headerMounted=!0,!0}return!1};let x=null;r.onMounted(()=>{s&&(dn(b,50,5,50,!0),window.ResizeObserver&&d.value&&(x=new window.ResizeObserver(()=>{b()}),x.observe(d.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,x&&(x.disconnect(),x=null))});const m=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),g=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),v=r.computed(()=>!!a.leftShow),T=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),I=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),A=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),k=r.computed(()=>a.leftIcon),D=r.computed(()=>k.value||l.slots.leftIcon),V=r.computed(()=>a.titleIcon),F=r.computed(()=>a.titleIcon||l.slots.titleIcon),R=r.computed(()=>a.rightIcon),B=r.computed(()=>a.rightIcon||l.slots.rightIcon);function Y(){l.emit("back")}function H(){l.emit("click-title")}function $(){l.emit("click-right")}function S(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:m,mHeaderShow:T,leftStyles:g,rightStyles:w,mLeftShow:v,mTitleShow:I,mRightShow:A,mLeftIcon:k,hasLeftIcon:D,mTitleIcon:V,hasTitleIcon:F,mRightIcon:R,hasRightIcon:B,handleLeft:Y,handleCenter:H,handleRight:$,handleRightText:S}}}),{componentName:tl,create:nl,scope:rl}=oe("header-bar"),ol=nl(el(tl,rl,Ne.ArrowLeft)),al={key:1,class:"fox-header-bar__title"},ll={key:0,class:"title-text"};function il(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",al,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",ll,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Sn=Ve(ol,[["render",il]]);function sl(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,a){const l=Pe(),i=l?Rt(l):null,s=r.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ue(n.height):null,f=r.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&i){const g=Fe(n.padding??i.footerPadding);return Object.assign(m,g),u&&(i.footerHeight=u),m.height=i.footerHeight,m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.height=m.height+m.safeAreaBottom,m.bottom=m.safeAreaBottom+(g.bottom??0)),m}if(u&&(m.height=u),n.padding){const g=Fe(n.padding);Object.assign(m,g)}return m}),c=r.ref(null),d=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!o){const m=wn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;r.onMounted(()=>{i&&(dn(d,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{d()}),b.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const x=r.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=ye(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=ye(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=ye(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=ye(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=ye(f.value.bottom)),m});return{footerBarRef:c,classes:s,styles:x}}}}const{componentName:ul,create:cl,scope:mf}=oe("footer-bar"),fl=cl(sl(ul));function dl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Tn=Ve(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Pe(),a=r.computed(()=>({[e]:!0})),l=n?Rt(n):null,i=r.computed(()=>{const f={};if(n&&l){if(o.padding){const x=Fe(o.padding);Object.assign(l.contentPadding,x)}const c=pt(n,l),d=yt(n,l);let b="";if(l.contentHeight?b=`${l.contentHeight}`:b=`${l.height}px`,l.contentPadding,f.height=b,l.contentPadding.top||c>0){const x=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+x}px`}if(l.contentPadding.bottom||d>0){const x=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+x}px`}return l.contentPadding.left&&(f.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(f.paddingRight=`${l.contentPadding.right}px`),f}if(o.padding){const c=Fe(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=r.ref(null),u=()=>{if(l&&s.value){const f=vn(s.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>pt(n),()=>yt(n)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:gl,create:ml,scope:pf}=oe("content"),pl=ml(hl(gl));function yl(e,t,o,n,a,l){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=Ve(pl,[["render",yl]]),rt="GroupStateKey",Zr=Symbol.for("GroupScopeKey");function Bt(){return r.inject(Zr,!1)}function Lt(e=!0){r.provide(Zr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];cn(a)||(e[n]=a)})}function wl(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};bl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(rt,l),l}function xn(e,t,o=-1,n=-1,a=!1,l,i,s){const u=e.get(rt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),l||(l=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=ue(l),d=ue(i);s||(s=f.type??"grid");const b=()=>{const x=t===""||t===-1,m=ue(t);let g=ve(o);const w=ue(n);if(!x){let I=(m-(g-1)*w)/g;for(;d!==-1&&I>d;)g++,I=(m-(g-1)*w)/g;for(;c!==-1&&g>1&&I<c;)g--,I=(m-(g-1)*w)/g}let v=!1;const T=u.layout;T.value.width=t,T.value.column!==g&&(T.value.column=g,v=!0),T.value.gutter!==w&&(T.value.gutter=w,v=!0),T.value.type!==s&&(T.value.type=s,v=!0),v&&r.triggerRef(T)};if(a)b();else{const x=++u.passport;setTimeout(()=>{x===u.passport&&b()},50)}}function qt(e,t=!1){let o;return t?o=e.getForParent(rt):o=e.get(rt),o.layout}function Mt(e,t=!1){let o;return t?o=e.getForParent(rt):o=e.get(rt),o.order}function Jr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function _t(e,t,o=1,n=0,a){const l={};let i=0;a?i=ue(a):i=Jr(t.column,o),i>0&&(l.width=`${i}%`);const s=Jr(t.column,n);s>0&&(l["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function Pt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let a=ve(o);if(a===-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(a>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 l=ve(n)%t.column;let i=(e.index+l)%t.column,s=i+a;return s>t.column?(i=0,s=i+a,e.index=e.index+(t.column-i)+a):e.index=e.index+l+a,l>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Qr=Symbol("RollingStateKey");function vl(e){r.provide(Qr,e)}function Sl(){return r.inject(Qr,null)}function Cn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function Tl(e){let t=Cn(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=Cn(o),document.body.removeChild(o)}return t}function $l(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const xl={...ge,...Gr,...Ur};function Cl(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=gn(n.name,n,Xr),i=wl(l,{type:n.type}),s=Bt();Lt(!0);const u=n.rollingDisplay?Sl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>s&&l?qt(l,!0).value:null),b=r.getCurrentInstance(),x=(C,M=!1)=>{const N=b?.proxy;N&&typeof N.setNameValidateRules=="function"&&N.setNameValidateRules(C,!0,M)};r.watch([()=>n.rules,()=>n.pureDataRules],([C,M],[N,K])=>{if(C&&N){const j=r.toRaw(N),X=r.toRaw(C),ne=X?Reflect.ownKeys(X):[];(j?Reflect.ownKeys(j):[]).forEach(ce=>{ne.includes(ce)||(X[ce]=[])}),x(X)}if(M&&K){const j=r.toRaw(K),X=r.toRaw(M),ne=X?Reflect.ownKeys(X):[];(j?Reflect.ownKeys(j):[]).forEach(ce=>{ne.includes(ce)||(X[ce]=[])}),x(X,!0)}},{deep:!0});const m=e,g=r.computed(()=>{const C={};C.height=L.value;const M=s?Mt(l,!0):null;if(d.value&&M){if(d.value.type==="grid"){const N=Pt(M,d.value,n.span,n.offset);Object.assign(C,N)}else if(d.value.type==="flow"){const N=_t(M,d.value,n.span,n.offset,n.width);Object.assign(C,N)}}else if(n.width){const N=ye(n.width);C.width=N}return C}),w=r.computed(()=>{const C=i.layout.value.type;return C==="grid"||C==="flow"?{[`${m}--${C}`]:!0,[`${m}--${C}-justify-${n.justify}`]:!0,[`${m}--${C}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${C}`]:!0,[`${m}--gutter`]:!0}}),v=r.computed(()=>{if(i.layout.value.type==="grid"){let M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const N=$l(R.value,i.layout.value.column,i.layout.value.gutter);M=`repeat(${i.layout.value.column}, ${N})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":M}}}),T=r.toRef(n,"title"),I=r.toRef(n,"gutter"),A=r.toRef(n,"column"),k=r.computed(()=>s||c.value?!0:te(n.isWrap)),D=[],V=C=>{D.push(C)},F=()=>{let C=D.length;D.splice(0,C)},R=r.ref(-1),B=C=>{const M=vn(C).width;M>0&&M!==R.value&&(R.value=M)};xn(l,R.value,A.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([R,A,I],([C,M,N])=>{i.order.index=0,xn(l,C,M,N,!1,n.minItemWidth,n.maxItemWidth,n.type)});const Y=r.computed(()=>O.value?n.expandText??"":n.collapseText??""),H=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!O.value,"is-collapse":O.value})),S=r.ref(),y=r.ref(),L=r.computed(()=>z.value||ye(n.height)||""),O=r.ref(!1),z=r.ref(""),E=r.ref(!1);let q=-1;const P=(C,M=!0)=>{const N=S.value;if(N&&O.value!==C){if(q=q===-1?Tl(N):q,E.value=!0,M)if(N.style["will-change"]="height",N.ontransitionend=function(){N.ontransitionend=null,this.style["will-change"]="auto",C||(z.value="",E.value=!1)},C){let K=0;n.collapseHeight?K=n.collapseHeight:y.value&&y.value.classList.contains(`${e}__header`)&&(K=y.value.offsetHeight),z.value=`${q}px`,r.nextTick(()=>{z.value=`${K}px`})}else z.value=`${q}px`;else if(C){let K=0;n.collapseHeight?K=n.collapseHeight:y.value&&y.value.classList.contains(`${e}__header`)&&(K=y.value.offsetHeight),z.value=`${K}px`}else E.value=!1,z.value=`${q}px`;O.value=C,a.emit("update:collapse",C)}};r.watch(()=>n.collapse,C=>{P(C)});const G=()=>{J()},J=C=>{C=C??!O.value,P(C)};be({toggleCollapse:J,doLayout:()=>{D[0]&&(B(D[0]),xn(l,R.value,A.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let re=null,le=!0;const Z=C=>{if(n.rules){const M=r.toRaw(n.rules);x(M)}if(n.pureDataRules){const M=r.toRaw(n.pureDataRules);x(M,!0)}if(et&&(C&&P(te(n.collapse),!1),n.autoLayout&&Array.isArray(D)&&D.length>0)){const M=D[0];B(M),window.ResizeObserver&&(re=new window.ResizeObserver(()=>{B(M)}),re.observe(M))}},ee=()=>{re?.disconnect(),re=null},_=!c.value||u?.acquire();_&&(f.value=c.value?!0:null),r.onMounted(()=>{if(_&&(Z(le),le=!1),c.value&&u){let C=null,M=u.initialHeight;u.observe(S.value,N=>{if(N!==f.value)if(N)f.value=!0,O.value||(z.value=""),C=setTimeout(()=>{C=null,f.value!==!1&&(Z(le),le=!1)},100);else{if(C!==null&&clearTimeout(C),f.value=!1,!O.value)if(le)z.value=u.initialHeight;else{let K=Cn(S.value);K<=0?z.value=M:(z.value=`${K}px`,M=z.value)}le||ee()}})}}),r.onUnmounted(()=>{re?.disconnect(),u&&u.unobserve(S.value)});const W=(C="right")=>{const M=[];if(Y.value){const j={class:H.value},X=r.h("span",j,[Y.value]);M.push(X)}const N={class:$.value},K=o(n.collapseIcon,N);return K&&M.push(K),M.length>0?r.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${C}`]:!0},onClick:G},M):null},U=(C,M,N,K)=>{const j={...w.value};return M===0&&(j[`${m}__first`]=!0),N>=K-1&&(j[`${m}__last`]=!0),r.h("div",{ref:V,key:`${M}`,class:j,style:v.value},C)};return()=>{if(c.value&&f.value!==!0){const j=n.tag||"div";return r.h(j,{ref:S,prop:n.name,class:{[`${m}`]:!0,"is-collapse":E.value},style:g.value},[])}i.order.index=0;const C=[];let M=0;if(a.slots.header){const j={key:`${M++}`,ref:y,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},X=r.h("div",j,[a.slots.header()]);C.push(X)}else{const j=[],X=n.collapsePosition==="left";if(X&&n.showCollapse){const ne=W("left");ne&&j.push(ne)}if(T.value){if(n.showMark){const ie={class:{[`${m}__header-mark`]:!0}};n.markColor&&(ie.style={background:n.markColor});const ce=r.h("div",ie);j.push(ce)}const ne=r.h("div",{class:{[`${m}__header-title`]:!0}},[T.value]);j.push(ne)}if(a.slots.toolbar&&j.push(a.slots.toolbar()),!X&&n.showCollapse){const ne=W("right");ne&&j.push(ne)}if(j.length>0){const ne={key:`${M++}`,ref:y,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},ie=r.h("div",ne,j);C.push(ie)}}F();const N=a.slots.default?a.slots.default():[],K=i.layout.value.type;if(K==="grid"){const j=U(N,M++,0,N.length);C.push(j)}else if(K==="flow"){const j=U(N,M++,0,N.length);C.push(j)}else for(let j=0;j<N.length;j++){const X=N[j],ne=U([X],M++,j,N.length);C.push(ne)}if(k.value){const j=n.tag||"div";return r.h(j,{ref:S,prop:n.name,class:{[`${m}`]:!0,"is-collapse":E.value},style:g.value},[C])}else return C}}}}const{componentName:El,create:Nl,scope:kl}=oe("group"),En=Nl(Cl(El,kl,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Il=/matrix\((.+)\)/,eo=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Vl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,i=0,s=0,u=0;for(a=t;a!==document;){i+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Il.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=i,o+=s,n+=u,{x:o,y:n}};function Ol(e){return e===window}const Nn=e=>{const t=r.unref(e);if(Ol(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}};class Rl{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 Dl{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new Rl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const to=new Dl,no={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:Fl,create:Al}=oe("price"),Bl=Al({props:{...no},setup(e){const t=r.computed(()=>({[Fl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>dt(e.price)==0?"":Ct(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),l=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:a,decimalText:l}}}),Ll=["innerHTML"],ql=["innerHTML"];function Ml(e,t,o,n,a,l){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,Ll)):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,ql)):r.createCommentVNode("",!0)],2)}const jt=Ve(Bl,[["render",Ml]]),{componentName:Ht,create:_l}=oe("hint-text"),Pl=_l({components:{Price:jt},props:{...no,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Ht]:!0})),b=r.ref(null),x=(F,R,B=10)=>{if(!et||R===!1||!F)return;l.value=!0;const Y=Nn(e.reference);u.value=Y.width,f.value=Y.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const H=eo(e.reference),$=document.documentElement.clientWidth||document.body.clientWidth,S=b.value.offsetWidth,y=b.value.offsetHeight;H.y-y>=0?(c.value="top",i.value.y=H.y-y-10-4,s.value.y=y):(c.value="bottom",i.value.y=H.y+f.value+10,s.value.y=-10);const L=H.x+S-$;L<0?(i.value.x=H.x,s.value.x=20):(i.value.x=H.x-L,s.value.x=L+20),l.value=!1},B)},m=mt(()=>{x(e.message,e.visible)},10),g=r.computed(()=>e.visible&&w.value),w=r.ref(!0),v=mt(F=>{const R=F[0];R&&(w.value=R.isIntersecting)},10),T=new IntersectionObserver(v);r.watch([()=>e.message,()=>e.visible],([F,R])=>{x(F,R)}),r.onMounted(()=>{x(e.message,e.visible),to.watch(e.reference,m),T.observe(e.reference)}),r.onBeforeMount(()=>{to.unwatch(e.reference,m),T.unobserve(e.reference),T.disconnect()});const I=r.computed(()=>{const F={"min-width":ye(u.value)};return l.value?F.visibility="hidden":F.transform=`translate(${i.value.x}px, ${i.value.y}px)`,F}),A=r.computed(()=>({[`${Ht}__content`]:!0})),k=r.computed(()=>({})),D=r.computed(()=>({[`${Ht}__arrow`]:!0,[`${Ht}__arrow-${e.placement}`]:!0})),V=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:g,tipRef:b,classes:d,styles:I,textClasses:A,textStyles:k,arrowClasses:D,arrowStyles:V}}}),jl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[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"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",jl,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const bt=Ve(Pl,[["render",Hl]]);class ro{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 kn={},zl=new ro,ot=new Map,Vn=e=>{if(e){const t=document.getElementById(e);ot.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ot.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ot.clear()}},Kl=e=>{const t=document.getElementById(e.id);if(t){const o=ot.get(e.id);o?e={...kn,...o,...e}:e={...kn,...e};const n=r.createVNode(bt,e);return r.render(n,t),e.id}},Wl=e=>{e.unmount=Vn;let t;if(e.id){if(t=e.id,ot.has(t))return Kl(e)}else t=`hinttext_${zl.get()}`;e={...kn,...e},e.id=t,ot.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(bt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},zt={show(e,t,o={},n=!0){return n&&Vn(),Yl(t),Wl({...o,message:t,reference:e})},hide(e){Vn(e)},install(e){e.config.globalProperties.$hintText=zt}},{componentName:oo,create:Gl}=oe("item"),Ul=Gl({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:oo,validate:!1},o);const n=Pe(),a=Bt();Lt(!1);const l=r.computed(()=>a&&n?qt(n,!1).value:null),i=oo,s=r.ref(null),u=r.computed(()=>{const _={[i]:!0,[`${i}__gutter`]:l.value&&l.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(_[e.errorMarkClass]=!!H.value,_[e.warnMarkClass]=!!B.value,_[e.infoMarkClass]=!!F.value,typeof s.value=="function"){const W=s.value(o);_[W]=!0}else if(typeof s.value=="string"){const W=s.value;_[W]=!0}return _}),f=r.ref(null),c=r.computed(()=>{const _={},W=a&&n?Mt(n,!1):null;if(l.value&&W)if(l.value.type==="grid"){const U=Pt(W,l.value,e.span,e.offset);Object.assign(_,U)}else if(l.value.type==="flow"){const U=_t(W,l.value,e.span,e.offset,e.width);Object.assign(_,U)}else return e.width&&(_.width=ye(e.width)),_;else e.width&&(_.width=ye(e.width));if(typeof f.value=="function"){const U=f.value(o);U&&Object.assign(_,U)}else if(f.value&&typeof f.value=="object"){const U=f.value;Object.assign(_,U)}return _}),d=r.ref(null),b=r.computed({get:()=>d.value??te(e.isRequired),set:_=>{d.value=_}}),x=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),m=$e(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),g=r.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),w=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),v=r.computed(()=>({label:!0,[`label--${g.value}`]:!0})),T=$e(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),I=r.computed(()=>T&&T.value?{width:ye(T.value)}:{}),A=r.computed(()=>({"label--string":!0,"label--required":b.value})),k=r.computed(()=>({content:!0,[e.contentClass]:!0})),D=r.computed(()=>({...e.contentStyle})),V=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(_){b.value=_},setErrorTip(_){V.errorTip=_},setErrorIcon(_){V.errorIcon=_},setWarnTip(_){V.warnTip=_},setWarnIcon(_){V.warnIcon=_},setInfoTip(_){V.infoTip=_},setInfoIcon(_){V.infoIcon=_},setCustomClassName(_){s.value=_},setCustomStyle(_){f.value=_}});const F=r.computed(()=>e.infoTip||V.infoTip),R=r.computed(()=>e.infoIcon||V.infoIcon),B=r.computed(()=>e.warnTip||V.warnTip),Y=r.computed(()=>e.warnIcon||V.warnIcon),H=r.computed(()=>e.errorTip||V.errorTip),$=r.computed(()=>e.errorIcon||V.errorIcon),S=r.computed(()=>H.value?"error":B.value?"warn":F.value?"info":""),y=r.computed(()=>S.value.length>0),L=r.computed(()=>S.value==="error"?H.value:S.value==="warn"?B.value:S.value==="info"?F.value:""),O=r.computed(()=>S.value==="error"?$.value:S.value==="warn"?Y.value:S.value==="info"?R.value:null),z=r.computed(()=>{let _={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?_[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?_[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(_[`${e.infoClass}`]=!0),_}),E=r.computed(()=>{let _={};return m&&m.value==="top"||!x.value?_["padding-left"]="0px":T&&T.value&&(_["padding-left"]=ye(T.value)),_}),q=()=>{const _=O.value;return _?typeof _=="function"?r.h("div",{class:"fox-item__tip--icon"},[_()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(_)]):null},P=()=>{const _=L.value;return _?typeof _=="function"?r.h("div",{class:"fox-item__tip--text"},[_()]):r.h("div",{class:"fox-item__tip--text"},[_]):null},G=r.computed(()=>t.slots.fixedTip),J=r.computed(()=>({[`${i}__fixed-tip`]:!0})),Q=r.ref();let re="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([_,W,U,C])=>{Q.value&&(_&&!de(W)?re?zt.show(Q.value,W,{...C,id:re,type:U},!0):re=zt.show(Q.value,W,{...C,type:U},!0):zt.hide(re))});let le=null;const Z=()=>{le||!Q.value||(le=new IntersectionObserver(_=>{let W=!1;for(let U of _)if(U.intersectionRatio>0){W=!0,W&&t.emit("appear",U);break}W||t.emit("disappear")}),le.observe(Q.value))},ee=()=>{!le||!Q.value||(le.unobserve(Q.value),le=null)};return r.watch(()=>te(e.appearListen),_=>{_?Z():ee()}),r.onMounted(()=>{te(e.appearListen)&&Z()}),r.onUnmounted(ee),{classes:u,styles:c,mainClasses:w,hasLabel:x,labelClasses:v,labelStyles:I,labelStringClasses:A,contentClasses:k,contentStyles:D,contentRef:Q,hasTip:y,mTip:L,mIcon:O,renderIcon:q,renderTip:P,tipClasses:z,tipStyles:E,hasFixedTip:G,fixedTipClasses:J}}}),Xl=["prop"];function Zl(e,t,o,n,a,l){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,Xl)}const me=Ve(Ul,[["render",Zl]]);function Jl(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 a=Pe(),l=Bt();Lt(!1);const i=r.computed(()=>l&&a?qt(a,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Mt(a,!1):null;if(i.value&&d)if(i.value.type==="grid"){const b=Pt(d,i.value,o.span,o.offset);Object.assign(c,b)}else if(i.value.type==="flow"){const b=_t(d,i.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=ye(o.width)),c;else o.width&&(c.width=ye(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Ql,create:ei,scope:bf}=oe("slot-item"),In=ei(Jl(Ql));function ti(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],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Pe(),s=Bt();Lt(!1);const u=r.computed(()=>{const f={};if(s&&i){const c=qt(i,!1),d=Mt(i,!1);if(c.value&&d)if(c.value.type==="grid"){const b=Pt(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=_t(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=ye(o.width))}else o.width&&(f.width=ye(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const x=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(x)}f.push(d[b])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:ni,create:ri,scope:wf}=oe("row-item"),On=ri(ti(ni)),Be=(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},ao={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 oi(e,t,o){return{props:{...ge,...Te,...ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:i.value})),m=$=>{d.value=$,s("update:modelValue",$),s("input",$)},g=$=>{s("change",$)};let w=se(n,"hintText"),v=r.ref(!1);const T=$=>{let y=$.target.value;c.value=!0,de(w.value)||(v.value=!0),s("focus",y,$)},I=$=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let y=$.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),s("blur",y,$)},A=()=>{s("clear","")},k=r.ref(!1);let D=null;const V=()=>{n.showTooltip&&k.value===!1&&(D&&clearTimeout(D),D=setTimeout(()=>{k.value=!0},150))},F=()=>{D&&(clearTimeout(D),k.value=!1,D=null)},R=r.computed(()=>k.value||v.value),B=r.computed(()=>k.value?d.value:w.value),Y=r.computed(()=>dt(n.unit)>0),H=r.ref();return be({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const S={...Be(a.attrs),ref:H,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:g,onInput:m,onFocus:T,onBlur:I,onMouseover:V,onMouseleave:F},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:Y.value&&(y.suffix=()=>[n.unit]);const L=[],O=r.h(p.ElInput,S,y);L.push(O);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.default&&(z.fixedTip=a.slots.fixedTip);const q={...Se(n,ao),hintText:B.value,hintVisible:R.value,prop:`${n.prop}_item`};return r.h(o,q,z)}}}}const{componentName:ai,create:li,scope:ii}=oe("input-item"),Rn=li(oi(ai,ii,me));function We(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 si(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ui=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 a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ci(){const e=r.getCurrentInstance();return new ui(e.proxy)}function io(e,t,o){const n=We(e,t),a=We(e,o);if(n!==a)return!1;const l=wt(e,t),i=wt(e,o);return l===i}function so(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=so(e,l,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=We(e,i)===l;else if(o==="item")u=io(e,i,l);else{let f=wt(e,i);f==null&&(f=We(e,i)),u=f===l}if(u){a.push(i);break}}}}),a}function fi(e){return{text:e,value:e}}const uo={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 di(e,t,o){return{props:{...ge,...Te,...uo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(U=>We(n,U)).join(" "):""),x=(W,U,C,M=!0)=>{const N=so(n,W,U,C);if(N===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],M&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let K=!0;if(N.length!==d.value.length)K=!1;else for(let j=0;j<N.length;j++){const X=N[j],ne=d.value[j];if(!io(n,X,ne)){K=!1;break}}if(!K){d.value=N;let j=[],X=[],ne=[];N.forEach(Re=>{const Tt=wt(n,Re),qe=We(n,Re);j.push(Tt),ne.push(qe),n.valueType==="text"?X.push(qe):n.valueType==="item"?X.push(Re):X.push(Tt)});let ie,ce,ut;te(n.multiple)?(c.value=j,ie=r.toRaw(X),ce=ne,ut=r.toRaw(N)):(c.value=j[0]??"",ie=r.toRaw(X[0]??""),ce=ne[0]??"",ut=r.toRaw(N[0])),M&&(s("update:modelValue",ie),s("change",ie,ut)),s("update:text",ce)}},m=r.ref(null),g=r.ref(null),w=r.computed(()=>g.value??m.value??[]),v=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,W=>te(W)),T=ci(),I=async(W,U)=>{if(W){const C=await T.load("select",W,U);if(C.length>0)if(typeof C[0]=="string"){let K=C.map(j=>fi(j));m.value=K}else m.value=C;else m.value=null}};r.watch([()=>n.source,()=>n.params],([W,U])=>{g.value=null,I(W,U)},{immediate:!v.value});let A=!1;const k=()=>{A||(A=!0,I(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([W,U])=>{if(R()&&te(n.multiple)){Me(U,c.value)||(c.value=U);return}x(U,n.valueType,w.value,!1)});let D=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(D=async W=>{if(W==null){g.value=null;return}V.value=!0;try{const U=await n.remoteMethod(W);U&&(g.value=U)}catch(U){g.value=null,console.error(U)}V.value=!1});let F=null;typeof n.filterMethod=="function"&&(F=async W=>{if(W==null){g.value=null;return}V.value=!0;try{const U=await n.filterMethod(W,m.value);U&&(g.value=U)}catch(U){g.value=null,console.error(U)}V.value=!1});const R=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",B=r.ref(!1),Y=e,H=r.computed(()=>({[Y]:!0})),$=W=>{n.allowCreate||R()&&te(n.multiple)?(s("update:modelValue",W),s("change",W),s("update:text",W),c.value=W):x(W,"value",w.value,!0)};let S=se(n,"hintText"),y=r.ref(!1);const L=W=>{let C=W.target.value;B.value=!0,de(S.value)||(y.value=!0),s("focus",C,W)},O=W=>{setTimeout(()=>{y.value&&(y.value=!1),B.value=!1},0);let C=W.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),re.value||s("blur",C,W)},z=()=>{s("clear","")},E=r.ref(!1);let q=null;const P=()=>{n.showTooltip&&E.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{E.value=!0},150))},G=()=>{q&&(clearTimeout(q),E.value=!1,q=null)},J=r.computed(()=>E.value||y.value),Q=r.computed(()=>E.value?b.value:S.value),re=r.ref(!1),le=W=>{re.value=W,s("visible-change",W),W||s("selected")},Z=W=>{s("remove-tag",W)},ee=(W,U)=>{const C=[];return W.forEach((M,N)=>{const K=lo(n,M);if(Array.isArray(K)&&K.length>0){const j=ee(K,U),X=We(n,M),ie={key:`${X}_${N}`,label:X};C.push(r.h(p.ElOptionGroup,ie,{default:()=>j}))}else{const j=wt(n,M),X=We(n,M),ne=si(n,M),ce={key:`${j}_${N}`,label:X,disabled:ne,value:j};if(typeof U=="function")C.push(r.h(p.ElOption,ce,{default:()=>U(M)}));else if(n.optionType==="item"){const ut={class:{"fox-select-item__option-left":!0}},Re=r.h("span",ut,[j]),Tt={class:{"fox-select-item__option-right":!0}},qe=r.h("span",Tt,[X]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[Re,qe]);C.push(r.h(p.ElOption,ce,{default:()=>dr}))}else n.optionType==="value"?C.push(r.h(p.ElOption,ce,{default:()=>[j]})):C.push(r.h(p.ElOption,ce))}}),C},_=r.ref();return be({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()}}),()=>{const U={...Be(a.attrs),ref:_,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:z,onChange:$,onFocus:L,onBlur:O,onVisibleChange:le,onRemoveTag:Z};typeof D=="function"&&(U["remote-method"]=D,U.loading=V.value),typeof F=="function"&&(U["filter-method"]=F,U.loading=V.value);const C={};a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.empty&&(C.empty=a.slots.empty),a.slots.options?C.default=a.slots.options:C.default=()=>ee(w.value,a.slots.option);const M=[],N=r.h(p.ElSelect,U,C);M.push(N);const K={default:()=>M};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const X={...Se(n,uo),hintText:Q.value,hintVisible:J.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:G};return v.value&&(X["appear-listen"]=!0,X.onAppear=k),r.h(o,X,K)}}}}const{componentName:hi,create:gi,scope:mi}=oe("select-item"),Dn=gi(di(hi,mi,me));var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",b="quarter",x="year",m="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={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,y){var L=String($);return!L||L.length>=S?$:""+Array(S+1-L.length).join(y)+$},A={s:I,z:function($){var S=-$.utcOffset(),y=Math.abs(S),L=Math.floor(y/60),O=y%60;return(S<=0?"+":"-")+I(L,2,"0")+":"+I(O,2,"0")},m:function $(S,y){if(S.date()<y.date())return-$(y,S);var L=12*(y.year()-S.year())+(y.month()-S.month()),O=S.clone().add(L,d),z=y-O<0,E=S.clone().add(L+(z?-1:1),d);return+(-(L+(y-O)/(z?O-E:E-O))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:x,w:c,d:f,D:m,h:u,m:s,s:i,ms:l,Q:b}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},k="en",D={};D[k]=T;var V=function($){return $ instanceof Y},F=function $(S,y,L){var O;if(!S)return k;if(typeof S=="string"){var z=S.toLowerCase();D[z]&&(O=z),y&&(D[z]=y,O=z);var E=S.split("-");if(!O&&E.length>1)return $(E[0])}else{var q=S.name;D[q]=S,O=q}return!L&&O&&(k=O),O||!L&&k},R=function($,S){if(V($))return $.clone();var y=typeof S=="object"?S:{};return y.date=$,y.args=arguments,new Y(y)},B=A;B.l=F,B.i=V,B.w=function($,S){return R($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Y=function(){function $(y){this.$L=F(y.locale,null,!0),this.parse(y)}var S=$.prototype;return S.parse=function(y){this.$d=function(L){var O=L.date,z=L.utc;if(O===null)return new Date(NaN);if(B.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var E=O.match(w);if(E){var q=E[2]-1||0,P=(E[7]||"0").substring(0,3);return z?new Date(Date.UTC(E[1],q,E[3]||1,E[4]||0,E[5]||0,E[6]||0,P)):new Date(E[1],q,E[3]||1,E[4]||0,E[5]||0,E[6]||0,P)}}return new Date(O)}(y),this.$x=y.x||{},this.init()},S.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(y,L){var O=R(y);return this.startOf(L)<=O&&O<=this.endOf(L)},S.isAfter=function(y,L){return R(y)<this.startOf(L)},S.isBefore=function(y,L){return this.endOf(L)<R(y)},S.$g=function(y,L,O){return B.u(y)?this[L]:this.set(O,y)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(y,L){var O=this,z=!!B.u(L)||L,E=B.p(y),q=function(ee,_){var W=B.w(O.$u?Date.UTC(O.$y,_,ee):new Date(O.$y,_,ee),O);return z?W:W.endOf(f)},P=function(ee,_){return B.w(O.toDate()[ee].apply(O.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(_)),O)},G=this.$W,J=this.$M,Q=this.$D,re="set"+(this.$u?"UTC":"");switch(E){case x:return z?q(1,0):q(31,11);case d:return z?q(1,J):q(0,J+1);case c:var le=this.$locale().weekStart||0,Z=(G<le?G+7:G)-le;return q(z?Q-Z:Q+(6-Z),J);case f:case m:return P(re+"Hours",0);case u:return P(re+"Minutes",1);case s:return P(re+"Seconds",2);case i:return P(re+"Milliseconds",3);default:return this.clone()}},S.endOf=function(y){return this.startOf(y,!1)},S.$set=function(y,L){var O,z=B.p(y),E="set"+(this.$u?"UTC":""),q=(O={},O[f]=E+"Date",O[m]=E+"Date",O[d]=E+"Month",O[x]=E+"FullYear",O[u]=E+"Hours",O[s]=E+"Minutes",O[i]=E+"Seconds",O[l]=E+"Milliseconds",O)[z],P=z===f?this.$D+(L-this.$W):L;if(z===d||z===x){var G=this.clone().set(m,1);G.$d[q](P),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else q&&this.$d[q](P);return this.init(),this},S.set=function(y,L){return this.clone().$set(y,L)},S.get=function(y){return this[B.p(y)]()},S.add=function(y,L){var O,z=this;y=Number(y);var E=B.p(L),q=function(J){var Q=R(z);return B.w(Q.date(Q.date()+Math.round(J*y)),z)};if(E===d)return this.set(d,this.$M+y);if(E===x)return this.set(x,this.$y+y);if(E===f)return q(1);if(E===c)return q(7);var P=(O={},O[s]=n,O[u]=a,O[i]=o,O)[E]||1,G=this.$d.getTime()+y*P;return B.w(G,this)},S.subtract=function(y,L){return this.add(-1*y,L)},S.format=function(y){var L=this,O=this.$locale();if(!this.isValid())return O.invalidDate||g;var z=y||"YYYY-MM-DDTHH:mm:ssZ",E=B.z(this),q=this.$H,P=this.$m,G=this.$M,J=O.weekdays,Q=O.months,re=function(_,W,U,C){return _&&(_[W]||_(L,z))||U[W].slice(0,C)},le=function(_){return B.s(q%12||12,_,"0")},Z=O.meridiem||function(_,W,U){var C=_<12?"AM":"PM";return U?C.toLowerCase():C},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:B.s(G+1,2,"0"),MMM:re(O.monthsShort,G,Q,3),MMMM:re(Q,G),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:re(O.weekdaysMin,this.$W,J,2),ddd:re(O.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(q),HH:B.s(q,2,"0"),h:le(1),hh:le(2),a:Z(q,P,!0),A:Z(q,P,!1),m:String(P),mm:B.s(P,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:E};return z.replace(v,function(_,W){return W||ee[_]||E.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(y,L,O){var z,E=B.p(L),q=R(y),P=(q.utcOffset()-this.utcOffset())*n,G=this-q,J=B.m(this,q);return J=(z={},z[x]=J/12,z[d]=J,z[b]=J/3,z[c]=(G-P)/6048e5,z[f]=(G-P)/864e5,z[u]=G/a,z[s]=G/n,z[i]=G/o,z)[E]||G,O?J:B.a(J)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return D[this.$L]},S.locale=function(y,L){if(!y)return this.$L;var O=this.clone(),z=F(y,L,!0);return z&&(O.$L=z),O},S.clone=function(){return B.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()},$}(),H=Y.prototype;return R.prototype=H,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",x],["$D",m]].forEach(function($){H[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),R.extend=function($,S){return $.$i||($(S,Y,R),$.$i=!0),R},R.locale=F,R.isDayjs=V,R.unix=function($){return R(1e3*$)},R.en=D[k],R.Ls=D,R.p={},R})})(co);var pi=co.exports;const Le=He(pi);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,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,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(g){return(g=+g)+(g>68?1900:2e3)},f=function(g){return function(w){this[g]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var v=w.match(/([+-]|\d\d)/g),T=60*v[1]+(+v[2]||0);return T===0?0:v[0]==="+"?-T:T}(g)}],d=function(g){var w=s[g];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(g,w){var v,T=s.meridiem;if(T){for(var I=1;I<=24;I+=1)if(g.indexOf(T(I,0,w))>-1){v=I>12;break}}else v=g===(w?"pm":"PM");return v},x={A:[i,function(g){this.afternoon=b(g,!1)}],a:[i,function(g){this.afternoon=b(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[a,f("day")],Do:[i,function(g){var w=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],w)for(var T=1;T<=31;T+=1)w(T).replace(/\[|\]/g,"")===g&&(this.day=T)}],M:[l,f("month")],MM:[a,f("month")],MMM:[i,function(g){var w=d("months"),v=(d("monthsShort")||w.map(function(T){return T.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[i,function(g){var w=d("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function m(g){var w,v;w=g,v=s&&s.formats;for(var T=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,B,Y){var H=Y&&Y.toUpperCase();return B||v[Y]||o[Y]||v[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,S,y){return S||y.slice(1)})})).match(n),I=T.length,A=0;A<I;A+=1){var k=T[A],D=x[k],V=D&&D[0],F=D&&D[1];T[A]=F?{regex:V,parser:F}:k.replace(/^\[|\]$/g,"")}return function(R){for(var B={},Y=0,H=0;Y<I;Y+=1){var $=T[Y];if(typeof $=="string")H+=$.length;else{var S=$.regex,y=$.parser,L=R.slice(H),O=S.exec(L)[0];y.call(B,O),R=R.replace(O,"")}}return function(z){var E=z.afternoon;if(E!==void 0){var q=z.hours;E?q<12&&(z.hours+=12):q===12&&(z.hours=0),delete z.afternoon}}(B),B}}return function(g,w,v){v.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var T=w.prototype,I=T.parse;T.parse=function(A){var k=A.date,D=A.utc,V=A.args;this.$u=D;var F=V[1];if(typeof F=="string"){var R=V[2]===!0,B=V[3]===!0,Y=R||B,H=V[2];B&&(H=V[2]),s=this.$locale(),!R&&H&&(s=v.Ls[H]),this.$d=function(L,O,z){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*L);var E=m(O)(L),q=E.year,P=E.month,G=E.day,J=E.hours,Q=E.minutes,re=E.seconds,le=E.milliseconds,Z=E.zone,ee=new Date,_=G||(q||P?1:ee.getDate()),W=q||ee.getFullYear(),U=0;q&&!P||(U=P>0?P-1:ee.getMonth());var C=J||0,M=Q||0,N=re||0,K=le||0;return Z?new Date(Date.UTC(W,U,_,C,M,N,K+60*Z.offset*1e3)):z?new Date(Date.UTC(W,U,_,C,M,N,K)):new Date(W,U,_,C,M,N,K)}catch{return new Date("")}}(k,F,D),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),Y&&k!=this.format(F)&&(this.$d=new Date("")),s={}}else if(F instanceof Array)for(var $=F.length,S=1;S<=$;S+=1){V[1]=F[S-1];var y=v.apply(this,V);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}S===$&&(this.$d=new Date(""))}else I.call(this,A)}}})})(fo);var yi=fo.exports;const bi=He(yi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n,a){var l=n.prototype,i=l.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=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 f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return c.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)}}})})(ho);var wi=ho.exports;const vi=He(wi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n,a){var l=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,b,x,m,g){var w=d.name?d:d.$locale(),v=i(w[b]),T=i(w[x]),I=v||T.map(function(k){return k.slice(0,m)});if(!g)return I;var A=w.weekStart;return I.map(function(k,D){return I[(D+(A||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,w){return g||w.slice(1)})}(d.formats[b.toUpperCase()])},c=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 f(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return f(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(d){return s(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(go);var Si=go.exports;const Ti=He(Si);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){var o="week",n="year";return function(a,l,i){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var b=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),x=this.diff(b,o,!0);return x<0?i(this).startOf("week").week():Math.ceil(x)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(mo);var $i=mo.exports;const xi=He($i);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),i=this.year();return l===1&&a===11?i+1:a===0&&l>=52?i-1:i}}})})(po);var Ci=po.exports;const Ei=He(Ci);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?i:this.add(l-i,"day")}}})})(yo);var Ni=yo.exports;const ki=He(Ni);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(bo);var Vi=bo.exports;const Ii=He(Vi);var wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(wo);var Oi=wo.exports;const Ri=He(Oi);Le.extend(Ti),Le.extend(vi),Le.extend(bi),Le.extend(xi),Le.extend(Ei),Le.extend(ki),Le.extend(Ii),Le.extend(Ri);const Oe={format(e,t){return Le(e).format(t)},parser(e,t){return Le(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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),a=this.getNumTwoBit(e.getDate());return[o,n,a].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 a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),i=a.getDate(),s=6-l;return n!==0&&(l=l==0?7:l,s=7-l),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),i=Math.round((a.valueOf()-l.valueOf())/864e5);let s=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let i=a.getDay();if(n===0){const u=l-i*864e5,f=l+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=l-(i-1)*s,f=l+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Oe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Oe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=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}},So={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 Di(e,t,o){return{props:{...ge,...Te,...vo,...So},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=r.computed(()=>y.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),x=r.computed(()=>y.value?"longTermKey":"normalKey"),m=q=>{if(y.value&&n.type==="daterange"){const P=[...d.value];P[0]=q,d.value=P}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},g=r.computed(()=>y.value&&n.type==="daterange"?"date":n.type),w=e,v=r.computed(()=>({[`${w}`]:!0,"is-long":y.value}));let T=se(n,"hintText"),I=r.ref(!1);const A=q=>{let G=q.target.value;c.value=!0,de(T.value)||(I.value=!0),s("focus",G,q)},k=q=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let G=q.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,q)},D=()=>{s("clear","")},V=q=>{s("calendar-change",q)},F=(q,P,G)=>{s("panel-change",q,P,G)},R=q=>{s("visible-change",q)},B=$e(r.computed(()=>n.longTermText),"longTermText",ke.Near),Y=$e(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",ke.Near),H=$e(r.computed(()=>n.longTermValue),"longTermValue",ke.Near),$=$e(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",ke.Near);let S=null;const y=r.ref(te(n.longTerm)),L=q=>{if(y.value=q,s("update:longTerm",q),q){if(S=d.value,n.type==="daterange"){const P=[];Array.isArray(H.value)?(P[0]=d.value?d.value[0]??H.value[0]:null,P[1]=H.value[1]??H.value[0]):(P[0]=d.value?d.value[0]??H.value:null,P[1]=y.value),P[0]||(P[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),d.value=P}else Array.isArray(H.value)?d.value=H.value[1]??H.value[0]:d.value=H.value,d.value||(d.value=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const P=[];P[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(S)?P[1]=S[1]:P[1]=S,P[0]||(P[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),d.value=P}else d.value=S;s("update:modelValue",d.value)}},O=te(n.isLongTerm);if(O){const q=()=>{if(y.value===!0){if(S=d.value,n.type==="daterange"){const P=[d.value[0]];Array.isArray(H.value)?P[1]=H.value[1]??H.value[0]:P[1]=y.value,P[0]||(P[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),d.value=P}else d.value=H.value;s("update:modelValue",d.value)}else Me(H.value,d.value)&&(y.value=!0)};q(),r.watch([()=>n.longTerm],([P])=>{y.value!==P&&q()}),r.watch([()=>d.value],([P])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(P))try{let J=P[1];if(!J)return;typeof J!="string"&&n.valueFormat&&(J=Oe.format(J,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(J===Q||Array.isArray($.value)&&$.value.findIndex(le=>J==le)!==-1)&&(G=!0)}catch(J){console.error(J)}y.value!==G&&(y.value=G)},{immediate:!0})}const z=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),E=r.ref();return be({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()}}),()=>{const P={...a.attrs,key:x.value,type:g.value,ref:E,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,"onUpdate:modelValue":m,onClear:D,onFocus:A,onBlur:k,onCalendarChange:V,onPanelChange:F,onVisibleChange:R},G={};a.slots["range-separator"]&&(G["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(G.default=a.slots.cell);const J=[],Q=r.h(p.ElDatePicker,P,G);J.push(Q);const re={default:()=>J};if(a.slots.default&&(re.label=a.slots.default),a.slots.fixedTip&&(re.fixedTip=a.slots.fixedTip),O){if(y.value){const _=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),W=r.h("input",{class:["fox-date-item__long-text"],value:B.value,readonly:!0}),U={class:z.value},C=r.h("div",U,{default:()=>[_,W]});J.push(C)}if(!i.value&&!l.value){const _={label:Y.value||B.value,disabled:i.value||l.value,modelValue:y.value,"onUpdate:modelValue":L},W=r.h(p.ElCheckbox,_),U=r.h("div",{class:{[`${w}__append`]:!0}},[W]);re.append=()=>U}}const Z={...Se(n,vo,So),class:{[`${w}__wrapper`]:!0,"has-append":O},hintText:T.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,Z,re)}}}}const{componentName:Fi,create:Ai,scope:Bi}=oe("date-item"),Fn=Ai(Di(Fi,Bi,me)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Li(e,t,o){return{props:{...ge,...Te,...To},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0})),m=D=>{d.value=D,s("update:modelValue",D),s("change",D)};let g=se(n,"hintText"),w=r.ref(!1);const v=D=>{let F=D.target.value;c.value=!0,de(g.value)||(w.value=!0),s("focus",F,D)},T=D=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let F=D.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,D)},I=()=>{s("clear","")},A=D=>{s("visible-change",D)},k=r.ref();return be({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()}}),()=>{const V={...a.attrs,ref:k,class:x.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:I,onFocus:v,onBlur:T,onVisibleChange:A},F={},R=[],B=r.h(p.ElTimePicker,V,F);R.push(B);const Y={default:()=>R};a.slots.default&&(Y.label=a.slots.default),a.slots.fixedTip&&(Y.fixedTip=a.slots.fixedTip);const $={...Se(n,To),hintText:g.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,$,Y)}}}}const{componentName:qi,create:Mi,scope:_i}=oe("time-item"),An=Mi(Li(qi,_i,me)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Pi(e,t,o){return{props:{...ge,...Te,...$o},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0})),m=k=>{d.value=k,s("update:modelValue",k),s("change",k)};let g=se(n,"hintText"),w=r.ref(!1);const v=k=>{let V=k.target.value;c.value=!0,de(g.value)||(w.value=!0),s("focus",V,k)},T=k=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let V=k.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,k)},I=()=>{s("clear","")},A=r.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const D={...a.attrs,ref:A,class:x.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:I,onFocus:v,onBlur:T},V={},F=[],R=r.h(p.ElTimeSelect,D,V);F.push(R);const B={default:()=>F};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const H={...Se(n,$o),hintText:g.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,H,B)}}}}const{componentName:ji,create:Hi,scope:zi}=oe("time-select-item"),Bn=Hi(Pi(ji,zi,me));function xo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Co(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=rn(`${e}`,wr(`${t}`),20);return xo(n)}}function Ki(e,t=-1,o=!1,n=3,a=","){return Ct(e,t,o,n,a)}function Eo(e,t,o,n,a=!0){if(e=="")return"";if(e=vr(e),t=ve(t),t==1)return e;if(n)e=Co(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ve(o)+2,"0"):e=rn(e,1,ve(o)));else{let l=-1*t;e=Co(e,l)}return e}function No(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),a=on(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),a=on(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ko={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 Wi(e,t,o){return{props:{...ge,...Te,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(!1),f=se(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,S,y])=>{if(de($)){c.value="";return}const L=Eo($,S,y,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:b}=De.useFoxI18n(t),x=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(c.value)?$=Ki(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=b(["placeholder",$]),$}),m=e,g=r.computed(()=>({[m]:!0,[`${m}__disabled`]:l.value,[`${m}__placeholder`]:c.value.length>0})),w=$e(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const v=r.ref(""),T=r.computed(()=>{let $=v.value;return de($)&&($=n.errorTip??""),$}),I=r.ref(""),A=r.ref(!1),k=($,S)=>{if($=`${$}`,de($)){c.value="",f.value="",S.forEach(y=>{s(y,"")}),te(n.showTip)&&A.value&&(A.value=!1);return}if($.length>=2){let y=$;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!Vr($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Ir($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Or($)>Number(n.decimalLength)){r.triggerRef(c);return}let y=No($,n);if(y.maxValid===!1){v.value=y.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}I.value=$,te(n.showTip)&&(A.value=$.length>0),c.value=$,f.value=Eo($,n.rates,n.precision,!0),S.forEach(y=>{s(y,f.value)})},D=$=>{k($,["update:modelValue","input"])},V=$=>{k($,["update:modelValue","change"])},F=$=>{if(u.value=!0,te(n.showTip)){let S=c.value;de(S)&&(S=n.hintText),de(S)||(I.value=S,A.value=!0)}v.value="",s("focus",f.value,$)},R=$=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&A.value===!0&&(A.value=!1)},0),!de(c.value)){let S=No(c.value,n);if(S.minValid===!1||S.maxValid===!1){v.value=S.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},B=()=>{s("clear","")},Y=r.computed(()=>dt(n.unit)>0),H=r.ref();return be({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const S={...Be(a.attrs),ref:H,class:g.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onInput:D,onChange:V,onFocus:F,onBlur:R},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:Y.value&&(y.suffix=()=>[n.unit]);const L=[],O=r.h(p.ElInput,S,y);L.push(O);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const q={...Se(n,ko),errorTip:T.value,hintText:I.value,hintVisible:A.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,q,z)}}}}const{componentName:Yi,create:Gi,scope:Ui}=oe("money-item"),Ln=Gi(Wi(Yi,Ui,me)),Vo={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 Xi(e,t,o){return{props:{...ge,...Te,...Vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0,[`${b}__append`]:D.value})),m=r.computed(()=>({[`${b}__unit`]:!0})),g=F=>{d.value=F,s("update:modelValue",F),s("input",F)},w=F=>{s("change",F)};let v=se(n,"hintText"),T=r.ref(!1);const I=F=>{let B=F.target.value;c.value=!0,de(v.value)||(T.value=!0),s("focus",B,F)},A=F=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let B=F.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),s("blur",B,F)},k=()=>{s("clear","")},D=r.computed(()=>dt(n.unit)>0),V=r.ref();return be({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const R={...Be(a.attrs),ref:V,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onChange:w,onInput:g,onFocus:I,onBlur:A},B={},Y=[],H=r.h(p.ElInputNumber,R,B);Y.push(H);const $={default:()=>Y};a.slots.default&&($.label=a.slots.default),a.slots.fixedTip&&($.fixedTip=a.slots.fixedTip);const y={...Se(n,Vo),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};if(a.slots.append)$.append=a.slots.append;else if(D.value){const O={class:m.value},z=r.h("div",O,[n.unit]);$.append=()=>z}return r.h(o,y,$)}}}}const{componentName:Zi,create:Ji,scope:Qi}=oe("input-number-item"),qn=Ji(Xi(Zi,Qi,me));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function es(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let ts=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Ae(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function ns(){const e=r.getCurrentInstance();return new ts(e.proxy)}function Mn(e,t,o){const n=Ze(e,t),a=Ze(e,o);if(n!==a)return!1;const l=Je(e,t),i=Je(e,o);return l===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 a=[];let l=n;for(let i=0;Array.isArray(l)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Io(e,s,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ze(e,f)===s;else if(o==="item")u=Mn(e,f,s);else{let c=Je(e,f);c==null&&(c=Ze(e,f)),u=c===s}if(u){a.push(f),l=es(e,f);break}}if(!u)break}}return a}function rs(e){return{text:e,value:e}}const Oo={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}};function os(e,t,o){return{props:{...ge,...Te,...Oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(ee=>Ze(n,ee)).join(" "):""),x=(Z,ee,_,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===Z)return;c.value=Z;const M=r.toRaw(Z);if(W){const N=le?.value.getCheckedNodes();if(N)if(n.multiple){const K=[];N.forEach(j=>{const ne=(j.pathNodes??[]).map(ie=>ie.data);K.push(ne)}),s("update:pathNodes",K)}else{const j=(N[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",j)}s("update:modelValue",M),s("change",M)}}const U=Io(n,Z,ee,_);if(U===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,W&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let C=!0;if(U.length!==d.value.length)C=!1;else for(let M=0;M<U.length;M++){const N=U[M],K=d.value[M];if(Array.isArray(N)){if(!Array.isArray(K)||N.length!==K.length)C=!1;else for(let j=0;j<N.length;j++)if(!Mn(n,N[j],K[j])){C=!1;break}}else Mn(n,N,K)||(C=!1);if(!C)break}if(!C){d.value=U;let M=[],N=[];U.forEach(j=>{if(Array.isArray(j)){let X=[],ne=[];for(let ie of j)X.push(Je(n,ie)),n.valueType==="text"?ne.push(Ze(n,ie)):n.valueType==="item"?ne.push(ie):ne.push(Je(n,ie));M.push(X),N.push(ne)}else M.push(Je(n,j)),n.valueType==="text"?N.push(Ze(n,j)):n.valueType==="item"?N.push(j):N.push(Je(n,j))}),c.value=M;const K=r.toRaw(N);W&&(s("update:pathNodes",U),s("update:modelValue",K),s("change",K))}},m=r.ref([]),g=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,Z=>te(Z)),w=ns(),v=async(Z,ee)=>{if(Z){const _=await w.load("cascader",Z,ee);if(_.length>0)if(typeof _[0]=="string"){let C=_.map(M=>rs(M));m.value=C}else m.value=_}};r.watch([()=>n.source,()=>n.params],async([Z,ee])=>{v(Z,ee)},{immediate:!(g.value||n.lazy)});let T=!1;const I=()=>{T||(T=!0,v(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([Z,ee])=>{x(ee,n.valueType,Z,!1)}),n.lazy&&x(n.modelValue,"value",[],!1);let A=null,k=r.ref(!1);typeof n.remoteMethod=="function"&&(A=async Z=>{if(Z!=null){k.value=!0;try{const ee=await n.remoteMethod(Z);m.value=ee}catch(ee){console.error(ee)}k.value=!1}});const D=r.ref(!1),V=e,F=r.computed(()=>({[V]:!0})),R=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(ee,_)=>{const W=await w.load("cascader",n.source,ee,!0);_(W)}),Z}),B=Z=>{n.allowCreate?(s("update:modelValue",Z),s("change",Z),c.value=Z):x(Z,"value",m.value,!0)};let Y=se(n,"hintText"),H=r.ref(!1);const $=Z=>{let _=Z.target.value;D.value=!0,de(Y.value)||(H.value=!0),s("focus",_,Z)},S=Z=>{setTimeout(()=>{H.value&&(H.value=!1),D.value=!1},0);let _=Z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),G.value||s("blur",_,Z)},y=()=>{s("clear","")},L=r.ref(!1);let O=null;const z=()=>{n.showTooltip&&L.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{L.value=!0},150))},E=()=>{O&&(clearTimeout(O),L.value=!1,O=null)},q=r.computed(()=>L.value||H.value),P=r.computed(()=>L.value?b.value:Y.value),G=r.ref(!1),J=Z=>{G.value=Z,s("visible-change",Z),Z||s("selected")},Q=Z=>{s("remove-tag",Z)},re=Z=>{s("expand-change",Z)},le=r.ref();return be({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes()}),()=>{const ee={...a.attrs,ref:le,class:F.value,props:R.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||i.value,options:m.value,modelValue:c.value,onClear:y,onChange:B,onFocus:$,onBlur:S,onVisibleChange:J,onRemoveTag:Q,expandChange:re};typeof A=="function"&&(ee["remote-method"]=A,ee.loading=k.value);const _={};a.slots.option&&(_.default=a.slots.option),a.slots.empty&&(_.empty=a.slots.empty);const W=[],U=r.h(p.ElCascader,ee,_);W.push(U);const C={default:()=>W};a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip);const N={...Se(n,Oo),hintText:P.value,hintVisible:q.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:z,onMouseleave:E};return g.value&&!n.lazy&&(N["appear-listen"]=!0,N.onAppear=I),r.h(o,N,C)}}}}const{componentName:as,create:ls,scope:is}=oe("cascader-item"),_n=ls(os(as,is,me)),Ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ss(e,t,o){return{props:{...ge,...Te,...Ro},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0})),m=V=>{d.value=V,s("update:modelValue",V),s("input",V)},g=V=>{s("change",V)},w=V=>{s("select",V)};let v=se(n,"hintText"),T=r.ref(!1);const I=V=>{let R=V.target.value;c.value=!0,de(v.value)||(T.value=!0),s("focus",R,V)},A=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,V)},k=()=>{s("clear","")},D=r.ref();return be({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const F={...a.attrs,ref:D,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,onClear:k,onChange:g,onInput:m,onFocus:I,onBlur:A,onSelect:w},R={};a.slots.prepend&&(R.prepend=a.slots.prepend),a.slots.append&&(R.append=a.slots.append),a.slots.prefix&&(R.prefix=a.slots.prefix),a.slots.suffix&&(R.suffix=a.slots.suffix),a.slots.option&&(R.default=a.slots.option);const B=[],Y=r.h(p.ElAutocomplete,F,R);B.push(Y);const H={default:()=>B};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const S={...Se(n,Ro),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,S,H)}}}}const{componentName:us,create:cs,scope:fs}=oe("autocomplete-item"),Pn=cs(ss(us,fs,me));function ds(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(b=>b[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;i.push(d[o]),u=d[a]}}return i}let hs=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 a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function gs(){const e=r.getCurrentInstance();return new hs(e.proxy)}const Do={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 ms(e,t){return{props:{...Do},setup(o,{attrs:n,slots:a}){const l=gs(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await l.load(o.sourceType,f,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=ds(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return a.default?a.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,f,{default:()=>s.value}):r.h(u,f,s.value)}}}}const{componentName:vf,create:ps,scope:Sf}=oe("mapping"),vt=ps(ms());function ys(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function bs(e,t){return{props:{...Do},setup(o,{attrs:n,slots:a}){return()=>{const l={default:i=>{const s=ys(i.row,i.column.property);return a.default?r.h(vt,{...o,modelValue:s},{default:a.default}):r.h(vt,{...o,modelValue:s})}};return r.h(p.ElTableColumn,{...n},l)}}}}const{componentName:Tf,create:ws,scope:$f}=oe("table-mapping-column"),jn=ws(bs()),vs=Symbol.for("TableStateKey");function Fo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function Ss(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(vs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=Fo(s.row,s.column.property),f=l?Fo(l,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":c}};return r.h("label",x,[b])}};return r.h(p.ElTableColumn,{...n},i)}}}}const{componentName:xf,create:Ts,scope:Cf}=oe("table-radio-column"),Hn=Ts(Ss()),$s={},xs={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"},Cs=[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 Es(e,t){return r.openBlock(),r.createElementBlock("svg",xs,Cs)}const Ns=Ve($s,[["render",Es]]),{componentName:Nf,create:ks,scope:kf}=oe("table-setting"),Vs={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:"不固定"}},Is=ks({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Ns,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Vs},emits:[],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed===""||E.fixed===!0||E.fixed==="left")),i=r.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed==="right")),s=r.computed(()=>a.value.filter(E=>!(E.label===""||E.type||E.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||i.value.length>0)&&s.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>i.value.length>0),d=E=>E.length>1,b=E=>{const q=[];a.value=E.map((G,J)=>(!(G.label===""||G.type)&&G.visible!==!1&&q.push(G.prop),{...G,sortIndex:J})),s.value.length+l.value.length+i.value.length===q.length?T.value=!0:q.length>0&&(I.value=!0),D.value=q},x=E=>E?E.type?E.type:E.label?E.prop:"":"",m=(E,q)=>{if(E.length!==q.length)return!1;const P=E.map(G=>x(G));for(let G of q){const J=x(G);if(P.indexOf(J)===-1)return!1}return!0},g=E=>{if(!E){const q=e.tableRef.getColumnSetting(),P=q.srcColumnPropertyList;n=P.map((G,J)=>({...G,sortIndex:J})),E=q.columnPropertyList,E&&E.length>0&&m(P,E)||(E=P)}b(E)},w=()=>{e.tableRef.setColumnSetting(a.value)},v=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),I=r.ref(!1),A=E=>{const q=[];a.value.forEach(G=>{E&&!(G.label===""||G.type)&&q.push(G.prop),G.visible=E}),T.value=!1,I.value=!1,s.value.length+l.value.length+i.value.length===q.length?T.value=!0:q.length>0&&(I.value=!0),D.value=q,w()},k=()=>{g(n),w()},D=r.ref([]),V=E=>{a.value.forEach(P=>{if(P.label===""||P.type)return;const G=E.indexOf(P.prop)!==-1;P.visible=G}),T.value=!1,I.value=!1;const q=s.value.length+l.value.length+i.value.length;E.length===q?T.value=!0:E.length>0&&(I.value=!0),w()},F=()=>{g()};r.onMounted(()=>{setTimeout(()=>{g()},50)});const R={currentRow:null,index:null,roleType:null},B=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,B(E)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:T,isIndeterminate:I,handleCheckAllChange:A,handleReset:k,checkedValue:D,handleCheckChange:V,onShow:F,onDragStart:E=>{const q=E.currentTarget;q&&q.dataset&&(R.roleType=q.dataset.roleType,R.index=q.dataset.index)},onDragEnd:E=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null,R.roleType=null},onDragOver:E=>{const q=E.currentTarget;E.relatedTarget;const P=B(q);if(!P)return;const G=P.dataset&&P.dataset.roleType;R.roleType===G&&(E.preventDefault(),R.currentRow&&R.currentRow!==P&&R.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),R.currentRow=P)},onDragLeave:E=>{E.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},onDrop:E=>{const q=E.currentTarget,P=B(q);if(!P)return;const G=P.dataset&&P.dataset.roleType;if(R.roleType!==G)return;E.preventDefault();const J=Number(R.index),Q=Number(P.dataset.index);if(J!==Q){if(J<Q){const re=a.value[J];a.value.splice(J,1),a.value.splice(Q,0,re)}else{const re=a.value[J];a.value.splice(J,1),a.value.splice(Q+1,0,re)}b(a.value),w()}},toLeftFixed:E=>{const q=a.value[E];q.fixed="left",w()},toRightFixed:E=>{const q=a.value[E];q.fixed="right",w()},toUnFixed:E=>{const q=a.value[E];q.fixed=void 0,w()},checkboxLabelStyle:v}}}),Os={class:"fox-table-setting"},Rs={class:"fox-table-setting__header"},Ds={class:"fox-table-setting__body"},Fs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},As={key:0,class:"fox-table-setting__body-title"},Bs=["data-index","draggable"],Ls={class:"tools-item"},qs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ms={key:0,class:"fox-table-setting__body-title"},_s=["data-index","draggable"],Ps={class:"tools-item"},js={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Hs={key:0,class:"fox-table-setting__body-title"},zs=["data-index","draggable"],Ks={class:"tools-item"};function Ws(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),x=r.resolveComponent("fox-checkbox"),m=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",Os,[r.createElementVNode("div",Rs,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),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",Ds,[r.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[2]||(t[2]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[3]||(t[3]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[4]||(t[4]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[5]||(t[5]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ls,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bs))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",qs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Ms,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[7]||(t[7]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[8]||(t[8]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[9]||(t[9]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[10]||(t[10]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ps,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,_s))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Hs,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[12]||(t[12]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[13]||(t[13]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[14]||(t[14]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[15]||(t[15]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(x,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ks,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,zs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Kt=Ve(Is,[["render",Ws]]);let Ys=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,i,s){if(Array.isArray(o)){let f=(n-1)*a,c=f+a;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,i,s]);const u=Ae(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,i,s]))}};function Gs(){const e=r.getCurrentInstance();return new Ys(e.proxy)}class Us{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ae(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ae(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ae(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Ao(){const e=r.getCurrentInstance();return new Us(e.proxy)}const Xs=Symbol.for("TableStateKey");function Zs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function zn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],i=Zs(n,a);if(l!==i)return!1}return!0})}const Bo={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"}},Lo={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}},Kn={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 Js(e,t,o){return{inheritAttrs:!1,props:{...ge,...Te,...Bo,...Lo,...Kn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=De.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...N){return I.value}}},n.prop??a.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),f=r.computed(()=>({[`${s}__setting`]:!0})),c=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,N=>{b.value=N});const x=N=>{b.value=N,i("page-index-change",N)},m=r.ref(n.pageSize);r.watch(()=>n.pageSize,N=>{m.value=N});const g=N=>{m.value=N,i("page-size-change",N)},w=r.shallowRef({}),v=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),I=r.ref(),A=Gs();let k=!0;const D=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),V=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>te(N)),F=async(N,K,j,X)=>{try{const ne=await A.load("table",N,K,j,X,k,l.value);T.value=ne.totalSize,I.value=ne.page}catch(ne){console.error("[FoxUI] Load Table Data Fail",ne),T.value=0,I.value=[]}k=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([b,m],([N,K],[j,X])=>{K!==X&&(b.value=1,N=1),F(n.data,N,K,v.value)}),r.watch([()=>n.data,v],([N,K],[j,X])=>{D()&&(N!==j&&(k=!0),!(!Array.isArray(N)&&Me(N,j)&&Me(K,X))&&F(N,b.value,m.value,K))},{deep:!0});const R=(N={},K=!1)=>new Promise(j=>{w.value=r.toRaw(N??{}),r.triggerRef(w),K||(b.value=n.pageIndex??1),r.nextTick(async()=>{await F(n.data,b.value,m.value,v.value),j()})}),B=()=>{T.value=0,I.value=[]};let Y=!1;const H=()=>{Y||(Y=!0,R())};D()&&!V.value&&R();const $=r.ref(null);r.provide(Xs,{currentRow:$});const S=(N,K)=>{$.value=N,i("current-change",N,K)},y=(N,K,j)=>{i("row-click",N,K,j),te(n.rowClickSelectable)===!0&&M?.value.toggleRowSelection(N)},L=[],O=(N,K)=>{if(i("expand-change",N,K),te(n.uniqueExpansion))if(Array.isArray(K)&&K.length==0){const j=L.length;L.splice(0,j)}else{L.forEach(X=>{X!==N&&M?.value.toggleRowExpansion(X,!1)});const j=L.length;L.splice(0,j,N)}},z=a.attrs.id??n.prop??a.attrs.name,E=Ao(),q=r.ref([]);let P=[];const G=()=>({srcColumnPropertyList:P.map(K=>({...K})),columnPropertyList:q.value}),J=N=>{q.value=[...N],re()},Q=async()=>{const N=await E.load(z);N&&(q.value=N)},re=()=>{E.save(z,q.value)},le=()=>{E.remove(z)};Q();const Z=N=>N?N.type?N.type:N.label?N.prop:"":"",ee=r.computed(()=>{if(typeof a.slots.default=="function"){const N=a.slots.default(),K=new Map;if(P=[],N.forEach(j=>{const X=j;if(!X.props)return;const ne=Z(X.props);K.set(ne,j);const ie={label:"",prop:""};Object.assign(ie,X.props),P.push(ie)}),q.value.length===P.length){const j=[];for(let X of q.value){const ne=Z(X),ie=K.get(ne);if(!ie)return N;if(X.visible===!1)continue;const ce=ie;ce.props.fixed=X.fixed,j.push(ce)}return j}return N}return[]}),_=r.shallowRef(new Map),W=({column:N,rowIndex:K})=>{const j=`${K}_${N.property}`;return _.value.get(j)??""},U=N=>typeof N=="function"?K=>{const j=[];let X=W(K);return X&&j.push(X),X=N(K),X&&j.push(X),j.length===0?"":j.join(" ")}:W,C=(N,K,j)=>{const X=`${N}_${K}`;j?_.value.set(X,j):_.value.delete(X),r.triggerRef(_)},M=r.ref();return be({clearSelection:()=>M?.value.clearSelection(),getSelectionRows:()=>M?.value.getSelectionRows(),toggleRowSelection:(N,K)=>{M?.value.toggleRowSelection(N,K)},toggleRowSelectionByProp:(N,K)=>{if(!I.value)return;const j=zn(I.value,N);j.length!==0&&j.forEach(X=>{M?.value.toggleRowSelection(X,K)})},toggleAllSelection:()=>{M?.value.toggleAllSelection()},toggleRowExpansion:(N,K)=>{M?.value.toggleRowExpansion(N,K)},toggleRowExpansionByProp:(N,K)=>{if(!I.value)return;const j=zn(I.value,N);j.length!==0&&j.forEach(X=>{M?.value.toggleRowExpansion(X,K)})},setCurrentRow:N=>{M?.value.setCurrentRow(N)},setCurrentRowByProp:N=>{if(!I.value)return;const K=zn(I.value,N);K.length!==0&&M?.value.setCurrentRow(K[0])},getCurrentRow:()=>$.value,clearSort:()=>{M?.value.clearSort()},clearFilter:N=>{M?.value.clearFilter(N)},doLayout:()=>{M?.value.doLayout()},sort:(N,K)=>{M?.value.sort(N,K)},scrollTo:(N,K)=>{M?.value.scrollTo(N,K)},setScrollTop:N=>{M?.value.setScrollTop(N)},setScrollLeft:N=>{M?.value.setScrollLeft(N)},loadData:R,clearData:B,getData(){return I.value},getTotalSize(){return T.value},getPageIndex(){return b.value},getPageSize(){return m.value},getColumnSetting:G,setColumnSetting:J,removeColumnSetting:le,setCellClassName:C}),()=>{const K={...Be(a.attrs),onCurrentChange:S,onRowClick:y,onExpandChange:O,data:I.value,ref:M,class:u.value,"cell-class-name":U(n.cellClassName)},j={};a.slots.default&&(j.default=()=>ee.value),a.slots.append&&(j.append=a.slots.append),a.slots.empty&&(j.empty=a.slots.empty);const X=[],ne=r.h(p.ElTable,K,j);X.push(ne);let ie=null;if(typeof a.slots.pagination=="function")ie=a.slots.pagination();else if(n.showPagination){const qe={class:d.value,total:T.value,pageSize:m.value,"onUpdate:pageSize":g,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ie=r.h(p.ElPagination,qe)}if(n.showSetting){const qe=[];ie&&qe.push(ie);const dr=r.h(p.ElIcon,{class:f.value},{default:()=>r.h(Ne.Setting)}),ff=Dr(n,Kn),df=r.h(Kt,{...ff,tableRef:{getColumnSetting:G,setColumnSetting:J,removeColumnSetting:le}},{default:()=>dr});qe.push(df);const hf=r.h("div",{class:c.value},qe);X.push(hf)}else ie&&X.push(ie);const ce={default:()=>X},Re={...Se(n,Bo,Lo,Kn),prop:`${n.prop}_item`};return Re.contentClass=`${s}__wrap`,Re.errorMarkClass="is-table-error",V.value&&D()&&(Re["appear-listen"]=!0,Re.onAppear=H),r.h(o,Re,ce)}}}}const{componentName:Qs,create:eu,scope:tu}=oe("table-item"),Wn=eu(Js(Qs,tu,me));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ru=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 a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ou(){const e=r.getCurrentInstance();return new ru(e.proxy)}function qo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=at(e,t),a=at(e,o);if(n!==a)return!1;const l=St(e,t),i=St(e,o);return l===i}function au(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let i=!1;if(o==="text")i=at(e,l)===t;else if(o==="item")i=qo(e,l,t);else{let s=St(e,l);s==null&&(s=at(e,l)),i=s===t}if(i){a=l;break}}return a}function lu(e){return{text:e,value:e}}function iu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Mo={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 su(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...Mo},emits:["change","update:modelValue"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(V,F,R,B=!0)=>{const Y=au(n,V,F,R);if(Y===null){if(f.value===null)return;f.value=null,u.value=null,B&&(s("update:modelValue",null),s("change",null));return}if(!qo(n,Y,f.value)){u.value=V;const $=r.toRaw(Y);f.value=$;let S=null;n.valueType==="text"?S=at(n,$):n.valueType==="item"?S=$:S=St(n,$),B&&(s("update:modelValue",S),s("change",S))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,V=>te(V)),x=ou(),m=async(V,F)=>{if(V){const R=await x.load("radio",V,F);if(R.length>0)if(typeof R[0]=="string"){let H=R.map($=>lu($));d.value=H}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([V,F])=>{m(V,F)},{immediate:!b.value});let g=!1;const w=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,F])=>{c(F,n.valueType,V,!1)});const v=e,T=r.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let A=se(n,"hintText"),k=se(n,"hintVisible");const D=(V,F)=>{const R=[];return V.forEach((B,Y)=>{const H=St(n,B),$=at(n,B);let S=nu(n,B);l.value===!0&&(S=l.value),i.value===!0&&(S=i.value);const y=iu(n,B,Y)??{},L=`${H}_${Y}`,O={...y,key:L,label:H,size:n.size,border:te(n.border)};S&&(O.disabled=S),n.itemType==="button"?R.push(r.h(p.ElRadioButton,O,{default:()=>[$]})):typeof F=="function"?R.push(r.h(p.ElRadio,O,{default:()=>F(B)})):R.push(r.h(p.ElRadio,O,{default:()=>[$]}))}),R};return()=>{const F={...Be(a.attrs),class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},R=[],B={};a.slots.options?B.default=a.slots.options:B.default=()=>D(d.value,a.slots.text);const Y=r.h(p.ElRadioGroup,F,B);R.push(Y);const H={default:()=>R};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const S={...Se(n,Mo),hintText:A.value,hintVisible:k.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=w),r.h(o,S,H)}}}}const{componentName:uu,create:cu,scope:fu}=oe("radio-item"),Yn=cu(su(uu,fu,me));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function du(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class hu{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 a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function gu(){const e=r.getCurrentInstance();return new hu(e.proxy)}function _o(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=lt(e,t),a=lt(e,o);if(n!==a)return!1;const l=it(e,t),i=it(e,o);return l===i}function mu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){let s=!1;if(o==="text")s=lt(e,i)===l;else if(o==="item")s=_o(e,i,l);else{let u=it(e,i);u==null&&(u=lt(e,i)),s=u===l}if(s){a.push(i);break}}}),a}function pu(e){return{text:e,value:e}}function yu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Po={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 bu(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...Po},emits:["change","update:modelValue"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(V,F,R,B=!0)=>{const Y=mu(n,V,F,R);if(Y===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],B&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(Y.length!==f.value.length)H=!1;else for(let $=0;$<Y.length;$++){const S=Y[$],y=f.value[$];if(!_o(n,S,y)){H=!1;break}}if(!H){f.value=Y;let $=[],S=[];Y.forEach(L=>{$.push(it(n,L)),n.valueType==="text"?S.push(lt(n,L)):n.valueType==="item"?S.push(L):S.push(it(n,L))}),u.value=$;const y=r.toRaw(S);B&&(s("update:modelValue",y),s("change",y))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,V=>te(V)),x=gu(),m=async(V,F)=>{if(V){const R=await x.load("checkbox",V,F);if(R.length>0)if(typeof R[0]=="string"){let H=R.map($=>pu($));d.value=H}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([V,F])=>{m(V,F)},{immediate:!b.value});let g=!1;const w=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,F])=>{c(F,n.valueType,V,!1)});const v=e,T=r.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let A=se(n,"hintText"),k=se(n,"hintVisible");const D=(V,F)=>{const R=[];return V.forEach((B,Y)=>{const H=it(n,B),$=lt(n,B);let S=du(n,B);l.value===!0&&(S=l.value),i.value===!0&&(S=i.value);const y=yu(n,B,Y)??{},L=`${H}_${Y}`,O={...y,key:L,class:n.itemClass,label:H,size:n.size,border:te(n.border)};S&&(O.disabled=S),n.itemType==="button"?R.push(r.h(p.ElCheckboxButton,O,{default:()=>[$]})):typeof F=="function"?R.push(r.h(p.ElCheckbox,O,{default:()=>F(B)})):R.push(r.h(p.ElCheckbox,O,{default:()=>[$]}))}),R};return()=>{const F={...Be(a.attrs),class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:I},R=[],B={};a.slots.options?B.default=a.slots.options:B.default=()=>D(d.value,a.slots.text);const Y=r.h(p.ElCheckboxGroup,F,B);R.push(Y);const H={default:()=>R};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const S={...Se(n,Po),hintText:A.value,hintVisible:k.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=w),r.h(o,S,H)}}}}const{componentName:wu,create:vu,scope:Su}=oe("checkbox-item"),Gn=vu(bu(wu,Su,me)),jo={modelValue:{type:[Number,String],required:!1}};function Tu(e,t,o){return{props:{...ge,...Te,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue",g=>ve(g)),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{s("update:modelValue",g),s("change",g)};let b=se(n,"hintText"),x=r.ref(!1);const m=r.ref();return be({}),()=>{const w={...Be(a.attrs),ref:m,class:c.value,readonly:i.value||l.value,modelValue:u.value,onChange:d},v={},T=[],I=r.h(p.ElRate,w,v);T.push(I);const A={default:()=>T};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...Se(n,jo),hintText:b.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,D,A)}}}}const{componentName:$u,create:xu,scope:Cu}=oe("rate-item"),Un=xu(Tu($u,Cu,me)),Ho={modelValue:{type:[Boolean,String,Number],required:!1}};function Eu(e,t,o){return{props:{...ge,...Te,...Ho},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{s("update:modelValue",g),s("change",g)};let b=se(n,"hintText"),x=se(n,"hintVisible");const m=r.ref();return be({}),()=>{const w={...Be(a.attrs),ref:m,class:c.value,readonly:i.value,disabled:l.value,modelValue:u.value,onChange:d},v={},T=[],I=r.h(p.ElSwitch,w,v);T.push(I);const A={default:()=>T};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...Se(n,Ho),hintText:b.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,D,A)}}}}const{componentName:Nu,create:ku,scope:Vu}=oe("switch-item"),Xn=ku(Eu(Nu,Vu,me)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Iu(e,t,o){return{props:{...ge,...Te,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),f=se(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=k=>{u("update:modelValue",k),u("change",k)};let x=se(n,"hintText"),m=r.ref(!1);const g=k=>{let V=k.target.value;s.value=!0,de(x.value)||(m.value=!0),u("focus",V,k)},w=k=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let V=k.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),T.value||u("blur",V,k)},v=()=>{u("clear","")},T=r.ref(!1),I=k=>{T.value=k,u("visible-change",k),k||u("selected")},A=r.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const D={...Be(a.attrs),ref:A,class:d.value,disabled:l.value||i.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:v,onFocus:g,onBlur:w,onVisibleChange:I},V={};a.slots.option&&(V.default=a.slots.option);const F=[],R=r.h(p.ElTreeSelect,D,V);F.push(R);const B={default:()=>F};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const H={...Se(n,zo),hintText:x.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(o,H,B)}}}}const{componentName:Ou,create:Ru,scope:Du}=oe("tree-select-item"),Zn=Ru(Iu(Ou,Du,me)),Fu={},Au={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"},Bu=[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 Lu(e,t){return r.openBlock(),r.createElementBlock("svg",Au,Bu)}const qu=Ve(Fu,[["render",Lu]]),{componentName:If,create:Mu,scope:Of}=oe("group-setting"),_u={groupProp:{type:[String]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[String],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Pu=Mu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:qu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{..._u},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let a=null;const l=r.ref([]),i=Ao(),s=S=>S.length>1,u=()=>{const S=[],y=[...l.value];l.value=y.map((O,z)=>(O.visible!==!1&&S.push(O.prop),{...O,sortIndex:z})),l.value.length===S.length?m.value=!0:S.length>0&&(g.value=!0),T.value=S},f=S=>{const y=document.querySelectorAll(`.fox-group[prop="${S}"] > div > .fox-item[prop]`),L=[];return y.forEach(O=>{const z=O.querySelector(".label--string");let E="";z&&(E=z.textContent??"");const q=O.getAttribute("prop")??"",G=window.getComputedStyle(O,null).getPropertyValue("display");L.push({label:E,prop:q,sortIndex:0,visible:G!=="none"})}),L},c=async(S=!1)=>{a||(a=f(e.groupProp));const y=a.map(O=>({...O})),L=await i.load(e.groupProp);Array.isArray(L)&&L.forEach(O=>{y.some(z=>z.prop===O.prop?(Object.assign(z,O),!0):!1)}),l.value=y.sort((O,z)=>O.sortIndex-z.sortIndex),u(),S&&b(!1)},d=()=>{const S=a??[];l.value=S.map(y=>({...y})),u(),b()},b=(S=!0)=>{S&&i.save(e.groupProp,l.value);const y=l.value.map(L=>({...L}));t("change",y)},x=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=r.ref(!1),g=r.ref(!1),w=S=>{const y=[];l.value.forEach(O=>{S&&y.push(O.prop),O.visible=S}),m.value=!1,g.value=!1,l.value.length===y.length?m.value=!0:y.length>0&&(g.value=!0),T.value=y,b()},v=()=>{d()},T=r.ref([]),I=S=>{l.value.forEach(L=>{const O=S.indexOf(L.prop)!==-1;L.visible=O}),m.value=!1,g.value=!1;const y=l.value.length;S.length===y?m.value=!0:S.length>0&&(g.value=!0),b()},A=()=>{c()};r.onMounted(()=>{e.initDelay>0?setTimeout(()=>{c(!0)},e.initDelay):c(!0)});const k={currentRow:null,index:null},D=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,D(S)):null:null,V=S=>{const y=S.currentTarget;y&&y.dataset&&(k.index=y.dataset.index)},F=S=>{k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null),k.index=null},R=S=>{const y=S.currentTarget;S.relatedTarget;const L=D(y);L&&(S.preventDefault(),k.currentRow&&k.currentRow!==L&&k.currentRow.classList.remove("is-dragover"),L.classList.add("is-dragover"),k.currentRow=L)},B=S=>{S.preventDefault(),k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null)},Y=S=>{const y=S.currentTarget,L=D(y);if(!L)return;S.preventDefault();const O=Number(k.index),z=Number(L.dataset.index);if(O!==z){if(O<z){const E=l.value[O];l.value.splice(O,1),l.value.splice(z,0,E)}else{const E=l.value[O];l.value.splice(O,1),l.value.splice(z+1,0,E)}u(),b()}},H=S=>{const y=l.value[S];l.value.splice(S,1),l.value.splice(0,0,y),u(),b()},$=S=>{const y=l.value[S];l.value.splice(S,1),l.value.push(y),u(),b()};return n({refresh:()=>{a=null,c(!1)}}),{attrs:o,itemPropertyList:l,isDraggble:s,isCheckAll:m,isIndeterminate:g,handleCheckAllChange:w,handleReset:v,checkedValue:T,handleCheckChange:I,onShow:A,onDragStart:V,onDragEnd:F,onDragOver:R,onDragLeave:B,onDrop:Y,checkboxLabelStyle:x,toTop:H,toBottom:$}}}),ju={class:"fox-group-setting"},Hu={class:"fox-group-setting__header"},zu={class:"fox-group-setting__body"},Ku={class:"fox-group-setting__body-list","data-role":"container"},Wu=["data-index","draggable"],Yu={class:"tools-item"};function Gu(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("Download"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("FoxCheckboxGroup"),x=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(x,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",ju,[r.createElementVNode("div",Hu,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=m=>e.isCheckAll=m),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",zu,[r.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":t[6]||(t[6]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",Ku,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,m=>(r.openBlock(),r.createElementBlock("div",{key:m.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":m.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[1]||(t[1]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[2]||(t[2]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[3]||(t[3]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[4]||(t[4]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[5]||(t[5]=(...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:m.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(m.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Yu,[r.createVNode(d,{content:e.toTopText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:g=>e.toTop(m.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.toBottomText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:g=>e.toBottom(m.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Wu))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Ve(Pu,[["render",Gu]]),Uu=Symbol.for("InnerPageScopeKey"),Xu=Symbol.for("PageWrapperKey");function Zu(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(Uu,!0);const a={};r.provide(Xu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const f={...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":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(p.ElDialog,f,c)}}}}const{componentName:Rf,create:Ju,scope:Df}=oe("dialog-item"),Qn=Ju(Zu());function Qu(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 a=e,l=r.computed(()=>({[a]:!0})),i=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const g={class:i.value,style:s.value};c=r.h(o.icon??"div",g)}const d={class:u.value,style:f.value},b=n.default?n.default():[],x=r.h("div",d,b),m={class:l.value};return o.textPosition==="right"?r.h("div",m,[c,x]):r.h("div",m,[x,c])}}}}const{componentName:ec,create:tc,scope:Ff}=oe("indicator"),er=tc(Qu(ec));function nc(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 a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const rc={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function oc(e,t){return{props:{...rc},setup(o,n){const a=r.ref(!0),l=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{c[b]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),s=c=>{if(c&&te(o.showOverflowTooltip)){const d=c.clientWidth;nc(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!te(o.showOverflowTooltip))return;const c=l.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const x=o.highlightFilter;if(c.indexOf(x)!==-1){const g=c.replace(new RegExp(x,"g"),`<span>${x}</span>`);d.innerHTML=g,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const x=o.highlightFilter(c);x&&(d.innerHTML=x,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...i.value},ref:l};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const g=n.slots.default();if(Array.isArray(g)&&g.length===1){const w=g[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const v=ve(o.digits),T=ve(o.decimalLength),I=te(o.autoPadding);let A=`${g[0].children}`,k=A.split("").reverse().join("");k=Ct(k,T,I,v,o.separator),A=k.split("").reverse().join("");let D=null;o.highlightFilter!==void 0&&(D=f(A,d)),D||(d.innerHTML=A,D=r.h(o.tag,d)),c.default=()=>D}}}else{let g=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const v=w[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const T=`${w[0].children}`;g=f(T,d),g||(d.innerHTML=T,g=r.h(o.tag,d))}}}g||(g=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>g}const x={disabled:a.value};return c.content=n.slots.default,r.h(p.ElTooltip,x,c)}}}}const{componentName:ac,create:lc,scope:Af}=oe("text"),tr=lc(oc(ac)),ic={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:Ne.ArrowUp}};function sc(e,t,o){return{props:{...ic},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=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})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{a("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const g={class:u.value},w=r.h("span",g,[s.value]);d.push(w)}const b={class:f.value},x=o(n.icon,b);return x&&d.push(x),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:uc,create:cc,scope:fc}=oe("more-button"),nr=cc(sc(uc,fc,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:dc,create:hc,scope:Lf}=oe("tour"),gc=hc({components:{Close:Ne.Close,ElPopover:p.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=dc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:m,maskWidth:g,maskHeight:w}=e,{width:v,height:T,left:I,top:A}=a.value,k=e.steps[n.active].offset??m,D=[I+v/2,A+T/2],V=Number(g||v),F=Number(w||T);return{width:`${V+ +k.left+k.right}px`,height:`${F+k.top+k.bottom}px`,top:`${D[1]-F/2-+k.top}px`,left:`${D[0]-V/2-+k.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,f=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),g=Nn(m);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},x=(m,g=0)=>{m&&c(),e.steps,n.active=g,n.showTour=m,n.showPopup=m};return r.onMounted(()=>{x(e.modelValue,e.current)}),r.watch(()=>e.modelValue,m=>{x(m)}),{...r.toRefs(n),classes:l,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),mc={key:0,class:"fox-tour__content"},pc={key:0,class:"fox-tour__content-top"},yc={class:"fox-tour__content-inner"},bc={class:"fox-tour__content-bottom"},wc={class:"fox-tour__content-bottom-init"},vc={class:"fox-tour__content-bottom-operate"},Sc={key:1,class:"fox-tour__content fox-tour__content-tile"},Tc={class:"fox-tour__content-inner"};function $c(e,t,o,n,a,l){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]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{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",mc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",pc,[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",yc,r.toDisplayString(f.content),1),r.createElementVNode("div",bc,[r.createElementVNode("div",wc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",vc,[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",Sc,[r.createElementVNode("div",Tc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Ve(gc,[["render",$c]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Qe=e=>e==null,Ko=10;function xc(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function Cc(){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=xc(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 Ec(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Nc(e){e.stopPropagation()}function kc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Nc(e)}class Vc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Ec()}open(t){this.el=t;const o=Cc(),n=(a,l,i,s,u)=>{this.updateMove({x:l,y:i})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),o.isHorizontal()&&kc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,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},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Wo(e,t){return new Vc(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 st=[];const Go=e=>{const t=e;t.key==="Escape"&&st.forEach(o=>o(t))},Ic=e=>{r.onMounted(()=>{st.length===0&&document.addEventListener("keydown",Go),or&&st.push(e)}),r.onBeforeUnmount(()=>{st=st.filter(t=>t!==e),st.length===0&&or&&document.removeEventListener("keydown",Go)})},ar="fox-focus-trap.focus-after-trapped",lr="fox-focus-trap.focus-after-released",Oc="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Rc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",Dc=Symbol("foxFocusTrap"),ir=r.ref(),Wt=r.ref(0),sr=r.ref(0);let Yt=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Fc=(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(!Fc(o,t))return o},Ac=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Bc=e=>e instanceof HTMLInputElement&&"select"in e,Ye=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Bc(e)&&t&&e.select()}};function ea(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Lc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=ea(e,n),e.unshift(n)},remove:n=>{e=ea(e,n),e[0]?.resume?.()}}},qc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ye(n,t),document.activeElement!==o)return},ta=Lc(),Mc=()=>Wt.value>sr.value,Gt=()=>{ir.value="pointer",Wt.value=window.performance.now()},na=()=>{ir.value="keyboard",Wt.value=window.performance.now()},_c=()=>(r.onMounted(()=>{Yt===0&&(document.addEventListener("mousedown",Gt),document.addEventListener("touchstart",Gt),document.addEventListener("keydown",na)),Yt++}),r.onBeforeUnmount(()=>{Yt--,Yt<=0&&(document.removeEventListener("mousedown",Gt),document.removeEventListener("touchstart",Gt),document.removeEventListener("keydown",na))}),{focusReason:ir,lastUserFocusTimestamp:Wt,lastAutomatedFocusTimestamp:sr}),Ut=e=>new CustomEvent(Oc,{...Rc,detail:e}),{componentName:qf,create:Pc,scope:Mf}=oe("focus-trap"),jc=Pc({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 a,l;const{focusReason:i}=_c();Ic(g=>{te(e.trapped)&&!s.paused&&o("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!te(e.trapped)||s.paused)return;const{key:w,altKey:v,ctrlKey:T,metaKey:I,currentTarget:A,shiftKey:k}=g,{loop:D}=e,V=w==="Tab"&&!v&&!T&&!I,F=document.activeElement;if(V&&F){const R=A,[B,Y]=Ac(R);if(B&&Y){if(!k&&F===Y){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),D&&Ye(B,!0))}else if(k&&[B,R].includes(F)){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),D&&Ye(Y,!0))}}else if(F===R){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||g.preventDefault()}}};r.provide(Dc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),r.watch([n],([g],[w])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",d),g.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=g=>{o(Xo,g)},c=g=>o(Zo,g),d=g=>{const w=r.unref(n);if(!w)return;const v=g.target,T=g.relatedTarget,I=v&&w.contains(v);te(e.trapped)||T&&w.contains(T)||(a=T),I&&o("focusin",g),!s.paused&&te(e.trapped)&&(I?l=v:Ye(l,!0))},b=g=>{const w=r.unref(n);if(!(s.paused||!w))if(!e.escape&&te(e.trapped)){const v=g.relatedTarget;!cn(v)&&!w.contains(v)&&setTimeout(()=>{if(!s.paused&&te(e.trapped)){const T=Ut({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||Ye(l,!0)}},0)}else{const v=g.target;v&&w.contains(v)||o("focusout",g)}};async function x(){await r.nextTick();const g=r.unref(n);if(g){ta.push(s);const w=g.contains(document.activeElement)?a:document.activeElement;if(a=w,!g.contains(w)){const T=new Event(ar,Uo);g.addEventListener(ar,f),g.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;Sr(I)||(Ye(I),document.activeElement!==I&&(I="first")),I==="first"&&qc(Jo(g),!0),(document.activeElement===w||I==="container")&&Ye(g)})}}}function m(){const g=r.unref(n);if(g){g.removeEventListener(ar,f);const w=new CustomEvent(lr,{...Uo,detail:{focusReason:i.value}});g.addEventListener(lr,c),g.dispatchEvent(w),!w.defaultPrevented&&(i.value=="keyboard"||!Mc())&&Ye(a??document.body,!0),g.removeEventListener(lr,f),ta.remove(s)}}return r.onMounted(()=>{te(e.trapped)&&x(),r.watch(()=>e.trapped,g=>{te(g)?x():m()})}),r.onBeforeUnmount(()=>{te(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Hc,create:zc,scope:Pf}=oe("floating-window"),Kc=Symbol.for("InnerPageScopeKey"),Wc=Symbol.for("PageWrapperKey"),Yc={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Gc=zc({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:jc},props:{...Yc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Hc,n=r.ref(e.modelValue),a=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,C=>{n.value=C});const l=r.computed(()=>n.value===!1?!1:!V.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),f=r.ref(e.bottom),c=r.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=r.computed(()=>{const C={};return Qe(i.value)?C.left="auto":C.left=Ee(i.value),Qe(s.value)?C.top="auto":C.top=Ee(s.value),Qe(u.value)?C.right="auto":C.right=Ee(u.value),Qe(f.value)?C.bottom="auto":C.bottom=Ee(f.value),Qe(e.zIndex)||(C["z-index"]=Ee(e.zIndex)),Qe(k.value)||(C.height=k.value),Qe(D.value)||(C.width=D.value),C}),b=r.computed(()=>e.closeIcon??Ne.Close),x=r.computed(()=>e.collapseIcon??Ne.ArrowUp),m=r.computed(()=>e.collapseText??""),g=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),w=r.computed(()=>e.expandText??e.title??"展开"),v=r.computed(()=>({[`${o}__collapse-text`]:!0})),T=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),I=r.ref(),A=r.ref(),k=r.computed(()=>Ee(e.height)||""),D=r.computed(()=>Ee(e.width)||""),V=r.ref(te(e.collapse)),F=(C,M=!0)=>{V.value!==C&&(V.value=C,C?P():G(),t("update:collapse",C))};r.watch(()=>e.collapse,C=>{F(C)});const R=()=>{B()},B=C=>{C=C??!V.value,F(C)};r.provide(Kc,!0);const Y={setCollapse:F,setFixedNavVisible:C=>{z.value=C}};r.provide(Wc,Y);const H=()=>{typeof Y.beforeClose=="function"?Y.beforeClose(()=>{n.value=!1}):n.value=!1},$=r.ref(null),S=r.computed(()=>!e.fixedNavTeleport),y=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}),L=r.ref(""),O=r.computed(()=>{const C={};return L.value?C.top=L.value:e.collapseTop&&(C.top=e.collapseTop),C}),z=r.ref(V.value);let E=null;const q=()=>{typeof E=="function"&&(E(),E=null)},P=()=>{$.value&&$.value.classList.add("slide-in"),z.value=!0,E=()=>{$.value&&$.value.classList.remove("slide-in")}},G=()=>{$.value&&$.value.classList.add("slide-out"),E=()=>{$.value&&$.value.classList.remove("slide-out"),z.value=!1}},J=()=>{i.value=null,s.value=null,u.value=null,f.value=null},Q={x:0,y:0},Z=Wo(C=>{if(!I.value)return;const M=I.value;if(J(),e.origin==="left-top")i.value=M.offsetLeft,s.value=M.offsetTop,Q.x=i.value,Q.y=s.value;else if(e.origin==="left-bottom"){const N=document.documentElement.clientHeight||document.body.clientHeight;i.value=M.offsetLeft,f.value=N-(M.offsetTop+M.offsetHeight),Q.x=i.value,Q.y=f.value}else if(e.origin==="right-bottom"){const N=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;u.value=N-(M.offsetLeft+M.offsetWidth),f.value=K-(M.offsetTop+M.offsetHeight),Q.x=u.value,Q.y=f.value}else{const N=document.documentElement.clientWidth||document.body.clientWidth;u.value=N-(M.offsetLeft+M.offsetWidth),s.value=M.offsetTop,Q.x=u.value,Q.y=s.value}},C=>{if(!I.value)return;const M=I.value;J(),e.origin==="left-top"?(i.value=Q.x+C.x,s.value=Q.y+C.y,M.style.left=Ee(i.value),M.style.top=Ee(s.value)):e.origin==="left-bottom"?(i.value=Q.x+C.x,f.value=Q.y-C.y,M.style.left=Ee(i.value),M.style.bottom=Ee(f.value)):e.origin==="right-bottom"?(u.value=Q.x-C.x,f.value=Q.y-C.y,M.style.right=Ee(u.value),M.style.bottom=Ee(f.value)):(u.value=Q.x-C.x,s.value=Q.y+C.y,M.style.right=Ee(u.value),M.style.top=Ee(s.value))}),ee={x:0,y:0},U=Wo(C=>{$.value&&(ee.x=$.value.offsetLeft,ee.y=$.value.offsetTop)},C=>{if(!$.value)return;const M=ee.y+C.y;L.value=`${M}px`});return r.onMounted(()=>{e.draggable&&A.value&&I.value&&Z.open(A.value),e.collapse===!0&&F(e.collapse,!1),$.value&&U.open($.value)}),r.onBeforeUnmount(()=>{e.draggable&&A.value&&Z.close(),$.value&&U.close()}),{classes:c,styles:d,isShow:l,closeIcon:b,onClose:H,dialogRef:I,headerRef:A,onClickToggle:R,collapseIcon:x,collapseText:m,collapseTextClasses:v,collapseIconClasses:T,expandIcon:g,expandText:w,isShowFixedNav:z,fixedNavRef:$,fixedNavClasses:y,fixedNavStyles:O,onAnimationEnd:q,teleportDisabled:a,fixedNavTeleportDisabled:S}}}),Uc={ref:"headerRef",class:"fox-floating-window__header"},Xc={class:"fox-floating-window__title"},Zc={class:"fox-floating-window__tools"},Jc={class:"fox-floating-window__body"},Qc={class:"fox-floating-window__fixednav__text"};function ef(e,t,o,n,a,l){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",Uc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Xc,r.toDisplayString(e.title),1),r.createElementVNode("div",Zc,[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",Jc,[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",Qc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Ve(Gc,[["render",ef]]);function tf(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return jr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:jf,create:nf,scope:Hf}=oe("domain-provider"),cr=nf(tf()),rf={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 of(e,t){return{inheritAttrs:!1,props:rf,setup(o,{slots:n}){if(et&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const i=(b,x)=>{if(c===null){l.set(b,{visible:null,callback:x});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:x}),c.observe(b)},s=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;vl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(b,x,m)=>{c=new IntersectionObserver(g=>{for(let w of g){let v=!1;w.intersectionRatio>0&&(v=!0);const T=a.get(w.target);if(T)try{if(o.loadPolicy==="lazy"&&!v&&T.visible!==null)return;T.visible=v,T.callback(v)}catch(I){console.error(I)}}},{root:b,rootMargin:x,threshold:m}),l.forEach((g,w)=>{a.set(w,g),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,x])=>{if(x||!b||c)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:zf,create:af,scope:Kf}=oe("rolling-provider"),fr=af(of()),ra=10;function lf(e,t){return e>t&&e>ra?"horizontal":t>e&&t>ra?"vertical":""}function sf(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",x=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const v=w.touches[0];i.value=v.clientX-e.value,s.value=v.clientY-t.value,a.value=v.clientX,l.value=v.clientY,u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=lf(u.value,f.value))},start:w=>{x(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:x,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const uf=[bn,Sn,Tn,$n,En,me,In,On,bt,Rn,Dn,Fn,An,Bn,Ln,qn,_n,Pn,jn,Hn,Kt,Wn,Yn,Gn,Un,Xn,Zn,Jn,Qn,vt,jt,er,tr,nr,rr,ur,cr,fr],cf=new za(uf,[Ya],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),h.AutocompleteItem=Pn,h.Broadcast=fn,h.BroadcastKey=he,h.CascaderItem=_n,h.CheckboxItem=Gn,h.Content=$n,h.DataItemsKey=tt,h.DateItem=Fn,h.DateUtils=Oe,h.DialogItem=Qn,h.Domain=Ot,h.DomainKey=Ie,h.DomainProvider=cr,h.FloatingWindow=ur,h.FooterBar=Tn,h.FoxAutocompleteItem=Pn,h.FoxCascaderItem=_n,h.FoxCheckboxItem=Gn,h.FoxContent=$n,h.FoxDateItem=Fn,h.FoxDialogItem=Qn,h.FoxDomainProvider=cr,h.FoxFloatingWindow=ur,h.FoxFooterBar=Tn,h.FoxGroup=En,h.FoxGroupSetting=Jn,h.FoxHeaderBar=Sn,h.FoxHintText=bt,h.FoxIndicator=er,h.FoxInputItem=Rn,h.FoxInputNumberItem=qn,h.FoxItem=me,h.FoxMapping=vt,h.FoxMoneyItem=Ln,h.FoxMoreButton=nr,h.FoxPage=bn,h.FoxPrice=jt,h.FoxRadioItem=Yn,h.FoxRateItem=Un,h.FoxRollingProvider=fr,h.FoxRowItem=On,h.FoxSelectItem=Dn,h.FoxSlotItem=In,h.FoxSwitchItem=Xn,h.FoxTableItem=Wn,h.FoxTableMappingColumn=jn,h.FoxTableRadioColumn=Hn,h.FoxTableSetting=Kt,h.FoxText=tr,h.FoxTimeItem=An,h.FoxTimeSelectItem=Bn,h.FoxTour=rr,h.FoxTreeSelectItem=Zn,h.Group=En,h.GroupSetting=Jn,h.HeaderBar=Sn,h.HintText=bt,h.Indicator=er,h.InputItem=Rn,h.InputNumberItem=qn,h.Item=me,h.Mapping=vt,h.MoneyItem=Ln,h.MoreButton=nr,h.Page=bn,h.Price=jt,h.PriorityPolicy=ke,h.RadioItem=Yn,h.RateItem=Un,h.RollingProvider=fr,h.RowItem=On,h.SelectItem=Dn,h.SlotItem=In,h.SwitchItem=Xn,h.TableItem=Wn,h.TableMappingColumn=jn,h.TableRadioColumn=Hn,h.TableSetting=Kt,h.Text=tr,h.TimeItem=An,h.TimeSelectItem=Bn,h.Tour=rr,h.TreeSelectItem=Zn,h.UniqueID=ro,h.ValidateSchema=Mr,h.ValidateSchemaKey=_e,h.cancelRaf=la,h.clearNonNumber=Sa,h.clone=sn,h.compareTo=on,h.createBroadcast=kt,h.createValidateSchema=It,h.debounce=mt,h.debounceRef=Fa,h.decimalLength=Or,h.default=cf,h.defineBroadcast=Ca,h.defineConfigDomain=jr,h.defineDataItem=zr,h.defineDomain=gn,h.defineItem=pe,h.definePageState=Kr,h.deleteGlobalValidator=Va,h.disabledProperty=Ce,h.divide=rn,h.excludeProps=Se,h.extend=Ue,h.floatData=xa,h.getGlobalValidateCheckEvents=Br,h.getGlobalValidateResetEvents=qr,h.getPageContentAreaHeight=Dt,h.getPageContentAreaWidth=Ft,h.getPageFooterAreaHeight=yt,h.getPageHeaderAreaHeight=pt,h.getRootDomain=nt,h.hasSymbol=$r,h.includeProps=Dr,h.indexOf=Ta,h.installRules=Hr,h.integerLength=Ir,h.isArray=ca,h.isArrayLike=Er,h.isBrowser=et,h.isDate=ha,h.isESModule=pa,h.isEmptyString=de,h.isEqual=Me,h.isFunction=an,h.isHidden=Cr,h.isInnerPage=La,h.isMap=fa,h.isNil=cn,h.isNumberString=Vr,h.isObject=ze,h.isPlainObject=ln,h.isPromise=ma,h.isRegExp=kr,h.isSet=da,h.isString=Sr,h.isSubPage=qa,h.isSymbol=ga,h.isWindow=xr,h.lastIndexOf=$a,h.makeArray=va,h.merge=Nr,h.multiply=br,h.negate=wr,h.nextTick=ba,h.numberFormat=Ct,h.objectToString=Tr,h.once=Aa,h.property=$e,h.raf=ua,h.readonlyProperty=xe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Na,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Oa,h.setGlobalValidator=ka,h.throttle=Pr,h.toBoolean=te,h.toNumber=ve,h.toPadding=Fe,h.toPx=ue,h.toPxDesc=ye,h.toTypeString=Et,h.toValue=se,h.tryTimes=dn,h.typeOf=Nt,h.unNumberFormat=vr,h.updatePageState=mn,h.useBroadcast=ht,h.useDomain=Pe,h.useExpose=be,h.useInnerSize=vn,h.usePageState=Rt,h.usePosition=eo,h.useRect=Nn,h.useSize=wn,h.useTouch=sf,h.valueLength=dt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function At(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=Ee(e),t=Ee(t),[e,t]=hn(Ee(e),Ee(t)),o==1&&(n==1?e=dn(e):t=dn(t));let r=Pl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(dn(r)):Ee(r)}function dn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Pl(t,a)}function Ee(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 hn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Pl(e,t){[e,t]=hn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var pe=(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))(pe||{});function bt(e,t=0,o=pe.HALF_EVEN){if(o===pe.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 r=e.split("."),a=r[0],s=r[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)+s,u=bt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,jl(r[1],a,n,o)?(n?"-":"")+gn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&jl(i,s,n,o)&&(s=gn(s),s.length>t)?(n?"-":"")+gn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function jl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===pe.DOWN||!o&&n===pe.FLOOR||o&&n===pe.CEILING)return!1;if(n===pe.UP||o&&n===pe.FLOOR||!o&&n===pe.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case pe.HALF_DOWN:return!1;case pe.HALF_UP:return!0;case pe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function mn(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=vt(e),t=vt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=vt(e.replace(".","")),t=vt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let S=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(S+=parseInt(e[u[N]--])*parseInt(t[N]));S+=i,i=Math.floor(S/10),f=S%10+f,d--}return f=vt(Xr(f,a)),o==1&&(f="-"+f),f}function Xr(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 vt(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 pn(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 r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ee(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=Ee(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=Ee(e.replace(".","")))}let a=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=At(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(bt(i,o-2))}function yn(e,t){return e=e.toString(),t=t.toString(),t=bn(t),At(e,t)}function bn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Hl(e),Hl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=yn(e,mn(t,bt(pn(e,t),0,pe.FLOOR)));return o+n}function Hl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Kl(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]=hn(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 fe{value;static RoundingModes=pe;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=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=fe.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=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=pe.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return bt(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(bt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),At(t,o)}add(t){return new fe(At(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),yn(t,o)}subtract(t){return new fe(yn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),mn(t,o)}multiply(t){return new fe(mn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),pn(t,o,n)}divide(t,o){return new fe(pn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),zl(t,o)}modulus(t){return new fe(zl(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),Kl(t,o)}compareTo(t){return Kl(this.value,t.getValue())}static negate(t){return t=fe.validate(t),bn(t)}negate(){return new fe(bn(this.value))}}function Wl(e,t){return fe.multiply(`${e}`,`${t}`)}function vn(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function wn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function Yl(e){return fe.negate(e)}function Lt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+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 c="",S=i.split("").reverse();for(let N=0;N<S.length;N++)c+=S[N]+((N+1)%n==0&&N+1!=S.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function Gl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Sn=ql,Zr=Array.isArray,Jr=e=>Mt(e)==="[object Map]",Qr=e=>Mt(e)==="[object Set]",ea=e=>e instanceof Date,xn=e=>typeof e=="function",Ul=e=>typeof e=="string",ta=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Xl=e=>We(e)&&xn(e.then)&&xn(e.catch),Zl=Object.prototype.toString,Mt=e=>Zl.call(e),Tn=e=>Mt(e)==="[object Object]",Jl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Jl&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=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 s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=nt(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function $n(e,t,o=!1){if(!o)nt(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Cn=la?Promise.resolve():null;function oa(e,...t){Cn!==null?t&&t.length>0?Cn.then(()=>{e(t)}):Cn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(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 ra={"[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 Bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ql(e){return e&&typeof e=="object"&&"setInterval"in e}function _t(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function eo(e){let t=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||Ql(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function to(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function aa(e,t=[]){let o=t;return e!=null&&(eo(Object(e))?to(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Bt(e),n=Bt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++){let i=r[s],u=e[i],d=t[i];if(!Ye(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r];if(!Ye(a,s))return!1}return!0}return!1}const lt=typeof window<"u";function En(e){return e==null}function no(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lo(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oo(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 ro(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 ao(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 ia(e,t=!0,o=!0){t?e=ao(e,".",/\./g):e=e.replace(/\./g,""),o?e=ao(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ye(e,o))return!0}):t.indexOf(e)}function ua(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ye(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function wt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function io(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ne(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ca=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ye=Symbol.for("BroadcastKey");class Nn{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 r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):no(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function qt(e,t,o,n){const r=new Nn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function fa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new Nn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function St(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ot=e=>e.default??e;class da{error(t,o){const n=o,r=o||l.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?St(n):null,s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let xt=new da;function ha(e){xt=e}function ga(e){xt?Object.assign(xt,e):xt=e}function ma(e,t){ot(tt).setValidator(e,t)}function pa(e){ot(tt).deleteValidator(e)}let so=["blur","clear"];function ya(e){so=e}function uo(){return so}let co=["focus","change","setValue"];function ba(e){co=e}function fo(){return co}function va(e){ot(tt).messages(e)}function Tt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Pt(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 qe=Symbol("ValidateSchemaKey");class ho{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Pt(Tt(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=Pt(n);const r=Tt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=xt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...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?ot(tt).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?ot(tt).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ot(tt).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=Tt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Pt(t):this.rules=Pt([t]);const n=Tt(this.attrRules,this.rules);l.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=Tt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=ot(tt),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let S="error";Array.isArray(c.errors)&&c.errors.length>0&&(S=c.errors[0].message??S,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(S)}return c}).catch(c=>{const S=c.message??`${c}`;return this.error(S),c})}}return Promise.resolve({pass:!0})}}function jt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new ho(t,o,e)}const zt=Symbol.for("EventEmitterKey");class go{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 r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,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(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function $t(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function mo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function wa(e,t){const o=$t((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Sa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Ht(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const Ae=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Kt{_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=l.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 r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}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 r=n._props[t];o.push(r)}n=n._parent}return o}}const xa=new Kt;function ct(){return xa}function Ge(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const kn=Symbol("OriginalDateKey");function In(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Ae,null);s===null&&(s=ct());const i=e||t.prop||t.name;let u=new Kt(i);u.parent=s;const d=N=>{a[kn]||S(N),u?.set("modelValue",N)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[kn]??null,S=N=>{const g={};nt(!0,g,l.toRaw(N)),a[kn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,N=>{u?.merge(N,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&S(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const N=l.inject(ye,null),g=qt(a,N,i,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=($,w,...C)=>Reflect.apply(g.emit,g,[$,w,...C]);const h=l.inject(qe,null),p=jt(a,h,{componentName:""});u.validateSchema=p,a[qe]=p,l.provide(qe,p),a[ut]=new Map,a.validate=($=!0)=>{const w=[];let C=null;const q={deep:!1};if($===!0)C={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;C={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;C={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;C={name:L=>L?A.indexOf(L)===-1:!1}}else C={name:"*"}}if(C){const B=g?.emitToChildren(C,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,C=!1)=>{if(C===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=bo(u,A,L,g,p);a[ut].set(A,M);const V=$[A];V&&M.validateSchema.setRule(V)}});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};g?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const C=$;w={name:q=>q?C.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const C=$;if(Array.isArray(C.include)&&C.include.length>0){const q=C.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const C={};if(nt(!0,C,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=C[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=C[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(C).forEach(B=>{q.includes(B)||(w[B]=C[B])})}else Object.assign(w,C);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?d($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[qe]=void 0,l.provide(qe,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function po(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=ct());const s=e||t.prop||t.name;let i=new Kt(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[Ae]=i,l.provide(Ae,i),l.onUnmounted(()=>{i?.destroy(),r[Ae]=void 0,l.provide(Ae,null),i=null,r=null}),i}function yo(e,t,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(ye,null);let i=qt(r,s,a,o);r[ye]=i,l.provide(ye,i),r.broadcast=(g,h,...p)=>i?Reflect.apply(i.emit,i,[g,h,...p]):null;const u=l.inject(qe,null);e.fieldName=e.fieldName??a;let d=jt(r,u,e);r[qe]=d,l.provide(qe,d),yo(r,d,a),r.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let p=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,p=!0;else if(g&&typeof g=="object"){const w=g,C=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&_t(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),p=w.deep??!1}else typeof g=="boolean"&&(p=g),$=!0;if($){const w=d?.validate();h.push(w)}if(p){let w=null;const C={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",C);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let C=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const p=g[a];if(p&&d?.setRule(p),h&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const p=g;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const p=g;if(Array.isArray(p.include)&&p.include.length>0){const $=p.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const $=p.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new go(r);r[zt]=f;const c=$t((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(g=>{f&&f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(g=>{f&&f.on(g,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ye]=void 0,l.provide(ye,null),i=null,d?.destroy(),r[qe]=void 0,l.provide(qe,null),d=null,f?.destroy(),r[zt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function bo(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=jt({},r,o);a.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let S=!1,N=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)N=!0,S=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),N=!0,S=g.deep??!1}else typeof f=="boolean"&&(S=f),N=!0;if(N&&u){const g=u.validate();c.push(g)}if(S){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:$=>$?p.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Object.assign(h,p),Array.isArray(p.include)&&p.include.length>0){const $=p.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const $=p.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g&&d){const p=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).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 c=f[s];c&&u?.setRule(c)};let d=qt(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function vo(){let t=l.getCurrentInstance()?.proxy,o=new go(t);return t[zt]=o,l.onUnmounted(()=>{o?.destroy(),t[zt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(e,t=-1){if(e==null)return 0;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 r=Number(e.substring(0,o)),a=1;if(lt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Je="PageStateKey";function ze(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function On(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=ze(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=ze(o.footerPadding??t.footerPadding),e.contentPadding=ze(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(s,a)-he(i,a),e.width=he(o.width??t.width??0,r)}}function wo(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},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;On(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Je);c&&(n.height=Yt(e,c),n.width=Gt(e,c),l.watch([()=>Yt(e,c),()=>Gt(e,c)],([N,g])=>{f.height=N,f.width=g}));const S=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,g,h=-1,p=-1,$=0,w=0])=>{On(f,g,t,S,h,p,$,w)}),e.set(Je,f),f}function Wt(e){return e.get(Je)}function Ct(e,t){if(t=t??e.get(Je),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Et(e,t){if(t=t??e.get(Je),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(Je),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ct(e,t),n=Et(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(e,t){return t=t??e.get(Je),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ta(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function $a(e){return!!e.getForParent(Je)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Vn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Oe(e,t,o=1,n){const r=Ge();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(Vn(u,n))return u}const s=e.value;return Vn(s,n)?s:null}):l.computed(()=>{const a=e.value;return Vn(a,n)?a:r?.get(t)})}function Ve(e){return Oe(e,"readonly",0,function(o){return ue(o)})}function Fe(e){return Oe(e,"disabled",0,function(o){return ue(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const So=new Map,Ut=new Map;let Fn=null;function Ca(e){Fn=e}function xo(e,t,o){if(o){let n=Ut.get(o);n||(n=new Map,Ut.set(o,n)),n.set(e,t)}else So.set(e,t)}function Pe(e,t,o){!o&&Fn&&(o=Fn(e)??void 0);let n=null;if(o){let r=Ut.get(o);r&&(n=r.get(t))}return n||(n=So.get(t)),n}function Ea(e,t){for(let o in e){const n=e[o];xo(o,n,t)}}function Na(e){Ut.delete(e)}function ka(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,t=0){if(lt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Va{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=>{if(a.install)t.use(a);else if(a.name){const s=Oa(a.name,o);t.component(s,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ct();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=nt({},ka(),t.safeAreaInset),s=Ia(n,r),i=nt({},s.pageLayout,t.pageLayout);o=o??ct(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ca(t)}setAPI(t,o,n){xo(t,o,n)}getAPI(t,o,n){return Pe(t,o,n)}batchSetAPI(t,o){Ea(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return ct()}}const Fa=[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,y.ElStatistic,y.ElCountdown,y.ElSegmented,y.ElAnchor,y.ElAnchorLink,y.ElWatermark,y.ElMessageBox,y.ElMessage,y.ElNotification],Da=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Ra=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Fa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Da.forEach(r=>{e.use(r)})};function ie(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)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ie={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},To={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}},$o={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}},Co=[];for(const e in $o)Co.push(e);const Aa=Symbol.for("InnerPageScopeKey"),La={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}},Ma=(e,t)=>({inheritAttrs:!0,props:{...we,...To,...La},setup(o,{slots:n}){const r=In(o.name,o),a=l.inject(Aa,!1);if(r){const f=wo(r,o);$e({getPageContentHeight:()=>Yt(r,f),getPageContentWidth:()=>Gt(r,f),getPageHeaderHeight:()=>Ct(r,f),getPageFooterHeight:()=>Et(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const S=u?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[S,N])=>{if(f&&S){const g=l.toRaw(S),h=l.toRaw(f),p=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{p.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const g=l.toRaw(N),h=l.toRaw(c),p=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{p.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=ie("page"),Dn=_a(Ma(Ba));function Xt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Rn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const qa=(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(r,a){const s=Ge(),i=s?Wt(s):null;i&&(i.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?he(r.height):null,S=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const b=ze(r.padding??i.headerPadding);return Object.assign(k,b),c&&(i.headerHeight=c),i.headerHeight>0&&(k.height=i.headerHeight),k.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(b.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const b=ze(r.padding);Object.assign(k,b)}return k}),N=l.ref(null),g=()=>{if(i&&N.value&&!_t(N.value)){if(!n){const k=Xt(N.value);i.headerAllHeight=k.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(Ht(g,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(N.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const p=l.computed(()=>{const k={};return S.value.height!==null&&S.value.height!==void 0&&(k.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(k.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(k.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(k.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(k.paddingBottom=`${S.value.bottom}px`),k}),$=l.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function w(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(b)}else if(r.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(b)}if(r.leftText){const b=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},L=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const b=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(b)}if(a.slots.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);k.push(b)}else if(r.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},M=()=>{if(!r.titleShow)return null;const k=[],b=a.slots.default?a.slots.default():null;if(b)k.push(b);else{if(r.title){const P=l.h("view",{class:"title-text"},[r.title]);k.push(P)}if(a.slots.titleIcon){const P=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);k.push(P)}else if(r.titleIcon){const P=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);k.push(P)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},V=()=>{const k=[],b=a.slots.bottom?a.slots.bottom():null;return b&&k.push(b),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!$.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const P=[],_=A();_&&P.push(_);const D=M();D&&P.push(D);const F=L();if(F&&P.push(F),P.length>0){const G=l.h("view",{class:f.value},P);k.push(G)}const K=V();K&&k.push(K)}if(k.length===0)return null;const b={class:d.value,style:p.value,ref:N};return l.h("view",b,k)}}}),{componentName:Pa,create:ja,scope:za}=ie("header-bar"),An=ja(qa(Pa,za,Ce.ArrowLeft));function Ha(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,r){const a=Ge(),s=a?Wt(a):null,i=l.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?he(n.height):null,d=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=ze(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.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=ze(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),c=()=>{if(s&&f.value&&!_t(f.value)){if(!o){const g=Xt(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let S=null;l.onMounted(()=>{s&&(Ht(c,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(()=>{c()}),S.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const N=l.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=ke(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=ke(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=ke(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=ke(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=ke(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:N.value};return l.h("view",h,g)}}}}const{componentName:Ka,create:Wa,scope:wh}=ie("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ge(),r=l.computed(()=>({[e]:!0})),a=n?Wt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const N=ze(o.padding);Object.assign(a.contentPadding,N)}const f=Ct(n,a),c=Et(n,a);let S="";if(a.contentHeight?S=`${a.contentHeight}`:S=`${a.height}px`,a.contentPadding,d.height=S,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=ze(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Rn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ct(n),()=>Et(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Ga,create:Ua,scope:Sh}=ie("content"),Xa=Ua(Ya(Ga));function Za(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Mn=_e(Xa,[["render",Za]]),ft="GroupStateKey",Eo=Symbol.for("GroupScopeKey");function Zt(){return l.inject(Eo,!1)}function Jt(e=!0){l.provide(Eo,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];En(r)||(e[n]=r)})}function Qa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ft,a),a}function Bn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(ft);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=he(a),c=he(s);i||(i=d.type??"grid");const S=()=>{const N=t===""||t===-1,g=he(t);let h=ve(o);const p=he(n);if(!N){let C=(g-(h-1)*p)/h;for(;c!==-1&&C>c;)h++,C=(g-(h-1)*p)/h;for(;f!==-1&&h>1&&C<f;)h--,C=(g-(h-1)*p)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==p&&(w.value.gutter=p,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)S();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&S()},50)}}function Qt(e,t=!1){let o;return t?o=e.getForParent(ft):o=e.get(ft),o.layout}function en(e,t=!1){let o;return t?o=e.getForParent(ft):o=e.get(ft),o.order}function No(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function tn(e,t,o=1,n=0,r){const a={};let s=0;r?s=he(r):s=No(t.column,o),s>0&&(a.width=`${s}%`);const i=No(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function nn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ve(o);if(r===-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(r>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 s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const ko=Symbol("RollingStateKey");function ei(e){l.provide(ko,e)}function ti(){return l.inject(ko,null)}function _n(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ni(e){let t=_n(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=_n(o),document.body.removeChild(o)}return t}function li(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const oi={...we,...To,...$o};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(n,r){const a=In(n.name,n,Co),s=Qa(a,{type:n.type}),i=Zt();Jt(!0);const u=n.rollingDisplay?ti():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Qt(a,!0).value:null),S=l.getCurrentInstance(),N=(H,J=!1)=>{const te=S?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[te,T])=>{if(H&&te){const W=l.toRaw(te),ne=l.toRaw(H),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),N(ne)}if(J&&T){const W=l.toRaw(T),ne=l.toRaw(J),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),N(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=F.value;const J=i?en(a,!0):null;if(c.value&&J){if(c.value.type==="grid"){const te=nn(J,c.value,n.span,n.offset);Object.assign(H,te)}else if(c.value.type==="flow"){const te=tn(J,c.value,n.span,n.offset,n.width);Object.assign(H,te)}}else if(n.width){const te=ke(n.width);H.width=te}return H}),p=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const te=li(M.value,s.layout.value.column,s.layout.value.gutter);J=`repeat(${s.layout.value.column}, ${te})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),C=l.toRef(n,"column"),q=l.computed(()=>i||f.value?!0:ue(n.isWrap)),B=[],A=H=>{B.push(H)},L=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),V=H=>{const J=Rn(H).width;J>0&&J!==M.value&&(M.value=J)};Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,C,w],([H,J,te])=>{s.order.index=0,Bn(a,H,J,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>K.value?n.expandText??"":n.collapseText??""),b=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),_=l.ref(),D=l.ref(),F=l.computed(()=>G.value||ke(n.height)||""),K=l.ref(!1),G=l.ref(""),U=l.ref(!1);let Z=-1;const ee=(H,J=!0)=>{const te=_.value;if(te&&K.value!==H){if(Z=Z===-1?ni(te):Z,U.value=!0,J)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",H||(G.value="",U.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(T=D.value.offsetHeight),G.value=`${Z}px`,l.nextTick(()=>{G.value=`${T}px`})}else G.value=`${Z}px`;else if(H){let T=0;n.collapseHeight?T=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(T=D.value.offsetHeight),G.value=`${T}px`}else U.value=!1,G.value=`${Z}px`;K.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{ee(H)});const le=H=>{r.emit("header-click",H)},O=()=>{x()},x=H=>{H=H??!K.value,ee(H)};$e({toggleCollapse:x,doLayout:()=>{B[0]&&(V(B[0]),Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let E=null,v=!0;const Y=H=>{if(n.rules){const J=l.toRaw(n.rules);N(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);N(J,!0)}if(lt&&(H&&ee(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];V(J),window.ResizeObserver&&(E=new window.ResizeObserver(()=>{V(J)}),E.observe(J))}},j=()=>{E?.disconnect(),E=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(Y(v),v=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(_.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,d.value!==!1&&(Y(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),d.value=!1,!K.value)if(v)G.value=u.initialHeight;else{let T=_n(_.value);T<=0?G.value=J:(G.value=`${T}px`,J=G.value)}v||j()}})}}),l.onUnmounted(()=>{E?.disconnect(),u&&u.unobserve(_.value)});const R=(H="right")=>{const J=[];if(k.value){const W={class:b.value},ne=l.h("span",W,[k.value]);J.push(ne)}const te={class:P.value},T=o(n.collapseIcon,te);return T&&J.push(T),J.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},X=(H,J,te,T)=>{const W={...p.value};return J===0&&(W[`${g}__first`]=!0),te>=T-1&&(W[`${g}__last`]=!0),l.h("div",{ref:A,key:`${J}`,class:W,style:$.value},H)};return()=>{if(f.value&&d.value!==!0){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[])}s.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},ne=l.h("div",W,[r.slots.header()]);H.push(ne)}else{const W=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=R("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${g}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ne&&n.showCollapse){const oe=R("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},de=l.h("div",oe,W);H.push(de)}}L();const te=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const W=X(te,J++,0,te.length);H.push(W)}else if(T==="flow"){const W=X(te,J++,0,te.length);H.push(W)}else for(let W=0;W<te.length;W++){const ne=te[W],oe=X([ne],J++,W,te.length);H.push(oe)}if(q.value){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[H])}else return H}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),qn=ii(ri(ai,si,(e,t)=>(e=e??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function ui(e){return e===window}const ci=/matrix\((.+)\)/,Io=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ui(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ci.exec(d);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class fi{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 di{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new fi,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 r=document.body.parentNode;for(;n&&n!==r;){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 Oo=new di,Vo={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:hi,create:gi}=ie("price"),mi=gi({props:{...Vo},setup(e){const t=l.computed(()=>({[hi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>wt(e.price)==0?"":Lt(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),pi=["innerHTML"],yi=["innerHTML"];function bi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,pi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):l.createCommentVNode("",!0)],2)}const ln=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=ie("hint-text"),wi=vi({components:{Price:ln},props:{...Vo,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=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),d=(b,P,_,D,F,K)=>{const G=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Z=b.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},O=[];for(let x=0;x<ee.length;x++){const I=ee[x];if(O[0]=I,Z[1]&&(O[1]=Z[1]),I==="top"){const E=P.y-K-e.arrowSize-e.offset;if(E>=0){le.top=E;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+_-F:v=P.x+_/2-F/2;const Y=G-v-F;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(I==="bottom"){const E=P.y+D+e.arrowSize+e.offset;if(E+K<=U){le.top=E;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+_-F:v=P.x+_/2-F/2;const Y=G-v-F;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(I==="left"){const E=P.x-F-e.arrowSize-e.offset;if(E>=0){le.left=E;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+D-K:v=P.y+D/2-K/2,le.top=v<0?0:v;break}}else if(I==="right"){const E=P.x+_+e.arrowSize+e.offset;if(E+F<=G){le.left=E;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+D-K:v=P.y+D/2-K/2,le.top=v<0?0:v;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},f=(b,P,_=10)=>{if(!lt||P===!1||!b)return;n.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=u.value.offsetHeight,F=u.value.offsetWidth,{bestPlacement:K,bestInsetRect:G}=d(e.placement,n.value,r.value,a.value,F,D);s.value=K,o.value=G,i.value=!0},c=l.ref(0),S=$t(()=>{f(e.message,e.visible)},10),N=l.ref(e.visible);l.watch(()=>e.visible,b=>{N.value=b});const g=l.computed(()=>N.value&&h.value),h=l.ref(!0),p=$t(b=>{const P=b[0];P&&(h.value=P.isIntersecting)},10),$=new IntersectionObserver(p);l.watch([()=>e.message,()=>e.visible],([b,P])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Oo.watch(e.reference,S),$.observe(e.reference)}),l.onBeforeMount(()=>{Oo.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const b={[Pn]:!0};return s.value.startsWith("top")?b["is-top"]=!0:s.value.startsWith("right")?b["is-right"]=!0:s.value.startsWith("bottom")?b["is-bottom"]=!0:s.value.startsWith("right")&&(b["is-right"]=!0),e.size==="small"?b["is-small"]=!0:e.size==="large"&&(b["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(b[`${e.customClass}`]=!0),b}),C=l.computed(()=>{const b={};o.value.top!==null&&(b.top=`${o.value.top}px`),o.value.right!==null&&(b.right=`${o.value.right}px`),o.value.bottom!==null&&(b.bottom=`${o.value.bottom}px`),o.value.left!==null&&(b.left=`${o.value.left}px`),e.autoFit&&(b["min-width"]=`${r.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return b["max-width"]=`${P}px`,i.value&&(b.opacity="1"),e.transition||(b.transition="none"),e.zIndex&&(b["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(b,e.customStyle),b}),q=l.computed(()=>{const b=[`${Pn}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),B=l.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),A=l.computed(()=>({[`${Pn}__arrow`]:!0})),L=l.computed(()=>{const b={};return e.showArrow?(b.width=`${e.arrowSize}px`,b.height=`${e.arrowSize}px`,s.value==="top"?(b.left="50%",b.bottom=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="top-start"?(b.left=`${e.arrowOffset+c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(b.right=`${e.arrowOffset-c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="right"?(b.left=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="right-start"?(b.left=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="right-end"?(b.left=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(b.left="50%",b.top=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(b.left=`${e.arrowOffset+c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(b.right=`${e.arrowOffset-c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="left"?(b.right=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="left-start"?(b.right=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="left-end"&&(b.right=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`),b):{display:"none"}}),M=l.computed(()=>g.value&&e.closeOnClick),V=l.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:g,tipRef:u,classes:w,styles:C,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:V,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function xi(e,t,o,n,r,a){const s=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Nt=_e(wi,[["render",xi]]);class Fo{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 jn={},Ti=new Fo,dt=new Map,on=e=>{if(e){const t=document.getElementById(e);dt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of dt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}dt.clear()}},$i=e=>{e.unmount=on;const t=document.getElementById(e.id);if(t){const o=dt.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const n=l.createVNode(Nt,e);l.render(n,t)}return e.id},Ci=e=>{e.unmount=on;let t=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=t,dt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Nt,e);return l.render(n,o),document.body.appendChild(o),t},Ei=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},De={show(e,t,o={},n=!0){Ei(t);const r=o.id;return r&&dt.has(r)?$i({...o,message:t,reference:e}):(n&&on(),Ci({...o,message:t,reference:e}))},hide(e){on(e)},install(e){e.config.globalProperties.$hintText=De}};function Ni(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Ie},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Te({componentName:e,validate:!1},s);const i=Ge(),u=Zt();Jt(!1);const d=l.computed(()=>u&&i?Qt(i,!1).value:null),f=e,c=l.ref(null),S=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(T[r.errorMarkClass]=!!K.value,T[r.warnMarkClass]=!!D.value,T[r.infoMarkClass]=!!P.value,typeof c.value=="function"){const W=c.value(s);T[W]=!0}else if(typeof c.value=="string"){const W=c.value;T[W]=!0}return T}),N=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=ke(r.width));else{const W=u&&i?en(i,!1):null;if(d.value&&W){if(d.value.type==="grid"){const ne=nn(W,d.value,r.span,r.offset);Object.assign(T,ne)}else if(d.value.type==="flow"){const ne=tn(W,d.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof N.value=="function"){const W=N.value(s);W&&Object.assign(T,W)}else if(N.value&&typeof N.value=="object"){const W=N.value;Object.assign(T,W)}return T}),h=l.ref(null),p=l.computed({get:()=>h.value??ue(r.isRequired),set:T=>{h.value=T}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Oe(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${C.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),A=Oe(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),L=l.computed(()=>A&&A.value?{width:ke(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":p.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),b=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){p.value=T},setErrorTip(T){b.errorTip=T},setErrorIcon(T){b.errorIcon=T},setWarnTip(T){b.warnTip=T},setWarnIcon(T){b.warnIcon=T},setInfoTip(T){b.infoTip=T},setInfoIcon(T){b.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){N.value=T}});const P=l.computed(()=>r.infoTip||b.infoTip),_=l.computed(()=>r.infoIcon||b.infoIcon),D=l.computed(()=>r.warnTip||b.warnTip),F=l.computed(()=>r.warnIcon||b.warnIcon),K=l.computed(()=>r.errorTip||b.errorTip),G=l.computed(()=>r.errorIcon||b.errorIcon),U=l.computed(()=>K.value?"error":D.value?"warn":P.value?"info":""),Z=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?D.value:U.value==="info"?P.value:""),le=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?F.value:U.value==="info"?_.value:null),O=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${U.value}`]:!0,[`${f}--animate`]:!0};return U.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=ke(A.value)),T}),I=l.ref();let E="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,W,ne,oe])=>{I.value&&(T&&!me(W)?E?o.show(I.value,W,{...oe,id:E,type:ne},!0):E=o.show(I.value,W,{...oe,type:ne},!0):o.hide(E))});let v=null;const Y=()=>{v||!I.value||(v=new IntersectionObserver(T=>{let W=!1;for(let ne of T)if(ne.intersectionRatio>0){W=!0,W&&a.emit("appear",ne);break}W||a.emit("disappear")}),v.observe(I.value))},j=()=>{!v||!I.value||(v.unobserve(I.value),v=null)};l.watch(()=>ue(r.appearListen),T=>{T?Y():j()}),l.onMounted(()=>{ue(r.appearListen)&&Y()}),l.onUnmounted(j);const z=()=>{if(!$())return null;const T=[],W=a.slots?.label?.()??r.label,ne={class:M.value},oe=l.h("div",ne,[W]);if(T.push(oe),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();T.push(se)}const de={class:B.value,style:L.value};return l.h("div",de,T)},R=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${f}__fixed-tip`]},oe=l.h("div",ne,[a.slots.fixedTip()]);T.push(oe)}const W={ref:I,class:V.value,style:k.value};return l.h("div",W,T)},X=()=>{const T=le.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},H=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},J=()=>{if(!Z())return null;const T=[],W=X();W&&T.push(W);const ne=H();ne&&T.push(ne);const oe={class:O.value,style:x.value};return l.h("div",oe,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],W=[],ne=z();ne&&W.push(ne);const oe=R();oe&&W.push(oe);const de={class:q.value},se=l.h("div",de,W);T.push(se);const Q=J();Q&&T.push(Q);const re=te();re&&T.push(re);const ae={class:S.value,style:g.value,prop:r.prop};return l.h("div",ae,T)}}}}const{componentName:ki,create:Ii,scope:Oi}=ie("item"),Se=Ii(Ni(ki,Oi,De,!1));function Vi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Ge(),a=Zt();Jt(!1);const s=l.computed(()=>a&&r?Qt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?en(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const S=nn(c,s.value,o.span,o.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=tn(c,s.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=ke(o.width)),f;else o.width&&(f.width=ke(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Fi,create:Di,scope:Th}=ie("slot-item"),zn=Di(Vi(Fi));function Ri(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 r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),s=Ge(),i=Zt();Jt(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=Qt(s,!1),c=en(s,!1);if(f.value&&c)if(f.value.type==="grid"){const S=nn(c,f.value,o.span,o.offset);Object.assign(d,S)}else if(f.value.type==="flow"){const S=tn(c,f.value,o.span,o.offset,o.width);Object.assign(d,S)}else o.width&&(d.width=ke(o.width))}else o.width&&(d.width=ke(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let S=0;S<c.length;S++){if(S>0){const N=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[S])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Ai,create:Li,scope:$h}=ie("row-item"),Hn=Li(Ri(Ai)),He=(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},Do={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 Mi(e,t,o){return{props:{...we,...Ie,...Do},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__disabled`]:a.value,[`${S}__readonly`]:s.value})),g=_=>{c.value=_,i("update:modelValue",_),i("input",_)},h=_=>{i("change",_)};let p=ge(n,"hintText"),$=l.ref(!1);const w=_=>{let F=_.target.value;f.value=!0,me(p.value)||($.value=!0),i("focus",F,_)},C=_=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let F=_.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),i("blur",F,_)},q=()=>{i("clear","")},B=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},M=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},V=l.computed(()=>B.value||$.value),k=l.computed(()=>B.value?c.value:p.value),b=l.computed(()=>wt(n.unit)>0),P=l.ref();return $e({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const D={...He(r.attrs),ref:P,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:C,onMouseover:L,onMouseleave:M},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,D,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.default&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,Do),hintText:k.value,hintVisible:V.value};return n.prop&&(ee.prop=`${n.prop}_item`),l.h(o,ee,U)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Kn=_i(Mi(Bi,qi,Se));function Qe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function kt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ro(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Pi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ji=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function zi(){const e=l.getCurrentInstance();return new ji(e.proxy)}function Ao(e,t,o){const n=Qe(e,t),r=Qe(e,o);if(n!==r)return!1;const a=kt(e,t),s=kt(e,o);return a===s}function Lo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){const i=Ro(e,s);if(Array.isArray(i)&&i.length>0){const u=Lo(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Qe(e,s)===a;else if(o==="item")u=Ao(e,s,a);else{let d=kt(e,s);d==null&&(d=Qe(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Hi(e){return{text:e,value:e}}const Mo={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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ki(e,t,o){return{props:{...we,...Ie,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(X=>Qe(n,X)).join(" "):""),N=(R,X,H,J=!0)=>{const te=Lo(n,R,X,H);if(te===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],J&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let T=!0;if(te.length!==c.value.length)T=!1;else for(let W=0;W<te.length;W++){const ne=te[W],oe=c.value[W];if(!Ao(n,ne,oe)){T=!1;break}}if(!T){c.value=te;let W=[],ne=[],oe=[];te.forEach(re=>{const ae=kt(n,re),ce=Qe(n,re);W.push(ae),oe.push(ce),n.valueType==="text"?ne.push(ce):n.valueType==="item"?ne.push(re):ne.push(ae)});let de,se,Q;ue(n.multiple)?(f.value=W,de=l.toRaw(ne),se=oe,Q=l.toRaw(te)):(f.value=W[0]??"",de=l.toRaw(ne[0]??""),se=oe[0]??"",Q=l.toRaw(te[0])),J&&(i("update:modelValue",de),i("change",de,Q)),i("update:text",se)}},g=l.ref(null),h=l.ref(null),p=l.computed(()=>h.value??g.value??[]),$=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,R=>ue(R)),w=zi(),C=async(R,X)=>{if(R){const H=await w.load("select",R,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(W=>Hi(W));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([R,X])=>{h.value=null,C(R,X)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([R,X])=>{if(V()&&ue(n.multiple)){Ye(X,f.value)||(f.value=X);return}N(X,n.valueType,p.value,!1),i("setValue",X)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async R=>{if(R==null){h.value=null;return}L.value=!0;try{const X=await n.remoteMethod(R);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async R=>{if(R==null){h.value=null;return}L.value=!0;try{const X=await n.filterMethod(R,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),b=e,P=l.computed(()=>({[b]:!0})),_=R=>{n.allowCreate||V()&&ue(n.multiple)?(i("update:modelValue",R),i("change",R),i("update:text",R),f.value=R):N(R,"value",p.value,!0)};let D=ge(n,"hintText"),F=l.ref(!1);const K=R=>{let H=R.target.value;k.value=!0,me(D.value)||(F.value=!0),i("focus",H,R)},G=R=>{setTimeout(()=>{F.value&&(F.value=!1),k.value=!1},0);let H=R.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),E.value||i("blur",H,R)},U=()=>{i("clear","")},Z=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=l.computed(()=>Z.value||F.value),I=l.computed(()=>Z.value?S.value:D.value),E=l.ref(!1),v=R=>{E.value=R,i("visible-change",R),R||i("selected")},Y=R=>{i("remove-tag",R)},j=(R,X)=>{const H=[];return R.forEach((J,te)=>{const T=Ro(n,J);if(Array.isArray(T)&&T.length>0){const W=j(T,X),ne=Qe(n,J),de={key:`${ne}_${te}`,label:ne};H.push(l.h(y.ElOptionGroup,de,{default:()=>W}))}else{const W=kt(n,J),ne=Qe(n,J),oe=Pi(n,J),se={key:`${W}_${te}`,label:ne,disabled:oe,value:W};if(typeof X=="function")H.push(l.h(y.ElOption,se,{default:()=>X(J)}));else if(n.optionType==="item"){const Q={class:{"fox-select-item__option-left":!0}},re=l.h("span",Q,[W]),ae={class:{"fox-select-item__option-right":!0}},ce=l.h("span",ae,[ne]),xe=l.h("div",{class:{"fox-select-item__option":!0}},[re,ce]);H.push(l.h(y.ElOption,se,{default:()=>xe}))}else n.optionType==="value"?H.push(l.h(y.ElOption,se,{default:()=>[W]})):H.push(l.h(y.ElOption,se))}}),H},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const X={...He(r.attrs),ref:z,class:P.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:_,onFocus:K,onBlur:G,onVisibleChange:v,onRemoveTag:Y};typeof A=="function"&&(X["remote-method"]=A,X.loading=L.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>j(p.value,r.slots.option);const J=[],te=l.h(y.ElSelect,X,H);J.push(te);const T={default:()=>J};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const ne={...Ne(n,Mo),hintText:I.value,hintVisible:x.value,onMouseover:le,onMouseleave:O};return n.prop&&(ne.prop=`${n.prop}_item`),$.value&&(ne["appear-listen"]=!0,ne.onAppear=B),l.h(o,ne,T)}}}}const{componentName:Wi,create:Yi,scope:Gi}=ie("select-item"),Wn=Yi(Ki(Wi,Gi,Se));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",S="quarter",N="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+)?$/,$=/\[([^\]]+)]|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("_"),ordinal:function(D){var F=["th","st","nd","rd"],K=D%100;return"["+D+(F[(K-20)%10]||F[K]||F[0])+"]"}},C=function(D,F,K){var G=String(D);return!G||G.length>=F?D:""+Array(F+1-G.length).join(K)+D},q={s:C,z:function(D){var F=-D.utcOffset(),K=Math.abs(F),G=Math.floor(K/60),U=K%60;return(F<=0?"+":"-")+C(G,2,"0")+":"+C(U,2,"0")},m:function D(F,K){if(F.date()<K.date())return-D(K,F);var G=12*(K.year()-F.year())+(K.month()-F.month()),U=F.clone().add(G,c),Z=K-U<0,ee=F.clone().add(G+(Z?-1:1),c);return+(-(G+(K-U)/(Z?U-ee:ee-U))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:c,y:N,w:f,d,D:g,h:u,m:i,s,ms:a,Q:S}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},B="en",A={};A[B]=w;var L="$isDayjsObject",M=function(D){return D instanceof P||!(!D||!D[L])},V=function D(F,K,G){var U;if(!F)return B;if(typeof F=="string"){var Z=F.toLowerCase();A[Z]&&(U=Z),K&&(A[Z]=K,U=Z);var ee=F.split("-");if(!U&&ee.length>1)return D(ee[0])}else{var le=F.name;A[le]=F,U=le}return!G&&U&&(B=U),U||!G&&B},k=function(D,F){if(M(D))return D.clone();var K=typeof F=="object"?F:{};return K.date=D,K.args=arguments,new P(K)},b=q;b.l=V,b.i=M,b.w=function(D,F){return k(D,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function D(K){this.$L=V(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[L]=!0}var F=D.prototype;return F.parse=function(K){this.$d=function(G){var U=G.date,Z=G.utc;if(U===null)return new Date(NaN);if(b.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ee=U.match(p);if(ee){var le=ee[2]-1||0,O=(ee[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)):new Date(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)}}return new Date(U)}(K),this.init()},F.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},F.$utils=function(){return b},F.isValid=function(){return this.$d.toString()!==h},F.isSame=function(K,G){var U=k(K);return this.startOf(G)<=U&&U<=this.endOf(G)},F.isAfter=function(K,G){return k(K)<this.startOf(G)},F.isBefore=function(K,G){return this.endOf(G)<k(K)},F.$g=function(K,G,U){return b.u(K)?this[G]:this.set(U,K)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(K,G){var U=this,Z=!!b.u(G)||G,ee=b.p(K),le=function(z,R){var X=b.w(U.$u?Date.UTC(U.$y,R,z):new Date(U.$y,R,z),U);return Z?X:X.endOf(d)},O=function(z,R){return b.w(U.toDate()[z].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(R)),U)},x=this.$W,I=this.$M,E=this.$D,v="set"+(this.$u?"UTC":"");switch(ee){case N:return Z?le(1,0):le(31,11);case c:return Z?le(1,I):le(0,I+1);case f:var Y=this.$locale().weekStart||0,j=(x<Y?x+7:x)-Y;return le(Z?E-j:E+(6-j),I);case d:case g:return O(v+"Hours",0);case u:return O(v+"Minutes",1);case i:return O(v+"Seconds",2);case s:return O(v+"Milliseconds",3);default:return this.clone()}},F.endOf=function(K){return this.startOf(K,!1)},F.$set=function(K,G){var U,Z=b.p(K),ee="set"+(this.$u?"UTC":""),le=(U={},U[d]=ee+"Date",U[g]=ee+"Date",U[c]=ee+"Month",U[N]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[Z],O=Z===d?this.$D+(G-this.$W):G;if(Z===c||Z===N){var x=this.clone().set(g,1);x.$d[le](O),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},F.set=function(K,G){return this.clone().$set(K,G)},F.get=function(K){return this[b.p(K)]()},F.add=function(K,G){var U,Z=this;K=Number(K);var ee=b.p(G),le=function(I){var E=k(Z);return b.w(E.date(E.date()+Math.round(I*K)),Z)};if(ee===c)return this.set(c,this.$M+K);if(ee===N)return this.set(N,this.$y+K);if(ee===d)return le(1);if(ee===f)return le(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,x=this.$d.getTime()+K*O;return b.w(x,this)},F.subtract=function(K,G){return this.add(-1*K,G)},F.format=function(K){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var Z=K||"YYYY-MM-DDTHH:mm:ssZ",ee=b.z(this),le=this.$H,O=this.$m,x=this.$M,I=U.weekdays,E=U.months,v=U.meridiem,Y=function(R,X,H,J){return R&&(R[X]||R(G,Z))||H[X].slice(0,J)},j=function(R){return b.s(le%12||12,R,"0")},z=v||function(R,X,H){var J=R<12?"AM":"PM";return H?J.toLowerCase():J};return Z.replace($,function(R,X){return X||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return b.s(G.$y,4,"0");case"M":return x+1;case"MM":return b.s(x+1,2,"0");case"MMM":return Y(U.monthsShort,x,E,3);case"MMMM":return Y(E,x);case"D":return G.$D;case"DD":return b.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Y(U.weekdaysMin,G.$W,I,2);case"ddd":return Y(U.weekdaysShort,G.$W,I,3);case"dddd":return I[G.$W];case"H":return String(le);case"HH":return b.s(le,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return z(le,O,!0);case"A":return z(le,O,!1);case"m":return String(O);case"mm":return b.s(O,2,"0");case"s":return String(G.$s);case"ss":return b.s(G.$s,2,"0");case"SSS":return b.s(G.$ms,3,"0");case"Z":return ee}return null}(R)||ee.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(K,G,U){var Z,ee=this,le=b.p(G),O=k(K),x=(O.utcOffset()-this.utcOffset())*n,I=this-O,E=function(){return b.m(ee,O)};switch(le){case N:Z=E()/12;break;case c:Z=E();break;case S:Z=E()/3;break;case f:Z=(I-x)/6048e5;break;case d:Z=(I-x)/864e5;break;case u:Z=I/r;break;case i:Z=I/n;break;case s:Z=I/o;break;default:Z=I}return U?Z:b.a(Z)},F.daysInMonth=function(){return this.endOf(c).$D},F.$locale=function(){return A[this.$L]},F.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),Z=V(K,G,!0);return Z&&(U.$L=Z),U},F.clone=function(){return b.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},D}(),_=P.prototype;return k.prototype=_,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",N],["$D",g]].forEach(function(D){_[D[1]]=function(F){return this.$g(F,D[0],D[1])}}),k.extend=function(D,F){return D.$i||(D(F,P,k),D.$i=!0),k},k.locale=V,k.isDayjs=M,k.unix=function(D){return k(1e3*D)},k.en=A[B],k.Ls=A,k.p={},k})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,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,r=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=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 $=p.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var p=i[h];return p&&(p.indexOf?p:p.s.concat(p.f))},S=function(h,p){var $,w=i.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,p))>-1){$=C>12;break}}else $=h===(p?"pm":"PM");return $},N={A:[s,function(h){this.afternoon=S(h,!1)}],a:[s,function(h){this.afternoon=S(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var p=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],p)for(var w=1;w<=31;w+=1)p(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var p=c("months"),$=(c("monthsShort")||p.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,function(h){var p=c("months").indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var p,$;p=h,$=i&&i.formats;for(var w=(h=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,k,b){var P=b&&b.toUpperCase();return k||$[b]||o[b]||$[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,D,F){return D||F.slice(1)})})).match(n),C=w.length,q=0;q<C;q+=1){var B=w[q],A=N[B],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:B.replace(/^\[|\]$/g,"")}return function(V){for(var k={},b=0,P=0;b<C;b+=1){var _=w[b];if(typeof _=="string")P+=_.length;else{var D=_.regex,F=_.parser,K=V.slice(P),G=D.exec(K)[0];F.call(k,G),V=V.replace(G,"")}}return function(U){var Z=U.afternoon;if(Z!==void 0){var ee=U.hours;Z?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}}(k),k}}return function(h,p,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=p.prototype,C=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var V=L[2]===!0,k=L[3]===!0,b=V||k,P=L[2];k&&(P=L[2]),i=this.$locale(),!V&&P&&(i=$.Ls[P]),this.$d=function(K,G,U){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*K);var Z=g(G)(K),ee=Z.year,le=Z.month,O=Z.day,x=Z.hours,I=Z.minutes,E=Z.seconds,v=Z.milliseconds,Y=Z.zone,j=new Date,z=O||(ee||le?1:j.getDate()),R=ee||j.getFullYear(),X=0;ee&&!le||(X=le>0?le-1:j.getMonth());var H=x||0,J=I||0,te=E||0,T=v||0;return Y?new Date(Date.UTC(R,X,z,H,J,te,T+60*Y.offset*1e3)):U?new Date(Date.UTC(R,X,z,H,J,te,T)):new Date(R,X,z,H,J,te,T)}catch{return new Date("")}}(B,M,A),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),b&&B!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var _=M.length,D=1;D<=_;D+=1){L[1]=M[D-1];var F=$.apply(this,L);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}D===_&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(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(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}});return a.bind(this)(f)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,S,N,g,h){var p=c.name?c:c.$locale(),$=s(p[S]),w=s(p[N]),C=$||w.map(function(B){return B.slice(0,g)});if(!h)return C;var q=p.weekStart;return C.map(function(B,A){return C[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,S){return c.formats[S]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,p){return h||p.slice(1)})}(c.formats[S.toUpperCase()])},f=function(){var c=this;return{months:function(S){return S?S.format("MMMM"):i(c,"months")},monthsShort:function(S){return S?S.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(c,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(c.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(S){return d(c,S)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var S=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(S,o,!0);return N<0?s(this).startOf("week").week():Math.ceil(N)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ko);var ss=Ko.exports;const us=Xe(ss);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Wo);var cs=Wo.exports;const fs=Xe(cs);Ke.extend(ts),Ke.extend(Qi),Ke.extend(Zi),Ke.extend(ls),Ke.extend(rs),Ke.extend(is),Ke.extend(us),Ke.extend(fs);const Be={format(e,t){return Ke(e).format(t)},parser(e,t){return Ke(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},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),r=this.getNumTwoBit(e.getDate());return[o,n,r].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 r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Yo={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"}},Go={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 ds(e,t,o){return{props:{...we,...Ie,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=l.computed(()=>F.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=l.computed(()=>F.value?"longTermKey":"normalKey"),g=z=>{if(F.value&&n.type==="daterange"){const R=[...c.value];R[0]=z,c.value=R}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>F.value&&n.type==="daterange"?"date":n.type),p=e,$=l.computed(()=>({[`${p}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":a.value}));let w=ge(n,"hintText"),C=l.ref(!1);const q=z=>{let X=z.target.value;f.value=!0,me(w.value)||(C.value=!0),i("focus",X,z)},B=z=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let X=z.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),i("blur",X,z)},A=()=>{i("clear","")},L=z=>{i("calendar-change",z)},M=(z,R,X)=>{i("panel-change",z,R,X)},V=z=>{i("visible-change",z)},k=Oe(l.computed(()=>n.longTermText),"longTermText",Me.Near),b=Oe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),P=Oe(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),_=Oe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let D=null;const F=l.ref(ue(n.longTerm)),K=z=>{if(F.value=z,i("update:longTerm",z),z){if(D=c.value,n.type==="daterange"){const R=[];Array.isArray(P.value)?(R[0]=c.value?c.value[0]??P.value[0]:null,R[1]=P.value[1]??P.value[0]):(R[0]=c.value?c.value[0]??P.value:null,R[1]=F.value),R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else Array.isArray(P.value)?c.value=P.value[1]??P.value[0]:c.value=P.value,c.value||(c.value=n.valueFormat?Be.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const R=[];R[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(D)?R[1]=D[1]:R[1]=D,R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else c.value=D;i("update:modelValue",c.value),setTimeout(()=>{Y()},100)}},G=ue(n.isLongTerm);if(G){const z=()=>{if(F.value===!0){if(D=c.value,n.type==="daterange"){const R=[c.value[0]];Array.isArray(P.value)?R[1]=P.value[1]??P.value[0]:R[1]=F.value,R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else c.value=P.value;i("update:modelValue",c.value)}else Ye(P.value,c.value)&&(F.value=!0)};z(),l.watch([()=>n.longTerm],([R])=>{F.value!==R&&z()}),l.watch([()=>c.value],([R])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(R))try{let H=R[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Be.format(H,n.valueFormat));let J=Array.isArray(P.value)?P.value[1]:P.value;(H===J||Array.isArray(_.value)&&_.value.findIndex(T=>H==T)!==-1)&&(X=!0)}catch(H){console.error(H)}F.value!==X&&(F.value=X)},{immediate:!0})}const U=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=l.ref(),ee=l.ref(),le=/^\d+$/,O=(z,R)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,R):le.test(z)&&z.length===n.flashFillThreshold,x=(z,R)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,R);else{const J=n.flashFillFormat??"YYYYMMDD";X=Be.parser(z,J)}const H=n.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},I=z=>z?z.endsWith("range"):!1,E=z=>{if(!z.target)return;const R=z.target.value??"";if(O(R,n.type)){const X=x(R,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,g(H)}else g(X)}},v=z=>{if(!z.target)return;const R=z.target.value??"";if(O(R,n.type)){const X=x(R,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,g(H)}else g(X)}},Y=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",E),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",E)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",E),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",E)}};return l.onMounted(Y),l.onBeforeUnmount(j),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const R={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:S.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:M,onVisibleChange:V},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(y.ElDatePicker,R,X);H.push(J);const te={default:()=>H};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),G){if(F.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),se={class:U.value},Q=l.h("div",se,{default:()=>[oe,de]});H.push(Q)}if(!s.value&&!a.value){const oe={label:b.value||k.value,disabled:s.value||a.value,modelValue:F.value,"onUpdate:modelValue":K},de=l.h(y.ElCheckbox,oe),se=l.h("div",{class:{[`${p}__append`]:!0}},[de]);te.append=()=>se}}const W={...Ne(n,Yo,Go),ref:Z,class:{[`${p}__wrapper`]:!0,"has-append":G},hintText:w.value,hintVisible:C.value};return n.prop&&(W.prop=`${n.prop}_item`),l.h(o,W,te)}}}}const{componentName:hs,create:gs,scope:ms}=ie("date-item"),Yn=gs(ds(hs,ms,Se)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,o){return{props:{...we,...Ie,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=A=>{c.value=A,i("update:modelValue",A),i("change",A)};let h=ge(n,"hintText"),p=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,me(h.value)||(p.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},C=()=>{i("clear","")},q=A=>{i("visible-change",A)},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w,onVisibleChange:q},M={},V=[],k=l.h(y.ElTimePicker,L,M);V.push(k);const b={default:()=>V};r.slots.default&&(b.label=r.slots.default),r.slots.fixedTip&&(b.fixedTip=r.slots.fixedTip);const _={...Ne(n,Uo),hintText:h.value,hintVisible:p.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,b)}}}}const{componentName:ys,create:bs,scope:vs}=ie("time-item"),Gn=bs(ps(ys,vs,Se)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,t,o){return{props:{...we,...Ie,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=B=>{c.value=B,i("update:modelValue",B),i("change",B)};let h=ge(n,"hintText"),p=l.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,me(h.value)||(p.value=!0),i("focus",L,B)},w=B=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,B)},C=()=>{i("clear","")},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w},L={},M=[],V=l.h(y.ElTimeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const P={...Ne(n,Xo),hintText:h.value,hintVisible:p.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,k)}}}}const{componentName:Ss,create:xs,scope:Ts}=ie("time-select-item"),Un=xs(ws(Ss,Ts,Se));function Zo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Jo(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=Wl(`${e}`,`${t}`);return Zo(n)}else{let n=vn(`${e}`,Yl(`${t}`),20);return Zo(n)}}function $s(e,t=-1,o=!1,n=3,r=","){return Lt(e,t,o,n,r)}function Qo(e,t,o,n,r=!0){if(e==="")return"";if(e=Gl(e),t=ve(t),t==1)return e;if(n)e=Jo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(ve(o)+2,"0"):e=vn(e,1,ve(o)));else{let a=-1*t;e=Jo(e,a)}return e}function er(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=wn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=wn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const tr={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 Cs(e,t,o){return{props:{...we,...Ie,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=ge(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([_,D,F])=>{if(me(_)){f.value="";return}const K=Qo(_,D,F,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let _="";return u.value&&(_=f.value),_}),{t:S}=Le.useFoxI18n(t),N=l.computed(()=>{let _=n.placeholder??"";return!u.value&&!me(f.value)?_=$s(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):_=S(["placeholder",_]),_}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),p=Oe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const $=l.ref(""),w=l.computed(()=>{let _=$.value;return me(_)&&(_=n.errorTip??""),_}),C=l.ref(""),q=l.ref(!1),B=(_,D)=>{if(_=`${_}`,me(_)){f.value="",d.value="",D.forEach(F=>{i(F,"")}),ue(n.showTip)&&q.value&&(q.value=!1);return}if(_.length>=2){let F=_;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){l.triggerRef(f);return}}if(_!="-"){if(!lo(_)){l.triggerRef(f);return}if(n.integerLength!=-1&&oo(_)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ro(_)>Number(n.decimalLength)){l.triggerRef(f);return}let F=er(_,n);if(F.maxValid===!1){$.value=F.message,l.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){l.triggerRef(f);return}C.value=_,ue(n.showTip)&&(q.value=_.length>0),f.value=_,d.value=Qo(_,n.rates,n.precision,!0),D.forEach(F=>{i(F,d.value)})},A=_=>{B(_,["update:modelValue","input"])},L=_=>{B(_,["update:modelValue","change"])},M=_=>{if(u.value=!0,ue(n.showTip)){let D=f.value;me(D)&&(D=n.hintText),me(D)||(C.value=D,q.value=!0)}$.value="",i("focus",d.value,_)},V=_=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&q.value===!0&&(q.value=!1)},0),!me(f.value)){let D=er(f.value,n);if(D.minValid===!1||D.maxValid===!1){$.value=D.message;return}}i("update:modelValue",d.value,_),i("blur",d.value,_)},k=()=>{i("clear","")},b=l.computed(()=>wt(n.unit)>0),P=l.ref();return $e({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const D={...He(r.attrs),ref:P,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:L,onFocus:M,onBlur:V},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,D,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,tr),errorTip:w.value,hintText:C.value,hintVisible:q.value,hintType:"number"};return n.prop&&(ee.prop=`${n.prop}_item`),l.h(o,ee,U)}}}}const{componentName:Es,create:Ns,scope:ks}=ie("money-item"),Xn=Ns(Cs(Es,ks,Se)),nr={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 Is(e,t,o){return{props:{...we,...Ie,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__append`]:A.value})),g=l.computed(()=>({[`${S}__unit`]:!0})),h=M=>{c.value=M,i("update:modelValue",M),i("input",M)},p=M=>{i("change",M)};let $=ge(n,"hintText"),w=l.ref(!1);const C=M=>{let k=M.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",k,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=M.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,M)},B=()=>{i("clear","")},A=l.computed(()=>wt(n.unit)>0),L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const V={...He(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:p,onInput:h,onFocus:C,onBlur:q},k={},b=[],P=l.h(y.ElInputNumber,V,k);b.push(P);const _={default:()=>b};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ne(n,nr),hintText:$.value,hintVisible:w.value};if(n.prop&&(F.prop=`${n.prop}_item`),r.slots.append)_.append=r.slots.append;else if(A.value){const G={class:g.value},U=l.h("div",G,[n.unit]);_.append=()=>U}return l.h(o,F,_)}}}}const{componentName:Os,create:Vs,scope:Fs}=ie("input-number-item"),Zn=Vs(Is(Os,Fs,Se));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ds(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=Pe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function As(){const e=l.getCurrentInstance();return new Rs(e.proxy)}function Jn(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=rt(e,t),s=rt(e,o);return a===s}function lr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=lr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ze(e,d)===i;else if(o==="item")u=Jn(e,d,i);else{let f=rt(e,d);f==null&&(f=Ze(e,d)),u=f===i}if(u){r.push(d),a=Ds(e,d);break}}if(!u)break}}return r}function Ls(e){return{text:e,value:e}}const or={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ms(e,t,o){return{props:{...we,...Ie,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ze(n,X)).join(" "):Ze(n,z)).join(" "):""),N=(j,z,R,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===j)return;f.value=j;const T=l.toRaw(j);if(X){const W=Y?.value.getCheckedNodes();if(W)if(n.multiple){const ne=[];W.forEach(oe=>{const se=(oe.pathNodes??[]).map(Q=>Q.data);ne.push(se)}),i("update:pathNodes",ne)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);i("update:pathNodes",oe)}i("update:modelValue",T),i("change",T)}return}const H=lr(n,j,z,R);if(H===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,X&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const T=[];H.forEach(W=>{const ne=`${Ze(n,W)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let te=!0;if(H.length!==c.value.length)te=!1;else for(let T=0;T<H.length;T++){const W=H[T],ne=c.value[T];if(Array.isArray(W)){if(!Array.isArray(ne)||W.length!==ne.length)te=!1;else for(let oe=0;oe<W.length;oe++)if(!Jn(n,W[oe],ne[oe])){te=!1;break}}else Jn(n,W,ne)||(te=!1);if(!te)break}if(!te){c.value=H;let T=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],se=[];for(let Q of oe)de.push(rt(n,Q)),n.valueType==="text"?se.push(Ze(n,Q)):n.valueType==="item"?se.push(Q):se.push(rt(n,Q));T.push(de),W.push(se)}else T.push(rt(n,oe)),n.valueType==="text"?W.push(Ze(n,oe)):n.valueType==="item"?W.push(oe):W.push(rt(n,oe))}),f.value=T;const ne=l.toRaw(W);X&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,j=>ue(j)),p=As(),$=async(j,z)=>{if(j){const R=await p.load("cascader",j,z);if(R.length>0)if(typeof R[0]=="string"){let J=R.map(te=>Ls(te));g.value=J}else g.value=R}};l.watch([()=>n.source,()=>n.params],async([j,z])=>{$(j,z)},{immediate:!(h.value||n.lazy)});let w=!1;const C=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([j,z])=>{N(z,n.valueType,j,!1),i("setValue",z)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){B.value=!0;try{const z=await n.remoteMethod(j);g.value=z}catch(z){console.error(z)}B.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),V=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),k=l.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),n.lazy&&(j.lazy=!0,typeof n.lazyLoad=="function"?j.lazyLoad=n.lazyLoad:j.lazyLoad=async(z,R)=>{const X=await p.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const H=z.pathLabels??[];let J=[];H.forEach(te=>{te&&J.push(te)}),J.length>0&&(M.value=J.join(n.separator))}else M.value=null;R(X)}),j}),b=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),f.value=j):N(j,"value",g.value,!0)};let P=ge(n,"hintText"),_=l.ref(!1);const D=j=>{let R=j.target.value;A.value=!0,me(P.value)||(_.value=!0),i("focus",R,j)},F=j=>{setTimeout(()=>{_.value&&(_.value=!1),A.value=!1},0);let R=j.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),x.value||i("blur",R,j)},K=()=>{i("clear","")},G=l.ref(!1);let U=null;const Z=()=>{n.showTooltip&&G.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{G.value=!0},150))},ee=()=>{U&&(clearTimeout(U),G.value=!1,U=null)},le=l.computed(()=>G.value||_.value),O=l.computed(()=>G.value?S.value:P.value),x=l.ref(!1),I=j=>{x.value=j,i("visible-change",j),j||i("selected")},E=j=>{i("remove-tag",j)},v=j=>{i("expand-change",j)},Y=l.ref();return $e({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},getCheckedNodes:()=>Y?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:Y,class:V.value,props:k.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:b,onFocus:D,onBlur:F,onVisibleChange:I,onRemoveTag:E,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const R={};r.slots.option&&(R.default=r.slots.option),r.slots.empty&&(R.empty=r.slots.empty);const X=[],H=l.h(y.ElCascader,z,R);X.push(H);const J={default:()=>X};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const T={...Ne(n,or),hintText:O.value,hintVisible:le.value,onMouseover:Z,onMouseleave:ee};return n.prop&&(T.prop=`${n.prop}_item`),h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,J)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),Qn=_s(Ms(Bs,qs,Se)),rr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...we,...Ie,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=L=>{c.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},p=L=>{i("select",L)};let $=ge(n,"hintText"),w=l.ref(!1);const C=L=>{let V=L.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",V,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=L.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,L)},B=()=>{i("clear","")},A=l.ref();return $e({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:C,onBlur:q,onSelect:p},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix&&(V.suffix=r.slots.suffix),r.slots.option&&(V.default=r.slots.option);const k=[],b=l.h(y.ElAutocomplete,M,V);k.push(b);const P={default:()=>k};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,rr),hintText:$.value,hintVisible:w.value};return n.prop&&(D.prop=`${n.prop}_item`),l.h(o,D,P)}}}}const{componentName:js,create:zs,scope:Hs}=ie("autocomplete-item"),el=zs(Ps(js,Hs,Se));function Ks(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(S=>S[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ws=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}const ar={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 Gs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){const a=Ys(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Ks(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Ch,create:Us,scope:Eh}=ie("mapping"),It=Us(Gs());function Xs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Zs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Xs(s.row,s.column.property);return r.default?l.h(It,{...o,modelValue:i},{default:r.default}):l.h(It,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Nh,create:Js,scope:kh}=ie("table-mapping-column"),tl=Js(Zs()),Qs=Symbol.for("TableStateKey");function ir(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function eu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ir(i.row,i.column.property),d=a?ir(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},S=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return l.h("label",N,[S])}};return l.h(y.ElTableColumn,{...n},s)}}}}const{componentName:Ih,create:tu,scope:Oh}=ie("table-radio-column"),nl=tu(eu()),nu={},lu={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"},ou=[l.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 ru(e,t){return l.openBlock(),l.createElementBlock("svg",lu,ou)}const au=_e(nu,[["render",ru]]),{componentName:Fh,create:iu,scope:Dh}=ie("table-setting"),su={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:"不固定"}},uu=iu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:au,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...su},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),s=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),i=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=v=>v.length>1,S=(v,Y)=>{Array.isArray(v)&&Array.isArray(Y)&&v.forEach(R=>{Y.some(X=>X.prop===R.prop?(R.label=X.label,!0):!1)});const j=[];r.value=v.map((R,X)=>(!(R.label===""||R.type)&&R.visible!==!1&&j.push(R.prop),{...R,sortIndex:X})),i.value.length+a.value.length+s.value.length===j.length?w.value=!0:j.length>0&&(C.value=!0),A.value=j},N=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,Y)=>{if(v.length!==Y.length)return!1;const j=v.map(z=>N(z));for(let z of Y){const R=N(z);if(j.indexOf(R)===-1)return!1}return!0},h=v=>{if(!v){const Y=e.tableRef.getColumnSetting(),j=Y.srcColumnPropertyList;n=j.map((z,R)=>({...z,sortIndex:R})),v=Y.columnPropertyList,v&&v.length>0&&g(j,v)||(v=j)}S(v,n)},p=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),C=l.ref(!1),q=v=>{const Y=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&Y.push(z.prop),z.visible=v}),w.value=!1,C.value=!1,i.value.length+a.value.length+s.value.length===Y.length?w.value=!0:Y.length>0&&(C.value=!0),A.value=Y,p()},B=()=>{h(n),p()},A=l.ref([]),L=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),w.value=!1,C.value=!1;const Y=i.value.length+a.value.length+s.value.length;v.length===Y?w.value=!0:v.length>0&&(C.value=!0),p()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,b=v=>{const Y=v.currentTarget;Y&&Y.dataset&&(V.roleType=Y.dataset.roleType,V.index=Y.dataset.index)},P=v=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},_=v=>{const Y=v.currentTarget;v.relatedTarget;const j=k(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;V.roleType===z&&(v.preventDefault(),V.currentRow&&V.currentRow!==j&&V.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),V.currentRow=j)},D=v=>{v.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},F=v=>{const Y=v.currentTarget,j=k(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(V.roleType!==z)return;v.preventDefault();const R=Number(V.index),X=Number(j.dataset.index);if(R!==X){if(R<X){const H=r.value[R];r.value.splice(R,1),r.value.splice(X,0,H)}else{const H=r.value[R];r.value.splice(R,1),r.value.splice(X+1,0,H)}S(r.value,n),p()}},K=v=>{const Y=r.value[v];Y.fixed="left",p()},G=v=>{const Y=r.value[v];Y.fixed="right",p()},U=v=>{const Y=r.value[v];Y.fixed=void 0,p()},Z=new Map;let ee=null;function le(v){const Y=document.createRange();return Y.setStart(v,0),Y.setEnd(v,v.childNodes.length),Y.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:C,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:b,onDragEnd:P,onDragOver:_,onDragLeave:D,onDrop:F,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,Y,j)=>{const z=v.currentTarget;if(z){const R=Math.floor(z.offsetWidth);if(Math.floor(le(z))>R){let H=Z.get(Y);if(H){if(H===ee)return;De.hide(H)}H=De.show(z,j,{type:"text",placement:"top",closeOnClick:!1}),H&&(Z.set(Y,H),ee=H)}}},onMouseLeaveForOverflowText:(v,Y)=>{const j=Z.get(Y);j&&(De.hide(j),j===ee&&(ee=null))},onMouseOverForTip:(v,Y)=>{const j=v.currentTarget;j&&(ee&&De.hide(ee),ee=De.show(j,Y,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(De.hide(ee),ee=null)}}}}),cu={class:"fox-table-setting"},fu={class:"fox-table-setting__header"},du={class:"fox-table-setting__body"},hu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gu={key:0,class:"fox-table-setting__body-title"},mu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],yu={class:"tools-item"},bu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},vu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],xu={class:"tools-item"},Tu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$u={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],Nu={class:"tools-item"};function ku(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),S=l.resolveComponent("fox-checkbox"),N=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",cu,[l.createElementVNode("div",fu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",du,[l.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",gu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.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)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,pu)]),_:2},1032,["value"]),l.createElementVNode("div",yu,[l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,mu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",bu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",vu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.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)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Su)]),_:2},1032,["value"]),l.createElementVNode("div",xu,[l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,wu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",$u,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.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)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(S,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",Nu,[l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const rn=_e(uu,[["render",ku]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=Pe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Ou(){const e=l.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Pe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Pe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function sr(){const e=l.getCurrentInstance();return new Vu(e.proxy)}const Fu=Symbol.for("TableStateKey"),ur={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},cr={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"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},ll={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:"不固定"}},Du={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function ol(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Ru(n,r);if(a!==s)return!1}return!0})}function Au(e,t,o){return{inheritAttrs:!1,props:{...we,...Ie,...ur,...cr,...ll,...Du},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Le.useFoxI18n(t),{emitEvent:s}=Te({componentName:e,validateHandler:{getValue(...Q){return A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=l.shallowRef({}),N=l.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),p=ue(n.infiniteLoad);p||(l.watch(()=>n.pageIndex,Q=>{g.value=Q}),l.watch(()=>n.pageSize,Q=>{h.value=Q}),l.watch([g,h],([Q,re],[ae,ce])=>{re!==ce&&(g.value=1,Q=1),k(n.data,Q,re,N.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&l.watch([()=>n.data,N],async([Q,re],[ae,ce])=>{$()&&(Q!==ae&&(M=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,ce))&&(p?(g.value=0,q.value=!0,A.value=[],P()):g.value===1?k(Q,g.value,h.value,re):g.value=1))},{deep:!0});const w=Q=>{g.value=Q,s("page-index-change",Q)},C=Q=>{h.value=Q,s("page-size-change",Q)},q=l.ref(!0),B=l.ref(0),A=l.ref(),L=Ou();let M=!0;const V=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),k=async(Q,re,ae,ce,xe)=>{M=!1;try{if(xe===!0){if(!q.value)return!1;const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,A.value,be.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=B.value)||be.page.length<ae?(q.value=!1,!1):!0}else{const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,A.value=be.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),B.value=0,A.value=[]}return!1};let b=!1;const P=async()=>{if(!b){if(b=!0,!q.value){b=!1;return}g.value+=1,await k(n.data,g.value,h.value,N.value,!0),b=!1}},_=(Q={},re=!1)=>new Promise(async ae=>{S.value={...l.toRaw(Q??{})},re||(g.value=n.pageIndex??1),p===!0?(g.value=0,A.value=[],q.value=!0,await P()):await k(n.data,g.value,h.value,N.value),ae()}),D=()=>{B.value=0,A.value=[],p===!0&&(g.value=0,q.value=!0)};let F=!1;const K=()=>{F||(F=!0,_())},G=l.ref(null);if(p===!0){let Q=null;const re=()=>{G.value&&(Q=new IntersectionObserver(ce=>{let xe=!1;for(let be of ce)if(be.intersectionRatio>0){xe=!0;break}xe&&P()}),Q.observe(G.value))},ae=()=>{!Q||!G.value||(Q.unobserve(G.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}$()&&!V.value&&_();const U=l.ref(null);l.provide(Fu,{currentRow:U});const Z=(Q,re)=>{U.value=Q,s("current-change",Q,re)},ee=(Q,re,ae)=>{s("row-click",Q,re,ae),ue(n.rowClickSelectable)===!0&&se?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(s("expand-change",Q,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(ce=>{ce!==Q&&se?.value.toggleRowExpansion(ce,!1)});const ae=le.length;le.splice(0,ae,Q)}},x=r.attrs.id??n.prop??r.attrs.name,I=sr(),E=l.ref([]);let v=[];const Y=()=>({srcColumnPropertyList:v.map(re=>({...re})),columnPropertyList:E.value}),j=Q=>{E.value=[...Q],R()},z=async()=>{const Q=await I.load(x);Q&&(E.value=Q)},R=()=>{I.save(x,E.value)},X=()=>{I.remove(x)};z();const H=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",J=()=>typeof r.slots.default=="function"?r.slots.default():[],te=(Q,re={})=>{for(let ae in re){const ce=re[ae];typeof ce!="function"&&(Q[ae]=ce)}},T=l.computed(()=>{const Q=J(),re=new Map;if(v=[],Q.forEach(ae=>{const xe=ae;if(!xe.props)return;const be=H(xe.props);re.set(be,xe);const it={label:"",prop:""};te(it,xe.props),v.push(it)}),E.value.length===v.length){const ae=[];for(let ce of E.value){const xe=H(ce),be=re.get(xe);if(!be)return Q;if(ce.visible===!1)continue;const it=be;it.props.fixed=ce.fixed,ae.push(it)}return ae}return Q}),W=l.shallowRef(new Map),ne=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return W.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let ce=ne(re);return ce&&ae.push(ce),ce=Q(re),ce&&ae.push(ce),ae.length===0?"":ae.join(" ")}:ne,de=(Q,re,ae)=>{const ce=`${Q}_${re}`;ae?W.value.set(ce,ae):W.value.delete(ce),l.triggerRef(W)},se=l.ref();return $e({clearSelection:()=>se?.value.clearSelection(),getSelectionRows:()=>se?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{se?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowSelection(ce,re)})},toggleAllSelection:()=>{se?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{se?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowExpansion(ce,re)})},setCurrentRow:Q=>{se?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!A.value)return;const re=ol(A.value,Q);re.length!==0&&se?.value.setCurrentRow(re[0])},getCurrentRow:()=>U.value,clearSort:()=>{se?.value.clearSort()},clearFilter:Q=>{se?.value.clearFilter(Q)},doLayout:()=>{se?.value.doLayout()},sort:(Q,re)=>{se?.value.sort(Q,re)},scrollTo:(Q,re)=>{se?.value.scrollTo(Q,re)},setScrollTop:Q=>{se?.value.setScrollTop(Q)},setScrollLeft:Q=>{se?.value.setScrollLeft(Q)},loadData:_,clearData:D,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X,setCellClassName:de}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:A.value,ref:se,class:u.value,"cell-class-name":oe(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>T.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),p===!0){const je=[];if(q.value){const Dt=l.h(Ce.Loading,{class:`${i}__infinite-icon`});je.push(Dt);const _l=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);je.push(_l)}else{const Dt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);je.push(Dt)}const st={ref:G,class:`${i}__infinite`},Bl=l.h("div",st,je);ae.append=()=>Bl}const ce=l.h(y.ElTable,re,ae),xe=[];if(xe.push(ce),!p){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const st={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":C,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(y.ElPagination,st)}if(n.showSetting){const st=[];je&&st.push(je);const Bl=l.h(y.ElIcon,{class:d.value},{default:()=>l.h(Ce.Setting)}),Dt=io(n,ll),_l=l.h(rn,{...Dt,tableRef:{getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X}},{default:()=>Bl});st.push(_l);const bh=l.h("div",{class:f.value},st);xe.push(bh)}else je&&xe.push(je)}const be={default:()=>xe},yt={...Ne(n,ur,cr,ll)};return n.prop&&(yt.prop=`${n.prop}_item`),yt.contentClass=`${i}__wrap`,yt.errorMarkClass="is-table-error",V.value&&$()&&(yt["appear-listen"]=!0,yt.onAppear=K),l.h(o,yt,be)}}}}const{componentName:Lu,create:Mu,scope:Bu}=ie("table-item"),rl=Mu(Au(Lu,Bu,Se));function ht(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _u(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qu=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pu(){const e=l.getCurrentInstance();return new qu(e.proxy)}function fr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ht(e,t),r=ht(e,o);if(n!==r)return!1;const a=Ot(e,t),s=Ot(e,o);return a===s}function ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let s=!1;if(o==="text")s=ht(e,a)===t;else if(o==="item")s=fr(e,a,t);else{let i=Ot(e,a);i==null&&(i=ht(e,a)),s=i===t}if(s){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const dr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Ku(e,t,o){return{inheritAttrs:!0,props:{...we,...Ie,...dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(L,M,V,k=!0)=>{const b=ju(n,L,M,V);if(b===null){if(d.value===null)return;d.value=null,u.value=null,k&&(i("update:modelValue",null),i("change",null));return}if(!fr(n,b,d.value)){u.value=L;const _=l.toRaw(b);d.value=_;let D=null;n.valueType==="text"?D=ht(n,_):n.valueType==="item"?D=_:D=Ot(n,_),k&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),S=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),N=Pu(),g=async(L,M)=>{if(L){const V=await N.load("radio",L,M);if(V.length>0)if(typeof V[0]=="string"){let P=V.map(_=>zu(_));c.value=P}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const P=Ot(n,k),_=ht(n,k);let D=_u(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const F=Hu(n,k,b)??{},K=`${P}_${b}`,G={...F,key:K,value:P,size:n.size,border:ue(n.border)};D&&(G.disabled=D),n.itemType==="button"?V.push(l.h(y.ElRadioButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElRadio,G,{default:()=>M(k)})):V.push(l.h(y.ElRadio,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElRadioGroup,M,k);V.push(b);const P={default:()=>V};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,dr),hintText:q.value,hintVisible:B.value};return n.prop&&(D.prop=`${n.prop}_item`),S.value&&(D["appear-listen"]=!0,D.onAppear=p),l.h(o,D,P)}}}}const{componentName:Wu,create:Yu,scope:Gu}=ie("radio-item"),al=Yu(Ku(Wu,Gu,Se));function gt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function mt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Uu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Xu=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Zu(){const e=l.getCurrentInstance();return new Xu(e.proxy)}function hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=gt(e,t),r=gt(e,o);if(n!==r)return!1;const a=mt(e,t),s=mt(e,o);return a===s}function Ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){let i=!1;if(o==="text")i=gt(e,s)===a;else if(o==="item")i=hr(e,s,a);else{let u=mt(e,s);u==null&&(u=gt(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const gr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function tc(e,t,o){return{inheritAttrs:!0,props:{...we,...Ie,...gr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(L,M,V,k=!0)=>{const b=Ju(n,L,M,V);if(b===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(b.length!==d.value.length)P=!1;else for(let _=0;_<b.length;_++){const D=b[_],F=d.value[_];if(!hr(n,D,F)){P=!1;break}}if(!P){d.value=b;let _=[],D=[];b.forEach(K=>{_.push(mt(n,K)),n.valueType==="text"?D.push(gt(n,K)):n.valueType==="item"?D.push(K):D.push(mt(n,K))}),u.value=_;const F=l.toRaw(D);k&&(i("update:modelValue",F),i("change",F))}},c=l.ref([]),S=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),N=Zu(),g=async(L,M)=>{if(L){const V=await N.load("checkbox",L,M);if(V.length>0)if(typeof V[0]=="string"){let P=V.map(_=>Qu(_));c.value=P}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const P=mt(n,k),_=gt(n,k);let D=Uu(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const F=ec(n,k,b)??{},K=`${P}_${b}`,G={...F,key:K,class:n.itemClass,value:P,size:n.size,border:ue(n.border)};D&&(G.disabled=D),n.itemType==="button"?V.push(l.h(y.ElCheckboxButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElCheckbox,G,{default:()=>M(k)})):V.push(l.h(y.ElCheckbox,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElCheckboxGroup,M,k);V.push(b);const P={default:()=>V};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,gr),hintText:q.value,hintVisible:B.value};return n.prop&&(D.prop=`${n.prop}_item`),S.value&&(D["appear-listen"]=!0,D.onAppear=p),l.h(o,D,P)}}}}const{componentName:nc,create:lc,scope:oc}=ie("checkbox-item"),il=lc(tc(nc,oc,Se)),mr={modelValue:{type:[Number,String],required:!1}};function rc(e,t,o){return{props:{...we,...Ie,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>ve(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),N=l.ref(!1);const g=l.ref();return $e({}),()=>{const p={...He(r.attrs),ref:g,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElRate,p,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,mr),hintText:S.value,hintVisible:N.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,q)}}}}const{componentName:ac,create:ic,scope:sc}=ie("rate-item"),sl=ic(rc(ac,sc,Se)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,t,o){return{props:{...we,...Ie,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),N=ge(n,"hintVisible");const g=l.ref();return $e({}),()=>{const p={...He(r.attrs),ref:g,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElSwitch,p,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,pr),hintText:S.value,hintVisible:N.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,q)}}}}const{componentName:cc,create:fc,scope:dc}=ie("switch-item"),ul=fc(uc(cc,dc,Se)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,t,o){return{props:{...we,...Ie,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),S=B=>{u("update:modelValue",B),u("change",B)};let N=ge(n,"hintText"),g=l.ref(!1);const h=B=>{let L=B.target.value;i.value=!0,me(N.value)||(g.value=!0),u("focus",L,B)},p=B=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=l.ref(!1),C=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...He(r.attrs),ref:q,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:$,onFocus:h,onBlur:p,onVisibleChange:C},L={};r.slots.option&&(L.default=r.slots.option);const M=[],V=l.h(y.ElTreeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const P={...Ne(n,yr),hintText:N.value,hintVisible:g.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,k)}}}}const{componentName:gc,create:mc,scope:pc}=ie("tree-select-item"),cl=mc(hc(gc,pc,Se)),yc={},bc={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"},vc=[l.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 wc(e,t){return l.openBlock(),l.createElementBlock("svg",bc,vc)}const Sc=_e(yc,[["render",wc]]),{componentName:Ah,create:xc,scope:Lh}=ie("group-setting"),Tc={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:"到底部"}},$c=xc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Sc,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=sr(),i=O=>O.length>1,u=()=>{const O=[],x=[...a.value];a.value=x.map((E,v)=>(E.visible!==!1&&O.push(E.prop),{...E,sortIndex:v})),a.value.length===O.length?h.value=!0:O.length>0&&(p.value=!0),C.value=O},d=O=>{let x=null;if(typeof O=="string")x=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const E=O.$el??O;typeof E.querySelectorAll=="function"&&(x=E.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(E=>{const v=E.querySelector(".label--string");let Y="";v&&(Y=v.textContent??"");const j=E.getAttribute("prop")??"",R=window.getComputedStyle(E,null).getPropertyValue("display");I.push({label:Y,prop:j,sortIndex:0,visible:R!=="none"})}),I},f=()=>{if(!r){const O=d(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const x=await s.load(e.groupProp),I=E=>{if(!E||!r)return;const v=r.map(Y=>({...Y}));Array.isArray(x)&&x.forEach(Y=>{v.some(j=>{if(j.prop===Y.prop){const z=j.label;return Object.assign(j,Y),j.label=z,!0}return!1})}),a.value=v.sort((Y,j)=>Y.sortIndex-j.sortIndex),u(),O&&N(!1)};r?I(!0):Ht(f,e.initDelay,5,50,!1,I)},S=()=>{const O=r??[];a.value=O.map(x=>({...x})),u(),N()},N=(O=!0)=>{O&&s.save(e.groupProp,a.value);const x=a.value.map(I=>({...I}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),p=l.ref(!1),$=O=>{const x=[];a.value.forEach(E=>{O&&x.push(E.prop),E.visible=O}),h.value=!1,p.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(p.value=!0),C.value=x,N()},w=()=>{S()},C=l.ref([]),q=O=>{a.value.forEach(I=>{const E=O.indexOf(I.prop)!==-1;I.visible=E}),h.value=!1,p.value=!1;const x=a.value.length;O.length===x?h.value=!0:O.length>0&&(p.value=!0),N()},B=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,L(O)):null:null,M=O=>{const x=O.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},V=O=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=O=>{const x=O.currentTarget;O.relatedTarget;const I=L(x);I&&(O.preventDefault(),A.currentRow&&A.currentRow!==I&&A.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),A.currentRow=I)},b=O=>{O.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},P=O=>{const x=O.currentTarget,I=L(x);if(!I)return;O.preventDefault();const E=Number(A.index),v=Number(I.dataset.index);if(E!==v){if(E<v){const Y=a.value[E];a.value.splice(E,1),a.value.splice(v,0,Y)}else{const Y=a.value[E];a.value.splice(E,1),a.value.splice(v+1,0,Y)}u(),N()}},_=O=>{const x=a.value[O];a.value.splice(O,1),a.value.splice(0,0,x),u(),N()},D=O=>{const x=a.value[O];a.value.splice(O,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const F=new Map;let K=null;function G(O){const x=document.createRange();return x.setStart(O,0),x.setEnd(O,O.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:p,handleCheckAllChange:$,handleReset:w,checkedValue:C,handleCheckChange:q,onShow:B,onDragStart:M,onDragEnd:V,onDragOver:k,onDragLeave:b,onDrop:P,checkboxLabelStyle:g,toTop:_,toBottom:D,onMouseOverForOverflowText:(O,x,I)=>{const E=O.currentTarget;if(E){const v=Math.floor(E.offsetWidth);if(Math.floor(G(E))>v){let j=F.get(x);if(j){if(j===K)return;De.hide(j)}j=De.show(E,I,{type:"text",placement:"top",closeOnClick:!1}),F.set(x,j),K=j}}},onMouseLeaveForOverflowText:(O,x)=>{const I=F.get(x);I&&(De.hide(I),I===K&&(K=null))},onMouseOverForTip:(O,x)=>{const I=O.currentTarget;I&&(K&&De.hide(K),K=De.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(De.hide(K),K=null)}}}}),Cc={class:"fox-group-setting"},Ec={class:"fox-group-setting__header"},Nc={class:"fox-group-setting__body"},kc={class:"fox-group-setting__body-list","data-role":"container"},Ic=["data-index","draggable"],Oc=["onMouseover","onMouseleave"],Vc={class:"tools-item"};function Fc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),S=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(S,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Cc,[l.createElementVNode("div",Ec,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Nc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",kc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,N=>(l.openBlock(),l.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.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)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:N.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,N.prop,N.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,N.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(N.label),45,Oc)]),_:2},1032,["label"]),l.createElementVNode("div",Vc,[l.createVNode(f,{onClick:g=>e.toTop(N.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Fc]]),Dc=["aria-labelledby"],Rc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ac=[Rc],Lc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Dc))}}),Mc=["aria-labelledby"],Bc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),_c=[Bc],dl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],Yc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Xc=[Uc],Zc=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},br=(e,t)=>t[e.textKey],Vt=(e,t)=>t[e.valueKey],Qc=(e,t)=>t[e.visibleKey],vr=(e,t)=>t[e.disabledKey],ef=(e,t)=>{const o=t[e.doitKey];return ue(o)},tf=(e,t)=>{const o=t[e.numKey];return o==null?null:ve(t[o])},wr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function nf(e,t,o,n=!1){return{props:{...Jc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{c.value!==O&&(c.value=O,G(!1))});const S=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),g=l.ref(),h=l.ref(!1),p=()=>{const O=!h.value;$(O)},$=O=>{const x=O;x?(h.value=x,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),C=l.ref([]),q=(O,x)=>{C.value[x]=O},B=O=>x=>{q(x,O)},A=(O,x)=>{const I=w.value,E=C.value;if(!I||!E||!E[O])return;const v=E[O];let Y=0;r.direction==="vertical"?Y=v.offsetTop-(I.offsetHeight-v.offsetHeight)/2:Y=v.offsetLeft-(I.offsetWidth-v.offsetWidth)/2,L(I,Y,x?0:.3,r.direction)},L=(O,x,I,E)=>{let v=0;const Y=E==="horizontal"?O.scrollLeft:O.scrollTop,j=I===0?1:Math.round(I*1e3/16);function z(){E==="horizontal"?O.scrollLeft+=(x-Y)/j:O.scrollTop+=(x-Y)/j,++v<j&&Sn(z)}z()},M=(O,x)=>{const I=Vt(r,O),E={};return E[`${e}__titles-item`]=!0,E.disabled=vr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0),r.ellipsis&&(E.ellipsis=!0),x&&(x.class&&(E[`${x.class}`]=!0),x.disabled===!0&&(E.disabled=x.disabled)),E},V=(O,x)=>{const I={};if(f.value>0){const E=Math.abs(f.value/2);r.direction==="vertical"?(I["margin-top"]=`${E}px`,I["margin-bottom"]=`${E}px`):(I["margin-left"]=`${E}px`,I["margin-right"]=`${E}px`)}return x&&x.style&&Object.assign(I,x.style),I},k=(O,x)=>`${Vt(r,O)??x}`,b=(O,x)=>{const I=Vt(r,O),E={};E[`${e}__popup-item`]=!0,E.disabled=vr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0);const v=wr(r,O,x);return v&&v.disabled===!0&&(E.disabled=v.disabled),E},P=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),_=(O,x)=>{const I=Vt(r,O);if(c.value==I)return;const E=()=>{c.value=I,r.scroll&&A(x,!1),s("update:modelValue",I),s("change",O,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(O,x);Xl(v)?v.then(Y=>{Y!==!1&&E()}).catch(()=>{E()}):v!==!1&&E()}else E()},D=(O,x)=>function(){_(O,x)},F=(O,x)=>{_(O,x),$(!1)},K=(O,x)=>function(){F(O,x)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(I=>Vt(r,I)===c.value);x!==-1&&A(x,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,x)=>{if(a.item)return a.item({item:O,index:x});const I=wr(r,O,x),E=[];if(a.text){const z=a.text({item:O,index:x});E.push(z)}else{const z=[];if(I?.doit===!0||ef(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",J);z.push(te)}const R=I?.num??tf(r,O);if(R){let J="";const te=ve(R);te>=100?J="99+":J=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",T,[J]);z.push(W)}const X={class:`${e}__titles-item-text`};z.push(br(r,O));const H=l.h("view",X,z);E.push(H)}const v={class:`${e}__titles-item-line`},Y=l.h("view",v);E.push(Y);const j={ref:B(x),class:M(O,I),style:V(O,I),key:k(O,x),onClick:D(O,x)};return l.h("view",j,E)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let I=0;I<P.value.length;I++){const E=P.value[I],v=U(E,I);O.push(v)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const x={class:`${e}__navigation`,onClick:p};return l.h("view",x,[O])},le=()=>{const O=[];for(let I=0;I<P.value.length;I++){const E=P.value[I];let v=null;a.popupItem?v=a.popupItem({item:E,index:I}):v=br(r,E);const Y={class:b(E,I),key:k(E,I),onClick:K(E,I)},j=l.h("view",Y,[v]);O.push(j)}const x={class:S.value,style:N.value};return l.h("view",x,O)};return()=>{const O=[],x=Z();if(O.push(x),r.showQuickNavigation){const E=ee();O.push(E);const v=le();O.push(v)}const I={class:i.value};return l.h("view",I,O)}}}}const{create:lf,componentName:of,scope:rf}=ie("tabs-bar"),hl=lf(nf(of,rf,Lc,!1)),Sr=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,t,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const p={name:h};i.current.value===h&&(p.loaded=!0),s.value.push(p),l.triggerRef(s)},remove:h=>{const p=s.value.findIndex($=>$.name===h);p!==-1&&s.value.splice(p,1)},isLoaded:h=>{if(!n.lazy)return!0;const p=s.value.findIndex($=>$.name===h);return p!==-1?i.current.value?s.value[p].loaded??!1:p===0:!1}};l.provide(Sr,i);const u=h=>{const p=s.value.findIndex($=>$.name===h);p!==-1&&(s.value[p].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,p])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==p&&(i.direction.value=p)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let S=!0;const N=l.computed(()=>{const h={},p=s.value.length;if(p<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${p*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${p*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const p=Xt(d.value);i.tabWidth.value=p.width,i.tabHeight.value=p.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},p=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[p])}}}}const{create:uf,componentName:cf,scope:ff}=ie("tabs-container"),gl=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,t,o){return{props:{...df},setup(n,{emit:r,slots:a}){const s=l.inject(Sr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},S=n.emptyIcon??o,N=l.h(S,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",p=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[N,p]);d.push(w)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:gf,componentName:mf,scope:pf}=ie("tabs-pane"),ml=gf(hf(mf,pf,dl)),yf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function bf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function vf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function pl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function $r(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Cr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function yl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class wf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function xf(e,t,o,n){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=Sf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>vf(r,x)!==!1)),c=l.ref(-1),S=()=>{const x=r.modelValue,I=f.value.findIndex(E=>xr(r,E)===x);c.value!==I&&(c.value=I,r.scroll&&le(I,!1))};l.watch([()=>r.modelValue,f],()=>{S()});const N=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const I=f.value[x],v=(yl(r,I,x)??{}).status??pl(r,I);return N(x)||v},h=l.computed(()=>{const x={[i]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),p=l.computed(()=>({})),$=(x,I,E,v,Y)=>{const j={[`${i}__step`]:!0};return Y&&(j[`${Y}`]=!0),j[`${w.value}`]=!0,v&&(j["is-doit"]=!0),x===c.value?j["is-active"]=!0:I==="done"?j["is-done"]=!0:I==="error"?j["is-error"]=!0:I==="half"?j["is-half"]=!0:E?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),C=(x,I={})=>{const E={...I};return w.value==="start"&&x===f.value.length-1?E.flex="0 0 auto":r.step?r.direction==="vertical"?E.height=r.step:E.width=r.step:E.flex="1 1 100%",E},q=(x,I)=>{let E={};if(I<f.value.length-1){const v=I+1;g(I)&&g(v)?r.direction==="vertical"?E.height="100%":E.width="100%":E.opacity="0"}return E},B=x=>f.value.length-1===x,A=(x,I)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&I>c.value||c.value===I)return;const E=c.value,v=I;c.value=I,r.scroll&&le(I,!1);const Y=xr(r,x);s("update:modelValue",Y);const j={fromIndex:E,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",Y,j)},L=l.ref(!0),M=async(x,I)=>{try{const E=await u.load("stesbar",x,I);Array.isArray(E)&&(d.value=E),L.value=!1}catch(E){console.error("[FoxUI] Load StepsBar Data Fail",E),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,I])=>{x&&M(x,I)},{immediate:!0});const V=(x,I,E,v,Y)=>{let j=null;if(a.icon)j=a.icon({item:x,index:I,status:v});else if(v==="done"){const R={};r.iconSize&&(R.width=r.iconSize,R.height=r.iconSize);const X=r.icon??o;j=l.h(X,R)}else{const R=E??`${I+1}`;j=l.h("span",{},[R])}const z={class:"fox-steps-bar__icon",onClick:()=>{Y||A(x,I)}};return l.h("view",z,[j])},k=(x,I,E)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:q(x,I)});return l.h("view",{class:"fox-steps-bar__line"},[v])},b=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const E={};r.iconSize&&(E.width=r.markIconSize,E.height=r.markIconSize);const v=r.markIcon??n;x=l.h(v,E)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},P=(x,I,E,v,Y)=>{const j=[];if(!B(I)){const X=k(x,I);j.push(X)}const z=V(x,I,E,v,Y);j.push(z);const R={class:"fox-steps-bar__head"};return l.h("view",R,j)},_=(x,I,E,v)=>{let Y=null;a.main?Y=a.main({item:x,index:I,status:E}):Y=bf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{v||A(x,I)}};return l.h("view",j,[Y])},D=(x,I,E)=>{let v=null;if(a.sub){v=a.sub({item:x,index:I,status:E});const Y={class:"fox-steps-bar__sub"};return l.h("view",Y,[v])}return null},F=(x,I)=>{const E=yl(r,x,I)??{},v=E.status??pl(r,x);let Y=Tr(r,x);E.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=E.label??Cr(r,x),z=[],R=V(x,I,j,v,Y);R&&z.push(R);const X=_(x,I,v,Y);if(X&&z.push(X),!B(I)){const ne=k(x,I);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),J=E.class,te=E.style??{};let T=$r(r,x);E.doit===!0&&(T=!0);const W={ref:ee(I),class:$(I,v,Y,T,J),style:C(I,te)};return l.h("view",W,[H])},K=(x,I)=>{const E=yl(r,x,I)??{},v=E.status??pl(r,x);let Y=Tr(r,x);E.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=E.label??Cr(r,x),z=[],R=r.layout;for(let T of R)if(T==="head"){const W=P(x,I,j,v,Y);z.push(W)}else if(T==="main"){const W=_(x,I,v,Y);z.push(W)}else if(T==="sub"){const W=D(x,I,v);z.push(W)}else if(T==="mark"){const W=b();z.push(W)}const X=E.class,H=E.style??{};let J=$r(r,x);E.doit===!0&&(J=!0);const te={ref:ee(I),class:$(I,v,Y,J,X),style:C(I,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),Z=(x,I)=>{U.value[I]=x},ee=x=>I=>{Z(I,x)},le=(x,I)=>{const E=G.value,v=U.value;if(!E||!v||!v[x])return;const Y=v[x];let j=0;r.direction==="vertical"?j=Y.offsetTop-(E.offsetHeight-Y.offsetHeight)/2:j=Y.offsetLeft-(E.offsetWidth-Y.offsetWidth)/2,O(E,j,I?0:.3,r.direction)},O=(x,I,E,v)=>{let Y=0;const j=v==="horizontal"?x.scrollLeft:x.scrollTop,z=E===0?1:Math.round(E*1e3/16);function R(){v==="horizontal"?x.scrollLeft+=(I-j)/z:x.scrollTop+=(I-j)/z,++Y<z&&Sn(R)}R()};return()=>{const x=[];if(r.mode==="simple")for(let E=0;E<f.value.length;E++){const v=f.value[E],Y=F(v,E);x.push(Y)}else for(let E=0;E<f.value.length;E++){const v=f.value[E],Y=K(v,E);x.push(Y)}const I={ref:G,class:h.value,style:p.value};return l.h("view",I,x)}}}}const{componentName:Tf,create:$f,scope:Cf}=ie("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Ef=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function kf(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){l.provide(Ef,!0);const r={};l.provide(Nf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"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 c=n.slots.default();f.default=()=>c}return l.h(y.ElDialog,d,f)}}}}const{componentName:Mh,create:If,scope:Bh}=ie("dialog-item"),vl=If(kf());let Ft=0;const Er="fox-overflow-hidden",Nr=()=>lt?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Ft&&Nr().classList.add(Er),Ft++}catch{}},()=>{if(e()&&Ft)try{Ft--,!Ft&&Nr().classList.remove(Er)}catch{}}],Vf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Ff,create:Df}=ie("overlay"),Rf=Df({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Of(()=>e.lockScroll),r=l.computed(()=>({[Ff]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Af(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const an=_e(Rf,[["render",Af]]),Lf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},kr=2e3;let Ir=kr;const Mf=(e,t)=>({components:t,props:{...Lf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==kr&&(Ir=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},S=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:S,onOpened:N,onClosed:g}}}),{componentName:Bf,create:_f}=ie("popup"),qf=_f(Mf(Bf,{FoxOverLay:an,Close:zc}));function Pf(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wl=_e(qf,[["render",Pf]]),{create:jf}=ie("toast"),zf=jf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,N=>{N&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=he(e.iconSize);return l.h(e.icon,{width:N,height:N,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Hf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Sl=_e(zf,[["render",Wf]]),Yf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Gf=(e,t,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=vo(),{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=V=>{let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),a("update:modelValue",b,V),a("change",b,V)},S=l.ref({}),N=V=>{let b=V.target.value;u.active=!0,S.value=n.focusStyle,a("focus",b,V)},g=V=>{setTimeout(()=>{u.active=!1},0);let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),S.value={},a("blur",b,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},p=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const V={};return p.value||(V.display="none"),V}),w=()=>{a("search",n.modelValue)},C=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&w()},q=V=>{a("click-input",V)},B=V=>{a("click-left-icon",n.modelValue,V)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const V=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},F=l.h("view",D,[r.leftin()]);V.push(F)}const k={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:N,onBlur:g,onkeyup:C},b=l.h("input",k);V.push(b);const P=[];if(n.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},F=r?.clear?.()??n.clearIcon??o,K=l.h("view",D,[l.h(F)]);P.push(K)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},F=l.h("view",D,[r.rightin()]);P.push(F)}if(P.length>0){const D={class:`${e}__input-inner-right`},F=l.h("view",D,P);V.push(F)}const _={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...S.value}};return l.h("view",_,V)};return()=>{const V=[];if(n.label){const P={class:`${e}__search-label`},_=l.h("span",P,[n.label]);V.push(_)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},_=l.h("view",P,[r.leftout()]);V.push(_)}const k=M();if(V.push(k),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},_=l.h("view",P,[r.rightout()]);V.push(_)}const b={class:`${e}`,style:d.value};return l.h("view",b,V)}}}),{componentName:Uf,create:Xf,scope:Zf}=ie("searchbar"),xl=Xf(Gf(Uf,Zf,Ce.CircleClose)),Jf=/scroll|auto|overlay/i,Or=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ed(e,t=Or){let o=e;for(;o&&o!==t&&Qf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Jf.test(n))return o;o=o.parentNode}return t}function Vr(e,t=Or){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ed(e.value,t))}),o}const Fr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function nd(e,t,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=Vr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),S=w=>w?w.offsetTop+S(w.offsetParent):0,N=()=>{let w=0,C=0,q="down";if(d.value==window){const B=Fr();u.value&&(w=S(u.value)+u.value.offsetHeight-B-window.innerHeight),C=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,C=L}return f.beforeScrollTop>C?q="up":q="down",f.beforeScrollTop=C,r("scroll-change",C),w<=n.threshold&&q=="down"},g=()=>{ql(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},p=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{p()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,p()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},C=l.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let b=a?.loadingIcon?.()??null;if(!b){const D={class:["fox-infinite__bottom-box__img"]};b=l.h(o,D)}const P={class:"fox-infinite__bottom-box__text"},_=l.h("view",P,[i.loadText.value]);M=[b,_]}const V={class:"fox-infinite__bottom-box"},k=l.h("view",V,M);q.push(k)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const V={class:"fox-infinite__bottom-tips"};M=l.h("view",V,[i.loadMoreText.value]),q.push(M)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,q),L={class:c.value,ref:u};return l.h("view",L,[C,A])}}}}const{componentName:ld,create:od,scope:rd}=ie("infinite-loading"),Tl=od(nd(ld,rd,dl)),Dr=10;function Rr(e,t){return e>t&&e>Dr?"horizontal":t>e&&t>Dr?"vertical":""}function $l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Cl(){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:s=>{if(s.touches){const d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Rr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ad(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",S=()=>f.value==="horizontal",N=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:p=>{if(p.touches){const C=p.touches[0];s.value=C.clientX-e.value,i.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const w=p;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Rr(u.value,d.value))},start:p=>{if(N(),p.touches){const C=p.touches[0];e.value=C.clientX,t.value=C.clientY}else{const w=p;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:S}}const id={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},sd=(e,t,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Cl(),d=l.ref(),f=Vr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),S=l.computed(()=>({[e]:!0})),N=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=ke(n.headHeight)),L}),p=L=>{const M=+(n.pullDistance||n.headHeight);let V=L;return L>M&&(L<M*2?V=(L+M)/2:V=M+L/4),Math.round(V)},$=(L,M)=>{const V=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",C=()=>f.value==window?Fr()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(C()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(p(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const K={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,K)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const V={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",V,[N.value]);L.push(k);const b={class:["fox-pull-refresh-container-topbox"],style:h.value},P=l.h("div",b,L),_={class:"fox-pull-refresh-container",style:g.value},D=l.h("div",_,[P,a?.default?.()]),F={ref:d,class:S.value};return $l()?Object.assign(F,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(F,{onMousedown:q,onMousemove:B,onMouseup:A}),l.h("div",F,[D])}}}),{componentName:ud,create:cd,scope:fd}=ie("pull-refresh"),El=cd(sd(ud,fd,dl));function dd(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 r=e,a=l.computed(()=>({[r]:!0})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},S=n.default?n.default():[],N=l.h("div",c,S),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,N]):l.h("div",g,[N,f])}}}}const{componentName:hd,create:gd,scope:_h}=ie("indicator"),Nl=gd(dd(hd));function md(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 r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const pd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function yd(e,t,o,n=!1){return{props:{...pd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),d=(C,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(C.indexOf(A)!==-1){const M=C.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,B=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(C);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=l.h(r.tag,q))}return B},f=C=>{a.emit("click",C)};let c="";const S=()=>{const C=s.value;if(!C)return;const q=C.clientWidth;md(C,B=>{const A=C.innerHTML??"";me(A)||B<q||(c?o?.show(C,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(C,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let g=null;const h=C=>{g||(g=setTimeout(()=>{S(),g=null},r.showAfter??0))},p=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const C=s.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",p))},w=()=>{const C=s.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",p))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const C={onClick:f,class:i.value,style:u.value,ref:s};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=ve(r.digits),b=ve(r.decimalLength),P=ue(r.autoPadding);let _=`${M[0].children}`,D=_.split("").reverse().join("");D=Lt(D,b,P,k,r.separator),_=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(_,C)),q||(C.innerHTML=_,q=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=`${M[0].children}`;q=d(k,C),q||(C.innerHTML=k,q=l.h(r.tag,C))}}}q||(q=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const V={},k=r.color;k&&(V["background-color"]=k);const b={class:M,style:V};A=l.h("view",b)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:bd,create:vd,scope:wd}=ie("text"),kl=vd(yd(bd,wd,De,!1)),Sd={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:Ce.ArrowUp}};function xd(e,t,o){return{props:{...Sd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),s=ge(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},p=l.h("span",h,[i.value]);c.push(p)}const S={class:d.value},N=o(n.icon,S);return N&&c.push(N),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Td,create:$d,scope:Cd}=ie("more-button"),Il=$d(xd(Td,Cd,(e,t)=>(e=e??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function Ed(e){return e===window}const Ar=e=>{const t=l.unref(e);if(Ed(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:Nd,create:kd,scope:Ph}=ie("tour"),Id=kd({components:{Close:Ce.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=Nd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:p}=e,{width:$,height:w,left:C,top:q}=r.value,B=e.steps[n.active].offset??g,A=[C+$/2,q+w/2],L=Number(h||$),M=Number(p||w);return{width:`${L+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${A[1]-M/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),i=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ar(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&c()},N=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{N(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{N(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:S}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Fd={class:"fox-tour__content-inner"},Dd={class:"fox-tour__content-bottom"},Rd={class:"fox-tour__content-bottom-init"},Ad={class:"fox-tour__content-bottom-operate"},Ld={key:1,class:"fox-tour__content fox-tour__content-tile"},Md={class:"fox-tour__content-inner"};function Bd(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Od,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Vd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Fd,l.toDisplayString(d.content),1),l.createElementVNode("div",Dd,[l.createElementVNode("div",Rd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Ad,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Ld,[l.createElementVNode("div",Md,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,at=e=>e==null;class _d{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=$l()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Cl(),n=(r,a,s,i)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),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=r=>{this.moving&&(o.move(r),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(r=>{this.touchstart&&r.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 Lr(e,t){return new _d(e,t)}const Mr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const Br=e=>{const t=e;t.key==="Escape"&&pt.forEach(o=>o(t))},qd=e=>{l.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",Br),Mr&&pt.push(e)}),l.onBeforeUnmount(()=>{pt=pt.filter(t=>t!==e),pt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Fl="fox-focus-trap.focus-after-released",Pd="fox-focus-trap.focusout-prevented",_r={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},qr="foxFocusAfterTrapped",Pr="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Dl=l.ref(),sn=l.ref(0),Rl=l.ref(0);let un=0;const jr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Hd=(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},zr=(e,t)=>{for(const o of e)if(!Hd(o,t))return o},Kd=e=>{const t=jr(e),o=zr(t,e),n=zr(t.reverse(),e);return[o,n]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,et=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&t&&e.select()}};function Hr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Yd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Hr(e,n),e.unshift(n)},remove:n=>{e=Hr(e,n),e[0]?.resume?.()}}},Gd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(et(n,t),document.activeElement!==o)return},Kr=Yd(),Ud=()=>sn.value>Rl.value,cn=()=>{Dl.value="pointer",sn.value=window.performance.now()},Wr=()=>{Dl.value="keyboard",sn.value=window.performance.now()},Xd=()=>(l.onMounted(()=>{un===0&&(document.addEventListener("mousedown",cn),document.addEventListener("touchstart",cn),document.addEventListener("keydown",Wr)),un++}),l.onBeforeUnmount(()=>{un--,un<=0&&(document.removeEventListener("mousedown",cn),document.removeEventListener("touchstart",cn),document.removeEventListener("keydown",Wr))}),{focusReason:Dl,lastUserFocusTimestamp:sn,lastAutomatedFocusTimestamp:Rl}),fn=e=>new CustomEvent(Pd,{...jd,detail:e}),{componentName:jh,create:Zd,scope:zh}=ie("focus-trap"),Jd=Zd({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:[qr,Pr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=Xd();qd(h=>{ue(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||i.paused)return;const{key:p,altKey:$,ctrlKey:w,metaKey:C,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=p==="Tab"&&!$&&!w&&!C,M=document.activeElement;if(L&&M){const V=q,[k,b]=Kd(V);if(k&&b){if(!B&&M===b){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(k,!0))}else if(B&&[k,V].includes(M)){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(b,!0))}}else if(M===V){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};l.provide(zd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[p])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",S)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",c),p.removeEventListener("focusout",S))});const d=h=>{o(qr,h)},f=h=>o(Pr,h),c=h=>{const p=l.unref(n);if(!p)return;const $=h.target,w=h.relatedTarget,C=$&&p.contains($);ue(e.trapped)||w&&p.contains(w)||(r=w),C&&o("focusin",h),!i.paused&&ue(e.trapped)&&(C?a=$:et(a,!0))},S=h=>{const p=l.unref(n);if(!(i.paused||!p))if(!e.escape&&ue(e.trapped)){const $=h.relatedTarget;!En($)&&!p.contains($)&&setTimeout(()=>{if(!i.paused&&ue(e.trapped)){const w=fn({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||et(a,!0)}},0)}else{const $=h.target;$&&p.contains($)||o("focusout",h)}};async function N(){await l.nextTick();const h=l.unref(n);if(h){Kr.push(i);const p=h.contains(document.activeElement)?r:document.activeElement;if(r=p,!h.contains(p)){const w=new Event(Vl,_r);h.addEventListener(Vl,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(et(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(h),!0),(document.activeElement===p||C==="container")&&et(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vl,d);const p=new CustomEvent(Fl,{..._r,detail:{focusReason:s.value}});h.addEventListener(Fl,f),h.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!Ud())&&et(r??document.body,!0),h.removeEventListener(Fl,d),Kr.remove(i)}}return l.onMounted(()=>{ue(e.trapped)&&N(),l.watch(()=>e.trapped,h=>{ue(h)?N():g()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Qd,create:eh,scope:Kh}=ie("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},oh=eh({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Jd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Qd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!M.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=l.computed(()=>{const T={};return at(s.value)?T.left="auto":T.left=Re(s.value),at(i.value)?T.top="auto":T.top=Re(i.value),at(u.value)?T.right="auto":T.right=Re(u.value),at(d.value)?T.bottom="auto":T.bottom=Re(d.value),at(e.zIndex)||(T["z-index"]=Re(e.zIndex)),at(A.value)||(T.height=A.value),at(L.value)||(T.width=L.value),T}),S=l.computed(()=>e.closeIcon??Ce.Close),N=l.computed(()=>e.collapseIcon??Ce.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),p=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=l.ref(),q=l.ref(null),B=l.ref(null),A=l.computed(()=>Re(e.height)||""),L=l.computed(()=>Re(e.width)||""),M=l.ref(ue(e.collapse)),V=(T,W=!0)=>{M.value!==T&&(M.value=T,T?x():I(),t("update:collapse",T),T&&typeof P.onHide=="function"?P.onHide():!T&&typeof P.onShow=="function"&&P.onShow())};l.watch(()=>e.collapse,T=>{V(T)});const k=()=>{b()},b=T=>{T=T??!M.value,V(T)};l.provide(th,!0);const P={setCollapse:V,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,P);const _=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{n.value=!1}):n.value=!1},D=l.ref(null),F=l.computed(()=>!e.fixedNavTeleport),K=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),G=l.ref(""),U=l.computed(()=>{const T={};return G.value?T.top=G.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=l.ref(M.value),ee=l.computed({set:T=>{Z.value=T},get:()=>n.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},x=()=>{D.value&&D.value.classList.add("slide-in"),ee.value=!0,le=()=>{D.value&&D.value.classList.remove("slide-in")}},I=()=>{D.value&&D.value.classList.add("slide-out"),le=()=>{D.value&&D.value.classList.remove("slide-out"),ee.value=!1}},E=()=>{s.value=null,i.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Lr(T=>{if(!C.value)return;const W=C.value;if(E(),e.origin==="left-top")s.value=W.offsetLeft,i.value=W.offsetTop,v.x=s.value,v.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=W.offsetLeft,d.value=ne-(W.offsetTop+W.offsetHeight),v.x=s.value,v.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(W.offsetLeft+W.offsetWidth),d.value=oe-(W.offsetTop+W.offsetHeight),v.x=u.value,v.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(W.offsetLeft+W.offsetWidth),i.value=W.offsetTop,v.x=u.value,v.y=i.value}},T=>{if(!C.value)return;const W=C.value;E(),e.origin==="left-top"?(s.value=v.x+T.x,i.value=v.y+T.y,W.style.left=Re(s.value),W.style.top=Re(i.value)):e.origin==="left-bottom"?(s.value=v.x+T.x,d.value=v.y-T.y,W.style.left=Re(s.value),W.style.bottom=Re(d.value)):e.origin==="right-bottom"?(u.value=v.x-T.x,d.value=v.y-T.y,W.style.right=Re(u.value),W.style.bottom=Re(d.value)):(u.value=v.x-T.x,i.value=v.y+T.y,W.style.right=Re(u.value),W.style.top=Re(i.value))}),R={x:0,y:0},J=Lr(T=>{D.value&&(R.x=D.value.offsetLeft,R.y=D.value.offsetTop)},T=>{if(!D.value)return;const W=R.y+T.y;G.value=`${W}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(te(),B.value&&T.push(B.value)),z.open(T)}e.collapse===!0&&V(e.collapse,!1),D.value&&J.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),D.value&&J.close()}),{classes:f,styles:c,isShow:a,closeIcon:S,onClose:_,dialogRef:C,headerRef:q,onClickToggle:k,collapseIcon:N,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:p,isShowFixedNav:ee,fixedNavRef:D,fixedNavClasses:K,fixedNavStyles:U,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:F}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",rh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ah,l.toDisplayString(e.title),1),l.createElementVNode("div",ih,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",sh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",uh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return po(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=ie("domain-provider"),Ll=dh(fh()),hh={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 gh(e,t){return{inheritAttrs:!1,props:hh,setup(o,{slots:n}){if(lt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(S,N)=>{if(f===null){a.set(S,{visible:null,callback:N});return}r.has(S)&&f.unobserve(S),r.set(S,{visible:null,callback:N}),f.observe(S)},i=S=>{if(f===null){a.delete(S);return}r.has(S)&&(r.delete(S),f.unobserve(S))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const S=u>0;return u--,S},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(S,N,g)=>{f=new IntersectionObserver(h=>{for(let p of h){let $=!1;p.intersectionRatio>0&&($=!0);const w=r.get(p.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(C){console.error(C)}}},{root:S,rootMargin:N,threshold:g}),a.forEach((h,p)=>{r.set(p,h),f?.observe(p)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([S,N])=>{if(N||!S||f)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=ie("rolling-provider"),Ml=mh(gh()),ph=[Dn,An,Ln,Mn,qn,Se,zn,Hn,Nt,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,rn,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,an,wl,Sl,xl,Tl,El,It,ln,Nl,kl,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>y.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>y.ElAnchorLink}),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,"FoxCountdown",{enumerable:!0,get:()=>y.ElCountdown}),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,"FoxMessage",{enumerable:!0,get:()=>y.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>y.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>y.ElNotification}),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,"FoxSegmented",{enumerable:!0,get:()=>y.ElSegmented}),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,"FoxStatistic",{enumerable:!0,get:()=>y.ElStatistic}),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}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>y.ElWatermark}),m.AutocompleteItem=el,m.Broadcast=Nn,m.BroadcastKey=ye,m.CascaderItem=Qn,m.CheckboxItem=il,m.Content=Mn,m.DataItemsKey=ut,m.DateItem=Yn,m.DateUtils=Be,m.DialogItem=vl,m.Domain=Kt,m.DomainKey=Ae,m.DomainProvider=Ll,m.FloatingWindow=Al,m.FooterBar=Ln,m.FoxAutocompleteItem=el,m.FoxCascaderItem=Qn,m.FoxCheckboxItem=il,m.FoxContent=Mn,m.FoxDateItem=Yn,m.FoxDialogItem=vl,m.FoxDomainProvider=Ll,m.FoxFloatingWindow=Al,m.FoxFooterBar=Ln,m.FoxGroup=qn,m.FoxGroupSetting=fl,m.FoxHeaderBar=An,m.FoxHintText=Nt,m.FoxIndicator=Nl,m.FoxInfiniteLoading=Tl,m.FoxInputItem=Kn,m.FoxInputNumberItem=Zn,m.FoxItem=Se,m.FoxMapping=It,m.FoxMoneyItem=Xn,m.FoxMoreButton=Il,m.FoxOverLay=an,m.FoxPage=Dn,m.FoxPopup=wl,m.FoxPrice=ln,m.FoxPullRefresh=El,m.FoxRadioItem=al,m.FoxRateItem=sl,m.FoxRollingProvider=Ml,m.FoxRowItem=Hn,m.FoxSearchBar=xl,m.FoxSelectItem=Wn,m.FoxSlotItem=zn,m.FoxStepsBar=bl,m.FoxSwitchItem=ul,m.FoxTableItem=rl,m.FoxTableMappingColumn=tl,m.FoxTableRadioColumn=nl,m.FoxTableSetting=rn,m.FoxTabsBar=hl,m.FoxTabsContainer=gl,m.FoxTabsPane=ml,m.FoxText=kl,m.FoxTimeItem=Gn,m.FoxTimeSelectItem=Un,m.FoxToast=Sl,m.FoxTour=Ol,m.FoxTreeSelectItem=cl,m.Group=qn,m.GroupSetting=fl,m.HeaderBar=An,m.HintText=Nt,m.Indicator=Nl,m.InfiniteLoading=Tl,m.InputItem=Kn,m.InputNumberItem=Zn,m.Item=Se,m.Mapping=It,m.MoneyItem=Xn,m.MoreButton=Il,m.OverLay=an,m.Page=Dn,m.Popup=wl,m.Price=ln,m.PriorityPolicy=Me,m.PullRefresh=El,m.RadioItem=al,m.RateItem=sl,m.RollingProvider=Ml,m.RowItem=Hn,m.SearchBar=xl,m.SelectItem=Wn,m.SlotItem=zn,m.StepsBar=bl,m.SwitchItem=ul,m.TableItem=rl,m.TableMappingColumn=tl,m.TableRadioColumn=nl,m.TableSetting=rn,m.TabsBar=hl,m.TabsContainer=gl,m.TabsPane=ml,m.Text=kl,m.TimeItem=Gn,m.TimeSelectItem=Un,m.Toast=Sl,m.Tour=Ol,m.TreeSelectItem=cl,m.UniqueID=Fo,m.ValidateSchema=ho,m.ValidateSchemaKey=qe,m.cancelRaf=Ur,m.clearNonNumber=ia,m.clone=$n,m.compareTo=wn,m.createBroadcast=qt,m.createValidateSchema=jt,m.debounce=$t,m.debounceRef=wa,m.decimalLength=ro,m.default=yh,m.defineBroadcast=fa,m.defineConfigDomain=po,m.defineDataItem=bo,m.defineDomain=In,m.defineItem=Te,m.definePageState=wo,m.defineSimpleItem=vo,m.deleteGlobalValidator=pa,m.disabledProperty=Fe,m.divide=vn,m.excludeProps=Ne,m.extend=nt,m.floatData=ca,m.getGlobalValidateCheckEvents=uo,m.getGlobalValidateResetEvents=fo,m.getPageContentAreaHeight=Yt,m.getPageContentAreaWidth=Gt,m.getPageFooterAreaHeight=Et,m.getPageHeaderAreaHeight=Ct,m.getRootDomain=ct,m.hasSymbol=Jl,m.includeProps=io,m.indexOf=sa,m.installRules=yo,m.integerLength=oo,m.isArray=Zr,m.isArrayLike=eo,m.isBrowser=lt,m.isDate=ea,m.isESModule=na,m.isEmptyString=me,m.isEqual=Ye,m.isFunction=xn,m.isHidden=_t,m.isInnerPage=Ta,m.isMap=Jr,m.isNil=En,m.isNumberString=lo,m.isObject=We,m.isPlainObject=Tn,m.isPromise=Xl,m.isRegExp=no,m.isSet=Qr,m.isString=Ul,m.isSubPage=$a,m.isSymbol=ta,m.isTouch=$l,m.isWindow=Ql,m.lastIndexOf=ua,m.makeArray=aa,m.merge=to,m.multiply=Wl,m.negate=Yl,m.nextTick=oa,m.numberFormat=Lt,m.objectToString=Zl,m.once=Sa,m.overrideGlobalValidateHandler=ga,m.property=Oe,m.raf=Sn,m.readonlyProperty=Ve,m.setGlobalValidateCheckEvents=ya,m.setGlobalValidateHandler=ha,m.setGlobalValidateMessages=va,m.setGlobalValidateResetEvents=ba,m.setGlobalValidator=ma,m.throttle=mo,m.toBoolean=ue,m.toNumber=ve,m.toPadding=ze,m.toPx=he,m.toPxDesc=ke,m.toTypeString=Mt,m.toValue=ge,m.tryTimes=Ht,m.typeOf=Bt,m.unNumberFormat=Gl,m.updatePageState=On,m.useBroadcast=St,m.useDomain=Ge,m.useExpose=$e,m.useInnerSize=Rn,m.usePageState=Wt,m.usePosition=Io,m.useRawTouch=Cl,m.useRect=Ar,m.useSize=Xt,m.useTouch=ad,m.valueLength=wt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|