@fox-js/foxui-pc 4.0.1-78 → 4.0.1-79
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.d.ts +2 -2
- package/dist/index.esm.js +2845 -2825
- package/dist/index.umd.js +4 -4
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(g,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(g,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,We,m,ke,Ie){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Fri Sep 22 2023 20:06:00 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const St=window,ea=typeof window<"u";function ta(){return typeof St<"u"?St.requestAnimationFrame||St.webkitRequestAnimationFrame||function(e){St.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const ra=ta();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function St(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=be(e),t=be(t),[e,t]=Yt(be(e),be(t)),o==1&&(n==1?e=Kt(e):t=Kt(t));let a=Rn(e,t);return o?o==2?"-"+be(a):e.length<a.length?be(a.substring(1)):"-"+be(Kt(a)):be(a)}function Kt(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return Rn(t,l)}function be(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Yt(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 Rn(e,t){[e,t]=Yt(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 ue=(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))(ue||{});function st(e,t=0,o=ue.HALF_EVEN){if(o===ue.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],s=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)+s,u=st(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,An(a[1],l,n,o)?(n?"-":"")+Ut(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");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&An(i,s,n,o)&&(s=Ut(s),s.length>t)?(n?"-":"")+Ut(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function An(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ue.DOWN||!o&&n===ue.FLOOR||o&&n===ue.CEILING)return!1;if(n===ue.UP||o&&n===ue.FLOOR||!o&&n===ue.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 ue.HALF_DOWN:return!1;case ue.HALF_UP:return!0;case ue.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ut(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 Gt(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=ut(e),t=ut(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=ut(e.replace(".","")),t=ut(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let v=t.length-1;v>=f&&v>=0;v--)u[v]>-1&&u[v]<e.length&&(y+=parseInt(e[u[v]--])*parseInt(t[v]));y+=i,i=Math.floor(y/10),c=y%10+c,f--}return c=ut(oa(c,l)),o==1&&(c="-"+c),c}function oa(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 ut(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 Xt(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=be(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=be(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=be(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=be(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=be(e.replace(".","")))}let l=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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=St(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+be(st(i,o-2))}function Zt(e,t){return e=e.toString(),t=t.toString(),t=Jt(t),St(e,t)}function Jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Dn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Fn(e),Fn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Zt(e,Gt(t,st(Xt(e,t),0,ue.FLOOR)));return o+n}function Fn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Bn(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]=Yt(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 te{value;static RoundingModes=ue;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=be(o);let 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+be(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=te.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=te.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return te.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ue.HALF_EVEN){if(t=te.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return st(t,o,n)}round(t=0,o=ue.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new te(st(this.value,t,o))}static floor(t){return t=te.validate(t),t.indexOf(".")===-1?t:te.round(t,0,ue.FLOOR)}floor(){return this.value.indexOf(".")===-1?new te(this.value):new te(this.value).round(0,ue.FLOOR)}static ceil(t){return t=te.validate(t),t.indexOf(".")===-1?t:te.round(t,0,ue.CEILING)}ceil(){return this.value.indexOf(".")===-1?new te(this.value):new te(this.value).round(0,ue.CEILING)}static add(t,o){return t=te.validate(t),o=te.validate(o),St(t,o)}add(t){return new te(St(this.value,t.getValue()))}static subtract(t,o){return t=te.validate(t),o=te.validate(o),Zt(t,o)}subtract(t){return new te(Zt(this.value,t.getValue()))}static multiply(t,o){return t=te.validate(t),o=te.validate(o),Gt(t,o)}multiply(t){return new te(Gt(this.value,t.getValue()))}static divide(t,o,n){return t=te.validate(t),o=te.validate(o),Xt(t,o,n)}divide(t,o){return new te(Xt(this.value,t.getValue(),o))}static modulus(t,o){return t=te.validate(t),o=te.validate(o),Dn(t,o)}modulus(t){return new te(Dn(this.value,t.getValue()))}static compareTo(t,o){return t=te.validate(t),o=te.validate(o),Bn(t,o)}compareTo(t){return Bn(this.value,t.getValue())}static negate(t){return t=te.validate(t),Jt(t)}negate(){return new te(Jt(this.value))}}function Ln(e,t){return te.multiply(`${e}`,`${t}`)}function Qt(e,t,o=8){return te.divide(`${e}`,`${t}`,o)}function en(e,t){return e=`${e}`,t=`${t}`,te.compareTo(e,t)}function qn(e){return te.negate(e)}function vt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=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="",y=i.split("").reverse();for(let v=0;v<y.length;v++)d+=y[v]+((v+1)%n==0&&v+1!=y.length?a:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function Mn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const aa=ra,la=Array.isArray,ia=e=>Tt(e)==="[object Map]",sa=e=>Tt(e)==="[object Set]",ua=e=>e instanceof Date,tn=e=>typeof e=="function",jn=e=>typeof e=="string",ca=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",fa=e=>Me(e)&&tn(e.then)&&tn(e.catch),_n=Object.prototype.toString,Tt=e=>_n.call(e),nn=e=>Tt(e)==="[object Object]",Pn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||Pn&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function We(...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 s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=We(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function rn(e,t,o=!1){if(!o)We(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const on=ha?Promise.resolve():null;function ga(e,...t){on!==null?t&&t.length>0?on.then(()=>{e(t)}):on.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function Q(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function we(e){return typeof e=="number"?e:Number(e)}const ma={"[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 $t(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Hn(e){return e&&typeof e=="object"&&"setInterval"in e}function zn(e){return!e||e.offsetParent===null}function Wn(e){let t=!!e&&"length"in e&&e.length,o=$t(e);return o==="function"||Hn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Kn(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 pa(e,t=[]){let o=t;return e!=null&&(Wn(Object(e))?Kn(o,typeof e=="string"?[e]:e):o.push(e)),o}function je(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=$t(e),n=$t(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 s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!je(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],s=t[a];if(!je(l,s))return!1}return!0}return!1}const Ze=typeof window<"u";function an(e){return e==null}function Yn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Un(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Gn(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 Xn(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 Zn(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 ya(e,t=!0,o=!0){t?e=Zn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(je(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(je(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ct(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Jn(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 Sa=(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},de=Symbol.for("BroadcastKey");class ln{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="*"):Yn(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 s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.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,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function xt(e,t,o,n){const a=new ln(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function va(e,t,o){const n=o;if(n[de])return n[de];const a=r.inject(de,null),l=new ln(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[de]=l,r.provide(de,l),r.onUnmounted(()=>{l.destroy(),n[de]=void 0}),l}function ft(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ke=e=>e.default??e;class Ta{error(t,o){const n=o,a=ft(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ft(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ft(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=ft(n),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?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Qn=new Ta;function $a(e){Qn=e}function xa(e,t){Ke(ze).setValidator(e,t)}function Ea(e){Ke(ze).deleteValidator(e)}let er=["blur","clear"];function Ca(e){er=e}function tr(){return er}let nr=["focus","change"];function Na(e){nr=e}function rr(){return nr}function ka(e){Ke(ze).messages(e)}function dt(...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 Et(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 Fe=Symbol("ValidateSchemaKey");class or{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=Et(dt(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=Et(n);const a=dt(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=Qn;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?Ke(ze).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?Ke(ze).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ke(ze).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=dt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Et(t):this.rules=Et([t]);const n=dt(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=dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=Ke(ze),u=new i(a),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function Ct(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 or(t,o,e)}const ar=Symbol.for("EventEmitterKey");class Va{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 ht(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function lr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=ht((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function sn(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const Ne=Symbol("DomainKey"),Je=Symbol("DataItemsKey");class Nt{_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 Ra=new Nt;function Qe(){return Ra}function Be(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ne]??r.inject(Ne,null):r.inject(Ne,null)}const un=Symbol("OriginalDateKey");function cn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(Ne,null);s===null&&(s=Qe());const i=e||t.prop||t.name,u=new Nt(i);u.parent=s;const f=h=>{l[un]||y(h),u.set("modelValue",h)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[un]??null,y=h=>{const b={};We(!0,b,r.toRaw(h)),l[un]=b};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&y(t.modelValue),l[Ne]=u,r.provide(Ne,u);let v=null,S=null;if(a!==null){const h=r.inject(de,null);v=xt(l,h,i,n),u.broadcast=v,l[de]=v,r.provide(de,v),l.broadcast=(p,x,...R)=>Reflect.apply(v.emit,v,[p,x,...R]);const b=r.inject(Fe,null);S=Ct(l,b,{componentName:""}),u.validateSchema=S,l[Fe]=S,r.provide(Fe,S),l[Je]=new Map,l.validate=(p=!0)=>{const x=[];let R=null;const D={deep:!1};if(p===!0)R={name:"*"};else if(Array.isArray(p)&&p.length>0){const I=p;R={name:O=>O?I.indexOf(O)!==-1:!1}}else if(p!=null&&typeof p=="object"){const I=p;if(D.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const O=I.include;R={name:V=>V?O.indexOf(V)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const O=I.exclude;R={name:V=>V?O.indexOf(V)===-1:!1}}else R={name:"*"}}if(R){const I=v?.emitToChildren(R,"validate",D);I&&Reflect.apply([].push,x,I)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(I=>{let O=[];return I.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(O=[...O,...V.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,x=!0)=>{if(x){const R=Reflect.ownKeys(p),D=[...R],I={name:O=>{const V=R.includes(O);if(V){const A=D.findIndex(k=>O===k);A!==-1&&D.splice(A,1)}return V}};v?.emitToChildren(I,"setNameValidateRules",p,!1),D.length>0&&D.forEach(O=>{let V=String(O);const k=ur(u,V,{componentName:"",fieldName:V,pureDataValidate:!0},v,S);l[Je].set(V,k);const F=p[V];F&&k.validateSchema.setRule(F)})}},l.clearValidate=(p=!0)=>{let x=null;if(p===!0)x={name:"*"};else if(Array.isArray(p)&&p.length>0){const R=p;x={name:D=>D?R.indexOf(D)!==-1:!1}}else if(p!=null&&typeof p=="object"){const R=p;if(Array.isArray(R.include)&&R.include.length>0){const D=R.include;x={name:I=>I?D.indexOf(I)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const D=R.exclude;x={name:I=>I?D.indexOf(I)===-1:!1}}else x={name:"*"}}x&&v?.emitToChildren(x,"clearValidate",!1)},l.resetFields=p=>{const x=c();if(!x)return;const R={};if(We(!0,R,d()??{}),Array.isArray(p))p.forEach(D=>{x[D]=R[D]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(I=>{x[I]=R[I]});else if(p&&Array.isArray(p.exclude)){let D=p.exclude??[];Reflect.ownKeys(R).forEach(I=>{D.includes(I)||(x[I]=R[I])})}else Object.assign(x,R);l.clearValidate(p)},l.setModelValue=(p,x)=>{!x||x===i?f(p):v?.emitToChildren({name:x},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ne]=void 0,l[Je]&&(l[Je].clear(),l[Je]=void 0),v!==null&&(v.destroy(),l[de]=void 0),S!==null&&(S.destroy(),l[Fe]=void 0)}),u}function ir(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ne,null);l===null&&(l=Qe());const s=e||t.prop||t.name,i=new Nt(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[Ne]=i,r.provide(Ne,i),r.onUnmounted(()=>{i.destroy(),a[Ne]=void 0}),i}function sr(e,t,o){const a=Be(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function ge(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(de,null),i=xt(a,s,l,o);a[de]=i,r.provide(de,i),a.broadcast=(S,h,...b)=>Reflect.apply(i.emit,i,[S,h,...b]);const u=r.inject(Fe,null);e.fieldName=e.fieldName??l;const f=Ct(a,u,e);a[Fe]=f,r.provide(Fe,f),sr(a,f,l),a.validate=(S=null)=>{const h=[];let b=!1,p=!1;if(Array.isArray(S)&&S.indexOf(l)!==-1)p=!0,b=!0;else if(S&&typeof S=="object"){const x=S;x.ignoreHidden===!0&&zn(a.$el)?p=!1:(Array.isArray(x.include)&&x.include.indexOf(l)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(l),p=!0),b=x.deep??!1}else typeof S=="boolean"&&(b=S),p=!0;if(p){const x=f?.validate();h.push(x)}if(b){let x=null;const R={deep:!1};if(S===!0)x={name:"*"};else if(Array.isArray(S)&&S.length>0){const D=S;x={name:I=>I?D.indexOf(I)!==-1:!1}}else if(S!=null&&typeof S=="object"){const D=S;if(R.ignoreHidden=D.ignoreHidden,Array.isArray(D.include)&&D.include.length>0){const I=D.include;x={name:O=>O?I.indexOf(O)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const I=D.exclude;x={name:O=>O?I.indexOf(O)===-1:!1}}else x={name:"*"}}if(x){const D=i.emitToChildren(x,"validate",R);Reflect.apply([].push,h,D)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(x=>{let R=[];return x.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(R=[...R,...D.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=S=>f?.setRule(S),a.setNameValidateRules=(S,h=!1)=>{const b=S[l];if(b&&f?.setRule(b),h){const p={name:x=>Reflect.ownKeys(S).includes(x)};i.emitToChildren(p,"setNameValidateRules",S,!1)}},a.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(S===!0)h={name:"*"};else if(Array.isArray(S)&&S.length>0){const b=S;h={name:p=>p?b.indexOf(p)!==-1:!1}}else if(S!=null&&typeof S=="object"){const b=S;if(Array.isArray(b.include)&&b.include.length>0){const p=b.include;h={name:x=>x?p.indexOf(x)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const p=b.exclude;h={name:x=>x?p.indexOf(x)===-1:!1}}else h={name:"*"}}h&&i.emitToChildren(h,"clearValidate",!1)};const c=new Va(a);a[ar]=c;const d=ht((S="validate")=>{S==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:tr()).forEach(S=>{c.on(S,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:rr()).forEach(S=>{c.on(S,h=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[de]=void 0,f.destroy(),a[Fe]=void 0,c.destroy(),a[ar]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(S,...h)=>{Reflect.apply(c.emit,c,[S,...h])},onEvent:(S,h)=>{Reflect.apply(c.on,c,[h])},offEvent:(S,h)=>{Reflect.apply(c.off,c,[h])}}}function ur(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=Ct({},a,o);l.validate=(f=null)=>{const c=[];let d=!1,y=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)y=!0,d=!0;else if(f&&typeof f=="object"){const v=f;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),y=!0,d=v.deep??!1}else typeof f=="boolean"&&(d=f),y=!0;if(y){const v=i?.validate();c.push(v)}if(d){let v=null;const S={deep:!1};if(f===!0)v={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;v={name:b=>b?h.indexOf(b)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Array.isArray(h.include)&&h.include.length>0){const b=h.include;v={name:p=>p?b.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const b=h.exclude;v={name:p=>p?b.indexOf(p)===-1:!1}}else v={name:"*"}}if(v){const h=u.emitToChildren(v,"validate",S);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let S=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(S=[...S,...h.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=xt(null,n,s,l);return{broadcast:u,validateSchema:i}}const me=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ie(e,t)}px`:"";function ie(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(Ze){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}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 _e="PageStateKey";function Re(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ie(e.right))),t}function fn(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=ie(o.headerHeight??t.headerHeight),e.headerPadding=Re(o.headerPadding??t.headerPadding),e.footerHeight=ie(o.footerHeight??t.footerHeight),e.footerPadding=Re(o.footerPadding??t.footerPadding),e.contentPadding=Re(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ie(u,l):e.height=ie(l)-ie(s,l)-ie(i,l),e.width=ie(o.width??t.width??0,a)}}function cr(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=ie(a.top),n.safeAreaBottom=ie(a.bottom),n.safeAreaLeft=ie(a.left),n.safeAreaRight=ie(a.right));const l=e.get("pageLayout");if(!l)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;fn(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(_e);d&&(n.height=Vt(e,d),n.width=Ot(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Vt(e,d),c.width=Ot(e,d)}));const y=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,S,h=-1,b=-1,p=0,x=0])=>{fn(c,S,t,y,h,b,p,x)}),e.set(_e,c),c}function kt(e){return e.get(_e)}function gt(e,t){if(t=t??e.get(_e),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function mt(e,t){if(t=t??e.get(_e),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(_e),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=gt(e,t),n=mt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ot(e,t){return t=t??e.get(_e),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Aa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(_e)}var Ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ve||{});function dn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ee(e,t,o=1,n){const a=Be();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(dn(u,n))return u}const s=e.value;return dn(s,n)?s:null}):r.computed(()=>{const l=e.value;return dn(l,n)?l:a?.get(t)})}function Te(e){return Ee(e,"readonly",0,function(o){return Q(o)})}function $e(e){return Ee(e,"disabled",0,function(o){return Q(o)})}function ae(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,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const fr=new Map,It=new Map;let hn=null;function Fa(e){hn=e}function dr(e,t,o){if(o){let n=It.get(o);n||(n=new Map,It.set(o,n)),n.set(e,t)}else fr.set(e,t)}function Ae(e,t,o){!o&&hn&&(o=hn(e)??void 0);let n=null;if(o){let a=It.get(o);a&&(n=a.get(t))}return n||(n=fr.get(t)),n}function Ba(e,t){for(let o in e){const n=e[o];dr(o,n,t)}}function La(e){It.delete(e)}function qa(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ie(e,n)-ie(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 ja{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=Qe();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=lr(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,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=We({},qa(),t.safeAreaInset),s=Ma(n,a),i=We({},s.pageLayout,t.pageLayout);o=o??Qe(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){dr(t,o,n)}getAPI(t,o,n){return Ae(t,o,n)}batchSetAPI(t,o){Ba(t,o)}clearScopeAPI(t){La(t)}getRootDomain(){return Qe()}}const _a=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Pa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ha=e=>{_a.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Pa.forEach(t=>{e.use(t)})};function ee(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 he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},hr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},mr=[];for(const e in gr)mr.push(e);function pe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const za=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...he,...hr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(o,n){const a=cn(o.name,o);if(a){const f=cr(a,o);pe({getPageContentHeight:()=>Vt(a,f),getPageContentWidth:()=>Ot(a,f),getPageHeaderHeight:()=>gt(a,f),getPageFooterHeight:()=>mt(a,f)});const c=r.inject(za,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),y=r.toRaw(f),v=y?Reflect.ownKeys(y):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{v.includes(h)||(y[h]=[])}),u(y)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Ka,create:Ya,scope:Jc}=ee("page"),Ua=Ya(Wa(Ka));function Ga(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 Oe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},pr=Oe(Ua,[["render",Ga]]),Xa=["aria-labelledby"],Za=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ja=[Za],Qa=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ja,14,Xa))}});function gn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function mn(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")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}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 s=Be(),i=s?kt(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const w=e;return{[w]:!0,[`${w}--border`]:a.border,[`${w}--fixed`]:a.fixed,[`${w}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ie(a.height):null,c=r.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const E=Re(a.padding??i.headerPadding);return Object.assign(w,E),f&&(i.headerHeight=f),w.height=i.headerHeight,w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(E.top??0),w.height=w.height+w.safeAreaTop),w}if(f&&(w.height=f),a.padding){const E=Re(a.padding);Object.assign(w,E)}return w}),d=r.ref(null),y=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const w=gn(d.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&sn(y,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const v=r.computed(()=>{const w={};return c.value.height!==null&&c.value.height!==void 0&&(w.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(w.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(w.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(w.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(w.paddingBottom=`${c.value.bottom}px`),w}),S=r.computed(()=>{const w={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(w.top=`${c.value.safeAreaTop}px`),w}),h=r.computed(()=>{const w={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(w.top=`${c.value.safeAreaTop}px`),w}),b=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),x=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),R=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),D=r.computed(()=>a.leftIcon),I=r.computed(()=>D.value||l.slots.leftIcon),O=r.computed(()=>a.titleIcon),V=r.computed(()=>a.titleIcon||l.slots.titleIcon),A=r.computed(()=>a.rightIcon),k=r.computed(()=>a.rightIcon||l.slots.rightIcon);function F(){l.emit("back")}function K(){l.emit("click-title")}function _(){l.emit("click-right")}function $(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:v,mHeaderShow:p,leftStyles:S,rightStyles:h,mLeftShow:b,mTitleShow:x,mRightShow:R,mLeftIcon:D,hasLeftIcon:I,mTitleIcon:O,hasTitleIcon:V,mRightIcon:A,hasRightIcon:k,handleLeft:F,handleCenter:K,handleRight:_,handleRightText:$}}}),{componentName:tl,create:nl,scope:rl}=ee("header-bar"),ol=nl(el(tl,rl,Qa)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},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]=(...s)=>e.handleCenter&&e.handleCenter(...s)),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]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),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 yr=Oe(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=Be(),s=l?kt(l):null,i=r.computed(()=>{const v=e;return{[v]:!0,[`${v}--${n.align}`]:!0,[`${v}--border`]:n.border,[`${v}--fixed`]:n.fixed,[`${v}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ie(n.height):null,f=r.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const S=Re(n.padding??s.footerPadding);return Object.assign(v,S),u&&(s.footerHeight=u),v.height=s.footerHeight,v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.height=v.height+v.safeAreaBottom,v.bottom=v.safeAreaBottom+(S.bottom??0)),v}if(u&&(v.height=u),n.padding){const S=Re(n.padding);Object.assign(v,S)}return v}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const v=gn(c.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&sn(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const y=r.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=me(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=me(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=me(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=me(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=me(f.value.bottom)),v});return{footerBarRef:c,classes:i,styles:y}}}}const{componentName:ul,create:cl,scope:Qc}=ee("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 br=Oe(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Be(),a=r.computed(()=>({[e]:!0})),l=n?kt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const v=Re(o.padding);Object.assign(l.contentPadding,v)}const c=gt(n,l),d=mt(n,l);let y="";if(l.contentHeight?y=`${l.contentHeight}`:y=`${l.height}px`,l.contentPadding,f.height=y,l.contentPadding.top||c>0){const v=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+v}px`}if(l.contentPadding.bottom||d>0){const v=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+v}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=Re(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}),i=r.ref(null),u=()=>{if(l&&i.value){const f=mn(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>gt(n),()=>mt(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:gl,create:ml,scope:ef}=ee("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 wr=Oe(pl,[["render",yl]]),et="GroupStateKey",Sr=Symbol.for("GroupScopeKey");function Rt(){return r.inject(Sr,!1)}function At(e=!0){r.provide(Sr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];an(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(et,l),l}function pn(e,t,o=-1,n=-1,a=!1,l,s,i){const u=e.get(et);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),s||(s=f.maxItemWidth??-1);const c=ie(l),d=ie(s);i||(i=f.type??"grid");const y=()=>{const v=t===""||t===-1,S=ie(t);let h=we(o);const b=ie(n);if(!v){let R=(S-(h-1)*b)/h;for(;d!==-1&&R>d;)h++,R=(S-(h-1)*b)/h;for(;c!==-1&&h>1&&R<c;)h--,R=(S-(h-1)*b)/h}let p=!1;const x=u.layout;x.value.width=t,x.value.column!==h&&(x.value.column=h,p=!0),x.value.gutter!==b&&(x.value.gutter=b,p=!0),x.value.type!==i&&(x.value.type=i,p=!0),p&&r.triggerRef(x)};if(a)y();else{const v=++u.passport;setTimeout(()=>{v===u.passport&&y()},50)}}function Dt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.layout}function Ft(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.order}function vr(e,t=1){if(t==="stretch")return-1;const o=we(t);return o===-1?100:100*o/e}function Bt(e,t,o=1,n=0,a){const l={};let s=0;a?s=ie(a):s=vr(t.column,o),s>0&&(l.width=`${s}%`);const i=vr(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function Lt(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=we(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=we(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Tr=Symbol("RollingStateKey");function Sl(e){r.provide(Tr,e)}function vl(){return r.inject(Tr,null)}function yn(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=yn(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=yn(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={...he,...hr,...gr};function El(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=cn(n.name,n,mr),s=wl(l,{type:n.type}),i=Rt();At(!0);const u=n.rollingDisplay?vl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>i&&l?Dt(l,!0).value:null),y=r.getCurrentInstance(),v=C=>{const j=y?.proxy;j&&typeof j.setNameValidateRules=="function"&&j.setNameValidateRules(C,!0)};r.watch(()=>n.rules,(C,j)=>{if(!C&&!j)return;const H=r.toRaw(j),G=r.toRaw(C),Y=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(le=>{Y.includes(le)||(G[le]=[])}),v(G)},{deep:!0});const S=e,h=r.computed(()=>{const C={};C.height=L.value;const j=i?Ft(l,!0):null;if(d.value&&j){if(d.value.type==="grid"){const H=Lt(j,d.value,n.span,n.offset);Object.assign(C,H)}else if(d.value.type==="flow"){const H=Bt(j,d.value,n.span,n.offset,n.width);Object.assign(C,H)}}else if(n.width){const H=me(n.width);C.width=H}return C}),b=r.computed(()=>{const C=s.layout.value.type;return C==="grid"||C==="flow"?{[`${S}--${C}`]:!0,[`${S}--${C}-justify-${n.justify}`]:!0,[`${S}--${C}-align-${n.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${C}`]:!0,[`${S}--gutter`]:!0}}),p=r.computed(()=>{if(s.layout.value.type==="grid"){let j="";if(n.columnWidth)j=`repeat(auto-fill, ${n.columnWidth})`;else{const H=$l(k.value,s.layout.value.column,s.layout.value.gutter);j=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":j}}}),x=r.toRef(n,"title"),R=r.toRef(n,"gutter"),D=r.toRef(n,"column"),I=r.computed(()=>i||c.value?!0:Q(n.isWrap)),O=[],V=C=>{O.push(C)},A=()=>{let C=O.length;O.splice(0,C)},k=r.ref(-1),F=C=>{const j=mn(C).width;j>0&&j!==k.value&&(k.value=j)};pn(l,k.value,D.value,R.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([k,D,R],([C,j,H])=>{s.order.index=0,pn(l,C,j,H,!1,n.minItemWidth,n.maxItemWidth,n.type)});const K=r.computed(()=>B.value?n.expandText??"":n.collapseText??""),_=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),w=r.ref(),E=r.ref(),L=r.computed(()=>z.value||me(n.height)||""),B=r.ref(!1),z=r.ref(""),N=r.ref(!1);let P=-1;const U=(C,j=!0)=>{const H=w.value;if(H&&B.value!==C){if(P=P===-1?Tl(H):P,N.value=!0,j)if(H.style["will-change"]="height",H.ontransitionend=function(){H.ontransitionend=null,this.style["will-change"]="auto",C||(z.value="",N.value=!1)},C){let G=0;n.collapseHeight?G=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(G=E.value.offsetHeight),z.value=`${P}px`,r.nextTick(()=>{z.value=`${G}px`})}else z.value=`${P}px`;else if(C){let G=0;n.collapseHeight?G=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(G=E.value.offsetHeight),z.value=`${G}px`}else N.value=!1,z.value=`${P}px`;B.value=C,a.emit("update:collapse",C)}};r.watch(()=>n.collapse,C=>{U(C)});const W=()=>{J()},J=C=>{C=C??!B.value,U(C)};pe({toggleCollapse:J,doLayout:()=>{O[0]&&(F(O[0]),pn(l,k.value,D.value,R.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ne=null,oe=!0;const M=C=>{if(n.rules){const j=r.toRaw(n.rules);v(j)}if(Ze&&(C&&U(Q(n.collapse),!1),n.autoLayout&&Array.isArray(O)&&O.length>0)){const j=O[0];F(j),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{F(j)}),ne.observe(j))}},X=()=>{ne?.disconnect(),ne=null},q=!c.value||u?.acquire();q&&(f.value=c.value?!0:null),r.onMounted(()=>{if(q&&(M(oe),oe=!1),c.value&&u){let C=null,j=u.initialHeight;u.observe(w.value,H=>{if(H!==f.value)if(H)f.value=!0,B.value||(z.value=""),C=setTimeout(()=>{C=null,f.value!==!1&&(M(oe),oe=!1)},100);else{if(C!==null&&clearTimeout(C),f.value=!1,!B.value)if(oe)z.value=u.initialHeight;else{let G=yn(w.value);G<=0?z.value=j:(z.value=`${G}px`,j=z.value)}oe||X()}})}}),r.onUnmounted(()=>{ne?.disconnect(),u&&u.unobserve(w.value)});const T=(C,j,H,G)=>{const Y={...b.value};return j===0&&(Y[`${S}__first`]=!0),H>=G-1&&(Y[`${S}__last`]=!0),r.h("div",{ref:V,key:`${j}`,class:Y,style:p.value},C)};return()=>{if(c.value&&f.value!==!0){const Y=n.tag||"div";return r.h(Y,{ref:w,prop:n.name,class:{[`${S}`]:!0,"is-collapse":N.value},style:h.value},[])}s.order.index=0;const C=[];let j=0;if(a.slots.header){const Y={key:`${j++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},Z=r.h("div",Y,[a.slots.header()]);C.push(Z)}else{const Y=[];if(x.value){if(n.showMark){const le={class:{[`${S}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=r.h("div",le);Y.push(se)}const Z=r.h("div",{class:{[`${S}__header-title`]:!0}},[x.value]);Y.push(Z)}if(a.slots.toolbar&&Y.push(a.slots.toolbar()),n.showCollapse){const Z=[];if(K.value){const fe={class:_.value},Ce=r.h("span",fe,[K.value]);Z.push(Ce)}const le={class:$.value},se=o(n.collapseIcon,le);if(se&&Z.push(se),Z.length>0){const fe=r.h("div",{class:{[`${S}__header-collapse`]:!0},onClick:W},Z);Y.push(fe)}}if(Y.length>0){const Z={key:`${j++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},le=r.h("div",Z,Y);C.push(le)}}A();const H=a.slots.default?a.slots.default():[],G=s.layout.value.type;if(G==="grid"){const Y=T(H,j++,0,H.length);C.push(Y)}else if(G==="flow"){const Y=T(H,j++,0,H.length);C.push(Y)}else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=T([Z],j++,Y,H.length);C.push(le)}if(I.value){const Y=n.tag||"div";return r.h(Y,{ref:w,prop:n.name,class:{[`${S}`]:!0,"is-collapse":N.value},style:h.value},[C])}else return C}}}}const{componentName:Cl,create:Nl,scope:kl}=ee("group"),$r=Nl(El(Cl,kl,(e,t)=>(e=e??ke.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Ol=/matrix\((.+)\)/,xr=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,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Ol.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(i+=Number(y[4]),u+=Number(y[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function Il(e){return e===window}const bn=e=>{const t=r.unref(e);if(Il(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 Al{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 Er=new Al,Cr={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:Dl,create:Fl}=ee("price"),Bl=Fl({props:{...Cr},setup(e){const t=r.computed(()=>({[Dl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ct(e.price)==0?"":vt(e.price,e.decimalLength,!0,we(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.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: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 wn=Oe(Bl,[["render",Ml]]),{componentName:qt,create:jl}=ee("hint-text"),_l=jl({components:{Price:wn},props:{...Cr,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),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[qt]:!0})),y=r.ref(null),v=(A,k,F=10)=>{if(!Ze||k===!1||!A)return;l.value=!0;const K=bn(e.reference);u.value=K.width,f.value=K.height,setTimeout(()=>{if(!y.value||!e.reference||e.reference.offsetParent===null)return;const _=xr(e.reference),$=document.documentElement.clientWidth||document.body.clientWidth,w=y.value.offsetWidth,E=y.value.offsetHeight;_.y-E>=0?(c.value="top",s.value.y=_.y-E-10-4,i.value.y=E):(c.value="bottom",s.value.y=_.y+f.value+10,i.value.y=-10);const L=_.x+w-$;L<0?(s.value.x=_.x,i.value.x=20):(s.value.x=_.x-L,i.value.x=L+20),l.value=!1},F)},S=ht(()=>{v(e.message,e.visible)},10),h=r.computed(()=>e.visible&&b.value),b=r.ref(!0),p=ht(A=>{const k=A[0];k&&(b.value=k.isIntersecting)},10),x=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([A,k])=>{v(A,k)}),r.onMounted(()=>{v(e.message,e.visible),Er.watch(e.reference,S),x.observe(e.reference)}),r.onBeforeMount(()=>{Er.unwatch(e.reference,S),x.unobserve(e.reference),x.disconnect()});const R=r.computed(()=>{const A={"min-width":me(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${s.value.x}px, ${s.value.y}px)`,A}),D=r.computed(()=>({[`${qt}__content`]:!0})),I=r.computed(()=>({})),O=r.computed(()=>({[`${qt}__arrow`]:!0,[`${qt}__arrow-${e.placement}`]:!0})),V=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:h,tipRef:y,classes:d,styles:R,textClasses:D,textStyles:I,arrowClasses:O,arrowStyles:V}}}),Pl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const s=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(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,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 Mt=Oe(_l,[["render",Hl]]);class Nr{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 Sn={},zl=new Nr,tt=new Map,vn=e=>{if(e){const t=document.getElementById(e);tt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of tt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}tt.clear()}},Wl=e=>{const t=document.getElementById(e.id);if(t){const o=tt.get(e.id);o?e={...Sn,...o,...e}:e={...Sn,...e};const n=r.createVNode(Mt,e);return r.render(n,t),e.id}},Kl=e=>{e.unmount=vn;let t;if(e.id){if(t=e.id,tt.has(t))return Wl(e)}else t=`hinttext_${zl.get()}`;e={...Sn,...e},e.id=t,tt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Mt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},jt={show(e,t,o={},n=!0){return n&&vn(),Yl(t),Kl({...o,message:t,reference:e})},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=jt}},{componentName:kr,create:Ul}=ee("item"),Gl=Ul({inheritAttrs:!0,props:{...he,...ve},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ge({componentName:kr,validate:!1},o);const n=Be(),a=Rt();At(!1);const l=r.computed(()=>a&&n?Dt(n,!1).value:null),s=kr,i=r.ref(null),u=r.computed(()=>{const M={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(M[e.errorMarkClass]=!!K.value,M[e.warnMarkClass]=!!k.value,M[e.infoMarkClass]=!!V.value,typeof i.value=="function"){const X=i.value(o);M[X]=!0}else if(typeof i.value=="string"){const X=i.value;M[X]=!0}return M}),f=r.computed(()=>{const M={},X=a&&n?Ft(n,!1):null;if(l.value&&X)if(l.value.type==="grid"){const q=Lt(X,l.value,e.span,e.offset);Object.assign(M,q)}else if(l.value.type==="flow"){const q=Bt(X,l.value,e.span,e.offset,e.width);Object.assign(M,q)}else return e.width&&(M.width=me(e.width)),M;else e.width&&(M.width=me(e.width));return M}),c=r.ref(null),d=r.computed({get:()=>c.value??Q(e.isRequired),set:M=>{c.value=M}}),y=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),v=Ee(r.toRef(e,"labelPosition"),"labelPosition",Ve.Near),S=r.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),h=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${S.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=Ee(r.toRef(e,"labelWidth"),"labelWidth",Ve.Near),x=r.computed(()=>p&&p.value?{width:me(p.value)}:{}),R=r.computed(()=>({"label--string":!0,"label--required":d.value})),D=r.computed(()=>({content:!0,[e.contentClass]:!0})),I=r.computed(()=>({...e.contentStyle})),O=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(M){d.value=M},setErrorTip(M){O.errorTip=M},setErrorIcon(M){O.errorIcon=M},setWarnTip(M){O.warnTip=M},setWarnIcon(M){O.warnIcon=M},setInfoTip(M){O.infoTip=M},setInfoIcon(M){O.infoIcon=M},setCustomClassName(M){i.value=M}});const V=r.computed(()=>e.infoTip||O.infoTip),A=r.computed(()=>e.infoIcon||O.infoIcon),k=r.computed(()=>e.warnTip||O.warnTip),F=r.computed(()=>e.warnIcon||O.warnIcon),K=r.computed(()=>e.errorTip||O.errorTip),_=r.computed(()=>e.errorIcon||O.errorIcon),$=r.computed(()=>K.value?"error":k.value?"warn":V.value?"info":""),w=r.computed(()=>$.value.length>0),E=r.computed(()=>$.value==="error"?K.value:$.value==="warn"?k.value:$.value==="info"?V.value:""),L=r.computed(()=>$.value==="error"?_.value:$.value==="warn"?F.value:$.value==="info"?A.value:null),B=r.computed(()=>{let M={[`${s}__tip`]:!0,[`${s}__tip--${$.value}`]:!0};return $.value==="error"&&e.errorClass?M[`${e.errorClass}`]=!0:$.value==="warn"&&e.warnClass?M[`${e.warnClass}`]=!0:$.value==="info"&&e.infoClass&&(M[`${e.infoClass}`]=!0),M}),z=r.computed(()=>{let M={};return v&&v.value==="top"||!y.value?M["padding-left"]="0px":p&&p.value&&(M["padding-left"]=me(p.value)),M}),N=()=>r.h(L.value,{width:12,height:12}),P=r.computed(()=>t.slots.fixedTip),U=r.computed(()=>({[`${s}__fixed-tip`]:!0})),W=r.ref();let J="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([M,X,q,T])=>{W.value&&(M&&!ce(X)?J?jt.show(W.value,X,{...T,id:J,type:q},!0):J=jt.show(W.value,X,{...T,type:q},!0):jt.hide(J))});let re=null;const ne=()=>{re||!W.value||(re=new IntersectionObserver(M=>{let X=!1;for(let q of M)if(q.intersectionRatio>0){X=!0,X&&t.emit("appear",q);break}X||t.emit("disappear")}),re.observe(W.value))},oe=()=>{!re||!W.value||(re.unobserve(W.value),re=null)};return r.watch(()=>Q(e.appearListen),M=>{M?ne():oe()}),r.onMounted(()=>{Q(e.appearListen)&&ne()}),r.onUnmounted(oe),{classes:u,styles:f,mainClasses:h,hasLabel:y,labelClasses:b,labelStyles:x,labelStringClasses:R,contentClasses:D,contentStyles:I,contentRef:W,hasTip:w,mTip:E,mIcon:L,renderIcon:N,tipClasses:B,tipStyles:z,hasFixedTip:P,fixedTipClasses:U}}}),Xl=["prop"],Zl={key:0,class:"fox-item__tip--icon"},Jl={class:"fox-item__tip--text"};function Ql(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.createElementBlock("div",Zl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Jl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const ye=Oe(Gl,[["render",Ql]]);function ei(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=Be(),l=Rt();At(!1);const s=r.computed(()=>l&&a?Dt(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Ft(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const y=Lt(d,s.value,o.span,o.offset);Object.assign(c,y)}else if(s.value.type==="flow"){const y=Bt(d,s.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=me(o.width)),c;else o.width&&(c.width=me(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:ti,create:ni,scope:nf}=ee("slot-item"),Vr=ni(ei(ti));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],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Be(),i=Rt();At(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Dt(s,!1),d=Ft(s,!1);if(c.value&&d)if(c.value.type==="grid"){const y=Lt(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=Bt(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=me(o.width))}else o.width&&(f.width=me(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const v=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(v)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:oi,create:ai,scope:rf}=ee("row-item"),Or=ai(ri(oi)),Ir={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 li(e,t,o){return{props:{...he,...ve,...Ir},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ae(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0,[`${y}__disabled`]:l.value,[`${y}__readonly`]:s.value})),S=$=>{d.value=$,i("update:modelValue",$),i("input",$)},h=$=>{i("change",$)};let b=ae(n,"hintText"),p=r.ref(!1);const x=$=>{let E=$.target.value;c.value=!0,ce(b.value)||(p.value=!0),i("focus",E,$)},R=$=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let E=$.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,$)},D=()=>{i("clear","")},I=r.ref(!1);let O=null;const V=()=>{n.showTooltip&&I.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{I.value=!0},150))},A=()=>{O&&(clearTimeout(O),I.value=!1,O=null)},k=r.computed(()=>I.value||p.value),F=r.computed(()=>I.value?d.value:b.value),K=r.computed(()=>ct(n.unit)>0),_=r.ref();return pe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const w={...a.attrs,ref:_,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onChange:h,onInput:S,onFocus:x,onBlur:R,onMouseover:V,onMouseleave:A},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:K.value&&(E.suffix=()=>[n.unit]);const L=[],B=r.h(m.ElInput,w,E);L.push(B);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.default&&(z.fixedTip=a.slots.fixedTip);const P={...Se(n,Ir),hintText:F.value,hintVisible:k.value,prop:`${n.prop}_item`};return r.h(o,P,z)}}}}const{componentName:ii,create:si,scope:ui}=ee("input-item"),Rr=si(li(ii,ui,ye));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function pt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ar(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ci(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let fi=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`),[]):(Me(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function di(){const e=r.getCurrentInstance();return new fi(e.proxy)}function Dr(e,t,o){const n=Pe(e,t),a=Pe(e,o);if(n!==a)return!1;const l=pt(e,t),s=pt(e,o);return l===s}function Fr(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 s of n){const i=Ar(e,s);if(Array.isArray(i)&&i.length>0){const u=Fr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Pe(e,s)===l;else if(o==="item")u=Dr(e,s,l);else{let f=pt(e,s);f==null&&(f=Pe(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function hi(e){return{text:e,value:e}}const Br={modelValue:{type:[String,Object,Boolean,Number],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 gi(e,t,o){return{props:{...he,...ve,...Br},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),y=r.computed(()=>d.value?d.value.map(T=>Pe(n,T)).join(" "):""),v=(q,T,C,j=!0)=>{const H=Fr(n,q,T,C);if(H===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],j&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let G=!0;if(H.length!==d.value.length)G=!1;else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=d.value[Y];if(!Dr(n,Z,le)){G=!1;break}}if(!G){d.value=H;let Y=[],Z=[],le=[];H.forEach(Xe=>{const lt=pt(n,Xe),it=Pe(n,Xe);Y.push(lt),le.push(it),n.valueType==="text"?Z.push(it):n.valueType==="item"?Z.push(Xe):Z.push(lt)});let se,fe,Ce;n.multiple?(c.value=Y,se=r.toRaw(Z),fe=le,Ce=r.toRaw(H)):(c.value=Y[0]??"",se=r.toRaw(Z[0]??""),fe=le[0]??"",Ce=r.toRaw(H[0])),j&&(i("update:modelValue",se),i("change",se,Ce)),i("update:text",fe)}},S=r.ref(null),h=r.ref(null),b=r.computed(()=>h.value??S.value??[]),p=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,q=>Q(q)),x=di(),R=async(q,T)=>{if(q){const C=await x.load("select",q,T);if(C.length>0)if(typeof C[0]=="string"){let G=C.map(Y=>hi(Y));S.value=G}else S.value=C;else S.value=null}};r.watch([()=>n.source,()=>n.params],([q,T])=>{R(q,T)},{immediate:!p.value});let D=!1;const I=()=>{D||(D=!0,R(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([q,T])=>{v(T,n.valueType,q,!1)});let O=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(O=async q=>{if(q==null){h.value=null;return}V.value=!0;try{const T=await n.remoteMethod(q);T&&(h.value=T)}catch(T){h.value=null,console.error(T)}V.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async q=>{if(q==null){h.value=null;return}V.value=!0;try{const T=await n.filterMethod(q,S.value);T&&(h.value=T)}catch(T){h.value=null,console.error(T)}V.value=!1});const k=r.ref(!1),F=e,K=r.computed(()=>({[F]:!0})),_=q=>{n.allowCreate?(i("update:modelValue",q),i("change",q),i("update:text",q),c.value=q):v(q,"value",b.value,!0)};let $=ae(n,"hintText"),w=r.ref(!1);const E=q=>{let C=q.target.value;k.value=!0,ce($.value)||(w.value=!0),i("focus",C,q)},L=q=>{setTimeout(()=>{w.value&&(w.value=!1),k.value=!1},0);let C=q.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),re.value||i("blur",C,q)},B=()=>{i("clear","")},z=r.ref(!1);let N=null;const P=()=>{n.showTooltip&&z.value===!1&&(N&&clearTimeout(N),N=setTimeout(()=>{z.value=!0},150))},U=()=>{N&&(clearTimeout(N),z.value=!1,N=null)},W=r.computed(()=>z.value||w.value),J=r.computed(()=>z.value?y.value:$.value),re=r.ref(!1),ne=q=>{re.value=q,i("visible-change",q),q||i("selected")},oe=q=>{i("remove-tag",q)},M=(q,T)=>{const C=[];return q.forEach((j,H)=>{const G=Ar(n,j);if(Array.isArray(G)&&G.length>0){const Y=M(G,T),Z=Pe(n,j),se={key:`${Z}_${H}`,label:Z};C.push(r.h(m.ElOptionGroup,se,{default:()=>Y}))}else{const Y=pt(n,j),Z=Pe(n,j),le=ci(n,j),fe={key:`${Y}_${H}`,label:Z,disabled:le,value:Y};if(typeof T=="function")C.push(r.h(m.ElOption,fe,{default:()=>T(j)}));else if(n.optionType==="item"){const Ce={class:{"fox-select-item__option-left":!0}},Xe=r.h("span",Ce,[Y]),lt={class:{"fox-select-item__option-right":!0}},it=r.h("span",lt,[Z]),In=r.h("div",{class:{"fox-select-item__option":!0}},[Xe,it]);C.push(r.h(m.ElOption,fe,{default:()=>In}))}else n.optionType==="value"?C.push(r.h(m.ElOption,fe,{default:()=>[Y]})):C.push(r.h(m.ElOption,fe))}}),C},X=r.ref();return pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()}}),()=>{const T={...a.attrs,ref:X,class:K.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:B,onChange:_,onFocus:E,onBlur:L,onVisibleChange:ne,onRemoveTag:oe};typeof O=="function"&&(T["remote-method"]=O,T.loading=V.value),typeof A=="function"&&(T["filter-method"]=A,T.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=()=>M(b.value,a.slots.option);const j=[],H=r.h(m.ElSelect,T,C);j.push(H);const G={default:()=>j};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const Z={...Se(n,Br),hintText:J.value,hintVisible:W.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:U};return p.value&&(Z["appear-listen"]=!0,Z.onAppear=I),r.h(o,Z,G)}}}}const{componentName:mi,create:pi,scope:yi}=ee("select-item"),Lr=pi(gi(mi,yi,ye));var Le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",y="quarter",v="year",S="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,x={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("_")},R=function($,w,E){var L=String($);return!L||L.length>=w?$:""+Array(w+1-L.length).join(E)+$},D={s:R,z:function($){var w=-$.utcOffset(),E=Math.abs(w),L=Math.floor(E/60),B=E%60;return(w<=0?"+":"-")+R(L,2,"0")+":"+R(B,2,"0")},m:function $(w,E){if(w.date()<E.date())return-$(E,w);var L=12*(E.year()-w.year())+(E.month()-w.month()),B=w.clone().add(L,d),z=E-B<0,N=w.clone().add(L+(z?-1:1),d);return+(-(L+(E-B)/(z?B-N:N-B))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:v,w:c,d:f,D:S,h:u,m:i,s,ms:l,Q:y}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},I="en",O={};O[I]=x;var V=function($){return $ instanceof K},A=function $(w,E,L){var B;if(!w)return I;if(typeof w=="string"){var z=w.toLowerCase();O[z]&&(B=z),E&&(O[z]=E,B=z);var N=w.split("-");if(!B&&N.length>1)return $(N[0])}else{var P=w.name;O[P]=w,B=P}return!L&&B&&(I=B),B||!L&&I},k=function($,w){if(V($))return $.clone();var E=typeof w=="object"?w:{};return E.date=$,E.args=arguments,new K(E)},F=D;F.l=A,F.i=V,F.w=function($,w){return k($,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var K=function(){function $(E){this.$L=A(E.locale,null,!0),this.parse(E)}var w=$.prototype;return w.parse=function(E){this.$d=function(L){var B=L.date,z=L.utc;if(B===null)return new Date(NaN);if(F.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var N=B.match(b);if(N){var P=N[2]-1||0,U=(N[7]||"0").substring(0,3);return z?new Date(Date.UTC(N[1],P,N[3]||1,N[4]||0,N[5]||0,N[6]||0,U)):new Date(N[1],P,N[3]||1,N[4]||0,N[5]||0,N[6]||0,U)}}return new Date(B)}(E),this.$x=E.x||{},this.init()},w.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},w.$utils=function(){return F},w.isValid=function(){return this.$d.toString()!==h},w.isSame=function(E,L){var B=k(E);return this.startOf(L)<=B&&B<=this.endOf(L)},w.isAfter=function(E,L){return k(E)<this.startOf(L)},w.isBefore=function(E,L){return this.endOf(L)<k(E)},w.$g=function(E,L,B){return F.u(E)?this[L]:this.set(B,E)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(E,L){var B=this,z=!!F.u(L)||L,N=F.p(E),P=function(X,q){var T=F.w(B.$u?Date.UTC(B.$y,q,X):new Date(B.$y,q,X),B);return z?T:T.endOf(f)},U=function(X,q){return F.w(B.toDate()[X].apply(B.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(q)),B)},W=this.$W,J=this.$M,re=this.$D,ne="set"+(this.$u?"UTC":"");switch(N){case v:return z?P(1,0):P(31,11);case d:return z?P(1,J):P(0,J+1);case c:var oe=this.$locale().weekStart||0,M=(W<oe?W+7:W)-oe;return P(z?re-M:re+(6-M),J);case f:case S:return U(ne+"Hours",0);case u:return U(ne+"Minutes",1);case i:return U(ne+"Seconds",2);case s:return U(ne+"Milliseconds",3);default:return this.clone()}},w.endOf=function(E){return this.startOf(E,!1)},w.$set=function(E,L){var B,z=F.p(E),N="set"+(this.$u?"UTC":""),P=(B={},B[f]=N+"Date",B[S]=N+"Date",B[d]=N+"Month",B[v]=N+"FullYear",B[u]=N+"Hours",B[i]=N+"Minutes",B[s]=N+"Seconds",B[l]=N+"Milliseconds",B)[z],U=z===f?this.$D+(L-this.$W):L;if(z===d||z===v){var W=this.clone().set(S,1);W.$d[P](U),W.init(),this.$d=W.set(S,Math.min(this.$D,W.daysInMonth())).$d}else P&&this.$d[P](U);return this.init(),this},w.set=function(E,L){return this.clone().$set(E,L)},w.get=function(E){return this[F.p(E)]()},w.add=function(E,L){var B,z=this;E=Number(E);var N=F.p(L),P=function(J){var re=k(z);return F.w(re.date(re.date()+Math.round(J*E)),z)};if(N===d)return this.set(d,this.$M+E);if(N===v)return this.set(v,this.$y+E);if(N===f)return P(1);if(N===c)return P(7);var U=(B={},B[i]=n,B[u]=a,B[s]=o,B)[N]||1,W=this.$d.getTime()+E*U;return F.w(W,this)},w.subtract=function(E,L){return this.add(-1*E,L)},w.format=function(E){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||h;var z=E||"YYYY-MM-DDTHH:mm:ssZ",N=F.z(this),P=this.$H,U=this.$m,W=this.$M,J=B.weekdays,re=B.months,ne=function(q,T,C,j){return q&&(q[T]||q(L,z))||C[T].slice(0,j)},oe=function(q){return F.s(P%12||12,q,"0")},M=B.meridiem||function(q,T,C){var j=q<12?"AM":"PM";return C?j.toLowerCase():j},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:F.s(W+1,2,"0"),MMM:ne(B.monthsShort,W,re,3),MMMM:ne(re,W),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:ne(B.weekdaysMin,this.$W,J,2),ddd:ne(B.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(P),HH:F.s(P,2,"0"),h:oe(1),hh:oe(2),a:M(P,U,!0),A:M(P,U,!1),m:String(U),mm:F.s(U,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:N};return z.replace(p,function(q,T){return T||X[q]||N.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(E,L,B){var z,N=F.p(L),P=k(E),U=(P.utcOffset()-this.utcOffset())*n,W=this-P,J=F.m(this,P);return J=(z={},z[v]=J/12,z[d]=J,z[y]=J/3,z[c]=(W-U)/6048e5,z[f]=(W-U)/864e5,z[u]=W/a,z[i]=W/n,z[s]=W/o,z)[N]||W,B?J:F.a(J)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return O[this.$L]},w.locale=function(E,L){if(!E)return this.$L;var B=this.clone(),z=A(E,L,!0);return z&&(B.$L=z),B},w.clone=function(){return F.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},$}(),_=K.prototype;return k.prototype=_,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",v],["$D",S]].forEach(function($){_[$[1]]=function(w){return this.$g(w,$[0],$[1])}}),k.extend=function($,w){return $.$i||($(w,K,k),$.$i=!0),k},k.locale=A,k.isDayjs=V,k.unix=function($){return k(1e3*$)},k.en=O[I],k.Ls=O,k.p={},k})})(qr);var bi=qr.exports;const De=qe(bi);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,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?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(b){this[h]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var p=b.match(/([+-]|\d\d)/g),x=60*p[1]+(+p[2]||0);return x===0?0:p[0]==="+"?-x:x}(h)}],d=function(h){var b=i[h];return b&&(b.indexOf?b:b.s.concat(b.f))},y=function(h,b){var p,x=i.meridiem;if(x){for(var R=1;R<=24;R+=1)if(h.indexOf(x(R,0,b))>-1){p=R>12;break}}else p=h===(b?"pm":"PM");return p},v={A:[s,function(h){this.afternoon=y(h,!1)}],a:[s,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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:[s,function(h){var b=i.ordinal,p=h.match(/\d+/);if(this.day=p[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===h&&(this.day=x)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(h){var b=d("months"),p=(d("monthsShort")||b.map(function(x){return x.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(h){var b=d("months").indexOf(h)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function S(h){var b,p;b=h,p=i&&i.formats;for(var x=(h=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,F,K){var _=K&&K.toUpperCase();return F||p[K]||o[K]||p[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,w,E){return w||E.slice(1)})})).match(n),R=x.length,D=0;D<R;D+=1){var I=x[D],O=v[I],V=O&&O[0],A=O&&O[1];x[D]=A?{regex:V,parser:A}:I.replace(/^\[|\]$/g,"")}return function(k){for(var F={},K=0,_=0;K<R;K+=1){var $=x[K];if(typeof $=="string")_+=$.length;else{var w=$.regex,E=$.parser,L=k.slice(_),B=w.exec(L)[0];E.call(F,B),k=k.replace(B,"")}}return function(z){var N=z.afternoon;if(N!==void 0){var P=z.hours;N?P<12&&(z.hours+=12):P===12&&(z.hours=0),delete z.afternoon}}(F),F}}return function(h,b,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var x=b.prototype,R=x.parse;x.parse=function(D){var I=D.date,O=D.utc,V=D.args;this.$u=O;var A=V[1];if(typeof A=="string"){var k=V[2]===!0,F=V[3]===!0,K=k||F,_=V[2];F&&(_=V[2]),i=this.$locale(),!k&&_&&(i=p.Ls[_]),this.$d=function(L,B,z){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*L);var N=S(B)(L),P=N.year,U=N.month,W=N.day,J=N.hours,re=N.minutes,ne=N.seconds,oe=N.milliseconds,M=N.zone,X=new Date,q=W||(P||U?1:X.getDate()),T=P||X.getFullYear(),C=0;P&&!U||(C=U>0?U-1:X.getMonth());var j=J||0,H=re||0,G=ne||0,Y=oe||0;return M?new Date(Date.UTC(T,C,q,j,H,G,Y+60*M.offset*1e3)):z?new Date(Date.UTC(T,C,q,j,H,G,Y)):new Date(T,C,q,j,H,G,Y)}catch{return new Date("")}}(I,A,O),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),K&&I!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var $=A.length,w=1;w<=$;w+=1){V[1]=A[w-1];var E=p.apply(this,V);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}w===$&&(this.$d=new Date(""))}else R.call(this,D)}}})})(Mr);var wi=Mr.exports;const Si=qe(wi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){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(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="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 y}});return s.bind(this)(d)}}})})(jr);var vi=jr.exports;const Ti=qe(vi);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,y,v,S,h){var b=d.name?d:d.$locale(),p=s(b[y]),x=s(b[v]),R=p||x.map(function(I){return I.slice(0,S)});if(!h)return R;var D=b.weekStart;return R.map(function(I,O){return R[(O+(D||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,y){return d.formats[y]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,h,b){return h||b.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):i(d,"months")},monthsShort:function(y){return y?y.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):i(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},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(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(_r);var $i=_r.exports;const xi=qe($i);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){var o="week",n="year";return function(a,l,s){var i=l.prototype;i.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=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var y=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),v=this.diff(y,o,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Pr);var Ei=Pr.exports;const Ci=qe(Ei);var Hr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(Hr);var Ni=Hr.exports;const ki=qe(Ni);var zr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(zr);var Vi=zr.exports;const Oi=qe(Vi);var Wr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Wr);var Ii=Wr.exports;const Ri=qe(Ii);var Kr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Le,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(Kr);var Ai=Kr.exports;const Di=qe(Ai);De.extend(xi),De.extend(Ti),De.extend(Si),De.extend(Ci),De.extend(ki),De.extend(Oi),De.extend(Ri),De.extend(Di);const yt={format(e,t){return De(e).format(t)},parser(e,t){return De(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(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/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),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=l-(s-1)*i,f=l+(7-s)*i,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]=yt.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=yt.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(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},Yr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Ur={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Fi(e,t,o){return{props:{...he,...ve,...Yr,...Ur},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ae(n,"modelValue"),y=e,v=r.computed(()=>({[`${y}__input`]:!0})),S=w=>{d.value=w,i("update:modelValue",w),i("change",w)};let h=ae(n,"hintText"),b=r.ref(!1);const p=w=>{let L=w.target.value;c.value=!0,ce(h.value)||(b.value=!0),i("focus",L,w)},x=w=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let L=w.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,w)},R=()=>{i("clear","")},D=w=>{i("calendar-change",w)},I=(w,E,L)=>{i("panel-change",w,E,L)},O=w=>{i("visible-change",w)},V=Ee(r.computed(()=>n.longTermValue),"longTermText",Ve.Near),A=Ee(r.computed(()=>n.longTermValue),"longTermValue",Ve.Near);let k=null;const F=r.ref(Q(n.longTerm)),K=w=>{if(F.value=w,i("update:longTerm",w),w){let E="";Array.isArray(A.value)?E=A.value.map((L,B)=>L||(Array.isArray(d.value)&&d.value[B]?d.value[B]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,k=d.value,i("update:modelValue",E)}else i("update:modelValue",k)},_=Q(n.isLongTerm);if(_){const w=()=>{if(F.value===!0){let E="";Array.isArray(A.value)?E=A.value.map((L,B)=>L||(Array.isArray(d.value)&&d.value[B]?d.value[B]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,k=d.value,i("update:modelValue",E)}else je(A.value,d.value)&&(F.value=!0)};w(),r.watch([()=>n.longTerm],([E])=>{F.value!==E&&w()})}const $=r.ref();return pe({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()}}),()=>{const E={...a.attrs,ref:$,class:v.value,placeholder:f.placeholder.value,disabled:l.value||F.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":S,onClear:R,onFocus:p,onBlur:x,onCalendarChange:D,onPanelChange:I,onVisibleChange:O},L={};a.slots["range-separator"]&&(L["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(L.default=a.slots.cell);const B=[],z=r.h(m.ElDatePicker,E,L);B.push(z);const N={default:()=>B};if(a.slots.default&&(N.label=a.slots.default),a.slots.fixedTip&&(N.fixedTip=a.slots.fixedTip),_){const J={label:V.value,disabled:s.value||l.value,modelValue:F.value,"onUpdate:modelValue":K},re=r.h(m.ElCheckbox,J),ne=r.h("div",{class:{[`${y}__append`]:!0}},[re]);N.append=()=>ne}const U={...Se(n,Yr,Ur),class:{[`${y}__wrapper`]:!0,"has-append":_},hintText:h.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,U,N)}}}}const{componentName:Bi,create:Li,scope:qi}=ee("date-item"),Gr=Li(Fi(Bi,qi,ye)),Xr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...he,...ve,...Xr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ae(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0})),S=O=>{d.value=O,i("update:modelValue",O),i("change",O)};let h=ae(n,"hintText"),b=r.ref(!1);const p=O=>{let A=O.target.value;c.value=!0,ce(h.value)||(b.value=!0),i("focus",A,O)},x=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let A=O.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,O)},R=()=>{i("clear","")},D=O=>{i("visible-change",O)},I=r.ref();return pe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const V={...a.attrs,ref:I,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:R,onFocus:p,onBlur:x,onVisibleChange:D},A={},k=[],F=r.h(m.ElTimePicker,V,A);k.push(F);const K={default:()=>k};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const $={...Se(n,Xr),hintText:h.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,$,K)}}}}const{componentName:ji,create:_i,scope:Pi}=ee("time-item"),Zr=_i(Mi(ji,Pi,ye)),Jr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hi(e,t,o){return{props:{...he,...ve,...Jr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ae(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0})),S=I=>{d.value=I,i("update:modelValue",I),i("change",I)};let h=ae(n,"hintText"),b=r.ref(!1);const p=I=>{let V=I.target.value;c.value=!0,ce(h.value)||(b.value=!0),i("focus",V,I)},x=I=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let V=I.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,I)},R=()=>{i("clear","")},D=r.ref();return pe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()}}),()=>{const O={...a.attrs,ref:D,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:R,onFocus:p,onBlur:x},V={},A=[],k=r.h(m.ElTimeSelect,O,V);A.push(k);const F={default:()=>A};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const _={...Se(n,Jr),hintText:h.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,_,F)}}}}const{componentName:zi,create:Wi,scope:Ki}=ee("time-select-item"),Qr=Wi(Hi(zi,Ki,ye));function eo(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 to(e,t,o=20){if(typeof t=="string"&&(t=we(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ln(`${e}`,`${t}`);return eo(n)}else{let n=Qt(`${e}`,qn(`${t}`),20);return eo(n)}}function Yi(e,t=-1,o=!1,n=3,a=","){return vt(e,t,o,n,a)}function no(e,t,o,n,a=!0){if(e=="")return"";if(e=Mn(e),t=we(t),t==1)return e;if(n)e=to(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(we(o)+2,"0"):e=Qt(e,1,we(o)));else{let l=-1*t;e=to(e,l)}return e}function ro(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=Q(t.minInclude),a=en(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=Q(t.maxInclude),a=en(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const oo={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 Ui(e,t,o){return{props:{...he,...ve,...oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(!1),f=ae(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,w,E])=>{if(ce($)){c.value="";return}const L=no($,w,E,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:y}=Ie.useFoxI18n(t),v=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!ce(c.value)?$=Yi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=y(["placeholder",$]),$}),S=e,h=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__placeholder`]:c.value.length>0})),b=Ee(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const p=r.ref(""),x=r.computed(()=>{let $=p.value;return ce($)&&($=n.errorTip??""),$}),R=r.ref(""),D=r.ref(!1),I=($,w)=>{if($=`${$}`,ce($)){c.value="",f.value="",w.forEach(E=>{i(E,"")}),Q(n.showTip)&&D.value&&(D.value=!1);return}if($.length>=2){let E=$;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!Un($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Gn($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Xn($)>Number(n.decimalLength)){r.triggerRef(c);return}let E=ro($,n);if(E.maxValid===!1){p.value=E.message,r.triggerRef(c);return}}else if(n.min!=null&&we(n.min)>=0){r.triggerRef(c);return}R.value=$,Q(n.showTip)&&(D.value=$.length>0),c.value=$,f.value=no($,n.rates,n.precision,!0),w.forEach(E=>{i(E,f.value)})},O=$=>{I($,["update:modelValue","input"])},V=$=>{I($,["update:modelValue","change"])},A=$=>{if(u.value=!0,Q(n.showTip)){let w=c.value;ce(w)&&(w=n.hintText),ce(w)||(R.value=w,D.value=!0)}p.value="",i("focus",f.value,$)},k=$=>{if(setTimeout(()=>{u.value=!1,Q(n.showTip)&&D.value===!0&&(D.value=!1)},0),!ce(c.value)){let w=ro(c.value,n);if(w.minValid===!1||w.maxValid===!1){p.value=w.message;return}}i("update:modelValue",f.value,$),i("blur",f.value,$)},F=()=>{i("clear","")},K=r.computed(()=>ct(n.unit)>0),_=r.ref();return pe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const w={...a.attrs,ref:_,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:v.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onInput:O,onChange:V,onFocus:A,onBlur:k},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:K.value&&(E.suffix=()=>[n.unit]);const L=[],B=r.h(m.ElInput,w,E);L.push(B);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const P={...Se(n,oo),errorTip:x.value,hintText:R.value,hintVisible:D.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,P,z)}}}}const{componentName:Gi,create:Xi,scope:Zi}=ee("money-item"),ao=Xi(Ui(Gi,Zi,ye)),lo={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 Ji(e,t,o){return{props:{...he,...ve,...lo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ae(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0,[`${y}__append`]:O.value})),S=r.computed(()=>({[`${y}__unit`]:!0})),h=A=>{d.value=A,i("update:modelValue",A),i("input",A)},b=A=>{i("change",A)};let p=ae(n,"hintText"),x=r.ref(!1);const R=A=>{let F=A.target.value;c.value=!0,ce(p.value)||(x.value=!0),i("focus",F,A)},D=A=>{setTimeout(()=>{x.value&&(x.value=!1),c.value=!1},0);let F=A.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),i("blur",F,A)},I=()=>{i("clear","")},O=r.computed(()=>ct(n.unit)>0),V=r.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const k={...a.attrs,ref:V,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:b,onInput:h,onFocus:R,onBlur:D},F={},K=[],_=r.h(m.ElInputNumber,k,F);K.push(_);const $={default:()=>K};a.slots.default&&($.label=a.slots.default),a.slots.fixedTip&&($.fixedTip=a.slots.fixedTip);const E={...Se(n,lo),hintText:p.value,hintVisible:x.value,prop:`${n.prop}_item`};if(a.slots.append)$.append=a.slots.append;else if(O.value){const B={class:S.value},z=r.h("div",B,[n.unit]);$.append=()=>z}return r.h(o,E,$)}}}}const{componentName:Qi,create:es,scope:ts}=ee("input-number-item"),io=es(Ji(Qi,ts,ye));function Ye(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ue(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ns(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,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`),[]):(Me(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function os(){const e=r.getCurrentInstance();return new rs(e.proxy)}function Tn(e,t,o){const n=Ye(e,t),a=Ye(e,o);if(n!==a)return!1;const l=Ue(e,t),s=Ue(e,o);return l===s}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=[];let l=n;for(let s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=so(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ye(e,f)===i;else if(o==="item")u=Tn(e,f,i);else{let c=Ue(e,f);c==null&&(c=Ye(e,f)),u=c===i}if(u){a.push(f),l=ns(e,f);break}}if(!u)break}}return a}function as(e){return{text:e,value:e}}const uo={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 ls(e,t,o){return{props:{...he,...ve,...uo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),y=r.computed(()=>d.value?d.value.map(X=>Ye(n,X)).join(" "):""),v=(M,X,q,T=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===M)return;c.value=M;const H=r.toRaw(M);if(T){const G=oe?.value.getCheckedNodes();if(G)if(n.multiple){const Y=[];G.forEach(Z=>{const se=(Z.pathNodes??[]).map(fe=>fe.data);Y.push(se)}),i("update:pathNodes",Y)}else{const Z=(G[0]?.pathNodes??[]).map(le=>le.data);i("update:pathNodes",Z)}i("update:modelValue",H),i("change",H)}}const C=so(n,M,X,q);if(C===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,T&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let j=!0;if(C.length!==d.value.length)j=!1;else for(let H=0;H<C.length;H++){const G=C[H],Y=d.value[H];if(Array.isArray(G)){if(!Array.isArray(Y)||G.length!==Y.length)j=!1;else for(let Z=0;Z<G.length;Z++)if(!Tn(n,G[Z],Y[Z])){j=!1;break}}else Tn(n,G,Y)||(j=!1);if(!j)break}if(!j){d.value=C;let H=[],G=[];C.forEach(Z=>{if(Array.isArray(Z)){let le=[],se=[];for(let fe of Z)le.push(Ue(n,fe)),n.valueType==="text"?se.push(Ye(n,fe)):n.valueType==="item"?se.push(fe):se.push(Ue(n,fe));H.push(le),G.push(se)}else H.push(Ue(n,Z)),n.valueType==="text"?G.push(Ye(n,Z)):n.valueType==="item"?G.push(Z):G.push(Ue(n,Z))}),c.value=H;const Y=r.toRaw(G);T&&(i("update:pathNodes",C),i("update:modelValue",Y),i("change",Y))}},S=r.ref([]),h=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,M=>Q(M)),b=os(),p=async(M,X)=>{if(M){const q=await b.load("cascader",M,X);if(q.length>0)if(typeof q[0]=="string"){let j=q.map(H=>as(H));S.value=j}else S.value=q}};r.watch([()=>n.source,()=>n.params],async([M,X])=>{p(M,X)},{immediate:!(h.value||n.lazy)});let x=!1;const R=()=>{x||(x=!0,p(n.source,n.params))};r.watch([()=>S.value,()=>n.modelValue],([M,X])=>{v(X,n.valueType,M,!1)}),n.lazy&&v(n.modelValue,"value",[],!1);let D=null,I=r.ref(!1);typeof n.remoteMethod=="function"&&(D=async M=>{if(M!=null){I.value=!0;try{const X=await n.remoteMethod(M);S.value=X}catch(X){console.error(X)}I.value=!1}});const O=r.ref(!1),V=e,A=r.computed(()=>({[V]:!0})),k=r.computed(()=>{let M={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(M.multiple=!0),n.props&&Object.assign(M,n.props),n.lazy&&(M.lazy=!0,M.lazyLoad=async(X,q)=>{const T=await b.load("cascader",n.source,X,!0);q(T)}),M}),F=M=>{n.allowCreate?(i("update:modelValue",M),i("change",M),c.value=M):v(M,"value",S.value,!0)};let K=ae(n,"hintText"),_=r.ref(!1);const $=M=>{let q=M.target.value;O.value=!0,ce(K.value)||(_.value=!0),i("focus",q,M)},w=M=>{setTimeout(()=>{_.value&&(_.value=!1),O.value=!1},0);let q=M.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),W.value||i("blur",q,M)},E=()=>{i("clear","")},L=r.ref(!1);let B=null;const z=()=>{n.showTooltip&&L.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{L.value=!0},150))},N=()=>{B&&(clearTimeout(B),L.value=!1,B=null)},P=r.computed(()=>L.value||_.value),U=r.computed(()=>L.value?y.value:K.value),W=r.ref(!1),J=M=>{W.value=M,i("visible-change",M),M||i("selected")},re=M=>{i("remove-tag",M)},ne=M=>{i("expand-change",M)},oe=r.ref();return pe({focus:()=>{oe?.value.focus()},blur:()=>{oe?.value.blur()},getCheckedNodes:()=>oe?.value.getCheckedNodes()}),()=>{const X={...a.attrs,ref:oe,class:A.value,props:k.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:S.value,modelValue:c.value,onClear:E,onChange:F,onFocus:$,onBlur:w,onVisibleChange:J,onRemoveTag:re,expandChange:ne};typeof D=="function"&&(X["remote-method"]=D,X.loading=I.value);const q={};a.slots.option&&(q.default=a.slots.option),a.slots.empty&&(q.empty=a.slots.empty);const T=[],C=r.h(m.ElCascader,X,q);T.push(C);const j={default:()=>T};a.slots.default&&(j.label=a.slots.default),a.slots.fixedTip&&(j.fixedTip=a.slots.fixedTip);const G={...Se(n,uo),hintText:U.value,hintVisible:P.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:z,onMouseleave:N};return h.value&&!n.lazy&&(G["appear-listen"]=!0,G.onAppear=R),r.h(o,G,j)}}}}const{componentName:is,create:ss,scope:us}=ee("cascader-item"),co=ss(ls(is,us,ye)),fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cs(e,t,o){return{props:{...he,...ve,...fo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ae(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0})),S=V=>{d.value=V,i("update:modelValue",V),i("input",V)},h=V=>{i("change",V)},b=V=>{i("select",V)};let p=ae(n,"hintText"),x=r.ref(!1);const R=V=>{let k=V.target.value;c.value=!0,ce(p.value)||(x.value=!0),i("focus",k,V)},D=V=>{setTimeout(()=>{x.value&&(x.value=!1),c.value=!1},0);let k=V.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,V)},I=()=>{i("clear","")},O=r.ref();return pe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const A={...a.attrs,ref:O,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:I,onChange:h,onInput:S,onFocus:R,onBlur:D,onSelect:b},k={};a.slots.prepend&&(k.prepend=a.slots.prepend),a.slots.append&&(k.append=a.slots.append),a.slots.prefix&&(k.prefix=a.slots.prefix),a.slots.suffix&&(k.suffix=a.slots.suffix),a.slots.option&&(k.default=a.slots.option);const F=[],K=r.h(m.ElAutocomplete,A,k);F.push(K);const _={default:()=>F};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const w={...Se(n,fo),hintText:p.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,w,_)}}}}const{componentName:fs,create:ds,scope:hs}=ee("autocomplete-item"),ho=ds(cs(fs,hs,ye));function gs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(y=>y[n]===c);if(!d)break;s.push(d[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(y=>y[n]===c);if(!d)break;s.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(y=>y[n]===c);if(!d)break;s.push(d[o]),u=d[a]}}return s}let ms=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`),[]):(Me(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}const go={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 ys(e,t){return{props:{...go},setup(o,{attrs:n,slots:a}){const l=ps(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=gs(o.modelValue,s.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:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:of,create:bs,scope:af}=ee("mapping"),_t=bs(ys());function ws(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ss(e,t){return{props:{...go},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=ws(s.row,s.column.property);return a.default?r.h(_t,{...o,modelValue:i},{default:a.default}):r.h(_t,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:vs,scope:sf}=ee("table-mapping-column"),mo=vs(Ss()),Ts=Symbol.for("TableStateKey");function po(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function $s(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(Ts,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=po(i.row,i.column.property),f=l?po(l,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":c}};return r.h("label",v,[y])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:uf,create:xs,scope:cf}=ee("table-radio-column"),yo=xs($s()),Es={},Cs={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"},Ns=[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 ks(e,t){return r.openBlock(),r.createElementBlock("svg",Cs,Ns)}const Vs=Oe(Es,[["render",ks]]),{componentName:df,create:Os,scope:hf}=ee("table-setting"),Is={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:"不固定"}},Rs=Os({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:Vs,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Is},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(N=>N.label===""||N.type?!1:N.fixed===""||N.fixed===!0||N.fixed==="left")),s=r.computed(()=>a.value.filter(N=>N.label===""||N.type?!1:N.fixed==="right")),i=r.computed(()=>a.value.filter(N=>!(N.label===""||N.type||N.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=N=>N.length>1,y=N=>{const P=[];a.value=N.map((W,J)=>(!(W.label===""||W.type)&&W.visible!==!1&&P.push(W.prop),{...W,sortIndex:J})),i.value.length+l.value.length+s.value.length===P.length?x.value=!0:P.length>0&&(R.value=!0),O.value=P},v=N=>N?N.type?N.type:N.label?N.prop:"":"",S=(N,P)=>{if(N.length!==P.length)return!1;const U=N.map(W=>v(W));for(let W of P){const J=v(W);if(U.indexOf(J)===-1)return!1}return!0},h=N=>{if(!N){const P=e.tableRef.getColumnSetting(),U=P.srcColumnPropertyList;n=U.map((W,J)=>({...W,sortIndex:J})),N=P.columnPropertyList,N&&N.length>0&&S(U,N)||(N=U)}y(N)},b=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=r.ref(!1),R=r.ref(!1),D=N=>{const P=[];a.value.forEach(W=>{N&&!(W.label===""||W.type)&&P.push(W.prop),W.visible=N}),x.value=!1,R.value=!1,i.value.length+l.value.length+s.value.length===P.length?x.value=!0:P.length>0&&(R.value=!0),O.value=P,b()},I=()=>{h(n),b()},O=r.ref([]),V=N=>{a.value.forEach(U=>{if(U.label===""||U.type)return;const W=N.indexOf(U.prop)!==-1;U.visible=W}),x.value=!1,R.value=!1;const P=i.value.length+l.value.length+s.value.length;N.length===P?x.value=!0:N.length>0&&(R.value=!0),b()},A=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const k={currentRow:null,index:null,roleType:null},F=N=>N?N.dataset&&N.dataset.role==="row"?N:N.tagName.toLowerCase()!=="body"?(N=N.parentElement,F(N)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:x,isIndeterminate:R,handleCheckAllChange:D,handleReset:I,checkedValue:O,handleCheckChange:V,onShow:A,onDragStart:N=>{const P=N.currentTarget;P&&P.dataset&&(k.roleType=P.dataset.roleType,k.index=P.dataset.index)},onDragEnd:N=>{k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null),k.index=null,k.roleType=null},onDragOver:N=>{const P=N.currentTarget;N.relatedTarget;const U=F(P);if(!U)return;const W=U.dataset&&U.dataset.roleType;k.roleType===W&&(N.preventDefault(),k.currentRow&&k.currentRow!==U&&k.currentRow.classList.remove("is-dragover"),U.classList.add("is-dragover"),k.currentRow=U)},onDragLeave:N=>{N.preventDefault(),k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null)},onDrop:N=>{const P=N.currentTarget,U=F(P);if(!U)return;const W=U.dataset&&U.dataset.roleType;if(k.roleType!==W)return;N.preventDefault();const J=Number(k.index),re=Number(U.dataset.index);if(J!==re){if(J<re){const ne=a.value[J];a.value.splice(J,1),a.value.splice(re,0,ne)}else{const ne=a.value[J];a.value.splice(J,1),a.value.splice(re+1,0,ne)}y(a.value),b()}},toLeftFixed:N=>{const P=a.value[N];P.fixed="left",b()},toRightFixed:N=>{const P=a.value[N];P.fixed="right",b()},toUnFixed:N=>{const P=a.value[N];P.fixed=void 0,b()},checkboxLabelStyle:p}}}),As={class:"fox-table-setting"},Ds={class:"fox-table-setting__header"},Fs={class:"fox-table-setting__body"},Bs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ls={key:0,class:"fox-table-setting__body-title"},qs=["data-index","draggable"],Ms={class:"tools-item"},js={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"},zs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ws={key:0,class:"fox-table-setting__body-title"},Ks=["data-index","draggable"],Ys={class:"tools-item"};function Us(e,t,o,n,a,l){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),y=r.resolveComponent("Download"),v=r.resolveComponent("fox-checkbox"),S=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,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",As,[r.createElementVNode("div",Ds,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Fs,[r.createVNode(S,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Bs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ls,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ms,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(b.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:p=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,qs))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Hs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",zs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ws,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(v,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ys,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(b.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:p=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ks))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const $n=Oe(Rs,[["render",Us]]);let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){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,s,i]);const u=Ae(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Me(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function Xs(){const e=r.getCurrentInstance();return new Gs(e.proxy)}class Zs{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 Js(){const e=r.getCurrentInstance();return new Zs(e.proxy)}const Qs=Symbol.for("TableStateKey");function eu(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function xn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=eu(n,a);if(l!==s)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]},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"}},wo={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}},En={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 tu(e,t,o){return{inheritAttrs:!1,props:{...he,...ve,...bo,...wo,...En},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Ie.useFoxI18n(t),{emitEvent:s}=ge({componentName:e,validateHandler:{getValue(...T){return R.value}}},n.prop??a.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),y=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,T=>{y.value=T});const v=T=>{y.value=T,s("page-index-change",T)},S=r.ref(n.pageSize);r.watch(()=>n.pageSize,T=>{S.value=T});const h=T=>{S.value=T,s("page-size-change",T)},b=r.shallowRef({}),p=r.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),x=r.ref(0),R=r.ref(),D=Xs();let I=!0;const O=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:Q(n.autoLoad),V=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,T=>Q(T)),A=async(T,C,j,H)=>{try{const G=await D.load("table",T,C,j,H,I,l.value);x.value=G.totalSize,R.value=G.page}catch(G){console.error("[FoxUI] Load Table Data Fail",G),x.value=0,R.value=[]}I=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([y,S],([T,C],[j,H])=>{C!==H&&(y.value=1,T=1),A(n.data,T,C,p.value)}),r.watch([()=>n.data,p],([T,C],[j,H])=>{O()&&(T!==j&&(I=!0),!(!Array.isArray(T)&&je(T,j)&&je(C,H))&&A(T,y.value,S.value,C))},{deep:!0});const k=(T={},C=!1)=>new Promise(j=>{b.value=r.toRaw(T??{}),r.triggerRef(b),C||(y.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,y.value,S.value,p.value),j()})}),F=()=>{x.value=0,R.value=[]};let K=!1;const _=()=>{K||(K=!0,k())};O()&&!V.value&&k();const $=r.ref(null);r.provide(Qs,{currentRow:$});const w=(T,C)=>{$.value=T,s("current-change",T,C)},E=(T,C,j)=>{s("row-click",T,C,j),Q(n.rowClickSelectable)===!0&&q?.value.toggleRowSelection(T)},L=[],B=(T,C)=>{if(s("expand-change",T,C),Q(n.uniqueExpansion))if(Array.isArray(C)&&C.length==0){const j=L.length;L.splice(0,j)}else{L.forEach(H=>{H!==T&&q?.value.toggleRowExpansion(H,!1)});const j=L.length;L.splice(0,j,T)}},z=a.attrs.id??n.prop??a.attrs.name,N=Js(),P=r.ref([]);let U=[];const W=()=>({srcColumnPropertyList:U.map(C=>({...C})),columnPropertyList:P.value}),J=T=>{P.value=[...T],ne()},re=async()=>{const T=await N.load(z);T&&(P.value=T)},ne=()=>{N.save(z,P.value)},oe=()=>{N.remove(z)};re();const M=T=>T?T.type?T.type:T.label?T.prop:"":"",X=r.computed(()=>{if(typeof a.slots.default=="function"){const T=a.slots.default(),C=new Map;if(U=[],T.forEach(j=>{const H=j;if(!H.props)return;const G=M(H.props);C.set(G,j);const Y={label:"",prop:""};Object.assign(Y,H.props),U.push(Y)}),P.value.length===U.length){const j=[];for(let H of P.value){const G=M(H),Y=C.get(G);if(!Y)return T;if(H.visible===!1)continue;const Z=Y;Z.props.fixed=H.fixed,j.push(Z)}return j}return T}return[]}),q=r.ref();return pe({clearSelection:()=>q?.value.clearSelection(),getSelectionRows:()=>q?.value.getSelectionRows(),toggleRowSelection:(T,C)=>{q?.value.toggleRowSelection(T,C)},toggleRowSelectionByProp:(T,C)=>{if(!R.value)return;const j=xn(R.value,T);j.length!==0&&j.forEach(H=>{q?.value.toggleRowSelection(H,C)})},toggleAllSelection:()=>{q?.value.toggleAllSelection()},toggleRowExpansion:(T,C)=>{q?.value.toggleRowExpansion(T,C)},toggleRowExpansionByProp:(T,C)=>{if(!R.value)return;const j=xn(R.value,T);j.length!==0&&j.forEach(H=>{q?.value.toggleRowExpansion(H,C)})},setCurrentRow:T=>{q?.value.setCurrentRow(T)},setCurrentRowByProp:T=>{if(!R.value)return;const C=xn(R.value,T);C.length!==0&&q?.value.setCurrentRow(C[0])},getCurrentRow:()=>$.value,clearSort:()=>{q?.value.clearSort()},clearFilter:T=>{q?.value.clearFilter(T)},doLayout:()=>{q?.value.doLayout()},sort:(T,C)=>{q?.value.sort(T,C)},scrollTo:(T,C)=>{q?.value.scrollTo(T,C)},setScrollTop:T=>{q?.value.setScrollTop(T)},setScrollLeft:T=>{q?.value.setScrollLeft(T)},loadData:k,clearData:F,getData(){return R.value},getTotalSize(){return x.value},getPageIndex(){return y.value},getPageSize(){return S.value},getColumnSetting:W,setColumnSetting:J,removeColumnSetting:oe}),()=>{const C={...a.attrs,onCurrentChange:w,onRowClick:E,onExpandChange:B,data:R.value,ref:q,class:u.value},j={};a.slots.default&&(j.default=()=>X.value),a.slots.append&&(j.append=a.slots.append),a.slots.empty&&(j.empty=a.slots.empty);const H=[],G=r.h(m.ElTable,C,j);H.push(G);let Y=null;if(typeof a.slots.pagination=="function")Y=a.slots.pagination();else if(n.showPagination){const Ce={class:d.value,total:x.value,pageSize:S.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:y.value,"onUpdate:currentPage":v,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};Y=r.h(m.ElPagination,Ce)}if(n.showSetting){const Ce=[];Y&&Ce.push(Y);const Xe=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(ke.Setting)}),lt=Jn(n,En),it=r.h($n,{...lt,tableRef:{getColumnSetting:W,setColumnSetting:J,removeColumnSetting:oe}},{default:()=>Xe});Ce.push(it);const In=r.h("div",{class:c.value},Ce);H.push(In)}else Y&&H.push(Y);const Z={default:()=>H},se={...Se(n,bo,wo,En),prop:`${n.prop}_item`};return se.contentClass=`${i}__wrap`,se.errorMarkClass="is-table-error",V.value&&O()&&(se["appear-listen"]=!0,se.onAppear=_),r.h(o,se,Z)}}}}const{componentName:nu,create:ru,scope:ou}=ee("table-item"),So=ru(tu(nu,ou,ye));function nt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lu=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`),[]):(Me(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function iu(){const e=r.getCurrentInstance();return new lu(e.proxy)}function vo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=nt(e,t),a=nt(e,o);if(n!==a)return!1;const l=bt(e,t),s=bt(e,o);return l===s}function su(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 s=!1;if(o==="text")s=nt(e,l)===t;else if(o==="item")s=vo(e,l,t);else{let i=bt(e,l);i==null&&(i=nt(e,l)),s=i===t}if(s){a=l;break}}return a}function uu(e){return{text:e,value:e}}function cu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const To={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 fu(e,t,o){return{inheritAttrs:!0,props:{...he,...ve,...To},emits:["change","update:modelValue"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(V,A,k,F=!0)=>{const K=su(n,V,A,k);if(K===null){if(f.value===null)return;f.value=null,u.value=null,F&&(i("update:modelValue",null),i("change",null));return}if(!vo(n,K,f.value)){u.value=V;const $=r.toRaw(K);f.value=$;let w=null;n.valueType==="text"?w=nt(n,$):n.valueType==="item"?w=$:w=bt(n,$),F&&(i("update:modelValue",w),i("change",w))}},d=r.ref([]),y=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,V=>Q(V)),v=iu(),S=async(V,A)=>{if(V){const k=await v.load("radio",V,A);if(k.length>0)if(typeof k[0]=="string"){let _=k.map($=>uu($));d.value=_}else d.value=k}};r.watch([()=>n.source,()=>n.params],async([V,A])=>{S(V,A)},{immediate:!y.value});let h=!1;const b=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,A])=>{c(A,n.valueType,V,!1)});const p=e,x=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),R=V=>{c(V,"value",d.value,!0)};let D=ae(n,"hintText"),I=ae(n,"hintVisible");const O=(V,A)=>{const k=[];return V.forEach((F,K)=>{const _=bt(n,F),$=nt(n,F);let w=au(n,F);l.value===!0&&(w=l.value),s.value===!0&&(w=s.value);const E=cu(n,F,K)??{},L=`${_}_${K}`,B={...E,key:L,label:_,disabled:w,size:n.size,border:Q(n.border)};n.itemType==="button"?k.push(r.h(m.ElRadioButton,B,{default:()=>[$]})):typeof A=="function"?k.push(r.h(m.ElRadio,B,{default:()=>A(F)})):k.push(r.h(m.ElRadio,B,{default:()=>[$]}))}),k};return()=>{const A={...a.attrs,class:x.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:R},k=[],F={};a.slots.options?F.default=a.slots.options:F.default=()=>O(d.value,a.slots.text);const K=r.h(m.ElRadioGroup,A,F);k.push(K);const _={default:()=>k};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const w={...Se(n,To),hintText:D.value,hintVisible:I.value,prop:`${n.prop??a.attrs.name}_item`};return y.value&&(w["appear-listen"]=!0,w.onAppear=b),r.h(o,w,_)}}}}const{componentName:du,create:hu,scope:gu}=ee("radio-item"),$o=hu(fu(du,gu,ye));function rt(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 mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class pu{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`),[]):(Me(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function yu(){const e=r.getCurrentInstance();return new pu(e.proxy)}function xo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=rt(e,t),a=rt(e,o);if(n!==a)return!1;const l=ot(e,t),s=ot(e,o);return l===s}function bu(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 s of n){let i=!1;if(o==="text")i=rt(e,s)===l;else if(o==="item")i=xo(e,s,l);else{let u=ot(e,s);u==null&&(u=rt(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function wu(e){return{text:e,value:e}}function Su(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Eo={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 vu(e,t,o){return{inheritAttrs:!0,props:{...he,...ve,...Eo},emits:["change","update:modelValue"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(V,A,k,F=!0)=>{const K=bu(n,V,A,k);if(K===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],F&&(i("update:modelValue",[]),i("change",[]));return}let _=!0;if(K.length!==f.value.length)_=!1;else for(let $=0;$<K.length;$++){const w=K[$],E=f.value[$];if(!xo(n,w,E)){_=!1;break}}if(!_){f.value=K;let $=[],w=[];K.forEach(L=>{$.push(ot(n,L)),n.valueType==="text"?w.push(rt(n,L)):n.valueType==="item"?w.push(L):w.push(ot(n,L))}),u.value=$;const E=r.toRaw(w);F&&(i("update:modelValue",E),i("change",E))}},d=r.ref([]),y=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,V=>Q(V)),v=yu(),S=async(V,A)=>{if(V){const k=await v.load("checkbox",V,A);if(k.length>0)if(typeof k[0]=="string"){let _=k.map($=>wu($));d.value=_}else d.value=k}};r.watch([()=>n.source,()=>n.params],async([V,A])=>{S(V,A)},{immediate:!y.value});let h=!1;const b=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,A])=>{c(A,n.valueType,V,!1)});const p=e,x=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),R=V=>{c(V,"value",d.value,!0)};let D=ae(n,"hintText"),I=ae(n,"hintVisible");const O=(V,A)=>{const k=[];return V.forEach((F,K)=>{const _=ot(n,F),$=rt(n,F);let w=mu(n,F);l.value===!0&&(w=l.value),s.value===!0&&(w=s.value);const E=Su(n,F,K)??{},L=`${_}_${K}`,B={...E,key:L,class:n.itemClass,label:_,disabled:w,size:n.size,border:Q(n.border)};n.itemType==="button"?k.push(r.h(m.ElCheckboxButton,B,{default:()=>[$]})):typeof A=="function"?k.push(r.h(m.ElCheckbox,B,{default:()=>A(F)})):k.push(r.h(m.ElCheckbox,B,{default:()=>[$]}))}),k};return()=>{const A={...a.attrs,class:x.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:we(n.max),min:we(n.min),onChange:R},k=[],F={};a.slots.options?F.default=a.slots.options:F.default=()=>O(d.value,a.slots.text);const K=r.h(m.ElCheckboxGroup,A,F);k.push(K);const _={default:()=>k};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const w={...Se(n,Eo),hintText:D.value,hintVisible:I.value,prop:`${n.prop??a.attrs.name}_item`};return y.value&&(w["appear-listen"]=!0,w.onAppear=b),r.h(o,w,_)}}}}const{componentName:Tu,create:$u,scope:xu}=ee("checkbox-item"),Co=$u(vu(Tu,xu,ye)),No={modelValue:{type:[Number,String],required:!1}};function Eu(e,t,o){return{props:{...he,...ve,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=ae(n,"modelValue",h=>we(h)),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let y=ae(n,"hintText"),v=r.ref(!1);const S=r.ref();return pe({}),()=>{const b={...a.attrs,ref:S,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},x=[],R=r.h(m.ElRate,b,p);x.push(R);const D={default:()=>x};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const O={...Se(n,No),hintText:y.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,O,D)}}}}const{componentName:Cu,create:Nu,scope:ku}=ee("rate-item"),ko=Nu(Eu(Cu,ku,ye)),Vo={modelValue:{type:[Boolean,String,Number],required:!1}};function Vu(e,t,o){return{props:{...he,...ve,...Vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=ae(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let y=ae(n,"hintText"),v=ae(n,"hintVisible");const S=r.ref();return pe({}),()=>{const b={...a.attrs,ref:S,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},x=[],R=r.h(m.ElSwitch,b,p);x.push(R);const D={default:()=>x};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const O={...Se(n,Vo),hintText:y.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,O,D)}}}}const{componentName:Ou,create:Iu,scope:Ru}=ee("switch-item"),Oo=Iu(Vu(Ou,Ru,ye)),Io={modelValue:{type:[String,Number,Boolean],required:!1}};function Au(e,t,o){return{props:{...he,...ve,...Io},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=ae(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),y=I=>{u("update:modelValue",I),u("change",I)};let v=ae(n,"hintText"),S=r.ref(!1);const h=I=>{let V=I.target.value;i.value=!0,ce(v.value)||(S.value=!0),u("focus",V,I)},b=I=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let V=I.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),x.value||u("blur",V,I)},p=()=>{u("clear","")},x=r.ref(!1),R=I=>{x.value=I,u("visible-change",I),I||u("selected")},D=r.ref();return pe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const O={...a.attrs,ref:D,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:p,onFocus:h,onBlur:b,onVisibleChange:R},V={};a.slots.option&&(V.default=a.slots.option);const A=[],k=r.h(m.ElTreeSelect,O,V);A.push(k);const F={default:()=>A};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const _={...Se(n,Io),hintText:v.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,_,F)}}}}const{componentName:Du,create:Fu,scope:Bu}=ee("tree-select-item"),Ro=Fu(Au(Du,Bu,ye)),Lu=Symbol.for("InnerPageScopeKey"),qu=Symbol.for("PageWrapperKey");function Mu(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(Lu,!0);const a={};r.provide(qu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...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":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:gf,create:ju,scope:mf}=ee("dialog-item"),Ao=ju(Mu());function _u(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})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=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 h={class:s.value,style:i.value};c=r.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],v=r.h("div",d,y),S={class:l.value};return o.textPosition==="right"?r.h("div",S,[c,v]):r.h("div",S,[v,c])}}}}const{componentName:Pu,create:Hu,scope:pf}=ee("indicator"),Do=Hu(_u(Pu));function zu(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 Wu={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 Ku(e,t){return{props:{...Wu},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(y=>{c[y]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),i=c=>{if(c&&Q(o.showOverflowTooltip)){const d=c.clientWidth;zu(c,y=>{a.value=y<=d})}};let u=null;r.onMounted(()=>{if(!Q(o.showOverflowTooltip))return;const c=l.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let y=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const v=o.highlightFilter;if(c.indexOf(v)!==-1){const h=c.replace(new RegExp(v,"g"),`<span>${v}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,y=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const v=o.highlightFilter(c);v&&(d.innerHTML=v,d.class["is-highlight"]=!0,y=r.h(o.tag,d))}return y};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(Q(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const b=h[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const p=we(o.digits),x=we(o.decimalLength),R=Q(o.autoPadding);let D=`${h[0].children}`,I=D.split("").reverse().join("");I=vt(I,x,R,p,o.separator),D=I.split("").reverse().join("");let O=null;o.highlightFilter!==void 0&&(O=f(D,d)),O||(d.innerHTML=D,O=r.h(o.tag,d)),c.default=()=>O}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const b=n.slots.default();if(Array.isArray(b)&&b.length===1){const p=b[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const x=`${b[0].children}`;h=f(x,d),h||(d.innerHTML=x,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>h}const v={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,v,c)}}}}const{componentName:Yu,create:Uu,scope:yf}=ee("text"),Fo=Uu(Ku(Yu)),Gu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ke.ArrowUp}};function Xu(e,t,o){return{props:{...Gu},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}),s=ae(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},b=r.h("span",h,[i.value]);d.push(b)}const y={class:f.value},v=o(n.icon,y);return v&&d.push(v),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Zu,create:Ju,scope:Qu}=ee("more-button"),Bo=Ju(Xu(Zu,Qu,(e,t)=>(e=e??ke.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:ec,create:tc,scope:wf}=ee("tour"),nc=tc({components:{Close:ke.Close,ElPopover:m.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=ec,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:S,maskWidth:h,maskHeight:b}=e,{width:p,height:x,left:R,top:D}=a.value,I=e.steps[n.active].offset??S,O=[R+p/2,D+x/2],V=Number(h||p),A=Number(b||x);return{width:`${V+ +I.left+I.right}px`,height:`${A+I.top+I.bottom}px`,top:`${O[1]-A/2-+I.top}px`,left:`${O[0]-V/2-+I.left}px`}}),i=S=>{S=="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=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,c=()=>{const S=document.querySelector(`${e.steps[n.active].target}`),h=bn(S);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},v=(S,h=0)=>{S&&c(),e.steps,n.active=h,n.showTour=S,n.showPopup=S};return r.onMounted(()=>{v(e.modelValue,e.current)}),r.watch(()=>e.modelValue,S=>{v(S)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),rc={key:0,class:"fox-tour__content"},oc={key:0,class:"fox-tour__content-top"},ac={class:"fox-tour__content-inner"},lc={class:"fox-tour__content-bottom"},ic={class:"fox-tour__content-bottom-init"},sc={class:"fox-tour__content-bottom-operate"},uc={key:1,class:"fox-tour__content fox-tour__content-tile"},cc={class:"fox-tour__content-inner"};function fc(e,t,o,n,a,l){const s=r.resolveComponent("Close"),i=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",rc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",oc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",ac,r.toDisplayString(f.content),1),r.createElementVNode("div",lc,[r.createElementVNode("div",ic,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",sc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{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(i,{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(i,{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",uc,[r.createElementVNode("div",cc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Lo=Oe(nc,[["render",fc]]),xe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Ge=e=>e==null,qo=10;function dc(e,t){return e>t&&e>qo?"horizontal":t>e&&t>qo?"vertical":""}function hc(){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 i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=dc(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function gc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function mc(e){e.stopPropagation()}function pc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&mc(e)}class yc{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=gc()}open(t){this.el=t;const o=hc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};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()&&pc(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 Mo(e,t){return new yc(e,t)}var jo;const Cn=typeof window<"u";Cn&&((jo=window?.navigator)!=null&&jo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let at=[];const _o=e=>{const t=e;t.key==="Escape"&&at.forEach(o=>o(t))},bc=e=>{r.onMounted(()=>{at.length===0&&document.addEventListener("keydown",_o),Cn&&at.push(e)}),r.onBeforeUnmount(()=>{at=at.filter(t=>t!==e),at.length===0&&Cn&&document.removeEventListener("keydown",_o)})},Nn="fox-focus-trap.focus-after-trapped",kn="fox-focus-trap.focus-after-released",wc="fox-focus-trap.focusout-prevented",Po={cancelable:!0,bubbles:!1},Sc={cancelable:!0,bubbles:!1},Ho="foxFocusAfterTrapped",zo="foxFocusAfterReleased",vc=Symbol("foxFocusTrap"),Vn=r.ref(),Pt=r.ref(0),On=r.ref(0);let Ht=0;const Wo=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},Tc=(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},Ko=(e,t)=>{for(const o of e)if(!Tc(o,t))return o},$c=e=>{const t=Wo(e),o=Ko(t,e),n=Ko(t.reverse(),e);return[o,n]},xc=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),On.value=window.performance.now(),e!==o&&xc(e)&&t&&e.select()}};function Yo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Ec=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Yo(e,n),e.unshift(n)},remove:n=>{e=Yo(e,n),e[0]?.resume?.()}}},Cc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(He(n,t),document.activeElement!==o)return},Uo=Ec(),Nc=()=>Pt.value>On.value,zt=()=>{Vn.value="pointer",Pt.value=window.performance.now()},Go=()=>{Vn.value="keyboard",Pt.value=window.performance.now()},kc=()=>(r.onMounted(()=>{Ht===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",Go)),Ht++}),r.onBeforeUnmount(()=>{Ht--,Ht<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",Go))}),{focusReason:Vn,lastUserFocusTimestamp:Pt,lastAutomatedFocusTimestamp:On}),Wt=e=>new CustomEvent(wc,{...Sc,detail:e}),{componentName:Sf,create:Vc,scope:vf}=ee("focus-trap"),Oc=Vc({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:[Ho,zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=kc();bc(h=>{Q(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&&!Q(e.trapped)||i.paused)return;const{key:b,altKey:p,ctrlKey:x,metaKey:R,currentTarget:D,shiftKey:I}=h,{loop:O}=e,V=b==="Tab"&&!p&&!x&&!R,A=document.activeElement;if(V&&A){const k=D,[F,K]=$c(k);if(F&&K){if(!I&&A===K){const $=Wt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),O&&He(F,!0))}else if(I&&[F,k].includes(A)){const $=Wt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),O&&He(K,!0))}}else if(A===k){const $=Wt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};r.provide(vc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[b])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),b&&(b.removeEventListener("keydown",u),b.removeEventListener("focusin",d),b.removeEventListener("focusout",y))});const f=h=>{o(Ho,h)},c=h=>o(zo,h),d=h=>{const b=r.unref(n);if(!b)return;const p=h.target,x=h.relatedTarget,R=p&&b.contains(p);Q(e.trapped)||x&&b.contains(x)||(a=x),R&&o("focusin",h),!i.paused&&Q(e.trapped)&&(R?l=p:He(l,!0))},y=h=>{const b=r.unref(n);if(!(i.paused||!b))if(!e.escape&&Q(e.trapped)){const p=h.relatedTarget;!an(p)&&!b.contains(p)&&setTimeout(()=>{if(!i.paused&&Q(e.trapped)){const x=Wt({focusReason:s.value});o("focusout-prevented",x),x.defaultPrevented||He(l,!0)}},0)}else{const p=h.target;p&&b.contains(p)||o("focusout",h)}};async function v(){await r.nextTick();const h=r.unref(n);if(h){Uo.push(i);const b=h.contains(document.activeElement)?a:document.activeElement;if(a=b,!h.contains(b)){const x=new Event(Nn,Po);h.addEventListener(Nn,f),h.dispatchEvent(x),x.defaultPrevented||r.nextTick(()=>{let R=e.focusStartEl;jn(R)||(He(R),document.activeElement!==R&&(R="first")),R==="first"&&Cc(Wo(h),!0),(document.activeElement===b||R==="container")&&He(h)})}}}function S(){const h=r.unref(n);if(h){h.removeEventListener(Nn,f);const b=new CustomEvent(kn,{...Po,detail:{focusReason:s.value}});h.addEventListener(kn,c),h.dispatchEvent(b),!b.defaultPrevented&&(s.value=="keyboard"||!Nc())&&He(a??document.body,!0),h.removeEventListener(kn,f),Uo.remove(i)}}return r.onMounted(()=>{Q(e.trapped)&&v(),r.watch(()=>e.trapped,h=>{Q(h)?v():S()})}),r.onBeforeUnmount(()=>{Q(e.trapped)&&S()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Ic,create:Rc,scope:$f}=ee("floating-window"),Ac=Symbol.for("InnerPageScopeKey"),Dc=Symbol.for("PageWrapperKey"),Fc={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Bc=Rc({inheritAttrs:!1,components:{FoxIcon:m.ElIcon,FocusTrap:Oc},props:{...Fc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Ic,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,T=>{n.value=T});const a=r.computed(()=>n.value===!1?!1:!A.value),l=r.ref(e.left),s=r.ref(e.top),i=r.ref(e.right),u=r.ref(e.bottom),f=r.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=r.computed(()=>{const T={};return Ge(l.value)?T.left="auto":T.left=xe(l.value),Ge(s.value)?T.top="auto":T.top=xe(s.value),Ge(i.value)?T.right="auto":T.right=xe(i.value),Ge(u.value)?T.bottom="auto":T.bottom=xe(u.value),Ge(e.zIndex)||(T["z-index"]=xe(e.zIndex)),Ge(O.value)||(T.height=O.value),Ge(V.value)||(T.width=V.value),T}),d=r.computed(()=>e.closeIcon??ke.Close);r.provide(Ac,!0);const y={};r.provide(Dc,y);const v=()=>{typeof y.beforeClose=="function"?y.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.computed(()=>e.collapseIcon??ke.ArrowUp),h=r.computed(()=>e.collapseText??""),b=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),p=r.computed(()=>e.expandText??e.title??"展开"),x=r.computed(()=>({[`${o}__collapse-text`]:!0})),R=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),D=r.ref(),I=r.ref(),O=r.computed(()=>xe(e.height)||""),V=r.computed(()=>xe(e.width)||""),A=r.ref(Q(e.collapse)),k=(T,C=!0)=>{A.value!==T&&(A.value=T,T?N():P(),t("update:collapse",T))};r.watch(()=>e.collapse,T=>{k(T)});const F=()=>{K()},K=T=>{T=T??!A.value,k(T)},_=r.ref(null),$=r.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}),w=r.ref(""),E=r.computed(()=>{const T={};return w.value?T.top=w.value:e.collapseTop&&(T.top=e.collapseTop),T}),L=r.ref(A.value);let B=null;const z=()=>{typeof B=="function"&&(B(),B=null)},N=()=>{_.value&&_.value.classList.add("slide-in"),L.value=!0,B=()=>{_.value&&_.value.classList.remove("slide-in")}},P=()=>{_.value&&_.value.classList.add("slide-out"),B=()=>{_.value&&_.value.classList.remove("slide-out"),L.value=!1}},U=()=>{l.value=null,s.value=null,i.value=null,u.value=null},W={x:0,y:0},ne=Mo(T=>{if(!D.value)return;const C=D.value;if(U(),e.origin==="left-top")l.value=C.offsetLeft,s.value=C.offsetTop,W.x=l.value,W.y=s.value;else if(e.origin==="left-bottom"){const j=document.documentElement.clientHeight||document.body.clientHeight;l.value=C.offsetLeft,u.value=j-(C.offsetTop+C.offsetHeight),W.x=l.value,W.y=u.value}else if(e.origin==="right-bottom"){const j=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight;i.value=j-(C.offsetLeft+C.offsetWidth),u.value=H-(C.offsetTop+C.offsetHeight),W.x=i.value,W.y=u.value}else{const j=document.documentElement.clientWidth||document.body.clientWidth;i.value=j-(C.offsetLeft+C.offsetWidth),s.value=C.offsetTop,W.x=i.value,W.y=s.value}},T=>{if(!D.value)return;const C=D.value;U(),e.origin==="left-top"?(l.value=W.x+T.x,s.value=W.y+T.y,C.style.left=xe(l.value),C.style.top=xe(s.value)):e.origin==="left-bottom"?(l.value=W.x+T.x,u.value=W.y-T.y,C.style.left=xe(l.value),C.style.bottom=xe(u.value)):e.origin==="right-bottom"?(i.value=W.x-T.x,u.value=W.y-T.y,C.style.right=xe(i.value),C.style.bottom=xe(u.value)):(i.value=W.x-T.x,s.value=W.y+T.y,C.style.right=xe(i.value),C.style.top=xe(s.value))}),oe={x:0,y:0},q=Mo(T=>{_.value&&(oe.x=_.value.offsetLeft,oe.y=_.value.offsetTop)},T=>{if(!_.value)return;const C=oe.y+T.y;w.value=`${C}px`});return r.onMounted(()=>{e.draggable&&I.value&&D.value&&ne.open(I.value),e.collapse===!0&&k(e.collapse,!1),_.value&&q.open(_.value)}),r.onBeforeUnmount(()=>{e.draggable&&I.value&&ne.close(),_.value&&q.close()}),{classes:f,styles:c,isShow:a,closeIcon:d,onClose:v,dialogRef:D,headerRef:I,onClickToggle:F,collapseIcon:S,collapseText:h,collapseTextClasses:x,collapseIconClasses:R,expandIcon:b,expandText:p,isShowFixedNav:L,fixedNavRef:_,fixedNavClasses:$,fixedNavStyles:E,onAnimationEnd:z}}}),Lc={ref:"headerRef",class:"fox-floating-window__header"},qc={class:"fox-floating-window__title"},Mc={class:"fox-floating-window__tools"},jc={class:"fox-floating-window__body"},_c={class:"fox-floating-window__fixednav__text"};function Pc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[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(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Lc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",qc,r.toDisplayString(e.title),1),r.createElementVNode("div",Mc,[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(s,{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(s,{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,["disabled"])),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(s,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",_c,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],64)}const Xo=Oe(Bc,[["render",Pc]]);function Hc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return ir(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:xf,create:zc,scope:Ef}=ee("domain-provider"),Zo=zc(Hc()),Wc={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 Kc(e,t){return{inheritAttrs:!1,props:Wc,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const s=(y,v)=>{if(c===null){l.set(y,{visible:null,callback:v});return}a.has(y)&&c.unobserve(y),a.set(y,{visible:null,callback:v}),c.observe(y)},i=y=>{if(c===null){l.delete(y);return}a.has(y)&&(a.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;Sl({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(y,v,S)=>{c=new IntersectionObserver(h=>{for(let b of h){let p=!1;b.intersectionRatio>0&&(p=!0);const x=a.get(b.target);if(x)try{if(o.loadPolicy==="lazy"&&!p&&x.visible!==null)return;x.visible=p,x.callback(p)}catch(R){console.error(R)}}},{root:y,rootMargin:v,threshold:S}),l.forEach((h,b)=>{a.set(b,h),c?.observe(b)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([y,v])=>{if(v||!y||c)return;let S=null;typeof y=="string"?S=document.querySelector(y):S=y,S&&d(S,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Cf,create:Yc,scope:Nf}=ee("rolling-provider"),Jo=Yc(Kc()),Qo=10;function Uc(e,t){return e>t&&e>Qo?"horizontal":t>e&&t>Qo?"vertical":""}function Gc(){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),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",v=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:b=>{const p=b.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Uc(u.value,f.value))},start:b=>{v(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY,o.value=Date.now()},reset:v,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const Xc=[pr,yr,br,wr,$r,ye,Vr,Or,Mt,Rr,Lr,Gr,Zr,Qr,ao,io,co,ho,mo,yo,$n,So,$o,Co,ko,Oo,Ro,Ao,_t,wn,Do,Fo,Bo,Lo,Xo,Zo,Jo],Zc=new ja(Xc,[Ha],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=ho,g.Broadcast=ln,g.BroadcastKey=de,g.CascaderItem=co,g.CheckboxItem=Co,g.Content=wr,g.DataItemsKey=Je,g.DateItem=Gr,g.DateUtils=yt,g.DialogItem=Ao,g.Domain=Nt,g.DomainKey=Ne,g.DomainProvider=Zo,g.FloatingWindow=Xo,g.FooterBar=br,g.Group=$r,g.HeaderBar=yr,g.HintText=Mt,g.Indicator=Do,g.InputItem=Rr,g.InputNumberItem=io,g.Item=ye,g.Mapping=_t,g.MoneyItem=ao,g.MoreButton=Bo,g.Page=pr,g.Price=wn,g.PriorityPolicy=Ve,g.RadioItem=$o,g.RateItem=ko,g.RollingProvider=Jo,g.RowItem=Or,g.SelectItem=Lr,g.SlotItem=Vr,g.SwitchItem=Oo,g.TableItem=So,g.TableMappingColumn=mo,g.TableRadioColumn=yo,g.TableSetting=$n,g.Text=Fo,g.TimeItem=Zr,g.TimeSelectItem=Qr,g.Tour=Lo,g.TreeSelectItem=Ro,g.UniqueID=Nr,g.ValidateSchema=or,g.ValidateSchemaKey=Fe,g.cancelRaf=na,g.clearNonNumber=ya,g.clone=rn,g.compareTo=en,g.createBroadcast=xt,g.createValidateSchema=Ct,g.debounce=ht,g.debounceRef=Oa,g.decimalLength=Xn,g.default=Zc,g.defineBroadcast=va,g.defineConfigDomain=ir,g.defineDataItem=ur,g.defineDomain=cn,g.defineItem=ge,g.definePageState=cr,g.deleteGlobalValidator=Ea,g.disabledProperty=$e,g.divide=Qt,g.excludeProps=Se,g.extend=We,g.floatData=Sa,g.getGlobalValidateCheckEvents=tr,g.getGlobalValidateResetEvents=rr,g.getPageContentAreaHeight=Vt,g.getPageContentAreaWidth=Ot,g.getPageFooterAreaHeight=mt,g.getPageHeaderAreaHeight=gt,g.getRootDomain=Qe,g.hasSymbol=Pn,g.includeProps=Jn,g.indexOf=ba,g.installRules=sr,g.integerLength=Gn,g.isArray=la,g.isArrayLike=Wn,g.isBrowser=Ze,g.isDate=ua,g.isESModule=da,g.isEmptyString=ce,g.isEqual=je,g.isFunction=tn,g.isHidden=zn,g.isInnerPage=Aa,g.isMap=ia,g.isNil=an,g.isNumberString=Un,g.isObject=Me,g.isPlainObject=nn,g.isPromise=fa,g.isRegExp=Yn,g.isSet=sa,g.isString=jn,g.isSubPage=Da,g.isSymbol=ca,g.isWindow=Hn,g.lastIndexOf=wa,g.makeArray=pa,g.merge=Kn,g.multiply=Ln,g.negate=qn,g.nextTick=ga,g.numberFormat=vt,g.objectToString=_n,g.once=Ia,g.property=Ee,g.raf=aa,g.readonlyProperty=Te,g.setGlobalValidateCheckEvents=Ca,g.setGlobalValidateHandler=$a,g.setGlobalValidateMessages=ka,g.setGlobalValidateResetEvents=Na,g.setGlobalValidator=xa,g.throttle=lr,g.toBoolean=Q,g.toNumber=we,g.toPadding=Re,g.toPx=ie,g.toPxDesc=me,g.toTypeString=Tt,g.toValue=ae,g.tryTimes=sn,g.typeOf=$t,g.unNumberFormat=Mn,g.updatePageState=fn,g.useBroadcast=ft,g.useDomain=Be,g.useExpose=pe,g.useInnerSize=mn,g.usePageState=kt,g.usePosition=xr,g.useRect=bn,g.useSize=gn,g.useTouch=Gc,g.valueLength=ct,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function vt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=be(e),t=be(t),[e,t]=Ut(be(e),be(t)),o==1&&(n==1?e=Yt(e):t=Yt(t));let a=Rn(e,t);return o?o==2?"-"+be(a):e.length<a.length?be(a.substring(1)):"-"+be(Yt(a)):be(a)}function Yt(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return Rn(t,l)}function be(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Ut(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 Rn(e,t){[e,t]=Ut(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 ce=(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))(ce||{});function st(e,t=0,o=ce.HALF_EVEN){if(o===ce.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],s=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)+s,u=st(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,An(a[1],l,n,o)?(n?"-":"")+Gt(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");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&An(i,s,n,o)&&(s=Gt(s),s.length>t)?(n?"-":"")+Gt(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function An(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ce.DOWN||!o&&n===ce.FLOOR||o&&n===ce.CEILING)return!1;if(n===ce.UP||o&&n===ce.FLOOR||!o&&n===ce.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 ce.HALF_DOWN:return!1;case ce.HALF_UP:return!0;case ce.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Gt(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 Xt(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=ut(e),t=ut(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=ut(e.replace(".","")),t=ut(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let v=t.length-1;v>=f&&v>=0;v--)u[v]>-1&&u[v]<e.length&&(y+=parseInt(e[u[v]--])*parseInt(t[v]));y+=i,i=Math.floor(y/10),c=y%10+c,f--}return c=ut(oa(c,l)),o==1&&(c="-"+c),c}function oa(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 ut(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 Zt(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=be(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=be(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=be(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=be(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=be(e.replace(".","")))}let l=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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=vt(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+be(st(i,o-2))}function Jt(e,t){return e=e.toString(),t=t.toString(),t=Qt(t),vt(e,t)}function Qt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Dn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Fn(e),Fn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Jt(e,Xt(t,st(Zt(e,t),0,ce.FLOOR)));return o+n}function Fn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Bn(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]=Ut(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 ne{value;static RoundingModes=ce;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=be(o);let 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+be(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=ne.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=ne.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return ne.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ce.HALF_EVEN){if(t=ne.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return st(t,o,n)}round(t=0,o=ce.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ne(st(this.value,t,o))}static floor(t){return t=ne.validate(t),t.indexOf(".")===-1?t:ne.round(t,0,ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,ce.FLOOR)}static ceil(t){return t=ne.validate(t),t.indexOf(".")===-1?t:ne.round(t,0,ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,ce.CEILING)}static add(t,o){return t=ne.validate(t),o=ne.validate(o),vt(t,o)}add(t){return new ne(vt(this.value,t.getValue()))}static subtract(t,o){return t=ne.validate(t),o=ne.validate(o),Jt(t,o)}subtract(t){return new ne(Jt(this.value,t.getValue()))}static multiply(t,o){return t=ne.validate(t),o=ne.validate(o),Xt(t,o)}multiply(t){return new ne(Xt(this.value,t.getValue()))}static divide(t,o,n){return t=ne.validate(t),o=ne.validate(o),Zt(t,o,n)}divide(t,o){return new ne(Zt(this.value,t.getValue(),o))}static modulus(t,o){return t=ne.validate(t),o=ne.validate(o),Dn(t,o)}modulus(t){return new ne(Dn(this.value,t.getValue()))}static compareTo(t,o){return t=ne.validate(t),o=ne.validate(o),Bn(t,o)}compareTo(t){return Bn(this.value,t.getValue())}static negate(t){return t=ne.validate(t),Qt(t)}negate(){return new ne(Qt(this.value))}}function Ln(e,t){return ne.multiply(`${e}`,`${t}`)}function en(e,t,o=8){return ne.divide(`${e}`,`${t}`,o)}function tn(e,t){return e=`${e}`,t=`${t}`,ne.compareTo(e,t)}function qn(e){return ne.negate(e)}function Tt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=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="",y=i.split("").reverse();for(let v=0;v<y.length;v++)d+=y[v]+((v+1)%n==0&&v+1!=y.length?a:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function Mn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const aa=ra,la=Array.isArray,ia=e=>$t(e)==="[object Map]",sa=e=>$t(e)==="[object Set]",ua=e=>e instanceof Date,nn=e=>typeof e=="function",jn=e=>typeof e=="string",ca=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",fa=e=>je(e)&&nn(e.then)&&nn(e.catch),_n=Object.prototype.toString,$t=e=>_n.call(e),rn=e=>$t(e)==="[object Object]",Pn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||Pn&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ke(...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 s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=Ke(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function on(e,t,o=!1){if(!o)Ke(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!rn(s))continue;l=on(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!rn(s))continue;l=on(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const an=ha?Promise.resolve():null;function ga(e,...t){an!==null?t&&t.length>0?an.then(()=>{e(t)}):an.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ee(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function we(e){return typeof e=="number"?e:Number(e)}const ma={"[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 xt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Hn(e){return e&&typeof e=="object"&&"setInterval"in e}function zn(e){return!e||e.offsetParent===null}function Wn(e){let t=!!e&&"length"in e&&e.length,o=xt(e);return o==="function"||Hn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Kn(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 pa(e,t=[]){let o=t;return e!=null&&(Wn(Object(e))?Kn(o,typeof e=="string"?[e]:e):o.push(e)),o}function _e(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=xt(e),n=xt(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 s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!_e(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],s=t[a];if(!_e(l,s))return!1}return!0}return!1}const Je=typeof window<"u";function ln(e){return e==null}function Yn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Un(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Gn(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 Xn(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 Zn(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 ya(e,t=!0,o=!0){t?e=Zn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(_e(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(_e(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ct(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Jn(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 Sa=(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},de=Symbol.for("BroadcastKey");class sn{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="*"):Yn(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 s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.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,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function Ct(e,t,o,n){const a=new sn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function va(e,t,o){const n=o;if(n[de])return n[de];const a=r.inject(de,null),l=new sn(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[de]=l,r.provide(de,l),r.onUnmounted(()=>{l.destroy(),n[de]=void 0}),l}function ft(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ye=e=>e.default??e;class Ta{error(t,o){const n=o,a=ft(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ft(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ft(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=ft(n),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?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Qn=new Ta;function $a(e){Qn=e}function xa(e,t){Ye(We).setValidator(e,t)}function Ca(e){Ye(We).deleteValidator(e)}let er=["blur","clear"];function Ea(e){er=e}function tr(){return er}let nr=["focus","change"];function Na(e){nr=e}function rr(){return nr}function ka(e){Ye(We).messages(e)}function dt(...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 Et(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 Be=Symbol("ValidateSchemaKey");class or{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=Et(dt(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=Et(n);const a=dt(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=Qn;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?Ye(We).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?Ye(We).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ye(We).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=dt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Et(t):this.rules=Et([t]);const n=dt(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=dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=Ye(We),u=new i(a),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function Nt(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 or(t,o,e)}const ar=Symbol.for("EventEmitterKey");class Va{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 ht(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function lr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=ht((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function un(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const Ee=Symbol("DomainKey"),Qe=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=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 Ra=new kt;function et(){return Ra}function Le(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ee]??r.inject(Ee,null):r.inject(Ee,null)}const cn=Symbol("OriginalDateKey");function fn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(Ee,null);s===null&&(s=et());const i=e||t.prop||t.name,u=new kt(i);u.parent=s;const f=h=>{l[cn]||y(h),u.set("modelValue",h)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[cn]??null,y=h=>{const b={};Ke(!0,b,r.toRaw(h)),l[cn]=b};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&y(t.modelValue),l[Ee]=u,r.provide(Ee,u);let v=null,S=null;if(a!==null){const h=r.inject(de,null);v=Ct(l,h,i,n),u.broadcast=v,l[de]=v,r.provide(de,v),l.broadcast=(p,T,...V)=>Reflect.apply(v.emit,v,[p,T,...V]);const b=r.inject(Be,null);S=Nt(l,b,{componentName:""}),u.validateSchema=S,l[Be]=S,r.provide(Be,S),l[Qe]=new Map,l.validate=(p=!0)=>{const T=[];let V=null;const F={deep:!1};if(p===!0)V={name:"*"};else if(Array.isArray(p)&&p.length>0){const O=p;V={name:E=>E?O.indexOf(E)!==-1:!1}}else if(p!=null&&typeof p=="object"){const O=p;if(F.ignoreHidden=O.ignoreHidden,Array.isArray(O.include)&&O.include.length>0){const E=O.include;V={name:N=>N?E.indexOf(N)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const E=O.exclude;V={name:N=>N?E.indexOf(N)===-1:!1}}else V={name:"*"}}if(V){const O=v?.emitToChildren(V,"validate",F);O&&Reflect.apply([].push,T,O)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(O=>{let E=[];return O.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(E=[...E,...N.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,T=!0)=>{if(T){const V=Reflect.ownKeys(p),F=[...V],O={name:E=>{const N=V.includes(E);if(N){const D=F.findIndex(k=>E===k);D!==-1&&F.splice(D,1)}return N}};v?.emitToChildren(O,"setNameValidateRules",p,!1),F.length>0&&F.forEach(E=>{let N=String(E);const k=ur(u,N,{componentName:"",fieldName:N,pureDataValidate:!0},v,S);l[Qe].set(N,k);const A=p[N];A&&k.validateSchema.setRule(A)})}},l.clearValidate=(p=!0)=>{let T=null;if(p===!0)T={name:"*"};else if(Array.isArray(p)&&p.length>0){const V=p;T={name:F=>F?V.indexOf(F)!==-1:!1}}else if(p!=null&&typeof p=="object"){const V=p;if(Array.isArray(V.include)&&V.include.length>0){const F=V.include;T={name:O=>O?F.indexOf(O)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const F=V.exclude;T={name:O=>O?F.indexOf(O)===-1:!1}}else T={name:"*"}}T&&v?.emitToChildren(T,"clearValidate",!1)},l.resetFields=p=>{const T=c();if(!T)return;const V={};if(Ke(!0,V,d()??{}),Array.isArray(p))p.forEach(F=>{T[F]=V[F]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(O=>{T[O]=V[O]});else if(p&&Array.isArray(p.exclude)){let F=p.exclude??[];Reflect.ownKeys(V).forEach(O=>{F.includes(O)||(T[O]=V[O])})}else Object.assign(T,V);l.clearValidate(p)},l.setModelValue=(p,T)=>{!T||T===i?f(p):v?.emitToChildren({name:T},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ee]=void 0,l[Qe]&&(l[Qe].clear(),l[Qe]=void 0),v!==null&&(v.destroy(),l[de]=void 0),S!==null&&(S.destroy(),l[Be]=void 0)}),u}function ir(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ee,null);l===null&&(l=et());const s=e||t.prop||t.name,i=new kt(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[Ee]=i,r.provide(Ee,i),r.onUnmounted(()=>{i.destroy(),a[Ee]=void 0}),i}function sr(e,t,o){const a=Le(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function ge(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(de,null),i=Ct(a,s,l,o);a[de]=i,r.provide(de,i),a.broadcast=(S,h,...b)=>Reflect.apply(i.emit,i,[S,h,...b]);const u=r.inject(Be,null);e.fieldName=e.fieldName??l;const f=Nt(a,u,e);a[Be]=f,r.provide(Be,f),sr(a,f,l),a.validate=(S=null)=>{const h=[];let b=!1,p=!1;if(Array.isArray(S)&&S.indexOf(l)!==-1)p=!0,b=!0;else if(S&&typeof S=="object"){const T=S;T.ignoreHidden===!0&&zn(a.$el)?p=!1:(Array.isArray(T.include)&&T.include.indexOf(l)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(l),p=!0),b=T.deep??!1}else typeof S=="boolean"&&(b=S),p=!0;if(p){const T=f?.validate();h.push(T)}if(b){let T=null;const V={deep:!1};if(S===!0)T={name:"*"};else if(Array.isArray(S)&&S.length>0){const F=S;T={name:O=>O?F.indexOf(O)!==-1:!1}}else if(S!=null&&typeof S=="object"){const F=S;if(V.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const O=F.include;T={name:E=>E?O.indexOf(E)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const O=F.exclude;T={name:E=>E?O.indexOf(E)===-1:!1}}else T={name:"*"}}if(T){const F=i.emitToChildren(T,"validate",V);Reflect.apply([].push,h,F)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(T=>{let V=[];return T.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(V=[...V,...F.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=S=>f?.setRule(S),a.setNameValidateRules=(S,h=!1)=>{const b=S[l];if(b&&f?.setRule(b),h){const p={name:T=>Reflect.ownKeys(S).includes(T)};i.emitToChildren(p,"setNameValidateRules",S,!1)}},a.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(S===!0)h={name:"*"};else if(Array.isArray(S)&&S.length>0){const b=S;h={name:p=>p?b.indexOf(p)!==-1:!1}}else if(S!=null&&typeof S=="object"){const b=S;if(Array.isArray(b.include)&&b.include.length>0){const p=b.include;h={name:T=>T?p.indexOf(T)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const p=b.exclude;h={name:T=>T?p.indexOf(T)===-1:!1}}else h={name:"*"}}h&&i.emitToChildren(h,"clearValidate",!1)};const c=new Va(a);a[ar]=c;const d=ht((S="validate")=>{S==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:tr()).forEach(S=>{c.on(S,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:rr()).forEach(S=>{c.on(S,h=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[de]=void 0,f.destroy(),a[Be]=void 0,c.destroy(),a[ar]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(S,...h)=>{Reflect.apply(c.emit,c,[S,...h])},onEvent:(S,h)=>{Reflect.apply(c.on,c,[h])},offEvent:(S,h)=>{Reflect.apply(c.off,c,[h])}}}function ur(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=Nt({},a,o);l.validate=(f=null)=>{const c=[];let d=!1,y=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)y=!0,d=!0;else if(f&&typeof f=="object"){const v=f;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),y=!0,d=v.deep??!1}else typeof f=="boolean"&&(d=f),y=!0;if(y){const v=i?.validate();c.push(v)}if(d){let v=null;const S={deep:!1};if(f===!0)v={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;v={name:b=>b?h.indexOf(b)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Array.isArray(h.include)&&h.include.length>0){const b=h.include;v={name:p=>p?b.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const b=h.exclude;v={name:p=>p?b.indexOf(p)===-1:!1}}else v={name:"*"}}if(v){const h=u.emitToChildren(v,"validate",S);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let S=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(S=[...S,...h.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=Ct(null,n,s,l);return{broadcast:u,validateSchema:i}}const me=(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(Je){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}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 Pe="PageStateKey";function Re(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 dn(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight),e.headerPadding=Re(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight),e.footerPadding=Re(o.footerPadding??t.footerPadding),e.contentPadding=Re(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,l):e.height=ue(l)-ue(s,l)-ue(i,l),e.width=ue(o.width??t.width??0,a)}}function cr(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 s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;dn(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(Pe);d&&(n.height=Ot(e,d),n.width=It(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Ot(e,d),c.width=It(e,d)}));const y=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,S,h=-1,b=-1,p=0,T=0])=>{dn(c,S,t,y,h,b,p,T)}),e.set(Pe,c),c}function Vt(e){return e.get(Pe)}function gt(e,t){if(t=t??e.get(Pe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function mt(e,t){if(t=t??e.get(Pe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Ot(e,t){if(t=t??e.get(Pe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=gt(e,t),n=mt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function It(e,t){return t=t??e.get(Pe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Aa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(Pe)}var Ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ve||{});function hn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ce(e,t,o=1,n){const a=Le();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(hn(u,n))return u}const s=e.value;return hn(s,n)?s:null}):r.computed(()=>{const l=e.value;return hn(l,n)?l:a?.get(t)})}function Te(e){return Ce(e,"readonly",0,function(o){return ee(o)})}function $e(e){return Ce(e,"disabled",0,function(o){return ee(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,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const fr=new Map,Rt=new Map;let gn=null;function Fa(e){gn=e}function dr(e,t,o){if(o){let n=Rt.get(o);n||(n=new Map,Rt.set(o,n)),n.set(e,t)}else fr.set(e,t)}function Ae(e,t,o){!o&&gn&&(o=gn(e)??void 0);let n=null;if(o){let a=Rt.get(o);a&&(n=a.get(t))}return n||(n=fr.get(t)),n}function Ba(e,t){for(let o in e){const n=e[o];dr(o,n,t)}}function La(e){Rt.delete(e)}function qa(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(Je){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 ja{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=et();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=lr(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,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=Ke({},qa(),t.safeAreaInset),s=Ma(n,a),i=Ke({},s.pageLayout,t.pageLayout);o=o??et(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){dr(t,o,n)}getAPI(t,o,n){return Ae(t,o,n)}batchSetAPI(t,o){Ba(t,o)}clearScopeAPI(t){La(t)}getRootDomain(){return et()}}const _a=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Pa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ha=e=>{_a.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Pa.forEach(t=>{e.use(t)})};function te(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 he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},hr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},mr=[];for(const e in gr)mr.push(e);function pe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const za=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...he,...hr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(o,n){const a=fn(o.name,o);if(a){const f=cr(a,o);pe({getPageContentHeight:()=>Ot(a,f),getPageContentWidth:()=>It(a,f),getPageHeaderHeight:()=>gt(a,f),getPageFooterHeight:()=>mt(a,f)});const c=r.inject(za,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),y=r.toRaw(f),v=y?Reflect.ownKeys(y):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{v.includes(h)||(y[h]=[])}),u(y)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Ka,create:Ya,scope:nf}=te("page"),Ua=Ya(Wa(Ka));function Ga(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 Oe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},pr=Oe(Ua,[["render",Ga]]),Xa=["aria-labelledby"],Za=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ja=[Za],Qa=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ja,14,Xa))}});function mn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function pn(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")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}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 s=Le(),i=s?Vt(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const w=e;return{[w]:!0,[`${w}--border`]:a.border,[`${w}--fixed`]:a.fixed,[`${w}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ue(a.height):null,c=r.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const x=Re(a.padding??i.headerPadding);return Object.assign(w,x),f&&(i.headerHeight=f),w.height=i.headerHeight,w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(x.top??0),w.height=w.height+w.safeAreaTop),w}if(f&&(w.height=f),a.padding){const x=Re(a.padding);Object.assign(w,x)}return w}),d=r.ref(null),y=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const w=mn(d.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&un(y,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const v=r.computed(()=>{const w={};return c.value.height!==null&&c.value.height!==void 0&&(w.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(w.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(w.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(w.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(w.paddingBottom=`${c.value.bottom}px`),w}),S=r.computed(()=>{const w={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(w.top=`${c.value.safeAreaTop}px`),w}),h=r.computed(()=>{const w={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(w.top=`${c.value.safeAreaTop}px`),w}),b=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),T=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),V=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),F=r.computed(()=>a.leftIcon),O=r.computed(()=>F.value||l.slots.leftIcon),E=r.computed(()=>a.titleIcon),N=r.computed(()=>a.titleIcon||l.slots.titleIcon),D=r.computed(()=>a.rightIcon),k=r.computed(()=>a.rightIcon||l.slots.rightIcon);function A(){l.emit("back")}function G(){l.emit("click-title")}function _(){l.emit("click-right")}function $(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:v,mHeaderShow:p,leftStyles:S,rightStyles:h,mLeftShow:b,mTitleShow:T,mRightShow:V,mLeftIcon:F,hasLeftIcon:O,mTitleIcon:E,hasTitleIcon:N,mRightIcon:D,hasRightIcon:k,handleLeft:A,handleCenter:G,handleRight:_,handleRightText:$}}}),{componentName:tl,create:nl,scope:rl}=te("header-bar"),ol=nl(el(tl,rl,Qa)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},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]=(...s)=>e.handleCenter&&e.handleCenter(...s)),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]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),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 yr=Oe(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=Le(),s=l?Vt(l):null,i=r.computed(()=>{const v=e;return{[v]:!0,[`${v}--${n.align}`]:!0,[`${v}--border`]:n.border,[`${v}--fixed`]:n.fixed,[`${v}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ue(n.height):null,f=r.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const S=Re(n.padding??s.footerPadding);return Object.assign(v,S),u&&(s.footerHeight=u),v.height=s.footerHeight,v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.height=v.height+v.safeAreaBottom,v.bottom=v.safeAreaBottom+(S.bottom??0)),v}if(u&&(v.height=u),n.padding){const S=Re(n.padding);Object.assign(v,S)}return v}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const v=mn(c.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&un(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const y=r.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=me(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=me(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=me(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=me(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=me(f.value.bottom)),v});return{footerBarRef:c,classes:i,styles:y}}}}const{componentName:ul,create:cl,scope:rf}=te("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 br=Oe(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Le(),a=r.computed(()=>({[e]:!0})),l=n?Vt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const v=Re(o.padding);Object.assign(l.contentPadding,v)}const c=gt(n,l),d=mt(n,l);let y="";if(l.contentHeight?y=`${l.contentHeight}`:y=`${l.height}px`,l.contentPadding,f.height=y,l.contentPadding.top||c>0){const v=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+v}px`}if(l.contentPadding.bottom||d>0){const v=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+v}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=Re(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}),i=r.ref(null),u=()=>{if(l&&i.value){const f=pn(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>gt(n),()=>mt(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:gl,create:ml,scope:of}=te("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 wr=Oe(pl,[["render",yl]]),tt="GroupStateKey",Sr=Symbol.for("GroupScopeKey");function At(){return r.inject(Sr,!1)}function Dt(e=!0){r.provide(Sr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];ln(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(tt,l),l}function yn(e,t,o=-1,n=-1,a=!1,l,s,i){const u=e.get(tt);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),s||(s=f.maxItemWidth??-1);const c=ue(l),d=ue(s);i||(i=f.type??"grid");const y=()=>{const v=t===""||t===-1,S=ue(t);let h=we(o);const b=ue(n);if(!v){let V=(S-(h-1)*b)/h;for(;d!==-1&&V>d;)h++,V=(S-(h-1)*b)/h;for(;c!==-1&&h>1&&V<c;)h--,V=(S-(h-1)*b)/h}let p=!1;const T=u.layout;T.value.width=t,T.value.column!==h&&(T.value.column=h,p=!0),T.value.gutter!==b&&(T.value.gutter=b,p=!0),T.value.type!==i&&(T.value.type=i,p=!0),p&&r.triggerRef(T)};if(a)y();else{const v=++u.passport;setTimeout(()=>{v===u.passport&&y()},50)}}function Ft(e,t=!1){let o;return t?o=e.getForParent(tt):o=e.get(tt),o.layout}function Bt(e,t=!1){let o;return t?o=e.getForParent(tt):o=e.get(tt),o.order}function vr(e,t=1){if(t==="stretch")return-1;const o=we(t);return o===-1?100:100*o/e}function Lt(e,t,o=1,n=0,a){const l={};let s=0;a?s=ue(a):s=vr(t.column,o),s>0&&(l.width=`${s}%`);const i=vr(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function qt(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=we(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=we(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Tr=Symbol("RollingStateKey");function Sl(e){r.provide(Tr,e)}function vl(){return r.inject(Tr,null)}function bn(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=bn(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=bn(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={...he,...hr,...gr};function Cl(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=fn(n.name,n,mr),s=wl(l,{type:n.type}),i=At();Dt(!0);const u=n.rollingDisplay?vl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>i&&l?Ft(l,!0).value:null),y=r.getCurrentInstance(),v=R=>{const U=y?.proxy;U&&typeof U.setNameValidateRules=="function"&&U.setNameValidateRules(R,!0)};r.watch(()=>n.rules,(R,U)=>{if(!R&&!U)return;const K=r.toRaw(U),I=r.toRaw(R),j=I?Reflect.ownKeys(I):[];(K?Reflect.ownKeys(K):[]).forEach(Z=>{j.includes(Z)||(I[Z]=[])}),v(I)},{deep:!0});const S=e,h=r.computed(()=>{const R={};R.height=L.value;const U=i?Bt(l,!0):null;if(d.value&&U){if(d.value.type==="grid"){const K=qt(U,d.value,n.span,n.offset);Object.assign(R,K)}else if(d.value.type==="flow"){const K=Lt(U,d.value,n.span,n.offset,n.width);Object.assign(R,K)}}else if(n.width){const K=me(n.width);R.width=K}return R}),b=r.computed(()=>{const R=s.layout.value.type;return R==="grid"||R==="flow"?{[`${S}--${R}`]:!0,[`${S}--${R}-justify-${n.justify}`]:!0,[`${S}--${R}-align-${n.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${R}`]:!0,[`${S}--gutter`]:!0}}),p=r.computed(()=>{if(s.layout.value.type==="grid"){let U="";if(n.columnWidth)U=`repeat(auto-fill, ${n.columnWidth})`;else{const K=$l(k.value,s.layout.value.column,s.layout.value.gutter);U=`repeat(${s.layout.value.column}, ${K})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":U}}}),T=r.toRef(n,"title"),V=r.toRef(n,"gutter"),F=r.toRef(n,"column"),O=r.computed(()=>i||c.value?!0:ee(n.isWrap)),E=[],N=R=>{E.push(R)},D=()=>{let R=E.length;E.splice(0,R)},k=r.ref(-1),A=R=>{const U=pn(R).width;U>0&&U!==k.value&&(k.value=U)};yn(l,k.value,F.value,V.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([k,F,V],([R,U,K])=>{s.order.index=0,yn(l,R,U,K,!1,n.minItemWidth,n.maxItemWidth,n.type)});const G=r.computed(()=>B.value?n.expandText??"":n.collapseText??""),_=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),w=r.ref(),x=r.ref(),L=r.computed(()=>z.value||me(n.height)||""),B=r.ref(!1),z=r.ref(""),C=r.ref(!1);let H=-1;const X=(R,U=!0)=>{const K=w.value;if(K&&B.value!==R){if(H=H===-1?Tl(K):H,C.value=!0,U)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",R||(z.value="",C.value=!1)},R){let I=0;n.collapseHeight?I=n.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(I=x.value.offsetHeight),z.value=`${H}px`,r.nextTick(()=>{z.value=`${I}px`})}else z.value=`${H}px`;else if(R){let I=0;n.collapseHeight?I=n.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(I=x.value.offsetHeight),z.value=`${I}px`}else C.value=!1,z.value=`${H}px`;B.value=R,a.emit("update:collapse",R)}};r.watch(()=>n.collapse,R=>{X(R)});const Y=()=>{Q()},Q=R=>{R=R??!B.value,X(R)};pe({toggleCollapse:Q,doLayout:()=>{E[0]&&(A(E[0]),yn(l,k.value,F.value,V.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let re=null,ae=!0;const M=R=>{if(n.rules){const U=r.toRaw(n.rules);v(U)}if(Je&&(R&&X(ee(n.collapse),!1),n.autoLayout&&Array.isArray(E)&&E.length>0)){const U=E[0];A(U),window.ResizeObserver&&(re=new window.ResizeObserver(()=>{A(U)}),re.observe(U))}},J=()=>{re?.disconnect(),re=null},P=!c.value||u?.acquire();P&&(f.value=c.value?!0:null),r.onMounted(()=>{if(P&&(M(ae),ae=!1),c.value&&u){let R=null,U=u.initialHeight;u.observe(w.value,K=>{if(K!==f.value)if(K)f.value=!0,B.value||(z.value=""),R=setTimeout(()=>{R=null,f.value!==!1&&(M(ae),ae=!1)},100);else{if(R!==null&&clearTimeout(R),f.value=!1,!B.value)if(ae)z.value=u.initialHeight;else{let I=bn(w.value);I<=0?z.value=U:(z.value=`${I}px`,U=z.value)}ae||J()}})}}),r.onUnmounted(()=>{re?.disconnect(),u&&u.unobserve(w.value)});const q=(R,U,K,I)=>{const j={...b.value};return U===0&&(j[`${S}__first`]=!0),K>=I-1&&(j[`${S}__last`]=!0),r.h("div",{ref:N,key:`${U}`,class:j,style:p.value},R)};return()=>{if(c.value&&f.value!==!0){const j=n.tag||"div";return r.h(j,{ref:w,prop:n.name,class:{[`${S}`]:!0,"is-collapse":C.value},style:h.value},[])}s.order.index=0;const R=[];let U=0;if(a.slots.header){const j={key:`${U++}`,ref:x,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},W=r.h("div",j,[a.slots.header()]);R.push(W)}else{const j=[];if(T.value){if(n.showMark){const Z={class:{[`${S}__header-mark`]:!0}};n.markColor&&(Z.style={background:n.markColor});const ie=r.h("div",Z);j.push(ie)}const W=r.h("div",{class:{[`${S}__header-title`]:!0}},[T.value]);j.push(W)}if(a.slots.toolbar&&j.push(a.slots.toolbar()),n.showCollapse){const W=[];if(G.value){const le={class:_.value},Ne=r.h("span",le,[G.value]);W.push(Ne)}const Z={class:$.value},ie=o(n.collapseIcon,Z);if(ie&&W.push(ie),W.length>0){const le=r.h("div",{class:{[`${S}__header-collapse`]:!0},onClick:Y},W);j.push(le)}}if(j.length>0){const W={key:`${U++}`,ref:x,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},Z=r.h("div",W,j);R.push(Z)}}D();const K=a.slots.default?a.slots.default():[],I=s.layout.value.type;if(I==="grid"){const j=q(K,U++,0,K.length);R.push(j)}else if(I==="flow"){const j=q(K,U++,0,K.length);R.push(j)}else for(let j=0;j<K.length;j++){const W=K[j],Z=q([W],U++,j,K.length);R.push(Z)}if(O.value){const j=n.tag||"div";return r.h(j,{ref:w,prop:n.name,class:{[`${S}`]:!0,"is-collapse":C.value},style:h.value},[R])}else return R}}}}const{componentName:El,create:Nl,scope:kl}=te("group"),$r=Nl(Cl(El,kl,(e,t)=>(e=e??ke.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Ol=/matrix\((.+)\)/,xr=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,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Ol.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(i+=Number(y[4]),u+=Number(y[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function Il(e){return e===window}const wn=e=>{const t=r.unref(e);if(Il(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 Al{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 Cr=new Al,Er={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:Dl,create:Fl}=te("price"),Bl=Fl({props:{...Er},setup(e){const t=r.computed(()=>({[Dl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ct(e.price)==0?"":Tt(e.price,e.decimalLength,!0,we(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.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: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 Sn=Oe(Bl,[["render",Ml]]),{componentName:Mt,create:jl}=te("hint-text"),_l=jl({components:{Price:Sn},props:{...Er,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),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Mt]:!0})),y=r.ref(null),v=(D,k,A=10)=>{if(!Je||k===!1||!D)return;l.value=!0;const G=wn(e.reference);u.value=G.width,f.value=G.height,setTimeout(()=>{if(!y.value||!e.reference||e.reference.offsetParent===null)return;const _=xr(e.reference),$=document.documentElement.clientWidth||document.body.clientWidth,w=y.value.offsetWidth,x=y.value.offsetHeight;_.y-x>=0?(c.value="top",s.value.y=_.y-x-10-4,i.value.y=x):(c.value="bottom",s.value.y=_.y+f.value+10,i.value.y=-10);const L=_.x+w-$;L<0?(s.value.x=_.x,i.value.x=20):(s.value.x=_.x-L,i.value.x=L+20),l.value=!1},A)},S=ht(()=>{v(e.message,e.visible)},10),h=r.computed(()=>e.visible&&b.value),b=r.ref(!0),p=ht(D=>{const k=D[0];k&&(b.value=k.isIntersecting)},10),T=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([D,k])=>{v(D,k)}),r.onMounted(()=>{v(e.message,e.visible),Cr.watch(e.reference,S),T.observe(e.reference)}),r.onBeforeMount(()=>{Cr.unwatch(e.reference,S),T.unobserve(e.reference),T.disconnect()});const V=r.computed(()=>{const D={"min-width":me(u.value)};return l.value?D.visibility="hidden":D.transform=`translate(${s.value.x}px, ${s.value.y}px)`,D}),F=r.computed(()=>({[`${Mt}__content`]:!0})),O=r.computed(()=>({})),E=r.computed(()=>({[`${Mt}__arrow`]:!0,[`${Mt}__arrow-${e.placement}`]:!0})),N=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:h,tipRef:y,classes:d,styles:V,textClasses:F,textStyles:O,arrowClasses:E,arrowStyles:N}}}),Pl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const s=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(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,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 jt=Oe(_l,[["render",Hl]]);class Nr{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 vn={},zl=new Nr,nt=new Map,Tn=e=>{if(e){const t=document.getElementById(e);nt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of nt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}nt.clear()}},Wl=e=>{const t=document.getElementById(e.id);if(t){const o=nt.get(e.id);o?e={...vn,...o,...e}:e={...vn,...e};const n=r.createVNode(jt,e);return r.render(n,t),e.id}},Kl=e=>{e.unmount=Tn;let t;if(e.id){if(t=e.id,nt.has(t))return Wl(e)}else t=`hinttext_${zl.get()}`;e={...vn,...e},e.id=t,nt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(jt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},_t={show(e,t,o={},n=!0){return n&&Tn(),Yl(t),Kl({...o,message:t,reference:e})},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=_t}},{componentName:kr,create:Ul}=te("item"),Gl=Ul({inheritAttrs:!0,props:{...he,...ve},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ge({componentName:kr,validate:!1},o);const n=Le(),a=At();Dt(!1);const l=r.computed(()=>a&&n?Ft(n,!1).value:null),s=kr,i=r.ref(null),u=r.computed(()=>{const M={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(M[e.errorMarkClass]=!!G.value,M[e.warnMarkClass]=!!k.value,M[e.infoMarkClass]=!!N.value,typeof i.value=="function"){const J=i.value(o);M[J]=!0}else if(typeof i.value=="string"){const J=i.value;M[J]=!0}return M}),f=r.computed(()=>{const M={},J=a&&n?Bt(n,!1):null;if(l.value&&J)if(l.value.type==="grid"){const P=qt(J,l.value,e.span,e.offset);Object.assign(M,P)}else if(l.value.type==="flow"){const P=Lt(J,l.value,e.span,e.offset,e.width);Object.assign(M,P)}else return e.width&&(M.width=me(e.width)),M;else e.width&&(M.width=me(e.width));return M}),c=r.ref(null),d=r.computed({get:()=>c.value??ee(e.isRequired),set:M=>{c.value=M}}),y=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),v=Ce(r.toRef(e,"labelPosition"),"labelPosition",Ve.Near),S=r.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),h=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${S.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=Ce(r.toRef(e,"labelWidth"),"labelWidth",Ve.Near),T=r.computed(()=>p&&p.value?{width:me(p.value)}:{}),V=r.computed(()=>({"label--string":!0,"label--required":d.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),O=r.computed(()=>({...e.contentStyle})),E=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(M){d.value=M},setErrorTip(M){E.errorTip=M},setErrorIcon(M){E.errorIcon=M},setWarnTip(M){E.warnTip=M},setWarnIcon(M){E.warnIcon=M},setInfoTip(M){E.infoTip=M},setInfoIcon(M){E.infoIcon=M},setCustomClassName(M){i.value=M}});const N=r.computed(()=>e.infoTip||E.infoTip),D=r.computed(()=>e.infoIcon||E.infoIcon),k=r.computed(()=>e.warnTip||E.warnTip),A=r.computed(()=>e.warnIcon||E.warnIcon),G=r.computed(()=>e.errorTip||E.errorTip),_=r.computed(()=>e.errorIcon||E.errorIcon),$=r.computed(()=>G.value?"error":k.value?"warn":N.value?"info":""),w=r.computed(()=>$.value.length>0),x=r.computed(()=>$.value==="error"?G.value:$.value==="warn"?k.value:$.value==="info"?N.value:""),L=r.computed(()=>$.value==="error"?_.value:$.value==="warn"?A.value:$.value==="info"?D.value:null),B=r.computed(()=>{let M={[`${s}__tip`]:!0,[`${s}__tip--${$.value}`]:!0};return $.value==="error"&&e.errorClass?M[`${e.errorClass}`]=!0:$.value==="warn"&&e.warnClass?M[`${e.warnClass}`]=!0:$.value==="info"&&e.infoClass&&(M[`${e.infoClass}`]=!0),M}),z=r.computed(()=>{let M={};return v&&v.value==="top"||!y.value?M["padding-left"]="0px":p&&p.value&&(M["padding-left"]=me(p.value)),M}),C=()=>r.h(L.value,{width:12,height:12}),H=r.computed(()=>t.slots.fixedTip),X=r.computed(()=>({[`${s}__fixed-tip`]:!0})),Y=r.ref();let Q="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([M,J,P,q])=>{Y.value&&(M&&!fe(J)?Q?_t.show(Y.value,J,{...q,id:Q,type:P},!0):Q=_t.show(Y.value,J,{...q,type:P},!0):_t.hide(Q))});let oe=null;const re=()=>{oe||!Y.value||(oe=new IntersectionObserver(M=>{let J=!1;for(let P of M)if(P.intersectionRatio>0){J=!0,J&&t.emit("appear",P);break}J||t.emit("disappear")}),oe.observe(Y.value))},ae=()=>{!oe||!Y.value||(oe.unobserve(Y.value),oe=null)};return r.watch(()=>ee(e.appearListen),M=>{M?re():ae()}),r.onMounted(()=>{ee(e.appearListen)&&re()}),r.onUnmounted(ae),{classes:u,styles:f,mainClasses:h,hasLabel:y,labelClasses:b,labelStyles:T,labelStringClasses:V,contentClasses:F,contentStyles:O,contentRef:Y,hasTip:w,mTip:x,mIcon:L,renderIcon:C,tipClasses:B,tipStyles:z,hasFixedTip:H,fixedTipClasses:X}}}),Xl=["prop"],Zl={key:0,class:"fox-item__tip--icon"},Jl={class:"fox-item__tip--text"};function Ql(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.createElementBlock("div",Zl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Jl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const ye=Oe(Gl,[["render",Ql]]);function ei(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=Le(),l=At();Dt(!1);const s=r.computed(()=>l&&a?Ft(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Bt(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const y=qt(d,s.value,o.span,o.offset);Object.assign(c,y)}else if(s.value.type==="flow"){const y=Lt(d,s.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=me(o.width)),c;else o.width&&(c.width=me(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:ti,create:ni,scope:lf}=te("slot-item"),Vr=ni(ei(ti));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],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Le(),i=At();Dt(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Ft(s,!1),d=Bt(s,!1);if(c.value&&d)if(c.value.type==="grid"){const y=qt(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=Lt(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=me(o.width))}else o.width&&(f.width=me(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const v=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(v)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:oi,create:ai,scope:sf}=te("row-item"),Or=ai(ri(oi)),Ir={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 li(e,t,o){return{props:{...he,...ve,...Ir},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0,[`${y}__disabled`]:l.value,[`${y}__readonly`]:s.value})),S=$=>{d.value=$,i("update:modelValue",$),i("input",$)},h=$=>{i("change",$)};let b=se(n,"hintText"),p=r.ref(!1);const T=$=>{let x=$.target.value;c.value=!0,fe(b.value)||(p.value=!0),i("focus",x,$)},V=$=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let x=$.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),i("blur",x,$)},F=()=>{i("clear","")},O=r.ref(!1);let E=null;const N=()=>{n.showTooltip&&O.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{O.value=!0},150))},D=()=>{E&&(clearTimeout(E),O.value=!1,E=null)},k=r.computed(()=>O.value||p.value),A=r.computed(()=>O.value?d.value:b.value),G=r.computed(()=>ct(n.unit)>0),_=r.ref();return pe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const w={...a.attrs,ref:_,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:h,onInput:S,onFocus:T,onBlur:V,onMouseover:N,onMouseleave:D},x={};a.slots.prepend&&(x.prepend=a.slots.prepend),a.slots.append&&(x.append=a.slots.append),a.slots.prefix&&(x.prefix=a.slots.prefix),a.slots.suffix?x.suffix=a.slots.suffix:G.value&&(x.suffix=()=>[n.unit]);const L=[],B=r.h(m.ElInput,w,x);L.push(B);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.default&&(z.fixedTip=a.slots.fixedTip);const H={...Se(n,Ir),hintText:A.value,hintVisible:k.value,prop:`${n.prop}_item`};return r.h(o,H,z)}}}}const{componentName:ii,create:si,scope:ui}=te("input-item"),Rr=si(li(ii,ui,ye));function He(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function pt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ar(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ci(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let fi=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`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function di(){const e=r.getCurrentInstance();return new fi(e.proxy)}function Dr(e,t,o){const n=He(e,t),a=He(e,o);if(n!==a)return!1;const l=pt(e,t),s=pt(e,o);return l===s}function Fr(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 s of n){const i=Ar(e,s);if(Array.isArray(i)&&i.length>0){const u=Fr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=He(e,s)===l;else if(o==="item")u=Dr(e,s,l);else{let f=pt(e,s);f==null&&(f=He(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function hi(e){return{text:e,value:e}}const Br={modelValue:{type:[String,Object,Boolean,Number],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 gi(e,t,o){return{props:{...he,...ve,...Br},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),y=r.computed(()=>d.value?d.value.map(q=>He(n,q)).join(" "):""),v=(P,q,R,U=!0)=>{const K=Fr(n,P,q,R);if(K===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],U&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let I=!0;if(K.length!==d.value.length)I=!1;else for(let j=0;j<K.length;j++){const W=K[j],Z=d.value[j];if(!Dr(n,W,Z)){I=!1;break}}if(!I){d.value=K;let j=[],W=[],Z=[];K.forEach(it=>{const Fe=pt(n,it),wt=He(n,it);j.push(Fe),Z.push(wt),n.valueType==="text"?W.push(wt):n.valueType==="item"?W.push(it):W.push(Fe)});let ie,le,Ne;n.multiple?(c.value=j,ie=r.toRaw(W),le=Z,Ne=r.toRaw(K)):(c.value=j[0]??"",ie=r.toRaw(W[0]??""),le=Z[0]??"",Ne=r.toRaw(K[0])),U&&(i("update:modelValue",ie),i("change",ie,Ne)),i("update:text",le)}},S=r.ref(null),h=r.ref(null),b=r.computed(()=>h.value??S.value??[]),p=Ce(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,P=>ee(P)),T=di(),V=async(P,q)=>{if(P){const R=await T.load("select",P,q);if(R.length>0)if(typeof R[0]=="string"){let I=R.map(j=>hi(j));S.value=I}else S.value=R;else S.value=null}};r.watch([()=>n.source,()=>n.params],([P,q])=>{V(P,q)},{immediate:!p.value});let F=!1;const O=()=>{F||(F=!0,V(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([P,q])=>{v(q,n.valueType,P,!1)});let E=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(E=async P=>{if(P==null){h.value=null;return}N.value=!0;try{const q=await n.remoteMethod(P);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}N.value=!1});let D=null;typeof n.filterMethod=="function"&&(D=async P=>{if(P==null){h.value=null;return}N.value=!0;try{const q=await n.filterMethod(P,S.value);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}N.value=!1});const k=r.ref(!1),A=e,G=r.computed(()=>({[A]:!0})),_=P=>{n.allowCreate?(i("update:modelValue",P),i("change",P),i("update:text",P),c.value=P):v(P,"value",b.value,!0)};let $=se(n,"hintText"),w=r.ref(!1);const x=P=>{let R=P.target.value;k.value=!0,fe($.value)||(w.value=!0),i("focus",R,P)},L=P=>{setTimeout(()=>{w.value&&(w.value=!1),k.value=!1},0);let R=P.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),oe.value||i("blur",R,P)},B=()=>{i("clear","")},z=r.ref(!1);let C=null;const H=()=>{n.showTooltip&&z.value===!1&&(C&&clearTimeout(C),C=setTimeout(()=>{z.value=!0},150))},X=()=>{C&&(clearTimeout(C),z.value=!1,C=null)},Y=r.computed(()=>z.value||w.value),Q=r.computed(()=>z.value?y.value:$.value),oe=r.ref(!1),re=P=>{oe.value=P,i("visible-change",P),P||i("selected")},ae=P=>{i("remove-tag",P)},M=(P,q)=>{const R=[];return P.forEach((U,K)=>{const I=Ar(n,U);if(Array.isArray(I)&&I.length>0){const j=M(I,q),W=He(n,U),ie={key:`${W}_${K}`,label:W};R.push(r.h(m.ElOptionGroup,ie,{default:()=>j}))}else{const j=pt(n,U),W=He(n,U),Z=ci(n,U),le={key:`${j}_${K}`,label:W,disabled:Z,value:j};if(typeof q=="function")R.push(r.h(m.ElOption,le,{default:()=>q(U)}));else if(n.optionType==="item"){const Ne={class:{"fox-select-item__option-left":!0}},it=r.h("span",Ne,[j]),Fe={class:{"fox-select-item__option-right":!0}},wt=r.h("span",Fe,[W]),Ze=r.h("div",{class:{"fox-select-item__option":!0}},[it,wt]);R.push(r.h(m.ElOption,le,{default:()=>Ze}))}else n.optionType==="value"?R.push(r.h(m.ElOption,le,{default:()=>[j]})):R.push(r.h(m.ElOption,le))}}),R},J=r.ref();return pe({focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()}}),()=>{const q={...a.attrs,ref:J,class:G.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:B,onChange:_,onFocus:x,onBlur:L,onVisibleChange:re,onRemoveTag:ae};typeof E=="function"&&(q["remote-method"]=E,q.loading=N.value),typeof D=="function"&&(q["filter-method"]=D,q.loading=N.value);const R={};a.slots.prefix&&(R.prefix=a.slots.prefix),a.slots.empty&&(R.empty=a.slots.empty),a.slots.options?R.default=a.slots.options:R.default=()=>M(b.value,a.slots.option);const U=[],K=r.h(m.ElSelect,q,R);U.push(K);const I={default:()=>U};a.slots.default&&(I.label=a.slots.default),a.slots.fixedTip&&(I.fixedTip=a.slots.fixedTip);const W={...Se(n,Br),hintText:Q.value,hintVisible:Y.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:H,onMouseleave:X};return p.value&&(W["appear-listen"]=!0,W.onAppear=O),r.h(o,W,I)}}}}const{componentName:mi,create:pi,scope:yi}=te("select-item"),Lr=pi(gi(mi,yi,ye));var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",y="quarter",v="year",S="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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("_")},V=function($,w,x){var L=String($);return!L||L.length>=w?$:""+Array(w+1-L.length).join(x)+$},F={s:V,z:function($){var w=-$.utcOffset(),x=Math.abs(w),L=Math.floor(x/60),B=x%60;return(w<=0?"+":"-")+V(L,2,"0")+":"+V(B,2,"0")},m:function $(w,x){if(w.date()<x.date())return-$(x,w);var L=12*(x.year()-w.year())+(x.month()-w.month()),B=w.clone().add(L,d),z=x-B<0,C=w.clone().add(L+(z?-1:1),d);return+(-(L+(x-B)/(z?B-C:C-B))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:v,w:c,d:f,D:S,h:u,m:i,s,ms:l,Q:y}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},O="en",E={};E[O]=T;var N=function($){return $ instanceof G},D=function $(w,x,L){var B;if(!w)return O;if(typeof w=="string"){var z=w.toLowerCase();E[z]&&(B=z),x&&(E[z]=x,B=z);var C=w.split("-");if(!B&&C.length>1)return $(C[0])}else{var H=w.name;E[H]=w,B=H}return!L&&B&&(O=B),B||!L&&O},k=function($,w){if(N($))return $.clone();var x=typeof w=="object"?w:{};return x.date=$,x.args=arguments,new G(x)},A=F;A.l=D,A.i=N,A.w=function($,w){return k($,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var G=function(){function $(x){this.$L=D(x.locale,null,!0),this.parse(x)}var w=$.prototype;return w.parse=function(x){this.$d=function(L){var B=L.date,z=L.utc;if(B===null)return new Date(NaN);if(A.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var C=B.match(b);if(C){var H=C[2]-1||0,X=(C[7]||"0").substring(0,3);return z?new Date(Date.UTC(C[1],H,C[3]||1,C[4]||0,C[5]||0,C[6]||0,X)):new Date(C[1],H,C[3]||1,C[4]||0,C[5]||0,C[6]||0,X)}}return new Date(B)}(x),this.$x=x.x||{},this.init()},w.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},w.$utils=function(){return A},w.isValid=function(){return this.$d.toString()!==h},w.isSame=function(x,L){var B=k(x);return this.startOf(L)<=B&&B<=this.endOf(L)},w.isAfter=function(x,L){return k(x)<this.startOf(L)},w.isBefore=function(x,L){return this.endOf(L)<k(x)},w.$g=function(x,L,B){return A.u(x)?this[L]:this.set(B,x)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(x,L){var B=this,z=!!A.u(L)||L,C=A.p(x),H=function(J,P){var q=A.w(B.$u?Date.UTC(B.$y,P,J):new Date(B.$y,P,J),B);return z?q:q.endOf(f)},X=function(J,P){return A.w(B.toDate()[J].apply(B.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(P)),B)},Y=this.$W,Q=this.$M,oe=this.$D,re="set"+(this.$u?"UTC":"");switch(C){case v:return z?H(1,0):H(31,11);case d:return z?H(1,Q):H(0,Q+1);case c:var ae=this.$locale().weekStart||0,M=(Y<ae?Y+7:Y)-ae;return H(z?oe-M:oe+(6-M),Q);case f:case S:return X(re+"Hours",0);case u:return X(re+"Minutes",1);case i:return X(re+"Seconds",2);case s:return X(re+"Milliseconds",3);default:return this.clone()}},w.endOf=function(x){return this.startOf(x,!1)},w.$set=function(x,L){var B,z=A.p(x),C="set"+(this.$u?"UTC":""),H=(B={},B[f]=C+"Date",B[S]=C+"Date",B[d]=C+"Month",B[v]=C+"FullYear",B[u]=C+"Hours",B[i]=C+"Minutes",B[s]=C+"Seconds",B[l]=C+"Milliseconds",B)[z],X=z===f?this.$D+(L-this.$W):L;if(z===d||z===v){var Y=this.clone().set(S,1);Y.$d[H](X),Y.init(),this.$d=Y.set(S,Math.min(this.$D,Y.daysInMonth())).$d}else H&&this.$d[H](X);return this.init(),this},w.set=function(x,L){return this.clone().$set(x,L)},w.get=function(x){return this[A.p(x)]()},w.add=function(x,L){var B,z=this;x=Number(x);var C=A.p(L),H=function(Q){var oe=k(z);return A.w(oe.date(oe.date()+Math.round(Q*x)),z)};if(C===d)return this.set(d,this.$M+x);if(C===v)return this.set(v,this.$y+x);if(C===f)return H(1);if(C===c)return H(7);var X=(B={},B[i]=n,B[u]=a,B[s]=o,B)[C]||1,Y=this.$d.getTime()+x*X;return A.w(Y,this)},w.subtract=function(x,L){return this.add(-1*x,L)},w.format=function(x){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||h;var z=x||"YYYY-MM-DDTHH:mm:ssZ",C=A.z(this),H=this.$H,X=this.$m,Y=this.$M,Q=B.weekdays,oe=B.months,re=function(P,q,R,U){return P&&(P[q]||P(L,z))||R[q].slice(0,U)},ae=function(P){return A.s(H%12||12,P,"0")},M=B.meridiem||function(P,q,R){var U=P<12?"AM":"PM";return R?U.toLowerCase():U},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Y+1,MM:A.s(Y+1,2,"0"),MMM:re(B.monthsShort,Y,oe,3),MMMM:re(oe,Y),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:re(B.weekdaysMin,this.$W,Q,2),ddd:re(B.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(H),HH:A.s(H,2,"0"),h:ae(1),hh:ae(2),a:M(H,X,!0),A:M(H,X,!1),m:String(X),mm:A.s(X,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:C};return z.replace(p,function(P,q){return q||J[P]||C.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(x,L,B){var z,C=A.p(L),H=k(x),X=(H.utcOffset()-this.utcOffset())*n,Y=this-H,Q=A.m(this,H);return Q=(z={},z[v]=Q/12,z[d]=Q,z[y]=Q/3,z[c]=(Y-X)/6048e5,z[f]=(Y-X)/864e5,z[u]=Y/a,z[i]=Y/n,z[s]=Y/o,z)[C]||Y,B?Q:A.a(Q)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return E[this.$L]},w.locale=function(x,L){if(!x)return this.$L;var B=this.clone(),z=D(x,L,!0);return z&&(B.$L=z),B},w.clone=function(){return A.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},$}(),_=G.prototype;return k.prototype=_,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",v],["$D",S]].forEach(function($){_[$[1]]=function(w){return this.$g(w,$[0],$[1])}}),k.extend=function($,w){return $.$i||($(w,G,k),$.$i=!0),k},k.locale=D,k.isDayjs=N,k.unix=function($){return k(1e3*$)},k.en=E[O],k.Ls=E,k.p={},k})})(qr);var bi=qr.exports;const De=Me(bi);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,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?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(b){this[h]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var p=b.match(/([+-]|\d\d)/g),T=60*p[1]+(+p[2]||0);return T===0?0:p[0]==="+"?-T:T}(h)}],d=function(h){var b=i[h];return b&&(b.indexOf?b:b.s.concat(b.f))},y=function(h,b){var p,T=i.meridiem;if(T){for(var V=1;V<=24;V+=1)if(h.indexOf(T(V,0,b))>-1){p=V>12;break}}else p=h===(b?"pm":"PM");return p},v={A:[s,function(h){this.afternoon=y(h,!1)}],a:[s,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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:[s,function(h){var b=i.ordinal,p=h.match(/\d+/);if(this.day=p[0],b)for(var T=1;T<=31;T+=1)b(T).replace(/\[|\]/g,"")===h&&(this.day=T)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(h){var b=d("months"),p=(d("monthsShort")||b.map(function(T){return T.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(h){var b=d("months").indexOf(h)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function S(h){var b,p;b=h,p=i&&i.formats;for(var T=(h=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,A,G){var _=G&&G.toUpperCase();return A||p[G]||o[G]||p[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,w,x){return w||x.slice(1)})})).match(n),V=T.length,F=0;F<V;F+=1){var O=T[F],E=v[O],N=E&&E[0],D=E&&E[1];T[F]=D?{regex:N,parser:D}:O.replace(/^\[|\]$/g,"")}return function(k){for(var A={},G=0,_=0;G<V;G+=1){var $=T[G];if(typeof $=="string")_+=$.length;else{var w=$.regex,x=$.parser,L=k.slice(_),B=w.exec(L)[0];x.call(A,B),k=k.replace(B,"")}}return function(z){var C=z.afternoon;if(C!==void 0){var H=z.hours;C?H<12&&(z.hours+=12):H===12&&(z.hours=0),delete z.afternoon}}(A),A}}return function(h,b,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var T=b.prototype,V=T.parse;T.parse=function(F){var O=F.date,E=F.utc,N=F.args;this.$u=E;var D=N[1];if(typeof D=="string"){var k=N[2]===!0,A=N[3]===!0,G=k||A,_=N[2];A&&(_=N[2]),i=this.$locale(),!k&&_&&(i=p.Ls[_]),this.$d=function(L,B,z){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*L);var C=S(B)(L),H=C.year,X=C.month,Y=C.day,Q=C.hours,oe=C.minutes,re=C.seconds,ae=C.milliseconds,M=C.zone,J=new Date,P=Y||(H||X?1:J.getDate()),q=H||J.getFullYear(),R=0;H&&!X||(R=X>0?X-1:J.getMonth());var U=Q||0,K=oe||0,I=re||0,j=ae||0;return M?new Date(Date.UTC(q,R,P,U,K,I,j+60*M.offset*1e3)):z?new Date(Date.UTC(q,R,P,U,K,I,j)):new Date(q,R,P,U,K,I,j)}catch{return new Date("")}}(O,D,E),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),G&&O!=this.format(D)&&(this.$d=new Date("")),i={}}else if(D instanceof Array)for(var $=D.length,w=1;w<=$;w+=1){N[1]=D[w-1];var x=p.apply(this,N);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}w===$&&(this.$d=new Date(""))}else V.call(this,F)}}})})(Mr);var wi=Mr.exports;const Si=Me(wi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){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(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="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 y}});return s.bind(this)(d)}}})})(jr);var vi=jr.exports;const Ti=Me(vi);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,y,v,S,h){var b=d.name?d:d.$locale(),p=s(b[y]),T=s(b[v]),V=p||T.map(function(O){return O.slice(0,S)});if(!h)return V;var F=b.weekStart;return V.map(function(O,E){return V[(E+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,y){return d.formats[y]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,h,b){return h||b.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):i(d,"months")},monthsShort:function(y){return y?y.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):i(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},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(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(_r);var $i=_r.exports;const xi=Me($i);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o="week",n="year";return function(a,l,s){var i=l.prototype;i.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=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var y=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),v=this.diff(y,o,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Pr);var Ci=Pr.exports;const Ei=Me(Ci);var Hr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(Hr);var Ni=Hr.exports;const ki=Me(Ni);var zr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(zr);var Vi=zr.exports;const Oi=Me(Vi);var Wr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Wr);var Ii=Wr.exports;const Ri=Me(Ii);var Kr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(Kr);var Ai=Kr.exports;const Di=Me(Ai);De.extend(xi),De.extend(Ti),De.extend(Si),De.extend(Ei),De.extend(ki),De.extend(Oi),De.extend(Ri),De.extend(Di);const yt={format(e,t){return De(e).format(t)},parser(e,t){return De(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(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/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),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=l-(s-1)*i,f=l+(7-s)*i,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]=yt.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=yt.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(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},Yr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Ur={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Fi(e,t,o){return{props:{...he,...ve,...Yr,...Ur},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),y=e,v=r.computed(()=>({[`${y}__input`]:!0})),S=w=>{d.value=w,i("update:modelValue",w),i("change",w)};let h=se(n,"hintText"),b=r.ref(!1);const p=w=>{let L=w.target.value;c.value=!0,fe(h.value)||(b.value=!0),i("focus",L,w)},T=w=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let L=w.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,w)},V=()=>{i("clear","")},F=w=>{i("calendar-change",w)},O=(w,x,L)=>{i("panel-change",w,x,L)},E=w=>{i("visible-change",w)},N=Ce(r.computed(()=>n.longTermValue),"longTermText",Ve.Near),D=Ce(r.computed(()=>n.longTermValue),"longTermValue",Ve.Near);let k=null;const A=r.ref(ee(n.longTerm)),G=w=>{if(A.value=w,i("update:longTerm",w),w){let x="";Array.isArray(D.value)?x=D.value.map((L,B)=>L||(Array.isArray(d.value)&&d.value[B]?d.value[B]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):x=D.value,k=d.value,i("update:modelValue",x)}else i("update:modelValue",k)},_=ee(n.isLongTerm);if(_){const w=()=>{if(A.value===!0){let x="";Array.isArray(D.value)?x=D.value.map((L,B)=>L||(Array.isArray(d.value)&&d.value[B]?d.value[B]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):x=D.value,k=d.value,i("update:modelValue",x)}else _e(D.value,d.value)&&(A.value=!0)};w(),r.watch([()=>n.longTerm],([x])=>{A.value!==x&&w()})}const $=r.ref();return pe({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()}}),()=>{const x={...a.attrs,ref:$,class:v.value,placeholder:f.placeholder.value,disabled:l.value||A.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":S,onClear:V,onFocus:p,onBlur:T,onCalendarChange:F,onPanelChange:O,onVisibleChange:E},L={};a.slots["range-separator"]&&(L["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(L.default=a.slots.cell);const B=[],z=r.h(m.ElDatePicker,x,L);B.push(z);const C={default:()=>B};if(a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip),_){const Q={label:N.value,disabled:s.value||l.value,modelValue:A.value,"onUpdate:modelValue":G},oe=r.h(m.ElCheckbox,Q),re=r.h("div",{class:{[`${y}__append`]:!0}},[oe]);C.append=()=>re}const X={...Se(n,Yr,Ur),class:{[`${y}__wrapper`]:!0,"has-append":_},hintText:h.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,X,C)}}}}const{componentName:Bi,create:Li,scope:qi}=te("date-item"),Gr=Li(Fi(Bi,qi,ye)),Xr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...he,...ve,...Xr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0})),S=E=>{d.value=E,i("update:modelValue",E),i("change",E)};let h=se(n,"hintText"),b=r.ref(!1);const p=E=>{let D=E.target.value;c.value=!0,fe(h.value)||(b.value=!0),i("focus",D,E)},T=E=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let D=E.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,E)},V=()=>{i("clear","")},F=E=>{i("visible-change",E)},O=r.ref();return pe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()}}),()=>{const N={...a.attrs,ref:O,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:V,onFocus:p,onBlur:T,onVisibleChange:F},D={},k=[],A=r.h(m.ElTimePicker,N,D);k.push(A);const G={default:()=>k};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const $={...Se(n,Xr),hintText:h.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,$,G)}}}}const{componentName:ji,create:_i,scope:Pi}=te("time-item"),Zr=_i(Mi(ji,Pi,ye)),Jr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hi(e,t,o){return{props:{...he,...ve,...Jr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0})),S=O=>{d.value=O,i("update:modelValue",O),i("change",O)};let h=se(n,"hintText"),b=r.ref(!1);const p=O=>{let N=O.target.value;c.value=!0,fe(h.value)||(b.value=!0),i("focus",N,O)},T=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,O)},V=()=>{i("clear","")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const E={...a.attrs,ref:F,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:V,onFocus:p,onBlur:T},N={},D=[],k=r.h(m.ElTimeSelect,E,N);D.push(k);const A={default:()=>D};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const _={...Se(n,Jr),hintText:h.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,_,A)}}}}const{componentName:zi,create:Wi,scope:Ki}=te("time-select-item"),Qr=Wi(Hi(zi,Ki,ye));function eo(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 to(e,t,o=20){if(typeof t=="string"&&(t=we(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ln(`${e}`,`${t}`);return eo(n)}else{let n=en(`${e}`,qn(`${t}`),20);return eo(n)}}function Yi(e,t=-1,o=!1,n=3,a=","){return Tt(e,t,o,n,a)}function no(e,t,o,n,a=!0){if(e=="")return"";if(e=Mn(e),t=we(t),t==1)return e;if(n)e=to(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(we(o)+2,"0"):e=en(e,1,we(o)));else{let l=-1*t;e=to(e,l)}return e}function ro(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ee(t.minInclude),a=tn(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=ee(t.maxInclude),a=tn(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const oo={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 Ui(e,t,o){return{props:{...he,...ve,...oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.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],([$,w,x])=>{if(fe($)){c.value="";return}const L=no($,w,x,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:y}=Ie.useFoxI18n(t),v=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!fe(c.value)?$=Yi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=y(["placeholder",$]),$}),S=e,h=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__placeholder`]:c.value.length>0})),b=Ce(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const p=r.ref(""),T=r.computed(()=>{let $=p.value;return fe($)&&($=n.errorTip??""),$}),V=r.ref(""),F=r.ref(!1),O=($,w)=>{if($=`${$}`,fe($)){c.value="",f.value="",w.forEach(x=>{i(x,"")}),ee(n.showTip)&&F.value&&(F.value=!1);return}if($.length>=2){let x=$;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!Un($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Gn($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Xn($)>Number(n.decimalLength)){r.triggerRef(c);return}let x=ro($,n);if(x.maxValid===!1){p.value=x.message,r.triggerRef(c);return}}else if(n.min!=null&&we(n.min)>=0){r.triggerRef(c);return}V.value=$,ee(n.showTip)&&(F.value=$.length>0),c.value=$,f.value=no($,n.rates,n.precision,!0),w.forEach(x=>{i(x,f.value)})},E=$=>{O($,["update:modelValue","input"])},N=$=>{O($,["update:modelValue","change"])},D=$=>{if(u.value=!0,ee(n.showTip)){let w=c.value;fe(w)&&(w=n.hintText),fe(w)||(V.value=w,F.value=!0)}p.value="",i("focus",f.value,$)},k=$=>{if(setTimeout(()=>{u.value=!1,ee(n.showTip)&&F.value===!0&&(F.value=!1)},0),!fe(c.value)){let w=ro(c.value,n);if(w.minValid===!1||w.maxValid===!1){p.value=w.message;return}}i("update:modelValue",f.value,$),i("blur",f.value,$)},A=()=>{i("clear","")},G=r.computed(()=>ct(n.unit)>0),_=r.ref();return pe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const w={...a.attrs,ref:_,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:v.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onInput:E,onChange:N,onFocus:D,onBlur:k},x={};a.slots.prepend&&(x.prepend=a.slots.prepend),a.slots.append&&(x.append=a.slots.append),a.slots.prefix&&(x.prefix=a.slots.prefix),a.slots.suffix?x.suffix=a.slots.suffix:G.value&&(x.suffix=()=>[n.unit]);const L=[],B=r.h(m.ElInput,w,x);L.push(B);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const H={...Se(n,oo),errorTip:T.value,hintText:V.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,H,z)}}}}const{componentName:Gi,create:Xi,scope:Zi}=te("money-item"),ao=Xi(Ui(Gi,Zi,ye)),lo={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 Ji(e,t,o){return{props:{...he,...ve,...lo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0,[`${y}__append`]:E.value})),S=r.computed(()=>({[`${y}__unit`]:!0})),h=D=>{d.value=D,i("update:modelValue",D),i("input",D)},b=D=>{i("change",D)};let p=se(n,"hintText"),T=r.ref(!1);const V=D=>{let A=D.target.value;c.value=!0,fe(p.value)||(T.value=!0),i("focus",A,D)},F=D=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let A=D.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,D)},O=()=>{i("clear","")},E=r.computed(()=>ct(n.unit)>0),N=r.ref();return pe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()}}),()=>{const k={...a.attrs,ref:N,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:O,onChange:b,onInput:h,onFocus:V,onBlur:F},A={},G=[],_=r.h(m.ElInputNumber,k,A);G.push(_);const $={default:()=>G};a.slots.default&&($.label=a.slots.default),a.slots.fixedTip&&($.fixedTip=a.slots.fixedTip);const x={...Se(n,lo),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};if(a.slots.append)$.append=a.slots.append;else if(E.value){const B={class:S.value},z=r.h("div",B,[n.unit]);$.append=()=>z}return r.h(o,x,$)}}}}const{componentName:Qi,create:es,scope:ts}=te("input-number-item"),io=es(Ji(Qi,ts,ye));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ns(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,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`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function os(){const e=r.getCurrentInstance();return new rs(e.proxy)}function $n(e,t,o){const n=Ue(e,t),a=Ue(e,o);if(n!==a)return!1;const l=Ge(e,t),s=Ge(e,o);return l===s}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=[];let l=n;for(let s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=so(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ue(e,f)===i;else if(o==="item")u=$n(e,f,i);else{let c=Ge(e,f);c==null&&(c=Ue(e,f)),u=c===i}if(u){a.push(f),l=ns(e,f);break}}if(!u)break}}return a}function as(e){return{text:e,value:e}}const uo={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 ls(e,t,o){return{props:{...he,...ve,...uo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),y=r.computed(()=>d.value?d.value.map(J=>Ue(n,J)).join(" "):""),v=(M,J,P,q=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===M)return;c.value=M;const K=r.toRaw(M);if(q){const I=ae?.value.getCheckedNodes();if(I)if(n.multiple){const j=[];I.forEach(W=>{const ie=(W.pathNodes??[]).map(le=>le.data);j.push(ie)}),i("update:pathNodes",j)}else{const W=(I[0]?.pathNodes??[]).map(Z=>Z.data);i("update:pathNodes",W)}i("update:modelValue",K),i("change",K)}}const R=so(n,M,J,P);if(R===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,q&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let U=!0;if(R.length!==d.value.length)U=!1;else for(let K=0;K<R.length;K++){const I=R[K],j=d.value[K];if(Array.isArray(I)){if(!Array.isArray(j)||I.length!==j.length)U=!1;else for(let W=0;W<I.length;W++)if(!$n(n,I[W],j[W])){U=!1;break}}else $n(n,I,j)||(U=!1);if(!U)break}if(!U){d.value=R;let K=[],I=[];R.forEach(W=>{if(Array.isArray(W)){let Z=[],ie=[];for(let le of W)Z.push(Ge(n,le)),n.valueType==="text"?ie.push(Ue(n,le)):n.valueType==="item"?ie.push(le):ie.push(Ge(n,le));K.push(Z),I.push(ie)}else K.push(Ge(n,W)),n.valueType==="text"?I.push(Ue(n,W)):n.valueType==="item"?I.push(W):I.push(Ge(n,W))}),c.value=K;const j=r.toRaw(I);q&&(i("update:pathNodes",R),i("update:modelValue",j),i("change",j))}},S=r.ref([]),h=Ce(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,M=>ee(M)),b=os(),p=async(M,J)=>{if(M){const P=await b.load("cascader",M,J);if(P.length>0)if(typeof P[0]=="string"){let U=P.map(K=>as(K));S.value=U}else S.value=P}};r.watch([()=>n.source,()=>n.params],async([M,J])=>{p(M,J)},{immediate:!(h.value||n.lazy)});let T=!1;const V=()=>{T||(T=!0,p(n.source,n.params))};r.watch([()=>S.value,()=>n.modelValue],([M,J])=>{v(J,n.valueType,M,!1)}),n.lazy&&v(n.modelValue,"value",[],!1);let F=null,O=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async M=>{if(M!=null){O.value=!0;try{const J=await n.remoteMethod(M);S.value=J}catch(J){console.error(J)}O.value=!1}});const E=r.ref(!1),N=e,D=r.computed(()=>({[N]:!0})),k=r.computed(()=>{let M={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(M.multiple=!0),n.props&&Object.assign(M,n.props),n.lazy&&(M.lazy=!0,M.lazyLoad=async(J,P)=>{const q=await b.load("cascader",n.source,J,!0);P(q)}),M}),A=M=>{n.allowCreate?(i("update:modelValue",M),i("change",M),c.value=M):v(M,"value",S.value,!0)};let G=se(n,"hintText"),_=r.ref(!1);const $=M=>{let P=M.target.value;E.value=!0,fe(G.value)||(_.value=!0),i("focus",P,M)},w=M=>{setTimeout(()=>{_.value&&(_.value=!1),E.value=!1},0);let P=M.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),Y.value||i("blur",P,M)},x=()=>{i("clear","")},L=r.ref(!1);let B=null;const z=()=>{n.showTooltip&&L.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{L.value=!0},150))},C=()=>{B&&(clearTimeout(B),L.value=!1,B=null)},H=r.computed(()=>L.value||_.value),X=r.computed(()=>L.value?y.value:G.value),Y=r.ref(!1),Q=M=>{Y.value=M,i("visible-change",M),M||i("selected")},oe=M=>{i("remove-tag",M)},re=M=>{i("expand-change",M)},ae=r.ref();return pe({focus:()=>{ae?.value.focus()},blur:()=>{ae?.value.blur()},getCheckedNodes:()=>ae?.value.getCheckedNodes()}),()=>{const J={...a.attrs,ref:ae,class:D.value,props:k.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:S.value,modelValue:c.value,onClear:x,onChange:A,onFocus:$,onBlur:w,onVisibleChange:Q,onRemoveTag:oe,expandChange:re};typeof F=="function"&&(J["remote-method"]=F,J.loading=O.value);const P={};a.slots.option&&(P.default=a.slots.option),a.slots.empty&&(P.empty=a.slots.empty);const q=[],R=r.h(m.ElCascader,J,P);q.push(R);const U={default:()=>q};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const I={...Se(n,uo),hintText:X.value,hintVisible:H.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:z,onMouseleave:C};return h.value&&!n.lazy&&(I["appear-listen"]=!0,I.onAppear=V),r.h(o,I,U)}}}}const{componentName:is,create:ss,scope:us}=te("cascader-item"),co=ss(ls(is,us,ye)),fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cs(e,t,o){return{props:{...he,...ve,...fo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ie.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),y=e,v=r.computed(()=>({[y]:!0})),S=N=>{d.value=N,i("update:modelValue",N),i("input",N)},h=N=>{i("change",N)},b=N=>{i("select",N)};let p=se(n,"hintText"),T=r.ref(!1);const V=N=>{let k=N.target.value;c.value=!0,fe(p.value)||(T.value=!0),i("focus",k,N)},F=N=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let k=N.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,N)},O=()=>{i("clear","")},E=r.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()}}),()=>{const D={...a.attrs,ref:E,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:O,onChange:h,onInput:S,onFocus:V,onBlur:F,onSelect:b},k={};a.slots.prepend&&(k.prepend=a.slots.prepend),a.slots.append&&(k.append=a.slots.append),a.slots.prefix&&(k.prefix=a.slots.prefix),a.slots.suffix&&(k.suffix=a.slots.suffix),a.slots.option&&(k.default=a.slots.option);const A=[],G=r.h(m.ElAutocomplete,D,k);A.push(G);const _={default:()=>A};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const w={...Se(n,fo),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,w,_)}}}}const{componentName:fs,create:ds,scope:hs}=te("autocomplete-item"),ho=ds(cs(fs,hs,ye));function gs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(y=>y[n]===c);if(!d)break;s.push(d[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(y=>y[n]===c);if(!d)break;s.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(y=>y[n]===c);if(!d)break;s.push(d[o]),u=d[a]}}return s}let ms=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`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}const go={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 ys(e,t){return{props:{...go},setup(o,{attrs:n,slots:a}){const l=ps(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=gs(o.modelValue,s.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:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:uf,create:bs,scope:cf}=te("mapping"),Pt=bs(ys());function ws(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ss(e,t){return{props:{...go},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=ws(s.row,s.column.property);return a.default?r.h(Pt,{...o,modelValue:i},{default:a.default}):r.h(Pt,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:ff,create:vs,scope:df}=te("table-mapping-column"),mo=vs(Ss()),Ts=Symbol.for("TableStateKey");function po(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function $s(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(Ts,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=po(i.row,i.column.property),f=l?po(l,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":c}};return r.h("label",v,[y])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:hf,create:xs,scope:gf}=te("table-radio-column"),yo=xs($s()),Cs={},Es={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"},Ns=[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 ks(e,t){return r.openBlock(),r.createElementBlock("svg",Es,Ns)}const Vs=Oe(Cs,[["render",ks]]),{componentName:pf,create:Os,scope:yf}=te("table-setting"),Is={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:"不固定"}},Rs=Os({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:Vs,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Is},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),s=r.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),i=r.computed(()=>a.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=C=>C.length>1,y=C=>{const H=[];a.value=C.map((Y,Q)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&H.push(Y.prop),{...Y,sortIndex:Q})),i.value.length+l.value.length+s.value.length===H.length?T.value=!0:H.length>0&&(V.value=!0),E.value=H},v=C=>C?C.type?C.type:C.label?C.prop:"":"",S=(C,H)=>{if(C.length!==H.length)return!1;const X=C.map(Y=>v(Y));for(let Y of H){const Q=v(Y);if(X.indexOf(Q)===-1)return!1}return!0},h=C=>{if(!C){const H=e.tableRef.getColumnSetting(),X=H.srcColumnPropertyList;n=X.map((Y,Q)=>({...Y,sortIndex:Q})),C=H.columnPropertyList,C&&C.length>0&&S(X,C)||(C=X)}y(C)},b=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),V=r.ref(!1),F=C=>{const H=[];a.value.forEach(Y=>{C&&!(Y.label===""||Y.type)&&H.push(Y.prop),Y.visible=C}),T.value=!1,V.value=!1,i.value.length+l.value.length+s.value.length===H.length?T.value=!0:H.length>0&&(V.value=!0),E.value=H,b()},O=()=>{h(n),b()},E=r.ref([]),N=C=>{a.value.forEach(X=>{if(X.label===""||X.type)return;const Y=C.indexOf(X.prop)!==-1;X.visible=Y}),T.value=!1,V.value=!1;const H=i.value.length+l.value.length+s.value.length;C.length===H?T.value=!0:C.length>0&&(V.value=!0),b()},D=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const k={currentRow:null,index:null,roleType:null},A=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,A(C)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:T,isIndeterminate:V,handleCheckAllChange:F,handleReset:O,checkedValue:E,handleCheckChange:N,onShow:D,onDragStart:C=>{const H=C.currentTarget;H&&H.dataset&&(k.roleType=H.dataset.roleType,k.index=H.dataset.index)},onDragEnd:C=>{k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null),k.index=null,k.roleType=null},onDragOver:C=>{const H=C.currentTarget;C.relatedTarget;const X=A(H);if(!X)return;const Y=X.dataset&&X.dataset.roleType;k.roleType===Y&&(C.preventDefault(),k.currentRow&&k.currentRow!==X&&k.currentRow.classList.remove("is-dragover"),X.classList.add("is-dragover"),k.currentRow=X)},onDragLeave:C=>{C.preventDefault(),k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null)},onDrop:C=>{const H=C.currentTarget,X=A(H);if(!X)return;const Y=X.dataset&&X.dataset.roleType;if(k.roleType!==Y)return;C.preventDefault();const Q=Number(k.index),oe=Number(X.dataset.index);if(Q!==oe){if(Q<oe){const re=a.value[Q];a.value.splice(Q,1),a.value.splice(oe,0,re)}else{const re=a.value[Q];a.value.splice(Q,1),a.value.splice(oe+1,0,re)}y(a.value),b()}},toLeftFixed:C=>{const H=a.value[C];H.fixed="left",b()},toRightFixed:C=>{const H=a.value[C];H.fixed="right",b()},toUnFixed:C=>{const H=a.value[C];H.fixed=void 0,b()},checkboxLabelStyle:p}}}),As={class:"fox-table-setting"},Ds={class:"fox-table-setting__header"},Fs={class:"fox-table-setting__body"},Bs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ls={key:0,class:"fox-table-setting__body-title"},qs=["data-index","draggable"],Ms={class:"tools-item"},js={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"},zs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ws={key:0,class:"fox-table-setting__body-title"},Ks=["data-index","draggable"],Ys={class:"tools-item"};function Us(e,t,o,n,a,l){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),y=r.resolveComponent("Download"),v=r.resolveComponent("fox-checkbox"),S=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,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",As,[r.createElementVNode("div",Ds,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Fs,[r.createVNode(S,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Bs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ls,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ms,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(b.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:p=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,qs))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Hs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",zs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ws,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(v,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ys,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(b.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:p=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ks))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const xn=Oe(Rs,[["render",Us]]);let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){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,s,i]);const u=Ae(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(je(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function Xs(){const e=r.getCurrentInstance();return new Gs(e.proxy)}class Zs{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 Js(){const e=r.getCurrentInstance();return new Zs(e.proxy)}const Qs=Symbol.for("TableStateKey");function eu(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Cn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=eu(n,a);if(l!==s)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"}},wo={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}},En={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 tu(e,t,o){return{inheritAttrs:!1,props:{...he,...ve,...bo,...wo,...En},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Ie.useFoxI18n(t),{emitEvent:s}=ge({componentName:e,validateHandler:{getValue(...I){return V.value}}},n.prop??a.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),y=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,I=>{y.value=I});const v=I=>{y.value=I,s("page-index-change",I)},S=r.ref(n.pageSize);r.watch(()=>n.pageSize,I=>{S.value=I});const h=I=>{S.value=I,s("page-size-change",I)},b=r.shallowRef({}),p=r.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),V=r.ref(),F=Xs();let O=!0;const E=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:ee(n.autoLoad),N=Ce(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,I=>ee(I)),D=async(I,j,W,Z)=>{try{const ie=await F.load("table",I,j,W,Z,O,l.value);T.value=ie.totalSize,V.value=ie.page}catch(ie){console.error("[FoxUI] Load Table Data Fail",ie),T.value=0,V.value=[]}O=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([y,S],([I,j],[W,Z])=>{j!==Z&&(y.value=1,I=1),D(n.data,I,j,p.value)}),r.watch([()=>n.data,p],([I,j],[W,Z])=>{E()&&(I!==W&&(O=!0),!(!Array.isArray(I)&&_e(I,W)&&_e(j,Z))&&D(I,y.value,S.value,j))},{deep:!0});const k=(I={},j=!1)=>new Promise(W=>{b.value=r.toRaw(I??{}),r.triggerRef(b),j||(y.value=n.pageIndex??1),r.nextTick(async()=>{await D(n.data,y.value,S.value,p.value),W()})}),A=()=>{T.value=0,V.value=[]};let G=!1;const _=()=>{G||(G=!0,k())};E()&&!N.value&&k();const $=r.ref(null);r.provide(Qs,{currentRow:$});const w=(I,j)=>{$.value=I,s("current-change",I,j)},x=(I,j,W)=>{s("row-click",I,j,W),ee(n.rowClickSelectable)===!0&&K?.value.toggleRowSelection(I)},L=[],B=(I,j)=>{if(s("expand-change",I,j),ee(n.uniqueExpansion))if(Array.isArray(j)&&j.length==0){const W=L.length;L.splice(0,W)}else{L.forEach(Z=>{Z!==I&&K?.value.toggleRowExpansion(Z,!1)});const W=L.length;L.splice(0,W,I)}},z=a.attrs.id??n.prop??a.attrs.name,C=Js(),H=r.ref([]);let X=[];const Y=()=>({srcColumnPropertyList:X.map(j=>({...j})),columnPropertyList:H.value}),Q=I=>{H.value=[...I],re()},oe=async()=>{const I=await C.load(z);I&&(H.value=I)},re=()=>{C.save(z,H.value)},ae=()=>{C.remove(z)};oe();const M=I=>I?I.type?I.type:I.label?I.prop:"":"",J=r.computed(()=>{if(typeof a.slots.default=="function"){const I=a.slots.default(),j=new Map;if(X=[],I.forEach(W=>{const Z=W;if(!Z.props)return;const ie=M(Z.props);j.set(ie,W);const le={label:"",prop:""};Object.assign(le,Z.props),X.push(le)}),H.value.length===X.length){const W=[];for(let Z of H.value){const ie=M(Z),le=j.get(ie);if(!le)return I;if(Z.visible===!1)continue;const Ne=le;Ne.props.fixed=Z.fixed,W.push(Ne)}return W}return I}return[]}),P=r.shallowRef(new Map),q=({column:I,rowIndex:j})=>{const W=`${j}_${I.property}`;return P.value.get(W)??""},R=I=>typeof I=="function"?j=>{const W=[];let Z=q(j);return Z&&W.push(Z),Z=I(j),Z&&W.push(Z),W.length===0?"":W.join(" ")}:q,U=(I,j,W)=>{const Z=`${I}_${j}`;W?P.value.set(Z,W):P.value.delete(Z),r.triggerRef(P)},K=r.ref();return pe({clearSelection:()=>K?.value.clearSelection(),getSelectionRows:()=>K?.value.getSelectionRows(),toggleRowSelection:(I,j)=>{K?.value.toggleRowSelection(I,j)},toggleRowSelectionByProp:(I,j)=>{if(!V.value)return;const W=Cn(V.value,I);W.length!==0&&W.forEach(Z=>{K?.value.toggleRowSelection(Z,j)})},toggleAllSelection:()=>{K?.value.toggleAllSelection()},toggleRowExpansion:(I,j)=>{K?.value.toggleRowExpansion(I,j)},toggleRowExpansionByProp:(I,j)=>{if(!V.value)return;const W=Cn(V.value,I);W.length!==0&&W.forEach(Z=>{K?.value.toggleRowExpansion(Z,j)})},setCurrentRow:I=>{K?.value.setCurrentRow(I)},setCurrentRowByProp:I=>{if(!V.value)return;const j=Cn(V.value,I);j.length!==0&&K?.value.setCurrentRow(j[0])},getCurrentRow:()=>$.value,clearSort:()=>{K?.value.clearSort()},clearFilter:I=>{K?.value.clearFilter(I)},doLayout:()=>{K?.value.doLayout()},sort:(I,j)=>{K?.value.sort(I,j)},scrollTo:(I,j)=>{K?.value.scrollTo(I,j)},setScrollTop:I=>{K?.value.setScrollTop(I)},setScrollLeft:I=>{K?.value.setScrollLeft(I)},loadData:k,clearData:A,getData(){return V.value},getTotalSize(){return T.value},getPageIndex(){return y.value},getPageSize(){return S.value},getColumnSetting:Y,setColumnSetting:Q,removeColumnSetting:ae,setCellClassName:U}),()=>{const j={...a.attrs,onCurrentChange:w,onRowClick:x,onExpandChange:B,data:V.value,ref:K,class:u.value,"cell-class-name":R(n.cellClassName)},W={};a.slots.default&&(W.default=()=>J.value),a.slots.append&&(W.append=a.slots.append),a.slots.empty&&(W.empty=a.slots.empty);const Z=[],ie=r.h(m.ElTable,j,W);Z.push(ie);let le=null;if(typeof a.slots.pagination=="function")le=a.slots.pagination();else if(n.showPagination){const Ze={class:d.value,total:T.value,pageSize:S.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:y.value,"onUpdate:currentPage":v,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};le=r.h(m.ElPagination,Ze)}if(n.showSetting){const Ze=[];le&&Ze.push(le);const Jc=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(ke.Setting)}),Qc=Jn(n,En),ef=r.h(xn,{...Qc,tableRef:{getColumnSetting:Y,setColumnSetting:Q,removeColumnSetting:ae}},{default:()=>Jc});Ze.push(ef);const tf=r.h("div",{class:c.value},Ze);Z.push(tf)}else le&&Z.push(le);const Ne={default:()=>Z},Fe={...Se(n,bo,wo,En),prop:`${n.prop}_item`};return Fe.contentClass=`${i}__wrap`,Fe.errorMarkClass="is-table-error",N.value&&E()&&(Fe["appear-listen"]=!0,Fe.onAppear=_),r.h(o,Fe,Ne)}}}}const{componentName:nu,create:ru,scope:ou}=te("table-item"),So=ru(tu(nu,ou,ye));function rt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lu=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`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function iu(){const e=r.getCurrentInstance();return new lu(e.proxy)}function vo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=rt(e,t),a=rt(e,o);if(n!==a)return!1;const l=bt(e,t),s=bt(e,o);return l===s}function su(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 s=!1;if(o==="text")s=rt(e,l)===t;else if(o==="item")s=vo(e,l,t);else{let i=bt(e,l);i==null&&(i=rt(e,l)),s=i===t}if(s){a=l;break}}return a}function uu(e){return{text:e,value:e}}function cu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const To={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 fu(e,t,o){return{inheritAttrs:!0,props:{...he,...ve,...To},emits:["change","update:modelValue"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(N,D,k,A=!0)=>{const G=su(n,N,D,k);if(G===null){if(f.value===null)return;f.value=null,u.value=null,A&&(i("update:modelValue",null),i("change",null));return}if(!vo(n,G,f.value)){u.value=N;const $=r.toRaw(G);f.value=$;let w=null;n.valueType==="text"?w=rt(n,$):n.valueType==="item"?w=$:w=bt(n,$),A&&(i("update:modelValue",w),i("change",w))}},d=r.ref([]),y=Ce(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,N=>ee(N)),v=iu(),S=async(N,D)=>{if(N){const k=await v.load("radio",N,D);if(k.length>0)if(typeof k[0]=="string"){let _=k.map($=>uu($));d.value=_}else d.value=k}};r.watch([()=>n.source,()=>n.params],async([N,D])=>{S(N,D)},{immediate:!y.value});let h=!1;const b=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,D])=>{c(D,n.valueType,N,!1)});const p=e,T=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),V=N=>{c(N,"value",d.value,!0)};let F=se(n,"hintText"),O=se(n,"hintVisible");const E=(N,D)=>{const k=[];return N.forEach((A,G)=>{const _=bt(n,A),$=rt(n,A);let w=au(n,A);l.value===!0&&(w=l.value),s.value===!0&&(w=s.value);const x=cu(n,A,G)??{},L=`${_}_${G}`,B={...x,key:L,label:_,disabled:w,size:n.size,border:ee(n.border)};n.itemType==="button"?k.push(r.h(m.ElRadioButton,B,{default:()=>[$]})):typeof D=="function"?k.push(r.h(m.ElRadio,B,{default:()=>D(A)})):k.push(r.h(m.ElRadio,B,{default:()=>[$]}))}),k};return()=>{const D={...a.attrs,class:T.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:V},k=[],A={};a.slots.options?A.default=a.slots.options:A.default=()=>E(d.value,a.slots.text);const G=r.h(m.ElRadioGroup,D,A);k.push(G);const _={default:()=>k};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const w={...Se(n,To),hintText:F.value,hintVisible:O.value,prop:`${n.prop??a.attrs.name}_item`};return y.value&&(w["appear-listen"]=!0,w.onAppear=b),r.h(o,w,_)}}}}const{componentName:du,create:hu,scope:gu}=te("radio-item"),$o=hu(fu(du,gu,ye));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function at(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class pu{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`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function yu(){const e=r.getCurrentInstance();return new pu(e.proxy)}function xo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ot(e,t),a=ot(e,o);if(n!==a)return!1;const l=at(e,t),s=at(e,o);return l===s}function bu(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 s of n){let i=!1;if(o==="text")i=ot(e,s)===l;else if(o==="item")i=xo(e,s,l);else{let u=at(e,s);u==null&&(u=ot(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function wu(e){return{text:e,value:e}}function Su(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Co={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 vu(e,t,o){return{inheritAttrs:!0,props:{...he,...ve,...Co},emits:["change","update:modelValue"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(N,D,k,A=!0)=>{const G=bu(n,N,D,k);if(G===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],A&&(i("update:modelValue",[]),i("change",[]));return}let _=!0;if(G.length!==f.value.length)_=!1;else for(let $=0;$<G.length;$++){const w=G[$],x=f.value[$];if(!xo(n,w,x)){_=!1;break}}if(!_){f.value=G;let $=[],w=[];G.forEach(L=>{$.push(at(n,L)),n.valueType==="text"?w.push(ot(n,L)):n.valueType==="item"?w.push(L):w.push(at(n,L))}),u.value=$;const x=r.toRaw(w);A&&(i("update:modelValue",x),i("change",x))}},d=r.ref([]),y=Ce(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,N=>ee(N)),v=yu(),S=async(N,D)=>{if(N){const k=await v.load("checkbox",N,D);if(k.length>0)if(typeof k[0]=="string"){let _=k.map($=>wu($));d.value=_}else d.value=k}};r.watch([()=>n.source,()=>n.params],async([N,D])=>{S(N,D)},{immediate:!y.value});let h=!1;const b=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,D])=>{c(D,n.valueType,N,!1)});const p=e,T=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),V=N=>{c(N,"value",d.value,!0)};let F=se(n,"hintText"),O=se(n,"hintVisible");const E=(N,D)=>{const k=[];return N.forEach((A,G)=>{const _=at(n,A),$=ot(n,A);let w=mu(n,A);l.value===!0&&(w=l.value),s.value===!0&&(w=s.value);const x=Su(n,A,G)??{},L=`${_}_${G}`,B={...x,key:L,class:n.itemClass,label:_,disabled:w,size:n.size,border:ee(n.border)};n.itemType==="button"?k.push(r.h(m.ElCheckboxButton,B,{default:()=>[$]})):typeof D=="function"?k.push(r.h(m.ElCheckbox,B,{default:()=>D(A)})):k.push(r.h(m.ElCheckbox,B,{default:()=>[$]}))}),k};return()=>{const D={...a.attrs,class:T.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:we(n.max),min:we(n.min),onChange:V},k=[],A={};a.slots.options?A.default=a.slots.options:A.default=()=>E(d.value,a.slots.text);const G=r.h(m.ElCheckboxGroup,D,A);k.push(G);const _={default:()=>k};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const w={...Se(n,Co),hintText:F.value,hintVisible:O.value,prop:`${n.prop??a.attrs.name}_item`};return y.value&&(w["appear-listen"]=!0,w.onAppear=b),r.h(o,w,_)}}}}const{componentName:Tu,create:$u,scope:xu}=te("checkbox-item"),Eo=$u(vu(Tu,xu,ye)),No={modelValue:{type:[Number,String],required:!1}};function Cu(e,t,o){return{props:{...he,...ve,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=se(n,"modelValue",h=>we(h)),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let y=se(n,"hintText"),v=r.ref(!1);const S=r.ref();return pe({}),()=>{const b={...a.attrs,ref:S,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},T=[],V=r.h(m.ElRate,b,p);T.push(V);const F={default:()=>T};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const E={...Se(n,No),hintText:y.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,E,F)}}}}const{componentName:Eu,create:Nu,scope:ku}=te("rate-item"),ko=Nu(Cu(Eu,ku,ye)),Vo={modelValue:{type:[Boolean,String,Number],required:!1}};function Vu(e,t,o){return{props:{...he,...ve,...Vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=se(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let y=se(n,"hintText"),v=se(n,"hintVisible");const S=r.ref();return pe({}),()=>{const b={...a.attrs,ref:S,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},T=[],V=r.h(m.ElSwitch,b,p);T.push(V);const F={default:()=>T};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const E={...Se(n,Vo),hintText:y.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,E,F)}}}}const{componentName:Ou,create:Iu,scope:Ru}=te("switch-item"),Oo=Iu(Vu(Ou,Ru,ye)),Io={modelValue:{type:[String,Number,Boolean],required:!1}};function Au(e,t,o){return{props:{...he,...ve,...Io},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=$e(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=se(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),y=O=>{u("update:modelValue",O),u("change",O)};let v=se(n,"hintText"),S=r.ref(!1);const h=O=>{let N=O.target.value;i.value=!0,fe(v.value)||(S.value=!0),u("focus",N,O)},b=O=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),T.value||u("blur",N,O)},p=()=>{u("clear","")},T=r.ref(!1),V=O=>{T.value=O,u("visible-change",O),O||u("selected")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...a.attrs,ref:F,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:p,onFocus:h,onBlur:b,onVisibleChange:V},N={};a.slots.option&&(N.default=a.slots.option);const D=[],k=r.h(m.ElTreeSelect,E,N);D.push(k);const A={default:()=>D};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const _={...Se(n,Io),hintText:v.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,_,A)}}}}const{componentName:Du,create:Fu,scope:Bu}=te("tree-select-item"),Ro=Fu(Au(Du,Bu,ye)),Lu=Symbol.for("InnerPageScopeKey"),qu=Symbol.for("PageWrapperKey");function Mu(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(Lu,!0);const a={};r.provide(qu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...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":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:bf,create:ju,scope:wf}=te("dialog-item"),Ao=ju(Mu());function _u(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})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=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 h={class:s.value,style:i.value};c=r.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],v=r.h("div",d,y),S={class:l.value};return o.textPosition==="right"?r.h("div",S,[c,v]):r.h("div",S,[v,c])}}}}const{componentName:Pu,create:Hu,scope:Sf}=te("indicator"),Do=Hu(_u(Pu));function zu(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 Wu={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 Ku(e,t){return{props:{...Wu},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(y=>{c[y]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),i=c=>{if(c&&ee(o.showOverflowTooltip)){const d=c.clientWidth;zu(c,y=>{a.value=y<=d})}};let u=null;r.onMounted(()=>{if(!ee(o.showOverflowTooltip))return;const c=l.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let y=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const v=o.highlightFilter;if(c.indexOf(v)!==-1){const h=c.replace(new RegExp(v,"g"),`<span>${v}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,y=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const v=o.highlightFilter(c);v&&(d.innerHTML=v,d.class["is-highlight"]=!0,y=r.h(o.tag,d))}return y};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(ee(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const b=h[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const p=we(o.digits),T=we(o.decimalLength),V=ee(o.autoPadding);let F=`${h[0].children}`,O=F.split("").reverse().join("");O=Tt(O,T,V,p,o.separator),F=O.split("").reverse().join("");let E=null;o.highlightFilter!==void 0&&(E=f(F,d)),E||(d.innerHTML=F,E=r.h(o.tag,d)),c.default=()=>E}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const b=n.slots.default();if(Array.isArray(b)&&b.length===1){const p=b[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const T=`${b[0].children}`;h=f(T,d),h||(d.innerHTML=T,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>h}const v={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,v,c)}}}}const{componentName:Yu,create:Uu,scope:vf}=te("text"),Fo=Uu(Ku(Yu)),Gu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ke.ArrowUp}};function Xu(e,t,o){return{props:{...Gu},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}),s=se(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},b=r.h("span",h,[i.value]);d.push(b)}const y={class:f.value},v=o(n.icon,y);return v&&d.push(v),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Zu,create:Ju,scope:Qu}=te("more-button"),Bo=Ju(Xu(Zu,Qu,(e,t)=>(e=e??ke.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:ec,create:tc,scope:$f}=te("tour"),nc=tc({components:{Close:ke.Close,ElPopover:m.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=ec,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:S,maskWidth:h,maskHeight:b}=e,{width:p,height:T,left:V,top:F}=a.value,O=e.steps[n.active].offset??S,E=[V+p/2,F+T/2],N=Number(h||p),D=Number(b||T);return{width:`${N+ +O.left+O.right}px`,height:`${D+O.top+O.bottom}px`,top:`${E[1]-D/2-+O.top}px`,left:`${E[0]-N/2-+O.left}px`}}),i=S=>{S=="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=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,c=()=>{const S=document.querySelector(`${e.steps[n.active].target}`),h=wn(S);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},v=(S,h=0)=>{S&&c(),e.steps,n.active=h,n.showTour=S,n.showPopup=S};return r.onMounted(()=>{v(e.modelValue,e.current)}),r.watch(()=>e.modelValue,S=>{v(S)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),rc={key:0,class:"fox-tour__content"},oc={key:0,class:"fox-tour__content-top"},ac={class:"fox-tour__content-inner"},lc={class:"fox-tour__content-bottom"},ic={class:"fox-tour__content-bottom-init"},sc={class:"fox-tour__content-bottom-operate"},uc={key:1,class:"fox-tour__content fox-tour__content-tile"},cc={class:"fox-tour__content-inner"};function fc(e,t,o,n,a,l){const s=r.resolveComponent("Close"),i=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",rc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",oc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",ac,r.toDisplayString(f.content),1),r.createElementVNode("div",lc,[r.createElementVNode("div",ic,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",sc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{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(i,{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(i,{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",uc,[r.createElementVNode("div",cc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Lo=Oe(nc,[["render",fc]]),xe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Xe=e=>e==null,qo=10;function dc(e,t){return e>t&&e>qo?"horizontal":t>e&&t>qo?"vertical":""}function hc(){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 i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=dc(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function gc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function mc(e){e.stopPropagation()}function pc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&mc(e)}class yc{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=gc()}open(t){this.el=t;const o=hc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};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()&&pc(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 Mo(e,t){return new yc(e,t)}var jo;const Nn=typeof window<"u";Nn&&((jo=window?.navigator)!=null&&jo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let lt=[];const _o=e=>{const t=e;t.key==="Escape"&<.forEach(o=>o(t))},bc=e=>{r.onMounted(()=>{lt.length===0&&document.addEventListener("keydown",_o),Nn&<.push(e)}),r.onBeforeUnmount(()=>{lt=lt.filter(t=>t!==e),lt.length===0&&Nn&&document.removeEventListener("keydown",_o)})},kn="fox-focus-trap.focus-after-trapped",Vn="fox-focus-trap.focus-after-released",wc="fox-focus-trap.focusout-prevented",Po={cancelable:!0,bubbles:!1},Sc={cancelable:!0,bubbles:!1},Ho="foxFocusAfterTrapped",zo="foxFocusAfterReleased",vc=Symbol("foxFocusTrap"),On=r.ref(),Ht=r.ref(0),In=r.ref(0);let zt=0;const Wo=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},Tc=(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},Ko=(e,t)=>{for(const o of e)if(!Tc(o,t))return o},$c=e=>{const t=Wo(e),o=Ko(t,e),n=Ko(t.reverse(),e);return[o,n]},xc=e=>e instanceof HTMLInputElement&&"select"in e,ze=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),In.value=window.performance.now(),e!==o&&xc(e)&&t&&e.select()}};function Yo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Cc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Yo(e,n),e.unshift(n)},remove:n=>{e=Yo(e,n),e[0]?.resume?.()}}},Ec=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ze(n,t),document.activeElement!==o)return},Uo=Cc(),Nc=()=>Ht.value>In.value,Wt=()=>{On.value="pointer",Ht.value=window.performance.now()},Go=()=>{On.value="keyboard",Ht.value=window.performance.now()},kc=()=>(r.onMounted(()=>{zt===0&&(document.addEventListener("mousedown",Wt),document.addEventListener("touchstart",Wt),document.addEventListener("keydown",Go)),zt++}),r.onBeforeUnmount(()=>{zt--,zt<=0&&(document.removeEventListener("mousedown",Wt),document.removeEventListener("touchstart",Wt),document.removeEventListener("keydown",Go))}),{focusReason:On,lastUserFocusTimestamp:Ht,lastAutomatedFocusTimestamp:In}),Kt=e=>new CustomEvent(wc,{...Sc,detail:e}),{componentName:xf,create:Vc,scope:Cf}=te("focus-trap"),Oc=Vc({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:[Ho,zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=kc();bc(h=>{ee(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&&!ee(e.trapped)||i.paused)return;const{key:b,altKey:p,ctrlKey:T,metaKey:V,currentTarget:F,shiftKey:O}=h,{loop:E}=e,N=b==="Tab"&&!p&&!T&&!V,D=document.activeElement;if(N&&D){const k=F,[A,G]=$c(k);if(A&&G){if(!O&&D===G){const $=Kt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),E&&ze(A,!0))}else if(O&&[A,k].includes(D)){const $=Kt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),E&&ze(G,!0))}}else if(D===k){const $=Kt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};r.provide(vc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[b])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),b&&(b.removeEventListener("keydown",u),b.removeEventListener("focusin",d),b.removeEventListener("focusout",y))});const f=h=>{o(Ho,h)},c=h=>o(zo,h),d=h=>{const b=r.unref(n);if(!b)return;const p=h.target,T=h.relatedTarget,V=p&&b.contains(p);ee(e.trapped)||T&&b.contains(T)||(a=T),V&&o("focusin",h),!i.paused&&ee(e.trapped)&&(V?l=p:ze(l,!0))},y=h=>{const b=r.unref(n);if(!(i.paused||!b))if(!e.escape&&ee(e.trapped)){const p=h.relatedTarget;!ln(p)&&!b.contains(p)&&setTimeout(()=>{if(!i.paused&&ee(e.trapped)){const T=Kt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||ze(l,!0)}},0)}else{const p=h.target;p&&b.contains(p)||o("focusout",h)}};async function v(){await r.nextTick();const h=r.unref(n);if(h){Uo.push(i);const b=h.contains(document.activeElement)?a:document.activeElement;if(a=b,!h.contains(b)){const T=new Event(kn,Po);h.addEventListener(kn,f),h.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let V=e.focusStartEl;jn(V)||(ze(V),document.activeElement!==V&&(V="first")),V==="first"&&Ec(Wo(h),!0),(document.activeElement===b||V==="container")&&ze(h)})}}}function S(){const h=r.unref(n);if(h){h.removeEventListener(kn,f);const b=new CustomEvent(Vn,{...Po,detail:{focusReason:s.value}});h.addEventListener(Vn,c),h.dispatchEvent(b),!b.defaultPrevented&&(s.value=="keyboard"||!Nc())&&ze(a??document.body,!0),h.removeEventListener(Vn,f),Uo.remove(i)}}return r.onMounted(()=>{ee(e.trapped)&&v(),r.watch(()=>e.trapped,h=>{ee(h)?v():S()})}),r.onBeforeUnmount(()=>{ee(e.trapped)&&S()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Ic,create:Rc,scope:Nf}=te("floating-window"),Ac=Symbol.for("InnerPageScopeKey"),Dc=Symbol.for("PageWrapperKey"),Fc={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Bc=Rc({inheritAttrs:!1,components:{FoxIcon:m.ElIcon,FocusTrap:Oc},props:{...Fc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Ic,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,q=>{n.value=q});const a=r.computed(()=>n.value===!1?!1:!E.value),l=r.ref(e.left),s=r.ref(e.top),i=r.ref(e.right),u=r.ref(e.bottom),f=r.computed(()=>{const q=["fox-floating-window"];return e.customClass&&q.push(e.customClass),q}),c=r.computed(()=>{const q={};return Xe(l.value)?q.left="auto":q.left=xe(l.value),Xe(s.value)?q.top="auto":q.top=xe(s.value),Xe(i.value)?q.right="auto":q.right=xe(i.value),Xe(u.value)?q.bottom="auto":q.bottom=xe(u.value),Xe(e.zIndex)||(q["z-index"]=xe(e.zIndex)),Xe(F.value)||(q.height=F.value),Xe(O.value)||(q.width=O.value),q}),d=r.computed(()=>e.closeIcon??ke.Close),y=r.computed(()=>e.collapseIcon??ke.ArrowUp),v=r.computed(()=>e.collapseText??""),S=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),h=r.computed(()=>e.expandText??e.title??"展开"),b=r.computed(()=>({[`${o}__collapse-text`]:!0})),p=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!E.value,"is-collapse":E.value})),T=r.ref(),V=r.ref(),F=r.computed(()=>xe(e.height)||""),O=r.computed(()=>xe(e.width)||""),E=r.ref(ee(e.collapse)),N=(q,R=!0)=>{E.value!==q&&(E.value=q,q?C():H(),t("update:collapse",q))};r.watch(()=>e.collapse,q=>{N(q)});const D=()=>{k()},k=q=>{q=q??!E.value,N(q)};r.provide(Ac,!0);const A={setCollapse:N};r.provide(Dc,A);const G=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{n.value=!1}):n.value=!1},_=r.ref(null),$=r.computed(()=>{const q=["fox-floating-window__fixednav"];return e.expandClass&&q.push(e.expandClass),e.collapsePosition==="left"?q.push("is-left"):e.collapsePosition==="right"&&q.push("is-right"),q}),w=r.ref(""),x=r.computed(()=>{const q={};return w.value?q.top=w.value:e.collapseTop&&(q.top=e.collapseTop),q}),L=r.ref(E.value);let B=null;const z=()=>{typeof B=="function"&&(B(),B=null)},C=()=>{_.value&&_.value.classList.add("slide-in"),L.value=!0,B=()=>{_.value&&_.value.classList.remove("slide-in")}},H=()=>{_.value&&_.value.classList.add("slide-out"),B=()=>{_.value&&_.value.classList.remove("slide-out"),L.value=!1}},X=()=>{l.value=null,s.value=null,i.value=null,u.value=null},Y={x:0,y:0},re=Mo(q=>{if(!T.value)return;const R=T.value;if(X(),e.origin==="left-top")l.value=R.offsetLeft,s.value=R.offsetTop,Y.x=l.value,Y.y=s.value;else if(e.origin==="left-bottom"){const U=document.documentElement.clientHeight||document.body.clientHeight;l.value=R.offsetLeft,u.value=U-(R.offsetTop+R.offsetHeight),Y.x=l.value,Y.y=u.value}else if(e.origin==="right-bottom"){const U=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;i.value=U-(R.offsetLeft+R.offsetWidth),u.value=K-(R.offsetTop+R.offsetHeight),Y.x=i.value,Y.y=u.value}else{const U=document.documentElement.clientWidth||document.body.clientWidth;i.value=U-(R.offsetLeft+R.offsetWidth),s.value=R.offsetTop,Y.x=i.value,Y.y=s.value}},q=>{if(!T.value)return;const R=T.value;X(),e.origin==="left-top"?(l.value=Y.x+q.x,s.value=Y.y+q.y,R.style.left=xe(l.value),R.style.top=xe(s.value)):e.origin==="left-bottom"?(l.value=Y.x+q.x,u.value=Y.y-q.y,R.style.left=xe(l.value),R.style.bottom=xe(u.value)):e.origin==="right-bottom"?(i.value=Y.x-q.x,u.value=Y.y-q.y,R.style.right=xe(i.value),R.style.bottom=xe(u.value)):(i.value=Y.x-q.x,s.value=Y.y+q.y,R.style.right=xe(i.value),R.style.top=xe(s.value))}),ae={x:0,y:0},P=Mo(q=>{_.value&&(ae.x=_.value.offsetLeft,ae.y=_.value.offsetTop)},q=>{if(!_.value)return;const R=ae.y+q.y;w.value=`${R}px`});return r.onMounted(()=>{e.draggable&&V.value&&T.value&&re.open(V.value),e.collapse===!0&&N(e.collapse,!1),_.value&&P.open(_.value)}),r.onBeforeUnmount(()=>{e.draggable&&V.value&&re.close(),_.value&&P.close()}),{classes:f,styles:c,isShow:a,closeIcon:d,onClose:G,dialogRef:T,headerRef:V,onClickToggle:D,collapseIcon:y,collapseText:v,collapseTextClasses:b,collapseIconClasses:p,expandIcon:S,expandText:h,isShowFixedNav:L,fixedNavRef:_,fixedNavClasses:$,fixedNavStyles:x,onAnimationEnd:z}}}),Lc={ref:"headerRef",class:"fox-floating-window__header"},qc={class:"fox-floating-window__title"},Mc={class:"fox-floating-window__tools"},jc={class:"fox-floating-window__body"},_c={class:"fox-floating-window__fixednav__text"};function Pc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[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(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Lc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",qc,r.toDisplayString(e.title),1),r.createElementVNode("div",Mc,[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(s,{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(s,{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,["disabled"])),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(s,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",_c,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],64)}const Xo=Oe(Bc,[["render",Pc]]);function Hc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return ir(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:kf,create:zc,scope:Vf}=te("domain-provider"),Zo=zc(Hc()),Wc={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 Kc(e,t){return{inheritAttrs:!1,props:Wc,setup(o,{slots:n}){if(Je&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const s=(y,v)=>{if(c===null){l.set(y,{visible:null,callback:v});return}a.has(y)&&c.unobserve(y),a.set(y,{visible:null,callback:v}),c.observe(y)},i=y=>{if(c===null){l.delete(y);return}a.has(y)&&(a.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;Sl({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(y,v,S)=>{c=new IntersectionObserver(h=>{for(let b of h){let p=!1;b.intersectionRatio>0&&(p=!0);const T=a.get(b.target);if(T)try{if(o.loadPolicy==="lazy"&&!p&&T.visible!==null)return;T.visible=p,T.callback(p)}catch(V){console.error(V)}}},{root:y,rootMargin:v,threshold:S}),l.forEach((h,b)=>{a.set(b,h),c?.observe(b)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([y,v])=>{if(v||!y||c)return;let S=null;typeof y=="string"?S=document.querySelector(y):S=y,S&&d(S,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Of,create:Yc,scope:If}=te("rolling-provider"),Jo=Yc(Kc()),Qo=10;function Uc(e,t){return e>t&&e>Qo?"horizontal":t>e&&t>Qo?"vertical":""}function Gc(){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),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",v=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:b=>{const p=b.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Uc(u.value,f.value))},start:b=>{v(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY,o.value=Date.now()},reset:v,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const Xc=[pr,yr,br,wr,$r,ye,Vr,Or,jt,Rr,Lr,Gr,Zr,Qr,ao,io,co,ho,mo,yo,xn,So,$o,Eo,ko,Oo,Ro,Ao,Pt,Sn,Do,Fo,Bo,Lo,Xo,Zo,Jo],Zc=new ja(Xc,[Ha],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=ho,g.Broadcast=sn,g.BroadcastKey=de,g.CascaderItem=co,g.CheckboxItem=Eo,g.Content=wr,g.DataItemsKey=Qe,g.DateItem=Gr,g.DateUtils=yt,g.DialogItem=Ao,g.Domain=kt,g.DomainKey=Ee,g.DomainProvider=Zo,g.FloatingWindow=Xo,g.FooterBar=br,g.Group=$r,g.HeaderBar=yr,g.HintText=jt,g.Indicator=Do,g.InputItem=Rr,g.InputNumberItem=io,g.Item=ye,g.Mapping=Pt,g.MoneyItem=ao,g.MoreButton=Bo,g.Page=pr,g.Price=Sn,g.PriorityPolicy=Ve,g.RadioItem=$o,g.RateItem=ko,g.RollingProvider=Jo,g.RowItem=Or,g.SelectItem=Lr,g.SlotItem=Vr,g.SwitchItem=Oo,g.TableItem=So,g.TableMappingColumn=mo,g.TableRadioColumn=yo,g.TableSetting=xn,g.Text=Fo,g.TimeItem=Zr,g.TimeSelectItem=Qr,g.Tour=Lo,g.TreeSelectItem=Ro,g.UniqueID=Nr,g.ValidateSchema=or,g.ValidateSchemaKey=Be,g.cancelRaf=na,g.clearNonNumber=ya,g.clone=on,g.compareTo=tn,g.createBroadcast=Ct,g.createValidateSchema=Nt,g.debounce=ht,g.debounceRef=Oa,g.decimalLength=Xn,g.default=Zc,g.defineBroadcast=va,g.defineConfigDomain=ir,g.defineDataItem=ur,g.defineDomain=fn,g.defineItem=ge,g.definePageState=cr,g.deleteGlobalValidator=Ca,g.disabledProperty=$e,g.divide=en,g.excludeProps=Se,g.extend=Ke,g.floatData=Sa,g.getGlobalValidateCheckEvents=tr,g.getGlobalValidateResetEvents=rr,g.getPageContentAreaHeight=Ot,g.getPageContentAreaWidth=It,g.getPageFooterAreaHeight=mt,g.getPageHeaderAreaHeight=gt,g.getRootDomain=et,g.hasSymbol=Pn,g.includeProps=Jn,g.indexOf=ba,g.installRules=sr,g.integerLength=Gn,g.isArray=la,g.isArrayLike=Wn,g.isBrowser=Je,g.isDate=ua,g.isESModule=da,g.isEmptyString=fe,g.isEqual=_e,g.isFunction=nn,g.isHidden=zn,g.isInnerPage=Aa,g.isMap=ia,g.isNil=ln,g.isNumberString=Un,g.isObject=je,g.isPlainObject=rn,g.isPromise=fa,g.isRegExp=Yn,g.isSet=sa,g.isString=jn,g.isSubPage=Da,g.isSymbol=ca,g.isWindow=Hn,g.lastIndexOf=wa,g.makeArray=pa,g.merge=Kn,g.multiply=Ln,g.negate=qn,g.nextTick=ga,g.numberFormat=Tt,g.objectToString=_n,g.once=Ia,g.property=Ce,g.raf=aa,g.readonlyProperty=Te,g.setGlobalValidateCheckEvents=Ea,g.setGlobalValidateHandler=$a,g.setGlobalValidateMessages=ka,g.setGlobalValidateResetEvents=Na,g.setGlobalValidator=xa,g.throttle=lr,g.toBoolean=ee,g.toNumber=we,g.toPadding=Re,g.toPx=ue,g.toPxDesc=me,g.toTypeString=$t,g.toValue=se,g.tryTimes=un,g.typeOf=xt,g.unNumberFormat=Mn,g.updatePageState=dn,g.useBroadcast=ft,g.useDomain=Le,g.useExpose=pe,g.useInnerSize=pn,g.usePageState=Vt,g.usePosition=xr,g.useRect=wn,g.useSize=mn,g.useTouch=Gc,g.valueLength=ct,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|