@fox-js/foxui-pc 4.1.1-24 → 4.1.1-25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +6007 -5846
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),dt=require("@fox-js/validator"),C=require("element-plus"),Oe=require("@element-plus/icons-vue"),Ae=require("@fox-js/i18n"),zt=window,ka=typeof window<"u";function Ea(){return typeof zt<"u"?zt.requestAnimationFrame||zt.webkitRequestAnimationFrame||function(e){zt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Pa(e){ka?cancelAnimationFrame(e):clearTimeout(e)}const Sr=Ea();function on(e,n="0"){let o=0,t=-1;e[0]=="-"&&(o++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,t=2,n=n.substring(1),n.length),e=Ie(e),n=Ie(n),[e,n]=ml(Ie(e),Ie(n)),o==1&&(t==1?e=qn(e):n=qn(n));let r=Tr(e,n);return o?o==2?"-"+Ie(r):e.length<r.length?Ie(r.substring(1)):"-"+Ie(qn(r)):Ie(r)}function qn(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Tr(n,a)}function Ie(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function ml(e,n){let o=e.split("."),t=n.split("."),r=o[0].length,a=t[0].length;return r>a?t[0]=new Array(Math.abs(r-a)+1).join("0")+(t[0]?t[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=t[1]?t[1].length:0,(r||a)&&(r>a?t[1]=(t[1]?t[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function Tr(e,n){[e,n]=ml(e,n);let o="",t=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+t;o=a%10+o,t=Math.floor(a/10)}return t?t.toString()+o:o}var be=(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))(be||{});function Vt(e,n=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let r=e.split("."),a=r[0],s=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let i=a.substr(0,a.length-n);return e=i+"."+a.substr(a.length-n)+s,i=Vt(e,0,o),(t?"-":"")+i+new Array(n+1).join("0")}}if(n==0)return a.length,vo(r[1],a,t,o)?(t?"-":"")+_n(a):(t?"-":"")+a;if(r[1]){if(r[1].length<n)return(t?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");s=r[1].substring(0,n);let u=r[1].substring(n);return u&&vo(u,s,t,o)&&(s=_n(s),s.length>n)?(t?"-":"")+_n(a,parseInt(s[0]))+"."+s.substring(1):(t?"-":"")+a+"."+s}function vo(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===be.DOWN||!o&&t===be.FLOOR||o&&t===be.CEILING)return!1;if(t===be.UP||o&&t===be.FLOOR||!o&&t===be.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(t){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function _n(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,t="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function Qn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Nt(e),n=Nt(n);let t=0,r=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=t+r;if(e=Nt(e.replace(".","")),n=Nt(n.replace(".","")),e.length<n.length){let h=e;e=n,n=h}if(n=="0")return"0";let s=n.length,u=0,i=[],c=s-1,m="";for(let h=0;h<s;h++)i[h]=e.length-1;for(let h=0;h<2*e.length;h++){let w=0;for(let y=n.length-1;y>=c&&y>=0;y--)i[y]>-1&&i[y]<e.length&&(w+=parseInt(e[i[y]--])*parseInt(n[y]));w+=u,u=Math.floor(w/10),m=w%10+m,c--}return m=Nt(Ia(m,a)),o==1&&(m="-"+m),m}function Ia(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Nt(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 Jn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ie(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ie(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ie(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let m=e.length-c+r;e=Ie(e.substring(0,m)+"."+e.substring(m))}else r==c&&(e=Ie(e.replace(".","")))}let a=0,s=n.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let c=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(c+=s-i.length,i=i+new Array(s-i.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(i)>=parseInt(n);)i=on(i,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,i=i+"0")}return(t==1?"-":"")+Ie(Vt(u,o-2))}function el(e,n){return e=e.toString(),n=n.toString(),n=tl(n),on(e,n)}function tl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function po(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),yo(e),yo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=el(e,Qn(n,Vt(Jn(e,n),0,be.FLOOR)));return o+t}function yo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function bo(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=ml(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=be;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,t]=n.split(/[eE]/);o=Ie(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(t=parseInt(t)+o.indexOf("."),o=o.replace(".","")):t=parseInt(t)+o.length,o.length<t?n=r+o+new Array(t-o.length+1).join("0"):o.length>=t&&t>0?n=r+Ie(o.substring(0,t))+(o.length>t?"."+o.substring(t):""):n=r+"0."+new Array(-t+1).join("0")+o}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,t){if(!(o||t))o=3,t=",";else if(!(o&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var s="",u=a;u>0;)u<o?(o=u,u=0):u-=o,s=n.substring(u,u+o)+(u<a-o&&u>=0?t:"")+s;return(r?"-":"")+s+n.substring(a)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,t=be.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Vt(n,o,t)}round(n=0,o=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Vt(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,be.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,be.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),on(n,o)}add(n){return new fe(on(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),el(n,o)}subtract(n){return new fe(el(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),Qn(n,o)}multiply(n){return new fe(Qn(this.value,n.getValue()))}static divide(n,o,t){return n=fe.validate(n),o=fe.validate(o),Jn(n,o,t)}divide(n,o){return new fe(Jn(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),po(n,o)}modulus(n){return new fe(po(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),bo(n,o)}compareTo(n){return bo(this.value,n.getValue())}static negate(n){return n=fe.validate(n),tl(n)}negate(){return new fe(tl(this.value))}}function Cr(e,n){return fe.multiply(`${e}`,`${n}`)}function gl(e,n,o=8){return fe.divide(`${e}`,`${n}`,o)}function nl(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function $r(e){return fe.negate(e)}function dn(e,n=-1,o=!1,t=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let u=a,i="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),i=a.substring(c+1)),n!=-1&&(n<i.length?i=i.substring(0,n):o&&n>i.length&&(i=i.padEnd(n,"0")));let m;if(t>0){let h="",w=u.split("").reverse();for(let y=0;y<w.length;y++)h+=w[y]+((y+1)%t==0&&y+1!=w.length?r:"");i.length==0?m=`${s}${h.split("").reverse().join("")}`:m=`${s}${h.split("").reverse().join("")}.${i}`}else i.length==0?m=`${s}${u}`:m=`${s}${u}.${i}`;return m}function Nr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const vl=Sr,Oa=Array.isArray,Da=e=>hn(e)==="[object Map]",Va=e=>hn(e)==="[object Set]",Ra=e=>e instanceof Date,ll=e=>typeof e=="function",kr=e=>typeof e=="string",Fa=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",Er=e=>Xe(e)&&ll(e.then)&&ll(e.catch),Pr=Object.prototype.toString,hn=e=>Pr.call(e),Aa=e=>hn(e)==="[object Object]",Ir=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ma(e){return e.__esModule||Ir&&e[Symbol.toStringTag]==="Module"}const La=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function xt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,t=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<t;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let s in a){let u=n[s],i=a[s];if(u!==i)if(r===!0&&i&&typeof i=="object"){let c;Array.isArray(i)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[s]=xt(r,c,i)}else i!==void 0&&(n[s]=i)}}return n}const jn=La?Promise.resolve():null;function Ba(e,...n){jn!==null?n&&n.length>0?jn.then(()=>{e(n)}):jn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function $e(e){return typeof e=="number"?e:Number(e)}const qa={"[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 rn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):qa[o]||"object"}function Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Dr(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Vr(e){let n=!!e&&"length"in e&&e.length,o=rn(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Rr(e,n){let o=+n.length,t=0,r=e.length;for(;t<o;t++)e[r++]=n[t];return e.length=r,e}function _a(e,n=[]){let o=n;return e!=null&&(Vr(Object(e))?Rr(o,typeof e=="string"?[e]:e):o.push(e)),o}function nt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=rn(e),t=rn(n);if(o!==t)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++){let u=r[s],i=e[u],c=n[u];if(!nt(i,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=n[r];if(!nt(a,s))return!1}return!0}return!1}const it=typeof window<"u";function _e(e){return e==null}function ol(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null||typeof e!="string"?!1:e.length===0;function pl(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Fr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Ar(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function xo(e,n,o){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(o,"")}function ja(e,n=!0,o=!0){n?e=xo(e,".",/\./g):e=e.replace(/\./g,""),o?e=xo(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function za(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(nt(e,o))return!0}):n.indexOf(e)}function Ha(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(nt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function Mt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function wt(e,...n){const o={};return n.forEach(t=>{for(const r in t)o[r]=e[r]}),o}function De(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const t={};for(const r in e)o.includes(r)||(t[r]=e[r]);return t}const Ka=(e,n,o)=>{const t=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(t[a]=n[r[a]]):n[a]&&(t[a]=n[a])}),t):e},xe=Symbol.for("BroadcastKey");class yl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,t){this.parent=n,this.proxy=o,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(t=>n===t);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,o,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=n.uniqueId,a={matched:n,action:o,args:t};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let t=!1;return!o.name||o.name==="*"||o.name==="+"||ol(o.name)&&n&&o.name.test(n)?t=!0:typeof o.name=="function"?t=Reflect.apply(o.name,null,[n]):o.name===n&&(t=!0),t}trigger(n,o,t){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...t]));const s=this.proxy??{};typeof s[o]=="function"&&(r=Reflect.apply(s[o],s,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(r)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(r){console.error(r)}}),n=n.parent}}emit(n,o,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const s=n.resolve,u=n.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(u),typeof s=="function"&&s(...c)};n.resolve=i}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):ol(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const s=this.callbacks.get(o);if(typeof s=="function"){const i=Reflect.apply(s,this.proxy,[...t]);i!=null&&a.push(i)}const u=this.proxy??{};if(typeof u[o]=="function"){const i=Reflect.apply(u[o],u,[...t]);i!=null&&a.push(i)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(s=>{const u=Reflect.apply(s.emit,s,[{...n},o,...t]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,o,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const a=n.resolve,s=n.uniqueId??"",u=(...i)=>{this.deletePersistantMessage(s),typeof a=="function"&&a(...i)};n.resolve=u}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...n},o,...t]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(n,o){this.callbacks.set(n,o)}}function mn(e,n,o,t){const r=new yl(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function Wa(e,n,o){const t=o;if(t[xe])return t[xe];const r=l.inject(xe,null),a=new yl(r,o,e);if(n&&typeof n=="object")for(const s in n)a.on(s,n[s]);return t[xe]=a,l.provide(xe,a),l.onUnmounted(()=>{a.destroy(),t[xe]=void 0}),a}function It(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[xe]??l.inject(xe,null):l.inject(xe,null)}class Ya{error(n,o){const t=o,r=o||l.hasInjectionContext()?It(o):null;r?r.emit({name:"*"},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?It(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?It(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?It(t):null,s=o.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),u=n.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let Ot=new Ya;function Ua(e){Ot=e}function Ga(e){Ot?Object.assign(Ot,e):Ot=e}function Xa(e,n){dt.Schema.setValidator(e,n)}function Za(e){dt.Schema.deleteValidator(e)}let Mr=["blur","clear"];function Qa(e){Mr=e}function Lr(){return Mr}let Br=["focus","change","setValue"];function Ja(e){Br=e}function qr(){return Br}function ei(e){dt.Schema.messages(e)}function kt(...e){const n=[];return e.forEach(o=>{o.forEach(t=>{const r=n.findIndex(a=>a.type===t.type);r!==-1&&n.splice(r,1),n.push(t)})}),n}function Ht(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ge=Symbol("ValidateSchemaKey");class _r{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,t){this.parent=n,this.descriptor=o,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Ht(kt(this.attrRules,this.rules)),t=[];for(let a in n){let s=n[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let i={type:a};s!==null&&typeof s=="object"&&Object.assign(i,s),t.push(i);continue}let u=this.getValidator(a);if(u!==null){let i={type:a,validator:u};t.push(i)}}this.attrRules=Ht(t);const r=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...o){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...o]);const r=Ot;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,t=!1){t?dt.Schema.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?dt.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return dt.Schema.hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const o=kt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ht(n):this.rules=Ht([n]);const t=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(t,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=kt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),s={[`${t}`]:a},u=new dt.Schema(r),i=this.proxy??s;return u.validate(s,{context:i}).then(m=>{if(m.pass)this.success();else{let h="error";Array.isArray(m.errors)&&m.errors.length>0&&(h=m.errors[0].message??h,m.errors=[m.errors[0]],m.errors[0].ref=i),this.error(h)}return m}).catch(m=>{const h=m.message??`${m}`;return this.error(h),m})}}return Promise.resolve({pass:!0})}}function gn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new _r(n,o,e)}const an=Symbol.for("EventEmitterKey");class jr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let t=this.register.get(n);if(t&&Array.isArray(t)){let r=t.findIndex(a=>a===o);r!==-1&&t.splice(r,1)}}on(n,o){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(o)}emit(n,...o){const t=this.register.get(n);t&&t.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ke(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function zr(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function ti(e,n){const o=Ke((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function ni(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function vn(e,n,o,t=0,r=!0,a){let s=n,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const i=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}s+=t,setTimeout(i,s)};setTimeout(i,s)}const Be=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class pn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=l.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const t in n){const r=n[t];o.length>0&&o.indexOf(r)!==-1||(this._props[t]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const r=t._props[n];o.push(r)}t=t._parent}return o}}const li=new pn;function pt(){return li}function st(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Be]??l.inject(Be,null):l.inject(Be,null)}const zn=Symbol("OriginalDateKey");function bl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Be,null);s===null&&(s=pt());const u=e||n.prop||n.name;let i=new pn(u);i.parent=s;const c=f=>{a[zn]||w(f),i?.set("modelValue",f)},m=()=>i?.getForSelf("modelValue")??null,h=()=>a[zn]??null,w=f=>{const d={};xt(!0,d,l.toRaw(f)),a[zn]=d};l.isReactive(n)||typeof n=="function"?l.watch(n,f=>{i?.merge(f,o)},{immediate:!0}):i.merge(n,o),n.modelValue&&w(n.modelValue);const y=(f,d)=>{i?.set(f,d)},x=f=>i?.getForSelf(f)??null;if(a[Be]=i,l.provide(Be,i),r!==null){const f=l.inject(xe,null),d=mn(a,f,u,t);i.broadcast=d,a[xe]=d,l.provide(xe,d),a.broadcast=(g,M,...B)=>Reflect.apply(d.emit,d,[g,M,...B]);const P=l.inject(Ge,null),v=gn(a,P,{componentName:""});i.validateSchema=v,a[Ge]=v,l.provide(Ge,v),a[gt]=new Map,a.validate=(g=!0)=>{const M=[];let B=null;const A={deep:!1};if(g===!0)B={name:"*"};else if(Array.isArray(g)&&g.length>0){const O=g;B={name:k=>k?O.indexOf(k)!==-1:!1}}else if(g!=null&&typeof g=="object"){const O=g;if(Object.assign(A,O),Array.isArray(O.include)&&O.include.length>0){const k=O.include;B={name:p=>p?k.indexOf(p)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const k=O.exclude;B={name:p=>p?k.indexOf(p)===-1:!1}}else B={name:"*"}}if(B){const O=d?.emitToChildren(B,"validate",A);O&&Reflect.apply([].push,M,O)}return M.length==1?M[0]:M.length>1?Promise.all(M).then(O=>{let k=[];return O.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(k=[...k,...p.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(g,M=!0,B=!1)=>{if(B===!0){Reflect.ownKeys(g).forEach(O=>{let k=String(O);const p={componentName:"",fieldName:k,pureDataValidate:!0};if(i){const _=Kr(i,k,p,d,v);a[gt].set(k,_);const $=g[k];$&&_.validateSchema.setRule($)}});return}if(M){const A=Reflect.ownKeys(g),O={name:k=>A.includes(k),cachePolicy:"Persistant",uniqueId:"validateRules"};d?.emitToChildren(O,"setNameValidateRules",g,!1)}},a.clearValidate=(g=!0)=>{let M=null;if(g===!0)M={name:"*"};else if(Array.isArray(g)&&g.length>0){const B=g;M={name:A=>A?B.indexOf(A)!==-1:!1}}else if(g!=null&&typeof g=="object"){const B=g;if(Array.isArray(B.include)&&B.include.length>0){const A=B.include;M={name:O=>O?A.indexOf(O)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;M={name:O=>O?A.indexOf(O)===-1:!1}}else M={name:"*"}}M&&d?.emitToChildren(M,"clearValidate",!1)},a.resetFields=g=>{const M=m();if(!M)return;const B={};if(xt(!0,B,h()??{}),Array.isArray(g))g.forEach(A=>{M[A]=B[A]});else if(g&&Array.isArray(g.include))(g.include??[]).forEach(O=>{M[O]=B[O]});else if(g&&Array.isArray(g.exclude)){let A=g.exclude??[];Reflect.ownKeys(B).forEach(O=>{A.includes(O)||(M[O]=B[O])})}else Object.assign(M,B);a.clearValidate(g)},a.setModelValue=(g,M)=>{if(!M||M===u)c(g);else{const B={name:M,messagingPolicy:"Once"};d?.emitToChildren(B,"setModelValue",g)}},a.getModelValue=()=>m(),a.setDomainProperty=(g,M)=>{y(g,M)},a.getDomainProperty=g=>x(g),setTimeout(function(){d?.pull()},0)}return l.onUnmounted(function(){i?.validateSchema&&(i.validateSchema.destroy(),a[Ge]=void 0,l.provide(Ge,null)),i?.broadcast&&(i?.broadcast?.destroy(),a[xe]=void 0,l.provide(xe,null)),i?.destroy(),a[Be]=void 0,l.provide(Be,null),a[gt]&&(a[gt].clear(),a[gt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,i=null,a=null}),i}function Hr(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Be,null);a===null&&(a=pt());const s=e||n.prop||n.name;let u=new pn(s);return u.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,i=>{u?.merge(i,o)},{immediate:!0}):u.merge(n,o),r[Be]=u,l.provide(Be,u),l.onUnmounted(()=>{u?.destroy(),r[Be]=void 0,l.provide(Be,null),u=null,r=null}),u}function Ee(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",s=l.inject(xe,null);let u=mn(r,s,a,o);r[xe]=u,l.provide(xe,u),r.broadcast=(x,f,...d)=>u?Reflect.apply(u.emit,u,[x,f,...d]):null;const i=l.inject(Ge,null);e.fieldName=e.fieldName??a;let c=gn(r,i,e);r[Ge]=c,l.provide(Ge,c),r.validate=(x=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let d=!1,P=!1;if(Array.isArray(x)&&x.indexOf(a)!==-1)P=!0,d=!0;else if(x&&typeof x=="object"){const v=x,g=v.ignoreDisabled??!0,M=v.ignoreReadonly??!0,B=v.ignoreHidden??!0;g===!0&&e.disabled===!0||M===!0&&e.readonly===!0||B===!0&&Dr(r.$el)?P=!1:(Array.isArray(v.include)&&v.include.indexOf(a)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(a),P=!0),d=v.deep??!1}else typeof x=="boolean"&&(d=x),P=!0;if(P){const v=c?.validate();f.push(v)}if(d){let v=null;const g={deep:!1};if(x===!0)v={name:"*"};else if(Array.isArray(x)&&x.length>0){const M=x;v={name:B=>B?M.indexOf(B)!==-1:!1}}else if(x!=null&&typeof x=="object"){const M=x;if(Object.assign(g,M),Array.isArray(M.include)&&M.include.length>0){const B=M.include;v={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const B=M.exclude;v={name:A=>A?B.indexOf(A)===-1:!1}}else v={name:"*"}}if(v&&u){const M=u.emitToChildren(v,"validate",g);Reflect.apply([].push,f,M)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(v=>{let g=[];return v.forEach(M=>{M.pass===!1&&Array.isArray(M.errors)&&(g=[...g,...M.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=x=>c?.setRule(x),r.setNameValidateRules=(x,f=!1)=>{const d=x[a];if(d&&c?.setRule(d),f&&u){const P={name:v=>Reflect.ownKeys(x).includes(v)};u.emitToChildren(P,"setNameValidateRules",x,!1)}},r.clearValidate=(x=null)=>{(!Array.isArray(x)||x.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(x===!0)f={name:"*"};else if(Array.isArray(x)&&x.length>0){const d=x;f={name:P=>P?d.indexOf(P)!==-1:!1}}else if(x!=null&&typeof x=="object"){const d=x;if(Array.isArray(d.include)&&d.include.length>0){const P=d.include;f={name:v=>v?P.indexOf(v)!==-1:!1}}else if(Array.isArray(d.exclude)&&d.exclude.length>0){const P=d.exclude;f={name:v=>v?P.indexOf(v)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let m=new jr(r);r[an]=m;const h=Ke((x="validate")=>{c&&(x==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Lr()).forEach(x=>{m&&m.on(x,f=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:qr()).forEach(x=>{m&&m.on(x,f=>{h("reset")})}),setTimeout(function(){u?.pull()},0),l.onUnmounted(()=>{u?.destroy(),r[xe]=void 0,l.provide(xe,null),u=null,c?.destroy(),r[Ge]=void 0,l.provide(Ge,null),c=null,m?.destroy(),r[an]=void 0,m=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(x,...f)=>{m&&Reflect.apply(m.emit,m,[x,...f])},onEvent:(x,f)=>{m&&Reflect.apply(m.on,m,[f])},offEvent:(x,f)=>{m&&Reflect.apply(m.off,m,[f])}}}function Kr(e,n,o,t,r){const a={},s=n??"",u={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};o.fieldName=s,o.validateHandler={getValue(m){return u.getValue()}};let i=gn({},r,o);a.validate=(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const h=[];let w=!1,y=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)y=!0,w=!0;else if(m&&typeof m=="object"){const x=m;Array.isArray(x.include)&&x.include.indexOf(s)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(s),y=!0,w=x.deep??!1}else typeof m=="boolean"&&(w=m),y=!0;if(y&&i){const x=i.validate();h.push(x)}if(w){let x=null;const f={deep:!1};if(m===!0)x={name:"*"};else if(Array.isArray(m)&&m.length>0){const d=m;x={name:P=>P?d.indexOf(P)!==-1:!1}}else if(m!=null&&typeof m=="object"){const d=m;if(Object.assign(f,d),Array.isArray(d.include)&&d.include.length>0){const P=d.include;x={name:v=>v?P.indexOf(v)!==-1:!1}}else if(Array.isArray(d.exclude)&&d.exclude.length>0){const P=d.exclude;x={name:v=>v?P.indexOf(v)===-1:!1}}else x={name:"*"}}if(x&&c){const d=c.emitToChildren(x,"validate",f);Reflect.apply([].push,h,d)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(x=>{let f=[];return x.forEach(d=>{d.pass===!1&&Array.isArray(d.errors)&&(f=[...f,...d.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>i?.setRule(m),a.setNameValidateRules=m=>{const h=m[s];h&&i?.setRule(h)};let c=mn(null,t,s,a);return l.onUnmounted(()=>{i=null,c=null}),{broadcast:c,validateSchema:i}}function Wr(){let n=l.getCurrentInstance()?.proxy,o=new jr(n);return n[an]=o,l.onUnmounted(()=>{o?.destroy(),n[an]=void 0,o=null,n=null}),{emitEvent:(t,...r)=>{o&&Reflect.apply(o.emit,o,[t,...r])},onEvent:(t,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(t,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const pe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ge(e,n)}px`:"",oi=pe;function ge(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(it){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(a=Number(s.substring(0,u)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const t=Number(e);return isNaN(t)?0:t}const at="PageStateKey";function Je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ge(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ge(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ge(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ge(e.right))),n}function rl(e,n,o={},t=!0,r=-1,a=-1,s=0,u=0){if(e.headerHeight=ge(o.headerHeight??n.headerHeight??-1),e.headerPadding=Je(o.headerPadding??n.headerPadding),e.footerHeight=ge(o.footerHeight??n.footerHeight??-1),e.footerPadding=Je(o.footerPadding??n.footerPadding),e.contentPadding=Je(o.contentPadding??n.contentPadding),t){const i=o.height??n.height;i?e.height=ge(i,a):e.height=ge(a)-ge(s,a)-ge(u,a),e.width=ge(o.width??n.width??0,r)}}function Yr(e,n={}){const o={top:null,bottom:null,right:null,left:null},t={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(t.safeAreaTop=ge(r.top),t.safeAreaBottom=ge(r.bottom),t.safeAreaLeft=ge(r.left),t.safeAreaRight=ge(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;rl(t,a,n,!0,s,u,i,c);const m=l.reactive(t),h=e.getForParent(at);h&&(t.height=sn(e,h),t.width=un(e,h),l.watch([()=>sn(e,h),()=>un(e,h)],([y,x])=>{m.height=y,m.width=x}));const w=!h;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,x,f=-1,d=-1,P=0,v=0])=>{rl(m,x,n,w,f,d,P,v)}),e.set(at,m),m}function yn(e){return e.get(at)}function bn(e,n){if(n=n??e.get(at),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function xn(e,n){if(n=n??e.get(at),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function sn(e,n){if(n=n??e.get(at),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=bn(e,n),t=xn(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function un(e,n){return n=n??e.get(at),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ri(e){return!!e.getForParent(at)}const xl=Symbol.for("InnerPageScopeKey");function wl(e){l.provide(xl,e)}function Lt(e=!1){return l.inject(xl,e)}const Sl=Symbol.for("AbstractPageScopeKey");function Ur(e){l.provide(Sl,e)}function Bt(e=!1){return l.inject(Sl,e)}var je=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(je||{});function Kt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Fe(e,n,o=1,t){const r=st();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const i=a[u];if(Kt(i,t))return i}const s=e.value;return Kt(s,t)?s:null}):l.computed(()=>{const a=e.value;if(Kt(a,t))return a;const s=r.getAll(n);for(let u=0;u<s.length;u++){const i=s[u];if(Kt(i,t))return i}return null})}function Me(e){return Fe(e,"readonly",1)}function Le(e){return Fe(e,"disabled",1)}function he(e,n="modelValue",o=null,t){const r=l.toRef(e,n);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,u=>{if(typeof o=="function"){const i=o(u);i!==s.value&&(s.value=i,t&&t("setValue",i))}else u!==s.value&&(s.value=u,t&&t("setValue",u))}),s}const Gr=new Map,cn=new Map;let al=null;function ai(e){al=e}function Xr(e,n,o){if(o){let t=cn.get(o);t||(t=new Map,cn.set(o,t)),t.set(e,n)}else Gr.set(e,n)}function ze(e,n,o){!o&&al&&(o=al(e)??void 0);let t=null;if(o){let r=cn.get(o);r&&(t=r.get(n))}return t||(t=Gr.get(n)),t}function ii(e,n){for(let o in e){const t=e[o];Xr(o,t,n)}}function si(e){cn.delete(e)}function ui(){return{top:0,left:0,bottom:0,right:0}}function ci(){if(it){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function fi(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class di{packages;installers;_version;get version(){return this._version}constructor(n,o,t){this.packages=n,this.installers=o,this._version=t}install(n,o={}){o?.install!==!1&&(this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const a=fi(r.name,o);n.component(a,r)}}),this.installers.forEach(r=>{r(n,o)}));const t=pt();if(o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r={...o},a=Ke(()=>{const u={...r};this.updateLayout(u,t)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(o,t)}updateLayout(n,o){const t=n.headerBarHeight??0,r=n.footerBarHeight??0,a=xt({},ui(),n.safeAreaInset),s=ci(),u=xt({},s.pageLayout,n.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const c in n)i.indexOf(c)===-1&&o.set(c,n[c])}setScopeGetter(n){ai(n)}setAPI(n,o,t){Xr(n,o,t)}getAPI(n,o,t){return ze(n,o,t)}batchSetAPI(n,o){ii(n,o)}clearScopeAPI(n){si(n)}getRootDomain(){return pt()}}const hi=[C.ElAffix,C.ElAlert,C.ElAutocomplete,C.ElAutoResizer,C.ElAvatar,C.ElBacktop,C.ElBadge,C.ElBreadcrumb,C.ElBreadcrumbItem,C.ElButton,C.ElButtonGroup,C.ElCalendar,C.ElCard,C.ElCarousel,C.ElCarouselItem,C.ElCascader,C.ElCascaderPanel,C.ElCheckTag,C.ElCheckbox,C.ElCheckboxButton,C.ElCheckboxGroup,C.ElCol,C.ElCollapse,C.ElCollapseItem,C.ElCollapseTransition,C.ElColorPicker,C.ElConfigProvider,C.ElContainer,C.ElAside,C.ElFooter,C.ElHeader,C.ElMain,C.ElDatePicker,C.ElDescriptions,C.ElDescriptionsItem,C.ElDialog,C.ElDivider,C.ElDrawer,C.ElDropdown,C.ElDropdownItem,C.ElDropdownMenu,C.ElEmpty,C.ElForm,C.ElFormItem,C.ElIcon,C.ElImage,C.ElImageViewer,C.ElInput,C.ElInputNumber,C.ElLink,C.ElMenu,C.ElSubMenu,C.ElMenuItem,C.ElMenuItemGroup,C.ElPageHeader,C.ElPagination,C.ElPopconfirm,C.ElPopover,C.ElPopper,C.ElProgress,C.ElRadio,C.ElRadioButton,C.ElRadioGroup,C.ElRate,C.ElResult,C.ElRow,C.ElScrollbar,C.ElSelect,C.ElOption,C.ElOptionGroup,C.ElSelectV2,C.ElSkeleton,C.ElSkeletonItem,C.ElSlider,C.ElSpace,C.ElSteps,C.ElStep,C.ElSwitch,C.ElTable,C.ElTableColumn,C.ElTableV2,C.ElTabs,C.ElTabPane,C.ElTag,C.ElTimePicker,C.ElTimeSelect,C.ElTimeline,C.ElTimelineItem,C.ElTooltip,C.ElTransfer,C.ElTree,C.ElTreeSelect,C.ElTreeV2,C.ElUpload,C.ElStatistic,C.ElCountdown,C.ElSegmented,C.ElAnchor,C.ElAnchorLink,C.ElWatermark,C.ElMessageBox,C.ElMessage,C.ElNotification],mi=[C.ElInfiniteScroll,C.ElLoading,C.ElMessage,C.ElMessageBox,C.ElNotification,C.ElPopoverDirective],gi=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);hi.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),mi.forEach(r=>{e.use(r)})};function ie(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=t=>{t.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Se(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Ne={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Zr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Qr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Jr=[];for(const e in Qr)Jr.push(e);const vi={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},pi=(e,n)=>({inheritAttrs:!0,props:{...Ne,...Zr,...vi},setup(o,{slots:t}){const r=Bt(!1),a=Lt(!1),s=bl(o.name,o);if(s){const h=Yr(s,o);Se({getPageContentHeight:()=>sn(s,h),getPageContentWidth:()=>un(s,h),getPageHeaderHeight:()=>bn(s,h),getPageFooterHeight:()=>xn(s,h)}),h&&a&&(h.contentHeight="100%")}const u=l.computed(()=>({[e]:!0,"is-inner":a})),i=l.computed(()=>({})),c=l.getCurrentInstance(),m=(h,w=!1)=>{const y=c?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(h,!0,w)};return l.watch([()=>o.rules,()=>o.pureDataRules],([h,w],[y,x])=>{if(h&&y){const f=l.toRaw(y),d=l.toRaw(h),P=d?Reflect.ownKeys(d):[];(f?Reflect.ownKeys(f):[]).forEach(g=>{P.includes(g)||(d[g]=[])}),m(d)}if(w&&x){const f=l.toRaw(x),d=l.toRaw(w),P=d?Reflect.ownKeys(d):[];(f?Reflect.ownKeys(f):[]).forEach(g=>{P.includes(g)||(d[g]=[])}),m(d,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const h=l.toRaw(o.rules);m(h)}if(o.pureDataRules){const h=l.toRaw(o.pureDataRules);m(h,!0)}}),()=>{if(r)return t?.default?.();{const h={class:u.value,style:i.value};return l.h("div",h,[t?.default?.()])}}}}),{componentName:yi,create:bi}=ie("page"),Tl=bi(pi(yi));function Cl(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function wn(e){const n=l.unref(e),o=window.getComputedStyle(n,null),t=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-t-r,height:n.clientHeight-a-s}}const ea={headerbar:{},radio:{},checkbox:{}};function xi(e){Object.assign(ea,e)}function ta(){return ea}const wi=(e,n,o,t=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const s=Bt(!1),u=Lt(!1),i=s?null:st(),c=i?yn(i):null;c&&(c.headerMounted=!0);const m=ta(),h=e,w=l.computed(()=>{const b={[h]:!0,[`${h}--border`]:r.border,[`${h}--fixed`]:r.fixed};return u||(b[`${h}--safe-area-inset-top`]=r.safeAreaInsetTop),b}),y=l.computed(()=>({[`${h}__inner`]:!0,[`${h}__inner--${r.align}`]:!0})),x=_e(r.height)?null:ge(r.height),f=l.computed(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return b;if(i&&c){const T=Je(r.padding??c.headerPadding);return Object.assign(b,T),_e(x)||(c.headerHeight=x),b.height=c.headerHeight,b.safeAreaTop=c.safeAreaTop===-1?0:c.safeAreaTop,b.safeAreaTop>0&&(b.top=b.safeAreaTop+(T.top??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaTop)),b}if(_e(x)||(b.height=x),r.padding){const T=Je(r.padding);Object.assign(b,T)}return b}),d=l.ref(null),P=()=>{if(c&&d.value&&d.value.offsetParent!==null){if(!t){const b=Cl(d.value);c.headerAllHeight=b.height}return c.headerMounted=!0,!0}return!1},v=Ke(P,120);let g=null;l.onMounted(()=>{s||c&&(vn(P,50,5,50,!0),window.ResizeObserver&&d.value&&(g=new window.ResizeObserver(v),g.observe(d.value)))}),l.onUnmounted(()=>{s||c&&(c.headerMounted=!1,g&&(g.disconnect(),g=null))});const M=l.computed(()=>{const b={};return s||(f.value.height!==null&&f.value.height!==void 0&&(b.height=`${f.value.height}px`),f.value.top!==null&&f.value.top!==void 0&&(b.paddingTop=`${f.value.top}px`),f.value.left!==null&&f.value.left!==void 0&&(b.paddingLeft=`${f.value.left}px`),f.value.right!==null&&f.value.right!==void 0&&(b.paddingRight=`${f.value.right}px`),f.value.bottom!==null&&f.value.bottom!==void 0&&(b.paddingBottom=`${f.value.bottom}px`)),b}),B=l.computed(()=>{const b=f.value?.height;return _e(b)||b<0?!0:b>0});function A(){a.emit("back")}function O(){a.emit("click-title")}function k(){a.emit("click-right")}function p(){a.emit("click-right-text")}const _=()=>{if(!r.leftShow)return null;const b=[];if(a.slots.left)b.push(a.slots.left());else{if(a.slots.leftIcon){const T=l.h("view",{class:"left-icon",onClick:A},[a.slots.leftIcon()]);b.push(T)}else{const T=r.leftIcon??m.headerbar.Left??o,D=l.h("view",{class:"left-icon",onClick:A},[l.h(T)]);b.push(D)}if(r.leftText){const T=l.h("view",{class:"left-text",onClick:A},[r.leftText]);b.push(T)}}return b.length===0?null:l.h("view",{class:"fox-header-bar__left"},b)},$=()=>{if(!r.rightShow)return null;const b=[];if(a.slots.right)b.push(a.slots.right());else{if(r.rightText){const T=l.h("view",{class:"right-text",onClick:p},[r.rightText]);b.push(T)}if(a.slots.rightIcon){const T=l.h("view",{class:"right-icon",onClick:k},[a.slots.rightIcon()]);b.push(T)}else if(r.rightIcon){const T=l.h("view",{class:"right-icon",onClick:k},[l.h(r.rightIcon)]);b.push(T)}}return b.length===0?null:l.h("view",{class:"fox-header-bar__right"},b)},q=()=>{if(!r.titleShow)return null;const b=[],T=a.slots.default?a.slots.default():null;if(T)b.push(T);else{if(r.title){const D=l.h("view",{class:"title-text"},[r.title]);b.push(D)}if(a.slots.titleIcon){const D=l.h("view",{class:"title-icon",onClick:O},[a.slots.titleIcon()]);b.push(D)}else if(r.titleIcon){const D=l.h("view",{class:"title-icon",onClick:O},[l.h(r.titleIcon)]);b.push(D)}}return b.length===0?null:l.h("view",{class:"fox-header-bar__title"},b)},X=()=>{const b=[],T=a.slots.bottom?a.slots.bottom():null;return T&&b.push(T),b.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},b)};return()=>{if(s||!B.value)return null;const b=[];if(a.slots.all)b.push(a.slots.all());else{const D=[],j=_();j&&D.push(j);const U=q();U&&D.push(U);const J=$();if(J&&D.push(J),D.length>0){const ee=l.h("view",{class:y.value},D);b.push(ee)}const L=X();L&&b.push(L)}if(b.length===0)return null;const T={class:w.value,style:M.value,ref:d};return l.h("view",T,b)}}}),{componentName:Si,create:Ti,scope:Ci}=ie("header-bar"),$l=Ti(wi(Si,Ci,Oe.ArrowLeft));function $i(e,n,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(t,r){const a=Bt(!1),s=Lt(!1),u=a?null:st(),i=u?yn(u):null,c=l.computed(()=>{const v=e,g={[v]:!0,[`${v}--${t.align}`]:!0,[`${v}--border`]:t.border,[`${v}--fixed`]:t.fixed};return s||(g[`${v}--safe-area-inset-bottom`]=t.safeAreaInsetBottom),g}),m=_e(t.height)?null:ge(t.height),h=l.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return v;if(u&&i){const g=Je(t.padding??i.footerPadding);return Object.assign(v,g),_e(m)||(i.footerHeight=m),v.height=i.footerHeight,v.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(g.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(_e(m)||(v.height=m),t.padding){const g=Je(t.padding);Object.assign(v,g)}return v}),w=l.computed(()=>{const v=h.value?.height;return _e(v)||v<0?!0:v>0}),y=l.ref(null),x=()=>{if(i&&y.value&&y.value.offsetParent!==null){if(!o){const v=Cl(y.value);i.footerAllHeight=v.height}return i.footerMounted=!0,!0}return!1},f=Ke(x,120);let d=null;l.onMounted(()=>{a||i&&(vn(x,50,5,50,!0),window.ResizeObserver&&y.value&&(d=new window.ResizeObserver(f),d.observe(y.value)))}),l.onUnmounted(()=>{a||i&&(i.footerMounted=!1,d&&(d.disconnect(),d=null))});const P=l.computed(()=>{const v={};return a||(h.value.height!==null&&h.value.height!==void 0&&(v.height=pe(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(v.paddingTop=pe(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(v.paddingLeft=pe(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(v.paddingRight=pe(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(v.paddingBottom=pe(h.value.bottom))),v});return()=>{if(a||!w.value)return null;const v=r.slots.default?r.slots.default():[],g={ref:y,class:c.value,style:P.value};return l.h("view",g,v)}}}}const{componentName:Ni,create:ki}=ie("footer-bar"),Nl=ki($i(Ni));function Ei(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:t,attrs:r}){const a=Bt(!1),s=Lt(!1),u=a?null:st(),i=l.computed(()=>({[e]:!0})),c=u?yn(u):null,m=l.computed(()=>{const f={};if(a)return f;if(u&&c){if(o.padding){const O=Je(o.padding);Object.assign(c.contentPadding,O)}const d=bn(u,c),P=xn(u,c);let v="";c.contentHeight?v=`${c.contentHeight}`:v=`${c.height}px`,f.height=v;let g=(c&&c.contentPadding&&c.contentPadding.top)??-1;(g>=0||d>0)&&(g=g<0?0:g,f.paddingTop=`${d+g}px`);let M=(c&&c.contentPadding&&c.contentPadding.bottom)??-1;(M>=0||P>0)&&(M=M<0?0:M,f.paddingBottom=`${P+M}px`);const B=(c&&c.contentPadding&&c.contentPadding.left)??-1;B>=0&&(f.paddingLeft=`${B}px`);const A=(c&&c.contentPadding&&c.contentPadding.right)??-1;return A>=0&&(f.paddingRight=`${A}px`),f}if(o.padding){const d=Je(o.padding);d.left&&(f.paddingLeft=`${d.left}px`),d.top&&(f.paddingTop=`${d.top}px`),d.right&&(f.paddingRight=`${d.right}px`),d.bottom&&(f.paddingBottom=`${d.bottom}px`)}return f}),h=l.ref(null),w=()=>{if(c&&h.value){const f=wn(h.value);c.contentInnerHeight=f.height,c.contentInnerWidth=f.width}},y=Ke(w,120);let x=null;return l.onMounted(()=>{s||a||(requestAnimationFrame(w),window.ResizeObserver&&h.value&&(x=new window.ResizeObserver(y),x.observe(h.value)))}),l.onUnmounted(()=>{s||a||x&&(x.disconnect(),x=null)}),()=>{if(a)return t.default?.();{const f=o.tag??"view",d={...r,ref:h,class:i.value,style:m.value};return l.h(f,d,t)}}}}}const{componentName:Pi,create:Ii}=ie("content"),kl=Ii(Ei(Pi)),St="GroupStateKey",na=Symbol.for("GroupScopeKey");function Sn(){return l.inject(na,!1)}function Tn(e=!0){l.provide(na,e)}function Oi(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];_e(r)||(e[t]=r)})}function Di(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Oi(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(St,a),a}function Hn(e,n,o=-1,t=-1,r=!1,a,s,u){const i=e.get(St);if(!i)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),s||(s=c.maxItemWidth??-1);const m=ge(a),h=ge(s);u||(u=c.type??"grid");const w=()=>{const y=n===""||n===-1,x=ge(n);let f=$e(o);const d=ge(t);if(!y){let g=(x-(f-1)*d)/f;for(;h!==-1&&g>h;)f++,g=(x-(f-1)*d)/f;for(;m!==-1&&f>1&&g<m;)f--,g=(x-(f-1)*d)/f}let P=!1;const v=i.layout;v.value.width=n,v.value.column!==f&&(v.value.column=f,P=!0),v.value.gutter!==d&&(v.value.gutter=d,P=!0),v.value.type!==u&&(v.value.type=u,P=!0),P&&l.triggerRef(v)};if(r)w();else{const y=++i.passport;setTimeout(()=>{y===i.passport&&w()},50)}}function Cn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.layout}function $n(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.order}function wo(e,n=1){if(n==="stretch")return-1;const o=$e(n);return o===-1?100:100*o/e}function Nn(e,n,o=1,t=0,r){const a={};let s=0;r?s=ge(r):s=wo(n.column,o),s>0&&(a.width=`${s}%`);const u=wo(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const i=n.gutter/2;return i>0&&(a["padding-left"]=`${i}px`,a["padding-right"]=`${i}px`),a}function kn(e,n,o=1,t=0){if(o==="stretch"){const i=e.index%n.column,c=i+(n.column-i);return e.index=e.index+(c-i),{"grid-column":`${i+1} / -1`}}let r=$e(o);if(r===-1){const i=e.index%n.column;return n.column,i==0?e.index=e.index+n.column:e.index=e.index+(n.column-i)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const i=e.index%n.column;return n.column,i==0?e.index=e.index+n.column:e.index=e.index+(n.column-i)+n.column,{"grid-column":"1 / -1"}}const a=$e(t)%n.column;let s=(e.index+a)%n.column,u=s+r;return u>n.column?(s=0,u=s+r,e.index=e.index+(n.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const la=Symbol("RollingStateKey");function Vi(e){l.provide(la,e)}function Ri(){return l.inject(la,null)}function il(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function Fi(e){let n=il(e);if(n<=0){const o=e.cloneNode(!0),t=e.offsetWidth;o.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=il(o),document.body.removeChild(o)}return n}function Ai(e,n,o){const t=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),a=typeof o=="number"?o:parseInt(o);if(t<=0)return"1fr";const s=(t-(r-1)*a)/r;return s>0?`${s}px`:"1fr"}const Mi={...Ne,...Zr,...Qr};function Li(e,n,o){return{props:Mi,emits:["update:collapse","header-click"],setup(t,r){const a=bl(t.prop??t.name,t,Jr),s=Di(a,{type:t.type}),u=Sn();Tn(!0);const i=t.rollingDisplay?Ri():null,c=l.ref(null),m=l.computed(()=>t.rollingDisplay?i&&!i.disabled:!1),h=l.computed(()=>u&&a?Cn(a,!0).value:null),w=l.getCurrentInstance(),y=(V,z=!1)=>{const Q=w?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(V,!0,z)};l.watch([()=>t.rules,()=>t.pureDataRules],([V,z],[Q,I])=>{if(V&&Q){const G=l.toRaw(Q),K=l.toRaw(V),le=K?Reflect.ownKeys(K):[];(G?Reflect.ownKeys(G):[]).forEach(ue=>{le.includes(ue)||(K[ue]=[])}),y(K)}if(z&&I){const G=l.toRaw(I),K=l.toRaw(z),le=K?Reflect.ownKeys(K):[];(G?Reflect.ownKeys(G):[]).forEach(ue=>{le.includes(ue)||(K[ue]=[])}),y(K,!0)}},{deep:!0});const x=e,f=l.computed(()=>{const V={};V.height=T.value;const z=u?$n(a,!0):null;if(h.value&&z){if(h.value.type==="grid"){const Q=kn(z,h.value,t.span,t.offset);Object.assign(V,Q)}else if(h.value.type==="flow"){const Q=Nn(z,h.value,t.span,t.offset,t.width);Object.assign(V,Q)}}else if(t.width){const Q=pe(t.width);V.width=Q}return V}),d=l.computed(()=>{const V=s.layout.value.type;return V==="grid"||V==="flow"?{[`${x}--${V}`]:!0,[`${x}--${V}-justify-${t.justify}`]:!0,[`${x}--${V}-align-${t.align}`]:!0,[`${x}--gutter`]:!0}:{[`${x}--${V}`]:!0,[`${x}--gutter`]:!0}}),P=l.computed(()=>{if(s.layout.value.type==="grid"){let z="";if(t.columnWidth)z=`repeat(auto-fill, ${t.columnWidth})`;else{const Q=Ai(k.value,s.layout.value.column,s.layout.value.gutter);z=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":z}}}),v=l.toRef(t,"gutter"),g=l.toRef(t,"column"),M=l.computed(()=>u||m.value?!0:ce(t.isWrap)),B=[],A=V=>{B.push(V)},O=()=>{let V=B.length;B.splice(0,V)},k=l.ref(-1),p=V=>{const z=wn(V).width;z>0&&z!==k.value&&(k.value=z)};Hn(a,k.value,g.value,v.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([k,g,v],([V,z,Q])=>{s.order.index=0,Hn(a,V,z,Q,!1,t.minItemWidth,t.maxItemWidth,t.type)});const _=l.computed(()=>D.value?t.expandText??"":t.collapseText??""),$=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!D.value,"is-collapse":D.value})),X=l.ref(),b=l.ref(),T=l.computed(()=>j.value||pe(t.height)||""),D=l.ref(!1),j=l.ref(""),U=l.ref(!1);let J=-1;const L=(V,z=!0)=>{const Q=X.value;if(Q&&D.value!==V){if(J=J===-1?Fi(Q):J,U.value=!0,z)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",V||(j.value="",U.value=!1)},V){let I=0;t.collapseHeight?I=t.collapseHeight:b.value&&b.value.classList.contains(`${e}__header`)&&(I=b.value.offsetHeight),j.value=`${J}px`,l.nextTick(()=>{j.value=`${I}px`})}else j.value=`${J}px`;else if(V){let I=0;t.collapseHeight?I=t.collapseHeight:b.value&&b.value.classList.contains(`${e}__header`)&&(I=b.value.offsetHeight),j.value=`${I}px`}else U.value=!1,j.value=`${J}px`;D.value=V,r.emit("update:collapse",V)}};l.watch(()=>t.collapse,V=>{L(V)});const ee=V=>{r.emit("header-click",V)},E=()=>{N()},N=V=>{V=V??!D.value,L(V)};Se({toggleCollapse:N,doLayout:()=>{B[0]&&(p(B[0]),Hn(a,k.value,g.value,v.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let R=null,S=!0;const H=V=>{if(t.rules){const z=l.toRaw(t.rules);y(z)}if(t.pureDataRules){const z=l.toRaw(t.pureDataRules);y(z,!0)}if(it&&(V&&L(ce(t.collapse),!1),t.autoLayout&&Array.isArray(B)&&B.length>0)){const z=B[0];if(p(z),window.ResizeObserver){const Q=Ke(()=>p(z),120);R=new window.ResizeObserver(Q),R.observe(z)}}},Z=()=>{R?.disconnect(),R=null},ne=!m.value||i?.acquire();ne&&(c.value=m.value?!0:null),l.onMounted(()=>{if(ne&&(H(S),S=!1),m.value&&i){let V=null,z=i.initialHeight;i.observe(X.value,Q=>{if(Q!==c.value)if(Q)c.value=!0,D.value||(j.value=""),V=setTimeout(()=>{V=null,c.value!==!1&&(H(S),S=!1)},100);else{if(V!==null&&clearTimeout(V),c.value=!1,!D.value)if(S)j.value=i.initialHeight;else{let I=il(X.value);I<=0?j.value=z:(j.value=`${I}px`,z=j.value)}S||Z()}})}}),l.onUnmounted(()=>{R?.disconnect(),i&&i.unobserve(X.value)});const Y=(V="right")=>{const z=[];if(_.value){const G={class:$.value},K=l.h("span",G,[_.value]);z.push(K)}const Q={class:q.value},I=o(t.collapseIcon,Q);return I&&z.push(I),z.length>0?l.h("div",{class:{[`${x}__header-collapse`]:!0,[`is-${V}`]:!0},onClick:E},z):null},W=(V,z,Q,I)=>{const G={...d.value};if(z===0&&(G[`${x}__first`]=!0),Q>=I-1&&(G[`${x}__last`]=!0),M.value===!1){const K=r.attrs.class;K&&(G[`${K}`]=!0)}return l.h("div",{ref:A,key:`${z}`,class:G,style:P.value},V)};return()=>{const V=t.prop??t.name;if(m.value&&c.value!==!0){const K=t.tag||"div";return l.h(K,{ref:X,prop:V,class:{[`${x}`]:!0,"is-collapse":U.value},style:f.value},[])}s.order.index=0;const z=[];let Q=0;if(r.slots.header){const K={key:`${Q++}`,ref:b,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:ee},le=l.h("div",K,[r.slots.header()]);z.push(le)}else{const K=[],le=t.collapsePosition==="left";if(le&&t.showCollapse){const re=Y("left");re&&K.push(re)}if(t.title||r.slots.title){if(t.showMark){const re={class:{[`${x}__header-mark`]:!0}};t.markColor&&(re.style={background:t.markColor});const ue=l.h("div",re);K.push(ue)}if(r.slots.title){const re=l.h("div",{class:{[`${x}__header-title`]:!0}},[r.slots.title()]);K.push(re)}else if(t.title){const re=l.h("div",{class:{[`${x}__header-title`]:!0}},[t.title]);K.push(re)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!le&&t.showCollapse){const re=Y("right");re&&K.push(re)}if(K.length>0){const re={key:`${Q++}`,ref:b,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:ee},ue=l.h("div",re,K);z.push(ue)}}O();const I=r.slots.default?r.slots.default():[],G=s.layout.value.type;if(G==="grid"){const K=W(I,Q++,0,I.length);z.push(K)}else if(G==="flow"){const K=W(I,Q++,0,I.length);z.push(K)}else for(let K=0;K<I.length;K++){const le=I[K],re=W([le],Q++,K,I.length);z.push(re)}if(M.value){const K=t.tag||"div";return l.h(K,{ref:X,prop:V,class:{[`${x}`]:!0,"is-collapse":U.value},style:f.value},[z])}else return z}}}}const{componentName:Bi,create:qi,scope:_i}=ie("group"),ji=(e,n)=>(e=e??Oe.ArrowUp,l.h(C.ElIcon,n,{default:()=>[l.h(e)]})),El=qi(Li(Bi,_i,ji));function zi(e){return e===window}const Hi=/matrix\((.+)\)/,Pl=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(zi(n))return{x:0,y:0};let o=0,t=0,r=n;for(;r!==null;)o+=r.offsetLeft,t+=r.offsetTop,r=r.offsetParent;let a=0,s=0,u=0,i=0;for(r=n;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const m=Hi.exec(c);if(m){let w=m[1].split(/\s*,\s*/);w.length==6&&(u+=Number(w[4]),i+=Number(w[5]))}}r=r.parentNode}return o-=a,t-=s,o+=u,t+=i,{x:o,y:t}};class Ki{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Wi{monitorRegister=new WeakMap;watch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a||(a=new Ki,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(o),t=t.parentNode}}unwatch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const Dt=new Wi,oa={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:Yi,create:Ui}=ie("price"),Gi=Ui({props:{...oa},setup(e){const n=l.computed(()=>({[Yi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>Mt(e.price)==0?"":dn(e.price,e.decimalLength,!0,$e(e.digits),e.separator)),r=l.computed(()=>{let s=t.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(0,u)}),a=l.computed(()=>{let s=t.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Ze=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},Xi=["innerHTML"],Zi=["innerHTML"];function Qi(e,n,o,t,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Xi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Zi)):l.createCommentVNode("",!0)],2)}const En=Ze(Gi,[["render",Qi]]),{componentName:Kn,create:Ji}=ie("hint-text"),es=Ji({components:{Price:En},props:{...oa,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=l.ref({top:null,right:null,bottom:null,left:null}),t=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),s=l.ref(e.placement),u=l.ref(!1),i=l.ref(null),c=($,q,X,b,T,D)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,J=$.split("-");let L=[];J[0]==="top"?L=["top","bottom","right","left"]:J[0]==="bottom"?L=["bottom","top","right","left"]:J[0]==="left"?L=["left","top","bottom","right"]:J[0]==="right"&&(L=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},E=[];for(let N=0;N<L.length;N++){const F=L[N];if(E[0]=F,J[1]&&(E[1]=J[1]),F==="top"){const R=q.y-D-e.arrowSize-e.offset;if(R>=0){ee.top=R;let S=0;J[1]==="start"?S=q.x:J[1]==="end"?S=q.x+X-T:S=q.x+X/2-T/2;const H=j-S-T;H<0?(S+=H,h.value=-H):h.value=0,ee.left=S<0?0:S;break}}else if(F==="bottom"){const R=q.y+b+e.arrowSize+e.offset;if(R+D<=U){ee.top=R;let S=0;J[1]==="start"?S=q.x:J[1]==="end"?S=q.x+X-T:S=q.x+X/2-T/2;const H=j-S-T;H<0?(S+=H,h.value=-H):h.value=0,ee.left=S<0?0:S;break}}else if(F==="left"){const R=q.x-T-e.arrowSize-e.offset;if(R>=0){ee.left=R;let S=0;J[1]==="start"?S=q.y:J[1]==="end"?S=q.y+b-D:S=q.y+b/2-D/2,ee.top=S<0?0:S;break}}else if(F==="right"){const R=q.x+X+e.arrowSize+e.offset;if(R+T<=j){ee.left=R;let S=0;J[1]==="start"?S=q.y:J[1]==="end"?S=q.y+b-D:S=q.y+b/2-D/2,ee.top=S<0?0:S;break}}}return{bestPlacement:E.join("-"),bestInsetRect:ee}},m=($,q,X=10)=>{if(!it||q===!1||!$)return;t.value=Pl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const b=i.value.offsetHeight,T=i.value.offsetWidth,{bestPlacement:D,bestInsetRect:j}=c(e.placement,t.value,r.value,a.value,T,b);s.value=D,o.value=j,u.value=!0},h=l.ref(0),w=Ke(()=>{m(e.message,e.visible)},10),y=l.ref(e.visible);l.watch(()=>e.visible,$=>{y.value=$});const x=l.computed(()=>y.value&&f.value),f=l.ref(!0),d=Ke($=>{const q=$[0];q&&(f.value=q.isIntersecting)},10),P=new IntersectionObserver(d);l.watch([()=>e.message,()=>e.visible],([$,q])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Dt.watch(e.reference,w),P.observe(e.reference)}),l.onBeforeUnmount(()=>{Dt.unwatch(e.reference,w),P.unobserve(e.reference),P.disconnect()});const v=l.computed(()=>{const $={[Kn]:!0};return s.value.startsWith("top")?$["is-top"]=!0:s.value.startsWith("right")?$["is-right"]=!0:s.value.startsWith("bottom")?$["is-bottom"]=!0:s.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),g=l.computed(()=>{const $={};o.value.top!==null&&($.top=`${o.value.top}px`),o.value.right!==null&&($.right=`${o.value.right}px`),o.value.bottom!==null&&($.bottom=`${o.value.bottom}px`),o.value.left!==null&&($.left=`${o.value.left}px`),e.autoFit&&($["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${q}px`,u.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),M=l.computed(()=>{const $=[`${Kn}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),B=l.computed(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),A=l.computed(()=>({[`${Kn}__arrow`]:!0})),O=l.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,s.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="top-start"?($.left=`${e.arrowOffset+h.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="top-end"?($.right=`${e.arrowOffset-h.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?($.left=`${e.arrowOffset+h.value}px`,$.top=`-${e.arrowSize}px`):s.value==="bottom-end"?($.right=`${e.arrowOffset-h.value}px`,$.top=`-${e.arrowSize}px`):s.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),k=l.computed(()=>x.value&&e.closeOnClick),p=l.computed(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:x,tipRef:i,classes:v,styles:g,textClasses:M,textStyles:B,arrowClasses:A,arrowStyles:O,overlayShow:k,overlayStyle:p,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),ts=["innerHTML"];function ns(e,n,o,t,r,a){const s=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ts))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const ra=Ze(es,[["render",ns]]);class aa{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const sl={},ls=new aa,yt=new Map,fn=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of yt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}yt.clear()}},os=e=>{e.unmount=fn;const n=document.getElementById(e.id);if(n){const o=yt.get(e.id);o?e={...sl,...o,...e}:e={...sl,...e},e.transition=!1;const t=l.createVNode(ra,e);l.render(t,n)}return e.id},rs=e=>{e.unmount=fn;let n=e.id??`hinttext_${ls.get()}`;e={...sl,...e},e.id=n,yt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(ra,e);return l.render(t,o),document.body.appendChild(o),n},as=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ce={show(e,n,o={},t=!0){as(n);const r=o.id;return r&&yt.has(r)?os({...o,message:n,reference:e}):(t&&fn(),rs({...o,message:n,reference:e}))},hide(e){fn(e)},install(e){e.config.globalProperties.$hintText=Ce}};function is(e,n,o,t=!1){return{inheritAttrs:!0,props:{...Ne,...Ve},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Ee({componentName:e,validate:!1},s);const u=st(),i=Sn();Tn(!1);const c=l.computed(()=>i&&u?Cn(u,!1).value:null),m=e,h=l.ref(null),w=l.computed(()=>{const I={[m]:!0,[`${m}__gutter`]:c.value&&c.value.type!=="flow",[`${m}__stretch`]:r.span==="stretch",[`${m}__input--border`]:ce(r.hasBorder)};if(I[r.errorMarkClass]=!!D.value,I[r.warnMarkClass]=!!b.value,I[r.infoMarkClass]=!!q.value,typeof h.value=="function"){const G=h.value(s);I[G]=!0}else if(typeof h.value=="string"){const G=h.value;I[G]=!0}return I}),y=l.ref(null),x=l.computed(()=>{const I={};if(r.width)r.width!=="auto"&&(I.width=pe(r.width));else{const G=i&&u?$n(u,!1):null;if(c.value&&G){if(c.value.type==="grid"){const K=kn(G,c.value,r.span,r.offset);Object.assign(I,K)}else if(c.value.type==="flow"){const K=Nn(G,c.value,r.span,r.offset,r.width);Object.assign(I,K)}}}if(typeof y.value=="function"){const G=y.value(s);G&&Object.assign(I,G)}else if(y.value&&typeof y.value=="object"){const G=y.value;Object.assign(I,G)}return I}),f=l.ref(null),d=l.computed({get:()=>f.value??ce(r.isRequired),set:I=>{f.value=I}}),P=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",v=Fe(l.toRef(r,"labelPosition"),"labelPosition",je.Near),g=l.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),M=l.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${g.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${g.value}`]:!0})),A=Fe(l.toRef(r,"labelWidth"),"labelWidth",je.Near),O=l.computed(()=>A&&A.value?{width:pe(A.value)}:{}),k=l.computed(()=>({"label--string":!0,"label--required":d.value})),p=l.computed(()=>({content:!0,[r.contentClass]:!0})),_=l.computed(()=>({...r.contentStyle})),$=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(I){d.value=I},setErrorTip(I){$.errorTip=I},setErrorIcon(I){$.errorIcon=I},setWarnTip(I){$.warnTip=I},setWarnIcon(I){$.warnIcon=I},setInfoTip(I){$.infoTip=I},setInfoIcon(I){$.infoIcon=I},setCustomClassName(I){h.value=I},setCustomStyle(I){y.value=I}});const q=l.computed(()=>r.infoTip||$.infoTip),X=l.computed(()=>r.infoIcon||$.infoIcon),b=l.computed(()=>r.warnTip||$.warnTip),T=l.computed(()=>r.warnIcon||$.warnIcon),D=l.computed(()=>r.errorTip||$.errorTip),j=l.computed(()=>r.errorIcon||$.errorIcon),U=l.computed(()=>D.value?"error":b.value?"warn":q.value?"info":""),J=()=>U.value.length>0,L=l.computed(()=>U.value==="error"?D.value:U.value==="warn"?b.value:U.value==="info"?q.value:""),ee=l.computed(()=>U.value==="error"?j.value:U.value==="warn"?T.value:U.value==="info"?X.value:null),E=l.computed(()=>{const I={[`${m}__tip`]:!0,[`${m}__tip--${U.value}`]:!0,[`${m}--animate`]:!0};return U.value==="error"&&r.errorClass?I[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?I[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(I[`${r.infoClass}`]=!0),I}),N=l.computed(()=>{const I={};return v&&v.value==="top"||!P()?I["padding-left"]="0px":A&&A.value&&(I["padding-left"]=pe(A.value)),I}),F=l.ref();let R="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([I,G,K,le])=>{F.value&&(I&&!de(G)?R?o.show(F.value,G,{...le,id:R,type:K},!0):R=o.show(F.value,G,{...le,type:K},!0):o.hide(R))});let S=null;const H=()=>{S||!F.value||(S=new IntersectionObserver(I=>{let G=!1;for(let K of I)if(K.intersectionRatio>0){G=!0,G&&a.emit("appear",K);break}G||a.emit("disappear")}),S.observe(F.value))},Z=()=>{!S||!F.value||(S.unobserve(F.value),S=null)};l.watch(()=>ce(r.appearListen),I=>{I?H():Z()}),l.onMounted(()=>{ce(r.appearListen)&&H()}),l.onUnmounted(Z);const ne=()=>{if(!P())return null;const I=[],G=a.slots?.label?.()??r.label,K={class:k.value},le=l.h("div",K,[G]);if(I.push(le),a.slots.fixedPreTip){const ue=a.slots.fixedPreTip();I.push(ue)}const re={class:B.value,style:O.value};return l.h("div",re,I)},Y=()=>{const I=[];if(a.slots.prepend){const K=a.slots.prepend();I.push(K)}if(a.slots.default){const K=a.slots.default();I.push(K)}if(a.slots.append){const K=a.slots.append();I.push(K)}if(a.slots.fixedTip){const K={class:[`${m}__fixed-tip`]},le=l.h("div",K,[a.slots.fixedTip()]);I.push(le)}const G={ref:F,class:p.value,style:_.value};return l.h("div",G,I)},W=()=>{const I=ee.value;return I?typeof I=="function"?l.h("div",{class:"fox-item__tip--icon"},[I()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(I)]):null},V=()=>{const I=L.value;return I?typeof I=="function"?l.h("div",{class:"fox-item__tip--text"},[I()]):l.h("div",{class:"fox-item__tip--text"},[I]):null},z=()=>{if(!J())return null;const I=[],G=W();G&&I.push(G);const K=V();K&&I.push(K);const le={class:E.value,style:N.value};return l.h("div",le,I)},Q=()=>a.slots?.hide?.()??null;return()=>{const I=[],G=[],K=ne();K&&G.push(K);const le=Y();le&&G.push(le);const re={class:M.value},ue=l.h("div",re,G);I.push(ue);const ve=z();ve&&I.push(ve);const me=Q();me&&I.push(me);const Te={class:w.value,style:x.value,prop:r.prop};return l.h("div",Te,I)}}}}const{componentName:ss,create:us,scope:cs}=ie("item"),ke=us(is(ss,cs,Ce,!1)),ul={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function fs(e,n){return{props:{...ul},setup(o,t){const r=st(),a=Sn();Tn(!1);const s=l.computed(()=>a&&r?Cn(r,!1).value:null),u=e,i=l.computed(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const m={};if(o.width)o.width!=="auto"&&(m.width=pe(o.width));else{const h=a&&r?$n(r,!1):null;if(s.value&&h)if(s.value.type==="grid"){const w=kn(h,s.value,o.span,o.offset);Object.assign(m,w)}else if(s.value.type==="flow"){const w=Nn(h,s.value,o.span,o.offset,o.width);Object.assign(m,w)}else return o.width&&(m.width=pe(o.width)),m}return m});return()=>{const m={class:i.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",m,t.slots.default()):l.h("div",m)}}}}const{componentName:ds,create:hs}=ie("slot-item"),Pn=hs(fs(ds)),cl={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function ms(e,n){return{props:{...cl},setup(o,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),s=st(),u=Sn();Tn(!1);const i=l.computed(()=>{const c={};if(o.width)o.width!=="auto"&&(c.width=pe(o.width));else if(u&&s){const m=Cn(s,!1),h=$n(s,!1);if(m.value&&h)if(m.value.type==="grid"){const w=kn(h,m.value,o.span,o.offset);Object.assign(c,w)}else if(m.value.type==="flow"){const w=Nn(h,m.value,o.span,o.offset,o.width);Object.assign(c,w)}else o.width&&(c.width=pe(o.width))}return o.gutter&&(c.gap=pe(o.gutter)),c});return()=>{const c=[];if(t.slots.default){const h=t.slots.default();if(o.divide)for(let w=0;w<h.length;w++){if(w>0){const y=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(y)}c.push(h[w])}else Reflect.apply([].push,c,h)}const m={class:a.value,style:i.value};return l.h("div",m,c)}}}}const{componentName:gs,create:vs}=ie("row-item"),In=vs(ms(gs));function ps(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const t=o.getBoundingClientRect().width;if(t>0){n(t);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}const ys={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function bs(e,n,o,t=!1){return{props:{...ys},emits:["click"],setup(r,a){const s=l.ref(null),u=l.computed(()=>{const g={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(g[`${e}--${r.type??"default"}`]=!0),r.size&&(g[`${e}--${r.size}`]=!0),g}),i=l.computed(()=>{const g={},M=r.textColor??r.color;return M&&(g.color=M),g}),c=(g,M)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(g.indexOf(A)!==-1){const k=g.replace(new RegExp(A,"g"),`<span>${A}</span>`);M.innerHTML=k,M.class["is-highlight"]=!0,B=l.h(r.tag,M)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(g);A&&(M.innerHTML=A,M.class["is-highlight"]=!0,B=l.h(r.tag,M))}return B},m=g=>{a.emit("click",g)};let h="";const w=()=>{const g=s.value;if(!g)return;const M=g.clientWidth;ps(g,B=>{const A=g.innerHTML??"";de(A)||B<M||(h?o?.show(g,A,{type:"text",id:h,showArrow:r.showArrow},!0):h=o?.show(g,A,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{h&&o?.hide(h)};let x=null;const f=g=>{x||(x=setTimeout(()=>{w(),x=null},r.showAfter??0))},d=g=>{x&&(clearTimeout(x),x=null),setTimeout(()=>{y()},r.hideAfter??0)},P=()=>{const g=s.value;g&&(g.addEventListener("mouseover",f),g.addEventListener("mouseleave",d))},v=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",f),g.removeEventListener("mouseleave",d))};return l.onMounted(()=>{!ce(r.showOverflowTooltip)||!o||P()}),l.onBeforeUnmount(()=>{!ce(r.showOverflowTooltip)||!o||v()}),()=>{const g={onClick:m,class:u.value,style:i.value,ref:s};let M=null;if(ce(r.numberFormat)&&typeof a.slots.default=="function"){const k=a.slots.default();if(Array.isArray(k)&&k.length===1){const p=k[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const _=$e(r.digits),$=$e(r.decimalLength),q=ce(r.autoPadding);let X=`${k[0].children}`,b=X.split("").reverse().join("");b=dn(b,$,q,_,r.separator),X=b.split("").reverse().join(""),r.highlightFilter!==void 0&&(M=c(X,g)),M||(g.innerHTML=X,M=l.h(r.tag,g))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const k=a.slots.default();if(Array.isArray(k)&&k.length===1){const p=k[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const _=`${k[0].children}`;M=c(_,g),M||(g.innerHTML=_,M=l.h(r.tag,g))}}}M||(M=l.h(r.tag,g,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return M;let A=null;if(r.icon){const k={[`${e}__mark-wrap`]:!0};r.type&&(k[`${e}__mark-wrap--${r.type}`]=!0);const p={},_=r.color;_&&(p.color=_);const $={onClick:m,class:k,style:p};A=l.h("view",$,l.h(r.icon))}else if(a.slots.mark){const k={[`${e}__mark-wrap`]:!0};r.type&&(k[`${e}__mark-wrap--${r.type}`]=!0);const p={},_=r.color;_&&(p.color=_);const $={onClick:m,class:k,style:p};A=l.h("view",$,{default:a.slots.mark})}else{const k={[`${e}__mark`]:!0};r.type&&(k[`${e}__mark--${r.type??"default"}`]=!0);const p={},_=r.color;_&&(p["background-color"]=_);const $={onClick:m,class:k,style:p};A=l.h("view",$)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[A,M])}}}}const{componentName:xs,create:ws,scope:Ss}=ie("text"),On=ws(bs(xs,Ss,Ce,!1)),Ts={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function Cs(e,n,o=!1){return{props:{...Ts},emits:["update:visible"],setup(t,{emit:r,slots:a,expose:s}){const u=l.ref({top:null,right:null,bottom:null,left:null}),i=l.ref(0),c=l.ref(0),m=l.ref(0),h=l.ref(0),w=l.ref(t.placement),y=l.ref(!1),x=l.ref(!1),f=l.ref(null),d=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,P=(L,ee,E,N,F,R,S,H=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,Y=L.split("-");let W=[];H?Y[0]==="top"?W=["top","bottom","right","left"]:Y[0]==="bottom"?W=["bottom","top","right","left"]:Y[0]==="left"?W=["left","top","bottom","right"]:Y[0]==="right"&&(W=["right","top","bottom","left"]):W=[L[0]];const V={top:null,right:null,bottom:null,left:null},z=[];for(let Q=0;Q<W.length;Q++){const I=W[Q];if(z[0]=I,Y[1]&&(z[1]=Y[1]),I==="top"){const G=E-S-t.arrowSize/2-t.offset;if(G>=0){V.top=G;let K=0;Y[1]==="start"?K=ee:Y[1]==="end"?K=ee+N-R:K=ee+N/2-R/2;const le=Z-K-R;le<0?(K+=le,g.value=-le):g.value=0,V.left=K<0?0:K;break}}else if(I==="bottom"){const G=E+F+t.arrowSize/2+t.offset;if(G+S<=ne){V.top=G;let K=0;Y[1]==="start"?K=ee:Y[1]==="end"?K=ee+N-R:K=ee+N/2-R/2;const le=Z-K-R;le<0?(K+=le,g.value=-le):g.value=0,V.left=K<0?0:K;break}}else if(I==="left"){const G=ee-R-t.arrowSize/2-t.offset;if(G>=0){V.left=G;let K=0;Y[1]==="start"?K=E:Y[1]==="end"?K=E+F-S:K=E+F/2-S/2,V.top=K<0?0:K;break}}else if(I==="right"){const G=ee+N+t.arrowSize/2+t.offset;if(G+R<=Z){V.left=G;let K=0;Y[1]==="start"?K=E:Y[1]==="end"?K=E+F-S:K=E+F/2-S/2,V.top=K<0?0:K;break}}}return{bestPlacement:z.join("-"),bestInsetRect:V}},v=()=>{const L=t.visible,ee=t.autoFit;if(!it||L===!1)return;if(t.reference){const S=d(),H=Pl(S);i.value=H.x,c.value=H.y,m.value=S.offsetWidth,h.value=S.offsetHeight}else t.referenceInset&&(i.value=t.referenceInset.left,c.value=t.referenceInset.top,m.value=t.referenceInset.right-t.referenceInset.left,h.value=t.referenceInset.bottom-t.referenceInset.top);const E=f.value.offsetWidth,N=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:R}=P(t.placement,i.value,c.value,m.value,h.value,E,N,ee);w.value=F,u.value=R},g=l.ref(0),M=Ke(()=>{v()},10),B=l.ref(t.visible);l.watch([()=>t.visible],([L])=>{B.value=L,L?(y.value=L,setTimeout(()=>{v(),x.value=!0},0)):x.value=!1});const A=l.computed(()=>B.value&&O.value),O=l.ref(!0),k=Ke(L=>{const ee=L[0];ee&&(O.value=ee.isIntersecting)},10),p=new IntersectionObserver(k);l.watch([()=>t.reference,()=>t.referenceInset],([L,ee],[E,N])=>{!L&&!ee||(setTimeout(()=>{v()},0),t.autoFit&&(E&&(Dt.unwatch(E,M),p.unobserve(E)),L&&(Dt.watch(L,M),p.observe(L))))},{immediate:!0}),l.onBeforeUnmount(()=>{t.reference&&(Dt.unwatch(t.reference,M),p.unobserve(t.reference),p.disconnect())});const _=l.computed(()=>{const L={[e]:!0};return w.value.startsWith("top")?L["is-top"]=!0:w.value.startsWith("right")?L["is-right"]=!0:w.value.startsWith("bottom")?L["is-bottom"]=!0:w.value.startsWith("left")&&(L["is-left"]=!0),L[`is-${t.effect}`]=!0,!x.value&&A.value&&(L["is-opacity"]=!0),x.value&&A.value&&(L["is-show"]=!0),A.value||(L["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(L[`${t.customClass}`]=!0),L}),$=l.computed(()=>{const L={};return u.value.top!==null&&(L.top=`${u.value.top}px`),u.value.right!==null&&(L.right=`${u.value.right}px`),u.value.bottom!==null&&(L.bottom=`${u.value.bottom}px`),u.value.left!==null&&(L.left=`${u.value.left}px`),t.width&&(L.width=t.width),t.zIndex&&(L["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(L,t.customStyle),L}),q=()=>{B.value=!1,r("update:visible",!1)},X=()=>{if(!t.showOverlay)return null;const L={class:`${e}__overlay`,onClick:q};return l.h("div",L)},b=()=>{let L=null;return a.title?L=l.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(L=l.h("div",{class:`${e}__title`},[t.title])),L},T=l.computed(()=>({[`${e}__arrow`]:!0})),D=l.computed(()=>{const L={};return t.showArrow?(L.width=`${t.arrowSize}px`,L.height=`${t.arrowSize}px`,w.value==="top"?(L.left="50%",L.bottom="0",L.transform="translate(-50%, 50%)"):w.value==="top-start"?(L.left=`${t.arrowOffset+g.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):w.value==="top-end"?(L.right=`${t.arrowOffset-g.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):w.value==="right"?(L.left="0",L.top="50%",L.transform="translate(-50%, -50%)"):w.value==="right-start"?(L.left="0",L.top=`${t.arrowOffset}px`,L.transform="translate(-50%, 50%)"):w.value==="right-end"?(L.left="0",L.bottom=`-${t.arrowOffset}px`,L.transform="translate(-50%, 50%)"):w.value==="bottom"?(L.left="50%",L.top="0",L.transform="translate(-50%, -50%)"):w.value==="bottom-start"?(L.left=`${t.arrowOffset+g.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):w.value==="bottom-end"?(L.right=`${t.arrowOffset-g.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):w.value==="left"?(L.right="0",L.top="50%",L.transform="translate(50%, -50%)"):w.value==="left-start"?(L.right="0",L.top=`${t.arrowOffset}px`,L.transform="translate(50%, -50%)"):w.value==="left-end"&&(L.right="0",L.bottom=`-${t.arrowOffset}px`,L.transform="translate(50%, -50%)"),L):{display:"none"}}),j=()=>{const L={class:T.value,style:D.value};return l.h("div",L)},U=()=>{B.value===!1&&(y.value=!1)},J=L=>{if(!f.value||B.value===!1)return;const{relatedTarget:ee}=L;f.value.contains(ee)||(B.value=!1,r("update:visible",!1))};return s({doLayout:v}),()=>{if(!y.value)return null;const L=[],ee=X();ee&&L.push(ee);const E=[],N=b();if(N&&E.push(N),a.default){const Z=a.default();E.push(Z)}const F=j();F&&E.push(F);const R={ref:f,class:_.value,style:$.value,onAnimationend:U};t.leaveHide&&(R.onMouseleave=J);const S=l.h("div",R,{default:()=>E});return L.push(S),l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>L})}}}}const{componentName:$s,create:Ns,scope:ks}=ie("popover-dialog"),Dn=Ns(Cs($s,ks,!1)),Es={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function Ps(e,n,o){return{props:{...cl,...Es},emits:["click"],setup(t,{slots:r,attrs:a}){const{toLocaleRefs:s}=Ae.useFoxI18n(n),u=s(t,["moreText"]),i=e,c=l.computed(()=>({[i]:!0}));function m(A){return A.props||{}}function h(A){return!!m(A).disabled}function w(A){return A.children??[]}const y=l.ref(),x=l.computed(()=>y.value?.$el??null),f=l.ref(!1),d=A=>{f.value=A},P=()=>{f.value=!f.value};function v(A,O){return()=>{if(O)return;f.value=!1,m(A)?.onClick?.()}}function g(A,O){const k=w(A),p=h(A),_=v(A,p),$=[`${i}__dropdown-item`];p&&$.push("is-disabled");const q={class:$,onClick:_};return l.h("span",q,k)}const M=A=>{const O=t.maxDisplayCount??A.length;if(O>=A.length)return A;const k=[],p=O-1;for(let D=0;D<p;D++)k.push(A[D]);const _=(r.moreIcon&&r.moreIcon())??(t.moreIcon&&l.h(t.moreIcon))??l.h(o),$={ref:D=>y.value=D,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:t.type,onClick:P},q=l.h(On,$,{default:()=>u.moreText.value,mark:()=>_});k.push(q);const X=[];for(let D=p;D<A.length;D++){const j=g(A[D]);X.push(j)}const b={placement:t.dropdownPlacement,"onUpdate:visible":d,visible:f.value,reference:x.value,"custom-class":`${i}__popover`},T=l.h(Dn,b,{default:()=>X});return k.push(T),k},B=()=>(r.default?.()||[]).filter(O=>O.type!==Comment);return()=>{const A=B(),O=M(A),k=wt(t,cl);return Object.assign(k,a??{}),k.class=c.value,l.h(In,k,{default:()=>O})}}}}const{componentName:Is,create:Os,scope:Ds}=ie("buttons-item"),Il=Os(Ps(Is,Ds,Oe.ArrowDown)),Qe=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},So={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 Vs(e,n,o){return{props:{...Ne,...Ve,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(!1),y=he(t,"modelValue",null,c),x=e,f=l.computed(()=>({[x]:!0,[`${x}__disabled`]:s.value,[`${x}__readonly`]:i.value})),d=T=>{y.value=T,c("update:modelValue",T),c("input",T)},P=T=>{c("change",T)};let v=he(t,"hintText"),g=l.ref(!1);const M=T=>{let j=T.target.value;w.value=!0,de(v.value)||(g.value=!0),c("focus",j,T)},B=T=>{setTimeout(()=>{g.value&&(g.value=!1),w.value=!1},0);let j=T.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,T)},A=()=>{c("clear","")},O=l.ref(!1);let k=null;const p=()=>{t.showTooltip&&O.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{O.value=!0},150))},_=()=>{k&&(clearTimeout(k),O.value=!1,k=null)},$=l.computed(()=>O.value||g.value),q=l.computed(()=>O.value?y.value:v.value),X=l.computed(()=>Mt(t.unit)>0),b=l.ref();return Se({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},select:()=>{b?.value.select()},setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const D={...Qe(r.attrs),ref:b,class:f.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:s.value,readonly:i.value,modelValue:y.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:A,onChange:P,onInput:d,onFocus:M,onBlur:B,onMouseover:p,onMouseleave:_},j={};r.slots.prepend&&(j.prepend=r.slots.prepend),r.slots.append&&(j.append=r.slots.append),r.slots.prefix&&(j.prefix=r.slots.prefix),r.slots.suffix?j.suffix=r.slots.suffix:X.value&&(j.suffix=()=>[t.unit]);const U=[],J=l.h(C.ElInput,D,j);U.push(J);const L={default:()=>U};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(t,So),hintText:q.value,hintVisible:$.value};return t.prop&&(E.prop=`${t.prop}_item`),l.h(o,E,L)}}}}const{componentName:Rs,create:Fs,scope:As}=ie("input-item"),Ol=Fs(Vs(Rs,As,ke));function rt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ia(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Ms(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ls=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Bs(){const e=l.getCurrentInstance();return new Ls(e.proxy)}function sa(e,n,o){const t=rt(e,n),r=rt(e,o);if(t!==r)return!1;const a=Rt(e,n),s=Rt(e,o);return a===s}function ua(e,n,o,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let s of t){const u=ia(e,s);if(Array.isArray(u)&&u.length>0){const i=ua(e,a,o,u)??[];Reflect.apply([].push,r,i)}else{let i=!1;if(o==="text")i=rt(e,s)===a;else if(o==="item")i=sa(e,s,a);else{let c=Rt(e,s);c==null&&(c=rt(e,s)),i=c===a}if(i){r.push(s);break}}}}),r}function qs(e){return{text:e,value:e}}const To={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function _s(e,n,o){return{props:{...Ne,...Ve,...To},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(null),y=l.ref([]),x=l.computed(()=>y.value?y.value.map(z=>rt(t,z)).join(" "):""),f=(V,z,Q,I=!0)=>{if(!Q||Q.length==0){w.value=V,I&&(c("update:modelValue",V),c("change",V));return}const G=ua(t,V,z,Q);if(G===null){if(y.value===null||y.value.length===0)return;w.value=null,y.value=[],I&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let K=!0;if(G.length!==y.value.length)K=!1;else for(let le=0;le<G.length;le++){const re=G[le],ue=y.value[le];if(!sa(t,re,ue)){K=!1;break}}if(!K){y.value=G;let le=[],re=[],ue=[];G.forEach(ut=>{const mt=Rt(t,ut),We=rt(t,ut);le.push(mt),ue.push(We),t.valueType==="text"?re.push(We):t.valueType==="item"?re.push(ut):re.push(mt)});let ve,me,Te;ce(t.multiple)?(w.value=le,ve=l.toRaw(re),me=ue,Te=l.toRaw(G)):(w.value=le[0]??"",ve=l.toRaw(re[0]??""),me=ue[0]??"",Te=l.toRaw(G[0])),I&&(c("update:modelValue",ve),c("change",ve,Te)),c("update:text",me)}},d=l.ref(null),P=l.ref(null),v=l.computed(()=>P.value??d.value??[]),g=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,V=>ce(V)),M=Bs(),B=async(V,z)=>{if(V){const Q=await M.load("select",V,z);if(Q.length>0)if(typeof Q[0]=="string"){let K=Q.map(le=>qs(le));d.value=K}else d.value=Q;else d.value=null}};l.watch([()=>t.source,()=>t.params],([V,z])=>{P.value=null,B(V,z)},{immediate:!g.value});let A=!1;const O=()=>{A||(A=!0,B(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([V,z])=>{if($()&&ce(t.multiple)){nt(z,w.value)||(w.value=z);return}f(z,t.valueType,v.value,!1),c("setValue",z)}),t.source||(w.value=t.modelValue);let k=null,p=l.ref(!1);typeof t.remoteMethod=="function"&&(k=async V=>{if(V==null){P.value=null;return}p.value=!0;try{const z=await t.remoteMethod(V);z&&(P.value=z)}catch(z){P.value=null,console.error(z)}p.value=!1});let _=null;typeof t.filterMethod=="function"&&(_=async V=>{if(V==null){P.value=null;return}p.value=!0;try{const z=await t.filterMethod(V,d.value);z&&(P.value=z)}catch(z){P.value=null,console.error(z)}p.value=!1});const $=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",q=l.ref(!1),X=e,b=l.computed(()=>({[X]:!0})),T=V=>{t.allowCreate||$()&&ce(t.multiple)?(c("update:modelValue",V),c("change",V),c("update:text",V),w.value=V):f(V,"value",v.value,!0)};let D=he(t,"hintText"),j=l.ref(!1);const U=V=>{let Q=V.target.value;q.value=!0,de(D.value)||(j.value=!0),c("focus",Q,V)},J=V=>{setTimeout(()=>{j.value&&(j.value=!1),q.value=!1},0);let Q=V.target.value;t.maxLength&&Q.length>Number(t.maxLength)&&(Q=Q.slice(0,Number(t.maxLength))),H.value||c("blur",Q,V)},L=()=>{c("clear","")},ee=l.ref(!1);let E=null;const N=()=>{t.showTooltip&&ee.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{ee.value=!0},150))},F=()=>{E&&(clearTimeout(E),ee.value=!1,E=null)},R=l.computed(()=>ee.value||j.value),S=l.computed(()=>ee.value?x.value:D.value),H=l.ref(!1),Z=V=>{H.value=V,c("visible-change",V),V||c("selected")},ne=V=>{c("remove-tag",V)},Y=(V,z)=>{const Q=[];return V.forEach((I,G)=>{const K=ia(t,I);if(Array.isArray(K)&&K.length>0){const le=Y(K,z),re=rt(t,I),ve={key:`${re}_${G}`,label:re};Q.push(l.h(C.ElOptionGroup,ve,{default:()=>le}))}else{const le=Rt(t,I),re=rt(t,I),ue=Ms(t,I),me={key:`${le}_${G}`,label:re,disabled:ue,value:le};if(typeof z=="function")Q.push(l.h(C.ElOption,me,{default:()=>z(I)}));else if(t.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},ut=l.h("span",Te,[le]),mt={class:{"fox-select-item__option-right":!0}},We=l.h("span",mt,[re]),jt=l.h("div",{class:{"fox-select-item__option":!0}},[ut,We]);Q.push(l.h(C.ElOption,me,{default:()=>jt}))}else t.optionType==="value"?Q.push(l.h(C.ElOption,me,{default:()=>[le]})):Q.push(l.h(C.ElOption,me))}}),Q},W=l.ref();return Se({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:V=>{a.value=V},setReadonly:V=>{u.value=V}}),()=>{const z={...Qe(r.attrs),ref:W,class:b.value,clearable:t.clearable,multiple:t.multiple,placeholder:h.placeholder.value,disabled:s.value||i.value,modelValue:w.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:L,onChange:T,onFocus:U,onBlur:J,onVisibleChange:Z,onRemoveTag:ne};typeof k=="function"&&(z["remote-method"]=k,z.loading=p.value),typeof _=="function"&&(z["filter-method"]=_,z.loading=p.value);const Q={};r.slots.prefix&&(Q.prefix=r.slots.prefix),r.slots.empty&&(Q.empty=r.slots.empty),r.slots.options?Q.default=r.slots.options:Q.default=()=>Y(v.value,r.slots.option);const I=[],G=l.h(C.ElSelect,z,Q);I.push(G);const K={default:()=>I};K.label=r.slots.default,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip;const re={...De(t,To),hintText:S.value,hintVisible:R.value,onMouseover:N,onMouseleave:F};return t.prop&&(re.prop=`${t.prop}_item`),g.value&&(re["appear-listen"]=!0,re.onAppear=O),l.h(o,re,K)}}}}const{componentName:js,create:zs,scope:Hs}=ie("select-item"),Dl=zs(_s(js,Hs,ke));function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Ks=Gt.exports,Co;function Ws(){return Co||(Co=1,(function(e,n){(function(o,t){e.exports=t()})(Ks,(function(){var o=1e3,t=6e4,r=36e5,a="millisecond",s="second",u="minute",i="hour",c="day",m="week",h="month",w="quarter",y="year",x="date",f="Invalid Date",d=/^(\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,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var T=["th","st","nd","rd"],D=b%100;return"["+b+(T[(D-20)%10]||T[D]||T[0])+"]"}},g=function(b,T,D){var j=String(b);return!j||j.length>=T?b:""+Array(T+1-j.length).join(D)+b},M={s:g,z:function(b){var T=-b.utcOffset(),D=Math.abs(T),j=Math.floor(D/60),U=D%60;return(T<=0?"+":"-")+g(j,2,"0")+":"+g(U,2,"0")},m:function b(T,D){if(T.date()<D.date())return-b(D,T);var j=12*(D.year()-T.year())+(D.month()-T.month()),U=T.clone().add(j,h),J=D-U<0,L=T.clone().add(j+(J?-1:1),h);return+(-(j+(D-U)/(J?U-L:L-U))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:h,y,w:m,d:c,D:x,h:i,m:u,s,ms:a,Q:w}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},B="en",A={};A[B]=v;var O="$isDayjsObject",k=function(b){return b instanceof q||!(!b||!b[O])},p=function b(T,D,j){var U;if(!T)return B;if(typeof T=="string"){var J=T.toLowerCase();A[J]&&(U=J),D&&(A[J]=D,U=J);var L=T.split("-");if(!U&&L.length>1)return b(L[0])}else{var ee=T.name;A[ee]=T,U=ee}return!j&&U&&(B=U),U||!j&&B},_=function(b,T){if(k(b))return b.clone();var D=typeof T=="object"?T:{};return D.date=b,D.args=arguments,new q(D)},$=M;$.l=p,$.i=k,$.w=function(b,T){return _(b,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var q=(function(){function b(D){this.$L=p(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[O]=!0}var T=b.prototype;return T.parse=function(D){this.$d=(function(j){var U=j.date,J=j.utc;if(U===null)return new Date(NaN);if($.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var L=U.match(d);if(L){var ee=L[2]-1||0,E=(L[7]||"0").substring(0,3);return J?new Date(Date.UTC(L[1],ee,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)):new Date(L[1],ee,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)}}return new Date(U)})(D),this.init()},T.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},T.$utils=function(){return $},T.isValid=function(){return this.$d.toString()!==f},T.isSame=function(D,j){var U=_(D);return this.startOf(j)<=U&&U<=this.endOf(j)},T.isAfter=function(D,j){return _(D)<this.startOf(j)},T.isBefore=function(D,j){return this.endOf(j)<_(D)},T.$g=function(D,j,U){return $.u(D)?this[j]:this.set(U,D)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(D,j){var U=this,J=!!$.u(j)||j,L=$.p(D),ee=function(ne,Y){var W=$.w(U.$u?Date.UTC(U.$y,Y,ne):new Date(U.$y,Y,ne),U);return J?W:W.endOf(c)},E=function(ne,Y){return $.w(U.toDate()[ne].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Y)),U)},N=this.$W,F=this.$M,R=this.$D,S="set"+(this.$u?"UTC":"");switch(L){case y:return J?ee(1,0):ee(31,11);case h:return J?ee(1,F):ee(0,F+1);case m:var H=this.$locale().weekStart||0,Z=(N<H?N+7:N)-H;return ee(J?R-Z:R+(6-Z),F);case c:case x:return E(S+"Hours",0);case i:return E(S+"Minutes",1);case u:return E(S+"Seconds",2);case s:return E(S+"Milliseconds",3);default:return this.clone()}},T.endOf=function(D){return this.startOf(D,!1)},T.$set=function(D,j){var U,J=$.p(D),L="set"+(this.$u?"UTC":""),ee=(U={},U[c]=L+"Date",U[x]=L+"Date",U[h]=L+"Month",U[y]=L+"FullYear",U[i]=L+"Hours",U[u]=L+"Minutes",U[s]=L+"Seconds",U[a]=L+"Milliseconds",U)[J],E=J===c?this.$D+(j-this.$W):j;if(J===h||J===y){var N=this.clone().set(x,1);N.$d[ee](E),N.init(),this.$d=N.set(x,Math.min(this.$D,N.daysInMonth())).$d}else ee&&this.$d[ee](E);return this.init(),this},T.set=function(D,j){return this.clone().$set(D,j)},T.get=function(D){return this[$.p(D)]()},T.add=function(D,j){var U,J=this;D=Number(D);var L=$.p(j),ee=function(F){var R=_(J);return $.w(R.date(R.date()+Math.round(F*D)),J)};if(L===h)return this.set(h,this.$M+D);if(L===y)return this.set(y,this.$y+D);if(L===c)return ee(1);if(L===m)return ee(7);var E=(U={},U[u]=t,U[i]=r,U[s]=o,U)[L]||1,N=this.$d.getTime()+D*E;return $.w(N,this)},T.subtract=function(D,j){return this.add(-1*D,j)},T.format=function(D){var j=this,U=this.$locale();if(!this.isValid())return U.invalidDate||f;var J=D||"YYYY-MM-DDTHH:mm:ssZ",L=$.z(this),ee=this.$H,E=this.$m,N=this.$M,F=U.weekdays,R=U.months,S=U.meridiem,H=function(Y,W,V,z){return Y&&(Y[W]||Y(j,J))||V[W].slice(0,z)},Z=function(Y){return $.s(ee%12||12,Y,"0")},ne=S||function(Y,W,V){var z=Y<12?"AM":"PM";return V?z.toLowerCase():z};return J.replace(P,(function(Y,W){return W||(function(V){switch(V){case"YY":return String(j.$y).slice(-2);case"YYYY":return $.s(j.$y,4,"0");case"M":return N+1;case"MM":return $.s(N+1,2,"0");case"MMM":return H(U.monthsShort,N,R,3);case"MMMM":return H(R,N);case"D":return j.$D;case"DD":return $.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return H(U.weekdaysMin,j.$W,F,2);case"ddd":return H(U.weekdaysShort,j.$W,F,3);case"dddd":return F[j.$W];case"H":return String(ee);case"HH":return $.s(ee,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return ne(ee,E,!0);case"A":return ne(ee,E,!1);case"m":return String(E);case"mm":return $.s(E,2,"0");case"s":return String(j.$s);case"ss":return $.s(j.$s,2,"0");case"SSS":return $.s(j.$ms,3,"0");case"Z":return L}return null})(Y)||L.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(D,j,U){var J,L=this,ee=$.p(j),E=_(D),N=(E.utcOffset()-this.utcOffset())*t,F=this-E,R=function(){return $.m(L,E)};switch(ee){case y:J=R()/12;break;case h:J=R();break;case w:J=R()/3;break;case m:J=(F-N)/6048e5;break;case c:J=(F-N)/864e5;break;case i:J=F/r;break;case u:J=F/t;break;case s:J=F/o;break;default:J=F}return U?J:$.a(J)},T.daysInMonth=function(){return this.endOf(h).$D},T.$locale=function(){return A[this.$L]},T.locale=function(D,j){if(!D)return this.$L;var U=this.clone(),J=p(D,j,!0);return J&&(U.$L=J),U},T.clone=function(){return $.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},b})(),X=q.prototype;return _.prototype=X,[["$ms",a],["$s",s],["$m",u],["$H",i],["$W",c],["$M",h],["$y",y],["$D",x]].forEach((function(b){X[b[1]]=function(T){return this.$g(T,b[0],b[1])}})),_.extend=function(b,T){return b.$i||(b(T,q,_),b.$i=!0),_},_.locale=p,_.isDayjs=k,_.unix=function(b){return _(1e3*b)},_.en=A[B],_.Ls=A,_.p={},_}))})(Gt)),Gt.exports}var Ys=Ws();const et=lt(Ys);var Xt={exports:{}},Us=Xt.exports,$o;function Gs(){return $o||($o=1,(function(e,n){(function(o,t){e.exports=t()})(Us,(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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},c=function(d){return(d=+d)+(d>68?1900:2e3)},m=function(d){return function(P){this[d]=+P}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=(function(P){if(!P||P==="Z")return 0;var v=P.match(/([+-]|\d\d)/g),g=60*v[1]+(+v[2]||0);return g===0?0:v[0]==="+"?-g:g})(d)}],w=function(d){var P=i[d];return P&&(P.indexOf?P:P.s.concat(P.f))},y=function(d,P){var v,g=i.meridiem;if(g){for(var M=1;M<=24;M+=1)if(d.indexOf(g(M,0,P))>-1){v=M>12;break}}else v=d===(P?"pm":"PM");return v},x={A:[u,function(d){this.afternoon=y(d,!1)}],a:[u,function(d){this.afternoon=y(d,!0)}],Q:[r,function(d){this.month=3*(d-1)+1}],S:[r,function(d){this.milliseconds=100*+d}],SS:[a,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[a,m("day")],Do:[u,function(d){var P=i.ordinal,v=d.match(/\d+/);if(this.day=v[0],P)for(var g=1;g<=31;g+=1)P(g).replace(/\[|\]/g,"")===d&&(this.day=g)}],w:[s,m("week")],ww:[a,m("week")],M:[s,m("month")],MM:[a,m("month")],MMM:[u,function(d){var P=w("months"),v=(w("monthsShort")||P.map((function(g){return g.slice(0,3)}))).indexOf(d)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[u,function(d){var P=w("months").indexOf(d)+1;if(P<1)throw new Error;this.month=P%12||P}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(d){this.year=c(d)}],YYYY:[/\d{4}/,m("year")],Z:h,ZZ:h};function f(d){var P,v;P=d,v=i&&i.formats;for(var g=(d=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,$,q){var X=q&&q.toUpperCase();return $||v[q]||o[q]||v[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,T,D){return T||D.slice(1)}))}))).match(t),M=g.length,B=0;B<M;B+=1){var A=g[B],O=x[A],k=O&&O[0],p=O&&O[1];g[B]=p?{regex:k,parser:p}:A.replace(/^\[|\]$/g,"")}return function(_){for(var $={},q=0,X=0;q<M;q+=1){var b=g[q];if(typeof b=="string")X+=b.length;else{var T=b.regex,D=b.parser,j=_.slice(X),U=T.exec(j)[0];D.call($,U),_=_.replace(U,"")}}return(function(J){var L=J.afternoon;if(L!==void 0){var ee=J.hours;L?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}})($),$}}return function(d,P,v){v.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(c=d.parseTwoDigitYear);var g=P.prototype,M=g.parse;g.parse=function(B){var A=B.date,O=B.utc,k=B.args;this.$u=O;var p=k[1];if(typeof p=="string"){var _=k[2]===!0,$=k[3]===!0,q=_||$,X=k[2];$&&(X=k[2]),i=this.$locale(),!_&&X&&(i=v.Ls[X]),this.$d=(function(j,U,J,L){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*j);var ee=f(U)(j),E=ee.year,N=ee.month,F=ee.day,R=ee.hours,S=ee.minutes,H=ee.seconds,Z=ee.milliseconds,ne=ee.zone,Y=ee.week,W=new Date,V=F||(E||N?1:W.getDate()),z=E||W.getFullYear(),Q=0;E&&!N||(Q=N>0?N-1:W.getMonth());var I,G=R||0,K=S||0,le=H||0,re=Z||0;return ne?new Date(Date.UTC(z,Q,V,G,K,le,re+60*ne.offset*1e3)):J?new Date(Date.UTC(z,Q,V,G,K,le,re)):(I=new Date(z,Q,V,G,K,le,re),Y&&(I=L(I).week(Y).toDate()),I)}catch{return new Date("")}})(A,p,O,v),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),q&&A!=this.format(p)&&(this.$d=new Date("")),i={}}else if(p instanceof Array)for(var b=p.length,T=1;T<=b;T+=1){k[1]=p[T-1];var D=v.apply(this,k);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}T===b&&(this.$d=new Date(""))}else M.call(this,B)}}}))})(Xt)),Xt.exports}var Xs=Gs();const Zs=lt(Xs);var Zt={exports:{}},Qs=Zt.exports,No;function Js(){return No||(No=1,(function(e,n){(function(o,t){e.exports=t()})(Qs,(function(){return function(o,t){var r=t.prototype,a=r.format;r.format=function(s){var u=this,i=this.$locale();if(!this.isValid())return a.bind(this)(s);var c=this.$utils(),m=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return i.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return i.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),h==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),h==="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 h}}));return a.bind(this)(m)}}}))})(Zt)),Zt.exports}var eu=Js();const tu=lt(eu);var Qt={exports:{}},nu=Qt.exports,ko;function lu(){return ko||(ko=1,(function(e,n){(function(o,t){e.exports=t()})(nu,(function(){return function(o,t,r){var a=t.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,w,y,x,f){var d=h.name?h:h.$locale(),P=s(d[w]),v=s(d[y]),g=P||v.map((function(B){return B.slice(0,x)}));if(!f)return g;var M=d.weekStart;return g.map((function(B,A){return g[(A+(M||0))%7]}))},i=function(){return r.Ls[r.locale()]},c=function(h,w){return h.formats[w]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,f,d){return f||d.slice(1)}))})(h.formats[w.toUpperCase()])},m=function(){var h=this;return{months:function(w){return w?w.format("MMMM"):u(h,"months")},monthsShort:function(w){return w?w.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):u(h,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return c(h.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return m.bind(this)()},r.localeData=function(){var h=i();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(w){return c(h,w)},meridiem:h.meridiem,ordinal:h.ordinal}},r.months=function(){return u(i(),"months")},r.monthsShort=function(){return u(i(),"monthsShort","months",3)},r.weekdays=function(h){return u(i(),"weekdays",null,null,h)},r.weekdaysShort=function(h){return u(i(),"weekdaysShort","weekdays",3,h)},r.weekdaysMin=function(h){return u(i(),"weekdaysMin","weekdays",2,h)}}}))})(Qt)),Qt.exports}var ou=lu();const ru=lt(ou);var Jt={exports:{}},au=Jt.exports,Eo;function iu(){return Eo||(Eo=1,(function(e,n){(function(o,t){e.exports=t()})(au,(function(){var o="week",t="year";return function(r,a,s){var u=a.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(t).add(1,t).date(c),h=s(this).endOf(o);if(m.isBefore(h))return 1}var w=s(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(w,o,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})(Jt)),Jt.exports}var su=iu();const uu=lt(su);var en={exports:{}},cu=en.exports,Po;function fu(){return Po||(Po=1,(function(e,n){(function(o,t){e.exports=t()})(cu,(function(){return function(o,t){t.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}}))})(en)),en.exports}var du=fu();const hu=lt(du);var tn={exports:{}},mu=tn.exports,Io;function gu(){return Io||(Io=1,(function(e,n){(function(o,t){e.exports=t()})(mu,(function(){return function(o,t,r){t.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}}))})(tn)),tn.exports}var vu=gu();const pu=lt(vu);var nn={exports:{}},yu=nn.exports,Oo;function bu(){return Oo||(Oo=1,(function(e,n){(function(o,t){e.exports=t()})(yu,(function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}}))})(nn)),nn.exports}var xu=bu();const wu=lt(xu);var ln={exports:{}},Su=ln.exports,Do;function Tu(){return Do||(Do=1,(function(e,n){(function(o,t){e.exports=t()})(Su,(function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}}))})(ln)),ln.exports}var Cu=Tu();const $u=lt(Cu);et.extend(ru);et.extend(tu);et.extend(Zs);et.extend(uu);et.extend(hu);et.extend(pu);et.extend(wu);et.extend($u);const qe={format(e,n){return et(e).format(n)},parser(e,n){return et(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,t,r].join(n)},getDay(e,n,o){e=e||0;let t=n??new Date;const r=e*(1e3*60*60*24);return t=new Date(t.getTime()+r),o=o??"YYYY-MM-DD",this.format(t,o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(o>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,o==t},getMonthWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),s=r.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((s+u)/7)},getYearWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),i=6-u;return t!==0&&(u=u==0?7:u,i=7-u),Math.ceil((s+i)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let s=r.getDay();if(t===0){const i=a-s*864e5,c=a+(6-s)*864e5,m=this.date2Str(new Date(i)),h=this.date2Str(new Date(c));return[m,h]}else{s=s==0?7:s;const u=1440*60*1e3,i=a-(s-1)*u,c=a+(7-s)*u,m=this.date2Str(new Date(i)),h=this.date2Str(new Date(c));return[m,h]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=qe.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=qe.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const t=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=t.getTime(),s=n.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),s=n.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Vo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Ro={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Nu(e,n,o){return{props:{...Ne,...Ve,...Vo,...Ro},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(!1),y=he(t,"modelValue",null,c),x=l.computed(()=>j.value&&Array.isArray(y.value)&&y.value.length==2?y.value[0]:y.value),f=l.computed(()=>j.value?"longTermKey":"normalKey"),d=W=>{if(j.value&&t.type==="daterange"){const V=[...y.value];V[0]=W,y.value=V}else y.value=W;c("update:modelValue",y.value),c("change",y.value)},P=l.computed(()=>j.value&&t.type==="daterange"?"date":t.type),v=e,g=l.computed(()=>({[`${v}`]:!0,"is-long":j.value,"is-readonly":i.value,"is-disabled":s.value}));let M=he(t,"hintText"),B=l.ref(!1);const A=W=>{let z=W.target.value;w.value=!0,de(M.value)||(B.value=!0),c("focus",z,W)},O=W=>{setTimeout(()=>{B.value&&(B.value=!1),w.value=!1},0);let z=W.target.value;t.maxLength&&z.length>Number(t.maxLength)&&(z=z.slice(0,Number(t.maxLength))),c("blur",z,W)},k=()=>{c("clear","")},p=W=>{c("calendar-change",W)},_=(W,V,z)=>{c("panel-change",W,V,z)},$=W=>{c("visible-change",W)},q=Fe(l.computed(()=>t.longTermText),"longTermText",je.Near),X=Fe(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",je.Near),b=Fe(l.computed(()=>t.longTermValue),"longTermValue",je.Near),T=Fe(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",je.Near);let D=null;const j=l.ref(ce(t.longTerm)),U=W=>{if(j.value=W,c("update:longTerm",W),W){if(D=y.value,t.type==="daterange"){const V=[];Array.isArray(b.value)?(V[0]=y.value?y.value[0]??b.value[0]:null,V[1]=b.value[1]??b.value[0]):(V[0]=y.value?y.value[0]??b.value:null,V[1]=j.value),V[0]||(V[0]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),V[1]||(V[1]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),y.value=V}else Array.isArray(b.value)?y.value=b.value[1]??b.value[0]:y.value=b.value,y.value||(y.value=t.valueFormat?qe.format(new Date,t.valueFormat):new Date);c("update:modelValue",y.value)}else{if(t.type==="daterange"){const V=[];V[0]=Array.isArray(y.value)?y.value[0]:y.value,Array.isArray(D)?V[1]=D[1]:V[1]=D,V[0]||(V[0]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),V[1]||(V[1]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),y.value=V}else y.value=D;c("update:modelValue",y.value),setTimeout(()=>{ne()},100)}},J=ce(t.isLongTerm);if(J){const W=()=>{if(j.value===!0){if(D=y.value,t.type==="daterange"){const V=[y.value[0]];Array.isArray(b.value)?V[1]=b.value[1]??b.value[0]:V[1]=j.value,V[0]||(V[0]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),V[1]||(V[1]=t.valueFormat?qe.format(new Date,t.valueFormat):new Date),y.value=V}else y.value=b.value;c("update:modelValue",y.value)}else nt(b.value,y.value)&&(j.value=!0)};W(),l.watch([()=>t.longTerm],([V])=>{j.value!==V&&W()}),l.watch([()=>y.value],([V])=>{let z=!1;if(t.type==="daterange"&&Array.isArray(V))try{let Q=V[1];if(!Q)return;if(V[0]==null){c("update:modelValue",[]);return}typeof Q!="string"&&t.valueFormat&&(Q=qe.format(Q,t.valueFormat));let I=Array.isArray(b.value)?b.value[1]:b.value;(Q===I||Array.isArray(T.value)&&T.value.findIndex(K=>Q==K)!==-1)&&(z=!0)}catch(Q){console.error(Q)}j.value!==z&&(j.value=z)},{immediate:!0})}const L=l.computed(()=>({"fox-date-item__long":!0,"is-active":w.value})),ee=l.ref(),E=l.ref(),N=/^\d+$/,F=(W,V)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(W,V):N.test(W)&&W.length===t.flashFillThreshold,R=(W,V)=>{let z;if(typeof t.flashFillFormat=="function")z=t.flashFillFormat(W,V);else{const I=t.flashFillFormat??"YYYYMMDD";z=qe.parser(W,I)}const Q=t.valueFormat??"YYYY-MM-DD";return qe.format(z,Q)},S=W=>W?W.endsWith("range"):!1,H=W=>{if(!W.target)return;const V=W.target.value??"";if(F(V,t.type)){const z=R(V,t.type);if(S(t.type)){const Q=Array.isArray(y.value)?[...y.value]:[];Q[0]=z,d(Q)}else d(z)}},Z=W=>{if(!W.target)return;const V=W.target.value??"";if(F(V,t.type)){const z=R(V,t.type);if(S(t.type)){const Q=Array.isArray(y.value)?[...y.value]:[];Q[1]=z,d(Q)}else d(z)}},ne=()=>{if(t.flashFill&&ee.value&&ee.value.$el)if(S(t.type)){const W=ee.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",H),W[1]&&W[1].addEventListener("input",Z)}else{const W=ee.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",H)}},Y=()=>{if(t.flashFill&&ee.value&&ee.value.$el)if(S(t.type)){const W=ee.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",H),W[1]&&W[1].removeEventListener("input",Z)}else{const W=ee.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",H)}};return l.onMounted(ne),l.onBeforeUnmount(Y),Se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const V={...r.attrs,key:f.value,type:P.value,ref:E,class:g.value,placeholder:h.placeholder.value,disabled:s.value,readonly:i.value,modelValue:x.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":d,onClear:k,onFocus:A,onBlur:O,onCalendarChange:p,onPanelChange:_,onVisibleChange:$},z={};r.slots["range-separator"]&&(z["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(z.default=r.slots.cell);const Q=[],I=l.h(C.ElDatePicker,V,z);Q.push(I);const G={default:()=>Q};if(G.label=r.slots.default,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip,J){if(j.value){const ue=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ve=l.h("input",{class:["fox-date-item__long-text"],value:q.value,readonly:!0}),me={class:L.value},Te=l.h("div",me,{default:()=>[ue,ve]});Q.push(Te)}if(!i.value&&!s.value){const ue={label:X.value||q.value,disabled:i.value||s.value,modelValue:j.value,"onUpdate:modelValue":U},ve=l.h(C.ElCheckbox,ue),me=l.h("div",{class:{[`${v}__append`]:!0}},[ve]);G.append=()=>me}}const le={...De(t,Vo,Ro),ref:ee,class:{[`${v}__wrapper`]:!0,"has-append":J},hintText:M.value,hintVisible:B.value};return t.prop&&(le.prop=`${t.prop}_item`),l.h(o,le,G)}}}}const{componentName:ku,create:Eu,scope:Pu}=ie("date-item"),Vl=Eu(Nu(ku,Pu,ke)),Fo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Iu(e,n,o){return{props:{...Ne,...Ve,...Fo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(!1),y=he(t,"modelValue",null,c),x=e,f=l.computed(()=>({[x]:!0})),d=k=>{y.value=k,c("update:modelValue",k),c("change",k)};let P=he(t,"hintText"),v=l.ref(!1);const g=k=>{let _=k.target.value;w.value=!0,de(P.value)||(v.value=!0),c("focus",_,k)},M=k=>{setTimeout(()=>{v.value&&(v.value=!1),w.value=!1},0);let _=k.target.value;t.maxLength&&_.length>Number(t.maxLength)&&(_=_.slice(0,Number(t.maxLength))),c("blur",_,k)},B=()=>{c("clear","")},A=k=>{c("visible-change",k)},O=l.ref();return Se({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const p={...r.attrs,ref:O,class:f.value,placeholder:h.placeholder.value,disabled:s.value,readonly:i.value,modelValue:y.value,"onUpdate:modelValue":d,onClear:B,onFocus:g,onBlur:M,onVisibleChange:A},_={},$=[],q=l.h(C.ElTimePicker,p,_);$.push(q);const X={default:()=>$};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const T={...De(t,Fo),hintText:P.value,hintVisible:v.value};return t.prop&&(T.prop=`${t.prop}_item`),l.h(o,T,X)}}}}const{componentName:Ou,create:Du,scope:Vu}=ie("time-item"),Rl=Du(Iu(Ou,Vu,ke)),Ao={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ru(e,n,o){return{props:{...Ne,...Ve,...Ao},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(!1),y=he(t,"modelValue",null,c),x=e,f=l.computed(()=>({[x]:!0})),d=O=>{y.value=O,c("update:modelValue",O),c("change",O)};let P=he(t,"hintText"),v=l.ref(!1);const g=O=>{let p=O.target.value;w.value=!0,de(P.value)||(v.value=!0),c("focus",p,O)},M=O=>{setTimeout(()=>{v.value&&(v.value=!1),w.value=!1},0);let p=O.target.value;t.maxLength&&p.length>Number(t.maxLength)&&(p=p.slice(0,Number(t.maxLength))),c("blur",p,O)},B=()=>{c("clear","")},A=l.ref();return Se({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()},setDisabled:O=>{a.value=O},setReadonly:O=>{u.value=O}}),()=>{const k={...r.attrs,ref:A,class:f.value,placeholder:h.placeholder.value,disabled:s.value,readonly:i.value,modelValue:y.value,"onUpdate:modelValue":d,onClear:B,onFocus:g,onBlur:M},p={},_=[],$=l.h(C.ElTimeSelect,k,p);_.push($);const q={default:()=>_};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const b={...De(t,Ao),hintText:P.value,hintVisible:v.value};return t.prop&&(b.prop=`${t.prop}_item`),l.h(o,b,q)}}}}const{componentName:Fu,create:Au,scope:Mu}=ie("time-select-item"),Fl=Au(Ru(Fu,Mu,ke));function Mo(e,n=0){let o=`${e}`,t=o.indexOf(".");if(t==-1)return o;let r=t;for(let a=o.length-1;a>=t;a--)if(o.charAt(a)!="0"){r=a;break}return r-t<n?r=t+n+1:r!=t&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Lo(e,n,o=20){if(typeof n=="string"&&(n=$e(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=Cr(`${e}`,`${n}`);return Mo(t)}else{let t=gl(`${e}`,$r(`${n}`),20);return Mo(t)}}function Lu(e,n=-1,o=!1,t=3,r=","){return dn(e,n,o,t,r)}function Bo(e,n,o,t,r=!0){if(e==="")return"";if(e=Nr(e),n=$e(n),n==1)return e;if(t)e=Lo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd($e(o)+2,"0"):e=gl(e,1,$e(o)));else{let a=-1*n;e=Lo(e,a)}return e}function qo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ce(n.minInclude),r=nl(e,n.min);if(t&&r==-1||!t&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let t=ce(n.maxInclude),r=nl(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const _o={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 Bu(e,n,o){return{props:{...Ne,...Ve,..._o},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),m=l.ref(!1),h=he(t,"modelValue",null,c),w=l.ref("");l.watch([()=>h.value,()=>t.rates,()=>t.precision],([T,D,j])=>{if(de(T)){w.value="";return}const U=Bo(T,D,j,!1);w.value!==U&&(w.value=U)},{immediate:!0});const y=l.computed(()=>{let T="";return m.value&&(T=w.value),T}),{t:x}=Ae.useFoxI18n(n),f=l.computed(()=>{let T=t.placeholder??"";return!m.value&&!de(w.value)?T=Lu(w.value,t.decimalLength,t.autoPadding,t.digits,t.separator):T=x(["placeholder",T]),T}),d=e,P=l.computed(()=>({[d]:!0,[`${d}__disabled`]:s.value,[`${d}__placeholder`]:w.value.length>0})),v=Fe(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>m.value?{textAlign:"left"}:{textAlign:v.value??"right"});const g=l.ref(""),M=l.computed(()=>{let T=g.value;return de(T)&&(T=t.errorTip??""),T}),B=l.ref(""),A=l.ref(!1),O=(T,D)=>{if(T=`${T}`,de(T)){w.value="",h.value="",D.forEach(j=>{c(j,"")}),ce(t.showTip)&&A.value&&(A.value=!1);return}if(T.length>=2){let j=T;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){l.triggerRef(w);return}}if(T!="-"){if(!pl(T)){l.triggerRef(w);return}if(t.integerLength!=-1&&Fr(T)>Number(t.integerLength)){l.triggerRef(w);return}if(t.decimalLength&&t.decimalLength!=-1&&Ar(T)>Number(t.decimalLength)){l.triggerRef(w);return}let j=qo(T,t);if(j.maxValid===!1){g.value=j.message,l.triggerRef(w);return}}else if(t.min!=null&&$e(t.min)>=0){l.triggerRef(w);return}B.value=T,ce(t.showTip)&&(A.value=T.length>0),w.value=T,h.value=Bo(T,t.rates,t.precision,!0),D.forEach(j=>{c(j,h.value)})},k=T=>{O(T,["update:modelValue","input"])},p=T=>{O(T,["update:modelValue","change"])},_=T=>{if(m.value=!0,ce(t.showTip)){let D=w.value;de(D)&&(D=t.hintText),de(D)||(B.value=D,A.value=!0)}g.value="",c("focus",h.value,T)},$=T=>{if(setTimeout(()=>{m.value=!1,ce(t.showTip)&&A.value===!0&&(A.value=!1)},0),!de(w.value)){let D=qo(w.value,t);if(D.minValid===!1||D.maxValid===!1){g.value=D.message;return}}c("update:modelValue",h.value,T),c("blur",h.value,T)},q=()=>{c("clear","")},X=l.computed(()=>Mt(t.unit)>0),b=l.ref();return Se({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},select:()=>{b?.value.select()},setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const D={...Qe(r.attrs),ref:b,class:P.value,type:"digit",maxlength:t.maxLength,placeholder:f.value,clearable:t.clearable,disabled:s.value,readonly:i.value,modelValue:y.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:q,onInput:k,onChange:p,onFocus:_,onBlur:$},j={};r.slots.prepend&&(j.prepend=r.slots.prepend),r.slots.append&&(j.append=r.slots.append),r.slots.prefix&&(j.prefix=r.slots.prefix),r.slots.suffix?j.suffix=r.slots.suffix:X.value&&(j.suffix=()=>[t.unit]);const U=[],J=l.h(C.ElInput,D,j);U.push(J);const L={default:()=>U};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(t,_o),errorTip:M.value,hintText:B.value,hintVisible:A.value,hintType:"number"};return t.prop&&(E.prop=`${t.prop}_item`),l.h(o,E,L)}}}}const{componentName:qu,create:_u,scope:ju}=ie("money-item"),Al=_u(Bu(qu,ju,ke)),jo={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 zu(e,n,o){return{props:{...Ne,...Ve,...jo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(!1),y=he(t,"modelValue",null,c),x=e,f=l.computed(()=>({[x]:!0,[`${x}__append`]:k.value})),d=l.computed(()=>({[`${x}__unit`]:!0})),P=_=>{y.value=_,c("update:modelValue",_),c("input",_)},v=_=>{c("change",_)};let g=he(t,"hintText"),M=l.ref(!1);const B=_=>{let q=_.target.value;w.value=!0,de(g.value)||(M.value=!0),c("focus",q,_)},A=_=>{setTimeout(()=>{M.value&&(M.value=!1),w.value=!1},0);let q=_.target.value;t.maxLength&&q.length>Number(t.maxLength)&&(q=q.slice(0,Number(t.maxLength))),c("blur",q,_)},O=()=>{c("clear","")},k=l.computed(()=>Mt(t.unit)>0),p=l.ref();return Se({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const $={...Qe(r.attrs),ref:p,class:f.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:s.value,readonly:i.value,modelValue:y.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:O,onChange:v,onInput:P,onFocus:B,onBlur:A},q={},X=[],b=l.h(C.ElInputNumber,$,q);X.push(b);const T={default:()=>X};T.label=r.slots.default,T.fixedPreTip=r.slots.fixedPreTip,T.fixedTip=r.slots.fixedTip;const j={...De(t,jo),hintText:g.value,hintVisible:M.value};if(t.prop&&(j.prop=`${t.prop}_item`),r.slots.append)T.append=r.slots.append;else if(k.value){const J={class:d.value},L=l.h("div",J,[t.unit]);T.append=()=>L}return l.h(o,j,T)}}}}const{componentName:Hu,create:Ku,scope:Wu}=ie("input-number-item"),Ml=Ku(zu(Hu,Wu,ke));function tt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ht(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yu(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Uu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const a=ze(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Gu(){const e=l.getCurrentInstance();return new Uu(e.proxy)}function fl(e,n,o){const t=tt(e,n),r=tt(e,o);if(t!==r)return!1;const a=ht(e,n),s=ht(e,o);return a===s}function ca(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=t;for(let s=0;Array.isArray(a)&&s<n.length;s++){const u=n[s];if(Array.isArray(u)){const i=ca(e,u,o,t);r.push(i)}else{let i=!1;for(let c of a){if(o==="text")i=tt(e,c)===u;else if(o==="item")i=fl(e,c,u);else{let m=ht(e,c);m==null&&(m=tt(e,c)),i=m===u}if(i){r.push(c),a=Yu(e,c);break}}if(!i)break}}return r}function Xu(e){return{text:e,value:e}}const zo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Zu(e,n,o){return{props:{...Ne,...Ve,...zo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(null),y=l.ref([]),x=l.computed(()=>y.value?y.value.map(W=>Array.isArray(W)?W.map(z=>tt(t,z)).join(" "):tt(t,W)).join(" "):""),f=(Y,W,V,z=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(w.value===Y)return;w.value=Y;const K=l.toRaw(Y);if(z){const le=ne?.value.getCheckedNodes();if(le)if(t.multiple){const re=[];le.forEach(ue=>{const me=(ue.pathNodes??[]).map(Te=>Te.data);re.push(me)}),c("update:pathNodes",re)}else{const ue=(le[0]?.pathNodes??[]).map(ve=>ve.data);c("update:pathNodes",ue)}c("update:modelValue",K),c("change",K)}return}const Q=ca(t,Y,W,V);if(Q===null){if(y.value.length===0||y.value===null)return;y.value=[],w.value=null,z&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const I=Q[Q.length-1];if(q.value.checkStrictly!==!0&&I&&!Array.isArray(I)&&Array.isArray(I.children)&&I.children.length>0){const K=[];Q.forEach(le=>{const re=`${tt(t,le)}`;K.push(re)}),K.length>0&&(_.value=K.join(t.separator))}else _.value=null;let G=!0;if(Q.length!==y.value.length)G=!1;else for(let K=0;K<Q.length;K++){const le=Q[K],re=y.value[K];if(Array.isArray(le)){if(!Array.isArray(re)||le.length!==re.length)G=!1;else for(let ue=0;ue<le.length;ue++)if(!fl(t,le[ue],re[ue])){G=!1;break}}else fl(t,le,re)||(G=!1);if(!G)break}if(!G){y.value=Q;let K=[],le=[];Q.forEach(ue=>{if(Array.isArray(ue)){let ve=[],me=[];for(let Te of ue)ve.push(ht(t,Te)),t.valueType==="text"?me.push(tt(t,Te)):t.valueType==="item"?me.push(Te):me.push(ht(t,Te));K.push(ve),le.push(me)}else K.push(ht(t,ue)),t.valueType==="text"?le.push(tt(t,ue)):t.valueType==="item"?le.push(ue):le.push(ht(t,ue))}),w.value=K;const re=l.toRaw(le);z&&(c("update:pathNodes",Q),c("update:modelValue",re),c("change",re))}},d=l.ref([]),P=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,Y=>ce(Y)),v=Gu(),g=async(Y,W)=>{if(Y){const V=await v.load("cascader",Y,W);if(V.length>0)if(typeof V[0]=="string"){let I=V.map(G=>Xu(G));d.value=I}else d.value=V}};l.watch([()=>t.source,()=>t.params],async([Y,W])=>{g(Y,W)},{immediate:!(P.value||t.lazy)});let M=!1;const B=()=>{M||(M=!0,g(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([Y,W])=>{f(W,t.valueType,Y,!1),c("setValue",W)}),t.lazy&&f(t.modelValue,"value",[],!1);let A=null,O=l.ref(!1);typeof t.remoteMethod=="function"&&(A=async Y=>{if(Y!=null){O.value=!0;try{const W=await t.remoteMethod(Y);d.value=W}catch(W){console.error(W)}O.value=!1}});const k=l.ref(!1),p=e,_=l.ref(null),$=l.computed(()=>({[p]:!0,"is-incomplete":_.value&&_.value.length>0})),q=l.computed(()=>{let Y={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(Y.multiple=!0),t.props&&Object.assign(Y,t.props),t.lazy&&(Y.lazy=!0,typeof t.lazyLoad=="function"?Y.lazyLoad=t.lazyLoad:Y.lazyLoad=async(W,V)=>{let z={};t.params&&Object.assign(z,t.params),W&&Object.assign(z,W);const Q=await v.load("cascader",t.source,z,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(w.value)&&w.value.length===W.level){const I=W.pathLabels??[];let G=[];I.forEach(K=>{K&&G.push(K)}),G.length>0&&(_.value=G.join(t.separator))}else _.value=null;V(Q)}),Y}),X=Y=>{t.allowCreate?(c("update:modelValue",Y),c("change",Y),w.value=Y):f(Y,"value",d.value,!0)};let b=he(t,"hintText"),T=l.ref(!1);const D=Y=>{let V=Y.target.value;k.value=!0,de(b.value)||(T.value=!0),c("focus",V,Y)},j=Y=>{setTimeout(()=>{T.value&&(T.value=!1),k.value=!1},0);let V=Y.target.value;t.maxLength&&V.length>Number(t.maxLength)&&(V=V.slice(0,Number(t.maxLength))),R.value||c("blur",V,Y)},U=()=>{c("clear","")},J=l.ref(!1);let L=null;const ee=()=>{t.showTooltip&&J.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{J.value=!0},150))},E=()=>{L&&(clearTimeout(L),J.value=!1,L=null)},N=l.computed(()=>J.value||T.value),F=l.computed(()=>J.value?x.value:b.value),R=l.ref(!1),S=Y=>{R.value=Y,c("visible-change",Y),Y||c("selected")},H=Y=>{c("remove-tag",Y)},Z=Y=>{c("expand-change",Y)},ne=l.ref();return Se({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const W={...r.attrs,ref:ne,class:$.value,props:q.value,clearable:t.clearable,placeholder:_.value||h.placeholder.value,disabled:s.value||i.value,options:d.value,modelValue:w.value,separator:t.separator,onClear:U,onChange:X,onFocus:D,onBlur:j,onVisibleChange:S,onRemoveTag:H,expandChange:Z};typeof A=="function"&&(W["remote-method"]=A,W.loading=O.value);const V={};r.slots.option&&(V.default=r.slots.option),r.slots.empty&&(V.empty=r.slots.empty);const z=[],Q=l.h(C.ElCascader,W,V);z.push(Q);const I={default:()=>z};I.label=r.slots.default,I.fixedPreTip=r.slots.fixedPreTip,I.fixedTip=r.slots.fixedTip;const K={...De(t,zo),hintText:F.value,hintVisible:N.value,onMouseover:ee,onMouseleave:E};return t.prop&&(K.prop=`${t.prop}_item`),P.value&&!t.lazy&&(K["appear-listen"]=!0,K.onAppear=B),l.h(o,K,I)}}}}const{componentName:Qu,create:Ju,scope:ec}=ie("cascader-item"),Ll=Ju(Zu(Qu,ec,ke)),Ho={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function tc(e,n,o){return{props:{...Ne,...Ve,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),{toLocaleRefs:m}=Ae.useFoxI18n(n),h=m(t,["placeholder"]),w=l.ref(!1),y=he(t,"modelValue",null,c),x=e,f=l.computed(()=>({[x]:!0})),d=p=>{y.value=p,c("update:modelValue",p),c("input",p)},P=p=>{c("change",p)},v=p=>{c("select",p)};let g=he(t,"hintText"),M=l.ref(!1);const B=p=>{let $=p.target.value;w.value=!0,de(g.value)||(M.value=!0),c("focus",$,p)},A=p=>{setTimeout(()=>{M.value&&(M.value=!1),w.value=!1},0);let $=p.target.value;t.maxLength&&$.length>Number(t.maxLength)&&($=$.slice(0,Number(t.maxLength))),c("blur",$,p)},O=()=>{c("clear","")},k=l.ref();return Se({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},setDisabled:p=>{a.value=p},setReadonly:p=>{u.value=p}}),()=>{const _={...r.attrs,ref:k,class:f.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:s.value,readonly:i.value,modelValue:y.value,onClear:O,onChange:P,onInput:d,onFocus:B,onBlur:A,onSelect:v},$={};r.slots.prepend&&($.prepend=r.slots.prepend),r.slots.append&&($.append=r.slots.append),r.slots.prefix&&($.prefix=r.slots.prefix),r.slots.suffix&&($.suffix=r.slots.suffix),r.slots.option&&($.default=r.slots.option);const q=[],X=l.h(C.ElAutocomplete,_,$);q.push(X);const b={default:()=>q};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const D={...De(t,Ho),hintText:g.value,hintVisible:M.value};return t.prop&&(D.prop=`${t.prop}_item`),l.h(o,D,b)}}}}const{componentName:nc,create:lc,scope:oc}=ie("autocomplete-item"),Bl=lc(tc(nc,oc,ke));function rc(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let i=n;for(let c=0;i&&c<a.length;c++){let m=a[c],h=i.find(w=>w[t]===m);if(!h)break;s.push(h[o])}return s}if(Array.isArray(u))for(let i=0;i<n.length&&i<a.length;i++){let c=n[i],m=a[i];const h=c.find(w=>w[t]===m);if(!h)break;s.push(h[o])}else{let i=n;for(let c=0;i&&c<a.length;c++){let m=a[c],h=i.find(w=>w[t]===m);if(!h)break;s.push(h[o]),i=h[r]}}return s}let ac=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ic(){const e=l.getCurrentInstance();return new ac(e.proxy)}const fa={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function sc(e,n){return{props:{...fa},setup(o,{attrs:t,slots:r}){const a=ic(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([i,c])=>{s.value=await a.load(o.sourceType,i,c)},{immediate:!0});const u=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return o.emptyText;let i=rc(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return i.length==0?o.emptyText??"":i.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${i[0]}`:i[0]:i.join(o.separator)});return()=>{const i={...t};if(r.default)return r.default({text:u.value,value:o.modelValue});const c=o.tag??"span";return typeof c=="object"?l.h(c,i,{default:()=>u.value}):l.h(c,i,[u.value])}}}}const{create:uc}=ie("mapping"),Ft=uc(sc());function cc(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,u=a.indexOf("["),i=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&i!==-1;){let c=a.substring(u+1,i);if(/^\d+$/.test(c)){let m=parseInt(c);if(s==0){let h=a.substring(0,u);t=t[h][m]}else t=t[m];s++}u=a.indexOf("[",i),i=u==-1?-1:a.indexOf("]",u)}s===0&&(t=t[a])}return t}function fc(e,n){return{props:{...fa},setup(o,{attrs:t,slots:r}){return()=>{const a={default:s=>{const u=cc(s.row,s.column.property);return r.default?l.h(Ft,{...o,modelValue:u},{default:r.default}):l.h(Ft,{...o,modelValue:u})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(C.ElTableColumn,{...t},a)}}}}const{create:dc}=ie("table-mapping-column"),ql=dc(fc()),hc=Symbol.for("TableStateKey");function Ko(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,u=a.indexOf("["),i=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&i!==-1;){let c=a.substring(u+1,i);if(/^\d+$/.test(c)){let m=parseInt(c);if(s==0){let h=a.substring(0,u);t=t[h][m]}else t=t[m];s++}u=a.indexOf("[",i),i=u==-1?-1:a.indexOf("]",u)}s===0&&(t=t[a])}return t}function mc(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(hc,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:u=>{const i=Ko(u.row,u.column.property),c=a?Ko(a,u.column.property):null,m=i===c,h={class:{"el-radio__input":!0,"is-checked":m}},w=l.h("span",h,[l.h("span",{class:{"el-radio__inner":!0}})]),y={class:{"el-radio":!0,"is-checked":m}};return l.h("label",y,[w])}};return l.h(C.ElTableColumn,{...t},s)}}}}const{create:gc}=ie("table-radio-column"),_l=gc(mc()),vc={},pc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function yc(e,n){return l.openBlock(),l.createElementBlock("svg",pc,[...n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}const bc=Ze(vc,[["render",yc]]),{create:xc}=ie("table-setting"),wc={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:"不固定"}},Sc=xc({components:{FoxPopover:C.ElPopover,FoxCheckbox:C.ElCheckbox,FoxCheckboxGroup:C.ElCheckboxGroup,FoxButton:C.ElButton,FoxIcon:C.ElIcon,DragIcon:bc,Download:Oe.Download,RefreshLeft:Oe.RefreshLeft},props:{...wc},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),s=l.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),u=l.computed(()=>r.value.filter(S=>!(S.label===""||S.type||S.fixed!==void 0))),i=l.computed(()=>(a.value.length>0||s.value.length>0)&&u.value.length>0),c=l.computed(()=>a.value.length>0),m=l.computed(()=>s.value.length>0),h=S=>S.length>1,w=(S,H)=>{Array.isArray(S)&&Array.isArray(H)&&S.forEach(Y=>{H.some(W=>W.prop===Y.prop?(Y.label=W.label,!0):!1)});const Z=[];r.value=S.map((Y,W)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&Z.push(Y.prop),{...Y,sortIndex:W})),u.value.length+a.value.length+s.value.length===Z.length?v.value=!0:Z.length>0&&(g.value=!0),A.value=Z},y=S=>S?S.type?S.type:S.label?S.prop:"":"",x=(S,H)=>{if(S.length!==H.length)return!1;const Z=S.map(ne=>y(ne));for(let ne of H){const Y=y(ne);if(Z.indexOf(Y)===-1)return!1}return!0},f=S=>{if(!S){const H=e.tableRef.getColumnSetting(),Z=H.srcColumnPropertyList;t=Z.map((ne,Y)=>({...ne,sortIndex:Y})),S=H.columnPropertyList,S&&S.length>0&&x(Z,S)||(S=Z)}w(S,t)},d=()=>{e.tableRef.setColumnSetting(r.value)},P=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),v=l.ref(!1),g=l.ref(!1),M=S=>{const H=[];r.value.forEach(ne=>{S&&!(ne.label===""||ne.type)&&H.push(ne.prop),ne.visible=S}),v.value=!1,g.value=!1,u.value.length+a.value.length+s.value.length===H.length?v.value=!0:H.length>0&&(g.value=!0),A.value=H,d()},B=()=>{f(t),d()},A=l.ref([]),O=S=>{r.value.forEach(Z=>{if(Z.label===""||Z.type)return;const ne=S.indexOf(Z.prop)!==-1;Z.visible=ne}),v.value=!1,g.value=!1;const H=u.value.length+a.value.length+s.value.length;S.length===H?v.value=!0:S.length>0&&(g.value=!0),d()},k=()=>{f()};l.onMounted(()=>{setTimeout(()=>{f()},50)});const p={currentRow:null,index:null,roleType:null},_=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,_(S)):null:null,$=S=>{const H=S.currentTarget;H&&H.dataset&&(p.roleType=H.dataset.roleType,p.index=H.dataset.index)},q=S=>{p.currentRow&&(p.currentRow.classList.remove("is-dragover"),p.currentRow=null),p.index=null,p.roleType=null},X=S=>{const H=S.currentTarget;S.relatedTarget;const Z=_(H);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;p.roleType===ne&&(S.preventDefault(),p.currentRow&&p.currentRow!==Z&&p.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),p.currentRow=Z)},b=S=>{S.preventDefault(),p.currentRow&&(p.currentRow.classList.remove("is-dragover"),p.currentRow=null)},T=S=>{const H=S.currentTarget,Z=_(H);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;if(p.roleType!==ne)return;S.preventDefault();const Y=Number(p.index),W=Number(Z.dataset.index);if(Y!==W){if(Y<W){const V=r.value[Y];r.value.splice(Y,1),r.value.splice(W,0,V)}else{const V=r.value[Y];r.value.splice(Y,1),r.value.splice(W+1,0,V)}w(r.value,t),d()}},D=S=>{const H=r.value[S];H.fixed="left",d()},j=S=>{const H=r.value[S];H.fixed="right",d()},U=S=>{const H=r.value[S];H.fixed=void 0,d()},J=new Map;let L=null;function ee(S){const H=document.createRange();return H.setStart(S,0),H.setEnd(S,S.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:u,isShowNotFixedTitle:i,isShowLeftFixedTitle:c,isShowRightFixedTitle:m,isDraggble:h,isCheckAll:v,isIndeterminate:g,handleCheckAllChange:M,handleReset:B,checkedValue:A,handleCheckChange:O,onShow:k,onDragStart:$,onDragEnd:q,onDragOver:X,onDragLeave:b,onDrop:T,toLeftFixed:D,toRightFixed:j,toUnFixed:U,checkboxLabelStyle:P,onMouseOverForOverflowText:(S,H,Z)=>{const ne=S.currentTarget;if(ne){const Y=Math.floor(ne.offsetWidth);if(Math.floor(ee(ne))>Y){let V=J.get(H);if(V){if(V===L)return;Ce.hide(V)}V=Ce.show(ne,Z,{type:"text",placement:"top",closeOnClick:!1}),V&&(J.set(H,V),L=V)}}},onMouseLeaveForOverflowText:(S,H)=>{const Z=J.get(H);Z&&(Ce.hide(Z),Z===L&&(L=null))},onMouseOverForTip:(S,H)=>{const Z=S.currentTarget;Z&&(L&&Ce.hide(L),L=Ce.show(Z,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:S=>{L&&(Ce.hide(L),L=null)}}}}),Tc={class:"fox-table-setting"},Cc={class:"fox-table-setting__header"},$c={class:"fox-table-setting__body"},Nc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},kc={key:0,class:"fox-table-setting__body-title"},Ec=["data-index","draggable"],Pc=["onMouseover","onMouseleave"],Ic={class:"tools-item"},Oc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Dc={key:0,class:"fox-table-setting__body-title"},Vc=["data-index","draggable"],Rc=["onMouseover","onMouseleave"],Fc={class:"tools-item"},Ac={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Mc={key:0,class:"fox-table-setting__body-title"},Lc=["data-index","draggable"],Bc=["onMouseover","onMouseleave"],qc={class:"tools-item"};function _c(e,n,o,t,r,a){const s=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),i=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),m=l.resolveComponent("FoxIcon"),h=l.resolveComponent("Download"),w=l.resolveComponent("fox-checkbox"),y=l.resolveComponent("FoxCheckboxGroup"),x=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(x,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Tc,[l.createElementVNode("div",Cc,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",$c,[l.createVNode(y,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Nc,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",kc,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...d)=>e.onDragStart&&e.onDragStart(...d)),onDragend:n[6]||(n[6]=(...d)=>e.onDragEnd&&e.onDragEnd(...d)),onDrop:n[7]||(n[7]=(...d)=>e.onDrop&&e.onDrop(...d)),onDragover:n[8]||(n[8]=(...d)=>e.onDragOver&&e.onDragOver(...d)),onDragleave:n[9]||(n[9]=(...d)=>e.onDragLeave&&e.onDragLeave(...d))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(i,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:d=>e.onMouseOverForOverflowText(d,f.prop,f.label),onMouseleave:d=>e.onMouseLeaveForOverflowText(d,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,Pc)]),_:2},1032,["value"]),l.createElementVNode("div",Ic,[l.createVNode(m,{onClick:d=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=d=>e.onMouseOverForTip(d,e.unFixedText)),onMouseleave:n[2]||(n[2]=d=>e.onMouseLeaveForTip(d))},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["onClick"]),l.createVNode(m,{onClick:d=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=d=>e.onMouseOverForTip(d,e.fixedRightText)),onMouseleave:n[4]||(n[4]=d=>e.onMouseLeaveForTip(d))},{default:l.withCtx(()=>[l.createVNode(h)]),_:1},8,["onClick"])])],40,Ec))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Oc,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Dc,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...d)=>e.onDragStart&&e.onDragStart(...d)),onDragend:n[15]||(n[15]=(...d)=>e.onDragEnd&&e.onDragEnd(...d)),onDrop:n[16]||(n[16]=(...d)=>e.onDrop&&e.onDrop(...d)),onDragover:n[17]||(n[17]=(...d)=>e.onDragOver&&e.onDragOver(...d)),onDragleave:n[18]||(n[18]=(...d)=>e.onDragLeave&&e.onDragLeave(...d))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(i,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:d=>e.onMouseOverForOverflowText(d,f.prop,f.label),onMouseleave:d=>e.onMouseLeaveForOverflowText(d,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,Rc)]),_:2},1032,["value"]),l.createElementVNode("div",Fc,[l.createVNode(m,{onClick:d=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=d=>e.onMouseOverForTip(d,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=d=>e.onMouseLeaveForTip(d)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(h)]),_:1},8,["onClick"]),l.createVNode(m,{onClick:d=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=d=>e.onMouseOverForTip(d,e.fixedRightText)),onMouseleave:n[13]||(n[13]=d=>e.onMouseLeaveForTip(d))},{default:l.withCtx(()=>[l.createVNode(h)]),_:1},8,["onClick"])])],40,Vc))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ac,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Mc,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,f=>(l.openBlock(),l.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...d)=>e.onDragStart&&e.onDragStart(...d)),onDragend:n[24]||(n[24]=(...d)=>e.onDragEnd&&e.onDragEnd(...d)),onDrop:n[25]||(n[25]=(...d)=>e.onDrop&&e.onDrop(...d)),onDragover:n[26]||(n[26]=(...d)=>e.onDragOver&&e.onDragOver(...d)),onDragleave:n[27]||(n[27]=(...d)=>e.onDragLeave&&e.onDragLeave(...d))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(i,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(w,{class:"checkbox-item",label:f.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:d=>e.onMouseOverForOverflowText(d,f.prop,f.label),onMouseleave:d=>e.onMouseLeaveForOverflowText(d,f.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(f.label),45,Bc)]),_:2},1032,["label"]),l.createElementVNode("div",qc,[l.createVNode(m,{onClick:d=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=d=>e.onMouseOverForTip(d,e.unFixedText)),onMouseleave:n[20]||(n[20]=d=>e.onMouseLeaveForTip(d))},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["onClick"]),l.createVNode(m,{onClick:d=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=d=>e.onMouseOverForTip(d,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=d=>e.onMouseLeaveForTip(d)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(h)]),_:1},8,["onClick"])])],40,Lc))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Vn=Ze(Sc,[["render",_c]]);let jc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,s,u){if(Array.isArray(o)){let c=(t-1)*r,m=c+r;m>o.length&&(m=o.length);const h=o.slice(c,m);return{totalSize:o.length,page:h}}if(typeof o=="function")return await Reflect.apply(o,null,[t,r,a,s,u]);const i=ze(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(i,null,[o,t,r,a,s,u]))}};function zc(){const e=l.getCurrentInstance();return new jc(e.proxy)}class Hc{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=ze(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=ze(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function da(){const e=l.getCurrentInstance();return new Hc(e.proxy)}const Kc=Symbol.for("TableStateKey"),Wo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Yo={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},Wn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},Wc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function Yc(e,n){let o=n.split("."),t=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,u=a.indexOf("["),i=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&i!==-1;){let c=a.substring(u+1,i);if(/^\d+$/.test(c)){let m=parseInt(c);if(s==0){let h=a.substring(0,u);t=t[h][m]}else t=t[m];s++}u=a.indexOf("[",i),i=u==-1?-1:a.indexOf("]",u)}s===0&&(t=t[a])}return t}function Yn(e,n){return e.filter(t=>{for(let r in n){const a=n[r],s=Yc(t,r);if(a!==s)return!1}return!0})}function Uc(e,n,o){return{props:{...Ne,...Ve,...Wo,...Yo,...Wn,...Wc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a,toLocaleRefs:s}=Ae.useFoxI18n(n),u=s(t,["loadText","noMoreText"]),{emitEvent:i,broadcast:c}=Ee({componentName:e,validateHandler:{getValue(...te){return p.value}}},t.prop??r.attrs.name),m=e,h=l.computed(()=>({[m]:!0})),w=l.computed(()=>({[`${m}__setting`]:!0})),y=l.computed(()=>({[`${m}__footer`]:!0,[`${m}__footer__${t.footerAlign}`]:!0})),x=l.computed(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${t.paginationAlign}`]:!0})),f=l.shallowRef({}),d=l.computed(()=>({...f.value,...t.params??{},...t.baseParams??{}})),P=l.ref(t.infiniteLoad===!0?0:t.pageIndex),v=l.ref(t.pageSize),g=ce(t.infiniteLoad);g||(l.watch(()=>t.pageIndex,te=>{P.value=te}),l.watch(()=>t.pageSize,te=>{v.value=te}),l.watch([P,v],([te,oe],[ae,se])=>{oe!==se&&(P.value=1,te=1),X(t.data,te,oe,d.value)}));const M=()=>Array.isArray(t.data)?!0:ce(t.autoLoad);M()&&l.watch([()=>t.data,d],async([te,oe],[ae,se])=>{M()&&(te!==ae&&($=!0),!(!Array.isArray(te)&&nt(te,ae)&&nt(oe,se))&&(g?(P.value=0,O.value=!0,p.value=[],T()):P.value===1?X(te,P.value,v.value,oe):P.value=1))},{deep:!0});const B=te=>{P.value=te,i("page-index-change",te)},A=te=>{v.value=te,i("page-size-change",te)},O=l.ref(!0),k=l.ref(0),p=l.ref(),_=zc();let $=!0;const q=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,te=>ce(te)),X=async(te,oe,ae,se,Pe)=>{$=!1;try{if(Pe===!0){if(!O.value)return!1;const ye=await _.load("table",te,oe,ae,se,$,a.value);return k.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,p.value,ye.page),setTimeout(()=>{i("loaded-data")},250),(p.value?.length??0)>=k.value)||ye.page.length<ae?(O.value=!1,!1):!0}else{const ye=await _.load("table",te,oe,ae,se,$,a.value);return k.value=ye.totalSize,p.value=ye.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),k.value=0,p.value=[]}return!1};let b=!1;const T=async()=>{if(!b){if(b=!0,!O.value){b=!1;return}P.value+=1,await X(t.data,P.value,v.value,d.value,!0),b=!1}},D=(te={},oe=!1)=>new Promise(async ae=>{f.value={...l.toRaw(te??{})},oe||(P.value=t.pageIndex??1),g===!0?(P.value=0,p.value=[],O.value=!0,await T()):await X(t.data,P.value,v.value,d.value),ae()}),j=()=>{k.value=0,p.value=[],g===!0&&(P.value=0,O.value=!0)};let U=!1;const J=()=>{U||(U=!0,D())},L=l.ref(null);if(g===!0){let te=null;const oe=()=>{L.value&&(te=new IntersectionObserver(se=>{let Pe=!1;for(let ye of se)if(ye.intersectionRatio>0){Pe=!0;break}Pe&&T()}),te.observe(L.value))},ae=()=>{!te||!L.value||(te.unobserve(L.value),te=null)};l.onMounted(oe),l.onBeforeUnmount(ae)}M()&&!q.value&&D();const ee=l.ref(null);l.provide(Kc,{currentRow:ee});const E=(te,oe)=>{ee.value=te,i("current-change",te,oe)},N=(te,oe,ae)=>{i("row-click",te,oe,ae),ce(t.rowClickSelectable)===!0&&we?.value.toggleRowSelection(te)},F=[],R=(te,oe)=>{if(i("expand-change",te,oe),ce(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=F.length;F.splice(0,ae)}else{F.forEach(se=>{se!==te&&we?.value.toggleRowExpansion(se,!1)});const ae=F.length;F.splice(0,ae,te)}},S=r.attrs.id??t.prop??r.attrs.name,H=da(),Z=l.ref([]);let ne=[];const Y=()=>({srcColumnPropertyList:ne.map(oe=>({...oe})),columnPropertyList:Z.value}),W=te=>{Z.value=[...te],z()},V=async()=>{const te=await H.load(S);te&&(Z.value=te)},z=()=>{H.save(S,Z.value)},Q=()=>{H.remove(S)};V();const I=te=>te?te.type?te.type:te.label?te.prop:"":"",G=(te,oe={})=>{for(let ae in oe){const se=oe[ae];typeof se!="function"&&(te[ae]=se)}},K=te=>{const oe=te?te():[],ae=new Map;if(ne=[],oe.forEach(se=>{const ye=se;if(!ye.props)return;const Ye=I(ye.props);ae.set(Ye,ye);const He={label:"",prop:""};G(He,ye.props),ne.push(He)}),Z.value.length===ne.length){const se=[];for(let Pe of Z.value){const ye=I(Pe),Ye=ae.get(ye);if(!Ye)return oe;if(Pe.visible===!1)continue;const He=Ye;He.props.fixed=Pe.fixed,se.push(He)}return se}return oe},le=l.shallowRef(new Map),re=({row:te,column:oe,rowIndex:ae,columnIndex:se})=>{const Pe=`${ae}_${oe.property}`,ye=`${ae}_${se}`;let Ye=le.value.get(Pe);return Ye||(Ye=le.value.get(ye)),typeof Ye=="string"?Ye:""},ue=te=>te?oe=>{const ae=[];let se=re(oe);return se&&ae.push(se),se=se=typeof te=="function"?te(oe):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:re,ve=(te=!1)=>{le.value.forEach((oe,ae)=>{me(ae,oe,te)})},me=(te,oe,ae=!1)=>{const se=`${te}_item`;ae?(c.clearPersistantMessage(),Array.isArray(oe)?c.emitToChildren({name:te},"setCellClassNames",[]):c.emitToChildren({name:se},"setCustomClassName","")):Array.isArray(oe)?c.emitToChildren({name:te,cachePolicy:"Persistant",uniqueId:se},"setCellClassNames",oe):c.emitToChildren({name:se,cachePolicy:"Persistant",uniqueId:se},"setCustomClassName",oe)},Te=(te,oe,ae)=>{const se=`${te}_${oe}`;ae?(le.value.set(se,ae),me(se,ae)):(le.value.delete(se),me(se,"",!0)),l.triggerRef(le)},ut=te=>{ve(!0),le.value.clear(),te.forEach(oe=>{const ae=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?le.value.set(ae,oe.children):typeof oe.cellClassName=="string"&&le.value.set(ae,oe.cellClassName)}),ve(),l.triggerRef(le)},mt=()=>{ve(),le.value.clear(),l.triggerRef(le)},We=l.shallowRef(new Map),jt=({rowIndex:te})=>{const oe=`${te}`;return We.value.get(oe)??""},Ta=te=>te?oe=>{const ae=[];let se=jt(oe);return se&&ae.push(se),se=typeof te=="function"?te(oe):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:jt,Ca=(te,oe)=>{const ae=`${te}`;oe?We.value.set(ae,oe):We.value.delete(ae),l.triggerRef(We)},$a=()=>{We.value.clear(),l.triggerRef(We)},we=l.ref();return Se({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{we?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!p.value)return;const ae=Yn(p.value,te);ae.length!==0&&ae.forEach(se=>{we?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{we?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!p.value)return;const ae=Yn(p.value,te);ae.length!==0&&ae.forEach(se=>{we?.value.toggleRowExpansion(se,oe)})},setCurrentRow:te=>{we?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!p.value)return;const oe=Yn(p.value,te);oe.length!==0&&we?.value.setCurrentRow(oe[0])},getCurrentRow:()=>ee.value,clearSort:()=>{we?.value.clearSort()},clearFilter:te=>{we?.value.clearFilter(te)},doLayout:()=>{we?.value.doLayout()},sort:(te,oe)=>{we?.value.sort(te,oe)},scrollTo:(te,oe)=>{we?.value.scrollTo(te,oe)},setScrollTop:te=>{we?.value.setScrollTop(te)},setScrollLeft:te=>{we?.value.setScrollLeft(te)},loadData:D,clearData:j,getData(){return p.value},getTotalSize(){return k.value},getPageIndex(){return P.value},getPageSize(){return v.value},getColumnSetting:Y,setColumnSetting:W,removeColumnSetting:Q,setCellClassName:Te,setCellClassNames:ut,clearCellClassName:mt,setRowClassName:Ca,clearRowClassName:$a}),()=>{const oe={...Qe(r.attrs),onCurrentChange:E,onRowClick:N,onExpandChange:R,data:p.value,ref:we,class:h.value,"cell-class-name":ue(t.cellClassName),"row-class-name":Ta(t.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>K(r.slots.default)),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),g===!0){const Ue=[];if(O.value){const $t=l.h(Oe.Loading,{class:`${m}__infinite-icon`});Ue.push($t);const Bn=l.h("span",{class:`${m}__infinite-text`},[u.loadText.value]);Ue.push(Bn)}else{const $t=l.h("span",{class:`${m}__infinite-text`},[u.noMoreText.value]);Ue.push($t)}const ct={ref:L,class:`${m}__infinite`},Ln=l.h("div",ct,Ue);ae.append=()=>Ln}const se=l.h(C.ElTable,oe,ae),Pe=[];if(Pe.push(se),!g){let Ue=null;if(typeof r.slots.pagination=="function")Ue=r.slots.pagination();else if(t.showPagination){const ct={class:x.value,total:k.value,pageSize:v.value,"onUpdate:pageSize":A,pageSizes:t.pageSizes,currentPage:P.value,"onUpdate:currentPage":B,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,size:t.paginationSize,background:t.paginationBackground,appendSizeTo:t.paginationAppendSizeTo,teleported:t.paginationTeleported,popperClass:t.paginationPopperClass,prevText:t.paginationpPrevText,prevIcos:t.paginationPrevIcon,nextText:t.paginationNextText,pnextIcon:t.paginationNextIcon,disabled:t.paginationDisabled};Ue=l.h(C.ElPagination,ct)}if(t.showSetting){const ct=[];Ue&&ct.push(Ue);const Ln=l.h(C.ElIcon,{class:w.value},{default:()=>l.h(Oe.Setting)}),$t=wt(t,Wn),Bn=l.h(Vn,{...$t,tableRef:{getColumnSetting:Y,setColumnSetting:W,removeColumnSetting:Q}},{default:()=>Ln});ct.push(Bn);const Na=l.h("div",{class:y.value},ct);Pe.push(Na)}else Ue&&Pe.push(Ue)}const ye={default:()=>Pe},He={...De(t,Wo,Yo,Wn)};return t.prop&&(He.prop=`${t.prop}_item`),He.contentClass=`${m}__wrap`,He.errorMarkClass="is-table-error",q.value&&M()&&(He["appear-listen"]=!0,He.onAppear=J),l.h(o,He,ye)}}}}const{componentName:Gc,create:Xc,scope:Zc}=ie("table-item"),jl=Xc(Uc(Gc,Zc,ke));function Tt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function At(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Jc=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ef(){const e=l.getCurrentInstance();return new Jc(e.proxy)}function ha(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Tt(e,n),r=Tt(e,o);if(t!==r)return!1;const a=At(e,n),s=At(e,o);return a===s}function tf(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of t){let s=!1;if(o==="text")s=Tt(e,a)===n;else if(o==="item")s=ha(e,a,n);else{let u=At(e,a);u==null&&(u=Tt(e,a)),s=u===n}if(s){r=a;break}}return r}function nf(e){return{text:e,value:e}}function lf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Uo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function of(e,n,o){return{inheritAttrs:!0,props:{...Ne,...Ve,...Uo},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),m=l.ref(null),h=l.ref(null),w=(p,_,$,q=!0)=>{const X=tf(t,p,_,$);if(X===null){if(h.value===null)return;h.value=null,m.value=null,q&&(c("update:modelValue",null),c("change",null));return}if(!ha(t,X,h.value)){m.value=p;const T=l.toRaw(X);h.value=T;let D=null;t.valueType==="text"?D=Tt(t,T):t.valueType==="item"?D=T:D=At(t,T),q&&(c("update:modelValue",D),c("change",D))}},y=l.ref([]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,p=>ce(p)),f=ef(),d=async(p,_)=>{if(p){const $=await f.load("radio",p,_);if($.length>0)if(typeof $[0]=="string"){let b=$.map(T=>nf(T));y.value=b}else y.value=$}};l.watch([()=>t.source,()=>t.params],async([p,_])=>{d(p,_)},{immediate:!x.value});let P=!1;const v=()=>{P||(P=!0,d(t.source,t.params))};l.watch([()=>y.value,()=>t.modelValue],([p,_])=>{w(_,t.valueType,p,!1),c("setValue",_)});const g=e,M=l.computed(()=>({[g]:!0,[`is-${t.direction}`]:!0})),B=p=>{w(p,"value",y.value,!0)};let A=he(t,"hintText"),O=he(t,"hintVisible");const k=(p,_)=>{const $=[];return p.forEach((q,X)=>{const b=At(t,q),T=Tt(t,q);let D=Qc(t,q);s.value===!0&&(D=s.value),i.value===!0&&(D=i.value);const j=lf(t,q,X)??{},U=`${b}_${X}`,J={...j,key:U,value:b,size:t.size,border:ce(t.border)};D&&(J.disabled=D),t.itemType==="button"?$.push(l.h(C.ElRadioButton,J,{default:()=>[T]})):typeof _=="function"?$.push(l.h(C.ElRadio,J,{default:()=>_(q)})):$.push(l.h(C.ElRadio,J,{default:()=>[T]}))}),$};return Se({setDisabled:p=>{a.value=p},setReadonly:p=>{u.value=p}}),()=>{const _={...Qe(r.attrs),class:M.value,disabled:s.value||i.value,modelValue:m.value,"text-color":t.textColor,fill:t.fill,onChange:B},$=[],q={};r.slots.options?q.default=r.slots.options:q.default=()=>k(y.value,r.slots.text);const X=l.h(C.ElRadioGroup,_,q);$.push(X);const b={default:()=>$};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const D={...De(t,Uo),hintText:A.value,hintVisible:O.value};return t.prop&&(D.prop=`${t.prop}_item`),x.value&&(D["appear-listen"]=!0,D.onAppear=v),l.h(o,D,b)}}}}const{componentName:rf,create:af,scope:sf}=ie("radio-item"),zl=af(of(rf,sf,ke));function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function uf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let cf=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ff(){const e=l.getCurrentInstance();return new cf(e.proxy)}function ma(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Ct(e,n),r=Ct(e,o);if(t!==r)return!1;const a=bt(e,n),s=bt(e,o);return a===s}function df(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let s of t){let u=!1;if(o==="text")u=Ct(e,s)===a;else if(o==="item")u=ma(e,s,a);else{let i=bt(e,s);i==null&&(i=Ct(e,s)),u=i===a}if(u){r.push(s);break}}}),r}function hf(e){return{text:e,value:e}}function mf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Go={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function gf(e,n,o){return{inheritAttrs:!0,props:{...Ne,...Ve,...Go},emits:["change","update:modelValue","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),m=l.ref([]),h=l.ref([]),w=(p,_,$,q=!0)=>{const X=df(t,p,_,$);if(X===null){if(h.value===null||h.value.length===0)return;m.value=[],h.value=[],q&&(c("update:modelValue",[]),c("change",[]));return}let b=!0;if(X.length!==h.value.length)b=!1;else for(let T=0;T<X.length;T++){const D=X[T],j=h.value[T];if(!ma(t,D,j)){b=!1;break}}if(!b){h.value=X;let T=[],D=[];X.forEach(U=>{T.push(bt(t,U)),t.valueType==="text"?D.push(Ct(t,U)):t.valueType==="item"?D.push(U):D.push(bt(t,U))}),m.value=T;const j=l.toRaw(D);q&&(c("update:modelValue",j),c("change",j))}},y=l.ref([]),x=Fe(l.computed(()=>t.appearLoad),"appearLoad",je.Near,p=>ce(p)),f=ff(),d=async(p,_)=>{if(p){const $=await f.load("checkbox",p,_);if($.length>0)if(typeof $[0]=="string"){let b=$.map(T=>hf(T));y.value=b}else y.value=$}};l.watch([()=>t.source,()=>t.params],async([p,_])=>{d(p,_)},{immediate:!x.value});let P=!1;const v=()=>{P||(P=!0,d(t.source,t.params))};l.watch([()=>y.value,()=>t.modelValue],([p,_])=>{w(_,t.valueType,p,!1),c("setValue",_)});const g=e,M=l.computed(()=>({[g]:!0,[`is-${t.direction}`]:!0})),B=p=>{w(p,"value",y.value,!0)};let A=he(t,"hintText"),O=he(t,"hintVisible");const k=(p,_)=>{const $=[];return p.forEach((q,X)=>{const b=bt(t,q),T=Ct(t,q);let D=uf(t,q);s.value===!0&&(D=s.value),i.value===!0&&(D=i.value);const j=mf(t,q,X)??{},U=`${b}_${X}`,J={...j,key:U,class:t.itemClass,value:b,size:t.size,border:ce(t.border)};D&&(J.disabled=D),t.itemType==="button"?$.push(l.h(C.ElCheckboxButton,J,{default:()=>[T]})):typeof _=="function"?$.push(l.h(C.ElCheckbox,J,{default:()=>_(q)})):$.push(l.h(C.ElCheckbox,J,{default:()=>[T]}))}),$};return Se({setDisabled:p=>{a.value=p},setReadonly:p=>{u.value=p}}),()=>{const _={...Qe(r.attrs),class:M.value,disabled:s.value||i.value,modelValue:m.value,"text-color":t.textColor,fill:t.fill,max:$e(t.max),min:$e(t.min),onChange:B},$=[],q={};r.slots.options?q.default=r.slots.options:q.default=()=>k(y.value,r.slots.text);const X=l.h(C.ElCheckboxGroup,_,q);$.push(X);const b={default:()=>$};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const D={...De(t,Go),hintText:A.value,hintVisible:O.value};return t.prop&&(D.prop=`${t.prop}_item`),x.value&&(D["appear-listen"]=!0,D.onAppear=v),l.h(o,D,b)}}}}const{componentName:vf,create:pf,scope:yf}=ie("checkbox-item"),Hl=pf(gf(vf,yf,ke)),Xo={modelValue:{type:[Number,String],required:!1}};function bf(e,n,o){return{props:{...Ne,...Ve,...Xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),m=he(t,"modelValue",P=>$e(P),c),h=e,w=l.computed(()=>({[h]:!0})),y=P=>{c("update:modelValue",P),c("change",P)};let x=he(t,"hintText"),f=l.ref(!1);const d=l.ref();return Se({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const v={...Qe(r.attrs),ref:d,class:w.value,readonly:i.value||s.value,modelValue:m.value,onChange:y},g={},M=[],B=l.h(C.ElRate,v,g);M.push(B);const A={default:()=>M};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const k={...De(t,Xo),hintText:x.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,A)}}}}const{componentName:xf,create:wf,scope:Sf}=ie("rate-item"),Kl=wf(bf(xf,Sf,ke)),Zo={modelValue:{type:[Boolean,String,Number],required:!1}};function Tf(e,n,o){return{props:{...Ne,...Ve,...Zo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),m=he(t,"modelValue",null,c),h=e,w=l.computed(()=>({[h]:!0})),y=P=>{c("update:modelValue",P),c("change",P)};let x=he(t,"hintText"),f=he(t,"hintVisible");const d=l.ref();return Se({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const v={...Qe(r.attrs),ref:d,class:w.value,readonly:i.value,disabled:s.value,modelValue:m.value,onChange:y},g={},M=[],B=l.h(C.ElSwitch,v,g);M.push(B);const A={default:()=>M};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const k={...De(t,Zo),hintText:x.value,hintVisible:f.value};return t.prop&&(k.prop=`${t.prop}_item`),l.h(o,k,A)}}}}const{componentName:Cf,create:$f,scope:Nf}=ie("switch-item"),Wl=$f(Tf(Cf,Nf,ke)),Qo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let kf=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const s=ze(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await s(o,t,r))}};function Ef(){const e=l.getCurrentInstance();return new kf(e.proxy)}const Jo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Pf(e,n,o){return{props:{...Ne,...Ve,...Jo,...Qo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=l.ref(null),s=Le(l.computed(()=>a.value??t.disabled)),u=l.ref(null),i=Me(l.computed(()=>u.value??t.readonly)),c=l.ref(!1),{emitEvent:m}=Ee({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},t.prop??r.attrs.name),h=he(t,"modelValue",null,m),w=e,y=l.computed(()=>({[w]:!0})),x=q=>{h.value=q,m("update:modelValue",q),m("change",q)};let f=he(t,"hintText"),d=l.ref(!1);const P=q=>{let b=q.target.value;c.value=!0,de(f.value)||(d.value=!0),m("focus",b,q)},v=q=>{setTimeout(()=>{d.value&&(d.value=!1),c.value=!1},0);let b=q.target.value;t.maxLength&&b.length>Number(t.maxLength)&&(b=b.slice(0,Number(t.maxLength))),M.value||m("blur",b,q)},g=()=>{m("clear","")},M=l.ref(!1),B=q=>{M.value=q,m("visible-change",q),q||m("selected")},A=l.ref([]),O=Ef(),k=async(q,X)=>{try{const b=await O.load("treeselect",q,X);A.value=b}catch(b){console.error(b)}};l.watch([()=>t.data,()=>t.params,()=>t.lazy],([q,X,b])=>{!q||b||k(q,X)},{immediate:!0});let p=null;t.lazy&&(typeof t.load=="function"?p=t.load:p=async(q,X)=>{debugger;let b={};t.params&&Object.assign(b,t.params),q&&Object.assign(b,q);const T=await O.load("treeselect",t.data,b,!0);X(T)});let _={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const $=l.ref();return Se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},setDisabled:q=>{a.value=q},setReadonly:q=>{u.value=q}}),()=>{const X={...Qe(r.attrs),ref:$,class:y.value,disabled:s.value||i.value,modelValue:h.value,"onUpdate:modelValue":x,lazy:t.lazy,props:_,onClear:g,onFocus:P,onBlur:v,onVisibleChange:B};p?X.load=p:X.data=A.value;const b={};r.slots.option&&(b.default=r.slots.option);const T=[],D=l.h(C.ElTreeSelect,X,b);T.push(D);const j={default:()=>T};j.label=r.slots.default,j.fixedPreTip=r.slots.fixedPreTip,j.fixedTip=r.slots.fixedTip;const J={...De(t,Jo,Qo),hintText:f.value,hintVisible:d.value};return t.prop&&(J.prop=`${t.prop}_item`),l.h(o,J,j)}}}}const{componentName:If,create:Of,scope:Df}=ie("tree-select-item"),Yl=Of(Pf(If,Df,ke)),Vf={},Rf={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Ff(e,n){return l.openBlock(),l.createElementBlock("svg",Rf,[...n[0]||(n[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}const Af=Ze(Vf,[["render",Ff]]),{create:Mf}=ie("group-setting"),Lf={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Bf=Mf({components:{FoxPopover:C.ElPopover,FoxCheckbox:C.ElCheckbox,FoxCheckboxGroup:C.ElCheckboxGroup,FoxButton:C.ElButton,FoxIcon:C.ElIcon,DragIcon:Af,Download:Oe.Download,RefreshLeft:Oe.RefreshLeft},props:{...Lf},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),s=da(),u=E=>E.length>1,i=()=>{const E=[],N=[...a.value];a.value=N.map((R,S)=>(R.visible!==!1&&E.push(R.prop),{...R,sortIndex:S})),a.value.length===E.length?f.value=!0:E.length>0&&(d.value=!0),g.value=E},c=E=>{let N=null;if(typeof E=="string")N=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const R=E.$el??E;typeof R.querySelectorAll=="function"&&(N=R.querySelectorAll(".fox-item[prop]"))}if(!N)return[];const F=[];return N.forEach(R=>{const S=R.querySelector(".label--string");let H="";S&&(H=S.textContent??"");const Z=R.getAttribute("prop")??"",Y=window.getComputedStyle(R,null).getPropertyValue("display");F.push({label:H,prop:Z,sortIndex:0,visible:Y!=="none"})}),F},m=()=>{if(!r){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;r=E}return!0},h=async(E=!1)=>{const N=await s.load(e.groupProp),F=R=>{if(!R||!r)return;const S=r.map(H=>({...H}));Array.isArray(N)&&N.forEach(H=>{S.some(Z=>{if(Z.prop===H.prop){const ne=Z.label;return Object.assign(Z,H),Z.label=ne,!0}return!1})}),a.value=S.sort((H,Z)=>H.sortIndex-Z.sortIndex),i(),E&&y(!1)};r?F(!0):vn(m,e.initDelay,5,50,!1,F)},w=()=>{const E=r??[];a.value=E.map(N=>({...N})),i(),y()},y=(E=!0)=>{E&&s.save(e.groupProp,a.value);const N=a.value.map(F=>({...F}));n("change",N)},x=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=l.ref(!1),d=l.ref(!1),P=E=>{const N=[];a.value.forEach(R=>{E&&N.push(R.prop),R.visible=E}),f.value=!1,d.value=!1,a.value.length===N.length?f.value=!0:N.length>0&&(d.value=!0),g.value=N,y()},v=()=>{w()},g=l.ref([]),M=E=>{a.value.forEach(F=>{const R=E.indexOf(F.prop)!==-1;F.visible=R}),f.value=!1,d.value=!1;const N=a.value.length;E.length===N?f.value=!0:E.length>0&&(d.value=!0),y()},B=()=>{h()};l.onMounted(()=>{h(!0)});const A={currentRow:null,index:null},O=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,O(E)):null:null,k=E=>{const N=E.currentTarget;N&&N.dataset&&(A.index=N.dataset.index)},p=E=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},_=E=>{const N=E.currentTarget;E.relatedTarget;const F=O(N);F&&(E.preventDefault(),A.currentRow&&A.currentRow!==F&&A.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),A.currentRow=F)},$=E=>{E.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},q=E=>{const N=E.currentTarget,F=O(N);if(!F)return;E.preventDefault();const R=Number(A.index),S=Number(F.dataset.index);if(R!==S){if(R<S){const H=a.value[R];a.value.splice(R,1),a.value.splice(S,0,H)}else{const H=a.value[R];a.value.splice(R,1),a.value.splice(S+1,0,H)}i(),y()}},X=E=>{const N=a.value[E];a.value.splice(E,1),a.value.splice(0,0,N),i(),y()},b=E=>{const N=a.value[E];a.value.splice(E,1),a.value.push(N),i(),y()};t({refresh:()=>{r=null,h(!1)}});const T=new Map;let D=null;function j(E){const N=document.createRange();return N.setStart(E,0),N.setEnd(E,E.childNodes.length),N.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:d,handleCheckAllChange:P,handleReset:v,checkedValue:g,handleCheckChange:M,onShow:B,onDragStart:k,onDragEnd:p,onDragOver:_,onDragLeave:$,onDrop:q,checkboxLabelStyle:x,toTop:X,toBottom:b,onMouseOverForOverflowText:(E,N,F)=>{const R=E.currentTarget;if(R){const S=Math.floor(R.offsetWidth);if(Math.floor(j(R))>S){let Z=T.get(N);if(Z){if(Z===D)return;Ce.hide(Z)}Z=Ce.show(R,F,{type:"text",placement:"top",closeOnClick:!1}),T.set(N,Z),D=Z}}},onMouseLeaveForOverflowText:(E,N)=>{const F=T.get(N);F&&(Ce.hide(F),F===D&&(D=null))},onMouseOverForTip:(E,N)=>{const F=E.currentTarget;F&&(D&&Ce.hide(D),D=Ce.show(F,N,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:E=>{D&&(Ce.hide(D),D=null)}}}}),qf={class:"fox-group-setting"},_f={class:"fox-group-setting__header"},jf={class:"fox-group-setting__body"},zf={class:"fox-group-setting__body-list","data-role":"container"},Hf=["data-index","draggable"],Kf=["onMouseover","onMouseleave"],Wf={class:"tools-item"};function Yf(e,n,o,t,r,a){const s=l.resolveComponent("FoxCheckbox"),u=l.resolveComponent("FoxButton"),i=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),m=l.resolveComponent("FoxIcon"),h=l.resolveComponent("FoxCheckboxGroup"),w=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(w,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",qf,[l.createElementVNode("div",_f,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=y=>e.isCheckAll=y),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",jf,[l.createVNode(h,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",zf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,y=>(l.openBlock(),l.createElementBlock("div",{key:y.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":y.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...x)=>e.onDragStart&&e.onDragStart(...x)),onDragend:n[6]||(n[6]=(...x)=>e.onDragEnd&&e.onDragEnd(...x)),onDrop:n[7]||(n[7]=(...x)=>e.onDrop&&e.onDrop(...x)),onDragover:n[8]||(n[8]=(...x)=>e.onDragOver&&e.onDragOver(...x)),onDragleave:n[9]||(n[9]=(...x)=>e.onDragLeave&&e.onDragLeave(...x))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(i,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:y.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:x=>e.onMouseOverForOverflowText(x,y.prop,y.label),onMouseleave:x=>e.onMouseLeaveForOverflowText(x,y.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(y.label),45,Kf)]),_:2},1032,["label"]),l.createElementVNode("div",Wf,[l.createVNode(m,{onClick:x=>e.toTop(y.sortIndex),onMouseover:n[1]||(n[1]=x=>e.onMouseOverForTip(x,e.toTopText)),onMouseleave:n[2]||(n[2]=x=>e.onMouseLeaveForTip(x)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["onClick"]),l.createVNode(m,{onClick:x=>e.toBottom(y.sortIndex),onMouseover:n[3]||(n[3]=x=>e.onMouseOverForTip(x,e.toBottomText)),onMouseleave:n[4]||(n[4]=x=>e.onMouseLeaveForTip(x))},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["onClick"])])],40,Hf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Ul=Ze(Bf,[["render",Yf]]),Uf={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Gf=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const s=ze(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await s(o,t,r))}};function Xf(){const e=l.getCurrentInstance();return new Gf(e.proxy)}function Zf(e,n,o){return{props:{...ul,...Uf},setup(t,r){const a=e,s=l.computed(()=>({[a]:!0})),u=l.ref([]),i=Xf(),c=async(g,M)=>{try{const B=await i.load("tree",g,M);u.value=B}catch(B){console.error(B)}},m=l.shallowRef({}),h=l.computed(()=>({...m.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ce(t.autoLoad))&&l.watch([()=>t.data,()=>h.value],([g,M])=>{g&&c(g,M)},{immediate:!0,deep:!0});let y=null;t.lazy&&(typeof t.load=="function"?y=t.load:y=async(g,M)=>{let B={};t.params&&Object.assign(B,t.params),g&&Object.assign(B,g);const A=await i.load("treeselect",t.data,B,!0);M(A)});const x={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},f=(g={})=>new Promise(async M=>{m.value={...l.toRaw(g??{})},await c(t.data,h.value),M()}),d=function(g,M){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(g,M);if(!t.filterKeyword)return!0;const B=`${M[x.label]}`,A=`${g}`;return B.includes(A)},P=l.ref();l.watch(()=>t.filterKeyword,g=>{P.value.filter(g)});const v=g=>(...M)=>{const B=P.value[g];return Reflect.apply(B,P.value,[...M])};return r.expose({loadData:f,filter:v("filter"),updateKeyChildren:v("updateKeyChildren"),getCheckedNodes:v("getCheckedNodes"),setCheckedNodes:v("setCheckedNodes"),getCheckedKeys:v("getCheckedKeys"),setCheckedKeys:v("setCheckedKeys"),setChecked:v("setChecked"),getHalfCheckedNodes:v("getHalfCheckedNodes"),getHalfCheckedKeys:v("getHalfCheckedKeys"),getCurrentKey:v("getCurrentKey"),getCurrentNode:v("getCurrentNode"),setCurrentKey:v("setCurrentKey"),setCurrentNode:v("setCurrentNode"),getNode:v("getNode"),remove:v("remove"),append:v("append"),insertBefore:v("insertBefore"),insertAfter:v("insertAfter")}),()=>{const M={...Qe(r.attrs),class:s.value,lazy:t.lazy,props:x,ref:$=>P.value=$};y?M.load=y:M.data=u.value,M["filter-node-method"]=d;const B=[],A=l.h(C.ElTree,M,r.slots);B.push(A);const O={default:()=>B},p={...wt(t,ul)};return l.h(o,p,O)}}}}const{componentName:Qf,create:Jf,scope:ed}=ie("tree-item"),Gl=Jf(Zf(Qf,ed,Pn)),td=["aria-labelledby"],nd=l.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ld=[nd],od=l.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=l.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.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,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ld,14,td))}}),rd=["aria-labelledby"],ad=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),id=[ad],sd=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=l.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.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,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},id,14,rd))}}),ud=["aria-labelledby"],cd=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),fd=[cd],Xl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=l.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.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,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},fd,14,ud))}}),dd=["aria-labelledby"],hd=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),md=[hd],gd=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=l.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.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,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},md,14,dd))}}),vd=["aria-labelledby"],pd=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),yd=[pd],bd=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=l.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.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,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yd,14,vd))}}),xd=["aria-labelledby"],wd=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Sd=[wd],Td=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,t=n,r=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=l.computed(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=l.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,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Sd,14,xd))}}),dl={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},er=(e,n)=>n[e.textKey],Et=(e,n)=>n[e.valueKey],Cd=(e,n)=>n[e.visibleKey],tr=(e,n)=>n[e.disabledKey],$d=(e,n)=>{const o=n[e.doitKey];return ce(o)},Nd=(e,n)=>{const o=n[e.numKey];return o==null?null:$e(n[o])},nr=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function kd(e,n,o,t=!1){return{props:{...dl},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const u=l.computed(()=>{const E={};return E[`${e}`]=!0,E}),i=l.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${r.direction}`]=!0,r.align==="left"&&(E.left=!0),r.scroll===!0&&(E.scrollable=!0),r.shape&&(E[`${r.shape}`]=!0),E}),c=l.computed(()=>({})),m=l.computed(()=>{if(!r.gutter)return 0;const E=ge(r.gutter);return E<=0?0:E}),h=l.ref(r.modelValue);l.watch(()=>r.modelValue,E=>{h.value!==E&&(h.value=E,j(!1))});const w=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=l.computed(()=>{const E={};return f.value||(E.display="none"),E}),x=l.ref(),f=l.ref(!1),d=()=>{const E=!f.value;P(E)},P=E=>{const N=E;N?(f.value=N,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,x.value?x.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},v=l.ref(),g=l.ref([]),M=(E,N)=>{g.value[N]=E},B=E=>N=>{M(N,E)},A=(E,N)=>{const F=v.value,R=g.value;if(!F||!R||!R[E])return;const S=R[E];let H=0;r.direction==="vertical"?H=S.offsetTop-(F.offsetHeight-S.offsetHeight)/2:H=S.offsetLeft-(F.offsetWidth-S.offsetWidth)/2,O(F,H,N?0:.3,r.direction)},O=(E,N,F,R)=>{let S=0;const H=R==="horizontal"?E.scrollLeft:E.scrollTop,Z=F===0?1:Math.round(F*1e3/16);function ne(){R==="horizontal"?E.scrollLeft+=(N-H)/Z:E.scrollTop+=(N-H)/Z,++S<Z&&vl(ne)}ne()},k=(E,N)=>{const F=Et(r,E),R={};return R[`${e}__titles-item`]=!0,R.disabled=tr(r,E),R.active=F===h.value,r.shape&&(R[`${r.shape}`]=!0),r.ellipsis&&(R.ellipsis=!0),N&&(N.class&&(R[`${N.class}`]=!0),N.disabled===!0&&(R.disabled=N.disabled)),R},p=(E,N)=>{const F={};if(m.value>0){const R=Math.abs(m.value/2);r.direction==="vertical"?(F["margin-top"]=`${R}px`,F["margin-bottom"]=`${R}px`):(F["margin-left"]=`${R}px`,F["margin-right"]=`${R}px`)}return N&&N.style&&Object.assign(F,N.style),F},_=(E,N)=>`${Et(r,E)??N}`,$=(E,N)=>{const F=Et(r,E),R={};R[`${e}__popup-item`]=!0,R.disabled=tr(r,E),R.active=F===h.value,r.shape&&(R[`${r.shape}`]=!0);const S=nr(r,E,N);return S&&S.disabled===!0&&(R.disabled=S.disabled),R},q=l.computed(()=>(r.data??[]).filter(N=>Cd(r,N)!==!1)),X=(E,N)=>{const F=Et(r,E);if(h.value==F)return;const R=()=>{h.value=F,r.scroll&&A(N,!1),s("update:modelValue",F),s("change",E,N)};if(typeof r.beforeChange=="function"){const S=r.beforeChange(E,N);Er(S)?S.then(H=>{H!==!1&&R()}).catch(()=>{R()}):S!==!1&&R()}else R()},b=(E,N)=>function(){X(E,N)},T=(E,N)=>{X(E,N),P(!1)},D=(E,N)=>function(){T(E,N)},j=E=>{if(!Array.isArray(r.data)||!r.scroll)return;const N=r.data.findIndex(F=>Et(r,F)===h.value);N!==-1&&A(N,E)};l.watch(()=>r.data,()=>{setTimeout(j,0)}),l.onMounted(()=>{j(!0)});const U=(E,N)=>{if(a.item)return a.item({item:E,index:N});const F=nr(r,E,N),R=[];if(a.text){const ne=a.text({item:E,index:N});R.push(ne)}else{const ne=[];if(F?.doit===!0||$d(r,E)){const z={class:[`${e}__titles-item-tip`,"doit"]},Q=l.h("view",z);ne.push(Q)}const Y=F?.num??Nd(r,E);if(Y){let z="";const Q=$e(Y);Q>=100?z="99+":z=`${Q}`;const I={class:[`${e}__titles-item-tip`,"num"]},G=l.h("view",I,[z]);ne.push(G)}const W={class:`${e}__titles-item-text`};ne.push(er(r,E));const V=l.h("view",W,ne);R.push(V)}const S={class:`${e}__titles-item-line`},H=l.h("view",S);R.push(H);const Z={ref:B(N),class:k(E,F),style:p(E,F),key:_(E,N),onClick:b(E,N)};return l.h("view",Z,R)},J=()=>{const E=a.default?a.default():[];if(E.length===0)for(let F=0;F<q.value.length;F++){const R=q.value[F],S=U(R,F);E.push(S)}const N={ref:v,class:i.value,style:c.value};return l.h("view",N,E)},L=()=>{let E=null;a.navigation?E=a.navigation():E=l.h(o);const N={class:`${e}__navigation`,onClick:d};return l.h("view",N,[E])},ee=()=>{const E=[];for(let F=0;F<q.value.length;F++){const R=q.value[F];let S=null;a.popupItem?S=a.popupItem({item:R,index:F}):S=er(r,R);const H={class:$(R,F),key:_(R,F),onClick:D(R,F)},Z=l.h("view",H,[S]);E.push(Z)}const N={class:w.value,style:y.value};return l.h("view",N,E)};return()=>{const E=[],N=J();if(E.push(N),r.showQuickNavigation){const R=L();E.push(R);const S=ee();E.push(S)}const F={class:u.value};return l.h("view",F,E)}}}}const{create:Ed,componentName:Pd,scope:Id}=ie("tabs-bar"),Rn=Ed(kd(Pd,Id,sd,!1)),ga=Symbol("TabsStatesKey"),hl={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},lr=10;function va(e,n){return e>n&&e>lr?"horizontal":n>e&&n>lr?"vertical":""}function qt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _t(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",t=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const c=s.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const i=s;e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=va(e.offsetX,e.offsetY))}),start:(s=>{if(t(),s.touches){const c=s.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const i=s;e.startX=i.clientX,e.startY=i.clientY}e.startTime=Date.now()}),reset:t,isVertical:n,isHorizontal:o,state:e}}function Od(){const e=l.ref(0),n=l.ref(0),o=l.ref(0),t=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),u=l.ref(0),i=l.ref(0),c=l.ref(0),m=l.ref(""),h=()=>m.value==="vertical",w=()=>m.value==="horizontal",y=()=>{s.value=0,u.value=0,i.value=0,c.value=0,m.value="",o.value=0};return{move:(d=>{if(d.touches){const g=d.touches[0];s.value=g.clientX-e.value,u.value=g.clientY-n.value,r.value=g.clientX,a.value=g.clientY}else{const v=d;s.value=v.clientX-e.value,u.value=v.clientY-n.value,r.value=v.clientX,a.value=v.clientY}i.value=Math.abs(s.value),c.value=Math.abs(u.value),t.value=Date.now()-o.value,m.value||(m.value=va(i.value,c.value))}),start:(d=>{if(y(),d.touches){const g=d.touches[0];e.value=g.clientX,n.value=g.clientY}else{const v=d;e.value=v.clientX,n.value=v.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:s,deltaY:u,offsetX:i,offsetY:c,direction:m,isVertical:h,isHorizontal:w}}const Dd=15,Vd=300,Rd=200;function Fd(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function or(e,n=0,o,t,r=Rd){o==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",t==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let Ad=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,o,t,r=1){this.onStart=n,this.onMove=o,this.onEnd=t,this.momentumReduceRatio=r,this.isTouch=qt()}open(n){this.el=n;const o=_t(),t=(r,a,s)=>{const u={delta:r,direction:a,type:s};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;o.start(r),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;o.move(r);let a=0;if(this.direction==="horizontal"){if(o.isVertical())return;a=o.state.deltaX}else{if(o.isHorizontal())return;a=o.state.deltaY}t(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}r=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}r=o.state.deltaY}const a=o.state.duration;a<Vd&&Math.abs(r)>Dd?(r=Fd(r,a,this.momentumReduceRatio),t(r,this.direction,"end")):t(r,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Md(e,n,o,t=1){return new Ad(e,n,o,t)}function Ld(e,n,o=!1){return{props:{...hl},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const s=l.shallowRef([]),u={current:l.ref(t.modelValue??""),direction:l.ref(t.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:O=>{const k={name:O};u.current.value===O&&(k.loaded=!0),s.value.push(k),l.triggerRef(s)},remove:O=>{const k=s.value.findIndex(p=>p.name===O);k!==-1&&s.value.splice(k,1)},isLoaded:O=>{if(!t.lazy)return!0;const k=s.value.findIndex(p=>p.name===O);return k!==-1?u.current.value?s.value[k].loaded??!1:k===0:!1}};l.provide(ga,u);const i=O=>{const k=s.value.findIndex(p=>p.name===O);k!==-1&&(s.value[k].loaded=!0,l.triggerRef(s))};l.watch([()=>t.modelValue,()=>t.direction],([O,k])=>{u.current.value!==O&&(u.current.value=O??"",i(O??"")),u.direction.value!==k&&(u.direction.value=k)});const c=l.ref(null),m=l.ref(null),h=l.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),w=l.computed(()=>{const O={};if(t.width){const k=pe(t.width);k&&(O.width=k)}if(t.height){const k=pe(t.height);k&&(O.height=k)}return O});let y=!0;const x=l.computed(()=>{const O={},k=s.value.length;if(k<=0)return O;const p=s.value.findIndex(_=>_.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(O.height=`${k*u.tabHeight.value}px`,p!==-1&&(O.transform=`translate(0, -${p*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(O.width=`${k*u.tabWidth.value}px`,p!==-1&&(O.transform=`translate(-${p*u.tabWidth.value}px, 0)`)),y&&(y=!1,O.transition="transform 0s ease"),O}),f={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},d=O=>{const k=s.value.length,p=s.value.findIndex(_=>_.name===u.current.value);f.moved=0,O.direction==="vertical"?(f.min=-1*(u.tabHeight.value*(k-1)+u.tabHeight.value/4),f.max=u.tabHeight.value/4,f.start=-p*u.tabHeight.value,f.itemDistance=u.tabHeight.value):(f.min=-1*(u.tabWidth.value*(k-1)+u.tabWidth.value/4),f.max=u.tabWidth.value/4,f.start=-p*u.tabWidth.value,f.itemDistance=u.tabWidth.value)},P=O=>{const k=m.value;if(!k)return;let p=f.start+O.delta;if(p>f.max?p=f.max:p<f.min&&(p=f.min),O.type==="move")or(k,p,"move",O.direction,300);else if(O.type==="end"){let _=Math.floor(Math.abs(p)*1/f.itemDistance);const $=Math.abs(p)%f.itemDistance;f.start>p?$>=f.itemDistance*f.triggerAutoMoveRatio&&(_+=1):$>f.itemDistance-f.itemDistance*f.triggerAutoMoveRatio&&(_+=1),p=-1*_*f.itemDistance,or(k,p,"end",O.direction,300),f.moved=p;const q=s.value[_].name;u.current.value=q??"",i(q??""),r("update:modelValue",q)}},v=()=>{},g=()=>{if(!c.value)return;const O=wn(c.value);u.tabWidth.value=O.width,u.tabHeight.value=O.height},M=zr(g,250);let B=null,A=null;return l.onMounted(()=>{c.value&&(g(),window.ResizeObserver&&(A=new window.ResizeObserver(M),A.observe(c.value)),t.draggle&&(B=Md(d,P,v),B.open(m.value)))}),l.onBeforeUnmount(()=>{A&&(A.disconnect(),A=null),B&&B.close()}),()=>{const O={class:`${e}__panes`,style:x.value,ref:m},k=l.h("view",O,[a?.default?.()]),p={class:h.value,style:w.value,ref:c};return l.h("view",p,[k])}}}}const{create:Bd,componentName:qd,scope:_d}=ie("tabs-container"),Fn=Bd(Ld(qd,_d,!1)),jd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function zd(e,n,o){return{props:{...jd},setup(t,{emit:r,slots:a}){const s=l.inject(ga);l.onMounted(()=>{s.add(t.paneKey)}),l.onBeforeUnmount(()=>{s.remove(t.paneKey)});const u=l.computed(()=>{const c={};return s.direction.value==="vertical"&&s.tabHeight.value>0?c.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(c.width=`${s.tabWidth.value}px`),c}),i=l.computed(()=>t.loaded!=null?ce(t.loaded):s.isLoaded(t.paneKey));return()=>{let c=[];if(i.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const h={class:`${e}__empty-icon`},w=t.emptyIcon??o,y=l.h(w,h),x={class:`${e}__empty-text`},f=t.emptyText??"Loading",d=l.h("view",x,[f]),P={class:`${e}__empty`},v=l.h("view",P,[y,d]);c.push(v)}const m={class:`${e}`,style:u.value,prop:t.paneKey};return l.h("view",m,c)}}}}const{create:Hd,componentName:Kd,scope:Wd}=ie("tabs-pane"),Zl=Hd(zd(Kd,Wd,Xl));function Yd(e,n,o,t){return{props:{...dl,...hl,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(r,{emit:a,slots:s}){const u=e,i=l.computed(()=>{const f=[`${u}`];return r.direction==="vertical"?f.push("vertical-tabbar"):f.push("horizontal-tabbar"),f}),c=l.computed(()=>{const f={};if(r.width){const d=pe(r.width);d&&(f.width=d)}if(r.height){const d=pe(r.height);d&&(f.height=d)}return f}),m=l.computed(()=>[`${u}__bars`]),h=l.computed(()=>[`${u}__container`]),w=l.ref(r.modelValue);l.watch(()=>r.modelValue,f=>{w.value!==f&&(w.value=f)});const y=f=>{a("change",f)},x=f=>{w.value!==f&&(w.value=f,a("update:modelValue",f))};return()=>{const f=s.default?.()??[],d=[];if(Array.isArray(r.data))d.push(...r.data);else for(let k=0;k<f.length;k++){const p=f[k].props??{},_={text:p.label??"",value:p["pane-key"]??p.paneKey??""};d.push(_)}const P={};for(let k in s)k!=="default"&&(P[k]=s[k]);const v=wt(r,dl);Object.assign(v,{data:d,class:m.value,modelValue:w.value,direction:r.direction,onChange:y,"onUpdate:modelValue":x});const g=l.h(o,v,P),M={default:()=>f},B=wt(r,hl);Object.assign(B,{class:h.value,modelValue:w.value,onChange:y,"onUpdate:modelValue":x});const A=l.h(t,B,M),O={class:i.value,style:c.value};return l.h("view",O,[g,A])}}}}const{create:Ud,componentName:Gd,scope:Xd}=ie("tabs-frame"),Ql=Ud(Yd(Gd,Xd,Rn,Fn)),Zd={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Qd(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function rr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ar(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Jd(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Un(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function ir(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function sr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Gn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class eh{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[t]);const r=ze(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Xe(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function th(){const e=l.getCurrentInstance();return new eh(e.proxy)}function nh(e,n,o,t){return{props:{...Zd},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const u=e,i=th(),c=l.ref([]),m=l.computed(()=>c.value.filter(N=>Jd(r,N)!==!1)),h=l.ref(-1),w=()=>{const N=r.modelValue,F=m.value.findIndex(R=>rr(r,R)===N);h.value!==F&&(h.value=F,r.scroll&&ee(F))};l.watch([()=>r.modelValue,m],()=>{w()});const y=N=>h.value===N,x=N=>{if(N<0&&N>=m.value.length)return!1;const F=m.value[N],S=(Gn(r,F,N)??{}).status??Un(r,F);return y(N)||S},f=l.computed(()=>{const N={[u]:!0};return r.mode?N[`is-${r.mode}`]=!0:r.direction&&(N[`is-${r.direction}`]=!0),r.scroll&&(N["is-scroll"]=!0),N}),d=l.computed(()=>({})),P=(N,F,R,S,H)=>{const Z={[`${u}__step`]:!0};return H&&(Z[`${H}`]=!0),Z[`${v.value}`]=!0,S&&(Z["is-doit"]=!0),N===h.value?Z["is-active"]=!0:F==="done"?Z["is-done"]=!0:F==="error"?Z["is-error"]=!0:F==="half"?Z["is-half"]=!0:R?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},v=l.computed(()=>{let N=r.align;if(!N){if(r.mode==="simple")return"start";r.direction==="vertical"?N="start":N="center"}return N}),g=(N,F={})=>{const R={...F};if(v.value==="start"&&N===m.value.length-1)R.flex="0 0 auto";else if(r.step){const S=typeof r.step=="number"||pl(r.step)?pe(r.step):r.step;r.direction==="vertical"?R.height=S:R.width=S}else R.flex="1 1 100%";return R},M=(N,F)=>{let R={};if(F<m.value.length-1){const S=F+1;x(F)&&x(S)?r.direction==="vertical"?R.height="100%":R.width="100%":R.opacity="0"}return R},B=N=>m.value.length-1===N,A=(N,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>h.value||h.value===F)return;const R=h.value,S=F;h.value=F,r.scroll&&ee(F);const H=rr(r,N);s("update:modelValue",H);const Z={fromIndex:R,currentIndex:S,item:N,items:m.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",H,Z)},O=l.ref(!0),k=async(N,F)=>{try{const R=await i.load("stesbar",N,F);Array.isArray(R)&&(c.value=R),O.value=!1}catch(R){console.error("[FoxUI] Load StepsBar Data Fail",R),c.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([N,F])=>{N&&k(N,F)},{immediate:!0});const p=(N,F,R,S,H)=>{let Z=null;if(a.icon)Z=a.icon({item:N,index:F,status:S});else if(S==="done"){const Y={};r.iconSize&&(Y.width=r.iconSize,Y.height=r.iconSize);const W=r.icon??o;Z=l.h(W,Y)}else{const Y=R??`${F+1}`;Z=l.h("span",{},[Y])}const ne={class:"fox-steps-bar__icon",onClick:()=>{H||A(N,F)}};return l.h("view",ne,[Z])},_=(N,F,R)=>{const S=l.h("i",{class:"fox-steps-bar__line-inner",style:M(N,F)});return l.h("view",{class:"fox-steps-bar__line"},[S])},$=()=>{let N=null;if(a.markIcon)N=a.markIcon();else{const R={};r.iconSize&&(R.width=r.markIconSize,R.height=r.markIconSize);const S=r.markIcon??t;N=l.h(S,R)}return l.h("view",{class:"fox-steps-bar__mark"},[N])},q=(N,F,R,S,H)=>{const Z=[];if(!B(F)){const W=_(N,F);Z.push(W)}const ne=p(N,F,R,S,H);Z.push(ne);const Y={class:"fox-steps-bar__head"};return l.h("view",Y,Z)},X=(N,F,R,S)=>{let H=null;a.main?H=a.main({item:N,index:F,status:R}):H=Qd(r,N);const Z={class:"fox-steps-bar__main",onClick:()=>{S||A(N,F)}};return l.h("view",Z,[H])},b=(N,F,R)=>{let S=null;if(a.sub){S=a.sub({item:N,index:F,status:R});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[S])}return null},T=(N,F)=>{const R=Gn(r,N,F)??{},S=R.status??Un(r,N);let H=ar(r,N);R.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=R.label??sr(r,N),ne=[],Y=p(N,F,Z,S,H);Y&&ne.push(Y);const W=X(N,F,S,H);if(W&&ne.push(W),!B(F)){const K=_(N,F);K&&ne.push(K)}const V=l.h("view",{class:"fox-steps-bar__head"},ne),z=R.class,Q=R.style??{};let I=ir(r,N);R.doit===!0&&(I=!0);const G={ref:L(F),class:P(F,S,H,I,z),style:g(F,Q)};return l.h("view",G,[V])},D=(N,F)=>{const R=Gn(r,N,F)??{},S=R.status??Un(r,N);let H=ar(r,N);R.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=R.label??sr(r,N),ne=[],Y=r.layout;for(let I of Y)if(I==="head"){const G=q(N,F,Z,S,H);ne.push(G)}else if(I==="main"){const G=X(N,F,S,H);ne.push(G)}else if(I==="sub"){const G=b(N,F,S);ne.push(G)}else if(I==="mark"){const G=$();ne.push(G)}const W=R.class,V=R.style??{};let z=ir(r,N);R.doit===!0&&(z=!0);const Q={ref:L(F),class:P(F,S,H,z,W),style:g(F,V)};return l.h("view",Q,ne)},j=l.ref(),U=l.ref([]),J=(N,F)=>{U.value[F]=N},L=N=>F=>{J(F,N)},ee=(N,F)=>{const R=j.value,S=U.value;if(!R||!S||!S[N])return;const H=S[N];let Z=0;r.direction==="vertical"?Z=H.offsetTop-(R.offsetHeight-H.offsetHeight)/2:Z=H.offsetLeft-(R.offsetWidth-H.offsetWidth)/2,E(R,Z,.3,r.direction)},E=(N,F,R,S)=>{let H=0;const Z=S==="horizontal"?N.scrollLeft:N.scrollTop,ne=Math.round(R*1e3/16);function Y(){S==="horizontal"?N.scrollLeft+=(F-Z)/ne:N.scrollTop+=(F-Z)/ne,++H<ne&&vl(Y)}Y()};return()=>{let N=[];if(r.mode==="simple")for(let R=0;R<m.value.length;R++){const S=m.value[R],H=T(S,R);N.push(H)}else for(let R=0;R<m.value.length;R++){const S=m.value[R],H=D(S,R);N.push(H)}const F={ref:j,class:f.value,style:d.value};return N.length===0&&typeof a.default=="function"&&(N=a.default()),l.h("view",F,N)}}}}const{componentName:lh,create:oh,scope:rh}=ie("steps-bar"),Jl=oh(nh(lh,rh,bd,Td)),ah=Symbol.for("PageWrapperKey");function ih(e,n){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,t){wl(!0);const r={};l.provide(ah,r);const a=c=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),u=c=>{s.value=c},i=l.computed(()=>{const c={};return o.height&&(c["--fox-dialog-item-body-height"]=pe(o.height)),c});return()=>{const m={...t.attrs,style:i.value,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},h=["fox-dialog-item "];o.hideHeader&&h.push("hide-header"),o.class&&h.push(o.class),m.class=h.join(" ");const w={};return typeof t.slots.default=="function"&&(w.default=t.slots.default),l.h(C.ElDialog,m,w)}}}}const{create:sh}=ie("dialog-item"),eo=sh(ih());let Pt=0;const ur="fox-overflow-hidden",cr=()=>it?document.body:{classList:[]},uh=e=>[()=>{if(e())try{!Pt&&cr().classList.add(ur),Pt++}catch{}},()=>{if(e()&&Pt)try{Pt--,!Pt&&cr().classList.remove(ur)}catch{}}],ch={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:fh,create:dh}=ie("overlay"),hh=dh({props:{...ch},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=uh(()=>e.lockScroll),r=l.computed(()=>({[fh]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,u=>{u?o():t()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function mh(e,n,o,t,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:n[0]||(n[0]=l.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const An=Ze(hh,[["render",mh]]),gh={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},pa=2e3;let fr=pa;const vh=(e,n)=>({components:n,props:{...gh},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:t}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),i=()=>{o.zIndex!==pa&&(fr=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++fr,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},m=f=>{t("click-pop",f)},h=f=>{f.stopPropagation(),t("click-close-icon",f),t("update:visible",!1)},w=f=>{t("click-overlay",f),o.closeOnClickOverlay&&t("update:visible",!1)},y=f=>{t("opend",f)},x=f=>{t("closed",f)};return l.watch(()=>o.visible,f=>{o.visible?i():c()}),l.watch(()=>o.closeable,f=>{r.closed=f}),{...l.toRefs(r),popStyle:s,transitionName:u,classes:a,onClick:m,onClickCloseIcon:h,onClickOverlay:w,onOpened:y,onClosed:x}}}),{componentName:ph,create:yh}=ie("popup"),bh=yh(vh(ph,{FoxOverLay:An,Close:gd}));function xh(e,n,o,t,r,a){const s=l.resolveComponent("FoxOverLay"),u=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(u)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const to=Ze(bh,[["render",xh]]),{create:wh}=ie("toast"),Sh=wh({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const t=l.reactive({mounted:!1});l.onMounted(()=>{t.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{t.mounted=!1},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&s(),l.watch(()=>e.duration,y=>{y&&s()});const i=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const y=ge(e.iconSize);return l.h(e.icon,{width:y,height:y,color:e.iconColor})},m=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),h=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:u,renderIcon:c,hasIcon:i,toastBodyClass:m,toastIconWrapperClass:h,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Th={key:1,class:"fox-toast-title"},Ch=["innerHTML"];function $h(e,n,o,t,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Th,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ch)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const no=Ze(Sh,[["render",$h]]),Nh={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},kh=(e,n,o)=>({props:{...Nh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:r}){const{emitEvent:a}=Wr(),{toLocaleRefs:s}=Ae.useFoxI18n(n),u=s(t,["placeholder"]),i=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),m=l.computed(()=>({background:t.inputBackground})),h=p=>{let $=p.target.value;t.maxLength&&$.length>Number(t.maxLength)&&($=$.slice(0,Number(t.maxLength))),a("update:modelValue",$,p),a("change",$,p)},w=l.ref({}),y=p=>{let $=p.target.value;i.active=!0,w.value=t.focusStyle,a("focus",$,p)},x=p=>{setTimeout(()=>{i.active=!1},0);let $=p.target.value;t.maxLength&&$.length>Number(t.maxLength)&&($=$.slice(0,Number(t.maxLength))),w.value={},a("blur",$,p)},f=p=>{a("update:modelValue","",p),a("change","",p),a("clear","")},d=l.computed(()=>String(t.modelValue).length>0),P=l.computed(()=>{const p={};return d.value||(p.display="none"),p}),v=()=>{a("search",t.modelValue)},g=p=>{a("keyup-input",p),p.key.toLocaleUpperCase()==="ENTER"&&v()},M=p=>{a("click-input",p)},B=p=>{a("click-left-icon",t.modelValue,p)},A=l.computed(()=>({textAlign:t.inputAlign})),O=l.ref(null);l.onMounted(()=>{t.autofocus&&O.value.focus()});const k=()=>{const p=[];if(r.leftin){const b={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},T=l.h("view",b,[r.leftin()]);p.push(T)}const _={ref:O,class:[`${e}__input-inner`],style:A.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:M,onInput:h,onFocus:y,onBlur:x,onkeyup:g},$=l.h("input",_);p.push($);const q=[];if(t.clearable){const b={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:f},T=r?.clear?.()??t.clearIcon??o,D=l.h("view",b,[l.h(T)]);q.push(D)}if(r.rightin){const b={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},T=l.h("view",b,[r.rightin()]);q.push(T)}if(q.length>0){const b={class:`${e}__input-inner-right`},T=l.h("view",b,q);p.push(T)}const X={class:[`${e}__search-input`,`${t.shape}`],style:{...m.value,...w.value}};return l.h("view",X,p)};return()=>{const p=[];if(t.label){const q={class:`${e}__search-label`},X=l.h("span",q,[t.label]);p.push(X)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},X=l.h("view",q,[r.leftout()]);p.push(X)}const _=k();if(p.push(_),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},X=l.h("view",q,[r.rightout()]);p.push(X)}const $={class:`${e}`,style:c.value};return l.h("view",$,p)}}}),{componentName:Eh,create:Ph,scope:Ih}=ie("searchbar"),lo=Ph(kh(Eh,Ih,Oe.CircleClose)),Oh=/scroll|auto|overlay/i,ya=window;function Dh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Vh(e,n=ya){let o=e;for(;o&&o!==n&&Dh(o);){const{overflowY:t}=window.getComputedStyle(o);if(Oh.test(t))return o;o=o.parentNode}return n}function ba(e,n=ya){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Vh(e.value,n))}),o}const xa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Rh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Fh(e,n,o){return{props:{...Rh},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:s}=Ae.useFoxI18n(n),u=s(t,["pullText","loadText","noMoreText"]),i=l.ref(),c=ba(i),m=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),h=l.computed(()=>({[e]:!0})),w=v=>v?v.offsetTop+w(v.offsetParent):0,y=()=>{let v=0,g=0,M="down";if(c.value==window){const B=xa();i.value&&(v=w(i.value)+i.value.offsetHeight-B-window.innerHeight),g=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:O}=c.value;v=B-A-O,g=O}return m.beforeScrollTop>g?M="up":M="down",m.beforeScrollTop=g,r("scroll-change",g),v<=t.threshold&&M=="down"},x=()=>{Sr(()=>{if(!y()||!t.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",x,t.useCapture)},d=()=>{c.value&&c.value.removeEventListener("scroll",x,t.useCapture)};l.onMounted(()=>{f(),t.immediate&&x()}),l.onUnmounted(()=>{d()});const P=l.ref(!1);return l.onActivated(()=>{P.value&&(P.value=!1,f())}),l.onDeactivated(()=>{P.value=!0,d()}),l.watch(()=>t.modelValue,v=>{v||(m.isInfiniting=!1)}),()=>{const v={class:"fox-infinite__container"},g=l.h("view",v,[a?.default?.()]),M=[];if(m.isInfiniting){let k=a?.loading?.()??null;if(!k){let $=a?.loadingIcon?.()??null;if(!$){const b={class:["fox-infinite__bottom-box__img"]};$=l.h(o,b)}const q={class:"fox-infinite__bottom-box__text"},X=l.h("view",q,[u.loadText.value]);k=[$,X]}const p={class:"fox-infinite__bottom-box"},_=l.h("view",p,k);M.push(_)}else if(!t.hasMore){let k=a?.finished?.()??null;if(!k){const p={class:"fox-infinite__bottom-tips"};k=l.h("view",p,[u.noMoreText.value]),M.push(k)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,M),O={class:h.value,ref:i};return l.h("view",O,[g,A])}}}}const{componentName:Ah,create:Mh,scope:Lh}=ie("infinite-loading"),oo=Mh(Fh(Ah,Lh,Xl)),Bh={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},qh=(e,n,o)=>({props:{...Bh},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:s}=Ae.useFoxI18n(n),u=s(t,["pullingText","loosingText","loadingText"]),i=_t(),c=l.ref(),m=ba(c),h=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=l.computed(()=>({[e]:!0})),y=l.computed(()=>{switch(h.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),x=l.computed(()=>({transitionDuration:`${t.duration}s`,transform:h.distance?`translate3d(0,${h.distance}px, 0)`:""})),f=l.computed(()=>{const O={};return t.headHeight!=50&&(O.height=pe(t.headHeight)),O}),d=O=>{const k=+(t.pullDistance||t.headHeight);let p=O;return O>k&&(O<k*2?p=(O+k)/2:p=k+O/4),Math.round(p)},P=(O,k)=>{const p=+(t.pullDistance||t.headHeight);h.distance=O,k?h.status="loading":O===0?h.status="normal":O<p?h.status="pulling":h.status="loosing",r("change",{status:h.status,distance:O})},v=()=>h.status!=="loading"&&h.status!=="complete",g=()=>m.value==window?xa()==0:m.value&&m.value.scrollTop==0,M=O=>{v()&&(g()?(i.start(O),h.isPullRefresh=!0,h.moving=!0):(h.distance=0,h.isPullRefresh=!1))},B=O=>{v()&&h.moving&&(i.move(O),i.isVertical()&&i.state.deltaY>0&&h.isPullRefresh&&(O.cancelable&&O.preventDefault(),P(d(i.state.deltaY))))},A=()=>{h.moving=!1,h.isPullRefresh&&v()&&i.state.deltaY&&(h.status==="loosing"?(P(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):P(0)),setTimeout(()=>{i.reset()},0)};return l.watch(()=>t.modelValue,O=>{O?P(+t.headHeight,!0):P(0)}),()=>{const O=[];let k=null;if(h.status==="loading"){if(k=a?.loading?.()??null,!k){const D={class:["fox-pull-refresh-container-topbox-icon"]};k=l.h(o,D)}}else h.status==="pulling"?k=a?.pulling?.()??null:h.status==="loosing"&&(k=a?.loosing?.()??null);k&&O.push(k);const p={class:["fox-pull-refresh-container-topbox-text"]},_=l.h("dive",p,[y.value]);O.push(_);const $={class:["fox-pull-refresh-container-topbox"],style:f.value},q=l.h("div",$,O),X={class:"fox-pull-refresh-container",style:x.value},b=l.h("div",X,[q,a?.default?.()]),T={ref:c,class:w.value};return qt()?Object.assign(T,{onTouchstart:M,onTouchmove:B,onTouchend:A}):Object.assign(T,{onMousedown:M,onMousemove:B,onMouseup:A}),l.h("div",T,[b])}}}),{componentName:_h,create:jh,scope:zh}=ie("pull-refresh"),ro=jh(qh(_h,zh,Xl)),Hh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Kh(e,n,o){return{props:{...Hh},emits:["click","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:s}=Ae.useFoxI18n(n),u=s(t,["collapseText","expandText"]),i=l.computed(()=>{const x={[`${e}`]:!0};return t.disabled?x[`${e}--disabled`]=!0:x[`${e}--${t.type}`]=!0,x}),c=he(t,"modelValue"),m=l.computed(()=>c.value?u.expandText.value??"":u.collapseText.value??""),h=l.computed(()=>({[`${e}__text`]:!0})),w=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),y=()=>{r("update:modelValue",!c.value)};return()=>{const x=[];if(m.value){const v={class:h.value},g=l.h("span",v,[m.value]);x.push(g)}const f={class:w.value},d=(a.icon&&a.icon())??(t.icon&&l.h(t.icon))??l.h(o);if(d){const v=l.h("div",f,[d]);x.push(v)}return t.textPosition==="right"&&x.reverse(),l.h("div",{class:i.value,onClick:y},x)}}}}const{componentName:Wh,create:Yh,scope:Uh}=ie("more-button"),ao=Yh(Kh(Wh,Uh,Oe.ArrowUp));function Gh(e){e.stopPropagation()}let Xh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=qt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=_t(),t=(r,a,s,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),Gh(r),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{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},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Zh(e,n){return new Xh(e,n)}const Qh={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Jh=(e,n,o,t=!1)=>({props:{...Qh},emits:["click"],setup(r,{slots:a,emit:s}){const u=l.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),i=l.computed(()=>{const v=[`${e}`];return r.customClass&&v.push(r.customClass),v}),c=l.computed(()=>{const v={};return de(u.top)||(v.top=u.top),de(u.right)||(v.right=u.right),de(u.bottom)||(v.bottom=u.bottom),de(u.left)||(v.left=u.left),de(r.width)||(v.width=r.width),de(r.height)||(v.height=r.height),de(r.color)||(v.color=r.color),de(r.background)||(v.background=r.background),de(r.borderRadius)||(v["border-radius"]=r.borderRadius),de(r.zIndex)||(v["z-index"]=r.zIndex),v}),m=l.computed(()=>({[`${e}__icon`]:!0})),h=()=>{s("click")},w=l.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},x={x:0,y:0},P=Zh(v=>{if(!w.value)return;const g=w.value;y(),u.left=g.offsetLeft,u.top=g.offsetTop,g.style.left=`${u.left}px`,g.style.top=`${u.top}px`,g.style.right=null,g.style.bottom=null,x.x=u.left,x.y=u.top},v=>{if(!w.value)return;const g=w.value;y(),u.left=x.x+v.x,u.top=x.y+v.y,g.style.left=`${u.left}px`,g.style.top=`${u.top}px`});return l.onMounted(()=>{if(r.draggable&&w.value){const v=[w.value];P.open(v)}}),l.onBeforeUnmount(()=>{r.draggable&&w.value&&P.close()}),()=>{let v=[];const g=typeof a.default=="function"?a.default():[];if(g&&g.length>0)v=g;else{const B=l.h(o,{class:m.value});v.push(B)}const M={ref:B=>{w.value=B},class:i.value,style:c.value,onClick:h};return l.h("view",M,v)}}}),{componentName:em,create:tm,scope:nm}=ie("floating-button"),io=tm(Jh(em,nm,od,!1)),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ft=e=>e==null;class lm{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=qt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=_t(),t=(r,a,s,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{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},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function dr(e,n){return new lm(e,n)}const hr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let vt=[];const mr=e=>{const n=e;n.key==="Escape"&&vt.forEach(o=>o(n))},om=e=>{l.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",mr),hr&&vt.push(e)}),l.onBeforeUnmount(()=>{vt=vt.filter(n=>n!==e),vt.length===0&&hr&&document.removeEventListener("keydown",mr)})},Xn="fox-focus-trap.focus-after-trapped",Zn="fox-focus-trap.focus-after-released",rm="fox-focus-trap.focusout-prevented",gr={cancelable:!0,bubbles:!1},am={cancelable:!0,bubbles:!1},vr="foxFocusAfterTrapped",pr="foxFocusAfterReleased",im=Symbol("foxFocusTrap"),so=l.ref(),Mn=l.ref(0),uo=l.ref(0);let Wt=0;const wa=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const r=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},sm=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},yr=(e,n)=>{for(const o of e)if(!sm(o,n))return o},um=e=>{const n=wa(e),o=yr(n,e),t=yr(n.reverse(),e);return[o,t]},cm=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),uo.value=window.performance.now(),e!==o&&cm(e)&&n&&e.select()}};function br(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const fm=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=br(e,t),e.unshift(t)},remove:t=>{e=br(e,t),e[0]?.resume?.()}}},dm=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(ot(t,n),document.activeElement!==o)return},xr=fm(),hm=()=>Mn.value>uo.value,Yt=()=>{so.value="pointer",Mn.value=window.performance.now()},wr=()=>{so.value="keyboard",Mn.value=window.performance.now()},mm=()=>(l.onMounted(()=>{Wt===0&&(document.addEventListener("mousedown",Yt),document.addEventListener("touchstart",Yt),document.addEventListener("keydown",wr)),Wt++}),l.onBeforeUnmount(()=>{Wt--,Wt<=0&&(document.removeEventListener("mousedown",Yt),document.removeEventListener("touchstart",Yt),document.removeEventListener("keydown",wr))}),{focusReason:so,lastUserFocusTimestamp:Mn,lastAutomatedFocusTimestamp:uo}),Ut=e=>new CustomEvent(rm,{...am,detail:e}),{create:gm}=ie("focus-trap"),vm={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"}},pm=gm({props:vm,emits:[vr,pr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:s}=mm();om(f=>{ce(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=f=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:d,altKey:P,ctrlKey:v,metaKey:g,currentTarget:M,shiftKey:B}=f,{loop:A}=e,O=d==="Tab"&&!P&&!v&&!g,k=document.activeElement;if(O&&k){const p=M,[_,$]=um(p);if(_&&$){if(!B&&k===$){const X=Ut({focusReason:s.value});o("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),A&&ot(_,!0))}else if(B&&[_,p].includes(k)){const X=Ut({focusReason:s.value});o("focusout-prevented",X),X.defaultPrevented||(f.preventDefault(),A&&ot($,!0))}}else if(k===p){const X=Ut({focusReason:s.value});o("focusout-prevented",X),X.defaultPrevented||f.preventDefault()}}};l.provide(im,{focusTrapRef:t,onKeydown:i}),l.watch(()=>e.focusTrapEl,f=>{f&&(t.value=f)},{immediate:!0}),l.watch([t],([f],[d])=>{f&&(f.addEventListener("keydown",i),f.addEventListener("focusin",h),f.addEventListener("focusout",w)),d&&(d.removeEventListener("keydown",i),d.removeEventListener("focusin",h),d.removeEventListener("focusout",w))});const c=f=>{o(vr,f)},m=f=>o(pr,f),h=f=>{const d=l.unref(t);if(!d)return;const P=f.target,v=f.relatedTarget,g=P&&d.contains(P);ce(e.trapped)||v&&d.contains(v)||(r=v),g&&o("focusin",f),!u.paused&&ce(e.trapped)&&(g?a=P:ot(a,!0))},w=f=>{const d=l.unref(t);if(!(u.paused||!d))if(!e.escape&&ce(e.trapped)){const P=f.relatedTarget;!_e(P)&&!d.contains(P)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const v=Ut({focusReason:s.value});o("focusout-prevented",v),v.defaultPrevented||ot(a,!0)}},0)}else{const P=f.target;P&&d.contains(P)||o("focusout",f)}};async function y(){await l.nextTick();const f=l.unref(t);if(f){xr.push(u);const d=f.contains(document.activeElement)?r:document.activeElement;if(r=d,!f.contains(d)){const v=new Event(Xn,gr);f.addEventListener(Xn,c),f.dispatchEvent(v),v.defaultPrevented||l.nextTick(()=>{let g=e.focusStartEl;kr(g)||(ot(g),document.activeElement!==g&&(g="first")),g==="first"&&dm(wa(f),!0),(document.activeElement===d||g==="container")&&ot(f)})}}}function x(){const f=l.unref(t);if(f){f.removeEventListener(Xn,c);const d=new CustomEvent(Zn,{...gr,detail:{focusReason:s.value}});f.addEventListener(Zn,m),f.dispatchEvent(d),!d.defaultPrevented&&(s.value=="keyboard"||!hm())&&ot(r??document.body,!0),f.removeEventListener(Zn,c),xr.remove(u)}}return l.onMounted(()=>{ce(e.trapped)&&y(),l.watch(()=>e.trapped,f=>{ce(f)?y():x()})}),l.onBeforeUnmount(()=>{ce(e.trapped)&&x()}),()=>typeof n.default=="function"?n.default({"handle-keydown":i}):null}}),{componentName:ym,create:bm}=ie("floating-window"),xm=Symbol.for("InnerPageScopeKey"),wm=Symbol.for("PageWrapperKey"),Sm={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Tm=bm({inheritAttrs:!1,components:{FoxIcon:C.ElIcon,FocusTrap:pm},props:{...Sm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=ym,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,I=>{t.value=I});const a=l.computed(()=>t.value===!1?!1:!k.value),s=l.ref(e.left),u=l.ref(e.top),i=l.ref(e.right),c=l.ref(e.bottom),m=l.computed(()=>{const I=["fox-floating-window"];return e.customClass&&I.push(e.customClass),I}),h=l.computed(()=>{const I={};return ft(s.value)?I.left="auto":I.left=Re(s.value),ft(u.value)?I.top="auto":I.top=Re(u.value),ft(i.value)?I.right="auto":I.right=Re(i.value),ft(c.value)?I.bottom="auto":I.bottom=Re(c.value),ft(e.zIndex)||(I["z-index"]=Re(e.zIndex)),ft(A.value)||(I.height=A.value),ft(O.value)||(I.width=O.value),I}),w=l.computed(()=>e.closeIcon??Oe.Close),y=l.computed(()=>e.collapseIcon??Oe.ArrowUp),x=l.computed(()=>e.collapseText??""),f=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Oe.ArrowRight:e.expandIcon??Oe.ArrowLeft),d=l.computed(()=>e.expandText??e.title??"展开"),P=l.computed(()=>({[`${o}__collapse-text`]:!0})),v=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!k.value,"is-collapse":k.value})),g=l.ref(),M=l.ref(null),B=l.ref(null),A=l.computed(()=>Re(e.height)||""),O=l.computed(()=>Re(e.width)||""),k=l.ref(ce(e.collapse)),p=(I,G=!0)=>{k.value!==I&&(k.value=I,I?N():F(),n("update:collapse",I),I&&typeof q.onHide=="function"?q.onHide():!I&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,I=>{p(I)});const _=()=>{$()},$=I=>{I=I??!k.value,p(I)};l.provide(xm,!0);const q={setCollapse:p,setFixedNavVisible:I=>{L.value=I}};l.provide(wm,q);const X=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{t.value=!1}):t.value=!1},b=l.ref(null),T=l.computed(()=>!e.fixedNavTeleport),D=l.computed(()=>{const I=["fox-floating-window__fixednav"];return e.expandClass&&I.push(e.expandClass),e.collapsePosition==="left"?I.push("is-left"):e.collapsePosition==="right"&&I.push("is-right"),I}),j=l.ref(""),U=l.computed(()=>{const I={};return j.value?I.top=j.value:e.collapseTop&&(I.top=e.collapseTop),I}),J=l.ref(k.value),L=l.computed({set:I=>{J.value=I},get:()=>t.value===!1?!1:J.value});let ee=null;const E=()=>{typeof ee=="function"&&(ee(),ee=null)},N=()=>{b.value&&b.value.classList.add("slide-in"),L.value=!0,ee=()=>{b.value&&b.value.classList.remove("slide-in")}},F=()=>{b.value&&b.value.classList.add("slide-out"),ee=()=>{b.value&&b.value.classList.remove("slide-out"),L.value=!1}},R=()=>{s.value=null,u.value=null,i.value=null,c.value=null},S={x:0,y:0},ne=dr(I=>{if(!g.value)return;const G=g.value;if(R(),e.origin==="left-top")s.value=G.offsetLeft,u.value=G.offsetTop,S.x=s.value,S.y=u.value;else if(e.origin==="left-bottom"){const K=document.documentElement.clientHeight||document.body.clientHeight;s.value=G.offsetLeft,c.value=K-(G.offsetTop+G.offsetHeight),S.x=s.value,S.y=c.value}else if(e.origin==="right-bottom"){const K=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;i.value=K-(G.offsetLeft+G.offsetWidth),c.value=le-(G.offsetTop+G.offsetHeight),S.x=i.value,S.y=c.value}else{const K=document.documentElement.clientWidth||document.body.clientWidth;i.value=K-(G.offsetLeft+G.offsetWidth),u.value=G.offsetTop,S.x=i.value,S.y=u.value}},I=>{if(!g.value)return;const G=g.value;R(),e.origin==="left-top"?(s.value=S.x+I.x,u.value=S.y+I.y,G.style.left=Re(s.value),G.style.top=Re(u.value)):e.origin==="left-bottom"?(s.value=S.x+I.x,c.value=S.y-I.y,G.style.left=Re(s.value),G.style.bottom=Re(c.value)):e.origin==="right-bottom"?(i.value=S.x-I.x,c.value=S.y-I.y,G.style.right=Re(i.value),G.style.bottom=Re(c.value)):(i.value=S.x-I.x,u.value=S.y+I.y,G.style.right=Re(i.value),G.style.top=Re(u.value))}),Y={x:0,y:0},z=dr(I=>{b.value&&(Y.x=b.value.offsetLeft,Y.y=b.value.offsetTop)},I=>{if(!b.value)return;const G=Y.y+I.y;j.value=`${G}px`}),Q=()=>{if(g.value){const I=g.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=I}};return l.onMounted(()=>{if(e.draggable&&g.value){const I=[];M.value&&I.push(M.value),e.footerDraggable&&(Q(),B.value&&I.push(B.value)),ne.open(I)}e.collapse===!0&&p(e.collapse,!1),b.value&&z.open(b.value)}),l.onBeforeUnmount(()=>{e.draggable&&M.value&&ne.close(),b.value&&z.close()}),{classes:m,styles:h,isShow:a,closeIcon:w,onClose:X,dialogRef:g,headerRef:M,onClickToggle:_,collapseIcon:y,collapseText:x,collapseTextClasses:P,collapseIconClasses:v,expandIcon:f,expandText:d,isShowFixedNav:L,fixedNavRef:b,fixedNavClasses:D,fixedNavStyles:U,onAnimationEnd:E,teleportDisabled:r,fixedNavTeleportDisabled:T}}}),Cm={ref:"headerRef",class:"fox-floating-window__header"},$m={class:"fox-floating-window__title"},Nm={class:"fox-floating-window__tools"},km={class:"fox-floating-window__body"},Em={class:"fox-floating-window__fixednav__text"};function Pm(e,n,o,t,r,a){const s=l.resolveComponent("FoxIcon"),u=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",Cm,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",$m,l.toDisplayString(e.title),1),l.createElementVNode("div",Nm,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",km,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Em,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const co=Ze(Tm,[["render",Pm]]);function Im(e,n){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:t}){const r=e,a=l.computed(()=>({[r]:!0})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),i=l.computed(()=>{const m={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let m=null;if(t.mark)m=t.mark()[0];else{const f={class:s.value,style:u.value};m=l.h(o.icon??"div",f)}const h={class:i.value,style:c.value},w=t.default?t.default():[],y=l.h("div",h,w),x={class:a.value};return o.textPosition==="right"?l.h("div",x,[m,y]):l.h("div",x,[y,m])}}}}const{componentName:Om,create:Dm}=ie("indicator"),fo=Dm(Im(Om));function Vm(e){return e===window}const Sa=e=>{const n=l.unref(e);if(Vm(n)){const o=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:o,bottom:t,width:o,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Rm,create:Fm}=ie("tour"),Am=Fm({components:{Close:Oe.Close,ElPopover:C.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:n}){const o=Rm,t=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:x,maskWidth:f,maskHeight:d}=e,{width:P,height:v,left:g,top:M}=r.value,B=e.steps[t.active].offset??x,A=[g+P/2,M+v/2],O=Number(f||P),k=Number(d||v);return{width:`${O+ +B.left+B.right}px`,height:`${k+B.top+B.bottom}px`,top:`${A[1]-k/2-+B.top}px`,left:`${A[0]-O/2-+B.left}px`}}),u=x=>{x=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,m()}),n("change",t.active)},i=x=>x.popoverWidth??e.width,c=x=>x.location??e.location,m=()=>{const x=document.querySelector(`${e.steps[t.active].target}`),f=Sa(x);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},h=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&h()},y=(x,f=0)=>{x&&m(),e.steps,t.active=f,t.showTour=x,t.showPopup=x};return l.onMounted(()=>{y(e.modelValue,e.current)}),l.watch(()=>e.modelValue,x=>{y(x)}),{...l.toRefs(t),classes:a,maskStyle:s,changeStep:u,popoverWidth:i,popoverLocation:c,close:h,handleClickMask:w}}}),Mm={key:0,class:"fox-tour__content"},Lm={key:0,class:"fox-tour__content-top"},Bm={class:"fox-tour__content-inner"},qm={class:"fox-tour__content-bottom"},_m={class:"fox-tour__content-bottom-init"},jm={class:"fox-tour__content-bottom-operate"},zm={key:1,class:"fox-tour__content fox-tour__content-tile"},Hm={class:"fox-tour__content-inner"};function Km(e,n,o,t,r,a){const s=l.resolveComponent("Close"),u=l.resolveComponent("fox-button"),i=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,m)=>(l.openBlock(),l.createElementBlock("div",{key:m,style:{height:"0"}},[m==e.active?(l.openBlock(),l.createBlock(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Mm,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Lm,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Bm,l.toDisplayString(c.content),1),l.createElementVNode("div",qm,[l.createElementVNode("div",_m,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",jm,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=h=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=h=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",zm,[l.createElementVNode("div",Hm,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const ho=Ze(Am,[["render",Km]]);function Wm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:t}){return Hr(o.name,()=>o.config),_e(o.innerPageScope)||wl(o.innerPageScope),_e(o.abstractPageScope)||Ur(o.abstractPageScope),()=>typeof t.default=="function"?t.default():null}}}const{create:Ym}=ie("domain-provider"),mo=Ym(Wm()),Um={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 Gm(e,n){return{inheritAttrs:!1,props:Um,emits:["change"],setup(o,{slots:t,emit:r}){if(it&&window.IntersectionObserver){const a=new WeakMap;let s=new Map;const u=(y,x)=>{if(h===null){s.set(y,{visible:null,callback:x});return}a.has(y)&&h.unobserve(y),a.set(y,{visible:null,callback:x}),h.observe(y)},i=y=>{if(h===null){s.delete(y);return}a.has(y)&&(a.delete(y),h.unobserve(y))};let c=o.initialVisibleObserverSize;Vi({acquire:()=>{if(o.loadPolicy==="always")return!0;const y=c>0;return c--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:i});let h=null;const w=(y,x,f)=>{h=new IntersectionObserver(d=>{if(r("change",d),o.loadPolicy!=="always")for(let P of d){let v=!1;P.intersectionRatio>0&&(v=!0);const g=a.get(P.target);if(g)try{if(o.loadPolicy==="lazy"&&!v&&g.visible!==null)return;g.visible=v,g.callback(v)}catch(M){console.error(M)}}},{root:y,rootMargin:x,threshold:f}),s.forEach((d,P)=>{a.set(P,d),h?.observe(P)}),s.clear()};l.watch([()=>o.root,()=>o.disabled],([y,x])=>{if(x||!y||h)return;let f=null;typeof y=="string"?f=document.querySelector(y):f=y,f&&w(f,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:Xm}=ie("rolling-provider"),go=Xm(Gm()),Zm=[Tl,$l,Nl,kl,El,ke,Pn,In,Il,Ce,Ol,Dl,Vl,Rl,Fl,Al,Ml,Ll,Bl,ql,_l,Vn,jl,zl,Hl,Kl,Wl,Yl,Ul,Gl,Rn,Fn,Zl,Ql,Jl,eo,An,to,no,lo,oo,ro,ao,io,co,Dn,Ft,En,fo,On,ho,mo,go],Qm=new di(Zm,[gi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>C.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>C.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>C.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>C.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>C.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>C.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>C.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>C.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>C.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>C.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>C.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>C.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>C.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>C.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>C.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>C.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>C.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>C.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>C.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>C.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>C.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>C.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>C.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>C.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>C.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>C.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>C.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>C.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>C.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>C.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>C.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>C.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>C.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>C.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>C.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>C.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>C.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>C.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>C.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>C.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>C.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>C.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>C.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>C.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>C.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>C.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>C.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>C.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>C.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>C.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>C.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>C.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>C.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>C.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>C.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>C.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>C.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>C.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>C.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>C.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>C.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>C.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>C.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>C.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>C.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>C.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>C.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>C.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>C.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>C.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>C.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>C.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>C.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>C.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>C.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>C.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>C.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>C.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>C.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>C.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>C.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>C.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>C.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>C.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>C.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>C.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>C.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>C.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>C.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>C.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>C.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>C.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>C.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>C.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>C.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>C.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>C.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>C.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>C.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>C.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>C.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>C.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>C.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>C.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>C.ElWatermark});exports.AbstractPageScopeKey=Sl;exports.AutocompleteItem=Bl;exports.Broadcast=yl;exports.BroadcastKey=xe;exports.ButtonsItem=Il;exports.CascaderItem=Ll;exports.CheckboxItem=Hl;exports.Content=kl;exports.DataItemsKey=gt;exports.DateItem=Vl;exports.DateUtils=qe;exports.DialogItem=eo;exports.Domain=pn;exports.DomainKey=Be;exports.DomainProvider=mo;exports.FloatingButton=io;exports.FloatingWindow=co;exports.FooterBar=Nl;exports.FoxAutocompleteItem=Bl;exports.FoxButtonsItem=Il;exports.FoxCascaderItem=Ll;exports.FoxCheckboxItem=Hl;exports.FoxContent=kl;exports.FoxDateItem=Vl;exports.FoxDialogItem=eo;exports.FoxDomainProvider=mo;exports.FoxFloatingButton=io;exports.FoxFloatingWindow=co;exports.FoxFooterBar=Nl;exports.FoxGroup=El;exports.FoxGroupSetting=Ul;exports.FoxHeaderBar=$l;exports.FoxHintText=Ce;exports.FoxIndicator=fo;exports.FoxInfiniteLoading=oo;exports.FoxInputItem=Ol;exports.FoxInputNumberItem=Ml;exports.FoxItem=ke;exports.FoxMapping=Ft;exports.FoxMoneyItem=Al;exports.FoxMoreButton=ao;exports.FoxOverLay=An;exports.FoxPage=Tl;exports.FoxPopoverDialog=Dn;exports.FoxPopup=to;exports.FoxPrice=En;exports.FoxPullRefresh=ro;exports.FoxRadioItem=zl;exports.FoxRateItem=Kl;exports.FoxRollingProvider=go;exports.FoxRowItem=In;exports.FoxSearchBar=lo;exports.FoxSelectItem=Dl;exports.FoxSlotItem=Pn;exports.FoxStepsBar=Jl;exports.FoxSwitchItem=Wl;exports.FoxTableItem=jl;exports.FoxTableMappingColumn=ql;exports.FoxTableRadioColumn=_l;exports.FoxTableSetting=Vn;exports.FoxTabsBar=Rn;exports.FoxTabsContainer=Fn;exports.FoxTabsFrame=Ql;exports.FoxTabsPane=Zl;exports.FoxText=On;exports.FoxTimeItem=Rl;exports.FoxTimeSelectItem=Fl;exports.FoxToast=no;exports.FoxTour=ho;exports.FoxTreeItem=Gl;exports.FoxTreeSelectItem=Yl;exports.Group=El;exports.GroupSetting=Ul;exports.HeaderBar=$l;exports.HintText=Ce;exports.Indicator=fo;exports.InfiniteLoading=oo;exports.InnerPageScopeKey=xl;exports.InputItem=Ol;exports.InputNumberItem=Ml;exports.Item=ke;exports.Mapping=Ft;exports.MoneyItem=Al;exports.MoreButton=ao;exports.OverLay=An;exports.Page=Tl;exports.PopoverDialog=Dn;exports.Popup=to;exports.Price=En;exports.PriorityPolicy=je;exports.PullRefresh=ro;exports.RadioItem=zl;exports.RateItem=Kl;exports.RollingProvider=go;exports.RowItem=In;exports.SearchBar=lo;exports.SelectItem=Dl;exports.SlotItem=Pn;exports.StepsBar=Jl;exports.SwitchItem=Wl;exports.TableItem=jl;exports.TableMappingColumn=ql;exports.TableRadioColumn=_l;exports.TableSetting=Vn;exports.TabsBar=Rn;exports.TabsContainer=Fn;exports.TabsFrame=Ql;exports.TabsPane=Zl;exports.Text=On;exports.TimeItem=Rl;exports.TimeSelectItem=Fl;exports.Toast=no;exports.Tour=ho;exports.TreeItem=Gl;exports.TreeSelectItem=Yl;exports.UniqueID=aa;exports.ValidateSchema=_r;exports.ValidateSchemaKey=Ge;exports.cancelRaf=Pa;exports.clearNonNumber=ja;exports.compareTo=nl;exports.createBroadcast=mn;exports.createValidateSchema=gn;exports.debounce=Ke;exports.debounceRef=ti;exports.decimalLength=Ar;exports.default=Qm;exports.defineBroadcast=Wa;exports.defineConfigDomain=Hr;exports.defineDataItem=Kr;exports.defineDomain=bl;exports.defineItem=Ee;exports.definePageState=Yr;exports.defineSimpleItem=Wr;exports.deleteGlobalValidator=Za;exports.disabledProperty=Le;exports.divide=gl;exports.excludeProps=De;exports.extend=xt;exports.floatData=Ka;exports.getGlobalIcons=ta;exports.getGlobalValidateCheckEvents=Lr;exports.getGlobalValidateResetEvents=qr;exports.getPageContentAreaHeight=sn;exports.getPageContentAreaWidth=un;exports.getPageFooterAreaHeight=xn;exports.getPageHeaderAreaHeight=bn;exports.getRootDomain=pt;exports.hasSymbol=Ir;exports.includeProps=wt;exports.indexOf=za;exports.injectAbstractPageScope=Bt;exports.injectInnerPageScope=Lt;exports.integerLength=Fr;exports.isArray=Oa;exports.isArrayLike=Vr;exports.isBrowser=it;exports.isDate=Ra;exports.isESModule=Ma;exports.isEmptyString=de;exports.isEqual=nt;exports.isFunction=ll;exports.isHidden=Dr;exports.isMap=Da;exports.isNil=_e;exports.isNumberString=pl;exports.isObject=Xe;exports.isPlainObject=Aa;exports.isPromise=Er;exports.isRegExp=ol;exports.isSet=Va;exports.isString=kr;exports.isSubPage=ri;exports.isSymbol=Fa;exports.isTouch=qt;exports.isWindow=Or;exports.lastIndexOf=Ha;exports.makeArray=_a;exports.merge=Rr;exports.multiply=Cr;exports.negate=$r;exports.nextTick=Ba;exports.numberFormat=dn;exports.objectToString=Pr;exports.once=ni;exports.overrideGlobalIcons=xi;exports.overrideGlobalValidateHandler=Ga;exports.property=Fe;exports.provideAbstractPageScope=Ur;exports.provideInnerPageScope=wl;exports.raf=vl;exports.readonlyProperty=Me;exports.setGlobalValidateCheckEvents=Qa;exports.setGlobalValidateHandler=Ua;exports.setGlobalValidateMessages=ei;exports.setGlobalValidateResetEvents=Ja;exports.setGlobalValidator=Xa;exports.throttle=zr;exports.toBoolean=ce;exports.toNumber=$e;exports.toPadding=Je;exports.toPx=ge;exports.toPxDesc=oi;exports.toPxString=pe;exports.toTypeString=hn;exports.toValue=he;exports.tryTimes=vn;exports.typeOf=rn;exports.unNumberFormat=Nr;exports.updatePageState=rl;exports.useBroadcast=It;exports.useDomain=st;exports.useExpose=Se;exports.useInnerSize=wn;exports.usePageState=yn;exports.usePosition=Pl;exports.useRawTouch=_t;exports.useRect=Sa;exports.useSize=Cl;exports.useTouch=Od;exports.valueLength=Mt;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),ht=require("@fox-js/validator"),T=require("element-plus"),De=require("@element-plus/icons-vue"),Me=require("@fox-js/i18n"),zt=window,ka=typeof window<"u";function Ea(){return typeof zt<"u"?zt.requestAnimationFrame||zt.webkitRequestAnimationFrame||function(e){zt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Pa(e){ka?cancelAnimationFrame(e):clearTimeout(e)}const To=Ea();function rn(e,l="0"){let r=0,t=-1;e[0]=="-"&&(r++,t=1,e=e.substring(1),e.length),l[0]=="-"&&(r++,t=2,l=l.substring(1),l.length),e=Oe(e),l=Oe(l),[e,l]=gl(Oe(e),Oe(l)),r==1&&(t==1?e=_n(e):l=_n(l));let o=Co(e,l);return r?r==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(_n(o)):Oe(o)}function _n(e){let l="",r=e.length,t=e.split(".")[1],o=t?t.length:0;for(let i=0;i<r;i++)e[i]>="0"&&e[i]<="9"?l+=9-parseInt(e[i]):l+=e[i];let a=o>0?"0."+new Array(o).join("0")+"1":"1";return Co(l,a)}function Oe(e){let l=e.split(".");for(l[0]||(l[0]="0");l[0][0]=="0"&&l[0].length>1;)l[0]=l[0].substring(1);return l[0]+(l[1]?"."+l[1]:"")}function gl(e,l){let r=e.split("."),t=l.split("."),o=r[0].length,a=t[0].length;return o>a?t[0]=new Array(Math.abs(o-a)+1).join("0")+(t[0]?t[0]:""):r[0]=new Array(Math.abs(o-a)+1).join("0")+(r[0]?r[0]:""),o=r[1]?r[1].length:0,a=t[1]?t[1].length:0,(o||a)&&(o>a?t[1]=(t[1]?t[1]:"")+new Array(Math.abs(o-a)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(o-a)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),l=t[0]+(t[1]?"."+t[1]:""),[e,l]}function Co(e,l){[e,l]=gl(e,l);let r="",t=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){r="."+r;continue}let a=parseInt(e[o])+parseInt(l[o])+t;r=a%10+r,t=Math.floor(a/10)}return t?t.toString()+r:r}var xe=(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))(xe||{});function Rt(e,l=0,r=xe.HALF_EVEN){if(r===xe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let o=e.split("."),a=o[0],i=o[1];if(l<0){if(l=-l,a.length<=l)return"0";{let s=a.substr(0,a.length-l);return e=s+"."+a.substr(a.length-l)+i,s=Rt(e,0,r),(t?"-":"")+s+new Array(l+1).join("0")}}if(l==0)return a.length,vr(o[1],a,t,r)?(t?"-":"")+jn(a):(t?"-":"")+a;if(o[1]){if(o[1].length<l)return(t?"-":"")+a+"."+o[1]+new Array(l-o[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(l+1).join("0");i=o[1].substring(0,l);let u=o[1].substring(l);return u&&vr(u,i,t,r)&&(i=jn(i),i.length>l)?(t?"-":"")+jn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function vr(e,l,r,t){if(!e||e===new Array(e.length+1).join("0")||t===xe.DOWN||!r&&t===xe.FLOOR||r&&t===xe.CEILING)return!1;if(t===xe.UP||r&&t===xe.FLOOR||!r&&t===xe.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(t){case xe.HALF_DOWN:return!1;case xe.HALF_UP:return!0;case xe.HALF_EVEN:default:return parseInt(l[l.length-1])%2==1}}function jn(e,l=0){l||(l=1),typeof e=="number"&&e.toString();let r=e.length-1,t="";for(let o=r;o>=0;o--){let a=parseInt(e[o])+l;a==10?(l=1,a=0):l=0,t+=a}return l&&(t+=l),t.split("").reverse().join("")}function Jn(e,l){e=e.toString(),l=l.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),l[0]=="-"&&(r++,l=l.substr(1)),e=kt(e),l=kt(l);let t=0,o=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),l.indexOf(".")!=-1&&(o=l.length-l.indexOf(".")-1);let a=t+o;if(e=kt(e.replace(".","")),l=kt(l.replace(".","")),e.length<l.length){let h=e;e=l,l=h}if(l=="0")return"0";let i=l.length,u=0,s=[],c=i-1,m="";for(let h=0;h<i;h++)s[h]=e.length-1;for(let h=0;h<2*e.length;h++){let C=0;for(let b=l.length-1;b>=c&&b>=0;b--)s[b]>-1&&s[b]<e.length&&(C+=parseInt(e[s[b]--])*parseInt(l[b]));C+=u,u=Math.floor(C/10),m=C%10+m,c--}return m=kt(Ia(m,a)),r==1&&(m="-"+m),m}function Ia(e,l){return l==0?e:(e=l>=e.length?new Array(l-e.length+1).join("0")+e:e,e.substr(0,e.length-l)+"."+e.substr(e.length-l,l))}function kt(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 el(e,l,r=8){if(l==0)throw new Error("Cannot divide by 0");if(e=e.toString(),l=l.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),l=l.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;l[0]=="-"&&(l=l.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var o=l.indexOf(".")>0?l.length-l.indexOf(".")-1:-1;if(l=Oe(l.replace(".","")),o>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(o+1).join("0"));else if(o>c)e=e.replace(".",""),e=Oe(e+new Array(o-c+1).join("0"));else if(o<c){e=e.replace(".","");let m=e.length-c+o;e=Oe(e.substring(0,m)+"."+e.substring(m))}else o==c&&(e=Oe(e.replace(".","")))}let a=0,i=l.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(r=r+2;a<=r;){let c=0;for(;parseInt(s)>=parseInt(l);)s=rn(s,"-"+l),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(t==1?"-":"")+Oe(Rt(u,r-2))}function tl(e,l){return e=e.toString(),l=l.toString(),l=nl(l),rn(e,l)}function nl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function pr(e,l){if(l==0)throw new Error("Cannot divide by 0");e=e.toString(),l=l.toString(),yr(e),yr(l);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),l[0]=="-"&&(l=l.substr(1));let t=tl(e,Jn(l,Rt(el(e,l),0,xe.FLOOR)));return r+t}function yr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function br(e,l){let r=!1;if(e[0]=="-"&&l[0]!="-")return-1;if(e[0]!="-"&&l[0]=="-")return 1;if(e[0]=="-"&&l[0]=="-"&&(e=e.substr(1),l=l.substr(1),r=!0),[e,l]=gl(e,l),e.localeCompare(l)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=l[t])return e[t]>l[t]?r?-1:1:r?1:-1;return 0}class de{value;static RoundingModes=xe;static validate(l){if(l){if(l=l.toString(),isNaN(l))throw Error("Parameter is not a number: "+l);l[0]=="+"&&(l=l.substring(1))}else l="0";if(l.startsWith(".")?l="0"+l:l.startsWith("-.")&&(l="-0"+l.substr(1)),/e/i.test(l)){let[r,t]=l.split(/[eE]/);r=Oe(r);let o="";r[0]=="-"&&(o="-",r=r.substring(1)),r.indexOf(".")>=0?(t=parseInt(t)+r.indexOf("."),r=r.replace(".","")):t=parseInt(t)+r.length,r.length<t?l=o+r+new Array(t-r.length+1).join("0"):r.length>=t&&t>0?l=o+Oe(r.substring(0,t))+(r.length>t?"."+r.substring(t):""):l=o+"0."+new Array(-t+1).join("0")+r}return l}constructor(l="0"){this.value=de.validate(l)}getValue(){return this.value}static getPrettyValue(l,r,t){if(!(r||t))r=3,t=",";else if(!(r&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");l=de.validate(l);let o=l.charAt(0)=="-";o&&(l=l.substring(1));var a=l.indexOf(".");a=a>0?a:l.length;for(var i="",u=a;u>0;)u<r?(r=u,u=0):u-=r,i=l.substring(u,u+r)+(u<a-r&&u>=0?t:"")+i;return(o?"-":"")+i+l.substring(a)}getPrettyValue(l,r){return de.getPrettyValue(this.value,l,r)}static round(l,r=0,t=xe.HALF_EVEN){if(l=de.validate(l),isNaN(r))throw Error("Precision is not a number: "+r);return Rt(l,r,t)}round(l=0,r=xe.HALF_EVEN){if(isNaN(l))throw Error("Precision is not a number: "+l);return new de(Rt(this.value,l,r))}static floor(l){return l=de.validate(l),l.indexOf(".")===-1?l:de.round(l,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,xe.FLOOR)}static ceil(l){return l=de.validate(l),l.indexOf(".")===-1?l:de.round(l,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,xe.CEILING)}static add(l,r){return l=de.validate(l),r=de.validate(r),rn(l,r)}add(l){return new de(rn(this.value,l.getValue()))}static subtract(l,r){return l=de.validate(l),r=de.validate(r),tl(l,r)}subtract(l){return new de(tl(this.value,l.getValue()))}static multiply(l,r){return l=de.validate(l),r=de.validate(r),Jn(l,r)}multiply(l){return new de(Jn(this.value,l.getValue()))}static divide(l,r,t){return l=de.validate(l),r=de.validate(r),el(l,r,t)}divide(l,r){return new de(el(this.value,l.getValue(),r))}static modulus(l,r){return l=de.validate(l),r=de.validate(r),pr(l,r)}modulus(l){return new de(pr(this.value,l.getValue()))}static compareTo(l,r){return l=de.validate(l),r=de.validate(r),br(l,r)}compareTo(l){return br(this.value,l.getValue())}static negate(l){return l=de.validate(l),nl(l)}negate(){return new de(nl(this.value))}}function $o(e,l){return de.multiply(`${e}`,`${l}`)}function vl(e,l,r=8){return de.divide(`${e}`,`${l}`,r)}function ll(e,l){return e=`${e}`,l=`${l}`,de.compareTo(e,l)}function No(e){return de.negate(e)}function dn(e,l=-1,r=!1,t=3,o=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),l!=-1&&(l<s.length?s=s.substring(0,l):r&&l>s.length&&(s=s.padEnd(l,"0")));let m;if(t>0){let h="",C=u.split("").reverse();for(let b=0;b<C.length;b++)h+=C[b]+((b+1)%t==0&&b+1!=C.length?o:"");s.length==0?m=`${i}${h.split("").reverse().join("")}`:m=`${i}${h.split("").reverse().join("")}.${s}`}else s.length==0?m=`${i}${u}`:m=`${i}${u}.${s}`;return m}function ko(e){let l=`${e}`,r=l.charAt(0);r=="-"?l=l.substring(1):r="";let t=l.replace(/[^\d\.-]/g,"");return`${r}${t}`}const pl=To,Oa=Array.isArray,Da=e=>hn(e)==="[object Map]",Va=e=>hn(e)==="[object Set]",Ra=e=>e instanceof Date,rl=e=>typeof e=="function",Eo=e=>typeof e=="string",Fa=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",Po=e=>Qe(e)&&rl(e.then)&&rl(e.catch),Io=Object.prototype.toString,hn=e=>Io.call(e),Aa=e=>hn(e)==="[object Object]",Oo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ma(e){return e.__esModule||Oo&&e[Symbol.toStringTag]==="Module"}const La=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function wt(...e){let l=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,t=e.length,o=!1;for(typeof l=="boolean"&&(o=l,l=e[r]??{},r++),typeof l!="object"&&(l={});r<t;r++)if(e[r]!==null&&e[r]!==void 0){let a=e[r];for(let i in a){let u=l[i],s=a[i];if(u!==s)if(o===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},l[i]=wt(o,c,s)}else s!==void 0&&(l[i]=s)}}return l}const zn=La?Promise.resolve():null;function Ba(e,...l){zn!==null?l&&l.length>0?zn.then(()=>{e(l)}):zn.then(e):l&&l.length>0?setTimeout(()=>{e(l)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function $e(e){return typeof e=="number"?e:Number(e)}const qa={"[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 on(e){let r=Object.prototype.toString.call(e);return e==null?String(e):qa[r]||"object"}function Do(e){return e&&typeof e=="object"&&"setInterval"in e}function Vo(e){if(!e||e.nodeType!==1)return!0;let l=e;for(;l;){if(l.hidden)return!0;const r=window.getComputedStyle(l);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!0;l=l.parentElement}return!1}function Ro(e){let l=!!e&&"length"in e&&e.length,r=on(e);return r==="function"||Do(e)?!1:r==="array"||l===0||typeof l=="number"&&l>0&&l-1 in e}function Fo(e,l){let r=+l.length,t=0,o=e.length;for(;t<r;t++)e[o++]=l[t];return e.length=o,e}function _a(e,l=[]){let r=l;return e!=null&&(Ro(Object(e))?Fo(r,typeof e=="string"?[e]:e):r.push(e)),r}function rt(e,l){if(e==l)return!0;if(e===void 0||l===void 0)return!1;let r=on(e),t=on(l);if(r!==t)return!1;if(r==="object"){let o=Object.keys(e),a=Object.keys(l);if(o.length!==a.length)return!1;for(let i=0;i<o.length;i++){let u=o[i],s=e[u],c=l[u];if(!rt(s,c))return!1}return!0}else if(r==="array"){if(e.length!==l.length)return!1;for(let o=0;o<e.length;o++){let a=e[o],i=l[o];if(!rt(a,i))return!1}return!0}return!1}const ut=typeof window<"u";function je(e){return e==null}function ol(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null||typeof e!="string"?!1:e.length===0;function yl(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ao(e){if(e==null)return 0;let l=`${e}`;if(l.length==0)return 0;l.charAt(0)=="-"&&(l=l.substring(1)),l=l.replace(/[^\d\.-]/g,"");const r=l.indexOf(".");return r==-1?l.length:r}function Mo(e){if(e==null)return 0;const l=`${e}`;if(l.length==0)return 0;const r=l.indexOf(".");return r==-1?0:l.length-(r+1)}function xr(e,l,r){const t=e.indexOf(l);return t===-1?e:l==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(r,"")}function ja(e,l=!0,r=!0){l?e=xr(e,".",/\./g):e=e.replace(/\./g,""),r?e=xr(e,"-",/-/g):e=e.replace(/-/,"");const t=l?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function za(e,l){return typeof e=="object"||Array.isArray(e)?l.findIndex(r=>{if(rt(e,r))return!0}):l.indexOf(e)}function Ha(e,l){if(typeof e=="object"||Array.isArray(e)){let r=l.reverse().findIndex(t=>{if(rt(e,t))return!0});return r!==-1&&(r=l.length-1-r),r}return l.lastIndexOf(e)}function Lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function St(e,...l){const r={};return l.forEach(t=>{for(const o in t)r[o]=e[o]}),r}function Ve(e,...l){const r=[];l.forEach(o=>{Reflect.apply([].push,r,Reflect.ownKeys(o))});const t={};for(const o in e)r.includes(o)||(t[o]=e[o]);return t}const Ka=(e,l,r)=>{const t=Object.assign({},e),o=Object.assign({},r);return Object.keys(l).length>0?(Object.keys(t).forEach(a=>{o.hasOwnProperty(a)?typeof o[a]=="string"&&(t[a]=l[o[a]]):l[a]&&(t[a]=l[a])}),t):e},we=Symbol.for("BroadcastKey");class bl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(l,r,t){this.parent=l,this.proxy=r,this.name=t,l!==null&&l.addChild(this)}addChild(l){this.children.push(l)}removeChild(l){const r=this.children.findIndex(t=>l===t);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(l,r,t){if(!l.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const o=l.uniqueId,a={matched:l,action:r,args:t};return this.persistantMessages.set(o,a),!0}deletePersistantMessage(l){this.persistantMessages.delete(l)}getPersistantMessages(){const l=[];return this.persistantMessages.forEach(r=>{l.push(r)}),l}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(l,r){if(!r||r.messagingPolicy==="Once"&&r.resolved===!0)return!1;let t=!1;return!r.name||r.name==="*"||r.name==="+"||ol(r.name)&&l&&r.name.test(l)?t=!0:typeof r.name=="function"?t=Reflect.apply(r.name,null,[l]):r.name===l&&(t=!0),t}trigger(l,r,t){let o=null;const a=this.callbacks.get(r);typeof a=="function"&&(o=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[r]=="function"&&(o=Reflect.apply(i[r],i,[...t])),l.resolved=!0,typeof l.resolve=="function"&&l.resolve(o)}pull(){let l=this.parent;for(;l;){const r=l.getPersistantMessages();Array.isArray(r)&&r.length>0&&r.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(o){console.error(o)}}),l=l.parent}}emit(l,r,...t){if(l.messagingPolicy==="Once"&&l.resolved===!0)return[];if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,r,t),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,r,t)){const i=l.resolve,u=l.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};l.resolve=s}l.cachePolicy="None"}let o=!1;!l.name||l.name==="*"?o=!0:l.name==="+"?(o=!1,l.name="*"):ol(l.name)&&this.name&&l.name.test(this.name)?o=!0:typeof l.name=="function"?o=Reflect.apply(l.name,null,[this.name]):l.name===this.name&&(o=!0);const a=[];if(o){const i=this.callbacks.get(r);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[r]=="function"){const s=Reflect.apply(u[r],u,[...t]);s!=null&&a.push(s)}if(l.resolved=!0,typeof l.resolve=="function"&&l.resolve(...a),l.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...l},r,...t]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(l,r,...t){if(l.cachePolicy==="Persistant")this.setPersistantMessage(l,r,t),l.cachePolicy="None";else if(l.cachePolicy==="Unresolved"){if(this.setPersistantMessage(l,r,t)){const a=l.resolve,i=l.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};l.resolve=u}l.cachePolicy="None"}const o=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...l},r,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}on(l,r){this.callbacks.set(l,r)}}function mn(e,l,r,t){const o=new bl(l,e,r);if(t&&typeof t=="object")for(const a in t)o.on(a,t[a]);return o}function Wa(e,l,r){const t=r;if(t[we])return t[we];const o=n.inject(we,null),a=new bl(o,r,e);if(l&&typeof l=="object")for(const i in l)a.on(i,l[i]);return t[we]=a,n.provide(we,a),n.onUnmounted(()=>{a.destroy(),t[we]=void 0}),a}function Ot(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[we]??n.inject(we,null):n.inject(we,null)}class Ya{error(l,r){const t=r,o=r||n.hasInjectionContext()?Ot(r):null;o?o.emit({name:"*"},"setErrorTip",l):typeof t.setErrorTip=="function"&&t.setErrorTip(l)}reset(l){const r=l,t=l||n.hasInjectionContext()?Ot(l):null;t?t.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(l){const r=l,t=l||n.hasInjectionContext()?Ot(l):null;t?t.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(l,r,t){Array.isArray(l)||(l=[l]);const o=t,a=t||n.hasInjectionContext()?Ot(t):null,i=r.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=l.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(t))}getValue(l){return l.modelValue}}let Dt=new Ya;function Ua(e){Dt=e}function Ga(e){Dt?Object.assign(Dt,e):Dt=e}function Xa(e,l){ht.Schema.setValidator(e,l)}function Qa(e){ht.Schema.deleteValidator(e)}let Lo=["blur","clear"];function Za(e){Lo=e}function Bo(){return Lo}let qo=["focus","change","setValue"];function Ja(e){qo=e}function _o(){return qo}function ei(e){ht.Schema.messages(e)}function Et(...e){const l=[];return e.forEach(r=>{r.forEach(t=>{const o=l.findIndex(a=>a.type===t.type);o!==-1&&l.splice(o,1),l.push(t)})}),l}function Ht(e){return e.forEach(l=>{l.type==="required"&&(l.required===null||l.required===void 0)&&(l.required=!0),!l.type&&(l.required===!0||l.required===!1)&&(l.type="required")}),e}const Xe=Symbol("ValidateSchemaKey");class jo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(l,r,t){this.parent=l,this.descriptor=r,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let l=this.proxy.$attrs;l&&(this.scope=n.effectScope(!0),this.scope.run(()=>{n.watchEffect(()=>{const r=Ht(Et(this.attrRules,this.rules)),t=[];for(let a in l){let i=l[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),t.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};t.push(s)}}this.attrRules=Ht(t);const o=Et(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(o,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(l,...r){const t=this.descriptor.validateHandler;if(t&&typeof t[l]=="function")return Reflect.apply(t[l],t,[...r]);const o=Dt;return o&&typeof o[l]=="function"?Reflect.apply(o[l],o,[...r]):null}decorate(l,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",l,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(l){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",l,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(l,r,t=!1){t?ht.Schema.setValidator(l,r):this.validators[l]=r}getValidator(l){let r=this.validators[l]??null;return r||(r=this.parent?.getValidator(l)??null),r}deleteValidator(l,r=!1){r?ht.Schema.deleteValidator(l):Reflect.deleteProperty(this.validators,l)}hasValidator(l,r=!1){if(r)return ht.Schema.hasValidator(l);{let t=Reflect.has(this.validators,l);return!t&&this.parent!==null&&(t=this.parent.hasValidator(l,!1)),t}}setRule(l){const r=Et(this.attrRules,this.rules);l===null?this.rules=[]:Array.isArray(l)?this.rules=Ht(l):this.rules=Ht([l]);const t=Et(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(t,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Et(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(r.length>0){const o={[`${t}`]:r},a=this.getValue(),i={[`${t}`]:a},u=new ht.Schema(o),s=this.proxy??i;return u.validate(i,{context:s}).then(m=>{if(m.pass)this.success();else{let h="error";Array.isArray(m.errors)&&m.errors.length>0&&(h=m.errors[0].message??h,m.errors=[m.errors[0]],m.errors[0].ref=s),this.error(h)}return m}).catch(m=>{const h=m.message??`${m}`;return this.error(h),m})}}return Promise.resolve({pass:!0})}}function gn(e,l,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const o=r.valueName;r.validateHandler={getValue(a){return a[o]}}}return new jo(l,r,e)}const an=Symbol.for("EventEmitterKey");class zo{register=new Map;proxy;constructor(l){this.proxy=l}destroy(){this.proxy=null,this.register.clear()}off(l,r){let t=this.register.get(l);if(t&&Array.isArray(t)){let o=t.findIndex(a=>a===r);o!==-1&&t.splice(o,1)}}on(l,r){let t=this.register.get(l);t||(t=new Array,this.register.set(l,t)),t.push(r)}emit(l,...r){const t=this.register.get(l);t&&t.forEach(o=>{try{Reflect.apply(o,null,[l,...r])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[l,...r])}}function Ke(e,l){let r=null;return function(...t){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...t])},l)}}function Ho(e,l){let r=0;return function(...t){const o=new Date().getTime();o-r<l||(r=o,Reflect.apply(e,null,[...t]))}}function ti(e,l){const r=Ke((t,o)=>{e=t,o()},l);return n.customRef((t,o)=>({get(){return t(),e},set(a){r(a,o)}}))}function ni(e){let l=!1;return function(...r){l||(l=!0,Reflect.apply(e,null,[...r]))}}function vn(e,l,r,t=0,o=!0,a){let i=l,u=0;if(o){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>r){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>r){typeof a=="function"&&a(!1);return}i+=t,setTimeout(s,i)};setTimeout(s,i)}const qe=Symbol("DomainKey"),vt=Symbol("DataItemsKey");class pn{_parent=null;get parent(){return this._parent}set parent(l){this._parent=l}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(l){this._broadcast=l}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(l){this._validateSchema=l}_props=n.reactive({});constructor(l=null){this._name=l}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(l,r=[]){for(const t in l){const o=l[t];r.length>0&&r.indexOf(o)!==-1||(this._props[t]=o)}}has(l){if(Reflect.has(this._props,l)){const r=this._props[l];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(l)}delete(l){Reflect.deleteProperty(this._props,l)}set(l,r){this._props[l]=r}get(l,r){if(Reflect.has(this._props,l)){const t=this._props[l];if(t!=null)return t}return this.parent==null?r:this.parent.get(l,r)}getForParent(l,r){return this.parent==null?r:this.parent.get(l,r)}getForSelf(l){return this._props[l]}getAll(l){const r=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,l)){const o=t._props[l];r.push(o)}t=t._parent}return r}}const li=new pn;function yt(){return li}function ct(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[qe]??n.inject(qe,null):n.inject(qe,null)}const Hn=Symbol("OriginalDateKey");function xl(e,l,r=[],t){const o=n.getCurrentInstance();let a=o?.proxy,i=n.inject(qe,null);i===null&&(i=yt());const u=e||l.prop||l.name;let s=new pn(u);s.parent=i;const c=d=>{a[Hn]||C(d),s?.set("modelValue",d)},m=()=>s?.getForSelf("modelValue")??null,h=()=>a[Hn]??null,C=d=>{const f={};wt(!0,f,n.toRaw(d)),a[Hn]=f};n.isReactive(l)||typeof l=="function"?n.watch(l,d=>{s?.merge(d,r)},{immediate:!0}):s.merge(l,r),l.modelValue&&C(l.modelValue);const b=(d,f)=>{s?.set(d,f)},w=d=>s?.getForSelf(d)??null;if(a[qe]=s,n.provide(qe,s),o!==null){const d=n.inject(we,null),f=mn(a,d,u,t);s.broadcast=f,a[we]=f,n.provide(we,f),a.broadcast=(g,V,...B)=>Reflect.apply(f.emit,f,[g,V,...B]);const P=n.inject(Xe,null),v=gn(a,P,{componentName:""});s.validateSchema=v,a[Xe]=v,n.provide(Xe,v),a[vt]=new Map,a.validate=(g=!0)=>{const V=[];let B=null;const R={deep:!1};if(g===!0)B={name:"*"};else if(Array.isArray(g)&&g.length>0){const I=g;B={name:N=>N?I.indexOf(N)!==-1:!1}}else if(g!=null&&typeof g=="object"){const I=g;if(Object.assign(R,I),Array.isArray(I.include)&&I.include.length>0){const N=I.include;B={name:y=>y?N.indexOf(y)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const N=I.exclude;B={name:y=>y?N.indexOf(y)===-1:!1}}else B={name:"*"}}if(B){const I=f?.emitToChildren(B,"validate",R);I&&Reflect.apply([].push,V,I)}return V.length==1?V[0]:V.length>1?Promise.all(V).then(I=>{let N=[];return I.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(N=[...N,...y.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(g,V=!0,B=!1)=>{if(B===!0){Reflect.ownKeys(g).forEach(I=>{let N=String(I);const y={componentName:"",fieldName:N,pureDataValidate:!0};if(s){const j=Wo(s,N,y,f,v);a[vt].set(N,j);const $=g[N];$&&j.validateSchema.setRule($)}});return}if(V){const R=Reflect.ownKeys(g),I={name:N=>R.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"};f?.emitToChildren(I,"setNameValidateRules",g,!1)}},a.clearValidate=(g=!0)=>{let V=null;if(g===!0)V={name:"*"};else if(Array.isArray(g)&&g.length>0){const B=g;V={name:R=>R?B.indexOf(R)!==-1:!1}}else if(g!=null&&typeof g=="object"){const B=g;if(Array.isArray(B.include)&&B.include.length>0){const R=B.include;V={name:I=>I?R.indexOf(I)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const R=B.exclude;V={name:I=>I?R.indexOf(I)===-1:!1}}else V={name:"*"}}V&&f?.emitToChildren(V,"clearValidate",!1)},a.resetFields=g=>{const V=m();if(!V)return;const B={};if(wt(!0,B,h()??{}),Array.isArray(g))g.forEach(R=>{V[R]=B[R]});else if(g&&Array.isArray(g.include))(g.include??[]).forEach(I=>{V[I]=B[I]});else if(g&&Array.isArray(g.exclude)){let R=g.exclude??[];Reflect.ownKeys(B).forEach(I=>{R.includes(I)||(V[I]=B[I])})}else Object.assign(V,B);a.clearValidate(g)},a.setModelValue=(g,V)=>{if(!V||V===u)c(g);else{const B={name:V,messagingPolicy:"Once"};f?.emitToChildren(B,"setModelValue",g)}},a.getModelValue=()=>m(),a.setDomainProperty=(g,V)=>{b(g,V)},a.getDomainProperty=g=>w(g),setTimeout(function(){f?.pull()},0)}return n.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Xe]=void 0,n.provide(Xe,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[we]=void 0,n.provide(we,null)),s?.destroy(),a[qe]=void 0,n.provide(qe,null),a[vt]&&(a[vt].clear(),a[vt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function Ko(e,l,r=[]){let o=n.getCurrentInstance()?.proxy,a=n.inject(qe,null);a===null&&(a=yt());const i=e||l.prop||l.name;let u=new pn(i);return u.parent=a,n.isReactive(l)||typeof l=="function"?n.watch(l,s=>{u?.merge(s,r)},{immediate:!0}):u.merge(l,r),o[qe]=u,n.provide(qe,u),n.onUnmounted(()=>{u?.destroy(),o[qe]=void 0,n.provide(qe,null),u=null,o=null}),u}function Ee(e,l,r){const o=n.getCurrentInstance()?.proxy,a=l??"",i=n.inject(we,null);let u=mn(o,i,a,r);o[we]=u,n.provide(we,u),o.broadcast=(w,d,...f)=>u?Reflect.apply(u.emit,u,[w,d,...f]):null;const s=n.inject(Xe,null);e.fieldName=e.fieldName??a;let c=gn(o,s,e);o[Xe]=c,n.provide(Xe,c),o.validate=(w=null)=>{if(!c)return Promise.resolve({pass:!0});const d=[];let f=!1,P=!1;if(Array.isArray(w)&&w.indexOf(a)!==-1)P=!0,f=!0;else if(w&&typeof w=="object"){const v=w,g=v.ignoreDisabled??!0,V=v.ignoreReadonly??!0,B=v.ignoreHidden??!0;g===!0&&e.disabled===!0||V===!0&&e.readonly===!0||B===!0&&Vo(o.$el)?P=!1:(Array.isArray(v.include)&&v.include.indexOf(a)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(a),P=!0),f=v.deep??!1}else typeof w=="boolean"&&(f=w),P=!0;if(P){const v=c?.validate();d.push(v)}if(f){let v=null;const g={deep:!1};if(w===!0)v={name:"*"};else if(Array.isArray(w)&&w.length>0){const V=w;v={name:B=>B?V.indexOf(B)!==-1:!1}}else if(w!=null&&typeof w=="object"){const V=w;if(Object.assign(g,V),Array.isArray(V.include)&&V.include.length>0){const B=V.include;v={name:R=>R?B.indexOf(R)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const B=V.exclude;v={name:R=>R?B.indexOf(R)===-1:!1}}else v={name:"*"}}if(v&&u){const V=u.emitToChildren(v,"validate",g);Reflect.apply([].push,d,V)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(v=>{let g=[];return v.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(g=[...g,...V.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=w=>c?.setRule(w),o.setNameValidateRules=(w,d=!1)=>{const f=w[a];if(f&&c?.setRule(f),d&&u){const P={name:v=>Reflect.ownKeys(w).includes(v)};u.emitToChildren(P,"setNameValidateRules",w,!1)}},o.clearValidate=(w=null)=>{(!Array.isArray(w)||w.indexOf(l??"")!==-1)&&c?.clear();let d=null;if(w===!0)d={name:"*"};else if(Array.isArray(w)&&w.length>0){const f=w;d={name:P=>P?f.indexOf(P)!==-1:!1}}else if(w!=null&&typeof w=="object"){const f=w;if(Array.isArray(f.include)&&f.include.length>0){const P=f.include;d={name:v=>v?P.indexOf(v)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const P=f.exclude;d={name:v=>v?P.indexOf(v)===-1:!1}}else d={name:"*"}}d&&u&&u.emitToChildren(d,"clearValidate",!1)};let m=new zo(o);o[an]=m;const h=Ke((w="validate")=>{c&&(w==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Bo()).forEach(w=>{m&&m.on(w,d=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:_o()).forEach(w=>{m&&m.on(w,d=>{h("reset")})}),setTimeout(function(){u?.pull()},0),n.onUnmounted(()=>{u?.destroy(),o[we]=void 0,n.provide(we,null),u=null,c?.destroy(),o[Xe]=void 0,n.provide(Xe,null),c=null,m?.destroy(),o[an]=void 0,m=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(w,...d)=>{m&&Reflect.apply(m.emit,m,[w,...d])},onEvent:(w,d)=>{m&&Reflect.apply(m.on,m,[d])},offEvent:(w,d)=>{m&&Reflect.apply(m.off,m,[d])}}}function Wo(e,l,r,t,o){const a={},i=l??"",u={getValue(){const m=e.getForSelf("modelValue");return m?m[i]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,i):!1}};r.fieldName=i,r.validateHandler={getValue(m){return u.getValue()}};let s=gn({},o,r);a.validate=(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const h=[];let C=!1,b=!1;if(Array.isArray(m)&&m.indexOf(i)!==-1)b=!0,C=!0;else if(m&&typeof m=="object"){const w=m;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),b=!0,C=w.deep??!1}else typeof m=="boolean"&&(C=m),b=!0;if(b&&s){const w=s.validate();h.push(w)}if(C){let w=null;const d={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const f=m;w={name:P=>P?f.indexOf(P)!==-1:!1}}else if(m!=null&&typeof m=="object"){const f=m;if(Object.assign(d,f),Array.isArray(f.include)&&f.include.length>0){const P=f.include;w={name:v=>v?P.indexOf(v)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const P=f.exclude;w={name:v=>v?P.indexOf(v)===-1:!1}}else w={name:"*"}}if(w&&c){const f=c.emitToChildren(w,"validate",d);Reflect.apply([].push,h,f)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let d=[];return w.forEach(f=>{f.pass===!1&&Array.isArray(f.errors)&&(d=[...d,...f.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>s?.setRule(m),a.setNameValidateRules=m=>{const h=m[i];h&&s?.setRule(h)};let c=mn(null,t,i,a);return n.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Yo(){let l=n.getCurrentInstance()?.proxy,r=new zo(l);return l[an]=r,n.onUnmounted(()=>{r?.destroy(),l[an]=void 0,r=null,l=null}),{emitEvent:(t,...o)=>{r&&Reflect.apply(r.emit,r,[t,...o])},onEvent:(t,o)=>{r&&Reflect.apply(r.on,r,[o])},offEvent:(t,o)=>{r&&Reflect.apply(r.off,r,[o])}}}const pe=(e,l=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&l<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ve(e,l)}px`:"",ri=pe;function ve(e,l=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&l>0?e*l:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let o=Number(e.substring(0,r)),a=1;if(ut){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return o*=a,o}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*l;const t=Number(e);return isNaN(t)?0:t}const st="PageStateKey";function et(e){const l={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(l.top=ve(e.top)),e.left!==null&&e.left!==void 0&&(l.left=ve(e.left)),e.bottom!==null&&e.bottom!==void 0&&(l.bottom=ve(e.bottom)),e.right!==null&&e.right!==void 0&&(l.right=ve(e.right))),l}function al(e,l,r={},t=!0,o=-1,a=-1,i=0,u=0){if(e.headerHeight=ve(r.headerHeight??l.headerHeight??-1),e.headerPadding=et(r.headerPadding??l.headerPadding),e.footerHeight=ve(r.footerHeight??l.footerHeight??-1),e.footerPadding=et(r.footerPadding??l.footerPadding),e.contentPadding=et(r.contentPadding??l.contentPadding),t){const s=r.height??l.height;s?e.height=ve(s,a):e.height=ve(a)-ve(i,a)-ve(u,a),e.width=ve(r.width??l.width??0,o)}}function Uo(e,l={}){const r={top:null,bottom:null,right:null,left:null},t={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},l.safeAreaInset??{});o&&(t.safeAreaTop=ve(o.top),t.safeAreaBottom=ve(o.bottom),t.safeAreaLeft=ve(o.left),t.safeAreaRight=ve(o.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;al(t,a,l,!0,i,u,s,c);const m=n.reactive(t),h=e.getForParent(st);h&&(t.height=sn(e,h),t.width=un(e,h),n.watch([()=>sn(e,h),()=>un(e,h)],([b,w])=>{m.height=b,m.width=w}));const C=!h;return n.watch([()=>l.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,w,d=-1,f=-1,P=0,v=0])=>{al(m,w,l,C,d,f,P,v)}),e.set(st,m),m}function yn(e){return e.get(st)}function bn(e,l){if(l=l??e.get(st),l&&l.headerMounted){const r=l.safeAreaTop==-1?0:l.safeAreaTop;return l.headerAllHeight??l.headerHeight+r}return 0}function xn(e,l){if(l=l??e.get(st),l&&l.footerMounted){const r=l.safeAreaBottom==-1?0:l.safeAreaBottom;return l.footerAllHeight??l.footerHeight+r}return 0}function sn(e,l){if(l=l??e.get(st),l){if(l.contentInnerHeight)return l.contentInnerHeight;const r=bn(e,l),t=xn(e,l);return l.height-r-t-(l.contentPadding.top??0)-(l.contentPadding.bottom??0)}return 0}function un(e,l){return l=l??e.get(st),l?l.contentInnerWidth??l.width-(l.contentPadding.left??0)-(l.contentPadding.right??0):0}function oi(e){return!!e.getForParent(st)}const wl=Symbol.for("InnerPageScopeKey");function Sl(e){n.provide(wl,e)}function Bt(e=!1){return n.inject(wl,e)}const Tl=Symbol.for("AbstractPageScopeKey");function Go(e){n.provide(Tl,e)}function qt(e=!1){return n.inject(Tl,e)}var ze=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ze||{});function Kt(e,l){return e==null?!1:typeof l=="function"?l(e):!0}function Ae(e,l,r=1,t){const o=ct();return o==null?e:r===0?n.computed(()=>{const a=o.getAll(l);for(let u=a.length-1;u>=0;u--){const s=a[u];if(Kt(s,t))return s}const i=e.value;return Kt(i,t)?i:null}):n.computed(()=>{const a=e.value;if(Kt(a,t))return a;const i=o.getAll(l);for(let u=0;u<i.length;u++){const s=i[u];if(Kt(s,t))return s}return null})}function Le(e){return Ae(e,"readonly",1)}function Be(e){return Ae(e,"disabled",1)}function ge(e,l="modelValue",r=null,t){const o=n.toRef(e,l);let a=o.value;typeof r=="function"&&(a=r(o.value));const i=n.ref(a);return n.watch(o,u=>{if(typeof r=="function"){const s=r(u);s!==i.value&&(i.value=s,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const Xo=new Map,cn=new Map;let il=null;function ai(e){il=e}function Qo(e,l,r){if(r){let t=cn.get(r);t||(t=new Map,cn.set(r,t)),t.set(e,l)}else Xo.set(e,l)}function He(e,l,r){!r&&il&&(r=il(e)??void 0);let t=null;if(r){let o=cn.get(r);o&&(t=o.get(l))}return t||(t=Xo.get(l)),t}function ii(e,l){for(let r in e){const t=e[r];Qo(r,t,l)}}function si(e){cn.delete(e)}function ui(){return{top:0,left:0,bottom:0,right:0}}function ci(){if(ut){const e=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:l,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function fi(e,l){if(l.componentPrefix){const r=e.indexOf("-");return`${l.componentPrefix}${e.slice(r)}`}return e}class di{packages;installers;_version;get version(){return this._version}constructor(l,r,t){this.packages=l,this.installers=r,this._version=t}install(l,r={}){r?.install!==!1&&(this.packages.forEach(o=>{if(o.install)l.use(o);else if(o.name){const a=fi(o.name,r);l.component(a,o)}}),this.installers.forEach(o=>{o(l,r)}));const t=yt();if(r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o={...r},a=Ke(()=>{const u={...o};this.updateLayout(u,t)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(r,t)}updateLayout(l,r){const t=l.headerBarHeight??0,o=l.footerBarHeight??0,a=wt({},ui(),l.safeAreaInset),i=ci(),u=wt({},i.pageLayout,l.pageLayout);r=r??yt(),r.set("safeAreaInset",a),r.set("headerBarHeight",t),r.set("footerBarHeight",o),r.set("pageLayout",u),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight);const s=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const c in l)s.indexOf(c)===-1&&r.set(c,l[c])}setScopeGetter(l){ai(l)}setAPI(l,r,t){Qo(l,r,t)}getAPI(l,r,t){return He(l,r,t)}batchSetAPI(l,r){ii(l,r)}clearScopeAPI(l){si(l)}getRootDomain(){return yt()}}const hi=[T.ElAffix,T.ElAlert,T.ElAutocomplete,T.ElAutoResizer,T.ElAvatar,T.ElBacktop,T.ElBadge,T.ElBreadcrumb,T.ElBreadcrumbItem,T.ElButton,T.ElButtonGroup,T.ElCalendar,T.ElCard,T.ElCarousel,T.ElCarouselItem,T.ElCascader,T.ElCascaderPanel,T.ElCheckTag,T.ElCheckbox,T.ElCheckboxButton,T.ElCheckboxGroup,T.ElCol,T.ElCollapse,T.ElCollapseItem,T.ElCollapseTransition,T.ElColorPicker,T.ElConfigProvider,T.ElContainer,T.ElAside,T.ElFooter,T.ElHeader,T.ElMain,T.ElDatePicker,T.ElDescriptions,T.ElDescriptionsItem,T.ElDialog,T.ElDivider,T.ElDrawer,T.ElDropdown,T.ElDropdownItem,T.ElDropdownMenu,T.ElEmpty,T.ElForm,T.ElFormItem,T.ElIcon,T.ElImage,T.ElImageViewer,T.ElInput,T.ElInputNumber,T.ElLink,T.ElMenu,T.ElSubMenu,T.ElMenuItem,T.ElMenuItemGroup,T.ElPageHeader,T.ElPagination,T.ElPopconfirm,T.ElPopover,T.ElPopper,T.ElProgress,T.ElRadio,T.ElRadioButton,T.ElRadioGroup,T.ElRate,T.ElResult,T.ElRow,T.ElScrollbar,T.ElSelect,T.ElOption,T.ElOptionGroup,T.ElSelectV2,T.ElSkeleton,T.ElSkeletonItem,T.ElSlider,T.ElSpace,T.ElSteps,T.ElStep,T.ElSwitch,T.ElTable,T.ElTableColumn,T.ElTableV2,T.ElTabs,T.ElTabPane,T.ElTag,T.ElTimePicker,T.ElTimeSelect,T.ElTimeline,T.ElTimelineItem,T.ElTooltip,T.ElTransfer,T.ElTree,T.ElTreeSelect,T.ElTreeV2,T.ElUpload,T.ElStatistic,T.ElCountdown,T.ElSegmented,T.ElAnchor,T.ElAnchorLink,T.ElWatermark,T.ElMessageBox,T.ElMessage,T.ElNotification,T.ElSplitter],mi=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],gi=(e,l={})=>{const r=l.componentPrefix??"fox",t=r[0].toUpperCase()+r.slice(1);hi.forEach(o=>{let a=o.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,o)):e.use(o)}),mi.forEach(o=>{e.use(o)})};function se(e){const l="fox-"+e;return{componentName:l,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=l,r.install=t=>{t.component(r.name,r)},n.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,n.defineComponent(r)}}}function Te(e,l=null){if(l||(l=n.getCurrentInstance()),l&&l.proxy){let r=l.proxy;Object.assign(r,e)}}const Ne={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Re={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Zo={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}},Jo={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},ea=[];for(const e in Jo)ea.push(e);const vi={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},pi=(e,l)=>({inheritAttrs:!0,props:{...Ne,...Zo,...vi},setup(r,{slots:t}){const o=qt(!1),a=Bt(!1),i=xl(r.name,r);if(i){const h=Uo(i,r);Te({getPageContentHeight:()=>sn(i,h),getPageContentWidth:()=>un(i,h),getPageHeaderHeight:()=>bn(i,h),getPageFooterHeight:()=>xn(i,h)}),h&&a&&(h.contentHeight="100%")}const u=n.computed(()=>({[e]:!0,"is-inner":a})),s=n.computed(()=>({})),c=n.getCurrentInstance(),m=(h,C=!1)=>{const b=c?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(h,!0,C)};return n.watch([()=>r.rules,()=>r.pureDataRules],([h,C],[b,w])=>{if(h&&b){const d=n.toRaw(b),f=n.toRaw(h),P=f?Reflect.ownKeys(f):[];(d?Reflect.ownKeys(d):[]).forEach(g=>{P.includes(g)||(f[g]=[])}),m(f)}if(C&&w){const d=n.toRaw(w),f=n.toRaw(C),P=f?Reflect.ownKeys(f):[];(d?Reflect.ownKeys(d):[]).forEach(g=>{P.includes(g)||(f[g]=[])}),m(f,!0)}},{deep:!0}),n.onMounted(()=>{if(r.rules){const h=n.toRaw(r.rules);m(h)}if(r.pureDataRules){const h=n.toRaw(r.pureDataRules);m(h,!0)}}),()=>{if(o)return t?.default?.();{const h={class:u.value,style:s.value};return n.h("div",h,[t?.default?.()])}}}}),{componentName:yi,create:bi}=se("page"),Cl=bi(pi(yi));function $l(e){const l=n.unref(e);return{width:l.offsetWidth,height:l.offsetHeight}}function wn(e){const l=n.unref(e),r=window.getComputedStyle(l,null),t=parseFloat(r.getPropertyValue("padding-left")),o=parseFloat(r.getPropertyValue("padding-right")),a=parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("padding-bottom"));return{width:l.clientWidth-t-o,height:l.clientHeight-a-i}}const ta={headerbar:{},radio:{},checkbox:{}};function xi(e){Object.assign(ta,e)}function na(){return ta}const wi=(e,l,r,t=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:r},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,a){const i=qt(!1),u=Bt(!1),s=i?null:ct(),c=s?yn(s):null;c&&(c.headerMounted=!0);const m=na(),h=e,C=n.computed(()=>{const x={[h]:!0,[`${h}--border`]:o.border,[`${h}--fixed`]:o.fixed};return u||(x[`${h}--safe-area-inset-top`]=o.safeAreaInsetTop),x}),b=n.computed(()=>({[`${h}__inner`]:!0,[`${h}__inner--${o.align}`]:!0})),w=je(o.height)?null:ve(o.height),d=n.computed(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return x;if(s&&c){const S=et(o.padding??c.headerPadding);return Object.assign(x,S),je(w)||(c.headerHeight=w),x.height=c.headerHeight,x.safeAreaTop=c.safeAreaTop===-1?0:c.safeAreaTop,x.safeAreaTop>0&&(x.top=x.safeAreaTop+(S.top??0),x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)),x}if(je(w)||(x.height=w),o.padding){const S=et(o.padding);Object.assign(x,S)}return x}),f=n.ref(null),P=()=>{if(c&&f.value&&f.value.offsetParent!==null){if(!t){const x=$l(f.value);c.headerAllHeight=x.height}return c.headerMounted=!0,!0}return!1},v=Ke(P,120);let g=null;n.onMounted(()=>{i||c&&(vn(P,50,5,50,!0),window.ResizeObserver&&f.value&&(g=new window.ResizeObserver(v),g.observe(f.value)))}),n.onUnmounted(()=>{i||c&&(c.headerMounted=!1,g&&(g.disconnect(),g=null))});const V=n.computed(()=>{const x={};return i||(d.value.height!==null&&d.value.height!==void 0&&(x.height=`${d.value.height}px`),d.value.top!==null&&d.value.top!==void 0&&(x.paddingTop=`${d.value.top}px`),d.value.left!==null&&d.value.left!==void 0&&(x.paddingLeft=`${d.value.left}px`),d.value.right!==null&&d.value.right!==void 0&&(x.paddingRight=`${d.value.right}px`),d.value.bottom!==null&&d.value.bottom!==void 0&&(x.paddingBottom=`${d.value.bottom}px`)),x}),B=n.computed(()=>{const x=d.value?.height;return je(x)||x<0?!0:x>0});function R(){a.emit("back")}function I(){a.emit("click-title")}function N(){a.emit("click-right")}function y(){a.emit("click-right-text")}const j=()=>{if(!o.leftShow)return null;const x=[];if(a.slots.left)x.push(a.slots.left());else{if(a.slots.leftIcon){const S=n.h("view",{class:"left-icon",onClick:R},[a.slots.leftIcon()]);x.push(S)}else{const S=o.leftIcon??m.headerbar.Left??r,O=n.h("view",{class:"left-icon",onClick:R},[n.h(S)]);x.push(O)}if(o.leftText){const S=n.h("view",{class:"left-text",onClick:R},[o.leftText]);x.push(S)}}return x.length===0?null:n.h("view",{class:"fox-header-bar__left"},x)},$=()=>{if(!o.rightShow)return null;const x=[];if(a.slots.right)x.push(a.slots.right());else{if(o.rightText){const S=n.h("view",{class:"right-text",onClick:y},[o.rightText]);x.push(S)}if(a.slots.rightIcon){const S=n.h("view",{class:"right-icon",onClick:N},[a.slots.rightIcon()]);x.push(S)}else if(o.rightIcon){const S=n.h("view",{class:"right-icon",onClick:N},[n.h(o.rightIcon)]);x.push(S)}}return x.length===0?null:n.h("view",{class:"fox-header-bar__right"},x)},q=()=>{if(!o.titleShow)return null;const x=[],S=a.slots.default?a.slots.default():null;if(S)x.push(S);else{if(o.title){const O=n.h("view",{class:"title-text"},[o.title]);x.push(O)}if(a.slots.titleIcon){const O=n.h("view",{class:"title-icon",onClick:I},[a.slots.titleIcon()]);x.push(O)}else if(o.titleIcon){const O=n.h("view",{class:"title-icon",onClick:I},[n.h(o.titleIcon)]);x.push(O)}}return x.length===0?null:n.h("view",{class:"fox-header-bar__title"},x)},Q=()=>{const x=[],S=a.slots.bottom?a.slots.bottom():null;return S&&x.push(S),x.length===0?null:n.h("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(i||!B.value)return null;const x=[];if(a.slots.all)x.push(a.slots.all());else{const O=[],_=j();_&&O.push(_);const X=q();X&&O.push(X);const J=$();if(J&&O.push(J),O.length>0){const te=n.h("view",{class:b.value},O);x.push(te)}const A=Q();A&&x.push(A)}if(x.length===0)return null;const S={class:C.value,style:V.value,ref:f};return n.h("view",S,x)}}}),{componentName:Si,create:Ti,scope:Ci}=se("header-bar"),Nl=Ti(wi(Si,Ci,De.ArrowLeft));function $i(e,l,r=!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(t,o){const a=qt(!1),i=Bt(!1),u=a?null:ct(),s=u?yn(u):null,c=n.computed(()=>{const v=e,g={[v]:!0,[`${v}--${t.align}`]:!0,[`${v}--border`]:t.border,[`${v}--fixed`]:t.fixed};return i||(g[`${v}--safe-area-inset-bottom`]=t.safeAreaInsetBottom),g}),m=je(t.height)?null:ve(t.height),h=n.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return v;if(u&&s){const g=et(t.padding??s.footerPadding);return Object.assign(v,g),je(m)||(s.footerHeight=m),v.height=s.footerHeight,v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(g.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(je(m)||(v.height=m),t.padding){const g=et(t.padding);Object.assign(v,g)}return v}),C=n.computed(()=>{const v=h.value?.height;return je(v)||v<0?!0:v>0}),b=n.ref(null),w=()=>{if(s&&b.value&&b.value.offsetParent!==null){if(!r){const v=$l(b.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1},d=Ke(w,120);let f=null;n.onMounted(()=>{a||s&&(vn(w,50,5,50,!0),window.ResizeObserver&&b.value&&(f=new window.ResizeObserver(d),f.observe(b.value)))}),n.onUnmounted(()=>{a||s&&(s.footerMounted=!1,f&&(f.disconnect(),f=null))});const P=n.computed(()=>{const v={};return a||(h.value.height!==null&&h.value.height!==void 0&&(v.height=pe(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(v.paddingTop=pe(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(v.paddingLeft=pe(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(v.paddingRight=pe(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(v.paddingBottom=pe(h.value.bottom))),v});return()=>{if(a||!C.value)return null;const v=o.slots.default?o.slots.default():[],g={ref:b,class:c.value,style:P.value};return n.h("view",g,v)}}}}const{componentName:Ni,create:ki}=se("footer-bar"),kl=ki($i(Ni));function Ei(e,l){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(r,{slots:t,attrs:o}){const a=qt(!1),i=Bt(!1),u=a?null:ct(),s=n.computed(()=>({[e]:!0})),c=u?yn(u):null,m=n.computed(()=>{const d={};if(a)return d;if(u&&c){if(r.padding){const I=et(r.padding);Object.assign(c.contentPadding,I)}const f=bn(u,c),P=xn(u,c);let v="";c.contentHeight?v=`${c.contentHeight}`:v=`${c.height}px`,d.height=v;let g=(c&&c.contentPadding&&c.contentPadding.top)??-1;(g>=0||f>0)&&(g=g<0?0:g,d.paddingTop=`${f+g}px`);let V=(c&&c.contentPadding&&c.contentPadding.bottom)??-1;(V>=0||P>0)&&(V=V<0?0:V,d.paddingBottom=`${P+V}px`);const B=(c&&c.contentPadding&&c.contentPadding.left)??-1;B>=0&&(d.paddingLeft=`${B}px`);const R=(c&&c.contentPadding&&c.contentPadding.right)??-1;return R>=0&&(d.paddingRight=`${R}px`),d}if(r.padding){const f=et(r.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),h=n.ref(null),C=()=>{if(c&&h.value){const d=wn(h.value);c.contentInnerHeight=d.height,c.contentInnerWidth=d.width}},b=Ke(C,120);let w=null;return n.onMounted(()=>{i||a||(requestAnimationFrame(C),window.ResizeObserver&&h.value&&(w=new window.ResizeObserver(b),w.observe(h.value)))}),n.onUnmounted(()=>{i||a||w&&(w.disconnect(),w=null)}),()=>{if(a)return t.default?.();{const d=r.tag??"view",f={...o,ref:h,class:s.value,style:m.value};return n.h(d,f,t)}}}}}const{componentName:Pi,create:Ii}=se("content"),El=Ii(Ei(Pi)),Tt="GroupStateKey",la=Symbol.for("GroupScopeKey");function Sn(){return n.inject(la,!1)}function Tn(e=!0){n.provide(la,e)}function Oi(e,l={}){Reflect.ownKeys(l).forEach(t=>{if(typeof t!="string")return;const o=l[t];je(o)||(e[t]=o)})}function Di(e,l={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Oi(t,l);const o=n.shallowRef(t),a=n.markRaw({layout:o,passport:0,order:{index:0}});return e.set(Tt,a),a}function Kn(e,l,r=-1,t=-1,o=!1,a,i,u){const s=e.get(Tt);if(!s)return;const c=e.get("groupLayout")??{};r===-1&&(r=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const m=ve(a),h=ve(i);u||(u=c.type??"grid");const C=()=>{const b=l===""||l===-1,w=ve(l);let d=$e(r);const f=ve(t);if(!b){let g=(w-(d-1)*f)/d;for(;h!==-1&&g>h;)d++,g=(w-(d-1)*f)/d;for(;m!==-1&&d>1&&g<m;)d--,g=(w-(d-1)*f)/d}let P=!1;const v=s.layout;v.value.width=l,v.value.column!==d&&(v.value.column=d,P=!0),v.value.gutter!==f&&(v.value.gutter=f,P=!0),v.value.type!==u&&(v.value.type=u,P=!0),P&&n.triggerRef(v)};if(o)C();else{const b=++s.passport;setTimeout(()=>{b===s.passport&&C()},50)}}function Cn(e,l=!1){let r;return l?r=e.getForParent(Tt):r=e.get(Tt),r.layout}function $n(e,l=!1){let r;return l?r=e.getForParent(Tt):r=e.get(Tt),r.order}function wr(e,l=1){if(l==="stretch")return-1;const r=$e(l);return r===-1?100:100*r/e}function Nn(e,l,r=1,t=0,o){const a={};let i=0;o?i=ve(o):i=wr(l.column,r),i>0&&(a.width=`${i}%`);const u=wr(l.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=l.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function kn(e,l,r=1,t=0){if(r==="stretch"){const s=e.index%l.column,c=s+(l.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let o=$e(r);if(o===-1){const s=e.index%l.column;return l.column,s==0?e.index=e.index+l.column:e.index=e.index+(l.column-s)+l.column,{"grid-column":"1 / -1"}}if(o>l.column){const s=e.index%l.column;return l.column,s==0?e.index=e.index+l.column:e.index=e.index+(l.column-s)+l.column,{"grid-column":"1 / -1"}}const a=$e(t)%l.column;let i=(e.index+a)%l.column,u=i+o;return u>l.column?(i=0,u=i+o,e.index=e.index+(l.column-i)+o):e.index=e.index+a+o,a>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const ra=Symbol("RollingStateKey");function Vi(e){n.provide(ra,e)}function Ri(){return n.inject(ra,null)}function sl(e){let l=0;const r=window.getComputedStyle(e,null);if(r.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("padding-bottom"));l=e.clientHeight-o-a}else l=e.offsetHeight;return l}function Fi(e){let l=sl(e);if(l<=0){const r=e.cloneNode(!0),t=e.offsetWidth;r.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),l=sl(r),document.body.removeChild(r)}return l}function Ai(e,l,r){const t=typeof e=="number"?e:parseInt(e),o=typeof l=="number"?l:parseInt(l),a=typeof r=="number"?r:parseInt(r);if(t<=0)return"1fr";const i=(t-(o-1)*a)/o;return i>0?`${i}px`:"1fr"}const Mi={...Ne,...Zo,...Jo};function Li(e,l,r){return{props:Mi,emits:["update:collapse","header-click"],setup(t,o){const a=xl(t.prop??t.name,t,ea),i=Di(a,{type:t.type}),u=Sn();Tn(!0);const s=t.rollingDisplay?Ri():null,c=n.ref(null),m=n.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),h=n.computed(()=>u&&a?Cn(a,!0).value:null),C=n.getCurrentInstance(),b=(D,K=!1)=>{const E=C?.proxy;E&&typeof E.setNameValidateRules=="function"&&E.setNameValidateRules(D,!0,K)};n.watch([()=>t.rules,()=>t.pureDataRules],([D,K],[E,p])=>{if(D&&E){const L=n.toRaw(E),F=n.toRaw(D),ee=F?Reflect.ownKeys(F):[];(L?Reflect.ownKeys(L):[]).forEach(ie=>{ee.includes(ie)||(F[ie]=[])}),b(F)}if(K&&p){const L=n.toRaw(p),F=n.toRaw(K),ee=F?Reflect.ownKeys(F):[];(L?Reflect.ownKeys(L):[]).forEach(ie=>{ee.includes(ie)||(F[ie]=[])}),b(F,!0)}},{deep:!0});const w=e,d=n.computed(()=>{const D={};D.height=S.value;const K=u?$n(a,!0):null;if(h.value&&K){if(h.value.type==="grid"){const E=kn(K,h.value,t.span,t.offset);Object.assign(D,E)}else if(h.value.type==="flow"){const E=Nn(K,h.value,t.span,t.offset,t.width);Object.assign(D,E)}}else if(t.width){const E=pe(t.width);D.width=E}return D}),f=n.computed(()=>{const D=i.layout.value.type;return D==="grid"||D==="flow"?{[`${w}--${D}`]:!0,[`${w}--${D}-justify-${t.justify}`]:!0,[`${w}--${D}-align-${t.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${D}`]:!0,[`${w}--gutter`]:!0}}),P=n.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(t.columnWidth)K=`repeat(auto-fill, ${t.columnWidth})`;else{const E=Ai(N.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${E})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),v=n.toRef(t,"gutter"),g=n.toRef(t,"column"),V=n.computed(()=>u||m.value?!0:ce(t.isWrap)),B=[],R=D=>{B.push(D)},I=()=>{let D=B.length;B.splice(0,D)},N=n.ref(-1),y=D=>{const K=wn(D).width;K>0&&K!==N.value&&(N.value=K)};Kn(a,N.value,g.value,v.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&n.watch([N,g,v],([D,K,E])=>{i.order.index=0,Kn(a,D,K,E,!1,t.minItemWidth,t.maxItemWidth,t.type)});const j=n.computed(()=>O.value?t.expandText??"":t.collapseText??""),$=n.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=n.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!O.value,"is-collapse":O.value})),Q=n.ref(),x=n.ref(),S=n.computed(()=>_.value||pe(t.height)||""),O=n.ref(!1),_=n.ref(""),X=n.ref(!1);let J=-1;const A=(D,K=!0)=>{const E=Q.value;if(E&&O.value!==D){if(J=J===-1?Fi(E):J,X.value=!0,K)if(E.style["will-change"]="height",E.ontransitionend=function(){E.ontransitionend=null,this.style["will-change"]="auto",D||(_.value="",X.value=!1)},D){let p=0;t.collapseHeight?p=t.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(p=x.value.offsetHeight),_.value=`${J}px`,n.nextTick(()=>{_.value=`${p}px`})}else _.value=`${J}px`;else if(D){let p=0;t.collapseHeight?p=t.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(p=x.value.offsetHeight),_.value=`${p}px`}else X.value=!1,_.value=`${J}px`;O.value=D,o.emit("update:collapse",D)}};n.watch(()=>t.collapse,D=>{A(D)});const te=D=>{o.emit("header-click",D)},W=()=>{M()},M=D=>{D=D??!O.value,A(D)};Te({toggleCollapse:M,doLayout:()=>{B[0]&&(y(B[0]),Kn(a,N.value,g.value,v.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let z=null,k=!0;const Y=D=>{if(t.rules){const K=n.toRaw(t.rules);b(K)}if(t.pureDataRules){const K=n.toRaw(t.pureDataRules);b(K,!0)}if(ut&&(D&&A(ce(t.collapse),!1),t.autoLayout&&Array.isArray(B)&&B.length>0)){const K=B[0];if(y(K),window.ResizeObserver){const E=Ke(()=>y(K),120);z=new window.ResizeObserver(E),z.observe(K)}}},Z=()=>{z?.disconnect(),z=null},le=!m.value||s?.acquire();le&&(c.value=m.value?!0:null),n.onMounted(()=>{if(le&&(Y(k),k=!1),m.value&&s){let D=null,K=s.initialHeight;s.observe(Q.value,E=>{if(E!==c.value)if(E)c.value=!0,O.value||(_.value=""),D=setTimeout(()=>{D=null,c.value!==!1&&(Y(k),k=!1)},100);else{if(D!==null&&clearTimeout(D),c.value=!1,!O.value)if(k)_.value=s.initialHeight;else{let p=sl(Q.value);p<=0?_.value=K:(_.value=`${p}px`,K=_.value)}k||Z()}})}}),n.onUnmounted(()=>{z?.disconnect(),s&&s.unobserve(Q.value)});const G=(D="right")=>{const K=[];if(j.value){const L={class:$.value},F=n.h("span",L,[j.value]);K.push(F)}const E={class:q.value},p=r(t.collapseIcon,E);return p&&K.push(p),K.length>0?n.h("div",{class:{[`${w}__header-collapse`]:!0,[`is-${D}`]:!0},onClick:W},K):null},U=(D,K,E,p)=>{const L={...f.value};if(K===0&&(L[`${w}__first`]=!0),E>=p-1&&(L[`${w}__last`]=!0),V.value===!1){const F=o.attrs.class;F&&(L[`${F}`]=!0)}return n.h("div",{ref:R,key:`${K}`,class:L,style:P.value},D)};return()=>{const D=t.prop??t.name;if(m.value&&c.value!==!0){const F=t.tag||"div";return n.h(F,{ref:Q,prop:D,class:{[`${w}`]:!0,"is-collapse":X.value},style:d.value},[])}i.order.index=0;const K=[];let E=0;if(o.slots.header){const F={key:`${E++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:te},ee=n.h("div",F,[o.slots.header()]);K.push(ee)}else{const F=[],ee=t.collapsePosition==="left";if(ee&&t.showCollapse){const re=G("left");re&&F.push(re)}if(t.title||o.slots.title){if(t.showMark){const re={class:{[`${w}__header-mark`]:!0}};t.markColor&&(re.style={background:t.markColor});const ie=n.h("div",re);F.push(ie)}if(o.slots.title){const re=n.h("div",{class:{[`${w}__header-title`]:!0}},[o.slots.title()]);F.push(re)}else if(t.title){const re=n.h("div",{class:{[`${w}__header-title`]:!0}},[t.title]);F.push(re)}}if(o.slots.toolbar&&F.push(o.slots.toolbar()),!ee&&t.showCollapse){const re=G("right");re&&F.push(re)}if(F.length>0){const re={key:`${E++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:te},ie=n.h("div",re,F);K.push(ie)}}I();const p=o.slots.default?o.slots.default():[],L=i.layout.value.type;if(L==="grid"){const F=U(p,E++,0,p.length);K.push(F)}else if(L==="flow"){const F=U(p,E++,0,p.length);K.push(F)}else for(let F=0;F<p.length;F++){const ee=p[F],re=U([ee],E++,F,p.length);K.push(re)}if(V.value){const F=t.tag||"div";return n.h(F,{ref:Q,prop:D,class:{[`${w}`]:!0,"is-collapse":X.value},style:d.value},[K])}else return K}}}}const{componentName:Bi,create:qi,scope:_i}=se("group"),ji=(e,l)=>(e=e??De.ArrowUp,n.h(T.ElIcon,l,{default:()=>[n.h(e)]})),Pl=qi(Li(Bi,_i,ji));function zi(e){return e===window}const Hi=/matrix\((.+)\)/,Il=e=>{const l=n.unref(e);if(!l)return{x:0,y:0};if(zi(l))return{x:0,y:0};let r=0,t=0,o=l;for(;o!==null;)r+=o.offsetLeft,t+=o.offsetTop,o=o.offsetParent;let a=0,i=0,u=0,s=0;for(o=l;o!==document;){i+=o.scrollTop,a+=o.scrollLeft;const{transform:c}=window.getComputedStyle(o);if(c){const m=Hi.exec(c);if(m){let C=m[1].split(/\s*,\s*/);C.length==6&&(u+=Number(C[4]),s+=Number(C[5]))}}o=o.parentNode}return r-=a,t-=i,r+=u,t+=s,{x:r,y:t}};class Ki{watchedListeners=[];add(l){this.watchedListeners.push(l)}remove(l){const r=this.watchedListeners.indexOf(l);r!==-1&&this.watchedListeners.splice(r,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(l=>{try{l()}catch{}})}}class Wi{monitorRegister=new WeakMap;watch(l,r){let t=l.parentNode;const o=document.body.parentNode;for(;t&&t!==o;){let a=this.monitorRegister.get(t);a||(a=new Ki,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(r),t=t.parentNode}}unwatch(l,r){let t=l.parentNode;const o=document.body.parentNode;for(;t&&t!==o;){let a=this.monitorRegister.get(t);a&&(a.remove(r),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const Vt=new Wi,oa={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:Yi,create:Ui}=se("price"),Gi=Ui({props:{...oa},setup(e){const l=n.computed(()=>({[Yi]:!0})),r=n.computed(()=>e.needSymbol?e.symbol:""),t=n.computed(()=>Lt(e.price)==0?"":dn(e.price,e.decimalLength,!0,$e(e.digits),e.separator)),o=n.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=n.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:l,showSymbol:r,intText:o,decimalText:a}}}),Ze=(e,l)=>{const r=e.__vccOpts||e;for(const[t,o]of l)r[t]=o;return r},Xi=["innerHTML"],Qi=["innerHTML"];function Zi(e,l,r,t,o,a){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Xi)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--${e.size}`)},n.toDisplayString(e.intText),3),e.decimalText.length!=0?(n.openBlock(),n.createElementBlock("view",{key:1,class:n.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--decimal-${e.size}`)},n.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(n.openBlock(),n.createElementBlock("view",{key:2,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Qi)):n.createCommentVNode("",!0)],2)}const En=Ze(Gi,[["render",Zi]]),{componentName:Wn,create:Ji}=se("hint-text"),es=Ji({components:{Price:En},props:{...oa,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,l){const r=n.ref({top:null,right:null,bottom:null,left:null}),t=n.ref({x:0,y:0}),o=n.ref(0),a=n.ref(0),i=n.ref(e.placement),u=n.ref(!1),s=n.ref(null),c=($,q,Q,x,S,O)=>{const _=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,J=$.split("-");let A=[];J[0]==="top"?A=["top","bottom","right","left"]:J[0]==="bottom"?A=["bottom","top","right","left"]:J[0]==="left"?A=["left","top","bottom","right"]:J[0]==="right"&&(A=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},W=[];for(let M=0;M<A.length;M++){const H=A[M];if(W[0]=H,J[1]&&(W[1]=J[1]),H==="top"){const z=q.y-O-e.arrowSize-e.offset;if(z>=0){te.top=z;let k=0;J[1]==="start"?k=q.x:J[1]==="end"?k=q.x+Q-S:k=q.x+Q/2-S/2;const Y=_-k-S;Y<0?(k+=Y,h.value=-Y):h.value=0,te.left=k<0?0:k;break}}else if(H==="bottom"){const z=q.y+x+e.arrowSize+e.offset;if(z+O<=X){te.top=z;let k=0;J[1]==="start"?k=q.x:J[1]==="end"?k=q.x+Q-S:k=q.x+Q/2-S/2;const Y=_-k-S;Y<0?(k+=Y,h.value=-Y):h.value=0,te.left=k<0?0:k;break}}else if(H==="left"){const z=q.x-S-e.arrowSize-e.offset;if(z>=0){te.left=z;let k=0;J[1]==="start"?k=q.y:J[1]==="end"?k=q.y+x-O:k=q.y+x/2-O/2,te.top=k<0?0:k;break}}else if(H==="right"){const z=q.x+Q+e.arrowSize+e.offset;if(z+S<=_){te.left=z;let k=0;J[1]==="start"?k=q.y:J[1]==="end"?k=q.y+x-O:k=q.y+x/2-O/2,te.top=k<0?0:k;break}}}return{bestPlacement:W.join("-"),bestInsetRect:te}},m=($,q,Q=10)=>{if(!ut||q===!1||!$)return;t.value=Il(e.reference),o.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const x=s.value.offsetHeight,S=s.value.offsetWidth,{bestPlacement:O,bestInsetRect:_}=c(e.placement,t.value,o.value,a.value,S,x);i.value=O,r.value=_,u.value=!0},h=n.ref(0),C=Ke(()=>{m(e.message,e.visible)},10),b=n.ref(e.visible);n.watch(()=>e.visible,$=>{b.value=$});const w=n.computed(()=>b.value&&d.value),d=n.ref(!0),f=Ke($=>{const q=$[0];q&&(d.value=q.isIntersecting)},10),P=new IntersectionObserver(f);n.watch([()=>e.message,()=>e.visible],([$,q])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),n.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Vt.watch(e.reference,C),P.observe(e.reference)}),n.onBeforeUnmount(()=>{Vt.unwatch(e.reference,C),P.unobserve(e.reference),P.disconnect()});const v=n.computed(()=>{const $={[Wn]:!0};return i.value.startsWith("top")?$["is-top"]=!0:i.value.startsWith("right")?$["is-right"]=!0:i.value.startsWith("bottom")?$["is-bottom"]=!0:i.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),g=n.computed(()=>{const $={};r.value.top!==null&&($.top=`${r.value.top}px`),r.value.right!==null&&($.right=`${r.value.right}px`),r.value.bottom!==null&&($.bottom=`${r.value.bottom}px`),r.value.left!==null&&($.left=`${r.value.left}px`),e.autoFit&&($["min-width"]=`${o.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${q}px`,u.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),V=n.computed(()=>{const $=[`${Wn}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),B=n.computed(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),R=n.computed(()=>({[`${Wn}__arrow`]:!0})),I=n.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,i.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="top-start"?($.left=`${e.arrowOffset+h.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="top-end"?($.right=`${e.arrowOffset-h.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?($.left=`${e.arrowOffset+h.value}px`,$.top=`-${e.arrowSize}px`):i.value==="bottom-end"?($.right=`${e.arrowOffset-h.value}px`,$.top=`-${e.arrowSize}px`):i.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),N=n.computed(()=>w.value&&e.closeOnClick),y=n.computed(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:w,tipRef:s,classes:v,styles:g,textClasses:V,textStyles:B,arrowClasses:R,arrowStyles:I,overlayShow:N,overlayStyle:y,onClickOverlay:()=>{b.value=!1,l.emit("update:visible",!1)}}}}),ts=["innerHTML"];function ns(e,l,r,t,o,a){const i=n.resolveComponent("Price");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.overlayShow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:n.normalizeStyle(e.overlayStyle),onClick:l[0]||(l[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",{ref:"tipRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.textClasses),style:n.normalizeStyle(e.textStyles)},[e.type=="number"?(n.openBlock(),n.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(n.openBlock(),n.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ts))],6),n.createElementVNode("div",{class:n.normalizeClass(e.arrowClasses),style:n.normalizeStyle(e.arrowStyles)},null,6)],6),[[n.vShow,e.show]])],64)}const aa=Ze(es,[["render",ns]]);class ia{seed=new Date().getTime();constructor(l){this.seed=l??new Date().getTime()}get(){let l=this.seed++;return this.seed<0&&(this.seed=0),l}}const ul={},ls=new ia,bt=new Map,fn=e=>{if(e){const l=document.getElementById(e);bt.delete(e),l&&l.parentNode?.removeChild(l)}else{for(const l of bt.keys()){const r=document.getElementById(l);r&&r.parentNode?.removeChild(r)}bt.clear()}},rs=e=>{e.unmount=fn;const l=document.getElementById(e.id);if(l){const r=bt.get(e.id);r?e={...ul,...r,...e}:e={...ul,...e},e.transition=!1;const t=n.createVNode(aa,e);n.render(t,l)}return e.id},os=e=>{e.unmount=fn;let l=e.id??`hinttext_${ls.get()}`;e={...ul,...e},e.id=l,bt.set(l,e);const r=document.createElement("div");r.id=e.id;const t=n.createVNode(aa,e);return n.render(t,r),document.body.appendChild(r),l},as=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ce={show(e,l,r={},t=!0){as(l);const o=r.id;return o&&bt.has(o)?rs({...r,message:l,reference:e}):(t&&fn(),os({...r,message:l,reference:e}))},hide(e){fn(e)},install(e){e.config.globalProperties.$hintText=Ce}};function is(e,l,r,t=!1){return{inheritAttrs:!0,props:{...Ne,...Re},emits:["appear","disappear"],setup(o,a){const i=o.prop??a.attrs.name;Ee({componentName:e,validate:!1},i);const u=ct(),s=Sn();Tn(!1);const c=n.computed(()=>s&&u?Cn(u,!1).value:null),m=e,h=n.ref(null),C=n.computed(()=>{const p={[m]:!0,[`${m}__gutter`]:c.value&&c.value.type!=="flow",[`${m}__stretch`]:o.span==="stretch",[`${m}__input--border`]:ce(o.hasBorder)};if(p[o.errorMarkClass]=!!O.value,p[o.warnMarkClass]=!!x.value,p[o.infoMarkClass]=!!q.value,typeof h.value=="function"){const L=h.value(i);p[L]=!0}else if(typeof h.value=="string"){const L=h.value;p[L]=!0}return p}),b=n.ref(null),w=n.computed(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=pe(o.width));else{const L=s&&u?$n(u,!1):null;if(c.value&&L){if(c.value.type==="grid"){const F=kn(L,c.value,o.span,o.offset);Object.assign(p,F)}else if(c.value.type==="flow"){const F=Nn(L,c.value,o.span,o.offset,o.width);Object.assign(p,F)}}}if(typeof b.value=="function"){const L=b.value(i);L&&Object.assign(p,L)}else if(b.value&&typeof b.value=="object"){const L=b.value;Object.assign(p,L)}return p}),d=n.ref(null),f=n.computed({get:()=>d.value??ce(o.isRequired),set:p=>{d.value=p}}),P=()=>typeof o.label=="string"&&o.label.length>0||typeof a.slots.label=="function",v=Ae(n.toRef(o,"labelPosition"),"labelPosition",ze.Near),g=n.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),V=n.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${g.value}`]:!0})),B=n.computed(()=>({label:!0,[`label--${g.value}`]:!0})),R=Ae(n.toRef(o,"labelWidth"),"labelWidth",ze.Near),I=n.computed(()=>R&&R.value?{width:pe(R.value)}:{}),N=n.computed(()=>({"label--string":!0,"label--required":f.value})),y=n.computed(()=>({content:!0,[o.contentClass]:!0})),j=n.computed(()=>({...o.contentStyle})),$=n.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(p){f.value=p},setErrorTip(p){$.errorTip=p},setErrorIcon(p){$.errorIcon=p},setWarnTip(p){$.warnTip=p},setWarnIcon(p){$.warnIcon=p},setInfoTip(p){$.infoTip=p},setInfoIcon(p){$.infoIcon=p},setCustomClassName(p){h.value=p},setCustomStyle(p){b.value=p}});const q=n.computed(()=>o.infoTip||$.infoTip),Q=n.computed(()=>o.infoIcon||$.infoIcon),x=n.computed(()=>o.warnTip||$.warnTip),S=n.computed(()=>o.warnIcon||$.warnIcon),O=n.computed(()=>o.errorTip||$.errorTip),_=n.computed(()=>o.errorIcon||$.errorIcon),X=n.computed(()=>O.value?"error":x.value?"warn":q.value?"info":""),J=()=>X.value.length>0,A=n.computed(()=>X.value==="error"?O.value:X.value==="warn"?x.value:X.value==="info"?q.value:""),te=n.computed(()=>X.value==="error"?_.value:X.value==="warn"?S.value:X.value==="info"?Q.value:null),W=n.computed(()=>{const p={[`${m}__tip`]:!0,[`${m}__tip--${X.value}`]:!0,[`${m}--animate`]:!0};return X.value==="error"&&o.errorClass?p[`${o.errorClass}`]=!0:X.value==="warn"&&o.warnClass?p[`${o.warnClass}`]=!0:X.value==="info"&&o.infoClass&&(p[`${o.infoClass}`]=!0),p}),M=n.computed(()=>{const p={};return v&&v.value==="top"||!P()?p["padding-left"]="0px":R&&R.value&&(p["padding-left"]=pe(R.value)),p}),H=n.ref();let z="";n.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([p,L,F,ee])=>{H.value&&(p&&!he(L)?z?r.show(H.value,L,{...ee,id:z,type:F},!0):z=r.show(H.value,L,{...ee,type:F},!0):r.hide(z))});let k=null;const Y=()=>{k||!H.value||(k=new IntersectionObserver(p=>{let L=!1;for(let F of p)if(F.intersectionRatio>0){L=!0,L&&a.emit("appear",F);break}L||a.emit("disappear")}),k.observe(H.value))},Z=()=>{!k||!H.value||(k.unobserve(H.value),k=null)};n.watch(()=>ce(o.appearListen),p=>{p?Y():Z()}),n.onMounted(()=>{ce(o.appearListen)&&Y()}),n.onUnmounted(Z);const le=()=>{if(!P())return null;const p=[],L=a.slots?.label?.()??o.label,F={class:N.value},ee=n.h("div",F,[L]);if(p.push(ee),a.slots.fixedPreTip){const ie=a.slots.fixedPreTip();p.push(ie)}const re={class:B.value,style:I.value};return n.h("div",re,p)},G=()=>{const p=[];if(a.slots.prepend){const F=a.slots.prepend();p.push(F)}if(a.slots.default){const F=a.slots.default();p.push(F)}if(a.slots.append){const F=a.slots.append();p.push(F)}if(a.slots.fixedTip){const F={class:[`${m}__fixed-tip`]},ee=n.h("div",F,[a.slots.fixedTip()]);p.push(ee)}const L={ref:H,class:y.value,style:j.value};return n.h("div",L,p)},U=()=>{const p=te.value;return p?typeof p=="function"?n.h("div",{class:"fox-item__tip--icon"},[p()]):n.h("div",{class:"fox-item__tip--icon"},[n.h(p)]):null},D=()=>{const p=A.value;return p?typeof p=="function"?n.h("div",{class:"fox-item__tip--text"},[p()]):n.h("div",{class:"fox-item__tip--text"},[p]):null},K=()=>{if(!J())return null;const p=[],L=U();L&&p.push(L);const F=D();F&&p.push(F);const ee={class:W.value,style:M.value};return n.h("div",ee,p)},E=()=>a.slots?.hide?.()??null;return()=>{const p=[],L=[],F=le();F&&L.push(F);const ee=G();ee&&L.push(ee);const re={class:V.value},ie=n.h("div",re,L);p.push(ie);const fe=K();fe&&p.push(fe);const me=E();me&&p.push(me);const be={class:C.value,style:w.value,prop:o.prop};return n.h("div",be,p)}}}}const{componentName:ss,create:us,scope:cs}=se("item"),ke=us(is(ss,cs,Ce,!1)),cl={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function fs(e,l){return{props:{...cl},setup(r,t){const o=ct(),a=Sn();Tn(!1);const i=n.computed(()=>a&&o?Cn(o,!1).value:null),u=e,s=n.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),c=n.computed(()=>{const m={};if(r.width)r.width!=="auto"&&(m.width=pe(r.width));else{const h=a&&o?$n(o,!1):null;if(i.value&&h)if(i.value.type==="grid"){const C=kn(h,i.value,r.span,r.offset);Object.assign(m,C)}else if(i.value.type==="flow"){const C=Nn(h,i.value,r.span,r.offset,r.width);Object.assign(m,C)}else return r.width&&(m.width=pe(r.width)),m}return m});return()=>{const m={class:s.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?n.h("div",m,t.slots.default()):n.h("div",m)}}}}const{componentName:ds,create:hs}=se("slot-item"),Pn=hs(fs(ds)),fl={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function ms(e,l){return{props:{...fl},setup(r,t){const o=e,a=n.computed(()=>({[o]:!0,[`${o}__stretch`]:r.span==="stretch",[`${o}__${r.align}`]:!0})),i=ct(),u=Sn();Tn(!1);const s=n.computed(()=>{const c={};if(r.width)r.width!=="auto"&&(c.width=pe(r.width));else if(u&&i){const m=Cn(i,!1),h=$n(i,!1);if(m.value&&h)if(m.value.type==="grid"){const C=kn(h,m.value,r.span,r.offset);Object.assign(c,C)}else if(m.value.type==="flow"){const C=Nn(h,m.value,r.span,r.offset,r.width);Object.assign(c,C)}else r.width&&(c.width=pe(r.width))}return r.gutter&&(c.gap=pe(r.gutter)),c});return()=>{const c=[];if(t.slots.default){const h=t.slots.default();if(r.divide)for(let C=0;C<h.length;C++){if(C>0){const b=n.h("div",{class:{[`${o}__divide`]:!0}});c.push(b)}c.push(h[C])}else Reflect.apply([].push,c,h)}const m={class:a.value,style:s.value};return n.h("div",m,c)}}}}const{componentName:gs,create:vs}=se("row-item"),In=vs(ms(gs));function ps(e,l){const r=document.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);const t=r.getBoundingClientRect().width;if(t>0){l(t);return}e.classList.add("is-selectable"),setTimeout(()=>{r.setStart(e,0),r.setEnd(e,e.childNodes.length);const o=r.getBoundingClientRect().width;e.classList.remove("is-selectable"),l(o)},500)}const ys={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function bs(e,l,r,t=!1){return{props:{...ys},emits:["click"],setup(o,a){const i=n.ref(null),u=n.computed(()=>{const g={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(g[`${e}--${o.type??"default"}`]=!0),o.size&&(g[`${e}--${o.size}`]=!0),g}),s=n.computed(()=>{const g={},V=o.textColor??o.color;return V&&(g.color=V),g}),c=(g,V)=>{let B=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const R=o.highlightFilter;if(g.indexOf(R)!==-1){const N=g.replace(new RegExp(R,"g"),`<span>${R}</span>`);V.innerHTML=N,V.class["is-highlight"]=!0,B=n.h(o.tag,V)}}else if(typeof o.highlightFilter=="function"){const R=o.highlightFilter(g);R&&(V.innerHTML=R,V.class["is-highlight"]=!0,B=n.h(o.tag,V))}return B},m=g=>{a.emit("click",g)};let h="";const C=()=>{const g=i.value;if(!g)return;const V=g.clientWidth;ps(g,B=>{const R=g.innerHTML??"";he(R)||B<V||(h?r?.show(g,R,{type:"text",id:h,showArrow:o.showArrow},!0):h=r?.show(g,R,{type:"text",showArrow:o.showArrow},!0)??"")})},b=()=>{h&&r?.hide(h)};let w=null;const d=g=>{w||(w=setTimeout(()=>{C(),w=null},o.showAfter??0))},f=g=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{b()},o.hideAfter??0)},P=()=>{const g=i.value;g&&(g.addEventListener("mouseover",d),g.addEventListener("mouseleave",f))},v=()=>{const g=i.value;g&&(g.removeEventListener("mouseover",d),g.removeEventListener("mouseleave",f))};return n.onMounted(()=>{!ce(o.showOverflowTooltip)||!r||P()}),n.onBeforeUnmount(()=>{!ce(o.showOverflowTooltip)||!r||v()}),()=>{const g={onClick:m,class:u.value,style:s.value,ref:i};let V=null;if(ce(o.numberFormat)&&typeof a.slots.default=="function"){const N=a.slots.default();if(Array.isArray(N)&&N.length===1){const y=N[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const j=$e(o.digits),$=$e(o.decimalLength),q=ce(o.autoPadding);let Q=`${N[0].children}`,x=Q.split("").reverse().join("");x=dn(x,$,q,j,o.separator),Q=x.split("").reverse().join(""),o.highlightFilter!==void 0&&(V=c(Q,g)),V||(g.innerHTML=Q,V=n.h(o.tag,g))}}}else{if(o.highlightFilter!==void 0&&typeof a.slots.default=="function"){const N=a.slots.default();if(Array.isArray(N)&&N.length===1){const y=N[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const j=`${N[0].children}`;V=c(j,g),V||(g.innerHTML=j,V=n.h(o.tag,g))}}}V||(V=n.h(o.tag,g,{default:a.slots.default}))}if(!o.mark&&!a.slots.mark)return V;const R=[];if(a.slots.mark){const N={[`${e}__mark-wrap`]:!0};o.type&&(N[`${e}__mark-wrap--${o.type}`]=!0);const y={},j=o.color;j&&(y.color=j);const $={onClick:m,class:N,style:y},q=n.h("view",$,{default:a.slots.mark});R.push(q)}else{const N={[`${e}__mark`]:!0};o.type&&(N[`${e}__mark--${o.type??"default"}`]=!0);const y={},j=o.color;j&&(y["background-color"]=j);const $={onClick:m,class:N,style:y},q=n.h("view",$);R.push(q)}if(o.divide){const N=n.h("div",{class:{[`${e}__divide`]:!0}});R.push(N)}R.push(V);const I={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return n.h("view",I,R)}}}}const{componentName:xs,create:ws,scope:Ss}=se("text"),On=ws(bs(xs,Ss,Ce,!1)),Ts={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function Cs(e,l,r=!1){return{props:{...Ts},emits:["update:visible"],setup(t,{emit:o,slots:a,expose:i}){const u=n.ref({top:null,right:null,bottom:null,left:null}),s=n.ref(0),c=n.ref(0),m=n.ref(0),h=n.ref(0),C=n.ref(t.placement),b=n.ref(!1),w=n.ref(!1),d=n.ref(null),f=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,P=(A,te,W,M,H,z,k,Y=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,G=A.split("-");let U=[];Y?G[0]==="top"?U=["top","bottom","right","left"]:G[0]==="bottom"?U=["bottom","top","right","left"]:G[0]==="left"?U=["left","top","bottom","right"]:G[0]==="right"&&(U=["right","top","bottom","left"]):U=[A[0]];const D={top:null,right:null,bottom:null,left:null},K=[];for(let E=0;E<U.length;E++){const p=U[E];if(K[0]=p,G[1]&&(K[1]=G[1]),p==="top"){const L=W-k-t.arrowSize/2-t.offset;if(L>=0){D.top=L;let F=0;G[1]==="start"?F=te:G[1]==="end"?F=te+M-z:F=te+M/2-z/2;const ee=Z-F-z;ee<0?(F+=ee,g.value=-ee):g.value=0,D.left=F<0?0:F;break}}else if(p==="bottom"){const L=W+H+t.arrowSize/2+t.offset;if(L+k<=le){D.top=L;let F=0;G[1]==="start"?F=te:G[1]==="end"?F=te+M-z:F=te+M/2-z/2;const ee=Z-F-z;ee<0?(F+=ee,g.value=-ee):g.value=0,D.left=F<0?0:F;break}}else if(p==="left"){const L=te-z-t.arrowSize/2-t.offset;if(L>=0){D.left=L;let F=0;G[1]==="start"?F=W:G[1]==="end"?F=W+H-k:F=W+H/2-k/2,D.top=F<0?0:F;break}}else if(p==="right"){const L=te+M+t.arrowSize/2+t.offset;if(L+z<=Z){D.left=L;let F=0;G[1]==="start"?F=W:G[1]==="end"?F=W+H-k:F=W+H/2-k/2,D.top=F<0?0:F;break}}}return{bestPlacement:K.join("-"),bestInsetRect:D}},v=()=>{const A=t.visible,te=t.autoFit;if(!ut||A===!1)return;if(t.reference){const k=f(),Y=Il(k);s.value=Y.x,c.value=Y.y,m.value=k.offsetWidth,h.value=k.offsetHeight}else t.referenceInset&&(s.value=t.referenceInset.left,c.value=t.referenceInset.top,m.value=t.referenceInset.right-t.referenceInset.left,h.value=t.referenceInset.bottom-t.referenceInset.top);const W=d.value.offsetWidth,M=d.value.offsetHeight,{bestPlacement:H,bestInsetRect:z}=P(t.placement,s.value,c.value,m.value,h.value,W,M,te);C.value=H,u.value=z},g=n.ref(0),V=Ke(()=>{v()},10),B=n.ref(t.visible);n.watch([()=>t.visible],([A])=>{B.value=A,A?(b.value=A,setTimeout(()=>{v(),w.value=!0},0)):w.value=!1});const R=n.computed(()=>B.value&&I.value),I=n.ref(!0),N=Ke(A=>{const te=A[0];te&&(I.value=te.isIntersecting)},10),y=new IntersectionObserver(N);n.watch([()=>t.reference,()=>t.referenceInset],([A,te],[W,M])=>{!A&&!te||(setTimeout(()=>{v()},0),t.autoFit&&(W&&(Vt.unwatch(W,V),y.unobserve(W)),A&&(Vt.watch(A,V),y.observe(A))))},{immediate:!0}),n.onBeforeUnmount(()=>{t.reference&&(Vt.unwatch(t.reference,V),y.unobserve(t.reference),y.disconnect())});const j=n.computed(()=>{const A={[e]:!0};return C.value.startsWith("top")?A["is-top"]=!0:C.value.startsWith("right")?A["is-right"]=!0:C.value.startsWith("bottom")?A["is-bottom"]=!0:C.value.startsWith("left")&&(A["is-left"]=!0),A[`is-${t.effect}`]=!0,!w.value&&R.value&&(A["is-opacity"]=!0),w.value&&R.value&&(A["is-show"]=!0),R.value||(A["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(A[`${t.customClass}`]=!0),A}),$=n.computed(()=>{const A={};return u.value.top!==null&&(A.top=`${u.value.top}px`),u.value.right!==null&&(A.right=`${u.value.right}px`),u.value.bottom!==null&&(A.bottom=`${u.value.bottom}px`),u.value.left!==null&&(A.left=`${u.value.left}px`),t.width&&(A.width=t.width),t.zIndex&&(A["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(A,t.customStyle),A}),q=()=>{B.value=!1,o("update:visible",!1)},Q=()=>{if(!t.showOverlay)return null;const A={class:`${e}__overlay`,onClick:q};return n.h("div",A)},x=()=>{let A=null;return a.title?A=n.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(A=n.h("div",{class:`${e}__title`},[t.title])),A},S=n.computed(()=>({[`${e}__arrow`]:!0})),O=n.computed(()=>{const A={};return t.showArrow?(A.width=`${t.arrowSize}px`,A.height=`${t.arrowSize}px`,C.value==="top"?(A.left="50%",A.bottom="0",A.transform="translate(-50%, 50%)"):C.value==="top-start"?(A.left=`${t.arrowOffset+g.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):C.value==="top-end"?(A.right=`${t.arrowOffset-g.value}px`,A.bottom="0",A.transform="translate(-50%, 50%)"):C.value==="right"?(A.left="0",A.top="50%",A.transform="translate(-50%, -50%)"):C.value==="right-start"?(A.left="0",A.top=`${t.arrowOffset}px`,A.transform="translate(-50%, 50%)"):C.value==="right-end"?(A.left="0",A.bottom=`-${t.arrowOffset}px`,A.transform="translate(-50%, 50%)"):C.value==="bottom"?(A.left="50%",A.top="0",A.transform="translate(-50%, -50%)"):C.value==="bottom-start"?(A.left=`${t.arrowOffset+g.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):C.value==="bottom-end"?(A.right=`${t.arrowOffset-g.value}px`,A.top="0",A.transform="translate(-50%, -50%)"):C.value==="left"?(A.right="0",A.top="50%",A.transform="translate(50%, -50%)"):C.value==="left-start"?(A.right="0",A.top=`${t.arrowOffset}px`,A.transform="translate(50%, -50%)"):C.value==="left-end"&&(A.right="0",A.bottom=`-${t.arrowOffset}px`,A.transform="translate(50%, -50%)"),A):{display:"none"}}),_=()=>{const A={class:S.value,style:O.value};return n.h("div",A)},X=()=>{B.value===!1&&(b.value=!1)},J=A=>{if(!d.value||B.value===!1)return;const{relatedTarget:te}=A;d.value.contains(te)||(B.value=!1,o("update:visible",!1))};return i({doLayout:v}),()=>{if(!b.value)return null;const A=[],te=Q();te&&A.push(te);const W=[],M=x();if(M&&W.push(M),a.default){const Z=a.default();W.push(Z)}const H=_();H&&W.push(H);const z={ref:d,class:j.value,style:$.value,onAnimationend:X};t.leaveHide&&(z.onMouseleave=J);const k=n.h("div",z,{default:()=>W});return A.push(k),n.h(n.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>A})}}}}const{componentName:$s,create:Ns,scope:ks}=se("popover-dialog"),Dn=Ns(Cs($s,ks,!1)),Es={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function Ps(e,l,r){return{props:{...fl,...Es},emits:["click"],setup(t,{slots:o,attrs:a}){const{toLocaleRefs:i}=Me.useFoxI18n(l),u=i(t,["moreText"]),s=e,c=n.computed(()=>({[s]:!0}));function m(R){return R.props||{}}function h(R){return!!m(R).disabled}function C(R){return R.children??[]}const b=n.ref(),w=n.computed(()=>b.value?.$el??null),d=n.ref(!1),f=R=>{d.value=R},P=()=>{d.value=!d.value};function v(R,I){return()=>{if(I)return;d.value=!1,m(R)?.onClick?.()}}function g(R,I){const N=C(R),y=h(R),j=v(R,y),$=[`${s}__dropdown-item`];y&&$.push("is-disabled");const q={class:$,onClick:j};return n.h("span",q,N)}const V=R=>{const I=t.maxDisplayCount??R.length;if(I>=R.length)return R;const N=[],y=I-1;for(let O=0;O<y;O++)N.push(R[O]);const j=(o.moreIcon&&o.moreIcon())??(t.moreIcon&&n.h(t.moreIcon))??n.h(r),$={ref:O=>b.value=O,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:t.type,onClick:P},q=n.h(On,$,{default:()=>u.moreText.value,mark:()=>j});N.push(q);const Q=[];for(let O=y;O<R.length;O++){const _=g(R[O]);Q.push(_)}const x={placement:t.dropdownPlacement,"onUpdate:visible":f,visible:d.value,reference:w.value,"custom-class":`${s}__popover`},S=n.h(Dn,x,{default:()=>Q});return N.push(S),N},B=()=>(o.default?.()||[]).filter(I=>I.type!==Comment);return()=>{const R=B(),I=V(R),N=St(t,fl);return Object.assign(N,a??{}),N.class=c.value,n.h(In,N,{default:()=>I})}}}}const{componentName:Is,create:Os,scope:Ds}=se("buttons-item"),Ol=Os(Ps(Is,Ds,De.ArrowDown)),Je=(e={})=>{if(!e)return{};const l={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(l[t]=e[t])}),l},Sr={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 Vs(e,l,r){return{props:{...Ne,...Re,...Sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(!1),b=ge(t,"modelValue",null,c),w=e,d=n.computed(()=>({[w]:!0,[`${w}__disabled`]:i.value,[`${w}__readonly`]:s.value})),f=S=>{b.value=S,c("update:modelValue",S),c("input",S)},P=S=>{c("change",S)};let v=ge(t,"hintText"),g=n.ref(!1);const V=S=>{let _=S.target.value;C.value=!0,he(v.value)||(g.value=!0),c("focus",_,S)},B=S=>{setTimeout(()=>{g.value&&(g.value=!1),C.value=!1},0);let _=S.target.value;t.maxLength&&_.length>Number(t.maxLength)&&(_=_.slice(0,Number(t.maxLength))),c("blur",_,S)},R=()=>{c("clear","")},I=n.ref(!1);let N=null;const y=()=>{t.showTooltip&&I.value===!1&&(N&&clearTimeout(N),N=setTimeout(()=>{I.value=!0},150))},j=()=>{N&&(clearTimeout(N),I.value=!1,N=null)},$=n.computed(()=>I.value||g.value),q=n.computed(()=>I.value?b.value:v.value),Q=n.computed(()=>Lt(t.unit)>0),x=n.ref();return Te({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()},setDisabled:S=>{a.value=S},setReadonly:S=>{u.value=S}}),()=>{const O={...Je(o.attrs),ref:x,class:d.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:R,onChange:P,onInput:f,onFocus:V,onBlur:B,onMouseover:y,onMouseleave:j},_={};o.slots.prepend&&(_.prepend=o.slots.prepend),o.slots.append&&(_.append=o.slots.append),o.slots.prefix&&(_.prefix=o.slots.prefix),o.slots.suffix?_.suffix=o.slots.suffix:Q.value&&(_.suffix=()=>[t.unit]);const X=[],J=n.h(T.ElInput,O,_);X.push(J);const A={default:()=>X};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const W={...Ve(t,Sr),hintText:q.value,hintVisible:$.value};return t.prop&&(W.prop=`${t.prop}_item`),n.h(r,W,A)}}}}const{componentName:Rs,create:Fs,scope:As}=se("input-item"),Dl=Fs(Vs(Rs,As,ke));function it(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Ft(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function sa(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}function Ms(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let Ls=class{proxy;constructor(l){this.proxy=l}async load(l,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=He(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await o(r,t))}};function Bs(){const e=n.getCurrentInstance();return new Ls(e.proxy)}function ua(e,l,r){const t=it(e,l),o=it(e,r);if(t!==o)return!1;const a=Ft(e,l),i=Ft(e,r);return a===i}function ca(e,l,r,t){if(t.length===0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];return l.forEach(a=>{for(let i of t){const u=sa(e,i);if(Array.isArray(u)&&u.length>0){const s=ca(e,a,r,u)??[];Reflect.apply([].push,o,s)}else{let s=!1;if(r==="text")s=it(e,i)===a;else if(r==="item")s=ua(e,i,a);else{let c=Ft(e,i);c==null&&(c=it(e,i)),s=c===a}if(s){o.push(i);break}}}}),o}function qs(e){return{text:e,value:e}}const Tr={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function _s(e,l,r){return{props:{...Ne,...Re,...Tr},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(null),b=n.ref([]),w=n.computed(()=>b.value?b.value.map(K=>it(t,K)).join(" "):""),d=(D,K,E,p=!0)=>{if(!E||E.length==0){C.value=D,p&&(c("update:modelValue",D),c("change",D));return}const L=ca(t,D,K,E);if(L===null){if(b.value===null||b.value.length===0)return;C.value=null,b.value=[],p&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let F=!0;if(L.length!==b.value.length)F=!1;else for(let ee=0;ee<L.length;ee++){const re=L[ee],ie=b.value[ee];if(!ua(t,re,ie)){F=!1;break}}if(!F){b.value=L;let ee=[],re=[],ie=[];L.forEach(nt=>{const We=Ft(t,nt),Pe=it(t,nt);ee.push(We),ie.push(Pe),t.valueType==="text"?re.push(Pe):t.valueType==="item"?re.push(nt):re.push(We)});let fe,me,be;ce(t.multiple)?(C.value=ee,fe=n.toRaw(re),me=ie,be=n.toRaw(L)):(C.value=ee[0]??"",fe=n.toRaw(re[0]??""),me=ie[0]??"",be=n.toRaw(L[0])),p&&(c("update:modelValue",fe),c("change",fe,be)),c("update:text",me)}},f=n.ref(null),P=n.ref(null),v=n.computed(()=>P.value??f.value??[]),g=Ae(n.computed(()=>t.appearLoad),"appearLoad",ze.Near,D=>ce(D)),V=Bs(),B=async(D,K)=>{if(D){const E=await V.load("select",D,K);if(E.length>0)if(typeof E[0]=="string"){let F=E.map(ee=>qs(ee));f.value=F}else f.value=E;else f.value=null}};n.watch([()=>t.source,()=>t.params],([D,K])=>{P.value=null,B(D,K)},{immediate:!g.value});let R=!1;const I=()=>{R||(R=!0,B(t.source,t.params))};n.watch([()=>f.value,()=>t.modelValue],([D,K])=>{if($()&&ce(t.multiple)){rt(K,C.value)||(C.value=K);return}d(K,t.valueType,v.value,!1),c("setValue",K)}),t.source||(C.value=t.modelValue);let N=null,y=n.ref(!1);typeof t.remoteMethod=="function"&&(N=async D=>{if(D==null){P.value=null;return}y.value=!0;try{const K=await t.remoteMethod(D);K&&(P.value=K)}catch(K){P.value=null,console.error(K)}y.value=!1});let j=null;typeof t.filterMethod=="function"&&(j=async D=>{if(D==null){P.value=null;return}y.value=!0;try{const K=await t.filterMethod(D,f.value);K&&(P.value=K)}catch(K){P.value=null,console.error(K)}y.value=!1});const $=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",q=n.ref(!1),Q=e,x=n.computed(()=>({[Q]:!0})),S=D=>{t.allowCreate||$()&&ce(t.multiple)?(c("update:modelValue",D),c("change",D),c("update:text",D),C.value=D):d(D,"value",v.value,!0)};let O=ge(t,"hintText"),_=n.ref(!1);const X=D=>{let E=D.target.value;q.value=!0,he(O.value)||(_.value=!0),c("focus",E,D)},J=D=>{setTimeout(()=>{_.value&&(_.value=!1),q.value=!1},0);let E=D.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),Y.value||c("blur",E,D)},A=()=>{c("clear","")},te=n.ref(!1);let W=null;const M=()=>{t.showTooltip&&te.value===!1&&(W&&clearTimeout(W),W=setTimeout(()=>{te.value=!0},150))},H=()=>{W&&(clearTimeout(W),te.value=!1,W=null)},z=n.computed(()=>te.value||_.value),k=n.computed(()=>te.value?w.value:O.value),Y=n.ref(!1),Z=D=>{Y.value=D,c("visible-change",D),D||c("selected")},le=D=>{c("remove-tag",D)},G=(D,K)=>{const E=[];return D.forEach((p,L)=>{const F=sa(t,p);if(Array.isArray(F)&&F.length>0){const ee=G(F,K),re=it(t,p),fe={key:`${re}_${L}`,label:re};E.push(n.h(T.ElOptionGroup,fe,{default:()=>ee}))}else{const ee=Ft(t,p),re=it(t,p),ie=Ms(t,p),me={key:`${ee}_${L}`,label:re,disabled:ie,value:ee};if(typeof K=="function")E.push(n.h(T.ElOption,me,{default:()=>K(p)}));else if(t.optionType==="item"){const be={class:{"fox-select-item__option-left":!0}},nt=n.h("span",be,[ee]),We={class:{"fox-select-item__option-right":!0}},Pe=n.h("span",We,[re]),gt=n.h("div",{class:{"fox-select-item__option":!0}},[nt,Pe]);E.push(n.h(T.ElOption,me,{default:()=>gt}))}else t.optionType==="value"?E.push(n.h(T.ElOption,me,{default:()=>[ee]})):E.push(n.h(T.ElOption,me))}}),E},U=n.ref();return Te({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const K={...Je(o.attrs),ref:U,class:x.value,clearable:t.clearable,multiple:t.multiple,placeholder:h.placeholder.value,disabled:i.value||s.value,modelValue:C.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:A,onChange:S,onFocus:X,onBlur:J,onVisibleChange:Z,onRemoveTag:le};typeof N=="function"&&(K["remote-method"]=N,K.loading=y.value),typeof j=="function"&&(K["filter-method"]=j,K.loading=y.value);const E={};o.slots.prefix&&(E.prefix=o.slots.prefix),o.slots.empty&&(E.empty=o.slots.empty),o.slots.options?E.default=o.slots.options:E.default=()=>G(v.value,o.slots.option);const p=[],L=n.h(T.ElSelect,K,E);p.push(L);const F={default:()=>p};F.label=o.slots.default,F.fixedPreTip=o.slots.fixedPreTip,F.fixedTip=o.slots.fixedTip;const re={...Ve(t,Tr),hintText:k.value,hintVisible:z.value,onMouseover:M,onMouseleave:H};return t.prop&&(re.prop=`${t.prop}_item`),g.value&&(re["appear-listen"]=!0,re.onAppear=I),n.h(r,re,F)}}}}const{componentName:js,create:zs,scope:Hs}=se("select-item"),Vl=zs(_s(js,Hs,ke));function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Ks=Gt.exports,Cr;function Ws(){return Cr||(Cr=1,(function(e,l){(function(r,t){e.exports=t()})(Ks,(function(){var r=1e3,t=6e4,o=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",m="week",h="month",C="quarter",b="year",w="date",d="Invalid Date",f=/^(\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,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var S=["th","st","nd","rd"],O=x%100;return"["+x+(S[(O-20)%10]||S[O]||S[0])+"]"}},g=function(x,S,O){var _=String(x);return!_||_.length>=S?x:""+Array(S+1-_.length).join(O)+x},V={s:g,z:function(x){var S=-x.utcOffset(),O=Math.abs(S),_=Math.floor(O/60),X=O%60;return(S<=0?"+":"-")+g(_,2,"0")+":"+g(X,2,"0")},m:function x(S,O){if(S.date()<O.date())return-x(O,S);var _=12*(O.year()-S.year())+(O.month()-S.month()),X=S.clone().add(_,h),J=O-X<0,A=S.clone().add(_+(J?-1:1),h);return+(-(_+(O-X)/(J?X-A:A-X))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:b,w:m,d:c,D:w,h:s,m:u,s:i,ms:a,Q:C}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},B="en",R={};R[B]=v;var I="$isDayjsObject",N=function(x){return x instanceof q||!(!x||!x[I])},y=function x(S,O,_){var X;if(!S)return B;if(typeof S=="string"){var J=S.toLowerCase();R[J]&&(X=J),O&&(R[J]=O,X=J);var A=S.split("-");if(!X&&A.length>1)return x(A[0])}else{var te=S.name;R[te]=S,X=te}return!_&&X&&(B=X),X||!_&&B},j=function(x,S){if(N(x))return x.clone();var O=typeof S=="object"?S:{};return O.date=x,O.args=arguments,new q(O)},$=V;$.l=y,$.i=N,$.w=function(x,S){return j(x,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var q=(function(){function x(O){this.$L=y(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[I]=!0}var S=x.prototype;return S.parse=function(O){this.$d=(function(_){var X=_.date,J=_.utc;if(X===null)return new Date(NaN);if($.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var A=X.match(f);if(A){var te=A[2]-1||0,W=(A[7]||"0").substring(0,3);return J?new Date(Date.UTC(A[1],te,A[3]||1,A[4]||0,A[5]||0,A[6]||0,W)):new Date(A[1],te,A[3]||1,A[4]||0,A[5]||0,A[6]||0,W)}}return new Date(X)})(O),this.init()},S.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},S.$utils=function(){return $},S.isValid=function(){return this.$d.toString()!==d},S.isSame=function(O,_){var X=j(O);return this.startOf(_)<=X&&X<=this.endOf(_)},S.isAfter=function(O,_){return j(O)<this.startOf(_)},S.isBefore=function(O,_){return this.endOf(_)<j(O)},S.$g=function(O,_,X){return $.u(O)?this[_]:this.set(X,O)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(O,_){var X=this,J=!!$.u(_)||_,A=$.p(O),te=function(le,G){var U=$.w(X.$u?Date.UTC(X.$y,G,le):new Date(X.$y,G,le),X);return J?U:U.endOf(c)},W=function(le,G){return $.w(X.toDate()[le].apply(X.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(G)),X)},M=this.$W,H=this.$M,z=this.$D,k="set"+(this.$u?"UTC":"");switch(A){case b:return J?te(1,0):te(31,11);case h:return J?te(1,H):te(0,H+1);case m:var Y=this.$locale().weekStart||0,Z=(M<Y?M+7:M)-Y;return te(J?z-Z:z+(6-Z),H);case c:case w:return W(k+"Hours",0);case s:return W(k+"Minutes",1);case u:return W(k+"Seconds",2);case i:return W(k+"Milliseconds",3);default:return this.clone()}},S.endOf=function(O){return this.startOf(O,!1)},S.$set=function(O,_){var X,J=$.p(O),A="set"+(this.$u?"UTC":""),te=(X={},X[c]=A+"Date",X[w]=A+"Date",X[h]=A+"Month",X[b]=A+"FullYear",X[s]=A+"Hours",X[u]=A+"Minutes",X[i]=A+"Seconds",X[a]=A+"Milliseconds",X)[J],W=J===c?this.$D+(_-this.$W):_;if(J===h||J===b){var M=this.clone().set(w,1);M.$d[te](W),M.init(),this.$d=M.set(w,Math.min(this.$D,M.daysInMonth())).$d}else te&&this.$d[te](W);return this.init(),this},S.set=function(O,_){return this.clone().$set(O,_)},S.get=function(O){return this[$.p(O)]()},S.add=function(O,_){var X,J=this;O=Number(O);var A=$.p(_),te=function(H){var z=j(J);return $.w(z.date(z.date()+Math.round(H*O)),J)};if(A===h)return this.set(h,this.$M+O);if(A===b)return this.set(b,this.$y+O);if(A===c)return te(1);if(A===m)return te(7);var W=(X={},X[u]=t,X[s]=o,X[i]=r,X)[A]||1,M=this.$d.getTime()+O*W;return $.w(M,this)},S.subtract=function(O,_){return this.add(-1*O,_)},S.format=function(O){var _=this,X=this.$locale();if(!this.isValid())return X.invalidDate||d;var J=O||"YYYY-MM-DDTHH:mm:ssZ",A=$.z(this),te=this.$H,W=this.$m,M=this.$M,H=X.weekdays,z=X.months,k=X.meridiem,Y=function(G,U,D,K){return G&&(G[U]||G(_,J))||D[U].slice(0,K)},Z=function(G){return $.s(te%12||12,G,"0")},le=k||function(G,U,D){var K=G<12?"AM":"PM";return D?K.toLowerCase():K};return J.replace(P,(function(G,U){return U||(function(D){switch(D){case"YY":return String(_.$y).slice(-2);case"YYYY":return $.s(_.$y,4,"0");case"M":return M+1;case"MM":return $.s(M+1,2,"0");case"MMM":return Y(X.monthsShort,M,z,3);case"MMMM":return Y(z,M);case"D":return _.$D;case"DD":return $.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Y(X.weekdaysMin,_.$W,H,2);case"ddd":return Y(X.weekdaysShort,_.$W,H,3);case"dddd":return H[_.$W];case"H":return String(te);case"HH":return $.s(te,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return le(te,W,!0);case"A":return le(te,W,!1);case"m":return String(W);case"mm":return $.s(W,2,"0");case"s":return String(_.$s);case"ss":return $.s(_.$s,2,"0");case"SSS":return $.s(_.$ms,3,"0");case"Z":return A}return null})(G)||A.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(O,_,X){var J,A=this,te=$.p(_),W=j(O),M=(W.utcOffset()-this.utcOffset())*t,H=this-W,z=function(){return $.m(A,W)};switch(te){case b:J=z()/12;break;case h:J=z();break;case C:J=z()/3;break;case m:J=(H-M)/6048e5;break;case c:J=(H-M)/864e5;break;case s:J=H/o;break;case u:J=H/t;break;case i:J=H/r;break;default:J=H}return X?J:$.a(J)},S.daysInMonth=function(){return this.endOf(h).$D},S.$locale=function(){return R[this.$L]},S.locale=function(O,_){if(!O)return this.$L;var X=this.clone(),J=y(O,_,!0);return J&&(X.$L=J),X},S.clone=function(){return $.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},x})(),Q=q.prototype;return j.prototype=Q,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",h],["$y",b],["$D",w]].forEach((function(x){Q[x[1]]=function(S){return this.$g(S,x[0],x[1])}})),j.extend=function(x,S){return x.$i||(x(S,q,j),x.$i=!0),j},j.locale=y,j.isDayjs=N,j.unix=function(x){return j(1e3*x)},j.en=R[B],j.Ls=R,j.p={},j}))})(Gt)),Gt.exports}var Ys=Ws();const tt=ot(Ys);var Xt={exports:{}},Us=Xt.exports,$r;function Gs(){return $r||($r=1,(function(e,l){(function(r,t){e.exports=t()})(Us,(function(){var r={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},c=function(f){return(f=+f)+(f>68?1900:2e3)},m=function(f){return function(P){this[f]=+P}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=(function(P){if(!P||P==="Z")return 0;var v=P.match(/([+-]|\d\d)/g),g=60*v[1]+(+v[2]||0);return g===0?0:v[0]==="+"?-g:g})(f)}],C=function(f){var P=s[f];return P&&(P.indexOf?P:P.s.concat(P.f))},b=function(f,P){var v,g=s.meridiem;if(g){for(var V=1;V<=24;V+=1)if(f.indexOf(g(V,0,P))>-1){v=V>12;break}}else v=f===(P?"pm":"PM");return v},w={A:[u,function(f){this.afternoon=b(f,!1)}],a:[u,function(f){this.afternoon=b(f,!0)}],Q:[o,function(f){this.month=3*(f-1)+1}],S:[o,function(f){this.milliseconds=100*+f}],SS:[a,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[i,m("seconds")],ss:[i,m("seconds")],m:[i,m("minutes")],mm:[i,m("minutes")],H:[i,m("hours")],h:[i,m("hours")],HH:[i,m("hours")],hh:[i,m("hours")],D:[i,m("day")],DD:[a,m("day")],Do:[u,function(f){var P=s.ordinal,v=f.match(/\d+/);if(this.day=v[0],P)for(var g=1;g<=31;g+=1)P(g).replace(/\[|\]/g,"")===f&&(this.day=g)}],w:[i,m("week")],ww:[a,m("week")],M:[i,m("month")],MM:[a,m("month")],MMM:[u,function(f){var P=C("months"),v=(C("monthsShort")||P.map((function(g){return g.slice(0,3)}))).indexOf(f)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[u,function(f){var P=C("months").indexOf(f)+1;if(P<1)throw new Error;this.month=P%12||P}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(f){this.year=c(f)}],YYYY:[/\d{4}/,m("year")],Z:h,ZZ:h};function d(f){var P,v;P=f,v=s&&s.formats;for(var g=(f=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(j,$,q){var Q=q&&q.toUpperCase();return $||v[q]||r[q]||v[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,S,O){return S||O.slice(1)}))}))).match(t),V=g.length,B=0;B<V;B+=1){var R=g[B],I=w[R],N=I&&I[0],y=I&&I[1];g[B]=y?{regex:N,parser:y}:R.replace(/^\[|\]$/g,"")}return function(j){for(var $={},q=0,Q=0;q<V;q+=1){var x=g[q];if(typeof x=="string")Q+=x.length;else{var S=x.regex,O=x.parser,_=j.slice(Q),X=S.exec(_)[0];O.call($,X),j=j.replace(X,"")}}return(function(J){var A=J.afternoon;if(A!==void 0){var te=J.hours;A?te<12&&(J.hours+=12):te===12&&(J.hours=0),delete J.afternoon}})($),$}}return function(f,P,v){v.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(c=f.parseTwoDigitYear);var g=P.prototype,V=g.parse;g.parse=function(B){var R=B.date,I=B.utc,N=B.args;this.$u=I;var y=N[1];if(typeof y=="string"){var j=N[2]===!0,$=N[3]===!0,q=j||$,Q=N[2];$&&(Q=N[2]),s=this.$locale(),!j&&Q&&(s=v.Ls[Q]),this.$d=(function(_,X,J,A){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*_);var te=d(X)(_),W=te.year,M=te.month,H=te.day,z=te.hours,k=te.minutes,Y=te.seconds,Z=te.milliseconds,le=te.zone,G=te.week,U=new Date,D=H||(W||M?1:U.getDate()),K=W||U.getFullYear(),E=0;W&&!M||(E=M>0?M-1:U.getMonth());var p,L=z||0,F=k||0,ee=Y||0,re=Z||0;return le?new Date(Date.UTC(K,E,D,L,F,ee,re+60*le.offset*1e3)):J?new Date(Date.UTC(K,E,D,L,F,ee,re)):(p=new Date(K,E,D,L,F,ee,re),G&&(p=A(p).week(G).toDate()),p)}catch{return new Date("")}})(R,y,I,v),this.init(),Q&&Q!==!0&&(this.$L=this.locale(Q).$L),q&&R!=this.format(y)&&(this.$d=new Date("")),s={}}else if(y instanceof Array)for(var x=y.length,S=1;S<=x;S+=1){N[1]=y[S-1];var O=v.apply(this,N);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}S===x&&(this.$d=new Date(""))}else V.call(this,B)}}}))})(Xt)),Xt.exports}var Xs=Gs();const Qs=ot(Xs);var Qt={exports:{}},Zs=Qt.exports,Nr;function Js(){return Nr||(Nr=1,(function(e,l){(function(r,t){e.exports=t()})(Zs,(function(){return function(r,t){var o=t.prototype,a=o.format;o.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),m=(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(h){switch(h){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),h==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),h==="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 h}}));return a.bind(this)(m)}}}))})(Qt)),Qt.exports}var eu=Js();const tu=ot(eu);var Zt={exports:{}},nu=Zt.exports,kr;function lu(){return kr||(kr=1,(function(e,l){(function(r,t){e.exports=t()})(nu,(function(){return function(r,t,o){var a=t.prototype,i=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,C,b,w,d){var f=h.name?h:h.$locale(),P=i(f[C]),v=i(f[b]),g=P||v.map((function(B){return B.slice(0,w)}));if(!d)return g;var V=f.weekStart;return g.map((function(B,R){return g[(R+(V||0))%7]}))},s=function(){return o.Ls[o.locale()]},c=function(h,C){return h.formats[C]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,d,f){return d||f.slice(1)}))})(h.formats[C.toUpperCase()])},m=function(){var h=this;return{months:function(C){return C?C.format("MMMM"):u(h,"months")},monthsShort:function(C){return C?C.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(C){return C?C.format("dddd"):u(h,"weekdays")},weekdaysMin:function(C){return C?C.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(C){return C?C.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(C){return c(h.$locale(),C)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return m.bind(this)()},o.localeData=function(){var h=s();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(C){return c(h,C)},meridiem:h.meridiem,ordinal:h.ordinal}},o.months=function(){return u(s(),"months")},o.monthsShort=function(){return u(s(),"monthsShort","months",3)},o.weekdays=function(h){return u(s(),"weekdays",null,null,h)},o.weekdaysShort=function(h){return u(s(),"weekdaysShort","weekdays",3,h)},o.weekdaysMin=function(h){return u(s(),"weekdaysMin","weekdays",2,h)}}}))})(Zt)),Zt.exports}var ru=lu();const ou=ot(ru);var Jt={exports:{}},au=Jt.exports,Er;function iu(){return Er||(Er=1,(function(e,l){(function(r,t){e.exports=t()})(au,(function(){var r="week",t="year";return function(o,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=i(this).startOf(t).add(1,t).date(c),h=i(this).endOf(r);if(m.isBefore(h))return 1}var C=i(this).startOf(t).date(c).startOf(r).subtract(1,"millisecond"),b=this.diff(C,r,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(Jt)),Jt.exports}var su=iu();const uu=ot(su);var en={exports:{}},cu=en.exports,Pr;function fu(){return Pr||(Pr=1,(function(e,l){(function(r,t){e.exports=t()})(cu,(function(){return function(r,t){t.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}}))})(en)),en.exports}var du=fu();const hu=ot(du);var tn={exports:{}},mu=tn.exports,Ir;function gu(){return Ir||(Ir=1,(function(e,l){(function(r,t){e.exports=t()})(mu,(function(){return function(r,t,o){t.prototype.dayOfYear=function(a){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}}))})(tn)),tn.exports}var vu=gu();const pu=ot(vu);var nn={exports:{}},yu=nn.exports,Or;function bu(){return Or||(Or=1,(function(e,l){(function(r,t){e.exports=t()})(yu,(function(){return function(r,t){t.prototype.isSameOrAfter=function(o,a){return this.isSame(o,a)||this.isAfter(o,a)}}}))})(nn)),nn.exports}var xu=bu();const wu=ot(xu);var ln={exports:{}},Su=ln.exports,Dr;function Tu(){return Dr||(Dr=1,(function(e,l){(function(r,t){e.exports=t()})(Su,(function(){return function(r,t){t.prototype.isSameOrBefore=function(o,a){return this.isSame(o,a)||this.isBefore(o,a)}}}))})(ln)),ln.exports}var Cu=Tu();const $u=ot(Cu);tt.extend(ou);tt.extend(tu);tt.extend(Qs);tt.extend(uu);tt.extend(hu);tt.extend(pu);tt.extend(wu);tt.extend($u);const _e={format(e,l){return tt(e).format(l)},parser(e,l){return tt(e,l).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,l,r){const o=new Date(e+"/"+l+"/"+r).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,l){let t=new Date(e+"/"+l+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,l){return/^0/.test(l)&&(l=l.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][l]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,l){l=l||"-";const r=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[r,t,o].join(l)},getDay(e,l,r){e=e||0;let t=l??new Date;const o=e*(1e3*60*60*24);return t=new Date(t.getTime()+o),r=r??"YYYY-MM-DD",this.format(t,r)},compareDate(e,l){let r;typeof e=="string"?r=new Date(e.replace("-","/").replace("-","/")):r=e;let t;return typeof l=="string"?t=new Date(l.replace("-","/").replace("-","/")):t=l,!(r>=t)},isEqual(e,l){if(e===l)return!0;if(!e||!l)return!1;let r;typeof e=="string"?r=new Date(e).getTime():r=e;let t;return typeof l=="string"?t=new Date(l).getTime():t=l,r==t},getMonthWeek:function(e,l,r,t=0){const o=new Date(Number(e),parseInt(l)-1,Number(r));let a=o.getDay(),i=o.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,l,r,t=0){const o=new Date(Number(e),parseInt(l)-1,Number(r)),a=new Date(Number(e),0,1),i=Math.round((o.valueOf()-a.valueOf())/864e5);let u=o.getDay(),s=6-u;return t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,l,r,t=0){const o=new Date(Number(e),parseInt(l)-1,Number(r)),a=o.getTime();let i=o.getDay();if(t===0){const s=a-i*864e5,c=a+(6-i)*864e5,m=this.date2Str(new Date(s)),h=this.date2Str(new Date(c));return[m,h]}else{i=i==0?7:i;const u=1440*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,m=this.date2Str(new Date(s)),h=this.date2Str(new Date(c));return[m,h]}},formatResultDate:function(e){let l=[...e.split("-")];return l[2]=_e.getNumTwoBit(Number(l[2])),l[3]=`${l[0]}-${l[1]}-${l[2]}`,l[4]=_e.getWhatDay(+l[0],+l[1],+l[2]),l},inScope4Day(e,l,r){const t=new Date(new Date(l).setDate(l.getDate()+r)),o=e.getTime(),a=t.getTime(),i=l.getTime();return a>i?o>=i&&o<=a:o>=a&&o<=i},inScope4Month(e,l,r){const t=new Date(new Date(l).setMonth(l.getMonth()+r)),o=e.getTime(),a=t.getTime(),i=l.getTime();return a>i?o>=i&&o<=a:o>=a&&o<=i}},Vr={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Rr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Nu(e,l,r){return{props:{...Ne,...Re,...Vr,...Rr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(!1),b=ge(t,"modelValue",null,c),w=n.computed(()=>_.value&&Array.isArray(b.value)&&b.value.length==2?b.value[0]:b.value),d=n.computed(()=>_.value?"longTermKey":"normalKey"),f=U=>{if(_.value&&t.type==="daterange"){const D=[...b.value];D[0]=U,b.value=D}else b.value=U;c("update:modelValue",b.value),c("change",b.value)},P=n.computed(()=>_.value&&t.type==="daterange"?"date":t.type),v=e,g=n.computed(()=>({[`${v}`]:!0,"is-long":_.value,"is-readonly":s.value,"is-disabled":i.value}));let V=ge(t,"hintText"),B=n.ref(!1);const R=U=>{let K=U.target.value;C.value=!0,he(V.value)||(B.value=!0),c("focus",K,U)},I=U=>{setTimeout(()=>{B.value&&(B.value=!1),C.value=!1},0);let K=U.target.value;t.maxLength&&K.length>Number(t.maxLength)&&(K=K.slice(0,Number(t.maxLength))),c("blur",K,U)},N=()=>{c("clear","")},y=U=>{c("calendar-change",U)},j=(U,D,K)=>{c("panel-change",U,D,K)},$=U=>{c("visible-change",U)},q=Ae(n.computed(()=>t.longTermText),"longTermText",ze.Near),Q=Ae(n.computed(()=>t.longTermActionLabel),"longTermActionLabel",ze.Near),x=Ae(n.computed(()=>t.longTermValue),"longTermValue",ze.Near),S=Ae(n.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",ze.Near);let O=null;const _=n.ref(ce(t.longTerm)),X=U=>{if(_.value=U,c("update:longTerm",U),U){if(O=b.value,t.type==="daterange"){const D=[];Array.isArray(x.value)?(D[0]=b.value?b.value[0]??x.value[0]:null,D[1]=x.value[1]??x.value[0]):(D[0]=b.value?b.value[0]??x.value:null,D[1]=_.value),D[0]||(D[0]=t.valueFormat?_e.format(new Date,t.valueFormat):new Date),D[1]||(D[1]=t.valueFormat?_e.format(new Date,t.valueFormat):new Date),b.value=D}else Array.isArray(x.value)?b.value=x.value[1]??x.value[0]:b.value=x.value,b.value||(b.value=t.valueFormat?_e.format(new Date,t.valueFormat):new Date);c("update:modelValue",b.value)}else{if(t.type==="daterange"){const D=[];D[0]=Array.isArray(b.value)?b.value[0]:b.value,Array.isArray(O)?D[1]=O[1]:D[1]=O,D[0]||(D[0]=t.valueFormat?_e.format(new Date,t.valueFormat):new Date),D[1]||(D[1]=t.valueFormat?_e.format(new Date,t.valueFormat):new Date),b.value=D}else b.value=O;c("update:modelValue",b.value),setTimeout(()=>{le()},100)}},J=ce(t.isLongTerm);if(J){const U=()=>{if(_.value===!0){if(O=b.value,t.type==="daterange"){const D=[b.value[0]];Array.isArray(x.value)?D[1]=x.value[1]??x.value[0]:D[1]=_.value,D[0]||(D[0]=t.valueFormat?_e.format(new Date,t.valueFormat):new Date),D[1]||(D[1]=t.valueFormat?_e.format(new Date,t.valueFormat):new Date),b.value=D}else b.value=x.value;c("update:modelValue",b.value)}else rt(x.value,b.value)&&(_.value=!0)};U(),n.watch([()=>t.longTerm],([D])=>{_.value!==D&&U()}),n.watch([()=>b.value],([D])=>{let K=!1;if(t.type==="daterange"&&Array.isArray(D))try{let E=D[1];if(!E)return;if(D[0]==null){c("update:modelValue",[]);return}typeof E!="string"&&t.valueFormat&&(E=_e.format(E,t.valueFormat));let p=Array.isArray(x.value)?x.value[1]:x.value;(E===p||Array.isArray(S.value)&&S.value.findIndex(F=>E==F)!==-1)&&(K=!0)}catch(E){console.error(E)}_.value!==K&&(_.value=K)},{immediate:!0})}const A=n.computed(()=>({"fox-date-item__long":!0,"is-active":C.value})),te=n.ref(),W=n.ref(),M=/^\d+$/,H=(U,D)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(U,D):M.test(U)&&U.length===t.flashFillThreshold,z=(U,D)=>{let K;if(typeof t.flashFillFormat=="function")K=t.flashFillFormat(U,D);else{const p=t.flashFillFormat??"YYYYMMDD";K=_e.parser(U,p)}const E=t.valueFormat??"YYYY-MM-DD";return _e.format(K,E)},k=U=>U?U.endsWith("range"):!1,Y=U=>{if(!U.target)return;const D=U.target.value??"";if(H(D,t.type)){const K=z(D,t.type);if(k(t.type)){const E=Array.isArray(b.value)?[...b.value]:[];E[0]=K,f(E)}else f(K)}},Z=U=>{if(!U.target)return;const D=U.target.value??"";if(H(D,t.type)){const K=z(D,t.type);if(k(t.type)){const E=Array.isArray(b.value)?[...b.value]:[];E[1]=K,f(E)}else f(K)}},le=()=>{if(t.flashFill&&te.value&&te.value.$el)if(k(t.type)){const U=te.value.$el.querySelectorAll("input.el-range-input");U[0]&&U[0].addEventListener("input",Y),U[1]&&U[1].addEventListener("input",Z)}else{const U=te.value.$el.querySelector("input.el-input__inner");U&&U.addEventListener("input",Y)}},G=()=>{if(t.flashFill&&te.value&&te.value.$el)if(k(t.type)){const U=te.value.$el.querySelectorAll("input.el-range-input");U[0]&&U[0].removeEventListener("input",Y),U[1]&&U[1].removeEventListener("input",Z)}else{const U=te.value.$el.querySelector("input.el-input__inner");U&&U.removeEventListener("input",Y)}};return n.onMounted(le),n.onBeforeUnmount(G),Te({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},handleOpen:()=>{W?.value.handleOpen()},handleClose:()=>{W?.value.handleClose()},setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const D={...o.attrs,key:d.value,type:P.value,ref:W,class:g.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":f,onClear:N,onFocus:R,onBlur:I,onCalendarChange:y,onPanelChange:j,onVisibleChange:$},K={};o.slots["range-separator"]&&(K["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(K.default=o.slots.cell);const E=[],p=n.h(T.ElDatePicker,D,K);E.push(p);const L={default:()=>E};if(L.label=o.slots.default,L.fixedPreTip=o.slots.fixedPreTip,L.fixedTip=o.slots.fixedTip,J){if(_.value){const ie=n.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=n.h("input",{class:["fox-date-item__long-text"],value:q.value,readonly:!0}),me={class:A.value},be=n.h("div",me,{default:()=>[ie,fe]});E.push(be)}if(!s.value&&!i.value){const ie={label:Q.value||q.value,disabled:s.value||i.value,modelValue:_.value,"onUpdate:modelValue":X},fe=n.h(T.ElCheckbox,ie),me=n.h("div",{class:{[`${v}__append`]:!0}},[fe]);L.append=()=>me}}const ee={...Ve(t,Vr,Rr),ref:te,class:{[`${v}__wrapper`]:!0,"has-append":J},hintText:V.value,hintVisible:B.value};return t.prop&&(ee.prop=`${t.prop}_item`),n.h(r,ee,L)}}}}const{componentName:ku,create:Eu,scope:Pu}=se("date-item"),Rl=Eu(Nu(ku,Pu,ke)),Fr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Iu(e,l,r){return{props:{...Ne,...Re,...Fr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(!1),b=ge(t,"modelValue",null,c),w=e,d=n.computed(()=>({[w]:!0})),f=N=>{b.value=N,c("update:modelValue",N),c("change",N)};let P=ge(t,"hintText"),v=n.ref(!1);const g=N=>{let j=N.target.value;C.value=!0,he(P.value)||(v.value=!0),c("focus",j,N)},V=N=>{setTimeout(()=>{v.value&&(v.value=!1),C.value=!1},0);let j=N.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,N)},B=()=>{c("clear","")},R=N=>{c("visible-change",N)},I=n.ref();return Te({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const y={...o.attrs,ref:I,class:d.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":f,onClear:B,onFocus:g,onBlur:V,onVisibleChange:R},j={},$=[],q=n.h(T.ElTimePicker,y,j);$.push(q);const Q={default:()=>$};Q.label=o.slots.default,Q.fixedPreTip=o.slots.fixedPreTip,Q.fixedTip=o.slots.fixedTip;const S={...Ve(t,Fr),hintText:P.value,hintVisible:v.value};return t.prop&&(S.prop=`${t.prop}_item`),n.h(r,S,Q)}}}}const{componentName:Ou,create:Du,scope:Vu}=se("time-item"),Fl=Du(Iu(Ou,Vu,ke)),Ar={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ru(e,l,r){return{props:{...Ne,...Re,...Ar},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(!1),b=ge(t,"modelValue",null,c),w=e,d=n.computed(()=>({[w]:!0})),f=I=>{b.value=I,c("update:modelValue",I),c("change",I)};let P=ge(t,"hintText"),v=n.ref(!1);const g=I=>{let y=I.target.value;C.value=!0,he(P.value)||(v.value=!0),c("focus",y,I)},V=I=>{setTimeout(()=>{v.value&&(v.value=!1),C.value=!1},0);let y=I.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),c("blur",y,I)},B=()=>{c("clear","")},R=n.ref();return Te({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const N={...o.attrs,ref:R,class:d.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":f,onClear:B,onFocus:g,onBlur:V},y={},j=[],$=n.h(T.ElTimeSelect,N,y);j.push($);const q={default:()=>j};q.label=o.slots.default,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const x={...Ve(t,Ar),hintText:P.value,hintVisible:v.value};return t.prop&&(x.prop=`${t.prop}_item`),n.h(r,x,q)}}}}const{componentName:Fu,create:Au,scope:Mu}=se("time-select-item"),Al=Au(Ru(Fu,Mu,ke));function Mr(e,l=0){let r=`${e}`,t=r.indexOf(".");if(t==-1)return r;let o=t;for(let a=r.length-1;a>=t;a--)if(r.charAt(a)!="0"){o=a;break}return o-t<l?o=t+l+1:o!=t&&(o+=1),o>r.length?r=r.padEnd(o,"0"):r=r.substring(0,o),r}function Lr(e,l,r=20){if(typeof l=="string"&&(l=$e(l)),l==1||l==-1)return`${e}`;if(l==0)return"0";if(l>0){let t=$o(`${e}`,`${l}`);return Mr(t)}else{let t=vl(`${e}`,No(`${l}`),20);return Mr(t)}}function Lu(e,l=-1,r=!1,t=3,o=","){return dn(e,l,r,t,o)}function Br(e,l,r,t,o=!0){if(e==="")return"";if(e=ko(e),l=$e(l),l==1)return e;if(t)e=Lr(e,l),r&&(e=="0"&&o?e=`${e}.`.padEnd($e(r)+2,"0"):e=vl(e,1,$e(r)));else{let a=-1*l;e=Lr(e,a)}return e}function qr(e,l){let r={maxValid:!0,minValid:!0,message:""};if(l.min!==void 0){let t=ce(l.minInclude),o=ll(e,l.min);if(t&&o==-1||!t&&(o==0||o==-1)){let a="请输入不小于 {0} 的数值";r.message=a.replace("{0}",l.min),r.minValid=!1}}if(l.max!=null){let t=ce(l.maxInclude),o=ll(e,l.max);(t&&o==1||!t&&(o==0||o==1))&&(r.maxValid=!1)}return r}const _r={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 Bu(e,l,r){return{props:{...Ne,...Re,..._r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),m=n.ref(!1),h=ge(t,"modelValue",null,c),C=n.ref("");n.watch([()=>h.value,()=>t.rates,()=>t.precision],([S,O,_])=>{if(he(S)){C.value="";return}const X=Br(S,O,_,!1);C.value!==X&&(C.value=X)},{immediate:!0});const b=n.computed(()=>{let S="";return m.value&&(S=C.value),S}),{t:w}=Me.useFoxI18n(l),d=n.computed(()=>{let S=t.placeholder??"";return!m.value&&!he(C.value)?S=Lu(C.value,t.decimalLength,t.autoPadding,t.digits,t.separator):S=w(["placeholder",S]),S}),f=e,P=n.computed(()=>({[f]:!0,[`${f}__disabled`]:i.value,[`${f}__placeholder`]:C.value.length>0})),v=Ae(n.computed(()=>t.textAlign),"textAlign");n.computed(()=>m.value?{textAlign:"left"}:{textAlign:v.value??"right"});const g=n.ref(""),V=n.computed(()=>{let S=g.value;return he(S)&&(S=t.errorTip??""),S}),B=n.ref(""),R=n.ref(!1),I=(S,O)=>{if(S=`${S}`,he(S)){C.value="",h.value="",O.forEach(_=>{c(_,"")}),ce(t.showTip)&&R.value&&(R.value=!1);return}if(S.length>=2){let _=S;if(_.charAt(0)=="-"&&(_=_.substring(1)),_.length>=2&&_.charAt(0)=="0"&&_.charAt(1)!="."){n.triggerRef(C);return}}if(S!="-"){if(!yl(S)){n.triggerRef(C);return}if(t.integerLength!=-1&&Ao(S)>Number(t.integerLength)){n.triggerRef(C);return}if(t.decimalLength&&t.decimalLength!=-1&&Mo(S)>Number(t.decimalLength)){n.triggerRef(C);return}let _=qr(S,t);if(_.maxValid===!1){g.value=_.message,n.triggerRef(C);return}}else if(t.min!=null&&$e(t.min)>=0){n.triggerRef(C);return}B.value=S,ce(t.showTip)&&(R.value=S.length>0),C.value=S,h.value=Br(S,t.rates,t.precision,!0),O.forEach(_=>{c(_,h.value)})},N=S=>{I(S,["update:modelValue","input"])},y=S=>{I(S,["update:modelValue","change"])},j=S=>{if(m.value=!0,ce(t.showTip)){let O=C.value;he(O)&&(O=t.hintText),he(O)||(B.value=O,R.value=!0)}g.value="",c("focus",h.value,S)},$=S=>{if(setTimeout(()=>{m.value=!1,ce(t.showTip)&&R.value===!0&&(R.value=!1)},0),!he(C.value)){let O=qr(C.value,t);if(O.minValid===!1||O.maxValid===!1){g.value=O.message;return}}c("update:modelValue",h.value,S),c("blur",h.value,S)},q=()=>{c("clear","")},Q=n.computed(()=>Lt(t.unit)>0),x=n.ref();return Te({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()},setDisabled:S=>{a.value=S},setReadonly:S=>{u.value=S}}),()=>{const O={...Je(o.attrs),ref:x,class:P.value,type:"digit",maxlength:t.maxLength,placeholder:d.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:q,onInput:N,onChange:y,onFocus:j,onBlur:$},_={};o.slots.prepend&&(_.prepend=o.slots.prepend),o.slots.append&&(_.append=o.slots.append),o.slots.prefix&&(_.prefix=o.slots.prefix),o.slots.suffix?_.suffix=o.slots.suffix:Q.value&&(_.suffix=()=>[t.unit]);const X=[],J=n.h(T.ElInput,O,_);X.push(J);const A={default:()=>X};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const W={...Ve(t,_r),errorTip:V.value,hintText:B.value,hintVisible:R.value,hintType:"number"};return t.prop&&(W.prop=`${t.prop}_item`),n.h(r,W,A)}}}}const{componentName:qu,create:_u,scope:ju}=se("money-item"),Ml=_u(Bu(qu,ju,ke)),jr={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 zu(e,l,r){return{props:{...Ne,...Re,...jr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(!1),b=ge(t,"modelValue",null,c),w=e,d=n.computed(()=>({[w]:!0,[`${w}__append`]:N.value})),f=n.computed(()=>({[`${w}__unit`]:!0})),P=j=>{b.value=j,c("update:modelValue",j),c("input",j)},v=j=>{c("change",j)};let g=ge(t,"hintText"),V=n.ref(!1);const B=j=>{let q=j.target.value;C.value=!0,he(g.value)||(V.value=!0),c("focus",q,j)},R=j=>{setTimeout(()=>{V.value&&(V.value=!1),C.value=!1},0);let q=j.target.value;t.maxLength&&q.length>Number(t.maxLength)&&(q=q.slice(0,Number(t.maxLength))),c("blur",q,j)},I=()=>{c("clear","")},N=n.computed(()=>Lt(t.unit)>0),y=n.ref();return Te({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:j=>{a.value=j},setReadonly:j=>{u.value=j}}),()=>{const $={...Je(o.attrs),ref:y,class:d.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:I,onChange:v,onInput:P,onFocus:B,onBlur:R},q={},Q=[],x=n.h(T.ElInputNumber,$,q);Q.push(x);const S={default:()=>Q};S.label=o.slots.default,S.fixedPreTip=o.slots.fixedPreTip,S.fixedTip=o.slots.fixedTip;const _={...Ve(t,jr),hintText:g.value,hintVisible:V.value};if(t.prop&&(_.prop=`${t.prop}_item`),o.slots.append)S.append=o.slots.append;else if(N.value){const J={class:f.value},A=n.h("div",J,[t.unit]);S.append=()=>A}return n.h(r,_,S)}}}}const{componentName:Hu,create:Ku,scope:Wu}=se("input-number-item"),Ll=Ku(zu(Hu,Wu,ke));function lt(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function mt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Yu(e,l){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?l[e.childrenKey]||null:l.children??null}let Uu=class{proxy;constructor(l){this.proxy=l}async load(l,r,t,o){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t,o);const a=He(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await a(r,t,o))}};function Gu(){const e=n.getCurrentInstance();return new Uu(e.proxy)}function dl(e,l,r){const t=lt(e,l),o=lt(e,r);if(t!==o)return!1;const a=mt(e,l),i=mt(e,r);return a===i}function fa(e,l,r,t){if(t.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];let a=t;for(let i=0;Array.isArray(a)&&i<l.length;i++){const u=l[i];if(Array.isArray(u)){const s=fa(e,u,r,t);o.push(s)}else{let s=!1;for(let c of a){if(r==="text")s=lt(e,c)===u;else if(r==="item")s=dl(e,c,u);else{let m=mt(e,c);m==null&&(m=lt(e,c)),s=m===u}if(s){o.push(c),a=Yu(e,c);break}}if(!s)break}}return o}function Xu(e){return{text:e,value:e}}const zr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Qu(e,l,r){return{props:{...Ne,...Re,...zr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(null),b=n.ref([]),w=n.computed(()=>b.value?b.value.map(U=>Array.isArray(U)?U.map(K=>lt(t,K)).join(" "):lt(t,U)).join(" "):""),d=(G,U,D,K=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(C.value===G)return;C.value=G;const F=n.toRaw(G);if(K){const ee=le?.value.getCheckedNodes();if(ee)if(t.multiple){const re=[];ee.forEach(ie=>{const me=(ie.pathNodes??[]).map(be=>be.data);re.push(me)}),c("update:pathNodes",re)}else{const ie=(ee[0]?.pathNodes??[]).map(fe=>fe.data);c("update:pathNodes",ie)}c("update:modelValue",F),c("change",F)}return}const E=fa(t,G,U,D);if(E===null){if(b.value.length===0||b.value===null)return;b.value=[],C.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const p=E[E.length-1];if(q.value.checkStrictly!==!0&&p&&!Array.isArray(p)&&Array.isArray(p.children)&&p.children.length>0){const F=[];E.forEach(ee=>{const re=`${lt(t,ee)}`;F.push(re)}),F.length>0&&(j.value=F.join(t.separator))}else j.value=null;let L=!0;if(E.length!==b.value.length)L=!1;else for(let F=0;F<E.length;F++){const ee=E[F],re=b.value[F];if(Array.isArray(ee)){if(!Array.isArray(re)||ee.length!==re.length)L=!1;else for(let ie=0;ie<ee.length;ie++)if(!dl(t,ee[ie],re[ie])){L=!1;break}}else dl(t,ee,re)||(L=!1);if(!L)break}if(!L){b.value=E;let F=[],ee=[];E.forEach(ie=>{if(Array.isArray(ie)){let fe=[],me=[];for(let be of ie)fe.push(mt(t,be)),t.valueType==="text"?me.push(lt(t,be)):t.valueType==="item"?me.push(be):me.push(mt(t,be));F.push(fe),ee.push(me)}else F.push(mt(t,ie)),t.valueType==="text"?ee.push(lt(t,ie)):t.valueType==="item"?ee.push(ie):ee.push(mt(t,ie))}),C.value=F;const re=n.toRaw(ee);K&&(c("update:pathNodes",E),c("update:modelValue",re),c("change",re))}},f=n.ref([]),P=Ae(n.computed(()=>t.appearLoad),"appearLoad",ze.Near,G=>ce(G)),v=Gu(),g=async(G,U)=>{if(G){const D=await v.load("cascader",G,U);if(D.length>0)if(typeof D[0]=="string"){let p=D.map(L=>Xu(L));f.value=p}else f.value=D}};n.watch([()=>t.source,()=>t.params],async([G,U])=>{g(G,U)},{immediate:!(P.value||t.lazy)});let V=!1;const B=()=>{V||(V=!0,g(t.source,t.params))};n.watch([()=>f.value,()=>t.modelValue],([G,U])=>{d(U,t.valueType,G,!1),c("setValue",U)}),t.lazy&&d(t.modelValue,"value",[],!1);let R=null,I=n.ref(!1);typeof t.remoteMethod=="function"&&(R=async G=>{if(G!=null){I.value=!0;try{const U=await t.remoteMethod(G);f.value=U}catch(U){console.error(U)}I.value=!1}});const N=n.ref(!1),y=e,j=n.ref(null),$=n.computed(()=>({[y]:!0,"is-incomplete":j.value&&j.value.length>0})),q=n.computed(()=>{let G={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(G.multiple=!0),t.props&&Object.assign(G,t.props),t.lazy&&(G.lazy=!0,typeof t.lazyLoad=="function"?G.lazyLoad=t.lazyLoad:G.lazyLoad=async(U,D)=>{let K={};t.params&&Object.assign(K,t.params),U&&Object.assign(K,U);const E=await v.load("cascader",t.source,K,!0);if(U?.config?.checkStrictly!==!0&&Array.isArray(C.value)&&C.value.length===U.level){const p=U.pathLabels??[];let L=[];p.forEach(F=>{F&&L.push(F)}),L.length>0&&(j.value=L.join(t.separator))}else j.value=null;D(E)}),G}),Q=G=>{t.allowCreate?(c("update:modelValue",G),c("change",G),C.value=G):d(G,"value",f.value,!0)};let x=ge(t,"hintText"),S=n.ref(!1);const O=G=>{let D=G.target.value;N.value=!0,he(x.value)||(S.value=!0),c("focus",D,G)},_=G=>{setTimeout(()=>{S.value&&(S.value=!1),N.value=!1},0);let D=G.target.value;t.maxLength&&D.length>Number(t.maxLength)&&(D=D.slice(0,Number(t.maxLength))),z.value||c("blur",D,G)},X=()=>{c("clear","")},J=n.ref(!1);let A=null;const te=()=>{t.showTooltip&&J.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{J.value=!0},150))},W=()=>{A&&(clearTimeout(A),J.value=!1,A=null)},M=n.computed(()=>J.value||S.value),H=n.computed(()=>J.value?w.value:x.value),z=n.ref(!1),k=G=>{z.value=G,c("visible-change",G),G||c("selected")},Y=G=>{c("remove-tag",G)},Z=G=>{c("expand-change",G)},le=n.ref();return Te({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes(),setDisabled:G=>{a.value=G},setReadonly:G=>{u.value=G}}),()=>{const U={...o.attrs,ref:le,class:$.value,props:q.value,clearable:t.clearable,placeholder:j.value||h.placeholder.value,disabled:i.value||s.value,options:f.value,modelValue:C.value,separator:t.separator,onClear:X,onChange:Q,onFocus:O,onBlur:_,onVisibleChange:k,onRemoveTag:Y,expandChange:Z};typeof R=="function"&&(U["remote-method"]=R,U.loading=I.value);const D={};o.slots.option&&(D.default=o.slots.option),o.slots.empty&&(D.empty=o.slots.empty);const K=[],E=n.h(T.ElCascader,U,D);K.push(E);const p={default:()=>K};p.label=o.slots.default,p.fixedPreTip=o.slots.fixedPreTip,p.fixedTip=o.slots.fixedTip;const F={...Ve(t,zr),hintText:H.value,hintVisible:M.value,onMouseover:te,onMouseleave:W};return t.prop&&(F.prop=`${t.prop}_item`),P.value&&!t.lazy&&(F["appear-listen"]=!0,F.onAppear=B),n.h(r,F,p)}}}}const{componentName:Zu,create:Ju,scope:ec}=se("cascader-item"),Bl=Ju(Qu(Zu,ec,ke)),Hr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function tc(e,l,r){return{props:{...Ne,...Re,...Hr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),{toLocaleRefs:m}=Me.useFoxI18n(l),h=m(t,["placeholder"]),C=n.ref(!1),b=ge(t,"modelValue",null,c),w=e,d=n.computed(()=>({[w]:!0})),f=y=>{b.value=y,c("update:modelValue",y),c("input",y)},P=y=>{c("change",y)},v=y=>{c("select",y)};let g=ge(t,"hintText"),V=n.ref(!1);const B=y=>{let $=y.target.value;C.value=!0,he(g.value)||(V.value=!0),c("focus",$,y)},R=y=>{setTimeout(()=>{V.value&&(V.value=!1),C.value=!1},0);let $=y.target.value;t.maxLength&&$.length>Number(t.maxLength)&&($=$.slice(0,Number(t.maxLength))),c("blur",$,y)},I=()=>{c("clear","")},N=n.ref();return Te({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()},setDisabled:y=>{a.value=y},setReadonly:y=>{u.value=y}}),()=>{const j={...o.attrs,ref:N,class:d.value,placeholder:h.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,onClear:I,onChange:P,onInput:f,onFocus:B,onBlur:R,onSelect:v},$={};o.slots.prepend&&($.prepend=o.slots.prepend),o.slots.append&&($.append=o.slots.append),o.slots.prefix&&($.prefix=o.slots.prefix),o.slots.suffix&&($.suffix=o.slots.suffix),o.slots.option&&($.default=o.slots.option);const q=[],Q=n.h(T.ElAutocomplete,j,$);q.push(Q);const x={default:()=>q};x.label=o.slots.default,x.fixedPreTip=o.slots.fixedPreTip,x.fixedTip=o.slots.fixedTip;const O={...Ve(t,Hr),hintText:g.value,hintVisible:V.value};return t.prop&&(O.prop=`${t.prop}_item`),n.h(r,O,x)}}}}const{componentName:nc,create:lc,scope:rc}=se("autocomplete-item"),ql=lc(tc(nc,rc,ke));function oc(e,l,r,t,o){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=l[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[o]){let s=l;for(let c=0;s&&c<a.length;c++){let m=a[c],h=s.find(C=>C[t]===m);if(!h)break;i.push(h[r])}return i}if(Array.isArray(u))for(let s=0;s<l.length&&s<a.length;s++){let c=l[s],m=a[s];const h=c.find(C=>C[t]===m);if(!h)break;i.push(h[r])}else{let s=l;for(let c=0;s&&c<a.length;c++){let m=a[c],h=s.find(C=>C[t]===m);if(!h)break;i.push(h[r]),s=h[o]}}return i}let ac=class{proxy;constructor(l){this.proxy=l}async load(l,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=He(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await o(r,t))}};function ic(){const e=n.getCurrentInstance();return new ac(e.proxy)}const da={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function sc(e,l){return{props:{...da},setup(r,{attrs:t,slots:o}){const a=ic(),i=n.ref([]);n.watch([()=>r.source,()=>r.params],async([s,c])=>{i.value=await a.load(r.sourceType,s,c)},{immediate:!0});const u=n.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return r.emptyText;let s=oc(r.modelValue,i.value,r.textKey,r.valueKey,r.childrenKey);return s.length==0?r.emptyText??"":s.length===1?r.optionType=="item"?`${r.modelValue}${r.separator}${s[0]}`:s[0]:s.join(r.separator)});return()=>{const s={...t};if(o.default)return o.default({text:u.value,value:r.modelValue});const c=r.tag??"span";return typeof c=="object"?n.h(c,s,{default:()=>u.value}):n.h(c,s,[u.value])}}}}const{create:uc}=se("mapping"),At=uc(sc());function cc(e,l){let r=l.split("."),t=e;for(let o=0;o<r.length;o++){let a=r[o],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let m=parseInt(c);if(i==0){let h=a.substring(0,u);t=t[h][m]}else t=t[m];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function fc(e,l){return{props:{...da},setup(r,{attrs:t,slots:o}){return()=>{const a={default:i=>{const u=cc(i.row,i.column.property);return o.default?n.h(At,{...r,modelValue:u},{default:o.default}):n.h(At,{...r,modelValue:u})}};for(let i in o)i!=="default"&&(a[i]=o[i]);return n.h(T.ElTableColumn,{...t},a)}}}}const{create:dc}=se("table-mapping-column"),_l=dc(fc()),hc=Symbol.for("TableStateKey");function Kr(e,l){let r=l.split("."),t=e;for(let o=0;o<r.length;o++){let a=r[o],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let m=parseInt(c);if(i==0){let h=a.substring(0,u);t=t[h][m]}else t=t[m];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function mc(e,l){return{props:{},setup(r,{attrs:t}){const o=n.inject(hc,{});return()=>{const a=o.currentRow?o.currentRow.value:null,i={default:u=>{const s=Kr(u.row,u.column.property),c=a?Kr(a,u.column.property):null,m=s===c,h={class:{"el-radio__input":!0,"is-checked":m}},C=n.h("span",h,[n.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":m}};return n.h("label",b,[C])}};return n.h(T.ElTableColumn,{...t},i)}}}}const{create:gc}=se("table-radio-column"),jl=gc(mc()),vc={},pc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function yc(e,l){return n.openBlock(),n.createElementBlock("svg",pc,[...l[0]||(l[0]=[n.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}const bc=Ze(vc,[["render",yc]]),{create:xc}=se("table-setting"),wc={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:"不固定"}},Sc=xc({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:bc,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...wc},setup(e,{emit:l,attrs:r}){let t=[];const o=n.ref([]),a=n.computed(()=>o.value.filter(k=>k.label===""||k.type?!1:k.fixed===""||k.fixed===!0||k.fixed==="left")),i=n.computed(()=>o.value.filter(k=>k.label===""||k.type?!1:k.fixed==="right")),u=n.computed(()=>o.value.filter(k=>!(k.label===""||k.type||k.fixed!==void 0))),s=n.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=n.computed(()=>a.value.length>0),m=n.computed(()=>i.value.length>0),h=k=>k.length>1,C=(k,Y)=>{Array.isArray(k)&&Array.isArray(Y)&&k.forEach(G=>{Y.some(U=>U.prop===G.prop?(G.label=U.label,!0):!1)});const Z=[];o.value=k.map((G,U)=>(!(G.label===""||G.type)&&G.visible!==!1&&Z.push(G.prop),{...G,sortIndex:U})),u.value.length+a.value.length+i.value.length===Z.length?v.value=!0:Z.length>0&&(g.value=!0),R.value=Z},b=k=>k?k.type?k.type:k.label?k.prop:"":"",w=(k,Y)=>{if(k.length!==Y.length)return!1;const Z=k.map(le=>b(le));for(let le of Y){const G=b(le);if(Z.indexOf(G)===-1)return!1}return!0},d=k=>{if(!k){const Y=e.tableRef.getColumnSetting(),Z=Y.srcColumnPropertyList;t=Z.map((le,G)=>({...le,sortIndex:G})),k=Y.columnPropertyList,k&&k.length>0&&w(Z,k)||(k=Z)}C(k,t)},f=()=>{e.tableRef.setColumnSetting(o.value)},P=n.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),v=n.ref(!1),g=n.ref(!1),V=k=>{const Y=[];o.value.forEach(le=>{k&&!(le.label===""||le.type)&&Y.push(le.prop),le.visible=k}),v.value=!1,g.value=!1,u.value.length+a.value.length+i.value.length===Y.length?v.value=!0:Y.length>0&&(g.value=!0),R.value=Y,f()},B=()=>{d(t),f()},R=n.ref([]),I=k=>{o.value.forEach(Z=>{if(Z.label===""||Z.type)return;const le=k.indexOf(Z.prop)!==-1;Z.visible=le}),v.value=!1,g.value=!1;const Y=u.value.length+a.value.length+i.value.length;k.length===Y?v.value=!0:k.length>0&&(g.value=!0),f()},N=()=>{d()};n.onMounted(()=>{setTimeout(()=>{d()},50)});const y={currentRow:null,index:null,roleType:null},j=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,j(k)):null:null,$=k=>{const Y=k.currentTarget;Y&&Y.dataset&&(y.roleType=Y.dataset.roleType,y.index=Y.dataset.index)},q=k=>{y.currentRow&&(y.currentRow.classList.remove("is-dragover"),y.currentRow=null),y.index=null,y.roleType=null},Q=k=>{const Y=k.currentTarget;k.relatedTarget;const Z=j(Y);if(!Z)return;const le=Z.dataset&&Z.dataset.roleType;y.roleType===le&&(k.preventDefault(),y.currentRow&&y.currentRow!==Z&&y.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),y.currentRow=Z)},x=k=>{k.preventDefault(),y.currentRow&&(y.currentRow.classList.remove("is-dragover"),y.currentRow=null)},S=k=>{const Y=k.currentTarget,Z=j(Y);if(!Z)return;const le=Z.dataset&&Z.dataset.roleType;if(y.roleType!==le)return;k.preventDefault();const G=Number(y.index),U=Number(Z.dataset.index);if(G!==U){if(G<U){const D=o.value[G];o.value.splice(G,1),o.value.splice(U,0,D)}else{const D=o.value[G];o.value.splice(G,1),o.value.splice(U+1,0,D)}C(o.value,t),f()}},O=k=>{const Y=o.value[k];Y.fixed="left",f()},_=k=>{const Y=o.value[k];Y.fixed="right",f()},X=k=>{const Y=o.value[k];Y.fixed=void 0,f()},J=new Map;let A=null;function te(k){const Y=document.createRange();return Y.setStart(k,0),Y.setEnd(k,k.childNodes.length),Y.getBoundingClientRect().width}return{attrs:r,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:m,isDraggble:h,isCheckAll:v,isIndeterminate:g,handleCheckAllChange:V,handleReset:B,checkedValue:R,handleCheckChange:I,onShow:N,onDragStart:$,onDragEnd:q,onDragOver:Q,onDragLeave:x,onDrop:S,toLeftFixed:O,toRightFixed:_,toUnFixed:X,checkboxLabelStyle:P,onMouseOverForOverflowText:(k,Y,Z)=>{const le=k.currentTarget;if(le){const G=Math.floor(le.offsetWidth);if(Math.floor(te(le))>G){let D=J.get(Y);if(D){if(D===A)return;Ce.hide(D)}D=Ce.show(le,Z,{type:"text",placement:"top",closeOnClick:!1}),D&&(J.set(Y,D),A=D)}}},onMouseLeaveForOverflowText:(k,Y)=>{const Z=J.get(Y);Z&&(Ce.hide(Z),Z===A&&(A=null))},onMouseOverForTip:(k,Y)=>{const Z=k.currentTarget;Z&&(A&&Ce.hide(A),A=Ce.show(Z,Y,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:k=>{A&&(Ce.hide(A),A=null)}}}}),Tc={class:"fox-table-setting"},Cc={class:"fox-table-setting__header"},$c={class:"fox-table-setting__body"},Nc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},kc={key:0,class:"fox-table-setting__body-title"},Ec=["data-index","draggable"],Pc=["onMouseover","onMouseleave"],Ic={class:"tools-item"},Oc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Dc={key:0,class:"fox-table-setting__body-title"},Vc=["data-index","draggable"],Rc=["onMouseover","onMouseleave"],Fc={class:"tools-item"},Ac={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Mc={key:0,class:"fox-table-setting__body-title"},Lc=["data-index","draggable"],Bc=["onMouseover","onMouseleave"],qc={class:"tools-item"};function _c(e,l,r,t,o,a){const i=n.resolveComponent("FoxCheckbox"),u=n.resolveComponent("FoxButton"),s=n.resolveComponent("DragIcon"),c=n.resolveComponent("RefreshLeft"),m=n.resolveComponent("FoxIcon"),h=n.resolveComponent("Download"),C=n.resolveComponent("fox-checkbox"),b=n.resolveComponent("FoxCheckboxGroup"),w=n.resolveComponent("FoxPopover");return n.openBlock(),n.createBlock(w,n.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("div",Tc,[n.createElementVNode("div",Cc,[n.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=d=>e.isCheckAll=d),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),n.createElementVNode("div",$c,[n.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":l[28]||(l[28]=d=>e.checkedValue=d),onChange:e.handleCheckChange},{default:n.withCtx(()=>[e.leftFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",Nc,[e.isShowLeftFixedTitle?(n.openBlock(),n.createElementBlock("div",kc,n.toDisplayString(e.leftFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.leftFixedColumns,d=>(n.openBlock(),n.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:l[5]||(l[5]=(...f)=>e.onDragStart&&e.onDragStart(...f)),onDragend:l[6]||(l[6]=(...f)=>e.onDragEnd&&e.onDragEnd(...f)),onDrop:l[7]||(l[7]=(...f)=>e.onDrop&&e.onDrop(...f)),onDragover:l[8]||(l[8]=(...f)=>e.onDragOver&&e.onDragOver(...f)),onDragleave:l[9]||(l[9]=(...f)=>e.onDragLeave&&e.onDragLeave(...f))},[e.isDraggble(e.leftFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",value:d.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:f=>e.onMouseOverForOverflowText(f,d.prop,d.label),onMouseleave:f=>e.onMouseLeaveForOverflowText(f,d.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(d.label),45,Pc)]),_:2},1032,["value"]),n.createElementVNode("div",Ic,[n.createVNode(m,{onClick:f=>e.toUnFixed(d.sortIndex),onMouseover:l[1]||(l[1]=f=>e.onMouseOverForTip(f,e.unFixedText)),onMouseleave:l[2]||(l[2]=f=>e.onMouseLeaveForTip(f))},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["onClick"]),n.createVNode(m,{onClick:f=>e.toRightFixed(d.sortIndex),onMouseover:l[3]||(l[3]=f=>e.onMouseOverForTip(f,e.fixedRightText)),onMouseleave:l[4]||(l[4]=f=>e.onMouseLeaveForTip(f))},{default:n.withCtx(()=>[n.createVNode(h)]),_:1},8,["onClick"])])],40,Ec))),128))])):n.createCommentVNode("",!0),e.unFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",Oc,[e.isShowNotFixedTitle?(n.openBlock(),n.createElementBlock("div",Dc,n.toDisplayString(e.unFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unFixedColumns,d=>(n.openBlock(),n.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:l[14]||(l[14]=(...f)=>e.onDragStart&&e.onDragStart(...f)),onDragend:l[15]||(l[15]=(...f)=>e.onDragEnd&&e.onDragEnd(...f)),onDrop:l[16]||(l[16]=(...f)=>e.onDrop&&e.onDrop(...f)),onDragover:l[17]||(l[17]=(...f)=>e.onDragOver&&e.onDragOver(...f)),onDragleave:l[18]||(l[18]=(...f)=>e.onDragLeave&&e.onDragLeave(...f))},[e.isDraggble(e.unFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",value:d.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:f=>e.onMouseOverForOverflowText(f,d.prop,d.label),onMouseleave:f=>e.onMouseLeaveForOverflowText(f,d.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(d.label),45,Rc)]),_:2},1032,["value"]),n.createElementVNode("div",Fc,[n.createVNode(m,{onClick:f=>e.toLeftFixed(d.sortIndex),onMouseover:l[10]||(l[10]=f=>e.onMouseOverForTip(f,e.fixedLeftText)),onMouseleave:l[11]||(l[11]=f=>e.onMouseLeaveForTip(f)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(h)]),_:1},8,["onClick"]),n.createVNode(m,{onClick:f=>e.toRightFixed(d.sortIndex),onMouseover:l[12]||(l[12]=f=>e.onMouseOverForTip(f,e.fixedRightText)),onMouseleave:l[13]||(l[13]=f=>e.onMouseLeaveForTip(f))},{default:n.withCtx(()=>[n.createVNode(h)]),_:1},8,["onClick"])])],40,Vc))),128))])):n.createCommentVNode("",!0),e.rightFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",Ac,[e.isShowRightFixedTitle?(n.openBlock(),n.createElementBlock("div",Mc,n.toDisplayString(e.rightFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rightFixedColumns,d=>(n.openBlock(),n.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:l[23]||(l[23]=(...f)=>e.onDragStart&&e.onDragStart(...f)),onDragend:l[24]||(l[24]=(...f)=>e.onDragEnd&&e.onDragEnd(...f)),onDrop:l[25]||(l[25]=(...f)=>e.onDrop&&e.onDrop(...f)),onDragover:l[26]||(l[26]=(...f)=>e.onDragOver&&e.onDragOver(...f)),onDragleave:l[27]||(l[27]=(...f)=>e.onDragLeave&&e.onDragLeave(...f))},[e.isDraggble(e.rightFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(C,{class:"checkbox-item",label:d.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:f=>e.onMouseOverForOverflowText(f,d.prop,d.label),onMouseleave:f=>e.onMouseLeaveForOverflowText(f,d.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(d.label),45,Bc)]),_:2},1032,["label"]),n.createElementVNode("div",qc,[n.createVNode(m,{onClick:f=>e.toUnFixed(d.sortIndex),onMouseover:l[19]||(l[19]=f=>e.onMouseOverForTip(f,e.unFixedText)),onMouseleave:l[20]||(l[20]=f=>e.onMouseLeaveForTip(f))},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["onClick"]),n.createVNode(m,{onClick:f=>e.toLeftFixed(d.sortIndex),onMouseover:l[21]||(l[21]=f=>e.onMouseOverForTip(f,e.fixedLeftText)),onMouseleave:l[22]||(l[22]=f=>e.onMouseLeaveForTip(f)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(h)]),_:1},8,["onClick"])])],40,Lc))),128))])):n.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Vn=Ze(Sc,[["render",_c]]);let jc=class{proxy;constructor(l){this.proxy=l}async load(l,r,t,o,a,i,u){if(Array.isArray(r)){let c=(t-1)*o,m=c+o;m>r.length&&(m=r.length);const h=r.slice(c,m);return{totalSize:r.length,page:h}}if(typeof r=="function")return await Reflect.apply(r,null,[t,o,a,i,u]);const s=He(this.proxy,l);return s===null?(console.error(`${l} component not found api function`),{totalSize:0,page:[]}):(Qe(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await Reflect.apply(s,null,[r,t,o,a,i,u]))}};function zc(){const e=n.getCurrentInstance();return new jc(e.proxy)}class Hc{proxy;constructor(l){this.proxy=l}async load(l){let r=null;const t=He(this.proxy,"tableSetting");return typeof t=="function"&&(r=await Reflect.apply(t,null,["load",l])),r}save(l,r){const t=He(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",l,r])}remove(l){const r=He(this.proxy,"tableSetting");typeof r=="function"&&Reflect.apply(r,null,["remove",l])}}function ha(){const e=n.getCurrentInstance();return new Hc(e.proxy)}const Kc=Symbol.for("TableStateKey"),Wr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Yr={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},Yn={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:()=>"不固定"}},Wc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function Yc(e,l){let r=l.split("."),t=e;for(let o=0;o<r.length;o++){let a=r[o],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let m=parseInt(c);if(i==0){let h=a.substring(0,u);t=t[h][m]}else t=t[m];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function Un(e,l){return e.filter(t=>{for(let o in l){const a=l[o],i=Yc(t,o);if(a!==i)return!1}return!0})}function Uc(e,l,r){return{props:{...Ne,...Re,...Wr,...Yr,...Yn,...Wc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,o){const{locale:a,toLocaleRefs:i}=Me.useFoxI18n(l),u=i(t,["loadText","noMoreText"]),{emitEvent:s,broadcast:c}=Ee({componentName:e,validateHandler:{getValue(...ne){return y.value}}},t.prop??o.attrs.name),m=e,h=n.computed(()=>({[m]:!0})),C=n.computed(()=>({[`${m}__setting`]:!0})),b=n.computed(()=>({[`${m}__footer`]:!0,[`${m}__footer__${t.footerAlign}`]:!0})),w=n.computed(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${t.paginationAlign}`]:!0})),d=n.shallowRef({}),f=n.computed(()=>({...d.value,...t.params??{},...t.baseParams??{}})),P=n.ref(t.infiniteLoad===!0?0:t.pageIndex),v=n.ref(t.pageSize),g=ce(t.infiniteLoad);g||(n.watch(()=>t.pageIndex,ne=>{P.value=ne}),n.watch(()=>t.pageSize,ne=>{v.value=ne}),n.watch([P,v],([ne,oe],[ae,ue])=>{oe!==ue&&(P.value=1,ne=1),Q(t.data,ne,oe,f.value)}));const V=()=>Array.isArray(t.data)?!0:ce(t.autoLoad);V()&&n.watch([()=>t.data,f],async([ne,oe],[ae,ue])=>{V()&&(ne!==ae&&($=!0),!(!Array.isArray(ne)&&rt(ne,ae)&&rt(oe,ue))&&(g?(P.value=0,I.value=!0,y.value=[],S()):P.value===1?Q(ne,P.value,v.value,oe):P.value=1))},{deep:!0});const B=ne=>{P.value=ne,s("page-index-change",ne)},R=ne=>{v.value=ne,s("page-size-change",ne)},I=n.ref(!0),N=n.ref(0),y=n.ref(),j=zc();let $=!0;const q=Ae(n.computed(()=>t.appearLoad),"appearLoad",ze.Near,ne=>ce(ne)),Q=async(ne,oe,ae,ue,Ie)=>{try{if(Ie===!0){if(!I.value)return!1;const ye=await j.load("table",ne,oe,ae,ue,$,a.value);return N.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,y.value,ye.page),setTimeout(()=>{s("loaded-data")},250),(y.value?.length??0)>=N.value)||ye.page.length<ae?(I.value=!1,!1):!0}else{const ye=await j.load("table",ne,oe,ae,ue,$,a.value);return N.value=ye.totalSize,y.value=ye.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),N.value=0,y.value=[]}finally{$=!1}return!1};let x=!1;const S=async()=>{if(!x){if(x=!0,!I.value){x=!1;return}P.value+=1,await Q(t.data,P.value,v.value,f.value,!0),x=!1}},O=(ne={},oe=!1)=>new Promise(async ae=>{d.value={...n.toRaw(ne??{})},oe||(P.value=t.pageIndex??1),g===!0?(P.value=0,y.value=[],I.value=!0,await S()):await Q(t.data,P.value,v.value,f.value),ae()}),_=()=>{N.value=0,y.value=[],g===!0&&(P.value=0,I.value=!0)};let X=!1;const J=()=>{X||(X=!0,O())},A=n.ref(null);if(g===!0){let ne=null;const oe=()=>{A.value&&(ne=new IntersectionObserver(ue=>{let Ie=!1;for(let ye of ue)if(ye.intersectionRatio>0){Ie=!0;break}Ie&&S()}),ne.observe(A.value))},ae=()=>{!ne||!A.value||(ne.unobserve(A.value),ne=null)};n.onMounted(oe),n.onBeforeUnmount(ae)}V()&&!q.value&&O();const te=n.ref(null);n.provide(Kc,{currentRow:te});const W=(ne,oe)=>{te.value=ne,s("current-change",ne,oe)},M=(ne,oe,ae)=>{s("row-click",ne,oe,ae),ce(t.rowClickSelectable)===!0&&Se?.value.toggleRowSelection(ne)},H=[],z=(ne,oe)=>{if(s("expand-change",ne,oe),ce(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=H.length;H.splice(0,ae)}else{H.forEach(ue=>{ue!==ne&&Se?.value.toggleRowExpansion(ue,!1)});const ae=H.length;H.splice(0,ae,ne)}},k=o.attrs.id??t.prop??o.attrs.name,Y=ha(),Z=n.ref([]);let le=[];const G=()=>({srcColumnPropertyList:le.map(oe=>({...oe})),columnPropertyList:Z.value}),U=ne=>{Z.value=[...ne],K()},D=async()=>{const ne=await Y.load(k);ne&&(Z.value=ne)},K=()=>{Y.save(k,Z.value)},E=()=>{Y.remove(k)};D();const p=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",L=(ne,oe={})=>{for(let ae in oe){const ue=oe[ae];typeof ue!="function"&&(ne[ae]=ue)}},F=ne=>{const oe=ne?ne():[],ae=new Map;if(le=[],oe.forEach(ue=>{const ye=ue;if(!ye.props)return;const Ue=p(ye.props);ae.set(Ue,ye);const Ye={label:"",prop:""};L(Ye,ye.props),le.push(Ye)}),Z.value.length===le.length){const ue=[];for(let Ie of Z.value){const ye=p(Ie),Ue=ae.get(ye);if(!Ue)return oe;if(Ie.visible===!1)continue;const Ye=Ue;Ye.props.fixed=Ie.fixed,ue.push(Ye)}return ue}return oe},ee=n.shallowRef(new Map),re=({row:ne,column:oe,rowIndex:ae,columnIndex:ue})=>{const Ie=`${ae}_${oe.property}`,ye=`${ae}_${ue}`;let Ue=ee.value.get(Ie);return Ue||(Ue=ee.value.get(ye)),typeof Ue=="string"?Ue:""},ie=ne=>ne?oe=>{const ae=[];let ue=re(oe);return ue&&ae.push(ue),ue=ue=typeof ne=="function"?ne(oe):ne,ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:re,fe=(ne=!1)=>{ee.value.forEach((oe,ae)=>{me(ae,oe,ne)})},me=(ne,oe,ae=!1)=>{const ue=`${ne}_item`;ae?(c.clearPersistantMessage(),Array.isArray(oe)?c.emitToChildren({name:ne},"setCellClassNames",[]):c.emitToChildren({name:ue},"setCustomClassName","")):Array.isArray(oe)?c.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:ue},"setCellClassNames",oe):c.emitToChildren({name:ue,cachePolicy:"Persistant",uniqueId:ue},"setCustomClassName",oe)},be=(ne,oe,ae)=>{const ue=`${ne}_${oe}`;ae?(ee.value.set(ue,ae),me(ue,ae)):(ee.value.delete(ue),me(ue,"",!0)),n.triggerRef(ee)},nt=ne=>{fe(!0),ee.value.clear(),ne.forEach(oe=>{const ae=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?ee.value.set(ae,oe.children):typeof oe.cellClassName=="string"&&ee.value.set(ae,oe.cellClassName)}),fe(),n.triggerRef(ee)},We=()=>{fe(),ee.value.clear(),n.triggerRef(ee)},Pe=n.shallowRef(new Map),gt=({rowIndex:ne})=>{const oe=`${ne}`;return Pe.value.get(oe)??""},Ln=ne=>ne?oe=>{const ae=[];let ue=gt(oe);return ue&&ae.push(ue),ue=typeof ne=="function"?ne(oe):ne,ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:gt,Ca=(ne,oe)=>{const ae=`${ne}`;oe?Pe.value.set(ae,oe):Pe.value.delete(ae),n.triggerRef(Pe)},$a=()=>{Pe.value.clear(),n.triggerRef(Pe)},Se=n.ref();return Te({clearSelection:()=>Se?.value.clearSelection(),getSelectionRows:()=>Se?.value.getSelectionRows(),toggleRowSelection:(ne,oe)=>{Se?.value.toggleRowSelection(ne,oe)},toggleRowSelectionByProp:(ne,oe)=>{if(!y.value)return;const ae=Un(y.value,ne);ae.length!==0&&ae.forEach(ue=>{Se?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{Se?.value.toggleAllSelection()},toggleRowExpansion:(ne,oe)=>{Se?.value.toggleRowExpansion(ne,oe)},toggleRowExpansionByProp:(ne,oe)=>{if(!y.value)return;const ae=Un(y.value,ne);ae.length!==0&&ae.forEach(ue=>{Se?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:ne=>{Se?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!y.value)return;const oe=Un(y.value,ne);oe.length!==0&&Se?.value.setCurrentRow(oe[0])},getCurrentRow:()=>te.value,clearSort:()=>{Se?.value.clearSort()},clearFilter:ne=>{Se?.value.clearFilter(ne)},doLayout:()=>{Se?.value.doLayout()},sort:(ne,oe)=>{Se?.value.sort(ne,oe)},scrollTo:(ne,oe)=>{Se?.value.scrollTo(ne,oe)},setScrollTop:ne=>{Se?.value.setScrollTop(ne)},setScrollLeft:ne=>{Se?.value.setScrollLeft(ne)},loadData:O,clearData:_,getData(){return y.value},getTotalSize(){return N.value},getPageIndex(){return P.value},getPageSize(){return v.value},getColumnSetting:G,setColumnSetting:U,removeColumnSetting:E,setCellClassName:be,setCellClassNames:nt,clearCellClassName:We,setRowClassName:Ca,clearRowClassName:$a}),()=>{const oe={...Je(o.attrs),onCurrentChange:W,onRowClick:M,onExpandChange:z,data:y.value,ref:Se,class:h.value,"cell-class-name":ie(t.cellClassName),"row-class-name":Ln(t.rowClassName)},ae={};if(o.slots.default&&(ae.default=()=>F(o.slots.default)),o.slots.append&&(ae.append=o.slots.append),o.slots.empty&&(ae.empty=o.slots.empty),g===!0){const Ge=[];if(I.value){const Nt=n.h(De.Loading,{class:`${m}__infinite-icon`});Ge.push(Nt);const qn=n.h("span",{class:`${m}__infinite-text`},[u.loadText.value]);Ge.push(qn)}else{const Nt=n.h("span",{class:`${m}__infinite-text`},[u.noMoreText.value]);Ge.push(Nt)}const ft={ref:A,class:`${m}__infinite`},Bn=n.h("div",ft,Ge);ae.append=()=>Bn}const ue=n.h(T.ElTable,oe,ae),Ie=[];if(Ie.push(ue),!g){let Ge=null;if(typeof o.slots.pagination=="function")Ge=o.slots.pagination();else if(t.showPagination){const ft={class:w.value,total:N.value,pageSize:v.value,"onUpdate:pageSize":R,pageSizes:t.pageSizes,currentPage:P.value,"onUpdate:currentPage":B,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,size:t.paginationSize,background:t.paginationBackground,appendSizeTo:t.paginationAppendSizeTo,teleported:t.paginationTeleported,popperClass:t.paginationPopperClass,prevText:t.paginationpPrevText,prevIcos:t.paginationPrevIcon,nextText:t.paginationNextText,pnextIcon:t.paginationNextIcon,disabled:t.paginationDisabled};Ge=n.h(T.ElPagination,ft)}if(t.showSetting){const ft=[];Ge&&ft.push(Ge);const Bn=n.h(T.ElIcon,{class:C.value},{default:()=>n.h(De.Setting)}),Nt=St(t,Yn),qn=n.h(Vn,{...Nt,tableRef:{getColumnSetting:G,setColumnSetting:U,removeColumnSetting:E}},{default:()=>Bn});ft.push(qn);const Na=n.h("div",{class:b.value},ft);Ie.push(Na)}else Ge&&Ie.push(Ge)}const ye={default:()=>Ie},Ye={...Ve(t,Wr,Yr,Yn)};return t.prop&&(Ye.prop=`${t.prop}_item`),Ye.contentClass=`${m}__wrap`,Ye.errorMarkClass="is-table-error",q.value&&V()&&(Ye["appear-listen"]=!0,Ye.onAppear=J),n.h(r,Ye,ye)}}}}const{componentName:Gc,create:Xc,scope:Qc}=se("table-item"),zl=Xc(Uc(Gc,Qc,ke));function Ct(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function Mt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function Zc(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let Jc=class{proxy;constructor(l){this.proxy=l}async load(l,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=He(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await o(r,t))}};function ef(){const e=n.getCurrentInstance();return new Jc(e.proxy)}function ma(e,l,r){if(l===r)return!0;if(l===null||r===null)return!1;const t=Ct(e,l),o=Ct(e,r);if(t!==o)return!1;const a=Mt(e,l),i=Mt(e,r);return a===i}function tf(e,l,r,t){if(t.length==0||l===""||l===null||l===void 0)return null;let o=null;for(let a of t){let i=!1;if(r==="text")i=Ct(e,a)===l;else if(r==="item")i=ma(e,a,l);else{let u=Mt(e,a);u==null&&(u=Ct(e,a)),i=u===l}if(i){o=a;break}}return o}function nf(e){return{text:e,value:e}}function lf(e,l,r){return typeof e.itemOptions=="function"?e.itemOptions(l,r):e.itemOptions}const Ur={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function rf(e,l,r){return{inheritAttrs:!0,props:{...Ne,...Re,...Ur},emits:["change","update:modelValue","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),m=n.ref(null),h=n.ref(null),C=(y,j,$,q=!0)=>{const Q=tf(t,y,j,$);if(Q===null){if(h.value===null)return;h.value=null,m.value=null,q&&(c("update:modelValue",null),c("change",null));return}if(!ma(t,Q,h.value)){m.value=y;const S=n.toRaw(Q);h.value=S;let O=null;t.valueType==="text"?O=Ct(t,S):t.valueType==="item"?O=S:O=Mt(t,S),q&&(c("update:modelValue",O),c("change",O))}},b=n.ref([]),w=Ae(n.computed(()=>t.appearLoad),"appearLoad",ze.Near,y=>ce(y)),d=ef(),f=async(y,j)=>{if(y){const $=await d.load("radio",y,j);if($.length>0)if(typeof $[0]=="string"){let x=$.map(S=>nf(S));b.value=x}else b.value=$}};n.watch([()=>t.source,()=>t.params],async([y,j])=>{f(y,j)},{immediate:!w.value});let P=!1;const v=()=>{P||(P=!0,f(t.source,t.params))};n.watch([()=>b.value,()=>t.modelValue],([y,j])=>{C(j,t.valueType,y,!1),c("setValue",j)});const g=e,V=n.computed(()=>({[g]:!0,[`is-${t.direction}`]:!0})),B=y=>{C(y,"value",b.value,!0)};let R=ge(t,"hintText"),I=ge(t,"hintVisible");const N=(y,j)=>{const $=[];return y.forEach((q,Q)=>{const x=Mt(t,q),S=Ct(t,q);let O=Zc(t,q);i.value===!0&&(O=i.value),s.value===!0&&(O=s.value);const _=lf(t,q,Q)??{},X=`${x}_${Q}`,J={..._,key:X,value:x,size:t.size,border:ce(t.border)};O&&(J.disabled=O),t.itemType==="button"?$.push(n.h(T.ElRadioButton,J,{default:()=>[S]})):typeof j=="function"?$.push(n.h(T.ElRadio,J,{default:()=>j(q)})):$.push(n.h(T.ElRadio,J,{default:()=>[S]}))}),$};return Te({setDisabled:y=>{a.value=y},setReadonly:y=>{u.value=y}}),()=>{const j={...Je(o.attrs),class:V.value,disabled:i.value||s.value,modelValue:m.value,"text-color":t.textColor,fill:t.fill,onChange:B},$=[],q={};o.slots.options?q.default=o.slots.options:q.default=()=>N(b.value,o.slots.text);const Q=n.h(T.ElRadioGroup,j,q);$.push(Q);const x={default:()=>$};x.label=o.slots.default,x.fixedPreTip=o.slots.fixedPreTip,x.fixedTip=o.slots.fixedTip;const O={...Ve(t,Ur),hintText:R.value,hintVisible:I.value};return t.prop&&(O.prop=`${t.prop}_item`),w.value&&(O["appear-listen"]=!0,O.onAppear=v),n.h(r,O,x)}}}}const{componentName:of,create:af,scope:sf}=se("radio-item"),Hl=af(rf(of,sf,ke));function $t(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function xt(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function uf(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}let cf=class{proxy;constructor(l){this.proxy=l}async load(l,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t);const o=He(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await o(r,t))}};function ff(){const e=n.getCurrentInstance();return new cf(e.proxy)}function ga(e,l,r){if(l===r)return!0;if(l===null||r===null)return!1;const t=$t(e,l),o=$t(e,r);if(t!==o)return!1;const a=xt(e,l),i=xt(e,r);return a===i}function df(e,l,r,t){if(t.length==0||l===""||l===null||l===void 0)return null;Array.isArray(l)||(l=[l]);const o=[];return l.forEach(a=>{for(let i of t){let u=!1;if(r==="text")u=$t(e,i)===a;else if(r==="item")u=ga(e,i,a);else{let s=xt(e,i);s==null&&(s=$t(e,i)),u=s===a}if(u){o.push(i);break}}}),o}function hf(e){return{text:e,value:e}}function mf(e,l,r){return typeof e.itemOptions=="function"?e.itemOptions(l,r):e.itemOptions}const Gr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function gf(e,l,r){return{inheritAttrs:!0,props:{...Ne,...Re,...Gr},emits:["change","update:modelValue","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),m=n.ref([]),h=n.ref([]),C=(y,j,$,q=!0)=>{const Q=df(t,y,j,$);if(Q===null){if(h.value===null||h.value.length===0)return;m.value=[],h.value=[],q&&(c("update:modelValue",[]),c("change",[]));return}let x=!0;if(Q.length!==h.value.length)x=!1;else for(let S=0;S<Q.length;S++){const O=Q[S],_=h.value[S];if(!ga(t,O,_)){x=!1;break}}if(!x){h.value=Q;let S=[],O=[];Q.forEach(X=>{S.push(xt(t,X)),t.valueType==="text"?O.push($t(t,X)):t.valueType==="item"?O.push(X):O.push(xt(t,X))}),m.value=S;const _=n.toRaw(O);q&&(c("update:modelValue",_),c("change",_))}},b=n.ref([]),w=Ae(n.computed(()=>t.appearLoad),"appearLoad",ze.Near,y=>ce(y)),d=ff(),f=async(y,j)=>{if(y){const $=await d.load("checkbox",y,j);if($.length>0)if(typeof $[0]=="string"){let x=$.map(S=>hf(S));b.value=x}else b.value=$}};n.watch([()=>t.source,()=>t.params],async([y,j])=>{f(y,j)},{immediate:!w.value});let P=!1;const v=()=>{P||(P=!0,f(t.source,t.params))};n.watch([()=>b.value,()=>t.modelValue],([y,j])=>{C(j,t.valueType,y,!1),c("setValue",j)});const g=e,V=n.computed(()=>({[g]:!0,[`is-${t.direction}`]:!0})),B=y=>{C(y,"value",b.value,!0)};let R=ge(t,"hintText"),I=ge(t,"hintVisible");const N=(y,j)=>{const $=[];return y.forEach((q,Q)=>{const x=xt(t,q),S=$t(t,q);let O=uf(t,q);i.value===!0&&(O=i.value),s.value===!0&&(O=s.value);const _=mf(t,q,Q)??{},X=`${x}_${Q}`,J={..._,key:X,class:t.itemClass,value:x,size:t.size,border:ce(t.border)};O&&(J.disabled=O),t.itemType==="button"?$.push(n.h(T.ElCheckboxButton,J,{default:()=>[S]})):typeof j=="function"?$.push(n.h(T.ElCheckbox,J,{default:()=>j(q)})):$.push(n.h(T.ElCheckbox,J,{default:()=>[S]}))}),$};return Te({setDisabled:y=>{a.value=y},setReadonly:y=>{u.value=y}}),()=>{const j={...Je(o.attrs),class:V.value,disabled:i.value||s.value,modelValue:m.value,"text-color":t.textColor,fill:t.fill,max:$e(t.max),min:$e(t.min),onChange:B},$=[],q={};o.slots.options?q.default=o.slots.options:q.default=()=>N(b.value,o.slots.text);const Q=n.h(T.ElCheckboxGroup,j,q);$.push(Q);const x={default:()=>$};x.label=o.slots.default,x.fixedPreTip=o.slots.fixedPreTip,x.fixedTip=o.slots.fixedTip;const O={...Ve(t,Gr),hintText:R.value,hintVisible:I.value};return t.prop&&(O.prop=`${t.prop}_item`),w.value&&(O["appear-listen"]=!0,O.onAppear=v),n.h(r,O,x)}}}}const{componentName:vf,create:pf,scope:yf}=se("checkbox-item"),Kl=pf(gf(vf,yf,ke)),Xr={modelValue:{type:[Number,String],required:!1}};function bf(e,l,r){return{props:{...Ne,...Re,...Xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),m=ge(t,"modelValue",P=>$e(P),c),h=e,C=n.computed(()=>({[h]:!0})),b=P=>{c("update:modelValue",P),c("change",P)};let w=ge(t,"hintText"),d=n.ref(!1);const f=n.ref();return Te({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const v={...Je(o.attrs),ref:f,class:C.value,readonly:s.value||i.value,modelValue:m.value,onChange:b},g={},V=[],B=n.h(T.ElRate,v,g);V.push(B);const R={default:()=>V};R.label=o.slots.default,R.fixedPreTip=o.slots.fixedPreTip,R.fixedTip=o.slots.fixedTip;const N={...Ve(t,Xr),hintText:w.value,hintVisible:d.value};return t.prop&&(N.prop=`${t.prop}_item`),n.h(r,N,R)}}}}const{componentName:xf,create:wf,scope:Sf}=se("rate-item"),Wl=wf(bf(xf,Sf,ke)),Qr={modelValue:{type:[Boolean,String,Number],required:!1}};function Tf(e,l,r){return{props:{...Ne,...Re,...Qr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),m=ge(t,"modelValue",null,c),h=e,C=n.computed(()=>({[h]:!0})),b=P=>{c("update:modelValue",P),c("change",P)};let w=ge(t,"hintText"),d=ge(t,"hintVisible");const f=n.ref();return Te({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const v={...Je(o.attrs),ref:f,class:C.value,readonly:s.value,disabled:i.value,modelValue:m.value,onChange:b},g={},V=[],B=n.h(T.ElSwitch,v,g);V.push(B);const R={default:()=>V};R.label=o.slots.default,R.fixedPreTip=o.slots.fixedPreTip,R.fixedTip=o.slots.fixedTip;const N={...Ve(t,Qr),hintText:w.value,hintVisible:d.value};return t.prop&&(N.prop=`${t.prop}_item`),n.h(r,N,R)}}}}const{componentName:Cf,create:$f,scope:Nf}=se("switch-item"),Yl=$f(Tf(Cf,Nf,ke)),Zr={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let kf=class{proxy;constructor(l){this.proxy=l}async load(l,r,t,o,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t,o);const i=He(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await i(r,t,o))}};function Ef(){const e=n.getCurrentInstance();return new kf(e.proxy)}const Jr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Pf(e,l,r){return{props:{...Ne,...Re,...Jr,...Zr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,o){const a=n.ref(null),i=Be(n.computed(()=>a.value??t.disabled)),u=n.ref(null),s=Le(n.computed(()=>u.value??t.readonly)),c=n.ref(!1),{emitEvent:m}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??o.attrs.name),h=ge(t,"modelValue",null,m),C=e,b=n.computed(()=>({[C]:!0})),w=q=>{h.value=q,m("update:modelValue",q),m("change",q)};let d=ge(t,"hintText"),f=n.ref(!1);const P=q=>{let x=q.target.value;c.value=!0,he(d.value)||(f.value=!0),m("focus",x,q)},v=q=>{setTimeout(()=>{f.value&&(f.value=!1),c.value=!1},0);let x=q.target.value;t.maxLength&&x.length>Number(t.maxLength)&&(x=x.slice(0,Number(t.maxLength))),V.value||m("blur",x,q)},g=()=>{m("clear","")},V=n.ref(!1),B=q=>{V.value=q,m("visible-change",q),q||m("selected")},R=n.ref([]),I=Ef(),N=async(q,Q)=>{try{const x=await I.load("treeselect",q,Q);R.value=x}catch(x){console.error(x)}};n.watch([()=>t.data,()=>t.params,()=>t.lazy],([q,Q,x])=>{!q||x||N(q,Q)},{immediate:!0});let y=null;t.lazy&&(typeof t.load=="function"?y=t.load:y=async(q,Q)=>{debugger;let x={};t.params&&Object.assign(x,t.params),q&&Object.assign(x,q);const S=await I.load("treeselect",t.data,x,!0);Q(S)});let j={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const $=n.ref();return Te({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},setDisabled:q=>{a.value=q},setReadonly:q=>{u.value=q}}),()=>{const Q={...Je(o.attrs),ref:$,class:b.value,disabled:i.value||s.value,modelValue:h.value,"onUpdate:modelValue":w,lazy:t.lazy,props:j,onClear:g,onFocus:P,onBlur:v,onVisibleChange:B};y?Q.load=y:Q.data=R.value;const x={};o.slots.option&&(x.default=o.slots.option);const S=[],O=n.h(T.ElTreeSelect,Q,x);S.push(O);const _={default:()=>S};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const J={...Ve(t,Jr,Zr),hintText:d.value,hintVisible:f.value};return t.prop&&(J.prop=`${t.prop}_item`),n.h(r,J,_)}}}}const{componentName:If,create:Of,scope:Df}=se("tree-select-item"),Ul=Of(Pf(If,Df,ke)),Vf={},Rf={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Ff(e,l){return n.openBlock(),n.createElementBlock("svg",Rf,[...l[0]||(l[0]=[n.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}const Af=Ze(Vf,[["render",Ff]]),{create:Mf}=se("group-setting"),Lf={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Bf=Mf({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:Af,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...Lf},emits:["change"],setup(e,{emit:l,attrs:r,expose:t}){let o=null;const a=n.ref([]),i=ha(),u=W=>W.length>1,s=()=>{const W=[],M=[...a.value];a.value=M.map((z,k)=>(z.visible!==!1&&W.push(z.prop),{...z,sortIndex:k})),a.value.length===W.length?d.value=!0:W.length>0&&(f.value=!0),g.value=W},c=W=>{let M=null;if(typeof W=="string")M=document.querySelectorAll(`.fox-group[prop="${W}"] > div > .fox-item[prop]`);else if(W&&typeof W=="object"){const z=W.$el??W;typeof z.querySelectorAll=="function"&&(M=z.querySelectorAll(".fox-item[prop]"))}if(!M)return[];const H=[];return M.forEach(z=>{const k=z.querySelector(".label--string");let Y="";k&&(Y=k.textContent??"");const Z=z.getAttribute("prop")??"",G=window.getComputedStyle(z,null).getPropertyValue("display");H.push({label:Y,prop:Z,sortIndex:0,visible:G!=="none"})}),H},m=()=>{if(!o){const W=c(e.groupRef??e.groupProp);if(W.length===0)return!1;o=W}return!0},h=async(W=!1)=>{const M=await i.load(e.groupProp),H=z=>{if(!z||!o)return;const k=o.map(Y=>({...Y}));Array.isArray(M)&&M.forEach(Y=>{k.some(Z=>{if(Z.prop===Y.prop){const le=Z.label;return Object.assign(Z,Y),Z.label=le,!0}return!1})}),a.value=k.sort((Y,Z)=>Y.sortIndex-Z.sortIndex),s(),W&&b(!1)};o?H(!0):vn(m,e.initDelay,5,50,!1,H)},C=()=>{const W=o??[];a.value=W.map(M=>({...M})),s(),b()},b=(W=!0)=>{W&&i.save(e.groupProp,a.value);const M=a.value.map(H=>({...H}));l("change",M)},w=n.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),d=n.ref(!1),f=n.ref(!1),P=W=>{const M=[];a.value.forEach(z=>{W&&M.push(z.prop),z.visible=W}),d.value=!1,f.value=!1,a.value.length===M.length?d.value=!0:M.length>0&&(f.value=!0),g.value=M,b()},v=()=>{C()},g=n.ref([]),V=W=>{a.value.forEach(H=>{const z=W.indexOf(H.prop)!==-1;H.visible=z}),d.value=!1,f.value=!1;const M=a.value.length;W.length===M?d.value=!0:W.length>0&&(f.value=!0),b()},B=()=>{h()};n.onMounted(()=>{h(!0)});const R={currentRow:null,index:null},I=W=>W?W.dataset&&W.dataset.role==="row"?W:W.tagName.toLowerCase()!=="body"?(W=W.parentElement,I(W)):null:null,N=W=>{const M=W.currentTarget;M&&M.dataset&&(R.index=M.dataset.index)},y=W=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null},j=W=>{const M=W.currentTarget;W.relatedTarget;const H=I(M);H&&(W.preventDefault(),R.currentRow&&R.currentRow!==H&&R.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),R.currentRow=H)},$=W=>{W.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},q=W=>{const M=W.currentTarget,H=I(M);if(!H)return;W.preventDefault();const z=Number(R.index),k=Number(H.dataset.index);if(z!==k){if(z<k){const Y=a.value[z];a.value.splice(z,1),a.value.splice(k,0,Y)}else{const Y=a.value[z];a.value.splice(z,1),a.value.splice(k+1,0,Y)}s(),b()}},Q=W=>{const M=a.value[W];a.value.splice(W,1),a.value.splice(0,0,M),s(),b()},x=W=>{const M=a.value[W];a.value.splice(W,1),a.value.push(M),s(),b()};t({refresh:()=>{o=null,h(!1)}});const S=new Map;let O=null;function _(W){const M=document.createRange();return M.setStart(W,0),M.setEnd(W,W.childNodes.length),M.getBoundingClientRect().width}return{attrs:r,itemPropertyList:a,isDraggble:u,isCheckAll:d,isIndeterminate:f,handleCheckAllChange:P,handleReset:v,checkedValue:g,handleCheckChange:V,onShow:B,onDragStart:N,onDragEnd:y,onDragOver:j,onDragLeave:$,onDrop:q,checkboxLabelStyle:w,toTop:Q,toBottom:x,onMouseOverForOverflowText:(W,M,H)=>{const z=W.currentTarget;if(z){const k=Math.floor(z.offsetWidth);if(Math.floor(_(z))>k){let Z=S.get(M);if(Z){if(Z===O)return;Ce.hide(Z)}Z=Ce.show(z,H,{type:"text",placement:"top",closeOnClick:!1}),S.set(M,Z),O=Z}}},onMouseLeaveForOverflowText:(W,M)=>{const H=S.get(M);H&&(Ce.hide(H),H===O&&(O=null))},onMouseOverForTip:(W,M)=>{const H=W.currentTarget;H&&(O&&Ce.hide(O),O=Ce.show(H,M,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:W=>{O&&(Ce.hide(O),O=null)}}}}),qf={class:"fox-group-setting"},_f={class:"fox-group-setting__header"},jf={class:"fox-group-setting__body"},zf={class:"fox-group-setting__body-list","data-role":"container"},Hf=["data-index","draggable"],Kf=["onMouseover","onMouseleave"],Wf={class:"tools-item"};function Yf(e,l,r,t,o,a){const i=n.resolveComponent("FoxCheckbox"),u=n.resolveComponent("FoxButton"),s=n.resolveComponent("DragIcon"),c=n.resolveComponent("Download"),m=n.resolveComponent("FoxIcon"),h=n.resolveComponent("FoxCheckboxGroup"),C=n.resolveComponent("FoxPopover");return n.openBlock(),n.createBlock(C,n.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("div",qf,[n.createElementVNode("div",_f,[n.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":l[0]||(l[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),n.createElementVNode("div",jf,[n.createVNode(h,{modelValue:e.checkedValue,"onUpdate:modelValue":l[10]||(l[10]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:n.withCtx(()=>[n.createElementVNode("div",zf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.itemPropertyList,b=>(n.openBlock(),n.createElementBlock("div",{key:b.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":b.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:l[5]||(l[5]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:l[6]||(l[6]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:l[7]||(l[7]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:l[8]||(l[8]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:l[9]||(l[9]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.itemPropertyList)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",label:b.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:w=>e.onMouseOverForOverflowText(w,b.prop,b.label),onMouseleave:w=>e.onMouseLeaveForOverflowText(w,b.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(b.label),45,Kf)]),_:2},1032,["label"]),n.createElementVNode("div",Wf,[n.createVNode(m,{onClick:w=>e.toTop(b.sortIndex),onMouseover:l[1]||(l[1]=w=>e.onMouseOverForTip(w,e.toTopText)),onMouseleave:l[2]||(l[2]=w=>e.onMouseLeaveForTip(w)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["onClick"]),n.createVNode(m,{onClick:w=>e.toBottom(b.sortIndex),onMouseover:l[3]||(l[3]=w=>e.onMouseOverForTip(w,e.toBottomText)),onMouseleave:l[4]||(l[4]=w=>e.onMouseLeaveForTip(w))},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["onClick"])])],40,Hf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Gl=Ze(Bf,[["render",Yf]]),Uf={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Gf=class{proxy;constructor(l){this.proxy=l}async load(l,r,t,o,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(t,o);const i=He(this.proxy,l);return i===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await i(r,t,o))}};function Xf(){const e=n.getCurrentInstance();return new Gf(e.proxy)}function Qf(e,l,r){return{props:{...cl,...Uf},setup(t,o){const a=e,i=n.computed(()=>({[a]:!0})),u=n.ref([]),s=Xf(),c=async(g,V)=>{try{const B=await s.load("tree",g,V);u.value=B}catch(B){console.error(B)}},m=n.shallowRef({}),h=n.computed(()=>({...m.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ce(t.autoLoad))&&n.watch([()=>t.data,()=>h.value],([g,V])=>{g&&c(g,V)},{immediate:!0,deep:!0});let b=null;t.lazy&&(typeof t.load=="function"?b=t.load:b=async(g,V)=>{let B={};t.params&&Object.assign(B,t.params),g&&Object.assign(B,g);const R=await s.load("treeselect",t.data,B,!0);V(R)});const w={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},d=(g={})=>new Promise(async V=>{m.value={...n.toRaw(g??{})},await c(t.data,h.value),V()}),f=function(g,V){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(g,V);if(!t.filterKeyword)return!0;const B=`${V[w.label]}`,R=`${g}`;return B.includes(R)},P=n.ref();n.watch(()=>t.filterKeyword,g=>{P.value.filter(g)});const v=g=>(...V)=>{const B=P.value[g];return Reflect.apply(B,P.value,[...V])};return o.expose({loadData:d,filter:v("filter"),updateKeyChildren:v("updateKeyChildren"),getCheckedNodes:v("getCheckedNodes"),setCheckedNodes:v("setCheckedNodes"),getCheckedKeys:v("getCheckedKeys"),setCheckedKeys:v("setCheckedKeys"),setChecked:v("setChecked"),getHalfCheckedNodes:v("getHalfCheckedNodes"),getHalfCheckedKeys:v("getHalfCheckedKeys"),getCurrentKey:v("getCurrentKey"),getCurrentNode:v("getCurrentNode"),setCurrentKey:v("setCurrentKey"),setCurrentNode:v("setCurrentNode"),getNode:v("getNode"),remove:v("remove"),append:v("append"),insertBefore:v("insertBefore"),insertAfter:v("insertAfter")}),()=>{const V={...Je(o.attrs),class:i.value,lazy:t.lazy,props:w,ref:$=>P.value=$};b?V.load=b:V.data=u.value,V["filter-node-method"]=f;const B=[],R=n.h(T.ElTree,V,o.slots);B.push(R);const I={default:()=>B},y={...St(t,cl)};return n.h(r,y,I)}}}}const{componentName:Zf,create:Jf,scope:ed}=se("tree-item"),Xl=Jf(Qf(Zf,ed,Pn)),td=["aria-labelledby"],nd=n.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ld=[nd],rd=n.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ld,14,td))}}),od=["aria-labelledby"],ad=n.createElementVNode("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1),id=[ad],sd=n.defineComponent({__name:"Right",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},id,14,od))}}),ud=["aria-labelledby"],cd=n.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),fd=[cd],dd=n.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},fd,14,ud))}}),hd=["aria-labelledby"],md=n.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),gd=[md],Ql=n.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},gd,14,hd))}}),vd=["aria-labelledby"],pd=n.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),yd=[pd],bd=n.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yd,14,vd))}}),xd=["aria-labelledby"],wd=n.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Sd=[wd],Td=n.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Sd,14,xd))}}),Cd=["aria-labelledby"],$d=n.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Nd=[$d],kd=n.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Nd,14,Cd))}}),Ed=["aria-labelledby"],Pd=n.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Id=[Pd],Od=n.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:l}){const r=e,t=l,o=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=n.computed(()=>{const s={};return s.height=a(r.height)??a(r.size),s.width=a(r.width)??a(r.size),s.color=r.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Id,14,Ed))}}),hl={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},eo=(e,l)=>l[e.textKey],Pt=(e,l)=>l[e.valueKey],Dd=(e,l)=>l[e.visibleKey],to=(e,l)=>l[e.disabledKey],Vd=(e,l)=>{const r=l[e.doitKey];return ce(r)},Rd=(e,l)=>{const r=l[e.numKey];return r==null?null:$e(l[r])},no=(e,l,r)=>{const t=e.itemOptions;return typeof t=="function"?t(l,r):t||null};function Fd(e,l,r,t,o,a=!1){return{props:{...hl},emits:["update:modelValue","change","click"],setup(i,{slots:u,emit:s}){const c=n.computed(()=>{const E={};return E[`${e}`]=!0,E}),m=n.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${i.direction}`]=!0,i.align&&(E[`${i.align}`]=!0),i.scroll===!0&&(E.scrollable=!0),i.shape&&(E[`${i.shape}`]=!0),i.showScrollArrow?(k.value===!0&&(E["has-left-scroll-arrow "]=!0),Y.value===!0&&(E["has-right-scroll-arrow "]=!0)):i.showQuickNavigation&&(E["has-navigation"]=!0),E}),h=n.computed(()=>({})),C=n.computed(()=>{if(!i.gutter)return 0;const E=ve(i.gutter);return E<=0?0:E}),b=n.ref(i.modelValue);n.watch(()=>i.modelValue,E=>{b.value!==E&&(b.value=E,J(!1))});const w=n.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),d=n.computed(()=>{const E={};return P.value||(E.display="none"),E}),f=n.ref(),P=n.ref(!1),v=()=>{const E=!P.value;g(E)},g=E=>{const p=E;p?(P.value=p,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,f.value?f.value.addEventListener("transitionend",()=>{P.value=!1},{once:!0}):setTimeout(()=>{P.value=!1},0))},V=n.ref(),B=n.ref([]),R=(E,p)=>{B.value[p]=E},I=E=>p=>{R(p,E)},N=(E,p)=>{const L=V.value,F=B.value;if(!L||!F||!F[E])return;const ee=F[E];let re=0;i.direction==="vertical"?re=ee.offsetTop-(L.offsetHeight-ee.offsetHeight)/2:re=ee.offsetLeft-(L.offsetWidth-ee.offsetWidth)/2,y(L,re,p?0:.3,i.direction)},y=(E,p,L,F)=>{let ee=0;const re=F==="horizontal"?E.scrollLeft:E.scrollTop,ie=L===0?1:Math.round(L*1e3/16);function fe(){F==="horizontal"?E.scrollLeft+=(p-re)/ie:E.scrollTop+=(p-re)/ie,++ee<ie&&pl(fe)}fe()},j=(E,p)=>{const L=Pt(i,E),F={};return F[`${e}__titles-item`]=!0,F.disabled=to(i,E),F.active=L===b.value,i.shape&&(F[`${i.shape}`]=!0),i.ellipsis&&(F.ellipsis=!0),p&&(p.class&&(F[`${p.class}`]=!0),p.disabled===!0&&(F.disabled=p.disabled)),F},$=(E,p)=>{const L={};if(C.value>0){const F=Math.abs(C.value/2);i.direction==="vertical"?(L["margin-top"]=`${F}px`,L["margin-bottom"]=`${F}px`):(L["margin-left"]=`${F}px`,L["margin-right"]=`${F}px`)}return p&&p.style&&Object.assign(L,p.style),L},q=(E,p)=>`${Pt(i,E)??p}`,Q=(E,p)=>{const L=Pt(i,E),F={};F[`${e}__popup-item`]=!0,F.disabled=to(i,E),F.active=L===b.value,i.shape&&(F[`${i.shape}`]=!0);const ee=no(i,E,p);return ee&&ee.disabled===!0&&(F.disabled=ee.disabled),F},x=n.computed(()=>(i.data??[]).filter(p=>Dd(i,p)!==!1)),S=(E,p)=>{const L=Pt(i,E);if(s("click",E,p),b.value==L)return;const F=()=>{b.value=L,i.scroll&&N(p,!1),s("update:modelValue",L),s("change",E,p)};if(typeof i.beforeChange=="function"){const ee=i.beforeChange(E,p);Po(ee)?ee.then(re=>{re!==!1&&F()}).catch(()=>{F()}):ee!==!1&&F()}else F()},O=(E,p)=>function(){S(E,p)},_=(E,p)=>{S(E,p),g(!1)},X=(E,p)=>function(){_(E,p)},J=E=>{if(!Array.isArray(i.data)||!i.scroll)return;z()&&U();const p=i.data.findIndex(L=>Pt(i,L)===b.value);p!==-1&&N(p,E)},A=()=>{z()||D()};n.watch(()=>i.data,()=>{setTimeout(J,0)}),n.onMounted(()=>{J(!0)}),n.onBeforeUnmount(()=>{A()});const te=(E,p)=>{if(u.item)return u.item({item:E,index:p});const L=no(i,E,p),F=[];if(u.text){const fe=u.text({item:E,index:p});F.push(fe)}else{const fe=[];if(L?.doit===!0||Vd(i,E)){const We={class:[`${e}__titles-item-tip`,"doit"]},Pe=n.h("view",We);fe.push(Pe)}const me=L?.num??Rd(i,E);if(me){let We="";const Pe=$e(me);Pe>=100?We="99+":We=`${Pe}`;const gt={class:[`${e}__titles-item-tip`,"num"]},Ln=n.h("view",gt,[We]);fe.push(Ln)}const be={class:`${e}__titles-item-text`};fe.push(eo(i,E));const nt=n.h("view",be,fe);F.push(nt)}const ee={class:`${e}__titles-item-line`},re=n.h("view",ee);F.push(re);const ie={ref:I(p),class:j(E,L),style:$(E,L),key:q(E,p),onClick:O(E,p)};return n.h("view",ie,F)},W=()=>{const E=u.default?u.default():[];if(E.length===0)for(let L=0;L<x.value.length;L++){const F=x.value[L],ee=te(F,L);E.push(ee)}const p={ref:V,class:m.value,style:h.value};return n.h("view",p,E)},M=()=>{let E=null;u.navigation?E=u.navigation():E=n.h(r);const p={class:`${e}__navigation`,onClick:v};return n.h("view",p,[E])},H=()=>{const E=[];for(let L=0;L<x.value.length;L++){const F=x.value[L];let ee=null;u.popupItem?ee=u.popupItem({item:F,index:L}):ee=eo(i,F);const re={class:Q(F,L),key:q(F,L),onClick:X(F,L)},ie=n.h("view",re,[ee]);E.push(ie)}const p={class:w.value,style:d.value};return n.h("view",p,E)},z=()=>i.showScrollArrow&&i.direction=="horizontal",k=n.ref(!1),Y=n.ref(!1),Z=E=>{const p=V.value,L=B.value;if(!(!p||!L))if(E==="left"){const F=p.scrollLeft;let ee=F;for(let re=0;re<L.length;re++){const ie=L[re].offsetLeft;if(F-ie<0)break;ee=ie}y(p,ee,.3,"horizontal")}else{const F=p.scrollLeft;let ee=F,re=p.offsetWidth;for(let ie=L.length-1;ie>=0;ie--){const fe=L[ie].offsetLeft+L[ie].offsetWidth;if(fe-F<p.offsetWidth){ee+=re-fe;break}re=fe}y(p,ee,.3,"horizontal")}},le=Ke(()=>{const E=V.value;if(!E)return;let p=E.scrollLeft>0;p!==k.value&&(k.value=p);let L=E.scrollWidth-E.scrollLeft>E.offsetWidth;L!==Y.value&&(Y.value=L)},50),G=E=>{le()},U=()=>{const E=V.value;E&&(le(),E.addEventListener("scroll",G))},D=()=>{const E=V.value;E&&E.removeEventListener("scroll",G)},K=E=>{if(E==="left"&&k.value!==!0||E==="right"&&Y.value!==!0)return null;let p=null;E==="left"?u.leftArrow?p=u.leftArrow():p=n.h(t):u.rightArrow?p=u.rightArrow():p=n.h(o);const L={class:[`${e}__scroll-arrow`,E],onClick:()=>{Z(E)}};return n.h("view",L,[p])};return()=>{const E=[],p=W();if(E.push(p),z()){const F=K("left");F&&E.push(F);const ee=K("right");ee&&E.push(ee)}else if(i.showQuickNavigation){const F=M();E.push(F);const ee=H();E.push(ee)}const L={class:c.value};return n.h("view",L,E)}}}}const{create:Ad,componentName:Md,scope:Ld}=se("tabs-bar"),Rn=Ad(Fd(Md,Ld,dd,bd,sd,!1)),va=Symbol("TabsStatesKey"),ml={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},lo=10;function pa(e,l){return e>l&&e>lo?"horizontal":l>e&&l>lo?"vertical":""}function _t(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function jt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},l=()=>e.direction==="vertical",r=()=>e.direction==="horizontal",t=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;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=pa(e.offsetX,e.offsetY))}),start:(i=>{if(t(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()}),reset:t,isVertical:l,isHorizontal:r,state:e}}function Bd(){const e=n.ref(0),l=n.ref(0),r=n.ref(0),t=n.ref(0),o=n.ref(0),a=n.ref(0),i=n.ref(0),u=n.ref(0),s=n.ref(0),c=n.ref(0),m=n.ref(""),h=()=>m.value==="vertical",C=()=>m.value==="horizontal",b=()=>{i.value=0,u.value=0,s.value=0,c.value=0,m.value="",r.value=0};return{move:(f=>{if(f.touches){const g=f.touches[0];i.value=g.clientX-e.value,u.value=g.clientY-l.value,o.value=g.clientX,a.value=g.clientY}else{const v=f;i.value=v.clientX-e.value,u.value=v.clientY-l.value,o.value=v.clientX,a.value=v.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-r.value,m.value||(m.value=pa(s.value,c.value))}),start:(f=>{if(b(),f.touches){const g=f.touches[0];e.value=g.clientX,l.value=g.clientY}else{const v=f;e.value=v.clientX,l.value=v.clientY}r.value=Date.now()}),reset:b,startX:e,startY:l,startTime:r,duration:t,moveX:o,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:m,isVertical:h,isHorizontal:C}}const qd=15,_d=300,jd=200;function zd(e,l,r=1){return e=Math.abs(e/l)/.003*(e<0?-1:1),e*r}function ro(e,l=0,r,t,o=jd){r==="end"?e.style.transition=`transform ${o}ms linear`:e.style.transition="transform 0ms linear",t==="horizontal"?e.style.transform=`translate3d(${l}px, 0, 0)`:e.style.transform=`translate3d(0, ${l}px, 0)`}let Hd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(l,r,t,o=1){this.onStart=l,this.onMove=r,this.onEnd=t,this.momentumReduceRatio=o,this.isTouch=_t()}open(l){this.el=l;const r=jt(),t=(o,a,i)=>{const u={delta:o,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=o=>{if(this.moving)return;r.start(o),this.transitionEndTrigger=()=>{l.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,l.removeEventListener("transitionend",this.transitionend),l.addEventListener("transitionend",this.transitionend),l.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),l.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&l.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=o=>{if(!this.moving)return;r.move(o);let a=0;if(this.direction==="horizontal"){if(r.isVertical())return;a=r.state.deltaX}else{if(r.isHorizontal())return;a=r.state.deltaY}t(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;l.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),l.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&l.removeEventListener("touchcancel",this.touchend);let o=0;if(this.direction==="horizontal"){if(r.isVertical()){this.moving=!1;return}o=r.state.deltaX}else{if(r.isHorizontal()){this.moving=!1;return}o=r.state.deltaY}const a=r.state.duration;a<_d&&Math.abs(o)>qd?(o=zd(o,a,this.momentumReduceRatio),t(o,this.direction,"end")):t(o,this.direction,"end")},l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const l=this.el;this.transitionend&&l.addEventListener("transitionend",this.transitionend),this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&l.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&l.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&l.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Kd(e,l,r,t=1){return new Hd(e,l,r,t)}function Wd(e,l,r=!1){return{props:{...ml},emits:["update:modelValue","change"],setup(t,{emit:o,slots:a}){const i=n.shallowRef([]),u={current:n.ref(t.modelValue??""),direction:n.ref(t.direction),tabWidth:n.ref(-1),tabHeight:n.ref(-1),add:I=>{const N={name:I};u.current.value===I&&(N.loaded=!0),i.value.push(N),n.triggerRef(i)},remove:I=>{const N=i.value.findIndex(y=>y.name===I);N!==-1&&i.value.splice(N,1)},isLoaded:I=>{if(!t.lazy)return!0;const N=i.value.findIndex(y=>y.name===I);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};n.provide(va,u);const s=I=>{const N=i.value.findIndex(y=>y.name===I);N!==-1&&(i.value[N].loaded=!0,n.triggerRef(i))};n.watch([()=>t.modelValue,()=>t.direction],([I,N])=>{u.current.value!==I&&(u.current.value=I??"",s(I??"")),u.direction.value!==N&&(u.direction.value=N)});const c=n.ref(null),m=n.ref(null),h=n.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),C=n.computed(()=>{const I={};if(t.width){const N=pe(t.width);N&&(I.width=N)}if(t.height){const N=pe(t.height);N&&(I.height=N)}return I});let b=!0;const w=n.computed(()=>{const I={},N=i.value.length;if(N<=0)return I;const y=i.value.findIndex(j=>j.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(I.height=`${N*u.tabHeight.value}px`,y!==-1&&(I.transform=`translate(0, -${y*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(I.width=`${N*u.tabWidth.value}px`,y!==-1&&(I.transform=`translate(-${y*u.tabWidth.value}px, 0)`)),b&&(b=!1,I.transition="transform 0s ease"),I}),d={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=I=>{const N=i.value.length,y=i.value.findIndex(j=>j.name===u.current.value);d.moved=0,I.direction==="vertical"?(d.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),d.max=u.tabHeight.value/4,d.start=-y*u.tabHeight.value,d.itemDistance=u.tabHeight.value):(d.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),d.max=u.tabWidth.value/4,d.start=-y*u.tabWidth.value,d.itemDistance=u.tabWidth.value)},P=I=>{const N=m.value;if(!N)return;let y=d.start+I.delta;if(y>d.max?y=d.max:y<d.min&&(y=d.min),I.type==="move")ro(N,y,"move",I.direction,300);else if(I.type==="end"){let j=Math.floor(Math.abs(y)*1/d.itemDistance);const $=Math.abs(y)%d.itemDistance;d.start>y?$>=d.itemDistance*d.triggerAutoMoveRatio&&(j+=1):$>d.itemDistance-d.itemDistance*d.triggerAutoMoveRatio&&(j+=1),y=-1*j*d.itemDistance,ro(N,y,"end",I.direction,300),d.moved=y;const q=i.value[j].name;u.current.value=q??"",s(q??""),o("update:modelValue",q)}},v=()=>{},g=()=>{if(!c.value)return;const I=wn(c.value);u.tabWidth.value=I.width,u.tabHeight.value=I.height},V=Ho(g,250);let B=null,R=null;return n.onMounted(()=>{c.value&&(g(),window.ResizeObserver&&(R=new window.ResizeObserver(V),R.observe(c.value)),t.draggle&&(B=Kd(f,P,v),B.open(m.value)))}),n.onBeforeUnmount(()=>{R&&(R.disconnect(),R=null),B&&B.close()}),()=>{const I={class:`${e}__panes`,style:w.value,ref:m},N=n.h("view",I,[a?.default?.()]),y={class:h.value,style:C.value,ref:c};return n.h("view",y,[N])}}}}const{create:Yd,componentName:Ud,scope:Gd}=se("tabs-container"),Fn=Yd(Wd(Ud,Gd,!1)),Xd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Qd(e,l,r){return{props:{...Xd},setup(t,{emit:o,slots:a}){const i=n.inject(va);n.onMounted(()=>{i.add(t.paneKey)}),n.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=n.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=n.computed(()=>t.loaded!=null?ce(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const h={class:`${e}__empty-icon`},C=t.emptyIcon??r,b=n.h(C,h),w={class:`${e}__empty-text`},d=t.emptyText??"Loading",f=n.h("view",w,[d]),P={class:`${e}__empty`},v=n.h("view",P,[b,f]);c.push(v)}const m={class:`${e}`,style:u.value,prop:t.paneKey};return n.h("view",m,c)}}}}const{create:Zd,componentName:Jd,scope:eh}=se("tabs-pane"),Zl=Zd(Qd(Jd,eh,Ql));function th(e,l,r,t){return{props:{...hl,...ml,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(o,{emit:a,slots:i}){const u=e,s=n.computed(()=>{const d=[`${u}`];return o.direction==="vertical"?d.push("vertical-tabbar"):d.push("horizontal-tabbar"),d}),c=n.computed(()=>{const d={};if(o.width){const f=pe(o.width);f&&(d.width=f)}if(o.height){const f=pe(o.height);f&&(d.height=f)}return d}),m=n.computed(()=>[`${u}__bar`]),h=n.computed(()=>[`${u}__container`]),C=n.ref(o.modelValue);n.watch(()=>o.modelValue,d=>{C.value!==d&&(C.value=d)});const b=d=>{a("change",d)},w=d=>{C.value!==d&&(C.value=d,a("update:modelValue",d))};return()=>{const d=i.default?.()??[],f=[];if(Array.isArray(o.data))f.push(...o.data);else for(let N=0;N<d.length;N++){const y=d[N].props??{},j={text:y.label??"",value:y["pane-key"]??y.paneKey??""};f.push(j)}const P={};for(let N in i)N!=="default"&&(P[N]=i[N]);const v=St(o,hl);Object.assign(v,{data:f,class:m.value,modelValue:C.value,direction:o.direction,onChange:b,"onUpdate:modelValue":w});const g=n.h(r,v,P),V={default:()=>d},B=St(o,ml);Object.assign(B,{class:h.value,modelValue:C.value,onChange:b,"onUpdate:modelValue":w});const R=n.h(t,B,V),I={class:s.value,style:c.value};return n.h("view",I,[g,R])}}}}const{create:nh,componentName:lh,scope:rh}=se("tabs-frame"),Jl=nh(th(lh,rh,Rn,Fn)),oh={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function ah(e,l){return typeof e.textKey=="string"&&e.textKey.length>0?l[e.textKey]:l.text}function oo(e,l){return typeof e.valueKey=="string"&&e.valueKey.length>0?l[e.valueKey]:l.value}function ao(e,l){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?l[e.disabledKey]:l.disabled??null}function ih(e,l){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?l[e.visibleKey]:l.visible??null}function Gn(e,l){return typeof e.statusKey=="string"&&e.statusKey.length>0?l[e.statusKey]:l.statusKey??null}function io(e,l){return typeof e.doitKey=="string"&&e.doitKey.length>0?l[e.doitKey]:l.doitKey??null}function so(e,l){return typeof e.labelKey=="string"&&e.labelKey.length>0?l[e.labelKey]:l.labelKey??null}function Xn(e,l,r){return typeof e.itemOptions=="function"?e.itemOptions(l,r):e.itemOptions}class sh{proxy;constructor(l){this.proxy=l}async load(l,r,t){if(Array.isArray(r))return r;if(typeof r=="function")return await Reflect.apply(r,null,[t]);const o=He(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Qe(t)&&n.isReactive(t)&&(t=n.toRaw(t)),await Reflect.apply(o,null,[r,t]))}}function uh(){const e=n.getCurrentInstance();return new sh(e.proxy)}function ch(e,l,r,t){return{props:{...oh},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:a,emit:i}){const u=e,s=uh(),c=n.ref([]),m=n.computed(()=>c.value.filter(M=>ih(o,M)!==!1)),h=n.ref(-1),C=()=>{const M=o.modelValue,H=m.value.findIndex(z=>oo(o,z)===M);h.value!==H&&(h.value=H,o.scroll&&te(H))};n.watch([()=>o.modelValue,m],()=>{C()});const b=M=>h.value===M,w=M=>{if(M<0&&M>=m.value.length)return!1;const H=m.value[M],k=(Xn(o,H,M)??{}).status??Gn(o,H);return b(M)||k},d=n.computed(()=>{const M={[u]:!0};return o.mode?M[`is-${o.mode}`]=!0:o.direction&&(M[`is-${o.direction}`]=!0),o.scroll&&(M["is-scroll"]=!0),M}),f=n.computed(()=>({})),P=(M,H,z,k,Y)=>{const Z={[`${u}__step`]:!0};return Y&&(Z[`${Y}`]=!0),Z[`${v.value}`]=!0,k&&(Z["is-doit"]=!0),M===h.value?Z["is-active"]=!0:H==="done"?Z["is-done"]=!0:H==="error"?Z["is-error"]=!0:H==="half"?Z["is-half"]=!0:z?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},v=n.computed(()=>{let M=o.align;if(!M){if(o.mode==="simple")return"start";o.direction==="vertical"?M="start":M="center"}return M}),g=(M,H={})=>{const z={...H};if(v.value==="start"&&M===m.value.length-1)z.flex="0 0 auto";else if(o.step){const k=typeof o.step=="number"||yl(o.step)?pe(o.step):o.step;o.direction==="vertical"?z.height=k:z.width=k}else z.flex="1 1 100%";return z},V=(M,H)=>{let z={};if(H<m.value.length-1){const k=H+1;w(H)&&w(k)?o.direction==="vertical"?z.height="100%":z.width="100%":z.opacity="0"}return z},B=M=>m.value.length-1===M,R=(M,H)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&H>h.value||h.value===H)return;const z=h.value,k=H;h.value=H,o.scroll&&te(H);const Y=oo(o,M);i("update:modelValue",Y);const Z={fromIndex:z,currentIndex:k,item:M,items:m.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",Y,Z)},I=n.ref(!0),N=async(M,H)=>{try{const z=await s.load("stesbar",M,H);Array.isArray(z)&&(c.value=z),I.value=!1}catch(z){console.error("[FoxUI] Load StepsBar Data Fail",z),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};n.watch([()=>o.data,()=>o.params],async([M,H])=>{M&&N(M,H)},{immediate:!0});const y=(M,H,z,k,Y)=>{let Z=null;if(a.icon)Z=a.icon({item:M,index:H,status:k});else if(k==="done"){const G={};o.iconSize&&(G.width=o.iconSize,G.height=o.iconSize);const U=o.icon??r;Z=n.h(U,G)}else{const G=z??`${H+1}`;Z=n.h("span",{},[G])}const le={class:"fox-steps-bar__icon",onClick:()=>{Y||R(M,H)}};return n.h("view",le,[Z])},j=(M,H,z)=>{const k=n.h("i",{class:"fox-steps-bar__line-inner",style:V(M,H)});return n.h("view",{class:"fox-steps-bar__line"},[k])},$=()=>{let M=null;if(a.markIcon)M=a.markIcon();else{const z={};o.iconSize&&(z.width=o.markIconSize,z.height=o.markIconSize);const k=o.markIcon??t;M=n.h(k,z)}return n.h("view",{class:"fox-steps-bar__mark"},[M])},q=(M,H,z,k,Y)=>{const Z=[];if(!B(H)){const U=j(M,H);Z.push(U)}const le=y(M,H,z,k,Y);Z.push(le);const G={class:"fox-steps-bar__head"};return n.h("view",G,Z)},Q=(M,H,z,k)=>{let Y=null;a.main?Y=a.main({item:M,index:H,status:z}):Y=ah(o,M);const Z={class:"fox-steps-bar__main",onClick:()=>{k||R(M,H)}};return n.h("view",Z,[Y])},x=(M,H,z)=>{let k=null;if(a.sub){k=a.sub({item:M,index:H,status:z});const Y={class:"fox-steps-bar__sub"};return n.h("view",Y,[k])}return null},S=(M,H)=>{const z=Xn(o,M,H)??{},k=z.status??Gn(o,M);let Y=ao(o,M);z.disabled===!0&&(Y=!0),o.disabled===!0&&(Y=!0);const Z=z.label??so(o,M),le=[],G=y(M,H,Z,k,Y);G&&le.push(G);const U=Q(M,H,k,Y);if(U&&le.push(U),!B(H)){const F=j(M,H);F&&le.push(F)}const D=n.h("view",{class:"fox-steps-bar__head"},le),K=z.class,E=z.style??{};let p=io(o,M);z.doit===!0&&(p=!0);const L={ref:A(H),class:P(H,k,Y,p,K),style:g(H,E)};return n.h("view",L,[D])},O=(M,H)=>{const z=Xn(o,M,H)??{},k=z.status??Gn(o,M);let Y=ao(o,M);z.disabled===!0&&(Y=!0),o.disabled===!0&&(Y=!0);const Z=z.label??so(o,M),le=[],G=o.layout;for(let p of G)if(p==="head"){const L=q(M,H,Z,k,Y);le.push(L)}else if(p==="main"){const L=Q(M,H,k,Y);le.push(L)}else if(p==="sub"){const L=x(M,H,k);le.push(L)}else if(p==="mark"){const L=$();le.push(L)}const U=z.class,D=z.style??{};let K=io(o,M);z.doit===!0&&(K=!0);const E={ref:A(H),class:P(H,k,Y,K,U),style:g(H,D)};return n.h("view",E,le)},_=n.ref(),X=n.ref([]),J=(M,H)=>{X.value[H]=M},A=M=>H=>{J(H,M)},te=(M,H)=>{const z=_.value,k=X.value;if(!z||!k||!k[M])return;const Y=k[M];let Z=0;o.direction==="vertical"?Z=Y.offsetTop-(z.offsetHeight-Y.offsetHeight)/2:Z=Y.offsetLeft-(z.offsetWidth-Y.offsetWidth)/2,W(z,Z,.3,o.direction)},W=(M,H,z,k)=>{let Y=0;const Z=k==="horizontal"?M.scrollLeft:M.scrollTop,le=Math.round(z*1e3/16);function G(){k==="horizontal"?M.scrollLeft+=(H-Z)/le:M.scrollTop+=(H-Z)/le,++Y<le&&pl(G)}G()};return()=>{let M=[];if(o.mode==="simple")for(let z=0;z<m.value.length;z++){const k=m.value[z],Y=S(k,z);M.push(Y)}else for(let z=0;z<m.value.length;z++){const k=m.value[z],Y=O(k,z);M.push(Y)}const H={ref:_,class:d.value,style:f.value};return M.length===0&&typeof a.default=="function"&&(M=a.default()),n.h("view",H,M)}}}}const{componentName:fh,create:dh,scope:hh}=se("steps-bar"),er=dh(ch(fh,hh,kd,Od)),mh=Symbol.for("PageWrapperKey");function gh(e,l){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(r,t){Sl(!0);const o={};n.provide(mh,o);const a=c=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=n.ref(!0),u=c=>{i.value=c},s=n.computed(()=>{const c={};return r.height&&(c["--fox-dialog-item-body-height"]=pe(r.height)),c});return()=>{const m={...t.attrs,style:s.value,title:r.title,draggable:r.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":a},h=["fox-dialog-item "];r.hideHeader&&h.push("hide-header"),r.class&&h.push(r.class),m.class=h.join(" ");const C={};return typeof t.slots.default=="function"&&(C.default=t.slots.default),n.h(T.ElDialog,m,C)}}}}const{create:vh}=se("dialog-item"),tr=vh(gh());let It=0;const uo="fox-overflow-hidden",co=()=>ut?document.body:{classList:[]},ph=e=>[()=>{if(e())try{!It&&co().classList.add(uo),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&co().classList.remove(uo)}catch{}}],yh={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:bh,create:xh}=se("overlay"),wh=xh({props:{...yh},emits:["click","update:visible"],setup(e,{emit:l}){const[r,t]=ph(()=>e.lockScroll),o=n.computed(()=>({[bh]:!0,[e.overlayClass]:!0})),a=n.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return n.watch(()=>e.visible,u=>{u?r():t()}),{classes:o,style:a,onClick:u=>{l("click",u),e.closeOnClickOverlay&&l("update:visible",!1)}}}});function Sh(e,l,r,t,o,a){return n.openBlock(),n.createBlock(n.Transition,{name:"overlay-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),onClick:l[0]||(l[0]=n.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default")],6),[[n.vShow,e.visible]])]),_:3})}const An=Ze(wh,[["render",Sh]]),Th={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},ya=2e3;let fo=ya;const Ch=(e,l)=>({components:l,props:{...Th},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(r,{emit:t}){const o=n.reactive({zIndex:r.zIndex,showSlot:!0,closed:r.closeable}),a=n.computed(()=>({[e]:!0,round:r.round,[`fox-popup--${r.position}`]:!0,[`fox-popup--${r.position}--safebottom`]:r.position==="bottom"&&r.safeAreaInsetBottom,[r.popClass]:!0})),i=n.computed(()=>({zIndex:o.zIndex,transitionDuration:`${r.duration}s`,...r.style})),u=n.computed(()=>r.transition?r.transition:`fox-popup-slide-${r.position}`),s=()=>{r.zIndex!==ya&&(fo=Number(r.zIndex)),t("update:visible",!0),o.zIndex=++fo,r.destroyOnClose&&(o.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),r.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+r.duration*1e3)},m=d=>{t("click-pop",d)},h=d=>{d.stopPropagation(),t("click-close-icon",d),t("update:visible",!1)},C=d=>{t("click-overlay",d),r.closeOnClickOverlay&&t("update:visible",!1)},b=d=>{t("opend",d)},w=d=>{t("closed",d)};return n.watch(()=>r.visible,d=>{r.visible?s():c()}),n.watch(()=>r.closeable,d=>{o.closed=d}),{...n.toRefs(o),popStyle:i,transitionName:u,classes:a,onClick:m,onClickCloseIcon:h,onClickOverlay:C,onOpened:b,onClosed:w}}}),{componentName:$h,create:Nh}=se("popup"),kh=Nh(Ch($h,{FoxOverLay:An,Close:Td}));function Eh(e,l,r,t,o,a){const i=n.resolveComponent("FoxOverLay"),u=n.resolveComponent("Close");return n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(n.openBlock(),n.createBlock(i,n.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):n.createCommentVNode("",!0),n.createVNode(n.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.popStyle),onClick:l[1]||(l[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?n.renderSlot(e.$slots,"default",{key:0}):n.createCommentVNode("",!0),e.closed?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:l[0]||(l[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:n.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[n.renderSlot(e.$slots,"close-icon",{},()=>[n.createVNode(u)])],2)):n.createCommentVNode("",!0)],6),[[n.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const nr=Ze(kh,[["render",Eh]]),{create:Ph}=se("toast"),Ih=Ph({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:l}){let r=null;const t=n.reactive({mounted:!1});n.onMounted(()=>{t.mounted=!0});const o=()=>{r&&(clearTimeout(r),r=null)},a=()=>{t.mounted=!1},i=()=>{o(),e.duration&&(r=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),l("close"))};e.duration&&i(),n.watch(()=>e.duration,b=>{b&&i()});const s=n.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const b=ve(e.iconSize);return n.h(e.icon,{width:b,height:b,color:e.iconColor})},m=n.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),h=n.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:m,toastIconWrapperClass:h,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Oh={key:1,class:"fox-toast-title"},Dh=["innerHTML"];function Vh(e,l,r,t,o,a){return n.openBlock(),n.createBlock(n.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.toastBodyClass),style:n.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:l[0]||(l[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[n.createElementVNode("view",{class:"fox-toast-inner",style:n.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.toastIconWrapperClass)},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.renderIcon())))],2)):n.createCommentVNode("",!0),e.title?(n.openBlock(),n.createElementBlock("div",Oh,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Dh)],4)],6),[[n.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const lr=Ze(Ih,[["render",Vh]]),Rh={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Fh=(e,l,r)=>({props:{...Rh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:o}){const{emitEvent:a}=Yo(),{toLocaleRefs:i}=Me.useFoxI18n(l),u=i(t,["placeholder"]),s=n.reactive({active:!1}),c=n.computed(()=>({background:t.background})),m=n.computed(()=>({background:t.inputBackground})),h=y=>{let $=y.target.value;t.maxLength&&$.length>Number(t.maxLength)&&($=$.slice(0,Number(t.maxLength))),a("update:modelValue",$,y),a("change",$,y)},C=n.ref({}),b=y=>{let $=y.target.value;s.active=!0,C.value=t.focusStyle,a("focus",$,y)},w=y=>{setTimeout(()=>{s.active=!1},0);let $=y.target.value;t.maxLength&&$.length>Number(t.maxLength)&&($=$.slice(0,Number(t.maxLength))),C.value={},a("blur",$,y)},d=y=>{a("update:modelValue","",y),a("change","",y),a("clear","")},f=n.computed(()=>String(t.modelValue).length>0),P=n.computed(()=>{const y={};return f.value||(y.display="none"),y}),v=()=>{a("search",t.modelValue)},g=y=>{a("keyup-input",y),y.key.toLocaleUpperCase()==="ENTER"&&v()},V=y=>{a("click-input",y)},B=y=>{a("click-left-icon",t.modelValue,y)},R=n.computed(()=>({textAlign:t.inputAlign})),I=n.ref(null);n.onMounted(()=>{t.autofocus&&I.value.focus()});const N=()=>{const y=[];if(o.leftin){const x={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},S=n.h("view",x,[o.leftin()]);y.push(S)}const j={ref:I,class:[`${e}__input-inner`],style:R.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:V,onInput:h,onFocus:b,onBlur:w,onkeyup:g},$=n.h("input",j);y.push($);const q=[];if(t.clearable){const x={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:d},S=o?.clear?.()??t.clearIcon??r,O=n.h("view",x,[n.h(S)]);q.push(O)}if(o.rightin){const x={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},S=n.h("view",x,[o.rightin()]);q.push(S)}if(q.length>0){const x={class:`${e}__input-inner-right`},S=n.h("view",x,q);y.push(S)}const Q={class:[`${e}__search-input`,`${t.shape}`],style:{...m.value,...C.value}};return n.h("view",Q,y)};return()=>{const y=[];if(t.label){const q={class:`${e}__search-label`},Q=n.h("span",q,[t.label]);y.push(Q)}if(o.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Q=n.h("view",q,[o.leftout()]);y.push(Q)}const j=N();if(y.push(j),o.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Q=n.h("view",q,[o.rightout()]);y.push(Q)}const $={class:`${e}`,style:c.value};return n.h("view",$,y)}}}),{componentName:Ah,create:Mh,scope:Lh}=se("searchbar"),rr=Mh(Fh(Ah,Lh,De.CircleClose)),Bh=/scroll|auto|overlay/i,ba=window;function qh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function _h(e,l=ba){let r=e;for(;r&&r!==l&&qh(r);){const{overflowY:t}=window.getComputedStyle(r);if(Bh.test(t))return r;r=r.parentNode}return l}function xa(e,l=ba){const r=n.ref();return n.onMounted(()=>{e.value&&(r.value=_h(e.value,l))}),r}const wa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,jh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function zh(e,l,r){return{props:{...jh},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:o,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(l),u=i(t,["pullText","loadText","noMoreText"]),s=n.ref(),c=xa(s),m=n.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),h=n.computed(()=>({[e]:!0})),C=v=>v?v.offsetTop+C(v.offsetParent):0,b=()=>{let v=0,g=0,V="down";if(c.value==window){const B=wa();s.value&&(v=C(s.value)+s.value.offsetHeight-B-window.innerHeight),g=B}else{const{scrollHeight:B,clientHeight:R,scrollTop:I}=c.value;v=B-R-I,g=I}return m.beforeScrollTop>g?V="up":V="down",m.beforeScrollTop=g,o("scroll-change",g),v<=t.threshold&&V=="down"},w=()=>{To(()=>{if(!b()||!t.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,o("update:modelValue",!0),n.nextTick(()=>o("load-more"))})},d=()=>{c.value&&c.value.addEventListener("scroll",w,t.useCapture)},f=()=>{c.value&&c.value.removeEventListener("scroll",w,t.useCapture)};n.onMounted(()=>{d(),t.immediate&&w()}),n.onUnmounted(()=>{f()});const P=n.ref(!1);return n.onActivated(()=>{P.value&&(P.value=!1,d())}),n.onDeactivated(()=>{P.value=!0,f()}),n.watch(()=>t.modelValue,v=>{v||(m.isInfiniting=!1)}),()=>{const v={class:"fox-infinite__container"},g=n.h("view",v,[a?.default?.()]),V=[];if(m.isInfiniting){let N=a?.loading?.()??null;if(!N){let $=a?.loadingIcon?.()??null;if(!$){const x={class:["fox-infinite__bottom-box__img"]};$=n.h(r,x)}const q={class:"fox-infinite__bottom-box__text"},Q=n.h("view",q,[u.loadText.value]);N=[$,Q]}const y={class:"fox-infinite__bottom-box"},j=n.h("view",y,N);V.push(j)}else if(!t.hasMore){let N=a?.finished?.()??null;if(!N){const y={class:"fox-infinite__bottom-tips"};N=n.h("view",y,[u.noMoreText.value]),V.push(N)}}const B={class:"fox-infinite__bottom"},R=n.h("view",B,V),I={class:h.value,ref:s};return n.h("view",I,[g,R])}}}}const{componentName:Hh,create:Kh,scope:Wh}=se("infinite-loading"),or=Kh(zh(Hh,Wh,Ql)),Yh={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Uh=(e,l,r)=>({props:{...Yh},emits:["change","refresh","update:modelValue"],setup(t,{emit:o,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(l),u=i(t,["pullingText","loosingText","loadingText"]),s=jt(),c=n.ref(),m=xa(c),h=n.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),C=n.computed(()=>({[e]:!0})),b=n.computed(()=>{switch(h.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),w=n.computed(()=>({transitionDuration:`${t.duration}s`,transform:h.distance?`translate3d(0,${h.distance}px, 0)`:""})),d=n.computed(()=>{const I={};return t.headHeight!=50&&(I.height=pe(t.headHeight)),I}),f=I=>{const N=+(t.pullDistance||t.headHeight);let y=I;return I>N&&(I<N*2?y=(I+N)/2:y=N+I/4),Math.round(y)},P=(I,N)=>{const y=+(t.pullDistance||t.headHeight);h.distance=I,N?h.status="loading":I===0?h.status="normal":I<y?h.status="pulling":h.status="loosing",o("change",{status:h.status,distance:I})},v=()=>h.status!=="loading"&&h.status!=="complete",g=()=>m.value==window?wa()==0:m.value&&m.value.scrollTop==0,V=I=>{v()&&(g()?(s.start(I),h.isPullRefresh=!0,h.moving=!0):(h.distance=0,h.isPullRefresh=!1))},B=I=>{v()&&h.moving&&(s.move(I),s.isVertical()&&s.state.deltaY>0&&h.isPullRefresh&&(I.cancelable&&I.preventDefault(),P(f(s.state.deltaY))))},R=()=>{h.moving=!1,h.isPullRefresh&&v()&&s.state.deltaY&&(h.status==="loosing"?(P(+t.headHeight,!0),o("update:modelValue",!0),n.nextTick(()=>o("refresh"))):P(0)),setTimeout(()=>{s.reset()},0)};return n.watch(()=>t.modelValue,I=>{I?P(+t.headHeight,!0):P(0)}),()=>{const I=[];let N=null;if(h.status==="loading"){if(N=a?.loading?.()??null,!N){const O={class:["fox-pull-refresh-container-topbox-icon"]};N=n.h(r,O)}}else h.status==="pulling"?N=a?.pulling?.()??null:h.status==="loosing"&&(N=a?.loosing?.()??null);N&&I.push(N);const y={class:["fox-pull-refresh-container-topbox-text"]},j=n.h("dive",y,[b.value]);I.push(j);const $={class:["fox-pull-refresh-container-topbox"],style:d.value},q=n.h("div",$,I),Q={class:"fox-pull-refresh-container",style:w.value},x=n.h("div",Q,[q,a?.default?.()]),S={ref:c,class:C.value};return _t()?Object.assign(S,{onTouchstart:V,onTouchmove:B,onTouchend:R}):Object.assign(S,{onMousedown:V,onMousemove:B,onMouseup:R}),n.h("div",S,[x])}}}),{componentName:Gh,create:Xh,scope:Qh}=se("pull-refresh"),ar=Xh(Uh(Gh,Qh,Ql)),Zh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Jh(e,l,r){return{props:{...Zh},emits:["click","update:modelValue"],setup(t,{emit:o,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(l),u=i(t,["collapseText","expandText"]),s=n.computed(()=>{const w={[`${e}`]:!0};return t.disabled?w[`${e}--disabled`]=!0:w[`${e}--${t.type}`]=!0,w}),c=ge(t,"modelValue"),m=n.computed(()=>c.value?u.expandText.value??"":u.collapseText.value??""),h=n.computed(()=>({[`${e}__text`]:!0})),C=n.computed(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),b=()=>{o("update:modelValue",!c.value)};return()=>{const w=[];if(m.value){const v={class:h.value},g=n.h("span",v,[m.value]);w.push(g)}const d={class:C.value},f=(a.icon&&a.icon())??(t.icon&&n.h(t.icon))??n.h(r);if(f){const v=n.h("div",d,[f]);w.push(v)}return t.textPosition==="right"&&w.reverse(),n.h("div",{class:s.value,onClick:b},w)}}}}const{componentName:em,create:tm,scope:nm}=se("more-button"),ir=tm(Jh(em,nm,De.ArrowUp));function lm(e){e.stopPropagation()}let rm=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,r){this.startMove=l,this.updateMove=r,this.isTouch=_t()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const r=jt(),t=(o,a,i,u)=>{this.updateMove({x:o,y:a})};this.touchstart=o=>{this.moving||(r.start(o),this.startMove({x:r.state.startX,y:r.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(r.move(o),lm(o),t(r.state.deltaX,r.state.deltaY))},this.touchend=()=>{t(r.state.deltaX,r.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),r.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(l=>{this.touchstart&&l.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function om(e,l){return new rm(e,l)}const am={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},im=(e,l,r,t=!1)=>({props:{...am},emits:["click"],setup(o,{slots:a,emit:i}){const u=n.reactive({top:o.top,right:o.right,bottom:o.bottom,left:o.left}),s=n.computed(()=>{const v=[`${e}`];return o.customClass&&v.push(o.customClass),v}),c=n.computed(()=>{const v={};return he(u.top)||(v.top=u.top),he(u.right)||(v.right=u.right),he(u.bottom)||(v.bottom=u.bottom),he(u.left)||(v.left=u.left),he(o.width)||(v.width=o.width),he(o.height)||(v.height=o.height),he(o.color)||(v.color=o.color),he(o.background)||(v.background=o.background),he(o.borderRadius)||(v["border-radius"]=o.borderRadius),he(o.zIndex)||(v["z-index"]=o.zIndex),v}),m=n.computed(()=>({[`${e}__icon`]:!0})),h=()=>{i("click")},C=n.ref(null),b=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},w={x:0,y:0},P=om(v=>{if(!C.value)return;const g=C.value;b(),u.left=g.offsetLeft,u.top=g.offsetTop,g.style.left=`${u.left}px`,g.style.top=`${u.top}px`,g.style.right=null,g.style.bottom=null,w.x=u.left,w.y=u.top},v=>{if(!C.value)return;const g=C.value;b(),u.left=w.x+v.x,u.top=w.y+v.y,g.style.left=`${u.left}px`,g.style.top=`${u.top}px`});return n.onMounted(()=>{if(o.draggable&&C.value){const v=[C.value];P.open(v)}}),n.onBeforeUnmount(()=>{o.draggable&&C.value&&P.close()}),()=>{let v=[];const g=typeof a.default=="function"?a.default():[];if(g&&g.length>0)v=g;else{const B=n.h(r,{class:m.value});v.push(B)}const V={ref:B=>{C.value=B},class:s.value,style:c.value,onClick:h};return n.h("view",V,v)}}}),{componentName:sm,create:um,scope:cm}=se("floating-button"),sr=um(im(sm,cm,rd,!1)),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class fm{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(l,r){this.startMove=l,this.updateMove=r,this.isTouch=_t()}open(l){Array.isArray(l)||(l=[l]),this.els=l;const r=jt(),t=(o,a,i,u)=>{this.updateMove({x:o,y:a})};this.touchstart=o=>{this.moving||(r.start(o),this.startMove({x:r.state.startX,y:r.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(r.move(o),t(r.state.deltaX,r.state.deltaY))},this.touchend=()=>{t(r.state.deltaX,r.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),r.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(l=>{this.touchstart&&l.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function ho(e,l){return new fm(e,l)}const mo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const go=e=>{const l=e;l.key==="Escape"&&pt.forEach(r=>r(l))},dm=e=>{n.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",go),mo&&pt.push(e)}),n.onBeforeUnmount(()=>{pt=pt.filter(l=>l!==e),pt.length===0&&mo&&document.removeEventListener("keydown",go)})},Qn="fox-focus-trap.focus-after-trapped",Zn="fox-focus-trap.focus-after-released",hm="fox-focus-trap.focusout-prevented",vo={cancelable:!0,bubbles:!1},mm={cancelable:!0,bubbles:!1},po="foxFocusAfterTrapped",yo="foxFocusAfterReleased",gm=Symbol("foxFocusTrap"),ur=n.ref(),Mn=n.ref(0),cr=n.ref(0);let Wt=0;const Sa=e=>{const l=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const o=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||o?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l},vm=(e,l)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(l&&e===l)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},bo=(e,l)=>{for(const r of e)if(!vm(r,l))return r},pm=e=>{const l=Sa(e),r=bo(l,e),t=bo(l.reverse(),e);return[r,t]},ym=e=>e instanceof HTMLInputElement&&"select"in e,at=(e,l)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),cr.value=window.performance.now(),e!==r&&ym(e)&&l&&e.select()}};function xo(e,l){const r=[...e],t=e.indexOf(l);return t!==-1&&r.splice(t,1),r}const bm=()=>{let e=[];return{push:t=>{const o=e[0];o&&t!==o&&o.pause(),e=xo(e,t),e.unshift(t)},remove:t=>{e=xo(e,t),e[0]?.resume?.()}}},xm=(e,l=!1)=>{const r=document.activeElement;for(const t of e)if(at(t,l),document.activeElement!==r)return},wo=bm(),wm=()=>Mn.value>cr.value,Yt=()=>{ur.value="pointer",Mn.value=window.performance.now()},So=()=>{ur.value="keyboard",Mn.value=window.performance.now()},Sm=()=>(n.onMounted(()=>{Wt===0&&(document.addEventListener("mousedown",Yt),document.addEventListener("touchstart",Yt),document.addEventListener("keydown",So)),Wt++}),n.onBeforeUnmount(()=>{Wt--,Wt<=0&&(document.removeEventListener("mousedown",Yt),document.removeEventListener("touchstart",Yt),document.removeEventListener("keydown",So))}),{focusReason:ur,lastUserFocusTimestamp:Mn,lastAutomatedFocusTimestamp:cr}),Ut=e=>new CustomEvent(hm,{...mm,detail:e}),{create:Tm}=se("focus-trap"),Cm={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"}},$m=Tm({props:Cm,emits:[po,yo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:l,emit:r}){const t=n.ref();let o,a;const{focusReason:i}=Sm();dm(d=>{ce(e.trapped)&&!u.paused&&r("release-requested",d)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=d=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:f,altKey:P,ctrlKey:v,metaKey:g,currentTarget:V,shiftKey:B}=d,{loop:R}=e,I=f==="Tab"&&!P&&!v&&!g,N=document.activeElement;if(I&&N){const y=V,[j,$]=pm(y);if(j&&$){if(!B&&N===$){const Q=Ut({focusReason:i.value});r("focusout-prevented",Q),Q.defaultPrevented||(d.preventDefault(),R&&at(j,!0))}else if(B&&[j,y].includes(N)){const Q=Ut({focusReason:i.value});r("focusout-prevented",Q),Q.defaultPrevented||(d.preventDefault(),R&&at($,!0))}}else if(N===y){const Q=Ut({focusReason:i.value});r("focusout-prevented",Q),Q.defaultPrevented||d.preventDefault()}}};n.provide(gm,{focusTrapRef:t,onKeydown:s}),n.watch(()=>e.focusTrapEl,d=>{d&&(t.value=d)},{immediate:!0}),n.watch([t],([d],[f])=>{d&&(d.addEventListener("keydown",s),d.addEventListener("focusin",h),d.addEventListener("focusout",C)),f&&(f.removeEventListener("keydown",s),f.removeEventListener("focusin",h),f.removeEventListener("focusout",C))});const c=d=>{r(po,d)},m=d=>r(yo,d),h=d=>{const f=n.unref(t);if(!f)return;const P=d.target,v=d.relatedTarget,g=P&&f.contains(P);ce(e.trapped)||v&&f.contains(v)||(o=v),g&&r("focusin",d),!u.paused&&ce(e.trapped)&&(g?a=P:at(a,!0))},C=d=>{const f=n.unref(t);if(!(u.paused||!f))if(!e.escape&&ce(e.trapped)){const P=d.relatedTarget;!je(P)&&!f.contains(P)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const v=Ut({focusReason:i.value});r("focusout-prevented",v),v.defaultPrevented||at(a,!0)}},0)}else{const P=d.target;P&&f.contains(P)||r("focusout",d)}};async function b(){await n.nextTick();const d=n.unref(t);if(d){wo.push(u);const f=d.contains(document.activeElement)?o:document.activeElement;if(o=f,!d.contains(f)){const v=new Event(Qn,vo);d.addEventListener(Qn,c),d.dispatchEvent(v),v.defaultPrevented||n.nextTick(()=>{let g=e.focusStartEl;Eo(g)||(at(g),document.activeElement!==g&&(g="first")),g==="first"&&xm(Sa(d),!0),(document.activeElement===f||g==="container")&&at(d)})}}}function w(){const d=n.unref(t);if(d){d.removeEventListener(Qn,c);const f=new CustomEvent(Zn,{...vo,detail:{focusReason:i.value}});d.addEventListener(Zn,m),d.dispatchEvent(f),!f.defaultPrevented&&(i.value=="keyboard"||!wm())&&at(o??document.body,!0),d.removeEventListener(Zn,c),wo.remove(u)}}return n.onMounted(()=>{ce(e.trapped)&&b(),n.watch(()=>e.trapped,d=>{ce(d)?b():w()})}),n.onBeforeUnmount(()=>{ce(e.trapped)&&w()}),()=>typeof l.default=="function"?l.default({"handle-keydown":s}):null}}),{componentName:Nm,create:km}=se("floating-window"),Em=Symbol.for("InnerPageScopeKey"),Pm=Symbol.for("PageWrapperKey"),Im={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Om=km({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:$m},props:{...Im},emits:["update:modelValue","update:collapse"],setup(e,{emit:l}){const r=Nm,t=n.ref(e.modelValue),o=n.computed(()=>!e.teleport);n.watch(()=>e.modelValue,p=>{t.value=p});const a=n.computed(()=>t.value===!1?!1:!N.value),i=n.ref(e.left),u=n.ref(e.top),s=n.ref(e.right),c=n.ref(e.bottom),m=n.computed(()=>{const p=["fox-floating-window"];return e.customClass&&p.push(e.customClass),p}),h=n.computed(()=>{const p={};return dt(i.value)?p.left="auto":p.left=Fe(i.value),dt(u.value)?p.top="auto":p.top=Fe(u.value),dt(s.value)?p.right="auto":p.right=Fe(s.value),dt(c.value)?p.bottom="auto":p.bottom=Fe(c.value),dt(e.zIndex)||(p["z-index"]=Fe(e.zIndex)),dt(R.value)||(p.height=R.value),dt(I.value)||(p.width=I.value),p}),C=n.computed(()=>e.closeIcon??De.Close),b=n.computed(()=>e.collapseIcon??De.ArrowUp),w=n.computed(()=>e.collapseText??""),d=n.computed(()=>e.collapsePosition==="left"?e.expandIcon??De.ArrowRight:e.expandIcon??De.ArrowLeft),f=n.computed(()=>e.expandText??e.title??"展开"),P=n.computed(()=>({[`${r}__collapse-text`]:!0})),v=n.computed(()=>({[`${r}__collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),g=n.ref(),V=n.ref(null),B=n.ref(null),R=n.computed(()=>Fe(e.height)||""),I=n.computed(()=>Fe(e.width)||""),N=n.ref(ce(e.collapse)),y=(p,L=!0)=>{N.value!==p&&(N.value=p,p?M():H(),l("update:collapse",p),p&&typeof q.onHide=="function"?q.onHide():!p&&typeof q.onShow=="function"&&q.onShow())};n.watch(()=>e.collapse,p=>{y(p)});const j=()=>{$()},$=p=>{p=p??!N.value,y(p)};n.provide(Em,!0);const q={setCollapse:y,setFixedNavVisible:p=>{A.value=p}};n.provide(Pm,q);const Q=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{t.value=!1}):t.value=!1},x=n.ref(null),S=n.computed(()=>!e.fixedNavTeleport),O=n.computed(()=>{const p=["fox-floating-window__fixednav"];return e.expandClass&&p.push(e.expandClass),e.collapsePosition==="left"?p.push("is-left"):e.collapsePosition==="right"&&p.push("is-right"),p}),_=n.ref(""),X=n.computed(()=>{const p={};return _.value?p.top=_.value:e.collapseTop&&(p.top=e.collapseTop),p}),J=n.ref(N.value),A=n.computed({set:p=>{J.value=p},get:()=>t.value===!1?!1:J.value});let te=null;const W=()=>{typeof te=="function"&&(te(),te=null)},M=()=>{x.value&&x.value.classList.add("slide-in"),A.value=!0,te=()=>{x.value&&x.value.classList.remove("slide-in")}},H=()=>{x.value&&x.value.classList.add("slide-out"),te=()=>{x.value&&x.value.classList.remove("slide-out"),A.value=!1}},z=()=>{i.value=null,u.value=null,s.value=null,c.value=null},k={x:0,y:0},le=ho(p=>{if(!g.value)return;const L=g.value;if(z(),e.origin==="left-top")i.value=L.offsetLeft,u.value=L.offsetTop,k.x=i.value,k.y=u.value;else if(e.origin==="left-bottom"){const F=document.documentElement.clientHeight||document.body.clientHeight;i.value=L.offsetLeft,c.value=F-(L.offsetTop+L.offsetHeight),k.x=i.value,k.y=c.value}else if(e.origin==="right-bottom"){const F=document.documentElement.clientWidth||document.body.clientWidth,ee=document.documentElement.clientHeight||document.body.clientHeight;s.value=F-(L.offsetLeft+L.offsetWidth),c.value=ee-(L.offsetTop+L.offsetHeight),k.x=s.value,k.y=c.value}else{const F=document.documentElement.clientWidth||document.body.clientWidth;s.value=F-(L.offsetLeft+L.offsetWidth),u.value=L.offsetTop,k.x=s.value,k.y=u.value}},p=>{if(!g.value)return;const L=g.value;z(),e.origin==="left-top"?(i.value=k.x+p.x,u.value=k.y+p.y,L.style.left=Fe(i.value),L.style.top=Fe(u.value)):e.origin==="left-bottom"?(i.value=k.x+p.x,c.value=k.y-p.y,L.style.left=Fe(i.value),L.style.bottom=Fe(c.value)):e.origin==="right-bottom"?(s.value=k.x-p.x,c.value=k.y-p.y,L.style.right=Fe(s.value),L.style.bottom=Fe(c.value)):(s.value=k.x-p.x,u.value=k.y+p.y,L.style.right=Fe(s.value),L.style.top=Fe(u.value))}),G={x:0,y:0},K=ho(p=>{x.value&&(G.x=x.value.offsetLeft,G.y=x.value.offsetTop)},p=>{if(!x.value)return;const L=G.y+p.y;_.value=`${L}px`}),E=()=>{if(g.value){const p=g.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=p}};return n.onMounted(()=>{if(e.draggable&&g.value){const p=[];V.value&&p.push(V.value),e.footerDraggable&&(E(),B.value&&p.push(B.value)),le.open(p)}e.collapse===!0&&y(e.collapse,!1),x.value&&K.open(x.value)}),n.onBeforeUnmount(()=>{e.draggable&&V.value&&le.close(),x.value&&K.close()}),{classes:m,styles:h,isShow:a,closeIcon:C,onClose:Q,dialogRef:g,headerRef:V,onClickToggle:j,collapseIcon:b,collapseText:w,collapseTextClasses:P,collapseIconClasses:v,expandIcon:d,expandText:f,isShowFixedNav:A,fixedNavRef:x,fixedNavClasses:O,fixedNavStyles:X,onAnimationEnd:W,teleportDisabled:o,fixedNavTeleportDisabled:S}}}),Dm={ref:"headerRef",class:"fox-floating-window__header"},Vm={class:"fox-floating-window__title"},Rm={class:"fox-floating-window__tools"},Fm={class:"fox-floating-window__body"},Am={class:"fox-floating-window__fixednav__text"};function Mm(e,l,r,t,o,a){const i=n.resolveComponent("FoxIcon"),u=n.resolveComponent("FocusTrap");return n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[n.createVNode(n.Transition,{name:"fox-floating-window-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"dialogRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles),tabindex:"-1"},[n.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:n.withCtx(()=>[n.createElementVNode("div",Dm,[n.renderSlot(e.$slots,"header",{},()=>[n.createElementVNode("span",Vm,n.toDisplayString(e.title),1),n.createElementVNode("div",Rm,[e.showCollapse?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:l[0]||(l[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[n.createElementVNode("span",{class:n.normalizeClass(e.collapseTextClasses)},n.toDisplayString(e.collapseText),3),n.createVNode(i,{class:n.normalizeClass(e.collapseIconClasses)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):n.createCommentVNode("",!0),e.showClose?(n.openBlock(),n.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])])],512),n.createElementVNode("div",Fm,[n.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[n.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(n.openBlock(),n.createBlock(n.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[n.withDirectives(n.createElementVNode("div",{ref:"fixedNavRef",class:n.normalizeClass(e.fixedNavClasses),style:n.normalizeStyle(e.fixedNavStyles),onAnimationend:l[2]||(l[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[n.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:l[1]||(l[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[n.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.expandIcon)))]),_:1}),n.createElementVNode("div",Am,n.toDisplayString(e.expandText),1)])],38),[[n.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const fr=Ze(Om,[["render",Mm]]);function Lm(e,l){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(r,{slots:t}){const o=e,a=n.computed(()=>({[o]:!0})),i=n.computed(()=>r.icon?{[`${o}__icon`]:!0,[`${o}__icon-${r.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${r.type}`]:!0}),u=n.computed(()=>r.color?r.icon?{color:r.color}:{background:r.color}:null),s=n.computed(()=>{const m={[`${o}__text`]:!0,[`${o}__text-${r.type}`]:!0};return r.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),c=n.computed(()=>r.color?{color:r.color}:null);return()=>{let m=null;if(t.mark)m=t.mark()[0];else{const d={class:i.value,style:u.value};m=n.h(r.icon??"div",d)}const h={class:s.value,style:c.value},C=t.default?t.default():[],b=n.h("div",h,C),w={class:a.value};return r.textPosition==="right"?n.h("div",w,[m,b]):n.h("div",w,[b,m])}}}}const{componentName:Bm,create:qm}=se("indicator"),dr=qm(Lm(Bm));function _m(e){return e===window}const Ta=e=>{const l=n.unref(e);if(_m(l)){const r=l.innerWidth,t=l.innerHeight;return{top:0,left:0,right:r,bottom:t,width:r,height:t}}return l&&l.getBoundingClientRect?l.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:jm,create:zm}=se("tour"),Hm=zm({components:{Close:De.Close,ElPopover:T.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:l}){const r=jm,t=n.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=n.ref({}),a=n.computed(()=>`${r}`),i=n.computed(()=>{const{offset:w,maskWidth:d,maskHeight:f}=e,{width:P,height:v,left:g,top:V}=o.value,B=e.steps[t.active].offset??w,R=[g+P/2,V+v/2],I=Number(d||P),N=Number(f||v);return{width:`${I+ +B.left+B.right}px`,height:`${N+B.top+B.bottom}px`,top:`${R[1]-N/2-+B.top}px`,left:`${R[0]-I/2-+B.left}px`}}),u=w=>{w=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,n.nextTick(()=>{t.showPopup=!0,m()}),l("change",t.active)},s=w=>w.popoverWidth??e.width,c=w=>w.location??e.location,m=()=>{const w=document.querySelector(`${e.steps[t.active].target}`),d=Ta(w);o.value={x:d.left,y:d.top,top:d.top,left:d.left,width:d.width,height:d.height}},h=()=>{t.showTour=!1,t.showPopup=!1,l("close",t.active),l("update:modelValue",!1)},C=()=>{e.closeOnClickOverlay&&h()},b=(w,d=0)=>{w&&m(),e.steps,t.active=d,t.showTour=w,t.showPopup=w};return n.onMounted(()=>{b(e.modelValue,e.current)}),n.watch(()=>e.modelValue,w=>{b(w)}),{...n.toRefs(t),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:h,handleClickMask:C}}}),Km={key:0,class:"fox-tour__content"},Wm={key:0,class:"fox-tour__content-top"},Ym={class:"fox-tour__content-inner"},Um={class:"fox-tour__content-bottom"},Gm={class:"fox-tour__content-bottom-init"},Xm={class:"fox-tour__content-bottom-operate"},Qm={key:1,class:"fox-tour__content fox-tour__content-tile"},Zm={class:"fox-tour__content-inner"};function Jm(e,l,r,t,o,a){const i=n.resolveComponent("Close"),u=n.resolveComponent("fox-button"),s=n.resolveComponent("ElPopover");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes)},[n.withDirectives(n.createElementVNode("div",{class:"fox-tour__masked",onClick:l[0]||(l[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[n.vShow,e.showTour]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,(c,m)=>(n.openBlock(),n.createElementBlock("div",{key:m,style:{height:"0"}},[m==e.active?(n.openBlock(),n.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:n.withCtx(()=>[e.showTour?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:n.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(n.openBlock(),n.createElementBlock("div",Km,[e.showTitleBar?(n.openBlock(),n.createElementBlock("div",Wm,[n.createElementVNode("div",{onClick:l[1]||(l[1]=(...h)=>e.close&&e.close(...h))},[n.createVNode(i,{class:"fox-tour__content-top-close"})])])):n.createCommentVNode("",!0),n.createElementVNode("div",Ym,n.toDisplayString(c.content),1),n.createElementVNode("div",Um,[n.createElementVNode("div",Gm,n.toDisplayString(e.active+1)+"/"+n.toDisplayString(e.steps.length),1),n.createElementVNode("div",Xm,[n.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(n.openBlock(),n.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[2]||(l[2]=h=>e.changeStep("prev"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.prevStepText),1)]),_:1})):n.createCommentVNode("",!0)]),e.steps.length-1==e.active?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:l[3]||(l[3]=h=>e.changeStep("next"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.nextStepText),1)]),_:1})):n.createCommentVNode("",!0)])])])])):n.createCommentVNode("",!0),e.type=="tile"?(n.openBlock(),n.createElementBlock("div",Qm,[n.createElementVNode("div",Zm,n.toDisplayString(c.content),1)])):n.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):n.createCommentVNode("",!0)]))),128))],2)}const hr=Ze(Hm,[["render",Jm]]);function eg(e,l){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(r,{slots:t}){return Ko(r.name,()=>r.config),je(r.innerPageScope)||Sl(r.innerPageScope),je(r.abstractPageScope)||Go(r.abstractPageScope),()=>typeof t.default=="function"?t.default():null}}}const{create:tg}=se("domain-provider"),mr=tg(eg()),ng={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 lg(e,l){return{inheritAttrs:!1,props:ng,emits:["change"],setup(r,{slots:t,emit:o}){if(ut&&window.IntersectionObserver){const a=new WeakMap;let i=new Map;const u=(b,w)=>{if(h===null){i.set(b,{visible:null,callback:w});return}a.has(b)&&h.unobserve(b),a.set(b,{visible:null,callback:w}),h.observe(b)},s=b=>{if(h===null){i.delete(b);return}a.has(b)&&(a.delete(b),h.unobserve(b))};let c=r.initialVisibleObserverSize;Vi({acquire:()=>{if(r.loadPolicy==="always")return!0;const b=c>0;return c--,b},get disabled(){return r.disabled},get initialHeight(){return r.initialInvisibleObserverHeight},observe:u,unobserve:s});let h=null;const C=(b,w,d)=>{h=new IntersectionObserver(f=>{if(o("change",f),r.loadPolicy!=="always")for(let P of f){let v=!1;P.intersectionRatio>0&&(v=!0);const g=a.get(P.target);if(g)try{if(r.loadPolicy==="lazy"&&!v&&g.visible!==null)return;g.visible=v,g.callback(v)}catch(V){console.error(V)}}},{root:b,rootMargin:w,threshold:d}),i.forEach((f,P)=>{a.set(P,f),h?.observe(P)}),i.clear()};n.watch([()=>r.root,()=>r.disabled],([b,w])=>{if(w||!b||h)return;let d=null;typeof b=="string"?d=document.querySelector(b):d=b,d&&C(d,r.rootMargin,r.threshold)},{immediate:!0}),n.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:rg}=se("rolling-provider"),gr=rg(lg()),og=[Cl,Nl,kl,El,Pl,ke,Pn,In,Ol,Ce,Dl,Vl,Rl,Fl,Al,Ml,Ll,Bl,ql,_l,jl,Vn,zl,Hl,Kl,Wl,Yl,Ul,Gl,Xl,Rn,Fn,Zl,Jl,er,tr,An,nr,lr,rr,or,ar,ir,sr,fr,Dn,At,En,dr,On,hr,mr,gr],ag=new di(og,[gi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>T.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>T.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>T.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>T.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>T.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>T.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>T.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>T.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>T.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>T.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>T.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>T.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>T.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>T.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>T.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>T.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>T.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>T.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>T.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>T.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>T.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>T.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>T.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>T.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>T.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>T.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>T.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>T.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>T.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>T.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>T.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>T.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>T.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>T.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>T.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>T.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>T.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>T.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>T.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>T.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>T.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>T.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>T.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>T.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>T.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>T.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>T.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>T.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>T.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>T.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>T.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>T.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>T.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>T.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>T.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>T.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>T.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>T.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>T.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>T.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>T.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>T.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>T.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>T.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>T.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>T.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>T.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>T.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>T.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>T.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>T.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>T.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>T.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>T.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>T.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>T.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>T.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>T.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>T.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>T.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>T.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>T.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>T.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>T.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>T.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>T.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>T.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>T.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>T.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>T.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>T.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>T.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>T.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>T.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>T.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>T.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>T.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>T.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>T.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>T.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>T.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>T.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>T.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>T.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>T.ElWatermark});exports.AbstractPageScopeKey=Tl;exports.AutocompleteItem=ql;exports.Broadcast=bl;exports.BroadcastKey=we;exports.ButtonsItem=Ol;exports.CascaderItem=Bl;exports.CheckboxItem=Kl;exports.Content=El;exports.DataItemsKey=vt;exports.DateItem=Rl;exports.DateUtils=_e;exports.DialogItem=tr;exports.Domain=pn;exports.DomainKey=qe;exports.DomainProvider=mr;exports.FloatingButton=sr;exports.FloatingWindow=fr;exports.FooterBar=kl;exports.FoxAutocompleteItem=ql;exports.FoxButtonsItem=Ol;exports.FoxCascaderItem=Bl;exports.FoxCheckboxItem=Kl;exports.FoxContent=El;exports.FoxDateItem=Rl;exports.FoxDialogItem=tr;exports.FoxDomainProvider=mr;exports.FoxFloatingButton=sr;exports.FoxFloatingWindow=fr;exports.FoxFooterBar=kl;exports.FoxGroup=Pl;exports.FoxGroupSetting=Gl;exports.FoxHeaderBar=Nl;exports.FoxHintText=Ce;exports.FoxIndicator=dr;exports.FoxInfiniteLoading=or;exports.FoxInputItem=Dl;exports.FoxInputNumberItem=Ll;exports.FoxItem=ke;exports.FoxMapping=At;exports.FoxMoneyItem=Ml;exports.FoxMoreButton=ir;exports.FoxOverLay=An;exports.FoxPage=Cl;exports.FoxPopoverDialog=Dn;exports.FoxPopup=nr;exports.FoxPrice=En;exports.FoxPullRefresh=ar;exports.FoxRadioItem=Hl;exports.FoxRateItem=Wl;exports.FoxRollingProvider=gr;exports.FoxRowItem=In;exports.FoxSearchBar=rr;exports.FoxSelectItem=Vl;exports.FoxSlotItem=Pn;exports.FoxStepsBar=er;exports.FoxSwitchItem=Yl;exports.FoxTableItem=zl;exports.FoxTableMappingColumn=_l;exports.FoxTableRadioColumn=jl;exports.FoxTableSetting=Vn;exports.FoxTabsBar=Rn;exports.FoxTabsContainer=Fn;exports.FoxTabsFrame=Jl;exports.FoxTabsPane=Zl;exports.FoxText=On;exports.FoxTimeItem=Fl;exports.FoxTimeSelectItem=Al;exports.FoxToast=lr;exports.FoxTour=hr;exports.FoxTreeItem=Xl;exports.FoxTreeSelectItem=Ul;exports.Group=Pl;exports.GroupSetting=Gl;exports.HeaderBar=Nl;exports.HintText=Ce;exports.Indicator=dr;exports.InfiniteLoading=or;exports.InnerPageScopeKey=wl;exports.InputItem=Dl;exports.InputNumberItem=Ll;exports.Item=ke;exports.Mapping=At;exports.MoneyItem=Ml;exports.MoreButton=ir;exports.OverLay=An;exports.Page=Cl;exports.PopoverDialog=Dn;exports.Popup=nr;exports.Price=En;exports.PriorityPolicy=ze;exports.PullRefresh=ar;exports.RadioItem=Hl;exports.RateItem=Wl;exports.RollingProvider=gr;exports.RowItem=In;exports.SearchBar=rr;exports.SelectItem=Vl;exports.SlotItem=Pn;exports.StepsBar=er;exports.SwitchItem=Yl;exports.TableItem=zl;exports.TableMappingColumn=_l;exports.TableRadioColumn=jl;exports.TableSetting=Vn;exports.TabsBar=Rn;exports.TabsContainer=Fn;exports.TabsFrame=Jl;exports.TabsPane=Zl;exports.Text=On;exports.TimeItem=Fl;exports.TimeSelectItem=Al;exports.Toast=lr;exports.Tour=hr;exports.TreeItem=Xl;exports.TreeSelectItem=Ul;exports.UniqueID=ia;exports.ValidateSchema=jo;exports.ValidateSchemaKey=Xe;exports.cancelRaf=Pa;exports.clearNonNumber=ja;exports.compareTo=ll;exports.createBroadcast=mn;exports.createValidateSchema=gn;exports.debounce=Ke;exports.debounceRef=ti;exports.decimalLength=Mo;exports.default=ag;exports.defineBroadcast=Wa;exports.defineConfigDomain=Ko;exports.defineDataItem=Wo;exports.defineDomain=xl;exports.defineItem=Ee;exports.definePageState=Uo;exports.defineSimpleItem=Yo;exports.deleteGlobalValidator=Qa;exports.disabledProperty=Be;exports.divide=vl;exports.excludeProps=Ve;exports.extend=wt;exports.floatData=Ka;exports.getGlobalIcons=na;exports.getGlobalValidateCheckEvents=Bo;exports.getGlobalValidateResetEvents=_o;exports.getPageContentAreaHeight=sn;exports.getPageContentAreaWidth=un;exports.getPageFooterAreaHeight=xn;exports.getPageHeaderAreaHeight=bn;exports.getRootDomain=yt;exports.hasSymbol=Oo;exports.includeProps=St;exports.indexOf=za;exports.injectAbstractPageScope=qt;exports.injectInnerPageScope=Bt;exports.integerLength=Ao;exports.isArray=Oa;exports.isArrayLike=Ro;exports.isBrowser=ut;exports.isDate=Ra;exports.isESModule=Ma;exports.isEmptyString=he;exports.isEqual=rt;exports.isFunction=rl;exports.isHidden=Vo;exports.isMap=Da;exports.isNil=je;exports.isNumberString=yl;exports.isObject=Qe;exports.isPlainObject=Aa;exports.isPromise=Po;exports.isRegExp=ol;exports.isSet=Va;exports.isString=Eo;exports.isSubPage=oi;exports.isSymbol=Fa;exports.isTouch=_t;exports.isWindow=Do;exports.lastIndexOf=Ha;exports.makeArray=_a;exports.merge=Fo;exports.multiply=$o;exports.negate=No;exports.nextTick=Ba;exports.numberFormat=dn;exports.objectToString=Io;exports.once=ni;exports.overrideGlobalIcons=xi;exports.overrideGlobalValidateHandler=Ga;exports.property=Ae;exports.provideAbstractPageScope=Go;exports.provideInnerPageScope=Sl;exports.raf=pl;exports.readonlyProperty=Le;exports.setGlobalValidateCheckEvents=Za;exports.setGlobalValidateHandler=Ua;exports.setGlobalValidateMessages=ei;exports.setGlobalValidateResetEvents=Ja;exports.setGlobalValidator=Xa;exports.throttle=Ho;exports.toBoolean=ce;exports.toNumber=$e;exports.toPadding=et;exports.toPx=ve;exports.toPxDesc=ri;exports.toPxString=pe;exports.toTypeString=hn;exports.toValue=ge;exports.tryTimes=vn;exports.typeOf=on;exports.unNumberFormat=ko;exports.updatePageState=al;exports.useBroadcast=Ot;exports.useDomain=ct;exports.useExpose=Te;exports.useInnerSize=wn;exports.usePageState=yn;exports.usePosition=Il;exports.useRawTouch=jt;exports.useRect=Ta;exports.useSize=$l;exports.useTouch=Bd;exports.valueLength=Lt;
|